Tricks

Your Own Personal Birthday Google Doodle

1

So you think that Google Doodles are only for the rich, famous, and quirky? Think again. If your Google profile is filled with your details, including your birthday, then you will be shown a Google Birthday Doodle, when you log into Google. Another surprise awaits, when you click the Doodle! I think I am going to change my birthday, just to experience it.

Well, I changed the birthdate, and sure enough, I was “gifted” with confetti on the settings page itself! But I didn’t see any doodle, which I guess is for visitors to google.com. I unfortunately can only visit google.co.in.

Only google can throw a party, like google can!



How to change the default Tomcat port ?

0

It seems there was a clash between Tomcat and another application which was using port 8080, which happens to be the default Tomcat port. Here is how I went about it:

Steps of changing the Tomcat Port

1) Locate server.xml in <Tomcat installation folder>\ conf \

2) Find the statement similar to this.

<!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

or

<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP  Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

3) About Tomcat’s server.xml file cites it’s runs on port 8080. Change the Connector port=”8080″ port to any other port number.

For example

<Connector port="42211" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

will instruct Tomcat to run itself on port 42211. The address will then change to

http://localhost:42211/foo

4) Save the server.xml file and restart Tomcat. It should start on the port you mentioned.

Port Forwarding To Help Speed Torrents

3

In continuation of my previous post, I am putting up this guide to explain Port Forwarding. Note, this is something you should do only if you have done this. Also you will have to perform these given steps every time you turn on your UT Starcom UT300R2U ADSL Modem. Well who said speed comes easy ?

Here goes.

  • Goto Start – Run, type into it “telnet 192.168.1.1″, without the quotes. It opens the command prompt, with the  following . For Linux users, type the same from terminal/konsole.BCM96338 ADSL Router
    Login:

    The login and password both are admin.

  • Once it gives you the prompt (>_), paste the following lines. What it means is explained later.
    iptables -I PREROUTING -t nat -p tcp --dport 8080 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:8080
    iptables -I FORWARD -p tcp -d 192.168.1.11 --dport 8080 -i ppp_0_35_1 -o br0 -j ACCEPT
    iptables -I FORWARD -p tcp -s 192.168.1.11 --sport 8080 -i br0 -o ppp_0_35_1 -j ACCEPT

    The above three lines mean, a) Accept packets from any source to my computer, b) Send packets from my computer to any destination.
  • Make sure of 3 things
    1. Here 192…11 is my IP address. Substitute yours in that place. eg 192.168.1.10
    2. 8080 is the port that I have specified in my torrent client to be forwarded. Change them so that both are the same.
    3. Dont be a Pirate !
  • There maybe a problem though. It may happen that your IP address changes everytime you switch on your Modem. So int the Start – Run menu, type ipconfig and see your IP address. Accordingly make changes to the above three lines.

Happy S(p)eeding !

Configuring BSNL Modem to work with Linux.

0

Okay, Ive been asked by a lot of friends and classmates, to help me configure their modem with Linux. So here goes. This is a guide for Starcom UT300R2U.

  • Goto your browser and in the address bar, type in “192.168.1.1″ (without the quotes).
  • In the login window that appears, type in “admin” (without the quotes) for the username and password. That’s right, both are the same.
    uid:admin; pwd:admin

    uid:admin; pwd:admin

  • Now you will encounter a window, with various links in a pane on the left side, and a table giving some device information. Click Advanced Setup in the left pane and you will come across such a table. editing the services
  • Click the Edit button on the first entry. According to your current configuration, the displayed table may differ by a few entries, but its inconsequential, because we are editing and making a new one.
  • ATM PVC Configuration:  Enter the following: 0 in the VPI textbox and 35 in the VCI textbox. Disable the”Enable VLAN Tagging” checkbox. Service Category must be UBR without PCR.

    ATM/PVC config.

    ATM/PVC config.

  • Select the PPPoE radio button. Make sure encapsulation mode is as shown. Click Next. Step3
  • This step is pretty important. Make sure you enter the correct username and password provided by your ISP(in this case BSNL). Make sure you have ticked Dial on Demand. It means that your  modem (which is halfway into being a router) will dial out automatically when you switch it on.
    enter uid and pwd

  • Now for the penultimate step. Enable NAT, and Firewall. A firewall is a system to block unauthorised access. It just makes sure your surfing is safer. Don’t mess around with the service name. Keep it as is, if same as shown below.

    dont change service-name

    dont change service-name

  • Congrats ! You have configured your Modem to work not only with Linux but also any OS Just click Next then Save and then Save/Reboot.


The only shortcoming you may face, is not having a static IP on your LAN. Here is what you should do, assuming that the modem isn’t shared.  Goto Advanced Setup – LAN, and make the following changes.
Lan

  1. IP address means the address of the Modem.
  2. Start and End IP address means the range of Addresses that the Server can allocate to connected PCs randomly.To achieve same IP, everytime PC connects to the Modem is to make the Start IP and End IP the same, which means there is only one IP to be allocated.
  3. Or the easier way is Configuring your TCP/IP properties to get the IP address automatically over the LAN.

Remember, if anything goes wrong, no need to pray to God, or send me swear messages, just press the holy RESET button at the back of the Modem !

GTalk Status Message and Winamp

0

I installed GTalk 1.0.0.104 today, upon enabling GPRS and had Winamp 5.54 installed earlier.So I was in for a shock (which I had suffered earlier, but was expecting it to be solved) when I set my status message to “Currently playing Music Track”.

GTalk just hangs up, and consumes almost all CPU!But fear not!

The mandarins of technology (or should I say Geekville) found a workaround : All you need to do is create an empty playlist in your Winamp install folder (usually in the “/Program Files/Winamp” folder) and voila!!

And all is well in Geekville!

This thread helped me out!

Go to Top