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
J

jsc42

@jsc42
About
Posts
1.1k
Topics
32
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is the CCC too difficult
    J jsc42

    Thanks for additional clue! I think the answer is 'respite' (highlight text with mouse to read the suggested answer). I admit that I used a list which sorts words by word length to help, but that would not have helped without the first two letters

    The Lounge

  • Logging in to Tiki Wiki on Azure
    J jsc42

    OriginalGriff wrote:

    2 year old ones. After that amount of time, it's unlikely that the original poster is at all interested in the problem any more!

    Thanks! You are correct. In fact my reply from April 2023 states why it was no longer relevant. But it was nice to be reminded about it. :)

    Cloud Computing cloud com hosting help tutorial

  • Imagine if the states switched from pounds to kilos overnight
    J jsc42

    RainHat wrote:

    Just switch everyone to Newtons and be done with it.

    Or to Einsteins for relative units

    The Lounge html com

  • toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas
    J jsc42

    Your original question said (my emphasis):Could that be related to why you have issues putting in more than

    fig0000 wrote:

    I tried adding “en-us” to the toLocaleString() as well as setting maxiumnsignificantdigits to 9

    Could that be related to why you have issues putting in more than 8?

    JavaScript asp-net csharp javascript regex help

  • Dark mode
    J jsc42

    We've gone full circle. The early (text only) VDU terminals were black background with green text (or, from one manufacturer, orange text); then someone decided to emulate paper - black text on white background; now you can choose.

    The Lounge question

  • SQL (Transact-SQL) needs a proper FOR loop!
    J jsc42

    honey the codewitch wrote:

    It's kind of a nasty alternative, admittedly, but I'm used to it because of a c pattern I employ all the time C++ while(count--) { ... }

    Or, for a slightly more readable (but slightly less efficient) code construct, you can use the fake 'down to' / 'tends to' operator -->. It works in C, C#, JavaScript and other C derived languages but it does not actually exist as an operator. e.g.

    while (count --> 0) { ... }

    as it is just an unusually laid out version of

    while ((count--) > 0) { ... }

    and the test for > 0 is redundant as when count is positive the result is already true and when 0 it is already false. One useful feature of the --> operator is that it allows counting down to non-zero endpoints as well as just down to zero.

    The Weird and The Wonderful database help

  • Why did they make it so weird?
    J jsc42

    Because 'weird' is an anagram of 'wired'

    The Lounge design com graphics hardware iot

  • For those celebrating their 21st birthday today...
    J jsc42

    Worst case: Twins born 29 Feb 23:45 and 01 Mar 00:15 (or 28 Feb 23:45 and 29 Feb 00:15) You can get a similar effect when Daylight Saving Ends (or Starts - I am never sure which way they go). You could have the eldest one born at 01:45, then clocks go back and the younger one is born at 01:30 but both have the same birthday.

    The Lounge question

  • AI Assistants aren't that bright.
    J jsc42

    obermd wrote:

    Happy Birthday from Clippy.

    "I see you are having a Birthday" "It looks like you are having a Birthday" (Edited)

    The Lounge com lounge

  • Windows 11 is getting improved context menus
    J jsc42

    I hope that they have fixed the feature that is my pet peeve with the current Context Menu. The Show More Options menu item is at the bottom of the list and appears whilst other menu items in the middle are still being added. Many times I have moved to the Show More Options item and clicked it but, in between moving and clicking, the menu has expanded and I have unintentionally selected Share With Skype.

    The Insider News csharp announcement

  • Elon Musk’s new AI company aims ‘to understand the true nature of the universe’
    J jsc42

    The answer is 42

    The Insider News question html com collaboration lounge

  • Discord has just been fairly insistent that I change my username ...
    J jsc42

    jmaida wrote:

    ? no diff griff other than order

    FTFY

    The Lounge com lounge

  • Wednesday CCC OTD
    J jsc42

    ER = Her majesty, the late Queen Elizabeth the 2nd (21 April 1926 – 8 September 2022). ER stood/stands for Elizabeth Regina (Regina is Latin for Queen). Add 'Her majesty' into the explanation as it was part of the query

    The Lounge javascript com

  • About to do open heart surgery on my new laptop. Could use some guidance.
    J jsc42

    I found the following VBScript code (ARRGH!) for getting a product key. It seems to work, YMMV. It may help as a double check for some of the other ideas given in previous responses. My PC arrived with W10 and I immediately upgraded (?) to W11 as that had come out whilst the PC was in the post and it meant that I had nothing of my own on the PC to lose. I was fortunate as it was an in situ upgrade and it picked up the old key automatically, so didn't need the output from this code. To use, save as .vbs and just double click it.

    ' Get Windows Product Key
    ' From https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

    Set WshShell = CreateObject("WScript.Shell")
    MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

    Function ConvertToKey(Key)
    Const KeyOffset = 52
    i = 28
    Chars = "BCDFGHJKMPQRTVWXY2346789"
    Do
    Cur = 0
    x = 14
    Do
    Cur = Cur * 256
    Cur = Key(x + KeyOffset) + Cur
    Key(x + KeyOffset) = (Cur \ 24) And 255
    Cur = Cur Mod 24
    x = x -1
    Loop While x >= 0
    i = i -1
    KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
    If (((29 - i) Mod 6) = 0) And (i <> -1) Then
    i = i -1
    KeyOutput = "-" & KeyOutput
    End If
    Loop While i >= 0
    ConvertToKey = KeyOutput
    End Function

    The Lounge linux help question

  • WSO CCC OTD 2023-05-18
    J jsc42

    Err... What's a SWAG?

    The Lounge com lounge

  • WSO CCC OTD 05-May-2023 - SOLVED
    J jsc42

    It's the first one that I have managed to get in many weeks.

    The Lounge com question discussion

  • Logging in to Tiki Wiki on Azure
    J jsc42

    Thanks for the response - my post is from 15 months ago. I abandoned TikiWiki and used DocuWiki instead. DocuWiki is a good, relatively easy to use, product (and free from BitNami on Azure). Unfortunately, the management did not like it - it looked too old fashioned for them and they decided to go with a Teams / SharePoint solution. I do not know how they are progressing with that as they decided that my time with them had finished.

    Cloud Computing cloud com hosting help tutorial

  • How does one know when middle and senior management have no clue? Here's your sign....
    J jsc42

    charlieg wrote:

    Where is that dilbert cartoon when you need it?

    I guess that this is the one that you are alluding to: Just Ask They Guy: The Hard Truth - : Employees as your biggest asset - Yes or No ?[^] and repeated at Weekend Round Up: The EEOC and disputing common wisdom | KRESS[^] etc

    The Lounge html com question

  • CCC 29-03-2023 - edited
    J jsc42

    All I've got is PANTHER . * Cheater sounds like Cheetah (a big cat), Panther is another type of big cat * Panther = Pant + Her . . o Pant = is puffing out air (so could be wind?) . . o Her = No idea I hope that I am wrong :)

    The Lounge question

  • Getting Back to Basics!
    J jsc42

    Actually, it is true! That is really how I wrote my first program.

    The Lounge visual-studio design
  • Login

  • Don't have an account? Register

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