Monday, October 27, 2008

Can't Access My Dashboard

I can't access my blogger home page without a anno/ny/mizer (Tor) , it could be because of fil/ter/ing the dashboard. WHY?

Monday, October 20, 2008

How to Get Office Version Programmatically

one of my friend asked me this question: how to get Microsoft Word's version installed on client system?
a few searches and here is the answer so far :
1- use this VBS code [^]:
Set objWord = CreateObject("Word.Application")
Wscript.Echo "Version: " & objWord.Version
Wscript.Echo "Build: " & objWord.Build
objWord.Quit

2- find the Word application path and check the file version (C#) [^] :
read the registry key in "Software\Microsoft\Windows\CurrentVersion\App Paths" to find winword.exe key, and then in the key find Path's value that refer to exe file of Word app.
//looks inside CURRENT_USER:
RegistryKey _mainKey = Registry.CurrentUser;
_mainKey = _mainKey.OpenSubKey(
"Software\Microsoft\Windows\CurrentVersion\App Paths\\"
+ "winword.exe", false);
if (_mainKey == null)
{
//looks inside LOCAL_MACHINE:
_mainKey = Registry.LocalMachine;
_mainKey = _mainKey.OpenSubKey(
"Software\Microsoft\Windows\CurrentVersion\App Paths\\"
+ "winword.exe", false);
}
if (_mainKey == null)
throw new Exception("it does not exist!");


MessageBox.Show(
System.Diagnostics.FileVersionInfo.GetVersionInfo(
_mainKey.GetValue(string.Empty).ToString()).FileVersion);



See the reference for complete code

3- use Microsoft.Office name space in .Net [^]

just this code :

//be aware of exceptions
MessageBox.Show(
new Microsoft.Office.Interop.Word.Application().Version);

Saturday, October 18, 2008

Censorship

Last Friday the the television of Islamic republic of Iran showed two good Hollywood movies : WALL-E and Next BUT like always they censored them, in most cases just some scenes would be removed or some dialogs would be changed But sometimes they go far like removing some of movie characters like Spider Man 2 when the M.J character almost deleted from movie or changing the story like Constantine movie.
What I'm going to say is about these two movies, in WALL-E the IRIB television changed the female character EVE to a male robot Evan to protect us from evil male/female relations between those robots and in the Next movie the 96 min movie converted to a 50 min movie with no ending I was watching it when the movie ends and a commercial started waiting for the rest of movie but there was no rest. the movie left just for heaven's sake.

Wednesday, October 15, 2008

Deception Point

I recently finished reading Deception Point by Dan Brown, a political techno-thriller novel that at first looks like a anti U.S government novel but in the last you will find out that president of the united states (or according to the book POTUS) is a most innocent god blessed man in the world.

Dan Brown like always made a excellent story he could make us wait eagerly for 20 chapter to tell us where one of the story heroes is going to, I'd rather not to tell the plot but if you want to know you can see here. I read Da Vinci Code in Persian (translated) so can't be sure if it was not censored but the last rows of book are very similar to Angles & Demons, the story ends up in BED. the other point that I noticed was the names, like Senator Sedgewick S/e/x/ton that pronounced like S/e/x/teen or president Zack Herney that pronounced like h/o/r/ny or Corky Marlinson the chubby astrophysicist with that strange name, Dan have should some some ideas!

find out more at : here & here & here & here
my book shelf link : http://www.shelfari.com/o1517168334/shelf
Dan Brown official site : http://www.danbrown.com

Sunday, October 12, 2008

Only You Can Silence YourSelf





From : DailyFa.net

Once Upon A December

A few years ago when I was a child there was a teaser clip in some VCDs showing a dance part of Anastasia movie that was very good, it make me to search for the movie and watch it, the result was disappointing.movie was not something excellent although the music was, here is my favorite part :

http://rapidshare.com/files/153215469/ONCE_UPON_A_DECEMBER.mp3

Hope you enjoy it, I found it in my collections and do not remember where i got it.
the lyric is from Allmusicals.com
Dancing bears,
Painted wings,
Things I almost remember,
And a song someone sings
Once upon a December.

Someone holds me safe and warm.
Horses prance through a silver storm.
Figures dancing gracefully
Across my memory...

(Instrumental interlude)

Someone holds me safe and warm.
Horses prance through a silver storm.
Figures dancing gracefully
Across my memory...

Far away, long ago,
Glowing dim as an ember,
Things my heart
Used to know,
Things it yearns to remember...

And a song
Someone sings
Once upon a December

Thursday, October 09, 2008

Terminal

Mehran Karimi Nasseri, also known as Sir, Alfred Mehran (yes, including the comma), is an Iranian refugee who has been living in the departure lounge of Terminal One in Charles de Gaulle Airport since August 8, 1988. (according here). Nasseri was reportedly the inspiration behind the 2004 movie The Terminal.


It's about a man with no country, when he arrive from a fictional country around Russia the JFK
airport staff tell him that rebels take his country and therefore he his citizen of nowhere and he should wait until U.S government accept his country then he finds himself prisoned in airport no way out no way in, like always tom hanks acts perfect.
I liked this movie.

First Image by the GeoEye-1

GeoEye-1 is the world's highest-resolution commercial satellite sponsored by Google (the second will be launch in 2011 or 2012) it can take photos at a resolution of up to 41 centimeters. below photo taken at noon EDT on October 7 while the 4,300-pound satellite moving from the north pole to the south pole in a 423-mile-high orbit at 17,000 miles per hour, or 4.5 miles per second.


this satellite is actually designed for NGA (National Geospatial-Intelligence Agency) and the agency paid half of $502 million built satellite's cost.
it's somehow odd that even Google does SPYING on people, a search engine building spy satellites! with this you can not even be safe in your home knowing that Google in addition of other things may be standing above you right now.
having this wonderful res will make Google customers crazy (they can't have the best res, it's government restricted but a very good portion of it)


Source : http://blog.wired.com/wiredscience/2008/10/geoeye-1-super.html

Tuesday, October 07, 2008

Quotes

He, who laughs last, thinks slowest.

Everyone has a photographic memory. Some don’t have film.

A day without sunshine is like, well, night.

On the other hand, you have different fingers.

Change is inevitable, except from a vending machine.

I just got lost in thought. It was unfamiliar territory.

When the chips are down, the buffalo is empty.

Seen it all, done it all, can’t remember most of it.

Those who live by the sword get shot by those who don’t.

I feel like I’m diagonally parked in a parallel universe.

He’s not dead, he’s electroencephalographically challenged.

You have the right to remain silent. Anything you say will be misquoted, then used against you.

I wonder how much deeper the ocean would be without sponges.

Honk if you love peace and quiet.

Despite the cost of living, have you noticed how it remains so popular?

Nothing is foolproof to a sufficiently talented fool.

It is hard to understand how a cemetery raised its burial cost and blamed it on the cost of living.

The 50-50-90 rule: Anytime you have a 50-50 chance of getting something right, there’s a 90% probability you’ll get it wrong.

It is said that if you line up all the cars in the world end to end, someone would be stupid enough to try and pass them.

You can’t have everything, where would you put it?

Latest survey shows that 3 out of 4 people make up 75% of the world’s population.

The things that come to those that wait may be the things left by those who got there first.

A fine is a tax for doing wrong. A tax is a fine for doing well.

It was recently discovered that research causes cancer in rats.

Everybody lies, but it doesn’t matter since nobody listens.

I wished the buck stopped here, as I could use a few.

I started out with nothing, and I still have most of it.

Light travels faster than sound. This is why some people appear bright until you hear them speak

From : funtasticus.com

Sunday, October 05, 2008

Eid el-Fetr

Happy Fetr Celebration

Tehran - Iran
ThailandPakistan
Afghanistan
Egypt
Pakistan
Pakistan
Pakistan
Bosnia
Bulgaria
Palestine
Palestine
Iraq
Albania
Indonesia
Saudi Arabia
Saudi Arabia
Bosnia
Source : BBC news 1 & 2