David Bisset: Web Designer, Coder, Wordpress Guru

Web 2.0, Php, MySQL, HTML, CSS, Wordpress, Javascript, iTouch iPod, iPhone, Adobe…

Archive for the ‘Coding’ Category

CSS Menus List

A ton of roundups for css menu links exist - this one at noupe.com covers many of the usual suspects but a few rarer ones. You almost can never have too many of css menu lists I think.

  • 0 Comments
  • Filed under: Coding
  • List of Software Frameworks

    Smashing Magazine has another list post of software frameworks covering most of the popular frameworks of php, rails, javascript, etc. Most of these follow the Model-View-Controller (MVC) architecture.

    It’s not a complete list by any means, as additional frameworks are mentioned in the comments. But it’s a nice readable list to skim, and worthy of bookmarking.

  • 0 Comments
  • Filed under: Coding
  • Bookmarking this nice article and code (although I admit it needs more testing) for a more accessible edit-in-place solution using Javascript and CSS. I like edit-in-place scripts and I want to download this later and test it on additional browsers, especially Safari.

  • 0 Comments
  • Filed under: Coding
  • CSS: The Best Ampersand Available

    Using The Best Ampersand Available - Thought this is a nice, short CSS tip worthy of a bookmark.

  • 0 Comments
  • Filed under: Coding
  • Javascript and CSS magic… Apple has put up some sample code that shows off the new window.onorientationchange and window.orientation ability that lets you detect the orientation of the iPhone. devphone.com goes into it a bit more, with sample code.

  • 0 Comments
  • Filed under: Apple, Coding
  • This is a personal note for me (and anyone else who stumbles on this) regarding a possible CSS bug for Firefox.

    Say you have two divs - both have floats so that they can end up being two columns on your site. But sometimes when you add a dropdown menu (<select> tag) to one div) it will break the layout… usually meaning that the other div will be pushed down. And this usually happens only in Firefox. IE sees it just fine.

    After some mindless tinkering try this - try switching the ORDER OF YOUR divs. So instead of having:

    <div1>
    <select><option value="something"></option></select>
    </div1>
    <div2>Right Column</div2>

    switch the order in the html, and adjust the css floats (from “left” to “right” for the div2 in this case):

    <div2>Right Column</div2>
    <div1> <select><option value="something"></option></select> </div1>

    This doesn’t really address the oringial problem, although it does fix the issue - and unless i’m missing something, this appears to be a bug in Firefox (although I have not tested this on a Mac version of Firefox).

  • 3 Comments
  • Filed under: Coding
  • HTML Dropdown List of US States

    Sometimes you just need this in a pinch: Drop-down list of United States, Canada, and Mexico states or provinces.

  • 0 Comments
  • Filed under: Coding
  • CSS Text Wrapper Web App

    The CSS Text Wrapper allows you to easily make HTML text wrap in shapes other than just a rectangle. I think this would be rare of me to need, but bookmarking anyway because it seems quick and easy to use if i have to.

  • 0 Comments
  • Filed under: Coding
  • Dynamic Ajax Tabs

    Dynamic Ajax Tabs in only 17 lines of code thanks to the Prototype Javascript framework.

  • 0 Comments
  • Filed under: Coding
  • I work with MySQL more than any other database, so naturally I want to bookmark some interesting reading. I’m currently reading 10 Tips for optimizing mysql queries and 10 Tips for Optimizing MySQL Queries (That don’t suck), both I found referenced here.

  • 0 Comments
  • Filed under: Coding
  • CSS2 / CSS3 Color Modes

    Great article on understanding CSS Colour modes, and shows the different ways you can do it in CSS2 and the variations in CSS3. CSS3 apparently is supported by more browsers than you think - but I didn’t see IE mentioned. I’ll probably just stick with what I know works, but is an excellent reference bookmark.

  • 0 Comments
  • Filed under: Coding
  • Troels Knak-Nielsen writes a good overview on how PHP relates to functional programming and might be where PHP is heading in the next version. PHP is dynamically-typed and weakly-typed. Ruby, Python are dynamically-typed and strongly-typed.

  • 1 Comment
  • Filed under: Coding
  • AMFPHP is a free open-source PHP implementation of the Action Message Format (AMF). AMF allows for binary serialization of Action Script (AS2, AS3) native types and objects to be sent to server side services. Apparently people have adapted it for use with Wordpress, CakePHP, and other frameworks.

  • 0 Comments
  • Filed under: Coding
  • PHP Error Logging via htaccess

    How to suppress PHP errors from visitors and enable PHP error logging via htaccess.

  • 0 Comments
  • Filed under: Coding
  • Ajax Instant Messenger

    Ajax IM uses Prototype, and appears to be a decent ajax-based instant messenger. Recently upgraded, everything (PHP and JS) is now object-oriented instead of procedural and has many functions modified to make better use of the Prototype library.

  • 0 Comments
  • Filed under: Coding
  • How to Pluralize in PHP

    One of those useful but sometimes hard to find (good) PHP scripts. How to pluralize in PHP. It’s a work in progress with tweaking, but looks mostly solid.

  • 2 Comments
  • Filed under: Coding
  • My first post for my new Photoshop bookmark category. 24 Sweet Brushes for GIMP and Photoshop. It’s going to be impossible or time consuming to explain the brushes (half these links go bad by this time next year anyway) so I’m simply going to throw the links.

  • 1 Comment
  • Filed under: Coding
  • Load YUI Components on Demand

    Yahoo UI libraries are great, but sometimes I wished I could improve performance by only loading the ones I needed. Bookmarking a possible way to do this, so I can review later. Found about this YUI technique here.

  • 0 Comments
  • Filed under: Coding
  • CSS Tips: Sexy Stylesheets

    Jina Bolton’s Creating Sexy Stylesheets is simply good (but common-sense to advanced CSS developers) tips for using, coding, and commenting CSS. Good reminders.

  • 0 Comments
  • Filed under: Coding
  • The Problem With innerHTML

    Julien Lecomte’s addresses security and memory issues associated with using the innerHTML property. Nice html/css tip.

  • 0 Comments
  • Filed under: Coding
  • Simple caching proxy for Google Charts API in PHP. I seem to be discovering and bookmarking alot dealing with Google Charts API lately.

  • 0 Comments
  • Filed under: Coding
  • GMail to RSS

    This is a way to get an RSS feed from your Gmail account. PHP. Haven’t tried it yet, but no doubt useful.

  • 0 Comments
  • Filed under: Coding
  • I mentioned about the Google Charts coming out, but people are building better interfaces for it. GChart 0.2 alpha is a javascript wrapper and TalkPHP seems to do the job in PHP.

  • 0 Comments
  • Filed under: Coding
  • Microsoft Word & PHP

    Someone pasting text from Microsoft Word into your web app might bring unwanted Microsoft code with them. This php code might remove some/most of that:

    $body=preg_replace('#]*&gt;#',",$body);

    I wanted to document this, although the friend who passed this along forgot the original source.

  • 0 Comments
  • Filed under: Coding
  • Google Chart API

    Google Chart API seems very easy to use.

  • 0 Comments
  • Filed under: Coding
  • Rails 2.0 Released

    Rails 2.0: Multiviews, moving towards REST over SOAP, and better native security and performance. [ via WAXY ]

  • 0 Comments
  • Filed under: Coding
  • APPLEBOX is a recreation (to an extent) of the iTunes store. According to their blog, they are using Ruby On Rails and “Serverless AJAX”. I wondered what the latter was, and the comments in Ajaxian seems to address this term. I’m thinking this is more proof of concept than anything - this doesn’t work in Safari. And I doubt it works on an iPhone or iTouch, or any iPod for that matter.

  • 2 Comments
  • Filed under: Apple, Coding
  • Here’s a list of php and ruby (maybe others) libraries that exist which implement OpenID Authentication 1.1 and 2.0

  • 0 Comments
  • Filed under: Coding
  • Better ways to writing JavaScript, written for beginners (don’t use document.getElementById…), but worthy of bookmarking.

  • 0 Comments
  • Filed under: Coding
  • This article - Top 10 custom JavaScript functions of all time - talks about common javascript functions (perhaps put into a common.js file). It’s a little dated (about 2 years old when I type this), but I think most would still apply. After all, this is Javascript. Hasn’t changed much.

  • 0 Comments
  • Filed under: Coding
  • This is a nice minor variation on CSS tabs (with sliding animation) that i’ve seen. Uses jQuery, and also allows you to customize individual tab areas.

  • 0 Comments
  • Filed under: Coding
  • HTML5 and CSS3? Yawn.

    A List Apart recently had a preview of HTML 5, and i basically yawned. It was hard to explain why, until i read Warpspire’s post entitled “HTML5 and CSS3 are doomed for disaster“. While it’s a little TOO negative in some spots, and I still unsure about the points about Flash made - the rest of the article is right on the money. I can sum things up in one sentence: 99% of web developers shouldn’t even bother thinking about HTML5 or CSS3 for a few years.

  • 2 Comments
  • Filed under: Coding
  • YUI 2.4.0 Released

    I have used Yahoo’s UI Toolkit, and it’s very good. New version released with css selector, charts, profiler, script/CSS Get, and JSON Support.

  • 0 Comments
  • Filed under: Coding
  • .htaccess and mod_rewrites sometimes get the better of me, so i bookmark stuff like this: Smart HTTP and HTTPS RewriteRule Redirects.

  • 0 Comments
  • Filed under: Coding
  • Ext JS 2.0 Final Released

    No experience yet with Ext JS but with the new 2.0 version released, there’s alot of reasons why i should. A few samples I tried out really impressed me. Bookmarking for further research.

  • 0 Comments
  • Filed under: Coding
  • Twitter Updates