How to Stop Sucking and Be Awesome Instead

GSoC Project Progress Presentation - Feedback Module


GSoC Project Progress Presentation

21th June 2012 @ OpenMRS Dev Forum



 


(I was started my speech near: 0:25:00 in the Timeline)

Notes of the Dev Forum




Presentation Slides


Reference links used in the Presentation - Feedback Module

Project Contents 

User Documentation

Running Mac OS X on VMware Workstation in Windows Platform

Introduction

This simple guide is for those who want to try out Apple’s Macintosh OS X on VMware Workstation in Windows platform.  The basic requirements are:
  1. A PC running Windows x86 or x64
  2. VMware Workstation 8 [Download Torrent with Serial]
  3. Download the following files:
    1. Mac OS X Lion VMware Files.exe (Size: 2.42MB)
    2. Mac OS X Lion Retail Bootable .vmdk (For VMware) (A bit torrent of size 4.12GB)

Patch VMware Workstation 8 with VMware Workstation 8.0 Darwin Unlocker Windows

Before running Mac OS X on VMware workstation, a patch should apply to some binary files of VMware workstation.
For illustration purpose, the following example will attempt to patch VMware Workstation 8 binary files:
  1. First, extract the download file Mac OS X Lion VMware files.exe.using any file archive utility like 7-Zip or double click the .exe to extract the files.
  2. Open command prompt (cmd) in Administrator Account.
  3. Navigate to extracted folder “VMware Workstation Unlocker - Windows" and run install.cmd:
M:\>cd "VMware Workstation Unlocker - Windows"

M:\VMware Workstation Unlocker - Windows>install.cmd
VMware Unlocker 1.0.0
=====================
(c) Dave Parsons 2011
Stopping VMware services...
The VMware Workstation Server service is stopping.
The VMware Workstation Server service was stopped successfully.


The VMware Authorization Service service was stopped successfully.

Creating backup folders.
...
Starting VMware services...
The VMware Authorization Service service is starting.
The VMware Authorization Service service was started successfully.

The VMware Workstation Server service is starting.
The VMware Workstation Server service was started successfully.

M:\VMware Workstation Unlocker - Windows>
The VMware workstation 8 is now patched.  You may continue the next step to configure and run Mac OS X Lion on VMware workstation 8.

Install Mac OS X Lion on VMware Workstation

Prepare a Mac OS X machine

Extract pre-configure Mac OS X Lion VMware workstation files from Mac OS X Lion VMware Files.exe in a new folder:
1
Start the virtual machine Mac OS X Lion.vmx.  A dialog prompt for the virtual machine instance state: 
2
Press “I copied it” button to state the virtual machine is a cloned instance.

Prepare Mac OS X Installation

The machine setting may change to suit the environment.  e.g.: Memory size.
Next, add Mac OS X Lion Installer disk (Mac OS X Lion Installer.vmdk) by creating a new VMware hard disk.
2

Start Mac OS X Machine

Power on the virtual machine.  A Mac OS X installation screen should appear as follow:
5

Prepare a disk for Mac OS X installation

Next, start Disk Utility to prepare a disk for Mac OS X installation:
4
Create a new Mac OS X partition  by using the Erase option.  A label for the new disk may specify in the option:
6
Confirm the Erase operation:
7

Start Mac OS X Installation

Follow the screen instruction to continue Mac OS X installation:

9

Confirm the installation on the new disk created:

10

The installation may take a while to finish:
11

Finish Mac OS X Installation

Finally, the Mac OS X installed and the first screen appear as follow:

12

Install VMware tools

VMware tools provide few GUI enhancement experience for Mac OS X guest.  Download VMware tools ISO for OS X here.  Follow the following steps to install VMware tools in OS X:
  1. Extract a ISO file (darwin.iso) from the zip archive file
  2. Mount the ISO file to Mac OS X Guest operating system

    2
  3. Start Mac OS X guest system.
  4. Open Finder from OS X desktop and select CD/DVD ROM device.

    1
  5. Double click Install VMware Tools icon to start VMware tools installation
  6. Follow the screen instruction to complete installation.

Problems with Sound ?

Here's the fix!
http://sourceforge.net/projects/vmsvga2/
more details at here, http://www.insanelymac.com/forum/index.php?showtopic=180702

Basically you should do is share a folder with host and mac then copy that downloaded file into that shared folder. install that PKG file from inside the MAC !!

Reference

  1. http://chee-yang.blogspot.com/2012/04/running-mac-os-x-on-vmware-workstation.html
  2. How To Install Fully Functional Mac OS X Lion Virtual Machine inside Windows 7 [UPDATE: 10.7.3]. URL: http://www.windows7hacker.com/index.php/2011/09/how-to-install-fully-functional-mac-os-x-lion-virtual-machine-inside-windows-7/

Installing JDK on Amazon EC2, f*ck yea Oracle! xD

Today, I had to install the SunOracle JDK on some servers, so I visited the JDK download page to retrieve the direct download link for wget on each server:
$ wget http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
After launching the command, the server redirects me to a 5K HTML file:
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
WAIT, WHAT? I can’t download the file if I don’t visit their download page to accept the OTN license.
Challenge accepted, I’m going to play with requests… What happens when I click on the archive link?
First request:
Request URL:http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Request Method:GET
Cookie:s_nr=some_integer; s_cc=true; gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html; s_sq=%5B%5BB%5D%5D
Okay, trying to play with cookie values (I deleted the useless values):
$ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html;" http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm

--2012-04-12 18:47:58--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Resolving download.oracle.com (download.oracle.com)... 24.29.138.48, 24.29.138.40
Connecting to download.oracle.com (download.oracle.com)|24.29.138.48|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm [following]
--2012-04-12 18:47:59--  https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.18.222.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.18.222.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm?AuthParam=THEIR_AUTHPARAM [following]
--2012-04-12 18:48:00--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm?AuthParam=THEIR_AUTHPARAM
Connecting to download.oracle.com (download.oracle.com)|24.29.138.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 67667318 (65M) [application/x-redhat-package-manager]
Saving to: `jdk-7u3-linux-x64.rpm'
Fuck Yea.

More information

You can set what you want in gpw_e24, I think it’s a kind of referer. As for me, I’m using the download page URL.
According to the OTN BCL document for Java SE:
BY SELECTING THE “ACCEPT LICENSE AGREEMENT” (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM.
Enjoy it!
Bonus

__________
REF:http://blog.kdecherf.com/2012/04/12/oracle-i-download-your-jdk-by-eating-magic-cookies/

Enable/Disable VGA card of your Linux based Laptop. [Power Saver Mode]




The program is called ironhide, it lets the user to enable and disable the VGA card as needed. In earliar days this has been called as Bumble-bee so its the continuation of the same project.

For more info : https://github.com/MrMEEE/ironhide

How to install?

Open a terminal and enter these step by step:

sudo add-apt-repository ppa:mj-casalogic/ironhide
sudo apt-get update
sudo apt-get install ironhide

Now after couple of configurations you will be able to adjust the settings as needed for your VGA card.

Then you can simply type below commands to enable as well disable VGA card anytime!


1  ironhide-enablecard
2  ironhide-disablecard

Other commands.

ironhide-configuration - Initial configuration
ironhide-settings - Lots of different settings
ironhide-bugreport - Bug Report Utility
ironhide-submitsystem - Utility to submit working system infomation 

HTC HD2_Leo : How to Flash into WP6.5 Stock ROM / Radio via microSD





I've been asked this a few times and I actually had to get help the first time I tried it, so here's my tutorial on how to flash a ROM or Radio image using your microSD Card. I personally use this method because my own computer runs Linux. I could probably boot up to Windows from time to time, but that would be like cheating on my wife; I just can't bring myself to do it if I can avoid it at all

A few of us old-timers to HTC are so used to our personal little tricks we use that we forget that newer users haven't learned them yet. I'm expecting a few people to say, "Oh yeah, we already knew that!" but perhaps one or two will instead learn from it and appreciate it.

So, without further ado:

Different chefs use different methods when naming their ROM or Radio images. You must rename the image to "LEOIMG.nbh", since this is the only recognized file name the bootloader will accept. (note: Some people are reporting that the file name must be capitalized, or it will not work. When named exactly as above, it has always worked for me!)

  1. Place the LEOIMG.nbh on a 8GB or smaller microSD card.
  2. Remove the battery cover and press the Reset button.
  3. Hold the Volume Down and End Call (power) buttons at the same time.
  4. As soon as "Searching..." appears on the screen, release the Volume Down button.
  5. ROM will flash. Be sure to hard-reset afterwards to prevent weird errors (as usual).

Now, in case you are wondering about the specifics:
  1. Remember to put the file on the "root" of the device. This means you can't put it in a folder. I am using an 8GB Class 2 card for flashing. I would recommend using a 1GB Class 6, but it's not necessary. It may be possible with a higher class 16GB card, but I haven't tried. Our Class 2 that came with the phone never works, though I don't rightly know why. [update]souljaboy wrote in and said: "it doesn't work because a fat32 is needed and by default the card is formatted fat, I think you should mention that, it worked for me!" Thanks, souljaboy!
  2. The reset button is a small red or yellow spot just below the slot for the microSD card. You could also remove and replace the battery; the important thing is to shut your phone off and restart it.
  3. Pressing Volume Down and End Call (or Power) is the recommended way to enter the bootloader. If you press the Volume Up and Volume Down at the same time, you will enter the "Hard Reset" option instead.
  4. If "Searching..." does not appear, you either do not have a compatible card in the phone, or you are not holding the right buttons. If you hold the "Volume Down" button past this point, you will see a message that says, "Press the Power Button to upgrade your phone." Releasing the "Volume Down" button at this point may or may not work, I had to release it before. If you release the "Power Button" now, your phone will simply reboot without flashing.
  5. ROM flashing via SD is much safer than via USB, since you don't have to worry about accidentally unplugging the cord or an issue with your PC, such as a crash or power failure.

---Added 05/21/10 as suggested by zelendel (Thanks for the sticky!)

If you are flashing an "Official" ROM direct from HTC or T-Mobile, you will more than likely over-write your SPL (Second Program Loader). This means, even if you have HSPL installed now, you could be reverted back to SSPL, rendering you unable to flash custom ROMs.

To make matters worse, if you flash an ROM higher than 2.10 and you attempt to install the current (as of 5/21/10) HSPL, you will brick your phone. Yeah, it's bad.

So, assuming you have flashed an official ROM over 2.10 via the SD card and you decide you want a custom ROM, follow these simple directions:
  1. (You do not have to have your phone connected to your PC for these steps)
  2. Download the "Official" ROM from here. (Thanks to zelendel for the upload!)
  3. Follow the instructions above to flash your phone with this image.
  4. Once you phone has fully booted, I recommend doing an extra hard-reset.
  5. Next, visit mskip's thread to download the latest HSPL and flash that (you can flash it either via RUU or via microSD).
  6. If done properly you should now be able to once again flash custom ROMs. Congratulations!

Hopefully someone will find this useful. If you have any issues, reply to this thread and I or some other wonderful xda member will try and sort things out.

Happy Flashing!

______________
REF : http://forum.xda-developers.com/showthread.php?t=681317