Posted by: jimyjoshi | September 6, 2007

www.jimyjoshi.com

So much for creative domain names. I just couldn’t delay getting my own domain and web space due to the lack of good domain name for the new home. For now, I have settled for www.jimyjoshi.com. This will be the new home for my blog(www.jimyjoshi.com/blog, more precisely), if at all people are interested in joining me there. Please update your feed readers with the new feed location.  I am still working on the theme for the blog but that shouldn’t stop you guys from stopping by.

My plans for the new home include a lot of exciting things including new projects I want to take. I also plan to blog more regularly, at least twice a week.

BTW, the new blog is powered by Movable Type 4. No specific reason why MT and not wordpress except just wanted to  try something new.

ciao guys.

Posted by: jimyjoshi | August 24, 2007

Video Ads and Ads in Video

The Chinese Google (seems so lame to say it this way), BAIDU, has decided to do video ads. I think its a bad idea. Reason is simple. Ads in there own right are quite annoying to the end user if they start taking over the content. Google ads don’t fall in this category because 1) they are the most unassuming ads you will ever see on the internet 2) they are just plain text. It is very easy for the users to ignore them, if they want to. Also, the level of customization Google ads words, coz is plain HTML, provides the content publisher to really mesh the ads and content together in a unobtrusive way. This all is just not possible in video, hell, not even in those annoying flash and gif ads. Suddenly you start worrying about the color formatting of your page and the non-matching color used by your advertiser. Video is even worse, they can run any content without your control. Also, genuinely people, video ads are a pain for the end user. Some site have this videos ads which start playing as soon as the page is loaded. So the alarmed user has to start looking for this video player to turn it off. And if the site is running a video ad on most of the pages, on every page click a user does he/she has to stop the video from playing. That is annoying. Video ads just doesn’t make sense. Lots of people have done it before and failed. I don’t understand why would baidu is doing it. Is it because, well its becoming a big bully in china. Mind you, it has a very coveted position, Number One search engine in china. As per the Shanghai Daily, Baidu is planning to run this ads on sites of Baidu union members. Baidu union members are :

There are around 150,000 sites which have already formed a partnership with Baidu through cooperation on search-related ads.
These sites, called Baidu Union members, are mostly small ones with stable traffic and rich content ranging from vertical industry portals to entertainment sites, but it is difficult for them to attract advertisers on their own due to their size.

Neways, I think this search engine war is starting to enter the “desperate territories”.

On the other side of the globe, Google has started to put ads in some of the youtube videos. I don’t like but I can see why. Youtube videos are just not running on www.youtube.com anymore. They are everywhere. Phone, Home media center, other electronic stuff (like i dont know..). And for all these place there is no way to put in ads around the content (or at least Google hasn’t figured it out yet). So next logical step is put the ads in the content itself (duh !). Which for the online user (i.e. youtube.com users) wouldn’t make sense but for people watching youtube videos on there home tv, well its just commercial break. Same old, same old. We are all now immune to commercial breaks. Same would happen to ads embedded in youtube videos. Come to think of it, I am sure all video site will follow in on this one. But, there are a few things to watch out for: 1) How Google decides which videos get the ads 2) what if the content uploader doesn’t want the ads 3) what if someone actually wants the ads in the video. Keep watching.

Posted by: jimyjoshi | August 24, 2007

India Podcast

I came across this really amazing podcast streamed mainly by two desi guys.  Based in india, this site provides a good one stop shop for india masala, news and technology developments. Its called The Indicast. I think the main differentiator for this site compared  to loads of india portals out there is the “amateurish and informal” way these guys carry out the podcast.

Good work guys.

Posted by: jimyjoshi | August 4, 2007

RFC 822 Date parsing in Java

I was working on a RSS to JSON XSL transform for some work related stuff. For reasons not to be disclosed, the updated timestamp of the item was to be parsed and serialized into JSON as an array of integers. There were bunch of problems to that. XSL or EXSL, for that matter, does not have support for parsing RFC822 dates. This can be solved by writing my own template for parse the date or even better write a static java method and use that in the transformation. I took the later approach (coz its easier) because its easier and having a our code base could use a utility method to parse RFC822 dates. Even better I wrote it so that it will take in a RFC822 date string and return a Atom date (ISO whatever same as XSD date). So now my transformation can parse the date and give me the individual bits i needed and also our codebase has a nice utility method(this such a lame reason…).

Parsing a RFC822 date (for that any matter any standard format date) is a bit tricky thing in java. Well, its not all that tricky now that I have figured it. We have the DateFormat class we can use to parse the date string to date. But as RFC822 date though a single format has there are parts of the dates which are optional e.g. second, Day of the Week. so we need multiple DateFormat instances (actually SimpleDateFormat) to support the format fully ( I realized this only after my transform started failing for feed which were not providing “seconds” values in the timestamp). Below is the code snippet to parse the date string.


public static final SimpleDateFormat rfc822DateFormats[] = new SimpleDateFormat[]
{
new SimpleDateFormat("EEE, d MMM yy HH:mm:ss z"),
new SimpleDateFormat("EEE, d MMM yy HH:mm z"),
new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z"),
new SimpleDateFormat("EEE, d MMM yyyy HH:mm z"),
new SimpleDateFormat("d MMM yy HH:mm z"),
new SimpleDateFormat("d MMM yy HH:mm:ss z"),
new SimpleDateFormat("d MMM yyyy HH:mm z"),
new SimpleDateFormat("d MMM yyyy HH:mm:ss z"),
};

I want to note that the order in which this objects are applied is important. Mainly because of the effect of using "yy" and "yyyy". You can lookup the javadocs for the pattern to see what I am saying.

Closing note: I like the fact that Atom has adopted the ISO date standard, I think its more widely supported.

Posted by: jimyjoshi | April 22, 2007

Orkut and VTech shootings

It was a great shock and deeply saddening news to hear about the massacre at the Virginia Tech Campus. My heart felt condolences to all the family and friends of the victims. I know how it feels to lose a family member, if only words would make it all better.

One of the victims of the Virginia Tech shootings was Minal Panchal. Like many of U.S. residing indians, she too had an account on Orkut, a popular social networking website. As the news of the shooting spread and people learned that Minal Panchal was one of the victims, people started scrapping there condolences on her profile page. The turnout was mind boggling. I personally saw the phenomenon. The count scarps on her profile was on a continues increase, it reached 25000 in just 2-3 days. And was going on. I too wrote my condolences. I was surprised to see in matter of seconds (~30 seconds), my scrap entry was pushed back to 4th page of her scrap book. I tried to reload the page, every time i did a refresh, i could see 4-5 new entries. It was quite touching to see such a support and how people all around felt so bad about the whole thing.

Now just two days, I discovered her profile is now deleted. This is probably because of some spamming algorithm running on orkut. This post of mine is to raise a concern against this. As much as I understand the need for such a algorithm, I would want to bring to notice of people orkut that this is not a case of spamming and her profile should be reactivated. By not doing so, orkut is denying people from showing there support for this sad event. It is not about just this one person, I feel this profile was providing a place for people to pour there feeling out and show there support for all affected by this mad massacre. I am very sure there is no technical reason as to why they should not be able to reactivate her profile. Worst would be if orkut is concerned with the increased traffic load on the website. I really hope thats not the case.

Orkut is owned by Google. I would expect more from google than this.

Posted by: jimyjoshi | April 21, 2007

Links:04/20/2007

  • Mark Pilgrim talks on Expertise, burnout, and the future of the web
Posted by: jimyjoshi | April 21, 2007

Installing JAXP 1.3 on JDK 1.4

Let me start by saying..JAXP 1.3 rocks..why?

  • It supports XPath (duh !!)
  • Dom level 3
  • And other stuff i am still to discover.

I don’t get, is it just me or XPath in jaxp is really really late. But good that its here and good news is can be used with JDK 1.4 and probably JDK 1.3 (haven’t tested it).

So the installation process.

  1. go to jaxp.dev.java.net
  2. download jaxp installation class file which has been compiled for JDK 1.4
  3. java -cp . JAXPR******
  4. this gives u 5 jar files (dom.jar,sax.jar,xercesImpl.jar,xalan.jar(*sigh*),jaxp-api.jar)
  5. copy all jars in <java_home>/jre/lib/endorsed folder.
  6. tada !!

The updating process documented on the JAXP website suggests that jaxp-api.jar should not be put in endorsed folder and should be put some where on the CLASSPATH. But as the JAXP 1.2 classes packaged with JDK 1.4 are part of rt.jar, these classes will take precedence when loading classes over any classes on the CLASSPATH. In order to avoid this, you need to have jaxp-api.jar also in the endorsed directory. As per the Endorsed Standards Override Mechanism classes specified in the endorsed directory are loaded before any internal class.

so there you have it..you are off you using jaxp 1.3.

I look forward to exploring more of this release.

Posted by: jimyjoshi | March 9, 2007

Critters Monsters

Generated by the critters web service by Joe Gregorio, this is me. hmmm..atleast its smiling. I used the following URL:

http://bitworking.org/projects/critters/medium/jimyjoshi

critters monster

Posted by: jimyjoshi | February 8, 2007

Web 2.0 The Machine is Us/ing Us

Web 2.0 … The Machine is Us/ing Us

There is a lot this video tries to say. some being obvious but still never thought of. To me it talks about how things have evolved and will change in the future. One take way point is at the end of it any new technological change is triggered due to the social behavior of users of the system.

Posted by: jimyjoshi | February 2, 2007

I am DOOM. Dr. Doom

Tests just came from the lab. My DNA analysis revealed this. I am telling you guys, being a super villian kicks ass.

Your results:
You are Dr. Doom

Dr. Doom
63%
Lex Luthor
63%
Magneto
60%
The Joker
56%
Apocalypse
56%
Dark Phoenix
45%
Green Goblin
43%
Mystique
43%
Juggernaut
43%
Venom
42%
Poison Ivy
40%
Mr. Freeze
33%
Kingpin
32%
Two-Face
31%
Riddler
23%
Catwoman
17%
Blessed with smarts and power but burdened by vanity.


Click here to take the Supervillain Personality Quiz

Older Posts »

Categories