Quantcast
Browsing all 45 articles
Browse latest View live

Comment by Rei Miyasaka on Visual Studio - Invalid URI: The hostname could...

Problem is that you need wildcard sometimes.

View Article


Comment by Rei Miyasaka on Multiple Tables With Same Structure Entity Framework

I've settled on doing this but with an interface instead of an abstract class.

View Article


Comment by Rei Miyasaka on Replace Multiple String Elements in C#

Note that this and many answers may be inappropriate for arbitrary replacement strings. "abc".Replace("a", "c").Replace("c", "d") will produce "dbd" as opposed to the expected "cbd".

View Article

Comment by Rei Miyasaka on Property '...' has no initializer and is not...

@MartinČuka Just because everyone was doing it doesn't mean it wasn't wrong or that it wasn't horrifying. TypeScript itself was brought about because JavaScript is kind of horrifying. And the larger...

View Article

Comment by Rei Miyasaka on Rails 4 - Save address as one column in database

archive.org link for the hstore vs json page, since it's down.

View Article


Comment by Rei Miyasaka on Why is it a bad idea to have a table without a...

I'm convinced that I've come across a legitimate and common use case for a no-PK table: If a table "owns" an unordered list of items which are deleted/replaced when the owner row is updated, not having...

View Article

Comment by Rei Miyasaka on What are the best practices to add metadata to a...

What is the benefit of not putting both in json?

View Article

Comment by Rei Miyasaka on Sorting jsonb in postgresql

Will this make use of any indexes if you do an order by?

View Article


Comment by Rei Miyasaka on Escape spaces in PowerShell and cmd

Straight up, PowerShell is horrible.

View Article


Comment by Rei Miyasaka on Tail Call Optimization implementation in...

At least Microsoft's reason was technical, as dumb as it is. Firefox's makes no sense at all.

View Article

Comment by Rei Miyasaka on Using the serial port in a Ubuntu for W10 (WSL)

Yeah, this isn't working for me either.

View Article

Comment by Rei Miyasaka on VS 2022 does not refresh Error List Warnings

17.5.1. Still happening.

View Article

Comment by Rei Miyasaka on How to do argument validation of F# records

Ten years later, my use case today: normalizing a line segment so that the point to the left is first. I could do it in the constructor and guarantee that it's correct, or I could check every time. But...

View Article


Comment by Rei Miyasaka on Get ffmpeg information in friendly way

@patrick I would more blame SE's habit of killing new discussion than the people who are trying to make discussion.

View Article

Comment by Rei Miyasaka on query of type "INSERT ON CONFLICT DO NOTHING...

I wonder what implication this has for performance

View Article


Answer by Rei Miyasaka for Linq Orderby random ThreadSafe for use in ASP.NET

Probably best to write your own extension method to do it.public static class Extensions{ static readonly Random random = new Random(); public static IEnumerable<T> Shuffle<T>(this...

View Article

XHTML empty tags not treated as empty tags by any browser

So I've tried this XHTML 1.1 code (validated at validator.w3.org) in Chrome 6, IE 8, and Firefox 3.5. The <p> following the <a/> gets hyperlinked, and the <p> following the...

View Article


Trying to gain confidence in the benefits of TDD

I just bought The Art of Unit Testing from Amazon. I'm pretty serious about understanding TDD, so rest assured that this is a genuine question.But I feel like I'm constantly on the verge of finding...

View Article

ASP.NET MVC event that happens just before action is called?

I want to set the value of Thread.CurrentCulture based on some route data, but I can't find an event to hook to that fires after the routes are calculated and before the action method is called.Any ideas?

View Article

Answer by Rei Miyasaka for Are options and WithSize etc in XPlot specific to...

Very barebones charting solution using Plotly (and it works):open Newtonsoft.Jsonlet html = """<head><script...

View Article
Browsing all 45 articles
Browse latest View live