-
Windows XP Update – Fix error 80070420
February 12th, 2010
A few days ago, I was updating Windows XP and got the Windows Update error 80070420. Here is a method on how to fix it. Take the following steps:
- Go to Start, Control Panel
- Open Add / Remove Programs
- Search for the following:
- If you see the above item, click Remove. Reboot your computer afterwards. If you don’t see the link, proceed to the next step.
- Open the following link and install the software: http://www.microsoft.com/downloads/details.aspx?familyid=889482fc-5f56-4a38-b838-de776fd4138c&displaylang=en
- Reboot your computer.
- Try Windows XP update again.
The problem should now be solved!
-
Windows Vista Update – Error 8024D00F
September 21st, 2008
A few weeks ago, I had a problem while updating a brand new Dell laptop with Windows Vista on it. Anyway, while I was updating Windows Vista through Windows Vista Update, I got the following error:
Windows Vista Update failed with Error 8024D00F
Here is a solution for this problem:
- Click on Start
- Go to Programs -> Accessories
- Right click on Command Prompt and choose “Run as Administrator”
Then type the following and press enter:
reg delete HKLM\Components /v AdvancedInstallersNeedResolving
After this, reboot your computer. Windows Vista Update will now work fine!
-
Get the week number with JavaScript
October 26th, 2007
A few days ago I needed to code a little calendar in JavaScript. While I was doing this, I needed a piece of code to get the week number of a date.
If you, for example, need to get the day of the month with JavaScript you can use this:
var mydate = new Date();
month = mydate.getMonth();
I wanted to get a ISO 8601 week number with the same method. You can use this piece of code to get this actually working:<script type="text/javascript"> Date.prototype.getWeek = function() { var determinedate = new Date(); determinedate.setFullYear(this.getFullYear(), this.getMonth(), this.getDate()); var D = determinedate.getDay(); if(D == 0) D = 7; determinedate.setDate(determinedate.getDate() + (4 - D)); var YN = determinedate.getFullYear(); var ZBDoCY = Math.floor((determinedate.getTime() - new Date(YN, 0, 1, -6)) / 86400000); var WN = 1 + Math.floor(ZBDoCY / 7); return WN; } </script>Example – Get the week number of the current day:
<script type="text/javascript">
var mydate = new Date();
var weeknumber = mydate.getWeek();
</script>Example – Get the week number of 2 May 2008:
<script type="text/javascript">
var 2may2008 = new Date();
2may2008.setFullYear(2008, 4, 2);
var weeknumber = 2may2008.getWeek();
</script>
I tested the above method on IE 6+ and FF 2 and it works perfectly.
-
I read a lot about the speed of programming languages that can be used for web apps lately. A lot of people think Ruby is cool because it’s so easy to build stuff. On the other hand, it will be probably be very slow. This is the same for everything that’s build in ASP and .NET. The last language can’t even be called a proper language, it’s just pure crap.
The main thing everyone is discussing about is how fast a language is once you’ve written a program. I still think you need to choose the right tool for the job, but I think PHP is great. It’s easy to program and it can do virtually anything. ( In comparison to other languages that are commonly used for web apps ). Maybe I will give Python a go in the future too. Anyway, one of the big reasons people would not use PHP for their web apps is the speed. PHP isn’t the fastest language there is, no. So I thought: how can I improve this speed?
Read the rest of this entry » -
PhpMyAdmin problems after upgrading to Ubuntu Feisty
May 28th, 2007
Just a quick post about a problem I had a few days ago.
I noticed after upgrading to Ubuntu Feisty from Ubuntu Edgy the last time, PhpMyAdmin didn’t work anymore. I got the following error:
#1045 - Access denied for user: 'www-data@localhost' (Using password: YES)
-
Creating PHP cronjobs without cron and php-cli
May 22nd, 2007
Yesterday my internet connection was down due a problem with the line. It’s often when I don’t have a connection to the internet I come up with good idea’s.
A while ago I read in a blogpost that someone had a problem with wp-cron.php. It brought the server of the blogger to his knees. It was a bug in wp-cron.php that caused Wordpress to keep starting these jobs bringing the webserver down. I don’t know if this bug is fixed now but I thought it would be one of those things you would check while progging the code.
Read the rest of this entry »