Linux:Bluetooth – Motorola S305 – way better sound or stereo :)

Re: Motorola S305 bluetooth headset Go to System->Preferences and open the Sound panel. Select the "Hardware" tab and click on "Motorola S305", then you will see the choices for in the Profile menu at the bottom. In the Profile menu you can choose between HSP/HFP (telephony) or A2DP (stereo headphones)…. Continue reading

Android: ANDROID_BIN which android unexpected error occured

$ ./create ~/projects/shoppingbuddy com.PortNumber53.ShoppingBuddy ShoppingBuddyAn unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1 Deleting project…   nano create Change the line: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" to be the absolute path: ANDROID_BIN="/home/mauricio/adt-bundle-linux-x86_64-20130219/sdk/tools/android"    

Raspberry Pi: installing a LAMP server

Let's put the Raspberry Pi to good use:   1. Install Mysql sudo pacman -S mysql 2. Start your server # systemctl start mysqld 3. Secure your mysql installation # /usr/bin/mysql_secure_installation ——————- NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL       SERVERS IN PRODUCTION USE!  PLEASE… Continue reading

Raspberry Pi: mount flash disks at boot

Now that I got a little time to work on my Raspberry Pi, I decided to have 2 2GB flash drives mounted at boot to save some write cycles on the SD card: After a few failed times, I googled for a while and the important bit is the 6th… Continue reading

WordPress: Allowing contributors to upload media

  This is the simplest way I found to allow for contributors to upload media on your WordPress blog:   Add this to the functions.php file in your current theme:       if ( current_user_can('contributor') && !current_user_can('upload_files') ) add_action('admin_init', 'allow_contributor_uploads');   function allow_contributor_uploads() { $contributor = get_role('contributor'); $contributor->add_cap('upload_files'); }… Continue reading

ArchLinux: installing on GPT/LVM/GRUB 2 (no installer)

Boot into ArchLinux ISO modprobe dm-mod pacman -Syy pacman -S gdisk   gdisk /dev/sda o   then "y" to confirm n 1 <enter> +32M ef02 n 2 <enter> <enter> 8e00 w  then "y"  to confirm ————— pvcreate /dev/sda2 vgcreate arch /dev/sda2 lvcreate -L 1G -n boot arch lvcreate -C y… Continue reading

Archlinux: Unable to boot installation “waiting for device labeled”

If you see this while trying to boot Archlinux installation   Waiting 30 seconds for device /dev/disk/by-label/ARCH_201210 … Error: Boot device didn't show up after 30 seconds… Falling back to interactive prompt. You can try and fix the problem manually…. ramfs$ Label your device ARCH_201210 and you should be good… Continue reading

ArchLinux: set of fonts I’m using on my Asus N73SV laptop

This is the current set of fonts I've installed on my Asus N73SV laptop running Archlinux.   sudo pacman -Sy font-bitstream-speedo bdf-unifont artwiz-fonts cantarell-fonts dina-font gsfonts monaco-linux-font opendesktop-fonts tamsyn-font terminus-font ttf-bitstream-vera ttf-cheapskate ttf-dejavu ttf-droid ttf-freefont ttf-inconsolata ttf-sazanami ttf-ubuntu-font-family xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-misc xorg-fonts-type1   Let me know in the comments if… Continue reading

(gs): Installing BugZilla into a subdomain

Download a BugZIlla tarball Extract it to a public accessible web folder     Install all needed modules: /usr/bin/perl install-module.pl –all (lots of output)   Make the folder writable by the apache server chmod a+w . ./checksetup.pl   Change it's settings nano ./localconfig —————-   $webservergroup = ''; $db_driver = 'mysql';… Continue reading

Bash: getting duplicate lines on both files

Today I needed to find duplicates files from: – list of URLs accessed – list of category URLs I needed to refresh data for   here's my code snippet: (This assumes LOG.txt is the file with URLs logged and CATEGORIES.txt is the list of all URLs that would pottentially need… Continue reading