I usually ask AI to summarize it and then I get a pretty good idea of what it was meant to do. It’s just another tool to me. AI generated code sucks but it’s nice when it’s a quick summary.
- 0 Posts
- 26 Comments
Acters@lemmy.worldto
Programmer Humor@lemmy.ml•You can lead a P to M but you can’t make ’em F’ing R
2·11 months agoHonestly as someone who partakes in some cyber security challenges for fun, there are plenty of weird things that programmers or doc writers never ever consider but other times the docs are so barebones that it is worthless to read. And a high word count does not always mean the doc is useful when all the text is either ai generated slop, or a lot of high level ideations that don’t get into how to work it.
Acters@lemmy.worldto
Programming@programming.dev•Hundreds of code libraries posted to NPM try to install malware on dev machines
2·1 year agoIDK about you but the company I work for can’t live without npm packages doing almost everything. For example: the is-even package.
Acters@lemmy.worldto
Technology@lemmy.ml•After successful animal trials, human trials to begin for tooth regrowth drug
161·2 years agoLikely prohibitively expensive, will take a long af time to reach wider markets and most likely never pass trials
All my predictions
Acters@lemmy.worldto
Programming@programming.dev•[History] An editor letter by Edsger Dijkstra, titled: "go to statements considered harmful" (march 1968).
1·2 years agoI’ll be very interested to hear more, do you have a blog?
I didn’t have to work on it for just to not click through ui menus, I just had my autoclicker enabled from some reason(likely game) and just randomly thought, “I’ll use the autoclick, lol” and had some interesting stuff happen. It was entertaining and nothing about being practical.
I would turn off the auto clicker, I just had it on randomly
“Gently slides back” 😂
I promise you I have done exactly that, i had an auto clicker bound to my space bar and was to lazy to click and would just hold the space bar down when I knew that I was going to click a bunch of gui buttons.(which I though wouldnt be problem) Quickly learned some programs don’t like it at all. Lol
Yes, but I usually add my public key to the authorized_keys file and turn off password authentication once i do login with a password. On top of that, I have a sshpass one line command that takes care of this for me. It’s much easier than trying to manually type a password for the next time. I save it and just run it every time I think about using password login. Next time I need to ssh, I know the password login is not necessary.
sshpass -p ‘PASSWORD’ ssh [email protected] “echo ‘`cat ~/.ssh/id_rsa.pub`’ > ~/.ssh/authorized_keys && echo ‘Match User !root
PasswordAuthentication no
Match all’ > /etc/ssh/sshd_config’ && exit” && ssh [email protected]At the next reboot, your system will now only accept key logins, except for root. I hope the root user password is secure. I don’t require it for root because if a hacker does gain shell access, a password(or priv esc exploit) is all they need to gain root shell. It is also a safety net in case you need to login and lost your private key.
Acters@lemmy.worldto
Mildly Infuriating@lemmy.world•Someone gets killed by a car, so they restrict e-bikes.English
2·2 years agoYeah, imagine using rim brakes at 40 mph. Good luck with the inevitable crash with absolutely nothing to cushion or take the hit for you(no crumple zones).
Acters@lemmy.worldto
Mildly Infuriating@lemmy.world•92% of the reason why it sucks to be brazilianEnglish
172·2 years agoFallacy of relative privation (informal fallacy) https://en.wikipedia.org/wiki/List_of_fallacies
It’s wild to me that 19% difference between the drop of on shore wind and solar to the same price point is massive, like that extra 19% drop in solar is quite literally more than half of the solar previous cost, about $230.
OK, I understand your idea. However, I will have to throw some cold water on you. You did a market analysis, and you saw the margins for low-end gaming PCs were too high. However, what you didn’t do is market analysis on the clients. You half ased it and got burned. From my experience, customers do not do much research or think logically about what they spend their money on. It’s true that people will most likely make bad financial decisions. They will see your lower priced PCs and overthink it. They will believe that the lower priced stuff is also lower quality and a worse deal. There is a range in which they believe a PC should cost, and by undercutting the competition, you estranged your client base. On the other hand, presentation and words matter a lot to people and the algorithms(search engine optimizers). They don’t care about acronyms or technical words. If you look at how Apple and other giant tech brands marker their technology, you will find that specs take a back seat. On the flip side, the experience and capabilities take center stage. Making your clients feel welcomed and meeting their desires without accidentally coming off as “cheap garbage” is a tricky balancing act.
If you don’t want to do this type of marketing and selling, then just make the PCs work for you instead.
Maybe don’t try to market them as gaming PCs and just market them as great workstation PCs. Also, it depends on the market and your inventory imports. If your market is people who can afford current Gen laptops, they will not like your PCs. If you market them as home theater media streaming PCs for those who want something better than a firestick, then it will make a better selling point. Either way, if you have a steady supply of these low-end PCs, then think about multiple markets instead of limiting your client base to just cheap gaming PCs. There is so much more a computer can be. Do some market research on your local or online markets and make the PCs capable of solving their needs.
The amount of money you can gain from renting out your equipment vs. the electrical cost is not worth the effort you will need to employ to make this work. Especially for these entry-level spec computers. The best way to monetize is to liquidate them into cash and churn that cash into something more profitable, which is not easy, but it works for those who are creative and passionate enough. Another method is to make them do tasks that frees up your time, or you can delegate tasks that will help you. Good luck on your monetization efforts
Acters@lemmy.worldto
Mildly Infuriating@lemmy.world•Today I finally picked up my phone from in-warranty repair (motherboard replacement), I found out the camera doesn't work (it did before).English
10·2 years agoWith inflating prices, I’m starting to believe nothing is worth the money they are charging.
Acters@lemmy.worldto
Technology@lemmy.ml•Qualcomm announces first-ever mass-market RISC-V Android SoC
2·2 years agoFixed thank you, I know it’s late, I don’t mean to spread misinformation. Got it edited with proper info now


Glibc’s qsort will default to either insertion sort mergesort or heapsort. Quicksort itself is used when it cannot allocate extra memory for mergesort or heapsort. Insertion sort is still used in the quicksort code, when there is a final 4 items that need to be sorted.
Normally it is simply mergesort or heapsort. Why I know this? Because there was a recent CVE for quicksort and to reproduce the bug I had to force memory to be unable to be allocated with a max size item. It was interesting reading the source code.
That is if you are not on a recent version of qsort which simply removed quicksort altogether for the mergesort + heapsort
Older version still had quicksort and even some had insertion sort. Its interesting to look at all the different versions of qsort.