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

Dear reader, this post has an interactive simulation! We encourage you to play with it as you read the article below. In our series of posts on cellular automata, we explored Conway’s classic Game of Life and discovered some interesting patterns therein. And then in our primers on computing theory, we built up a theoretical foundation for similar kinds of machines, including a discussion of Turing machines and the various computational comp..

Dear reader, this post has an interactive simulation! We encourage you to play with it as you read the article below. In our series of posts on cellular automata, we explored Conway’s classic Game of Life and discovered some interesting patterns therein. And then in our primers on computing theory, we built up a theoretical foundation for similar kinds of machines, including a discussion of Turing machines and the various computational comp..

A while ago I listened to a talk by Jonathan Blow that covered optimization and talked about how most people worry about it too early and how they should just focus on making things work. I know there was much more said in this talk (it’s long and very interesting), but this is the general message that has stuck with me after listening to it - possibly because many other people already express the same opinions on optimization. It makes s..



Today I implemented a really cool plugin by quidmonkey . The plugin allows you to use Canvas-native fonts in an ImpactJS game. Out of the box, text in Impact is displayed through the use of images - there’s an image with each letter of your alphabet spaced out in a particular way, and you then draw parts of this image to put together letters in whatever order.

The thoughtful bodepd has been kind enough to help me get my puppet-gluster module off the ground and publicized a bit too. My first few commits have been all clean up to get my initial hacking up to snuff with the puppet style guidelines. Sadly, I love indenting my code with tabs, and this is against the puppet rules :( http://www.emacswiki.org/emacs/TabsSpacesBoth I’ll be accepting patches by email, but I’d prefer discussion firs..

The thoughtful bodepd has been kind enough to help me get my puppet-gluster module off the ground and publicized a bit too. My first few commits have been all clean up to get my initial hacking up to snuff with the puppet style guidelines. Sadly, I love indenting my code with tabs, and this is against the puppet rules :( http://www.emacswiki.org/emacs/TabsSpacesBoth I’ll be accepting patches by email, but I’d prefer discussion firs..

Back in the 1990s, you could look smart my talking about the “Information Superhighway” (the Internet). In the early 2000s, the catch-phase of the day was “eCommerce” (buying crap on the Internet), and in the late 2000s non-technical managers would often toot about “Web 2.0” (an imaginary Internet that basically is the current Internet, but with more content). Around 2010, non-technical managers, CIOs, and executives were struggling to f..

Back in the 1990s, you could look smart my talking about the “Information Superhighway” (the Internet). In the early 2000s, the catch-phase of the day was “eCommerce” (buying crap on the Internet), and in the late 2000s non-technical managers would often toot about “Web 2.0” (an imaginary Internet that basically is the current Internet, but with more content). Around 2010, non-technical managers, CIOs, and executives were struggling to f..

Problem: Write a program that compares two sequences of differing lengths for similarity. Solution: (In Python) import math def dynamicTimeWarp(seqA, seqB, d = lambda x,y: abs(x-y)): # create the cost matrix numRows, numCols = len(seqA), len(seqB) cost = [[0 for _ in range(numCols)] for _ in range(numRows)] # initialize the first row and column cost[0][0] = d(seqA[0], seqB[0]) for i in xrange(1, numRows): cost[i][0] = cost[i-1][0] + d(seqA[..

Problem: Write a program that compares two sequences of differing lengths for similarity. Solution: (In Python) import math def dynamicTimeWarp(seqA, seqB, d = lambda x,y: abs(x-y)): # create the cost matrix numRows, numCols = len(seqA), len(seqB) cost = [[0 for _ in range(numCols)] for _ in range(numRows)] # initialize the first row and column cost[0][0] = d(seqA[0], seqB[0]) for i in xrange(1, numRows): cost[i][0] = cost[i-1][0] + d(seqA[..

Problem: Write a program that compares two sequences of differing lengths for similarity. Solution: (In Python) import math def dynamicTimeWarp(seqA, seqB, d = lambda x,y: abs(x-y)): # create the cost matrix numRows, numCols = len(seqA), len(seqB) cost = [[0 for _ in range(numCols)] for _ in range(numRows)] # initialize the first row and column cost[0][0] = d(seqA[0], seqB[0]) for i in xrange(1, numRows): cost[i][0] = cost[i-1][0] + d(seqA[..



E’ vero che non tutti i programmi Python richiedono un’analisi rigorosa delle prestazioni, ma è rassicurante sapere che l’ecosistema Python ci mette a disposizione una serie di strumenti a cui possiamo rivolgerci in caso di necessità. Analizzare la performance di un programma significa prima di tutto rispondere a queste quattro semplici domande: Quanto gira veloce? Dove sono i “collli di bottiglia”? Quanta memoria sta utilizzando? Dove ..

Unfortunately I will not make it to GUADEC this year. However, here is something new for GNOME developers: I wrote last year how GObject Introspection was coming to Node.js . Back then the API was still quite bad, and it was limited in what you could do with it. Since then things have moved forward quite a bit, and today Piotras released version 0.1.0 of node-gir . This allows you to interface with any GObject Introspection capabl....


I am an avid cobbler + puppet user. This allows me to rely on my cobbler server and puppet manifests to describe how servers/workstations are setup. I only backup my configs and data, and I regenerate failed machines PRN. I’ll be publishing my larger cobbler+puppet infrastructure in the future once it’s been cleaned up a bit, but for now I figured I’d post my work-in-progress “puppet-gluster” module, since it seems there’s a real intere..

I am an avid cobbler + puppet user. This allows me to rely on my cobbler server and puppet manifests to describe how servers/workstations are setup. I only backup my configs and data, and I regenerate failed machines PRN. I’ll be publishing my larger cobbler+puppet infrastructure in the future once it’s been cleaned up a bit, but for now I figured I’d post my work-in-progress “puppet-gluster” module, since it seems there’s a real intere..

Many thanks to johnmark in #gluster for syndicating my “gluster” tagged blog posts on http://www.gluster.org/blog/ I aim to keep these posts technical and informative, aimed mostly at other sysadmins and gluster users. Please don’t  be shy to comment on my writing style or to let me know if you need more information about a particular subject. If you have any ideas about things you’d like me to write about, let me know and I’ll try to..

Many thanks to johnmark in #gluster for syndicating my “gluster” tagged blog posts on http://www.gluster.org/blog/ I aim to keep these posts technical and informative, aimed mostly at other sysadmins and gluster users. Please don’t  be shy to comment on my writing style or to let me know if you need more information about a particular subject. If you have any ideas about things you’d like me to write about, let me know and I’ll try to..

We were taught to categorize, but we know that searching beats sorting We were taught that information is scare, but we know that the real problem is too much information, not too little. We were taught that information must be protected from being viewed, but we know that the greatest threat to information is irrelevancy We were taught to estimate and plan what the marked wants, but we know that our customers don’t behave according to our ..

SoundCloud is a polyglot company, and while we’ve always operated with Ruby on Rails at the top of our stack, we’ve got quite a wide variety…

Last week we at IKS organized a two-day hackathon for developers interested in Create.js , VIE , and in new tools for editing websites semantically. The original agenda for the event can be found from the event’s wiki page , and I believe we got it covered quite well. I’ve been to quite a lot of hackfests, and usually the first day is mostly spent by people arriving, figuring out the WiFi setup, and getting to know the development to....

SoundCloud is a polyglot company, and while we’ve always operated with Ruby on Rails at the top of our stack, we’ve got quite a wide variety…

Last week we at IKS organized a two-day hackathon for developers interested in Create.js , VIE , and in new tools for editing websites semantically. The original agenda for the event can be found from the event’s wiki page , and I believe we got it covered quite well. I’ve been to quite a lot of hackfests, and usually the first day is mostly spent by people arriving, figuring out the WiFi setup, and getting to know the development to....


I’ve been having some strange networking issues with gluster. “Eco__” from #gluster suggested I try an up to date Intel nic driver. Here are the steps I followed to make that happen. No news yet on if that solved the problem. Currently my system is using the igb (intel gigabit) driver. To find out what version you are running: # modinfo -F version igb 3.2.10-k I found a newer version from the supermicro ftp site . A download ..

I’ve been having some strange networking issues with gluster. “Eco__” from #gluster suggested I try an up to date Intel nic driver. Here are the steps I followed to make that happen. No news yet on if that solved the problem. Currently my system is using the igb (intel gigabit) driver. To find out what version you are running: # modinfo -F version igb 3.2.10-k I found a newer version from the supermicro ftp site . A download ..

As Lead Developer at my previous company I interviewed many Developers. I wanted to provide some advice to Developers on how to come off more positively. For the purposes of this post I , me and all other pronouns referring to myself refer to a hiring professional. Some Basics Up Front Google yourself. Google your email address, I will! There will be lots of Googling before you're hired. I am well versed in the darker Google arts....

As Lead Developer at my previous company I interviewed many Developers. I wanted to provide some advice to Developers on how to come off more positively. For the purposes of this post I , me and all other pronouns referring to myself refer to a hiring professional. Some Basics Up Front Google yourself. Google your email address, I will! There will be lots of Googling before you're hired. I am well versed in the darker Google arts....



For small and large applications there often comes a time where you’re busy creating an API. The API creation process usually takes the form of something like: Design your API, Implement your API, Test and Evaluate, Rinse and Repeat. Historically with implementing the API fully you can’t see how you truly feel about the result, causing this cycle to take longer than it should. Heroku Postgres has Dataclips , which (among other things) can ....

For small and large applications there often comes a time where you’re busy creating an API. The API creation process usually takes the form of something like: Design your API, Implement your API, Test and Evaluate, Rinse and Repeat. Historically with implementing the API fully you can’t see how you truly feel about the result, causing this cycle to take longer than it should. Heroku Postgres has Dataclips , which (among other things) can ....

For the last ~two or so years I’ve played and tested gluster on and off and hanging out in the awesome #gluster channel on Libera.chat . In case you haven’t heard, gluster was  acquired by RedHat back in October 2011. This post describes my current setup. I urge you to send your comments and suggestions for improvement. I’ll update this as needed. Hardware : Ideology: I wanted to build individual self-contained storage hosts. I didn’..

For the last ~two or so years I’ve played and tested gluster on and off and hanging out in the awesome #gluster channel on Libera.chat . In case you haven’t heard, gluster was  acquired by RedHat back in October 2011. This post describes my current setup. I urge you to send your comments and suggestions for improvement. I’ll update this as needed. Hardware : Ideology: I wanted to build individual self-contained storage hosts. I didn’..

I’m working on this idea, and I don’t know if it appeals to you guys. I’d like your input on whether this is something to explore further. Here’s the deal: I’ve encountered teams who, when working with SOA technologies have been dragged into the mud by the sheer complexity of their tools. I’ve only seen this in Java, but I’ve heard from some C# developers that they recognize the phenomenon there as well.

The blog zygote - blog.tjll.net - 13 years ago - eng
Figure 1: Another blog to read, why not? Putting together all the moving pieces to get this blog to work the way I wanted took a little while. In the interest of sharing how I did it in case this helps others, I thought I'd share the approach I took. Overview So, here's the way it goes down: I'm using jekyll to publish. If you're unfamiliar with it, jekyll essentially lets you write your pages as templates, and generate ....

Grazie al contributo di  Bruno Ripa , la versione 0.1.2 di  Flask-MimeRender  pubblicata oggi introduce il supporto per codici di stato HTTP arbitrari. Ho colto l’occasione per uniformare il codice sorgente alle direttive PEP8 e per sistemare alcuni dettagli del package PyPI . Vi ricordo che potete contribuire voi stessi al progetto, direttamente su GitHub.

Anti-Pattern - www.craigpardey.com - 13 years ago - eng

When I first started programming in object oriented languages I used inheritance to reduce code duplication. You know the deal - you have two classes that do the same sort of thing so you create an abstract superclass and extract the common code into methods in the superclass. Voilà. No more duplicated code. But I was unwittingly creating an untestable codebase. I have worked extensively with dependency injection containers over the las..

It’s often said that the Age of Information began on August 17, 1964 with the publication of Cooley and Tukey’s paper, “An Algorithm for the Machine Calculation of Complex Fourier Series.” They published a landmark algorithm which has since been called the Fast Fourier Transform algorithm, and has spawned countless variations. Specifically, it improved the best known computational bound on the discrete Fourier transform from $ O(n^2)$ to $ ..

3 visitors online