Quantcast
Channel: Hasen Judy
Browsing all 50 articles
Browse latest View live

Knockout.js vs Backbone.js

What the hell am I talking about? Backbone? Knockout?These are 2 popular javascript frameworks, supposedly designed to help/facilitate the building of rich client application on the web.To me, this...

View Article


Adding web sockets to Flask apps

This is a walkthrough for integrating push sockets with a Flask app using gevent-socketioI will try my best to make this tutorial short and sweet and to the point. No fluff. Only the bare minimum. I...

View Article


Back to SQL

For the past year or two I was trying to jump around from one nosql system to another. I was unsatisfied with traditional relational database systems, and looking for something more flexible. My main...

View Article

setTimeout for python

In Javascript, there’s a function you can call to execute some function in the future:setTimeout(fn, delayMillis) This will call fn() after delayMillis milliseconds.To get a similar functionality in...

View Article

Experimental "ajax" library

Lately I’ve been feeling like jQuery is becoming rather obsolete for me.It used be a great library for dom manipulation, but for doing a real interactive UI, knockout.js is much better.It also used to...

View Article


Interesting hack to create html templates in javascript

Edit: various people pointed out that this trick is non-standard and not guaranteed to work across browsers, for instance, Firefox. So take this only as an interesting hack .. don’t use it in...

View Article

Python/gevent equivalent for `go func()` in go

In short, it’s gevent.spawnIn go, where you would write:go func(arg1, arg2, arg3) In python/gevent, you would write:gevent.spawn(func, arg1, arg2, arg3) This will spawn a greenlet and schedule it to be...

View Article

Competing asynchronous processes

Suppose you have an SPA (single page application) where all link clicks are handled in Javascript, and where the handling of link clicks might potentially involve an asynchronous request.Now imagine...

View Article


Tools for Front End development

Front end development on the web can seem like a big mess. So many different libraries and frameworks.This is my preferred toolset:RequireJS: module systemLoDash: functional programming helpersRSVP.JS:...

View Article


Image may be NSFW.
Clik here to view.

iOS: Custom clickable regions inside attributed text views

Android has ClickableSpan that can be put inside a SpannableString, and you can do whatever you want when the user taps on it.Here’s an example in Kotlin:object : ClickableSpan() { override fun...

View Article
Browsing all 50 articles
Browse latest View live