JavaScript Prototypal Inheritance

Are you struggling to understand Javascript Prototypal Inheritance?

Andrea Giammarchi has written an article covering different aspects of it.

Contents

  • Summary
  • Object
  • prototype basis
  • Object.prototype … forbidden?!
  • Classes and classical inheritance basis
  • A better classical inheritance with an intermediate constructor
  • Never forget the constructor property!
  • Privileged properties and methods
  • Private methods
  • Private properties
  • Protected properties and methods
  • Anonymous instance as prototype
  • Native constructors exception
  • Classical inheritance patterns
  • A better extend function proposal
  • Some post it

I haven’t had time to read through it yet, but am pretty sure it will be a good read, there are lots of example snippets for you to look at to get a better understanding of the topic.

http://www.3site.eu/doc/

PS3 - Call of Duty 4 Patch Finally Out

Yeah, I know I am COD4 crazy at the moment, but it’s just that damn good ;)

Anyway, we PS3ers have been waiting a long time for this patch to come out, Xbox got it way before us, for some reason Sony likes to take their time, though I do have a theory about why it took so long…

About a month or so ago, someone claimed to have exploited the PS3 so they can cheat at COD4:MW online. They recorded a video of them self playing with cheats (aimbot, compass modifications etc). If anyone knows how computers work, they know that the PS3 is basically like any other computer, it’s just a matter of finding holes in the system or game so you can exploit it, which is what this person done. Basically the person injected some code into the save data files which allowed him to flag certain things on, change some values etc. Overall it was pretty simple, probably that simple it was overlooked by people who were trying to figure it out. Anyway, the person reported it to Infinity Ward (creators of COD4), though some how people started to figure it out, and it was released to the public.

Not sure on the exact dates of when the patch was sent to Sony (EU), though I have a guess it was before the exploit was reported, and it would make sense as to why the patch has took so much longer. I have a feeling that IW requested the patch to be rejected so they could quickly implement a quick fix to the exploit. I could be wrong, might just be Sony being so damn slow.

Anyway, the patch has fixed the exploit, so as of now, there is no one using the exploit online, though am pretty sure it won’t be too much longer until someone finds another exploit, it seems to happen with all other games.

Here is a list of the changes / additions to the patch, overall it’s nice, though there still are problems.

New Kill Cams - Everything that can kill you has a Kill Cam now. Grenades, Airstrikes, Claymores, C4, M203 Rounds, RPGs, anything. So jump online, get owned alittle and check them out. They’re awesome, especially Grenades and M203 shots that go across the map and through a window.

Host Migration - Host migration was added, so now when the host leaves you won’t get dropped back to your own lobby by yourself. Everyone will stay together. Host Leaves, everyone returns to lobby, selects next best host, and the game starts up again. No more re-inviting, re-partying up because a host ended the game.

Improved Sniper Accuracy - The Sniper rifle accuracy has been improved. No more, WTF? shots now. Your cross hair will be a better representation of where your shot will ultimately land. Try out a sniper class today, let us know how the new accuracy feels.

Improved ACOG Scope Accuracy - ACOG scopes accuracy on any weapon has been improved. Test it out, throw it on one of your classes and give it a go.

Upgraded Spectator Cam - Now when you’re a spectator you have the option to follow in 3rd person or 1st person. As well as rotate 360 degrees around the player you’re watching. Next time you’re dead in Search and Destroy and just watching your team mates do stuff you know you can do better, now do it in 1st person or rotate around them.

Quick Mute Option - Now you can easily and quickly mute players in-game without ever going through the Xbox Live blades. Just go to their gamertag on screen and hit ‘A’ to quick mute via the in-game scoreboard if playing. Quick. Easy. Salvation!

In addition to these feature additions there will also be:

Improved Network Performance For Larger Games - 18 player games now require more bandwidth to host, resulting in smoother performance for players.

Optimized Server Selection for First Match - Server selection is now optimized to select best bandwidth servers associated by LSP.

Fixed “Playlist Older Than Host” Error
- Player will no longer get this error when entering games.

Additional Start Spawn Locations in All Maps
- Added a minimum of 9 extra start spawns on each side of all maps.

Coming soon in April, there will be 4 new maps, though they won’t be free.

Call of Duty 4 Gun Sounds

lol, check this out, must have took a lot of time.

FPS Games For The PS3

Right now I am really into First Person Shooting games, and am extremely addicted to Call of Duty 4:Modern Warfare. Last month I thought I would buy another FPS game, which was Medal of Honour: Airborne. Compared to Call of Duty, it really sucked, just wasn’t my cup of tea.

Today I thought I would buy Unreal Tournament 3, it had good reviews, so I was expecting something amazing. I played it for about 2 hours, though I didn’t enjoy it as much as Call of Duty.

So yeah, looks like that’s another game which I will never play, lol. It’s going to be a while before anything can match Call of Duty, maybe BattleField Bad Company can.

Sniffing PS3

Recently I have been trying to sniff the PS3. No, it’s not some new fetish, I am sniffing the packets. Problem is, I never get anything from the PS3, I have tried it with the browser, and with an online game, still nothing. I use Wireshark, and it works fine, but for some reason I just can’t capture anything from the PS3.

Last night I tried to get the PS3 to share my laptop connection (Internet Connection Sharing), but no joy. I have read tons of articles on how to do it, but nothing will work.

What’s my reason for capturing the PS3?

I do have a good reason for doing it, though don’t wish to share why, or more specifically what I am trying to capture, as it will be a new project for me to allow the gaming community to use.

Has anyone else got any ideas? I have heard about something called a “CrossOver Cable”, but haven’t looked into that yet.

My setup is:

BT Home Hub
WLAN Card for laptop

So everything is wireless, PS3 connects to the hub, and the laptop connects to the hub via WLAN card. Some how I need to make the PS3 connect to my laptop so I can capture all the data.

WordPress 2.3.3

WordPress 2.3.3 is an urgent security release. If you have registration enabled a flaw was found in the XML-RPC implementation such that a specially crafted request would allow a user to edit posts of other users on that blog. In addition to fixing this security flaw, 2.3.3 fixes a few minor bugs. If you are interested only in the security fix, download the fixed version of xmlrpc.php and copy it over your existing xmlrpc.php.

http://wordpress.org/development/2008/02/wordpress-233/

Call of Duty 4:Modern Warfare Patch

Since I bought COD4:MW, I have played it none stop, it is a highly addictive multiplayer game. Up until 2 days ago, there were problems for the PS3. Sometimes it would take a long time to get in to a game. IW (Infinity Ward - Creators of the game) has been working on a patch which was released Friday, and I must say, getting into a game is a lot quicker. Not only that, EU can now play against other PS3 players.

What I am looking forward to the most, is extra kill cams, new maps, and a few bug fixes. Have a read of this post for information…

http://iamfourzerotwo.com

Awesome news if you are a COD fan.

Call of Duty 4:Modern Warfare

I bought this game a few days ago for my PS3, it’s bloody brilliant. Little disappointed with the single player being rather short, though it was fun. 99% of my time is spent playing online (multi-player) in various game modes (Free For All, Team Deathmatch etc). This is the first time I have ever played a game online against other people.

I won’t give you a review, Eternity from ProVision, and IGN sums it all up…

Vision Press - Game Review
IGN - Game Review

I am addicted to it. I have played it non-stop since I got it. I never thought I would play a FPS that would beat Goldeneye on the N64, now I have.

I seriously recommend this game.

cod4.jpg

Wii - Mario & Sonic at the Olympic Games

I bought this game Monday, and all I can say it is extremely tiring. I don’t really like it, as soon as I started playing it, I just wasn’t happy with it. I tried for ages on some events, but it just got really boring, and my arms felt like they were about to drop off.

There is a good side to it, and that is multi-player. I roped my sister into having a go, and she just loves it. It’s pretty fun when you are playing against others, but playing the game on your own just isn’t fun.

If you are into sweating while playing your games, then get it.

Playstation 3 - VT3 + FPS

So about a month or so ago, I brought myself a Playstation 3 which came bundled with Virtua Tennis 3. I did a lot of reading up about the PS3, most of it was bad, a lot of people were recommending the Xbox 360. I decided I would go with the PS3, considering I really enjoyed the PS2.

So now a month later; I still only have Virtua Tennis 3, I wanted to get full use out of that game, though now I have got extremely bored of it, as I spent most of my time diving around the court trying to reach the ball. I look forward to seeing if the game Top Spin (not out yet?) does better.

I now am trying to decide on what game to buy next. I really want Unreal Tournament III, but that doesn’t look like it will get released here until March :( . Another game I have been reading up on is Call of Duty 4: Modern Warfare (think it’s called that), which looks great. I have always liked first person shooters since I played Goldeneye and Perfect Dark on the N64. I had Red Faction for the PS2 which was just awesome, I loved that way you could damage the environment around you, something I haven’t read about for any of the PS3 FPS games.

Any recommendations?