-
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: Salmon Korma on Naan
Posted on August 26th, 2010 No commentsYeah OK so this isn’t an original recipe, it’s shamelessly lifted from my Jamie Oliver’s Ministry of Food book that my sister gave me a couple of years ago. I love this recipe and make it at least once a month though, and you can vary it by swapping out the korma paste with any sort of paste – tandoori, tikka massala etc. Ingredients Half a Cucumber Lemon juice Red chilli Yoghurt Coriander 2x Naan bread 2x Salmon fillets Salt & Pepper Korma paste (e.g
Read the original here:
Sphere: Related Content
Recipe: Salmon Korma on Naan
17, 5, ALA, Amazon, Dinner Recipies, IDE, James, Read, Top, ad, amp, asgrim, book, bread, code, coriander, cucumber, fine, food, half, http, ice, import, important, in, ing, ini, int, korma, less, live, me, naan, no, one, ping, place, recipe, salmon, sister, spoon, ssl, style, sw, table, tables, tandoori, tikkia, to, uk, warm, www, years, yoghurt book, cucumber, each-as-well, import, jamie-oliver, naan, ping, sister, ssl, tandoori, tikkia, www, years -
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 -
Free Alternative Software To Commercial Programs
Posted on June 23rd, 2010 No commentsOver the last few years I have been increasing my use of free, open source alternatives to commercial software products for a number of reasons, mainly because of superior features or ease of use in the free products which assist my work, or in some cases because I want to avoid the budget signoff bureaucracy involved with purchasing new software programs (aka. Saving the company money – lol)

More:
Sphere: Related Content
Free Alternative Software To Commercial Programs
Chris, Class, Free Software, Google, ICO, Lol, OS, Program, ad, alternatives, art, base, case, cd, click, code, company, double, feature, game, get, http, ical, image, images, in, include, ing, load, map, me, money, new, no, number, one, open, open source, post, posts, smile, software, source, title, to, upload, work, wp, www, years Chris, code, images, Lol, open, over-the-last, Program, upload, work -
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 -
Woo Wishlists are now Universal
Posted on May 11th, 2010 No commentsThanks to recent improvements over at Amazon, you can now add items to your wishlist from ANY website! How cool is that? All you need to do is drag this bookmarklet to your browser and you'll be free to add any item to the list of stuff you want! More: Woo Wishlists are now Universal No related posts.
Read more here:
Sphere: Related Content
Woo Wishlists are now Universal
5, Amazon, CSS, Chris, Google, HTML, OS, Reviews, The List, Universal, ad, amp, art, book, browser, button, click, code, cool, diese-eintr, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, http, improvements, in, in-bearbeitung, informationen, list, map, me, no, post, posts, quote, review, seitenbetreiber, sidewiki, site, title, to, twitter, uk, view, views, web, website, weitere-informationen, www art, browser, Chris, CSS, diese-eintr, eintrag, firefox, in-bearbeitung, list, now-add, posts, seitenbetreiber, sidewiki, view, www -
How to Reduce Amazon S3 Costs
Posted on May 9th, 2010 No commentsIf you're new to Amazon S3 or have been using it for months without much thought to how it works, then you might be paying unnecessary costs and having pages load slower than they need to because users browsers aren't caching data served from S3 appropriately. This article provides some very useful advice on how to increase page load times and reduce S3 costs by appropriately setting cache control headers for your S3 served content More here: How to Reduce Amazon S3 Costs No related posts.
Read more:
Sphere: Related Content
How to Reduce Amazon S3 Costs
5, Amazon, Chris, Google, IDE, OS, Reviews, ad, art, browser, click, code, control, cost, data, diese-eintr, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, header, http, ice, in, in-bearbeitung, informationen, ing, load, map, me, new, nfb, no, page, post, posts, seite, seitenbetreiber, setting, sidewiki, thought, time, title, to, ua, user, weitere-informationen, work, www advice-on-how, Chris, code, double, eintr, load, load-slower, map, Program, seite, served-content, useful-advice, user, work -
How to Reduce Amazon S3 Costs
Posted on May 9th, 2010 No commentsIf you're new to Amazon S3 or have been using it for months without much thought to how it works, then you might be paying unnecessary costs and having pages load slower than they need to because users browsers aren't caching data served from S3 appropriately. This article provides some very useful advice on how to increase page load times and reduce S3 costs by appropriately setting cache control headers for your S3 served content More here: How to Reduce Amazon S3 Costs No related posts.
See more here:
Sphere: Related Content
How to Reduce Amazon S3 Costs
5, Amazon, Chris, Google, IDE, OS, Reviews, ad, art, browser, click, code, control, cost, data, diese-eintr, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, header, http, ice, in, in-bearbeitung, informationen, ing, load, map, me, new, nfb, no, page, post, posts, seite, seitenbetreiber, setting, sidewiki, thought, time, title, to, ua, user, weitere-informationen, work, www browser, Chris, costs, diese-eintr, firefox, header, informationen, load, reduce, sidewiki -
Twitter feeds via JavaScript
Posted on April 11th, 2010 No commentsA great way to add twitter to your website without having to write anything in backend code.
See the original post here:
Sphere: Related Content
Twitter feeds via JavaScript
Chris, Google, IDE, Java, JavaScript, OS, Read, Reviews, ad, art, case, cd, click, code, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, http, in, informationen, ing, map, no, post, posts, quote, rest, review, script, seite, seitenbetreiber, site, title, to, twitter, view, views, web, website, weitere-informationen, write, www Chris, double, eintr, feeds-via, firefox, google-sidewiki, map, Read, rest, seite, the-rest, view, write, www, your-website












































