Archive by Author

Ruby Gotcha – PP not printing

So I have been studying Ruby and Ruby on Rails since last year — for a change. I am currently creating my first rails application and stumbled on a very confusing problem — I could not print a line in controller!

In cakePHP, debug() function is one of those tools I could not live without because it easily displays string and arrays in formatted HTML. I was looking something similar in rails and I stumbled on pp method. When I tried it in my controller, nothing shows up! Here is my code:

[ruby]
def new
@meeting = Meeting.new
pp params # I’m trying to display the contents of params to check on the content
end
[/ruby]

I spent a couple of hours googling, checking my environment if I was using the development environment, used puts, echo, print, p and a lot more googling. When I tried to ask for assistance in the ruby user group, I doubled checked my command line where I run the ruby script/server and AHA!! the data are displayed there! This is my first ruby gotcha.

New theme for a new year (2009)

Happy New Year!! It’s that time of the year again when it’s ok to always start something new. I’d like to say goodbye to my old orange skin and hello to the new Petixe! The theme is a free wordpress template from WooThemes and I just love the outline. It is clean and elegant although I still find it a bit boring in terms of color. I like bold, bright colors so I will probably tweak this a little more in the coming days.. or maybe months?.

My first plan was to create a minimalist design after getting a little hooked on it. I saw Vitor Lourenço work and I am just liking his style. I have started my design in paper but got stucked with Veerle’s tutorial on manipulating pen in AI (bummer). I got a bit frustrated so I decided to just settle on a free template for the meantime since I don’t want 2010 to come before I change my theme. I still hope this year I could atleast finish 1 design (added in my new year resolution).

What do you think about the new design? What about minimalist style just like in Lourenço’s work?

How to find RSS links fast in a site

Are you also having trouble looking for rss links in some websites? Well, I did and not just once or twice but a couple of times! It really annoys me when I find a good blogs but doesn’t provide that little useful link in making me stick in their site. Sometimes they are just plainly playing hard-to-get and I won’t bother searching. Luckily I found a really good tip that made me love firefox even more!

Using firefox 3, you will see at the right side of your URL box a star and a rss image if it finds any link. It looks something like this:
RSS finder
Just click on that orange image and it will ask you to subscribe to that feed. It will automatically detect the RSS feed for you. I found this in this article which was written in 2005! Wow! It’s been here for quite a long time! So maybe this works in other firefox versions or other browsers, I just do not know how. You might want to check for your aggregator settings.

Birthday Celebration – Part 2 in Boracay

This is part 2 of my special bday celebration, I do not know why it was so special. Yay! I finally have an update!

So, we only had a day to make things really memorable.

We woke up early to start the day beautiful. We were a little worried that rain will ruin the day since it’s a little gloomy and windy. But that didn’t stopped us to enjoy the day. Right after breakfast we went to Puka beach. Our landlord said it is one of the tourist spots of Boracay. We had to take a 15-min ride to get there. There were only a few people present. I can say the place was more suitable for sporty events rather than a family area. We were like swimming in an abandoned island — dramatic. hehe. We really did enjoy the water.

Lhex in bora Lhex in bora
Look, who is the star of the
whole day?
Don’t mind this *grin*

Upon deciding to go home, I was bewitched by all the vendors! Haha! It wasn’t really funny because my pocket really got empty. Thank god they were not accepting credit cards! I wonder if they got voodoo dolls in their tents. There are a couple of beautiful accessories that we found. We really took advantage because we really got the best offers since their sales are almost zero. We finished all our negotiations with the vendors around 11am already so we decided to get something to eat. We found a restaurant near the beach. It was more like in a residential area so I did not find out the name of the place but the food was so good that even kapampangan tongues* were pleased. I love their fish dishes, specially the tanigue and sinigang. It was very different from my mom’s dish. Overall, the food is 5 star.

This is not the restaurant I was
talking about, I just love that shot.
eek, can you even see my family??

After we satisfied our stomachs, we went straight to our mini island hopping. The island hopping only cost us P1,500 for 6 people. In this season, you can really get the best deals. According to the locals, prices starts to get higher as early as February. At March, everything in the island starts to turn to gold. The island hopping would normally cost P2,000 for 2 people and could go up to P5,000! Actually that was their little sales pitch so I was pumped up even more to try it out and that is how they got me. I guess they were very good eh? Probably works of the voodoo dolls again.


Place in bora
i love the flag

It ends up though that I wouldn’t trade anything else for that experience! And I even got it cheaper! Yey! We had snorkling, more snorkling and another snorkling. I also tried the helmet dive, also known as reef walking or undersea walk. They are going to make you wear a gazillion kilos of helmet and then make you walk 7-feet under the water. In order to attract fishes, they would give you a piece of bread, an ordinary bread, and fishes will start to come at you. The fishes really love them. Maybe they were trained to do that in order to please tourist.. don’t you think? *grin* Anyway, it was still really a very beautiful experience. And we had a little bit of action which made the experience more exciting! I saw a snake on Gerold’s path (Gerold and I were the only brave pipz who tried it) and I was pointing like crazy to the tourist guide about the snake. Then the guide tried to stop the snake, grabbed his head and they rolled and rolled underwater! Actually, that was just a made up story. hehe. The truth is, the guide panic a few seconds or maybe milliseconds and tried to keep gerold away from the snake’s path. Thankfully they both coordinated well and we were back to feeding the little, colorful and fashionable fishes. I even tried to touch plants that hide when you try to touch them. They are probably the “makahiya” version underwater. Since it was unexpected, we weren’t able to prepare the camera for an underwater experience. Poor camera it could not make it. The guide tried to sell us another service though, P500.00 for a few clicks underwater! I just said no and to think I can photoshop myself and would cost me less than 500 (I guess he was just not a good seller :p).

After the helmet dive, we went to a protected area in the sea to see more fishes and a lot of corals. Unfortunately, storm Frank really destroyed the place. According to the locals, it will take another 10 years for the place to come back to it’s old beautiful self. There were still fishes and I was happy to find people who takes care and not destroy of our nature. And who also would have taught that you can have buko juice in the middle of the sea? Haha! Very creative people, there were two small bangka who were selling fresh buko juice! And it was very affordable. That was another something new for the day.

Lastly, we had some timeout by shopping in d’talipapa. Errr.. shopping again? I just tried to stay away from it the very best I can and I was successful! Woot! But then I was already hungry and a unique restaurant offering cooking service caught our attention. This is in d’talipapa and their scheme is that you buy your ingredients in the nearby wet market, a couple of feet away, and they will cook it for you. The service range from 100-300 pesos for a kilo, depending on the kind of food you want. They already have a menu so you just have to select and no, you cannot tell them to cook something they do not know and do not offer. So we bought a blue marlin, prawn (I was eyeing for the lobster but it was already out of budget) and tanigue. If you do not care about the place, this one is for you. Why did I say that? Because as I said earlier, the wet market is just a couple of feet away from the restaurant and it is an open area so you can smell something fishy nearby and I mean really fishy. hehe. But this is a must try in Boracay.


Place in bora
this is the cooking service restaurant, don’t mind the place, just eat the food :D

So here is the summary for those people who just wish to know where to go instead of reading my novel:

  • Helmet dive – P600.00 per person
  • Island hopping – P1,500 – P5,000
  • D’talipapa
  • D’mall
  • Puka beach which is at the other end of station 1, 2 and 3
  • Restaurants offering cooking service in D’talipapa


* I just made this up but anyway, in Philippines, Kapampangans are people from Pampanga and our province is tag as the culinary center of the philippines so you get the point?

November is my Lucky Month

I think it’s my lucky month is november. Why? For three and a half (3.5) reasons:

  1. It’s my birth month and I received my best birthday gift so far — woot!
  2. We got in the finals of GlobeLabs contest — woot! again
  3. I got the business cardsssssssss — woot! again and again
  4. I finally reached my very first $10 earnings from google ads after 2 years of blogging! — woot! 3x and a half. Just half because I haven’t received it yet. Believe it, 2 years of blogging ;) and I only started using it again around the 3rd quarter. I actually had one in my first few tries in blogging and then totally stopped using until this year.

I’m still hoping for another blessing this month. If not this month hopefully by early december. *crossing my fingers* and wish us good luck for tomorrow. What’s with tomorrow? It’s the final judging of our entry for the Globelabs event! :D

Business Card Winning Pieces

I just can’t get over the winning pieces title! haha! Oh well.. I received today my prizes for the business card raffle draw/contest held by octwelve and sponsored by Uprinting. I’m very happy with the outcome of my design and the quality of Uprinting’s cards.

Business Card from Uprinting

Now I need to think how to distribute the 250 pieces of them… I hope you got the idea of how I got the title of winning PIECES (*corny* :P )

Thanks again Uprinting and Octwelve!

Birthday Celebration in Iloilo

I am a year older again! Yikes! Time is running out, my bungalow house has not been started yet and my yacht has not arrived. I need to swim more and dig more. Well, I did the swimming more but less the digging because my last birthday celebration required me to do so.

My family and I went to Iloilo last November 7 and the next day we celebrated my 18th birthday in Shamrock beach resort with my boyfriend’s family and relatives. Joan (a friend) was teasing me in SMS that I was namamanhikan (entreat) which I think was partly true, haha! I again met his family and his most beloved lola who is 94 years old and I was so surprised and impressed that she was able to travel for 2 hours to get to the destination and still swam in the beach later that afternoon. The weather was cold because it was raining a little. My lola at 70+ barely moved at her time. The most who enjoyed is my nephew who refused a couple of times to get out of the water even with the weather. The best part is that everybody enjoyed and that made me happier. I just only wish I had a cake! (no sweets for me *snip*)


Iloilo Trip 1

Iloilo Trip - Beach

The next day was the Boracay day. We left Iloilo terminal at 6am because it was the earliest schedule in the nearest bus terminal. We travelled 6 hours from Iloilo to Caticlan and thank goodness Ceres bus was comfy. It was still the longest travel ever but I got to see Aklan and Capiz. At the last mountain route, I already felt dizzy. The curves are worst than Baguio and because of my starving little stomach, dizziness attacked me which is really very rare for me. Although I must admit that even at that state I liked what I was seeing, the surrounding place was beautiful and my mom got already excited (and me too!) seeing the Boracay island (it’s her first time).

Arriving at the hotel past 1pm, we were all starving so right after getting our bags in the room, we went straight to Mang Inasal. The bad thing is that since we were so hungry I forgot to take some pictures :( . But the worst experience you can probably have at that time and I think a little funny is that right after we ordered and sat at the table, Lhex (my nephew) started to mumble to his father “uu.. uu..” (means nature is calling ASAP!) and my poor brother left immediately without asking us the direction of the hotel nor did he brought any mobile phone and as expected he was lost. He came back after an hour and was starving to death. Morale lesson: bring a cellphone ALWAYS!

To give a little excitement to my narrative, I’m going to divide it into 2-part story. I’m getting dramatic lately. haha. Actually, the next 2 nights in the island are really exciting (for me) so a single post could make this one a novela. So see you next time!

**UPdate: Here is the part 2 in Boracay

Tag! You’re My Friend!

Friendship flower

This is a “FRIENDSHIP OFFERING” with someone whom you know, would like to know and would like to be friend with.

The mechanics of this is to copy and paste the image in your blog, link back the person who tag you and share or spread this friendship badge to 7 or more bloggers that you knew or think you are friends with.

This was actually a birthday gift from neri — a friendship tag! naks! I’m touched pero kuripot p rin. hihihi..

I am giving this tag to some of my online and offline friends namely: Neri (hahaha di nmn bawal magbalik eh), Junelle, Donna, Hannah, Cyrose, Munis and Phpcurious.

SoapClient could not load WSDL url

I’ve been quite busy for the past few weeks with a project called YouPing. It’s a program submitted for the GlobeLabs contest and next week is the deadline. We could not finish it because of a problem with soapclient.

Warning: SoapClient::SoapClient(http://xxx.globelabs.com.ph:1881/xxx/xxx/Platform?wsdl) [soapclient.soapclient]: failed to open stream: Connection timed out in /path/to/test/script/soapclient.php on line 1

Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://xxx.globelabs.com.ph:1881/xxx/xxx/Platform?wsdl" in /path/to/test/script/soapclient.php on line 1

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://xxx.globelabs.com.ph:1881/xxx/xxx/Platform?wsdl' in /path/to/test/script/soapclient.php:1 Stack trace: #0 /path/to/test/script/soapclient.php(1): SoapClient->SoapClient('http://xxx...', Array) #1 {main} thrown in /path/to/test/script/soapclient.php on line 1

The problem was that port 1881 was blocked by Hostmonster. So we are begging from our friends, colleagues or anyone with a kind heart to lend us some small space in their server so we will not get disqualified. Hehe. Just kidding. we are trying our luck with the AppContainer provided by globe. *hope it works*

Japanese letters or words?

This is just funny. I do not know if they are real or not.

Japanese letters
Source