September 2011
1 post
2 tags
Advanced django forms
Advanced Django Forms Usage View more presentations from Daniel Greenfeld
August 2011
1 post
1 tag
CAP! =)
For employer: Good. Fast. Cheap.
For employee: High-paid. Interesting. Easy.
Pick two!
June 2011
2 posts
2 tags
Programming without ifs. Challenge one in python.
Sometimes I think about programming without ifs.
I have found great blog about it here.
And here is my solution for first challenge implemented in python.
2 tags
Python and Singleton.
Never use singleton in python!
You can use instead of it Borg Pattern.
http://pastebin.com/qKXxGHJp
Also you can just use module instead of class. :)
January 2011
1 post
2 tags
Last 5 months..
..I was working on new russian social network - Vrublevku..
December 2010
1 post
1 tag
New cool service!
I found new cool service - about.me.
This is very, very original! )
Check it out!
August 2010
16 posts
1 tag
Let's move to console. →
2 tags
2 tags
2 tags
SICP. Exercise 1.8
Task: Newton’s method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by the value
Use this formula to implement a cube-root procedure analogous to the square-root procedure.
2 tags
SICP. Exercise1.7
Task: The good-enough? test used in computing square roots will not be very effective for finding the square roots of very small numbers. Also, in real computers, arithmetic operations are almost always performed with limited precision. This makes our test inadequate for very large numbers. Explain these statements, with examples showing how the test fails for small and large numbers. An...
1 tag
2 tags
SICP. Exercise 1.3
Task: Write a function, that takes 3 numbers and return sum of squares of 2 largest numbers.
2 tags
SICP. Exercise 1.2
Task: Translate the following expression into prefix form.
1 tag
My .vimrc.
I think, it can be useful for somebody. :)
3 tags
4 tags
2 tags
3 tags
Linux Hack: Dropbox + Thunar.
..Hmm. I use E17, so I don’t want to use heavy nautilus JUST FOR WORKING with Dropbox. And I found a solution. Dropbox have plugin for working with Thunar. And also Dropbox hasn’t interface for working with other file managers, except nautilus.
Well, solution is stupid simple. Let’s start:
1) Install Dropbox + Dropbox Thunar. In Arch Linux you can do it with yaourt. In my...
2 tags
My bruteforce for euler277 problem.
Here you can find bruteforce solution for project euler problem 277 written in python.
2 tags
Structure And Implementation Of Computer Programs →
3 tags
July 2010
44 posts
1 tag
Last.fm and robots.
..Developers of last.fm decided to define three laws of robotics in their file robots.txt… This is very original move and I like it. :)
2 tags
MapReduce in 20 minutes! →
2 tags
My desktop environment now is..
..ENLIGHTENMENT!
It’s also known as e. In my case, I use last unstable version - e17.
Well, it’s really simple, fast and beautiful. ))
2 tags
2 tags
Fast way to share Printer between 2 Linux systems...
It’s just advice from me.
Use case: You have 2 or more Linux systems, and you have printers connected only to one of them. It will be server. And you have CUPS already installed.
Step 1: Setup cups on server side.
1.1 sudo vi /etc/cups/cups.conf
1.2 add ServerName <your_ip_or_hostname>
1.3 add “Allow From @LOCAL” to <Location /> section
1.4 :wq
1.5...
1 tag
Ufff...
..some of my favorite Vim Lessons Added. Author of lessons - Derek Wyatt.
2 tags
Derek Wyatt. Insert Mode.
2 tags
Derek Wyatt. Vim Modes Introduction.
2 tags
Derek Wyatt. The vimrc File and Vim Runtime Directories
2 tags
Derek Wyatt. Vim’s Help System
2 tags
Derek Wyatt. Basic Editing II.
2 tags
Derek Wyatt. Basic Editing I.
2 tags
Derek Wyatt. Working with Many Files III.
2 tags
Derek Wyatt. Working with Many Files II.
2 tags
Derek Wyatt. Working with Many Files I.
2 tags
Derek Wyatt. Basic Movement III.
2 tags
Derek Wyatt. Basic Movement II.
2 tags
Derek Wyatt. Basic Movement I.
2 tags
Derek Wyatt. Find Command and The Path.
2 tags
Derek Wyatt. Destruction is Good.
2 tags
Derek Wyatt. Vim. Surround Plugin.
2 tags
Derek Wyatt. Using the Vim VisIncr plugin.
2 tags
Derek Wyatt. Using a Vim Macro to edit many files.
2 tags
Derek Wyatt. Vim autocommands.
2 tags
Derek Wyatt. Vim XP Template Plugin.
This one plugin really rocks!
2 tags
Derek Wyatt. Vim Macros and Global commands. I.
2 tags
Derek Wyatt. Demo of ProtoDef Vim Plugin.
2 tags
Dere Wyatt. The Vim Expression Register