Flo rian's Profile

Member since Mar 20, 2008, follows 0 people, 0 public groups, 234 public bookmarks (242 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • DDD, NHibernate, and Project Structure / Naming - Stack Overflow on 2009-10-18
      • A few parts missing seem to be a central location for services needed throughout the solution and test projects. I usually have something like this:



        • Sample.Core - services and code that need to be used across the application
        • Sample.Data - domain classes and repository interfaces
        • Sample.Data.NHibernate - mapping files, fluent config, etc. and repository implementations, basically anything data mapping layer specific
        • Sample.Services - service implementations and interfaces
        • Sample.Web - web application
        • Tests\Sample.Core.Tests
        • Tests\Sample.Data.NHibernate.Tests
        • etc...


        Of course, the tree will get more complex depending on the project. As for discussions, check out the Onion Architecture. You can also check out the sample projects on Domain-Driven Design and see what you can take from those.

  • Nikon D5000 – A different kind of review | Terry White’s Tech Blog on 2009-10-16
    • UPDATE: Other Mac users seem to be using MPEG Streamclip to convert the D5000/D90 footage to 720p 24fps HDV .MOV files and bringing them in that way. I just tried it and it worked great. It did make my clip about 50% larger than the original, but the conversion was fast and the quality looked to be the same as the original.  My original 1 minute 3 second clip (.AVI) file was 105.3MB. The Handbrake H.264 MP4 was 11.7MB and the MPEG Streamclip HDV .MOV was 145.2MB. So if you multiply these numbers by 5 (each clip you record is limited to 5 minutes), then the native file coming out of the camera will be roughly 526.5MB and the Streamclip HDV .MOV file will be roughly 726MB. Keeping in mind that compression will vary based on the content being shot and that my clip was 3 seconds longer than 1 minute.
    • UPDATE 2: Found an even easier solution, although it’s not FREE. Using QuickTime Pro ($29.99), which I already have. Open the Nikon D5000/D90 .AVI clip in the QuickTime and player and simply hit Save. This will save out a .MOV file (no conversion), which imports right into Premier Pro on the Mac. Then drop it into an HDV 720P 24fps Sequence and edit away. The resulting .MOV file is the exact same size as the original .AVI.
  • The Repository Pattern on 2009-10-15
    • is finished.



      But the above implementation (although working) has an important flaw and thus can hardly be used in a real application! It's the fact that the repository uses a different session instance for each operation. In a real application often several operations have to be executed inside a single transaction and thus inside a single session (the reason is that a transaction cannot span multiple sessions - at least when not using distributed transactions).



      The Unit of Work to the rescue



      We can resolve the above dilemma by applying the Unit of Work (UoW) pattern (for a profound discussion of this patterns please refer to this article)! The UoW manages a session for us. I can then refactor my implementation of the product repository as follows

  • SubSonic 3.0 Preview 2 : Rob Conery on 2009-01-17
    • db.Queue(from p in db.Products where p.CategoryID == 5 select p);
      db.Queue(from p in db.Products where p.CategoryID == 7 select p);
      db.Queue(from p in db.Products where p.CategoryID == 9 select p);

      List<Products> result1 = null;
      List<Products> result2 = null;
      List<Products> result3 = null;


      using (IDataReader rdr = qry.ExecuteReader()) {
      result1 = rdr.ToList<Products>();

      if (rdr.NextResult())
      result2 = rdr.ToList<Products>();

      if (rdr.NextResult())
      result3 = rdr.ToList<Products>();

      }
    • var db = new DB();
  • Crowne Plaza Hotel London Ealing (London, UK) - Hotel Reviews - TripAdvisor on 2008-12-30
    • Crowne Plaza Hotel London Ealing
  • Deine Benutzerkonto-Einstellungen – Last.fm on 2008-12-02
  • ARD Mediathek on 2008-11-19
  • Html Agility Pack - Home on 2008-11-13
  • How To: Write a Web Crawler in C# - The Coding Humanist on 2008-11-12
  • Language Jobs, Language Recruitment - Top Language Jobs on 2008-11-12

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo