Disqus comments not showing up

I use Disqus comment system. One thing puzzled me is that the comments did not show up sometimes, but sometimes it did. Finally I figured out it is because github pages treats “http” and “https” requests as the same. But Disqus treats them as two different URLs. So the comments are not visible to each other.

Read More

Show Html files in Github

In the last post, I want to show the html file hosted in github, but instead html source code is displayed. The solution is to create a gh-pages branch in your project:

Read More

Display image, show mouse position and pixel values from web browser

If you want to view the images, and want to know the mouse location and pixel values, you may install some image viewer(s). I am at the same boat. After some research, I found that there is no light-weighted image viewer which can show the pixel values at Linux platform up to my best knowledge. So I decide to write one by myself. It turns out web browser + Javascript are good enough to do this. Here is the Javascript based image viewer:

Read More