After taking The Data Scientist’s Toolbox in the Coursera’s Data Science Signature Track, R Programming is my second Coursera course. The Data Scientist’s Toolbox is very easy, I only spent like a few hours each week to finish the quizz and assignment and I always waited until the last day to do it. When I worked on the first programming assignment for R programming, I still waited until the due day. However, I then realized the lectures did not prepare me for the assignment! After working non-stop for several hours straight, I finally submitted the first assignment on time. Here are some of the tips I gather during the course. I hope it’s useful for someone.
Week 1 is the easiest one, because there is no programming assignment. Remember there is an optional swirl assignment? I strongly recommend finishing this assignment this week. It has a lot of materials which are not covered in the lectures. One added benefit is that you can get bonus points for this assignment. Please check this web site for more details about swirl package.
We recently had some reports about Macs freeze on booting. The computers are all running the latest Yosemite. Here are the possible fixes for this problem. I listed them here with the detailed instructions on Apple’s website.
On most machines, you only need to reset the NVRam. There is one machine that I used all three methods to get it to boot normally. Note that these are also the general procedures when you have problems with booting a Mac. You can try them even if the machine is not running Yosemite.
You could try to delete BootCache.playlist file if all else fails.
Press (Command+S) when the machine boots up to enter single user mode.
After the recent Windows Update applied (February 2015), the Cisco AnyConnect VPN client stopped working on some of our Windows 8.1 machines. Whenever you try to connect, you get this dialog box. “Failed to initialize connection subsystem”.
My colleague has suggested the following fix.
Open Windows Explorer.
Browse to C:\Program Files(x86)\Cisco\Cisco AnyConnect Secure Mobility Client on 64bit machine, or C:\Program Files\Cisco\Cisco AnyConnect Secure Mobility Client on 32bit machine.
Right click on vpnui.exe and select Properties.
Click on Compatibility tab.
Click on Change settings for all users.
Click on Run this program in compatibility mode for: and select Windows 8.
Click on OK to close the dialog box, click on OK again to close vpnui.exe Properties window.
Reboot the machine or restart Cisco AnyConnect Secure Mobility Agent service.
During a recent security scanning of our machines, we found several machines have not been updated for several months. These machines are running Windows 7 and set up to get updates automatically. Something was not right and caused the machine to stop receiving updates. I tried to do manually update on one computer and got this error message.
A quick search found this article which helps me to solve the problem. The problem of my machines were caused by a registry value. Here are the steps I used to fix it.
Click on the Windows logo on the task bar and type regedit.
Right click on the regedit.exe program and select Run as administrator.
Browser to this key:
Double click on the value named UseWUServer and change the value data from 1 to 0. If you could not find this value or the value data is already 0, the cause of your problem is different. You’ll have to search for other solution.
We have to restart the Windows Update service. In a Windows Explorer window, locate Computer. Right click on it and select Manage.
Locate the Windows Update service. Right click on it and select Restart.
If restarting of the Windows Update service does not help, you can try to reboot the machine. I also found that after the registry change, one machine is still not able to do Windows Update correctly. I downloaded the Windows Update troubleshooter to fix that machine’s problem. Here is the link:
When my work email got migrated to Office 365, I found that the inbox rules (filters) were gone. It took me a while to find out how to set up the inbox rules. Here are the steps to get to the site to change them.
Open a browser and visit this page
Replace shared-mailbox-address with your shared mailbox address.
I have been asked to install quite a few programs on a machine running Scientific Linux 6. Some of the programs do not offer rpm package or source code. The only way to install them is through apt-get. In order for me to install these programs on Scientific Linux, I need to convert the deb packages to rpm format. Before you follow the following procedures, note that this is not supported and it could break your system. Use it as the last resort and test them in a testing environment first. I will use a package called libgtkglext1 as an example.
You will need a Debian based distribution to get the packages. You can install one using VitrualBox if you do not have access to a new machine.
On the Debian box, install the alien package.
sudo apt-get install alien
We first need to get the deb package without installing it. Note that there might be other packages needed. Make a note of the supporting package names.
sudo apt-get --download-only install libgtkglext1
Find out the file name of the deb package. Do this for all the packages needed.
Convert the deb file to rpm file. The last argument is from the output of step 4. Remember to convert the supporting packages too.