Windows 10 Activation using Command Line Utility slmgr

Windows 10 uses the same command line utility slmgr as Windows 7 for activation with a MAK (Multiple Activation Key). Follow these simple steps to activate your Windows 10.

  1. Open up an elevated command prompt.
  2. Enter the following
    slmgr -ipk your-mak-key-here
    
    slmgr -ato

That’s it. To learn more about this command, type the following command.

slmgr /?

Folder Not Accessible after Cancellation of Robocopy

I was planning for our server migration. One job is migrating the files to the new server. I used robocopy to copy the files. Half way through the process, I found something wrong and cancelled the robocopy process. One problem after the cancellation of robocopy is that I can no longer access the remote folder. I tried to use the Windows explorer to take the ownership, but failed. It’s probably because I am not the admin of the remote server.

I vaguely remembered that I had this problem before, but I could not find my note. I thought I used cacls to fix the problem, but I was not sure. I checked my old script and found a solution. Here are the steps to fix the problem.

  1. Elevate a command prompt. If you are not familiar with it, just search Command Prompt in the search box. Once you see the Command Prompt program, right click on it and select Run as administrator.
  2. Enter the following command and press Enter:
    cacls \\remote_server\remote_share\remote_dir /e /T /g username:F

 

AT&T’s Unlock Policies Cost It Yet Another Loyal Customer

I have been an AT&T wireless customer ever since I got my iPhone 3G. AT&T service has been average, with a lot of dropped calls from time to time. Overall, I am okay with the service and was planning to stay with them. A recent rejected unlock request changed my mind.

I had a HTC One X last year. Before I traveled internationally, I submitted an unlock request. It was approved right away even though the phone was still under contract. This year, I got a new iPhone 6 plus, and I am planning to travel again.I submitted an unlock request again, but the request got denied.

After multiple attempts to use the web form, I tried to call them and explained to them that I am planning to travel internationally and wish to use my phone with a different carrier. No dice. They said I needed to finish my contract first before they could unlock my phone. I explained that I submitted a request last year for my HTC phone that was still under contract and that got approved. They didn’t know why my previous request got approved but kept insisting that I had to finish my contract first. One representative told me that some users got their phones unlocked, went away with the unlocked phones, and never returned to US. That’s why they did not approve unlock requests for international travel. I could see that happening with new users, but I have been with AT&T for several years. How can they treat a loyal customer like this?

I can understand the they have policies in place to keep their customers. However, I think it’s doing quite the opposite for some customers. I researched the unlock policies for AT&T’s competitors and found that Verizon does not lock their 4G LTE devices. If I bought an iPhone 6 plus with Verizon, I do not need to unlock my phone at all because it’s already unlocked. Here is Verizon’s unlock policy.

http://www.verizonwireless.com/aboutus/commitment/safety-security/device-unlocking-policy.html

When I mentioned this to a representative, she said she is happy to help me terminate my contract. It does not seem like they want my business. They would rather lose a customer than help me unlock my phone. I finally gave up and decided to leave AT&T after my current contract ends. I don’t want to deal with this anymore every time I want to travel internationally.

 

 

Coursera: R Programming Week 3 Tips

The week 3’s assignment is the easiest one. If you can figure out the sample program provided, the solution is very similar to the sample code. You only need to replace a few strings to get your assignment done.

Someone in the class forum wrote a small program to verify the assignment. I have modified it and here is the listing. BTW, I do not have access to the forum any more and I do not know who is the original author. If you are the original author, please let me know and I’ll mention your name in this post. Once you are done coding, put this code in the same directory and source it.

# Test your code
source("cachematrix.R")
#
# generate matrix, and the inverse of the matrix.
size mymatrix mymatrix.inverse #
# now solve the matrix via the cache-method
#
special.matrix #
# this should take long, since it's the first go
print("Solving the matrix for the first time.")
time1 special.solved.1 time2 print(time2 - time1)
#
# this should be lightning fast
print("Solving the matrix for the second time.")
time1 special.solved.2 time2 print(time2 - time1)
#
# check if all solved matrices are identical
print(identical(mymatrix.inverse, special.solved.1))
print(identical(mymatrix.inverse, special.solved.2))
#
# should return TRUE

Uncertified Lightning Cable (almost) Killed my MacBook Pro

I recently purchased an iPhone 6 plus and am in need of more lightning cables. The certified lightning cables are expensive, so I was looking for a good noncertified lightning cable. I then found a combo set which includes a 3 in 1 cable and a 8000 mAh external battery for only about $14. This sounds like a very good deal. I ordered it because of the good reviews.

When the package arrived, I was pleasantly surprised that the build quality of the  battery and cable is very good. It also came in a handsome box. The package seems like it costs a lot more than its cost.

The problem occurred when I used the cable to connect my iPhone to my MacBook Pro. The moment I connected them, I saw a message on my iPhone saying that the cable is not certified and it might not work properly. I also noticed that my MacBook Pro turned off automatically without any warning. After that, I was not able to turn my MacBook Pro on any more. The charger flashed orange light and if I pressed the battery check button, there is no light or anything. It’s like there is no batter in the system.

I first thought my MacBook Pro is done for and I needed a trip to Apple Store. From my past experience, it could take days before I get my computer back. I decided to try fixing it myself. There is a thread in Apple’s support forum and this seems like a common problem. Someone suggested that disconnecting and reconnecting the battery connector might fix the problem. So, I opened up my MacBook Pro, disconnected the battery connector and reconnected it again. Guess what, it did fix the problem! If you have not opened up a MacBook Pro before, here are some pictures to help you.

My MacBook Pro is a Mid 2012 model. If you have a different model, there is a great web site for dis-assembly videos.

http://ifixit.com

First, place your MacBook Pro upside down on a flat surface. Use a fine Phillips screw driver to unscrew the 10 screws.

IMG_0056-a

I used a size PH 000 screw driver from this set. Note that the 10 screws are not of the same size, it’s recommended that you write down the location of each screw. Carefully remove the bottom part.

IMG_0057_a

Gently pull out the battery connector, wait for a few seconds and reconnect it again. Do not remove the battery, it would void your warranty. That’s it. Before you put the bottom cover back, you can try to push the battery check button on the side to make sure the computer does recognize the battery now.