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

Google "Account Exceeded Command or Bandwidth Limits (failure)"

This message appears for Google Apps users who process large volumes of email. We've noticed this message has appeared on all three types of accounts (Free, Business, Educational). A check with Google doesn't provide for any hard, factual data as to what those limits are but from our rough measures is more about size than message volume. That is, the trigger has happened after 200 messages av...

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/ Try also adding sec=ntlmssp for N...

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...

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...

Daemons in Perl vs PHP

As one experiment we created a daemon process in Perl and PHP, to compare. Here are the results. Overview Edoceo created this project Custos; one of the requirements was a simple daemon process that ran jobs from a queue. Fetch the job over HT...

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...

Hacking Evergreen ILS / Development Notes

Notes and tips on development of Evergreen ILS. Before Starting with Evergreen development, please read the dev:git page on the Evergreen Wiki. Getting the Master cd /usr/src git clone git://git.evergreen-ils.org/OpenSRF.git chown -R opensrf:opensrf ./OpenSRF git c...

Evergreen ILS - Self Checkout

Evergreen ILS has a super self-checkout feature that allows patrons to help themselves. TPAC Based Self-Checkout Update or confirm that your Apache configuration has this (fount at the top of eg_host.conf) <LocationMatch ^/$> Allow from all Options +ExecCGI SetHandler perl-script PerlHandler OpenILS::WWW::Redirect PerlSendHeader On PerlSetVar OILSRedirectTpac "true" </LocationMatch&...

Evergreen Self Checkout & HHP IT3800/3900 Scanner

The HHP IT3800 and/or 3900 are very common in self-checkout configurations for Evergreen ILS. This document describes how to configure that device is a common setup. A modern Windows based PC, Keyboard Wedge, Quiet, Slow Scanner. Reset the Scanner Configure for AT PC, with Carrige Return suffix. Configure for Self Chec...

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...

Google Mail SMTP Reports Success, Fails to Deliver

Surely at on point you've used an automated system to send messages via Google Mail (GMail). Eg, using ssmtp with Google Mail. We do it too, but have noticed that many times Google Mail will report a successful receipt but never actually delivers the message....

grub-probe: error: cannot find a device for / (is /dev mounted?)

This problem is most often seen during an apt-get update or similar. Issues in chroot Mostly this is caused by some issues when running in a chroot. Before switching to the chroot, it's necessary to mount at least the /dev and /proc directories. However sometimes we've seen this issue ev...

Migrating to IMAP Services

If you currently are not using an IMAP based email service converting can be a bit of a an "un-learning" experience. The common/traditional methods of Internet email reception (which has been outdated since at least 2003) has forced humans in to limited usage patterns that will change when converting to the more-better IMAP. Would then need to work-around with "Leave on Server" - SUX Then, odd issues. And Sent Item sonly exist...

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 computer name Messenger01...

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...

error:140D00CF:SSL routines:SSL_write:protocol is shutdown

Information about OpenSSL Error 140D00CF This error is mostly caused because the socket connection is atempting to write to a socket that has already closed. The socket may have also disconected due to a TCP related error....

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 Evergreen_trunk_Squeeze.ovf Evergreen_trunk_Squeeze-disk1.v...

Samba: chdir (/tmp/.private/nobody) failed

Some quick fixes and workarounds for "chdir (/tmp/.private/nobody) failed" Quick and Dirty Fix chattr -a /tmp/.private chmod 1777 /tmp/.private chmod 1777 /tmp/.private/nobody chown nobody:nobody /tmp/.private/nobody Add users to Nobody group You may also be able to solve this by adding users to the nobody...

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: edoceo.io/iso/3166/1. API documentation available on edoceo.io. Create Country Table Table is called base_country as it follows Edoceo naming conventions, change...

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...

HTML5 / XHTML Entity Reference

You should use the one from the w3c. HTMLCodeDescription nbsp no-break space = non-breaking space, U+00A0 ISOnum iexcl¡inverted exclamation mark, U+00A1 ISOnum cent¢ce...