Google Photos

Google Photos was just released two days ago.
It offers unlimited storage for files under 16gb.
Great! My m 4/3 camera’s sensor is only 16mb, so I should be able to store all my photos for free 🙂

But, it mentions compression.

So I upload a picture:

Original File size: 6.78 mb, dimensions: 4,592 x 2,584

I then downloaded it and noticed the file size was much less:

Google File size: 1.94 mb, dimensions: 4,592 x 2,584

After comparing the images I couldn’t discern any quality loss.

Mining the Social Web

Mining the Social Web, 2nd edition is a book about

how to tap into the wealth of social web data to discover who’s making connections with whom, what they’re talking about, and where they’re located? …. using Facebook, Twitter, LinkedIn, Google+, GitHub, email, websites, and blogs.

The example code for this unique data science book is maintained in a public GitHub repository. It’s designed to be easily accessible through a turnkey virtual machine that facilitates interactive learning with an easy-to-use collection of IPython Notebooks.

 

Appendix A: Virtual Machine Experience contains the setup instructions. My notes here are based on it. Because Python and all its extended libraries can be complex to use the author of the book has put together an virtual image. He uses VirtualBox for the VM and Vagrant.
The Python used is version 2.x I think using Anaconda Python you could very easily achieve a similar install without too much hassle.

1. Download and install the latest copy of VirtualBox for your operating system

As I am setting my MacBook up for development I installed Kinematic because I want to be able to use Docker images on my Mac. This also installs VirtualBox.

2. Download and install Vagrant

Both Vagrant and Docker do the same thing, “Create and configure lightweight, reproducible, and portable development environments.” Hopefully they won’t interfere with each other.

After everything is installed, check that it is running:

[code language=”bash”][macbook.local] Sun Apr 26 ~/src/miningsocialweb
[6] 12:21:01–> vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: VirtualBox VM is already running.[/code]

OK, everthing is installed, the iPython server is running in the virtual machine, how do you access the iPython notebook?

In you browser type: http://localhost:8888

 

Useful Links

The github repository for Mining the Social Web, 2nd Edition (O’Reilly, 2013)
https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition

http://miningthesocialweb.com – a companion blog for the book with the simple purpose of taking social web mining mainstream.

Vagrant Cheat Sheet

Anytime you run these commands, it needs to be in the top level source code directory in which your Vagrantfile is located.

For me that is: ~/src/miningsocialweb

Your Vagrantfile provides the basis for which the commands operate.

Essential Commands

vagrant up – Starts your virtual machine.
vagrant status – Tells you if your virtual machine is running.
vagrant suspend – Saves the state of your virtual machine. (Similar to putting it to sleep.)
vagrant resume – Restores a suspended virtual machine. (Similar to waking it up from sleep.)
After your first vagrant up, a suspend/resume operation only takes a few seconds.
Destroying your virtual machine means that you’ll need to wait through the ~20 minute boostrap process the next time that you vagrant up.

Commands for Advanced Users

vagrant halt – Shuts down your virtual machine.
After your first bootstrap, a vagrant up only takes about one minute to complete.
vagrant destroy – Destroys your virtual machine to the state of its base image.
After you destroy a virtual machine, a vagrant up takes the full ~20 minutes to complete.
vagrant ssh – Logs you into your virtual machine over SSH and provides a terminal.

List of process or VM running in VirtualBox
VirtualBox – list of virtual machines.

When you use the Vagrant halt command it stops the second VM in the picture above

After you reboot it appears that neither VM is running automatically, which is good as I don’t want them slowing down my machine when I am watching cat videos on youtube.

[code language=”plain”][macbook.local] Sun Apr 26 ~
[1] 13:39:30–> vagrant status
A Vagrant environment or target machine is required to run this command. Run `vagrant init` to create a new Vagrant environment. Or, get an ID of a target machine from `vagrant global-status` to run this command on. A final option is to change to a directory with a Vagrantfile and to try again.
[/code]


oops, change to the directory where the vagrant file is ~/src/miningsocialweb

[code language=”plain”][macbook.local] Sun Apr 26 ~/src/miningsocialweb
[7] 13:39:53–> vagrant status
Current machine states:
default poweroff (virtualbox)

The VM is powered off. To restart the VM, simply run `vagrant up`[/code]

 

Libraries are great! Free access to lynda.com

lynda.com was recently acquired by Linkedln for $1.5 billion!
lynda.com produces training videos on many topics.

I  have found their courses on Adobe Photoshop, Lightroom, MS Office, R and Python to be first rate.
Monthly access to the site starts at US $25, so getting free access is a great deal.

This is web browser access only, so no access to the android or IOS apps , but for the price you really can’t complain. You also get access to the sample files which you can download and follow along with the videos.

So how do you get access? ozbargain had a great article on "Free Lynda.com Access for Qld Library Members". Fortunately the comments showed free and legal access in my area:

tori on 11/04/2015 – 12:07
Eastern Regional Libraries Vic also has access. Really, check your local libraries and support them, it seems a few do have access.
http://www.erl.vic.gov.au/main/page.php?m=14

Clicking on the link takes you to the Online Resources for Eastern Regional Libraries.

Continue reading “Libraries are great! Free access to lynda.com”

Theme to make FoldingText look like WriteRoom

From Theme to make FoldingText look like WriteRoom

 
The folding text wiki states:

Themes are made from CSS/LESS rules that you put in your user.less file. To use a theme open FoldingText based app and:

  1. Choose the File > Open Application Folder menu item.

  2. Inside that folder open your existing user.less text file, or create a new one if none exists.

  3. Paste in the theme extensions CSS/LESS rules and save.

  4. Create a new document to see the theme applied.

What it doesn’t tell you is where to put the user.less file.

1. Click on the Folding text menu
2. Select Plug-In Manager. A dialog box will pop up
3. Click on the Open Plug-Ins Folder button
4. Finder will open, click on the path button and select FoldingText
5. The user.less file should be there in the FoldingText folder, feel free to modify it.

@inkColor: hsl(hue(green), saturation(green), 30%);
@paperColor: mix(black, white, 90%);
@deskColor: mix(black, white, 90%);
@indicatedColor: @inkColor;
@selectionBackgroundColor: mix(@textColor, @paperColor, 20%);
@focusedSelectionBackgroundColor: mix(@textColor, @paperColor, 25%);
@codeblockBackgroundColor: fadeout(@textColor, 85%);
::-webkit-scrollbar {
  width:15px;
}
::-webkit-scrollbar-thumb {
  background-color: mix(@textColor, @paperColor, 25%);
  border: 3px solid transparent;
  border-radius: 9px;
  background-clip: content-box;
}

Synology 5.2 – Docker – R and iPython

After reading Macdrifter talking about the new Synology DSM 5.2 beta I thought why not.

Installed it, have been playing around with Docker which looks very interesting.

I installed the R Server and it works great.
Next up is iPython 3, there is even Anaconda Python available as a docker image 🙂

docker run -i -t continuumio/anaconda3 /bin/bash

But alas this doesn’t work, you get the an error message telling you that -i and -t can’t be used.

I am assuming that rules out an interactive telnet or SSH session on Synology?  … I have got the time to do more research at the moment.

From the DSM 5.2 help, which is actually quite good:

  • Docker run supports the below parameters:
    • “d”, “detach”
    • “e”, “env”
    • “link”
    • “m”, “memory”
    • “name”
    • “P”, “publish-all”
    • “p”, “publish”
    • “privileged”
    • “v”, “volume”
  • Docker run does not support the below parameters:
    • “a”, “attach”
    • “add-host”
    • “c”, “cpu-shares”
    • “cap-add”
    • “cap-drop”
    • “cidfile”
    • “cpuset”
    • “device”
    • “dns”
    • “dns-search”
    • “entrypoint”
    • “env-file”
    • “expose”
    • “h”, “hostname”
    • “i”, “interactive”
    • “lxc-conf”
    • “net”
    • “restart”
    • “rm”
    • “security-opt”
    • “sig-proxy”
    • “t”, “tty”
    • “u”, “user”
    • “w”, “workdir”

TV

Just finnished watching the first season of “The Wire”
Loved it.

Had to watch it as it was refered to in the YouTube “Honest Trailers Breaking Bad” as the show white people won’t stop talking about.