Archive for September, 2004

OOP in JavaScript.

Thursday, September 30th, 2004

The article by Sergey Zavadski introduces the object model of the JavaScript programming language and demonstrates common practices in the OOP (object oriented programming) with the JavaScript.
(more…)

Simple Tricks for More Usable Forms

Thursday, September 30th, 2004

Haven’t read the whole article, but wanted to save the link for when I had more time:

Simple Tricks for More Usable Forms [JavaScript & DHTML Tutorials]
What I did read so far, looked very interesting and seemed like something I’d want to reference again.
[via del.icio.us]

PHP: Hiding Errors

Thursday, September 30th, 2004

I was running into a problem with undefined index errors. You’ll get that if you do seomthing like:

echo $_GET['name'];

when there is no $_GET['name']. One option is to check to make sure $_GET['name'] is set like

if (isset($_GET['name'])) {
echo $_GET['name'];
}

But if you’re feeling lazy, you can leave your code as is and just add this at the top of your file

error_reporting(E_ALL ^ E_NOTICE);

Alternatively, turning off those notices is a setting you can adjust in .ini file, but if you don’t have access to that file, then just putting that error_reporting line in your code will suffice
[found on experts exchange thread]

Tutorials

Thursday, September 30th, 2004

I’m going to add this to my tutorials post, but wanted to make a special post highlighting it too.

Web Tutorials
A pretty nice selection of (from the looks of it beginner-level) tutorials on a variety of subjects including XHTML, CSS, Javascript, PHP, mySQL (mySQL section doesn’t appear to be live yet)

Image Zoom

Thursday, September 30th, 2004

I just installed this FireFox extension, and it is pretty cool!!

ImageZoom
Lets you zoom in/out of images on a web page. Granted, an image’s resolution is an image’s resolution, but there have been many times I wish I could get a closer look at an image - even if it did get a little pixelated.

Sticky Posts in WordPress

Monday, September 27th, 2004

I’m trying to create a sticky post (as in, make one post stay on top above “newer” posts - until I indicate otherwise)

Previously, I had blogged this link on Weblog Tools Collection - I now notice there is an update post which points you to oomsonline to these instructions. However upon reading in the instructions that it required a manual edit to the database (and I was in a lazy mood) I decided to look further.

On the wiki I found a link here on the wp support boards which linked to another type of plugin. I gave it a try - but ran into problems. (it simply didn’t seem to work)

Then I found “Adhesive” which I also tried, but ran into problems. (It creates a checkbox that you check if you want it to be sticky - however, I would check the checkbox, and it wouldn’t stay checked after I saved my changes.)

Granted - I suspect at least SOME of these problems may be in part because my index.php page is heavily customized. Aside from the confusion of the multiple plugins/hacks that seem to do the same thing - are there others out there that have had better success? Is the first one to weblogtoolscollection reliable enough that it’s worth the manual change to the database?

UPDATE: Not quite sure what was going on before - but Adhesive suddenly started to work for me. And I’m very happy with it. :D

Plugin Links

Monday, September 27th, 2004

A few good links to WordPress plugins found on Blogging Pro:

Code Viewer
Will display code from an external file in your post - formatted with line numbers, and a link to download the actual file.

Referrer
Will show the most recent referring urls to a particular post.

Ten CSS tricks

Sunday, September 26th, 2004

Here’s an article with some very useful CSS tips “you may not know” (but really should!)

evolt.org: Ten CSS tricks you may not know
[via del.icio.us]

Bunch o’ Links

Friday, September 24th, 2004

CMS Styles
A site with links to templates and styles for many of the popular blogging tools. (Wordpress, MT, Expression Engine, Textpattern)
[via Weblog Tools Collection]

Three Strikes You’re Out - spam plugin
Another fight against the spam-monster. This one has a strike-point system and ones weighted high can be prevented from ever hitting your site at all (even for moderation)
[via wordlog]

Import Blogger posts to Wordpress
A tutorial by BlueChronicles
[via wordlog]

Liquid Layouts - resolution dependent

Friday, September 24th, 2004

I think it’s rare that when I find something cool on web-graphics, that I only find ONE cool thing. I usually end up making at least two posts with credits to them.

The other interesting link they had was in this post to The Man in Blue:

Resolution dependent layouts
Which talks about and shows an example of a layout that is liquid - but that also varies depending on the browser’s size.