To install application under freebsd , you can either use the pkg tool or the make tool . The pkg tool will install pre compiled binaries , whereas the make tool will build binaries from source .
Author: mohamad wael
How to add global hotkeys to SMPlayer ?
How to fix content not being shown when using wordpress plugin : Prettify GC Syntax Highlighter ?
To fix the content now being shown when using the wordpress plugin : Prettify GC Syntax Highlighter , edit prettify-gc-syntax-highlighter.php and replace :
return preg_replace(
"/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*(.*?)<\/pre/ise",
"'<pre class='.stripslashes('$1').'prettyprint '.stripslashes('$2').''.htmlentities(stripslashes('$3')).'</pre'",
$text);
with
return preg_replace_callback(
"/<pre\\s*class\\s*=\\s*([\"'])\\s*prettyprint\\s*([^]*?)\\s*… Read More Pdf , chm , djvu and epub viewers for freebsd
qpdfview is a good choice for viewing pdf , it can be installed by running pkg install qpdfview as root .
How to install vmware tools freebsd ?
How to install xfce freebsd ?
To install xfce on freebsd , this what must be done . First switch to root :
$ su - # switch to root , and enter your password .
Next install Xorg :
$ pkg install xorg # install… Read More
How to install palemoon browser debian buster ?
root$ echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /' > /etc/apt/sources.list.d/home:stevenpusser.list root$ apt-key adv --fetch-keys https://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/Release.key root$ apt-get update root$ apt-get install palemoon… Read More
Reverse a string in python recursively
If there is a string , which must be reversed , for example :
reverse of '' is '' reverse of 'a' is 'a' reverse of 'ab' is 'ba'
In python this can be done like this :
>>> ''.join(reversed('ab'))
… Read More binary search algorithm in python , and php
What is a trigraph in c ?
A trigraph in C is formed of three characters, the first two characters are interrogation marks ??, and the last character is just a regular character.
ISO 646, standardized ASCII, and made national variants of it. The … Read More