<2005 January>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

On this page...

Search

Links

Member of...


ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories

Microsoft

Blogroll

Deutsche Resourcen

Management

Sign In
 

#  Monday, 03 January 2005

I'm not a CS student nor trying to give advice to CS students, but Joel's article Advice for Computer Science College Students has some bits and pieces that are close to my heart. The section I am refering to here is Learn how to write before graduating. A quote is in order:

"The difference between a tolerable programmer and a great programmer is not how many programming languages they know, and it's not whether they prefer Python or Java. It's whether they can communicate their ideas. By persuading other people, they get leverage. By writing clear comments and technical specs, they let other programmers understand their code, which means other programmers can use and work with their code instead of rewriting it. Absent this, their code is worthless. By writing clear technical documentation for end users, they allow people to figure out what their code is supposed to do, which is the only way those users can see the value in their code. There's a lot of wonderful, useful code buried on sourceforge somewhere that nobody uses because it was created by programmers who don't write very well (or don't write at all), and so nobody knows what they've done and their brilliant code languishes."

I am inclined to say "Amen!"

Categories: this
Monday, 03 January 2005 15:55:33 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 

Following is an installation recipe for Subversion (a free and very powerful source code control system) plus additional files for a post commit hook (so you know immediately when someone else checked something in; currently implemented as a batch file) and a backup script (so there are no excuses for not backing up your installation!). Assumptions for this recipe:

  • We are creating a new repository named Corsavy
  • c:\repositories is your repository root
  • Backups will be located in d:\subversionbackups

Now for the recipe:

1) Install Subversion (WIN32 download). Modify the PATH environment variable so that it contains the path to your Subversion installation (usually c:\Program Files\Subversion\bin).

2) Create a repository

mkdir c:\repositories
svnadmin create c:\repositories\corsavy

Details can be found here.

3) Edit svnserve.conf (do not forget to uncomment [General]). Details see previous link, however, svnserve.conf does come with plenty of instructions itself.

4) Install Subversion as a service using the SVN Service Wrapper (Note: you have to place it in the bin directory where svnserve.exe is located)

SVNService -install -d -r c:\repositories

5) Optional: a commit hook, post-commit.bat

Put it into c:\repositories\corsavy\hooks, it will be picked up automatically

SET REPOS=%1
SET REV=%2

SET LOG_FILE=%TEMP%.\svnfileR-%REV%
SET LOG_FILE1=%TEMP%.\svnfileR1-%REV%
SET LOG_FILE2=%TEMP%.\svnfileR2-%REV%
SET AUT_FILE=%TEMP%.\svnfileA-%REV%

svnlook info -r %REV% %REPOS%>%LOG_FILE1%
svnlook changed -r %REV% %REPOS%>%LOG_FILE2%
copy %LOG_FILE1%+spacer.txt+%LOG_FILE2%+spacer.txt+%LOG_FILE%

svnlook author -r %REV% %REPOS%>%AUT_FILE%

REM SET THE AUTHOR FROM THE FILE.
FOR /F %%A IN (%AUT_FILE%) DO SET AUTHOR=%%A

blat "%LOG_FILE%" -to "toaddr" -f "fromaddr" -server localhost -s "[svn-corsavy] rev %REV%, %AUTHOR%"

DEL %LOG_FILE%
DEL %LOG_FILE1%
DEL %LOG_FILE2%
DEL %AUT_FILE%

Note that I did remove toaddr and fromaddr in this script (put in the ones you'd like to use instead), and you need a file named spacer.txt (mine simply contains four newlines). For mailing out the change log, blat is used (Note: the line with blat must not wrap). I placed blat into the bin folder of my Subversion installation, so it is automatically in the search path.

6) Optional: backup, a VBS script

Set objWsh = WScript.CreateObject("WScript.Shell")

strCmdLine = "cmd /c rmdir d:\subversionbackups\current /s /q"
nRetVal = objWsh.Run(strCmdLine, 1, True)

strCmdLine = "cmd /c mkdir d:\subversionbackups\current"
nRetVal = objWsh.Run(strCmdLine, 1, True)

strCmdLine = "svnadmin hotcopy c:\repositories\corsavy d:\subversionbackups\current --clean-logs"
WScript.Echo strCmdLine
nRetVal = objWsh.Run(strCmdLine, 1, True)

strFilename = """d:\subversionbackups\"
strFilename = strFilename &  Year(Date) & Month(Date) & Day(Date) & ".zip"""
strCmdLine = "zip -r " & strFilename & " ""d:\subversionbackups\current\*.*"""
WScript.Echo strCmdLine
nRetVal = objWsh.Run(strCmdLine, 1, True)

The Zip component in use is Info-ZIP, which is free. The VBS file is run from a scheduled task each night.

That concludes the recipe for installing Subversion - well, almost: the port used by svnserve is 3690 (TCP as well as UDP), so you might need to change the IPSec policy of your server to allow those incoming ports. Same thing client-side, but this time outgoing.

Monday, 03 January 2005 08:22:37 (W. Europe Standard Time, UTC+01:00)  #    Comments [1]

 



#  Tuesday, 28 December 2004

My "USB BOfH Stick" now has a few new additions - Portable Firefox and Portable Thunderbird (Portable Sunbird didn't make it). Those are USB stick-optimized versions of the respective desktop versions, especially well-received on my end is the optimization to extend the stick's live (Flash memory does indeed have a limited life when it comes to the number of r/w operations).

Categories: Administration | this
Tuesday, 28 December 2004 14:46:37 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



#  Monday, 27 December 2004

This can be pretty useful to get an idea which open source projects are available, and today I did it (again) for C#. Of course you will see the usual suspects (NUnit, NAnt, RSS Bandit, NHibernate and a lot of others), as well as ones you haven't yet heard of, such as dotLucene (I knew of the Java one) or Report.NET. And on occasion you stumble upon something really wacky, such as Pr0nspider, which is a multithreaded sample for the WebSpider library... this sample definitely drives home the concept!

Categories: .NET | C# | Use the source Luke
Monday, 27 December 2004 09:29:19 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 

The article U.S. leads the dirty dozen spammers shows that the US has a comfortable lead when it comes to sending out spam. This indigestible rendition of Hormel's rightly famous SPAM is my favorite least favorite topic because I manage two mail servers, one of which serves mailing lists for the German .NET community. The time spent administering (because of spam) could be better spent helping my colleagues on the lists... kismet.

Categories: Newsbites | this
Monday, 27 December 2004 08:07:50 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



#  Thursday, 23 December 2004

This is the most current version of the Team Foundation Installation Guide for the December 2004 CTP release of Visual Studio Team System. It contains any changes that were made to the guide since the public release of the December 2004 CTP release of Visual Studio Team System.

Categories: .NET | 2 Ohhhh | Team System | Visual Studio
Thursday, 23 December 2004 08:36:04 (W. Europe Standard Time, UTC+01:00)  #    Comments [1]

 



#  Monday, 20 December 2004

I previewed the search feature last week with a couple of screenshots. Today I did what I promised to do (review the new code thoroughly), and now I'd like to invite you to download the latest version of the registry editor (0.8.2 dated 12/20/2004).

Note on the search feature: it is pretty intuitive in Tree View mode which node is the search root. However, in List View mode, things are inferred in a way that I hope is intuitive enough: when no subkey is selected, then the search root is the current key whose subkeys / values are currently displayed.

Also of note: deployment to the SmartPhone is now easier, please see the PDF for details (I am now using RapiDeploy).

Monday, 20 December 2004 12:13:17 (W. Europe Standard Time, UTC+01:00)  #    Comments [3]

 



#  Thursday, 16 December 2004

I just finished the search feature, which means I haven't had the time for thorough testing and code review (no download today, next week). But I have a few screenshots for you to whet your appetite.

Go to the key where you want to start your search (tree view or list view doesn't matter even if it is shown here in tree view):

Choose Search (now option #1) from the menu:

This brings up the search form. Nothing really stellar, but it does the trick. By clicking Search, you kick off the search thread (yes, this thingie is multithreaded!):

The search results are shown in a listview of its own right, with values and keys mixed. Note that there is an infobox at the bottom which tells you where it found the key / value:

Now for the cool stuff - clicking on the key takes you to the listview you already know:

When you now do Menu / Search again, you are back at the search results:

Guess what - clicking on a value opens the value editor. I think I got the user interface right on this one.

Thursday, 16 December 2004 16:21:11 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 

The Mobile and Embedded Application Developer Center has a nice Developer Resource Kits page. Especially interesting are the WeRock247.NET & Football247.NET Training DVDs, of which you can download the WeRock247.NET SmartClient Training DVD (Football 247.NET is order only).

For me, the most interesting parts are (as in I have the DVDs) the bonus sessions that are included on the DVDs. I wanted to blog about those Learn247 projects for a long time, but kept forgetting about it - now the Resource Kits page reminded me once again, for good this time.

Thursday, 16 December 2004 08:05:47 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



#  Wednesday, 15 December 2004

RapiDeploy is a command-line that can be used to deploy files to devices connected via ActiveSync (this includes the Pocket PC 2003 Emulator). In addition, if you are deploying CAB files, you can use the optional /install switch to install the CAB's contents. Download

Will be included in the next drop of the Registry Editor for easier installation.

Wednesday, 15 December 2004 12:58:01 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



© Copyright 2017 Christoph Wille

newtelligence dasBlog 2.3.9074.18820
Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

 
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.