Tuesday, January 4, 2011

personal reminder: rfkill to toggle bluetooth

toggling bluetooth (on a Lenovo ThinkPad X200s / Ubuntu 10.x) via rfkill:
rfkill list
rfkill block 0
rfkill unblock 0

Sunday, November 28, 2010

Online Tasks Service for Thunderbird/Lightning

Thunderbird/Lightning has been working with Google Calendar for a while now [cf. link]. however, Tasks are not supported as can be seen in this thread and also here.

now, is there another service for Tasks available?

for some time i have been using Chandler but with recent developments TB/Lightning+Chandler stopped working (and they haven't quite figured out who's to blame...).

ironically, Yahoo comes to the rescue: following this post and going further here Tasks with Yahoo actually work.

Friday, October 15, 2010

Reverse Tethering an Android Phone via USB

until recently i was stuck with a stock android 1.6 - and USB tethering was somewhat adventurous (Tetherbot was an option, connectbot another... both worked best, i.e. without restrictions, when there was a VPN tunneled 'over' either of them.) 

android 2.2 comes with USB tethering: in 'Wireless & network settings' - just need to turn it on... and a network interface will be 'exposed' via USB, network-manager (e.g. in ubuntu) will show the new device, and go.

now, this set-up can also be used the other way around (i.e. use the computer's internet connection the mobile is connected to). however, android's ConnectivityManager does not recognize this connection in such a way that services like Contacts Sync would get going.

startUsingNetworkFeature() in http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/ConnectivityService.java will choke on android.net.NeworkInfo.isAvailable():
D/ConnectivityService( 166): getMobileDataEnabled returning true
D/ConnectivityService( 166): special network not available

...let's see.

Tuesday, August 10, 2010

aptitude or apt-get - only update security updates

two quick possibilities to update security updates only (via apt-get and/or aptitude in debian, ubuntu, ...):
  1. uses a dedicated sources file: http://www.debian-administration.org/articles/241#comment_20
  2. uses a search pattern: http://ubuntuforums.org/showpost.php?p=9161314&postcount=3



Wednesday, May 19, 2010

Android Market on SDK/Emulator

wanted to use an android emulator to grab a screenshots of google goggles but had to realize - as many before - that the Android SDK comes without 'the Market.' a possible solution is described here: Android Tips for Developers: Android Market on Emulator; at least, for the 1.6 system it worked for me (however, i had to grab the ADP1 image as mentioned in this comment.)

Friday, December 18, 2009

instead of 'head | tail' to delete the first lines of file

from the tail man page:
-n, --lines=N
output the last N lines, instead of the last 10; or use +N to output lines starting with the Nth
...note the +N option!

Monday, November 16, 2009

How to access Time Machine files from Linux

here a crude helper to restore a 'Time Machine.app' backup on a linux system (well, a non-OSX system...)

starting from How to access Time Machine files from Linux the steps are somewhat automated.
ARG1: directory from where to descend and restore files
ARG2: destination directory
ARG3: directory whith the dir_* files
eg.:
sudo restoretmbackup.py /media/osxbackup/Backups.backupdb/nikki/Latest/nikki foo/ /media/osxbackup/.HFS+\ Private\ Directory\ Data^M
(you might not need to sudo...)

Friday, July 24, 2009

git via http proxy

it is supposed to work-like-a-charm - git via a http-proxy - but then again, sometimes it just doesn't.
in case, changing git clone git://... into git clone http://... does not help this might:
socat TCP4-LISTEN:9418,reuseaddr,fork \
PROXY:proxy.hostname.dom:gitrepo.host.dom:9418,proxyport=3128 &
git clone git://localhost/GITREPOPATH
references:

Friday, May 1, 2009

cpan does not work - Undefined subroutine &Compress::Zlib::gzopen

while running cpan on a more-or-less out-of-the-box CentOS 5.2 with Perl updated to version 5.8.8 the following error occurred:

Fetching with LWP:
ftp://bo.mirror.garr.it/mirrors/CPAN/modules/03modlist.data.gz Going to read /home/egon.stemle/.cpan/sources/modules/03modlist.data.gz Undefined subroutine &Compress::Zlib::gzopen called at /usr/lib/perl5/5.8.8/CPAN.pm line 5721.

suggestions from here helped finding a solution. however, i did not want to and could not delete things from system paths... so, problem solved without deleting things in /usr/lib/...

the following modules are needed:
IO-Compress (2.017), which itself depends on two packages
Compress-Raw-Bzip2 (2.017)
Compress-Raw-Zlib (2.017)
Scalar-List-Utils (1.19)

...and then installed manually.

you need to have working local, aka. user-modules, configured, i.e. perl should look for and install modules into a directory you have r/w permissions; e.g. ~/usr (cf. this link for some hints on how to get started)

start with the Scalar-List-Utils: untar, cd into and
PERL5LIB=~/usr/lib/perl5/5.8.8:~/usr/lib/perl5/site_perl/5.8.8 perl Makefile.PL PREFIX=~/usr -xs make make test make install (you can also give the PERL5LIB path as option -I to perl - or not at all if you are really sure your local set-up is wokring...)

continue with the dependencies for IO-Compress and then IO-Compress itself.

if you want to be on very safe side you may recompile all dynamically loaded modules with
cpan -r (this will take a while - and will install many modules as a local version... watch your quota!)

anyways, afterwards i could happily use cpan to install my two(!) missing modules...
Blogged with the Flock Browser