If you have upgraded the PDA plugin in past 2 days you might run into header output issues which might break the operation of wordpress where ever header function was being used.
To overcome the issues please de-activate the plugin and upgrade the plugin to the latest version 1.2.6 and activate the plugin back.
This error was due to some unwanted junk character present in the beginning of the file. It was due to the editor issue which I had used to save the file and commit the file to the repository.
I am really sorry for causing this issue and sorry for the inconvenience caused
Posted in Programming | 4 Comments »
Today I upgraded my blog to latest WordPress 2.5. You have no idea what they have done to the WordPress. It is really great and lovely. I really like the new interface and media manager integration. Most of the functionalities what my organizer plugin did is of no use now. Thanks to WordPress team
After a very long time I sat down and update the pda plugin. While doing so I got little greedy and tried to add a simple iPhone theme to it. It is far away from beta version. Still lot more to go. I am still finding a best method to do the plugin with nice ajax features and animation what iPhone would support. Still far more to go on the theme. For a 4 hours of work it works pretty well. I know what are all the bugs in it but I will try to mend it and release a new version end of next week.

wp-pda plugin is now fully compactible with latest WordPress 2.5. I would like to get feedback from you all. Thanks for supporting the plugin so far
You can download the plugin from here.
Checkout the latest changes and updates here.
Posted in Programming, Software | 2 Comments »
Moxiecode has released new version of Tinymce. Some new features updated from change log
Rewrote the core and most of the plugins and themes from scratch.
Added new and improved serialization engine, faster and more powerful.
Added new internal event system, things like editor.onClick.add(func).
Added new inline popups plugin, the dialogs are now skinable and uses clearlooks2 as default.
Added new context menu plugin, context menus can now have sub menus and plugins can add items on the fly.
Added new skin support for the simple and advanced themes you can alter the whole UI using CSS.
Added new o2k7 skin for the simple and advanced themes.
Added new custom list boxes for font size/format/style etc with preview support.
Added new UI management, enabled plugins to create controls like splitbuttons or menus easier.
Added new JSON parser/serializer and JSON-RPC class to the core API.
Added new cookie utility class to the core API.
Added new Unit testing class to the core API only available in dev mode.
Added new firebug lite integration when loading the dev version of TinyMCE.
Added new Safari plugin, fixes lots compatibility of issues with Safari 3.x.
Added new URI/URL parsing it now handles the hole RFC and even some exceptions.
Added new page break plugin, enables you to insert page break comments like <!– pagebreak –>
Added new on demand loading of plugins and themes. Enables you to load and init TinyMCE at any time.
Added new throbber/progress visualization a plugin can show/hide this when it’s needed.
Added new block quote button. Enables you to wrap paragraphs in blockquotes.
Added new compat2x plugin. Will provide a TinyMCE 2.x API for older plugins.
Added new theme_advanced_resizing_min_width, theme_advanced_resizing_min_height options.
Added new theme_advanced_resizing_max_height, theme_advanced_resizing_max_height options.
Added new use_native_selects option. Enables you to toggle native listboxes on and off.
Added new docs_url option enables you to specify where the TinyMCE user documentation is located.
Added new frame and rules options for the table dialog.
Added new global rule for valid_elements/extended_valid_elements enables you to specify global attributes for all elements.
Added new deny attribute rule character so it’s possible to deny global attribute rules on specific elements.
Added new unit tests in the dev package of TinyMCE. Runs tests on the core API, commands and settings of the editor.
Added new experimental jQuery and Prototype framework adapters to the development package.
Added new translation.html file for the development package. Helps with the internationalization of TinyMCE.
Added new setup callback option, use this callback to add events to TinyMCE. This method is recommended over the old callbacks.
Added new API documentation to all classes, functions, events, properties to the Wiki with examples etc.
Added new init method to all plugins and themes, since it’s shorter to write and it mimics interface capable languages better.
Added new tab_focus option, that enables you to specify a element id or that the next element to be focused on tab key down.
Added new addQueryValueHandler method to the tinymce.Editor class.
Added new class_filter option, this enables you to specify a function that can filter out CSS classes for the styles list box.
Added support form [url=url]title[/url] to the bbcode plugin.
Added type and compact attributes to the default valid_elements list for the ul and ol elements.
Added missing accessibility support to native list boxes in both the toolbar and dialogs.
Added missing access key for the element path for accessibility reasons.
Added new getElement method to Editor class, returns the element that was replaced with the editor instance.
Added new unavailable prefix for disabled controls for accessibility reasons.
Added new classes for toolbar rows in advanced theme mceToolbarRow1..n enabled you to change appearance of individual rows.
Added auto detection for the strict_loading_mode option when running in application/xhtml+xml mode on Gecko.
Optimized the HTML serializer by bundling some post process methods together.
Added new indentation option enables you to specify how much each indent/outdent call will add/remove.
Added easier support for enabling/disabling icon columns on drop menues.
Added new menu button control class. This control is very similar to the splitbutton but without any onclick action.
Added support for previous tab focus (shift+tab). The tab_focus setting now takes two items next and previous element.
Added map and area elements to the default valid_elements list and also some indentation rules.
One sad thing is Safari is still experimental
apart from that it is kick ass
Posted in Programming | 2 Comments »
Today I ran into a problem. I need to sort results of a given query by fixed column values.
Example
I have a column named status and which holds the following values 1,2,3,4
When I user normal sort method like
Order By status ASC will return 1,2,3,4
Order By status DESC will return 4,3,2,1
Suppose If I need the result to be sorted in a particular Order 3,2,4,1 then I ran into problem. Both method cannot solve my problem.
Then Googled and I found a thread in MySQL forum where Papalagi Pakeha had the same problem.
http://lists.mysql.com/mysql/209777
For that Johan Höök replied with a solution
http://lists.mysql.com/mysql/209784
Where I can user Order By Field function to get the needed result. So my query will look something like
Order By Field(status,3,2,4,1) which does the magic. I searched the whole MySQL documentation but I am unable to find the proper documentation. Who cares it works for me
Posted in Programming | 3 Comments »
For past few days I was playing around with this javascript library jquery which is really light and powerful.
This was told by Nishanth from our company. He is a great fan of this tool and even I am one now.
http://jquery.com/
Some of examples to use this library
$(”p.surprise”).addClass(”ohmy”).show(”slow”);
The selectors are really powerful and makes life very easier. Samples
Hide all Paragraph elements that contain a link:
$(”p[a]“).hide();
Show the first paragraph on the page:
$(”p:eq(0)”).show();
Hide all divs that are currently showing:
$(”div:visible”).hide();
Get all list items that are children of an unordered list:
$(”ul/li”)
/* valid too: $(”ul > li”) */
Get all Paragraphs, with a class of ‘foo’, that have a link in them:
$(”p.foo[a]“);
Get list item that contains link with “Register” text inside:
$(”li[a:contains('Register')]“);
Get the input field’s value with the name of ‘bar’:
$(”input[@name=bar]“).val();
All checked radio buttons:
$(”input[@type=radio][@checked]“)
Posted in Programming | 1 Comment »
I got a mail from one hosting company that they wanted to place an ad in my linux category page. They are ready to offer me 39$ for it per year. I am wondering if that price is okay to go with or it too cheap. I get better pay from Google adsense.
If anyone feels that it is a good price to go ahead let me know. I am thinking like 100$ to 150$ per year.
Don’t know bit confused about this
Posted in Programming | 8 Comments »