Go

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg Setting up ASP.NET MVC 4 and Twitter Bootstrap 3 with LESS

September 17, 2013
ASP.NET MVC + Twitter Bootstrap + LESS When setting up an ASP.Net MVC 4 application recently, I decided to add Bootstrap 3 into the project. The default NuGet package for Bootstrap (Twitter.Bootstrap) includes the source and the minified versions of the JavaScript and CSS. However, should you want to edit the LESS files and recompile and minify the CSS, you will need a different Bootstrap NuGet package, a minifier adapter NuGet package, and some additional configuration. Also, while client-side LESS interpretation is great when working in a development environment, it may not be ideal or available for all website visitors. For this reason, you can use the BundleTransformer.Less library, a JavaScriptEngineSwitcher (either JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.Msie - I used Msie in my project), and a minifier adapter (I used BundleTransformer.MicrosoftAjax; you could also use BundleTransformer.Yui) to compile the LESS to CSS and to minify it for performance in those environments.

CSS Programming

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg TTF to EOT and @font-face

October 6, 2012
For those of you who followed my tutorial on using @font-face, you will remember that generating the proprietary font file for Internet Explorer was not an easy task. Now, there are websites and desktop software that will convert your TrueType (TTF) font file to an Embedded OpenType (EOT) file format. Here are a few resources that I have found:

CSS

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg It may be time to update your reset stylesheets

March 10, 2011
If you're using Grails and the Grails UI plugin's autocomplete feature, you may have noticed all of your textboxes have disappeared in Chrome 10. This is thanks to Chrome 10 adding a new default browser style for an invalid attribute: "hidden". Take a look at this jsFiddle: http://jsfiddle.net/jennyfofenny/VkCXh/ If you remove the CSS style on the right, Chrome 10 will by default hide input elements that have the "hidden" attribute set to true. The problem with this is that the hidden attribute is not a valid attribute - and should therefore be "undefined". So, if you've noticed this issue, make sure to add the following CSS style to your reset stylesheet so Chrome 10 behaves like all the other browsers:
input[hidden=true][type=text]{display:inline;}

CSS Programming

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg Amigurumi Katamari

March 8, 2011
Superman Award

Recently, I got an award at work known as the "Superman Award". It is a Superman action figure that collects a new accessory with each recipient. And at this point, it has collected quite a bit of stuff. So, I've decided to make an addition of my own. Since the Superman Award is essentially a katamari at this point, I went ahead and made a crochet katamari (in the style of the PS2 game Katamari Damacy, of course). The attempt I made for the Superman award turned out OK, but I improved upon it and have posted the pattern below for your enjoyment.

Handmade Video Games

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg Theme Hospital is CorsixTH

February 2, 2011
I was reading a submission on Reddit the other day about a screenshot of Roller Coaster Tycoon. That screenshot drew me into a Wikipedia wormhole that started with the article on Roller Coaster Tycoon and culminated in my visiting the page on Theme Hospital. In the article, it talks about various attempts to develop an open source game engine based on Theme Hospital using the old game assets. So, I found CorsixTH (which is in Beta), and wouldn't you know, it's just like Theme Hospital! I noticed a couple small bugs and the "Charts" menu isn't fleshed out, but it's just like the game I remember.

Video Games

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg Helo Sleeping

January 10, 2010

I caught our kitty, Helo, on camera the other day - all stretched out.

Helo stretched out

I posted it up on icanhascheezburger's website here.

Lolcats

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg sIFR to @font-face Site Conversion

November 3, 2009

Recently, I was browsing CSS Beauty and noticed quite a few articles on the CSS3 @font-face rule. I have always been somewhat unhappy with sIFR - I just don't like having Flash files as header text. However, after reading more about the @font-face rule, I found out that it may be a suitable substitute for my special headline fonts - it's also mostly cross-browser compliant (and Google Chrome will be adding support in the next version). So, I decided to change my sIFR font headings to use the @font-face rule and my process is detailed below.

The first obstacle that I encountered during this process was obtaining a font that allowed for distribution (this is a tough issue since many fonts that you normally use on a site have a different license that does not allow for distribution). So, I was going to have to replace my Century Gothic font and, after some searching on the internet, I found the Liberation Sans font by Red Hat to be acceptable.

CSS

Share Reddit Twitter Pinterest Facebook Google+ StumbleUpon Tumblr Delicious Digg Extending CSS Spriting

December 5, 2008

CSS Spriting is a technique for speeding up the load times for your website by reducing the number of HTTP requests for images to the server. On Yahoo's best practices website, they say:

"CSS Sprites are the preferred method for reducing the number of image requests. Combine your background images into a single image and use the CSS background-image and background-position properties to display the desired image segment."

This technique can be extended for non-background images on your site as well. However, some issues arise when you use CSS spriting for your main navigation elements(among other images):

  1. You can't attach alternate text to divs for accessibility purposes
  2. CSS Spriting and the IE6 PNG fix are incompatible
  3. The images will not print out on printouts unless the client option to print background images is selected (this is bad for logos and menus, etc)
  4. For images in pages (that are not actually background images), it seems semantically bad to hide the image in CSS.

With these concerns in mind, I devised a cross-browser compliant solution that addresses all of the aforementioned problems. The new technique uses an image tag, a div, and the CSS clip property.

CSS