Random ...
 
February 2010
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28            
Tags ...
Links



Linux++:::: Bits and Pieces: stuff for ref later
Posted at 28.Jan,2010 13:03  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Installing new paravirtualize guest on xen host:

  virt-install -p --accelerate --name x --ram 1000 --file /home/x/x.img --file-size 80 --nographics --location http://192.168.1.10/iso

Reading excel files:

  from xlrd import open_workbook
  wb = open_workbook('nyxls.xls')
  sheets = wb.sheets()
  sheet1 = sheets[0]
  sheet1.nrows #number of rows avail
  sheet1.ncols    #number of columns

  #and lots more methods that will help in reading xls
  #for writing xls, get xlwr

Gammu works with Huawei E220.

Here's my .gammurc:

  [gammu]
  port =/dev/ttyUSB0
  connection = at
  #connection = fbus
  #synchronizetime = yes
  logfile = 
  logformat = nothing
  #use_locking = yes
  gammuloc = 

Now we can do stuff with E220; e.g gammu --identify

But more fun to script things in python, so get python-gammu

Here's how to send sms:

  import gammu, time
  sm=gammu.StateMachine ()
  sm.ReadConfig ()
  sm.Init()
  smsc=sm.GetSMSC()
  msg='msg in a bottle'

  d={}
  d['Text'] = msg
  d['SMSC'] = smsc

  f=open('/tmp/numbers').read().split('\n')
  for i in f:
      d['Number']=i
      time.sleep(1)


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/244/tbping 

Life and all the rest:::: W0W!
Posted at 26.Jan,2010 22:18  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Well, thought of moving to posterous, then tumbler, but I think why move.

So, back to where it all started.

Briefly:

  • now on f12. upgraded from f11 without any problem
  • chrome on linux (beta)
  • zope2
  • nginx
  • new sites with fb connect. soon add gfc?
  • raiders still suck, well jaMarcus sucks. and vikings and farve lost nfc championship.

More to come.

p/s - probably will move to a new server soonish.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/243/tbping 

Linux++:::: Chromium on fedora 11
Posted at 25.Jul,2009 20:42  Comments 2 / Trackbacks 0 / Like this post!
Technorati tag(s):

Here's how to get chromium on fedora 11 (or other distros)

Follow the steps here

in a nutshell:

  • get the latest build
  • unzip, mkdir lib
  • symlink a few libs
  • export LD_LIBRARY_PATH=path/to/chrome/lib:$LD_LIBRARY_PATH
  • ./chrome

we're done.

screenshot

And yeah, it's fast. Compared to ff3.5? no idea yet.

Resource hog? no idea yet.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/242/tbping 

Linux++:::: Fedora 10 -> 11: not in a jiffy
Posted at 24.Jul,2009 15:08  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Got some time to myself and decided to upgrade my fedora 10 to fedora 11.

Big mistake. Upgrade has not been good for me; from f9 to f10. And now from f10 to f11.

The upgrade from dvd process went well. It's what happened after rebooting.

X don't work. So thought I'd do a yum update. Met ith "cannot import yum module".

Great. Realized that there were two python versions and python2.5 has everything intact. So:

  export PYTHONPATH=/usr/lib/python2.5/site-packages

Now yum worked. yum update pulled in 900+ packages ! (well that was my fault for installing lotsa stuff)

When yum finished, rebooted and was met with a blank screen.

Dang. Guessed that grub was screwed. Booted to rescue mode, ran grub-install, and rebooted again.

At last. Now everything works (I hope).

So, fresh install next time? I doubt it ;D

p/s - f11 dual monitor setup works :

  xrandr --output VGA1 --left-of LVDS1

Haven't yet booted with bootchart to compare boot time between f10 and f11.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/241/tbping 

Life and all the rest:::: lost + found
Posted at 06.Jul,2009 22:19  Comments 0 / Trackbacks 0 / Like this post!

Early July bummer. Two friends left the workplace, one for greener pasture, while the other because time is a factor.

Both affected me deeply. One interviewed me, hired me, taught me and trusted me with the network and system for the company.

The other I interviewed, hired, taught and trusted with the development of web sites and servers.

Hopefully the loss is just work, and we be friends forever.

It's easier nowadays to keep in touch. Let's do.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/240/tbping 

Linux++:::: mscosconf: afterthoughts
Posted at 05.Jun,2009 22:56  Comments 2 / Trackbacks 0 / Like this post!
Technorati tag(s):

Had a blast attending mscosconf. Met online only friends. Now real life friends.

Met noted speakers; @anthonybaxter, dibona, @benbalbo, mark rees aka @hexdump, bsd guys and learned quite a lot.

Hackathon day - went to security track with mahmud. Too many bodies with no notebook. Not good.

Went to mostly developer tracks. However, not all developer tracks are tech enough, methinks. Some are too introductory.

Liked the always full of energy azrul talk; friendly jab with low in the django track and more.

Attend a few community tracks; one with @gen, one with zonestraits (salute)

Skipped most of the executive tracks, except for the security track.

The food was so-so. Didn't eat that much.

Some things that could do better. Note that it's easy to complain and not do anything about it. Sorry that I can't do anything about it (i.e help)

I think it's ok to have closed source stuff at the conference, but as @yoonkit put it , it'd be better if the end result is for the better OSS.

In the spirit of OSS, I think all, if not most (99.999%) services should be using OSS, web servers, office suite, etc, etc. Otherwise, we really missed the point.

With that, although osdc.my runs joomla, I think opensocial (+1) would be a better choice, or the very least google friend connect (+1/2), to socialize a web site. Making use of Facebook connect: +-0

Maybe it's not too late yet? Since the site is meant for developers, maybe a sandbox to try and put opensocial/google friend connect?

Maybe organizer could arrange a number of tutorials (1-2 hrs) during the hackathon day for future conference.

All in all, looking forward to the next conference.

benbalbo + anthonybaxter lightning talk

p/s - Here's the link to the slides I use for the lightning talk: zope2 in 5 mins

For a first time lightning talk, I guessed I did so-so. :P


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/239/tbping