Archive

Archive for the ‘Private’ Category

NHibernate presentations at DNUG Bern

September 2nd, 2010 Patrick No comments

dnugbe

I hold in August two presentations at the .Net User Group Bern together with René Leupold.  In both presentations the topic was object relational mapping in the .Net world. So we showed Microsoft Entity Framework 4.0 and NHibernate. My part was NHibernate and Rene showed EF.

In the first presentation which was on 16th August 2010, we presented the following stuff:

  • Introduction into ORM
  • Theory (ORM impedance mismatch, persistence ignorance and ORM isn’t a silver bullet)
  • Approaches how to map entities (top down, middle out, bottom up and meet in the middle)
  • Introduction into Entity framework (history, vote of no confidence, supported approaches)
  • Short demo of Entity framework (configuration, hello world sample)
  • Introduction into NHibernate (history, multiple options to do things, supported approaches)
  • Short demo of NHibernate (configuration, hello world sample)
  • Mappings and short demos of them (1:m, m:n, 1:1, self references, 1 class and multiple tables, 1 table and multiple classes, inheritance with TPH, TPT and TPC)

You can find the slides here.

In the second presentation which was on 23th August 2010, we presented the following topics:

  • Queries (I showed HQL, Criteria API with QBC and QBE, NativeSQL, Named Queries and QueryOver in NHibernate 3.0)
  • Lazy and Eager Loading
  • Debugging and Profiling (also with NHProf from Ayende)
  • Optimizations

We had more stuff for the second session like Concurrency, Auditing, Validation and Caching, but we hadn’t the time to show all these things. You can find the slides from the second session here.

The samples of both sessions are also available. If you use them commercially or for other public activities, please mention the authors (NHibernate: Patrick Weibel, EF: René Leupold). The samples for NHibernate could be found here and those for EF you find here.

  • Share/Bookmark
Categories: .Net, Private Tags:

Subversion daemon Init script

July 21st, 2010 Patrick No comments

Unfortunately I didn’t find a simple good daemon Init script for a debian Linux server where I want to start the subversion server svnserve automatically on start-up. So after a little bit searching on the internet and adapting the found resources (here or here), I got my Init script svnserve under /etc/init.d:

#!/bin/sh
#
# start/stop subversion daemon.
EXECUTABLE=/usr/bin/svnserve

# Test exist:ence of the executable
test -f $EXECUTABLE || exit 0

# Command line options for starting the service
OPTIONS='-d -r /var/svn'

. /lib/lsb/init-functions

case $1 in
start)
log_daemon_msg "Starting subversion daemon: $EXECUTABLE $OPTIONS"
start-stop-daemon -vo -x $EXECUTABLE -S -- $OPTIONS
log_end_msg $?
;;

stop)
log_daemon_msg "Stopping subversion daemon: $EXECUTABLE $OPTIONS"
start-stop-daemon -K -qo -x $EXECUTABLE
log_end_msg $?
;;

force-reload)
$0 restart
;;

restart)
$0 stop
$0 start
;;

*)
log_daemon_msg "Usage: /etc/init.d/svnserve {start|stop|restart}"
exit 1
;;
esac

exit 0

After you created that script (be sure that the file is executable), you have to add the script to the boot sequence:

update-rc.d svnserve defaults

If you see errors or improvements, feel free to add a comment.

  • Share/Bookmark
Categories: Private Tags:

First developer meeting in Bern

January 21st, 2010 Patrick No comments

Today at the Fachhochschule happened the first developer meeting in Bern. The first tasks were the presentation of each participant and to collect the interests to discuss.

entwicklertreffen

After that Florian Kammermann presented his thoughts about software development. He’s highly interested in business oriented software developing. That means for him, that you have to be agile and follow the principles like DRY, separation of concerns, etc.

At the end of his presentation he showed his favoured design patterns strategy pattern and state pattern. He showed the patterns by java examples.

  • Share/Bookmark

WordPress and SyntaxHighlighter

January 8th, 2010 Patrick No comments

I often post code in my blog posts, so the SyntaxHighlighter by is very useful. But there are several plug-ins for WordPress, the question is which one is the most comfortable and has the most configuration options:

Offline blogging tool support

When I post technical blog posts with code in it, then I prefer the way over an offline blogging tool. Currently I use for this use case Windows Live Writer, also because it is free. But when you use a such tool, you should have good support for writing code and support for the SyntaxHighlighter. For Windows Live Writer there exists several plug-ins for the SyntaxHighlighter:

Unfortunately some of those plug-ins aren’t very well tested, but to add code to a blog posts they do their job.

Conclusion

After testing the several plug-ins for WordPress and Windows Live Writer, I prefer currently the following plug-ins:

  • Share/Bookmark
Categories: Best practices, Private Tags:

Useful Firefox Add-ons

January 1st, 2010 Patrick 4 comments

After several years of using Firefox, I’ve got my favourites under the available Add-ons for my preferred Browser Firefox:

Tabs

Links

Language

Downloads

Development

I try to keep the number of the installed Add-ons small to avoid an “Add-ons-hell”. Are there any other indispensable useful Add-ons for Firefox?

  • Share/Bookmark
Categories: Best practices, Private Tags: