Quantcast
Channel: Robert Lujo's Homepage
Browsing latest articles
Browse All 16 View Live

Tubmlr per-tag RSS feed

Tubmlr supports tagging. This post is tagged with “tumblr”. The page that lists all posts tagged with “tubmlr” is:http://trebor74hr.tumblr.com/tagged/tumblr/Although the page provides RSS...

View Article



Go on windows tutorial (#golang)

Recently I invested some time to learn about new and popular language Go. I wanna give a test-drive, and since I have Windows XP and there is no GO official windows Go port, I needed to do some manual...

View Article

How to count characters, bytes and words in Vim

The article provides some information and tips on the subject: how to count characters, bytes and words in Vim.Vim status lineWhen you do selection in vim in the status line there is information on how...

View Article

Mercurial branches - 'named branches' way - prefered way to do it?

Mercurial provides many ways to do branch based development. I was searchingfor the best in-repo branch solution. I chose named branches …Branching in mercurialMercurial provides following solutions to...

View Article

Twitter incremental backup in YAML format - python, HTML get and parse

I use Twitter primarly as a bookmarking service.I know that Twitter is not bookmarking service and there are specialized services for such needs. In my case, using this way started as an experiment,...

View Article


permset - utility for mgnt of *nix permissions based on patterns

I had just released 0.20 version of permset.Permset is simple standalone utility script to manage *nix permissions on file and directory trees based on patterns.Check the example session to get into...

View Article

permset - utility for *nix permissions mgmt based on patterns - release 0.22

Permset is simple standalone utility script to manage *nix permissions on file and directory trees based on patterns. New release 0.22 contains following improvements:variable substitution for user and...

View Article

Destructuring assignment / tuple unpack in Python - by examples

Destructuring assignment (a.k.a. tuple unpack) in Python, seems to be very useful thing. The most basic variant:>>> x,y = 1,2>>> x,y(1, 2)what is identical to:>>> x, y =...

View Article


Answering questions on Stackoverflow

The last few days I was answering questions on stackoverflow - mainly related to python and db2. It came out a bit addictive. Now I have 20 answers, raised my reputation to 449 and reached top 10% this...

View Article


Image may be NSFW.
Clik here to view.

Clojure and 4clojure - reached top list 200

In my spare time I’m learning clojure.Haven’t done any serious stuff (yet), but I have been solving problems on 4clojure.com. I was pretty satisfied how it went, and my final goal was to reach top list...

View Article

Algorithm: Sum digits of all whole numbers to nr N

Recently I needed to solve algorithm problem “sum digits of all whole numbers to nr N”. I wanted to find out solution that scales, i.e. that doesn’t iterate through all numbers. After playing around...

View Article

OS X keyboard shortcut to change focus to next/previous window

Usually OS X application can have multiple active windows. One can see the list of opened windows in application Window menu bar, and change the focus by selecting one of them. I was searching for some...

View Article

Simulation of custom domains/subdomains on localhost

edit hosts:sudo vim /etc/hosts and add:127.0.0.1 somesite.zz 127.0.0.1 robert.somesite.zz 127.0.0.1 lujo-lujo.zz 127.0.0.1 robert.lujo-lujo.zz test it:- start local dev server # in my case django app -...

View Article


Displaying the content of #django {% debug %} tag

django has one interesting tag:debugOutputs a whole load of debugging information, including the current context and imported modules.I use this boilerplate to display it properly:<pre> {% filter...

View Article

#Django forms (#python) - prepare field values (e.g. .strip()) of all input...

I have a form that contains forms.URLField:class MyForm(ModelForm): long_url = forms.URLField(label=_(u"URL" ), max_length=300, required=True,) When a user inputs value that has trailing spaces,...

View Article


#Django-haystack - #ElasticSearch (and probably #Solr) - how to...

If you are using django-haystack, you may notice that filter by None won’t work:from haystack.query import SearchQuerySet SearchQuerySet().filter(some_field=None) Haystack won’t report any error and...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images