Computer Programming

Yes, a bit specific, but I need to store some links!

Rewriting Code

There is no great writing, only great rewriting. - Justice Brandeis

I'm not much of a Python coder, but I'm learning to be a pretty good Python re-coder.

Button to Scroll to Top of the Page

Mobile websites all seem to have this button, which appears when you've scrolled down a bit. The button scrolls you back to the top of the page, where most of the menus reside.

Converting Time or Datetime to UTC in Python

This seems so basic, it's almost embarrassing to publish, but this showed up a few times on Stackexchange. I had trouble figuring it out, too, partly because the Python docs are so lengthy.

Exception - what is it?

What's an Exception?

Using strings to create functions

One of the less-used features is the Function() object, which can turn a string of Javascript code into a function. This is an example of how it can be useful.

Script to Compile Videos from JPGs Uploaded from Low-End IP Camera DLINK DCS-932L

This script uses ImageMagick and AVConc (ffmpeg) to convert images uploaded by a low-end DLINK internet camera to an FTP server.

Bookmarklet to Mass-Unfollow Twitter Users

I almost wrote a page for this, but it turns out a bookmarklet is good enough:

javascript:$('.js-follow-btn').click();undefined;

Logging Very Slow SQL Queries, in PHP

MySQL has a feature to log slow queries, and it's nice, but the problem is, a lot of the queries look alike. So what you want is a backtrace so you can find the code that created the query.

Product Key Scheme

This is a concept for a product key activation for a web application. You download the application, install it on the server, and then it will allow you to buy a key via a website.

Learning Javascript via the Read Eval Print Loop (REPL)

All the tutorials out there teach JS by having the user write a file, and load it into the browser.

Javascript APIs and Libraries Change the Game

I was thinking a bit about the JS co-learning thing, and discovered that services, APIs and libraries really change the game, or have changed the game.

Horizontal Javascript Class

Sketching out a possible class for learning Javascript / learning to learn Javascript / learning to teach Javascript.

Prelims:
HTML and DOM
CSS and DOM

IBM/Hitachi Deskstar 120GXP IC35L080AVVA07-0

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0-27-generic] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

JS localStorage Demo

The attached file is a rudimentary demonstration of persistent local storage in the browser. You can click on it to see the page in action, and do a view source on that page.

Zend Framework 2 Service Managers. Why?

I’m a ZF noob and was noticing that ZF OOP relies heavily on service managers rather than instantiating classes directly. This article explores why things are set up that way.

Syndicate content