GEORGE TRIFONOV Home Developer Corner Contact Resume 
Theme
Login
 
Profile
Profile picture: George Trifonov
  • Age:27
  • Ocuppation:Developer
  • Location:Bellevue,WA USA
  • Country of origin:Russia
Russia Wins !!! RUS (3)-NED(1)

Ole-Ole-ole - Россия Вперед

"Dmitri Torbinski and Andrei Arshavin struck in the last eight minutes of extra time to take Russia into the UEFA EURO 2008™ semi-finals at the expense of the Netherlands as Guus Hiddink eliminated the nation of his birth." - from Euro2008

image

image

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Sat, 21 Jun 2008 14:39:52 GMT By: Gtrifonov
Powershell If statement example

Powershell if statement syntax:

   1: If (condition) {statement}

Example 1 - Checking file or directory existence and copying file if it is exists

   1: $iis ="C:\logs\test.log"
   2: $file = "\\netshare\destination.log"
   3: if(Test-Path $iis){ Copy-Item $iis $file -force}
Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Mon, 16 Jun 2008 15:59:18 GMT By: Gtrifonov
PowerShell file concatenation example.Get-content,Set-content code snippet

Once you got how to copy one or several files, another common task is to concatenate several files from one directory and copy result to another. Find here how simple to do this with PowerShell -

   1: #PowerShell file concatenation example
   2:  
   3: # all text files from directory
   4: $source = "c:\dir\*.txt"
   5: #destination folder
   6: $dest ="d:\destination"
   7:  
   8: #adding content from all files matched files from destination directory to source file
   9:  add-content -path $dest -value (get-content $source)

 

For additional parameters see http://technet.microsoft.com/en-us/library/bb978714.aspx

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Thu, 17 Apr 2008 14:44:59 GMT By: Gtrifonov
Powershell file copy example. Copy-Item code snippet

Probably the first scheduled task you want to do is to periodically copy files from one location to another.
Here the small snippet how to do it in powershell:

   1: # defining log destination
   2: $dest ="C:\somedirectory" 
   3:  
   4: #Creating destination directory
   5: New-Item $dest -type directory -force 
   6:  
   7: #File to copy
   8: $iis ="D:\logs\iislog.log"
   9:  
  10: #Performing copy operation
  11: Copy-Item $iis $dest
Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Thu, 17 Apr 2008 14:11:15 GMT By: Gtrifonov
ETW tracing and command line tools(Logman.exe, TraceRpt.exe)

Hi, I hope this page will help to find the answer how logman and tracerpt tools is used to process ETW logs.
You can find general information about ETW usage visiting http://msdn2.microsoft.com/en-us/magazine/cc163437.aspx#S4

Usage:
tracerpt.exe { <filename [filename ...]> | -rt <session_name [session_name ...]> } [options]

Parameters:
  <filename [filename ...]>     Event Trace log file to process.

Options:
  -?                            Displays context sensitive help.
  -o [filename]                 Text (CSV) output file. Default is dumpfile.csv.
  -summary [filename]           Summary report text file (CSV) file. Default is summary.txt.
  -report [filename]            Text output report file. Default is workload.txt.
  -rt <session_name [session_name ...]>   Real-time Event Trace Session data source.
  -config <filename>            Settings file containing command options.
  -y                            Answer yes to all questions without prompting.
  -f <XML|TXT|HTML>             Report format.

Examples:
  tracerpt logfile1.etl logfile2.etl -o -report
  tracerpt logfile.etl -o logdmp.csv -summary logdmp.txt -report logrpt.txt
  tracerpt -rt EVENT_SESSION_1 EVENT_SESSION_2 -o logfile.csv

 

Logman manages the "Performance Logs and Alerts" service for creating and managing Event Trace Session logs and
Performance logs.

Usage:
logman VERB <collection_name> [options]

Verbs:
  create <counter|trace>        Create a new collection.
  start                         Start an existing collection and set the begin time to manual.
  stop                          Stop an existing collection and set the end time to manual.
  delete                        Delete an existing collection.
  query [collection_name|providers]  Query collection properties. If no collection_name is given all collections are
                                listed. The keyword 'providers' will list all of the registered Event Trace providers.
  update                        Update an existing collection properties.

Parameters:
  <collection_name>             Name of the collection.

Options:
  -?                            Displays context sensitive help.
  -s <computer>                 Perform the command on specified remote system.
  -config <filename>            Settings file containing command options.
  -b <M/d/yyyy h:mm:ss[AM|PM]>  Begin the collection at specified time.
  -e <M/d/yyyy h:mm:ss[AM|PM]>  End the collection at specified time.
  -m <[start] [stop]>           Change to manual start or stop rather than a scheduled begin or end time.
  -[-]r                         Repeat the collection daily at the specified begin and end times.
  -o <path|dsn!log>             Path of the output log file or the DSN and log set name in a SQL database.
  -f <bin|bincirc|csv|tsv|sql>  Specifies the log format for the collection.
  -[-]a                         Append to an existing log file.
  -[-]v [nnnnnn|mmddhhmm]       Attach file versioning information to the end of the log name.
  -[-]rc <filename>             Run the command specified each time the log is closed.
  -[-]max <value>               Maximum log file size in MB or number of records for SQL logs.
  -[-]cnf [[[hh:]mm:]ss]        Create a new file when the specified time has elapsed or when the max size is exceeded.
  -c <path [path ...]>          Performance counters to collect.
  -cf <filename>                File listing performance counters to collect, one per line.
  -si <[[hh:]mm:]ss>            Sample interval for performance counter collections.
  -ln <logger_name>             Logger name for Event Trace Sessions.
  -[-]rt                        Run the Event Trace Session in real-time mode.
  -p <provider [flags [level]]> A single Event Trace provider to enable.
  -pf <filename>                File listing multiple Event Trace providers to enable.
  -[-]ul                        Run the Event Trace Session in user mode.
  -bs <value>                   Event Trace Session buffer size in kb.
  -ft <[[hh:]mm:]ss>            Event Trace Session flush timer.
  -nb <min max>                 Number of Event Trace Session buffers.
  -fd                           Flushes all the active buffers of an existing Event Trace Session to disk.
  -[-]u [user [password]]       User to Run As. Entering a * for the password produces a prompt for the password. The
                                password is not displayed when you type it at the password prompt.
  -rf <[[hh:]mm:]ss>            Run the collection for specified period of time.
  -y                            Answer yes to all questions without prompting.
  -ets                          Send commands to Event Trace Sessions directly without saving or scheduling.
  -mode <trace_mode [trace_mode ...]>   Event Trace Session logger mode.
  -ct <perf|system|cycle>       Event Trace Session clock type.

Note:
  Where [-] is listed, an extra - negates the option.
  For example --r turns off the -r option.

Examples:
  logman create counter perf_log -c "\Processor(_Total)\% Processor Time"
  logman create trace trace_log -nb 16 256 -bs 64 -o c:\logfile
  logman start perf_log
  logman update perf_log -si 10 -f csv -v mmddhhmm
  logman update trace_log -p "Windows Kernel Trace" (disk,net)

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Tue, 08 Apr 2008 10:11:36 GMT By: Gtrifonov
Зеленоглазое такси по немецки

http://www.pushnoy.ru/mp3/2007-2008/Pushnoy-ru_OOO_DuTaxi.mp3

***

Man kann nichts wollen,
Bloß sich erholen.
Und Abends Welle
Heilt mir die Seele.

Du Taxi mit den Augen grün,
Halt bitte nun, halt bitte nun.
Und fahre bitte mich dorthin,
Wo ich erwartet immer bin.

Dort fragt mich keiner,
Wo ich denn bleibe.
Ich zweifle dran nicht –
Dort man versteht mich.

Du Taxi mit den Augen grün,
Halt bitte nun, halt bitte nun.
Und fahre bitte mich dorthin,
Wo ich erwartet immer bin.

***

Текст песни

Вот и осталось лишь снять усталость
И этот вечер мне душу лечит
Зеленоглазое такси притормози притормози
И отвези меня туда
Где будут рады мне всегда всегда
Там и не спросят где меня носит
Там я-то знаю все понимают
Зеленоглазое такси притормози притормози
И отвези меня туда
Где будут рады мне всегда всегда
Зеленоглазое такси притормози притормози
И отвези меня туда
Где будут рады мне всегда всегда
Зеленоглазое такси притормози притормози
И отвези меня туда
Где будут рады мне всегда всегда

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Tue, 22 Jan 2008 10:50:39 GMT By: Gtrifonov
Elephants Dream - open source project in Animation

It is amazing what can be done as part of open source community effort.  1 year of work which was 50% financed by community and 50% by European funds. Awesome project.



How they made this movie.

Part 1 - http://www.youtube.com/watch?v=Tyai_Y3woc0
Part 2 - http://www.youtube.com/watch?v=v5BnWhS0oVM
Part 3 - http://www.youtube.com/watch?v=_xRJ_vqmkuk
Part 4 - http://www.youtube.com/watch?v=27ne_V8gibM

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Mon, 21 Jan 2008 19:24:16 GMT By: Gtrifonov
Microsoft Volta and its logo - Nauman Leghari's Blog

 

"Is it just me or the following logo of just released Volta looks familiar?

Filed under: .NET, Microsoft, Volta

Microsoft Volta and its logo - Nauman Leghari's Blog "

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Thu, 06 Dec 2007 17:53:28 GMT By: Gtrifonov
Visual Studio 2008 release

 

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Tue, 20 Nov 2007 10:21:52 GMT By: Gtrifonov
Seattle - Annual Russian bazaar.

Annually St. Nicholas Russian Orthodox Cathedral organize Russian Bazaar. Join and  enjoy Russian cuisine, find new friends and explore life of Russian community in Seattle.

Share this post: email it! | bookmark it! | digg it! | kick it! | live it!
Posted: Thu, 25 Oct 2007 13:40:34 GMT By: Gtrifonov