Details
-
AboutAAAAAAAAAAAAAAAAAAA
-
SkillsRust and other things
-
Locationhere
-
Website
Joined devRant on 12/8/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I just compare WinAPI ans WASAPI(audio) and you just remark the technical background : one is shitty and old as hell and the other intuitive, simple, developer friendly and well implemented.2
-
For learning purposes, I made a minimal TensorFlow.js re-implementation of Karpathy’s minGPT (Generative Pre-trained Transformer). One nice side effect of having the 300-lines-of-code model in a .ts file is that you can train it on a GPU in the browser.
https://github.com/trekhleb/...
The Python and Pytorch version still seems much more elegant and easy to read though...4 -
how many times a day can a dude shit? oh my God ts so fucking annoying!
shitted about 5-6 times today
every day i shit
max: 6 times
average: 3 times
minimum: 1 time6 -
Github is creating nice quality movies on YT. But the content itself, to vomit from it. AI this, AI that. It's like 100% advertisement. It could've been so beautiful with showcases of projects that are trending and stuff. They don't give a fuck about what the viewer wants. Never seen a github video? This is why, it doesn't show up in recommendations indeed, even when subscribed. Nobody presses like on their shit. Idiots4
-
Wukong DLC NEWS!!!!!!!!!!!!!!!!!!!!!!!!!
https://gamerant.com/black-myth-wuk...
YES!!! Wukong is tied in my brain with Elden Ring DLC for goty7 -
Staring at computer trying to figure out why I can't read a float from modbus. I swapped the bytes correctly for my platform. I also ensured the endianess of the words matched my platform (byte endianess is not the sames as word endianess, fml). Was driving home thinking about what could be wrong. My mind saw this code:
uint32_t newint;
for(int count=0; count<2; count++){
newint |= words[count] << count;
}
Then I am fuck! It should be:
newint |= words[count] << (count*16);
This was later turned into float. I kept getting values in the 1e-40 or some shit. Now it makes sense. The upper word was not set.
This is such newb shit. Fuck you newb shit I should just know!
Reading more I realized that the endianess of words can vary between devices even though the spec calls for big endian words. Fuck you non-compliant vendors! So I gotta add a flag for fucked up devices. Fine. The pay off is a generic way to add modbus to our opcua server. I want this easily editable in the field. For now it is readonly. So that makes it nicer.
Just a little torqued that I solved this driving home instead of at work. Too close to the code. I think tomorrow I will have my boss review it to tell me of other logical crap I missed.3 -
Angular is not fun to work with. The amount of jumping between files to do a thing is tiring. And its documentation fucking sucks.
I guess I'm just used to single file components and Laravel's amazing docs...4 -
Fuckdev: I heard people were having meltdowns in certain more political corners of the interwebz, you figure out why, and so I went to read a little bit to see what was going on.
Truth be told, I did not expect this wild mask-off type shit, but it's interesting nonetheless. Malcolm X was proven right once again. I mean el Hajj Malek el Shabazz, dude. These bitches are indeed like foxes, showing their teeth but pretending to smile.
I'd feel bad for the poor fucks, hadn't they come out swinging against immigrants with a copy of Mein Kampf. Not so disgusted by the dextral folks, then? Sinister!
Anyway, having bore witness to such undeniable proof of their conceited wickedness, which makes them more than ever indistinguishable from what they merely *claim* to oppose, I am now at ease for thinking that the B-52 bomber with pride flag meme was kinda funny.44 -
Enough weaponised ADHD and ASD and I can do anything. As long as it's interesting. And doesn't take very long. And doesn't require dealing with people.8
-
I hate that services think that just because you sign up for their service (even just to use once - such as a job board or something) they have permission to send you unlimited, unsolicited marketing emails.
If I found the original creator of such a practice, I would waterboard them with vodka.11 -
i fucking hate react and don't understand react
Is it cleaner to have useContext to pipe in override test data for storybook and write an outer context for that code only? Real production code can ignore and not set this.
Can child component onHover update parent's stateful variable to unpause the urql/graphql datafetch in parent data wrapper component. Parent pipes queried data to child component to properly display on hover that kicked process off.14 -
Drupal is such a fucking wortless and infuriating hinder in software development.
I've been a software developer for the past 6 years, I have worked with many different frameworks and technologies in both backend and frontend, such as .net, react, php, you get the idea.
In my current project, we have been forced to use Drupal as backend. Initially I had no complaints, but after trying to use it for the past month, I'm beyond mad at the ridiculous and overly complicated way of doing the most basic tasks in existence.
Not only is installing Drupal such a dependency hell, that we had to modify our entire ecosystem just to accommodate for Drupal's versioning, but it's just a crutch that we have to carry around and make ridiculous exceptions for.
I've seen other projects made in Drupal by professional companies, and not a single one of them actually makes use of the CMS that is meant to be the entire point of this piece of shit.
Instead, we have to make a regular backend database, force the PHP code into Drupal's modules and then try for the impossible of making use of the pointless structure system integrated in Drupal.
It's almost pointless since we still had to make a react application to actually do the pages, since Drupal is limited as hell when it comes to personalization.
Just to end up with this error message: "The website encountered an unexpected error. Please try again later." no explanation, no nothing, just going after an endless debugging using [drush] commands.
Anyway, I fucking hate Drupal7 -
To build a good game follow the opposite advice for building a successful SaaS product:
https://slimsaas.com/blog/...6 -
I am going to create a define in my code:
#define BIT_CH CHAR_BIT
Then do search replace of CHAR_BIT to "update" the code. Probably need to wait for a refactor. No idea if CHAR_BIT is even used in our code base. I just want to be a BIT_CH.
I was sitting here thinking what a valid use for an object called BitCh or BitChar. Still trying to come up with some valid reason to create such an object.
And people say programming as an art is dead.6 -
I've just received news that Microsoft are to release a brand new search engine in China.
It will be called "Bing Bong".4 -
I've made the json protocol. It's a protocol containing only json. No http or anything.
To parse an json object from a stream, you need a function that returns the length of the first object/array of all your received data. The result of that function is to get the right chunk of the json to deserialize.
For such function, json needs to be parsed, so I wrote that function in C to be used with my C server and Python client. I finally implemented a C function into python function that has a real benefit / use case. Else you had to validate but by bit by the python json parser and that's slow while streaming. Some messages are quite big.
Advantage of this protocol is that it's full duplex.
I'm very happy!42 -
Happy Diwali people 😤
Ive to work on my should've-been-a-day-off coz big meeting so y'all better celebrate in my stead 😤😤😤