tlhIn`toq's Profile User Rating: ****-

Reputation: 6195 Overlord
Active Posts:
13,967 (6.46 per day)
02-June 10
Profile Views:
Last Active:
User is offline Apr 30 2016 03:55 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Who Cares
Your Car:
Dream Kudos:
Expert In:
Icon   tlhIn`toq There are very few software issues that liberal application of Mt.Dew and M&Mís wonít fix!

Posts I've Made

  1. In Topic: Arrays

    Posted 30 Apr 2016

    True. Then again... Who really codes such that you have to know the index? Sounds like a situation where you are begging to get the wrong data. Sure that was needed years ago when you were limited to say, the index of a combobox box selection, then you would get the corresponding element from an array. But these days you don't have to code that primitive. You can load the combobox with actual objects, so you take the selected OBJECT. Or you work with better data types than when we just had arrays... Like a Dictionary<key, value> where you can get what you need by means other than knowing the index. Or you can use Linq to traverse an IEnumerable to match criteria.

    Any decent application is multithreaded. So you can't always be sure that one thread isn't doing something behind the back of another, leading to a race condition where grabbing/adding/removing/updating data gets out of sync with maintaining a static known index.

    So my advice is "If you are dependent on knowing the index to get the value you're already screwed. Re-work your architecture such that you don't need to know/maintain/sync an index value - as if your application was multi-threaded even if it isn't, yet. Because one day it probably will be."
  2. In Topic: Returning a list from a collection (Lambda expression?)

    Posted 30 Apr 2016

    Modi: "_ports" is not a single object. Its a collection.
    Scott: Modi's right that you never initialize it. LIne 09 tries to perform an .Add to something that is still null.
    That's an easy fix.

    What concerns me more is your XAML.

        Title="Data Capture II" Height="350" Width="525">
        <cPort:ComPortViewModel x:Key="port"/>

    Huh? You're adding a ViewModel as a resource? I don't get it. Normally you would set the DataContext of the Window to the ViewModel. Resources are typically things like Converters and Style definitions, amongst other things. But not ViewModels.
  3. In Topic: I've got a a potentially massively successful idea!

    Posted 28 Apr 2016

    Of course you have this amazing idea. 10 people a month come to this site saying the same thing. Which means the same probably happens on the 50 code-help forums of note. So that's 500 "very lucrative" software ideas from people that can't write software - PER MONTH. How many amazing products actually come out each month that live up to all this hype? Its sure not 500. Meaning about 490 out of 500 people making this claim don't succeed - mostly because their idea really isn't all that hot.

    Now to the advice. Take your idea to a group of venture capitalists along with a business plan and your success record and so on. After all, that's what venture capitalists do: They invest money in things that will return profit. When those experts hear how amazing your idea is they will of course fund you. Then you can *PAY* a qualified software engineer that actually has the skillset needs to make good product. Versus the first year student that doesn't know jack, that is willing to work for free in the hopes of putting his name on a product, any product, so he can put it on his resume.

    So for the harsh truth... But that's the real business world for you. The responses are frank and honest - not about building up your ego.
  4. In Topic: Unexpected end of file xml exception in UWP app

    Posted 28 Apr 2016

    Go back and re-read the documentation on async and await. The ease with which these can be used often makes the MISused.

    Your async method starting on line 45.
    You do realize it doesn't complete the entire method before returning... Right?
    Line 51 makes the await call to open the file for writing... THEN RETURNS as soon as that operation is complete. Its done its asynchronous operation and returns to the async caller. But line 53 still has to actually write out the object.

    Odds are the error is correct, that the file isn't complete. I'm going to guess you get that early return from the method then close the application, cutting off the file write before it completes. Open the serialized file and examine the contents to confirm.

    Of course you can now see you have the same problem with the load method. You return from the method before you actually finish reading.
  5. In Topic: Deploying C#.NET Apps

    Posted 28 Apr 2016

    .NET packages are massive and different machines and version of OSes have different needs. You can't distribute it all with your product. You'd have a 50gig installer requiring you to distribute on a Bluray disc.

    Beside, .NET is already part of the OS. Users don't really have Windows up and running without having .NET already installed.

    If you use something like InstallShield to make your installer you just tick the required versions of .NET when you make your installer. The installer maker with handle the rest of the process by putting up wizard screens to the user for them to go install the pre-requisites before installing your product.

    Just like your classes need to only be responsible for themselves and not reach into other classes and micro-manage them; you need to do the same thing. Your program is not responsible for OS installing, and it is not responsible for big alterations to the user's PC. Let the user manage their own PC. Let Microsoft manage installing parts to the OS.

My Information

Member Title:
Freelance developer
Age Unknown
Birthday Unknown
United States of America
Software development, Shooting, Photography, Camping/Hiking, Travel
Years Programming:
Programming Languages:

Contact Information

Click here to e-mail me
Website URL:
Website URL


Page 1 of 1
  1. Photo

    tlhIn`toq Icon

    19 Aug 2013 - 20:28
    Ah - I *am* blind.
  2. Photo

    Michael26 Icon

    19 Aug 2013 - 15:53
    Yes there is, you have Awards, About me, Posts and Blog. That is right under your status.
  3. Photo

    tlhIn`toq Icon

    18 Aug 2013 - 10:16
    Am I just blind, or is there no link on a person's profile page to their blog? That's silly.
  4. Photo

    tlhIn`toq Icon

    18 Aug 2013 - 10:13
    Yep. They are coding on a "Whole 'nother level" above my last employer. Makes me feel like like I'm in the special slow learners group. But that's a nice side effect of new environments: They make you stretch past your comfort zone and learn new techniques.
  5. Photo

    Michael26 Icon

    05 Aug 2013 - 06:17
    At least you found job :)
  6. Photo

    tlhIn`toq Icon

    04 Aug 2013 - 12:53
    01aug13: I've changed employers and no longer working at home. So I won't be answering posts in real-time through out the work day. Don't take this as disinterest in the site. Its just I can't do that from a new office as a new employee. So its nights and weekends for me.
  7. Photo

    tlhIn`toq Icon

    12 Jul 2013 - 06:55
    Thanks! I've only just gotten on the computer this morning and saw it myself.
  8. Photo

    Michael26 Icon

    12 Jul 2013 - 06:39
    Congrats on 5000 :)
  9. Photo

    tlhIn`toq Icon

    05 Jun 2013 - 11:15
    I need to run through them and clean them up, stitch panoramas together etc. Shot about 700 frames. I'll keep maybe 50 at most. 10% or little less is about average.
  10. Photo

    Michael26 Icon

    05 Jun 2013 - 10:28
    Post some pictures, will you?
  11. Photo

    tlhIn`toq Icon

    05 Jun 2013 - 09:20
    Back from vacation. I was away for nearly a month (if anyone noticed). But Alaska was beautiful.
  12. Photo

    tlhIn`toq Icon

    31 Dec 2012 - 08:56
    Thanks! I see the voting is closed.
    I had to laugh when I saw I was even on the "nicest member" list - Everyone knows I'm the brutally honest old man LOL.
  13. Photo

    lucky3 Icon

    31 Dec 2012 - 02:28
    Congratulations for the "Most Helpful- Programming" shared 1st place award!
Page 1 of 1