Archive for September, 2006

Portugal vacations

Thursday, September 28th, 2006



Originally uploaded by vitor.rodrigues.
I’ve uploaded to Flickr the pictures from my vacation trip in Portugal. Although I spent five weeks in Portugal, I only did a 4-day trip through the country, visiting some places like: Palacio do Bucaco, Fatima, Montemor-o-Velho, Conimbriga, Convento de Cristo (Tomar), Vila Vicosa, Evora, Sintra, Parque das Nacoes (Lisbon), Mafra, Obidos, Mosteiro de Alcobaca and Batalha.
You can see the full picture set here.


Popularity: 14% [?]

Google Sitemaps accepts RSS feeds

Thursday, September 28th, 2006

Yes, just add a new sitemap and point it to your feed.

google_sitemaps.jpg 

I don’t need my Wordpress Google Sitemaps plugin anymore, since through the RSS feed, google can index all the new posts. Regarding site indexing tools, Yahoo! provides the Yahoo! Site Explorer, that accetps RSS/Atom feeds to index your website.

Popularity: 8% [?]

My new distant Home

Wednesday, September 27th, 2006

IBM Toronto Lab12 hours of flight can be transformed into 32 hours of travelling, if you have to "visit" 4 airports and one of the flights gets delayed, making you spend the night at the airport waiting for a connection flight. The (not!) awesome United Airlines declined to pay for a hotel room for the about 50 people with lost connections, because, according to them, the delay "was in the taxi way, so it’s not our fault". Well, for some reason that wasn’t explained, the airplane left the gate in direction to the taxi way almost one hour late. Considering that my connection was 15 minutes after our arrival to Washingotn Dulles Airport, that hour would have been enough for me!

After leaving Carapeços (Barcelos, Portugal) at 8:00h of September 25, I just arrived Toronto (Canada) at 11h30 of September 26.

I’ll be in the Toronto area for one year, enjoying the freezing weather of Canada, and also enjoying my work at IBM Canada, working as a technology enabler for DB2 9 pureXML™.

1st impressions:

  • traffic is hell! Even worse than Los Angeles.
  • The streets/houses are old and not taken care off.
  • the IBM lab is just beautifull, and with excellent conditions.
  • I need to get a network cable, because the wireless signal in my office is very weak…

Popularity: 60% [?]

Space Needle

Friday, September 22nd, 2006



IMG_1838

Originally uploaded by vitor.rodrigues.
One of the goals of my blog is to publish some pictures and review or opinion about places I have traveled. This is the first travel related post, and I’m also trying this Flickr blog integration system.
About the picture: for the ones that didn’t figure it out yet, it’s a picture of the Space Needle tower, in Seattle. I visited Seattle on the weekend of July 4th 2006, and the Space Needle is a mandatory touristic place to go! The view from the top of it it’s just awesome, more during the day than at night. During the day, you can see downtown Seattle and the Mt Rainier to the south. The view over the bay is also great, where you can see the cruises coming and going.

Popularity: 16% [?]

Flickr

Friday, September 22nd, 2006

This is a test post from flickr, a fancy photo sharing thing.

Popularity: 9% [?]

Technorati claim

Thursday, September 21st, 2006

Find me spider :) 
Technorati Profile

Popularity: 10% [?]

Avoiding Spam in Joomla

Thursday, September 21st, 2006

If you own or administer a Joomla/Mambo site and are frequently being attacked by spammers in your forum/guestbook/gallery, com_securityimages may be the solution for you. There are some instructions here to show how to configure it to work with joomlaboard/simpleboard. Basically, you just call the security framework at insertion and validation time. To add anti-spam support for zOOm gallery (com_zoom), just edit the file /components/com_zoom/www/view.php and find the following lines:

<input type="hidden" name="isAdmin" value="<?php echo $zoom->_isAdmin; ?>" />
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" value=
"<?php echo _ZOOM_ADD;?>" class="button" /></td>

Replace this lines with:

 


<input type="hidden" name="isAdmin" value=
"<?php echo $zoom->_isAdmin; ?>" />
</td>
</tr>
<?php include ($mosConfig_absolute_path.
'/administrator/components/com_securityimages/client.php'); ?>
<tr>
<td class="sb_leftcolumn">Anti-spam:
</td>
<td>
<?php echo insertSecurityImage("security_refid"); ?><br/>
<?php echo getSecurityImageText("security_try"); ?></td></tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" value=
"<?php echo _ZOOM_ADD;?>" class="button" /></td>

Now find the lines:

if ($zoom->_gallery->_images[$key]->isMember($popup)) {
if ($submit === true) {
    $uname = $zoom->getParam($_REQUEST, ‘uname’);
    $comment = ($zoom->getParam($_REQUEST, ‘comment’));
    $zoom->_gallery->_images[$key]->addComment($uname,$comment);
        }

and replace them with:

 

if ($zoom->_gallery->_images[$key]->isMember($popup)) {
include ($mosConfig_absolute_path.
‘/administrator/components/com_securityimages/server.php’);
$checkSecurity = checkSecurityImage($security_refid, $security_try);
if ($submit === true) {
        if ($checkSecurity==false){
        echo ““;} else{ $uname = $zoom->getParam($_REQUEST, ‘uname’); $comment = ($zoom->getParam($_REQUEST, ‘comment’)); $zoom->_gallery->_images[$key]->addComment($uname,$comment); }} 

And that’s it! You should now have captcha images showing up on your zOOm gallery comment boxes, avoind the huge ammount of spam that this component is usually victim.

 

This code was implemented in this website: Carapecos Online - Photo Gallery and is currently using SecurityImages component 4.2.1 

Popularity: 55% [?]

Japanese puzzles

Thursday, September 21st, 2006

If you were/are a Sudoku addicted and want to try some new challengind puzzles, this site is for you: web nikoli. It lists the most popular japanese puzzles and instructions on how to play them. I’ve been enjoying my free time playing Hashiwokakero.

Popularity: 12% [?]

CASCON 2006

Wednesday, September 6th, 2006

CASCON 2006 wil take place from October 16 to October 19, in Toronto, Canada. 

"CASCON 2006 is the 16th in the Annual International Conference hosted
by the IBM Centers for Advanced Studies. This "Meeting of Minds"
provides an exciting forum for exchanging ideas and experiences in the
ever-expanding and critical fields of software development and
computing."

I will be presenting at CASCON, doing both a workshop and a technology showcase. Both sessions will be about the same subject: DB2 9 and it’s pureXML™ features.

Popularity: 13% [?]

DBI1082E error message when creating new DB2 instance

Tuesday, September 5th, 2006

I recently spent a few hours at work trying to understand why I was receiving the DB2 error message with code DBI1082E.
After
I installed DB2 on an AIX machine, I needed to create an instance. When
running "db2icrt vrodrig", I got this error. The error message was:
DBI1082E

The file or directory /home/vrodrig/sqllib already exists.

At
the first time I hit the error, the solution was obvious: just go and
delete the folder, that existed because of a previous DB2 installation.
However, the error persisted. And even more funny, there was a new
/home/vrodrig/sqllib folder being created every time I ran "db2icrt
vrodrig". This was strange. I deleted the folder before running
db2icrt, but when running the command, it would always fail, and there
would be a new

/home/vrodrig/sqllib folder there. So, the symptom was something like:
sqllib folder is only created when db2icrt is ran, but db2icrt fails
because sqllib already exists.


After searching on google, only one link revealed itself of some interest and usefullness. It was this post at developerWorks.
 Although
the post didn’t had the solution for my problem, it had some ideas that
led me to fix the problem. And the problem was that because I was
logging in to the system with the user id vrodrig, there was already a
db2profile file from the previous installation being sourced at login
time. This would cause the actual db2 installation to write some stuff
to

/home/vrodrig/sqllib even before creating the instance. To fix the
problem, just login to the system with a different user, then "su" to
root, delete the folder
/home/vrodrig/sqllib, run "db2icrt vrodrig" and voila, you are done! (Note: replace vrodrig and /home/vrodrig/sqllib with your user id and sqllib folder).


Just
as a side note, either this is not a very common error, or there isn’t
that many information about DB2 out there. I found just one link
talking about the same problem.

Popularity: 52% [?]


Close
E-mail It