Archive for the ‘Uncategorized’ Category
October 31, 2014
After an LTS upgrade, my Apache was no longer working. The new version of Apache came with two significant changes to the configuration file.
Virtual Hosts The filter for including hosts from /etc/apache2/sites-enabled had been updated to only match paths ending in the extension .conf. More about it here (see post by augustin from Sep 17).
Permissions outside of normal Document Root The default permissions had become more restrictive disallowing access outside the normal document root. More about it here (see post by Irve from May 22).
Tags:14.04, apache, LTS, permissions, ubuntu, upgrade, virtual hosts
Posted in Uncategorized | Leave a Comment »
July 30, 2013
While looking for a description of the differences in the three types of sensor swab products from Photographic Solutions I came across this reference.
The overall rule seem to be that the key is:
- Type 1 – For reduced frame (crop 1.3) sensors
- Type 2 – For reduced frame (crop >1.3) sensors
- Type 3 – For full-frame (35mm) sensors
There are discrepancies though (e.g. the Nikon D7000 being mapped to type 1).
On a related note Thom Hogan has a nice article on sensor cleaning.
Tags:dslr, evil, photographic solutions, sensor cleaning, sensor swab, type, type 1, type 2, type 3
Posted in Uncategorized | Leave a Comment »
July 23, 2013
This assumes that you have your phone in developer mode, that it is attached to your computer using a USB cable and that it is accessible from the computer through 192.168.0.115.
Switch to wireless ADB by running (on the computer):
adb tcpip 5555
adb connect 192.168.0.115:5555
Switch back to wired by running:
adb usb
Read more here.
Tags:adb, android, connect, daemon, tcpip, usb, usb cable, wifi, wired
Posted in Uncategorized | Leave a Comment »
May 21, 2013
A failed scp transfer can be resumed using the following command:
rsync --partial --progress --rsh=ssh user@host:remote_file local_file
Naturally, you will have to replace user, host, remote_file and local_file.
Tags:failed, pause, resume, rsync, scp, scp transfer, transfer
Posted in Uncategorized | Leave a Comment »
May 10, 2013
The Android Developer Tools (ADT) version of Eclipse has a so-called “Android Virtual Device Manager”, available through the “Window” menu. It essentially holds a list of virtual device configurations. A highlighted configuration can be started.
If no configuration is started, running an application will result in the following error message:
[2013-05-10 13:54:45 - MyFirstApp] Android Launch!
[2013-05-10 13:54:45 - MyFirstApp] The connection to adb is down, and a severe error has occured.
[2013-05-10 13:54:45 - MyFirstApp] You must restart adb and Eclipse.
[2013-05-10 13:54:45 - MyFirstApp] Please ensure that adb is correctly located at '/opt/adt-bundle-linux-x86_64-20130219/sdk/platform-tools/adb' and can be executed.
Tags:adb, adt, android, Android Virtual Device Manager, developer tools, device manager, down, severe error
Posted in Uncategorized | Leave a Comment »
February 9, 2013
First step is to become root. One of the following should do
sudo su
ssh root@localhost
Next step is to copy the skeleton service:
cp /etc/init.d/skeleton /etc/init.d/SERVICENAME
Then update the copy to make sure that the variables DESC, NAME, DAEMON, DAEMON_ARGS, PIDFILE, and SCRIPTNAME are correct:
nano /etc/init.d/SERVICENAME
Then depending on distribution run one of the following (first is for debian, last is for redhat):
update-rc.d SERVICENAME defaults
chkconfig SERVICENAME on
Tags:automatic loading, boot, boot-time, chkconfig, debian, debian testing, init.d, service, skeleton, skeleton file, skeleton service, testing, update-rc.d
Posted in Uncategorized | Leave a Comment »
February 7, 2013
Connecting the TI MSP-FET430UIF (a msp430 programmer) to a box running debian testing will not result in a device being created. This is caused by a missing firmware file (ti_3410.fw).
Download it from here (local copy here) and place it in the /lib/firmware directory. Then reconnect the FET430 and the port should show up.
Found the fix here.
Tags:/lib/firmware, debian, debian testing, fet430uif, msp-fet430uif, msp430, testing, texas instruments, ti, ti_3410.fw
Posted in Uncategorized | Leave a Comment »
January 11, 2013
Download
Download from here.
Extract
Assuming that (i) /opt exists, (ii) you have permission to write to it, and (iii) you downloaded the amd64 version to ~/Downloads:
cd /opt
unzip ~/Downloads/adt-bundle-linux-x86_64.zip
Verify
Start by running:
cd /opt/adt-bundle-linux/eclipse
./eclipse
Add shortcut to Gnome Shell
Save the following to /usr/share/applications/adt.desktop:
[Desktop Entry]
Version=1.0
Name=Android Developer Tools
GenericName=Android Developer Tools
Comment=Android Developer Tools
Exec=/opt/adt-bundle-linux/eclipse/eclipse
Terminal=false
Icon=/opt/adt-bundle-linux/eclipse/configuration/org.eclipse.osgi/bundles/2/2/.cp/icons/android-64.png
Type=Application
Categories=Programming;
MimeType=text/x-java-source;
Notes:
- You must be superuser to write to this location.
- There are two references to the installation directory.
- There should be a local version of /usr/share/applications/, but I couldn’t find it.
- The 64-bit version depends on a 32-bit libncurses package.
At this point ADT should be registered with the gnome activity screen.
Tags:activity screen, adt, android, android developer tools, debian, gnome shell, guide, installation, libncurses, shortcut, testing
Posted in Uncategorized | Leave a Comment »
December 30, 2012
Empathy should really give better error messages than “Network Error”. The Help->Debug window is not easy to decipher. I still have no idea what is causing it.
This time around I encountered the problem on an up-to-date Debian Testing installation. It affected my Facebook chat. The following command seems to fix it:
killall telepathy-butterfly telepathy-haze mission-control-5 telepathy-logger telepathy-salut telepathy-gabble empathy-chat empathy
Tags:debian testing, empathy, Facebook Chat, Network Error
Posted in Uncategorized | Leave a Comment »
February 27, 2012
I am starting to see a lot of tos-bsl errors of the format:
$ tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p main.hex
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
An error occoured:
Bootstrap loader synchronization error
According to this post the issue is related to ports not being released properly. Opening and closing the device in a serial console (like cutecom) fixes the problem.
Tags:bootstrap loader, bsl, ftdi, synchronization error, tos-bsl, usb
Posted in Uncategorized | Leave a Comment »
November 28, 2011
After upgrading the Ubuntu install on my laptop from Natty to Oneiric my VMWare Player failed to start. It gave a error about not being able to compile the wmmon module. The compile process reported errors like:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:783:59: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
The fix was to repeat the official installation instructions. No need to remove the old one first. This upped the major version number in the progress.
Tags:natty, oneiric, player, SPIN_LOCK_UNLOCKED, ubuntu, upgrade, vmware, wmmon
Posted in Uncategorized | 1 Comment »
July 16, 2011
You can’t. Facebook doesn’t support editing of groups in their jabber implementation. The trick then becomes to assign groups through facebook.
This is done by logging into facebook and choosing ‘Edit Friends’ from the ‘Account’ drop-down menu. The process is first to create the groups (lists in facebook-lingo) and then to assign contacts (friends in facebook-lingo) to them.
Tags:contact groups, contacts, empathy, facebook, friends, group, Jabber, list
Posted in Uncategorized | Leave a Comment »
June 20, 2011
Installed Natty Narwhal (Ubuntu 11.04) and quickly became annoyed with the new ‘unity’ interface. The old ‘classical gnome’ option worked fine, but I decided to try installing Gnome 3 from PPA.
I ended up with some fallback theme. With some inspiration I managed to fix it using
sudo apt-get remove gnome-accessibility-themes gnome-accessibility-themes-extras
sudo apt-get install gnome-themes-standard
and then choosing the ‘Adwaita’ theme.
Tags:11.04, adwaita, gnome 3, natty, natty narwhal, ppa, theme, ubuntu, unity
Posted in Uncategorized | 1 Comment »
October 27, 2010
A bug in upgraded Ubuntu 10.10 (Maverick Meerkat) installations has caused the boinc manager to lose its menubar. As a result the option to control the execution policy is gone.
The same control is available through the commandline,
boinccmd --set_run_mode always
for starting and
boinccmd --set_run_mode never
for stopping.
Tags:10.10, boinc, boinc manager, boinccmd, Maverick, Maverick Meerkat, menu, menubar, ubuntu
Posted in Uncategorized | Leave a Comment »
October 13, 2010
An update to Maverick Meerkat disabled sound on my laptop (a 13″ mbp7,1). I got it working again by following this guide, which states that:
-
Add to the end of /etc/modprobe.d/alsa-base.conf the following line:
options snd-hda-intel model=mbp55
The file can be opened by running: gksudo gedit /etc/modprobe.d/alsa-base.conf
- Save the file and reboot the computer
Tags:10.10, alsa-base.conf, audio, Macbook Pro, Maverick Meerkat, mbp7, snd-hda-intel, sound, ubuntu
Posted in Uncategorized | 2 Comments »
October 12, 2010
After updating to Ubuntu 10.10 – the Maverick Meerkat – I discovered, that I had lost the touchpad preferences on my Macbook Pro 13″ (mbp7,1). A quick-google revealed this post, describing the solution:
- Install the driver: sudo apt-get install xserver-xorg-input-synaptics
- Log out and then back in
- Open System>Preferences>Mouse and go to the Touchpad tab
Tags:1, 10.10, Macbook Pro, Maverick Meerkat, mbp7, preferences, synaptics, touchpad, ubuntu
Posted in Uncategorized | Leave a Comment »