Posts

Showing posts from December, 2011

Increase typing speed

Image
Well, in past few weeks, many of my friends asked me, how you type at this much fast speed, without seeing at "keyboard" ? So, I thought lets talk about it. "QWERT" keyboard is old design, but looking impossible to change in near future (remember - Nothing is impossible!). So, lets start with basic learning. I am sure that if you follow below steps for at least 15 days, you can feel the change in your speed. The tutorial - practice is designed like that, it helps same to new computer learner as well as to all who knows computer from top to bottom. Steps :- 1 . Most of the computer people have much writing experience, but they haven't put in a proper way, so they can not get full benifit of the full speed without looking at keyboard. So, first step is : "press the each key with right fingure". i.e. keyboard has two parts and those part is covered by left and right hand respectively (also shown in figure). For practice of 1st step...

SAX parsing for cdata tag for large xml file

     Here, I have given the code for parsing or reading large xml files using php.      Large xml files in php  are parsed using this  SAX  parser. The inner function of php, which gives directly the data of xml, can handle only small xml files (mostly upto 1KB to 50KB). So for parsing large xml files having data like 5MB, 50MB, etc. we have to use this method.      The code is given as simple as possible. Just enter your xml file path in 5th line. The 30th line gives the switch cases. Each switch case has one tag name of xml file. So if we want to perform any search or value of that tag or some other operation also can be done in that switch case area. From 54th line, we can do ending operation of that xml file. For ex. if we want to put data in table, we can complete table tag there.      The cdata tag is parsed in characterdata function on line 73. All cdata tag is parsed there and we can perform operat...