Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vlisivka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
151.
▲
by
vlisivka
17y ago
My trainer use that method for more than 50 years: he started at 18 years in 1958. ;-) Rules are simple: pay $1 and throw ball to basketball basket 6 times. 5-6 hits - $10-$20 worth ball, 4-3 hits - 10c worth prise, 1-2 hits - a sweet. He s
152.
▲
by
vlisivka
17y ago
Allocate 1MB of memory upfront. When OOM happens, free that memory and run recovery mechanism. Similar policy is used in Linux for disk space: 10% of disk space is reserved for root. PS. Linux OOMKiller already do something similar: it just
153.
▲
by
vlisivka
17y ago
First team: regular work. Second team: speculation. Third team: ads. Where is direct marketing team? My solutions: Receipt one: * by bunch of cheap sport items; * walk to the park; * lease them; * hire and teach other people to do t
154.
▲
by
vlisivka
17y ago
I already can use XWindow on my phone - I have GPE with XWindow installed on my phone (Motorola A1200): http://gpe.handhelds.org/ . GPE/X11 works much faster than QT/FB.
155.
▲
by
vlisivka
17y ago
I saw no new terms to add to my dictionary in that presentation. If you looking for new ideas to add to your language, then look at the world: * hibernate mode decreased computer boot time from minutes to seconds. Is your new supper-pupper
156.
▲
by
vlisivka
17y ago
If you use setFoo() and getFoo() then you are not using OOP at all. Encapsulation is simple thing - just write setters and getters for all your internal data and you done. ;-) PS. «If the classes are immutable, there is no problem with this
157.
▲
by
vlisivka
17y ago
Ext4 - is badly configured Ext3 (data=writeback mode) with extents support. By default, in recent kernels, Ext3 is configured in same way as Ext4 (data=writeback). In RedHat/Fedora/CentOS/etc., Ext4 is configured properly (data=ordered): "D
158.
▲
by
vlisivka
17y ago
Use "set -u" to treat unset variables as an error when substituting. Use "||" operator to handle errors. My pattern: an_command || { error "Cannot execute an_command. Exit code: $?." return 1 } Always wrap variables with double quotes,
159.
▲
by
vlisivka
17y ago
> I was surprised to see the death rate for swine flu is not much different from the regular seasonal flu Every human flu is actually an avian flu adapted by swine.
160.
▲
by
vlisivka
17y ago
If humans are "free", why I cannot capture them and sell as slaves? Are they really "free"? Word "free" has lot of meanings in English language. In my native language, word "free" in context of BSD licensed code should be translated as "svo
161.
▲
by
vlisivka
17y ago
> When logging in from a home or work computer, a cookie can be stored so that no verification call is required. Try XSS.
162.
▲
by
vlisivka
17y ago
You are right in general case. In my case, I was responsible for few large subsystems (Linux and related stuff, automated testing and continuous building, packaging, deployment, automating of common tasks, configuring, support and troublesh
163.
▲
by
vlisivka
17y ago
XP and SCRUM can increase my productivity up to 300%. But, after 5 years of successful XP and SCRUM practice, I burned out. I just cannot think about work. Long vacations helps me a lot, but for short period of time - 1 month vacation resto
164.
▲
by
vlisivka
17y ago
Lisp (and Scheme) has no syntax. Lisp code is Abstract Syntax Tree, which is written in text form. AST is intermediate form used by compilers or interpreters. You can use XML or JSON to represent AST. You can write interpreter for AST repre
165.
▲
by
vlisivka
17y ago
Congratulations for what? Law is not working due to weak government. I am afraid that if somebody will try to enforce DRM software to comply with law, law will be changed quickly. I live in Ukraine (Eastern Europe).
166.
▲
by
vlisivka
17y ago
Original blub code should look like that: frame.addKeyListener(new KeyListener() { public void keyTyped(KeyEvent event) { switch (event.getKeyChar()) { case 'j': drop(); break; case 'h': move(-1); break;
167.
▲
by
vlisivka
17y ago
In my country, DRM is unlawful de-jure (but is in use, de-facto), because it violates bunch of laws.
168.
▲
by
vlisivka
18y ago
I use program to force short breaks (see workrave.org). I also use short play of fast arcade game (sopwith to first death, 20-30 seconds) to relax a bit.
169.
▲
by
vlisivka
18y ago
The network equipment producers use cheapest programmers, which never ever will read Red Book ( http://www.amazon.com/UNIX-System-Administration-Handbook-3r... ), or File System Hierarchy Standard, or any other standard. My mobile phone (
170.
▲
by
vlisivka
18y ago
> "We're talking about a new field of science that's a hybrid between chemistry and physics." I already saw articles about that in Russian magazine "Technic for youngers" ("Техника - молодёжи"/"Tehnika - molodeji") about 20 years ago. A
171.
▲
by
vlisivka
18y ago
I have same thoughts as RMS. As leader of our national Ukrainian Linux Users Group, I involved in fixing of various problems with support for Ukrainain language in foreign programs. Here is my experience: MS: some problems still around fo
172.
▲
by
vlisivka
18y ago
> Yesterday it was comparing the US today with the Weimar Republic. He comparing two economic systems. What wrong? > The great cathedrals were built as tourist attractions. Yes, that is right. ( s/tourist/believer/ ) Attractive chur
173.
▲
by
vlisivka
18y ago
Carrot should be placed very close to donkey head. "Just one cent above my bid! Beat it!"
174.
▲
by
vlisivka
18y ago
The time to invent transactions in filesystem? fd=open("..."); transaction_begin(fd); write(fd, ...); close(fd); rename(fd); transaction_end(fd);
175.
▲
by
vlisivka
18y ago
Somebody, please, kill the author of that article! If you are green, then you should think about effectiveness of your code. I mean, how much watts your code will use. Ideal program should produce result without using of any computation at
176.
▲
by
vlisivka
18y ago
I recommend to look at GlusterFS. It fast, modularized, layered clustering file system. It is not tied to Linux kernel because it built for (patched) Fuse. With Infiniband hardware, it is fastest clustered system available for free. See h
177.
▲
by
vlisivka
18y ago
Imagine following example: you signed contact to guarantee 99,999 uptime - 8-9 hours of downtime per year. First your downtime is 12 hours. Now you need to work more than 1 year without any errors. Any "500" error code can cost hundreds of
178.
▲
by
vlisivka
18y ago
While on diet, you need more vitamins than usual. Fruits and vegetables has calories too. Look at tables: http://www.fatfreekitchen.com/calories.html 1 apple is about 200g (five apples per 1kg), thus it is equivalent to 2 tablespoons of
179.
▲
by
vlisivka
18y ago
You right. So you do not need to eat less. You need to eat less calories, right? Eat meat instead of burger - you will be satiated for much longer time with much less calories. Also you need to eat vitamins - they will help organism to conv
180.
▲
by
vlisivka
18y ago
It is not a problem. Execution of any code in any language can have side effects, like garbage in memory or stack overflow or OutOfMemoryException. Usually, you just ignore these side effects. Use code convention to define which flags, regi
More ›