Monday, July 16, 2012

Bookmarklet to search Google Dictionary

Dictionary view:
javascript: function se(d) {
    return d.selection ? d.selection.createRange().text : d.getSelection()
}
s = se(document);
for (i = 0; i < frames.length && !s;
i++) s = s e(frames[i].document);
if (!s || s == '') s = p rompt('Enter%20search%20terms%20for%20Google Dictionary', '');
open('http://www.google.com.vn/search?tbo=1&tbs=dfn:1&q=' + (s ? encodeURIComponent(s) : '')).focus();
Or, web view:
javascript: function se(d) {
    return d.selection ? d.selection.createRange().text : d.getSelection()
}
s = se(document);
for (i = 0; i < frames.length && !s;
i++) s = s e(frames[i].document);
if (!s || s == '') s = p rompt('Enter%20search%20terms%20for%20Google Dictionary', '');
open('http://www.google.com.vn/search?q=define+' + (s ? encodeURIComponent(s) : '')).focus();

VirtualBox on Mac: kernel driver not installed

This command fixed the problem on my Mac
sudo /Library/StartupItems/VirtualBox/VirtualBox restart

Thursday, July 12, 2012

Lightning default reminder options

By default when you create a new event in Lightning, the "No reminder" option is selected. If you want your events get reminded and don't want to change this option every time, here is how: - Go to Options/Lightning/Reminders - Turn "Default reminder setting" to ON