Sep 14, 2017

Autoencoder

Aug 24, 2017

Bose Soundlink headphone with Bluetooth in Ubuntu

  1. Create /etc/bluetooth/audio.conf
    [General]
    Disable=Socket
    Disable=Headset
    Enable=Media,Source,Sink,Gateway
    AutoConnect=true
    load-module module-switch-on-connect
    
  2. In /etc/bluetooth/main.conf set
    ControllerMode = bredr
    AutoEnable=true
    
  3. Restart bluetooth
  4. Connect your headphones
  5. Choose High Fidelity Playback (A2DP sink)-mode in sound options
Reference

Aug 21, 2017

Aug 10, 2017

More bash scripting

String split:
-------------------
#!/bin/bash
f="egan#mcclave"
substring="#"
##===========================================================================
# find the 'model_name'
index="$(echo $f | grep -b -o $substring | sed 's/:.*$//')" # redirecting the output of echo into a variable with "$(...)"
#echo $index
first=${f:0:$((index))} # taking the substring 0-index
echo "first : "$first
   
second=${f#*$substring} # find the occurrence of $substring in $f
echo "second : "$second

AutoX demo

http://www.autox.ai

Aug 9, 2017

Nvidia driver from cuda toolkit

I was stuck with this issue for a long time for my Ubuntu 16.04. After installing a fresh copy of Ubuntu 16.04, I installed cuda 8.0 toolkit using the deb(local):

$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

$ sudo apt-get update

$ sudo apt-get install cuda

Nvidia driver is working well on my computer now. Prior to that, I was trying to install Nvidia driver using the *.run file without any luck. Give it a shot it will save your valuable time.


Reference 1
Reference 2

Reference: Somebody liked my solution :D