Too see version of node: node -v To run script: node script.js To read file line by line https://stackoverflow.com/questions/11986350/node-js-read-and-write-file-lines
Dokuwiki search and list all files under a directory
depth=1 will just show one level depth=0 will show all levels under a namespace $pagearrays = array(); $depth=0; search($pagearrays, $conf[‘datadir’],
HTML tips
To force a download via a link: download something.pdf Note: does not work for Safari and IE. Works for chrome
Good http header for zip file downloads
<?php // HTTP Headers for ZIP File Downloads // http://perishablepress.com/press/2010/11/17/http-headers-file-downloads/ // set example variables $filename = “test.zip”; $filepath = “c://tmp//zipdir//”;
Illustrator tips
Graduation template: http://www.vectordiary.com/illustrator/graduation-hat-tutorial/ https://blogographic.wordpress.com/2013/04/22/how-to-create-laureal-wreath-in-adobe-illustrator/ circular leaf logo https://www.youtube.com/watch?v=YY67inOozE8 text mask and path http://design.tutsplus.com/articles/quick-tip-how-to-make-a-text-mask-in-adobe-illustrator–vector-4218 https://www.youtube.com/watch?v=Jivfi89OdUI word cloud https://www.youtube.com/watch?v=MeNVMfYbMBY https://thedailydigi.com/how-to-create-a-word-cloud scripting
SQL Logic Operator Precedence
And has precedence over Or Where A1 or A and B will be executed as Where A1 or (A and
Windows power shell
Commands equivalent to Unix head, tail, more and sed (get-content shorted to gc) gc log.txt | select -first 10 #
Async AJAX and PHP session
Javascript is single threaded. AJAX allows asynchronous calls. From http://stackoverflow.com/questions/6903318/multiple-ajax-requests-delay-each-other/6933294#6933294 If you use sessions in the AJAX handling functions, you will run
Simple JS Demos
Click on one of the following items to see a simple demo of how HTML, CSS and Javascript/Jquery work together.
DokuWiki Useful Links
To check php version: doku.php?do=check DokuWiki environment variables https://www.dokuwiki.org/devel:environment Tutorial for beginners http://tech.surveypoint.com/posts/dokuwiki-tutorial-part-1-install-and-first-pages/ Syntax https://www.dokuwiki.org/wiki:syntax Code Reference http://xref.dokuwiki.org/reference/dokuwiki/nav.html?index.html Export Export