Mokocharlie Mobile Part 1

After a massive break from hacking on Mokocharlie, I felt like I needed to get my mind of some other things and perhaps do something that I found to be fun on a weekend. I have been meaning to build a ReSTful API for Moko for a while now, I experimented with PHP a long time ago. It was OK but I’m in a different space now so I decided to go with the Akka stack, and perhaps use Slick for the data layer.

Read more

Share

Content as a Service with a Micro Framework

I had an idea of building a content management system with one of the Scala frameworks a while back and I decided on the Play Framework. In the middle of scoping things out in terms of my requirements, I decided that perhaps I did not want to build “yet another CMS.” My initial idea was to build something like wordpress using Play, but the more I thought about it the more I questioned what exactly I wanted to achieve.

Read more

Share

Django Bug?

After spending hours trying to debug why my settings file was not being found I stumbled across this I’ve found the answer to my question. If you’ve got an error in your settings, manage.py will swallow the exception and report as if the command does not exist. This lead me down the path of incorrectly assuming my python path or venv environment was messed up. If you want to diagnose this issue, run…

Read more

Share

Every Now and Then

I generally don’t spend that much time on Quora. I do get the emails but I’m just not that interested in the questions or answers for that matter to spend that much time except this particular one. 50 rules to live your life by Life: What advice would a 70 or 80 year old person give about the way the life should be lived? The most ‘upvoted’ answer was:

Read more

Share

Building an API for Mokocharlie's Community photos 2

Last time out I introduced a basic idea for an API, this post will be about the basic architecture of the API framework. I have been listening to and reading on API best practices published by APIGEE. Although there are one or two things about this guide that I think pidgeon-hole me into certain standards, I agree in most part with a lot of what this e book has to say, I recommend you give it a browse at some point.

Read more

Share

Building an API for Mokocharlie''s Community photos part 1

After a few years of Mokocharlie creating communities around images, it has become necessary to open up this data to partners who want to provide galleries of their own but don’t have the time to go out to curate those images themselves. To this end the most logical path would be to develop an API that leverages the data we already have, I have chosen Laravel for this project. Over the next few weeks I will be blogging about the progress made on this project, from architecture to design decisions etc.

Read more

Share

A standalone java/jar application from Scala sources using Proguard - Part 1

After about an hour of digging around and looking for a way to package a simulation I wrote in Scala for a coleague, I came across this process of doing it. I have reduced it down to a bash script which will be at the bottom of this post but I thought I should go through the steps a bit as the script makes certain assumptions. The first assumption is that you have the necessary libraries and such to run it they are as follows:

Read more

Share

MySQL and Scala - Simple selects

So after about an hour of research and experimenting, I found out how to make Scala work with MySQL without too much hassle, I found a really helpful guide here. Going down the SBT route, I first created a project and all that, then inside of the build folder I created a Scala class that ensured that when I started building, I would have the right dependencies downloaded and ready.

Read more

Share

Image Manipulation with Zend 1.x

I had been on the prowl for an MVC approach to image manipulation. Especially a method that did it the Zend way. In the forums and documentation for the framework the developers didn’t see a real need to implement a “Zend_Image” class in the libraries as this was already available through the PHP GD and Imagick hooks. Some of us however did and there are a few tutorials on how to incorporate the PHPThumb library into Zend.

Read more

Share

Using images in LaTeX

Note to self and perhaps others who might be wondering why your images are not displaying in your tex document. Despite using the correct syntax: \begin{figure}[htb] \begin{center} \includegraphics{image.png} \end{center} \caption{Fig 1: image} \label{fig1} \end{figure} You may find a box with with only the image path being displayed as your image. Please check that you are not using the “draft” argument at the top of your document when specifying your document class.

Read more

Share