Skip to main content

Posts

Showing posts from March, 2018

Automatic ORM Designing

I believe that all programmers worth their salt, know of the famous quote that Larry Wall published, the three virtues of a programmer is: Laziness Impatience, & Hubris With this in mind, I would like to share with you a database class I have drafted over the recent years.  To give you some context, the reason I wrote this originally was because, a) I am too lazy to put the entire database schema in to a framework's model, and b) I was tasked to put together an enterprise system which many database systems with enormous models had to interact with each other. First, what is an ORM? Object-Relational Mapping ; is a technique to wrap your database queries ( CRUD ) from your object-orientated frameworks. I'm going to go in to a fair bit of detail about the one I have written. The Premise Database schemas are written in to the tables, the same way as you store anything else.  Therefore every way a table is structured can be queried and extrapolated.  Typical ORM&#

Windows Update / VirtualBox Conflict

Hello Devs, This will be a quick post - but another reminder that you need to do your research and not take the first result to fix a problem as gospel. I was about to run a server test to my latest application in VirtualBox, when I suddenly got the following error: The virtual machine 'Node' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\jesse\VirtualBox VMs\node\Logs\VBoxHardening.log'. Result Code: E_FAIL ( 0x80004005 ) Component: MachineWrap Interface: IMachine {...} So - what happened?  Microsoft came out with a new security update: KB4043961 . First advice might be to uninstall it -- don't. As annoying as they can be, security updates are essential.  So I have found the better solution is to upgrade the version of VirtualBox.  Download this version ( 5.2.2-119230 ), and you'll be fine.

The Importance of Keeping in the Loop

Greetings, Fellow Devs! This is the first post, of hopefully a generally weekly update.  I've been so slack in the past, but small articles or large, I endevour to get something to you! I was just now sipping my glass of whiskey, forcing myself to get back to an old project I have been procrastinating on for some time now.  I did have a good enough reason, a wedding to plan for, then 2 weeks before it all came together - losing my job, and then like a pebble over a lake, bouncing in to a new (and first for myself) management position.  It's been one hell of a ride! But I digress; the issue I was facing was attempting to re-compile a cordova app which I have been extremely excited about, when I find it was no longer able to do so with the SDK and the plugins I was using were all out of date.  This has caused a right mess, and finding the right solutions in forums is definitely not easy - even when you have the up-vote style of answer/comment you would find on Stack Overflo