Archive for November, 2009

Naruto (Chapter 473) and Bleach (Chapter 383)

Friday, November 27th, 2009

…and this week’s Naruto and Bleach manga just came out as well.

Did Kisame actually just get wtfpwned by Bee and his brother? That combo attack definitely looked like a room full of hurt. Bee’s pencil-throwing skills are pretty awesome too. :P

Not much to say on that chapter, except that it definitely seemed like deus ex machina at work (with Raikage et. al. saving the day). I suppose they did have a logical explanation since Kisame’s ability was so not stealthy. …and what’s this, Sai speaking up for Sakura?

Kenpachi’s and Byakuya’s fight with Yammy in Bleach just got more interesting. It would have been boring if the latter died without doing anything. :P He probably still doesn’t have a chance though, with three captains (none of them using anywhere near their full strength) watching him. I wouldn’t be surprised if Yammy blew up like a bomb as a result of anger (think Deidara in Naruto). :P

Looks like Tōsen and Gin may have gotten hollow powers as well. The shinigami in the fake Karakura Town are so screwed.

Weekly Dose of Anime

Friday, November 27th, 2009

I’ve just finished watching episode 247 of Bleach which is a continuation of the current filler arc. As expected, we didn’t get to see any new sword abilities (Ryūjin Jakka actually did torch things with mere fire, haha). It was definitely a clever plot twist, having Muramasa tell the Zanpakutō to merely stall for time; epic fights were not necessary to advance the storyline.

…and Ichigo falls into yet another trap. Go figure. You’d think Muramasa’s taunting would be enough to ring some bells, but nooo… Everyone else picked up on something suspicious – heck, even Kenpachi knew (though he didn’t give a crap and just wanted to blow things away :P ).

As for Naruto, we finally get to see the fight between Sasuke and Itachi. I was kind of expecting something more…mindblowing, but I suppose you take what you can get. Next week’s episode will definitely be interesting as that mini-arc reaches its conclusion; we’ll get to see Sasuke’s Kirin and Itachi’s Susanoo.

I also found out that there’s a new adaptation of InuYasha picking up from where the original anime left off and continuing to the last chapter of the manga. That’s actually pretty awesome news, as the last few episodes of the original were terribad; there were so many loose ends and it was really obvious that the show was unfinished. I actually picked up the manga right after episode 167 since it left such a bad taste in my mouth. :P

The only negative thing I can say so far is that the new episodes had very little background for those who haven’t followed the original series. I mean, we saw Kagura get killed off 2 episodes in, and she was definitely one of the more interesting characters (few others have had to deal with complex decisions – it’s almost like there was a clear cut between black and white).

I’m not entirely sure how long this “season” will last either. The previous adaptation only reached about halfway through the manga and it had 167 episodes. However, Shōnen Sunday announced that there were only going to be 26 episodes. I’m not sure if I believe that or not, since it’s going to be hard to cram everything in that period of time. Well, as long as we get a decent ending this time around…

Feedback and its Effect on Educational Quality

Wednesday, November 25th, 2009

Apparently yesterday was evaluation day for all of my courses at UW this term. We get to fill in a sheet of paper for each class, rating the instructor and the course on various criteria. Most of it is multiple choice (so we don’t have to think too hard :P ) with a few short answers. These evaluations are supposed to be feedback for the staff to improve the course in future offerings.

That’s nice. My question is, does it really matter? How much consideration is even given to those forms? Is there even a third party inspecting them and taking proper action? After all, those evaluations could easily be a facade, an illusion to make us think that our opinions matter.

Sure, there are many good (nay, even great) instructors at UW who strive to improve themselves and their course offerings. On the flip side of the coin, there are those who seemingly couldn’t care less about the class (perhaps they were forced to teach a topic they disliked or something). Now, I won’t question their intelligence; they’re obviously insanely smart to get where they are. It’s just that there are people who are better suited at imparting knowledge upon others.

At TED2009 last February, Bill Gates spoke about education (and malaria, but that’s out of the scope of this post :P ). While I believe his focus was on primary and secondary education, several of the points he made are still relevant at the college and university level. What kind of process do lecturers undergo to improve their teaching? How are they rewarded for doing well?

Gates mentioned how video can improve quality of education as a whole. It can be used as a feedback mechanism and gives students another resource to learn / study from; an example of this is the OpenCourseWare project at MIT. Funny that technology use at UW seems to be sorely lacking given its reputation in the area. :P I mean, only recently was video recording equipment added to classrooms (and only a few). Even my high school in a rather small town made use of that particular piece of technology before UW did. Blah.

I figure, given the recent referendums on a new student complex, a health services building and the reinstatement of a radio service fee, we should have one on installing new equipment in existing classrooms. Something like that might actually have a measurable impact on student performance. Heck, it might even get people involved in some decision-making process – kind of important given the amount of student apathy in recent years.

I probably deviated from what I wanted to rant about, but whatever… Something to think about at least. :P

Blog Claim on Technorati

Wednesday, November 25th, 2009

This is just a quick post for Technorati to verify that I am indeed the owner of this blog. ;)

Claim Code: 8YB9TVZPAN83

Is it just me, or has Technorati been pretty slow to respond ever since they relaunched their site? Ah well, I suppose that backlog must have been huge.

A Brief Overview of Google Wave

Friday, November 20th, 2009

A friend of mine recently sent over a Google Wave invite, so naturally I went and checked it out. :P Here’s my impressions of it so far…

From Wikipedia, Google Wave is a communication and collaboration tool designed to merge common networking applications like e-mail, instant messaging and more. It works in real-time, so people can see what others are contributing as they write.

Each “wave” is essentially a thread (analogous to forum topics and chained emails) where people can jump in anywhere to add content. Some examples of use can be found on a page published by Google. I won’t go too much into detail on that, since I haven’t had the chance to use it in such an environment. :P

What’s interesting about Wave (or at least the Wave protocol) is that most of the code will be released as open source. As such, developers can join in and add their own applications/extensions, making the whole works even more useful. In terms of functionality, it obviously surpasses e-mail (and I believe one of Google’s goals is to supplant it with the Wave protocol).

Will Wave be successful? Sure. I can definitely see people using it in collaborative environments (say, working on a large project at work :P ). It may even replace certain social networking applications given the right extensions. However, a goal like replacing e-mail and instant messaging… I dunno. What’s great about them is their simplicity; if I want to get a point across, I can quickly shoot off a block of text. In addition, pretty much everyone who uses the internet knows about e-mail; the same can’t be said of new gadgets like social networks and whatnot.

I suppose as the general populace becomes more technically adept, they’ll begin to see the benefits of using stuff like Google Wave. What will really make or break the protocol is how readily people are willing to accept it in lieu of traditional tools. Some sort of backward-compatibility with widely-used applications would surely go a long way in gaining acceptance.

Bleach (Episode 246)

Friday, November 20th, 2009

I’ve just finished watching episode 246 of Bleach and there are definitely some hilarious moments in it. Kenpachi and Yachiru getting lost (again) was to be expected.

As usual, Ichigo falls into another trap and escapes with his bankai. Why doesn’t he just use his hollow mask and wtfpwn everyone in his way? I suppose that would be too boring; all of the fights would last something like two minutes. ;) It’ll be interesting to see how Ukitake and Kyōraku pull off their battles though, without revealing anything unseen in the manga; chances are there’s going to be a lot of kido spells flying around. Unfortunately, following that logic we probably won’t see Minazuki do anything this arc either. Bah.

In any case, these past few episodes were actually pretty good for a filler arc. :P

Dragon Age: Origins – Technical Issues

Thursday, November 19th, 2009

Wow, just from looking at the official BioWare forums, I can see that a lot of people are having problems with Dragon Age. I mean, approximately 20% of the forum’s topics reside in the technical support category. Granted, there probably are a lot of duplicate posts on similar issues (in addition to general stupidity – though this isn’t as likely given the game is rated M).

It seems like most of the problems are because of differences in hardware/software or general misconfiguration. There definitely is an advantage to making games solely for consoles (homogeneous hardware, plug-and-play, etc.), but that’s a topic for another day…

As for me, I’ve had relatively few problems getting the game up and running. Sometimes when I’ve Alt-Tabbed to another window though, the game freezes and unexpectedly quits when I try to resume. This gets annoying, but it happens so infrequently that I’m willing to overlook it. Indeed, once I got into the habit of saving often (which is a good idea in case the plotline doesn’t go the way you want it to :P ), I lost very little time when I do get booted.

It looks like the online player profile system is still having issues as well. Last week, it was having problems updating – sometimes taking as much as 5 days before changes are recorded. Now it appears that BioWare is doing maintenance on the whole works as certain sections (like managing screenshots) can’t be accessed. Hopefully they can get it working smoothly again. I think part of the problem was that their servers couldn’t handle the load right after the game launched (as everyone was creating characters at the same time). Perhaps a queuing system or some sort of load distribution mechanism should’ve been implemented (assuming it hasn’t already). Eh, whatever.

The game is still awesome, for what it’s worth. :P

Naruto (Chapter 472)

Thursday, November 19th, 2009

Looks like chapter 472 of Naruto is out early this week. :)

I was hoping for a slightly prolonged fight between Bee and Kisame, but this was certainly an interesting turn of events. I suppose Samehada really is the source of Kisame’s power, if even he can’t fully control it.

Now, I wonder what would happen if Bee fuses with Samehada… ;) Come to think of it, wasn’t separating Kisame and Samehada part of Bee/Hachibi’s plan?

Numb3rs (Season 6, Episode 8) – “Ultimatum”

Wednesday, November 18th, 2009

Television is one of those things that I’ve largely abandoned over time. It’s not that it ever had that much influence over me however; I’ve always been more interested in computers because of the extra interaction required. However, Numb3rs is just one of those shows that I’ll gladly go out of my way to watch. Indeed, it’s one of the few series that I actually follow on a consistent basis.

I’ve noticed that Numb3rs has adopted a slightly different style this season, with different camera angles and interesting cold opens (such as a previous episode starting off with someone getting zapped by a “UFO” :P ). It definitely makes for a nice entertaining change.

The C-start reflex in action.

The C-start reflex in action.

Anyway, this episode starts off with Charlie Epps giving a lecture on pursuit-evasion to various people at the FBI. In pursuit-evasion, one group attempts to track down another as the latter tries to escape. Charlie mentions that a pursuer can change the rules of a chase by introducing extra variables such as canines and helicopters. He also continues by saying that pursuers must predict the actions of their target (without being predictable themselves), using a snake and a fish (referencing the C-start reflex) as an analogy.

In a separate scene, Ian Edgerton (FBI agent and brilliant sniper) tracks down a person (Vincent Costello) holding information that may be vital in shutting down a drug kingpin (Xavier Salazar) operating from behind bars. He catches his target by predicting the latter’s actions and begins to extract information on Salazar’s bookkeeper, Felipe Garcia. It turns out that said target didn’t really have sufficient knowledge and promised to find out more. In the end, Costello was killed by Salazar’s supporters, framing Ian for the murder.

Inside the prison, Ian discusses the details of why he was at the scene with Don Eppes (Charlie’s brother and FBI agent) and Frank Thompson (U.S. marshal in charge of the prison). He goes into detail on how Garcia – a supposed escapee – was actually still inside the prison impersonating another inmate (trying to hide from Salazar). However, there was too much evidence against Ian (including the weapon used to kill Costello and several bank transfers to his account from suspicious sources). He was led to his cell but managed to escape, triggering a prison-wide lockdown.

Don and his team, along with the fugitive apprehension squad (led by Janet Galvin) at the prison, track down Ian without much success at first. It turns out that Ian was hiding out in the vents; Don and Colby Granger find out about this fact after taking a look at the building’s blueprints and begin to scout the entire penitentiary. When they probe into a suspicious room, however, Ian gets a jump on them and takes Colby hostage.

Charlie explains the longitudinal socializing process.

Charlie explains the longitudinal socializing process.

Ian demands to get a hold of Charlie via video to utilize the latter’s mathematical knowledge in tracing Garcia. After getting some insight on the problem, Charlie proposes the longitudinal socializing process to search for the most beneficial patterns and behaviours – that is, the alliances that Garcia may have established to prevent being tracked down by Salazar. The FBI then begins searching for Garcia’s most likely associates at the prison.

In the meantime, Don questions his own instincts (on whether he should have shot Ian to save Colby). However, Charlie says that it may just have been self-preservation, that Don has doubts of Ian’s malicious intent. Colby and Ian wearily discuss philosophy while awaiting for something to happen.

David Sinclair finds out that Garcia has requested for a transfer (to a different prison) multiple times, each of which were rejected at the last minute by Frank. This automatically rings some bells, so David asks what was going on. His concerns were shrugged off, however, and the apprehension squad heads off to blow open a path to Ian with a bomb. A moment later, Charlie relays to David and the others that Garcia was located in the maximum security area.

Ian and Colby are alerted of this news by David. Colby was also made aware (through a distress word) of Frank’s intention to breach. They discuss the fact that Salazar couldn’t operate without help from inside the prison and that it was likely the reason why Frank was so eager to break in without listening to Garcia. The lights in the room turn red…

Ian – “So you’ve got to ask yourself Granger: why’s Thompson pushing to make entry? Why wouldn’t he at least listen to what Garcia has to say? He wants to protect himself and now he’s gotta kill me.” Frees Colby and hands over his gun. “Just the facts.”
ColbyResigned expression. “Just the facts…”

Thompson and his team detonate the bomb, making a rather large hole into the wall. Colby pretends to apprehend Ian in order to prevent any bloodshed. At the same time, Don and Nikki Betancourt rush to the maximum security wing where Galvin was making her move. During the breach earlier, Galvin had gone off to free Salazar and told him of Garcia’s location (it turns out that she was working for Salazar for the past two years). Don and Nikki make it just in time, with the former shooting Salazar in the back and the latter apprehending Galvin.

In the end, Ian’s name was cleared and Don’s gut instinct confirmed. As for the episode name, it was derived from the ultimatum game (giving an explanation to Ian’s behaviour – he was willing to inflict damage to himself to punish another).

Don – “Why am I always going to bed when everyone else is waking up?”
Charlie – “Well, at least this time you’re not alone, I’m right here with ya.”

Don – “Hey, Ian bet his life on you, kid.”
Charlie – “You can say the same thing about you.”
Don – “Sure that’s why I didn’t pull the trigger?”
Charlie – “Aw, I’d bet my life on it.”

How to move the site root to a subdirectory on cPanel-based web hosts

Sunday, November 15th, 2009

I’m going to start off by saying that I’m rather picky about how files and folders are organized on a computer. For my own site structure, I’ve placed each subdomain into its own directory. Many hosts using cPanel (like BlueHost and HostMonster) allow you to set the directory where the subdomain’s files can be placed. However, it is not immediately obvious how you can accomplish the same with the root domain. By default it is mapped to the /www (/public_html) folder and there are no options in cPanel that allow you to change this. Good thing there’s an alternative solution. :)

For this to work, you must be running Apache as your web server (I suppose IIS should have a similar method, but eh…) and have mod_rewrite enabled. We’ll be creating (or adding to) a .htaccess file as follows:

1
2
3
4
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$
RewriteCond %{REQUEST_URI} !^/subdir/
RewriteRule ^(.*)$ /subdir/$1

The first line turns the runtime rewriting engine on to allow for modifications. The second line determines whether the request came from “www.domain.com” or “domain.com”; this is to prevent rewriting the URLs of any subdomains you might have. The condition after checks to see whether the request has already been redirected to the subdirectory. If not, then the rewriting rule is executed to make it so.

The above code is sufficient if all you want is to move files from “/www/” to a subdirectory “/www/subdir/”. However, Apache is quirky in that it requires a trailing slash at the end of directory names (to specify that it is indeed a directory). Normally this isn’t a problem since there is a module (mod_dir) that automagically redirects a path without a trailing slash to one that does. However, it conflicts with the above code in this case: first a request is directed to a subdirectory and then mod_dir issues another redirect, exposing the subdirectory name. For example, a request for “http://irythia.com/somefolderhere” will become “http://irythia.com/subdir/somefolderhere/”.

Note: mod_dir only executes if there isn’t a trailing slash on directory names, so if you qualify URLs with one the rules above work as expected. That is, “http://irythia.com/somefolderhere/” won’t change.

To fix this problem, we add another rule to append a trailing slash on all URLs ending in directory names.

1
2
3
4
5
6
7
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$
RewriteCond %{REQUEST_URI} !(/|\.[^/]*)$
RewriteRule (.*) http://www.domain.com/$1/ [L,R=301]
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$
RewriteCond %{REQUEST_URI} !^/subdir/
RewriteRule ^(.*)$ /subdir/$1

Note the additions in lines 2-4. Again, line 2 checks to see whether the request came from “www.domain.com” or “domain.com”. Line 3 checks to see if the URI ends in a directory by filtering out file extensions (i.e. .php, .html, .js, .css, etc.). It also checks to see if there isn’t already a trailing slash. Finally, we rewrite the URL. The [L,R=301] flag tells Apache to not execute any more rules and do a permanent redirect.

And that’s that. Upload the .htaccess file to the root web directory (/www or /public_html) and you’re good to go.

Some final notes: this is essentially a hack to work around limitations imposed by many web hosts; there are probably better methods if you have direct access to the server. Since it is a hack, it might not work on all sites without modification; this post is pretty much a reference for myself. As well, there is likely some performance penalty (as minor as it is) because the .htaccess file rewrites all requests that hit the domain. Of course, if you were that worried about performance, you wouldn’t be running on a shared host anyway. :P