Site uses cookies to provide basic functionality.
Javascript rendering is set to off by default when visiting the site via .onion and .i2p domains. It can be enabled back again in user's settings section. Javascript rendering set to off means, that you can disable javascript in your browser now and the site will remain functional.
There is also IRC server now available via native IRC clients or non javascript web based one.
Fonts can be adjusted in user's settings section as well.
Check FAQ for more.

OK

Redis is an advanced key-value store. Like memcached on steroids. Everything is in the RAM and you can theoretically reach 100 000 GET per second with Redis. My solution below will cache all the HTML output in Redis and display it without the need to load WordPress. A big thanks to Jeedo Aquino who have [...]

Redis is an advanced key-value store. Like memcached on steroids. Everything is in the RAM and you can theoretically reach 100 000 GET per second with Redis. My solution below will cache all the HTML output in Redis and display it without the need to load WordPress. A big thanks to Jeedo Aquino who have [...]

Let’s talk about compiler backends. C should be a portable language, and there is no need to rewrite the whole compiler if you want to port it to the new CPU architecture. Backend is a part of the compiler that generates low-level byte code. Compiler itself just calls backend functions. Good backend design makes the compiler highly portable. I wanted CUCU to be a portable compiler (actually, a cross-compiler). So, I decided to move backend ..


I recently set up a Mercurial server (Windows, Apache, ActiveDirectory and hgweb.wsgi). However, cloning our 1Gb repository took an hour or more and often failed. The only information in the Apache log was mod_wsgi (pid=1234: Exception occurred processing WSGI script 'C:/hg/hgweb/hgweb.wsgi' IOError: failed to write data The solution was to disable compression by adding the following lines to hgweb.config [server] preferuncompresse..

Let’s talk about compiler backends. C should be a portable language, and there is no need to rewrite the whole compiler if you want to port it to the new CPU architecture. Backend is a part of the compiler that generates low-level byte code. Compiler itself just calls backend functions. Good backend design makes the compiler highly portable. I wanted CUCU to be a portable compiler (actually, a cross-compiler). So, I decided to move backend ..

Do you ever feel it’s hard to get real progress in a sprint towards the business goal? Do you feel the feedback from a iteration picks on all the details you didn’t mean to cover this sprint? Do you feel like sprint planning meetings are dragging out? Then a Rainbow Sprint Plan may be for you. Here is an example of a Rainbow Sprint plan: A customer wants cheap vacations The customer signs up for daily or weekly notifications of special flig....

Haskell Strings - honza.pokorny.ca - 13 years ago - eng
It continues to amaze me how bad Haskell is at processing strings. One of the reasons I wanted to learn Haskell was to be able to write short, dynamic-language-like programs that execute fast once compiled. Somehow rather, Haskell has failed to deliver on its promise of bare metal speed. I mostly write scripts and utilities meant to run on my machine—these scripts mostly process text. Read a file, parse it and spit something out. Exa....

Haskell Strings - honza.pokorny.ca - 13 years ago - eng
It continues to amaze me how bad Haskell is at processing strings. One of the reasons I wanted to learn Haskell was to be able to write short, dynamic-language-like programs that execute fast once compiled. Somehow rather, Haskell has failed to deliver on its promise of bare metal speed. I mostly write scripts and utilities meant to run on my machine—these scripts mostly process text. Read a file, parse it and spit something out. Exa....

Dear internets, I’m a sysadmin/architect, which means I spend a good amount of time coding in puppet and other languages. Puppet is a great tool, however the puppet community is a bit anal strict about their style policies. I can respect this because I understand how important uniformity is when many developers are sharing code. ( On a side note, I absolutely can’t stand using spaces for indentation, but that’s another story. Plea..

Dear internets, I’m a sysadmin/architect, which means I spend a good amount of time coding in puppet and other languages. Puppet is a great tool, however the puppet community is a bit anal strict about their style policies. I can respect this because I understand how important uniformity is when many developers are sharing code. ( On a side note, I absolutely can’t stand using spaces for indentation, but that’s another story. Plea..

So far, we have defined language grammar and have written a lexer. In this part we will write a parser for our language. Before we start, we need some helper functions: int peek(char *s) { return (strcmp(tok, s) == 0); } int accept(char *s) { if (peek(s)) { readtok(); return 1; } return 0; } int expect(char *s) { if (accept(s) == 0) { error("Error: expected '%s'\n", s); } } peek() returns non-zero value if the next token is equal to the giv..

So far, we have defined language grammar and have written a lexer. In this part we will write a parser for our language. Before we start, we need some helper functions: int peek(char *s) { return (strcmp(tok, s) == 0); } int accept(char *s) { if (peek(s)) { readtok(); return 1; } return 0; } int expect(char *s) { if (accept(s) == 0) { error("Error: expected '%s'\n", s); } } peek() returns non-zero value if the next token is equal to the giv..


I have written a little bookmarklet that will allow you to filter your OKCupid matches by a smaller geographic region. By default, their search filters allow no smaller than a 25-mile radius. Drag the bookmarklet link below onto your bookmarks toolbar, then click it when you are on the OKC search page, and voilà, you will have the options for 5 and 10-mile searches. 10-mile radius will be selected, so just click "search" and you will have....

Let talk about the compilers. Have you ever thought of writing your own one? I will try to show you how simple it is. The first part will be pretty much theoretical, so keep patience. what we’re going to achieve? CUCU is a toy compiler for a toy language. I want it to be as close to ANSI C as possible, so that every valid CUCU program could be compiled with a C compiler without any errors.

Let talk about the compilers. Have you ever thought of writing your own one? I will try to show you how simple it is. The first part will be pretty much theoretical, so keep patience. what we’re going to achieve? CUCU is a toy compiler for a toy language. I want it to be as close to ANSI C as possible, so that every valid CUCU program could be compiled with a C compiler without any errors.


In my professional work, we have a system that utilizes __call and __callStatic for caching of certain method calls. We have been running into a problem where calling an undefined method via :: within the class itself will trigger __call rather than the expected __callStatic. The Problem The following code example illustrates the issue.
In my professional work, we have a system that utilizes __call and __callStatic for caching of certain method calls. We have been running into a problem where calling an undefined method via :: within the class itself will trigger __call rather than the expected __callStatic. The Problem The following code example illustrates the issue.
I experienced a strange memory issue with Lemma this week. Memory usage skyrocketed each time I loaded a level; it never dropped back down. Now granted, I am definitely the garbage collector's worst nightmare. (I'll just say this: closures. Closures  everywhere .) But at this point I am setting fields to null all over the place and manually calling GC.Collect() after unloading a level, all to no avail. Enter the .NET Large Object Heap ..



Stamina and Sprint I finally realized that speed is perhaps the most important resource in a Parkour game. Up until now, Lemma hasn't really understood the concept of "faster" and "slower"; you were always going the same speed. Acceleration from a dead stop was almost instantaneous and the Parkour moves didn't change your speed (with the exception of wall-running). With this in mind, I decreased the acceleration a lot and made all the mo..

I mentioned that a small group of us had been working on a project in week one. The project is a startup idea generator with an 8-bit theme.

Sequential Account Numbers + Affiliate Program = Financial Transparency Background Accounts generally come in two flavors: name based and numerical. Name based systems use a text representation for an account (username). Numerical systems use an id number to identify accounts. (Note: these aren't mutually exclusive) The affiliate program is nearly a staple of any online business these days. Companies give people a cut for referring t....

Our fusion future - purpleidea.com - 13 years ago - eng
I always find myself reading about fusion . This time, I’ve come across an excellent Q&A on slashdot by some MIT Fusion Researchers . It’s well worth the read, and so is the http://www.fusionfuture.org/ website for some clear explanations about nuclear fusion. Enjoy, James You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. Yo..

Our fusion future - purpleidea.com - 13 years ago - eng
I always find myself reading about fusion . This time, I’ve come across an excellent Q&A on slashdot by some MIT Fusion Researchers . It’s well worth the read, and so is the http://www.fusionfuture.org/ website for some clear explanations about nuclear fusion. Enjoy, James You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. Yo..

Yesterday I made another iOS build (I do them about once a week, but will be ramping up the frequency now) and spent a few hours fixing iOS specific bugs, then trying to consolidate the iOS code with the browser version code to take out as many differences as possible.

Yesterday there was a post which hit Hacker News that talked about using SQL to access Mongo . While this is powerful I think much of the true value was entirely missed within the post. SQL is an expressive language, though people are often okay with accessing Mongo data through its own ORM. The real value is that you could actually query the data from within Postgres then join across your data stores, without having to do some ETL pro....

Yesterday there was a post which hit Hacker News that talked about using SQL to access Mongo . While this is powerful I think much of the true value was entirely missed within the post. SQL is an expressive language, though people are often okay with accessing Mongo data through its own ORM. The real value is that you could actually query the data from within Postgres then join across your data stores, without having to do some ETL pro....

After a slight (well, slightly more than slight) design change in my current project I had to build a way for players to be able to select a vessel to use before each level. This required a little bit of recoding. The gist is this (as usual, everything is a barebones placeholder at this time):

With Lukas Smith we gave the Monday keynote in this year’s International PHP Conference , titled The Internet is your application blueprint . The video is now online: The main argument of the keynote is that even though the big promises of the Service-Oriented Architecture hype of 2000s haven’t happened, by now companies are using lots of services when building their web applications. Consider these: Web analytics Streaming med....

up and ^ down : navigate methods ⇧ ⌘ up and ⇧ ⌘ down : switch from .h to .m ⇧ ⌘ ⌫ : go to last edit ⇧ esc : hide console/bottom view ⌥ ⌘ L : reindent code (^ i in xcode) ^ r : Run (⌘ + r in xcode) ^ tab : navigate files ⌘ o : open class ⌘ ⇧ o : open files



Updates in the Works - boyter.org - 13 years ago - eng
Recently I have rolled out a few small performance and functional tweaks and changes. Nothing major to report here however I am working on the next version of searchcode which has an improved look and feel and blended search results. The idea being if you search for “mysql_query” you are probably interested in the documentation first and code examples second, or if you search for “mysql_query is a blocking function?” you are probably intere..

Nice Clouds I got sick of my old pixelated skybox powered by Google Images and decided to make a real one. I used Spacescape to generate a sufficiently trippy outer space skybox, chopped up some cloud photos in Gimp, fought with my code for a couple hours, and wha-la: Scary Monsters What's that glowy green thing you say? It's the new monster I just added, creatively named "the vine". See that string of dark blocks coming out of it..

Sometimes, small questions lead to big answers. Sometimes these answers are controversial. One such question is “What does this warning about serialVersionUID mean”? All the advice out there basically is for developers who don’t know what’s going on to write code that will ignore errors when something unexpected happens. In my view - this is exactly the wrong approach. The safe way to act is to make sure that your program crashes if you don..


It's been two weeks since Review Signal launched. The initial excitement of reaching it's first major milestone is over and I finally have a moment to think about how it went. The Stats: 3,041 Visits 10,163 Pageviews 3.34 Pages per Visit Average Visit Duration: 2m 16s Bounce Rate: 5.52% Visitors from TechCrunch: 727 Failures and Short Comings: Social Sites - Reddit, HackerNews It got very little traction in these commun....

It's been two weeks since Review Signal launched. The initial excitement of reaching it's first major milestone is over and I finally have a moment to think about how it went. The Stats: 3,041 Visits 10,163 Pageviews 3.34 Pages per Visit Average Visit Duration: 2m 16s Bounce Rate: 5.52% Visitors from TechCrunch: 727 Failures and Short Comings: Social Sites - Reddit, HackerNews It got very little traction in these commun....

It's been two weeks since Review Signal launched. The initial excitement of reaching it's first major milestone is over and I finally have a moment to think about how it went. The Stats: 3,041 Visits 10,163 Pageviews 3.34 Pages per Visit Average Visit Duration: 2m 16s Bounce Rate: 5.52% Visitors from TechCrunch: 727 Failures and Short Comings: Social Sites - Reddit, HackerNews It got very little traction in these commun....

It's been two weeks since Review Signal launched. The initial excitement of reaching it's first major milestone is over and I finally have a moment to think about how it went. The Stats: 3,041 Visits 10,163 Pageviews 3.34 Pages per Visit Average Visit Duration: 2m 16s Bounce Rate: 5.52% Visitors from TechCrunch: 727 Failures and Short Comings: Social Sites - Reddit, HackerNews It got very little traction in these commun....

5 visitors online