-
Stop Using the PHP Error Suppressor “@” and “or die”
Posted on August 28th, 2010 No commentsIt annoys me when I see tutorials for learning PHP with code like this: $fd = @ file ( "doesnotexist" ) ; and this: $md = mysql_connect ( "localhost" , "user" , "pass" ) or die ( "Could not connect!" ) ; It’s bad practice in the real programming world and shouldn’t happen. The at symbol (@) is used to silence any errors caused by calling a function as shown above, when proper error handling should be implemented. Similarly, the practice of using “or die” to error check needs to stop being taught.
Read the rest here:
Sphere: Related Content
Stop Using the PHP Error Suppressor “@” and “or die”
17, 5, Class, File, ICO, James, OS, PDO, Program, RDP, SQL, Top, Wordpress, ad, amp, art, asgrim, asgrim.com, at, catch, check, code, coding, csv, die, error, exceptions, fun, function, functions, handling, host, http, ice, image, images, in, include, ing, int, language, like, live, load, me, mysql, no, not, or, personal, php, press, programming, smile, stack, suppressor, symbol, to, tutorial, tutorials, ua, user, when, word, world, wp, www asgrim, catch, Class, csv, functions, hatred, image, language, php -
Alternative to array_merge merging many arrays
Posted on July 8th, 2010 No commentsI have a case at work where I needed to go through a big list of arrays, and add them to a new master array. It turns out this is incredibly slow when adding many large arrays to a larger array. The alternative to this if you don’t care about keys or duplication of values is to just add it into the array
Follow this link:
Sphere: Related Content
Alternative to array_merge merging many arrays
17, 5, Class, ICO, James, OS, RDP, Wordpress, ad, amp, anyone, array, array_merge, asgrim, asgrim.com, car, case, code, coding, data, dataset, duplicate, get, help, http, image, images, in, include, ing, int, key, large, like, list, live, loop, me, merge, method, new, no, one, php, press, process, return, simple, smile, solution, something, time, to, ua, value, values, when, word, work, wp, www amp, asgrim.com, creamy, degree, each-as-well, include, int, list, merge, normally-enough, process, values -
Adding Extra Security – Encrypting Passwords For Multiple Users
Posted on June 26th, 2010 No commentsAs many of you probably know, I’ve been working for quite some time on a project called Private Passwords . It is an online password management tool which stores your passwords for any site and allows you to retrieve them from anywhere in the world. One of the things that has niggled me for a while was the fact that the encrypted passwords were all encrypted using an AES encryption key , but had no real barrier if someone somehow managed to get hold of the AES key
See the article here:
Sphere: Related Content
Adding Extra Security – Encrypting Passwords For Multiple Users
17, 5, Brilliant, FAIL, IDE, James, Kelvin, Someone, ad, amp, art, asgrim, base, blog, busy, check, code, coding, company, data, database, decryption, e-mail, encrypting, encryption, exam, fact, form, forms, get, home, http, import, important, in, ing, int, key, less, mail, management, me, multiple, name, no, not, one, password, passwords, private passwords, project, security, share, site, solution, sw, system, time, tip, to, uk, user, username, when, word, work, world, www busy, check, forms, int, Kelvin, kelvin-at-work, key, password, private passwords -
Recipe: Confit de Canard
Posted on June 17th, 2010 No commentsImage sourced from: roboppy on flickr under CC-by-nc-nd 2.0 license.

Go here to see the original:
Sphere: Related Content
Recipe: Confit de Canard
17, 5, Class, Dinner Recipies, IDE, James, OS, RDP, Wordpress, ad, amp, asgrim, asgrim.com, canard, car, carrot, carrots, confit, confit de canard, cool, degree, duck, get, http, ice, image, in, ing, ini, int, left, live, load, mash, me, parent, photos, potatoes, press, source, time, title, to, upload, word, wp, www car, carrot, confit, Dinner Recipies, duck, load, press, www -
Alton Towers Review 2010
Posted on June 14th, 2010 No commentsI’m doing absolutely everything I can to avoid the World Cup football. In doing so we ended up at Alton Towers (handily a 30 minute drive from Hannah’s mum’s) on Monday

See more here:
Sphere: Related Content
Alton Towers Review 2010
17, 5, ALA, Alton, Class, EU, IDE, James, OS, RDP, Top, Track, Wordpress, ad, air, amp, art, asgrim, asgrim.com, available, busy, car, cars, check, day, fact, first, form, forward, freyja, fun, get, hannah, http, ical, ice, image, in, ing, ini, int, key, lee, left, light, like, live, load, mash, me, name, named, new, no, not, one, parent, park, personal, ping, post, press, project, review, rides, share, smiling, something, sub, sw, table, theme, time, title, to, towers, trac, upload, vertical, warm, word, world, wp, www asgrim.com, cars, Class, ping, sub, table, tracking, vertical -
Freyja Growing Up
Posted on June 12th, 2010 No commentsIt’s been a little while since I talked about our little one, and my she has grown up a lot. She’s 14 months old now and she’s walking around like no tomorrow. She wants to walk so much that if you let her loose outside she will just walk and walk, and if you try picking her up she will protest

Here is the original post:
Sphere: Related Content
Freyja Growing Up
17, 5, Class, Dan, IDE, James, News, OS, Our Baby, Portsmouth, Projects, RDP, Top, Wordpress, ad, amp, asgrim, asgrim.com, book, busy, child, children, day, freyja, fun, get, growing, growing up, hannah, help, home, house, http, image, in, ing, ini, int, krazy kaves, left, like, live, load, marwell, me, netmums, new, no, one, parent, personal, ping, post, press, project, regular, rest, site, something, talk, test, time, title, to, tom, ua, upload, video, videos, walking, word, work, wp, www, zoo Class, day, growing, growing up, krazy kaves, News, Portsmouth, regular, rest, support-through, time, upload, video -
Eighteen months five years
Posted on May 8th, 2010 No commentsI had the idea for this painting over 5 years ago, and have only managed 4 hours work on it in the last 18 months. Best get a crack on!

View post:
Sphere: Related Content
Eighteen months five years
-
The Demoiselles Project
Posted on May 1st, 2010 No commentsIt’s been over 10 years since I made this painting, and aside from a very short period spent hanging on the art room wall, it’s never really seen the light of day. It’s been resting – along with various other pieces of art from my A-level days – in a pile, under my bed. Well enough time has passed, and the Demoiselles project that I started all those years ago is being resurrected, but this time, it’s about brightening it up.

Excerpt from:
Sphere: Related Content
The Demoiselles Project
100, 17, 5, Braque, Class, Francis Bacon, ICO, IDE, OS, Picasso, RDP, Sii, Touch, Wordpress, ad, amp, art, day, get, hang, hanging, http, image, in, ing, ini, int, light, load, me, no, one, pain, painting, photos, post, press, project, rest, short, time, title, to, uk, upload, word, wp, www, years behind-glass, Class, hanging, ICO, int, ladies, never-really, painting, Picasso, pieces, press, time, various-other, years-under -
Thoughts on the prime ministerial debate
Posted on April 29th, 2010 No commentsI’m sad to say it, but I found Steve Jobs’ Thoughts on Flash more interesting than the ‘political-point-scoring’ being broadcast on the BBC. I’m glad that Steve has spoken out and answered his critics so well, but I wish David and Gordon would follow Apple’s lead and get on with ‘leaving the past behind’. Political Branding I got a leaflet about Mark Hoban through the post this evening

Read the original post:
Sphere: Related Content
Thoughts on the prime ministerial debate
17, 5, Adobe, Class, ICO, IDE, News, OS, RDP, Sii, Steve Jobs, Technology, Wordpress, ad, amp, apple, art, day, design, external, flash, get, home, html5, http, ical, ice, image, import, important, in, ing, int, job, load, me, money, new, no, not, one, plugins, politics, post, press, prime ministerial debate, question, rest, site, standards, sw, thought, thoughts, title, to, uk, upload, web, webkit, website, word, wp, www Adobe, apple, demonstration, design, flash-on-apple, from-it-being, ical, job, politics, rest, Technology, thoughts, websites, word -
Inverse-onomatopoeiaic Advertising
Posted on April 24th, 2010 No commentsVW insist you don’t need your eyes tested, but reading this message is quite testing on your eyes.

Follow this link:
Sphere: Related Content
Inverse-onomatopoeiaic Advertising
17, Class, Eye, ICO, RDP, Read, Sii, Wordpress, ad, advertising, amp, design, external, eyes, http, image, images, in, ing, load, me, message, no, one, opticians, polo, press, test, tested, title, uk, upload, volkswagen, word, wp, www demonstration, design, Eye, from-it-being, quite-testing, RDP, Read, volkswagen, word












































