May 18, 2012
Warning: This is a procedure that can bork your working copy. Backup and test to make sure you can recover before you even think about doing this. Regarding this post: http://andrew.hedges.name/blog/2009/01/25/how-to-recover-from-checksum-mismatch-errors-in-svn Quickly remove .svn directories from a working copy linux cd /to/svn/working/copy/dir e.g. /etc/squid find . -type d -name .svn | xargs rm -rf Checkout [...]
by admin at May 18, 2012 12:07 AM
May 15, 2012
A cron job I have created to run a backup script every week day at 5:10PM # m h dom mon dow command # backup simple invoices and subversion repo # every week day 10 17 * * 1-5 /usr/local/bin/backup.sh Here are some different command output redirection options Redirect standard out to null but still [...]
by admin at May 15, 2012 01:54 AM
May 14, 2012
https://support.google.com/webmasters/bin/answer.py?hl=en&answer=34444
by admin at May 14, 2012 01:20 PM
May 13, 2012
I don’t know if anyone else can see the similarity but the Recycling Symbol and the Google Drive symbol seem to be derived from the same concept namely a mobius strip or loop.
by admin at May 13, 2012 03:55 AM
May 12, 2012
There are many services that do this but looking in the Debian distributions package change logs I noticed that they are using http://checkip.dyndns.org/ to return your globally recognized IP address. And it returns a very nice sparse reply as follows. <html> <head> <title>Current IP Check</title> </head> <body>Current IP Address: 101.170.170.141</body> </html> So using a simple [...]
by admin at May 12, 2012 11:25 PM
In WordPress Admin Area Installed the “Batcache Manager” and “APC Object Cache” plugins using the Plugins ==> Add New option in the WordPress Admin Panel and didn’t activate created phpinfo.php in the web root of my webserver and called it via a browser Contents of phpinfo.php < ?php phpinfo(); ?> and checked for [...]
by admin at May 12, 2012 10:47 AM
May 04, 2012
Just discovered my traffic to this website has dropped by about 50% not sure why, could be the vagaries of searching engine ranking. Update: Apparently there has been some 52 algorithm changes on Google in April alone so I think I may be the victim of the Google SEO lottery. I believe my editorial content [...]
by admin at May 04, 2012 01:21 PM
Boot an XP VM with a working controller and the right Virtual Hardware Open Device Manager and expand the IDE ATA/ATAPI Controllers Choose the Controller and then go in and view the properties Make a note of the PCI\Vend string. In this case it’s VEN_8086&DEV_7111 Open registry editor and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase and locate the [...]
by admin at May 04, 2012 06:16 AM
May 03, 2012
Profoundly confused by Windows search. After Windows XP|2003 it doesn’t seem to find anything even if you know the file is there. Indexing doesn’t seem to find the files either. Selecting it to find system and hidden and still no joy. So here is my work around for finding files: dir /s /b | [...]
by admin at May 03, 2012 11:53 PM
May 01, 2012
Set FaxServer = WScript.CreateObject("FAXCOMEX.FaxServer") FaxServer.Connect "<windows_fax_server_name>" ' use empty quotes if you want the local machine set FaxDevices = FaxServer.GetDevices() msgbox(FaxDevices.count) </windows_fax_server_name> Discovered that this only queries physical fax devices that show up in Fax Manager not the remotely connected faxes that appear per user.
by admin at May 01, 2012 06:04 AM
DISCLAIMER Update: This is for a SCSI disk controller 0x7B error. There is some information here http://support.microsoft.com/kb/314082 from Microsoft regarding IDE Controller Driver Injection into an image and I have tried it successfully. I have just taken a ghost image of a Dell Poweredge 1850 which has a Perc4 SCSI controller and put the image [...]
by admin at May 01, 2012 02:45 AM
April 24, 2012
When using the demo images and attempting to use WinSCP or some other sftp application you may get an error like
“Cannot initialize SFTP protocol. Is the host running a SFTP server?” from WinSCP or
“Connecting
[SFTP] Host key accepted
[SFTP] Successfully authenticated
[SFTP] Error initialising sftp: Access denied. Authentication that can continue: publickey,password
Unable to connect”
from Notepad++
This is due to demo images not including the openssh-sftp-server package by default
To install login to the Beaglebone using SSH (via putty) and run
opkg update
opkg install openssh-sftp-server
Your WinSCP or Notepad++ or other SFTP application should now work nicely
by craig at April 24, 2012 07:05 AM
Note: I just discovered that this script doesn’t work with network faxes. What I mean by this is the fax device appears to the user but isn’t listed in the devices of the fax manager. So if you are wanting to send to a fax that is accessed via \\servername\faxname and the device isn’t directly [...]
by admin at April 24, 2012 04:02 AM
April 20, 2012
Just discovered the <abbr> HTML tag a nifty way of inlining your abbreviation explanations. It allows you to unmystify TLA’s with the abbr HTML Tag. You need to hover over the TLA to get the abbreviation. On my blog the abbr tag doesn’t change the text colour to make it obvious that it has some [...]
by admin at April 20, 2012 10:10 PM
I have been using Dropbox (http://www.dropbox.com) and Box.com (http://www.box.com) to share files with people. Dropbox has great Linux support and integration into the Gnome Nautilus file manager. Box is good too but is more Windows / Mac Centric and I think currently only supports access via the dav protocol in Linux. They both AFAIK have [...]
by admin at April 20, 2012 09:16 AM
April 18, 2012
I’m currently transferring a Formtrap Forms Server to a later version and I want to run the new and old servers in parrallel for a while so I have added a heap of printers onto a Redhat 5.5 Server pointing to the new server. The trouble is that all the settings aren’t visible in one [...]
by admin at April 18, 2012 02:19 AM
April 12, 2012
http://www.terryburton.co.uk/barcodewriter/generator/ Every now and a again I use the Barcode Generator in Scribus to do barcode mockups. I think Scribus uses the above linked postscript barcode writer. You need Ghostscript installed for the barcodewriter to work under Scribus I have also been attempting to generate GS1-128 Barcodes which I have discovered are a CODE 128 [...]
by admin at April 12, 2012 12:30 PM
April 07, 2012
Download links are below for full A3 printable tables showing the details of the BeagleBone multiplexer settings.
To configure the BeagleBone multiplexer under Angstrom from the command line use
echo 6 > /sys/kernel/debug/omap_mux/gpmc_a2
Where
6 = Multiplexer Mode
gpmc_a2 = the Mode0 name of the pin you are trying to configure
Results in setting of Port 9 Pin 14 soe ehrpwm1A_mux1
Download links for Mux Lookup tables
BeagleBone-Port8-Mux-A3-Rev1.pdf
BeagleBone-Port9-Mux-A3-Rev1.pdf
BeagleBone-Port8-Mux-A3-Rev1.xlsx
BeagleBone-Port9-Mux-A3-Rev1.xlsx
by craig at April 07, 2012 12:50 PM
April 02, 2012
I’m in the process of creating a Perl script that sends configuration commands to a SATO printer via a Moxa networked serial port. My problem with the development process is the Moxa and SATO Printer is in a Tin Shed that climbs to 35° C plus. It’s not much fun sitting with a laptop in [...]
by admin at April 02, 2012 10:20 AM
March 29, 2012
All these instructions are to be run on the Beaglebone itself using putty.
Install the C Compiler, make and a few other bits and pieces with
opkg install task-native-sdk
Make a folder for your code by running
mkdir code
cd code
Now create a makefile using nano
nano Makefile
Paste the following code and then press ctrl+O and then ctrl+x
CC = gcc
CFLAGS = -Wall -g -O2
OBJECTS = main.o
all: $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) -o main
Now create the C source file by running
nano main.c
Paste the following code and then press ctrl+O and then ctrl+x
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
printf (“Hello from BeagleBone”);
return 0;
}
To compile your new application run
make all
To run your application
./main
by craig at March 29, 2012 07:40 AM
March 27, 2012
Today I tried to run the following javascript using jQuery 1.4.2 on IE8 under Windows XP Pro SP3: // returns 'pallet' tabname var tab = get_tab(); // returns 'pallet-item' text input field var target_field = get_target_field(tab); // works in firefox and chrome but not IE. grrrr var item = $('#' + target_field ).val(); I recieved [...]
by admin at March 27, 2012 12:23 AM
March 26, 2012
If you run the “date” command and see a date not far from Jan 1 2000 then you will need to set the date.
Update your Package List
opkg update
Get the ntp Package
opkg install ntp ntpdate
Remove the file that describes your local time
rm /etc/localtime
Add a symlink between the file that describes your timezone in the timezones folder to the localtime file.
If you do not live in the sydney nsw timezone you may need to look around in the /usr/share/zoneinfo folder for your timezone.
ln -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime
Now we need to stop the ntpd service so we can request a manual update
/etc/init.d/ntpd stop
Now request the manual update
ntpdate pool.ntp.org
Confirm the correct time with the “date” command
Restart the ntp daemon with
/etc/init.d/ntpd start
ToDo
- Add insructions to start the service automatically on boot. If someone knows how to autostart an Angstrom Service please let me know.
by craig at March 26, 2012 11:03 AM
March 22, 2012
In the Beginning I have been employed in my current role since 2004. When I started, there was a generic PC running Netware 3.11 Server the files on which were soon transfered over to SBS2003 running on a noname server with IDE disks. Within a year I had imaged and re-lifed the Small Business Server [...]
by admin at March 22, 2012 12:40 AM
March 21, 2012
A lot of the Jim Rohn video’s on youtube are 1-7minute sound bites but this one over an hour. Here are some notes I made on the the “The Magic of Part-Time by Jim Rohn” Correct the errors of the past and pick up new disciplines for the future. 1. Law of averages Do something [...]
by admin at March 21, 2012 11:49 PM
March 20, 2012
Welcome to LOGIN, the Linux Owners Group in Newcastle.
We are a LUG (Linux Users Group) for people in the Newcastle and Hunter region of NSW Australia. We are affiliated with Linux Australia with subcommittee status
Do you want to help promote our Linux club then please feel free to pass on the flyer or better still print a couple & place them on a noticeboard in your local area.
March 20, 2012 11:08 AM
Dia the opensource diagramming programming program. Has a lot of shapes. However I always seem to use ones that aren’t in the standard or diashapes repository. So I’ve created a 2 new shapes for myself using the howto here This is a good site for more technical information about 19″ racks http://www.server-racks.com/ 4cabling.com.au sells racks [...]
by admin at March 20, 2012 02:15 AM
March 19, 2012
Another entry to add to my HTML 5 Framework List is Wakanda. My frustration with jQuery UI is that you have to hand code the pages. Wakanda appears to have an IDE that allows drag and drop of widgets onto a canvas and the configuration of datasources and classes that then can be made to [...]
by admin at March 19, 2012 09:57 PM
March 14, 2012
This guide details the process of building a systemd image from the Angstrom source on a ubuntu or debian host.
For the steps below I have used Debian 6.0.4 via a net install
Install Debian 6.0.4 net install choosing only Standard system utilites
From root command prompt run
sudo apt-get install openssh-server
This will allow us to access the machine remotely via ssh
Following instructions on http://wiki.openembedded.org/index.php/OEandYourDistro#Debian
Install the mandatory packages as root
sudo apt-get install sed wget cvs subversion git-core coreutils unzip texi2html texinfo docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath dosfstools kpartx
Logout as root and return to regular user
Following instructions on http://www.angstrom-distribution.org/demo/beaglebone/ in the section down the bottom on “how to reproduce”
Run the following commands
git clone git://git.angstrom-distribution.org/setup-scripts
EDIT: I had trouble with this line since I posted this so I have since been using “git clone https://github.com/Angstrom-distribution/setup-scripts.git”
cd setup-scripts
./oebb.sh config beaglebone/
MACHINE=beaglebone ./oebb.sh bitbake systemd-image
When the build completes the files of interest will be stored in.
cd ~/setup-scripts/build/tmp-angstrom_2010_x-eglibc/deploy/images/beaglebone/
Insert the BeagleBone SD Card into the debian host.
Run dmesg
you should see the last few lines look like this
[28915.028000] mmc0: new SDHC card at address 1234
[28915.675869] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[28915.675912] mmcblk0: p1 p2
The above notes show that we have an SD card mounted at /dev/mmc/blk0
We now want to format the SD card using the script file here http://www.angstrom-distribution.org/demo/beaglebone/mkcard.txt
First get the script on the debian host
wget http://www.angstrom-distribution.org/demo/beaglebone/mkcard.txt
Rename the file
mv mkcard.txt mkcard.sh
Login as root
su
Make the file executable
chmod +x mkcard.sh
Run the script to format the SD card
./mkcard.sh /dev/mmcblk0
If this is runs nicely then write the Angstrom image to the BeagleBone SD card using
Create a place to mount the new file systems
cd /mnt/
mkdir boot
mkdir Angstrom
Mount the File systems
mount -t vfat /dev/mmcblk0p1 /mnt/boot/
mount /dev/mmcblk0p2 /mnt/Angstrom/
Now using df -h we can see the file systems are mounted and empty
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 226G 9.3G 205G 5% /
tmpfs 1013M 0 1013M 0% /lib/init/rw
udev 1009M 212K 1009M 1% /dev
tmpfs 1013M 0 1013M 0% /dev/shm
/dev/mmcblk0p1 70M 512 70M 1% /mnt/boot
/dev/mmcblk0p2 3.6G 72M 3.3G 3% /mnt/Angstrom
Change directory back to the location of our build
cd /home/craig/setup-scripts/build/tmp-angstrom_2010_x-eglibc/deploy/images/beaglebone/
Copy the boot files to the first partition
cp u-boot.img /mnt/boot/
cp MLO /mnt/boot/
cp uImage-3.2-r5b+gitr09e9651bcf2ee8d86685f2a8075bc6557b1d3b91-beaglebone-20120311054152.bin /mnt/boot
Rename the uImage to just uImage
mv /mnt/boot/uImage-3.2-r5b+gitr09e9651bcf2ee8d86685f2a8075bc6557b1d3b91-beaglebone-20120311054152.bin /mnt/boot/uImage
Copy the root filesystem from the tarball we created earlier to the second partition
tar -xjv -C /mnt/Angstrom/ -f Angstrom-systemd-image-eglibc-ipk-v2012.03-core-beaglebone.rootfs.tar.bz2
Unmount the SD card
umount /mnt/boot
umount /mnt/Angstrom
Your SD card is now ready for booting.
Remove the SD card from the Debian host
Remove all cables from BeagleBone
Insert SD card into BeagleBone
Plug in Ethernet cable to BeagleBone
Plug in power adapter.
The LEDs on the BeagleBone should flash as the device is booting.
Once it has booted it should show up in your routers DHCP Client list with the hostname “beaglebone”
You should now have access to the BeagleBone via an SSH client.
Using the username “root” password “root”
To change the root password use the passwd command.
Now you have a systemd image running on your BeagleBone
by craig at March 14, 2012 11:12 AM
March 08, 2012
On Fedora 16 running Gnome 3 by default if you press ALT+Print Screen or simply Print Screen you get this window: Sometimes I find this really annoying because it adds a step that I don’t want. I would rather not see the gnome-screenshot window and simply have the image in the clipboard ready to paste [...]
by admin at March 08, 2012 08:54 AM
March 06, 2012
Blogging laziness. Like he said ==> http://clintboessen.blogspot.com.au/2010/05/how-to-import-nk2-files-into-outlook.html This is my instructions (just in case the above doesn’t google up for me again) for moving from Windows XP Pro/Outlook 2003 to Windows 7 Pro/Outlook 2010 Copy the Outlook 2003 <profile name>.NK2 file from the users %APPDATA%\Microsoft\Outlook folder in Windows XP Pro to \Users\%username%\AppData\Roaming\Microsoft\Outlook making sure you [...]
by admin at March 06, 2012 03:16 AM
March 05, 2012
BitTorrent.com’s BitTorrent client installs a browser toolbar in Google Chrome, Internet Explorer & Mozilla Firefox. There isn’t an opt-out option to stop the toolbar installation when installing Bittorrent so you need to uninstall the toolbars after installation. To Uninstall: Google Chrome: Goto Wrench ==> Options ==> Extensions or enter chrome://settings/extensions in the location bar click [...]
by admin at March 05, 2012 10:14 PM
March 04, 2012
In the bottom left hand corner of a Google map you usually see a scale with Metres and Feet displayed. Here is a list of what I think are the google zoom level to scale legend conversions.
by admin at March 04, 2012 10:47 AM
March 03, 2012
So I decided to build a quad mainly the one designed by the diydrones.com people, there are 2 suppliers of the kit jdrones and udrones. one is based in Asia the other in the US.
I decided to be slack and buy the pre-soldered kit, I can solder and it’s not like it was anything hard like surface mount. Big NOTE when they say pre-soldered they don’t mean the entire kit has be soldered you still have to solder 24 bullet connectors and the power distribution board, and for some reason they give you the magnetometer attached by cable not soldered directly to a header on a board like they recommend.
So what I purchased from Jdrones
- ArduCopter Quad v1.1 KIT, KIT, Pre-Soldered, Tested + Software
- Upgraded with the 880kv motors 30amp esc and larger props.
- Also wanted to be able to do low altitude hover so I brought a sonar
- http://store.jdrones.com/product_p/cbl3psnr01.htm (cable)
- http://store.jdrones.com/product_p/mb1200.htm (sonar)
- http://store.jdrones.com/product_p/mntmx12pc01.htm (mount)
- What I forgot to buy is some headers: http://store.jdrones.com/product_p/conhead20angle.htm and http://store.jdrones.com/product_p/conhead20str.htm
Ok so this isn’t enough to make it fly and yes you’ve just spent nearly a AU$1000 you’ll also need to get a Battery, and a radio. For that I tried the hobbyking.com shop. Note: if it’s not in stock in the Australian warehouse delivery times seem a bit slow.Also LiPo battery’s can not be shipped by air, make sure you buy in Australia for those.
battery: ZIPPY Flightmax 2650mAh 3S1P 40C also need some connectors XT60 Battery charger I’m using a cheap only does 2S and 3S batteries get it from jaycar Lipo balanced charger
Lastly is the radio the most expensive single item after the kit. I’m trying to get my hand on this but apparently the queue is long and the might take months. why so popular you ask well it cost like $60. and something with that many channels cost normally around $200+ so If nothing ships soon I’m looking at buying one of these Futaba 7c and probably from the more local hobby store dune planes
What you need to know about the TX RX radio is basically get 2.4 GHz otherwise the local model aircraft club will not let you fly near them. and you need at least 6 channels and any more than 8 channels is pointless
The diydrone has a very smart and easily programmable flight controller if you want cheap and no as intelligent have a look at kkmulticopter
by Gabz at March 03, 2012 09:19 PM
March 02, 2012
Bunnings Warehouse an Australian hardware supplier prints purchase receipts that have a tendency to fade to the point of being unreadable. The rate at which they fade seems to depend on how much light they get and how much heat they have to endure. The problem is that they can fade to the point of [...]
by admin at March 02, 2012 02:18 AM
February 22, 2012
I have 2 pdf files scan0126.pdf and scan0125r2.pdf and I need to combine them however page scan0126.pdf contains page 1 and 3 of the combined document and scan0125r2.pdf contains page 2. Re-order selected pages from multiple PDF documents into a new combined PDF pdftk A=scan0126.pdf B=scan0125r2.pdf cat A1 B1 A2 output combined.pdf # you [...]
by admin at February 22, 2012 10:01 PM
February 16, 2012
I have a suspicion that my Remote SSL VPN server has an inactivity timeout on it and so I lose connectivity because of no traffic passing so it disconnects. Here is a one line bash script that wakes up every 60 seconds and pings a host at the other end of the tunnel so that [...]
by admin at February 16, 2012 09:02 PM
February 15, 2012
From a mate of mine Norman Goh: Issue: You need to connect to a specific Active Connection from another computer or your computer rebooted and left an active session which you cannot connect to. When you connect you get the following error message; Solution: 1. Login to the server using the following command to obtain [...]
by admin at February 15, 2012 11:58 PM
February 08, 2012
I feel silly I’ve been right clicking and choosing rename… from the TortoiseSVN context menu and manually renaming files to move them into other directories. But… you can do a right click drag and drop which gives you a context menu with Subversion options. Very time saving. Details here: http://tortoisesvn.net/mostforgottenfeature.html
by admin at February 08, 2012 11:40 PM
February 03, 2012
I got the skeleton of this script from another post. DISCLAIMER: Use this at your own risk. I am not responsible for any data corruption or loss that may occur if you decide to use this without first making sure it works for you. After playing around with it for hours I have made some [...]
by admin at February 03, 2012 06:47 AM
February 01, 2012
In Gnome 3 you have to press ALT while clicking the System Settings menu (the menu accessed by clicking your username on the top right of the screen) to get the Shutdown (Poweroff) option.
by admin at February 01, 2012 12:12 PM