Archive for February, 2008

Custom Search Engines: Opera vs Firefox

**Updated with new easy way below**

Opera

Preferences > Search

Firefox

  1. Create .src and icon files and put it on a local server. Example of Google.src:

    <search>
    name = "Google search"
    method = "get"
    action = "http://google.com/search"
    >
    <input name="q" user="">
    </search>
  2. Create HTML page to load Javascript action to add search engine. Example:

    <html>
    <script type="text/Javascript">
    function addEngine()
    {
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
    {
    window.sidebar.addSearchEngine(
    "http://localhost/google.src",
    "http://localhost/google.png",
    "Google Search",
    "Web" );
    }
    else
    {
    alert("Mozilla M15 or later is required to add a search engine.");
    }
    }
    addEngine();
    </script>
    </html>
  3. Load page and add accordingly

Conclusion

Is it me or is adding a custom search engine for Firefox just way too hard? It took me a good 20 minutes just to get mine to work. I tried not having to use a local server by using relative url’s for the src and icon file but that didn’t work, it just gave me an Install Error: “This search engine isn’t supported by Firefox and can’t be installed”. Yes I know there extra search engines already provided but the issue I had was that the inbuilt Google search was redirected to the Google Brunei search with text in Malay and would not recognize English words to use with the definition feature (where you can click the search word in the top right of the page to find out the definition). So with that I provide Custom Firefox Search Engine page. It’s not much but I may probably add more custom search engines that I use there and begins some what of my Firefox tweaking and stuff.

P.S. Anybody with a better, i.e. easier way of adding a custom search engine to Firefox do let me know thanks.

** Update **
Found a quicker way here: Create Search Shortcuts. Thank you revision3
Basically all you have to do is..

  1. Right click ANY text box with a button next to it, i.e. a search field
  2. Select “Add a Keyword for this Search…” (Firefox) / “Create Search…” (Opera)
  3. Fill in the details name and keyword (Firefox) / just keyword (Opera)
  4. Click Add / Ok and start using it!

Well my sister IS pregnant so…

Multi Monitor Madness

For those who have found the joy in working with multiple monitors here are some FREE applications that I just can’t live without:
Multi-Monitor Taskbar: Adds a task bar on the non primary displays, a window title bar button to move the windows and keyboard shortcuts to move windows to other displays.
Multi Monitor Mouse: At the flick of keyboard shortcut / mouse click move your mouse to the next display instead of having to drag the mouse all the way cross boundaries. Especially useful for those laptop touchpad users!

Wish there was a way to integrate the 2 and with the user editable shortcuts but these will do for now. May the multi monitor force be with you.

GTDTiddlyWiki

GTD Tiddly Wiki is a GettingThingsDone adaptation by Nathan Bowers of Jeremy Ruston’s Open Source TiddlyWiki. The purpose of GTD Tiddly Wiki is to give users a single repository for their GTD lists and support materials so they can create/edit lists, and then print directly to 3×5 cards for use with the HipsterPDA

In a few words it’s a to-do list managed in a single, editable, saveable (is that a word?) HTML file. Doesn’t work in Opera though =( But at least it’s nice, simple and portable. Trying to get my Getting Things Done (TD) on and organise my life just a little bit better….

Debugging comas

So far today I have run into 3 comas using Visual Studio.NET

  1. Stepping through code and there it goes comatose on one any command (takes a long time for it to finish the task)
  2. Trying to stop debugging but the whole UI is frozen (can’t press the stop button nor use the keyboard shortcut)
  3. Starting a debug session and waiting for debug window to open (debugging ASP.NET project)

At least given time the patient does wake up from the coma but it annoys me. A LOT. But worse is the recurring coma the system has been having is trouble with the Master Browser such that “\\server.ip.address.urls” will not resolve for a looooooooong time resulting in one server not being able to retrieve the data it needs from the other server resulting in Epic fail.

Atari 2600 Controller

So what happens when you decide to take out your old Atari 2600 console with the intention of playing it only to find that the controllers don’t work? Make your own controllers of course! So I spent like 30 minutes looking for parts in Brunei. What I needed was 5 buttons (4 for direction and 1 for the fire button). We really need a good place to buy electronic parts like these in Brunei. Recommendations anybody? Anyway I found them and Batu Bersurat at the toy shop opposite Ayamku, I think it’s called Little ‘M’ Children but I could be wrong. I did my research on the controllers on Chinese New Year’s Eve (BTW Happy New Year everybody) and found it all documented online here. But I got my documentation the hard way.. With a multimeter and my own serial port connectors. That was one of the reasons I got 2 hours of sleep that night/morning. Anyway photos to come later. I need to sleep I have work in a few hours and some Android lurking to get back to too

Updates:
The original Atari 2600 controller opened up: nice simplistic circuit with the common ground and I tried to keep the same wire colour convention but I didn’t have a white so I used gray instead.

Colour | Pin # | Function
-------+-------+----------------
White  |   1   | Joystick Up
Blue   |   2   | Joystick Down
Green  |   3   | Joystick Left
Brown  |   4   | Joystick Right
       |   5   | Left Paddle
Orange |   6   | Fire
       |   7   | +5v
Black  |   8   | Ground
       |   9   | Right Paddle


Male connector on the Atari itself, controller uses female connector soldered as show below
Top view:

Bottom view:

Top view of controller:

Bottom view of controller (wire wrapped and soldered):

Now all I need is a box to put it in….

Powered by ScribeFire.

Wrapping around an Eclipse

While playing around with Android I found out that Eclipse has no word wrap feature! It’s annoying but there is a plugin extension addon feature for it here. However it does not label the wrapped lines properly: the wrap line is considered as a new line not an extension of the previous one and it has not been updated since it’s first release in July 2006. How much longer do we have to wait for a ’simple’ word wrap?

Powered by ScribeFire.

Chinese New Year – Open House

On the 2nd day Friday 8th February 2008. If you need to address contact me anyway you can. It’s supposedly all day but I would think 1000-2200 would be better. I can’t promise you food (because I don’t know what my mom has planned) but I think I can promise you a still messy room if you dare to look…

Powered by ScribeFire.

Yes if life were so easy….

Forgetting

Powered by ScribeFire.


Categories

Twitter Feed

Creative Commons

del.icio.us Bookmarks