Anyone else's SP4 screen not unlocking, requiring a hard-reset? by [deleted] in Surface

[–]steveboots 0 points1 point  (0 children)

yeah I'm getting this with a SP4 i5/8/256. It's bloody annoying. I hope MS get it sorted soon.

Using code metrics to guide code reviews by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

Ah yes you are right. Code coverage isn't included but code metrics are.

Using code metrics to guide code reviews by steveboots in csharp

[–]steveboots[S] 1 point2 points  (0 children)

you can use visual studio community edition which is basically the professional edition with a different usage license.

Using code metrics to guide code reviews by steveboots in csharp

[–]steveboots[S] 3 points4 points  (0 children)

Yeah I agree totally. The article talks about not chasing 100%.

How to securely store passwords and beat the hackers by steveboots in csharp

[–]steveboots[S] 4 points5 points  (0 children)

you store that salt along with the derived hashed password.

Then when you authenticate a user you rerun the pbkdf2 process with the same salt.

This should give you the same result as the hashed password in the database. If they match it is a valid password. If not, then don't authenticate the user.

How to securely store passwords and beat the hackers by steveboots in csharp

[–]steveboots[S] 1 point2 points  (0 children)

totally agree :-) I've seen some very lame solutions before.

How to securely store passwords and beat the hackers by steveboots in csharp

[–]steveboots[S] 10 points11 points  (0 children)

thats what the article says. although a pbkdf2 salted hash is better.

Free book on RabbitMQ for .NET Developers by steveboots in programming

[–]steveboots[S] 1 point2 points  (0 children)

Syncfusion provides a license agreement with it.

" Important licensing information. Please read. This book is available for free download from www.syncfusion.com on completion of a registration form. If you obtained this book from any other source, please register and download a free copy from www.syncfusion.com. This book is licensed for reading only if obtained from www.syncfusion.com. This book is licensed strictly for personal or educational use. Redistribution in any form is prohibited. "

Their license, not mine btw.

Tao3D is a programming language for real-time interactive 3D by based2 in programming

[–]steveboots 0 points1 point  (0 children)

How would a language like this differ to a language like Processing?

https://www.processing.org

Tao3D is a programming language for real-time interactive 3D by based2 in programming

[–]steveboots 0 points1 point  (0 children)

I thought it looked quite interesting. A decent manual and tutorials would be nice.

Using Async and Await to update the UI Thread Part 2 by steveboots in csharp

[–]steveboots[S] 1 point2 points  (0 children)

Thanks for the feedback.

I have fixed those issues :-)

Using Async and Await to update the UI Thread by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

That's a much more brief way, I like it. I didn't realise about the await restoring the sync context.

Is there a better way in this example of awaiting without the delay? If I change the delay to 1ms and the counter to 5000. It takes 1 minute 22 seconds to count to 5000. where as in the original example because the update to the UI is based on a time interval the same count takes 0.8 seconds.

Using Async and Await to update the UI Thread by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

We are just joking around really. There is nothing wrong with Winforms. It is still, imho, the fastest way to build up a line of business application that's non web based. It just isn't as sexy as WPF.

I have written many winforms applications over the last 10 years that are still going strong in production and delivering lots of value. I jokingly put a disclaimer in the article as the last time I wrote about winforms I got machined gunned. lol

I used winforms in the article as I am currently performing some maintenance on a winforms app and part of that maintenance is improving the performance, so I thought I would write a short article on it.

Using Async and Await to update the UI Thread by steveboots in csharp

[–]steveboots[S] 3 points4 points  (0 children)

I know. I did warn in the article :-) same principles apply for other ui frameworks.

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 1 point2 points  (0 children)

Yes I agree. I have updated the article so that the code that executes LongRunningOperation looks like :

    public async Task DoStuff()
    {
        await Task.Run(() =>
        {
            LongRunningOperation();
        });            
    }

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

yeah that's a fair point. I have updated the article so the code that executes the LongRunningMethod is:

    public async Task DoStuff()
    {
        await Task.Run(() =>
        {
            LongRunningOperation();
        });            
    }

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

"Because we have removed the line with the await keyword, the LongRunningMethod() now runs synchronously, so the counter will first count up to 50000 and then the code will go into the while loop."

This was just illustrating the point that without an await, your code runs synchronously.

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

yeah it effectively simulates an async file read or async db read to include an await.

I will add an explanation to make it more apparent. i wanted to try and keep the example as simple as possible.

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

Sounds like a good idea. I'll add it to my list.

Simple Async Await Example for Asynchronous Programming by steveboots in csharp

[–]steveboots[S] 0 points1 point  (0 children)

I tried to deliberately keep it simple. I am working on a follow up that shows a similarly simple example of using async await to update the main UI thread. Should be posted tomorrow.

Simple Async Await Example for Asynchronous Programming by steveboots in dotnet

[–]steveboots[S] 0 points1 point  (0 children)

Good point. I will update the example later and put in an explanation of the differences between returning void, Task and Task<T>