There used to be a time when it was really painful to start Firefox on my MacBook. It seemed to start normally but soon the window became unresponsive. Usually it took several minutes before I can use Firefox to browse web sites – really annoying. I searched but found people facing the same problem without a solution or response from Firefox developers (here and here).
In the mean time I was quite confused by Firefox frequently asking me to allow its access to some font file on the bootcamp partition – how does Firefox know that I installed a Windows system? More importantly, why does Firefox want to examine this just for a font?
At first I didn’t think much and always allowed it to access the fonts but one day I finally chose “Don’t allow” and checked the “Do not ask me again” box. I don’t know if that is the solution but several days later I noticed that Firefox started as quickly as before!
If you’re suffering the same problem, and also asked by Firefox the same question, please try this and comment below. But I don’t know what to do if you already checked the “Do not ask” box and clicked “Allow”…
Nearly 3 years ago I wrote a Greasemonkey script to show Google Reader’s unread count in Gmail’s top navigation bar. I was quite satisfied at first and shared it on userscripts.org, but later I found that it was too time-consuming for me since I always wanted to monitor the number and click through when it turned “1”. So I disabled it and forgot about it.
But today after cleaning up the spam comments, I found a comment about this script. In fact someone also posted in the userscripts.org forum and even named it as one of the favourates. Thanks dear users! I knew I had to make an update and it turned out to be quite simple.
So go to the script page and install it. Should you have any problem with it, just leave a comment below.
Earlier today, I wanted to setup a PHP development environment on my MacBook Pro. It was expected to be very simple. As many tutorials said, I just uncommented the “LoadModule php5_module libexec/apache2/libphp5.so”, enabled web sharing in system preferences, and expected to see PHP working by visiting http://localhost/~myusername/.
But no luck. Firefox just can’t connect to the web server. Then instead clicking the checkbox in system preferences window, I tried to type commands in Terminal – “sudo apachectl start”. But the execution of the command just completed with no output or any warnings. Also, nothing appeared in /var/log/apache2/error_log. That’s really weird – on Linux platform, there should be something if the server fails to start. But by appending an argument to the command:
Continue reading “Mac OS X 10.6.5 PHP Problem”
Native PDF support was initially introduced by Kindle DX and later Kindle 2 also had native support for PDF format.
Why PDF on Kindle?
Of course if you don’t want the PDF format, you can always send it to Amazon and let them convert it into Kindle’s native .azw format (mobi, actually). But there are some pros of reading PDF on Kindle:
- You can embed fonts in PDF files. Kindle’s font selection is very limited, but if you read PDF format, you can create the PDF file with your own choice of font. For example, you can choose some beautiful handwriting font. It’s even more useful for CJK language readers.
- When reading a technical document with a lot of graphs, data tables, or code snippets, you’d better use PDF to completely preserve the original type setting. Especially for a code snippet, Amazon will convert it into a mess.
- If the book has lots of foot notes, PDF preserves the positioning of foot notes well because of its fixed pagination. Mobi or azw formats support font size adjusting and they adapt to different sizes of screen so they can’t guarantee foot notes are still at the footer.
- [update on 2011-09-19] After switching to landscape view (press the Aa key on the right of space bar and select screen rotation), Kindle automatically cuts the margins and white areas so they don’t waste the screen space. I don’t know if it was a feature since Kindle 3 or it’s introduced by some firmware update.
Continue reading “Kindle PDF Support”
Having used fastcgi in lighttpd for a while, I wondered if there was a way to restart one fastcgi site/application without affecting other sites. Because I have many fastcgi sites hosted in a single lighttpd instance, and I don’t want them all to be shut down for a little while each time I want to restart a site after deployment.
The solution turned out to be very simple –
- Find out the process of the application that you want to restart and kill it.
- Access your web site from a web browser and the restart is done.
Continue reading “Lighttpd fastcgi – How to Restart a Specific Site Without Affecting Others”
In February, Amazon bought a touch screen company and since then a touch screen Kindle has been long anticipated by many customers. But the fact is that Kindle 3 came without a touch screen and till now Amazon didn’t say anything about the Kindle touch.
Continue reading “Kindle Touch Screen?”