sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get upgrade && sudo apt-get install gfortran-4.9
I had a micro SD card that would only mount read-only, in Gparted and everywhere else, even as root. I moved the SD adapter read-only switch to either position, tried it in different readers, different computers.
Then I tried a different SD adapter and read/write worked. Hmm, threw away that SD adapter!
The standard Python indentation is four spaces, not tabs.
To make nano do this by default, add to your ~/.bash_aliases file the following:
<code>alias nano=”nano -c -ET4″</code>
where the -c is another option for having a row/column display.
Particularly for those dual-booting Windows 10, it’s useful to disable Fast Boot so that you can access the Windows 10 partition from another operating system (Windows or Linux). On my Intel NUC, I didn’t notice more than a few additional seconds due to disabling fast boot.
As shown below, uncheck the Turn on fast startup under
Control Panel>Power Options>System Settings
which you can get to by going to Control Panel, Power Options, then on the left click “Choose what the power buttons do”
I had experienced with BIOS version 0030 from Sept. 2014 that hibernate in Ubuntu 14.04 didn’t work for me–upon resume with a Displayport monitor, I just got a scrambled screen. I hadn’t seen others complain about this. I tentatively find that upgrading to BIOS 0035 of Jan. 2015 does allow hibernate to work. I’ll keep trying it to be more sure.
I was getting the error
ValueError: Data has no positive values, and therefore can not be log-scaled.
The issue is that I was setting vmin=0 in my pcolormesh() plot. By setting vmin=1 or some small positive value, your plots will work with norm=LogNorm() as expected.
I save a script named “findtext” that will look for specific text you want inside any file smaller than a maximum size (avoiding searching huge binary file)
you can find this and several other useful scripts at
You can see
for the types of advanced searches you can do with Gmail.
For example, if I want to find all PDFs I sent to firstname.lastname@example.org, I type in Gmail search
or to find any email I sent to email@example.com with any attachment:
I have some of the ubiquitous USB Wifi sticks with a chipset using the Ralink rt2800 driver. I noticed that while it works fine, I got a lot of dmesg errors like:
rt2800usb_txdone: Warning – Got TX status for an empty queue 2, dropping
rt2800usb_entry_txstatus_timeout: Warning – TX status timeout for entry 14 in queue 2
I’m not a big fan of dozens of dmesg logs per second, so I quickly found this answer that worked for me:
sudo iwconfig wlan1 power off
which according to
man iwconfig disables power management. When I’m hanging out with a coffee can Wifi antenna, I’m not interested in saving a few mW so this seems a harmless choice. Note I think you’ll have to type it again after reboot or logoff.
Github suggests that you use the SSH Agent, but even that may not work when you have a lot of SSH keys. You need to setup your ~/.ssh/config file so that SSH to github.com uses the correct SSH Public Key the first time. Here’s how.
and add the lines
Host github.com Hostname github.com User git Port 22 IdentitiesOnly yes PubKeyAuthentication yes IdentityFile ~/.ssh/MyGithubKey
where MyGitHubKey is the key you created following the process (without ssh-agent)