|
Earlier this week while I was at DjangoCon EU there seemed to be a surprising amount of talk about MongoDB. My problem with this isn’t with MongoDB, but in the assumption that only Mongo can solve what you’re looking for. By and far the most common feature is people want schemaless. It gives them flexibility in their data model and lets them iterate quickly. While I still opt for relational models that map cleanly to a relational database....
|
|
Hi, Version 3.6 is going through certification at the moment, it fixes issues with articles displaying incorrectly and several other bugs. On a side note it was great to be recognised as one of the best news apps on the platform in the community app awards, so thank you to all those who voted! http://appawards.wp7applist.com/c/best-news-app Let me know how you get on with the new version!
|
|
Last time we investigated the naive (which I’ll henceforth call “classical”) notion of the Fourier transform and its inverse. While the development wasn’t quite rigorous, we nevertheless discovered elegant formulas and interesting properties that proved useful in at least solving differential equations. Of course, we wouldn’t be following this trail of mathematics if it didn’t result in some worthwhile applications to programming. While we’..
|
|
Last time we investigated the naive (which I’ll henceforth call “classical”) notion of the Fourier transform and its inverse. While the development wasn’t quite rigorous, we nevertheless discovered elegant formulas and interesting properties that proved useful in at least solving differential equations. Of course, we wouldn’t be following this trail of mathematics if it didn’t result in some worthwhile applications to programming. While we’..
|
|
Last time we investigated the naive (which I’ll henceforth call “classical”) notion of the Fourier transform and its inverse. While the development wasn’t quite rigorous, we nevertheless discovered elegant formulas and interesting properties that proved useful in at least solving differential equations. Of course, we wouldn’t be following this trail of mathematics if it didn’t result in some worthwhile applications to programming. While we’..
|
|
For some reason I felt compelled to go through my (pretty small) book collection and pick five of my favorite opening lines. Here they are:
|
|
If you want your subsites to inherit their masterpages from their parents the first thing you need to know is the difference between normal…
|
|
I’ve been reluctantly dreading the switch to gnome 3 + shell until it’s been ironed out a little bit more than gnome 3.0 - finally took the plunge. overall it’s working well. here are some (hopefully) useful notes: preupgrade 14->17 in one step doesn't work. it lets you wait an hour for all the downloads to finish, but once you've rebooted, the preupgrade installer tells you it can't jump this far. fail. reboot into f14, yum clean all, rm....
|
|
I’ve been reluctantly dreading the switch to gnome 3 + shell until it’s been ironed out a little bit more than gnome 3.0 - finally took the plunge. overall it’s working well. here are some (hopefully) useful notes: preupgrade 14->17 in one step doesn't work. it lets you wait an hour for all the downloads to finish, but once you've rebooted, the preupgrade installer tells you it can't jump this far. fail. reboot into f14, yum clean all, rm....
|
|
Welcome to the latest iteration of my blog! I recently realized that I’ve been blogging since 1997 , but actual visual or technical updates have been a lot more seldom. This new blog aims to focus on simplicity and content, much in the spirit of Zeldman’s 2012 web design manifesto . You can find a lot more about how this iteration was built in the colophon . For reference, here is how the old site layout from 2007 looked like: ..
|
|
Welcome to the latest iteration of my blog! I recently realized that I’ve been blogging since 1997 , but actual visual or technical updates have been a lot more seldom. This new blog aims to focus on simplicity and content, much in the spirit of Zeldman’s 2012 web design manifesto . You can find a lot more about how this iteration was built in the colophon . For reference, here is how the old site layout from 2007 looked like: ..
|
|
Comparing the performance of Math.floor(), parseInt and a (bitwise) shift
-
arnorhs.dev
-
14 years ago
-
eng
I read somewhere that a bitwise left shift was a faster method of removing a fraction of a floating point number in Javascript than using parseInt or Math.floor(). I wasn't surprised that parseInt was slow, since I think it parses the number as a string, but the left shift being faster than Math.floor() was a bit more puzzling to me. So I decided to make a JSPerf test to compare those three methods. Read on for the full results
|
|
Comparing the performance of Math.floor(), parseInt and a (bitwise) shift
-
arnorhs.dev
-
14 years ago
-
eng
I read somewhere that a bitwise left shift was a faster method of removing a fraction of a floating point number in Javascript than using parseInt or Math.floor(). I wasn't surprised that parseInt was slow, since I think it parses the number as a string, but the left shift being faster than Math.floor() was a bit more puzzling to me. So I decided to make a JSPerf test to compare those three methods. Read on for the full results
|
|
So I have rolled out quite a few performance improvements. searchcode is MUCH MUCH faster then it was before. I also added some various improvements across the board in terms of relevance. This included indexing characters like !@#$%^&*()-= etc… So now things like the perl regex match =~ is now a valid search term. Of course you can combine terms and normal characters to get really complex search terms such as $localdate =~ /([0-9]+):([0..
|
|
An “Agile” project is one that actively seeks to incorporate changes as the project progresses, rather than assuming that the plans from the beginning of the project will work for the whole project duration. Not all organizations want to adopt “agile” as their project metaphor. And some organizations that do adopt methods such as Scrum do it without becoming as “agile” as Scrum promises. Instead of criticizing these organizations of “agile ..
|
|
In our last primer we saw the Fourier series, which flushed out the notion that a periodic function can be represented as an infinite series of sines and cosines. While this is fine and dandy, and quite a powerful tool, it does not suffice for the real world. In the real world, very little is truly periodic, especially since human measurements can only record a finite period of time. Even things we wish to explore on this blog are hardly pe..
|
|
In our last primer we saw the Fourier series, which flushed out the notion that a periodic function can be represented as an infinite series of sines and cosines. While this is fine and dandy, and quite a powerful tool, it does not suffice for the real world. In the real world, very little is truly periodic, especially since human measurements can only record a finite period of time. Even things we wish to explore on this blog are hardly pe..
|
|
In our last primer we saw the Fourier series, which flushed out the notion that a periodic function can be represented as an infinite series of sines and cosines. While this is fine and dandy, and quite a powerful tool, it does not suffice for the real world. In the real world, very little is truly periodic, especially since human measurements can only record a finite period of time. Even things we wish to explore on this blog are hardly pe..
|
|
I love this quote and I think it really fits in with what I'm doing with this blog, and in my everyday life. Taking pride in your work is…
|
|
I encountered this error while setting up a Jenkins job to automate our Maven release process. [INFO] EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare for next development iteration" c:\jenkins\jobs\Release\workspace\pom.xml" [DEBUG] abort: C:\Jenkins\jobs\Release\workspace\pom.xml not under root [ERROR] EXECUTION FAILED Execution of cmd : commit failed with exit code: -1. Working directory was: c:\jenkins..
|
Where have I been for the past month? Well, I’ve been heads-down helping to launch the internet of things. Now that we have launched, I can…
|
|
You are a ninja-rockstar developer with a billion dollar idea. You write Ruby and Javascript. You like BDD, responsive design, HTML5 and node.js. You are really good at UX and quickly producing a prototype. You have been working on your app for a few months. Now it’s time to deploy your app. Because you are a hot new start-up, you will of course use AWS. You spend a few hours trying to figure out how many of which instance type you....
|
|
You are a ninja-rockstar developer with a billion dollar idea. You write Ruby and Javascript. You like BDD, responsive design, HTML5 and node.js. You are really good at UX and quickly producing a prototype. You have been working on your app for a few months. Now it’s time to deploy your app. Because you are a hot new start-up, you will of course use AWS. You spend a few hours trying to figure out how many of which instance type you....
|
|
If you really care about your sanity and the sanity of those around you, you probably start most projects by creating a build script of some description. 1 If you've compiled Java or .NET, or if you read the Ant primer then you're probably familiar with writing an XML based build script. Adobe Flex application can be built in the same way, with just a few steps. Prerequisites Basic Compilation We'll start by creating a very basic build.
|
|
I thought I’d take a moment to present one possible path, or set of alternate paths, for learning Clojure, a modern Lisp implemented on top of the Java Virtual Machine. Update: Since this was written in 2012, a number of additional excellent books have come out. These include Carin Meier’s Living Clojure ; Vandgrift and Miller, Clojure Applied ; and Daniel Higginbotham’s, Clojure for the Brave and True . These are all great ch....
|
|
I thought I’d take a moment to present one possible path, or set of alternate paths, for learning Clojure, a modern Lisp implemented on top of the Java Virtual Machine. Update: Since this was written in 2012, a number of additional excellent books have come out. These include Carin Meier’s Living Clojure ; Vandgrift and Miller, Clojure Applied ; and Daniel Higginbotham’s, Clojure for the Brave and True . These are all great ch....
|
|
I thought I’d take a moment to present one possible path, or set of alternate paths, for learning Clojure, a modern Lisp implemented on top of the Java Virtual Machine. Update: Since this was written in 2012, a number of additional excellent books have come out. These include Carin Meier’s Living Clojure ; Vandgrift and Miller, Clojure Applied ; and Daniel Higginbotham’s, Clojure for the Brave and True . These are all great ch....
|
|
Problem: Derive the double angle identities $$\sin(2\theta) = 2\sin(\theta)\cos(\theta)\\\ \cos(2\theta) = \cos^2(\theta) – \sin^2(\theta)$$ Solution: Recall from linear algebra how one rotates a point in the plane. The matrix of rotation (derived by seeing where $ (1,0)$ and $ (0,1)$ go under a rotation by $ \theta$, and writing those coordinates in the columns) is $$A = \begin{pmatrix} \cos(\theta) & -\sin(\theta) \\\ \sin(\theta) & \cos(..
|