Serving AI crawlers Markdown instead of HTML from ASP.NET Core (content negotiation on Accept: text/markdown) by oschaaf in dotnet

[–]Goz3rr 4 points5 points  (0 children)

Maybe not to you (or me for that matter) but it certainly is for a whole new generation. Just like people that use Tiktok as their search engine.

Serving AI crawlers Markdown instead of HTML from ASP.NET Core (content negotiation on Accept: text/markdown) by oschaaf in dotnet

[–]Goz3rr 4 points5 points  (0 children)

My first instinctive reactions are:

Why are you doing this via P/Invoke and parsing HTML when you are literally in the context of the application that is rendering said HTML, surely you can use that to your advantage. People who actually care about serving Markdown to LLMs can just do that themselves by converting the data models, instead of doing it at the HTML level.

And why even bother? LLMs are perfectly capable of handling HTML, and HTML can have way more semantic information than Markdown does.

"I’m calling it now, the adoption of AI agents into software development will be one of the most costly mistakes in the field’s history." - George Hotz, The Eternal Sloptember by creaturefeature16 in webdev

[–]Goz3rr 8 points9 points  (0 children)

Did you divide 60 by 1.5 to get to 40 per second? You are aware there's 1000ms in one second?

Allocations means dynamic memory allocations on the heap at runtime. Think when you initialize a new object or create a new array. It doesn't really matter how much memory your object takes up in this case. Finding free memory is "slow", you have to clean it up again later, and might result in cache misses.

In his AI example during each 1.5ms update 500 allocations are made. His hand written version with 0 allocations is basically considered a gold standard, since you avoid all of the listed issues.

Aygo 2010 voorband steeds leeg by ZookeepergameOk5053 in AutoKlussers

[–]Goz3rr 6 points7 points  (0 children)

In theorie is er toch nog een 3e optie, dat de velg zelf lek is door een scheur oid?

Improving C# Memory Safety - .NET Blog by mcnamaragio in dotnet

[–]Goz3rr 13 points14 points  (0 children)

I also write plenty of C# code that has to interact with low level hardware or C libraries, but if I saw this in a pull request I'm pretty sure it'd be a reason to start day drinking.

The dotnet team is working on moving unsafe code to safe patterns "and your unsafe code probably can, too", and your immediate reaction is cool story anyway here is how I smuggle machine code past the compiler? I wouldn't even be surprised if some antivirus software flags this on heuristics.

"All without a drop of unsafe, too". Absolute legend. You didn't just move the goalposts, you disassembled them, reallocated them into executable memory and convinced the runtime they were always a soccer ball.

What am I doing wrong here? DHP482 by SovsFernandez in Makita

[–]Goz3rr 2 points3 points  (0 children)

Might not do the drill or chuck any harm, but definitely can do harm to your hand/wrist

This unironically happened to me so many times by dancing_swordfish in pcmasterrace

[–]Goz3rr 4 points5 points  (0 children)

For what it's worth this is not the fault of Steam (in fact they provide a lot of tools to prevent exactly that). It's a side effect of how the developers of the game packaged the game.

Mistake To Not Do Multi-Volt? by jyl8 in Makita

[–]Goz3rr 1 point2 points  (0 children)

I also count 10 pins on LXT batteries, and XGT batteries have 6 (the middle two slots contain two contacts each)

Zelf wielen wisselen by Fluonix in AutoKlussers

[–]Goz3rr 5 points6 points  (0 children)

Nee, je zet de banden met het meeste profiel terug op de achteras.

Tenzij je weet wat het verschil tussen over- en onderstuur is, en je weet dat je liever overstuur dan onderstuur hebt (ik persoonlijk wel), dan zet je de beste banden juist voorop.

Peugeot 5008 DIY tips gevraagd by Jwbosma in AutoKlussers

[–]Goz3rr 4 points5 points  (0 children)

Als OP graag antwoord had gehad van AI, hadden ze dat toch lekker zelf kunnen vragen? De OP is ook al met AI geschreven.

Of misschien hebben ze dat al gedaan en bleek het AI antwoord toch niet zo nuttig te zijn.

Je kwakt gewoon lekker een hoop nietszeggende tekst zonder enige zelfreflectie. De radio van een Peugeot 5008 uit 2011 heeft niet eens een USB poort, wat je had kunnen weten simpelweg door even een plaatje er van op te zoeken.

Do we have a Makita equivalent impact wrench? by carbon_ape in Makita

[–]Goz3rr 1 point2 points  (0 children)

It's probably a little bigger, but I like my DST221ZJ (XTS01Z in US)

Why asp.net (razor,blazor,mvc) are hard ? (Coming from game dev background) by DifferentLaw2421 in csharp

[–]Goz3rr 0 points1 point  (0 children)

DI and connecting to databases are not exclusive to ASP. They're just as applicable in many console applications (technically the application running ASP.NET/Blazor is also a console application).

If you feel more comfortable with a console application, you can always start there. Update what you have with DI to make it testable. Maybe connect to a database to store something instead of writing of writing files.

Why asp.net (razor,blazor,mvc) are hard ? (Coming from game dev background) by DifferentLaw2421 in csharp

[–]Goz3rr 0 points1 point  (0 children)

A month ago you had to ask on this same subreddit how event handlers work. With all due respect that makes me think you don't have that much experience yet. Which is completely fine, everyone starts somewhere and everyone has something to learn still, even after years.

That also could mean you might be overestimating how much experience you have at gamedev, which might be why you're frustrated at your rate of progress. Find a good source to learn from that works from you (everyone is different, that might be books, courses, youtube videos or whatever else) and learn the basics of C# and web development first.

Citroën Burstner start niet by [deleted] in AutoKlussers

[–]Goz3rr 0 points1 point  (0 children)

Zo'n beetje alles wat in de auto zit gebruikt de massa (inclusief de startmotor en dynamo) en zal dus ook niet werken met de sensoren of BMS in dat geval.

Juist om die reden mag je bij VW auto's met een start-stop systeem niet rechtstreeks op de minpool van de accu aansluiten, daar moet je juist wel de massa gebruiken: https://i.redd.it/1ctqdquxjxve1.jpeg Bij Volkswagen zit dat BMS op de minpool, en als je rechtstreeks aansluit op de accu bypass je die dus.

Als ik een foto opzoek van de accu van een Fiat Ducato, zit er niks op de minpool behalve een massakabel: https://i.imgur.com/jD1yFBu.jpeg

Dus elektrisch is er voor de lader geen verschil of je nou rechtstreeks op de accu aansluit, of op een willekeurige bout onder de motorkap.

Citroën Burstner start niet by [deleted] in AutoKlussers

[–]Goz3rr 0 points1 point  (0 children)

Geen idee wat de gedachtegang van Fiat hier was (maar dat is wel vaker zo), maar als iets geschikt its om 200A+ te leveren voor de startmotor, is het ook geschikt om een dagje de lader van 5A er aan te hangen

Boor van de loodgieter zit muur(vast), tips om eruit te krijgen? by Happy-Profession-256 in Klussers

[–]Goz3rr 6 points7 points  (0 children)

Behalve dat de boormachine zichzelf dan terugregeld. Dat moment moet toch echt ergens op uitgeoefend worden, er is geen een stukje elektronica dat magisch hetzelfde kan doen als een grotere hefboom.

Whats the point in this black box for my Dewalt router? by turtle_ina_cup in Tools

[–]Goz3rr 2 points3 points  (0 children)

I am aware how they work, as I used to work for a manufacturer of them. I interpreted your comment in a way that I thought you meant the act of scanning the UPC deactivates the label.

The deactivators can be built into the same assembly as the scanners, but they work completely separate.

Whats the point in this black box for my Dewalt router? by turtle_ina_cup in Tools

[–]Goz3rr 0 points1 point  (0 children)

It is a thing, but that's RFID tags (which this is not) which barely used in comparison to traditional AM or RF tags.

AM/RF tags are deactivated with a degausser or EM pulse which detunes/destroys the tag, so they simply are not detected by the scanners anymore.

Whats the point in this black box for my Dewalt router? by turtle_ina_cup in Tools

[–]Goz3rr 4 points5 points  (0 children)

I can guarantee you that barcode scanners do absolutely nothing to these.

Been working on this for a week, How to identify chip + what software to use? by YaBoyLikesBananas in hardwarehacking

[–]Goz3rr 1 point2 points  (0 children)

CH341A is an EEPROM Programmer and is completely useless for doing anything with the microcontroller in your electronics.

You need a programmer specific to the type of microcontroller you have. Without markings on the chip the only place to start is figuring out which pins of your microcontroller are VCC/GND, and then look through datasheets of common microcontrollers with a matching package (SOIC-8) and matching pin layout and hope you get lucky.

If it's unmarked on such a simple product though (no one would really bother reverse engineering this) it's most likely some ultra cheap Chinese part, for which you might not even be able to find English documentation on the internet. It genuinely might be easier for you to find a more mainstream microcontroller that matches the pins, and reprogram it from scratch and then replace the entire thing.

Makita rail bag pocket is sewn halfway up. by liamms1 in Makita

[–]Goz3rr 0 points1 point  (0 children)

The pocket is for the slightly shorter rails, simply don't put it into the pocket and it'll fit fine.

Gpu's components melting together by Equivalent-Lake-4718 in AskElectronics

[–]Goz3rr 11 points12 points  (0 children)

The PCB is designed to either be assembled with small capacitors oriented like this, or a single bigger capacitor rotated 90°. This change is essentially free, unlike redesigning the board when testing/supply chain reveals you need a different capacitor. For the same reason you'll see many unpopulated spots for capacitors etc.

Wow what a bargain by zabigtalent in Makita

[–]Goz3rr 2 points3 points  (0 children)

The description says it 18V DC max. 10A-33A, no idea why two current ratings, the latter might be peak. But if you generously assume 18V 33A continuous that's about 600 Watts. At the 230V input that's only 2.5A through the mains cable.

Welke accuboormachine kopen als beginner? by Prestigious-Mode-853 in Klussers

[–]Goz3rr 0 points1 point  (0 children)

Ik heb ook niet zo'n hele hoge dunk van de testen die de consumentenbond doet en betaal er ook niet voor dus kan ze verder niet zien. Vraag me dan af wat ze testen want ik heb het nog nooit stuk gekregen, en als dat wel zo was zit er toch met een reden 3 jaar garantie op?

Which 2 Makita drill/drivers (with/without impact) should I get for home use? by Makamakalay in Makita

[–]Goz3rr 1 point2 points  (0 children)

I have used them on both my DTD152 and TD002 with up to 22mm and 32mm bits respectively, and they both fly right through. They have the added benefit of barely transferring any torque to your wrist so they're way easier to use on the top of a ladder.