My Writings. My Thoughts.
I share
I share stuff: code, links, knowledge and files …
Below you can see some “articles” I wrote, don’t hesitate to comment!
So, I made a clock
// oktober 24th, 2010 // 4 Comments » // Cuvedev, Development, Javascript
So yes, I made a clock. In JavaScript (and HTML).
It’s not just another JavaScript analog or digital clock, it’s actually a clock which is easy to read and it’s based on this design: QLOCKTWO by Biegert&Funk.
I think it’s a cool way to display time. When I considered buying the clock, I was shocked when I saw the price. So I though it would be a nice challenge to make it myself, in JavaScript.
And you can see it in action here.
I am in particular proud of the JavaScipt code. The clock is “built” with text predefined text strings, and right strings are highlighted using a “logic” for the selected language. In this way it is fairly easy to add new languages (at this time only Dutch and English are available). I used the PrototypJS-library because I’m used to it, and it shortened my code drastically.
Tested in:
- Google Chrome 8
- Firefox 3.6 and 4.0
- Safari 5
- Internet Explorer 8
Update:
And this is what it looks like on an iPad:

still pretty expensive for “just a clock”, but already cheaper than the qlocktwo.
WordPress plugin: Authentication
// juli 25th, 2010 // 46 Comments » // Cuvedev, Development, download, plugin, Wordpress
So, I finally submitted my first plugin to the WordPress plugin base.
It’s a plugin which add functionality to request visitors authentication before the website can be viewed. It doesn’t use HTTP Authentication, just php and html.
You can choose to use the WordPress authentication functionality to login, or give a password yourself.
Try it out, and give some feedback.
Link to Basic Authentication plugin
– Update:
Now compatible with WordPress 3.3
Boxee on Ubuntu Lucid Minimal on Asrock ION 330
// juni 30th, 2010 // 7 Comments » // Boxee, Bugs, Cuvedev, Linux, Ubuntu
Yesterday I performed a clean install from Ubuntu Lucid Lynx Minimal on my Asrock Ion 330.
I followed this guide like I did last time (for an earlier version of Ubuntu Minimal) but I encountered some problems.
Here’s how I solved them.
In chapter “Updating the computer”, change in the sources.list hardy or intreprid or jaunty by “lucid”.
No problems in “Install sound”.
The real problems came in “Installing the graphical environment”.
When I wanted to install the latest driver for my ION graphics card I always got this error:
ERROR: Unable to load the kernel module ‘nvidia.ko’. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
‘kernel-source’ rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
‘–kernel-source-path’ commandline option.
It took me a while before I found this solution:
Make the file (or edit the file if it already exists) /etc/default/linux-restricted-modules-common
and add this content:
DISABLED_MODULES=”nv nvidia_new”
Now you should be able to run the installer without problems.
Another small problem was, logging in automatically. In earlier releases of Ubuntu you had to change some commands in /etc/event.d/tty1 (according to the guide mentioned earlier), but in Ubuntu Lucid, the event.d folder doesn’t exist anymore, and you have to put it in /etc/init/ instead.
Good Luck!
Updates Like-buttons and static header
// juni 8th, 2010 // 2 Comments » // Cuvedev, Facebook, Greasemonkey, Netlog, Userscript
Since Netlog version 6 is live on most languages, it was time to update my userscripts for Netlog.
So here are the updated versions for the Facebook Like-buttons and the static header.
Facebook Like-buttons:
The buttons now appear under the user skinbar on all profile pages (blogs, photos, sets, …) from users, groups and brands.
There still is an issue with ajax browsing, but I’ll try to fix that as soon as possible.
Download

Static header:
No remarks here, just download and enjoy!
Download

Downloads:
Like Buttons (netlog6_like_0.2.user.js)
Static Header (netlog6_topbar_0.1.user.js)
Facebook Like-button on Netlog
// mei 3rd, 2010 // No Comments » // Cuvedev, Development, Facebook, Greasemonkey, Netlog, script, Userscript
I just finished another userscript/greasemonkey script for Netlog.
Since Facebook made their ‘like’ button public, I thought it would be a nice idea, to share your favorite photos, links, videos and blogs from Netlog, on facebook.
This might direct more visitors to Netlog, and some may even be convinced to register.
Download below. Watch out, it’s still in beta.
One known bug is that the script doesn’t really work together with the ajax photo browsing.
Note, make sure your Netlog profile and the item you’re liking is accessible when not logged-in (otherwise Facebook can’t handle it)
Tested on Firefox 3.6.3 and Chrome 5.0.375.28 dev
Note: Firefox users need the Greasemonkey plugin!
Enjoy!
Download:
netlog_like.user.js (0.4, beta)
UPDATE:
Newer version available
Thx to Jochen Delabie and Oemebamo for the remarks






