We have, on some occasions, opportunity to create these notes, hope they are useful.

Android SDK / PhoneGap Command Line Usage
Most Android SDK documentation is oriented towards Eclipse IDE and it follows that examples / instructions for PhoneGap would be as well. But, not everyone uses Eclipse. Here's how to do this stuff from the command line, so you can use what-ever editor you choose (*cough* ...
CIFS VFS: cifs_mount failed w/return code = -22
This error is generally pointing to the fact that the CIFS routines cannot resolve the name, or connect to the server indicated. More often than not its because the machine is references by name which is failing to resolve. Try by using the CIFS/Windows Server IP address. mount -t cifs -o username=U,password=P //10.65.0.186/c /mnt/windows/ ...
Clearwire Blocked Ports Survey
We used to use Clearwire for a backup internet connection. We cannot afford to be off-line and Clearwire looked like a cost effective backup connection. While it was, the fact that Clearwire "managed" so many services forced us to stop using them. One major issue for us was that Clearwire was blocking traffic on specific ports that we need access to. After speaking with their "tech-support" (who didn't know the diff...
Edoceo Coding Standards and Guidelines
The standards and styles are broken down by language, in alphabetical order, with common set of standards listed first. Where possible consistency across language boundaries has been chosen over native language style. Alternatives are given when necessary and for backwards compatibility. Common Comments C/C++...
CUPS: cupsenable cups-authorization-canceled
When using CUPS from the command line this error may occur after adjusting the default cupsd.conf ~ # cupsdisable LP1234 cupsdisable: Operation failed: cups-authorization-canceled ~ # cupsdisable -h localhost:631 LP1234 cupsdisable: Operation failed: cups-authorizatio...
CUPS - The Printer is Busy
This just means the printer is busy having a status check. /var/log/cups/access_log:localhost - - [04/Jan/2012:13:03:16 -0500] "POST /printers/q401 HTTP/1.1" 200 293053 Print-Job successful-ok While printing, the job has this message, cause it's taking a few seconds to print. Notice the line prefix W, that means Warning. /var/log/cups/error_log:W [04/Jan/2012:13:03:16 -0500] [Job 234619] The printer is...
Quick Guide to using Doxygen to document your code
A quick guide to using the phpDocumentor tags, their placement and many samples. ...
Ethernet Cable Pinouts
Below are shown the pinouts of different ethernet cabling. Ethernet connectors are of type "RJ45"; an eight (8) connector jack. The pins are numbered from one (1) to eight (8), left to right when looking at the top of the connector. Crossover and Straight Through Pinouts The table below describes the pinouts of both straight through and crossover Ethernet cables. Keep in mind that pinouts are described for botht the left and ...
Facebook API: OAuthException: (#341) Feed action request limit reached
When building Facebook Applications that post to the Wall (/me/feed) you may get this error. The documentation shows that there is no hard and fast value for when this error gets triggered. Here's some notes we've found. Don't Repeat Don't post the same message ...
Encode / Change Encoding of Audio Files with PHP
Using ffmpeg from within PHP // Here file is uploaded and then the name is stored in // $file_i = input file name // $file_o = output file name $ffmpeg_bin = '/usr/bin/ffmpeg'; $ffmpeg_audio_opt = '-acodec mp3 -ab 192 -ac 2 '; $ffmpeg_video_opt = '-acodec mp3 -ab 192 -ac 2 '; // Audio Conversion...
File and Application Location Standards
When creating software for various systems Edoceo places our specific code, libraries, documentation, etc according to the following structure. File Locations Unless otherwise necessary in-house software should be created in /opt/edoceo or c:\Program Files\Edoceo, Inc. depending on platform. Library files are component binaries or scripts, aka DLLs and WSC files. Temporary files are ones tha...
Key Codes for Microsoft Keyboards
Web/Home130 Search122 Mail236 Mute160 Vol -174 Vol +176 Play162 Calc161 Back234 Forward233...
MySQL Tips and Tricks
MySQL Query to Show Database Size SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Used MB" FROM information_schema.TABLES GROUP BY table_schema ; MySQL Query to Show Free Space SELECT table_schema "Data Base Name", sum( data_length + ...
NetBIOS Protocol Information
NetBIOS is Microsoft's networking protocol, it's been mothballed but isn't totally dead yet. NetBIOS Name Types and Name Suffixes NetBIOS has many name types (aka suffixes) that describe the type of service. Below is a table that lists the important ones. ServiceSuffixNote Workstation00This is the primary co...
ntpd reply from ... not synced, next query in ...
This is not an error! It simply means that the NTP server that is reading from does not consider itself to be accurate. Explanation NTP works by reading time from multiple sources and calculating transimssion times. It's the things it the NTP logs that look like this: reply from 192...
Converting OVA for use with KVM / QCOW2
The OVA file is nothing more than a TAR archive, containing the .OVF and .VMDK files. Easy! Using Evergreen ILS for example: ~ $ file Evergreen_trunk_Squeeze.ova Evergreen_trunk_Squeeze.ova: POSIX tar archive (GNU) I'ts possible to use the tar command to list the contents ~ $ tar -tf Evergreen_trunk_Squeeze.ova Evergree...
php-bootstrap
...
cups_job_submit: failed to parse jobid from name /var/spool/samba/smbprn.
Find this... [2012/01/04 15:35:14.875620, 1] smbd/process.c:456(receive_smb_talloc) read_smb_length_return_keepalive failed for client 1.2.4.8 read error = NT_STATUS_END_OF_FILE. [2012/01/04 15:36:13.801301, 1] smbd/service.c:1089(make_connection_snum) smbsvr (1.2.4.1) connect to service q1...
Samba: Renaming a User
This document describes how to rename a user account on Samba Situation Definition When a user leaves an organization some times we want to simply rename their user for the new accout. This allows the new user to still use the same profile and other configurations that the previous use did. Think of the scenario where there is a need for a unique us...
sql-country-codes
This document provides the necessary SQL statements for ISO 3166 country names and two and three letter codes. This page and the data are in UTF-8 encoding. See also the ISO 3166 API we have exposed at: http://api.edoceo.com/iso/3166/1. API documentation available on api.edoceo.com. Create Country Table Table i...
SQL - US States and Territories
Create a table like this, add more columns if needed. create table state ( id serial primary key, code char(2) not null, name varchar(64) not null ); Now insert these records insert into state (code,name) values ('AL','Alabama'); insert into state (code,name) values ('AK','Alaska'); insert int...
ssh_exchange_identification: Connection closed by remote host
When using SSH this error may show it's ugly head on occasion. Many searches for the issues point to funny TCP connection tweaks or that sshd needs to be re-configured. This is not the case. Symptoms Connecting to SSH servers gives this message: $ ssh atom@example.com ssh_exchange_identification: Connection...
svn: warning: cannot set LC_CTYPE locale
You may see these messages on some servers, reported LANG will likely be different (according to your environment) svn: warning: cannot set LC_CTYPE locale svn: warning: environment variable LANG is en_GB.UTF-8 svn: warning: please check that your l...
Using Twinkle from the Command Line
Command Line Options call Call someone answer Answer an incoming call answerbye Answer an incoming call or end a call reject Reject an incoming call redirect Redirect an incoming call transfer Transfer a standing call bye End a call hold Put a call on-hold retrieve Retrieve a held call conference Join 2 calls in a 3-way conference mute Mute a...
Windows Update - Errors and Fixes
No Error or 0x80240020 This one is a big pain. See KB 910341 for instructions on manually re-creating these registry entries. .NET Update Failures Some times .NET 1.1 updates will not work. Symptoms include: Failed .NET updates, unable to remove older .NET (1.1 ...
xhtml-entities
HTMLCodeDescription nbsp no-break space = non-breaking space, U+00A0 ISOnum iexcl¡inverted exclamation mark, U+00A1 ISOnum cent¢cent sign, U+00A2 ISOnum pound£pound sign, U+00A3 ISOnum curren¤currency sign, U+00A4 ISOnum yen¥yen si...