|
In response to some discussion in the gluster community, I am releasing my puppet-lsi module. It’s quite simple, but it is very useful for rebuilding machines. It could do a lot more, but I wanted to depend on the proprietary LSI tools as little as possible. Running megacli with puppet would be a very doable hack, but I’m not sure enough devops out there who would use that feature. Usage is straightforward if you like the sensible def..
|
|
The original author of code should fix its bugs, and they should do that before writing more code
-
www.databasesandlife.com
-
12 years ago
-
eng
There are (at least) the following options that a project manager must make when organizing bug fixes to software: Should the original author of the code in question fix the bug? Or should there be a “bug team” who surgically go in and fix bugs? Should one fix bugs as one goes along? Or concentrate on features and write the bugs down and fix them in a “bug sprint”? I am very much in favour of the original author fixing bugs , and fixi..
|
|
I was really surprised how easy it was to read an XML document using the encoding/xml package that comes with the standard library. The package works by defining structs that map the XML document. If you need more flexibility then use Gustavo Niemeyer’s xmlpath package ( found here) . Here is the XML document we are going to read and de-serialize:
|
|
jQuery Promises: The answer to PostMessage's asynchrony
-
engineering.wingify.com
-
12 years ago
-
eng
Visual Website Optimizer's editor component loads a website for editing using a proxy tunnel. It put a big restriction on what kind of…
|
|
Repository: @knadh/simplemysql GitHub release page: v0.3.0 Full Changelog : https://github.com/knadh/simplemysql/compare/v0.2.0...v0.3.0
|
|
Repository: @knadh/simplemysql GitHub release page: v0.4.0 Full Changelog : https://github.com/knadh/simplemysql/compare/v0.3.0...v0.4.0
|
|
Repository: @knadh/simplemysql GitHub release page: v0.5.0 Full Changelog : https://github.com/knadh/simplemysql/compare/v0.4.0...v0.5.0
|
|
Hello fellow Unixers, In this thread I'll explain how to enjoy playing games on free Unix OS for a cheap price. The rumor that gaming on Unix is bad has been around for quite some time now. While it's almost true for the newest games with the 3D rendering that makes hair looks so real that it feels like your own hair are fake, it's still not true for all games. I won't start blabbering about "Steam"TM because the internet is already infe..
|
|
Problem: Determine if a number is prime, with an acceptably small error rate. Solution: (in Python) import random def decompose(n): exponentOfTwo = 0 while n % 2 == 0: n = n/2 exponentOfTwo += 1 return exponentOfTwo, n def isWitness(possibleWitness, p, exponent, remainder): possibleWitness = pow(possibleWitness, remainder, p) if possibleWitness == 1 or possibleWitness == p - 1: return False for _ in range(exponent): possibleWitness = pow(po..
|
|
Problem: Determine if a number is prime, with an acceptably small error rate. Solution: (in Python) import random def decompose(n): exponentOfTwo = 0 while n % 2 == 0: n = n/2 exponentOfTwo += 1 return exponentOfTwo, n def isWitness(possibleWitness, p, exponent, remainder): possibleWitness = pow(possibleWitness, remainder, p) if possibleWitness == 1 or possibleWitness == p - 1: return False for _ in range(exponent): possibleWitness = pow(po..
|
|
Problem: Determine if a number is prime, with an acceptably small error rate. Solution: (in Python) import random def decompose(n): exponentOfTwo = 0 while n % 2 == 0: n = n/2 exponentOfTwo += 1 return exponentOfTwo, n def isWitness(possibleWitness, p, exponent, remainder): possibleWitness = pow(possibleWitness, remainder, p) if possibleWitness == 1 or possibleWitness == p - 1: return False for _ in range(exponent): possibleWitness = pow(po..
|
|
In this morass of terribly-written prose, Rene Ritchie did manage to make an interesting point: “The problem is that Apple listened, and now instead of being a trend creator they are ‘following’ trends.” While I can’t say I necessarily agree with this opinion, it is nevertheless a very interesting one, and one that I haven’t see voiced since the WWDC keynote nearly a week ago. Permalink.
|
|
I love this article. Its post slug, “campus”, should give you an idea as to what it is about. Great read. Permalink.
|
|
Working my way through The B&B Podcast’s back catalog I came across episode seventy-three, Faded Avocado , during which Shawn and Ben talked about Marcelo Somer’s piece The Linkblog Cancer . This article sparked a controversy that went viral a few months ago, a controversy even the likes of Jim Dalrymple and Marco Arment felt the need to respond to. I even mentioned it, albeit briefly, in my article Reinventing the Linkblog . F..
|
|
As an iphone developer contractor, I’ve released some applications on the Apple Store for my customers but not on my own. Here is my 1st personal (30 hours) toy project: 7shape a 7 minutes workout training application, based on an [NYT blog](http://well.blogs.nytimes.com/2013/05/09/the- scientific-7-minute-workout/) post. I’ve spent 20 hours on website release, marketing, 3D for the human trainer and application design, and last 10 hours to..
|
|
Recently I got together with some local developers to discuss client side MVC frameworks. We ended up discussing many of the differences between AngularJS and Ember . Discourse is an Ember application and has been since the first prototype, so I have a lot of experience with it. However, it became clear during the conversation with my peers that there was a lot about AngularJS I didn’t know. There is evidence that AngularJS is beat..
|
|
Figure 1. StackOverflow is made of people - lots and lots and lots of people. Seemingly like everything else in the world, Stack Overflow is getting more & more competitive as time passes. Gaining a good reputation - and even finding good questions to answer - is becoming harder and harder, as more and more people compete for less and less unanswered questions. This is fantastic if you want to find an answer - but makes it much harde....
|
|
Don't use string constants when writing SQL statements in code
-
www.databasesandlife.com
-
12 years ago
-
eng
I was always in two minds about using constants for table and column names when writing SELECT queries. Now I've concluded that constants are definitely bad, and should not be used. Here's why. The topic of discussion is difference is between writing sql = "SELECT * FROM " + TABLE_NAME + " WHERE ..." and sql = "SELECT * FROM my_table WHERE ..." There are the following consequences from this choice as far as I can see:
|
|
I’ve written a bit before about understanding the output from EXPLAIN and EXPLAIN ANALYZE in PostgreSQL. Though understandably getting a grasp on execution plans could probably use some more guidance. Yet, this time around I’m taking a bit of a cop out and highlighting a few tools instead of documenting myself, which I’ve done in a talk I’ve frequently given Postgres Demystified . Getting at the Data The first small thing you ....
|
|
I’ve written a bit before about understanding the output from EXPLAIN and EXPLAIN ANALYZE in PostgreSQL. Though understandably getting a grasp on execution plans could probably use some more guidance. Yet, this time around I’m taking a bit of a cop out and highlighting a few tools instead of documenting myself, which I’ve done in a talk I’ve frequently given Postgres Demystified . Getting at the Data The first small thing you ....
|
|
When you look around you while sitting in a church service, you will generally have a sense of who is who. You know who the nice people are, who the grumps are and who always causes trouble. You know the people who always ask silly questions, and you know the people that always seem to know what to say when you are helpless. You might have an idea of who is a strong Christian and who has ways to go. We all do. What does the Bible say....
|
|
When you look around you while sitting in a church service, you will generally have a sense of who is who. You know who the nice people are, who the grumps are and who always causes trouble. You know the people who always ask silly questions, and you know the people that always seem to know what to say when you are helpless. You might have an idea of who is a strong Christian and who has ways to go. We all do. What does the Bible say....
|
|
ReadWrite’s new site looks fantastic, very reminiscent of Digg’s current design. “It would have been easy at that point to rest on our laurels. But we and our colleagues at Say Media, our parent company, whose technology and design teams worked tirelessly on this launch, wanted to keep pushing our design forward and drop the remnants of the ’90s-era Web that clung to our site.” Good for them. Permalink.
|
|
Reminds me of the old “I’m a Mac, and I’m a PC” days. Even though, as Ian Paul points out in his article, the commercial is laughably innacruate, I still had a good chuckle. Permalink.
|
|
I wanted to send an email from my TraceLog package when a critical exception occurred. Fortunately Go’s standard library has a package called smpt which can be found inside the net package. When you look at the documentation you are left wanting. I spent 20 minutes researching how to use this package. After fighting through the parameters and bugs, I came up with this sample code:
|
|
Apple has set fire to iOS. Everything’s in flux. Those with the least to lose have the most to gain, because this fall, hundreds of millions of people will start demanding apps for a platform with thousands of old, stale players and not many new, nimble alternatives. If you want to enter a category that’s crowded on iOS 6, and you’re one of the few that exclusively targets iOS 7, your app can look better, work better, and be faster and chea..
|
|
Almost every time Apple releases a new version of iOS, someone has the Marco Arment “Well, shit” moment . The time, most prominently, it was 1Password’s turn, although other small, one-off app developers likely had similar reactions throughout the keynote. Permalink.
|
|
The temptation certainly exists to criticize Satoru Iwata and his decision not to bring the company’s most popular titles to mobile gaming platforms like iOS; however, looking beyond our disappointment at being unable to play Pokemon and Mario Kart on the iPhone, we can look at the situation dispassionately and draw a number of parallels between Nintendo and Apple, Satoru Iwata and Steve Jobs: both men led (and lead) their respective corpor..
|
|
Wonderfully worded and impressively well thought-out, Matt Gemmel’s article iOS 7 is easily the best piece on the topic I have read since the WWDC keynote address. In explaining the motivation behind Apple’s complete UI overhaul in iOS7, he began his one-two punch with this paragraph: “The thing is, we’ve grown up. We don’t require hand-holding to tell us what to click or tap. Interactivity is a matter of invitation, and physical cues....
|
|
I try to, for the most part, stay positive when I write on here. Instead of taking a page out of Jim Dalrymple’s play book, not that there is anything wrong with his approach, and calling shenanigans and bullshit when I see shenanigans and bullshit, I try to “take the high road” and either ignore bad writing and poorly-formed opinions altogether, or criticize them generously. In the wake of the iOS 7 announcement though, many people have sa..
|
|
I think of it much in the same way I do exercise — you just have to make yourself miserable for a finite period of time, to reap the benefits later.” Another Soylent story, this one, interestingly, less lauding than the others. Permalink.
|
|
Announcing Our Acquisition of Data Analytics Startup, Bitdeli
-
tech.nextroll.com
-
12 years ago
-
eng
Over the last year, AdRoll’s mission of making retargeting easy and effective for everyone has really caught fire. Last month alone, we welcomed over 1,250 new advertisers to our platform. The secret to our success has always been layering the industry’s most intuitive tools over a powerful data backend to help companies collect, analyze and (most importantly) act on their customer data. Today, I’m excited to announce we’ve taken another ....
|
|
Surrounded by Tweetbot on my iPhone, iMore’s live blog on one iPad and Apple’s keynote stream on another, and flanked by my inconveniently inoperable computer, I watched Tim Cook introduce iOS 7. Even now, I can’t quite quantify the feeling I had upon seeing iOS 7 for the first time: a mixture of surprise and relief at the departure from almost every previously-held design philosophy, amazement for reasons that anyone who watched the keynot..
|
|
Although I make it a point not to spend much time talking about my personal life on this blog, it occasionally creeps in to my writing in the form of an anecdote, perhaps, or the inspiration for an entire article. A few weeks before Christmas last year, I linked to an article by Jason Snell titled Why I’m Writing on the iPad , in which he talked about a time when he was forced to write using a pen and paper rather than on a computer. In ..
|
|
Tomorrow (Wednesday, June 12th) from 6:00-8:00pm, we’ll be hosting a group of Hadoop users and developers here at our SOMA headquarters, ShangRolla, for their monthly meetup . Hadoop is an “open-source software for reliable, scalable, distributed computing” used by top tech companies like Yahoo!, Facebook, Amazon, Apple, Google and Microsoft. According to a recent TDWI survey , three-quarters of respondents have either deployed or expect ....
|
|
I have been struggling with using the Time package that comes in the Go standard library. My struggles have come from two pieces of functionality. First, trying to capture the number of milliseconds between two different time periods. Second, comparing that duration in milliseconds against a pre-defined time span. It sounds like a no brainier but like I said, I have been struggling. In the Time package there is a custom type called D..
|