Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

thoiness

@thoiness
About
Posts
35
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • My favorite Window 10 2004 feature not reported
    T thoiness

    Aw... My cursor's becoming a man!

    The Lounge

  • 260 Billion $ in BlockChain "currencies" goes bye-bye
    T thoiness

    Well... $12k for a single bitcoin?? Who wouldn't think that was grossly inflated? :wtf: There has to be crashes at some point, and I'm thinking much greater than the 30% as of recent is way overdue. What's hot today will be forgotten tomorrow...

    The Insider News com question announcement learning

  • When you know it's a bad design
    T thoiness

    I know you're not asking for help, but intelligent queuing for this bad design is needed. Upload each individually as they come in (are selected), and provide a status bar. Save them to a temp directory, and when you're done, you can move them around using the postback script. Think GMail, etc... You won't get 25 "parallel" uploads to work efficiently... And designers driving business rules? I'm glad I work where I do... I drive myself.

    The Lounge help css design sysadmin algorithms

  • Webcams for home security
    T thoiness

    One word: Arlo. Use it for my home, and the big drawback is if you lose internet, you won't get anything out of it, but if that's not an issue, the motion sensing and alarm seem to work well. I haven't caught anyone with it, except myself getting out of bed, and going downstairs, forgetting it was on. Simple to setup, simple to use.

    The Lounge security question

  • Win10 - Ugh
    T thoiness

    I was fighting the urge to comment, but I became overwhelmed with the gnawing feeling that my words just had to be heard (the inner narcissist was speaking to me). As a developer across multiple platforms (desktop, services for servers, web, etc, etc), I'd state that Windows 10 has been pretty darn good for me. It is faster than the previous iterations, it tends not to get bogged down as much (but Visual Studio 2017 can sometimes be a pig), and if you ignore all those tile things in the start menu (who looks at those?), it is a very productive machine. Now for something completely different... Then the gamer in me - my beast of a machine that powers my gaming (sad that this isn't my development PC) is also top notch running Windows 10. Best framerates, no slow downs once again, and of course, compatibility with the wide genre of games is important. I'm a steamhead that occasionally dabbles in the Microsoft Store (to grab GoW), but not really a fan. The addition of the Linux bash shell to Windows 10, the speed at which it operates, and the ability to "pretty much" have access to anything by just typing a few characters in the start menu is a dream come true. For the sad panda side: I upgraded to the Creator's Update. First issue was that on my gaming PC, my 4k monitor became washed out. Frustrating and angering at first, but I found that if you allow NVidia to control your HDR, and turn off the new Windows 10 setting for HDR, inner peace with your machine can be found. Next, I typed a simple multiplication problem into the search bar (I use Cortana a lot for my go-to calculator), and it asked me if I wanted to search the web... That appears to be fixed this morning, but wasn't yesterday for some reason. So is it perfect? Not really? Do the tiles do anything for me, other than serve as decorative nonsense on my start menu? Nope. But is it the best environment for my purposes so far? Yup...

    The Lounge

  • I can't work out if this website is awful or genius
    T thoiness

    I love how the free car link has a syringe.... as if to say: "if you shoot up on heroine, you'll believe you have one."

    The Lounge design com business

  • Office politics and sh*tty code.
    T thoiness

    Everyone's code sucks but mine. It's the battle cry of every developer. On that note, I have seen some stuff that was beyond repair. As for your boss, complaining won't help, and doesn't offer a solution. Initiative to train and/or repair expediently is the only thing he will be receptive to. In the business world, most of the time, tearing down a project for months of downtime is not a feesable option, regardless of the state of the code. If repairing and training are not an option, plant good code where you can, and refactor as time permits, or.... quit. That's the range of options.

    The Lounge

  • regex help
    T thoiness

    Less restrictive:

    <script type="text/javascript">
    function testFormat(v) {
    var re = new RegExp(/^(1[0-2]|0[1-9])[/]{1}(\d{4})$/);
    if (v.match(re)) { alert('ok'); } else { alert('oops'); }
    }

    </script>
    
    JavaScript regex question javascript html sysadmin

  • regex help
    T thoiness

    for 12/1995, you see where it says: [2-9] - change it to [1-9] It was assuming 2000+ 12/2000 - just a sec... Let me check it out...

    JavaScript regex question javascript html sysadmin

  • Template or anything similar
    T thoiness

    I read through the comments, and what you're looking for is JQuery masonry... http://masonry.desandro.com/[^] It will take some JQuery skills, but that's essentially what you're looking for.

    Web Development tutorial lounge

  • regex help
    T thoiness

    Try this:

    <script type="text/javascript">
    function testFormat(v) {
    var re = new RegExp(/^(1[0-2]|0[1-9])[/]{1}([2-9]\d[1-9]\d|[1-9]\d)$/);
    if (v.match(re)) { alert('ok'); } else { alert('oops'); }
    }
    </script>

    Should also take care of your "7" problem

    JavaScript regex question javascript html sysadmin

  • Am I Wrong To Doubt Tablet Computing?
    T thoiness

    Perhaps more of a misunderstanding of what you wrote. On the one hand, you stated that it will never replace laptops, and on the other hand you stated for some it could serve as a replacement. My ADD must have kicked in on the second half. Perhaps mine was an elaboration of what you were trying to convey, and I just didn't catch it. :~

    The Lounge question mobile adobe sales

  • Am I Wrong To Doubt Tablet Computing?
    T thoiness

    I completely disagree. Tablets, in the sense that we know them a week ago (iPads) will not replace the common laptop; however, tablets as we're redefining them today will. I use a netbook currently (4G Ram, Dual Core, decent hard drive) as my main development and mobile computing device. I found that laptops, regardless of form factor, are too large and bulky to truly be mobile (unless you like the idea of giant "man purses" and permanent backpack apparel). When I get in front of a screen, I plug in. When I get in front of a keyboard, I plug in. I use it both as a desktop and a netbook. It gives me "enough" computing power to develop software, and is portable enough that I don't mind taking it with me. All that said, I would trade it in a heartbeat for a W8Pro tablet. If this were to happen, my habits of plugging in whenever I have the opportunity would not change, but what would change is that my convenience factor when on the go would increase 10 fold. I could have access to all my important files, my development environment, my designer environment, and my entertainment wherever I was, whenever I wanted. Compare that to a modern notebook computer. Yes, the screen is smaller, so if you have bad eyesight, I suppose that could be an issue, BUT, modern notebooks are generally underpowered graphics-wise, and tablets will be no different. Modern notebooks get hot, while tablets are not known for this. Notebooks can't be quickly turned on and touched to accomplish something quickly when on the go, and you certainly won't be using them while moving. Tablets you can. The notebook for most of us professionals (that have decent eyesight) is on its way out. I wouldn't have said that had W8 Pro not been envisioned, but being that it's here, we can see a glimpse into what the future of computing is going to look like on the go. That doesn't mean I'm giving up my desktop, mind you. The ultimate question when considering that has to be asked: "Yeah, but does it play Crysis?" No, it doesn't, and as long as a modern video card is 3-5x the depth of a tablet, it won't.

    The Lounge question mobile adobe sales

  • The future of debugging is here!
    T thoiness

    Yes, because REAL programmers program in binary. Ohhh yeahhh....

    The Lounge csharp visual-studio com question

  • Special Case
    T thoiness

    Rewritten:

    return (i == 0) ? 1 : i++;

    In division, specifically in the denominator, this code eliminates the divide by zero issue. I think the OP (original programmer) had good intentions.

    The Weird and The Wonderful

  • web modalanchor
    T thoiness

    It is probably something like returning true or false from the client function that is being called. I'm not familiar with the code you are referring to (modalanchor), nor can I see your code, so an educated guess is all I can offer.

    ASP.NET csharp visual-studio

  • Combining Array with delimiters
    T thoiness

    I suspect you may be starting to get way over your head here. You may need a contract developer to piece all this together.

    StringBuilder sb = new StringBuilder();

    using (SqlConnection conn = new SqlConnection("(replace this with a real connection string)"))
    {
    conn.Open();
    using (SqlCommand cmd = new SqlCommand("SELECT Email FROM Customers WHERE newsletterAgree = 1", conn))
    {
    using (SqlDataReader rdr = cmd.ExecuteReader())
    {
    while (rdr.Read())
    sb.AppendFormat("{0};", rdr["Email"]);
    }
    }
    }

    string finalString = sb.ToString();

    If you want to convert finalString to an array, then once again, you need to do:

    string[] finalArr = finalString.Split(';');

    This should be compatible with all versions of ASP.NET

    ASP.NET question data-structures help tutorial

  • Combining Array with delimiters
    T thoiness

    NameOfTextBox.Text = rebuiltString;

    ASP.NET question data-structures help tutorial

  • Combining Array with delimiters
    T thoiness

    Create the array:

    //edited, as retrieving the string may not be apparent:
    string emailString = NameOfTextBox.Text;
    string[] emailArr = emailString.Split(';');

    Recreate the string:

    //remember "using System.Text"
    StringBuilder sb = new StringBuilder();

    foreach (string s in emailArr)
    sb.AppendFormat("{0};", s);

    string rebuiltString = sb.ToString();

    ASP.NET question data-structures help tutorial

  • how to pass values from 1 page to another..
    T thoiness

    Maybe you are asking "can it be any type?" The answer would be "yes." A session variable can hold any type, but be careful, as holding large classes, etc, in session variables can be devastating to scalability.

    ASP.NET tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups