Learning FastAPI By Doing - Let's Go Bro!

Learning FastAPI By Doing - Let's Go Bro!
A few days ago I published a Python Sanic backend and an Android app of a weekend project I did a few years ago. The project was simply directing people to a random cheapest return flights from where they are, set a budget and just press Go. It was written when async Python was beginning to mature. So I thought why not learn something new (FastAPI) and compare it with Sanic. [Read More]

Continuous Web Development with Flask & Jenkins

We’ve all heard of Continuous Integration (CI). This blog post is a practical example of the topic with web development in Python and CI with Jenkins. A bit of Test Driven Development (TDD) is practiced. Ultimately it’s the reader’s choice to figure out what’s right your themselves. Why CI? The idea is to create a process of which in practice builds foundation for software. A safety net to catch defects early is part of the side effect, localizing complex systems into micro parts and test them to ensure quality over time. [Read More]

Icy Start - Soon!

It’s 14 March 2014 and 2 things have happened. The first is @Jokowi_do2 running for President, Yeay! And the second is me finalizing my beginning at Ice House! After resigning from Urbanesia, more doors opened. I am humbled by the opportunities offered but Ice House is hard to resist. There are a lot of like minded people already aboard. In particular @femmerling. Further more, I can’t resist the opportunity to build. [Read More]

Squeezing Cubieboard for Performance

For the past month, I’ve been pleasantly hacking my Cubieboard to try out several different things. This time, I wanna know how performant Cubieboard is. Benchmarks are configured in such a way to replicate a real Web Application. Preparing Here are the specs for my Cubieboard: AllWinner A10 ARM Single Core CPU 1 GB DDR3 @ 480 MHz 5V / 2A = 10 Watts SATA HD - 5400 RPM Cubian r7 - http://cubian. [Read More]

Monitoring Android with Flask

This blog post is a mirror and a more detailed representation of the materials I’m talking about at Kopi Darat Python Indonesia - December 2013. Slides can only say so much, here is where the intimacy starts. Warning Any and all of the information including source code available here are for educational purposes. Please use them responsibly. That being said, all codes are basic implementations only. Please get your hands dirty. [Read More]

Cubieboard - Part 2 - VPN

So after setting my Cubieboard for my liking, another thing I want is to be able to access it anywhere and anytime. The trouble is, the ISP I am with right now is blocking all incoming ports, needs a work around. After some browsing and also from past experiences, I feel PPTP is my best bet. Incredibly easy to implement from a client/server perspective. The challenge is to keep the tunnel open at all times. [Read More]

Compiled and Minified Assets with Flask-Assets & Webassets

All these times coding in PHP, I have yet to experience an elegant way to compile and minify assets including but not limited to CoffeeScript, JavaScript and or CSS. Watchers for specific transcompiler were needed and it blocks me from coding straight up. Well Python and Flask specifically is giving me sweet dreams. Have a look first at Flask-Assets and then dive in to Webassets. FYI, Flask-Assets if you set it up as your dependency will include Webassets also. [Read More]

Machine Favorited Tweets - Organically Improve Followers Count

Last night, I read about James Moriss' blog post on how to gain more followers by favoriting other tweets relevant to your own tweets or some other keywords you are interested in. The downside was, you still have to input the keywords yourself. So I hacked up some codes let the codes figure out what keywords are proper. My first try into Python’s NLTK. WARNING: The codes below are not production ready codes. [Read More]

Python 2.7.5 on CentOS 6.x

For the last few months, I’ve been coding in Python relentlessly. It’s new to me and it just makes sense. The one thing I really like is keeping codes and logic simple. You can comment Python’s OOP implementation but then again, everyone got a favourite right? Most of the servers I handle everyday are CentOS 6.x distros with Python 2.6.x preinstalled by the system. You DON’T wanna upgrade it through yum or any other method, you will break the whole system. [Read More]

Means To an End

It has been quite a while since my first Hello World in BASIC and I have since absorbed a few more languages to my liking. Back in college, C and C++ were 2 of the primary languages taught which is fine. But then, there’s this junior who asked me: “Why do I have to learn something nobody can see?”. That guy asked a very valid question. For some, crunching codes into you favorite editor with only you and the machine communicating is of the utmost fun but for others, it’s not as fun. [Read More]