-
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 -
Recipe: My Ratatouille
Posted on July 11th, 2010 No commentsRatatouille is a great dish and full of vegetables which makes it cheap to do.
Link:
Sphere: Related Content
Recipe: My Ratatouille
17, 5, Dinner Recipies, James, OS, Read, Top, ad, amp, asgrim, baby, baby corn, base, broccoli, car, carrot, carrots, cherry, choice, courgette, garlic, get, http, ice, in, ing, int, light, live, me, media, no, not, onion, peppers, ratatouille, recipe, rest, simple, something, table, tables, test, time, to, tom, tomato, truth, write broccoli, carrot, cucumber, Dinner Recipies, each-as-well, makes-it-cheap, onion, rest, tandoori, tom -
Recipe: Chicken & Mushroom Pie
Posted on July 9th, 2010 No commentsI love pies, and they’re so easy to make, especially with pre-rolled pastry.
See the original post here:
Sphere: Related Content
Recipe: Chicken & Mushroom Pie
17, 5, Dinner Recipies, IDE, James, Top, ad, amp, art, asgrim, car, carrot, carrots, chicken, cool, cream, creamy, degree, double, get, half, high, http, ice, in, ing, int, light, live, me, mushroom, no, not, one, pie, pies, press, recipe, source, spoon, stock, table, tables, to, veg, vegetables creamy, degree, each-as-well, makes-it-cheap, mushroom, normally-enough, pie, pies, vegetables -
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 -
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 -
Moving to Linux – Finding Alternative Software
Posted on June 10th, 2010 No commentsI’ve been using Linux on servers for years, since before I started learning to code. Finally, after something like 7/8 years I am almost fully confident in severing the ties to my highly underused Windows installation on my personal laptop, but there are still a couple of exceptions
Go here to read the rest:
Sphere: Related Content
Moving to Linux – Finding Alternative Software
17, Adobe, Desktop, Eclipse, File, Google, IDE, James, OS, Photoshop, Read, Technology, The List, Top, ad, air, alternatives, amp, anyone, art, asgrim, box, cell, chrome, code, computer, contact, crash, day, default, disabled, editor, excel, face, family, finance, fine, get, google docs, growing, high, http, ice, import, important, in, ing, install, int, interface, issue, laptop, like, linux, list, live, me, message, messenger, microsoft, money, music, new, no, not, office, one, open, personal, photos, pidgin, rest, running, server, servers, simple, site, software, solution, something, studio, sw, switch, table, tech, test, thought, time, to, tools, truth, ua, ubuntu, user, version, video, videos, virtual, virtualbox, web, webcam, when, windows, windows live messenger, work, www, years code, File, import, linux, money, music, personal, Read, running, studio, videos, virtual, windows, years -
Windows 7 Partition Manager
Posted on May 30th, 2010 No commentsI’ve just found a handy free tool for managing partitions really easily in Windows 7. http://www.partitionwizard.com/free-partition-manager.html I’d used the built in partition manager in the Windows 7 Disk Management tools to shrink my primary volume and make the second drive, but then I realised I’d made it too big and needed a couple of extra gig added back onto my C drive
Read the rest here:
Sphere: Related Content
Windows 7 Partition Manager
17, 5, File, Files, Google, HTML, Jon, Powerquest, Windows 7, ad, amp, art, disk management, face, free partition manager, get, half, home, http, in, ing, ini, int, interface, job, like, magic, management, management tools, me, new, no, not, partition magic, partitions, software, table, thought, to, tools, windows, work, www art, int, interface, job, management, partition magic, primary-volume, thought, tools, Windows 7, work, www -
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 -
Replacing text in MySQL text fields
Posted on April 19th, 2010 No commentsI didn’t even think you could do this: UPDATE table SET something = REPLACE ( something , 'oldtext' , 'newtext' ) ; How handy! For replacing text in MySQL tables that is… not for anything else really.
View original post here:
Sphere: Related Content
Replacing text in MySQL text fields
-
Hang out on the South Bank
Posted on April 10th, 2010 No commentsI took a trip up to London last Saturday and wandered along the South Bank in search of some good food. Sadly, there are surprisingly few inviting restaurants on that side of the river… In amongst the crowd, silly joggers and beams of fantastically warm sunshine, we came across Daniel Waples playing his hang. It’s an incredible instrument

Original post:
Sphere: Related Content
Hang out on the South Bank
17, 5, Class, Dan, ICO, IDE, OS, RDP, Search, Sii, Wordpress, ad, amp, day, external, first, food, hang, hanging, http, ical, image, in, ing, key, like, load, london, me, music, no, not, one, press, rant, record, rest, restaurants, site, street music, switzerland, thought, title, to, uk, upload, video, videos, warm, web, website, word, wp, www cars, few-inviting, little-slower, PIXELS, playing-sounds, press, Search, south-bank, videos












































