Firefox Prompts for ID/Password Too Much

If you are using Firefox in a corporate environment, and you get too many prompts for ID/password, it may be because your proxy server requires authentication for some/all sites. To make the prompts go away:

  • Tools » Options » Advanced » Network » Settings
  • Ensure ‘Do not prompt for authentication if password is saved’ is selected.

Jupyter Notes

All of this is on a Mac:

  • Install jupyter: sudo pip3 install jupyter
  • Add R support for jupyter. You need to “install from source.” In R:
    • xcode-select --install
    • brew install zmq
    • R
      • Use the command-line and not R studio
    • install.packages(c('rzmq','repr','IRkernel','IRdisplay'),repos = c('http://irkernel.github.io/', getOption('repos')), type = 'source') IRkernel::installspec(user = FALSE)
  • Start Jupyter: ipython notebook
    • I put this into a shell script “run-jupyter”
    • Start it from Terminal. Current working directory is significant.
    • It will open a local browser, and that’s how you interact with it. It will open the browser to navigate at the current working directory from where you started the server.
  • Rename a notebook: Select the checkbox by the notebook’s name. The toolbar will gain a ‘Rename’ button.

Gmail - Terribly Slow Response - Work-around

Sometimes I get epically slow response from GMail. I’m running GMail in a Chrome tab on a late model Macbook. Sometimes it takes 15 seconds to echo a keystroke or to respond to a mouse click.

  • Refreshing the page appears to cure the issue for a while. Then it comes back.
  • At the same time as one tab on one GMail account has this latency, another Chrome tab on a different email account works just fine. I’ve observed latency on my @gmail.com account. I’m not sure whether I’ve seen it on my Google Apps email account.
  • I tried disabling AdBlock on that page. We’ll see if it helps. I can’t tell without a soak period because disabling AdBlock does a page refresh, and doing a page refresh temporarily cures the problem.

Learning R - Painful R Learnings

I’m learning programming/analysis with R. Here are a few things I’ve learned that were more painful than necessary.

  • Suppose you have a formula such as fol <- formula(response ~ a + b + c). Every one of those values must be defined in your data frame – including the left-hand side (‘response’ in this case). This means you must add a column to your data frame for the left-hand side. You’ll probably do that with df$response<-rep(0,row_count_goes_here).
  • If you call rpart with something like model <- rpart(fol, method="class", data=training), you might get Error in cbind(yval2, yprob, nodeprob) : number of rows of matrices must match (see arg 2). If all of your left-hand side values are the same, rpart throws this unhelpful message as its way of saying, “Hey! I can’t make a decision tree where all of the records (‘response’, in this case) have the same value! The decision is too easy.”
    • You’ll have to put the calculated value for the left-hand side into the table. Try something like training$response <- training$a + training$b + training$c
  • to get the first 5 rows of a data frame with 13 columns use either:
    • df[c(1:5),1:13]
    • df[c(1:5,]

Reconfigure Ubuntu (Linux) Keyboard for Dvorak

sudo dpkg-reconfigure keyboard-configuration

When Nothing Else Unzips a Zip File

brew install p7zip

unzip using the command: 7za x some_file.zip

Unable to Acccess OneNote

I started OneNote this morning and received, “OneNote can’t start. This might be because there’s not enough free disk space or because we don’t have permission to write to files in your user settings folder. If you’re out of disk space, please try to free some up. Otherwise, contact your system administrator.”

It turns out that I used to have Admin rights on this PC and they were revoked overnight. OneNote created a C:\Tmp\OneNoteRuntimeCache folder which I was unable to access without my Admin rights. I couldn’t even take ownership of the folder and grant myself rights.

Resolution: Re-obtain Admin rights.

Sublime Text Hints

  • To pretty-print HTML, use https://github.com/victorporof/Sublime-HTMLPrettify
    • Once installed, select Tools » Command Palette, and type “htmlprettify”

Set up Edimax AC600 WiFi Dongle to Auto-connect to VMware Guest on a Windows Host

Automatically connect EDIMAX AC 600 USB WiFi to VMware Player guest:

Do this with VMware shut down!

  • Plug in the device when the VM is not running.
  • Confirm that the device shows up in Device Manager as “Edimax AC600 Wireless LAN USB Adapter”
  • Search within HKLM\System\CurrentControlSet for “Edimax AC600 Wireless LAN USB Adapter”
    • You will find an entry with DriverDesc = this value. Check that entry and you should find multiple values that contain “vid_7392&pid_a812”. This is the VID and PID for your device.
  • Edit the .vmx file for your VM.
    • Check for other usb.autoConnect entries. If they exist, increment “device0” to a higher number than zero in the following instruction.
    • Add a row with the vid and pid values, separated by a colon, with each one prefixed by “0x”:
      • usb.autoConnect.device0 = “0x7392:0xa812”