My Wireless D-LINK Router freaked out

After flashing my mobile HTC Wildfire with Cyanogen 7 mod – Android 2.3.7, which is really nice by the way, works faster than HTC’s own Android 2.2.1 build, the only thing I had to do was flash a separate update for the mobile’s wifi/gps/3g connection, GPS wasn’t working. But at home where I’m using a DIR-615 a D-LINK router with b/g/n Wifi and 4 10/100Mbps ports the mobile didn’t get an internet connection through the Wifi. Or it did, but lost it regularly, or was connected to the Wifi but didn’t get internet.

So I thought perhaps the transmit power of my router is not good enough. I had set it on the lowest transmit power upon it’s first connection. And thus I increased the transmit power to medium. Yihaa, my mobile connected properly. Case solved and dismissed!

At least that’s what I thought. The day after I noticed both of my laptops internet was really slow. I speed tested from one laptop to another, that was fine. Internet still slow. Started to suspect a dropout on the providers network. But that seemed fine too. I rebooted my router, my internet cable connection, and oh! internet was back. For 5 minutes, then the connection dropped again to 0.5kbps download and 5kpbs upload.

After digging up a cable from the cellar and connecting that I noticed that a wired connection did not suffer from speed issues. (The same counts for the HTC, did’t seem to suffer from bandwidth drop, which is weird)

Then I remembered that I changed the D-LINKs transmit power from low to medium. I thought, no that can’t be it, but it’s the only thing I changed, so I proceeded. Set the transmit power back to low. And yes, both of the laptops suddenly had full WiFi bandwidth again.

I would have never suspected that when connection on low power is fine, it is not fine on higher power.

Accoring to the manual:

Transmit Power
Normally the wireless transmitter operates at 100% power. In some circumstances, however, there might be a need to isolate specific frequencies to a smaller area. By reducing the power of the radio, you can prevent transmissions from reaching beyond your corporate/home office or designated wireless area.

What does that have to do with the bandwidth?

JRebel 5.0

Yeah JRebel 5 is there.

If you work with Eclipse the first thing you notice is the improved integration. You no longer manually have to generate the rebel.xml file. Activating the rebel on a project only requires 1 click, saving you more time to code. Not that much more but it’s much more convenient and easier to deploy.

Also the remote and livedeploy integration seems really improved. I regret that I can’t really use it at the moment to test it out. At my current employer they stick to old school building.

I even have trouble to convince the developers to try out JRebel, 2 tried it, then got back to waiting on deployments and restarts don’t know why. Although it’s currently saving me between 11 to 15h each 30 days. Maybe I’m more nerd/geek than them, way more.

Every developer should give it a try!

Extending Twitter Bootstrap Typeahead Plugin

Update: also read this post

In twitter bootstrap there is a JQuery plugin for auto completion. It’s called bootstrap-typeahaed. Typeahead uses an array of strings as datasource and is easily activated with in it’s simplest form 1 line of code.

$("#inputboxselector").typeahead({ "source":arrayOfStrings})

It’s very easy to use but somewhat limited. We needed a slightly different functionality.

Our use case:

  • 2 inputboxes, one for postal code (the numeric form) and one inputbox for the community that has that postal code.
  • In Belgium different communities can have the same postal code, and the right community should be selected on selecting a postal code. Or the right postal code should be selected on selecting a community.
  • Show both the code an city in the autocomplete but only do autocomplete and highlighting on one of the fields depending on the inputbox.

The typeahead plugin is not suited for that. It only takes an array of strings and sets the selected value in the input box. We have an array of objects.
Objects like

{ "code":"9000", "city":"Gent"}

We wanted to use typeahead instead of any other existing JQuery plugin since we’re already using twitter bootstrap.

To achieve this I extended, (actually more copied and altered) typeahead. The result is here. I called it typeaheadmap. It works just like bootstrap typeahead except that you have to add 2 more parameters to typeahead options object. Include bootstrap-typeaheadmap.js (+ JQuery 1.7+) and typeaheadmap.css (+ bootstraps base css) to use it.

View a demo
Read on for a usage example Continue reading “Extending Twitter Bootstrap Typeahead Plugin”