Pugs have been my favorite dogs since I first saw one of this kind. They’re so lovely, with wrinkled faces, big eyes, and always mopish expression.
Now I have a pug dog of my own. It’s only one month old and when we got it, it just caught a cold. We took great care of it for several days and now it’s very healthy.
Below is a video - he is playing with a toy mouse:
Because I’m really a dummy as a dog owner, I’m reading a lot on the web these days for such knowledge, to give my pug a better life. I just ordered the “Everything Pug Book” and hope it will help me and my pug
Months ago, I started a blog about interesting advertisements powered by Movable Type. During the installation and usage process, I got some knowledge about Movable Type, but the fact is that I’m still not quite familiar with it. Besides, the chosen topic is not quite related to my daily life. So now I’m stopping and deleting the blog.
Movable Type is a great blogging platform, and the team has been inventing many techniques and concepts, but the problem is that it’s defeated by WordPress because it’s not as simple and WordPress now has much more plugins.
The only advantage of using MT is that you don’t need to worry about the server load (digg effect, for example), but this is not a problem for us “little” bloggers. After several weeks, I even didn’t remember the url of the administration area.
I may start another blog, powered by WordPress, of course
A few days back, a friend asked me whether the neighbor post preview plugin can be customized to show the post title in preview.
Yes, that’s a wonderful idea. Many WordPress users just use “next post” or “previous post” as the navigation link text instead of the post title. This can save much space and readers can more easily focus on the title of current post (example page). If you noticed, Live Spaces are using left/right arrow icons as the link text.
So I implemented this idea into my plugin. By doing this, it becomes more useful for those people who didn’t show the post titles in the link text.
Go to the plugin homepage for download. When activated, go to the options page for customization (http://yourdomain/wp-admin/options-general.php?page=neighbor-post-preview.php).
The theme used in this blog is designed by myself. It’s really simple and light-weight. As requested by Dan, I’m now releasing it for use by all WordPress users.
Open this page from Google’s example. In firebug’s console, execute the following code:
map.setCenter(new GLatLng(1e100, 1e100));
Setting super large numbers as latitude and longitude like this always makes my Firefox 2.0.0.11 in Windows XP hang.
I don’t know why Google didn’t restrict the range of the numbers, and what computation it did to consume so much CPU time. It should ignore such numbers after a simple judgment.
Strings as zoom parameters
In the same page, execute this piece of code:
var zoom = '16';
map.setZoom(zoom);
As you see, nothing happens. Google must be ignoring the parameter when expression typeof(zoom) == ‘number’ is false. In my situation, I got the value of variable zoom from the url, and didn’t noticed it was the type mismatch which prevented the code to work, since I’m used to JavaScript’s dynamic type conversion feature:
a = 2 * '3'; // a = 6
It will be converted to number when needed. Of course, it’s good to perform strict type checking. But it’ll be better if the API threw an exception instead of being silent.
I’m a fan of Google Reader. Although FeedDemon went free recently and it offers synchronization with NewsGator which is great attraction for many people, I still couldn’t drop Google Reader.
However the panel above the subscription list takes up too much space for my humble screen resolution of 1024×768. As Google rolled out the much complained “Friends’ shared items” feature, it became an urgent task for me to hide the annoying but never used panel. It took up 1/3 of the vertical space on the left sidebar!
No, not just hiding. Sometimes I need to clear the number of unread friends’ shared items. So it should be a “toggler” like the sidebar (or nav-bar as called by Google) toggler natively built in Google Reader. Like this:
Before hiding, with mouse hovering on the toggler:
When the panel is hidden:
You can still open it at any time. Basically, it works in the same way as the native sidebar toggler.
This is done by writing a user script for Greasemonkey, so you must have Greasemonkey installed to use it.