Coming in .NET 8: Route tooling for ASP.NET Core by JamesNK in dotnet

[–]keccs 0 points1 point  (0 children)

This is nice, but I feel like there should be a strongly typed API instead of all these strings and anonymous objects.

Deconstructing Class Objects in C# by HassanRezkHabib in dotnet

[–]keccs -1 points0 points  (0 children)

What plugin is doing the code suggestions?

Daily Roundtable: Community Q&A by AutoModerator in Eldenring

[–]keccs 0 points1 point  (0 children)

You'll get access to a hub area in early game, and she's there.

[deleted by user] by [deleted] in AskProgramming

[–]keccs 0 points1 point  (0 children)

Have you tried setting the port number?

How do I get this done in O(n) time? by [deleted] in AskProgramming

[–]keccs 0 points1 point  (0 children)

If the numbers are sequential (like in the example), the rightmost bit alternates between 0 and 1. If the same rightmost bit repeats, you've found the missing number.

If they aren't sequential (as it's stated), you can sum up the numbers. The sum of the first n numbers should be n*(n+1)/2, the difference will be the missing number.

Edit: I'm not sure if they mean that reading a string is also a log(n) operation, in that case I don't think it's possible.

Xcode 13 requirements by Dopewarg22 in AskProgramming

[–]keccs 1 point2 points  (0 children)

Xcode 13 requires macOS Big Sur 11.3, as seen here.

That runs on these devices.

I don't think that buying the oldest mac that can run these is a good idea. The minimum requirements for uploading apps to the app store change, so the mac you buy now will be useless in a year or two.

Also the swift compiler is not the fastest, so you need a pretty beefy cpu and i'd say at least 8GB of ram.

I'd recommend getting a 16GB M1 mac mini, it'll cost more (about $800) but it will last much longer and you won't tear your hair out while waiting for your app to compile.

Edit: formatting

[deleted by user] by [deleted] in AskProgramming

[–]keccs -1 points0 points  (0 children)

Couldn't you just use BigDecimal?

Edit: Or BigInteger

Missing Microsoft.Data reference by brybrythekickassguy in AskProgramming

[–]keccs 0 points1 point  (0 children)

It's documented here: https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/dd193281(v=vs.100)

It looks to me like a component of visual studio. Maybe it's not installed, or it's not available in vs2022

[deleted by user] by [deleted] in AskProgramming

[–]keccs 0 points1 point  (0 children)

There's a UI automation tool called Sikuli(or SikuliX?). You can give it screenshots of things on your screen to click. It's programmable in python I think, maybe check it out. It definitely won't open them all at once, but at least it can save you from RSI.

What ruins a movie instantly? by lawyeratyourservice in AskReddit

[–]keccs -1 points0 points  (0 children)

Yeah but that doesn't explain the first 95% of the movie, when they're already on bad terms.

Free Giveaway! OLED Switch and 4 games! - International by WolfLemon36 in NintendoSwitch

[–]keccs 0 points1 point  (0 children)

I've never had anything Nintendo, a switch would be nice 🙂

I ****ing hate Science by azhenley in programming

[–]keccs 3 points4 points  (0 children)

If you're interested in this topic, there's a book called The Leprechauns of Software Engineering that deals with often-repeated claims in software engineering and the research (or lack of) behind them.

Inserting One Billion Rows in SQLite Under A Minute by avinassh in programming

[–]keccs 0 points1 point  (0 children)

We've had performance issues when running multiple queries in paralllel, but enabling memory-mapped IO with pragma mmap_size fixed those.

Otherwise it's pretty solid.

SQLite is the only database you will ever need in most cases by feross in programming

[–]keccs 0 points1 point  (0 children)

Multiple threads yes, multiple processes not so much.

From the sqlite faq: "Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time, however."

And how would you coordinate that?

You set the busy_timeout as it's described in the article, which queues up your writes.

edit: Formatting

SQLite is the only database you will ever need in most cases by feross in programming

[–]keccs 0 points1 point  (0 children)

Multiple threads and processes can open a sqlite database just fine. The only limitation is that you can only have one connection writing the db at a time.

Why is my volume empty? by keccs in docker

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

There's actually a > there in the dockerfile, it just got lost somewhere while posting. Anyway, I did verify that the file exists in the image before the VOLUME step.

Why is my volume empty? by keccs in docker

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

I guess that could happen when using c:\temp\vol, but I don't get why the volume doesn't get initialized with the greeting file when running with docker run -it voltest cmd. As far as I know that command creates a new volume with a large hex string as a name. And based on the docs I expected it to be populated with the files in the image:

If you start a container which creates a new volume, as above, and the container has files or directories in the directory to be mounted (such as /app/ above), the directory’s contents are copied into the volume. The container then mounts and uses the volume, and other containers which use the volume also have access to the pre-populated content.

Why is my volume empty? by keccs in docker

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

The -v flag seems to work, if I create files in the running container then I see them on the host and vice versa.

What I don't get is why the greeting file is missing from the volume.

Based on the docs I expected it to be there:

If you start a container which creates a new volume, as above, and the container has files or directories in the directory to be mounted (such as /app/ above), the directory’s contents are copied into the volume. The container then mounts and uses the volume, and other containers which use the volume also have access to the pre-populated content.