Kenichi Maehashi's Blog

脳内コアダンプ

RSS
Category: Computer
The following Java code is grammatically correct, but cannot be formatted by Eclipse 3.4 / 3.5:
public class T1 {void a(){new T1(){;};}}
Interesting, isn't it?
Category: Info
You can now search my articles by using the "Search" form on the right side. The new system is powered by Google Custom Search, by which you can create personalized search engines at no cost. I've submitted a sitemap for all the articles on this blog, so older articles that are currently not in the Google database should show up in the search results before long.

Browsing by a category is still not available. You may try searching, for example, "Category:Computer" (don't forget to quote them) using the new search system, although the results won't be sorted by date.

I'm also planning to create a page which has links to popular articles - or articles that I think must be more popular ;-). This would be useful not only for most readers, but also for me!
Category: Info
If you're subscribing the RSS, you should have noticed that there was a small change in my blog - from Japanese to English ;-)

From now on, I've decided to write technical articles in English. The purpose of this attempt is to improve my English-writing skills and vocabularies. However, some articles may be in Japanese, according to how I feel at the moment and how much time I can spend on...

If you're using Japanese as a primary language, and if you would like to leave comments, you can do so in Japanese; I'll respond to them in Japanese. And for native English speakers, I'd be glad if you could point out any grammatical errors or unnatural expressions to me. Thanks in advance!
Category: Computer
On last Friday I did my presentation using Microsoft Office 2010 Beta running on Windows 7 Ultimate RC (it was an informal one of course!). Transitions and object animations are revised since 2007 and they are all cool. I also noticed that many bugs which exist in 2010 Technical Preview were also fixed - problem regarding transparency of images, for example. Its experience was totally better than 2007 so far.

The only problem is that the Office 2010 is still a bit heavy. Sometimes transitions between slides were not smooth enough even on my Core 2 Duo laptop...

Anyway I'm looking forward to using the final release version.
Category: Computer
Remote debugging is one of the most important feature of REALbasic Professional edition. If you have a SSH server running on the same subnet as the target computer, it is possible to debug between two computers on different networks, even if they only have private IP addresses. Here's how it works:

First of all, in the Preferences menu of REALbasic IDE, configure a new Debugging session as follows:

* Network Interface: Default
* Machine Name: Port Forwarding (or anything as you like)
* Address: localhost (or localhost:44553)

Secondly, run the Remote Debugger Stub (RDS) on the target computer.

Then, run the SSH client on the debugger computer as usual, but with two local and remote forwarding options:

-L 44553:<a private IP address of the target machine running RDS>:44553
-R <a private IP address of the SSH server>:13897:127.0.0.1:13897

Finally, choose "Project" > "Run Remotely" > "Port Forwarding" in the IDE. Now your program runs on the target machine and can be debugged remotely!

If you see the Runtime Error message box saying "could not locate the target IDE for debugging", maybe your SSH server is denying port forwarding requests on the remote side; you should configure the SSH server's "GatewayPorts" parameter (if you're using OpenSSH) to "clientspecified" or "yes" instead of "no" (which is the default) - note that the "root" privilege is required to change the configuration. You may also need to check the firewall configuration on both ends as well.