<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.janforman.com/lib/exe/css.php?s=feed" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>wiki.janforman.com programming</title>
    <subtitle></subtitle>
    <link rel="alternate" type="text/html" href="https://wiki.janforman.com/"/>
    <id>https://wiki.janforman.com/</id>
    <updated>2026-04-19T01:28:01+00:00</updated>
    <generator>FeedCreator 1.8 (info@mypapit.net)</generator>
    <link rel="self" type="application/atom+xml" href="https://wiki.janforman.com/feed.php" />
    <entry>
        <title>programming:bash</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:bash"/>
        <published>2020-11-13T08:29:35+00:00</published>
        <updated>2020-11-13T08:29:35+00:00</updated>
        <id>https://wiki.janforman.com/programming:bash</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>Get time from NTP

cat &lt;/dev/tcp/time.nist.gov/13

Download all docs

wget -O - -q http://www.tenox.net/docs/ | grep href=.*books | sed -e 's/^.*href=\&quot;//g' -e 's/&quot;&gt;.*$//g' | while read ln; do wget &quot;$ln&quot; ; done

Plain text from Word docx


unzip -p some.docx word/document.xml | sed -e 's/&lt;[^&gt;]\{1,\}&gt;//g; s/[^[:print:]]\{1,\}//g'</content>
        <summary>Get time from NTP

cat &lt;/dev/tcp/time.nist.gov/13

Download all docs

wget -O - -q http://www.tenox.net/docs/ | grep href=.*books | sed -e 's/^.*href=\&quot;//g' -e 's/&quot;&gt;.*$//g' | while read ln; do wget &quot;$ln&quot; ; done

Plain text from Word docx


unzip -p some.docx word/document.xml | sed -e 's/&lt;[^&gt;]\{1,\}&gt;//g; s/[^[:print:]]\{1,\}//g'</summary>
    </entry>
    <entry>
        <title>programming:fpdf</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:fpdf"/>
        <published>2017-02-23T22:34:56+00:00</published>
        <updated>2017-02-23T22:34:56+00:00</updated>
        <id>https://wiki.janforman.com/programming:fpdf</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>Code-128 Generator


&lt;?php

/*******************************************************************************
* Script :  PDF_Code128
* Version : 1.2
* Date :    2016-01-31
* Auteur :  Roland Gautier
*
* Version   Date        Detail
* 1.2       2016-01-31  Compatibility with FPDF 1.8
* 1.1       2015-04-10  128 control characters FNC1 to FNC4 accepted
* 1.0       2008-05-20  First release
*
* Code128($x, $y, $code, $w, $h)
*     $x,$y :     angle supérieur gauche du code à barre
*                …</content>
        <summary>Code-128 Generator


&lt;?php

/*******************************************************************************
* Script :  PDF_Code128
* Version : 1.2
* Date :    2016-01-31
* Auteur :  Roland Gautier
*
* Version   Date        Detail
* 1.2       2016-01-31  Compatibility with FPDF 1.8
* 1.1       2015-04-10  128 control characters FNC1 to FNC4 accepted
* 1.0       2008-05-20  First release
*
* Code128($x, $y, $code, $w, $h)
*     $x,$y :     angle supérieur gauche du code à barre
*                …</summary>
    </entry>
    <entry>
        <title>programming:git</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:git"/>
        <published>2021-04-11T10:29:12+00:00</published>
        <updated>2021-04-11T10:29:12+00:00</updated>
        <id>https://wiki.janforman.com/programming:git</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>GUI

&lt;https://gitea.io/en-us/&gt;

Init


    1. Sign on to SSH as root: ssh root@your_nas_ip
    2. Create the folder for your repository:  mkdir /opt/git/what_ever &amp;&amp; cd /opt/git/what_ever
    3. Initialise the repository: git – bare init
    4. Exit SSH (exit)
    5. Navigate to the local git project folder: cd projects/etc
    6. git init + Add the remote repo: git remote add origin ssh://root@your_nas_ip/opt/git/what_ever
    7. Populate the remote repository: git push origin master (using you…</content>
        <summary>GUI

&lt;https://gitea.io/en-us/&gt;

Init


    1. Sign on to SSH as root: ssh root@your_nas_ip
    2. Create the folder for your repository:  mkdir /opt/git/what_ever &amp;&amp; cd /opt/git/what_ever
    3. Initialise the repository: git – bare init
    4. Exit SSH (exit)
    5. Navigate to the local git project folder: cd projects/etc
    6. git init + Add the remote repo: git remote add origin ssh://root@your_nas_ip/opt/git/what_ever
    7. Populate the remote repository: git push origin master (using you…</summary>
    </entry>
    <entry>
        <title>programming:html</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:html"/>
        <published>2018-11-13T13:15:58+00:00</published>
        <updated>2018-11-13T13:15:58+00:00</updated>
        <id>https://wiki.janforman.com/programming:html</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>JavaScript graphing libraries

&lt;https://d3js.org&gt;
&lt;https://plot.ly/javascript/&gt;

&lt;input tags/&gt;

&lt;email/&gt;

&lt;input type=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;email@example.com&quot;/&gt;



&lt;color/&gt;

&lt;input type=&quot;color&quot; name=&quot;color&quot;/&gt;



&lt;date/&gt;


&lt;input type=&quot;date&quot; name=&quot;date&quot;/&gt;




&lt;month/&gt;


&lt;input type=&quot;month&quot; name=&quot;month&quot;/&gt;</content>
        <summary>JavaScript graphing libraries

&lt;https://d3js.org&gt;
&lt;https://plot.ly/javascript/&gt;

&lt;input tags/&gt;

&lt;email/&gt;

&lt;input type=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;email@example.com&quot;/&gt;



&lt;color/&gt;

&lt;input type=&quot;color&quot; name=&quot;color&quot;/&gt;



&lt;date/&gt;


&lt;input type=&quot;date&quot; name=&quot;date&quot;/&gt;




&lt;month/&gt;


&lt;input type=&quot;month&quot; name=&quot;month&quot;/&gt;</summary>
    </entry>
    <entry>
        <title>programming:java</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:java"/>
        <published>2017-07-14T11:36:27+00:00</published>
        <updated>2017-07-14T11:36:27+00:00</updated>
        <id>https://wiki.janforman.com/programming:java</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>JAVA Certification Authority Store

jre/lib/security/cacerts

List installed


keytool -keystore &quot;$JAVA_HOME\jre\lib\security\cacerts&quot; -storepass changeit -list


Import certificate

keytool  -import  -trustcacerts -alias certAlias -file certFile -keystore trustStoreFile</content>
        <summary>JAVA Certification Authority Store

jre/lib/security/cacerts

List installed


keytool -keystore &quot;$JAVA_HOME\jre\lib\security\cacerts&quot; -storepass changeit -list


Import certificate

keytool  -import  -trustcacerts -alias certAlias -file certFile -keystore trustStoreFile</summary>
    </entry>
    <entry>
        <title>programming:jquery</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:jquery"/>
        <published>2018-03-06T00:48:14+00:00</published>
        <updated>2018-03-06T00:48:14+00:00</updated>
        <id>https://wiki.janforman.com/programming:jquery</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>jQuery Mobile

jQuery Mobile

Slow scrolling href


&lt;script type=&quot;text/javascript&quot;&gt;$(document).ready(function(){ $(&quot;a&quot;).on(\'click\', function(event) { if (this.hash !== &quot;&quot;) { event.preventDefault(); var hash = this.hash; $(\'html, body\').animate({ scrollTop: $(hash).offset().top }, 500, function(){ window.location.hash = hash; }); } }); });&lt;/script&gt;</content>
        <summary>jQuery Mobile

jQuery Mobile

Slow scrolling href


&lt;script type=&quot;text/javascript&quot;&gt;$(document).ready(function(){ $(&quot;a&quot;).on(\'click\', function(event) { if (this.hash !== &quot;&quot;) { event.preventDefault(); var hash = this.hash; $(\'html, body\').animate({ scrollTop: $(hash).offset().top }, 500, function(){ window.location.hash = hash; }); } }); });&lt;/script&gt;</summary>
    </entry>
    <entry>
        <title>programming:php</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:php"/>
        <published>2025-04-23T08:59:10+00:00</published>
        <updated>2025-04-23T08:59:10+00:00</updated>
        <id>https://wiki.janforman.com/programming:php</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>PHP Fiddle

&lt;http://phpfiddle.org&gt;

Multibyte UCFirst


function mb_ucfirst($string)
{
    return mb_strtoupper(mb_substr($string, 0, 1)).mb_strtolower(mb_substr($string, 1));
}



function find_closest_ip($my_ip, $ips) {
    $my_ip = ip2long($my_ip);
    $distances = array();
    foreach ($ips as $ip) {
        $distances[$ip] = ceil(log(($my_ip ^ ip2long($ip)) + 1, 2));
    }
    return array_search(min($distances), $distances);
}</content>
        <summary>PHP Fiddle

&lt;http://phpfiddle.org&gt;

Multibyte UCFirst


function mb_ucfirst($string)
{
    return mb_strtoupper(mb_substr($string, 0, 1)).mb_strtolower(mb_substr($string, 1));
}



function find_closest_ip($my_ip, $ips) {
    $my_ip = ip2long($my_ip);
    $distances = array();
    foreach ($ips as $ip) {
        $distances[$ip] = ceil(log(($my_ip ^ ip2long($ip)) + 1, 2));
    }
    return array_search(min($distances), $distances);
}</summary>
    </entry>
    <entry>
        <title>programming:unixtime</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:unixtime"/>
        <published>2017-07-14T09:58:31+00:00</published>
        <updated>2017-07-14T09:58:31+00:00</updated>
        <id>https://wiki.janforman.com/programming:unixtime</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>Unixtime Storage
 32bit signed  From - To  32bit unsigned  From - To  64bit signed  To   13.12.1901 - 19.1.2038                               4.12.292277026596</content>
        <summary>Unixtime Storage
 32bit signed  From - To  32bit unsigned  From - To  64bit signed  To   13.12.1901 - 19.1.2038                               4.12.292277026596</summary>
    </entry>
    <entry>
        <title>programming:validators</title>
        <link rel="alternate" type="text/html" href="https://wiki.janforman.com/programming:validators"/>
        <published>2017-04-10T13:44:27+00:00</published>
        <updated>2017-04-10T13:44:27+00:00</updated>
        <id>https://wiki.janforman.com/programming:validators</id>
        <author>
            <name>Anonymous</name>
            <email>anonymous@undisclosed.example.com</email>
        </author>
        <category  term="programming" />
        <content>KML
GeoJSON</content>
        <summary>KML
GeoJSON</summary>
    </entry>
</feed>
