Thursday, July 31, 2008

Tree to JSON Conversion

Following code will convert a tree into JSON data, without using JSONObject.
More specifically it will output the required JSON data for a Zapatec tree !

private Stack stack = new Stack();
public StringBuffer toJSONString(GenericNode currentNode){
if (currentNode != null) {
sb.append("{ label: \"").append(currentNode.getCurrentNode().getBudgetDescription()).append("\",");
stack.push("}");
sb.append("attributes: {").append("id: \"").append(currentNode.getCurrentNode().getBudgetId()).append("\"}");
}
if (currentNode != null && currentNode.hasChildren()){
sb.append(", children : [ ");
stack.push("]}");
for (GenericNode node : currentNode.getChildren()) {
toJSONString(node);
}
if (stack.size()>0) {
sb.deleteCharAt(sb.length()-1);
sb.append(stack.pop());
}
} else sb.append("},");
return sb;
}

Monday, July 28, 2008

Gujarat Samachar new website

By accident I found beta website of Gujarat Samachar !! Well, it has solved its major drawback of fonts. It would be in UTF-8 now, when it goes live. New sites looks far better compared to the current site and look has been updated. Margin between two characters are not enough and it makes readers to avoid reading full stories...

.... and this is the link of the new site which seems to be under test with few days old data... http://gujaratsamachar.com/beta/

અમદાવાદના બગીચાઓમાં વાગે છે માઉથ ઓર્ગન - છેલ્લા ૧૨ અઠવાડિયાથી...

This blog is about GujaratSamadchar.com. Headline of the blog is headline of one of the feature story of Gujarat Samachar web edition as well ! You will be surprised that, this story is being published since last 12 weeks every Tuesday. No, it is not a continous story or novel. Its the same story getting repeated every Tuesday. Today it made 12 weeks! This is not the only story they keep on reapiting, there are many more. But this is just an example to show that how serious our Gujarati media is about their web edition !!

You can read this story with different dates in their archive section !

http://www.gujaratsamachar.com/gsa/20080729/guj/supplement/a1.html
http://www.gujaratsamachar.com/gsa/20080722/guj/supplement/a1.html
http://www.gujaratsamachar.com/gsa/20080715/guj/supplement/a1.html etc...

Saturday, July 26, 2008

આંખોથી ઈ-મેલ મોકલવાનું ગીત – ડૉ. કનૈયાલાલ ભટ્ટ

[‘તાદર્થ્ય’ સામાયિકમાંથી સાભાર]

તને ટેરવેથી SMS મોકલું ને
આંખોથી મોકલું ઈ-મેલ.

તારી હથેળીની ભાષા વાંચી દે એવું
સોફટવેર સ્પર્શોનું કેવું ?
સપનાનું ફોલ્ડર કૂંપળની જેમ હું તો
સાચવીને રાખું છું એવું.
નેટ ઉપર આખ્ખુંય ગગન છલકાય
અને ખાલીખમ પાંપણની હેલ.

આખાયે સ્ક્રીન ઉપર ઉદાસી પાથરીને
ઉઝરડા ગોઠવું છું ફાઈલમાં.
ડૂસકાંઓ ડિલીટ કરું તો ય સાલ્લાઓ
વિસ્તરતા જાય છે માઈલમાં.
ટહુકાથી ખીચોખીચ ભરેલી વેબસાઈટ
મહેંદી ને મોરલાનું સેલ.

તારી ઑફબીટ આંખ્યુએ ડિઝીટલ સપનાંનો
ઈમેલ મૂક્યો છે મારી આંખમાં.
પાંપણનો પાસવર્ડ એન્ટર કરીને હું તો
સૂરજ ઉગાડું બારસાખમાં.
દરિયો, વરસાદ, નભ, ચાંદો ને તારાની
વહેંચાતી કેવી રે ટહેલ !

તને ટેરવેથી SMS મોકલું ને
આંખોથી મોકલું ઈ-મેલ.

Thanks ReadGujarati.com for this e-Poem !

Thursday, July 24, 2008

New looks of Sandesh and Divya Bhaskar



Sandesh and Divya Bhaskar are two widely read news paper from Gujarat. Both of them are recently working on new looks of their website. I visited both new looks and overall it was a good change. Using my experience of Web Technologies and Journalism, I did detail review of these sites, Njoy it !!





Its an amazing look. They might have followed some of the exisiting English site's look, but its looks simply the great! Though its still in its Beta release, they are yet to transfer their main site with the new look.


Speed : Its one of the important criteria to check performance of any site, specially this is being media website, speed is the master key to succeed. Speed of the new site is almost same like old site, which is really not very good. One need to focus on this, homepage loading should not take more than 30 seconds !


Availability : I never seen this site unavailable. So it has good hosting service as well as good maintenance staff to take care of availability of the site, ideally 24 by 7.


Technology: This site uses PHP as a server side language. Its a successful language though its not standard for any media websites. I am not yet sure whether they are using any CMS tool but it seems not. Media site should use good successful CMS tool. As they have to play a lot with content. Also, I am not sure whether they are using caching or not. It could save a lot of time and improve performance by X folds.


Usability: પાક.માં પૂરની સ્થિતિને લીધે ભા... this is one of the link on the site. One really can not decide whether to click this link or not ! They should display atleast 50 characters which can give users a readbale content to decide.


Latest Technologies: Already mentioned earlier about CMS, the other pointin frontend desiging is, latest websites normally uses Div based tables. The new site has most of the design based on div but still its not 100% divs. It does use table/td/tr also. Which does not give flexibility.


Homepage Design: White background is more or less very standard now. The new site follows it.


Fonts: its UTF-8 fonts so easily can be deployed on any platforms and can be read in all applications. Thats a positive point for a vernacular language website.


Errors: I have noticed many typing errors on this site earlier, unless they trained the staff or replaced it is bound to happen again. Click here for latest example of typing error . View my blog for many more.


Page Refresh: They taken care of this problem in the new version.




While Devendra Patel takes on Asharam, let me take on Sandesh's new website :)


New look of Sandesh is not as good as their old one. Sometime on some pages it looks ugly. Sorry but at the spur of moment I could not find any other better word. They too tried to inherit some of the features from famous english media websites, though its a good sign.


Speed: Bad! It littlerally takes in terms of minute(s) ! Not acceptable, we need to look aggresively and very high. Unless we think high, we cant produce the best. Just got 3 different types of errors before seeing the home page.




Technology: This is using Microsoft technology. Same point as Bhaskar. Media sites should have good CMS then language like ASP(X). This site is on the basis of old table-td-tr based design. Can someone welcome their developers to 21st century pls !


Errors: Ooops a lot of ! All different varieties of errors ! They dont have error handling mechanism implemented. Unless you can not see their errors in client browser. Try clicking this link, this is a tempered link and so incorrect link but on the server of nytimes ( New York Times). It will not show you error page ! No good site will show it. But cheap sites will.


Content Errors: I have not seen many errors on Sandesh like Gujarat Samachar or Bhaskar. A plus point!
Fonts: It follows standard UTF-8 fonts- a very good sign, specially for a vernacular languge media site.
Usability: Its a good looking website like english media sites. Its quite user friendly too.



They have their websites since last century, I guess! They have been thinking to replace it since long. I reviewed one of their prototype close to 2 years back, but it never came up ! Lets hope they too will come up with new fantastic site soon.

મારી ઇ-વાંચનયાત્રા

વતનથી દૂર વસતા દરેક ગુજરાતીની માફક, ઇ-વાંચન એ ગુજરાત સાથે વળગી રહેવાનો મારો શ્રેષ્ઠ માર્ગ છે. ઇન્ટરનેટ પર ઘણી વેબસાઈટ્સ પ્રાપ્ત હોઇ, ગુજરાત જોડે ઇ-ટચથી જોડાઈ રહેવું ઘણું સરળ થયુ છે. મુખ્યત્વે સમાચારપત્રો , બ્લોગસ્ , અને સાહિત્યને લગતી ઘણી બધી વેબસાઈટસ અસ્તિત્વમાં આવી છે. છેલ્લા ૨-૩ વરસોમાં આમા ખાસ્સો વધારો થયો છે. સવારે અકિલા, અને ભાસ્કર તેમ જ બપોર પછી ભાસ્કર, સંદેશ અને ગુજરાત સમાચાર જોવાનો નિત્યક્રમ થઈ ગયો છે. અકિલા અને ભાસ્કર દરરોજ એકથી વધુ વખત સંવર્ધિત થાય છે, સંદેશ ક્યારેક એકથી વધુ વખત સંવર્ધિત થાય છે, પણ ગુજરાત સમાચાર રોજે માત્ર એક જ વખત (લગભગ ૧૨ વાગ્યે રાત્રે ભારતીય સમય પ્રમાણે). તેમના સમાચારોની ઉઠાંતરી થતી રોકવા તે સૌથી છેલ્લે અપડેટ કરે છે.

બ્લોગસમાં સૌથી સરસ સમાચાર બ્લોગ છે, ગુજરાત સમચારના પત્રકાર જપન પાઠકનો "દેશગુજરાત", જે લગભગ રોજ એકવાર અપડેટ થાય છે. જેમાં ઘણી તટસ્થતાથી કેટલાક સમાચારપત્રોમાં ન છપાયેલ વિષયો પર સરસ આલેખન હોય છે. આ બ્લોગ મારા રોજના વાંચનલીસ્ટમાં છે.

સાહિત્યજગતના અસંખ્ય બ્લોગસ પ્રાપ્ય છે, આભાર blogspot અને wordpressનો ! સૌથી આગળ ચાલે છે, રીડગુજરાતી. વડોદરાએ બ્લોગની બાબતે પણ મેદાન માર્યુ છે, ત્યાંથી ઘણા બ્લોગ્સ લખાય છે. રીડગુજરાતી પણ વડોદરાના મૃગેશ શાહ ચલાવે છે. રોજની ૬૦૦+ ક્લીક સાથે આ બ્લોગ ગુજરાતી બ્લોગ્સમાં આગળ છે. સરસ પસંદ કરેલી બે સાહિત્યિક કૃતિઓ રોજ અપડેટ થાય છે.

આ સિવાય બીજા નોંધનીય બ્લોગ્સમાં, ગુજરાત સમાચારના કટારલેખક ઉર્વીશ કોઠારીનો તેમની કોલમનો બ્લોગ, ડૉ. વિવેક ટેલરનો તેમની કવિતાઓનો બ્લોગ, આદિલ મન્સુરી સાહેબનો બ્લોગ, હરસુખ થાનકીનો બ્લોગ, તેમની પુત્રી પ્રતિક્ષાનો TOIમાં પ્રસિધ્ધ થયેલ આર્ટિકલ્સનો English બ્લોગ ,સુરેશ જાનીનો બ્લોગ મુકી શકાય જે હું છાશવારે જોય લઉ છું.

Friday, July 18, 2008

Where Indulal Yagnik is Yantrik !!


This is yet another example, how serious is our Gujarati web media... This time they made a spelling mistake, may be typist never heard name of Shri Indulal. He wrote "Indulal Yangnik" as "Indulal Yantrik" !!

As these days there have been many articles on Asharam and very frequent use of word "tantrik", made typist to make this mistake !!

Luckily, this is not the mistake in their print edition, else many would have complained.. nobody cares on web edition !