darkFunction Blog


darkFunction Software homepage
@darkFunction
View CV

Reusable XIB’s with dynamic size
  • Written by Sam
  • February 11th, 2016
  • Subject: Code

Reusable XIB’s with dynamic size

Quick reference

Deeplink testing for Utelly
  • Written by Sam
  • April 7th, 2016
  • Subject: Code

Deeplink testing for Utelly

Standard URLs

Verbe Du Jour online!
  • Written by Sam
  • January 13th, 2015
  • Subject: Code

Verbe Du Jour online!

I’ve hacked together a new site in Flask to assist with learning French. The idea is that a new verb is chosen every day, and users are able to see all conjugations as well as search for other verbs. It has been great using Flask- it takes (almost) all of the pain out of web development. Definitely recommended! Clicky click: Learn French and Conjugate Your Verbs!

Casino Fairness Testing
  • Written by Sam
  • December 13th, 2014
  • Subject: Code

Casino Fairness Testing

Been playing around with Sikuli for automating a slots game and outputting the results to a simple Google Charts page on a local webserver. Got it running under Crunchbang and threw some machines up. Sikuli is a really good framework (maybe the best for multi-purpose Linux automation?), and while the fuzzy image search is a real time saver, it sucks at differentiating between colours. If two images are the same in all aspects except colour, it’s unreliable, and you need to start comparing pixels manually with java.awt.Robot.

Codalo Released!
  • Written by Sam
  • November 14th, 2014
  • Subject: Code

Codalo Released!

After 11 months of intense, out-of-hours work, darkFunction Software’s first iOS app is finally LIVE on the AppStore!!!

Painting with Genetic Algorithms
  • Written by Sam
  • September 28th, 2014
  • Subject: Code

Painting with Genetic Algorithms

Using genetic algorithms to build images from layers of translucent polygons.

Initial architecture for new navigation scheme

Initial architecture for new navigation scheme

After some planning and discussion with Dan and Miguel, we have a working first version of a new way of moving between viewControllers in our app(s). We should get together as a team to discuss, but I thought I would outline the recent work to clue everybody in first, in the spirit of sharing information as raised at the last retrospective. This is not set in stone so please give your input.

Questions and Answers
  • Written by Sam
  • April 14th, 2014
  • Subject: Code

Questions and Answers

What is the difference between sockets and WebSockets?

Bitcoin IRC sentiment analysis
  • Written by Sam
  • October 26th, 2013
  • Subject: Code

Bitcoin IRC sentiment analysis

I wrote a Lua bot to sit and monitor the IRC channels listed here (minus the tickers) for uses of the ’sentiment words’ listed here. Obviously this has no chance of giving meaningful results but it was a fun project.

Game Dev Diary: Part I
  • Written by Sam
  • October 26th, 2013
  • Subject: Code

Game Dev Diary: Part I

Work has started on a new game! I’m using the Moai framework. Here’s the latest screenshot:

NSScotland 2013: Sunday
  • Written by Sam
  • October 20th, 2013
  • Subject: NSScotland

NSScotland 2013: Sunday

Notes from day two!

NSScotland 2013: Saturday
  • Written by Sam
  • October 19th, 2013
  • Subject: NSScotland

NSScotland 2013: Saturday

Notes from day one!

Visualising Objective-C: Introducing DFGrok!
  • Written by Sam
  • September 4th, 2013
  • Subject: Code

Visualising Objective-C: Introducing DFGrok!

As developers we spend a lot of time sketching out class relationships and program flow in notebooks or on whiteboards, as a shared point of reference when communicating ideas or as a personal memory aid. A few months ago I discovered a handy online generator called yUML. It describes itself as being for “light, back-of-napkin style UML usage", and provides a simple syntax that allows you to quickly type out class relationships which it then renders into basic, prettified UML. It’s ideal for everyday use where formal UML is time-consuming to produce and unfriendly on the eye.

Jalapeno, one month later
  • Written by Sam
  • August 30th, 2013
  • Subject: Hardware

Jalapeno, one month later

Just a little status update for the Jalapeno that has been chugging along nicely for just over a month now. I replaced the obnoxious fan with a quieter one, and about 2 weeks ago I flashed the firmware, putting the speed up to about 7.5GH/s. This speed increase coincided with the huge difficulty rise earlier in the month, so the graph looks more even than it would if it were still running at stock speed. Below is my graph from Slush’s pool, and a screenshot from CGMiner. The spike to zero that you can see is me knocking the plug out and not noticing for a day ;)

Bitforce Jalapeno + Raspberry Pi + cgminer
  • Written by Sam
  • July 25th, 2013
  • Subject: Hardware

Bitforce Jalapeno + Raspberry Pi + cgminer

My BFL Jalapeno finally arrived. It’s a cute little box but the fan is really whirring away, so I ordered a replacement. It’s sitting in the living room plugged into a Pi which is also acting as a backup file server. I’m monitoring cgminer on this box through my VPS which has a tmux screen pane devoted to it, so that I can keep an eye on it without having to login all the time. It’s steady around 42°C and 5.3Gh/s.

Idea: Digital Jotter
  • Written by Sam
  • June 19th, 2013
  • Subject: Ideas

Idea: Digital Jotter

It would be cool to have some kind of functionality on a blog which allowed you to show all revisions of a post as if it were written down on paper and revised by scribbling out words or paragraphs. This way you would be able to see all the bad work as well as the good, next to each other in a kind of natural way. This wouldn’t be very suitable for most things, but what I had in mind was language learning. If I want to keep a blog in French and correct spelling or grammatical mistakes as I learn them, I would want to see some kind of visual history of my errors- it seems more useful than a perfectly presented wall of French text.

Dropplets + BTSync
  • Written by Sam
  • May 30th, 2013
  • Subject: Tools

Dropplets + BTSync

Just installed Dropplets, love the clean layout and simplicity. Since the content of the Dropplets site is just a directory with markdown textfiles, I thought it would be cool to BTSync this folder. Now all I have to do to publish a post is make a new textfile on any machine in the same synced folder, and it will be published as soon as there’s an internet connection!

darkFunction Editor is now OPEN SOURCE!

darkFunction Editor is now OPEN SOURCE!

https://github.com/darkFunction/darkFunction-Editor

Lucid Dreaming
  • Written by Sam
  • January 15th, 2013
  • Subject: Articles

Lucid Dreaming

Lucid dreaming is the conscious realisation that you are dreaming, becoming fully aware and ‘awake’ while still asleep. Most people have had one at some time or another. The concept garnered some popularity around the release of Inception and was a main theme in the film Waking Life.

Handy UIViewController Debug Display
  • Written by Sam
  • December 20th, 2012
  • Subject: Code

Handy UIViewController Debug Display

When working with complex iOS projects with many screens, sometimes it can be annoying and time consuming to figure out exactly which class to start looking at when you want to make changes to a view controller. You can use this handy UIViewController category extension to display the name of the class on each screen. They are great reference points especially if you are jumping into a new codebase.

XNA Source: Particle Engine / Menu Renderer
  • Written by Sam
  • June 28th, 2012
  • Subject: Code

XNA Source: Particle Engine / Menu Renderer

A few years ago I implemented a particle engine and a flexible menu creator in XNA. They were written for a game that was never completed, but I thought I would post up them up here in case anyone wants to use them.

Barebones 2D OpenGL ES Game Engine in C++
  • Written by Sam
  • December 7th, 2011
  • Subject: Code

Barebones 2D OpenGL ES Game Engine in C++

https://github.com/darkFunction/Turbine

iOS autocompletion in Vim
  • Written by Sam
  • November 19th, 2011
  • Subject: Tools

iOS autocompletion in Vim

I’ve been playing around with Vim recently and wanted to get autocompletion for my iOS project working. Vim isn’t great as an IDE replacement for XCode, but it’s nice to be able to jump in and edit code files quickly if you need to.

A change of direction...

A change of direction...

It’s been a while since I updated the sprite editor. It hasn’t been abandoned, but I’m giving myself a change of scenery for a while, as there always seems to be another feature looming around the corner, dragging a fresh net of bugs behind it. The project has given me a new level of respect for the software development process, and a better understanding of my abilities and boundaries when taking on solo projects. Most of all I am extremely proud of the tool and thrilled that it is out there in the big wide world for people to use. A big thank you to everyone who has given positive and critical feedback, without that there would have been no motivation to continue.

GLBasic Import Libraries!

GLBasic Import Libraries!

Thanks to Slydog. Please see the Import Libraries page.

Version 1.2 released

Version 1.2 released

Have fun ;)

XNA Import Libraries!

XNA Import Libraries!

Bruce Markham has kindly published libraries for importing the generated XML into your XNA project for Windows / Windows Phone / XBox.

Version 1.2 BETA available now

Version 1.2 BETA available now

The first build of version 1.2 is available now from the download page.

Version 1.1 released

Version 1.1 released

Version 1.1 release changes:

Version 1.0 launched

Version 1.0 launched

darkFunction is very proud to announce the release of the spritesheet and animation editor! Download here.

Powered by Dropplets