New portfolio and blog of Mateusz Dembek (aka dembsky)
I’m cooking something special, here in my lab. One of things the project requires is generating random and totally fake users, complete with e-mail address, username and other details. Some time ago I’ve used Forgery Ruby gem to generate such data and it worked quite well. So, I thought I’d port it to Python. A few hours later, here it is.
One of my last tasks before leaving Weeby was to release StatusBoard on GitHub. I was very happy to see the app being open-sourced as I had a lot of fun (and did some magic) during its development and wanted to use it outside the company. For more info please see the app’s GithHub page.
I was asked by one of fellow devs why I use accessors for instance vars in Python. Because I’m used to accessors after coding in Ruby and Objective-C, I replied and went with my own business. But today a post by Dropbox about optimizing Python code popped into my head. It states that Python function calls are slow. I coded a small snippet to see how accessors perform compared to just accessing an instance variable.
Some time ago I started using Mustache in apps I write to make tedious task of
well and fits my needs. There’s one problem, however. When I first tried to use
the Mustache template in browser I found that it was pretty much impossible.
Somewhere in the Internets I found someone’s post where he suggested we should
use wrap Mustache code in
script tag with
text/html type. At first I was
like WTF? but then I was like Including all the templates in every HTML?
Srsly? because this method wouldn’t work when loading templates from files.
I was stuck.
Some time ago I invented a password generator that fits into a tweet.
One of my projects required me to write a small Web app that informs a user about status of a long-running server process. The idea is that the user triggers the operation from Web frontend, the backend spawns a worker (implemented as a standalone program), listens to notifications from the worker and passes them to the frontend. I was thinking about implementing (almost) realtime backend and frontend communication and came up with two solutions - WebSocket and Server-Sent DOM Events. I decided to go with Server-Sent DOM Events as they’re HTTP-based and one-way. While using WebSockets would be simpler (Socket.IO + TornadIO and it is on) I thought it’d be overkill for server-to-client communication.
@dembsky, my fellow designer who created graphics for I ♡ GIT, asked me to write an app for him to do a contest for a Dribbble invite. If you’ve got anything to do with graphics design and would like to be a part of Dribbble community you may want to take your shot in the contest. Rules are simple so is the app that I wrote.
I ♡ GIT is a small Web app I did to allow you to say why you love GIT. Just sign in using your Twitter or GitHub account and you’ll be able to say a few words about why GIT is cool. I got the idea when I said to myself Man I love GIT after doing some magic with it.
Developer, webmaster, part-time bassist, music addict.
BTHLabs owner and mastermind.