Wordpress Auto-Login for Friend/Ally Websites

Wordpress Auto-Login

Wordpress Auto Login Plugin

I had come up with requirement where I need to provide a auto-login to Wordpress blog with Guest user credentials. To accomplish that requirement first I had looked up at available plugins which can let me do that without writing a line of code. Finally I got something similar I wanted and I have modified that and written a plugin to match up that requirement. I owe lot to Wordpress; and to add up my little contribution to Wordpress community I have generalized that plugin and published it here on my blogs and Wordpress Plugins directory.

To be fair this plugin is simple and do not have any interface from where you can configure it. Simply open up the auto-login.php file and edit following configuration array; that's it you are done.

How to configure Wordpress Auto-Login ?

It's simple just look at code snippet and you will find out yourself..! Read the rest of this entry »

Tags: ,

Apple iPad launched

iPad from Apple

Apple launches iPad

After Macintosh, iPod and iPhone Apple has created new waves in a market where there was lot of scope yet literally no competition if we consider with Apple's standards. It seems like it will have big impact on consumers who are looking for something like this and who really like to read and publish. I mean it has all the goodness of iPod and it offers so much other than e-books; it has movies, music, photo albums, apps, email/browsing and more.. all this with powerful 1GB Apple processor and Flash storage up to 64GB. (For detailed specs.)

Amazon's Kindle find itself nowhere when you compare features; and there is always Apple's great magic in everything they do..!

Pricing starts from $499 (16GB ) and is up to $699 (64GB) for WiFi model, while there is $130 extra for WiFi+3G models. Which is very good when we see value for money with keeping it's feature-set and usage in mind. (For more on pricing.)

Though it seems like Multitasking and Web-Conferencing with Camera would have made it unparallel but let's hope it would be in future revisions of iPad.

The WashingtonPost has posted Top 10 Reasons The Apple iPad Will Put Amazon's Kindle Out of Business: (which is interesting to read)

1) The multi-functional capability. Buy a Kindle and you get a reader. Another dedicated device to carry. Buy an iPad, and you get a whole new companion that can do pretty much anything. Games, movies, browsing, documents, and more all in one. And zillions of iPhone apps. It's sooooo much more than a reader, it's a whole-life device.

2) The screen. Full color, multi-touch screen, gestures, and more. It's a pleasure to look at it and we all can rely on Steve Jobs? aesthetics to know that it's a pleasure to hold as well. Read the rest of this entry »

Tags: ,

Use Google Docs Viewer for Document viewing within Browser

Google Docs

Google Docs Viewer

I was looking for a way to let users see Microsoft Word Doc or PDF files online while using my application without leaving their browser without downloading files and then opening it to view with Word or PDF viewer. I was looking for some way out either via any PHP or Microsoft.NET libraries, did some googling on that; but later on I just got an idea that google already has all code written for me.. when I have any email attachment in PDF or DOC or DOCX google does it for me..! Even while searching I can see PDFs by converting them in HTML. So I just googled it up and found that Google already has this ability that we can use Google Docs Viewer without any Google Account Login. YES that's true no Google Account login is required. It's damn simple and easy. Just pass document path as attachment as parameter and we are done.

Google Docs Viewer gives us ability to embed PDF, DOC/DOCX, PPT, TIFF:

Yes that's true; Google Docs Viewer gives us ability to view/embed functionality of PDF, DOC/DOCX, PPT and TIFF viewing on the fly without writing a single line of code by just giving a link or embedding within. No PPTX or XLS/XLSX is supported, Read the rest of this entry »

Tags:

jQuery 1.4 Released – jQuery UI has yet to achieve compatibility with it…

Last week jQuery 1.4 is released with a new website for the version. Lot of code has been rewritten to improve code and reduce function calls. I have been using jQuery since more than 2 years now and it is always good to upgrade to newer version of jQuery which brings more function to help us more speed and performance. There are more than dozens of new additions for developers and it will just help all of us to do things in better way with jQuery now..!

jQuery and jQuery-UI Compatibility:

The fact is jQuery and jQueryUI are not compatible, YES they are not. I tried to upgrade my application with jQuery1.4 but UI components are failed to work. I was using jQueryUI 1.7.2, later on I digg-in on the web to see how soon UI will support jQuery1.4 but seems like 1.7.x won't do that probably 1.8.x would.  So I tried looking at what is cooking with jQueryUI 1.8 but when I downloaded alpha release of UI1.8.a1 it had jQuery1.3.2 powering it...! Read the rest of this entry »

Tags: ,

Mozilla released Firefox 3.6 – What’s new?

Today Mozilla has announced Firefox 3.6 availability for public use. It's built on Mozilla's Gecko 1.9.2 web rendering platform.

Firefox 3.6 with Personas

Firefox 3.6 with Personas

I love to update my computer with every new release Firefox comes up with and this time it has lovely Personas. Previewing a theme is so easy with it..! Just like Google Chrome and it's fast as well.

I liked the fact that almost all majorly used Firefox extensions were working with this update except "Microsoft .NET Framework Assistance" which is probably not compatible since Firefox 3.5.6 version.

What's new in Firefox 3.6? (as per release notes from Mozilla)

Firefox 3.6  is built on Mozilla's Gecko 1.9.2 web rendering platform, which has been under development since early 2009 and contains many improvements for web developers, add-on developers, and users. This version is also faster and more responsive than previous versions and has been optimized to run on small device operating systems such as Maemo.

New & Notable Firefox 3.6 features include: Read the rest of this entry »

Tags: ,

Request for the permission of type ‘System.Data…’ failed

While testing one of the old samples I found that it is giving me an exceptions of permissions. The exception raised was  Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Upon checking I found that I have opened the project from a Network Drive location which as causing the permissions problem.

To resolve this you can simply take the copy of code to local drive and reopen the project.

Tags: , , ,

NetBeans 6.8 is out

NetBeans 6.8

NetBeans 6.8

NetBeans 6.8 is released last week on December 10, 2009 and it is on the door with many new exciting features. I am developing Web Applications with PHP, XML, Javascript, HTML and it has been great experience using NetBeans. Other than NetBeans I am using Eclipse for some of the projects and NotePad++ and EditPlus are handy for some quick-fixes where you don't need to open up or create a new Project.

EditPlus was my first Editor when I started my career and after that Eclipse PDT and later NetBeans has taken their place. For majority of projects I am using NetBeans while for some specific projects where goodness of some great Eclipse Plug-in drags me towards it. For anything quick I have always EditPlus on hand, which is really handy if you want to see some formatted code on your Windows Servers. The beauty of EditPlus is it's very light-weight (only 1.3MB) and damn fast. Though it is not Free you can use it for evaluation period as long as you wish if you can click "I Agree" at start-up.

One of my most most favorite feature of NetBeans is Quick File Search through File/Project Navigator Pane. It is the most beautiful feature..it's so coool one can't live without it once we get used to it. You don't need to type through live Windows file-listing, it just opens up tiny search control just as you start typing and it stays with character you input even after you pause for few seconds. I think this feature should be there in every IDE.
Read the rest of this entry »

Tags: , , ,

Radio-buttons with Checkbox behavior – a jQuery Plugin 1.2.5

This is almost final release to a innovative plug-in which changes the basic behavior of any Radio-button in our form and makes it selectable or un-selectable just like a checkbox.

It includes some code improvements and stays compatible to latest version of jQuery 1.3.2 just like 1.2.4. It has been tested on Safari 4.x, Internet Explorer 7.0+, Firefox 3.x and will work on Chrome 2.x or 3.x as well.

I request any users to post back any problems/bugs they encounter or enhancements they need to be included.
Read the rest of this entry »

Tags: , ,

Installing Apache on Windows 2008

I would like to share my experiences with Apache installation on Windows 2008 Server.
It's not a easy drive when you are installing deploying your open-source application on Microsoft Windows 2008 Server. There was a nasty UAC - User Account Control which makes it difficult to configure Apache if we don't know about UAC on Windows 2008.

So if we are installing Apache on Windows 2008 then first thing to take care is go to Control Panel > User Accounts > Enable or Disable UAC. Un-check the checkbox and Finish wizard. It will require a reboot. Once it is done Apache should be able to start without any problem. If you don't do that it gives really wired error which is "Unable to open logs" which really does not make any sense that why this is happening.

Tags: ,

Generating 2048-bit CSR with OpenSSL

As computer processing power is increasing everyday, so breaking 1024-bit private key algorithms will be possible by 2011. So we will need to generate minimum 2048-bit RSA Private Keys for new SSL Certificates or renewals.

I have recently faced similar case while I had given older CSR which I gave last year for the renewal to GoDaddy and it didn't worked due to security reasons.

We need to simply regenerate Private Key and CSR with the help of following OpenSSL command:

 openssl req -nodes -newkey rsa:2048 -keyout new-digitss.key -out new-digitss.csr

This will generate 2048-bit key file and after that it will ask few basic information about the entity being certified. Private Key file generated with above command won't have secret pass-phrase so it won't be a problem deploying them on Windows based Apache server setups or either on Linux platforms. But if you really want to have pass-phrase then please refer to a previous post and replace it with 2048 or 4096 instead of 1024 which is being used in commands or just remove the "-nodes" from the above command which will ask for a pass-phrase.

Removing the "-nodes" option from the above mentioned openssl command will ask for a pass-phrase and encrypt the private key. This can increase security, but please note that the pass-phrase will be required each time Apache is started. In that case you need to get a un-secure private key for your Windows based Apache setup. It is as simple as writing following line of command on OpenSSL.

 rsa -in digitss.key -out unsecured.digitss.key

Above OpenSSL command will give unsecured private key which will have pass-phrase removed and so can be used with Windows based Apache setups.

More References:

For more detailed information on CSR generation please refer following post: (Just use 2048 or 4096 instead of 1024 to make it work)
http://blogs.digitss.com/apache/how-to-generate-certificate-signing-request-csr-file-with-apache-openssl/

See GoDaddy Help for detailed reason on: Why does my CSR need to be 2048 bit length?

CSR Generation Instructions for Rest of the Web-Servers: Certificate Signing Request (CSR) Generation Instructions

Tags: , ,