Keep it simple ….

Random Musings

Archive for March 2007

Setting up a home LAN, for internet access etc

without comments

Very simple actually,

I have an Airtel Broadband connection which provides me with an ASDL modem.

Just configure your modem, so that it gets an IP address independent from the computer, basically you dont have to dial a connection from your computer.  Please call the customer service on how to do this.

The rest is simple. Get a Ethernet Switch (I used a D Link DES 1008v)  , on one port connect the ASDL modem and on others plug your computer. Please dont use the upload slot is any and try to use straight cables to do all the connections. Your LAN should work fine.

(If you are trying to use the upload link, probably you would need a cross LAN cable then) .

Now you can go ahead and setup workgroups etc.

Written by Abhinav Jain

March 30, 2007 at 10:57 am

Posted in Techy

Presentations from the DrupalCon

without comments

One thing that drives me crazy about Drupal, is that it’s tough for one to find the right documentation or support “easily”.

Anyways .. found these good links to the recording of DrupalCon :-

Audio and Video (torrent files)

Written by Abhinav Jain

March 26, 2007 at 5:24 am

Posted in Open Source, Techy

Drupal Hack :- If you want only an admin login

with 6 comments

I was playing around with drupal recently, when I kinda stumbled on this problem :-

“I want to have a site which is more like an information site, and I don’t want any user registration on my site. So I won’t have user login block on my main page. But I do want to change the themes, manage content etc, and therefore I need a way to do an admin login.”

This is what I did :-

Goto the block management on your site , and disable the user login from the left side bar.

Leave the Navigation block intact.

Now log out of the site.

You don’t see the user login block on your site anymore.

To login to your site, you can use a link like :-

http://localhost/tabletesting/?q=user/login

PS: This might change if you are using clean URLs on your Drupal site.

OK … probably not something great … but I just found this interesting and useful for a novice who won’t open the user module and look at the hook_menu implementation and then discover that this is what he needs to do ;-) .

Written by Abhinav Jain

March 21, 2007 at 4:00 pm

Posted in Open Source, Techy

Can’t hide from self !!!

without comments

Whereever you go, there will always be you !!!

Written by Abhinav Jain

March 20, 2007 at 9:29 am

Posted in Quotes

RED/GREEN/BLUE balls

with 2 comments

You are a vendor having some balls:-

1) 1994 RED balls
2) 1995 GREEN balls
3) 1996 BLUE balls

now if you tak two balls of different colors , then you can convert them to 1 ball of the third color

eg. one RED and one GREEN ball combine to form one BLUE ball

now you have to convert all the balls into one single color.

How will you do this ?

Written by Abhinav Jain

March 16, 2007 at 10:17 am

Posted in Logical, Puzzles

Sum of two numbers in an array to be equal to K

with one comment

You are given an array of numbers, and a constant K.

You need to find two elements from the array whose SUM is equal to K . (all such pairs)
Eg .

Let the array be

1 2 3 4 and the constant be 7 ,

then your output should be 3 and 4

Written by Abhinav Jain

March 16, 2007 at 10:08 am

Posted in Programming, Puzzles

Finding the non duplicate number in an array of 2n+1 numbers

with 4 comments

Programming :-

You are given an array of numbers, of size 2n + 1 . Now n of them are repeated, i.e there are n pairs of same number and a single number that does not have any pair. Find the number that does not have any pair. Try to keep the complexity to O(n) .

Eg .

The elements in the array can be :-

1 2 3 2 1 3 5

You want to output to be

5

Written by Abhinav Jain

March 16, 2007 at 10:05 am

Posted in Programming, Puzzles

3D Desktop on Ubuntu using Beryl (video)

with 2 comments

Found this awesome video on Youtube of an Ubuntu 3d desktop running Beryl.

Watch it here

Written by Abhinav Jain

March 11, 2007 at 7:23 am

Posted in Linux, Techy

Collaboration : BaseCamp Vs ActiveCollab

without comments

I always found basecamp very interesting (specially when it comes to it’s history regarding Ruby and Rails), but the cost factor kinda always rang a bell. Until recently I found a very promising alternative to it. Try using ActiveCollab

Written by Abhinav Jain

March 11, 2007 at 7:09 am

Posted in Open Source

My First Post

without comments

There will be mostly trash in this !!!!

Written by Abhinav Jain

March 9, 2007 at 7:41 am

Posted in Arbit