lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

Firefox 1.0

Firefox 1.0 got released yesterday. Yay !! If you have not downloaded it as yet, get it and reclaim the web. Google has put up a firefox on their search too. :-) . Surprisingly BBC is covering the launch too. Officially, Firefox is not "just for geeks " anymore. Welcome abroad unwashed masses. Here is the list of newspapaers covering firefox launch.

While reading through the talkback pages at mozila, I saw that most people were having trouble getting Firefox from their local mirrors (which I guess had not gotten updated) or in accessing the Mozilla's website. Well, I took the easy route and just used the torrent to download my favourite browser. It was the first time I used torrent, and i must add I was amazed at how easy the whole process. Bittornado put a nice GUI and a easy to understand interface to the whole process.

Defined tags for this entry:

My wiki

I have been experimenting with a few wikis for my site. A great place to look for your wiki needs is the Wiki Engines page on the WikiWik (which incidentally was the first wiki). I have settled for Pmwiki, which you can see here. My reasons for choosing the Pmwiki are

  • Written in PHP and released under GPL
  • Does not need a database backend to run
  • Easy to understand documentation
  • Customizations are in a separate configuration file
  • InterMap capabilities to provide links to other WikiWikiWeb systems
  • Ability to organize pages into WikiGroups, with headers and access controls shared among all pages in the group

Link to my wiki

Defined tags for this entry:

using google api from PHP

Now available for your downloading pleasure, is my GoogleSoap class. have you eveer felt the sudden need to use the Google's web APIs through PHP ? Worry not as help is at hand. You can use the GoogleSoap class to make your job easier. I have put the code and related documentation/examples in the public domain, so you can hack it up further. Some rudimentary instructions are included in the README file, I will add more to it as and when time permits me. Any additions/suggestions are always welcome.

Get the code here

Defined tags for this entry: ,

Hyperlinks with LaTeX

I am big fan of Texinfo for writing articles or any other documentations work (yes, I do sometimes try to write the specification document). For a few weeks now, I have been trying to learn LaTeX, sice it can be used to typeset good quality presentation slides and letters too.

A problem that I faced when writing the articles in LaTeX was on how to make a hyperlink to a webpage. I was using latex2html to convert the latex file to HTML format. LaTeX comes with a hyperref package which can be used to create links. It has a \href command which can be used to create hyperlinks, but the links did not come out in the HTML page. I found that this was a known problem with hyperref and latex2html. However, the solution, as I found out, is much easier. The command to use is \htmladdnormallink{link text}{universal resource locator} You have to include the package html in your document to use it

\usepackage{html,makeidx}
....
The text of this article can be downloaded from our
\htmladdnormallink{web site}{http://www.example.org}.

Defined tags for this entry: ,

make your google search box in firefox bigger

initially I thought of giving this post the title "make your bigger ..." ;-)
While going through the Mozillazine's Firefox forum, I came across this interesting discussion on how to make the google search box bigger. In your userChrome.css, put in the following lines
/ Make the Search box flex wider /
#search-container {
-moz-box-flex: 600 !important;
}
#searchbar {
-moz-box-flex: 600 !important; }

Defined tags for this entry:

Search Google from command line

As I had pointer out in my previous entry, I had not been able to search google from within my emacs environment. Hence the "need" to write a command line script which I would be able to call from within emacs

The code is not the best I have written and any decent Python programmer would be able to make more improvements to it. If you do something clever with the code, it would be very kind of you to let me know about it too (raj at rajshekhar.net).

You need to have Pygoogle module installed. In its unaltered form, the script will require Python2.3 to run. However, if you remove the #--ugly hack part (see the comments in the code), it will run with Python2.2 too.

Code now available at mouse click from here.

Defined tags for this entry: ,