« first day (5140 days earlier)      last day (27 days later) » 

00:00
Those who do not understand Unix are condemned to reinvent it, poorly. - Henry Spencer, University of Toronto Unix hack (source)
 
3 hours later…
02:56
Say in advance: Meowing, welcome to moan-day!
 
3 hours later…
06:20
http3 is a good thing that force isp to unblock udp connection on mobile networking
07:16
Goat mourning
Morning.
Morning.
;)
/KAFFEEZEIT
07:37
uh? @Hans1984 what did you say?
SXX
instead of XXX
that made the whole conversation very funny
:D
meo mew meow?
SXX like s.e.x
it was a joke
so nevermind
!~cat
!~shiba
07:38
"Kiss my hand, human"
cherry blossom
Shiba contemplating whether to kiss the cat's hand.
is cherry a blossom a thing in china too ? @Mr.Squirrel.Downy
I only know of japan and south korea
As I know.. the tree is origin from China. Japan is introduced that.
07:43
I see
a lot in japan has its roots in china
They are very close, after all.
when I was learning Japanese for 2 years I read in my book that even the language was brought to japan from china
Include culture base and characters...
hundreds of years ago
you can see in the japanese kanjis
they are similar to chinese signs
Kanji is from "HanZi"
07:49
really ?
thats almost like Hansi
;)
unfortunately I stopped japanese classes once corona hit
and all the classes turned into zoom meetings
"(汉字)HanZi" is the name called Chinese characters in China
instead of real meetings :(
I see
these days I've been learning french with duolingo for almost 1 year now
Japanese kanji retains many stroke orders or shapes of ancient Chinese characters.
As I know, the modern Chinese characters have been simplified and reformed to optimize the efficiency of writing.
interesting
 
3 hours later…
10:36
 var componentSystems = await _dbContext.ComponentSystemRuns.AsNoTracking()
.Include(x => x.ComponentSystemComponents
.Where(y => y.ComponentID == componentId)).ToListAsync();
is there something wrong with this query? it runs forever
@Sakthivel The code looks fine. But it might be some other issue like deadlocking due to other code trying to access the same table at the same time.
deadlocking is highly unlikely since its running forever on local instance aswell
Oh, wait, you have an inner query in the include. Missed that. Is that correct? Seems like you've misplaced a closing bracket
did i ?
I dunno. It's just that this looks odd:
var componentSystems = await _dbContext.ComponentSystemRuns
	.AsNoTracking()
	.Include(x => x.ComponentSystemComponents
		.Where(y => y.ComponentID == componentId)
	)
	.ToListAsync();
I wonder if you meant:
var componentSystems = await _dbContext.ComponentSystemRuns
	.AsNoTracking()
	.Include(x => x.ComponentSystemComponents)
	.Where(y => y.ComponentID == componentId)
	.ToListAsync();
10:46
Yes AFAIK .Include should only carry a selector that tells EF which nav property to include in the pulled data, then you can add a filter onto that afterwards like VLAZ showed.
@VLAZ but ComponentID is a column in ComponentSystemComponents. In the second example, y refers to componentSystemRuns
@Squirrelkiller oh i thought filtered includes are a thing for a while now
@Sakthivel Tbf my knowledge is several years old so I might be wrong.
You're right, EF does supported filtered includes right there in the call, sorry for the confusion.
but theres something naughty in my query i just dont know what it is yet lol
Can you log the produced SQL query? Might contain some hints that aren't just "well slow/huge DB".
@Squirrelkiller doing that rn
10:51
~Once again I go to the internet to find out if EF can output generated SQL without having to actually run the whole thing
Could be an extremely slow lookup. If the ComponentID column is not indexed. I've seen the query optimiser some times not optimising correctly in similar situations (cross product evaluation), so it just tries to do all pairs then filter. Instead of filter -> take pairs.
An index "fixes" it.
And finally, I actually got an affirming answer: Before calling ToListAsync, assign the querable to a variable and check its DebugView in debug mode. Nice!
@Sakthivel Ooh, an inner query...
Makes sense for filtering from inside the include
Should also be fairly fast because it's just the one id, no?
10:56
@Squirrelkiller yes just one
@Squirrelkiller Well, yes but...not needed. The inner select will build up a resultset that doesn't have any indexes. If you do regular join + filter, you benefit from the indexes of the other table.
indexing makes sense but vs throws a bunch of telemetry outputs upon running this.
Application Insights Telemetry: {"name":"AppMetrics","time":"2024-11-11T10:26:01.0000000Z","iKey":"44ea4ba6-0b91-499a-a0a2-2aaaaaaa","tags":{"ai.application.ver":"1.0.0.0","ai.cloud.roleInstance":"3D69FK3","ai.internal.sdkVersion":"m-agg2c:2.20.0-103","ai.internal.nodeName":"3D69xxx.xyz.com"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"Dependency duration","kind":"Aggregation","value":4908.4734,"count":1,"min":4908.4734,"max":4908.4734,"stdDev":0}],"properties":{"_MS.IsAutocollecte
@VLAZ good one
11:13
Hmm, just thought about this a bit more. The left join over the inner select will also produce a different result. If you're joining table A over a select in B which has a WHERE, that means your result will include all of A + optionally the joined data. If you do FROM A JOIN B ON whatever WHERE condition goes here (which .Include().Where() would do) then you get less results. I don't think that's the issue here but it's not really a straight replacement
ToListAsync() is the cultprit
without ToListAsync query works
You mean without the Async?
How could that even be a problem ffs
Not to be nitpicky but without ToListAsync the query isn't executed.
Does ToArrayAsync() make a difference?
without the async
let me check
TBH, I doubt it. But maybe worth a try.
In general, I don't like using lists for what should be immutable data anyway. If you load something from the database, you're not likely to add or remove items to the collection. Array makes more sense. You can always WHERE or UNION it to get less/more elements.
11:55
.ToArray() and ToList() are fairly quick (<1Second) Async runs forever
Dr??
oh, on-topic talk
@Sakthivel That doesn't make a lot of sense. It must be some deadlock. Somewhere. Not sure why it'd crop up in that code, though.
Fuck around with ConfigureAwait maybe?
@Squirrelkiller yes and check some details in depth in next hour or two to see whats really knocking it out
 
3 hours later…
15:06
Open YouTube and search for IMG_XXXX where X are random numbers. You will get random videos that people uploaded from their iPhones between 2009-2012. ben-mini.github.io/2024/img-0416
Gives you an interesting perspective into peoples' lives
why llimited to 2012?
@Sakthivel how much data is that returning? Try running using the non-async version. There is a known issue with sqlClient where selecting a lot of data async is just absolutely fucked
The issue for reference: github.com/dotnet/SqlClient/issues/593
@CaptainObvious iPhones used to make it very easy to upload videos to YouTube. But this was removed in future versions.
I thought it was still pretty easy but whatever
Idk, that's what the blog post says.
You used to be able to click a single button to upload to YouTube, but I guess you can't anymore?
15:23
The "workaround" is to use sync calls for large data retrieval: github.com/dotnet/SqlClient/issues/593#issuecomment-2411765170
posted on November 11, 2024 by Mika Dumont

We’re excited to announce a significant enhancement to GitHub Copilot that elevates your C# coding experience. Introducing the new update: GitHub Copilot code completions now provide more accurate and relevant autocomplete suggestions by incorporating additional C# context. Previously, GitHub Copilot generated suggestions based on the content of your currently active file and any other op

16:12
does anyone know how to fix the Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater error when I am using 8.0 as my langversion?
@WhatsThePoint I guess you have a project that doesn't or something like that?
Search for 7.3 in your project (regular text search) and try and figure out where it's set. Probably check the .csproj files first.
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <DebugType>full</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <LangVersion>8.0</LangVersion>
	<Nullable>enable</Nullable>
    <ErrorReport>prompt</ErrorReport>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <OutputPath>bin\x86\Release\</OutputPath>
csproj has it at 8.0
full project text search has nothing for 7.3
i even added <Nullable>enable</Nullable> to no avail
Can this be coming from a dependency?
Oh, maybe try killing the obj/bin directories, in case it's using an old version of something there.
16:32
@VLAZ deleted multiple times, no dependency as this is the top of our tree
we are in the middle of migrating net4.8 to netstd2.1/net8 so it could just be that my environment is ****** from swapping branches
 
2 hours later…
18:10
@WhatsThePoint any directory.build.props files floating around? Command line parameters in the build command if you use cli/ci? Test project with lower version in different folder you forgot to upgrade?
Notepad++/vscode full text search in solution directory for LangVersion and Framework, check that everything found is correctly upgraded.
 
3 hours later…
20:43
posted on November 11, 2024 by jonskeet

When I wrote my preview DigiMixer post, I was awaiting the arrival of my latest mixer: a Behringer Wing Rack. It arrived a few days later, and I’m pleased to say it didn’t take long to integrate it with DigiMixer. (It’s now my main mixer.) While most of the integration was smooth sailing, there’s one … Continue reading When Abstractions Break →

 
1 hour later…
21:57
posted on November 11, 2024 by Phil Haack

Git bisect is an underrated but very powerful tool to include in your debugging toolbox. In short, it helps you find the commit that introduced a bug. Here's an example of how to use it.


« first day (5140 days earlier)      last day (27 days later) »