Python: Blender Select Hard Edges

All Posts, Python

No Comments


Share this post

I am a big fan or Blender 3D and Wings3D. An issue is moving models from Wings3D to Blender. Edges marked sharp for subdivision in Wings are ignored on import via OBJ to Blender. The edges are highlighted as in blue but need to be creased to replicate the same output as you would in Wings3D.

Selecting these edges manually is okay for smaller models but for larger models it is beyond frustrating. To solve this, I have created an addon to select them and from there you can crease, edge split or create vertex groups to meet your needs.

Download the add-on using the links below. Via the File > User Preferences > Add-ons window use the “Install Add-on from File…” button to locate and install the .zip.

For your chosen model, tab in to edit-mode and in the Select menu choose ‘Select Edges Marked Sharp’:

GitHub Download

Read more

MySQL: Custom Configure MySQL in MAMP

All Posts, Code, MySQL, Technology

No Comments


Share this post

While Vagrant and Docker are awesome for serious web work, sometimes a quick and dirty install a preconfigured LAMP stack is quick and good enough to get started.

In the case of MAMP, while PHP is configurable via the various php.ini files corresponding to each version, you will find that no such option exists for MySQL.

I had some legacy code with MySQL queries that worked on the server but did not work locally. After inspecting the MySQL server variables, I found that they were different but had no way to change what worked on my machine.

Modifying the queries was out of the question within the time frame. The most apparent solutions involved buying MAMP PRO or another paid solution and I wanted to avoid a subscription.

Solution

After some experimentation I found placing a my.cnf file in /Applications/MAMP/conf/ then restarting the LAMP stack will allow you configure MySQL as you please. There was nothing obvious online so I am posting it here.

In my case , this enabled me to enable NO_ENGINE_SUBSTITUTION and continue with my work.

Read more

Restarting MacBook Pro 2012-2015

All Posts

No Comments


Share this post

If you have a MacBook Pro 2013 to 2015 that keeps on restarting, you need to read this. It could save you about $700 in unnecessary logic board replacements or throwing away a perfectly good computer.

While using my current MacBook the screen randomly spontaneously go black with the fans spinning up to max until it restarted

I tried:

  • A fresh install of OSX
  • Running in safe-mode
  • Checking for overheating using HWMonitor
  • Manually controlling fan speed using SMC Fan Control
  • Replacing the thermal paste
  • Cleaning the ventilation of dust

The worst thing was that the issue would occur sporadically, sometimes giving the impression that the above attempts had fixed it. While I was able to lower the operating temperature of the system by about 10 degrees nothing seemed to really fix it permanently.

Checking the system logs yielded nothing. After SMC resets, PRAM resets, RAM testing utilities and many searches, I had resigned myself to the fact that it must be a hardware issue that would not be worth the cost of repair.

What had confused me was that while connected via HDMI, I had no issues but when I tried to use it without a second screen, the problem would reoccur. After another search I found this:

https://apple.stackexchange.com/questions/306714/macbook-pro-15-retina-mid-2014-random-shutdowns

It turns out that the issue is due to a faulty Thunderbolt driver and nothing to do with the hardware. The listed solutions are to keep it plugged in or remove the driver.

Steps:

  1. 1. Boot in to recover mode by holding CMD + R when starting up
  2. Run Terminal
  3. Run “csrutil disable” to disable System Integrity Protection. Without this you cannot disable the faulty driver.
  4. Reboot in to Mac OS
  5. Open Terminal
  6. Run “sudo mv /System/Library/Extensions/AppleThunderboltNHI.kext /System/Library/Extensions/AppleThunderboltNHI.kext.BAK”
  7. Reboot

A downside of this is having to restart the computer to connect Thunderbolt devices but I’d take that over a near unusable computer.

Read more

Open Fonts

All Posts

No Comments


Share this post

One of my favourite font resources for web or any development is fontsquirrel.com; lots of high quality, open licensed fonts to use as you wish. I have generated download files, separated by category. Grab it here and throw the files into your download manager of choice.

Some of my personal picks are the Josefin Sans, Josefin Slab, Scriptina and Cinzel to name a few.

Download Link

Enjoy!

Read more

SuperKotoba

All Posts

No Comments


Share this post

In my previous role, I created some educational software for my students to aid them in learning English Vocabulary. I noticed that students of English often spend many unproductive hours studying English vocabulary. It is not uncommon to see students falling asleep while studying or having great difficulty in saying the word they had just learned.

SuperKotoba was an attempt at rectifying this through the use of technology.

Read more

Mac OS X USB Drive Icons

All Posts

No Comments


Share this post

Here are some alternative coloured Mac OS drive icons. Usually Mac OS X colours USB drives in a standard orange which makes them difficult to decipher without reading labels.

Read more