Nerd in Action Code is poetry

Simulator session timed out

One of my friends asked me for helping her with this issue when running simulator:

More...

Cordova unrecognized selector sent to instance

It has been a long time since last time I make a cordova plugin. Today, an annoying exception occured to me.

[XXX initWithWebView:]: unrecognized selector sent to instance

After digging into the Cordova source code, I found that it was caused by the mis-configuration of class name in plugin.xml.

    <platform name="ios">
        <config-file target="config.xml" parent="/*">
            <feature name="Parse">
                <param name="ios-package" value="YOUR_OBJECTIVE_C_CLASS_NAME" onload="true" />
            </feature>
        </config-file>
    </platform>
More...

SSH Failed

I tried to ssh to a new installed server last Friday using Putty, and it gave me the error, “Network error: Connection refused.”. But it had been working when using DHCP!

What happened?

More...

REMOTE_USER is empty when using Shibboleth

I have installed shibd and configured shibboleth SP correctly.But I couldn’t get $_SERVER['REMOTE_USER'] using PHP.

For troubleshooting, you may try the following:

More...

Nest WP_Querys

I googled a lot for how to nest two WP_Querys. The closest solution I could find is Loop within a loop, but it only says “// restore the global $post from the previously created backup”. After digging into the source code, I found the key method: $query->reset_postdata();.

More...