Broken Lucid
Oops .. I upgraded one of the Ubuntu installations to Lucid and now the video (and of course X) is broken .. Should have did a little research first before upgrading .. tsk tsk .. oh well. fortunately it was just a testing installation.
Oops .. I upgraded one of the Ubuntu installations to Lucid and now the video (and of course X) is broken .. Should have did a little research first before upgrading .. tsk tsk .. oh well. fortunately it was just a testing installation.
Ever since I bought my MBP a year back, been having this really high system temperature even when not doing anything on it. The fan doesn't really kick in so I don't know if the temperature was within acceptable limits of the MBP.
So as any MBP folks will recommend (or not recommend, depends on who you talk to), I downloaded SMCFanControl and increased the speed to about 3500 rpm for both of the fans inside the machine... It did help, a little .. I guess .. but average CPU temperature still hovered at 61 degress celsius. No I'm not using the notebook on my bed or something .. its on a hard surface.
I was shopping at my local computer store last week and spotted this Logitech Notebook Stand which looks like a plastic board with a fan in the middle to blow cool air to the notebook. I turned it on and the fan didn't really seem to move very fast ... Oh well, wasn't really expecting anything .. but I was really surprised when I placed my notebook on the surface and the temperature dropped 10 degrees .. its now average about 49 degrees ! Great !
One thing I didn't like about the notebook stand was that the two slabs of rubber on the surface which prevent your notebook from slipping off since its tilted at an angle didn't really work very well, the notebook still kept sliding off when you are using it. Other then that, its a pretty good buy and you do need it when you are using a MBP on your laps. (yes MBP runs VERY HOT)
Yes, I am a late starter .. but I've always wondered about the process for startups to get the funding they need or the legal aspects of their business or the financial aspects of the company?
Do you have a product first then approach the source for funding or do you have funding first then create the product?
I've been doing quite a lot of reading lately and most of the sources seems to favor a lean startup.
I was just wondering where would be a good resource to find a mentor?
While hacking at my little project this afternoon, I found out that when I started an EM.run thread running the main listener program while spawning another stompclient.join in the main EM.run .. the callback methods in the main EM methods were not getting called ..
I started to panic a little, because this code was working fine while using AMQP .. (maybe they were using another threading model?) ..
After a little research, I found out that the Stomp Gem join method is also using Eventmachine behind? ..
So if you are in the main EM.run loop for another process and you need to use STOMP to subscribe to other queues, you can remove the .join method from your stomp clients ..
I was trying to install FreeBSD on my IBM ThinkPad T40 last night and I had finished pulling all the Xorg and Fluxbox stuff after a looonng while .. so I added a shortcut to the xinitrc to start everything up .. and the funny thing was, the numlock key kept turning on by itself ..
Of course, since this is a laptop, turning on the NumLock keys means that some of the important keys cannot be used .. and I can't turn the numlock off !!
So, did a little searching and found a utility called numlockx to turn off the numlock (yes, a utility to turn off the numlock .. go figure). Anyway, if anyone is having the same issue .. here's what you do
In your ~/.xinitrc file
numlockx off
exec /usr/local/bin/fluxbox
Numlockx can be found in the ports under /usr/ports/X11.
Everyone who knows me knows that I have an extreme dissatisfaction with OCBC bank. I've cancelled all the accounts with them one year back .. and surprise surprise, they sent me a bill yesterday for annual fees for the credit cards. I called them up today and this is how the conversation went
ME: Good morning, I'm calling to enquire about a bill I got from you yesterday. This is my account number. Due to my extreme dissatisfaction with your bank, I have already cancelled this account one year back !
Bank : Oh .. have you used the credit card in the past 3 days?
ME : What ?? The bank has already cut the card one year back !
Bank : OH in that case, ignore the bill and I will terminate the account.
Me : In that case, can you please check if I have any other cards that are linked to this account and cancel them also !
Bank : You mean you want to cancel all the cards ?
Me : Yes !! The account doesn't exist anymore !
I don't know is it me or something .. but shouldn't banks have better CRM systems or ERP systems or billing systems that tracks customer accounts? oh yeah .. I forgot .. their billing systems are tuned to give high priority to calculating customers with overdue accounts .. and probably the "DELETE CLOSED ACCOUNTS" job has no time to run in their system.
While hammering code out for my new project, I needed to code up a controller which are to be called by external services. Since GET has its own inherent troubles, I decided to only limit POST request to the controller actions.
I started using request.post? check in all my controller actions. Pretty tedious and its not DRY at all.
I digged a little more and found out that there's a verification mechanism that is built into Rails. Cool !
First, you will have to put the verify chunk right after your controller, like this
verify :method => :post,
:render => {:action => :error},
:except => :error
What I am doing here is that, I want all my controllers to handle only POST request. And when a GET request comes in, Rails will render the action called error. You will then have to put an error page in your views for this controller. Finally, I'm telling Rails to run this rule for all the controller actions except the error action (which makes sense since you will probably be doing a GET to the error page)
Oh yeah, you will need to an extra route to your routes.rb file so that Rails can find your controller actions.
Here's wishing all chinese a Very Happy Chinese New Year ! And to everyone, Happy Valentine's Day ! So what's everyone doing this evening?
For me its an important day to mark some significant milestone in my life, I finally found my purpose!
Now to kick some butt !
Ok, since I'm new to FreeBSD for a production environment for hosting Rails (I've used it for testing previously and for small firewall projects) .. I have no idea what FreeBSD was asking when I was running my rake command.
It said :-
rake aborted!
no such file to load -- iconv
Oops .. after some Googling, found that you have to
# su yourself to root
# cd /usr/ports/converters/ruby-iconv
# make clean install
FreeBSD sprouts some magical spells ... and rake runs !
Ability is one thing .. but the only limitations you have are the ones that you placed on yourself.