Subsonic 6 Random Refresh Rate

Posted in Uncategorized by cdeschenes on November 20, 2016

The “random” section of Subsonic 6 does an automatic refresh of the page every 20000 ms. I find this way to fast to look and make a decision. So how do I change this?

Im running Subsonic on Ubuntu:

  • cd /var/subsonic/jetty/a7857c/webapp/WEB-INF/jsp
  • sudo vim home.jsp
  • Search for 20000: / 20000
  • Change to 90000
  • Save and exit.



Notepad++ Notes

Posted in Uncategorized by cdeschenes on November 13, 2015

Search & replace with adding lines:

example: I can not sleep!

I want to add “sleeping sucks” before this line

Search Mode: extended

Find what: I can not sleep!

Replace With: Sleeping Sucks\r\nI can not sleep!


Match anything inside parentheses:

Search Mode: Regular Expression

Find What:  \(([^()]*)\) Starts with a space!

Replace With: emplty




OS X 10.11 El Capitan – Flush DNS

Posted in Uncategorized by cdeschenes on November 9, 2015

To flush your DNS on OS X 10.11, issue this command in terminal:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed

OS X El Capitan xcrun: error

Posted in Uncategorized by cdeschenes on November 9, 2015

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun

How to fix this error:

xcode-select –install

Always seem to forget some of these!

Posted in Uncategorized by cdeschenes on October 28, 2015

Here are the names of some basic symbols that help with googling things pertaining to these symbols.

! Exclamation point
@ “At” sign
# Number sign or Pound sign, depending upon context
& Technically called “ampersand,” most folks refer to it as “the ‘and’ sign”
() Parentheses
[] Brackets
{} Braces
; Semi-colon
: Colon
> “Greater than” sign
< “Lesser than” sign

Raspberry Pi Wifi Setup

Posted in Uncategorized by cdeschenes on October 27, 2015

sudo vim /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
wpa_ssid SSID
wpa_psk PSK


sudo /etc/init.d/networking restart

Pydio on Ubuntu

Posted in Uncategorized by cdeschenes on May 31, 2015

Use this if you want to install Pydio on Ubuntu

sudo vi /etc/apt/sources.list

##Pydio repository add###
deb stable main
deb-src stable main

sudo wget
sudo apt-key add
sudo apt-get update
sudo apt-get install pydio
sudo cp /usr/share/doc/pydio/apache2.sample.conf /etc/apache2/sites-enabled/pydio.conf
sudo service apache2 restart
sudo apt-get install mariadb-server php5-mysql
sudo mysql -u root -p

create database pydiodb;
create user pydiouser@localhost identified by ‘pydiopassword’;
grant all on pydiodb.* to pydiouser@localhost;

sudo php5enmod mcrypt
sudo service apache2 restart
sudo service mysql restart

Fix PHP output buffering:
sudo vi /etc/php5/apache2/php.ini


output buffering: 4096

change to:
output buffering: off

sudo apt-get install imagemagick
location /usr/bin/

sudo apt-get install poppler-utils
location /usr/bin/pdftotext

sudo apt-get install unoconv

Follow the wizard to finish the setup

Other Items you may want to install:
qpdf – decrypt protected PDF files
sudo apt-get install qpdf


To get content searching to work I had to edit:


“index.lucene” => array(
“index_meta_fields” => “tags”,
“index_content” => true



setlocale(LC_ALL, “en.US.UTF-8);
define(AJXP_LOCALE“, “en_US.UTF-8);

Getting PicKit2 working in OSX

Posted in Uncategorized by cdeschenes on November 1, 2014


Extract files


  • Mac OSX 10.5 is required to run it along with the latest version of Java.
  • You need to copy pk2cmd and PK2DeviceFile.dat files into /bin folder, even if you have manually installed pk2cmd before.
  • To do that, open a Finder window and press CMD+SHIFT+G then type in “/bin” (without the ” “).
  • Drag and drop the 2 files, enter your admin password and you’re done.

Or by terminal:

  • copy pk2cmd to /bin
  • # sudo cp pkcmd /bin
  • Copy PK2DeviceFile.dat to /bin
  • # sudo cp PK2DeviceFile.dat /bin

Plugin your USB PicKit2

Run PicKit2-Programmer

If you get the message that the PK2DeviceFile.dat can not be found then run the following command.

# sudo chmod 777 /bin/PK2DeviceFile.dat

Imagemagick on OSX

Posted in Uncategorized by cdeschenes on October 26, 2014

Using Homebrew

  • $ brew update
  • $ brew cleanup
  • $ brew doctor
  • $ brew install imagemagick

That should do it.

Use a USB to Serial adapter on a Macbook

Posted in Uncategorized by cdeschenes on October 22, 2014

Open terminal app or download iTerm

Type: ls /dev/tty.\*

plug in USB to Serial adapter and re-run the previous command. You should see a new tty.XXXXXX that is for the USB device.

Mine is /dev/tty.usbserial-A702XH8W

Were going to use screen to connect to a remote terminal VIA USB. You need to specify the speed of the connection. The defaults are defaults to databits=8, parity=none, stopbits=1

screen /dev/ttySX baud_rate,cs8|cs7,ixon|-ixon,ixoff|-ixoff,istrip|-istrip
  • /dev/ttySX: Linux serial port (e.g., /dev/ttyS0 [COM1] )
  • baud_rate: Usually 300, 1200, 9600 or 19200. This affects transmission as well as receive speed.
  • cs8 or cs7: Specify the transmission of eight (or seven) bits per byte.
  • ixon or -ixon: Enables (or disables) software flow-control (CTRL-S/CTRL-Q) for sending data.
  • ixoff or -ixoff: Enables (or disables) software flow-control for receiving data.
  • istrip or -istrip: Clear (or keep) the eight bit in each received byte.

Open a terminal windows and type:

screen /dev/tty.usbserial-A702XH8W 9600