This is a short tutorial on how to put a button on your web site that when clicked, will take the visitor to the top of the page in a smooth animation.
You can see how the button works by looking at the right side of my site. There should be a button there. If there isn’t a button there, scroll down a bit and it should appear. Try clicking on it 🙂
Continue reading “Scroll to the top with jQuery!”
This blog post is old and the code is not up to date. Here’s a tutorial on how to connect the temperature sensor to your arduino. To send sensor data to the internet you need to use a service like COSM.
I’ve started tinkering with Arduino. My first real project was to connect a DS18B20 temperature sensor to Arduino. I have an ethernet shield on the arduino that uploads data to pachube.com.
The temperature sensor is protected by an old film case and is right outside my window. I wanted to have a web site where I can check the outside temperature so I found a small jQuery script that takes JSON data from my Pachube feed and outputs it on a small web site.
Here’s the pachube feed, and here’s the mobile web site. Get the code here.
I found a great web site the other day. WP-Snippets collects a bunch of useful snippets for WordPress devs. Check it out!
The past months I’ve been wanting to learn a bit more about web programming, so I set out to make some sort of game. What I thought would be easy was to make a text based adventure game. It didn’t turn out to be easy, but I’ve learnt a lot.
The game is very similar to the old text based adventure games, but the difference is that you don’t do any typing while playing. You click and drag items to interact. It makes it easier to play the game (people have less patience nowadays) and it is easier to play it on mobile devices.
My plan is to develop the game a bit more with feedback from the internets and also make a website with a WYSIWYG editor so people can create their own stories and share them with friends.
Oh, I almost forgot… you can play the game here.
In this tutorial you’ll learn how to make anchor links that scrolls the page smoothly using jQuery, scrollTo and localScroll.
If you have any questions, please write them in the comments below and I’ll try to help you 🙂
Continue reading “jQuery scrollTo & localscroll Tutorial”
When moving this site, I used WordPress DBmanager plugin to back up my database. I had trouble finding the path to mySQL and the mysqldump.
The path to the “files” are as follows.
To mysqldump: /Applications/MAMP/Library/bin/mysqldump
To mysql: /Applications/MAMP/Library/bin/mysql
Hope it will help someone 🙂