I happened to have a chance to work on IPv6 related project, and here are some some quick insights of the IPV6 of current state. I would put in Q&A format so it might be faster to read:
Selenium RC Result UTF8 Problem
It's a long existing and fundamental problem: the HTML result after execution of Selenium HTML suite is not properly encoded as utf-8.
A detailed report could be found here:
https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/1212
However, it's never fixed.
How to Remotely Debug PHP
Using Terminal (Vim + VDebug + XDebug)
Scenario:
You need to debug an existing PHP site (wordpress, joomla, drupal, etc..), and you find it very difficult/time-consuming to set up your development IDE to simulate the deployed environment.
You want to have a quick look of what's actually going on, directly from the SSH terminal.
TL;DR
Use xdebug to intercept PHP scripts, and communicate with vdebug via dbgp.
(Please ignore the rest of article if you are not comfortable with vim - the editor).
Read more How to Remotely Debug PHP
Using Terminal (Vim + VDebug + XDebug)
One Extension for Both Chrome and Firefox
I wrote the first version of Firefox extension of Simple Gmail Notes about one and half year ago, and now I am forced to develop a new one using WebExtension technology, because the old jpm addons would be fully disabled after Firefox 57.
That was quite a surprise, because when I started to develop the extension back then, jpm was the most recommended technology for Firefox addon development. And I suffered so much during the development.
Anyway, now the the extension already got some problems with new Firefox (FF 50+), especially with the OAuth. So I am left no choice except starting on this ASAP.
A Small Git Problem
(And why I am still uncomfortable with Git)
Recently, I have used Trac to manage a git project, and I used a git post-receive hook to sync the commit back to Trac.
The hook starts with something like this:
1 2 |
read oldrev newrev refname REV=$(git rev-list "$oldrev..$newrev") /usr/local/bin/trac-admin /app/trac/trac_env changeset added $git_name $REV |
It works fine for most cases, however, when I try to push a new branch to remote, the $oldrev becomes 0, and caused problem.
fatal: ambiguous argument '0..70e0844': unknown revision or path not in the working tree.
Read more A Small Git Problem
(And why I am still uncomfortable with Git)