2014-12-09_1422

Fixing Quircks Mode with a DLL

December 9, 2014 / 0 comments

Quirks mode refers to a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for older browsers, instead of strictly complying with W3C and IETF standards in standards mode. Here’s how to force IE into submission by adding a DLL.

photo-1416339442236-8ceb164046f8

Little life saver: parsing HTML entities

October 29, 2014 / 0 comments

Recently I had the pleasure of building a calculator example exercise. Begin a good programmer I used the some HTML entities as values on the buttons: ×, ÷ and ± as values. It turned out to be quite difficult to parse them with native JavaScript. It is not so hard with LoDash or jQuery, but I…

Read more →

Form

How to do a ‘select-all’ focus on a TextArea upon tab?

April 23, 2014 / 0 comments

When tabbing through the fields I realized that the input focus behaves different from the TextArea. The TextArea doesn’t select its text… but it can be fixed by adding some jQuery.

Mouse Pointer

Click to ‘select all’ on the PRE element

April 22, 2014 / 0 comments

When you want to display code, you’re probably working with pre elements. The fact that they can contain markup make them really effective for syntax highlighting. I’ve used Knockout en comment binding to generate code into a pre field and that’s really cool. Wouldn’t it be need if one could click on the element en it would…

Read more →

Change

Subscribe to all changes of an entire Knockout ViewModel

April 22, 2014 / 0 comments

Knockout is amazing. It is fast and intuitive. I use the subscribe function a lot, but I found myself lacking a general subscribe that allows me to track the changes of an entire ViewModel, so I created one myself that even supports unsubscribe and throttling.

YouTube+WordPress Logo

How to make embedded YouTube play nicely?

April 19, 2014 / 0 comments

WordPress supports YouTube links converting them into embedded video. By default it renders an iframe that is neither responsive nor — in my case — the right size.

Highlanders

William Lawson’s Commercials – No Rules

April 19, 2014 / 0 comments

William Lawson’s keeps coming up with great commercials with a consistent theme: real man are rough and have humor. I think their campaigns are a great example on how a brand can connect with its audience.

Sass

Serving SASS files for WordPress theme on IIS

April 2, 2014 / 0 comments

I love SASS. What’s not to love? Well… it can’t be served directly by the web server like CSS. It needs to be pre-compiled before it is served. Fortunately there is a PHP SASS compiler that can be used to make PHP compile and serve SASS. I’m using an IIS installation, so I’ll be explaining how it can be done on a Windows machine.

Fat Twitter Bird

How to scrape a photo from a Twitter Photo URL using PHP

March 21, 2014 / 0 comments

After explaining how to scrape a photo from a Twitter Photo URL using C# (ASP.Net) I decided to port the script PHP so I could use it on WordPress.

Fat Twitter Bird

How to scrape a photo from a Twitter Photo URL with C#

March 18, 2014 / 0 comments

Twitter uses its url shortener to place photo’s in Tweets. The following script leverages C# and a regular expression to extract the photo URL from the shortened URL.

wpid-country-train.jpg

A (slightly) better WebClient class

March 18, 2014 / 0 comments

Sometime you’ll need a (slightly) better C# WebClient that’s able to store/retrieve cookies, prevent redirects or retrieve the HttpStatusCode of a request. I’ve created a small class that facilitates these features.

CHash Thunder Logo

CHash Thunder – a CloudHashing.com extension

February 23, 2014 / 0 comments

CHash Thunder extends the CloudHashing interface giving it charts, more information in the header and it updates the values every 5 seconds. It also features a estimation/simulation with Coinplorer. The tool can be downloaded from the Chrome Web Store. Feedback and feature requests are welcome here, @KeesTalksTech or on Facebook.

753782552_e0a80407bd_b

Solving Knockout JS calculated binding in the interface

February 16, 2014 / 2 comments

Doing calculations on Knockout data-binds might result into a “Uncaught SyntaxError: Unable to parse bindings” error. Solution: use an anonymous function! This article describes how.

How to make embedded Tweets play nicely?

February 16, 2014 / 2 comments

Embedding Tweets on WordPress rocks, but the rendered HTML might not be playing nice with your design. Fortunately this can be fixed by applying some !important CSS.

2755481069_30d94b89a5_b

Injecting jQuery – the right version

February 15, 2014 / 0 comments

Do you need to inject jQuery or are you writing a bookmarklet? This script will inject the right version, taking IE8 and lower into account.

Cloud flare logo

Need a fast CDN for almost every JavaScript framework?

February 3, 2014 / 0 comments

Usually a browser restricts the number of simultaneous connections to a single domain (depending on the browser 2-8 connections). That’s why Yahoo recommends to use a Content Delivery Network (CDN) to decrease the number of connections to the same domain. Lately I’ve been experimenting with CloudFlare’s CDN. They host JavaScript, CSS and even the images….

Read more →

Success = Persistence = Hard work

Automatic Knockout model persistence with Amplify

February 2, 2014 / 6 comments

Knockout MVVM + offline persistence with Amplify. Automatically bind the model to offline storage. This script leverages both systems.

Copy XPath

Using Chrome’s XPath with jQuery

February 1, 2014 / 0 comments

While working with the Chrome Developer Tool I’ve discovered that you can retrieve the XPath of a selected node, But… it only works in Chrome. So what about other browsers? What about jQuery? What about querying documents that resulted from an AJAX request?

unsplash-kitsune-4

Create mp3 playlist with PowerShell

February 1, 2014 / 0 comments

I love mp3’s, especially now my phone has enough room to store a significant amount of them. I don’t know about you, but I’m a nut when it comes to categorizing my mp3 collection. Most of the time I’ll use the free version MediaMonkey to get the right meta data into the files (high res…

Read more →

PowerShell; scripting + .Net - what's not to love?

Comparing files with PowerShell

January 1, 2013 / 0 comments

Sometimes you want to test if two files are the same. You could run MD5 or SHA hashes of the files, but it might take some time to compute them. A byte by byte comparison might be the faster instead. I’ve wrote a script doing it in PowerShell.