Powered by Blogger.

Install Google Course Builder (CB) in Mac

Saturday, October 31, 2015

PC Used:
MacBook Pro (Retina, 15-inch, Late 2013)
Processor: 2.3 GHz Intel Core i7
OS X El Capitan (Version 10.11)

A. Installation

https://code.google.com/p/course-builder/wiki/Download

1. Download and install Python 2.7 (https://code.google.com/p/course-builder/wiki/Download#Download_and_install_Python_2.7)

mac$ which python
/usr/bin/python
mac$ python -V
Python 2.7.10

2. Download and install Google App Engine
https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python

Download: https://storage.googleapis.com/appengine-sdks/featured/GoogleAppEngineLauncher-1.9.28.dmg

How to install: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python

3. Download Course Builder
https://code.google.com/p/course-builder/wiki/DownloadCourseBuilder
Location I used: mac/coursebuilder


B. Running GAE (using GUI)

https://code.google.com/p/course-builder/wiki/GetCode


C. Deploy CB

Register your Course Builder with Google

Create a app specific password

https://code.google.com/p/course-builder/wiki/UploadCode#Register_your_Course_Builder_with_Google






Run a Visual Studio project in another PC via command prompt

Saturday, May 23, 2015

First we need to access Visual Studio (VS) Developer Command Prompt (DCP) in the remote machine via the regular prompt. Accessing VS DCP is explained here.

This link shows how to debug a VS project via DCP.

Assuming now we have a .exe file in the Debug folder, we can use the following code now to run the application remotely.

C:\Users\source_user_name>psexec -i \\destination_ip -u destination_user -p destination_password "C:\Users\destination_user\Documents\Visual Studio 2012\Projects\my_roject\my_roject\bin\Debug\my_application.exe"

Access command prompt of another PC via IP

1. Download and extract PsTools to "C:\Windows\System32" in both source and target PCs (In my case both are Windows 8).

2. Open command prompt and type:
"reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f"

Following was the output:
The operation completed successfully.

3. Let us access "ipconfig" remotely as an example. Type the following in the command prompt of the source computer.

psexec \\destination_ip_address -u destination_username -p destination_password ipconfig

Note:
If you get the following error, please try the code given below in the remote PC.

Error:
Couldn't access 192.168.1.106:
The network path was not found.

Make sure that the default admin$ share is enabled on 192.168.1.106.

Code to try:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer Change the AutoShareServer key to 1

Referrences:
1. http://stackoverflow.com/questions/18388381/make-sure-that-the-default-admin-share-is-enable-on-servername
2. serverfault.com/questions/422078/psexec-unknown-user-name-or-bad-password-in-workgroup

Flutter

Wednesday, April 8, 2015

Flutter IMDb link

A really good movie showing how mothers sacrifice their entire life for the kids.

How to Start Android Programming

Monday, February 2, 2015

I was new to Android Programming and it took a while for me to set up the system and to run my first Android application. After successfully ran the first program, I thought of sharing my experience here for someone new to Android Programming to make it a less painful start.

My environment: Windows 8 32-bits

1. First download Android Studio from this link and install.

2. Add necessary SDK Packages as explained in this link.

3. Run the HAXM installer located in the following location.
{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Refer to this link for more information.

You may have to enable 'Intel Virtualization Technology' in BIOS as per this link.

Make sure to set up the memory during the installation as per this link. I used 768 MB.
In case if you want to change the memory assigned later re-run the HAXM installer again with new memory value. More information.

If you change the HAXM memory assigned later, make sure to change it in the Android Studio as well as per following details.
Android Studio -> Tools -> Android -> AVD Manager
Then in the row of the relevant virtual device, click the 'Edit this AVD' in 'Actions' column.
In the opened window click 'Show Advanced Settings' button and scroll down.
Change the 'Memory' value as required (I used 768), and click 'Finish'.

4. Hopefully now your system is ready to start programming. Follow the tutorials given in this link.