Developer Dad

The Blog of Jeff Layton / jeffl8n

Follow me on TwitterRSS Feeds

  • Home
  • Projects

New Site Design

Mar 5th

Posted by Jeff Layton in Websites

No comments

Note: I wrote this last night about 1:00am and just realized at 7pm, 18 hours later, I never hit publish…

After a couple weeks/months, I’ve finally gotten around to creating a design for my site. Hopefully it’s pleasing to the eyes, but either way, twitter me to let me know what you think. I created the design originally for my main site, then ported it over to a wordpress template for my blog here. Actually, you might have already noticed that the “Home” link in the top goes to jeffl8n.com, and the blog link is to… well… here, my blog.

Now that I’ve finished the design, I hope to spend some more time on these other projects (almost all of them not listed on my website yet) I have been neglecting.

blog, design, website

New Blog Address

Feb 18th

Posted by Jeff Layton in General

No comments

As you might have already noticed (because of the magic of Apache mod_rewrite), my blog URL has changed. I bought http://developerdad.com a couple months ago and wasn’t really sure what to do with it at the time. I had considered using it for a developer dad community site, but finally decided I would just use it for my blog. Perhaps in the future I will expand the site to be more than just my blog…

I still have http://jeffl8n.com and I’ll start/continue using that as my “web hub” or whatever you would call the central place you can find all of my online presence and projects. Right now it is just a link to my blog, but as soon as I get the design figured out, I’ll get it up and running.

blog, design, website

Measurement Lab Being Throttled?

Jan 29th

Posted by Jeff Layton in Websites

No comments

Comcast has been known before for filtering or throttling bandwidth, especially bit torrent traffic, so I thought this was an interesting coincedence.

Measurement Lab On Comcast

Measurement Lab is “an open platform that researchers can use to deploy Internet measurement tools.” One of their first measurement tools is to “measure the speed of [your] connection, run diagnostics, and attempt to discern if [your] ISP is blocking or throttling particular applications.” It appears that the Measurement Lab website and several of the servers running these tools are getting bombarded with traffic, but I thought it was quite funny given Comcast’s net neutrality history when I first got the error…

Comcast, Google, MeasurementLab, Net neutrality

Project Euler Primes

Jan 17th

Posted by Jeff Layton in programming

No comments

I first checked out Project Euler a couple years ago when one of my friends mentioned it to me. If you haven’t heard of it before it is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve.

I took a couple classes in college for basic C++ programming, but we never got too deep. It was mostly principles of programming, etc. and, since it was a class aimed at Electrical Engineers first programming class and not Computer Science majors, we spent a bit of time on structures of programs and other general concepts that are core to most programming languages. I was (and still am) interested in strengthening my C++ knowledge, so I decided to try the Project Euler problems in C++.

So far I haven’t completed many (13 out of 228), but haven’t spent too much time on it, even though I started a couple years ago… The questions range in difficulty from Problem #1 Find the sum of all the multiples of 3 or 5 below 1000. to Problem #198 How many ambiguous numbers x = p/q, 0 < x < 1/100, are there whose denominator q does not exceed 108? The higher number problem # doesn’t necessarily mean it is more difficult, but difficulty is measured by how many people have solved the problem. You can see a trend of how people may start doing some of the problems, but quickly the numbers dwindle. For example, over 48,000 people have completed problem #1, but less than 20,000 people have completed more than 10 and less than 2,000 people have completed more than 25 problems. Once you’ve solved a problem, you can look at other ways people have solved it in other languages or even by hand. However, you can’t see any hints or other posts about a problem on the site until you’ve typed in the correct answer for that problem.

Today I spent a little bit of time optimizing some of the old algorithms I had used for previous problems. (Several algorithms can be re-used between problems and the less time it takes for them to run, the less time you have to wait to see if your answer is correct…) I started with optimizing my function to check if a number is a prime number.

There are basic things you can do to make figuring out if a number is prime or not. For example, it’s very easy and quick to find the remainder of a number when it is divided by 2 or 3. Since this is a lot of the cases for non-prime numbers, it’s best to check these cases first before checking if a number is divisible by any other number. A couple other quick (and perhaps obvious) things to do is to not check every single number from 1 … n where n is the number you are trying to check is prime or not… We know that anything even is divisble by 2 , so instead of checking if the number is divisible by 2, 4, 6, 8… start by checking if it’s divisible by 5 (since we’ve already checked 2 and 3) and check every odd number from there (5,7,9,11…). This cuts your computations in half. Also, we know that we only have to check up to the square root of the number (16/2 = 8, so there’s no point in checking if there is a remainder with 16/8). This cuts the computations in at least half again. After adding this optimizations, my code went from a minute or two to run down to a few seconds.

If you enjoy programming, math, or especially both, I would recommend checking out some of the problems on the site. It is a great way to keep your math skills from getting too rusty and a great way to learn how to do some math programming in a new language. If nothing else, you’ll get your mind thinking of different ways to solve problems. ^()

c++, challenges, math, programming

And we’re back…

Jan 13th

Posted by Jeff Layton in Life

No comments

It was a nice week away in Walt Disney World, but we’re getting back to the real world now. I’ve just finished uploading some pictures I took to Flickr if you want to see some of the sights.

This was a good trip for us. We celebrated both my and my dad’s birthday (consecutive days, not the same) and it’ll definitely be one of the most memorable. Our daughter was of course always excited and happy, which makes everything great on top of already being at Disney World. We went to Disney World in September with our daughter for our first family vacation since our marriage 4 years earlier. She was very excited then, so we couldn’t want to go back. We found out Disney had a great deal this year where if you booked 4 nights, you got 3 free, including room and park admissions. On top of that, they gave you a $200 gift card, plus since we already had park tickets, a $75 gift certificate on our birthdays. It was really a no-brainer to take advantage of the deal, so we did!

If you follow me on Twitter, you probably saw where our original flight down to Orlando got smoked out. You can follow the timeline through my twitters and apparently it was on the local nightly news too. If only the local news groups had followed me on Twitter, they would have known some more info about what was going on. Luckily, AirTran was able to cancel another flight and let us use that plane to get down to Orlando before too late at night. They even gave us meal vouchers and a $75 credit on our next flight. I’m glad we waited around the airport, though. We had the opportunity to trade in our tickets for a flight the next day and get a free flight somewhere else, but I think getting to Disney that night worked out best. (The flight back went without a hitch.)

I won’t bore you with the details of the trip, but it was fun. We rode everything suitable for our 2 year old at the parks, met with other family we hadn’t seen in a while, and had good meals with different Disney characters. (I would recommend that the character meals are worth the extra costs if you have children.)

Now that we’re back home, we can’t wait to get back to Disney again, but who knows how long that will be now. Our next trip to Disney will probably be with my wife’s family, but we’re not sure when yet. I don’t think we’ll be making it back before the end of March (when the $200 gift card deal expires), but maybe we’ll make it back by the end of the 3 free nights deal (end of June I think).

The first day back is always a bummer, but today was a pretty good transition. Work was pretty slow today, so I was able to catch back up on e-mails without any major issues to worry about resolving immediately. It helps that nothing really went wrong while I was gone, too. I was able to delete about 75% (~300) of my unread e-mails right from the start because they were just automated “FYI” e-mails. Sometimes, well often, I wonder the usefulness of those e-mails… They would be much better delivered in RSS or through a Jabber client or similar. I suppose that’ll be another post some day. Enough of my late night rambling… For now, it’s on to the rest of the week…

Disney, family, vacation
«123»
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • General (4)
    • How To (1)
    • Life (2)
    • programming (3)
    • Websites (2)
    2009 ads ant automation axis2 Bible blog build c++ challenges Comcast continuous integration design Disney facebook family foreach goals Google hudson java math MeasurementLab Net neutrality open source photography pi pictures privacy programming properties vacation website working out wsdl
    • October 2009 (1)
    • July 2009 (2)
    • March 2009 (3)
    • February 2009 (1)
    • January 2009 (5)
    • Ant Foreach Properties (3)
    • Building Axis2 Java Classes From WSDLs Using Ant Foreach (1)
    • (Re)Start a Blog (0)
    • We’re going to Disney World! (0)
    • And we’re back… (0)
    • Project Euler Primes (0)
    • Measurement Lab Being Throttled? (0)
    • New Blog Address (0)
    • New Site Design (0)
    • Happy Pi Day (0)
    • Jeff Layton: I've posted a follow-up with the step by step walk through and example build file.
    • Developer Dad » Ant Foreach Properties: [...] Update 10/23/2009: An example of this build has been posted here. [...]
    • Developer Dad » Building Axis2 Java Classes From WSDLs Using Ant Foreach: [...] had a few requests to get an example of the build script I reference in my post, Ant Foreach...
    • Rupert: Hi, Any chance you might share [an excerpt of] the script? Your post keeps coming up search...
  • Friends and Family

    • Frame; Entered.
    • Teacups And Toasters
  • Projects

    • BuiltClean
    • eLearning Enhanced
    • Short Snips
  • Hosted by:
    Hosted By Slicehost
Copyright © 2010 Developer Dad RSS Feeds