Monday, January 6, 2014

How to update MiKTeX 2.8 to 2.9 in WinEdt?

1. Install the Miktex 2.9 to C:\Program Files\MiKTeX 2.9
2. Configure the MiKTeX in WinEdt by "Tex->Miktex-> Miktex options->roots"
Remove C:\CTex (interal one is in C:\CTeX\MiKTeX)
Add C:\Program Files\MiKTeX 2.9
3. That's it, if not working, give me a comments.

Friday, January 3, 2014

How to downgrade from IE 11 to lower versions of IEs in Windows 7

(For readers who want to test for various browsers for knowing how the Web page appears in different IE version, strongly suggest you look at here.)

There are a variety of reasons where people wish to downgrade from the latest Internet Explorer 11 (IE 11) in Windows 7, maybe to IE 10 or  IE 9. By just simply clicking on the installer of IE 10 or IE 9, you will get the following unintended message:



This is a step-by-step tutorial guide that help you achieve the task of installing a lower version of IE on Windows 7.

1. Go to Programs and Features, by searching it using the start button.



2. In the Program and Features windows, click on Turn on Windows Features on or off link (as shown in blue circle).


3.  A Windows Features windows will show, uncheck the Internet Explorer 11 (as circled).




4. You will get a message prompt as follows,  select Yes.



5. Select View installed update link (as circled)




6. Type in Internet Explorer in the search box, you should get the Internet Explorer 11 in the list


7. Right click the Internet Explorer 11, and click Uninstall

8. It will prompt you to restart the computer, choose Restart now.


9. After restarting, you can check your browser version, by click the About Internet Explorer in the internet explorer.




9. For mine, I see this:




9. If my aim is  IE 10, I have done. But say I wish to go for IE 9, repeat the same process from steps 1, 5, and 6, to come to the following windows, now we remove Windows Internet Explorer 10. (If you have problem finding Windows Internet Explorer 10 here, you should repeat the steps 2, 3 and 4 for IE 10).


10. That's it, after remove IE 10, you should be able to install IE 9 :)


Sunday, December 8, 2013

Daikon on Windows 7

Make sure you set the Classpath (not path) environment variable to the following:
.;C:\Program Files\Java\jdk1.7.0_17\lib\*;D:\C Drive\Desktop\Daikon\daikon\daikon.jar;
or
.;C:\Program Files\Java\jdk1.7.0_17\lib\*;D:\C Drive\Desktop\Daikon\daikon\daikon.jar

Command to compile
cd /d "D:\C Drive\Desktop\Daikon\daikon\examples\java-examples\StackAr"
javac -g -source 5 -target 5 DataStructures/*.java

Method A. Combine the Intrumentor and invariant detector (sometimes it does not work)
java daikon.Chicory --daikon DataStructures.StackArTester

Method B. Split the Intrumentor and invariant detector
java daikon.Chicory  DataStructures.StackArTester
java daikon.Daikon StackArTester.dtrace.gz

Friday, November 8, 2013

Changing All Fonts in Powerpoint

Want to replace all font for powerpoint slides?
This feature is support directly in powerpoint 2007, 2010.

Under Home Tab

Choose Replace Font under Replace (Editing Section)

And choose the font you want to replace!



That's it!

Saturday, October 19, 2013

Highlighting the different between Latex Documents in Windows 7 using Latexdiff

Wondering is there a way how to make a diff for latex files or documents?
The answer is a definite Yes! You need latexdiff which comes with Miktex

Following is a step by step guide for installing it in Windows 7:
Prerequisite
You need to install:
  1. Miktex (http://miktex.org/2.9/setup)
  2. Perl (can use Strawberry Perl: http://strawberryperl.com/releases.html)

Step By Step Guide
Assume Miktex and Perl Interpreter are installed, and Miktex is installed in "C:\Program Files (x86)\MiKTeX 2.9\" (Other directory is fine, just adapt accordingly)

  1. Go to  "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\"
  2. Create a a new folder "perl" in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\"
  3. Copy all files in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\" to new folder "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl"
  4. Rename all files (without extension) in "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl", with an extension .ple.g., latexdiff to latexdiff.pl
  5. Add "C:\Program Files (x86)\MiKTeX 2.9\scripts\latexdiff\perl" to the PATH environment (if you are not sure how to do so, see here)
  6. Open Command Prompt, and type in
    latexdiff.pl --flatten PreviousFile CurrentFile> diffe.g., latexdiff.pl --flatten "C:\old.tex" "C:\new.tex" > "C:\Diff.tex"

Sample
Below is  a sample for Diff.tex, where you can see what's old (cross out, red color) and new (underline, blue color) easily, pretty cool right :)







Google Chrome - Adobe Acrobat has Crashed

There is a pretty straightforward solution for it:

Go to Chrome plugins page by typing this in your browser: chrome://plugins/
Look for "Chrome PDF Viewer" and Enable it.