Comcast and Bittorrent

April 10th, 2010

Dear Diane Rehm,

I was just listening to Thursday’s show regarding Comcast and Bittorrent.  Unfortunately I was listening to the pod-cast after the fact, as I would have really liked to have called in.  I believe the discussion missed a very crucial element of the issue:

Comcast was not simply throttling Bittorrent traffic.  They were forging fake data packets that appeared to come from machines on the Internet they did not originate from.

Consider a conversation via typed letters between myself and a friend, delivered by the USPS.  Now say the USPS is uncomfortable with the volume of letters my friend and I are exchanging, and decides to slow down delivery of some or all of these letters.  This would be throttling, and could prompt a reasonable “letter neutrality” debate.  Now instead the USPS decided to insert their own fake letters into the system, with my return address sent to my friend that said simply “stop sending me letters”.  (and vise-versa)  This would indeed be an efficient tactic to disrupt the conversation and reduce letter volume, but it would be quite clearly illegal.  (mail fraud)  This was the behavior of Comcast the FCC (and many others, myself included) so strongly objected to.

This was further compounded by Comcast’s initial and long-running denial of this behavior.  Which to me suggests they clearly knew the immorality (and likely illegality) of sending forged data packets.

This behavior by the way was confirmed by Google, the EFF, and I believe the FCC’s own study.

Multiple sources exist for this information.  Wikipedia contains a good writeup and many references:
http://en.wikipedia.org/wiki/Comcast#Network_neutrality

Thank you,
Derek Anderson

Calculating PI

March 14th, 2010

In honor of PI day, I thought I would recall a story of my wayward youth.  =P

In middle school (at JDMS), I was becoming decently proficient at everything BASIC.  (Apple II, TRS-80 and DOS 3.3)  One of my math teachers mentioned to me that you could approximate PI by filling one quarter of a circle with an ever increasing number of rectangles of smaller and smaller widths.  And so I wrote a program to do just that.  Spent weeks running and rerunning it with different numbers of slices (and different methods of calculating the heights) and comparing the outputs to official known good values.  (and charting my accuracy)

I don’t remember exactly how accurate I finally got before they told me to stop running multi-day processes on the lab computers…  But suffice it to say: I was VERY nerdy.  =P

Ad Revenue for A Small Free WebOS App

March 10th, 2010

When I first considered submitting an app (Where’s My Car?) for the Palm Pre / Palm Pixi, I was somewhat turned off by the $50 app submission fee  (even for free apps).  This is a hobby for me, and I don’t really like the idea of paying money to give my work away for free.

So I looked into putting an ad on my app to potentially recoup the submission fee, but I was unable to find any meaningful data regarding how long it would take, which left me on the fence as to whether or not it was worth the hassle.  Of course, this lack of public data is not that unexpected, as most companies doing this for profit would consider this a trade secret, but it was still disappointing.  So I justified to myself paying it as the cost of an experiment with a civil benefit:  Hopefully by publishing these numbers I can help either encourage or discourage future hobby developers as to whether or not it’s worth it to them to submit their own hobby apps.

Anyway, here are the numbers from ~24 hours after release: (AdMob is the advertiser)

  • Downloads: 7687
  • Ad Requests: 11,491
  • Ad Impressions: 11,456
  • Fill Rate: 99.70%
  • Click Through Rate (CTR): 3.26%
  • Estimated Revenue Per Thousand Impressions (eCPM): $1.11
  • Total Revenue: $12.68

I will post updates to this entry as I pass other timeline milestones.  (one week and one month, at least)  I’m very curious as to if this will be a sustained daily trend, will grow, or if this is a one-day newness peak that will drop off a cliff tomorrow.  :)

BTW, I strongly encourage other hobby developers to publish their numbers as well.  (or even share with me privately or anonymously)  I would love to compare against a larger data set.

Daily total download counts: (recorded here because I don’t yet know how detailed Palm’s monthly reports are) 3/10/2010:7687, 3/11/2010:10242, 3/12/2010:11196, 3/13/2010:12057, 3/14/2010:13013, 3/15/2010:14019, 3/16/2010:14783, 3/17/2010:15422, 3/18/2010:15961, 3/19/2010:16786, 3/20/2010:18310, 3/21/2010:19843, 3/22/2010:20988, 3/23/2010:21729, 3/24/2010:22323, 3/25/2010:22848, 3/26/2010:23390, 3/27/2010:23783, 3/28/2010:24264, 3/29/2o1o:24776, 3/30/2010:25179, 3/31/2010:26339, 4/1/2010:26902, 4/2/2010:27249, 4/4/2010:27890, 4/6/2010:28501, 4/7/2010:28896, 4/8/2010:29300, 4/9/2010:31018, 4/11/2010:32683, 4/12/2010:33536, 4/13/2010:34230, 4/17/2010:36201, 4/26/2010:40149

Downloads for Public Radio: 3/27/2010:2904, 3/28/2010:6109, 3/29/2010:8514, 3/30/2010:10250, 3/31/2010:10641, 4/1/2010:11017, 4/2/2010:11321, 4/4/2010:11871, 4/6/2010:12309, 4/7/2010:12602, 4/8/2010:12872, 4/9/2010:14108, 4/11/2010:15511, 4/12/2010:16154, 4/13/2010:16655, 4/17/2010:18245, 4/26/2010:21467

UPDATE: Version 1.3.0 is live as of 3/19/2010.

WEEK 1 STATS:

Well, it’ll probably eventually make enough to cover the submission fee, but not likely to be a real revenue generator.  :P

Where’s My Car? for Palm Pre/Pixi

March 4th, 2010

I’ve submitted my first WebOS application to their App Store!

Where’s My Car? helps you find your car in a crowded parking lot. When you leave your car, simply open the application. (It will automatically get your current GPS location) Leave the application open, and when you’re done doing whatever it is you have to do, click “Take Me To It!” An arrow will show up (as well as a distance measurement). Simply walk in the direction of the arrow, and you’ll be quickly guided back to your car! BTW, I originally wrote this app as a present for my wife. :) I’ve decided to place it on the App Store as a FREE app because I don’t see why the other apps that do the same thing charge $5 for such a simple feature. Let me know if you like it! :)

UPDATE: It has been approved/published!  To download, open the App Catalog.  Search for “car”.  Click the coins icon in the lower-right to show only FREE apps, and “Where’s My Car?” should be the first in the list!  :)

UPDATE 2: Click here to download:  Where’s My Car?

Screenshots after the break…

Read the rest of this entry »

Dependency Injection: Coke with Lime

January 29th, 2010

I have in the past expressed skepticism regarding the utility of Spring’s XML-based dependency injection configuration files. A bit ago, in one of these conversations, I was pointed to Martin Fowler’s article on dependency injection. I found it hilarious.

Read the rest of this entry »

Brain-Dead

December 21st, 2009

Java is somewhat brain-dead at times. For instance:

while(c=System.in.read()>-1){
  System.out.print(backspaceChar);
}

Doesn’t do what you’d expect. (hide console input) It appears that System.in is being silently buffered.

So a little googling: http://java.sun.com/developer/technicalArticles/Security/pwordmask/

Sun’s recommendation is a busy-wait loop in a separate thread that constantly rewrites the previous character?!? I mean, seriously, WTF?!?

Edit: It looks like Sun implemented a new API for non-echoing prompts in v1.6: http://java.sun.com/javase/6/docs/api/java/io/Console.html

But this is still crappy. Introducing a new API to partially work around the broken functionality of an old API is how you get bloated monstrosities to begin with.

Food, Inc.

December 4th, 2009

I watched Food, Inc. last night. Was not impressed. Yes, we mass-produce food. Yes, it’s gross in parts. But so was the small-scale chicken slaughtering the film touted. Why is a smaller, open-air assembly line better than a larger, more environmentally controlled one?

Plus they played with the stats too much. “There used to be X thousand meat processing plants, but now 13 produce 80% of the meat in this country.” This doesn’t tell me anything. That last 20%, is that 2,000 smaller plants? Or 3 other really huge ones? What percentage did the top 13 used to produce? Apples-to-oranges statistical comparisons make me distrust the source.

Not to say it was all bad. The patenting of GMOs and the strong-arm tactics of their producers are definitively abusive, which I have ranted about before.

But overall, it seemed more anti-corporate, anti-science and hippy-ish than anything resembling a reasonable collection of recommendations on how to better our food production system.

XiMpLode

July 29th, 2009

It has been said before, but it deserves repeating: XML is overused. And often, made unnecessarily over-complicated for the task. Take for instance the example “A Simple Soap Client“.

Here is the request:

<?xml version="1.0"?>
<SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <SOAP-ENV:Body>
    <calculateFibonacci
      xmlns="http://namespaces.cafeconleche.org/xmljava/ch3/"
      type="xsi:positiveInteger">10</calculateFibonacci>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Here is the response:

<?xml version="1.0"?>
<SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" />
  <SOAP-ENV:Body>
    <Fibonacci_Numbers
      xmlns="http://namespaces.cafeconleche.org/xmljava/ch3/">
      <fibonacci index="1">1</fibonacci>
      <fibonacci index="2">1</fibonacci>
      <fibonacci index="3">2</fibonacci>
      <fibonacci index="4">3</fibonacci>
      <fibonacci index="5">5</fibonacci>
      <fibonacci index="6">8</fibonacci>
      <fibonacci index="7">13</fibonacci>
      <fibonacci index="8">21</fibonacci>
      <fibonacci index="9">34</fibonacci>
      <fibonacci index="10">55</fibonacci>
    </Fibonacci_Numbers>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Dear $DEITY, why do we need to define a new data type to hold a list of integers? And what in the world is that “index” attribute doing there? IT’S A FUCKING LIST. This is like a real-life example of the old XML binary encoding joke:

<data>
  <binary>
    <bit index="0">0</bit>
    <bit index="1">0</bit>
    <bit index="2">1</bit>
    ...
    <bit index="n">1</bit>
  </binary>
</data>

It’s just sad…

For the sake of it, let’s compare to a JSON-RPC version: (not the epitome of efficiency mind you, but an order of magnitude better)

--> { "method": "calculateFibonacci", "params": [10,], "id": 1}
<-- { "result": [1,1,2,3,5,8,13,21,34,55], "error": null, "id": 1}

Which would you rather use? :)

Touchstone

July 21st, 2009

I was originally quite sceptical about the value of the Palm Pre’s Touchstone wireless charger accessory, esp. at its ridiculously high advertised price. However, now that I’ve had it for a week, I’m a total convert. It’s so nice to be able to just plunk the thing down at night and pick it up again in the morning without having to fumble with cords or those crappy plastic covers every cell phone manufacturer seems to love these days. Thanks Palm for coming back from the dead and giving Apple a good run for their money. :)

Tent Stakes in Sand

July 2nd, 2009

My bivy tent is so low profile, I’ve never had a problem with wind when beach camping as long as I’ve had some oversized steel stakes ($2 for 4 at Walmart). But my dome tent is more problematic, as Lingyan and I learned in South Padre over memorial day.

So a little googling led me to “deadman anchors”, which are basically anything buried in the ground. A basic design is some angle iron and steel cable. So a trip to Lowes and a few minutes assembly, and I have the following:

deadman anchors

1 4ft piece of aluminium angle iron, cut into 4 6″ sections. 4 3ft sections of 1/16″ steel braded cable. 4 eye loops, and 4 pairs of cable crimps. <$15 total.

We’re beaching camping again this weekend at Mustang Island. Will update with how well they worked.


<Kered.org>   © Copyright 2000-2005 by Derek Anderson
Get Firefox