Enginerds

28/01/2009

We are moving again…

Filed under: Uncategorized — Mart Leet @ 12:09

Sorry for this, but wordpress default configuration and theme-plugin collection is quite poor. So we took our time (actually Kris did this) and intall wordpress to our own server. So you can find us here

Sorry for gReader mesh… but to subscribe our feed – it’s worth it!

And we got our 4th member Rainer too.

And still waiting for Marti’s first so-so content-rich blog post

23/01/2009

One app per computer

Filed under: Uncategorized — Mart Leet @ 16:34

Just one little code snippet for bookmarking. This is snipper for console application. With Windows app you could use Application.Exit(). I could do some machine process name comparing, but that’s gives me only current user processes.

static void Main()
		{
			Mutex instanceLock = new Mutex(false, "My.Unique.Name.What.Should.Be.Quid");
			if (instanceLock.WaitOne(0, false))
			{
				try
				{
					var listener = new Listener();
					listener.Start();
				}
				finally
				{
					instanceLock.ReleaseMutex();
				}
			}
			else
			{
				Environment.Exit(5);
			}
		}

And this is my first wordpress post (in their editor, because my live writer is one big wuss). Congratulations to me!

22/01/2009

Mounting ISO files under Windows 7

Filed under: Windows 7 — kris @ 20:22

 

I have always used Daemon Tools for mounting ISO files but it seems that it isn’t compatible with new Windows 7. Fortunately I managed to find alternative software that does the same and is simple to use. It is called Pismo File Mount.

Btw if you didn’t know, burning an ISO to a CD/DVD is built in feature in Windows 7 – Just right click on an ISO file, select Open With and Windows Disc Image Burner. How cool is that!

Windows7ISO_burn.jpg

21/01/2009

How to reset Qtek 9100?

Filed under: Uncategorized — kris @ 21:14

I had been quite some time time since I turned on my Qtek 9100, since I bought new phone quite some time now. Anyway – I turned it in and … – I had forgotten my Qtek 9100 password.

Fortunately there is alternative how to reset your phone if you have forgotten password. But in strange way the guidelines in manual didn’t worked, like all suggestions in google, such as in this site:

HTC Wizard – Cingular 8125 – i-mate K-JAM – T-Mobile MDA
Hold the Comm manager button and the Voice Command button, the press the reset button once. Hold the Comm Manager and Voice Command buttons until there is a screen asking you if you want to clear all data. To reset, press the green send key.

Another is from original manual:
After pressing the reset button with the stylus you must CONTINUE TO HOLD the Comm Manager and Voice Command buttons until you see a message asking you to press the send button (the green phone) to perform a hard reset. Following this, wait patiently and the K-JAM should eventually boot into Windows Mobile.

With little time I still managed to reset my Qtek 9100 and this is little guideline for all others, who have the same problem:

  1. Turn on your phone
  2. Press both buttons from side
  3. While pressing buttons quickly press ‘reset’
  4. wait for text to appear
  5. push green button, hold it
  6. release other buttons except green one

The Worl’d’s worst venture capitalist

Filed under: this-made-me-laugh — kris @ 20:30

 

Ha-ha :D Funniest Dilbert recently

Dilbert.com

20/01/2009

TED Talks Ze Frank: What’s so funny about the Web?

Filed under: this-made-me-laugh — kris @ 22:56

It is strange that despite the fact that I have looked TED talks for quite some time now there are still some talks that I haven’t seen. For example this one from Aug 2006. Funny and eccentric as it should :D

Performer and web toymaker Ze Frank delivers a hilarious nerd core standup routine, then tells us what he’s seriously passionate about: helping people create and interact using simple, addictive web tools.

Source

11/01/2009

Business object filtering

Filed under: Uncategorized — Mart Leet @ 12:59

In Domain Model there are usually quite huge entity trees and sometimes some filtering is needed.

I found myself writing following method:

public virtual HorseStatistics GetStatistics(int year)
{
    foreach (HorseStatistics statistic in this.HorseStatistics)
    {
        if (statistic.Year.Equals(year))
            return statistic;
    }
    return null;
}

This method is in object Horse and contains list of HorseStatistics with unique property Year.

With some help from .NET 3.5 I have this:

horse.HorseStatistics.Find(x => x.Year == 1999);

Just think how my first method look like if I want to do this:

horse.HorseStatistics.Find(x => x.Year == 1999 && x.FinishedAsFirst == 3 && x.FinishedAsThird == 5);

Actually there are some component based problems with this (I use nHibernate and so my List must be IList), but as seen in source article performance improvement is amazing.

That is a 289200% improvement in performance.

Source.Equals(“realspeedyobjectfiltering”);

String vs. System.String

Filed under: Uncategorized — Mart Leet @ 11:10

Lately I was asked about difference with string and System.String and the right answer is that there’s no differences at all:

What is more efficient in respect of memory usage and performance: The use of string or the use of System.String?

The correct answer is It doesn’t matter which one you take, they perform equally. string is a synonym for System.String. Therefore it does not matter if you take string or System.String.

Source.Equals(“CShapDotNETSecrets”);

Little more about string:

A string is a sequential collection of Unicode characters that is used to represent text. A String object is a sequential collection of System..::.Char objects that represent a string. The value of the String object is the content of the sequential collection, and that value is immutable.

A String object is called immutable (read-only) because its value cannot be modified once it has been created. Methods that appear to modify a String object actually return a new String object that contains the modification. If it is necessary to modify the actual contents of a string-like object, use the System.Text..::.StringBuilder class.

Source.Equals(“MSDN”);

08/01/2009

Meetings – The Practical Alternative to Work

Filed under: this-made-me-laugh — kris @ 19:52

I had forgot to post it here, but since it’s funny as hell … :D

image

06/01/2009

Messing around with various ORMs

Filed under: Bookmarking — Mart Leet @ 22:50

I recently had a quick muck around with a few .NET ORM tools. I took a basic, contrived scenario and tried to implement the same operations using the tools. Here is a quick index:

The examples all go through same steps: the basic configuration required to get going, inserting a couple of records, and then getting some data back out with some simple queries, including traversing a many-to-many relationship.

Next Page »

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.