0xwalkingice.blogspot.com
Hacking by Walkingice: 2011/09
http://0xwalkingice.blogspot.com/2011_09_01_archive.html
Tmux split window in current directory. I use tmux to instead of gnu-screen due to tmux supports vertical window splitting. There are many common question such as 'How to create a new window in the current directory'. Here are some simple how-to, inspired by tmux FAQ. 1 Preparing - set environment variable by PS1 in shell. Add this line to your .bashrc. PS1='$([ -n "$TMUX" ] & tmux setenv TMUXPWD $(tmux display -p "#I") $PWD)${debian chroot: ($debian chroot)} u@ h: w $ '. Caution: I prefer Ctrl-a h.
0xwalkingice.blogspot.com
Hacking by Walkingice: 2012/08
http://0xwalkingice.blogspot.com/2012_08_01_archive.html
Change directory helper function. I wrote an article about it long time ago, now I write again to avoid lost my function. If you are working in a big project such as Android, you will find that changing directory in a deep tree is painful. Try adding this function to /.bashrc. Num=$1 test $1 num=1 seq=`seq $num` next=`printf './%.0s' {$seq}` cd $next ls }. Suppose you are at /home/foo/L1/L2/L3/L4. Will go to L3 $ . 2 # will go to L2 $ . 3 # will go to L1 $ . 100 # will go to /. 張貼者: Walkingice Chu.
0xwalkingice.blogspot.com
Hacking by Walkingice: 2010/09
http://0xwalkingice.blogspot.com/2010_09_01_archive.html
You might googled this article with the same reason I had. Days ago I updated my Ubuntu9.04 to Ubuntu10.04 and really enjoy it. There are sort of things annoy me - the notification at the corner displays TOO LONG. To put the question simply: You cannot change the displaying period of notification. It is very like SMS and Phone Call. When you get a SMS message, your mobile just beep for one second. But phone calling keeps shouting until 30 seconds pass or pick up your phone. According to my experience of ...
0xwalkingice.blogspot.com
Hacking by Walkingice: Android Clickable Span in TextView
http://0xwalkingice.blogspot.com/2012/04/android-clickable-span-in-textview.html
Android Clickable Span in TextView. Note: You could find chinese version in my chinese blog. Brings lots of possibility to TextView. Includes displaying various appearance of a Text and onClick callbak. The normal way to make a TextView clickable is to use View.setOnClickListener. It sets a callback listener to the whole view. What if we just want to add callback to a substring of a text? The sub-string has variant color. The sub-string is clickable. We can understand Span. SpansetSpan(new MyClickableSpa...
0xwalkingice.blogspot.com
Hacking by Walkingice: 2010/10
http://0xwalkingice.blogspot.com/2010_10_01_archive.html
Ubuntu wifi connection randomly disconnect. I am using Ubuntu Linux 10.04 but had this annoying problem since Ubuntu 9.04. When I am at some place and use particular Access Point, the Wifi connection on my laptop randomly disconnect. Although I reboot laptop, reconnect to wifi, it still disconnect in less than one minute. Image that, you open browser and enter gmail, click first unread mail then you lose connection. That repeat 100 times in one hour. Gosh! Here is the workaround. View my complete profile.
0xwalkingice.blogspot.com
Hacking by Walkingice: 2013/08
http://0xwalkingice.blogspot.com/2013_08_01_archive.html
Configure shortcuts for Rhythmbox in Awesome WM. Well, I switched to use Awesome as my window manager several days ago. (goodbye gnome shell). I used rhythmbox to play music, so this is my shortcuts. If you get the error message, do not forget to enable MPRIS D-bus Interface. Plug-in in Rythmbox settings. Rhythmbox-client:15057): Rhythmbox-WARNING * : MPRIS D-Bus interface not available, some things won't work. 張貼者: Walkingice Chu. Subscribe to: Posts (Atom). View my complete profile.
0xwalkingice.blogspot.com
Hacking by Walkingice: 2013/06
http://0xwalkingice.blogspot.com/2013_06_01_archive.html
Trac cannot log in. Yesterday I upgrade my trac-accountmanager to 0.4.3 on my Debian laptop, then I cannot log in anymore. The problem occurs due to configuration changing. Turn of debug log you will see. Trac[htfile] ERROR: acct mgr: check password() - Can't locate password file ". Just edit your trac.ini. Htdigest realm = your realm password file = /path/to/htdigest password store = HtDigestStore. Htdigest realm =your realm htdigest file = /path/to/htdigest password store = HtDigestStore.
0xwalkingice.blogspot.com
Hacking by Walkingice: 2012/04
http://0xwalkingice.blogspot.com/2012_04_01_archive.html
Android Clickable Span in TextView. Note: You could find chinese version in my chinese blog. Brings lots of possibility to TextView. Includes displaying various appearance of a Text and onClick callbak. The normal way to make a TextView clickable is to use View.setOnClickListener. It sets a callback listener to the whole view. What if we just want to add callback to a substring of a text? The sub-string has variant color. The sub-string is clickable. We can understand Span. SpansetSpan(new MyClickableSpa...
0xwalkingice.blogspot.com
Hacking by Walkingice: Gnome-shell makes things tough
http://0xwalkingice.blogspot.com/2012/06/gnome-shell-makes-things-tough.html
Gnome-shell makes things tough. That is my murmur in google. Debian Testing is my distribution of choice, last night it upgrade gnome-shell from 3.2 to 3.4. The good thing it provides 'fixed workspace number' in settings. The bad things I loose all my 'shorcut key binding'. I have to reconfigure my working environment this morning to get things work, includes digging in extensions.gnome.org. I do not use a computer for using computer itself. But I do use computer for finishing some works in my life.
SOCIAL ENGAGEMENT