Showing workspace name on Eclipse
![]()
When working on Eclipse
, sometimes you want to know which workspace you are using. To show the workspace name on the title bar, use the following command-line option.
eclipse.exe -showLocation
How to access COM component within a project
I'm still using Visual Studio 2005 for some C++ development. Thanks to ATL, I can use any COM component with modest amount of coding. For example, I can simply use #import directive to make a COM component accessible from my C++ code, then use CComPtr for easy access (and don't need to worry about releasing it, as it is an auto pointer).
Installed Windows 7
Windows 7
seems a hot topic nowadays, so I installed its RC version. According to some articles, it is much lighter and responsive compared to Vista.
Testbed
The PC I used is Sony VGN-SZ430N, which came with pre-installed Vista Business.
Changing the order of 'links'
Seemingly a simple thing is very hard to do sometimes in Drupal. One thing is to change the order of node's links. For example, the main page lists node's teaser, where each node teaser is followed by links like "Nobu's blog", "Add new comments", and "Read More".
Allow dynamic amazon locale choice
Amazon module of Drupal is very useful when showing items, but the current implementation is limited to one locale.
There is an API level patch here.
Allow dynamic amazon locale choice
I've modified the Amazon Filter module so that I can utilize the API patch. The modification allows amazon filter to have optional locale like
[amazon 1234567890 full JP]
This will show the item from amazon.co.jp, instead of default local (usually U.S.)
<?php
function _amazon_filter_process_text($text) {
Using Meiryo font in Firefox
I have been using Firefox
as a debugger for a while already. But I have been using Internet Explorer 7 to browse the web, only for the reason that I have been using it. I was lazy to switch the browser until lately.
But now, it got the point that IE seemed too slow. I guessed that Firefox was faster, so I made the switch eventually.
Issue with Japanese trackback
I have been testing TrackBack
module and noticed that Japanese trackback was not shown correctly. It appeared that the encoding was not properly recognized.
In my case, the problem was multifold. First off, the source blog that is pinging the trackback is not sending the encoding. TrackBack module uses the encoding from the source, and without encoding, it relies on its internal algorithm to determine the encoding.
Running Drupal's cron.php without access to crontab
Drupal requires to run a scheduled task periodically. It is implemented as a php file named cron.php. If you have access to crontab on your hosting server, you just need to add cron.php to it. But what if you don't? There are a couple of ways to run cron.php without using cron on the server.
There's a module to do that, called Poormanscron (what a nice naming!)
Remote debugging C# code using Visual Studio 2008
While there are articles, such as MSDN and other blogs, setting up a remote debug for a C# app is not easy. This is due to the lack of details in those articles. So, here's my tips to fill in the missing pieces.
Setting up the target Windows
User account
I love Drupal!
Hello!
Here, I am building a blog web site for myself using Drupal. When it comes to choosing a CMS (Content Management System), there are many of them and choosing the right one is crutial for the site's success. The reasons why I chose Drupal are:
- Drupal is free Open Source software.
- Established history of development.
- The development community is very active.
- Internationalization capability.
- Availability of many modules that extends Drupal's core capability
