sudo vim /etc/hosts
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
- start local dev server # in my case django app - open browser: robert.somesite.zz
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 OS X keyboard shortcut to do this without mouse. There are several ways to do this (https://support.apple.com/kb/HT1343), but I find these two the most convenient:
The important thing is that the cycling is done through all windows of all opened applications - like a “better” alt-tab.
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 with algorithm, I found it out.
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 200.
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 week :).
Check my profile at http://stackoverflow.com/users/565525/robert-lujo .
Update: The addiction needed to stop. Resume: 51 answers, reputation > 1200. It was fun :)
Destructuring assignment (a.k.a. tuple unpack) in Python, seems to be very useful thing. The most basic variant:
»> x,y = 1,2
what is identical to:
»> x, y = [1,2]
»> x, y = (1,2)
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 the idea behind.
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, but later I found this way very convenient.
I wrote a script that enables me to incrementally backup all my tweets in a textual file in YAML format, by parsing HTML Twitter pages. Explanation and the script follows …
Mercurial provides many ways to do branch based development. I was searchingfor the best in-repo branch solution. I chose named branches …
The article provides some information and tips on the subject: how to count characters, bytes and words in Vim.
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 work.
Tubmlr supports tagging. This post is tagged with “tumblr”. The page that lists all posts tagged with “tubmlr” is:
Although the page provides RSS feed:
this is not per-tag feed, you RSS feed for all posts :(.
Hopefully there is solution, RSS feed that provides only posts tagged with tag “tumblr” is:
And it works !!!