Jul
Sitemap Builder
No comments
Categories: PHP
Site maps are important tools for webmasters to have some sort of control over how their sites are indexed. This doesn’t give ultimate control by any stretch of the imagination. Google and yahoo will still index websites the way they will, a site map is more like a webmasters ‘tip’ to crawler bots to tell them what pages they should crawl, how often they change and what kind of priority the crawler bots should give to certain pages.
Jul
Javascript Debugging Part I (Visual Studio + IE)
1 comment so far
Categories: Browser Development, Javascript
Debugging is something that all mortal programmers must do. Any programmer who claims that his code is perfect the first time he writes it is #1 Lying #2 A legendary immortal Greek god of Programming. I for one am not a legendary immortal Greek god of Programming so I need methods to debug the code that I write. In this article, I’ll be talking about methods of debugging Javascript in Visual Studio and Internet Explorer. Part II will be debugging Javascript in Eclipse and Firefox.
Jun
CSS Properties List
No comments
Categories: Browser Development
Most browsers are similar in the sense that they all have a javascript engine and a css engine that processes css code in your style sheets or inline in your html and the javascript engine typically has access to most if not all of the css properties. Browsers differ in what css properties are available to be modified in javascript. Here is a quick piece of code that creates a list of all css properties are available to the javascript engine in your browser. The list will differ depending on what browser your using.
Jun
Evil spaces
No comments
Categories: Browser Development
When thinking about optimizing your web application, something to consider is javascript and css compression. There are a few good javascript and css compressors, one you can use for free online is http://www.creativyst.com/Prod/3/. However these can obfuscate your code so that it isn’t readable. Sometimes that is the goal, but for projects in which you want to keep your code readable there are other methods to keep your code smaller. Read the rest of this entry »
Jun
Javascript DateAdd Function
No comments
Categories: Browser Development, Javascript
There are many date add methods online. I recently needed a simple bulletproof method for dateadd and didn’t like any of the ones i found online so i figured i would actually sit down and write one ;). Here’s what I came up with. Read the rest of this entry »
May
Javascript loop performance
No comments
Categories: Browser Development, Javascript
I’ve recently been working on a large javascript based application that does a lot of DOM manipulation. There are literally thousands of loops throughout the application that traverse the DOM and make changes in some way shape or form. The application has been running slow of late and we’ve been working through small ways to optimize performance. One of the things that I noticed is that literally all of our loops were written the following way: Read the rest of this entry »
Apr
CSS Selectors
1 comment so far
Categories: Browser Development, css
CSS has many useful ways of getting the element you want to style. Most of us have seen using the ‘#’ sign to select your element by id or using ‘.’ to select an element with a specific class name. However there is a lesser known yet very helpful selector. CSS2 allows you to select an element based on any attribute using ‘[]‘ brackets. Read the rest of this entry »
Mar
PHP list() Function
No comments
Categories: PHP
Here’s a handy little function. This comes in handy in many different situations, especially in regards to parsing database results. Here’s a typical way to parse through a MySQL result set: Read the rest of this entry »
Mar
Making Eclipse PDT work for you
1 comment so far
Categories: PHP
The whole point of an IDE is to help you develop faster and with fewer errors. Eclipse PDT has many features that can help accomplish this, but if you don’t know what those features are and don’t use them, then you might as well just use notepad. Here are a few shortcuts that I’ve found very helpful: Read the rest of this entry »
Mar
Eclipse, a PHP IDE
1 comment so far
Categories: PHP
“Ok, so I have a great text editor. Why do I need an IDE?” A very common question especially among PHP developers. There are many different text editors that do a really good job when you need a basic text editor and maybe a little syntax highlighting. But what does a full fledged IDE typically offer that a text editor does not? Read the rest of this entry »
