Search my blog articles

Tuesday, February 19, 2013

7Zip Folders

rem Setup Variables...
set zcmd="c:\program files\7-zip\7z" a -tzip -r -mx=7 -ssw -mtc=on
rem date format YYYY_MM_DD
set mydate=%date:~10,4%_%date:~4,2%_%date:~7,2%
set inputDir=%1
set OutputDir=%2
set outputFileName=%3
IF /I x%4==xts SET outputFileName=%outputFileName%_%mydate%
EcHO %outputFileName%
rem Compress changed files...
%zcmd% %OutputDir%\%outputFileName%.zip %inputDir%

Microsoft Office for Mac Home and Student 2011 Family Pack - Education (Google Affiliate Ad)

Microsoft Office Home and Student 2013, 1 PC 79G-03550 (Google Affiliate Ad)

Wilderness Solutions - FireSteel Pendant - Fire Starter - Silver (Google Affiliate Ad)

Friday, February 08, 2013

VirtualBox VM, anyone?

Let me start with a declaration, " I like my mac". Also, what is true is "I love my windows" However, I did not want to have 2 machines just to run 2 OS.

So, I started off looking for a way to run windows on my Mac. Here are the options I considered.

1. Parallels
2. VMware Fusion: Run Windows on Mac, Virtualization for Mac Lion
3. and the little known, Oracle VM VirtualBox

I wanted to start and see how I would like the whole idea of working on a guest OS ( the OS running as a virtual machine) as against to working on Host OS( the OS running on the base machine.

So to start off my trial, I was about to download a copy of Parallels when I stumbled up on VMware Fusion. Have more than one options to virtualize my windows PC, I started researching to find out which might be a better option.

As I was googling and binging around, I came across VM Virtual box.

I considered ease, stablity and feature set and price to make my choice. I went with VM Virtual box.

Here is why,

1. It enables me to create a virtual machine on my Mac
2. It enables me to perform all the basic functions on creating and maintaining my virtual PC
3. It is open source yet backed by Oracle corp.
4. It is Free, this allows me to test it out with out a trial product which might expire in a few weeks.
5. Has enough docs and forums to trouble shoot or give you HowTos.

With that, I downloaded VM VirtualBox and downloaded a trial version of Windows 8(http://msdn.microsoft.com/en-us/evalcenter/jj554510.aspx)  I also downloaded Visual studio Windows Dev Center developer downloads page.

Now I have a fully functional development environment based on Windows 8 on my Mac OSx 10.6.8.

Friday, June 29, 2012

Installing CyanogenMod on my HTC Evo 4G

Last weekend I dropped my HTC evo and cracked my digitizer glass. I brought a new digitizer and installed it per instruction , however, I broked the LCD screen in the process. The one thing I did not follow was using a hair dryer to soften the glue that is holding the  glass to the digitizer. So guys who want to try doing this. Most important tip. Use a hair dryer to warm up the glass around the edges to loosen the tape that holds the glass down.

Well, my good friend John gave me a spare HTC evo. The phone had Nandroid back up installed and it was already rooted. I was ready to

I checked out this site ,
http://wiki.cyanogenmod.com/wiki/HTC_Evo_4G:_Full_Update_Guide . This site gives a very good brief on how to install the cyanogenMod . However it does not talk about Nandroid root access method.

So the basic steps are
  1. copy the zip file on to the root of the SD card. 
    1. CM zip ( http://wiki.cyanogenmod.com/wiki/Latest_Version#HTC_Evo_4G)
    2. google apps zip.(http://wiki.cyanogenmod.com/wiki/Latest_Version#Google_Apps)
  2.  backup the phone
  3. Wipe data/factory reset
  4. Install the mod from the zip.
    1. Browse the zip file from sd card root.
    2. Install.
  5. Install the google apps. 
    1. Browse the zip file for the google apps
    2. Install.
The nandroid back had all the menu options similar to the ClockworkMod recovery menu options. I wish I had taken the pics of the process.

Well, if you have any questions on this process, please post question in the comments. 

Good luck to all who is trying to get the cyanogenMod. Thanks to the CyanogenMod Team. 

Check out some of the things I have bought for my HTV evo





Friday, June 08, 2012


The InformationistThe Informationist by Taylor Stevens
My rating: 2 of 5 stars

This book was ok to read, cuz I had nothing else to read. The author wanted to portray a very intelligent, artful and suspense filled novel. But the book was filled with lots of fluff and useless information and digressed a lot just to show off the authors knowledge of the EG and cameroon and other nations surrounding it.

There are lots of gaping logical hole in the character portrayal of the lead, Vanessa. I don't want to go into details of it. Unless someone's gonna read this review and give me an assignment to fetch information on other similar authors in far away countries.

It was not complete waste of time, but I could have been better off reading another novel. Try again Taylor Stevens.


View all my reviews

Thursday, April 19, 2012

PowerShell script for file copy

I was faced with an issue of moving file from Subfolders to its parent folders, essentially flatten the folder structure and move all the file to a single folder.

Here is what I created in power shell script.

Ping back if you don't follow it.

foreach ($i in Get-ChildItem -recurse C:\temp\xcopy\ -exclude "*_done","*_exception" | where{$_.PsIsContainer})
{
Move-Item $i\* C:\Temp\xcopy -force
Remove-Item $i.FullName
}


Here is what it does,
1. Loops thru and gets all the folders in the c:\temp\xopy folder.
a. 'exception' does not bring back any folder with name ending with '_done' or '_exception'
2. moves all the files in that folder to any other folder.
3. Deletes the folder after it moves it.