Bootstrap responsive theme

I have been reading a lot of buzz around Twitter's Bootstrap responsive theme and although I am a huge fan of the Omega theme, I think bootstrap has a lot of potential and wanted to experiment with it.

My blog is long overdue for a facelift, so I now present to you my Bootstrap-ized blog! At the moment it is simply using the base theme, but I will be implementing a customized sub-theme shortly. I am interested to hear what you think (and if it does or doesn't work on mobile devices) in the comments!

Update 2013-02-08: I have performed minimal customization to the theme and after working with it for a bit I can start to see Bootstrap's strengths and weaknesses. Although Omega is very flexible and has a bunch of responsive options, I feel like they could use a little more polish; Bootstrap's responsive design implementation feels so quick and smooth and it also scales well at all viewport sizes. I also like Bootstrap's barebone styles (font, text layout, etc) much better than Omega's defaults which I believe use serif fonts (*ugh*). That said, such a thing is very easy to change in CSS and so it's not a huge disadvantage for Omega.

Where Omega also beats Bootstrap (and by a large margin) is when it comes to theme customizability. The Bootstrap theme settings page offers few options and in several instances I found that several common Drupal-specific CSS rules (such .indent) were missing entirely. Omega has been around for quite some time and as a result has excellent integration and provides a plethora options to modify the zone, region and block grid right the theme's settings page.

If I had to do it over I would stick to Omega, but Bootstrap will be giving it a run for its money once it picks up on some of the grid customization tricks Omega has.

Rating: 

Code editor: Sublime Text 2

I have been looking for a decent code editor for a long time, as my favourite was previously Smultron but it's been slewed with problems in newer OS X releases ever since it was discontinued (and then subsequently forked and re-started as a closed-source application). I tried Eclipse, TextWrangler, Coda, and Xcode at different times but each had little things that I didn't like about them so I kept putting up with Smultron's little glitches.

I came across this thread in r/apple on reddit that suggested Sublime Text 2 and I absolutely recommend it to everyone! I have been using it ever since I first installed it.

The UI is very simple and clean and there's no button toolbar giving it a minimalistic feel (which I prefer in text editors; this is where Eclipse failed me). I should also mention that the whole program is very snappy and it responds very quickly to any query, even complex regex finds across several files or editing large files.

It has some really nice features (some very unique) which are worth mentioning (for simplicity's sake I use Ctrl below as the modifier of choice, on OS X simply substitute with Command):

Cross OS with per-user license

This strictly speaking isn't a "feature" but it certainly is worth mentioning. ST2 merits its $59.99 pricetag based on its features alone but what makes it even more attractive is that it runs very well on Windows, OS X and Linux with portable editions available and the licensing is per-user... Use it at work, at home, on the go, on any number of your computers with any OS. Oh, and did I mention you can even sync your packages & settings across all these machines and OSs via Dropbox? Awesome sauce.

Multi-line editing

After trying it in ST2, the feature now seems so obvious and natural that I wonder how I ever got by without it. Each line receives to receive its own cursor and copy/paste buffer, so you can very easily perform multi-line edits or variable renames. There are also several ways to create several cursors:

  • Select a block of text and then use Ctrl+L to select the whole lines, follow up with Ctrl+Shift+L to split each line give each selected line its own cursor.
  • Hold Ctrl and click where you want to place a new cursor
  • Highlight a text symbol (variable, associative array index or other) and matches will be highlighted. Press Ctrl+D to select them in sequence
  • Open the Find Text (Ctrl+F) and enter your query then click Find All

There's a good animated demo of this feature on the ST2 homepage.

Command palette

Press Ctrl+Shift+P to bring up the Command Palette, where various ST2 or plugin actions such as setting file syntax, changing themes, inserting code snippets. The menu updates as you type and displays the best matches to your query. Enter confirms and Esc cancel.

It is particularly handy for add-on packages, as a package may provide some custom snippets or git integration (yes, you can diff and commit)!

Function search

Hit Ctrl+R and start typing a part of a function name. ST2 will filter through all function names in your file and jump to the best match as you continue typing. Enter dismisses the search, Esc cancels.

Package management

ST2 has built-in package management via the Sublime Package Control extension. Simply copy the command from the page and enter it into the Console (opened via Ctrl+`) and it auto-installs. From there, hit Ctrl+Shift+P/Command+Shift+P to install, list or remove a slew of extensions right from with ST2 itself. There's even no need to restart it after installing or removing a plugin, it reloads what's necessary to get you going straight away.

Build system

Although ST2 is a text editor, not an IDE, it does have limited support for compiling & running files directly from within the editor. Its pluggable build system system allows add-ons to supply details on how to compile or run different file types. Ctrl+B runs the one associated with the current file type/syntax. SublimeREPL is a great extension that provides a build system plugin and can also run interpreters as a new tab inside ST2.

Extremely customizable preferences

The ST2 preferences file is simple a JSON-like file where you place the parameters. Getting it set up the way you like may be a bit tricky since there is, at the moment, no preferences UI. That said, ST2 is one of the most flexible text editors I have encountered and practically every aspect can be tweaked provided you can find the configuration parameter's key name.

Edit single file in many places

Smultron had this feature as well but it was horribly buggy so I never was able to use it much... It works flawlessly in ST2. Just select File > New View Into File... and it opens up a new tab of the current file. You can view and edit in different portions, both buffers update simultaneously and undo/redo history works across views into the same file.

Layout customization

Alt+Shift on Windows or Command+Alt on Windows allows you to layout the window in various configurations such as right/left or top/bottom. Triple column/row or 2x2 grid modes are also supported. These prove to be very useful in combination with the multi-view feature mentioned earlier, as you can setup to have 2+ views editing same file at different locations in a single window.

Rating: 

Solving the IRQL_NOT_LESS_OR_EQUAL BSOD on UEFI motherboards with two GPUs

Gigabyte recently released a UEFI BIOS (which is awesome, by the way) for my GA-Z68A-D3H-B3 motherboard and so far it's been working really well. However, I noticed that Windows was having some problems starting my dedicated graphics card after the BIOS flash; the i5's integrated HD 3000 graphics work fine, but my nVidia card said "This device could not start" in the device monitor and its display output was dead.

After reinstalling Windows 7 64-bit in EFI mode, things were running a bit more smoothly as the device was now properly detected but missing drivers. After installing the HD 3000 and GeForce drivers, I rebooted and immediately got a BSOD: IRQL_NOT_LESS_OR_EQUAL.

For those in the same situation, fortunately it can be solved very easily: don't install drivers right away. Instead, perform Windows Update repeatedly until you have SP1 installed. SP1 seems to resolve the device driver conflict that occurs and then both the integrated and dedicated GPU drivers can be loaded simultaneously.

Reference: http://communities.intel.com/thread/20515

Rating: 

Reset sync history in OS X Lion without using iSync

In previous version of OS X, the iSync application could be used to reset sync history. This technique often resolved a bunch of miscellaneous bugs and sync-related problems. The iSync application has since been removed in OS X Lion and Apple's support documents aren't of much help. This one claims that resetting sync services can be performed from iSync in Leopard and from the Sync menu extra in later version of OS X. This document describes how to enable the menu extra in the MobileMe settings. Besides the fact that MobileMe is deprecate and no longer in use, the option described in that document to enable the Sync menu extra only appears after signing in to MobileMe... Which is deprecated.

Fortunately, there's a hidden folder you can open to enable any menu extra manually! Open Finder and select Go > Go to Folder (or press Command+Shift+G). In the prompt that appears, type: /System/Library/CoreServices/Menu Extras/. This should bring you to a folder with a bunch of menu extras that you can double-click to add to the menu bar. The one of interest in this case is Sync.menu, which should appear in your menu bar a second or two after opening it.

Once it's in your menu bar, hold Alt/Option and click on it to expose the advanced options and click "Reset Sync Services". After that's done, you can remove it from your menu bar if you'd like by holding Command and then clicking & dragging it out from the menu bar.

Rating: 

Keyboard not present; press F1 to continue.

I've gotten ^ this error ^ multiple times while booting up a client's computer for troubleshooting and forgetting to plugin a keyboard. I chuckle every time.

Blizzard Entertainment's support system seems to follow a similar design philosophy. I recently went to my friend's place with my PC to play some games and when I tried to sign on to Diablo III I was informed that my location did not follow my regular usage pattern so my account had been locked. I was genuinely happy and impressed that Blizzard was proactively protecting accounts from hack attempts, but that happiness faded quickly when I tried to unlock my account.

To unlock it, I needed to reset my password by either answering my secret question or entering the first 6 keys of one of my Blizzard games attached to the account. Easy, right? Well, I don't have any of the CD keys; I purchased my copies online and so the keys are all saved in my Battle.net account game listing, which I was locked out of. Blizzard, in their infinite wisdom, also decides does not send you the game key in the online purchase confirmation email so this reset option is not viable if you've made online purchases. I proceeded to answer my secret question instead and their page says I would receive a confirmation email shortly. Cool.

I waited, and then waited some more; nothing came in. I checked my spam, nothing in there either. I even opened up my server logs and checked all incoming mail only to find nothing from Blizzard at all. Blizzard hadn't sent the message.

My next logical step is to submit a trouble ticket with their support team, so I went to the trouble ticket manager and it asks my to type a few words related to my problem. I enter 'can't login'. It offers me a few suggestions (including the password reset page which doesn't send emails) and then says if my issues are not resolved to sign in to create a ticket. Wonderful. So (1) I am locked out of my account, (2) the system detects this and (3) their recommended course of action in this context is to sign in to my account.

I try their phone support and find out that not only are they busy, but their hold queue is full so they are refusing to take my call. I tried calling a couple hours later with the same result. That brings us to today, where my calls are still being refused. Here's a really easy solution Blizzard: hire more support staff.

I've also tried email support@blizzard.com and got a response saying that the address is ignored and to sign in to create a ticket. Fail.

I'm normally a patient person when it comes to this type of thing, because as a software programmer I understand how complex maintaining a beast like battle.net can be. But it was entirely Blizzard's chose to remove single player play from the game in favour of online connectivity to reduce piracy. I get that, and I'm okay with that, but Blizzard has to keep up its end of the deal too. Account hacks are not my problem. I use a strong password and I shouldn't have to worry about getting my SINGLE PLAYER game account locked. If your system is under automated attack, find a way to fix it without inconveniencing your players. Otherwise, I'll take my money elsewhere.

Update 2012-06-25: After finally getting a response on a ticket submitted from my brother's account, they told me I would have to call in. *sigh* I'll just find another game to play for two weeks because realistically I'm not going to speak to anyone before then.

Rating: