Domain: omninerd.com
Stories and comments across the archive that link to omninerd.com.
Stories · 26
-
Defining Useful Coding Practices?
markmcb writes "A NASA engineer recently wrote about his disappointment that despite having well-documented coding practices, 'clever' solutions still made the code he has to maintain hard to follow. This got me thinking about the overhead spent at my own company regarding our code. We too have best practices that are documented, but most seem to focus on the basics, e.g., comments, modularity, etc. While those things are good, they don't directly ensure that quality, maintainable code is written. As the author points out, an elegant one-liner coupled with a comment from a few revisions ago makes for a good headache. I'm curious what experience others have had with this, and if you've seen manageable practices that ultimately offer a lot of value to the next programmer down the line who will have to maintain the code." -
Visualizing Complex Data Sets?
markmcb writes "A year ago my company began using SAP as its ERP system, and there is still a great deal of focus on cleaning up the 'master data' that ultimately drives everything the system does. The issue we face is that the master data set is gigantic and not easy to wrap one's mind around. As powerful as SAP is, I find it does little to aid with useful visualization of data. I recently employed a custom solution using Ruby and Graphviz to help build graphs of master data flow from manual extracts, but I'm wondering what other people are doing to get similar results. Have you found good out-of-the-box solutions in things like data warehouses, or is this just one of those situations where customization has to fill a gap?" -
Balancing Performance and Convention
markmcb writes "My development team was recently brainstorming over finding a practical solution to the problem that's haunted anyone who's ever used a framework: convention vs. customization. We specifically use Rails, and like most frameworks, it's great for 95% of our situations, but it's creating big bottlenecks for the other 5%. Our biggest worry isn't necessarily that we don't know how to customize, but rather that we won't have the resources to maintain customized code going forward; it's quite simple to update Rails as it matures versus the alternative. What have your experiences been with this problem? Have you found any best practices to avoid digging custom holes you can't climb out of?" -
A Belated Halloween History - Monsters Edition
uriah923 writes "Nick Dilmore has published the second edition in his Snarky Halloween History series, featured on Slashdot last year. This time around, he concentrates on movie monsters: vampires, werewolves and zombies. From the article: '[D]id you know the movie monsters we've all to come to know and love (in a platonic way, of course) have colorful histories stretching back to the earliest civilizations? What, you didn't think some Hollywood hack actually had enough imagination to invent vampires, werewolves, and zombies, did you? Silly, silly non-monster-trivia knowing person.'" -
Patterns in Lottery Numbers
markmcb writes "Most everyone is familiar with the concept of the lottery, i.e., random numbers are selected and people guess what they will be for a cash prize. But how random are the numbers? Matt Vea has conducted a pattern analysis of the MegaMillions lottery, which recently offered a sum of $370M (USD) to the winner. Matt shows that the lottery isn't as random as it may seem and that there are 'better' choices than others to be made when selecting numbers. From the article, 'A single dollar in MegaMillions purchases a 1 in 175,711,536 chance of landing the jackpot ... a player stands a mildly better chance of winning a partial prize through the selection of weighted numbers.'" Includes some excellent charts of his analysis. -
Busting the MythBusters' Yawn Experiment
markmcb writes "Most everyone knows and loves the MythBusters, two guys who attempt to set the story straight on things people just take for granted. Well, maybe everyone except Brandon Hansen, who has offered them a taste of their own medicine as he busts the MythBusters' improper use of statistics in their experiment to determine whether yawning is contagious. While the article maintains that the contagion of yawns is still a possibility, Hansen is clearly giving the MythBusters no credit for proving such a claim, 'not with a correlation coefficient of .045835.'" -
Top 12 Operating Systems Vulnerability Survey
markmcb writes "Have you ever wondered how vulnerable your computer is from the first bit you write to the hard drive all the way until you have a fully patched system? If so, Matthew Vea has posted a concise summary of security strengths and shortcomings for twelve of the major operating systems of 2006/2007. In his summary, Matt tests each OS with widely available tools like nmap and Nessus, and notes responses at install, pre-patch, and post-patch times for each system. After the tedious job is done, he produces results that will make both the Apple and Windows communities cringe with regards to security. From the article: 'As far as straight-out-of-box conditions go, both Microsoft's Windows and Apple's OS X are ripe with remotely accessible vulnerabilities ... The UNIX and Linux variants present a much more robust exterior to the outside. Even when the pre-configured server binaries are enabled, each [Linux] system generally maintained its integrity against remote attacks.'" -
Statistical Accuracy of Internet Weather Forecasts
markmcb writes "Brandon Hansen considers the statistical accuracy of popular on-line weather forecast sources and shows who's on target, and on who you probably shouldn't rely. Motivated by a trip to a water park that was spoiled with hail despite a 'clear sky' forecast, he does a nice job of depicting deviations, averages, and overall accuracy in a manner that stats junkies are sure to love." -
Halloween Roundup
Herewith a selection from the holiday-themed submissions today. severedfinger writes, "CNET reports that this Halloween some people are using the alphabet-search system on the new iPods to communicate with the dead. The writer uses an iPod nano to test the new craze. He plugs it into a loud stereo system to 'increase the scary quotient when a spirit picks a track,' and the editorial staff begin to talk to a spirit called 'Brad.'" And markmcb writes, "If you've never read much about the history of Halloween, Nick Dilmore offers an entertaining and snarky summary of how the holiday came to be. From the article, 'Halloween, that festive time of the year when kids dress up in fantastic costumes, bob for apples, and go trick-or-treating. Well, unless they live in a community that has done away with Halloween because some Christians say it's a holiday for Satan, or some Jews say it's too Christian, or some Wiccans say it makes fun of their religion (which has as much to do with ancient witchcraft as P. Diddy has to do with Bluegrass...).'" Finally, check out MAKE's geeky / tech DIY guide to "amazing costumes, scary tech, pumpkins, and gross food." -
Much Ado About Gas Prices
markmcb writes "It seems that a week cannot pass without finding big news about gas prices. They're up, they're down ... but why do we care so much? OmniNerd posted an article that aims to put gas prices in perspective. The author takes a look at other commodities and their price variances and applies some simple math in order to make the claim that best-gas-price-hunting is an effort that could be better used on other products. From the article, 'Why the disproportionate emphasis on gas prices in our culture, then? Although some cite a failure of politicians or media populists to account for inflation and purchasing power changes, I think it is simply because gas prices are in your face.'" IMO, the other side to the price of gas is that, especially in developed countries, it has a pervasive effect throughout all layers of the economy — food prices (because of the trucking), schools (busing), etc., etc. -
Managing Site Growth?
markmcb asks: "I started a web site about two years ago. When it began it was simple. The code was 75% hacked, and administration was easy. However, the times they are a changin'. Now I get hundreds of thousands of hits and have a steady flow of new users. I'm noticing an ever-increasing gap in terms of my site's popularity and its technological progression. Specifically, I have all sorts of 'XYZ for Beginners' books that are no longer of use to me. Even the so-called non-beginner publications seem to only scratch the surface of running a site. As problems get more complex, trying to Google every situation/issue I have with site administration has become less useful as well. I'm finding things like writing optimal code, configuring servers for high-volume, balancing ad income vs. server costs, and maximizing the efficiency from my moderation team have all become issues and that aren't addressed most books. What is the best way for a low-income, non-professional, but enthusiastic web designer/administrator like myself to manage site growth as it leaves the realm of just-for-fun?" -
An Alternative to Alternative Fuels and Vehicles
markmcb writes "While the world is working to solve energy and environmental issues with today's petroleum fuels, some vehicles simply don't have good alternatives, namely off-road platforms. For those not willing to give up their gas-guzzling habits, Matt Vea offers an innovative alternative. Using the OBDII interface in his Jeep, a laptop, and the infinite power of Excel, Matt conducts some performance tests and uses the results to tweak both his vehicle's engine and his personal driving habits for optimal fuel consumption both on and off road." Rigorous testing and good use of available technology; nice work. -
Web Development - The Line Between Code and Content?
markmcb asks: "I help design a LAMP web site and I'm constantly plagued by trying to decide on what level should I separate functional code and markup. Depending on what you read, some say embedding HTML in your PHP scripts [or Perl, or Java, or Ruby, or Python, etc] is bad while others say it's no big deal. However, seldom are any practical applications of such code cited. How is your site built? Do you mix HTML with your code? If not, how do you overcome the simple and easy method of doing so? Lastly, what performance gains/losses have you noticed by doing so?" -
Leaving Early May Cost You Time
markmcb writes "OmniNerd has an interesting traffic article demonstrating how leaving early for work may cost you time. Brandon Hansen uses a year's worth of data collected on his urban drive to and from work along with statistical analysis to show the effects of varying departure times and considering external factors like nearby school districts' schedules. In the end, a minor shift in his departure time results in saving driving hours equivalent to over a third of the vacation time given annually by his employer." -
More iTunes Math
markmcb writes "OmniNerd once again digs into the math behind iTunes. The 5-star ratings in iTunes are actually stored in a variable allowing values from 0 to 100, with 20 = 1-star, 40 = 2-star, etc. Known to few, if you set a rating to 30 (manually), it will show up as 1 1/2 stars in the program's GUI. Matt Schinckel provides interesting statistical evidence showing that not only do non-whole, non-half values (e.g., 47) not increase the amount a song will play, but neither do the half-star ratings (with the exception of .5 star)." -
The Math Behind the Hybrid Hype
markmcb writes "OmniNerd has posted a thorough mathematical analysis of purchasing a hybrid vehicle that dispels much of the hype associated with this modern buzz word. The author considers all of the major factors to show just how much money a hybrid vehicle will or won't save you. In the end, it seems the only real winner after a hybrid purchase is the environment." -
A Look At Bootstrapping
markmcb writes "OmniNerd posted an interesting article on the often-overlooked process of bootstrapping. The author does a nice job of showing how to take an x86 system from BIOS to OS once it's powered on. A complete set of commented code is provided and explained in the article." -
A Look At Bootstrapping
markmcb writes "OmniNerd posted an interesting article on the often-overlooked process of bootstrapping. The author does a nice job of showing how to take an x86 system from BIOS to OS once it's powered on. A complete set of commented code is provided and explained in the article." -
Learning to Code with a Boardgame
markmcb writes "While some of us cling tight to our memories of Apple-filled classrooms playing The Oregon Trail and driving our Turtle around in Logo, children today have many other ways to learn about the inner-working of computers and the code that drives them. Wired.com is running an interesting article about a boardgame in which players must use simple logic similar to that used in programming to get their skier down the mountain. From the article: 'Using basic math, players have to figure out which paths are open to them and then decide the fastest way to the finish line. The trick, however, is learning which paths are open to you using only programmer jargon like 'if (X==1)' then you can take the green path or 'while (X4) you can take the orange path,' where X is the roll of the die.'" -
Crunching the Math On iTunes
markmcb writes "OmniNerd has posted an interesting article about the statistical math behind iTunes. The author makes some interesting observations concerning the same song playing twice in a row during party shuffle play, the impact that star ratings have on playback, and comparisons with plain old random play (star ratings not considered)." From the article: "To test the option's preference for 5-stars, I created a short playlist of six songs: one from each different star rating and a song left un-rated. The songs were from the same genre and artist and were changed to be only one second in duration. After resetting the play count to zero, I hit play and left my desk for the weekend. To satisfy a little more curiosity, I ran the same songs once more on a different weekend without selecting the option to play higher rated songs more often. Monday morning the play counts were as shown in Table 1." -
Crunching the Math On iTunes
markmcb writes "OmniNerd has posted an interesting article about the statistical math behind iTunes. The author makes some interesting observations concerning the same song playing twice in a row during party shuffle play, the impact that star ratings have on playback, and comparisons with plain old random play (star ratings not considered)." From the article: "To test the option's preference for 5-stars, I created a short playlist of six songs: one from each different star rating and a song left un-rated. The songs were from the same genre and artist and were changed to be only one second in duration. After resetting the play count to zero, I hit play and left my desk for the weekend. To satisfy a little more curiosity, I ran the same songs once more on a different weekend without selecting the option to play higher rated songs more often. Monday morning the play counts were as shown in Table 1." -
Clickers Redefining Classrooms
markmcb writes "It seems that teachers may have a new way to boost classroom participation using a device called a clicker. A clicker is a small handheld device that allows its user to wirelessly respond to various prompts selected by a teacher. So when a teacher wants opinions on topics that people tend to shy away from like sex, religion, and politics, the question can be asked and the students can answer anonymously via the clicker. Everything from a simple poll to a graded quiz can be conducted using the device. In the age of cell phones and wireless computers such a technology is likely to be well-received by students, but one can't help but wonder if such a device will breed less assertive graduates who lack the will to stand up and voice their opinion on sensitive issues." -
Apple and MS Battle For Desktop Search Supremacy
markmcb writes "As Microsoft and Apple go back and forth about who came up with what idea first, it's been hard to tell who the real innovaters are. Michael Gartenberg and Jim Allchin of Microsoft give some fair opinions on the current desktop search battle. While they do give credit to Apple's iTunes for search inspiration and to Apple being first out of the box in the OS race, they both imply that Microsoft will provide more robust features with the release of Longhorn." -
Digital Enhancements or Expensive Distractions?
markmcb writes "Berkeley and USC have teamed up to launch a $3.3 million study over 3 years that hopes to shed some light on how today's kids are interacting with technology and the effects that it is having on education. The study aims to determine if digital devices such as computers and cell phones are shaping the way that teenagers obtain and process information. But given the price tag and the goals of the project, how much can this project actually help education? Has anyone out there in the high school level education field seen digital systems improve the classroom to the point that students actually learn more, or do they just tend to be fascinating distractions that detract from the classroom?" -
Digital Enhancements or Expensive Distractions?
markmcb writes "Berkeley and USC have teamed up to launch a $3.3 million study over 3 years that hopes to shed some light on how today's kids are interacting with technology and the effects that it is having on education. The study aims to determine if digital devices such as computers and cell phones are shaping the way that teenagers obtain and process information. But given the price tag and the goals of the project, how much can this project actually help education? Has anyone out there in the high school level education field seen digital systems improve the classroom to the point that students actually learn more, or do they just tend to be fascinating distractions that detract from the classroom?" -
The Not-So-Cool Future
markmcb writes "Researchers at Purdue University and several other universities are looking to start work on a major problem standing in the way of future chip design: heat. The team is proposing a new center to consolidate efforts in finding solutions for the problem that is expected to become a reality within the next 15 years as future chips are expected to produce around 10 times as much heat as today's chips. The new center would work to develop circuits that consume less electricity and couple them with micro cooling devices."