So I am back from my holiday with my parents, I had a fun time in Freudenstad. For those who want to be picky, yes I have been home for almost two weeks now. The first of the two weeks doesn't count, for I was home in the literal sense, but practically I wasn't.
Just about every day I left home at 8.25 and went to Kinderdorp (Children's village). When it was time for dinner I made sure I was home, and about half of the days I left after dinner back to Kinderdorp. From 9 am to 4 pm I was busy doing all kinds of things in the café of Kinderdorp. When the children left at four the adults were left and a lot of talking and drinking was done.
The second week (the one we're at the end of right now) I needed to get back my strength :P. Well
I just sat behind my computer a lot and took life easy for a week. I finished my first try on the single player campaign of Dark Messiah of Might and Magic (amazing game!). The game is a "first person action rpg". Basically shooter and rpg, but then in a medieval/magical setting. Swordfights were your sword and your opponent's are against each other, the game has really good gameplay. Also the game doesn't use the standard classes-system, but instead let's you spend points as you wish. That way I had a guy that used the strong bits of magic in the early game, but later in the game I turned into a more fighter-like style. When I was finished I didn't have enough yet :P and I created a pure fighter (with a healing spell xD) at the hard difficulty, but that one I have finished as well now. Next will be a wizard at insane, but that's not right now...
So... today I am getting my school books and Monday I will get my lesson table - life is starting to spin at full speed once again. I'll see if I can post a bit more often now, as I do like posting here.
Friday, August 31, 2007
Thursday, August 2, 2007
Home Again
So I am home again (I never told you I was gone, shame on me!). I had a wonderful ten days in Berlin with the scouts. Only a very small part of the group went (partly due to the world Jamboree), but this may even have had a positive influence on the atmosphere...
Anyway, I home now, but nor for long - I am leaving again tomorrow (I arrived two days ago so I have two full days here and two more "bits of a day".
Anyway, I am exploring the possibilities of the new video card I bought just before holiday. And for the coming holiday I armed myself with Harry Potter 7 (Deathly Hallows) and Soul of the Fire (Sword of Truth series part 5 (out of... a lot :P)).
Anyway, I am refixing my iPod, after having taken it apart before leaving to camp. Of course I also intended to take it with me to there - but I thought I had lost a button. Today I found that I just had the button so I can fix okey this time (the right channel still won't work though...). I will need a set of ear buds before I can listen, however, so I will go and fix that right now.
Anyway, I home now, but nor for long - I am leaving again tomorrow (I arrived two days ago so I have two full days here and two more "bits of a day".
Anyway, I am exploring the possibilities of the new video card I bought just before holiday. And for the coming holiday I armed myself with Harry Potter 7 (Deathly Hallows) and Soul of the Fire (Sword of Truth series part 5 (out of... a lot :P)).
Anyway, I am refixing my iPod, after having taken it apart before leaving to camp. Of course I also intended to take it with me to there - but I thought I had lost a button. Today I found that I just had the button so I can fix okey this time (the right channel still won't work though...). I will need a set of ear buds before I can listen, however, so I will go and fix that right now.
Saturday, July 7, 2007
My two scripts
So, I did not post anything anything for quite a while.
Just to let you all know I fixed the script - it turned out that IE 7 actually uses xmlHttpRequest object, like all other browsers do and I had a variable set inside the xmlHttpRequest object-specific bit, while it should have been in the general bit. Moreover this was a function variable, which made it hard to discover the mistake.
The finished script, which is just a general script to make using the xmlHttpRequest, can be found here. Instructions are found inside the document, this does dramatically increase the size of the document, but if necessary you can cut it out - just the instructions not the notices and such, under the header NOTICE you will find directions what you can and what you can not cut out.
If the need arises to update the script, (there might still be a firefox-bug and there is no support for SEND requests yet) I will update the script at that location and post here that I made the changes. Though it might seem convenient to have your script tag point to it directly, PLEASE DO NOT DO THIS. Download the file and upload it again on your website, this leaves me without bandwidth stains and leaves you with less vulnerabilities (to attacks of mine, hehe).
I made yet another script - a batch script this time. It's a really, really simple script - so if you want to be sure it is nothing malicious, open it with wordpad. If you know something about DOS-commands you will see that it's really innocent (okey, it forces a delete, but that's the whole point of the script).
Okey, I lied, you do not need the file unless you are playing on a private server, private servers change and so your cache might be in the way (if your server crew has never said anything about emptying your cache, this file might not be for you).
Put this file in your WoW folder and run it instead of WoW.exe (or Launcher.exe). This makes sure that your cache is emptied before you start WoW, every time you start WoW. (Of course you might want to change your shortcut to this file and give it back it's icon by clicking on change icon and selecting WoW.exe there).
I hope either of these two scripts can help you, and if not, too bad :P
PS. if you want to link to one (or both) of these files, please link to this post, so I do not falsely identify you as a leecher.
Just to let you all know I fixed the script - it turned out that IE 7 actually uses xmlHttpRequest object, like all other browsers do and I had a variable set inside the xmlHttpRequest object-specific bit, while it should have been in the general bit. Moreover this was a function variable, which made it hard to discover the mistake.
The finished script, which is just a general script to make using the xmlHttpRequest, can be found here. Instructions are found inside the document, this does dramatically increase the size of the document, but if necessary you can cut it out - just the instructions not the notices and such, under the header NOTICE you will find directions what you can and what you can not cut out.
If the need arises to update the script, (there might still be a firefox-bug and there is no support for SEND requests yet) I will update the script at that location and post here that I made the changes. Though it might seem convenient to have your script tag point to it directly, PLEASE DO NOT DO THIS. Download the file and upload it again on your website, this leaves me without bandwidth stains and leaves you with less vulnerabilities (to attacks of mine, hehe).
I made yet another script - a batch script this time. It's a really, really simple script - so if you want to be sure it is nothing malicious, open it with wordpad. If you know something about DOS-commands you will see that it's really innocent (okey, it forces a delete, but that's the whole point of the script).
Okey, I lied, you do not need the file unless you are playing on a private server, private servers change and so your cache might be in the way (if your server crew has never said anything about emptying your cache, this file might not be for you).
Put this file in your WoW folder and run it instead of WoW.exe (or Launcher.exe). This makes sure that your cache is emptied before you start WoW, every time you start WoW. (Of course you might want to change your shortcut to this file and give it back it's icon by clicking on change icon and selecting WoW.exe there).
I hope either of these two scripts can help you, and if not, too bad :P
PS. if you want to link to one (or both) of these files, please link to this post, so I do not falsely identify you as a leecher.
Saturday, June 16, 2007
From an online game to a virtual machine
So I decided to get my gears back into a project that had been abandoned for almost a year now. An online game that I started as a school project, but I didn't really finish it at the time. I had been thinking of taking it up again a long time, but did not do so until now.
The first thing I was going to do was rewrite the protocol, I needed to make it more foolproof. For making it I had simply made a chat, just to design the way the client communicates with the server. I pulled this chat out of the closet and started working on it again.
I wanted smooth transitions back in the day, so I opted for using the xmlHttpRequest method. Big mistake. It's a nice method and gives nice results (and I love knowing quite a bit about it now), but it has been taking up quite a bit of time. Okey, maybe it was not such a big mistake, but it was probably not the right choice for a school project you are supposed to spend 10 hours on (I was intending to spend more on it anyway - when hobbies and school meet there is something to be gained :P).
Anyway, I was refining my protocols, so I was dabbling with the xmHttpRequest again. Cross-browser compatibility is the worst thing with it. But in the process I found out that IE 7 actually uses the syntax every other browser uses, unlike other versions of internet explorer. One big step forward, as my new code (this time I made better use of functions and put some 'libraries' in external files and made the code so that if any file does not reach it's destination the worst thing that can happen is text that is typed not appearing on the screen) worked with IE 7 immediately after designing it for Firefox. I had left in a bit that was different for IE, but as it turned out that was only needed for IE 6 and below. Unfortunately many people still use IE 6 and thus I want my site to be IE 6-compatible. So I went and started to adjust it. My first problem was a simple mislocation of a statement (inside the non-IE bit rather than just done no matter the browser). But I wasn't out of problems yet, there was some other problem as well, which I haven't fixed yet. I needed IE 6 to see what the problem was, but I only ran IE 7, and you can not have both at the same time.
I tried MultipleIEs an application that does let you run multiples, but I wasn't able to clear the cache there and you can not ctrl-f5 a js-file (yes in FF you can, but not in IE). The big plus was that I had already installed some IE-javascript debugger (some other m$ product that dual-functioned? The debugger I tried to install last year when working on this project?). Anyway I decided to go for the one other option, making a virtual pc and running IE 6 on that (there are special images for this).
So I looked up Microsoft Virtual PC (I knew how to use it, I had dabbled with a earlier trial version before) and you know what, it was F-R-E-E. Wow, that's the second (or even third) positive thing about Microsoft in this post.
To be honest I already knew it was free, as it was told on each of the pages that told me about this workaround for running more than one version of IE... but that's where I am now, downloaded the stuff and and installed it. Now I have to get the IE dev toolbar (a friend told me about this when trying to help me with this project) to my virtual pc as well as the mysterious debugger. Let's hope it works out.
The first thing I was going to do was rewrite the protocol, I needed to make it more foolproof. For making it I had simply made a chat, just to design the way the client communicates with the server. I pulled this chat out of the closet and started working on it again.
I wanted smooth transitions back in the day, so I opted for using the xmlHttpRequest method. Big mistake. It's a nice method and gives nice results (and I love knowing quite a bit about it now), but it has been taking up quite a bit of time. Okey, maybe it was not such a big mistake, but it was probably not the right choice for a school project you are supposed to spend 10 hours on (I was intending to spend more on it anyway - when hobbies and school meet there is something to be gained :P).
Anyway, I was refining my protocols, so I was dabbling with the xmHttpRequest again. Cross-browser compatibility is the worst thing with it. But in the process I found out that IE 7 actually uses the syntax every other browser uses, unlike other versions of internet explorer. One big step forward, as my new code (this time I made better use of functions and put some 'libraries' in external files and made the code so that if any file does not reach it's destination the worst thing that can happen is text that is typed not appearing on the screen) worked with IE 7 immediately after designing it for Firefox. I had left in a bit that was different for IE, but as it turned out that was only needed for IE 6 and below. Unfortunately many people still use IE 6 and thus I want my site to be IE 6-compatible. So I went and started to adjust it. My first problem was a simple mislocation of a statement (inside the non-IE bit rather than just done no matter the browser). But I wasn't out of problems yet, there was some other problem as well, which I haven't fixed yet. I needed IE 6 to see what the problem was, but I only ran IE 7, and you can not have both at the same time.
I tried MultipleIEs an application that does let you run multiples, but I wasn't able to clear the cache there and you can not ctrl-f5 a js-file (yes in FF you can, but not in IE). The big plus was that I had already installed some IE-javascript debugger (some other m$ product that dual-functioned? The debugger I tried to install last year when working on this project?). Anyway I decided to go for the one other option, making a virtual pc and running IE 6 on that (there are special images for this).
So I looked up Microsoft Virtual PC (I knew how to use it, I had dabbled with a earlier trial version before) and you know what, it was F-R-E-E. Wow, that's the second (or even third) positive thing about Microsoft in this post.
To be honest I already knew it was free, as it was told on each of the pages that told me about this workaround for running more than one version of IE... but that's where I am now, downloaded the stuff and and installed it. Now I have to get the IE dev toolbar (a friend told me about this when trying to help me with this project) to my virtual pc as well as the mysterious debugger. Let's hope it works out.
Subscribe to:
Posts (Atom)