Click here to Skip to main content
12,354,543 members (61,634 online)

Comments by Espen Harlinn (Top 200 by date)

Espen Harlinn 23-Mar-16 6:36am View
   
Nice example - well done :-)
Espen Harlinn 19-Mar-16 8:04am View
   
Thank you :-)
Espen Harlinn 24-Jul-15 9:26am View
   
Thanks,

Good to see that you're still here :-)
Espen Harlinn 22-Jul-15 15:22pm View
   
:-)
Espen Harlinn 7-Apr-15 14:38pm View
   
Yes, it certainly is ...
Espen Harlinn 3-Nov-14 15:49pm View
   
Better? certainly didn't deserve a 1 ...
Espen Harlinn 3-Nov-14 15:38pm View
   
5'ed, those links provides a fair intro to the topic :-)
Espen Harlinn 3-Nov-14 2:48am View
   
Thank you, Sergey :-)
Espen Harlinn 2-Nov-14 17:56pm View
   
Fair enough :-)
Espen Harlinn 1-Oct-14 2:55am View
   
Thanks :-)

Trekking is a brilliant way to spend your holidays - this year we went trekking into the mountains surrounding Voss here in Norway.

I haven't seen that movie, and I've never visited a country fair like the one you're describing - and it sounds like something we would enjoy though.
Espen Harlinn 30-Sep-14 18:12pm View
   
>> Ah... Congratulations... I guess
No need to guess: http://www.powel.com

>> Do you mean you're supposed to move?
Yes - we will be moving to Trondheim.

Powel is a spin-off from the Norwegian Electric Power Research Institute (EFI), and used to be a part of the SINTEF Group, which is, by far, the largest research organization here in Norway.

>> but they give me about a month
Good for you :-)

>> due to important reason: next agricultural fair
Now I'm getting curious ...
Espen Harlinn 30-Sep-14 17:28pm View
   
Just had a much needed 3 week holiday, and this is my last day at Goodtech :-)

Tomorrow will be my first official day as chief architect at Powel - I've been working with them for more than a year now - and it's been a great experience. So now we're looking for a decent place to live in Trondheim.

I sincerely hope all is well with you and that you're having a good time too.
Espen Harlinn 30-Sep-14 17:07pm View
   
I see little Bobby is still doing well ...
BTW: a 5 :-)
Espen Harlinn 10-Jul-14 12:04pm View
   
5'ed :-)
Espen Harlinn 3-Jul-14 18:47pm View
   
5 :-)
Espen Harlinn 3-Jul-14 18:47pm View
   
5 :-)
Espen Harlinn 3-Jul-14 18:45pm View
   
5'ed!
Espen Harlinn 18-Jun-14 19:18pm View
   
Consider using C++/CLI to create a .Net integration layer for use with the commercial application's SDK. Then you'll be free to use any CLR language you want to create the actual UI.
Espen Harlinn 11-Jun-14 11:45am View
   
5'ed - for the second code sample, as I guess the byte[] cast during the read from the db is just a bug, and that the file is located outside the DB :-)
Espen Harlinn 11-Jun-14 11:35am View
   
Good points :-)
Espen Harlinn 11-Jun-14 11:34am View
   
5'ed!
Espen Harlinn 5-May-14 5:19am View
   
Nope - now where did I stash that pile of money?
Espen Harlinn 5-May-14 5:10am View
   
I might have missed it - but I kind of doubt that. I am, after all, not in the music business ... nor have I made any earth shattering scientific discoveries ...
Espen Harlinn 5-May-14 4:52am View
   
sir?? Haven't been knighted quite yet :laugh:
Espen Harlinn 5-May-14 4:34am View
   
Right :-)
Espen Harlinn 29-Apr-14 18:10pm View
   
I'm now working for a company, Powel, in Trondheim - acquiring some frequent flyer miles. It's a really nice company - lots of decent people.

I will be joining them on a permanent basis as chief architect this autumn - so eventually we will be moving there.

I enjoyed your PoIP article - well done - I assume you've allready implemented this for smartphones :)
Espen Harlinn 24-Apr-14 19:02pm View
   
Have a look at: http://msdn.microsoft.com/en-us/library/aa381669(v=vs.85).aspx
Espen Harlinn 24-Apr-14 12:13pm View
   
I just submitted a similar request ...

BTW: How are you these days?
Espen Harlinn 24-Apr-14 12:05pm View
   
Espen Harlinn 24-Apr-14 11:58am View
   
Found it :-)
Espen Harlinn 24-Apr-14 11:55am View
   
:thumbsup: Where is the voting button when you need it?
Espen Harlinn 26-Mar-14 17:56pm View
   
5'ed :-)
Espen Harlinn 26-Mar-14 17:55pm View
   
As good as it gets, OP only need to track the changes :-)
Espen Harlinn 18-Feb-14 8:22am View
   
Thank you :-)
Espen Harlinn 6-Jan-14 9:23am View
   
It's an interesting problem, I may look into it next weekend - I'll proably not have access to a computer running Delphi until then ...
Espen Harlinn 6-Jan-14 8:12am View
   
you need to add a
using System.DirectoryServices.AccountManagement;
statement to your file - and possibly a reference to the System.DirectoryServices.AccountManagement assembly.
Espen Harlinn 5-Jan-14 12:04pm View
   
5'ed!
Espen Harlinn 5-Jan-14 12:04pm View
   
5'ed :-)
Espen Harlinn 5-Jan-14 11:57am View
   
I guess so, at least it shows how to access the web camera.
Espen Harlinn 5-Jan-14 11:38am View
   
Nice :-)
Espen Harlinn 5-Jan-14 11:27am View
   
Nice link :-)
Espen Harlinn 5-Jan-14 11:26am View
   
Nice links :-)
Espen Harlinn 5-Jan-14 11:25am View
   
5'ed!
Espen Harlinn 3-Jan-14 18:14pm View
   
Hopefully, I'll try to put less work into the code and concentrate on improving any articles I may write ...
Espen Harlinn 2-Jan-14 17:28pm View
   
I guess I actually put more effort into CP in 2013 than I've done before ...
Espen Harlinn 2-Jan-14 10:09am View
   
And my congratulations for yet another MVP :-)
Espen Harlinn 2-Jan-14 9:53am View
   
Good points :)
Espen Harlinn 2-Jan-14 9:51am View
   
And my congratulations for yet another MVP :)
Espen Harlinn 2-Jan-14 9:31am View
   
5'ed!
Espen Harlinn 31-Dec-13 6:57am View
   
5'ed!
Espen Harlinn 20-Nov-13 16:25pm View
   
5'ed!
Espen Harlinn 20-Nov-13 16:21pm View
   
5'ed! It should be helpful, but you have to visit a few links before getting to the screencast
Espen Harlinn 6-Nov-13 15:34pm View
   
Thanks :-)
Espen Harlinn 6-Nov-13 15:33pm View
   
Thank you, Sergey :-)
Espen Harlinn 6-Nov-13 15:32pm View
   
Certainly 5'ed! :-)
Espen Harlinn 6-Nov-13 15:31pm View
   
Which is why I mentioned that you have a good point :-)
Now, with regular laser or inkjet priners you sometimes run into problems with anti-aliasing, and every once in a while you print out a barcode that can't be read back by the scanner. A professional barcode printer reduces that problem significantly, and for many applications an unreadable barcode every once in a while isn't that much of a problem - but when it is, you need to use a real barcode printer.
Espen Harlinn 5-Nov-13 16:25pm View
   
5'ed! Good of you to point out that we now have a good api for random number generation as part of the standard library ;)
Espen Harlinn 5-Nov-13 16:14pm View
   
5'ed! I liked Jessn short, and to the point, article on how to leverage the crypto API ;)
Espen Harlinn 23-Oct-13 9:37am View
   
I don't think that you run into that limit using AFS - it has, reportedly, been used on quite large installations - involving a very large number of computers, many of them running non-server versions of Windows.

>> not even touching the possibility of running
>> workstations out of disk space by accident
Now, that's an entirely different problem ;)

Espen Harlinn 22-Oct-13 17:35pm View
   
Thanks Sergey - OpenAFS is a gem, and it's highly useful when you have an environment that includes a plethora of operating systems.
Espen Harlinn 22-Oct-13 17:25pm View
   
5'ed! DFS is certainly an option - you will probably like to have a look at: OpenAFS for Windows, as it's not as limited as DFS when used with the non-server versions of Windows.
Espen Harlinn 22-Oct-13 17:07pm View
   
That's one area where AFS shines ;)
Espen Harlinn 22-Oct-13 17:03pm View
   
5'ed!
Espen Harlinn 22-Oct-13 17:01pm View
   
5'ed!
Espen Harlinn 10-Sep-13 14:35pm View
   
Pseudo code generally doesn't teach you much - in a way, it's often, a trap that fools you into thinking that something is easier than it actually is.

By studying real applications you get a feel for the amount of work that's required when you also have to implement the stuff that has to be part of most applications, even if it wouldn't usually show up as part of any pseudo code that only highlights a few major points related to the workings of the application.
Espen Harlinn 10-Sep-13 13:45pm View
   
Thank you, Abhinav :-)
Espen Harlinn 10-Sep-13 5:46am View
   
True, unless he installed one for development purposes ...
Espen Harlinn 9-Sep-13 16:26pm View
   
Yes, the exception is a fair indication that the cast is impossible ...
Espen Harlinn 4-Sep-13 17:57pm View
   
That would work well for Windows based devices ;)
Espen Harlinn 1-Aug-13 20:37pm View
   
Seems we agree ;-)
Espen Harlinn 1-Aug-13 20:37pm View
   
Good points :-D
Espen Harlinn 1-Aug-13 20:36pm View
   
Thanks Ron :-D
Espen Harlinn 31-Jul-13 17:23pm View
   
Thank you, Jörgen - and yes you're quite right ;-)
Espen Harlinn 25-Jul-13 19:16pm View
   
5'ed!
Espen Harlinn 25-Jul-13 19:12pm View
   
;-D
Espen Harlinn 19-Jul-13 20:07pm View
   
5'ed!
Espen Harlinn 19-Jul-13 19:38pm View
   
5'ed!
Espen Harlinn 19-Jul-13 19:37pm View
   
5'ed!
Espen Harlinn 19-Jul-13 19:35pm View
   
Certainly useful :-)
Espen Harlinn 19-Jul-13 19:33pm View
   
5'ed!
Espen Harlinn 17-Jul-13 8:40am View
   
5'ed!
Espen Harlinn 17-Jul-13 8:40am View
   
Nice set of links :-D
Espen Harlinn 17-Jul-13 8:38am View
   
Thank you, Maciej :-D
Espen Harlinn 17-Jul-13 8:34am View
   
and a brain ;)
Espen Harlinn 10-Jul-13 18:04pm View
   
Well answered :-D
Espen Harlinn 10-Jul-13 16:51pm View
   
Thank you, Sergey :-D
Espen Harlinn 10-Jul-13 16:50pm View
   
Thank you :-D
Espen Harlinn 10-Jul-13 16:49pm View
   
Well answered :-D
Espen Harlinn 10-Jul-13 16:47pm View
   
Nice links - 5'ed! :-D
Espen Harlinn 10-Jul-13 16:40pm View
   
Well answered :-D
Espen Harlinn 2-Jul-13 10:49am View
   
Nice links :-D
Espen Harlinn 2-Jul-13 10:48am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:43am View
   
Fair advice :-D
Espen Harlinn 2-Jul-13 10:42am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:42am View
   
Good points ...
Espen Harlinn 2-Jul-13 10:41am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:40am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:40am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:40am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:39am View
   
5'ed!
Espen Harlinn 2-Jul-13 10:39am View
   
Nice links, you definitely have some to pick from at this point :-D
Espen Harlinn 2-Jul-13 5:35am View
   
Thank you, Sergey :-D
Espen Harlinn 2-Jul-13 5:31am View
   
Thank you, Sergey :-D
Espen Harlinn 30-Jun-13 18:42pm View
   
Indeed, Mehdis work on RaptorDB and hOOt is pretty good.
Espen Harlinn 30-Jun-13 17:49pm View
   
5'ed
Espen Harlinn 30-Jun-13 17:49pm View
   
Fair enough
Espen Harlinn 30-Jun-13 17:47pm View
   
Well answered :-D
Espen Harlinn 30-Jun-13 17:46pm View
   
Well answered :-D
Espen Harlinn 30-Jun-13 17:45pm View
   
Nice set of links :-D
Espen Harlinn 30-Jun-13 17:44pm View
   
Thank you, Maciej :-D
Espen Harlinn 13-Jun-13 17:52pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:50pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:50pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:49pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:48pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:48pm View
   
5'ed! :)
Espen Harlinn 13-Jun-13 17:47pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:42pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:42pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:41pm View
   
Nice set of links :-D
Espen Harlinn 13-Jun-13 17:37pm View
   
5'ed!
Espen Harlinn 13-Jun-13 17:35pm View
   
A 5 from me :-D
Espen Harlinn 13-Jun-13 6:32am View
   
No, rather the opposite - it seems you need to get all the interaction with the database into separate threads - and the Active Object pattern is a good recipe for doing that, even if it might be an overkill.

When you want to update the ui, do it in batches - perhaps using BeginInvoke to pass something like 5000 records at the time to the ui thread.

Espen Harlinn 13-Jun-13 6:16am View
   
Have you heard of the Active Object pattern?
http://www.codeproject.com/Articles/56617/Applied-Long-Running-Active-Object-Pattern
http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf
IMO you are trying to make this simpler than your requirements allows for.
Espen Harlinn 13-Jun-13 5:31am View
   
Create a separate connecton to the sql server for each thread, like:

[ThreadStatic]
private static SqlConnection connection;
void myWorker(object threadArgument)
{
connection = new SqlConnection();
using(connection)
{
connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
connection.Open();
// Now, do your stuff
}
}

public static SqlConnection Connection
{
get
{
return connection;
}
}
Espen Harlinn 12-Jun-13 16:04pm View
   
It's coming: http://www.w3schools.com/html/html5_serversentevents.asp
Espen Harlinn 12-Jun-13 16:01pm View
   
Thank you, Sergey - glad you like them :-D
Espen Harlinn 12-Jun-13 15:50pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:50pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:49pm View
   
True enough, and he got an answer for Windows Forms ...
Espen Harlinn 12-Jun-13 15:47pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:46pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:45pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:44pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:44pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:43pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:43pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:43pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:42pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:42pm View
   
Thank you, Sergey :-D
Espen Harlinn 12-Jun-13 15:38pm View
   
That seems to imply that you are using the samme SqlConnection on two threads at the same time, which should cause trouble for your program. You write that you only want the newest records and queues are usually a good solution for that
Espen Harlinn 11-Jun-13 19:13pm View
   
5'ed!
Espen Harlinn 11-Jun-13 19:13pm View
   
5'ed!
Espen Harlinn 10-Jun-13 17:46pm View
   
Well answered :-D
Espen Harlinn 6-Jun-13 10:21am View
   
Thank you, Sergey :-D
Espen Harlinn 2-Jun-13 20:36pm View
   
Nice link :-D
Espen Harlinn 2-Jun-13 20:35pm View
   
Good background material :-D
Espen Harlinn 2-Jun-13 20:29pm View
   
5'ed :-D
Espen Harlinn 1-Jun-13 13:15pm View
   
You could have a look at http://opendesign.com/the_oda_platform/teigha_dot_net
As far as I know, there isn't any free quality DWG solutions available.
Espen Harlinn 27-May-13 20:28pm View
   
gibberish? I'm just telling you that the physical measurements is available through the EDID Basic display parameters, which is provided by most modern monitors - and that Windows retrieves this information. You can use an inf file to override the info provided by EDID, but that's rather unusual these days.

>> So I still don't get your problem with my answer
Not a problem really, you wrote: "I'm afraid I don't think it's necessarily that easy" - It is easy, OP is having a bit of trouble because he tries to do his own mapping instead of using the functions provided by Windows for that purpose.

I just thought you would be interested, that's all ...
Espen Harlinn 27-May-13 18:51pm View
   
1) In my experience Windows usually gets this right. "as whatever driver you have used for it" Certainly, it's not magic, and the info is provided through a driver ...



Windows managed to identify the correct display because modern displays do provide a bit of information, including maximum horizontal and vertical image size in centimeters, have a look at: http://en.wikipedia.org/wiki/Extended_display_identification_data



You can also download a nice tool from MS,EDID 1.3 and DDC Test: http://msdn.microsoft.com/en-us/library/windows/hardware/jj124739.aspx

2)I've not specified whether OP should use imperial or metric You didn't, OP managed that himself, take a look at his source code, near the top ...
Espen Harlinn 27-May-13 17:40pm View
   
>> pixel size is not written anywhere in the system
Have a look at: http://msdn.microsoft.com/en-us/library/windows/hardware/ff568432(v=vs.85).aspx[^]
Espen Harlinn 27-May-13 17:29pm View
   
I'm afraid you're wrong - Windows identifies my screen as Dell 3007WFP.

OP has called dc.SetMapMode(MM_LOMETRIC); so to get things right he needs to forget about inches and concentrate on 0.1 mm, which is what he has specified.
Espen Harlinn 27-May-13 16:51pm View
   
Well answered - OP should definitely use an existing implementation.
Espen Harlinn 27-May-13 10:30am View
   
Interesting link :-D
Espen Harlinn 27-May-13 3:23am View
   
Thank you :-D
Espen Harlinn 25-May-13 20:25pm View
   
5'ed!
Espen Harlinn 22-May-13 15:44pm View
   
5'ed!
Espen Harlinn 16-May-13 9:47am View
   
AFAIK that library only support WPF and Silverlight ...
Espen Harlinn 7-May-13 6:42am View
   
You tagged the question with the ASP tag, which is a web based technology ...
Espen Harlinn 6-May-13 17:37pm View
   
Reason for my vote of 5 \n Nice tip, just used it to answer a question in Q&A :-D
Espen Harlinn 6-May-13 17:36pm View
   
thatraja has a list of alternatives here:http://www.codeproject.com/Tips/326615/HTML-Marquee-its-alternatives
Espen Harlinn 4-May-13 9:20am View
   
>> I'm still very bad at it
If you are, you've fooled most of us ;)
Espen Harlinn 4-May-13 8:55am View
   
>> 1.Learn how to code
Usually takes a wee bit of time, 10 years or so ...
Espen Harlinn 4-May-13 8:53am View
   
Lovely :-D
Espen Harlinn 2-May-13 6:48am View
   
Yes, the typelibrary/activex constrol may actually not be registered on the target system.

Regsvr32, http://technet.microsoft.com/en-us/library/bb490985.aspx, can sometimes be used to fix this, but you need to have the access rights required to register the typelibrary/activex constrol on the target system.
Espen Harlinn 25-Apr-13 20:46pm View
   
You're wellcome :-D
Espen Harlinn 25-Apr-13 19:26pm View
   
5'ed!
Espen Harlinn 25-Apr-13 19:25pm View
   
5'ed!
Espen Harlinn 25-Apr-13 19:24pm View
   
OP will have no person object assigned to the session variable when the page loads for the first time - and yes there are good reasons to only use something that is serializable, so a 5.
Espen Harlinn 25-Apr-13 19:20pm View
   
Nice links :-D
Espen Harlinn 25-Apr-13 19:18pm View
   
5'ed!
Espen Harlinn 25-Apr-13 19:15pm View
   
5'ed!
Espen Harlinn 25-Apr-13 19:15pm View
   
5'ed!
Espen Harlinn 25-Apr-13 19:14pm View
   
Good advice :-D
Espen Harlinn 25-Apr-13 19:06pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 19:05pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 19:05pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 19:03pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 19:02pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 19:00pm View
   
Well answered :-D
Espen Harlinn 25-Apr-13 19:00pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 18:57pm View
   
Which is why I later added a link to GetElementById and HtmlElement - anyway thank you, Sergey :-D
Espen Harlinn 25-Apr-13 18:54pm View
   
Thank you, Sergey - and you already have it on all your post Windows 2000 computers :-D
Espen Harlinn 25-Apr-13 18:52pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 18:51pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 18:45pm View
   
Thank you, Sergey :-D
Espen Harlinn 25-Apr-13 18:42pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:39pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:38pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:35pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:32pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:29pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:29pm View
   
Pretty much what I would have suggested, how well it would actually work depends on the schema :-D
Espen Harlinn 25-Apr-13 18:27pm View
   
5'ed!
Espen Harlinn 25-Apr-13 18:26pm View
   
That should work pretty well :-D
Espen Harlinn 25-Apr-13 11:23am View
   
You're right, and there is no need to reinvent the wheel ...
Espen Harlinn 22-Apr-13 3:44am View
   
It's in the same place - it probably reads 'Any CPU' at the moment ...
Espen Harlinn 19-Apr-13 18:56pm View
   
fair enough :-D
Espen Harlinn 19-Apr-13 13:39pm View
   
;)

Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid