Downloading Wikipedia

Having a offline wikipedia has been in mine and my friends thoughts for
a long time. Got to do something about it.

Public Samba Share

I had a requirement to setup the samba share in a way that it does not
prompt for username and password. Some photos had to be shared across to
a wide group and I wanted to share the CD mounted on my system.

Google for setting up a "Public Samba Share", you will get lots of
discussions. This article finally helped.
Apart from your share configuration like:

#/etc/samba/smb.conf
[public]
comment = Public Campusnet Shares
browsable = yes
path = /data/pub
public = yes


Have these in the [global] section.


[global]
#...
guest account = nobody


Which defines the account to use when authenticating guests. Don’t forget to create this user using


# smbpasswd -an nobody


This will create the user with no password.

Now we have a perfectly valid Samba setup with a public share, but every time a user wants to access this share as a guest, he will have to do so by logging in as “nobody”. To complete our setup and imitate Windows behaviour, add the following line to the smb.conf global section:


[global]
#...
map to guest = bad user

RSS Feeder .NET

Finally an RSS Feeder,which using effectively. Its
RSS Feeder
.NET
.

The way I manage my mails is, I have two folders in OUTLOOK, one for
Internal and another for External.I download the mails to my
local system and read it offline at home also.
So, OUTLOOK is the software, I use major part of the day and have a
setup to work offline.

RSS Feeder .NET does both.


  • Integrates with Outlook.
  • Downloads the posts, to read offline.


Isn't it helpful?

Hello, GPRS

I am posting this via my Nokia 6600 connected via GPRS.
Trying this for the first time and its very interesting.

scrmabled

scrmable.py

Tihs is a pelicaur pproetry that if the fsirt and the lsat ltteer of the wdros rmiean the smae, and the rset is scbelmard, then you mhigt siltl be able to ierreptnt it. Tihs is very fnnuy. :-)


Inrpeisd from jwz scrmable: http://www.jwz.org/hacks/scrmable.pl

How do you manage multiple passwords?

Hi,
I have a question. How do people manage multiple passwords?
I for e.g, have same for many sites which I dont mind losing.
Different passwords for serious ones:
- Admin account for my office comp.
- Citibank account.
- Airtel bill payment.
- Different TPIN
- etc..

but many a times my passwords are within a group which I use.
My problem is, I often forget passwords if I employ a new one.
For e.g I forgot the Airtel site password again yesterday and did the forgot password thing ( this is the third time). I have lost citi TPIN as I have never used it.

What your ways of userid/password maintainence?

Annoucement- pyljvim-0.0.3 Released.

pyljvim is a a Livejournal Plugin for Vim. One can post to the Livejournal directly from vim! :)
Just as I am posting this entry from vim.
It is available at: http://www.vim.org/scripts/script.php?script_id=1724

Installation is pretty easy and so is the usage.

Thanks,
Senthil


Contemptuous lights flashed across the computer's console.
-- Hitchhiker's Guide to the Galaxy

So, posting from vim Successful

So, I can successfully post a complete entry to LJ from vim. This is using a python utility called pyljvim. It loads up the LJInterface for the post and when run LJPost, calls a python script which takes up the interface and contents and publishes it to Livejournal. Simple is'nt it?
Okay, I did not write it. I was searching and found it in the deep web. I think it was not working as well. So I fixed it,made it work and after analyzing various failures on windows due to file enconding issues with vim and cmd.exe, I decided to drop the encoding support on windows and its finally working now.

Okay, todays highlight then!

TLPC


TLPC stands for Ten Laptops Per Child. V4Vijaykumar is the mind behind this concept as he finds OLPC is not the optimum yet and prices can be further reduced!

Join the TLPC discussion group if you wish to discuss on Ten Laptops Per Child concept ( not the initiative,remember!).

Posting from vim

I am posting this entry directl

read at /.

The following comment on lisp from /. attracted my interest.

An ideal world would run on LISP...


It's amazing and somwhat sad that programming languages and runtime environments from Smalltalk to Java to Python to C#/.NET keep reinventing the wheel while a language from the 1950s has it all and does it even better - the most elegant syntax thinkable, powerful paradigms for code reuse, dynamic typing, modern memory management with no buffer overflows, and, with Common Lisp, one robust, industrial-strength language with a rich standard library that can both interpreted and compile code, obsoleting the difference between "programming" and "scripting" languages...

It was discussion on Practical Common Lisp book.

Quote of the day

not wanting to solve a problem is a pretty lousy problem-solving strategy, really.
~Fredrik Lundh
. I was at the receiving end of this quote at comp.lang.python.

Article on Maths

jwz posted an entry on Maths for Programmers. That article is a very insightful. It analyzes how maths can be useful to any programmer at any time. We have all lost touch of basic mathematics and need to gear up. His suggestion is Maths should be learned breadth-first and not depth-first, as knowing different mathematical solutions we come to know about which section the problem belongs to and we might approach it correct. Another suggestion for all of us is to start with any math section at wikipedia and follow it till we understand it and do it daily.
Anyway, that article is a good read.

cvs co problem with Fedora Core 4

When I was trying checkout a module using cvs on Fedora Core 4, using the ext method.

cvs -d:ext:user_name@hostname:/repository co module

It was taking a long time and tried with

Trying krb4 rsh...

And connection was timing out.
This was strange, Fedora was trying with login with RSH instead of SSH. I remember it used work without doing any modifications, later remembered it was RHEL3 and not FC4.
With FC4, you will have to set the CVS_RSH=ssh explicity
In the .bash_profile

CVS_RSH=ssh
export CVS_RSH


Now it should work. Thanks to this post.

ReactOS

Freesoft Windows based Operating System.Well, thats React OS for you. I tried the live-CD of React OS today and I am coompletely amazed by it. React OS is celebrating its 10 years of development. Have a look at site, find the mention of binary compatiblity of the drivers and applications of Windows operating systems.Got to remember that React OS is not Production Stable yet, but still it is very nice work.

Gimp on Windows

I am using GIMP on Windows and it rocks!. Thanks to this guy.

Be bold in editing...

Be_bold

Wikipedia suggests a editing guideline,i.e
"Be bold in updating pages". I guess, that should one guiding principle to follow if we have to become an active person in any community. The second point ofcourse states 'don't be reckless.

enumerate function in python; pyTip

When looping through a sequence, the position index and corresponding value can be retrieved at the same time using the enumerate() function.



>>> for i, v in enumerate(['tic', 'tac', 'toe']):
... print i, v
...
0 tic
1 tac
2 toe

pydoc humor

Attributes may be read-only or writable. In the latter case, assignment to attributes is possible. Module attributes are writable: you can write "modname.the_answer = 42". Writable attributes may also be deleted with the del statement. For example, "del modname.the_answer" will remove the attribute the_answer from the object named by modname.

Python QnA

Q) How do you reverse a string in python?

A) str = "Senthil"
str[-1::-1]
Using the slicing operator which takes three arguments.

Trip on the funny boat

Trip on the funny boat is an excellent game written in python. Stumbled upon this at www.pygame.org. You would need Python,Pygame and Numeric to run this game. Its really enjoyable and it brought a smile in my face when I played it for the first time. :) This was my first trial with pygame as well.
Kudoes to the developers of this wonderful game.

Looking for an ICS Server download

We are conducting a Chess Tournament in our Office. We cannot make a TCP connection to the any ICS ( Internet Chess Server). I have decided to run a Chess Server Locally so that people using Xboard can connect to it.

I need links to where I can download good Internet Chess Software Server.

chessd program at sf.net had problems compiling for me.

Any good pointers for me to look?

Todo list plugin for vim

I have been looking out for one like this for vim, this was a todo list which the author had designed according his favorite book 'getting things done'. Let me see how helpful it can be. The idea is good though.
If you stumble across any interesting todo list maintainers and how you use them, please share it with me.
I am right now using google applet.

Todo list for vim:
http://www.vim.org/scripts/script.php?script_id=1566

Picasa for Linux

I have heard people using Wine and crossover office, but never seriously considered it with the outright thought that it will be slow.
Read this post on Picasa for Linux
Have good enthusiam to try it!. The download seems unavailable.

Programming via voice


" VoiceCode is finally in a state where people can use it to do real work in Python and C/C++," says the NRC's Alain Désilets. "The system is still fairly hard to install, but the development team believes users will find the effort worthwhile."

Article.

Bjarne's paper on

Learning Standard C++ as a new language. focuses on explaining the whats going underneath when you are using Standard C++ to bring efficiency, which user has to take care when using C.
He also encourages to learn C++ as a language and use the facilities provided by the language and library maximum. Don't fall into or go by the C approach.Yeah, we often find this in many of his papers and teachings. His books start with explaining about vectors in the first chapter itself. Says learning C as subset of C++ does not help.
Encourages to use the Standard Libraries to the maximum extent and when ever possible. For that we need to get to know and learn the methods provided by the Standard library.
Look it different, a good programmer in C++ would be coding in the similar way as programmer in python or java? Its just that some of us from C, want to use the C++ that way?

Bruce Schneier 's Movie Plot Threat Contest.

Bruce Schneier's Movie-Plot Threat Contest


"
It is in this spirit I announce the (possibly First) Movie-Plot Threat Contest. Entrants are invited to submit the most unlikely, yet still plausible, terrorist attack scenarios they can come up with.

Your goal: cause terror. Make the American people notice. Inflict lasting damage on the U.S. economy. Change the political landscape, or the culture. The more grandiose the goal, the better.
"


Entries close at the end of the month -- April 30.
--
http://www.schneier.com/blog/archives/2006/04/announcing_movi.html

Just joined vim testing

Vim's my favorite editor. Just downloaded the Vim 7.c Beta and joined the testing club.
You too can try vim 7.0. Noticed the tabbed file editing facility.

Updated my home page

Updated my homepage today.

Updated my gpg keys

1) Changed the expiration of my primary subkey to never.
a) --edit-key user-id
b) key 1 ( to select sub key, 0 selected the main one)
c) expire and in the menu based interface select none
2) Changed the comment in my user id. Its now just
a) --edit-key user-id
b) adduid (add the new user id to the liking)
c) uid 0 ( select the old userid)
d) deluid ( will prompt you to delete the previous one)

I have my public key here and also uploaded to the keyservers. I am fine with any secure communication.
Key ID: 0x4C88D59C
Fingerprint:6C8E 0A4A 64BF 9C70 6034 FD5A 1931 DE09 4C88 D59C

FireFox


firefox.jpg

Stumbled across this interesting photo.! :)

read a file line by line in python

Its real easy:

import os
file = open('File.txt','r')
for line in file:
print line

I was strugling with using readline() and going through a while loop with while file.readline() != ' ' under the assumption that and empty string is returned at the end of file. (Where did I find this?) Well online docs say

f.readline() reads a single line from the file; a newline character (\n) is left at the end of the string, and is only omitted on the last line of the file if the file doesn't end in a newline. This makes the return value unambiguous; if f.readline() returns an empty string, the end of the file has been reached, while a blank line is represented by '\n', a string containing only a single newline.

How do I match against the empty string at the end-of-file or EOF character? while != ' ': does not stop and keeps hanging a the last position of the file got by tell() method.

Center Google box CTRL CTRL vs ATEN kvm switch

The new Google desktop search has a center box which is always available and it sits on the desktop background. To invoke it anytime you got to do CTRL-CTRL
The problem is, this keystroke is not configurable,atleast by the options provided and I use those keystrokes to switch the display between by machines attached to KVM. CTRL-CTRL is default way to toggle between nodes in the ATEN KVM Switch.
Neither is configurable to a different hot-key combination.

Error loading stylesheet: (null)

Error loading stylesheet: (null) was being displayed when tried to load the xml document with firefox on linux. The same was being displayed properly by IE and Firefox on Windows.
Hunted and found the following help.

1) Fixing the MIME System of RH 4.
2) Mozilla XSLT FAQ. When changed the MIME type to application/xml at source xml and firefox finally understood.

TODO:
- Learn about MIME. Got Andy Tanenbaum's CN. Might start from it.

elinks and elinks.conf

I am a fan of text based browsers and have noted lynx,links and elinks. I had found lynx more key-board bound and presenting much easy UI. elinks needed much of configuration.
Today found sometime to configure elinks options to suit my taste. (It now gels more with the terminal colors than having the default white background for everything.) I have saved it here: elinks.conf. Would like to use elinks more often now. :)

Noticed the page on how Pixar does it

How Pixar Does it.. I was looking for some good cartonic wallpapers.

College finals from Hell

Stumbled across this funny questions link.

New Python website goes live

Noticed the new python home page at www.python.org going live today!
Impressive indeed! There some good number of changes from last beta.python.org I had observed.
Kudoes to the design team.

Sardar and Political Integration of India

Myself and Avi watched Sardar today. The movie deals with the historical subject of Political integration of India and Sardar Vallabhai Patel's hand in the unification of India. Its a serious and an intense movie, shows the happenings, urgency of decisions during the partition times. One gets to know Sardar Patel as tactful,strong leader and very good negotiator as well.

xml file editing using vim

xmledit filetype plugin should be of enormous help for editing xml with vim.

It provides:

- xml tag autocompletion at the close of the tag > and if pressed >> brings the closing tag to a newline and places the cursor in in the middle line between the opening and the closing tag.
- visually select a portion of text and then x would prompt you enclose it with custom tag and attributes.
- % matches of a tag(?) Should this be helpful? But anyway it should be configurable to match the tags instead.

xmledit with xmllint should be enough I guess to use vim as my xml editor.

Linux Distribution Chooser

Linux Distribution Chooser helps you choose the Linux Distro that would be suitable for you.
Gave Slackware and Gentoo for me. I have never used them for anything more than experimental purpose. So far, feeling confortable with Fedora Core only.

zipping

I am finding it difficult to use Winzip on windowz to Zip a folder which contains a sub-folder.

The Right Click Menu Add to Zip creates a zip (final) of folder(1) and sub-folder(2) as two separate items.!

While on Linux I discovered that if you tar cvf filename.tar directoryname/* it will mangle the files in directory and You had to use as directoryname only.
For zip, its zip zipfilename file1 file2 and when file1 is a directory you got to use directory/*
Updated:
Just read the man zip.zip -r foo foo was what I was looking for.

cvs over cygwin

I had been struggling to use cvs to update some scripts using eclipse and wincvs. I had the thought that as they are GUI based, they might be more helpful for starter. with all kinds of failures, I was not able to figure out what the problems were. The same cvs account worked from eclipse on Linux box, but the windows box cribbed with error = -2 or something like that.
Finally, I thought of giving a try with cvs commands from the cygwin installation.
Yeah, I have not yet studied the cvs manual, but I come to know that login is possible only with pserver and not to ext.
b) you can checkout the project modules only from the tree.
c) cannot download a subdirectory only from that module.
c) To add a file to a subdirectory in the module. go to the local folder in the module which has the new files and then do a add and commit. This will add those files to the corresponding sub-folder inside the module at the cvs repository.

this is how I use:

cvs -d :ext:@: co
cd /
cvs -d :ext:@: add file
cvs -d :ext:@: commit file

so, just started. hope to get more grip soon.

comics-grabber

me is happie after making the comics-grabber work through the proxy at office. Was trying with the urllib2 + proxyhandler as it not working.

urllib2 with proxy


import urllib2

proxy_info = {
'user' : 'username',
'pass' : 'password',
'host' : "proxy",
'port' : 80 # or 8080 or whatever

}

# build a new opener that uses a proxy requiring authorization
proxy_support = urllib2.ProxyHandler({"http" : \
"http://%(user)s:%(pass)s@%(host)s:%(port)d" % proxy_info})
opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)

# install it
urllib2.install_opener(opener)

# use it
f = urllib2.urlopen('http://www.python.org/')
print f.headers
print f.read()


TODO:
- Check how to open it in browser?
- patch to comics-grabber for proxy support. Man! I had a need for this for a long time.

All my arguments are wrong

How about having this as a default thought in my mind and then carry on with work.
All my arguments are wrong.

Darwin's Birthday.

I knew from the Calendar
Interesting to find that slashdot that people are celebraing Darwin's Birthday!
But more on the religious grounds than the scientific. Biologists, Evolutionists  must have.

Karate Do

News today.
Got promoted from white belt to Yellow Belt in Karate.
I am learning, Shito ryu Karate at New Horizon School located at the 100ft road.

Rang de Basanti

Saturday turned out to be an excellent day as we from Spastics Society of Karnataka Recretion Club went out for Rang De Basanti.
A good movie to watch. Dont miss it.
Just recollecting the previous good movie I watched, Cinderella Man, this one gave as much satisfication ( or perhaps more). And Cinderella man had a money back gaurantee. Should Rang De Basanti have tried it?

Google Desktop 3

Google's Privacy Policy reads.

If you choose to enable Search Across Computers, Google will securely transmit copies of your indexed files to Google Desktop servers, in order to provide the feature. Google treats the contents of your indexed files as personal information, in accordance with the Google Privacy Policy.

Got to understand. The whole of the file is regarded under Privacy policy, just like email address, credit card number by other sites.
Eitherway, its the owners take.
How often would we need this feature and how helpful would this be?

Firefox Extension - IE Tab

Discoved a useful addon for Firefox in IE Tab
Provides the ability to open IE Only pages as a Tab within Firefox. The author says that this plugin is from Taiwan. Fine, Taiwan should be cool too. :)

Monthly Calendar for the Year 2006

I am 26 days late, but hope you still enjoy the monthly calendar for the year 2006 at:

http://puggy.symonds.net/~senthil/calendar/

--
Senthil

Photos of my home town.



Got these as an email forward from a friend.

New Mobile

Purchased a new Nokia 3100 today, should be replacing the Nokia 5510 which one of my friend had given to me use.(blah! I have been using for it long time now :)

 Amongst its various features, the one which sold itself to me was, Its " A small & compact phone with a large high-resolution color display". Costed Rs.4,050/- at Viveks.

My School at LJ

National Engineering College

Thanks LJ and NEC Folks, get hooked!

LiveJournal friendsZodiac


Phoe6's friends' zodiac signs
Unknown (6)
Sagittarius (1)
Capricorn (1)


LJ friendsZodiac.
Brought to you by pratibha75 and teemus.

vim7

So, with I moved to vim7 from today. Installed Dev-Cpp (primarily for mingw compiler) as the mingw site was giving some problems and also wanted to try that IDE and then vim src directory provides a make file for mingw itself. thats it.
Heard that Mark shuttleworth is visiting blore, might to make it. Lets see.

konqueror and proxy

When specifying the proxy for the konqueror, it has always been required of me to enter the PROXY IP Address. Otherwise it never worked.
And, kmail always launches Konqueror for the click over the URL. got to figure out how it can launch my default browser.

Christel House

Often we think NGO schools for under privileged ones as something different from a school where a good middle families will send(after putting lots of efforts).
Well, found Christel House by Christel DeHaan something different in concept and in action.

http://www.christelhouse.org/index.htm is their website.

Day of Virtualization

The concept is interesting and the products are also so:
Today I tried.
bochs Ran DLX Linux and Free DOS. Could not see GNU Hurd in action though. :) and also minix of bochs is inline.
vmplayer was another good VM and Minix for VmWare was readily available. So, my desire of having a minix is getting fulfilled with vmplayer.

Yeah, I think we need to get used to these technologies, not thinking that there would be a performance lag, it will be slow etc etc.

I could work over Cygwin/X for one whole project, a three tabbed gnome-terminal is what I would need. Once I got used to it, I could'nt feel,as if I was doing anything different.

Dell Start Page on Google

http://www.google.com/ig/dell

We also banked early on the Internet. Btw, it was also a surprise for myself!.