<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title>Flying Seagull</title>
        <link type="application/atom+xml" href="http://reza.jelveh.me/atom.xml" rel="self" />
        <link type="text/html" href="http://reza.jelveh.me/" rel="alternate" />
	<id>tag:flyingseagull.de,2010:/atom.xml</id>
	<updated>2012-01-25T18:04:31+01:00</updated>
	
	<entry>
		<title>A minimalistic rfkill gtk gui for toggling your bluetooth and wireless</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2012/01/07/minimalistic-rfkill-gtk-gui" rel="alternate" />
		<updated>2012-01-07T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2012-01-07:/2012/01/07/minimalistic-rfkill-gtk-gui</id>
		<content type="html">&lt;p&gt;I just wrote a little rfkill frontend with gtk+. If you use an acer laptop you should load acer-wmi, make sure you have acpi_osi=Linux in your kernel boot.&lt;/p&gt;
&lt;p&gt;The following will bind the rfkill key to XF86WLAN&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;setkeycodes e013 246
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Here&amp;#8217;s the obligatory screenshot:&lt;br /&gt;
&lt;img src=&quot;http://cloud.github.com/downloads/fishman/grfkill/screenshot.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#8217;t have an acer device you should launch the app as:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;grfkill -w wlandevice -b bluetoothdevice
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Use rfkill list to find out the right names.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/fishman/grfkill&quot;&gt;source is available github&lt;/a&gt; It&amp;#8217;s based on &lt;a href=&quot;https://github.com/lcp&quot;&gt;Gary&amp;#8217;s&lt;/a&gt; gtk experiments(the author of urfkilld)&lt;/p&gt;
&lt;p&gt;Arch users can use the following:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;sudo packer -S grfkill
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
	</entry>
	<entry>
		<title>Changing the cursor color within tmux based on vi mode</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2011/09/18/zsh-tmux-vi-mode-cursor" rel="alternate" />
		<updated>2011-09-18T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2011-09-18:/2011/09/18/zsh-tmux-vi-mode-cursor</id>
		<content type="html">&lt;p&gt;As outlined on &lt;a href=&quot;http://unix.stackexchange.com/questions/547/make-my-zsh-prompt-show-mode-in-vi-mode&quot;&gt;SE&lt;/a&gt; and &lt;a href=&quot;http://superuser.com/questions/151803/how-do-i-customize-zshs-vim-mode&quot;&gt;SU&lt;/a&gt; you can execute actions in zsh when you change between normal and insert mode in a vi mode zsh session.&lt;/p&gt;
&lt;p&gt;For changing the cursor color see the snippet below.&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# use cursor as indicator of vi mode&lt;/span&gt;
zle-keymap-select &lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$KEYMAP&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; vicmd &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;    if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$TMUX&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; -ne &lt;span class=&quot;s2&quot;&gt;&amp;quot;\033]12;Red\007&amp;quot;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;\033Ptmux;\033\033]12;red\007\033\\&amp;#39;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;  else&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;    if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$TMUX&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; -ne &lt;span class=&quot;s2&quot;&gt;&amp;quot;\033]12;Grey\007&amp;quot;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;\033Ptmux;\033\033]12;grey\007\033\\&amp;#39;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;  fi&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
zle-line-init &lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  zle -K viins
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; -ne &lt;span class=&quot;s2&quot;&gt;&amp;quot;\033]12;Grey\007&amp;quot;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
zle -N zle-keymap-select
zle -N zle-line-init
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Put it somewhere in your zshrc and your cursor should switch to red when you enter normal mode and become grey again when you leave it.&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>launching firefox with text/html entry in mutt 1.5,21</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2011/09/17/mutt-html-autoview-firefox" rel="alternate" />
		<updated>2011-09-17T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2011-09-17:/2011/09/17/mutt-html-autoview-firefox</id>
		<content type="html">&lt;p&gt;I recently decided that I might want to see some html mails in a real browser instead of a w3m dump.  For example when I need to click on the stupid reset password link, which is sent in the html only mail from easyjet.&lt;/p&gt;
&lt;p&gt;Figured it would be the easiest thing in the world to do, just change the mailcap entry for text/html and you&amp;#8217;re set. But instead I get this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mailcap entry for type text/html not found&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The bad part:&lt;/strong&gt; It obviously doesn&amp;#8217;t work that way. Turns out certain changes in the auto_view behaviour of mutt 1.5.21 cause this. There&amp;#8217;s even &lt;a href=&quot;http://dev.mutt.org/trac/ticket/3496&quot;&gt;a bugreport on the matter&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The good part:&lt;/strong&gt; You can now have 2 mailcap entries for text/html. One will be used to display the message &lt;em&gt;inside&lt;/em&gt; of mutt. The other will run firefox by pressing m (view-mailcap) in the file list.&lt;/p&gt;
&lt;p&gt;My mailcap thus starts as follows:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;text/html; firefox %s ;
text/html; w3m -T text/html -dump %s; copiousoutput
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Note that the order of the entries is important. Should you switch it both m and the pager will only show the dump.&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>ruby-enterprise/ruby-1.8.7 in fedora 15 or archlinux</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2011/09/15/ree-ruby-1.8.7-archlinux-fedora" rel="alternate" />
		<updated>2011-09-15T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2011-09-15:/2011/09/15/ree-ruby-1.8.7-archlinux-fedora</id>
		<content type="html">&lt;p&gt;The following bugs occur when trying to install ruby enterprise on distros like fedora 15 or archlinux:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;/bin/sh ./libtool --tag&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;CXX --mode&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;compile g++ -DHAVE_CONFIG_H -I. -I. -I./src  -I./src   -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -DNO_FRAME_POINTER -g -O2 -c -o libtcmalloc_minimal_la-tcmalloc.lo &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; -f &lt;span class=&quot;s1&quot;&gt;&amp;#39;src/tcmalloc.cc&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;#39;./&amp;#39;&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;src/tcmalloc.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c src/tcmalloc.cc  -fPIC -DPIC -o .libs/libtcmalloc_minimal_la-tcmalloc.o
src/tcmalloc.cc:1672:54: error: conflicting declaration ‘void* &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;* __memalign_hook&lt;span class=&quot;o&quot;&gt;)(&lt;/span&gt;size_t, size_t, const void*&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;’
/usr/include/malloc.h:183:39: error: ‘__memalign_hook’ has a previous declaration as ‘void* &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;* volatile __memalign_hook&lt;span class=&quot;o&quot;&gt;)(&lt;/span&gt;size_t, size_t, const void*&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;’
make: *** &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;libtcmalloc_minimal_la-tcmalloc.lo&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; Error 1
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR    -I. -fPIC -g -O2   -fno-defer-pop -fno-omit-frame-pointer  -c dl.c
In file included from dl.c:104:0:
callback.func:1:1: warning: data definition has no &lt;span class=&quot;nb&quot;&gt;type &lt;/span&gt;or storage class &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;enabled by default&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
callback.func:1:7: error: expected identifier or ‘&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;’ before ‘long’
In file included from dl.c:104:0:
callback.func:78:33: error: expected ‘&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;’ before ‘&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;’ token
callback.func:79:3: warning: data definition has no &lt;span class=&quot;nb&quot;&gt;type &lt;/span&gt;or storage class &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;enabled by default&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
callback.func:79:24: error: ‘proc’ undeclared here &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;not in a &lt;span class=&quot;k&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
callback.func:79:39: error: ‘argc’ undeclared here &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;not in a &lt;span class=&quot;k&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
callback.func:79:45: error: ‘argv’ undeclared here &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;not in a &lt;span class=&quot;k&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
callback.func:82:1: error: expected identifier or ‘&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;’ before ‘&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;’ token
dl.c:106:1: error: expected ‘;’, ‘,’ or ‘&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;’ before ‘static’
make&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;1&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;: *** &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;dl.o&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; Error 1
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;The fix is outlined in &lt;a href=&quot;http://stackoverflow.com/questions/6134456/error-while-installing-ruby-1-8-7-on-fedora-15&quot;&gt;this stackoverflow post&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Download &lt;a href=&quot;/assets/0001-archlinux.patch&quot;&gt;my patch&lt;/a&gt; and use it with:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;rvm install --force --patch 0001-archlinux.patch ree
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
	</entry>
	<entry>
		<title>using mutt, mu, offlineimap</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2011/08/26/mutt-mu-networkmanager" rel="alternate" />
		<updated>2011-08-26T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2011-08-26:/2011/08/26/mutt-mu-networkmanager</id>
		<content type="html">&lt;p&gt;I have long experimented with an optimal mail setup. As some readers may be aware there are a lot of &lt;a href=&quot;http://linsec.ca/Using_mutt_on_OS_X&quot;&gt;tutorials&lt;/a&gt; on how how to use mutt and offlineimap. I have had a mutt and offlineimap setup for quite a long time, however I decided to tune it a bit lately.&lt;/p&gt;
&lt;p&gt;Why mutt? There are numerous articles out there referencing more efficient email handling.  &lt;a href=&quot;http://inboxzero.com/&quot;&gt;Merlin Mann&amp;#8217;s InboxZero&lt;/a&gt; is quite popular.  The basic idea is to never let any mail unprocessed, don&amp;#8217;t show notifications and only check mails in certain intervals. If you use Apple Mail, you can use &lt;a href=&quot;http://www.indev.ca/MailActOn.html&quot;&gt;Mail Act-On&lt;/a&gt; which is quite nice as well. However mutt is much more efficient and flexible in it&amp;#8217;s mail processing capabilities. At the same time it&amp;#8217;s much faster than thunderbird.&lt;/p&gt;
&lt;p&gt;I had switched to thunderbird when I discarded my old hackintosh netbook, with it&amp;#8217;s slow Atom &lt;span class=&quot;caps&quot;&gt;CPU&lt;/span&gt;. The most annoying part to me it seemed, was the fact that it would always bug me with nagscreens when my laptops connection dropped. (and the power consumption)&lt;/p&gt;
&lt;p&gt;The offlineimap setup I use thus makes some use of NetworkManager to start and stop offlineimap and msmtpq when an internet connection exists.  First of all I have two offlineimap setups, both offlineimap setups create the mailbox folders for mutt automatically as described in the offlineimap manual.&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;general&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;accounts&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; Gmail
&lt;span class=&quot;nv&quot;&gt;maxsyncaccounts&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 1
&lt;span class=&quot;c&quot;&gt;# This will suppress anything but errors&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;ui&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; Noninteractive.Quiet

&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;mbnames&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;enabled&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; yes
&lt;span class=&quot;nv&quot;&gt;filename&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; ~/.mutt/mailboxes
&lt;span class=&quot;nv&quot;&gt;header&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;mailboxes &amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;peritem&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;+%(accountname)s/%(foldername)s&amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;sep&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;footer&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;\n&amp;quot;&lt;/span&gt;


&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Account Gmail&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;localrepository&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; GmailLocal
&lt;span class=&quot;nv&quot;&gt;remoterepository&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; GmailRemote
&lt;span class=&quot;nv&quot;&gt;autorefresh&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 10
&lt;span class=&quot;nv&quot;&gt;quick&lt;/span&gt;       &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 5

&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Repository GmailLocal&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; Maildir
&lt;span class=&quot;nv&quot;&gt;localfolders&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; ~/Mail/GMAIL
&lt;span class=&quot;nv&quot;&gt;restoreatime&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; no

&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Repository GmailRemote&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; IMAP
&lt;span class=&quot;nv&quot;&gt;ssl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; yes
&lt;span class=&quot;nv&quot;&gt;remotehost&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; imap.gmail.com
&lt;span class=&quot;nv&quot;&gt;remoteuser&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; fubar@gmail.com

&lt;span class=&quot;nv&quot;&gt;nametrans&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; lambda foldername: re.sub &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;.*Drafts.*&amp;#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;&amp;#39;drafts&amp;#39;&lt;/span&gt;,
                               re.sub &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;.*Sent Mail.*&amp;#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;&amp;#39;sent&amp;#39;&lt;/span&gt;,
                               re.sub &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;.*Starred.*&amp;#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;&amp;#39;flagged&amp;#39;&lt;/span&gt;, folder&lt;span class=&quot;o&quot;&gt;)))&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;folderfilter&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; lambda foldername: foldername in &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;.*INBOX.*&amp;#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;&amp;#39;archives&amp;#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;&amp;#39;pending&amp;#39;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Since I use the same hotkey for drafts and sent mail, I use nametrans to have these folders have a consistent name across all my mail accounts. The password for foobar@gmail.com is set in the .netrc file. Also this is the minimal sync setting for whenever I&amp;#8217;m on 3G or similar. Since my laptop has an internal wireless and ethernet device eth0 and wlan0 are what I use to assume that there is proper internet existing. NetworkManager will thus call my dispatch.d script which will in turn launch&lt;br /&gt;
offlineimap and msmtpq.&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;#!/bin/sh -e&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;INTERFACE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# The interface which is brought up or down&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;STATUS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$2&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# The new state of the interface&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;USER&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;misterfoo
&lt;span class=&quot;nv&quot;&gt;HOME&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/home/&lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;CACHE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/.cache/daemonize
&lt;span class=&quot;nv&quot;&gt;DAEMONIZE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr/sbin/daemonize
&lt;span class=&quot;nv&quot;&gt;OFFLINEIMAP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr/bin/offlineimap
&lt;span class=&quot;nv&quot;&gt;NOTIFY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr/bin/notify-send

&lt;span class=&quot;c&quot;&gt;# If the display variable is unset, find the correct display number&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# and set the variable.&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; -z &lt;span class=&quot;s2&quot;&gt;&amp;quot;$DISPLAY&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;fgconsole&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
    &lt;span class=&quot;nv&quot;&gt;dispnum&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;ps t tty&lt;span class=&quot;nv&quot;&gt;$console&lt;/span&gt; | sed -n -re &lt;span class=&quot;s1&quot;&gt;&amp;#39;s,.*/X(org)? .*:([0-9]+).*,\2,p&amp;#39;&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
    &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;DISPLAY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;:$dispnum&amp;quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;


&lt;span class=&quot;k&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;$STATUS&amp;quot;&lt;/span&gt; in
	&lt;span class=&quot;s1&quot;&gt;&amp;#39;up&amp;#39;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# $INTERFACE is up&lt;/span&gt;
		su - &lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt; -c &lt;span class=&quot;s2&quot;&gt;&amp;quot;$NOTIFY -i info &amp;#39;Network action&amp;#39; &amp;#39;Starting offlineimap&amp;#39;&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;$INTERFACE&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;eth0&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;$INTERFACE&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;wlan0&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;nv&quot;&gt;$DAEMONIZE&lt;/span&gt; -u &lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt; -l &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/offline_lock -p &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/offline_pid &lt;span class=&quot;nv&quot;&gt;$OFFLINEIMAP&lt;/span&gt; -c &lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/.offlineimaprc_full
		&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
			&lt;span class=&quot;nv&quot;&gt;$DAEMONIZE&lt;/span&gt; -u &lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt; -l &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/offline_lock -p &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/offline_pid &lt;span class=&quot;nv&quot;&gt;$OFFLINEIMAP&lt;/span&gt; -c &lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/.offlineimaprc
		&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
		&lt;span class=&quot;nv&quot;&gt;$DAEMONIZE&lt;/span&gt; -u &lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt; -l &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/msmtp_lock   -p &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/msmtp_pid   &lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/bin/msmtprun
		;;
	&lt;span class=&quot;s1&quot;&gt;&amp;#39;down&amp;#39;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# $INTERFACE is down&lt;/span&gt;
		&lt;span class=&quot;c&quot;&gt;# Check for active interface and down if no one active&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; ! &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;nm-tool|grep State|cut -f2 -d&lt;span class=&quot;s1&quot;&gt;&amp;#39; &amp;#39;&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;connected&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;			&lt;/span&gt;su - &lt;span class=&quot;nv&quot;&gt;$USER&lt;/span&gt; -c &lt;span class=&quot;s2&quot;&gt;&amp;quot;$NOTIFY -i info &amp;#39;Network action&amp;#39; &amp;#39;Stopping offlineimap&amp;#39;&amp;quot;&lt;/span&gt;
			&lt;span class=&quot;nb&quot;&gt;kill&lt;/span&gt; -TERM &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;cat &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/offline_pid&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
			&lt;span class=&quot;nb&quot;&gt;kill&lt;/span&gt; -TERM &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;cat &lt;span class=&quot;nv&quot;&gt;$CACHE&lt;/span&gt;/msmtp_pid&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
		;;
&lt;span class=&quot;k&quot;&gt;esac&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://software.clapper.org/daemonize/&quot;&gt;daemonize&lt;/a&gt; is a little tool for running any command as daemon. With pid- and lockfile support.  Since I use msmtp-queue to send mails and I may or may not want to send mails when I&amp;#8217;m offline msmtpq -r needs to be run whenever I connect to the internet. Msmtprun is just that, a script that tries to run msmtq -r once every 5 minutes.&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;#!/bin/sh&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; 1 &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
    /usr/bin/msmtpq -r &amp;amp;
    sleep 300
&lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;

&lt;span class=&quot;nb&quot;&gt;trap&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;echo -n exiting... ;kill $!;exit&amp;quot;&lt;/span&gt; INT TERM
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;A mutt config that should work in both linux and osx(with minor adjustments) can be found on &lt;a href=&quot;https://github.com/fishman/dot_files/tree/master/mutt&quot;&gt;my github page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also recently switch to using mu instead of mairix, it&amp;#8217;s much faster and more stable than mairix,&lt;/p&gt;
&lt;p&gt;You basically do&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;mu index --quiet --maildir ~/Mail
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;once and then add something like&lt;/p&gt;
&lt;p&gt;&lt;/notextile&gt;&lt;/p&gt;
&lt;p&gt;to your crontab. The reindexing is very fast in my experience. You can find the hotkeys I use in my hooks and &lt;a href=&quot;https://github.com/fishman/dot_files/blob/master/mutt/.mutt/macros&quot;&gt;macros&lt;/a&gt; and &lt;a href=&quot;https://github.com/fishman/dot_files/blob/master/mutt/.mutt/macros_static&quot;&gt;macros_static&lt;/a&gt; files on github.&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>Finally migrated to jekyll</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2010/10/15/migrated-to-jekyll" rel="alternate" />
		<updated>2010-10-15T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2010-10-15:/2010/10/15/migrated-to-jekyll</id>
		<content type="html">&lt;p&gt;I've finally jumped the bandwagon and migrated my blog to jekyll, takes a little to get used to, but I can't say I regret it.&lt;/p&gt;

&lt;p&gt;There are still some rough edges to fix like the tag cloud(a new layout wouldn't be such a bad idea either), but anyway it was about time I dumped mephisto.&lt;/p&gt;

&lt;p&gt;For some reason using pygments does not work with the auto refresh config option. It won't spit out an error, but it will just not properly render the page.  Also textile support with RedCloth has an issue with ruby 1.9.2.&lt;/p&gt;
</content>
	</entry>
	<entry>
		<title>Protonet webOS socket example</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2010/08/30/protonet-webos-socket-example" rel="alternate" />
		<updated>2010-08-30T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2010-08-30:/2010/08/30/protonet-webos-socket-example</id>
		<content type="html">&lt;p&gt;I&amp;#8217;ve just written a sample application for creating sockets in webOS applications. You can read the full blog post about it on the protonet homepage&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://protonet.info/post/1031949836/protonet-app-for-webos-creating-sockets&quot;&gt;http://protonet.info&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The source code for it is available on &lt;a href=&quot;http://github.com/protonet/webos-socket&quot;&gt;protonet&amp;#8217;s github page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Reza&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>Eeepc 1000he 10.6.4 update</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2010/08/30/eeepc-1000he-10-6-4-update" rel="alternate" />
		<updated>2010-08-30T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2010-08-30:/2010/08/30/eeepc-1000he-10-6-4-update</id>
		<content type="html">&lt;p&gt;If your backlight has an issue after waking up from sleep you probably need to add the following to your dsdt file:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;diff&quot;&gt;             }
         }
 
&lt;span class=&quot;gi&quot;&gt;+        Device (PNLF)&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+        {&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+                Name (_HID, EisaId (&amp;quot;APP0002&amp;quot;))&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+                Name (_CID, &amp;quot;backlight&amp;quot;)&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+                Name (_UID, 0x0A)&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+                Name (_STA, 0x0B)&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+        }&lt;/span&gt;
&lt;span class=&quot;gi&quot;&gt;+&lt;/span&gt;
         Device (PWRB)
         {
             Name (_CID, EisaId (&amp;quot;PNP0C0C&amp;quot;))
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;


&lt;p&gt;the full dsdt source code can be found on my &lt;a href=&quot;http://github.com/fishman/dsdt&quot;&gt;github&lt;/a&gt;
or just get the &lt;a href=&quot;http://github.com/downloads/fishman/dsdt/DSDT.aml&quot;&gt;compiled dsdt.aml&lt;/a&gt;&lt;/p&gt;
</content>
	</entry>
	<entry>
		<title>ctags with objective-c and css support</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2010/03/25/ctags-with-objective-c-and-css-support" rel="alternate" />
		<updated>2010-03-25T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2010-03-25:/2010/03/25/ctags-with-objective-c-and-css-support</id>
		<content type="html">&lt;p&gt;The default ex-ctags package does not support css or obj-c tags.&lt;/p&gt;
&lt;p&gt;I added the latest css and objective-c patches I could find to the current ctags trunk.&lt;/p&gt;
&lt;p&gt;You can find it on my github page &lt;a href=&quot;http://github.com/fishman/ctags&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>3G-Modding your eee 1000he hackintosh</title>
		<author>
			<name>Reza Jelveh</name>
		</author>
                <link type="text/html" href="http://reza.jelveh.me/2010/03/14/3g-modding-your-eee-1000he-hackintosh" rel="alternate" />
		<updated>2010-03-14T00:00:00-07:00</updated>
		<id>tag:flyingseagull.de,2010-03-14:/2010/03/14/3g-modding-your-eee-1000he-hackintosh</id>
		<content type="html">&lt;p&gt;As some of you may know I&amp;#8217;ve been using snow leopard on my eee 1000he for quite a while(You can still get the modded &lt;span class=&quot;caps&quot;&gt;DSDT&lt;/span&gt; I use on my system from my &lt;a href=&quot;http://github.com/fishman/dsdt&quot;&gt;github page&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s a list of items I got myself:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;a sim card(yeah, you&amp;#8217;ll laugh, I actually forgot about this part&amp;#8230; :P)&lt;/li&gt;
	&lt;li&gt;a 3G minipci card. i used an &lt;a href=&quot;http://www.option.com/en/support/software-download/modules/gtm378e/&quot;&gt;Option 378&lt;/a&gt; which is quite cheap. I will explain later&amp;#8230; Some people use a sierra wireless mc8775&lt;/li&gt;
	&lt;li&gt;a minipci socket, for example &lt;a href=&quot;http://de.farnell.com/jae/mm60-52b1-e1-r650/steckverbind-mini-pci-express-5/dp/1698821&quot;&gt;this one from farnell&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;a &lt;a href=&quot;http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;amp;item=350240598320&amp;amp;ssPageName=STRK:MEWNX:IT&quot;&gt;sim slot 8 pin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I won&amp;#8217;t cover the details on soldering the sim and minipci socket as it&amp;#8217;s explained on the &lt;a href=&quot;http://forum.eeeuser.com/viewtopic.php?id=69038&quot;&gt;eeepc user forum&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A word of advice before trying to solder the sockets onto the board. You might wanna scrape of the  surface of the solder pads on the mainboard first, as that will make it easier for you.&lt;/p&gt;
&lt;p&gt;As described on the &lt;a href=&quot;http://forum.eeeuser.com/viewtopic.php?id=69038&quot;&gt;forum&lt;/a&gt; post you&amp;#8217;ll need to short the 3.3V line the &lt;span class=&quot;caps&quot;&gt;USB&lt;/span&gt; lines and a fourth one for powering up the minipci socket aside from soldering the sim slot.&lt;/p&gt;
&lt;p&gt;The images below are a courtesy of dementho from the eee forums:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/images/3g/usb33.jpg&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;/images/3g/simsock.jpg&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;/images/3g/shortli.jpg&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;/images/3g/pcic.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The real issue arose when I actually tried to initialize the card in MacOS. Turns out the Option cards start in ZeroCD mode and need to be initialized in modem mode prior to be usable. Well, normally you would just install the driver and be done with it but not so with normal unlocked GTM378 cards you buy on ebay.&lt;/p&gt;
&lt;p&gt;y GTM378 card came with an old firmware. So the vendor id was 0&amp;#215;5c6(qualcomm) and product id 0&amp;#215;1000, whereas the vendorId should be 0&amp;#215;0af0(Option NV). Naturally the Globesurfer 7.2 osx drivers don&amp;#8217;t work with this device. Not even if you hardcode the product and device id into the drivers plists.&lt;/p&gt;
&lt;p&gt;The solution is to debrand your GTM378 by finding the superfire firmware of any GTM378 card and patching it to accept your card as target. That is Globesurfer &lt;span class=&quot;caps&quot;&gt;ICON&lt;/span&gt; 7.2 and a whole bunch of others. &lt;a href=&quot;http://www.flyingseagull.de/assets/option_superfire.exe&quot;&gt;The firmware I have here is 2.5.11hD I think.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enable logging in the updater:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;  8.144: CPagePreparation::Do, Zaltys detected properly
 14.618: CPagePreparation::Do, product:  GlobeSurfer ICON 7.2 E.
 14.618: CPagePreparation::Do, code:  MO0201-10959.
 14.618: CPagePreparation::Do: unsupported card &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;MO0201-10959&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;.
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;O0201-10959 is your target. search for&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;5400610068006f006d0061
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;which is essentially Tahoma in hex. The second occurance should lead you to your target. See below:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/images/3g/winhex.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Open the installer in a hex editor and write your card id in the installer. &lt;a href=&quot;http://www.flyingseagull.de/assets/option_superfire.exe&quot;&gt;I uploaded the firmware here.&lt;/a&gt; That should allow you to upgrade your card without problems. After that you can download the snow leopard drivers from the &lt;a href=&quot;http://www.option.com/en/support/software-download/usb-modems/icon225/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;ICON&lt;/span&gt; 225 support page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ironically they work fine with the GTM378 and fix a lot of issues the GTM378 and &lt;span class=&quot;caps&quot;&gt;ICON&lt;/span&gt; 7.2 drivers have(since they&amp;#8217;re essentially the same just newer).&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;HTH&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8230; as for me, I&amp;#8217;m enjoying the 3g mod on my hackintosh!&lt;/p&gt;




</content>
	</entry>
</feed>

