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
S

Stuart Dootson

@Stuart Dootson
About
Posts
5.9k
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GIT Time again - what am I missing?
    S Stuart Dootson

    charlieg wrote:

    I do know you can set up your own server locally

    You certainly can - I have a Git server on my Synology NAS as a local backup, and I've had a locally installed instance of [Gitea](https://docs.gitea.com/next/category/installation) in the past.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge collaboration announcement csharp visual-studio sysadmin

  • Does anyone know of a good guide to the MSIL JIT compiler?
    S Stuart Dootson

    The JIT (as well as the rest of the runtime) is also [open source](https://github.com/dotnet/runtime/tree/main/src/coreclr/jit) - there's an `optimizer.cpp` in that directory, which might be of interest. Also in that directory is a file (`viewing-jit-dumps.md`) which talks about looking at disassembly, and also mentions [a Visual Studio plugin, Disasmo](https://marketplace.visualstudio.com/items?itemName=EgorBogatov.Disasmo), that simplifies this process. [Edit]Another option - use Godbolt - [it supports C#](https://godbolt.org/z/vnqvGdqfe)![/Edit]

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge design debugging tutorial question csharp

  • Are Lenovo laptops any good?
    S Stuart Dootson

    Yes. I've got a 2019 P1 & the build quality is very good. The RAM slots and drives (2 x M2 NVMe SSD) are easily accessible. The keyboard's much better than the HPs and Dells that work has lumbered me with. And yes, they still have pointing nubs.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge hardware tools tutorial question

  • Looking for new keyboard
    S Stuart Dootson

    My two favourites are my [Unicomp Model M](https://www.pckeyboard.com/page/product/NEW\_M) and my [Matias PC TactilePro](http://www.matias.ca/tactilepro/pc/). Once you use buckling spring or ALPS switches, you realise that Cherry MX & their clones really aren't the peak of keyboard switches...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge question

  • Lights on your PC, love or hate them?
    S Stuart Dootson

    RGB gets a big NOPE from me - even on my keyboards, the most I want is plain white backlighting, although my most used keyboards (a Unicomp Model M and a Matthias Alps compatible) have no lighting whatsoever. If I want light, I'll turn on my desk or room light...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge java regex performance tutorial question

  • Is it safe...? (Win10 to Win11 in-place upgrade)
    S Stuart Dootson

    I've been upgrading Windows in-place on a weekly basis for several years, as my dev PC gets Windows Insiders builds (I started so I'd get the latest WSL builds as early as possible). In that time, I've had zero problems with the upgrade process and the problems I *have* had (a few BSODs) have been rare (for example, there was something about upgrading packages on my WSL Ubuntu install that caused a BSOD) and fixed in the next build. Anyway - my PC has seen Windows 10 versions from around when WSL was introduced in 2016 through to now when I'm running Windows 11 build 25276, which'll likely result in Windows 11 23H2.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge csharp visual-studio android com design

  • Recursively Searching for "text" in files in windows 11
    S Stuart Dootson

    Personally, I download a copy of [`ripgrep`](https://github.com/BurntSushi/ripgrep) and enjoy using the fastest, most concurrent text search utility you're going to find (at the moment, anyway).

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge linux algorithms question announcement

  • Laptop fans do have a rev limit
    S Stuart Dootson

    A bit like [this](https://www.youtube.com/watch?v=Lzq519I5bhs)...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge lounge

  • Do you like your keyboard for coding? [Final Thoughts] My End Result and sort of a review
    S Stuart Dootson

    Yup - the Model M (now made by Unicomp) is still a king of keyboards...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge business help question discussion

  • Do you like your keyboard for coding? [Final Thoughts] My End Result and sort of a review
    S Stuart Dootson

    I've got a Filco Majestouch Tenkeyless with Cherry MX Browns. It's fine - the problem with it is that (for me) MX switches (and most MX compatibles) just aren't that great for typing. I'd say my favourite switches are probably the ALPS style switches in my Matthias TactilePro - those have got a much nicer feel, IMO. Having said that, I've got some Kailh Box Pinks ready to go into another, hot-swap keyboard - I'm hoping they've got more weight and tactility than other MX compatibles...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge business help question discussion

  • Gosh it's hard to build a performance PC these days
    S Stuart Dootson

    honey the codewitch wrote:

    I did briefly consider submerging the entire thing in a mineral oil bath and cooling it with a box fan. :laugh:

    The [Cray-2 approach](https://www.computerhistory.org/revolution/supercomputers/10/68)...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge design performance

  • Do you like your keyboard for coding?
    S Stuart Dootson

    I use two - a [Unicomp Model M](https://www.pckeyboard.com/page/product/NEW\_M) and a [Matias Tactile Pro](http://matias.ca/tactilepro4/) (the cheapest new Alps-like keyboard I could find - I was able to get a PC variant before they were discontinued). If I could justify the money for a [new Model F](https://www.modelfkeyboards.com/product/f77-model-f-keyboard/)...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge com design business json help

  • Why am I having such a hard time learning Rust?
    S Stuart Dootson

    It has functional aspects, but it's still very much an imperative language. The way that it melds being an expression language with being an imperative one is that the semicolon separates and sequences expressions, much like the comma does in C. What can make it useful, though, is cases like those Rust making bindings immutable by default. For example, in C++, I might write ```C++ int x; switch(some_value) { case 0: x = 15; break; case 2: x = 29; break; default: x = some_function(some_value); break; } ``` I need to declare the variable separately from its initialisation, and then rely on it being mutable to do the initialisation (although I *could* do it all in one with an immediately invoked lambda expression...). In Rust, this becomes: ```Rust let x = match some_value { 0 => 15, 2 => 29, v => some_function(v), // Match any other integer value and bind v to it }; ``` Rust requires all bindings to be initialised, so for complex cases, getting a value out of something like a `match` can be very useful.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge visual-studio docker help question learning

  • Why am I having such a hard time learning Rust?
    S Stuart Dootson

    Rust does have a number of facets that aren't like the C++ equivalents. I did last year's advent of code in Rust and the main thing I struggled with was how iterators were used - unlike C++, where (before C++20) you use STL algorithms, you chain method invocations, layering iterator transforms. The other things that are unfamiliar are traits (a bit like interfaces), which I knew from Haskell, where they're called type classes, and Rust enums, which are just ['sum types'](https://chadaustin.me/2015/07/sum-types/). Also, everything in Rust is an expression - no statements. Seems weird, but can be very handy (e.g. returning values from `if` or `match` (think `switch`) expressions grows on you, an then you go back to C++ and wonder why you can't do it there...). The memory management (well, lifetime) thing can be a pain, especially if you've got references flying round. But most of the time, you don't see it. I wrote [a little duplicate file finder in Rust](https://github.com/studoot/duplicate-finder), as something to give me experience with it. As for tooling - either [IntelliJ or CLion with Jetbrains Rust plugin](https://www.jetbrains.com/rust/) or VSCode with the [rust-analyzer extension](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer). I use the second one - it gives me pretty much as good a VSCode experience as I get with C++.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge visual-studio docker help question learning

  • Back to the office after 2+ years of working from from
    S Stuart Dootson

    I'll be going to the office next Wednesday for the first time since March 2022. I'm picking up a new laptop. And then I'll scurry back home to my little (but big enough) office, to work on the new laptop, dog sleeping with his head on my feet, coffee machine ready to make coffee the way *I* like it, stereo cranked with music *I* like, and no need to listen to any other people's inane telephone calls... Suffice to say, I'll only go back to the office for as little time as I can get away with...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge css devops question

  • WIN 10 // SS-USB
    S Stuart Dootson

    It was probably the USB controller chip had got wedged, and the process of querying it about all USB devices reset it. I've had cases on my old desktop (an HP Z420) like the one you had, where Device Manager indicated that the USB controller had just stopped responding...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge asp-net hardware

  • That was close.
    S Stuart Dootson

    I managed to wash my [Bluetooth headphones](https://www.amazon.co.uk/Bluetooth-Headphones-Mpow-Waterproof-Cancelling/dp/B082Y72XRM) a while ago... They stopped working *just* long enough for me to order a replacement pair from Amazon... And have been fine ever since...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge java com question lounge

  • Oooo ... todays Wordle was a pain!
    S Stuart Dootson

    Took me six lines - and I still had multiple possible words, so I count myself lucky I didn't get (my first) failure...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge com regex lounge

  • NSOTW - Ninjaed Sound Of The Week
    S Stuart Dootson

    If you like the throat singing, you might like [the Scandinavian variant that Heilung perform](https://www.youtube.com/watch?v=2wy-W-pYlds)...

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge c++ com question

  • Why does a bottle of honey have a "best by" date?
    S Stuart Dootson

    It's about the wording of the expiry date statement - ["best by" or "best before" mean something very different than "use by"](https://www.food.gov.uk/safety-hygiene/best-before-and-use-by-dates) - in the UK, at least, and [in the US, while there's no standard wording, similar wordings are used](https://www.fsis.usda.gov/food-safety/safe-food-handling-and-preparation/food-safety-basics/food-product-dating). So - that "best by" will relate to the sugar crystals mentioned below, which will negatively (I guess) alter the experience of eating the honey.

    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

    The Lounge question sales
  • Login

  • Don't have an account? Register

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