|
5 in the Continuous Delivery webinar series Companies can leverage the strengths of Cloud Architecture and apply techniques of Infrastructure-as-a-Service within their own data centers. Thoughtworks’ recent project spanning several large data centers in India shows how enterprises can use virtualization and automation to gain strategic business advantages. The capabilities that can be achieved could help those enterprises that for competiti..
|
|
Problem: Compute a reasonable approximation to a “streaming median” of a potentially infinite sequence of integers. Solution: (in Python) def streamingMedian(seq): seq = iter(seq) m = 0 for nextElt in seq: if m > nextElt: m -= 1 elif m < nextElt: m += 1 yield m Discussion: Before we discuss the details of the Python implementation above, we should note a few things. First, because the input sequence is potentially infinite, we can’t store a..
|
|
Problem: Compute a reasonable approximation to a “streaming median” of a potentially infinite sequence of integers. Solution: (in Python) def streamingMedian(seq): seq = iter(seq) m = 0 for nextElt in seq: if m > nextElt: m -= 1 elif m < nextElt: m += 1 yield m Discussion: Before we discuss the details of the Python implementation above, we should note a few things. First, because the input sequence is potentially infinite, we can’t store a..
|
|
Problem: Compute a reasonable approximation to a “streaming median” of a potentially infinite sequence of integers. Solution: (in Python) def streamingMedian(seq): seq = iter(seq) m = 0 for nextElt in seq: if m > nextElt: m -= 1 elif m < nextElt: m += 1 yield m Discussion: Before we discuss the details of the Python implementation above, we should note a few things. First, because the input sequence is potentially infinite, we can’t store a..
|
|
This article is also available in: Serbo-Croatian: Pravljenje novog SoundCloud Armenian: SoundCloud (ձայնամպ) ծրագրավորողների համար The…
|
|
This article is also available in: Serbo-Croatian: Pravljenje novog SoundCloud Armenian: SoundCloud (ձայնամպ) ծրագրավորողների համար The…
|
|
After a year of writing this blog, what have I learned about the nature of the relationship between computer programs and mathematics? Here are a few notes that sum up my thoughts, roughly in order of how strongly I agree with them. I’d love to hear your thoughts in the comments. Programming is absolutely great for exploring questions and automating tasks. Mathematics is absolutely great for distilling the soul of a problem.
|
|
After a year of writing this blog, what have I learned about the nature of the relationship between computer programs and mathematics? Here are a few notes that sum up my thoughts, roughly in order of how strongly I agree with them. I’d love to hear your thoughts in the comments. Programming is absolutely great for exploring questions and automating tasks. Mathematics is absolutely great for distilling the soul of a problem.
|
|
After a year of writing this blog, what have I learned about the nature of the relationship between computer programs and mathematics? Here are a few notes that sum up my thoughts, roughly in order of how strongly I agree with them. I’d love to hear your thoughts in the comments. Programming is absolutely great for exploring questions and automating tasks. Mathematics is absolutely great for distilling the soul of a problem.
|
|
This is, hopefully, the beginning of my personal blog entries. I've started to blog several times over the years and only gotten this far. We'll see how this attempt turns out. I want to write my personal thoughts on here, technical discussions about computing, and pictures of cats in top hats if I have the resources to spare. My email address is at the bottom of the site. If you want to give me any sort of feedback, go for it. ..
|
|
There was no stand-up this morning and it felt like my day never really started. It was my first day at my new job with CIBC and, even though I knew that the team was not agile before signing up for the gig, I had underestimated how much I depended upon our daily rituals practices at Intelliware. These practices provided a rhythm and cadence to the day that I had taken for granted.
|
|
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....
|
|
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....
|
|
We, especially us consultants, preface presentations, blogs, and books with dire predictions about change in the world. What we fail to recognize at times is that change isn’t change, that there are different types of change and we need to have different tools—different levels of innovation—to address each. Three types that come to mind (there are surely other useful classifications) are incremental, differentiating, and disruptive.
|
|
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…
|
|
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 ..
|
Like many people in the Technology world I watched Apple's iPad announcement this week with intense interest. Unlike most people I am interested not in the consumer space - but rather how could this device be used for business. How could a new category like this be used? This post Apple Reaches for Greatness Without Apology first appeared on Dan Stroot's Blog
|
|
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..
|