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!
WordPress plugin: Authentication
// July 25th, 2010 // 25 Comments » // Cuvedev, Development, Wordpress, download, plugin
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.
Boxee on Ubuntu Lucid Minimal on Asrock ION 330
// June 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
// June 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
// May 3rd, 2010 // No Comments » // Cuvedev, Development, Facebook, Greasemonkey, Netlog, Userscript, script
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
Gowalla API Class (php)
// April 14th, 2010 // 11 Comments » // Cuvedev, Development, api, gowalla, php
I just quickly made a class for accessing the Gowalla API because I needed it myself. I looked for an existing class on the internet but could only find some crappy stuff on Google Code.
So I decided to make one myself.
The use of the class is fairly simple. Include the class file (don’t forget to add you API-key), make an instance and do your calls.
The class internally uses CURL to do the requests to the server and returns the data as an associative array.
I tried to document the methods enough so it’s easy to use them.
Example:
<!--?php include('./class.gowalla.php'); $gowalla = new GowallaAPI(); $events = $gowalla--->getSpotEvents(846403); foreach ($events['activity'] as $event) { // do stuff } ?>
Feel free to download and comment.





