This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Inline C => Config => LIBS => '-lsqlite3'; | |
use Inline C => <<'END'; | |
#include <sqlite3.h> | |
/* Not included in sqlite.h */ | |
#define SQLITE_PRIVATE static | |
#define SQLITE_ENABLE_FTS3 1 | |
#define UNUSED_PARAMETER(x) (void)(x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Session; | |
use MooseX::POE; | |
use namespace::clean -except => 'meta'; | |
has session_id => ( | |
isa => 'Int', | |
is => 'rw', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE info ( | |
attribute TEXT NOT NULL UNIQUE PRIMARY KEY, | |
text TEXT NOT NULL | |
); | |
CREATE TABLE expr ( | |
id INTEGER PRIMARY KEY AUTOINCREMENT, | |
text TEXT UNIQUE, | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $file = 'lib/Hailo.pm'; | |
my $old = qx"git rev-parse HEAD:$file 2>/dev/null"; | |
my $new = qx"git rev-parse :$file 2>/dev/null"; | |
if (($? >> 8) != 0 || $old ne $new) { | |
$ENV{PERL_UNICODE} = 'O'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# vim: ts=2 sw=2 filetype=perl expandtab | |
use strict; | |
use POE qw(Wheel::FollowTail); | |
use Test::More tests => 2; | |
my $filename = 'hinrik-followtail'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Which; | |
use Getopt::Long qw(:config auto_help); | |
use Pod::Usage; | |
use String::ShellQuote; | |
my $VERSION = '0.01'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello. I'm shopping around for a VPS provider in the UK and I have some questions about your service. | |
I'm moving away from my current provider (prgmr.com) because their IO performance has gotten noticably worse over time (too many machines sharing the same RAID array, was only getting 1.6MB/s from disk at bad times, with the cpu waiting for IO all the time). I had moved to them from my original provider (slicehost.com) for lower costs (your pricing looks good though). Another factor that matters is latency. The aforementioned providers are based in the U.S., but the UK is closer to us, which is why we've been looking at Linode. | |
Can you give me an idea of the IO performance I might expect from you? | |
Do you have an example hostname that I can ping to see what latency I might expect? | |
Your 1024MB/60GB/1500GB/£29 plan interests me. Would it be possible to trade some of the bandwidth for more RAM? Something like 2048MB/60GB/750GB/£30 would be perfect. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ævar heiti ég og vil gefa ykkur smá skýrslu um það hvernig OpenStreetMap verkefninu hefur farnað á síðastliðnu ári þegar kemur að Íslandi. Ég sendi skilaboðin á FSFÍ og RGLUG listann auk póslistans fyrir OSM á Íslandi þar sem árlegar stöðuskýrslur um frjáls verkefni tengd Íslandi eru örugglega vel þegnar þar. | |
Fyrir þá sem ekki vita er OpenStreetMap kortagrunnur af allri jörðinni sem inniheldur efni undir frjálsu leyfi (CC-BY-SA) og miðar að því að verða aðalupplýsingaveitan fyrir kortagögn, rétt eins og Wikipedia er orðin aðalveitan fyrir alfræðigögn. | |
Það er misjafnt eftir svæðum hvernig því lokamarkmiði gengur. Á sumum átaka- og fátæktarsvæðum er OpenStreetMap kortið það besta sem til er því engin önnur samtök hafa áhuga á að legga vinnu í slíka kortlagningu, en á flestum stöðum í heiminum erum við enn að rekja lestina miðað við ófrjálsa ríkisstyrkta grunna sem hafa áratugsforskot á okkur. En jafnvel á þeim svæðum erum við oft betri. Það eru t.d. margir göngustígar og slóðar á OpenStreetMap á Íslandi sem e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ævar heiti ég og vil gefa ykkur smá skýrslu um það hvernig OpenStreetMap verkefninu hefur farnað á síðastliðnu ári þegar kemur að Íslandi. Ég sendi skilaboðin á FSFÍ og RGLUG listann auk póslistans fyrir OSM á Íslandi þar sem árlegar stöðuskýrslur um frjáls verkefni tengd Íslandi eru örugglega vel þegnar þar. | |
Fyrir þá sem ekki vita er OpenStreetMap kortagrunnur af allri jörðinni sem inniheldur efni undir frjálsu leyfi (CC-BY-SA) og miðar að því að verða aðalupplýsingaveitan fyrir kortagögn, rétt eins og Wikipedia er orðin aðalveitan fyrir alfræðigögn. | |
Það er misjafnt eftir svæðum hvernig því lokamarkmiði gengur. Á sumum átaka- og fátæktarsvæðum er OpenStreetMap kortið það besta sem til er því engin önnur samtök hafa áhuga á að legga vinnu í slíka kortlagningu, en á flestum stöðum í heiminum erum við enn að rekja lestina miðað við ófrjálsa ríkisstyrkta grunna sem hafa áratugsforskot á okkur. En jafnvel á þeim svæðum erum við oft betri. Það eru t.d. margir göngustígar og slóðar á OpenStreetMap á Íslandi sem e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The game | |
-------------------- | |
Any number of players join the game. A question is asked. If, after a certain | |
period of time, nobody has guessed the answer, a hint is provided. This is | |
repeated a few times. After a iterations of this, if nobody has guessed the | |
answer, the game is over and nobody wins. | |
Scoring | |
-------------------- |