 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
AddedBytes.com: Regular Expressions Cheat Sheet
by Chris Cornutt September 15, 2006 @ 07:46:23
One of the more elusive concepts of programming can be working with regular expressions. Now, there's lots of places to learn them and to get a handle on what they can do (such as this book), but what if you don't need the full-blown reference and just want a quick and dirty reference source? AddedBytes.com is happy to be of service with their latest cheat sheet divided up into the different formats (anchors, character classes, assertions, escape characters, etc).
The Regular Expressions cheat sheet is designed to be printed on an A4 sheet of paper and live by a designer or developer's desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Regular Expressions cheat sheet.
This time, they've posted it in a few different formats, including a torrent file to make for faster/easier download. They still have the usual methods (PDF and PNG) but you'll need to visit the page for those links - it's been requested not to directly link to them.
voice your opinion now!
cheat sheet regular expression pdf png torrent cheat sheet regular expression pdf png torrent
456Bereastreet.com: Build your own PHP style sheet switcher
by Chris Cornutt August 24, 2006 @ 15:19:11
At the 456 Berea St blog today, there's a popular new post that demonstrates a simple (yet effective) method for switching out the style sheets on your site at the whim of the user.
Want to have a style switcher that lets your site's visitors choose a different style sheet? Want it to work even if there is no JavaScript support? The trick is to use a server-side language like PHP, which is what I use for my style switcher.
Using PHP to let the user switch to a different CSS file is nothing new. But it is one of the things that I am often asked about, so I thought it would be good to have a write-up to refer people to in the future.
The code for the switcher is only about five lines long, implementation and all, but it's a nice, clean way to do it. It would break if the viewer didn't have cookies allowed on their system, though.
voice your opinion now!
style sheet switcher simple cookie import redirect style sheet switcher simple cookie import redirect
Thingoid.com: Markdown and PHP Markdown Extra Cheat Sheet
by Chris Cornutt January 13, 2006 @ 07:30:50
From Trevor's blog, thingoid, today, there's
Here's my Markdown . It's great to be able to write in (nearly) plain English - say, for submitting something for print - and being able to dump the same text down into the blog and have it work on the web. Setting aside writing-for-web vs. writing-for-print issues, I find this a great help.
And PHP Markdown Extra adds a few niceties, like Markdown inside HTML block tags, simple tables, and definition lists. It just drops straight into WordPress and away you go.
For more information on Markdow (or it's use in PHP), you can check out the Markdown manual first and the PHP one to follow up...
voice your opinion now!
markdown cheat sheet PDF markdown cheat sheet PDF
24ways.org: Introducing UDASSS!
by Chris Cornutt December 19, 2005 @ 07:27:01
On our sister site, AjaxDeveloper.org today, there's a new post that references an "Unobtrusive Degradable Ajax Style Sheet Switcher" powered on the backend by PHP - UDASSS.
First of all, the idea is very simple. I wanted something just like what Paul Sowden put together in
Alternative Style: Working With Alternate Style Sheets from Alistapart Magazine EXCEPT a few minor (not-so-minor actually) differences which I've listed briefly below:
- Allow users to switch styles without JavaScript enabled (degradable)
- Preventing the F.O.U.C. before the window 'load' when getting preferred styles
- Keep the JavaScript entirely off our markup (no onclick's or onload's)
- Make it very very easy to implement (ok, Paul did that too)
What I did to achieve this was used server-side cookies instead of JavaScript cookies. Hence, PHP. However this isn't a "PHP style switcher" '" which is where Ajax comes in. For the extreme technical folks, no, there is no xml involved here, or even a callback response. I only say Ajax because everyone knows what 'it' means. With that said, it's the Ajax that sets the cookies 'on the fly'. Got it? Awesome!
The rest of the post is a tutorial on how to use it (simply), and a direct link to download it.
voice your opinion now!
ajax usasss Unobtrusive Degradable Ajax Style Sheet Switcher ajax usasss Unobtrusive Degradable Ajax Style Sheet Switcher
|
Community Events
Don't see your event here? Let us know!
|