tag:blogger.com,1999:blog-34979304869040639862024-03-09T06:00:40.465+05:30Cool Hacks For TechiesKnown is drop, Unknown is oceanKarthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3497930486904063986.post-19667604491880299072009-04-27T18:57:00.004+05:302009-08-31T17:26:47.084+05:30Avoiding Browser cacheWhen I tried for first time to acheive this, It didn't work. Even meta-tags inside head tag didn't work.Finally this worked after few permutations... The trick is to add these lines even before HTML tag. I guess that these headers are respected by browsers when they see it before HTML content.response.setHeader("Pragma", "No-cache");response.setHeader("Cache-Control", "no-cache");Karthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.com0tag:blogger.com,1999:blog-3497930486904063986.post-34386776392123703132007-02-04T14:08:00.000+05:302007-02-04T14:26:29.493+05:30Google Cache And Web FilteringHi fellow techies,If you are using a webproxy, this tip is specially for you. What do you do when your proxy site is blocked by your network admin? Change to new proxy? come on, that too will be blocked soon.Here is what worked for me:lets say you are using, xyzproxy.com and its blocked.try this link:http://www.google.com/search?q=cache:xyzproxy.comYour proxy's home page will open. From this pageKarthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.com1tag:blogger.com,1999:blog-3497930486904063986.post-30314771297395026792006-10-27T09:46:00.000+05:302006-10-27T10:12:02.791+05:30Shell command inside Makefilehi,In this post lets learn how to embed a shell script inside a Makefile. Wot Makefile does:The Makefile lists the modules that are part of the project and the libraries that should be linked.It is used by the Make utility of the compiler. Learning about make will give you the freedom of modifying it for compile time optimisation and also during testing we can modify Makefile to compile only theAnonymousnoreply@blogger.com4tag:blogger.com,1999:blog-3497930486904063986.post-39099178945445240112006-10-07T13:49:00.002+05:302009-08-31T17:24:13.584+05:30Disable Write Protection on USB StickHi folks,this is how to write USB sticks when they are write protected. This works with WindowsXP.*start -> run -> type "regedit"*goto HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control*select "StorageDevicePolicies" in the tree.*double click on ‘WriteProtect’ in the right side pane.*change its value to '0'. ('1' means enable write protection).Screen shot is below for your referenceSources: I Karthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.com3tag:blogger.com,1999:blog-3497930486904063986.post-58979685566074592842006-10-05T20:23:00.001+05:302009-08-31T17:25:05.903+05:30Drive Names in WindowsHave you ever thought how to get drive letters in Windows? If you know the cool hack below, you wont need to struggle for that.import java.io.File;/*** @author karthikkannan* Demo for listing drive letters on Windows*/public class Utility {public static void main(String[] args) {File[] roots = getDrives();for (File file : roots) {System.out.println(file.getPath());}}public static File[] getDrivesKarthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.com0tag:blogger.com,1999:blog-3497930486904063986.post-39728836347412291822006-10-05T19:02:00.000+05:302006-10-05T19:09:17.443+05:30Let The Game Begin!!!Hello World!!!Hi friends, once again programmer’s style of starting things. Let’s hope I learn to write well. Expect only technical articles here folks. Catch you in the next post with some interesting stuff.Karthikkannanhttp://www.blogger.com/profile/00732923395088829048noreply@blogger.com0