-
Double quotes in INI files loaded with parse_ini_file
Posted on March 1st, 2010 No commentsWriting a bit of PHP tonight and found that if you use parse_ini_file to load an INI file in PHP, there is a slightly hacky way of having double quotes in strings. For example, I tried these: somevalue = "This " "string" " has quotes" somevalue = "This " string " has quotes" But none of them worked! Turns out a quick look at the PHP manual reveals a simple (but a bit hacky) solution to this is to define a constant e.g. QUOTE to be “, and use that in the INI string
Read more from the original source:
Sphere: Related Content
Double quotes in INI files loaded with parse_ini_file
EU, File, James, ad, amp, asgrim, coding, config, double, escaping, exam, fine, fun, function, http, in, ing, ini, light, load, me, no, one, parse_ini_file, php, php5, quote, quotes, setting, simple, solution, string, to, ua, value, work, www double, escaping, exam, File, having-double, ing, setting, simple, work -
Microsoft Browser Choice Update
Posted on February 24th, 2010 No commentsSo the “Microsoft Browser Choice Screen Update For EEA Users” has arrived in my list of potential updates. Interestingly though, Microsoft have not selected this update by default. That might put a dampener on Opera’s big day…

Excerpt from:
Sphere: Related Content
Microsoft Browser Choice Update
17, Class, EEA, EU, James, OS, RDP, Wordpress, ad, amp, asgrim, asgrim.com, ballot, browser, choice, day, default, http, ice, image, in, ing, int, left, list, live, load, microsoft, no, not, opera, personal, press, rest, title, update, upload, user, word, wp, www amp, asgrim, browser, choice, choice-screen, default, EEA, list, microsoft, personal, rest, update, users, word -
Usage Statistics On Asgrim.com
Posted on February 9th, 2010 No commentsSo here’s a few useless usage statistics about this website I found using Google Analytics… Browser Distribution Firefox – 58.93% Internet Explorer – 15.58% Chrome – 10.33% Safari – 9.64% Mozilla – 2.92% Flash Usage 8.31% of visitors do not report to have Flash installed Operating Systems Windows – 55.95% Linux – 29.54% Mac – 8.61% Android – 4.90% iPhone – 0.31% iPod – 0.17% FreeBSD – 0.06% Playstation 3 – 0.06% Blackberry – 0.02% Java Support Yes – 76.80% No – 23.20% Top 10 Countries Ordered By Visits United States United Kingdom Spain Germany Canada Australia France Netherlands India Italy Other Figures… 1.23 average page views per visit 59 seconds average time on site (yikes!) 86.51% new visitors versus 13.49% returning visits
Go here to read the rest:
Sphere: Related Content
Usage Statistics On Asgrim.com
17, 5, Google, James, Java, Mac, Top, ad, ada, amp, analytics, android, asgrim, asgrim.com, black, browser, chrome, explorer, firefox, flash, http, iPod, in, information, ing, install, int, internet, iphone, less, linux, me, new, no, not, one, opera, page, pain, personal, phone, safari, site, spain, statistics, system, time, to, usage, view, views, web, website, windows browser, chrome, flash-usage, pain, personal, phone, statistics, time -
Announcing My New Website
Posted on February 8th, 2010 No commentsIt’s been live for a couple of weeks now, although I haven’t done much promotion of it, so here is word of an “official” announcement of my new portfolio site. Please take a look around and if you have any constructive criticism, feedback or advice, feel free to let me know through the usual channels… So without further ado, I pronounce www.jamestitcumb.com officially open!
Excerpt from:
Sphere: Related Content
Announcing My New Website
17, 5, James, ad, amp, coding, design, development, freelance, http, ice, in, live, me, new, no, one, open, promotion, site, titcumb, to, ua, web, website, weeks, word, www design, done-much, feedback-or-advice, feel-free, James, know-through, live, officially-open, promotion, the-usual, usual, weeks -
Question: How does source control work in a non-distributed environment?
Posted on February 5th, 2010 No commentsAt our company we currently all work on one shared network drive. The source code is not under any kind of source control, which for me is a big no-no. I’d love to be able to set up SVN and us all work of separate repositories and just commit back to a trunk or branch, but our tech manager doesn’t agree.
Continue reading here:
Sphere: Related Content
Question: How does source control work in a non-distributed environment?
17, CVS, Eclipse, File, James, OS, SVN, amp, auto, change, check, code, coding, commit, company, control, fine, form, http, ical, in, ing, int, issue, linux, me, network, no, not, one, open, open to suggestions, problem, repository, scm, share, solution, something, source, tech, to, tom, ua, update, vcs, version, windows, work before-it-takes, check, commit, linux, network, situation, source-control, tech -
Very Exciting – HipHop by Facebook
Posted on February 2nd, 2010 No commentsWell this evening Facebook have revealed what PHP developers globally have been speculating about and revealed their big secret . And boy, this could really change the landscape of PHP as we know it. I’m a great fan of compiling PHP for one reason or another, but I’ve never seen it reliably work.

Read the original:
Sphere: Related Content
Very Exciting – HipHop by Facebook
17, 5, Class, James, News, OS, RDP, Read, Search, Wordpress, Zend, action, ad, amp, apache, blog, book, box, change, code, coding, compile, compiling, convert, developers, development, early, engine, extensions, face, facebook, feature, form, forward, gap, gaps, get, hiphop, http, ical, image, in, ing, landscape, language, left, live, load, logo, magic, me, new, no, not, one, php, press, roadsend, send, site, table, test, title, to, twitter, type, ua, upload, user, variables, view, web, website, word, work, wp, www code, compile, development, from-the-php, ical, News, php, platform-which, variables -
New House & Growing Freyja
Posted on January 31st, 2010 No commentsI haven’t done a “personal” update for some time now, so I thought I’d briefly brush over our recent lives. The photo you can see on the left is the current state of our new house that is being built in the new Dickens Quarter development in Portsmouth

See the original post here:
Sphere: Related Content
New House & Growing Freyja
17, 5, Class, ICO, IDE, James, News, OS, Our Baby, Portsmouth, RDP, Read, Top, Touch, Wordpress, ad, amp, baby, birth, book, bread, break, breakfast, build, completion, day, development, dickens, face, facebook, food, freyja, get, hannah, home, house, http, ical, ice, image, in, ing, int, joy, left, like, live, load, me, mms, new, no, not, one, parent, personal, ping, press, quarter, source, thought, time, title, to, ua, update, upload, word, wp, www completion, development, estimated, facebook, helicopter-toy, house, int, James, live, load, Portsmouth, thought, upload -
MySQL gotcha when using non-compulsory foreign keys
Posted on January 27th, 2010 No commentsI’m just writing a query at the moment that filters out test records from a database. These records have a foreign-keyed value that identifies test apps, e.g. a table with: id name 1 TEST 2 ANOTHER_VALUE 3 SOMETHING_ELSE This is joined onto the main data table, sensibly with a query like this: SELECT * FROM the_data LEFT JOIN the_values ON the_data.some_value = the_values.id WHERE the_values.name != 'TEST' The gotcha is however, that this doesn’t work as you’d expect
Read more here:
Sphere: Related Content
MySQL gotcha when using non-compulsory foreign keys
17, Eye, IDE, James, SQL, amp, base, check, coding, data, database, filter, gotcha, http, in, ing, join, key, left, like, me, mysql, name, no, not, null, query, record, simple, solution, something, table, test, to, value, values, work amp, base, gotcha, identifies-test, instance, joined-onto, null, onto-the-main, query, record, simple, simple-once, table, work -
Quite possibly THE most useful site(s) for cross browser testing (and fixing)
Posted on January 22nd, 2010 No commentshttp://spoon.net/browsers Nuff said... Actually while I'm on the topic (mainly of IE being an idiot) http://code.google.com/p/ie7-js/ In addition, for up to date browser usage stats (and in theory the most correct stats): http://www.w3schools.com/browsers/browsers_stats.asp Related posts: Google Chrome – Released But Not Polished
Continued here:
Sphere: Related Content
Quite possibly THE most useful site(s) for cross browser testing (and fixing)
5, Chris, Download, File, Google, Misc, OS, Top, ad, amp, applications, book, browser, chrome, click, code, cross browser, day, double, face, facebook, fun, function, http, ie7, in, ing, light, load, map, me, new, no, not, php, post, posts, simple, spoon, title, to, ua, usage, web development, www begun, book, Chris, date-browser, map, php, spoon, theory-the-most -
Write Stack Dump In PHP
Posted on January 21st, 2010 No commentsJust a quick one. You probably already use debug_backtrace (and if you don’t, use it!)
More here:
Sphere: Related Content
Write Stack Dump In PHP












































