Tagged: howto RSS

  • bigonazzi 11:41 on 3 August 2009 Permalink | Replica
    Tags: dropbox, guide, howto, jaunty, linux, ubuntu, xfce, xubuntu   

    Dropbox & Xubuntu 

    I’m trying out Xubuntu Jaunty on a small atom server and needed to setup dropbox (get it here) but the default dropbox package needs gnome!

    Fortunately I found a simple workaround on the inter-tubes:

    • Download the closed source Dropbox Linux client from http://www.getdropbox.com/download?plat=lnx.x86 (x86_64 for 64 bit)
    • Extract the contents and you should get a .dropbox-dist folder out of the archive. Move the folder to $HOME
    • Run “~/.dropbox-dist/dropboxd &” (without the quotes), wait a sec and you’ll get the config wizard.
    • Now add the same “~/.dropbox-dist/dropboxd &” to the session auto-start program list and your set!

    [original: http://antrix.net/journal/techtalk/dropbox_kde.html]

     
  • bigonazzi 19:08 on 9 February 2009 Permalink | Replica
    Tags: ActiveRecord, howto, mysql,   

    Stand-alone ActiveRecord 

    Good thing the intertubes still are delivering vital hints even during this bleak times… I was trying to use ActiveRecord inside a small script of mine and I ran into some issues. I’m using OSX 10.5.6 “Leopard” and MacPorts.

    First I needed to install activerecord, easy:

    sudo gem install activerecord

    I used mac port to install mysql:

    sudo port install mysql5 +server

    now the triky part, installing the mysql gem. First download and modify the mysql gem:

    sudo gem install mysql

    this will fail. Now you need to navigate to the gem cache dir:

    cd /opt/local/lib/ruby/gems/1.8/cache

    then unpack the gem

    sudo gem unpack mysql-2.7.gem

    cd mysql-2.7

    with your favourite editor add this line to mysql.c.in

    #define ulong unsigned long

    now rebuild the gem and install it

    sudo gem build mysql.gemspec

    sudo mv mysql-2.7.gem ../mysql-2.7-CUSTOM.gem

    Almost there, we need to install our shiny-new gem:

    sudo env ARCHFLAGS=”-arch i386″ gem install mysql-2.7-CUSTOM.gem — \

    –with-mysql-config=/opt/local/bin/mysql_config5

    Ok, all is done (u might need to install some missing parts) now all you need to do is to add some requires to your script and remember to always establish a connection before using any ActiveRecord resources:

    require ‘rubygems’
    require ‘active_record’

    dbConfig = {“adapter” => “sqlite3″, “dbfile” =>  ‘./file.db’}

    ActiveRecord::Base.establish_connection(dbConfig)

    class Stuff < ActiveRecord::Base

    Hope somebody finds this usefull!

    dArio

    [thanks to kpumuk.info/ and http://www.kudelabs.com/2008/09/12/installing-mysql-gem-on-macos-x-leopard ]

     
  • bigonazzi 12:57 on 12 November 2008 Permalink | Replica
    Tags: binary, call forwarding, , howto, , iphone 2.2, plist   

    iPhone – Call forwarding off 

    Tutti i telefoni che ho avuto hanno la cattiva abitudine di annoiarmi con un simpatico messaggio che ti avverte che la tua chiamata potrebbe essere rediretta (“Call forwarding”). Con l’iphone il pop-up, per quanto scenografico, rompe ancora di +, perche’, rimanendo a video, lo si deve cliccare ogni volta che si vuole fare qualcosa durante una chiamata.

    Per fortuna si puo’ eliminarlo con un po’ di ssh e olio di gomito:

    trovate la destinazione del symlink /var/mobile/Library/Preferences/com.apple.carrier.plist ( nel mio caso /System/Library/Carrier Bundles/Unknown.bundle/carrier.plist ) e cambiate la chiave ShowCallForwarding in false.

    Facile no!! ;)

    dArio

    Update: dimenticavo, ho adattato la “ricetta” alla versione corrente del firmware, 2.1. Se avete un fw precedente al 1.1.4 molto probabilmente troverete il link in /var/root/… perche’ dalla versione 1.1.4 in poi apple ha deciso di cambiare l’utente con cui eseguire la maggior parte dei servizi.

    Per la cronaca la password di root dell’iphone e’ “alpine” e quella dell’utente mobile e’ “dottie”. Visto che la conoscono tutti cambiatela al piu’ presto o ricordatevi sempre di spengere il servizio SSH!! ;)

    Update 2: dopo aver aggiornato alla versione 2.2 ho provato ad modificare nuovamente il file plist. Purtroppo mi sono ritrovato con l’applicazione del telefono nn funzionante. Probabilmente è stato modicato il tipo di encoding. Proverò ad editare a mano il file (avevo usato plisteditor).

    Update 3: dopo aver riconvertito il plist in binario tutto funziona correttamente! E’ sufficiente un semplice comando da terminale (ammettendo che il file carrier.plist si trovi nella directory corrente): plutil -convert binary1 carrier.plist

     
  • bigonazzi 19:01 on 29 October 2008 Permalink | Replica
    Tags: clipboard history, history, howto, mac, , quicksilver   

    Quicksilver clipboard history 

    When I got my new-and-shiny Macbook Pro I tought it would deserve a new and shiny Leopard install…

    Now, after two days fiddling with the settings and the installed apps I remember one of the reasons I hate windows: reinstalling from scratch sucks!!

    So here I am saving tips for future re-installs. Today’s quicksilver history:

    follow this blog post to install the shelf menu and clipboard history plug-ins, http://theappleblog.com/2006/10/24/quicksilver-screencast-the-clipboard/

    but remember it’s not that easy:

    It appears that in addition to the Clipboard module plugin, you ALSO need the Shelf plugin.
    Once that’s installed, you need to make sure that catalog item is indexed and available to you. here’s where to look:
    In Quicksilver Preferences
    Catalog ‘tab’
    Quicksilver Catalog
    Shelf & Clipboard
    click the ‘i’ for more info
    on the info screen, click the middle ‘tab’, “Contents”
    There you should see Clipboard History(QSPasteboardHistory)

    And even following the post to the letter you might need to reapeat the steps multiple times.

    Have fun with your shiny new toy™! ;)

    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