PHP is a widely used programming language that has been evolving rapidly in recent years. PHP 8.2 is the latest release, which came out on November 25th, 2021. This version brings several improvements, new features, and bug fixes, making it more efficient and secure than PHP 7.4. In this blog post, I’ll briefly discuss the … Read More “PHP 8.2 vs 7.4” »
Category: Programming
I love my Pi2 and my Pi3, they’re amazing pieces of cheap kit I can do anything with – although to be honest I don’t use them anywhere near as much as I should. So here is a compilation of things I found useful this last week when I finally got around to building my … Read More “Useful tidbits for Raspberry pi users on Raspian – aka things I wish I knew quicker/easier” »
Really short post this one on indexing using Cloudant Query to index arrays in your document, e.g. documents that have a field like this: { “ids”: [ “alpha”, “bravo”, “charlie” ] } I was reading the documentation and just could not get it to index these items using anything but the default _all_docs indexer (don’t use … Read More “Cloudant (IBM) Query – Indexing arrays directly using Erlang” »
I just got my certificate through from Coursera for completing the Heterogeneous Parallel Programming by University of Illinois at Urbana-Champaign on Coursera and I’m very happy! It was a fun (and free) course that covered primarily CUDA programming but towards the end went on to OpenCL. Fun course to do and really helped me rethink parallel … Read More “Heterogeneous Parallel Programming – Completed and Certified!” »
Over the last few days I’ve been working on interfaces to use across multiple programming languages to standardise how some things are done. This stemmed from a requirement to allow processing to be dealt with in any language from any other language. People do this all the time, it’s nothing new, but they generally stick … Read More “Standardising logging and parallelisation in multiple languages” »
As if the news wasn’t good enough that all Windows 7 and 8 users are going to be getting a free upgrade to Windows 10 – the new Windows OS that promises to be everything we wanted and then some. Microsoft have announced that the recently released Raspberry Pi 2 will be getting a specially … Read More “Windows 10 coming to Raspberry Pi 2 – free!” »
Recently I’ve been working with phantomjs in order to do some on-page control without wanting to use an actual browser (phantomjs is headless and requires no X server to be running). One of the first things I wanted to do was created custom modules so I could organise my code clearly. I found a surprising lack … Read More “phantomjs custom module – require and create” »
MySql in C# is rather painless using the MySQL Connector for .net, but one thing it is missing is a no-frills, no extra requirements, no pre-defined ERD return a row as an instance of a class function. Coming from a PHP background, I love the PDO function fetchObject(), it’s just right there and you get … Read More “C# MySqlDataReader – “one line” function to return a row as an instance of a class.” »
I love Cloudant, simple as, their implementation of CouchDB as a DDaaS (as opposed to DBaaS) has no real competitor – as CouchDB develop’s, that may, of course, become a problem as it gives dominance in a market, but for now, we’re good. One of their best features is the dbcopy command, this copies the … Read More “Cloudant’s Rather Awesome dbcopy for re-reducing the output of existing map/reduce data.” »
So often you find yourself needing a list of countries for use in your software and I keep having to re-use this code so here is a list of countries with their ISO codes in a variety of formats you can simply just use. # C# Dictionary ISO { countrycode, countryname } list new Dictionary<string, … Read More “Country/Currency List for C#, JSON, PHP and HTML select” »