Archive for the ‘english’ Category

Enabling VNC and disabling desktop effects from the command line   1 comment

Posted at 12:38 pm in bash,code,english

Don’t you just hate those day when you really need to access the desktop of a machine, but forgot or just never activated remote desktop?
Read the rest of this entry »

Written by Anders Einar on February 5th, 2011

SyntaxHighlighter Evolved with inline-highlight   no comments

Posted at 3:00 am in code,english,php,wordpress

After i first posted code for highlight-range i made some small changes to the code in the post as i found better ways of doing things. When i inserted new lines it messed with my highlighting. Inspired by pastebin.com, i wrote a couple of lines that let me specify with a marker in the code (and not by line-number) what line should be highlighted.

Update: Added @hr@ for inline-ranges.
Read the rest of this entry »

Written by Anders Einar on July 12th, 2010

SyntaxHighlighter Evolved with highlight-range   1 comment

Posted at 7:08 pm in code,english,php,wordpress

Update: As of SyntaxHighlighter Evolved v. 3.0.0 this functionality is included in the plugin.

One of the first plugins i installed for this brand new WordPress was SyntaxHighlighter Evolved. I love to code, and knew i would find a use for it. To test it i used a large C++ file from cpp.snippets.org and began testing.

Highlight worked fine, but i i didn’t support highlighting a range of lines. This might not be so useful, as you usually want to highlight small sections, but i rewrote syntaxhighlighter.php to support ranges.

Read the rest of this entry »

Written by Anders Einar on July 7th, 2010

Using BankID (norwegian type) in Ubuntu 10.04   no comments

Posted at 10:08 pm in bash,code,english

Update: As of Ubuntu 10.10 this should not be nessesary, as OpenJDK in Ubuntu >= 10.10 should work with BankID.

In Ubuntu 10.04 (and probably onwards) OpenJDK Java and the Icedtea java plugin are the standard Java toolkit. BankID works with OpenJDK (just try installing Opera 10.10. Opera pre 10.5 use OpenJDK directly, without Icedtea), Icedtea is the troublemaker.
Read the rest of this entry »

Written by Anders Einar on July 6th, 2010