Archive for the ‘Development’ Category

Firebug is now available for Firefox 3

June 28, 2008

Yay!!! one more yay for Firefox 3 and Firebug team. Firebug is now finally available for Firefox 3, specially for Ubuntu users its a breeze. Just do:

sudo apt-get install firebug

If you are not using Ubuntu, Get your firebug from Mozilla.

So there is alot happening for Firefox 3, As I already posted how efficient it is for memory and other resources. Also the bookmark management is awesome. Have a look at my firefox 3 post.

Kudos to Joe Hewitt for giving us something like Firebug.

Gear available for firefox 3

June 28, 2008

Gear up your Firefox 3 for offline browsing, because now Google’s Gears extension is available fore Firefox 3. Firefox 3 has been launched on June 17. And I just tested that Gears is now available for Firefox 3. Install Gears now.

For more information check gears blog post: Fly, Gears 0.3!

Also you can checkout Google I/O Gears sessions at: Gears Sessions from Google I/O are now available to watch

Happy browsing everyone!

Related:

Missing Google Gears on its first birthday

May 29, 2008

Happy Birthday Google Gear, oh I forgot its only “Gears” now. Long Live Gears, but unfortunately I have been missing you alot. ou have been quite useful for me all this time, but unfortunately I love Firefox more then anything else and being on Firefox 3, I don’t have you anymore.

Hopefully this will fixed soon and I will be able to have you back in my FireFox. I am a happy user of Ubuntu 8.04 (Hardy) which comes with FireFox 3, which is just so awesome that I can’t go back to FireFox 2 and for this I had to sacrifice. My most of Google extensions don’t work anymore in Firefox 3 which includes Google Gears too.

I still want to have all those extensions back, but not sure how much time will it take, I have also read that FireFox 3 is going to be released in June, they have already released rc2 of FireFox 3. So stay tuned every one, FireFox 3 stable is coming soon.

Related Link:

Generating squid “myip acl” and tcp_outgoing_address for all your IPs on FreeBSD

May 26, 2008

This is the perl script which generates squid “myip acl” and tcp_outgoing_address directives for all the IPs configured on FreeBSD except localhost IP (i.e 127.0.0.1), I have written this script to help my friend configure squid as I describe here.

#!/usr/bin/perl
open(IFCONFIG, "ifconfig em0 |");
$count=1;
@acls = ();
@tcps = ();
while (<IFCONFIG>) {
  if (/inet/) {
    s/^\s+//;
    @tokens = split(/ /);
    if (! ($tokens[1] =~ "127.0.0.1")) {
       push(@acls, "acl ip$count myip $tokens[1]\n");
       push(@tcps, "tcp_outgoing_address $tokens[1] ip$count\n");
       $count++;
    }
  }
}
close(IFCONFIG);
foreach $acl (@acls) {
  print $acl;
}
foreach $tcp (@tcps) {
  print $tcp;
}

Click the “View Plain” link above the code, copy the code from the new window and use it.

I know its not commented but I didn’t had much time because of my Google Summer of Code, and the script is so trivial that I didn’t feel like commenting it.

Setup squid proxy server to use multiple outgoing IP addresses

May 26, 2008

A friend of mine needed my help to configure squid server to use multiple IP addresses based on the squid’s IP being used as proxy server. I told him that he can configure the squid server using following squid acls and tcp_outgoing_address directives.

acl ip1 myip 192.168.1.2
acl ip2 myip 192.168.1.3
acl ip3 myip 192.168.1.4
tcp_outgoing_address 192.168.1.2 ip1
tcp_outgoing_address 192.168.1.3 ip2
tcp_outgoing_address 192.168.1.4 ip3

The acl lines tell squid to match myip which means if someone uses the IP 192.168.1.2 as their proxy server they will match the acl ip1 and so on..

Update: But his problem was not solved by this, because he had to configure squid for 500+ IPs and doing this by hand is not worth it when you have so many languages out there. So I wrote a small perl script for him to generate squid acl and tcp_outgoing_address directives for all IPs.

Google App Engine comes with sweets and cakes

April 20, 2008

Google App Engine is like a treat to Python developers which comes with sweets and cakes. From sweets and cakes I mean like Google App Engine for Google Apps (I hope you know about Google Apps). The availability of SDK so it can be ported to other platforms like Amazon EC2 appdrop.com is now offering to host Google App Engine applications. And none the less support for Google App Engine has been added to Google Data Python Libaray.

All of these are available for your webapps if they are either built on Google Apps Engine SDK or Django web framework. Google App Engine being a buzz word now a days has brought attention of developers specially Python developers from all around the world to Google.

Many of them like me still waiting for their trun to be invited to sign up for Google App Engine Account. Hope our turn will come soon. Google will also be adding support for other languages like PHP and others, and that would be a turning point for Google App Engine. In my view as soon as the support for other popular languages will be available in Google App Engine, it will become the first choice of web application development framework.

For More information:

Google App Engine invites more and more Python programmers!

April 14, 2008

Google App Engine’s first signup batch was filled in hours after the first preview launch. Google has invited yet again 10,000 developers to signup for App Engine account as 2nd batch. I am still in the waiting list 😉 and I hope there will be many more. Lets hope we will get our invitation soon. Until that have a nice play with App Engine SDK.

Also Google App Engine team has anounced that they are actively working to support other programming languages on Google App Engine platform, so stay tuned guys PHP, Ruby, Java, Perl and even fortran will be supported.

Read more at:

Python Developers build your apps for Google servers!

April 8, 2008

AppEngine LogoGoogle has launched Google App Engine which will host web apps for anyone. This is another great service launched by Google. Now developers don’t need to worry about their applicatioin’s growth because it will be now hosted on Google servers.

Google App Engine SDK allows developers to develop application locally. SDK also comes with the development web server just like Django. The database API is almost same as provided by django, so django developers will not have many problems developing application for Google App Engine.

What are you waiting for? Go and signup for Google App Engine at: http://appengine.google.com/

Read more at:

GetUTube: YouTube Video Downloader in Bash

December 24, 2007

Below is the script I wrote in hurry for a friend. Many of my friends wanted to download Videos from YouTube for later viewing but they always complained about available scripts or programs, so I decided to write my own quick and simple script which work as we want it ;).

I know below script does not have any comments or checks, but this is what I wrote in hurry.


#!/bin/bash

TMPFILE="/tmp/getutube.$$.data"

if [ "$1" == "" ]; then
echo "Please provide YouTube Video's Page URL"
fi

VIDEOID="${1#*v=}"

echo -n "Getting video URL..."
wget -O $TMPFILE $1
echo "DONE"

UGETURL="`grep video_id $TMPFILE|grep fullscreenUrl|head -1`"
rm -f $TMPFILE
URLPARAMS="${UGETURL#*/watch_fullscreen?}"
URLPARAMS="${URLPARAMS%\';}"
FILENAME="${URLPARAMS#*&title=}"

echo -n "Downloading Video..."
wget -O "${FILENAME}.flv" "http://www.youtube.com/get_video?$URLPARAMS"
echo "DONE"

Python gaming challenege is coming…

August 31, 2007

Python gaming challenge PyWeek 5 is ready, Registrations are open and the theme voting has been started. It is a fun challenge you will get only one week to code a game from scratch. There is no prize money involved but the fun which is worth of your time. Read more about it on PyWeek site.

Below is the time table.

Timetable
Friday 2007/08/03 Registration open
Sunday 2007/08/26 Theme voting underway
Sunday 2007/09/02 Challenge start
Sunday 2007/09/09 Challenge end, judging begins
Sunday 2007/09/23 Judging closes, winners announced