Archive for May, 2011

Universal Stupid Bus 3.0

The following write-up is my experiences for some little known nuances which in the future can be a surprise which can make your computer date much quicker than you intended, with it not being able to handle some of the future devices which will be coming out to the Universal Serial Bus 3.0 Specification.

Many devices you buy now use the Universal Serial Bus (USB) 2.0 Standard and plug – keyboards, mice and even Hard Drive docks. It’s built to give a variety of gadgetry to be able to talk to your computer in a standard way. USB 3 Is a newer standard offered to give much more room for the neat future devices that need it.

The common item to think of when wanting to use USB 3 is for Hard drives – you will be able to copy files much faster to and from it with a USB 3 Device. Let’s backtrack briefly to find out the different kinds of USB 3 that exists in order to try and find out what went wrong.

Read the rest of this entry »

Tags: ,

Shortcuts/Hotkeys in jQuery

I had to search for a while to find a nice way to be able to do Hotkeys in jQuery, and thought I would post what I found that finally worked.

Jeresig adapted what comes up as the top result for searching for jQuery hotkeys, however it’s out of date and partially functional now.

This one worked:
http://www.stepanreznikov.com/js-shortcuts/

Sample syntax is better summed up in the link, but uses the following syntax:

$.Shortcuts.add({
    type: 'down',
    mask: 'Ctrl+A',
    handler: function() {
        debug('Ctrl+A');
    }
});

// Dont forget to start it!
$.Shortcuts.start();

And that’s it. Worked happily once I added in the reference to it, and trying it out now.

The project I’m using it for is a live titling scoreboard, with the difference being is that it’s made in html and jQuery. Shortcuts are a quicker way to update the score, and any score updates will make the board animate to show, then slide the text away.

Ideally, I would have loved to be able to send hotkeys to a webpage while focus is on a separate program, but have not found any proprietary ways to be able to do it. Even sending a hashtag to the webpage so I can act from it would be sufficient.