|
|
(76 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| | {{TOC right}} |
| | {|border="2" cellpadding="5" cellspacing="0" |
| | |- |
| | | |
| | [[tech notes]] |
|
| |
|
| ==[[ideas]]==
| | [[crowdsource]] |
| ===[[startup]]===
| |
| ===[[obforum]]===
| |
|
| |
|
| ==[[log]]==
| | [[ideas]] |
| | :[[startup]] |
| | :[[obforum]] |
| | :[[workshops]] |
| | [[log]] |
|
| |
|
| ==[[todo]]==
| | [[todo]] |
|
| |
|
| ==[[electronics]]==
| | [[electronics]] |
| | :[[arduino]] |
| | [[stacks]]<br/> |
| | [[front end]]<br/> |
| | :[[frameworks]]<br/> |
| | [[TDD]]<br/> |
| | [[cloud]] |
| | :[[openshift]] |
| | :[[heroku]] |
| | :[[docker]] |
| | | |
| | [[editors]] |
| | :[[vim]] |
| | :[[sublime]] |
| | [[software]] languages |
| | :[[git]] |
| | :[[javascript]] |
| | :[[jquery]] |
| | :[[jQuery-Mobile]] |
| | :[[html5]] |
| | :[[php]] |
| | :[[sql]] |
| | :[[c]] |
| | :[[regex]] |
| | :[[ruby]] |
| | :[[css]] |
| | :[[xml]] |
| | | |
| | [[servers]] |
| | :[[parleyvale.com]] |
| | :[http://christophermeiklejohn.com/distributed/systems/2013/07/12/readings-in-distributed-systems.html distrib systems readings] |
| | :[[backups]] |
| | :[[mysql]] |
| | :[[mongodb]] |
| | :[[node]] |
| | :[[linux]] |
| | :[[wamp]] |
| | :[[mediawiki]] |
| | :[[ReST]] |
| | machines |
| | :[[asus]] |
| | :[[hudsonvalley]] |
| | :[[home ubuntu]] |
| | :Amazon [[aws]] |
| | :[http://www.networksolutions.com/whois/index.jsp whois] |
| | :[http://www.namecheap.com/myaccount/index.asp namecheap] |
| | :[[Moving from shared to VPS]] |
|
| |
|
| ==languages==
| | my apps |
| ===[[git]]===
| | :[[webeshoppin]] |
| ===[[javascript]]===
| | :[[Online heating system control project]] |
| ===[[jquery]]===
| |
| ===[[jQuery-Mobile]]===
| |
| ===[[html5]]===
| |
| ===[[PHP]]===
| |
| ===[[ruby]]===
| |
| ===[[css]]===
| |
|
| |
|
| ==servers==
| | | |
| ===[[ubuntu]]===
| | [[MOOCs]] |
| ===[[mediawiki]]===
| |
| ===[[hudsonvalley]]===
| |
| ===Amazon [[aws]]===
| |
| ===[[Moving from shared to VPS]]===
| |
| ===scripting and commands===
| |
|
| |
|
| ==my apps==
| | [[Altenergy]] |
| ===[[webeshoppin]]===
| | :[[Solar]] |
| ==other technology==
| | :[[tintML]] |
| ===[[video]]===
| | edtech |
| ===[[ebooks]] kindle===
| | :[[quizlet]] |
| ==[[APIs]]==
| | :[[visual thesaurus]] |
| ===[[quizlet]]===
| | :[[quiz authoring environments, vocab]] |
| ===[[visual thesaurus]]===
| |
|
| |
|
| =====visualthesaurus vocgrabber to db=====
| | platforms |
| 11/19 - vocab from vocabgrabber a javascript that you run with an article open in the browser that you want to grab then you select the words you want and save the list.
| | :[http://www.sagenb.org/home/mckenna.tim/ Sage] |
| | :[[google]] |
| | :[[android]] |
| | :[[microsoft]] |
| | :[[installedMACtools]] |
| | :[[Cad | AutoCAD]] |
|
| |
|
| javascript:var%20_vgurl='http://www.visualthesaurus.com';%20var%20s=document.createElement('script');s.src=_vgurl+'/vocabgrabber/bookmarklet.js';document.getElementsByTagName('head')[0].appendChild(s);%20void(0);
| | other technology |
| | :[[AI]] |
| | :[[OCR]] |
| | :[[Image, Photo & Video]] |
| | :[[ebooks]] kindle |
| | |} |
|
| |
|
| http://pathboston.com/vocab/grab/vocabgrab.html goes to the visualthesuarus list page and parses the word and usage into arrays, looks up the definition
| |
|
| |
|
| | | Failed to attach disk 'C:\Users\mcken\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: The system cannot find the file specified. |
| | | Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND |
| | |
| ==tesseract-ocr==
| |
| ===to OCR an image===
| |
| #open ~/Applications/ControlCenter.sh, use custom scan toBWtiff
| |
| #get it on screen (big) and 'file/grab' it or take a snapshot of it
| |
| #saveas 'j' nocompress, noalpha, TIFF
| |
| #open a terminal and run ocrjtif (it is in $PATH in /opt/sbin) and then copy and paste the ocr'd text from the terminal window.
| |
| | |
| ==quiz authoring environments==
| |
| http://escholarship.bc.edu/jtla/vol4/6/
| |
| | |
| http://www.attotron.com/pub/quizmaker.html
| |
| | |
| http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcexam_description
| |
| | |
| http://www.bridgewater.edu/~rbowman/JSQuizMaker/makeselftest-questions.html
| |
| | |
| http://www.extropia.com/
| |
| ==vocab==
| |
| http://wise.sourceforge.net/
| |
| http://xdxf.revdanica.com/down/index.php
| |
| | |
| | |
| ==xp pro==
| |
| CD KEY:
| |
| | |
| V2C47-MK7JD-3R89F-D2KXW-VPK3J
| |
| | |
| ==[[firefox extensions]]==
| |
| /Applications/Firefox.app/Contents/MacOS/firefox-bin --profilemanager
| |
| | |
| /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &
| |
| | |
| | |
| http://lifehacker.com/software/programming/how-to-build-a-firefox-extension-264490.php
| |
| | |
| ==unix==
| |
| | |
| | |
| ===perl===
| |
| *[http://download.boulder.ibm.com/ibmdl/pub/software/dw/library/l-p102/tomc.txt one liners]
| |
| *http://www.somacon.com/p127.php
| |
| ====handy code====
| |
| =====remove blank lines from file=====
| |
| perl -wnl -e 'print $_ unless /^$/' infile.txt >outfile.txt
| |
| | |
| ===sed awk===
| |
| *[https://www.cs.hmc.edu/twiki/bin/view/QREF/Sed SED tutorial]
| |
| *http://tech.bluesmoon.info/2008/09/programming-patterns-in-sed.html
| |
| *http://www.vectorsite.net/tsawk_2.html
| |
| | |
| :lib/images/toolbar/list_ul.png
| |
| :lib/images/toolbar/rule.png
| |
| :lib/tpl/default/images/interwiki.png
| |
| | |
| People with shell access to their server can copy the text above and paste it into a file on the system, then run the following commands to check for and remove all those files. Only those that exist are removed.
| |
| | |
| <code>
| |
| grep -Ev "^($|#)" /tmp/removeold.txt | xargs -n 1 rm -f
| |
| </code>
| |
| | |
| If you are paranoid, replace the "rm -f" with "ls -la" to see what files will be deleted.
| |
| | |
| To remove directories as well as files you have to use:
| |
| <code>
| |
| grep -Ev "^($|#)" /tmp/removeold.txt | xargs -n 1 rm -fd
| |
| </code>
| |
| | |
| However, some systems may not support the "rm -d" option for directory removal. In that case, you have to use recursive removal (just be sure to double-check that the file list does not include any paths that will delete too much):
| |
| <code>
| |
| grep -Ev "^($|#)" /tmp/removeold.txt | xargs -n 1 rm -fr
| |
| </code>
| |
| | |
| ==regex==
| |
| | |
| *^[ \t]+ //finds all the space and tabs
| |
| *[1-9]\. //finds all the line numbers. (replace with #)
| |
| *[A-E]\. //find A. etc (replace with ##)
| |
| | |
|
| |
| to clean special characters from a string
| |
| $clean = preg_replace("/^[^a-z0-9]?(.*?)[^a-z0-9]?$/i", "$1", $text);
| |
| | |
| ===sites===
| |
| *http://e-texteditor.com/blog/2010/beyond-vi
| |
| *http://www.grymoire.com/Unix/Regular.html#uh-2
| |
| *http://www.regular-expressions.info/php.html
| |
| ===expressions===
| |
| If you want to get'Aloha World'out
| |
| | |
| Input:
| |
| | |
| <div class="test">Hello World</div>
| |
| <div class="somename">Aloha World</div>
| |
| <div>Hey There</div>
| |
| | |
| RegEx:
| |
| | |
| <pre> \<div\sclass\=\"somename\"\>(?<Text>.*?)\<\/div\></pre>
| |
| | |
| Yields:
| |
| | |
| Aloha World (note: In a single group named Text)
| |
| | |
| ==mycode==
| |
| ===file:///Users/teacher/code/===
| |
| ;/hosted/vocab/quiz/db2egg.php: uses multidimensional arrays
| |
| :does sorting
| |
|
| |
| *[[parsemeta.php]]
| |
| *[[txt2flp.pl]]
| |
| *[[parsephr.php]]
| |
| | |
| ==msaccess/excel==
| |
| http://support.microsoft.com/?kbid=208840
| |
| | |
| http://www.thescripts.com/forum/thread546932.html
| |
| | |
| http://www.blueclaw-db.com/mail_rtf_report_access.htm <br>http://forums.aspfree.com/microsoft-access-help-18/ms-access-email-report-19094.html<br>emailing reports
| |
| | |
| http://support.microsoft.com/kb/319317 printing to particular printer
| |
| | |
| http://www.vertex42.com/ExcelArticles/user-defined-functions.html
| |
| | |
| http://www.contextures.com/xlToolbar02.html
| |
| | |
| http://www.ozgrid.com/VBA/sum-count-cells-by-color.htm
| |
| | |
| http://www.techonthenet.com/excel/formulas/index_vba.php
| |
| | |
| | |
| ====online tools====
| |
| | |
| http://www.sitebuilt.net/moodle/course/view.php?id=2&edit=1&sesskey=zsCDYluKen
| |
| http://www.sitebuilt.net/moodle/course/mod.php?id=2§ion=0&sesskey=zsCDYluKen&add=quiz
| |
| | |
| Ari's phone: 011 237 529-4438
| |
| calling card:
| |
| | |
| *18008872991
| |
| *617
| |
| | |
| =[[installedMACtools]]=
| |
| | |
| ==pic==
| |
| http://www.rentron.com/Myke3.htm
| |
| | |
| http://www.play-hookey.com/digital/jk_nand_flip-flop.html
| |
| | |
| http://www.digital-diy.net/16F%20Examples/LM35DZ.aspx
| |
| | |
| [http://www.opencircuits.com/Main_Page open source circuits wiki]
| |
| | |
| [http://www.sparkfun.com/commerce/tutorials.php sparkfun hobby shop]
| |
| | |
| [http://www.batchpcb.com/index.php/Home batchpcb.com pcb fabrication]
| |
| | |
| [http://www.avrfreaks.net/index.php?module=Freaks%20Devices&func=displayDev&objectid=78 AVR is alternative to PIC]
| |
| | |
| [http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=57 a good tutorial on embedded systems]
| |
| :Google any of these for more info. I have chosen the ATmega168 as the learning IC of choice. Why?
| |
| | |
| * 20 MIPs (million instructions per second!) is powerful enough to do some really cool projects
| |
| * It's cheap! $2.13 currently
| |
| * It's got all the goodies under the hood (UART, SPI, I2C, ADC, internal osc, PWM, kitchen sink, etc)
| |
| * 16K of program memory is enough for almost any beginner project
| |
| * The tools are free! (C compilers for many of the other micros cost a lot of money)
| |
| * The programming and debugging tools are low cost ($20 will get you started)
| |
| | |
| [http://www.evilmadscientist.com/article.php/avrtargetboards evil mad scientist on AVR programming]
| |
| | |
| ==isp==
| |
| host
| |
| 206.71.150.94
| |
| | |
| http://www.networksolutions.com/whois/index.jsp
| |
| | |
| http://www.namecheap.com/myaccount/index.asp mckennatim nanj
| |
| | |
| https://thenynocportal.com/clientarea.php
| |
| | |
| ==text a photo to picasa==
| |
| text it to your and then forward it without the tmobile gifs then forward it to mckenna.tim.upload@picasaweb.com
| |
| | |
| ==making transparent in gimp==
| |
| 1. open image
| |
| | |
| 2. Right click the image and go to LAYERS then ADD ALPHA CHANNEL. You won't notice anything happening, but don't be concerned. It basically adds a transparent layer at the bottom of your image so when we erase the colors.....it's shows the transparent layer. Which of course would show whatever was under it on the screen.
| |
| | |
| 3. Right click on the image again and go to SELECT and then down to BY COLOR. A window that is all black opens up. Don't change any of the settings....just use the defaults for now.
| |
| | |
| 4. Now click on the color in the image you want to be transparent. These colors will now show up outlined.
| |
| | |
| 5. Right click on the image again and go to EDIT and then down to CLEAR. This should now erase the outlined color you just picked from the image and the "transparent gimp checkerbox" should show through. This is the Gimps way of showing you that section is now transparent.
| |
| | |
| 6. Right click on the image and choose SAVE AS and make sure to save as a GIF file if you want the transparency to work on the web.
| |
| | |
| ==embedding video==
| |
| 1. find the file Sanitizer.php in the folder /includes of your mediawiki installation
| |
| 2. find the function removeHTMLtags in that file. below that you’ll find a list of whitelisted HTML tags. add the tag embed to the list.
| |
| 3. find the function setupAttributeWhitelist in the same file. several lines below you will find HTML-attributes being whitelisted for each HTML tag. so you add a new line (maybe below the line that defines span):
| |
| ‘embed’ => array( ’style’, ‘id’, ‘type’, ’src’, ‘width’, ‘height’ ),
| |
| | |
| take care to replace the typographic ‘-quotes by straight ones when doing copy&paste. (wordpress converts the quotes on this blog, so you need to convert them back.)
| |
| | |
| you’re done. now you can copy the HTML-code provided by google or youtube into your wiki textbox and it’ll work. (make sure to make backups and document so you know what you’ve changed. when upgrading you’ll have to repeat the process. no warranties for possibile security leaks resulting from the hack.)
| |
| | |
| update april 2007: i just tested, this hack also works with mediawiki 1.9.2, just that you need to add embed to $htmlpairs. (note: in case the embed-code you want to use has the format <embed /> you now have to convert it to <embed> </embed> before posting it to your wiki.) i also would recommend to paste the last line of code near br instead of span (the file has got rearranged a bit).
| |
| ==mediawiki memory problem==
| |
| php.ini is in public_html, it has to be copied into everywhere that uses php
| |
| left ini_set commented out in localsettins.php
| |
| .htaccess php_mem ... didn't work
| |
| ==mediawiki upgrade==
| |
| *cp -r mediawiki-1.16.0/* /home/pathbost/public_html/hum08 - copy new vwrsion right over old
| |
| *from /maintainance run: php update.php
| |
| then get rid of all the revisions
| |
| *SpecialDeleteOldRevisions2 in code/mediawiki/extensions on mac, add this...
| |
| :$wgGroupPermissions['sysop']['DeleteOldRevisions'] = true;
| |
| :require_once( $IP.'/extensions/SpecialDeleteOldRevisions2/SpecialDeleteOldRevisions2.php');
| |
| | |
| | |
| ===old info===
| |
| http://www.g-loaded.eu/2006/09/05/mediawiki-upgrade-procedure/
| |
| easy way:
| |
| *goto maintainance directory and run php dumpBackup.php --current> dumfile.xml
| |
| *on new site install wiki, put dumpfile.xml on its maintenance dir run php importDump.php dumfile.xml
| |
| | |
| ==mediawiki images==
| |
| Does the user running
| |
| the apache httpd instance ($ ps ax | grep httpd) have permission to
| |
| write to images? Dan
| |
| | |
| ==mediawiki css==
| |
| *sitewide changes go in Mediawiki:Monobook.css
| |
| *user changes go in User:MrMcKenna/monobook.css
| |
| ==lynx==
| |
| ==[[Moving_from_shared_to_VPS]]==
| |
| ==compiling PH w /scripts/easyapache==
| |
| !!
| |
| You can change how PHP is configured.
| |
| As root, simply execute:
| |
| /usr/local/cpanel/bin/rebuild_phpconf --help
| |
| for more information.
| |