How to restore the Arduino Bootloader?
July 2, 2014
· admin
Linux
Arduino
Hardware
It can be easily done using Linux. This procedure is for the 328p processor. It can easily be adapted for a 168 processor. You will need an ICSP. First, make sure that avrdude is installed. It can be installed by issuing the command:
sudo apt-get install avrdude
You will need to retrieve the bootloader. It can be found in the hardware/arduino/bootloaders/atmega directory in the 1.0.5 Arduino IDE download. It is named ATmegaBOOT\_168\_atmega328.hex.
Parametrized Measuring Scoop
June 1, 2014
· admin
3D Printing
object
This Openscad 3D object generates a measuring scoop. Simply modify the scoop volume (given in milliliters) in the Openscad file and generate the STL file. You will end up with a measuring scoop of the given volume.
Other parameters can be modified such as:
PN532 Breakout Board Mounting Plate
May 30, 2014
· admin
3D Printing
object
Specially designed for Adafruit's PN532 Breakout Board Mounting Plate (Product 364).
How to rename a user in Linux
May 20, 2014
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Linux
Ubuntu 12.04
Ubuntu 14.04
Simply issue this command:
usermod -m -d /home/new-account-name -l new-account-name old-account-name
It creates the home directory if it does not exists. It also copy the stuff of the old user into the new user account.
Enclosure For The Sparkfun RFID USB Reader
May 12, 2014
· admin
3D Printing
object
This is an enclosure for the Sparkfun's RFID USB Reader (SEN-09963).
preinst: line 118: a2query: command not found
May 4, 2014
· admin
Ubuntu
apache
Ubuntu 14.04
If you are getting the following errors while trying to install Apache on Trusty (Ubuntu 14.04), execute the commands below and try to re-install it.
Preparing to unpack .../apache2_2.4.7-1ubuntu4_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: line 118: a2query: command not found
dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The commands to resolve this issue are:
dpkg --fsys-tarfile /var/cache/apt/archives/apache2_2.4.7-1ubuntu4_amd64.deb | tar xOf - ./usr/sbin/a2query > /usr/sbin/a2query
chmod 755 /usr/sbin/a2query
Replace /var/cache/apt/archives/apache2\_2.4.7-1ubuntu4\_amd64.deb with the name of the file given in the error messages. Note that the first command is splitted on two lines in the above. So, copy both lines at once before pasting it in a terminal window.
How To Restore Skype Status Bar Icon In Ubuntu 14.04
April 28, 2014
· admin
Ubuntu
Ubuntu 12.04
Ubuntu 14.04
After installing Skype on Ubuntu 14.04, there is no icon in the status bar. To restore it, simply execute the following command:
sudo apt-get install sni-qt:i386.
This procedure works on the 64 bits version of Ubuntu.
How to change the maximum upload file size in PHP
April 28, 2014
· admin
PHP
apache
You can increase the maximum upload file size for only one application by creating a php.ini file in the directory where the file upload PHP script is. Add the following lines:
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
It can also be changed system wide by editing the file /etc/php5/apache2/php.ini which is the global php.ini file. Modify the two lines listed above and restart apache.
20 mm wide 90 Degrees T-Slot Angle Brackets
April 28, 2014
· admin
3D Printing
object
20 x 20 x 20 mm, 20 x 40 x 40 mm and 20 x 60 x 60 mm 90 degrees T-Slot brackets.
How to display the version of Ubuntu you are running
April 18, 2014
· admin
Ubuntu 11.10
Ubuntu 11.04
Ubuntu
Ubuntu 12.04
From a terminal window, type in:
lsb_release -a