Ghost v0.5 update problem - No support for database client postgres


Error line from logs:ERROR: No support for database client postgresIf you are using postgres (usually for heroku users), just change your config.js file from:production: { url: 'http://hakanu.net', mail: {}, database: { client: 'postgres', toproduction: { url: 'http://hakanu.net', mail: {}, database: { client: 'pg',Redeploy your ghost.

Use third party python packages in Google App Engine


My hacky solution of usage of 3rd party packages in python. If you have a better method, leave a comment!Let’s start with flask example package by google. git clone https://github.com/GoogleCloudPlatform/appengine-python-flask-skeleton.git cd appengine-python-flask-skeleton pip install -r requirements.txt -t lib dev_appserver.py . Visit localhost:8080There is this lib folder with all of the dependencies in it like flask, jinja2, markupsafe etc. And in the code they are used like this:from flask import FlaskSo, to import your stuff: Download the package from pypi. For this example, I’m going to go through markdown package. Extract it somewhere, copy the folder and paste into lib/ folder. Preserve the name of the package like Markdown-2.4.1 in my case. Go inside the folder and cut the markdown folder and paste under lib/ folder. In the code, you can use it like:import markdownmarkdown.markdown(content)Also check this if you are interested in how to use markdown in flask.Defa...

Deploying Meteor and high cpu usage on production


Meteor is an open source javascript framework which gives developers to create real time Web apps without dealing with server code. From my side it’s a lot like firebase. However there are slight differences between them. Firebase also supports server side data synchronisation.Even though I don’t really like nodejs, I tried to play with meteor. The reason why I dislike Nodejs is because I hate npm. It never works perfectly, there is always something missing etc. I need to a lot of stackoverflowing to understand the errors. Same here again, I’ve faced a couple of problems but at the end I made the app run. Everything was good until I deployed the app to a production environment. By the way I will talk about painful deployment process as well.First of all you need to have these two installed in your machine to make meteor apps run: Meteor curl https://install.meteor.com/ | sh Meteorite: npm install -g meteoriteIf the code above does not work, try this (welcome to nodejs world):sudo ...

A small package of happiness aka SSD


I bought a small package of happiness from amazon.Little, fast, silent, light, beautiful…It’s an SSD, Samsung 840 EVO which has really aggressive pricing.I used this site to decide what to buy:http://ssd.userbenchmark.com/You should not really care about this 6gb/s thingy. You should divide it by 8 (1 byte=8 bits and it’s 6gbit not 6gbyte); so this is the speed of your sata3. Old sata2 ones have around 3gb/s. 6gb/s ~= 750mb/sDifference between read/write speeds and gb/s speedFun part: BenchmarksMy old companion who is still awesome! (1tb, 7200 RPM)** Just a side note, this hdd is connected to computer via a USB3.0 box, tests are not done by connecting it to the mainboard.Aaand this is the beast:Windows benchmark of the beast:

My first Android app which does something: World Cup Fan!


When the world cup first started, I knew that I won’t be able to watch all of the games and I was going to look for highlight videos and goals after the games desperately on youtube, dailymotion, google etc. So I created this simple android app which collects the match video links from the sites like rutube and plays within the app.Although I was not expecting much download, after one month of the launch, I received: 2,664 unique users 53,576 screen views 73% returning users 01:40 avg session duration Downloaded from 120 different countries/territoriesInteresting point is that there is no advertisement or branding for it. They are all organic downloads.There are also additional information like: Fixtures Groups Football club information Player databaseIt’s updated pretty quickly. After 1-2 hours of the each game’s final whistle, you can see that game and its highlights in the home tab.I know you are saying that this app is going to die in 2-3 weeks. However, I also show the...

Migrated my blog from Wordpress to Ghost


Yay, happy days. It has been in my todo list since I saw ghost’s kickstarter campaign. They pledged ~200k pounds while expecting 25k.Whatever, first I set up a free account from ghost’s official website and then tried to write my first blog post. I was amazed with the typing experience. Admin side was extremely clean; markdown was simply beautiful and fun to write.Don’t get me wrong, I really like wordpress as other 60% of the websites on the internet. The problem is that I don’t like php and I don’t like my hosting company. Although it’s easy to find a php hosting company, I lose all of the control. Wordpress is so complicated to manage. I also have a lot of historical problems from earlier versions of wp. I should start with a clean slate. Ghost’s simplicity hit me in the heart.Ok, so here are the basic steps: Find a hosting company for nodejs (eg heroku). Or setup your own environment by creating a VM using amazon’s free tier account or digital ocean’s basic plan which is $5 per...

Blogging for free with Ghost blog on Amazon EC2 Instance with your domain


I will walkthrough the steps of blogging for free with Ghost blog on Amazon EC2, well sort of. No, it’s not tumblr.Ghost is a nodejs based simple blogging platform. It was born in kickstarter.I really like it. It’s simple yet beautiful.There are two ways to use ghost, first one is that just go to their site and create an account, after that you will have a blog with a domain <your_name>.ghost.io; second option is to download the source code from the site and host in your instance. Second option is more geeky. So I have gone for it.Here is a list of things I needed to do in order to setup your own ghost instance: Create an aws account, no credit card needed. Go to EC2 and create an Ubuntu (I use ubuntu at home so easier for me. However nodejs can run on any platform) instance and run it Get the IP address of the instance Connect with ssh (Don't forget to download your security group key value pair.) Forward your ports for outer connections for example: 80 which is default HTTP ...

Mobile Application Development Frameworks Compared - Native, Steroids, Appcelerator, Kivy


Disclaimer: I’m not an expert on mobile application development. Just a newbie leaning towards the direction of the strong blaze.I would like write my trials with the frameworks that I’ve tried to use to make mobile applications, especially for android. In this process, I had some hands on experience with Appgyver Steroids, Titanium Appcelerator and finally native android SDK.Some background: Steroids is a framework developed on top of Adobe’s phonegap which gives you chance to create platform agnostic mobile apps by using HTML, CSS and Javascript. While doing this, it uses Apache cordova.js to connect with low level phone APIs like camera, accelerometer, gyro etc. NativeOutcomeFully native and optimized appDevelopment speedInitially slow, after ramping up on SDK, decent.App performanceSuperfastEnvironmentADT(Android Development Tools), Android StudioDebuggingSuper easy with Eclipse java debugging capabilitiesEmulatorLarge variety of emulatorsPerformance factorsJava is a beast. You ...

My First Native Android App


Learning new stuff, leaving your comfort zone is always hard. I like python, I like my python frameworks, I like html, css and javascript. Why would I learn yet another framework? Native SDK of android was something I have been running away for a long time. However, after trying 3 alternative frameworks which are Kivy, steroids and titanium. Finally, I decided to try native. I will write a comparison among those 3 frameworks soon.Here is the application:https://play.google.com/store/apps/details?id=co.hakanu.karikaturcu2It’s not saving the world, just showing some random comics, making you save your favorites into local storage and share via your apps. It was a good training application for me.There is a big misunderstanding among newbie mobile developers. Going with html or js is not always good. It depends on your use case. Sometimes putting a share button would be a real pain with html (phonegap and steroids). However, with native SDK, you can have an easy share button with a cou...

Ubuntu hard drive mount problem due to Windows 8 and 8.1 fast startup


I really like windows 8 and windows 8.1. Especially if your laptop is optimized for w8, it boots up blazing fast, restarts lightning fast, shuts down incredibly fast.  However, the problem is that I don’t really use w8 (only for gaming, photoshop and flash). I have just recently upgraded my w8 to w8.1 and forgot to shut down fast startup. It took me 5-6 times rebooting to understand the problem. Every time I log in to ubuntu, it could not mount NTFS drives and gave an error like “This drive is locked by windows, do not hibernate blah blah”. Although I was always shutting the windows down, fast startup was enabled and it was not releasing the lock on the hard drives.Ubuntu hard drive mount problem is caused by Windows 8 and 8.1 fast startup. To turn it off follow the steps here:


subscribe via RSS