Thursday, June 5, 2008

Programmer’s Notepad - Superb Editor


I have used many editors for web programming so far. Windows Notepad, Editplus, Notetab for example. But Programmer’s Notepad is just superb! It has so nice features like syntax highlighting, tabbed view, syntax color schemes for variety of programming languages, code folding to name the few.
The most important thing is that its free. It is an Open Source Project. Currently it supports only Windows Operating System. I would like to have a GNU/Linux version also. I am sure they must be working on this.
Programmer’s Notepad has nice add-ons. It has JavaScript DOM and jQuery text clips which comes so handy. I have not seen this particular feature in any other similar text editor.
Programmer’s Notepad is very simple to use and it has clean interface. Official website to download Programmer’s Notepad is http://www.pnotepad.org/.

Tuesday, May 6, 2008

Flash is Flashy But not useful for websites

I read this very nice article "6 Places that Flash Does Not Belong". The author has rightly spotlighted problems in using Flash on websites. I was always against using Flash on websites primarily for the reason that I had seen some layman users getting lost on "You need to download Flash PluIn to view this website" type error message. I have always thought that websites do not need to be so animated where content, its accessibility and Search Engine Ranking is primary focus of most of these.

read more | digg story

Wednesday, November 7, 2007

CSS Layout

Though I am a developer, programmer I like to design web pages. I like to create web pages which are browser independent, W3C compliant, easy to maintain and simple in design. I like that W3C validators yellow logo on my webpage.
I think its challenging to create a layout that is maintainable and flexible. The old approach of putting all contents in a big page wide table and adjusting TDs, fails to make design flexible.
CSS Layout is a supurb technique which make it possible to create liquid webpage designs. Basically HTML should always deal with WHAT TO DISPLAY? and CSS should deal with HOW TO DISPLAY? But because of some bad practices by some of the software giant companies, these standards were not followed and in order to make webpage development easier, table layouting option was tried alot. But now the webdevelopers have re-realised the need to go back to basics and try CSS layouting.
Actally its very simple and I would like to share a fantastic link here which deals with creating CSS layout from the scratch. Please remember that the technique shared here is not the only way to create CSS layout but its enough to give an idea of how the whole CSS layouting is done.
Please click here to open above mentioned tutorial in a new window.

I hope this helps you in creating fantastic liquid CSS layouts in future.

Tuesday, November 6, 2007

ASP : Easy way to connect to database on every page

This is the simplest way to connect to database on every page in ASP.
An include file should be created having following code :

<script language="VBScript" runat="Server">


' Global variables
dim cn ' Connection Object
dim rs ' RecordSet Object
dim rs1,rs2,rs3


sub openCN

set cn = Server.CreateObject("ADODB.Connection")
set rs = Server.CreateObject("ADODB.Recordset")
set rs1 = Server.CreateObject("ADODB.Recordset")
set rs2 = Server.CreateObject("ADODB.Recordset")
set rs3 = Server.CreateObject("ADODB.Recordset")


cn.OPEN "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("yourdatabasename.mdb") & ";"

'cn.OPEN "SERVER=ipaddressofyourserver;DRIVER={SQL Server};DATABASE=databasename;UID=username;pwd=password;"

end sub

sub closeCN
'close the connection
cn.Close
set rs = Nothing
set rs1 = Nothing
set rs2 = Nothing
set cn = Nothing
end sub

</script>


Now this include file can be included in each ASP page where database access is required. Don't forget to call openCN subroutine.

Thursday, September 13, 2007

Why this blog?

Hi All ...
The motive behind creating this blog is simple.
Its just to share my knowledge about computer programming. I do ASP, PHP, Javascript, VBScript, JSP, Java, C, Visual Basic Programming. I am doing it for last 3-4 years or so and have been through many problems and many times got success in solving those.
I owe to Internet very much in solving these problems, making my web or standalone applications better.
So I would like to contribute a drop by myself to this ocean of information..
I hope to be able to solve some of the programming related problems online.