Tagged: OSX RSS

  • bigonazzi 21:43 on 6 September 2009 Permalink | Replica
    Tags: 10.6, 64, 64bit, android, ddms, , , java 1.6, jvm, OSX, sdk, snow leopard   

    Android: ddms on Snow Leopard 

    This weekend I got over my fear to update to the latest big cat: Snow Leopard. I have to say that almost everything worked smoothly. It feels like a new clean system, even tough I merely run the upgrade!

    Anyway, thanks to the new 64-bit JVM and carbon being 32-bit only, ddms tool from the Android SDK stubbornly refused to start even after half an hour of tweaking the java params. :(

    So I decided to go the hacky way (follow at your own risk):

    1. download the cocoa 64 bit version of SWT SWT (update: corrected the link)
    2. download the cocoa 64 bit versions of libswt-cocoa-3610.jnilib (download) and  libswt-pi-cocoa-3610.jnilib (download)  from  the swt 3.6M1 branch
    3. now go inside the android sdk folder and inside the tools > lib folder substitute swt.jar, libswt-carbon-3236.jnilib and libswt-pi-carbon-3236.jnilib with the corresponding version you just downloaded, having care to rename the new ones to match the old filenames

    Et voila, ddms running in 64 bit on Snow Leopard! Enjoy! ;)

    dArio

    Android ddms cocoa 64 bit

    Android ddms cocoa 64 bit, seeing is believing

    UPDATE: The new 1.6 r1 SDK is out and is using cocoa swt, but it is still trying to use the 1.5 JVM which is not working for me. :( The solution is pretty simple:

    Edit the ddms script (in /sdk-path/tools/), find the following lines:

    if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread"
    #because Java 1.6 is 64 bits only and SWT doesn't support this, we force the usage of java 1.5
    java_cmd="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java"
    else

    and substitute with:

    if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread -d64"
    #because Java 1.6 is 64 bits only and SWT doesn't support this, we force the usage of java 1.5
    # java_cmd="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java"
    java_cmd="java"
    else

    This way we use the default JVM (specified trough the Java Preferences.app) forcing the use of the 64bit version, with the -d64 (remove it to use the default or use -d32 to force 32bit)

    now export a shell variable (I do it in ~/.profile, but you can put anywhere you please) to tell ddms where to find your custom swt.jar lib. Using bash:

    export ANDROID_SWT="/path-to-custom-swt.jar/"

    Of course the architecture of your swt must match the architecture of the JVM you are using. Currently I’m using the 64 bit 1.6 JVM with the 3.6M1 swt jar (get it here).

     
  • bigonazzi 20:36 on 19 December 2008 Permalink | Replica
    Tags: editor, git, OSX, TextMate   

    Useful git stuff on OSX 

    I just did this recently and its hella useful…

    # Configure textmate globally as the commit comment editor for git

    $ git-config –global core.editor ‘mate -w’

    # Configure opendiff(aka FileMerge) as the git merge tool

    $ git config –global merge.tool opendiff

    via yawningman: useful git stuff on OSX.

    UPDATE: my git version (1.6.0.2) accepts a slightly different syntax:

    git config –global core.editor “mate -w”

     
  • bigonazzi 12:15 on 3 December 2008 Permalink | Replica
    Tags: comics, dilbert, OSX, strips, widget   

    Dashboard Dilbert Widget 

    What’s better than code a little when you’re bored? Coding your first Dilbert widget of course!! :)

    I didn’t like the clumsy flash interface of the original and the previous widget I was using suddendly stopped working! So I took some time (not really much) and wrote my own stupid one! It’s nothing more than a dilbert’s strip every morning, but that’s exactly what I wanted!

    Of course I take no responsability if after using my widget your computer melts or your social life becomes worse than mine! ;) If you want to take those risks, grab the widget here.

    dArio

    PS: visit dilbert.com and support them!!

     
  • bigonazzi 12:56 on 30 November 2008 Permalink | Replica
    Tags: , glims, OSX, plugin, safari, session restore   

    Safari – Restore Session Plugin 

    Glims is a really nice do-it-all plugin for Safari. I was looking for a way to automatically save and restore the last session in Safari. I didn’t like the idea to install SafariStand as it need SIMBL support and I don’t like to mess with the InputManagers in Leopard. Then I found glims (thanks to pimpmysafari.com) which comes in a nice and tidy package installer and its free. Here’s its features straight from the website:

    Current features list:

    • Adds thumbnails to Google.com search results
    • Adds thumbnails to Yahoo.com search results
    • Adds search engines to the default Google search tab
    • Adds full-screen browsing capability
    • Adds Favicons to tab labels
    • Adds keyword search from address bar
    • Undo “Close Tab” (cmd-z)
    • Re-opens last session when Safari starts
    • Auto-Closes download window
    • Focus last selected tab
    • Always open links in a new tab
    • Type-ahead support (auto cmd-f)
    • Sets the focus on the search field when opening a new window
    • Adds Amazon’s information banner on Google.com search results
    • Adds Amazon’s information banner on Yahoo.com search results
    • Adds a “Max Window Size” menu item to resize the Safari window
    • Forms autocomplete always on
    • Dated download folders
    • Localized to Japanese, French, Greek, and German
    • Tested with WebKit lastest build ( http://www.webkit.org )

    Enjoy!

    dArio

     
c
scrivi un nuovo post
j
post successivo/commento successivo
k
post precedente/commento precedente
r
rispondi
e
modifica
o
mostra/nascondi commenti
t
torna a inizio pagina
l
go to login
h
show/hide help
esc
Annulla