IE10 bug, mouse event passed by

In IE10
When click DIV positioned top of DOM
that has no background and exist text of another DOM,
mouse event passed by

Solution:
backgroud:#ffffff;
opacity:0;

Test Case

Posted by / December 22, 2014 / Posted in CSS

Node.js change function async to sync

Almost Node.js‘s libraries are structured asynchronous.

But some app want to returning synchronous.

Below link maybe help you to change function async to sync.

http://alexeypetrushin.github.io/synchronize/docs/index.html


// change to async to sync
var sync = require('synchronize');
sync.fiber(...);
sync(conn, 'query');// conn means mysql connector here.


// original(async)
conn.query([SOME QUERY], function(err, rows, fields) {
if (err) throw err;
console.log('The solution is: ', rows[0].solution);
});


// new(sync)
try{
var rows = conn.query([SOME QUERY]);
console.log('The solution is: ', rows[0].solution);
}catch (err){
throw err;
}

WordPress turn off comments on pages

Settings
>> Discussion
>> uncheck “Allow people to post comments on new articles”
This will affect new posts, but not old.

Access your wordpress database
>> change value of comment_status’s column
of wp_posts’s table to “closed”

If you can access db directly, this can help you

node fibers Assertion failed! floor_thread_key != 0

Microsoft Visual C++ Runtime Library

Assertion failed!

Program:…e_modulesfibersbinwin32-x64-v8-3.14fibers.node
File: ..srccoroutine.cc
Line: 49

Expression: floor_thread_key != 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application – JIT must be enabled)

solution: remove 64-bit Windows Installer then install 32-bit Windows Installer
http://nodejs.org/download/