Blog

AngularJS Directive for Mobile Sliders

Value: {{ sliderVal || 9001 }}

I ditched jQuery Mobile's sliders for my growing AngularJS poker app. It had served as the app's poker bet slider. All I wanted was a simple slider widget from jQuery Mobile, but the UI framework wanted me to marry it in return. It had its way with my HTML markup, littering my DOM elements with selfish classes and attributes, like an open garbage truck on the freeway. My CSS rules felt oppressed like liberal college students as jQuery Mobile's CSS files applied forceful rules my top-level html and body elements. The kicker? The slider quickly became deprecated, not working on newer versions of Firefox. Never even saw it work on Chrome.

more

I Think I Just Mobilefied Myself

Shrink your browser window, I dare you. I spent my last night plastering on some good old responsive web design (RWD) on top of my big bad blog, ngokevin. It was well-timed since I have been recently working on RWD for Firefox Marketplace's app reviewing tools. Initially, I was not sure where to start on converting my px-based blog to be more fluid. Really, I was panicking in my seat just simply imagining having to migrate my whole site from px to em. But then I went into my programming Avatar State, bending my arsenal of media queries at will.

more

The Serenity of a 5pm Bedtime

We know of tangled sleep schedules, and we have all had your struggles with them. But sometimes sleep schedules can become so twisted, that they just happen to morph into something quite ordered. The figurative eye of a typhoon. Such was the case with my sleep schedule. One dawn, I took to bed around the wee hours of 7am with the expectation of only a couple hours shut-eye. After a short day, I fell into bed at 5pm. Then something quite magical happened.

I had stumbled upon a perfect sleep schedule. Love at first nap. Going to bed at 5pm and naturally waking up a bit past midnight.

The reversed day presents itself.

more

Sublime Text is a Bodybagger

Call me a mouse-atheist. I love vim; it lets me do everything on the keyboard. In the time it takes for one to reach for their mouse, highlight a line to copy and paste, and Ctrl+C/Ctrl+V to copy in Word, I could type "yyp" in vim.

My whole desktop is vimified: workspace and window management hotkeys, Vimperator on Firefox, Terminator hotkeys, and vim itself. vim is good for text editing, but it ain't good at some things that I have simply put up with for years. Two days ago, I tried out Sublime Text, and today I bought it. Here are five reasons why Sublime Text is just Frosted Flakes great.

more

Web Design Heuristics

Last weekend, I built a site for a new club on campus as my first freelance gig (though I also handled the domain name and hosting). For the past couple months, I have been a little interested in visual design and user experience. This design exhibits some tricks I picked up and often use make things look pretty. I dub this plastic surgery, as it is a quick and simple path to beautification.

more