Tuesday, November 25, 2014

Command line RSS reader - newsbeuter

Since I started to play around with RSS feeds I've been looking for various ways to access these types of feeds. As I have been putting an effort in trying to use the CLi more often, I decided to try a command line RSS reader on my Ubuntu 14.04 install. Newsbeuter seemed to be a popular choice for people so I decided to try.

On Ubuntu the install can be done via the repository

$ sudo apt-get install newsbeuter

Once installed I imported the data from my feedly account by downloading the OPML file under the section "organize" (for some reason)

After placing the file in the newsbeuter folder, I ran the command

$ newsbeuter -i /home/username/.newsbeuter/feedly.opml

...to load my URLs from Feedly. Now run the program

$ newsbeuter



Thursday, October 2, 2014

BTSync - an alternative to cloud storage

For a while now, I have been concerned about my reliance on cloud services such as dropbox, evernote, google drive and Spider Oak. I have an active account with all of these services and more and more I worry about the fact that I have given so much of my data to these companies. I don't necessarily believe that these corporations are necessarily doing anything particularly evil with my data and I also don't upload anything terribly sensitive to the cloud. But in any case, that's not to say that quite a bit of the data I do put on the cloud I would still prefer to keep out of the public domain. For this reason I have started to look an alternative service, BitTorrent Sync.

For those unfamiliar with this system, it is basically a service developped by the folks that invented torrenting where you use a similar bit torrent protocol to sync data between different machines. The beauty of this system lies on the fact that all this data is stored locally in all machines involved and all data transfer is done in an encrypted manner. Meaning that you are not giving your data to anyone else, it stays withing all the machines sharing this data, and that's it. Not only that, but much like bit torrents, it can download this data in a really efficient way using direct connections to all machines involved. Lastly, one of the major advantages of this service over dropbox and others is the fact that there is no storage limits beyond how much you can store on your hard drive. Now, that's not to say that there isn't a downside of using this service. The downside is the fact that at least two machines need to be online for the data to successfully sync, so people like me that turn off their computers when they are not being used can't keep files updated all the time. For this reason I have devised a solution, which is to use my ubuntu server as a torrent sync server. BT Sync by its nature has no server, all clients just share the data, however if I add my home server to the loop, it will be updated at all times when it is online, serving as my personal "cloud" storage in a way. In this post I will go through the process of getting my server setup.

To start, download the appropriate tar file from the official website, http://www.bittorrent.com/sync/download

 note that you need to download the file that correspond to your system, whether it is 32 or 64 bits. To find out what your machine is, type:

$ uname -a

if you see a i386 in the response you are using a 32 bit install, while anything showing x86_64 is likely a 64 bit install.

Once I downloaded the appripriate file, unpak it into a folder where you will keep your executable and configuration files. Note that this folder needs to separate from the folder you intend to share since apparently failing to do that will cause a lot of synching issues.

To unpack the tar ball type:

$ tar -xvzf bittorrent_sync_i386.tar.gz

of course, substitute the name of the tar ball if you are using a 64 bit system. Once that's done run the executable with

$ ./btsync

This should prompt  a message indicating even the process id for the BitTorrent Sync application in case you need to restart it. Setting up your shares on linux is done via a web GUI via the default port 8888. One issue I came across the first time I set up my BTSync was that since I'm using a headless server and connecting to it via SSH, I needed to use the web GUI and for some reason could not connect to it right away. Instead, I needed to configure my BTSync to listen to the 8888 port from all ips (0.0.0.0) instead of just 127.0.0.1. To accomplish this you need to type

$ ./btsync --webui.listen 0.0.0.0:8888

Now to use the web GUI, use your favorite browser from a machine that does have a graphical interface and type the your server's ip followed by the port number you selected, in our case port 8888. So if my internal ip is 192.168.0.70 (use ifconfig if you need to find this out), then use

http://192.168.0.70:8888

From there, click on the "add folder" icon and select the folder you would like to sync. Just remember to backup this folder before going further. It's unlikely you will screw up, but just for good measure, you should always back up your data before an action like this.

Once you have added the folders you want synced to your list, click on the "3 dots" icon at the end of the line where the folder is displayed and go to "preferences". There you should see a button to "View Key". Here you will have the opportunity to copy a key for sharing this folder as a "read only" folder, or as a read and write folder.

Install following the instructions once again on another machine you want to sync with your server and this time, instead of clicking on the add folder button use the cog button instead, where you should see the option to "Enter a key..." That's where you will enter the hashed number you saw previously. Find the folder you want to sync and voila.

That's it, it should work and will work over several different installs. One last detail, you may need to set up a cron job or some other way of initializing the btsync executable every time you turn your server online.

edit- One detail I forgot to mention, you will need your clocks to be synchronized for BTsync to work. In case you need instructions on how to do that on your linux machine, use the following link http://www.howtogeek.com/tips/how-to-sync-your-linux-server-time-with-network-time-servers-ntp/


Sunday, September 28, 2014

Download streamed flash videos from the command line

I have just been looking for ways to download streamed videos into my hard drive so I can watch them later when I'm away from my wifi. With the power of linux I really wanted to find a way to do this in a simple way and ideally from the command line. So that's how I came across this tool called "get-flash-videos" which is a pretty descriptive name for the app.

I've tested it already and it works quite well, but I should note that you shouldn't use this to download anything you are not supposed to download. Just avoid doing anything illegal with this information of course.

Anyway, let's get started on how to install and use this tool.

There is quite a bit of information you can find on how to obtain and how to use this app on the following link --> https://code.google.com/p/get-flash-videos/ ... https://code.google.com/p/get-flash-videos/wiki/Installation

For my own use, I followed the Debian based distro guide which requires you to install

$ sudo apt-get install libwww-mechanize-perl libxml-simple-perl

then use wget to download the .deb file

$ wget http://get-flash-videos.googlecode.com/files/get-flash-videos_1.24-1_all.deb

Lastly, install it via

$ sudo dpkg -i get-flash-videos_1.24-1_all.deb

That's it, as easy as pie...

Now to use this little tool, use the following command to watch a video:

$ get_flash_videos -p http://website.url/video

or alternatively if you want to download the video directly to your hard drive use

$ get_flash_videos "http://website.url/video?f=1&v=1234" 

Enjoy... and if you want something specific for youtube, I've heard that youtube-dl is quite good but I haven't tried it myself yet.

Thursday, September 25, 2014

Shellshock - your bash may be making you vulnerable

Turns out that if you are a Linux or a Mac user you may be vulnerable to remote attacks via your bash shell. To check whether your machine is vulnerable you can use the following command:

$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'

if your terminal returns the message "vulnerable hello" than you are vulnerable and you need to remediate that.

You are safe if the message "bash: warning: x: ignoring function definition attempt bash: error importing function definition for 'x' hello"

To fix your system you can update your bash via the command line by typing:

$ sudo apt-get update && sudo apt-get install --only-upgrade bash

this command will work on any debian based distro, if you are using another distro, I would redirect you to this link for the appropriate command to update your respective bash.

Monday, June 30, 2014

Downloading files remotely using PuTTY

Recently at work I found myself in a situation where I needed a file from my home server and I had just replaced my work laptop and still didn't have a linux installation available. After doing a bit of searching I found out that I can use PuTTY under windows to directly download this file through an SSH tunnel. Here is how you can do that.

Open the windows command prompt by typing "run" in the search box and pressing enter.

Once you have the terminal open find the path to the folder where putty is located, on my windows 7 install that equates to C:/Program Files x86\Putty

from there just make sure you have the file pspc.exe available (if you don't know, the command "dir" shows files , but I'm assuming if you know how to use PuTTY you also know how to navigate windows using the terminal.

Run pscp by typing the command

pscp.exe 

now enter the command

pscp.exe username@x.x.x.x:/file_path/filename c:\directory\filename

where username pertains to your credentials to log into the server via SSH remotely. x.x.x.x is obviously the ip address of the server you are trying to download the file from. The first path pertains to the path of the file you want to retrieve (yes you have to know this in advance, if you don't just SSH normally and figure it out first). Then the last path is the path of where you want you new file to be downloaded into.

I hope this is helpful for when you can't just use sshfs under linux. If you don't know what SSHFS is look it up, it's basically an SSH method of mounting a samba directory remotely. I may post more on that at some point.

Tuesday, June 17, 2014

Linux distro sampling pt3 - Debian Xfce + Xubuntu 14.04

Debian 7 Xfce edition (VM)

Next I decided to give Debian Xfce a try since I saw that I had already downloaded the torrent for it a few weeks ago. I have had quite a bit of experience with xfce from my previous Xubuntu installs. Once again, using a non-Ubuntu distro makes it so I have to learn quite a few new things, however using Xfce does seem to make it a bit more familiar to me. I think just changing from GNOME to Xfce has the potential to make this experience much better. It appears just as stable and consistent as the other DE, while being much more lightweight and looking much much more pleasing in my opinion. Judge it yourself.



Xubuntu 14.04 (VM)

Next I decided it might be a good idea to see if Ubuntu 14.04 would work well on my ASUS P550C laptop as a VM since I'm too chicken to try dual booting it on this machine. After trying it I realized it wasn't going to happen. Not only unity is extremely sluggish and buggy in this machine as a VM. Besides that the mini toolbar for Virtual box keeps leaving this dark bar where it comes out to, which makes it look pretty sloppy. Removing this black bar seems to require removing the mini Toolbar which I don't want to do either.

Due to these reason I tried Xubuntu 14.04 the Trusty Tahr next. I'm used to Xubuntu from all my other VMs and once again I must say Xubuntu makes for the best VM experience I've had so far. It can look beautiful, it works, it's fast and good on resources. Just perfect really. Plus have I mentioned how pretty your OS can look?

At some point I might put together a nice looking Xubuntu setup and maybe post something about all my setting for folks interested in what I did.

Monday, June 9, 2014

Linux distro sampling pt2 - Debian 7 on ASUS P550CA

Recently I got a new ASUS P550C laptop from work. As with most my machines nowadays I try to run some form of Linux on them to accomplish some of the tasks in which Windows is handicapped at performing. Well I will begin this post first talking about my experience with the actual computer first.

Laptop Review: ASUS P550C (also called ASUS P550CA on the website)

First of all, this laptop is fairly impressive at first glance. It has a nice 15" screen, it has a relatively nice keyboard that features a keypad which I'm very thankful for (no backlight though... I'm spoiled, I know!). It has a nice finish and it is very light in my opinion, which may be a bad opinion since I'm used to my alienware (performance and weight are often mutually exclusive). Right from the get-go I notice some issues with my wi-fi adapter. It would disconnect under windows every 5-10 minutes. I started using a cable because of it. The wifi is also completely not supported by ubuntu so I also had to use a cable under my dual boot Ubuntu 14.04 install I started with. Eventually the wifi completely gave up which I alerted to the it people. After they contacted the Tiger Direct they mentioned that this particular adapter has been giving users some headache. For those curious I'm speaking about Mediatek MT7630E 802.11bgn. Long story short, I just received a new machine.

The other major complaint I have regard the UEFI/booting rubbish that made it extremely difficult to dual boot Ubuntu on my first machine. My new machine so far has been even worst. Every time I try to install Ubuntu 14.04 it basically tells me I can only overwrite Windows. It does not display the "install alongside" option which is a bit scary. For this reason I don't want to do the partitions on my own since I don't want to have to fix the windows booting garbage that is now standard in so many machines.

In summary, I had a great first impression of my ASUS P550C laptop which soon turned into frustration. This ASUS laptop is very Linux unfriendly as far as I'm concerned, so I must give some thumbs down to ASUS for manufacturing a laptop in the year 2014 that simply can't play nice with other operational systems.

Debian 7 (VM)

Anyway, done with my rant on ASUS. Now that I've been scared enough I decided to just install VirtualBox and use linux through a VM on my work machine which is what I was doing before anyway. I decided that before I settle on one distro I wanted to sample a few to see what is the most practical and useful to me for the types of needs I will have at work.

Well the first thing I have to say is that trying to use Debian was the first time I realized how Ubuntu centric my Linux experience has been up to this point. There are so many choices and small differences working with Debian coming from Ubuntu based distros. The most striking for me was the fact that I didn't know how to work under root. As a lot of you know, in Ubuntu you can simply use sudo on everything, apparently Debian requires you to log in as root in order to perform a lot of different admin tasks. Anyway, there it is, I'm a linux noobie outside of ubuntu.


Unfortunately for me there is a pretty good learning curve to migrate to this version of Debian. I can definitely see the appeal of this distro as it seems very stable and full of great admin tools right from the clean install. Unfortunately, it is a tad too new for me at this point. I will certainly consider it when I have a bit more free time to learn how to get the most out of it. The other reason I am hesitant of using this distro on my laptop is the desktop environment, I do not like Gnome very much. For this reason I decided to see if Debian Xfce is a bit more friendly to someone like me... (continued on pt.3)

Saturday, April 19, 2014

Review of Ubuntu 14.04: The Trusty Tahr is out

I must admit, this was the most anticipated release of Ubuntu so far for me. I had been using 12.04 for a while on my main machine and I was eager to get my hands on this shiny new version of my favorite Linux distro.

After downloading the iso via torrent I installed it and here are my initial comments:

I very much like the aesthetic changes done, including the login screen, the colours and particularly the window resizing overhaul. I thought these would be barely noticeable for me but coming from 12.04 I definitely feel that the overall package looks shinier and more pleasant to look at.

I find it unfortunate that Ubuntu One is closing down but I do believe this doesn't really reflect on the health of canonical in general. One aspect of Ubuntu I think needs an overhaul is the software centre. It has pretty much looked the same for a while and if anything I think it may have looked better a few years ago than it looks now. I personally feel that while the rest of the OS has been evolving into a beautiful piece of software, the software centre still looks the same and it is already looking pretty dated.

*Before I continue, let me say that I have already adopted 14.04 to be my desktop OS for the next while. That's because I really really do like it. However I do have some criticism as well, so I wish that anyone reading this does not get discouraged from trying this distro based on the rest of my post.*

While I was very excited to use the latest HUD from Unity, I felt slightly disappointed so far because while the HUD idea is brilliant to the point of being almost revolutionary to me, it is still not doing what I believe it should be doing. I love the idea of having the HUD where I can not only use to open files and applications in my own computer, I would love to be able to easily pick filters and search engines that can be integrated to Unity that way. From my limited experience so far, it looks interesting but it is far from being what it should be. Part of the problem is that I did not find the HUD to be very user friendly and perhaps having a tutorial would be useful or some other way to really make the HUD intuitive and customizable. Once Ubuntu can do that effectively I would not be surprised if other OSs copied the idea because it is simply brilliant.

Some of the issues I had in the past with Ubuntu such as difficulty installing supported software like "Steam" are still there. I don't know why but when I try to install steam from the Ubuntu Software Centre it doesn't offer me an option to just "install", instead it says "Buy" which eventually leads me to errors.  I really hope little glitches like that are taken care of soon because I strongly believe having an OS that works as it is intended all the time is vital if Ubuntu is ever to be a true competitor of Apple and Microsoft.

I've also encountered some problems with my sounds settings. For some reason my earphones only produce sounds from the left side. I know it's not a harware issue since Windows plays sounds fine on my machine. After doing some research I haven't been able to find an easy solution yet and it is a bit frustrating. So often Linux advocates bash new users because they say Linux is too hard to use consistently and this exemplifies what I mean exactly. I know that it is often a result of hardware manufacturers not paying as much attention to Linux, however, in order for Linux to really become popular accross the board, it needs to have issues like this addressed.

While Ubuntu still offers all the customization that it has offered in the past, I don't like that Canonical has disabled a lot of the options that use to be out of the box such as multiple workspaces and things like that. I also think they have made some of the settings a bit harder to access now which is likely an attempt to "dumb down" the OS to make it more user friendly. Unfortunately I do not like having to spend so much time tweaking my distro just so it could run like my Ubuntu 11.10 use to run. But if doing things like this helps to get more users I can forgive Canonical for it, but maybe offer an option during install for "new user" vs "seasoned user".

Overall though, I am extremely excited to be finally running Ubuntu 14.04 Trusty Tahr. I have been waiting for this version for a while and I am very impressed with what I have seen so far. After attempting to use quite a few other distros like Xubuntu, Mint 16, Kali, Debian and Ubuntu Gnome, I still feel that Ubuntu continues to deliver the best experience of all of these. Mint has climbed significantly in popularity, but to be perfectly frank I don't think it offers any more user friendliness than Ubuntu does. I strongly recommend Ubuntu to anyone wanting to try Linux for the first time as it is a great system, and I would love to see some of the more persistent problems with the distro disappear so that Ubuntu can really make an impact on the desktop market. Unity may be a source of a lot of differences of opinion, but in my opinion Unity is the most inovative, the most attractive and the desktop environment with the most potential to become the new standard in the future. Keep up the good work Canonical.


Saturday, February 22, 2014

Minty Review: Linux Mint 16 (cinnamon flavor)

After being on the top of the chart for more than a couple of years, I finally decided to give Linux Mint a try, after all why are people using it so much? I must say I was biased previously because I though Mint looked a little too boring for me and aside from being an easy to use sort of distro, I didn't see the appeal. To be perfectly honest, I never thought Ubuntu was hard to use so even that appeal I don't quite understand.

Anyway, now that I've played with Mint for about a week, I feel like I can form a more relevant opinion, and to be honest I was not impressed. First of all, as I feared the OS to me looks very vanilla, and offered as far as I saw, nothing dramatically interesting. As I mentioned, often mint is labeled as a great distro to start with, and while it is easy to use, I had two crashes in my first day of use and one of them was while watching a regular video. I feel that a distrubution that is known for media compatibility out of the box should be able to play simple videos without a hiccup.Ubuntu 13.04 VM or my Xubuntu 12.04 VM. I had a lot of issues getting a few pieces of software, including my email client to work smoothly and that didn't help me have a good opinion of it.

I do need to disclose that I was running it as a virtual machine, so perhaps my experience would have been better on a hard install, but these are issues I didn't seem to have with my

Perhaps I am being unfair by reviewing Mint as a VM, but I've done that with other distros before and considering Mint's reputation, I don't feel that it requires special treatment on my review.

Overall, I feel that Mint, much like Ubuntu, has really helped bring Linux to a lot of new users, and I applaud them for that. I think that if there is anything that can be done to make Linux more popular, it should be done. With all the discourse regarding online privacy, the NSA and hackers, a shift to Linux is a great first step into trying to protect yourself. The Internet is my favorite invention of the 20th century and I truly believe that popularizing Linux is just another step into giving people online freedom, and ensuring that we stay in control of our own private habits. So Mint gets points for doing that, however as a distrubution for someone like me, I wasn't impressed. In my opinion Ubuntu is just as easy to use to a user with some computer knowledge and it offers a much more inovative experience. I have to admit I am an Unity fan boy, even though it is bulky. If I want a less meaty distro, my current pick is Xubuntu, I have yet to see another really lightweight distro that looks so good and functions so well.

Sunday, February 16, 2014

ANOVA with SPSS: quick tutorial

I've recently had to do quite a bit of statistics for my project in school and I ended up having to learn it with a new software for compatibility with what my professor uses, which is SPSS. It's probably a good statistical package to learn since it's one of the most popular ones around the world. Since I had no idea how to do anything on it before this, I had to do a bit of reading and thought there would be some value in posting a quick step by step guide on how to run a one-way anova test using SPSS.

For completness, I'm using IBM SPSS Statistics 22. So load up your SPSS (which is shockingly bulky imho). I imagine that if you are reading this post you know what an ANOVA is but in case you don't, ANOVA stands for ANalysis Of VAriance. If you are familiar with the student's t-test, an ANOVA is similar to that. However, while a t-test compares the means of two groups, an ANOVA compares the means of several groups. It looks across all your data and spits out a number (F) which tells you how significant the variance is across all your groups. This will tell you whether there is an overall effect after looking at all your data. A One-Way ANOVA does just that, and it looks specifically across one factor such as different treatment groups. If you hear about a Two-Way ANOVA, that's when you have multiple factors to be compared, for instance you may have different treatment groups in a drug study, but you may also want to look at how those treatment groups change over time, say the course of a month. Then you need to look at changes between groups, (does drug X make animals sick?) as well as within groups (do animals taking drug X become resistant to the drug over a period of time?). Lastly, from an ANOVA, you can also do a Post Hoc comparisson, which is essentially a t-test across all your groups. If you have an overall effect from your ANOVA (F > critical value) then you compare each group to see if they have p < 0.05 for significance. In my example I will use the Bonferroni test which is a more conservative one. There are other popular options such as the less conservative LSD, as well as Tukey's and Dunnett's test.


Open your data or enter your data, for me I had everything in excel before, so it was just a matter of copying and pasting everything. However, in SPSS, as you may or may not know, you can also assign your groups as a different type of data. On the bottom there are two tabs, to work on your groups click on "Variable View". There you will see all your variables, and in my case I eddited the varialbe "Group" by pressing on the cell under "Values".


There you should label each numeric value that represents one of your groups to a label that makes sense to you. Click OK and go back to the original tab, "Data View".


 Now to actually run the test, first find out what columns of data you are actually going to analyze. The sheet I'm using as an example contains all my data from one of my taste reactivity experiments, and includes a lot of behavioural data I have no interest in running stats on. For this example I am interested in running a one-way ANOVA comparing across all my treatment groups, however only testing the total number of gaping reactions.

To do that, find in the menu the option "Analyze" > "Compare Means" > "One-Way ANOVA..."

That should lead you to a smaller pop-up window where you will put your treatment group column under "Factor" and place the data you want analyzed under "Dependent List" which corresponds to your dependent variables. From there click on "Post Hoc..."


There you can chose what type of Post Hoc comparisson you want to make, in my case I am doing a Bonferroni test.


Now, still in the  ANOVA screen, go to "Options..." and click "Descriptive" which I believe will provide you with some of the basic statistical values for your data such as means, standard deviation, standard error and so forth.

From there click continue and OK to run your test. Voila, you should see a report page. On the top you will find your descriptives separated by your groups. N will be the total number of individuals in your groups, your mean, SEM, etc. Below will be your general ANOVA results, which will give you your degrees of freedom, your F value and your significance value. My degrees of freedom are 5 and 50, as you sometimes see them represented as F(5,50), and my F which is 5.475. This is sufficient for me to claim significance in my data, notice the .000 value under significance as well which is similar to a p-value that you are used to.

Below you will find your Post Hoc Tests, in my case Bonferroni. Each row block will have all your comparissons between one group to all the other groups. See in my figure below a comparisson between my Saline group to all other groups. Notice that the only significant difference lies between group Lor6 and my vehicle group. It has a * next to it and you will notice that significance is 0.002, which is >0.05.


Saturday, February 15, 2014

Change the resolution of your VirtualBox Ubuntu VM using Win7 host

I've been using VirtualBox to have easy access to linux on my Windows 7 machine for a while, however, one thing that has always kept me from using it more consistently is the fact that my VMs usually come with a small native resolution making it difficult to work on my VM primarily. Well I decided recently I should change that, so that perhaps I will start using my VM more for a lot of my day to day needs.

It turns out changing this resolution is a bit more laborous that I would have thought. I started by giving my VM more video memory and more power in general, as well as updating drivers and that wasn't the problem. This is a VirtualBox setting that I need to change. In order to make those changes, follow the instructions below:

First click on the VirtualBox menu option "Devices" and look for "Install Guest Additions" (figure1). From there you will get a pop up asking if you trust this source and then you will be asked about downloading a CD image from the web, just proceed and wait for it to download and install whatever it needs to install. Once this is complete, the next step will vary slightly from distro to distro, but you basically want to mount whatever it downloaded. On Ubuntu 13.10, you should see an iso image appear on the bottom of your unity menu bar, click on that.


When you open the image you should see several options of files which you will have to chose the one appropriate to your need. Since my host is a Windows 7 64-bit, I will copy the file of the appropriate exe file to your desktop.

From here open you distro's terminal and go to desktop. For me it was just a matter of typing cd Desktop/

From here type

$ chmod +x xfilenamex

xfilenamex is the name of the file that you copied of course which in my case was

$ chmod +xVBoxWindowsAdditions-amd64.exe

This will give you priviledge to run this particular file. Next execute the file via

$ sudo ./VBoxWindowsAdditions-amd64.exe

again change the filename to whatever file pertains to your OS.This will ask you for your root credentials and install the guest additions. Now you can close your terminal and shutdown your VM

$ sudo shutdown -h now

From there go to your Windows 7 and open the windows terminal. If you don't know how, just type "cmd" on after pressing the windows button. From there look for the folder where your VM is installed on Windows. in my case it was under Program Files, but not the x86 one for some reason. There you should see Oracle\VirtualBox.

From there type

VBoxManage setextradata "xOSnamex" "CustomVideoMode1" "xresolutionx"

in my case

VBoxManage setextradata "u1310" "CustomVideoMode1" "1680x1050x32"

This didn't actually seem to do the trick, so I went ahead and also ran the following command:

VBoxManage setextradata global GUI/MaxGuestResolution 1680,1050

Now load your VM up as you normally would and this did the trick for me. I'm not sure if you need the first VBoxManage command so if you want to try just using the global command go ahead and try it out. If it works post a comment to let me know. Again I'm using a Windows 7 host OS, trying to run a Ubuntu 13.10 VM on it.


Thursday, February 13, 2014

Installing Sublime-text-2 and Sublime-text-3 via apt-get

If you are looking to try out this IDE for python like me, there is an easy way to get it install on Ubuntu via apt-get. I found this from an answer from Jarred Burrows at askubuntu.com.

For Sublime-text-2 go ahead and type

$ sudo add-apt-repository ppa:webupd8team/sublime-text-2

this will add the ppa that gives you acces to it. Then run a quick update

$ sudo apt-get update

and type the following to actually download sublime text

$ sudo apt-get install sublime-text

To get Sublime-text-3 the process will be similar

$ sudo add-apt-repository ppa:webupd8team/sublime-text-3

$ sudo apt-get update

$ sudo apt-get install sublime-text-installer

Sunday, February 9, 2014

Cortical regions involved in voluntary movement

Voluntary movement occurs in a very different manner from reflex induced movements. Unlike reflexes, voluntary movements require planning and accurate execution. The process begins with the decision to move which occurs internally, and is followed by the activation of several cortical regions, each with a specific role in the production of deliberate movements. The premotor area is a region involved in the programming aspect of movements. It is where organization of the sequences in which motor cortical regions will be activated occurs. Part of the function of the premotor regions is to assist the motor cortex in orchestrating movements, much like the steering wheel controls the car, while alone it does not move the car, it is essential for directing when to turn. It is in the premotor cortex that sequencing of motor outputs using sensory information occurs. This is an important aspect of how the CNS coordinates distal movements while maintaining postural support and coordination.

Much like the premotor cortex, the supplementary motor area (SMA) also projects to the primary motor cortex. The SMA is important in the coordination of bimanual movements. While the SMA does not program the actual movements to be performed by either side, it does activate both movements in a coordinated manner, using higher inputs as well as sensory information. An example of why this is important can be illustrated with an example of someone pouring water into a glass being held by one hand, while holding the original glass container in the other. As the glass fills up, more force is required from that arm in order to maintain its stability. While the brain has to compensate for increased weight on the arm holding the glass, it also must account for the weight changes in the arm holding the original container, which slowly becomes lighter.

Lastly the primary motor cortex is where much of the input from the SMA, premotor cortex as well as sensory association areas converge. This is the region directly involved in controlling the activity of motoneurons. It does so by storing motor synergy information, in other words, neurons in the motor cortex have millions of combinations of “movement programs” that can be activated and relayed to the appropriate motoneurons. These movement programs can be thought as predetermined combinations of muscle inputs that produce a specific movement. As consequence of this, there are multiple representations of the same muscles within the primary motor cortex.


Cheney PD (1985), Role of cerebral cortex in voluntary movements. A review. Phys Ther 65:624-35

Kandel ER, Schwartz JH, Jessell TM (2000). Principles of Neural Science, 4th edition. New York: McGraw-Hill

MacKay WA (1999). Neurophysiology without tears, 3rd edition. Toronto: Sefalotek Ltd.

Thursday, February 6, 2014

Weather update from console and a conky config

I found some Linux goodies while redditing the other day and thought they were worthy of reposting here.

First, I found this awesome weather app for the console. Basically, you type your "FIPS area code" and it spits out an update on the area directly from that particular mornitoring station. It's fairly detailed and it's on the console which is just great for those that appreciate being able to do that. It may seem a bit inconvenient to get that type of information that way but it's not very hard to just creat an alias and only have to type a short command to get it. You can even set it as a cron job and get periodic updates on an open console. Maybe you just think it sounds cool. Anyway, to get this little gem go ahead and type

$ sudo apt-get install weather-util

which should install it. This can also be done via the ubuntu software centre if you so chose. To get the weather update you just have to type

$ weather ????

or

$ weather --forecast CYYZ

where ???? is the 4 digit FIPS code for your area, in my case CYYZ corresponds to Toronto International Airport. Note that not everywhere has these updates available, to check what is available check out the IWS website. The website for the actual software you can find at http://fungi.yuggoth.org/weather/

I found this link from a post by avaipar on /r/ubuntu and the article comes from OMG ubuntu.



The other link I came across was smileymalais' conky config from his blog (presumably). Here is the config for it:

# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
#
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer no
use_xft yes
# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 0
# Maximum width
maximum_width 160

# Draw shades?
draw_shades yes
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white
own_window_colour black
own_window_transparent yes
own_window_argb_value 50
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 10
gap_y 110
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale no
xftfont Inconolata:size=8
#xftalpha 0.8

TEXT
${offset 0}${color #ddaa00}LUBUNTU 13.10

# ${offset 0}${color white}${time %a, } ${color #aaaaaa}${time %B %e %G}
# ${offset 0}${color white}${time %Z, }${color #aaaaaa}${time %H:%M:%S}
${offset 0}${color #ddaa00}Kern:${color #aaaaaa}$kernel
${offset 0}${color #ddaa00}UpTime: ${color #aaaaaa}$uptime

${offset 0}${color #ddaa00}CPU:${color white} $cpu% ${acpitemp}C
${offset 0}${cpugraph 20,130 000000 ffffff}
${offset 0}${color #ddaa00}Load: ${color }$loadavg
${offset 0}${color #ddaa00}Processes: ${color }$processes
${offset 0}${color #ddaa00}Running: ${color }$running_processes
${offset 0}${color #ddaa00}Highest CPU:
${offset 0}${color white} ${top name 1}${top_mem cpu 1}
${offset 0}${color lightgrey} ${top name 2}${top cpu 2}
${offset 0}${color lightgrey} ${top name 3}${top cpu 3}
${offset 0}${color lightgrey} ${top name 4}${top cpu 4}
${offset 0}${color #ddaa00}Highest MEM:
${offset 0}${color white} ${top_mem name 1}${top_mem mem 1}
${offset 0}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 0}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 0}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${offset 0}${color #ddaa00}RAM: ${color } $memperc% $mem/$memmax
${offset 0}${membar 3,130}
${offset 0}${color #ddaa00}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 0}${swapbar 3,130}
${offset 0}${color #ddaa00}ROOT: ${color }${fs_free /}/${fs_size /}
${offset 0}${fs_bar 3,130 /}
${offset 0}${color #ddaa00}HOME: ${color }${fs_free /home}/${fs_size /home}
${offset 0}${fs_bar 3,130 /home}

${offset 0}${color #ddaa00}NET:
${offset 0}${color}Up: ${color }${upspeed wlan0} k/s
${offset 0}${upspeedgraph wlan0 20,130 000000 ffffff}
${offset 0}${color}Down: ${color }${downspeed wlan0}k/s${color}
${offset 0}${downspeedgraph wlan0 20,130 000000 ffffff}



Wednesday, February 5, 2014

Mars Trilogy: Red Mars review

I have not read a book that really caught my attention in a little while. I had this one on my "to read" list for a few years and finally decided to try it out. It has surprised me greatly. I have to say it is now a contender for my top book series, potentially taking Dune out of the top spot. While this will have to wait until I finish the trilogy, I expect I will continue to enjoy the journey.

What made me appreciate Dune so much was the depth of the Dune universe and in particular the scientific discussions about ecology, geology, economics, politics and religion combined with some great characters and an epic feel to it. I loved the really interesting interplay of all those forces in a far distance expansive humanity. Red Mars by Kim Stanley Robinson starts the series with the theme of human's attempt to colonize the red planet. Once I started the book I realized it was much more than that. The book uses this Mars colonization as a medium, but the real story lies on the characters, which for the most part are thinkers, scientist philosophers, that want to colonize a new planet and make a fresh start for humanity. This serves as a great way to discuss social, political and economical systems that we have adopted over the course of human development. It is very interesting how a few characters really try to discard some of the most fundamental aspects of human culture as either inefficient or as an antiquated system that had a purpose originally but we managed to exploit it to turn it into something harmful to society. It's a book that really tries to challenge the status quo, and worked very well on me to get me to evaluate a bit more carefully some of the pillars of humanity. There are some very compelling ideas there.

I really don't want to give much away for anyone actually interested in reading this, but if you like books that are sometimes heavy on ideas and science, this is the book for you as it was the book for me. I look forward to every chance I have to read it, which hasn't been very often due to my time commitment writing my graduate theses.

Friday, January 31, 2014

The Last Question - by Isaac Asimov

     The last question was asked for the first time, half in jest, on May 21, 2061, at a time when humanity first stepped into the light. The question came about as a result of a five-dollar bet over highballs, and it happened this way:

     Alexander Adell and Bertram Lupov were two of the faithful attendants of Multivac. As well as any human beings could, they knew what lay behind the cold, clicking, flashing face -- miles and miles of face -- of that giant computer. They had at least a vague notion of the general plan of relays and circuits that had long since grown past the point where any single human could possibly have a firm grasp of the whole.

     Multivac was self-adjusting and self-correcting. It had to be, for nothing human could adjust and correct it quickly enough or even adequately enough. So Adell and Lupov attended the monstrous giant only lightly and superficially, yet as well as any men could. They fed it data, adjusted questions to its needs and translated the answers that were issued. Certainly they, and all others like them, were fully entitled to share in the glory that was Multivac's.

     For decades, Multivac had helped design the ships and plot the trajectories that enabled man to reach the Moon, Mars, and Venus, but past that, Earth's poor resources could not support the ships. Too much energy was needed for the long trips. Earth exploited its coal and uranium with increasing efficiency, but there was only so much of both.

     But slowly Multivac learned enough to answer deeper questions more fundamentally, and on May 14, 2061, what had been theory, became fact.

     The energy of the sun was stored, converted, and utilized directly on a planet-wide scale. All Earth turned off its burning coal, its fissioning uranium, and flipped the switch that connected all of it to a small station, one mile in diameter, circling the Earth at half the distance of the Moon. All Earth ran by invisible beams of sunpower.

     Seven days had not sufficed to dim the glory of it and Adell and Lupov finally managed to escape from the public functions, and to meet in quiet where no one would think of looking for them, in the deserted underground chambers, where portions of the mighty buried body of Multivac showed. Unattended, idling, sorting data with contented lazy clickings, Multivac, too, had earned its vacation and the boys appreciated that. They had no intention, originally, of disturbing it.

     They had brought a bottle with them, and their only concern at the moment was to relax in the company of each other and the bottle.

     "It's amazing when you think of it," said Adell. His broad face had lines of weariness in it, and he stirred his drink slowly with a glass rod, watching the cubes of ice slur clumsily about. "All the energy we can possibly ever use for free. Enough energy, if we wanted to draw on it, to melt all Earth into a big drop of impure liquid iron, and still never miss the energy so used. All the energy we could ever use, forever and forever and forever."

     Lupov cocked his head sideways. He had a trick of doing that when he wanted to be contrary, and he wanted to be contrary now, partly because he had had to carry the ice and glassware. "Not forever," he said.

     "Oh, hell, just about forever. Till the sun runs down, Bert."

     "That's not forever."

     "All right, then. Billions and billions of years. Ten billion, maybe. Are you satisfied?"

     Lupov put his fingers through his thinning hair as though to reassure himself that some was still left and sipped gently at his own drink. "Ten billion years isn't forever."

     "Well, it will last our time, won't it?"

     "So would the coal and uranium."

     "All right, but now we can hook up each individual spaceship to the Solar Station, and it can go to Pluto and back a million times without ever worrying about fuel. You can't do that on coal and uranium. Ask Multivac, if you don't believe me.

     "I don't have to ask Multivac. I know that."

     "Then stop running down what Multivac's done for us," said Adell, blazing up, "It did all right."

     "Who says it didn't? What I say is that a sun won't last forever. That's all I'm saying. We're safe for ten billion years, but then what?" Lupow pointed a slightly shaky finger at the other. "And don't say we'll switch to another sun."

     There was silence for a while. Adell put his glass to his lips only occasionally, and Lupov's eyes slowly closed. They rested.

     Then Lupov's eyes snapped open. "You're thinking we'll switch to another sun when ours is done, aren't you?"

     "I'm not thinking."

     "Sure you are. You're weak on logic, that's the trouble with you. You're like the guy in the story who was caught in a sudden shower and who ran to a grove of trees and got under one. He wasn't worried, you see, because he figured when one tree got wet through, he would just get under another one."

     "I get it," said Adell. "Don't shout. When the sun is done, the other stars will be gone, too."

     "Darn right they will," muttered Lupov. "It all had a beginning in the original cosmic explosion, whatever that was, and it'll all have an end when all the stars run down. Some run down faster than others. Hell, the giants won't last a hundred million years. The sun will last ten billion years and maybe the dwarfs will last two hundred billion for all the good they are. But just give us a trillion years and everything will be dark. Entropy has to increase to maximum, that's all."

     "I know all about entropy," said Adell, standing on his dignity.

     "The hell you do."

     "I know as much as you do."

     "Then you know everything's got to run down someday."

     "All right. Who says they won't?"

     "You did, you poor sap. You said we had all the energy we needed, forever. You said 'forever.'

     It was Adell's turn to be contrary. "Maybe we can build things up again someday," he said.

     "Never."

     "Why not? Someday."

     "Never."

     "Ask Multivac."

     "You ask Multivac. I dare you. Five dollars says it can't be done."

     Adell was just drunk enough to try, just sober enough to be able to phrase the necessary symbols and operations into a question which, in words, might have corresponded to this: Will mankind one day without the net expenditure of energy be able to restore the sun to its full youthfulness even after it had died of old age?

     Or maybe it could be put more simply like this: How can the net amount of entropy of the universe be massively decreased?

     Multivac fell dead and silent. The slow flashing of lights ceased, the distant sounds of clicking relays ended.

     Then, just as the frightened technicians felt they could hold their breath no longer, there was a sudden springing to life of the teletype attached to that portion of Multivac. Five words were printed: INSUFFICIENT DATA FOR MEANINGFUL ANSWER.

     "No bet," whispered Lupov. They left hurriedly.

     By next morning, the two, plagued with throbbing head and cottony mouth, had forgotten the incident.


++++++++++++++++++++++++++++++++++
     Jerrodd, Jerrodine, and Jerrodette I and II watched the starry picture in the visiplate change as the passage through hyperspace was completed in its non-time lapse. At once, the even powdering of stars gave way to the predominance of a single bright shining disk, the size of a marble, centered on the viewing-screen.

     "That's X-23," said Jerrodd confidently. His thin hands clamped tightly behind his back and the knuckles whitened.

     The little Jerrodettes, both girls, had experienced the hyperspace passage for the first time in their lives and were self-conscious over the momentary sensation of insideoutness. They buried their giggles and chased one another wildly about their mother, screaming, "We've reached X-23 -- we've reached X-23 -- we've --"

     "Quiet, children." said Jerrodine sharply. "Are you sure, Jerrodd?"

     "What is there to be but sure?" asked Jerrodd, glancing up at the bulge of featureless metal just under the ceiling. It ran the length of the room, disappearing through the wall at either end. It was as long as the ship.

     Jerrodd scarcely knew a thing about the thick rod of metal except that it was called a Microvac, that one asked it questions if one wished; that if one did not it still had its task of guiding the ship to a preordered destination; of feeding on energies from the various Sub-galactic Power Stations; of computing the equations for the hyperspatial jumps.

     Jerrodd and his family had only to wait and live in the comfortable residence quarters of the ship. Someone had once told Jerrodd that the "ac" at the end of "Microvac" stood for ''automatic computer" in ancient English, but he was on the edge of forgetting even that.

     Jerrodine's eyes were moist as she watched the visiplate. "I can't help it. I feel funny about leaving Earth."

     "Why, for Pete's sake?" demanded Jerrodd. "We had nothing there. We'll have everything on X-23. You won't be alone. You won't be a pioneer. There are over a million people on the planet already. Good Lord, our great-grandchildren will be looking for new worlds because X-23 will be overcrowded." Then, after a reflective pause, "I tell you, it's a lucky thing the computers worked out interstellar travel the way the race is growing."

     "I know, I know," said Jerrodine miserably.

     Jerrodette I said promptly, "Our Microvac is the best Microvac in the world."

     "I think so, too," said Jerrodd, tousling her hair.

     It was a nice feeling to have a Microvac of your own and Jerrodd was glad he was part of his generation and no other. In his father's youth, the only computers had been tremendous machines taking up a hundred square miles of land. There was only one to a planet. Planetary ACs they were called. They had been growing in size steadily for a thousand years and then, all at once, came refinement. In place of transistors, had come molecular valves so that even the largest Planetary AC could be put into a space only half the volume of a spaceship.

     Jerrodd felt uplifted, as he always did when he thought that his own personal Microvac was many times more complicated than the ancient and primitive Multivac that had first tamed the Sun, and almost as complicated as Earth's Planetarv AC (the largest) that had first solved the problem of hyperspatial travel and had made trips to the stars possible.

     "So many stars, so many planets," sighed Jerrodine, busy with her own thoughts. "I suppose families will be going out to new planets forever, the way we are now."

     "Not forever," said Jerrodd, with a smile. "It will all stop someday, but not for billions of years. Many billions. Even the stars run down, you know. Entropy must increase.

     "What's entropy, daddy?" shrilled Jerrodette II.

     "Entropy, little sweet, is just a word which means the amount of running-down of the universe. Everything runs down, you know, like your little walkie-talkie robot, remember?"

     "Can't you just put in a new power-unit, like with my robot?"

     "The stars are the power-units. dear. Once they're gone, there are no more power-units."

     Jerrodette I at once set up a howl. "Don't let them, daddy. Don't let the stars run down."

     "Now look what you've done," whispered Jerrodine, exasperated.

     "How was I to know it would frighten them?" Jerrodd whispered back,

     "Ask the Microvac," wailed Jerrodette I. "Ask him how to turn the stars on again."

     "Go ahead," said Jerrodine. "It will quiet them down." (Jerrodette II was beginning to cry, also.)

     Jerrodd shrugged. "Now, now, honeys. I'll ask Microvac. Don't worry, he'll tell us."

     He asked the Microvac, adding quickly, "Print the answer."

     Jerrodd cupped the strip or thin cellufilm and said cheerfully, "See now, the Microvac says it will take care of everything when the time comes so don't worry."

     Jerrodine said, "And now, children, it's time for bed. We'll be in our new home soon."

     Jerrodd read the words on the cellufilm again before destroying it: INSUFICIENT DATA FOR MEANINGFUL ANSWER.

     He shrugged and looked at the visiplate. X-23 was just ahead.
++++++++++++++++++++++++++++++++++
     VJ-23X of Lameth stared into the black depths of the three-dimensional, small-scale map of the Galaxy and said, "Are we ridiculous, I wonder in being so concerned about the matter?"

     MQ-17J of Nicron shook his head. "I think not. You know the Galaxy will be filled in five years at the present rate of expansion."

     Both seemed in their early twenties, both were tall and perfectly formed.

     "Still," said VJ-23X, "I hesitate to submit a pessimistic report to the Galactic Council."

     "I wouldn't consider any other kind of report. Stir them up a bit. We've got to stir them up."

     VJ-23X sighed. "Space is infinite. A hundred billion Galaxies are there for the taking. More."

     "A hundred billion is not infinite and it's getting less infinite all the time. Consider! Twenty thousand years ago, mankind first solved the problem of utilizing stellar energy, and a few centuries later, interstellar travel became possible. It took mankind a million years to fill one small world and then only fifteen thousand years to fill the rest of the Galaxy. Now the population doubles every ten years --

     VJ-23X interrupted. "We can thank immortality for that."

     "Very well. Immortality exists and we have to take it into account. I admit it has its seamy side, this immortality. The Galactic AC has solved many problems for us, but in solving the problem of preventing old age and death, it has undone all its other solutions."

     "Yet you wouldn't want to abandon life, I suppose."

     "Not at all," snapped MQ-17J, softening it at once to, "Not yet. I'm by no means old enough. How old are you?"

     "Two hundred twenty-three. And you?"

     "I'm still under two hundred. --But to get back to my point. Population doubles every ten years. Once this GaIaxy is filled, we'll have filled another in ten years. Another ten years and we'll have filled two more. Another decade, four more. In a hundred years, we'll have filled a thousand Galaxies. In a thousand years, a million Galaxies. In ten thousand years, the entire known universe. Then what?"

     VJ-23X said, "As a side issue, there's a problem of transportation. I wonder how many sunpower units it will take to move Galaxies of individuals from one Galaxy to the next."

     "A very good point. Already, mankind consumes two sunpower units per year."

     "Most of it's wasted. After all, our own Galaxy alone pours out a thousand sunpower units a year and we only use two of those."

     "Granted, but even with a hundred per cent efficiency, we only stave off the end. Our energy requirements are going up in a geometric progression even faster than our population. We'll run out of energy even sooner than we run out of Galaxies. A good point. A very good point."

     "We'll just have to build new stars out of interstellar gas."

     "Or out of dissipated heat?" asked MQ-17J, sarcastically.

     "There may be some way to reverse entropy. We ought to ask the Galactic AC."

     VJ-23X was not really serious, but MQ-17J pulled out his AC-contact from his pocket and placed it on the table before him.

     "I've half a mind to," he said. "It's something the human race will have to face someday."

     He stared somberly at his small AC-contact. It was only two inches cubed and nothing in itself, but it was connected through hyperspace with the great Galactic AC that served all mankind. Hyperspace considered, it was an integral part of the Galactic AC.

     MQ-17J paused to wonder if someday in his immortal life he would get to see the Galactic AC. It was on a little world of its own, a spider webbing of force-beams holding the matter within which surges of submesons took the place of the old clumsy molecular valves. Yet despite its sub-etheric workings, the Galactic AC was known to be a full thousand feet across.

     MQ-17J asked suddenly of his AC-contact, "Can entropy ever be reversed?"

     VJ-23X looked startled and said at once, "Oh, say, I didn't really mean to have you ask that."

     "Why not?"

     "We both know entropy can't be reversed. You can't turn smoke and ash back into a tree."

     "Do you have trees on your world?" asked MQ-17J.

     The sound of the Galactic AC startled them into silence. Its voice came thin and beautiful out of the small AC-contact on the desk. It said: THERE IS INSUFFICIENT DATA FOR A MEANINGFUL ANSWER.

     VJ-23X said, "See!"

     The two men thereupon returned to the question of the report they were to make to the Galactic Council.
++++++++++++++++++++++++++++++++++
     Zee Prime's mind spanned the new Galaxy with a faint interest in the countless twists of stars that powdered it. He had never seen this one before. Would he ever see them all? So many of them, each with its load of humanity. --But a load that was almost a dead weight. More and more, the real essence of men was to be found out here, in space.

     Minds, not bodies! The immortal bodies remained back on the planets, in suspension over the eons. Sometimes they roused for material activity but that was growing rarer. Few new individuals were coming into existence to join the incredibly mighty throng, but what matter? There was little room in the Universe for new individuals.

     Zee Prime was roused out of his reverie upon coming across the wispy tendrils of another mind.

     "I am Zee Prime," said Zee Prime. "And you?"

     "I am Dee Sub Wun. Your Galaxy?"

     "We call it only the Galaxy. And you?"

     "We call ours the same. All men call their Galaxy their Galaxy and nothing more. Why not?"

     "True. Since all Galaxies are the same."

     "Not all Galaxies. On one particular Galaxy the race of man must have originated. That makes it different."

     Zee Prime said, "On which one?"

     "I cannot say. The Universal AC would know."

     "Shall we ask him? I am suddenly curious."

     Zee Prime's perceptions broadened until the Galaxies themselves shrank and became a new, more diffuse powdering on a much larger background. So many hundreds of billions of them, all with their immortal beings, all carrying their load of intelligences with minds that drifted freely through space. And yet one of them was unique among them all in being the original Galaxy. One of them had, in its vague and distant past, a period when it was the only Galaxy populated by man.

     Zee Prime was consumed with curiosity to see this Galaxy and he called out: "Universal AC! On which Galaxy did mankind originate?"

     The Universal AC heard, for on every world and throughout space, it had its receptors ready, and each receptor led through hyperspace to some unknown point where the Universal AC kept itself aloof.

     Zee Prime knew of only one man whose thoughts had penetrated within sensing distance of Universal AC, and he reported only a shining globe, two feet across, difficult to see.

     "But how can that be all of Universal AC?" Zee Prime had asked.

     "Most of it," had been the answer, "is in hyperspace. In what form it is there I cannot imagine."

     Nor could anyone, for the day had long since passed, Zee Prime knew, when any man had any part of the making of a Universal AC. Each Universal AC designed and constructed its successor. Each, during its existence of a million years or more accumulated the necessary data to build a better and more intricate, more capable successor in which its own store of data and individuality would be submerged.

     The Universal AC interrupted Zee Prime's wandering thoughts, not with words, but with guidance. Zee Prime's mentality was guided into the dim sea of Galaxies and one in particular enlarged into stars.

     A thought came, infinitely distant, but infinitely clear. "THIS IS THE ORIGINAL GALAXY OF MAN."

     But it was the same after all, the same as any other, and Lee Prime stifled his disappointment.

     Dee Sub Wun, whose mind had accompanied the other, said suddenly, "And is one of these stars the original star of Man?"

     The Universal AC said, "MAN'S ORIGINAL STAR HAS GONE NOVA. IT IS A WHITE DWARF"

     "Did the men upon it die?" asked Lee Prime, startled and without thinking.

     The Universal AC said, "A NEW WORLD, AS IN SUCH CASES WAS CONSTRUCTED FOR THEIR PHYSICAL BODIES IN TlME."

     "Yes, of course," said Zee Prime, but a sense of loss overwhelmed him even so. His mind released its hold on the original Galaxy of Man, let it spring back and lose itself among the blurred pin points. He never wanted to see it again.

     Dee Sub Wun said, "What is wrong?"

     "The stars are dying. The original star is dead."

     "They must all die. Why not?"

     "But when all energy is gone, our bodies will finally die, and you and I with them."

     "It will take billions of years."

     "I do not wish it to happen even after billions of years. Universal AC! How may stars be kept from dying?"

     Dee Sub Wun said in amusement, "You're asking how entropy might be reversed in direction."

     And the Universal AC answered: "THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER."

     Zee Prime's thoughts fled back to his own Galaxy. He gave no further thought to Dee Sub Wun, whose body might be waiting on a Galaxy a trillion light-years away, or on the star next to Zee Prime's own. It didn't matter.

     Unhappily, Zee Prime began collecting interstellar hydrogen out of which to build a small star of his own. If the stars must someday die, at least some could yet be built.
++++++++++++++++++++++++++++++++++
     Man considered with himself, for in a way, Man, mentally, was one. He consisted of a trillion, trillion, trillion ageless bodies, each in its place, each resting quiet and incorruptible, each cared for by perfect automatons, equally incorruptible, while the minds of all the bodies freely melted one into the other, indistinguishable.

     Man said, "The Universe is dying."

     Man looked about at the dimming Galaxies. The giant stars, spendthrifts, were gone long ago, back in the dimmest of the dim far past. Almost all stars were white dwarfs, fading to the end.

     New stars had been built of the dust between the stars, some by natural processes, some by Man himself, and those were going, too. White dwarfs might yet be crashed together and of the mighty forces so released, new stars built, but only one star for every thousand white dwarfs destroyed, and those would come to an end, too.

     Man said, "Carefully husbanded, as directed by the Cosmic AC, the energy that is even yet left in all the Universe will last for billions of years."

     "But even so," said Man, "eventually it will all come to an end. However it may be husbanded, however stretched out, the energy once expended is gone and cannot be restored. Entropy must increase forever to the maximum."

     Man said, "Can entropy not be reversed? Let us ask the Cosmic AC."

     The Cosmic AC surrounded them but not in space. Not a fragment of it was in space. It was in hyperspace and made of something that was neither matter nor energy. The question of its size and nature no longer had meaning in any terms that Man could comprehend.

     "Cosmic AC," said Man, "how may entropy be reversed?"

     The Cosmic AC said, "THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER."

     Man said, "Collect additional data."

     The Cosmic AC said, 'I WILL DO S0. I HAVE BEEN DOING SO FOR A HUNDRED BILLION YEARS. MY PREDECESORS AND I HAVE BEEN ASKED THIS QUESTION MANY TlMES. ALL THE DATA I HAVE REMAINS INSUFFICIENT.

     "Will there come a time," said Man, 'when data will be sufficient or is the problem insoluble in all conceivable circumstances?"

     The Cosmic AC said, "NO PROBLEM IS INSOLUBLE IN ALL CONCEIVABLE CIRCUMSTANCES."

     Man said, "When will you have enough data to answer the question?"

     The Cosmic AC said, "THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER."

     "Will you keep working on it?" asked Man.

     The Cosmic AC said, "I WILL."

     Man said, "We shall wait."
++++++++++++++++++++++++++++++++++
     The stars and Galaxies died and snuffed out, and space grew black after ten trillion years of running down.

     One by one Man fused with AC, each physical body losing its mental identity in a manner that was somehow not a loss but a gain.

     Man's last mind paused before fusion, looking over a space that included nothing but the dregs of one last dark star and nothing besides but incredibly thin matter, agitated randomly by the tag ends of heat wearing out, asymptotically, to the absolute zero.

     Man said, "AC, is this the end? Can this chaos not be reversed into the Universe once more? Can that not be done?"

     AC said, "THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER."

     Man's last mind fused and only AC existed -- and that in hyperspace.
++++++++++++++++++++++++++++++++++
     Matter and energy had ended and with it space and time. Even AC existed only for the sake of the one last question that it had never answered from the time a half-drunken computer [technician] ten trillion years before had asked the question of a computer that was to AC far less than was a man to Man.

     All other questions had been answered, and until this last question was answered also, AC might not release his consciousness.

     All collected data had come to a final end. Nothing was left to be collected.

     But all collected data had yet to be completely correlated and put together in all possible relationships.

     A timeless interval was spent in doing that.

     And it came to pass that AC learned how to reverse the direction of entropy.

     But there was now no man to whom AC might give the answer of the last question. No matter. The answer -- by demonstration -- would take care of that, too.

     For another timeless interval, AC thought how best to do this. Carefully, AC organized the program.

     The consciousness of AC encompassed all of what had once been a Universe and brooded over what was now Chaos. Step by step, it must be done.

     And AC said, "LET THERE BE LIGHT!"

     And there was light --

Thursday, January 2, 2014

Best headphones for your needs

I know it's a bit late for this post since people would have probably liked to see this before Christmas but hey, maybe there are some people exchanging gifts or looking for a nice pair of headphones to buy with their gift certificates.

I don't know why but it bugs me so much every time I see people wearing the stupid Beats headphones like it's jewelery. I supposed it shouldn't since that's basically what it is. I would love to know that people buy Beats headphones because it's fashionable rather than because they are good quality headphones, since they are not. If you are going to spend that kind of money on a headphone and you know anything about audio quality, you will stay away from that brand. Beets only has one thing they excel at, marketing. Below I posted a nice picture of Dr. Dre using his Audio-
Technica headphones :P (relevant http://www.reddit.com/r/audiophile/comments/16n8vb/i_bought_beats_by_dre_it_was_a_mistake_what/)

I should have made this post a few years ago when I was looking for headphones. I knew all the best ones at the time and I ended up picking up a pair of Sennheiser HD555. It was the best $200 dollars I could have spent on headphones at the time. The sound on them is absolutely brilliant, great treble, solid mids with good enough bass for my taste. Perhaps if you are going to be listening to music that is heavy on the low bands there may be a better match for you out there. Overall though, I don't think I could have spent my money on anything better. These are amazing for listening to my music, but also do an exceptional job for gaming and movies, which was definitely a consideration for me.


Now, this was a few years ago and now the models are different of course. But for anyone looking, here is a great resource that inspired me to make this post http://www.reddit.com/r/headphones

I think explaining the types of earphones you can get would be relevant before I continue:

Earbuds - I think everyone knows what these are. Basically the little ones that go inside your ear canal and will generally come with your iPod or other music players. These tend to be cheap and you will not get the same type of quality in these as you would with bigger pieces. A variation of eabuds are the IEMs (In-ear monitors) which are basically the same thing, but actually go further in your ear kind of lodging themselves a bit tighter. They provide a bit more isolation for the sound and in my experience tend to be of slightly better in quality.

Suggestions
Shure SE215 ($100) - Shure is a pretty popular manufacturer for music equipment, and back when I used to play in a band we always thought of Shure microphones being some of the best for our price range. Sennheiser PMX 680 Sport ($60) - These are a bit cheaper but they are supposedly good for listening when moving around alot, for instance during workout.

LH's Budget pick: Grado Labs SR60i ($80) and Sennheiser PX 200-II ($90)

Midrange: Etymotic Research HF5 ($150)

Highrange: JH Audio JH13 Pro ($1100) or Westone ES5 ($950)

Closed Full-sized Circumaural - These are the big ones that are fairly popular nowadays. They are full-sized if they basically cover your entire but circumaural means that they sit around your ear rather than on top of them. These are generally not very portable and I wouldn't necessarily walk around the street with them, although people do. The Closed part just means that they separate your ears from the surrounding sounds, meaning they isolate the sound so that they prevent your music from coming out of your ear but also prevent outside sounds from coming in. This is not the same as sound cancelling, that's a whole other technology, all it is is that they are closed and will provide some cancellation.

Open Full-sized Circumaural - These are very similar to our previous category of course, but instead of being closed to the outside they are open. Some of you may ask, why would that be good? Well I think there is a level of personal preference, but I think in general most people would say that these will generally provide a better and more realistic experince. While you will annoy more people in the bus with these and you will hear your neighbour cut the grass through them, they sound better. The closed earphones will bounce sound inside and around your ear while you listen to them, which can sound almost as if the music is coming from inside your head sometimes. They kind of give you this feel that you are listening to music in a studio, but to me that isn't how I think things should sound. I like my music and sounds to sound normal as if they were happening around me. So the open headphone allow the sound to dissipate around you which makes it sounds a lot more like you are seeing a live band. The sound just feels more alive and true to me. Of course that's why I ended up chosing the HD555 when I did. That is an example of a open circumaural headphone.


Suggestions
Low: Shure SRH440 ($100 - closed)

Mid: Audio-Technica ATH-M50 ($160 - closed) This is a very trusted brand from audiophiles and I certainly considered buying something similar when I was shopping around. It's a popular pick at this price range. Alternatively, the Sennheiser HD558 is the modern version of my headphone and tends to sell around $200 (open). This is probably what I would buy at this price range just because of my 3 year experience with the previous generation. They are superbly confortable and sound amazing. If there is one complaint I have is that they can get a bit warm if you are wearing them for a long time in the summer. The velvet pads are great when the temperature is nice, but not so great at 40ÂșC.


Expensive: Sennheiser HD800 ($1500 - open) Of course the top end I would suggest would be an open piece.

Full-sized Supra-aural - These are quite popular for people that have earphones hanging around their neck on the street. They can be seen as the portable version of the circumaural as they are smaller and only sit on top of the ear, meaning they don't have to cover your entire ear. This of course affects how natural they can sound if you aren't even using your full ear to add to the experience. I've tested a few of these but never bought one becuase I just don't have a need for it.

Suggestions
Low: JVC HAS400B ($35)

Mid-High: Sennheiser HD 25-1 II ($200) and Beyerdynamic DT 1350 ($300)

Noice Cancelling Headphones

I've tested a few but to be honest I have never found myself needing something like this. I don't fly very much and would have no other reason to buy them, meaning I don't know as much about these types of pieces. What I do know, is that they often require a battery because they have a tiny microphone on the outside that picks up ambient noises, with these they are able to produce changes to the soundwaves coming out into your ears so that they remove the annoying sounds from the outside. Some people don't even use them for music, they can be great for just removing ambient sounds. This technology is very cool, but will also make so that you will pay a pretty penny for these. They are not cheap and generally you won't get the best sound quality even if you spend $300 dollars for them. Not saying they are bad, I'm just saying you are paying for them to cancel noise, and not produce quality sounds. I tend to think that way about anything, I always try to buy products that fit my precise need and not pay for a bunch of technology I have no use for. I think that's a good piece of advice to anyone. Technology costs money and you end up paying for it even if you don't use it. That is money you could be spending on some other aspect of the product, in this case quality of the sound. Another piece of advice, don't ever think that spending more money garantees you a better product. Just look at Beets, Bose and Apple, you pay more for their stuff and that's it, you are not necessarily getting the best bang for your buck, and with these 3 I can garantee you that you are not. Unless having the most popular product is your bang and not the actual quality, than ignore what I'm saying.

For further literature check out that subreddit I linked above and Head-Fi.org