Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Here are a few snippets that will come in handy if you ever need to redirect www.example.com to example.com or vice versa.
-
In the world of Git, tags are very useful for keeping track of your project's version history.
-
If you love working with PHP but hate the GD library, you'll love the Simple Image PHP class I'm releasing today.
-
Today I learned that Microsoft Office 2007 files (you know, the new ones that end in DOCX, XLSX, and PPTX) don't always download properly in Internet Explorer.
-
You know that special effect where you click on a link and your browser smoothly scrolls down to the appropriate section of the page?
-
If you've ever worked in, on, with, or around the Internet, you've undoubtedly heard the terms "Web Designer" and "Web Developer".
-
I was happy to learn that Windows 7 has some new shortcut keys that let you control certain aspects of window management right out of the box.
-
I came across a really awesome icon resource awhile back, but never got a chance to write anything about it.
-
I remember, not too long ago, arguing with people who said that JavaScript would never be as good as Flash.
-
I recently came across a little issue with Internet Explorer 8 and max-width.
-
Ever since tabbed browsing hit the mainstream I've been hooked.
-
Last year all of the hype was about IE8 and Microsoft's decision to default the browsers version targeting to "quirks mode" rather than standards mode.
-
I ran into a little "gotcha" today where an image was displaying properly in Firefox and Safari, but not in Internet Explorer.
-
I use these regular expressions all the time, but it's much more convenient to have them both in convenient PHP functions. // Returns only the file extension (without the dot) function file_ext($filename) { return preg_match('/\./', $filename) ?
-
The first time I ever saw this alleged bug was in Internet Explorer 7 yesterday.
-
Today has been an exciting day.
-
I don't use this very often, but when I do I always spend a decent amount of time trying to figure it out online.
-
Whenever I work with AJAX, jQuery is my preferred JavaScript library and PHP is my preferred server-side language.
-
$.getJSON() is pretty handy for sending an AJAX request and getting back JSON data as a response.
-
Here is a function I wrote to generate a random string in PHP.
-
This is a very brief example of how to use PHP's curl Library to retrieve the source of a remote webpage.
-
A quick JavaScript function to determine a file's extension. function fileExt(path) { return path.substr(path.lastIndexOf('.') + 1); }
-
Safari was the first mainstream browser to pass the Acid2 Test now.
-
On December 28th, 2007, the Netscape Blog announced that AOL is ending support for Netscape web browsers effective February 1, 2008.
-
An internal build of IE8 is reported to have passed the Acid 2 test.
-
A demonstration of selecting checkboxes using jQuery.We start off with a bunch of checkboxes: <fieldset id="group_1"> <input type="checkbox" name="numbers[]" value="0" /> <input type="checkbox" name="numbers[]" value="1" /> <input type="checkbox" na…
-
With the deprecation of the target attribute in XHTML Strict, opening links in new windows has become a bit trivial, if not annoying, to standardize.
-
The following snippet will convert a simple PHP array into CSV (comma-separated values) format. function csv($array) { $csv = ""; for ($i = 0; $i < count($array); $i++) { $csv .= '"' . str_replace('"', '""', $array[$i]) . '"'; if ($i < count($…
-
This is extremely useful when you need to scale down an image within a certain pair of dimensions. get_resized_dimensions() Parameters $width - The width of the image to be resized $height - The height of the image to be resized $max_width - The maximum a…
-
Here are two JavaScript functions that mimic their PHP cousins. basename() function basename(path) { return path.replace(/.*\//, ''); } dirname() function dirname(path) { return path.match(/.*\//); } Unlike their PHP cousins, these functions do not…
-
When calculating dates in PHP, it is easy to add millisecond values such as 60 * 60 * 24 to increment the time by one day.
-
I came across an excellent website for free fonts online.
-
I've seen a number of methods to force file downloads using the PHP header() function which, essentially, sends a raw HTTP header to the browser.
-
A friend of mine recently graduated and spread his wings by venturing into the corporate world.
-
It's not uncommon so see someone surfing the net with their cell phone or PDA these days or, at least, trying to.
-
I frequently see little printer icons all over the web that clearly mean I can print out a clean version of the webpage that I'm looking at.
-
Traditionally found in printed media, drop caps are created by emphasizing the size, color, weight, or style of the first letter in the first sentence of a paragraph.
-
These two PHP functions use regular expressions to add the appropriate HTML anchor tags around hyperlinks and email addresses in $string.
-
A favicon (pronounced "fave-icon") is a small, iconic image that represents your website.
-
Comment spam (also known as 'link spam', 'blog spam', and 'wikispam') occurs when people or spam bots post comments on someones blog, guestbook, or wiki for the sole purpose of boosting traffic and promoting better search engine rankings for their site.
-
I'd like to introduce my new web design studio.
-
The plane took off from Orlando as I sat half asleep in my seat.
-
VistaPrint delivered 1,000 “A Beautiful Site” business cards the other day, and I couldn't resist playing with them.
-
This article aims to describe the difference between the three most popular types of images used on the Web, and how to use them effectively in your websites.
-
The simplest way I know to password protect files and directories using Apache's .htaccess and .htpasswd files. .htpasswd Create a text file with the following text: username:password The usernames and passwords are stored in this file, one per line, sep…