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
Search - "sig"
-
fork() can fail: this is important
Ah, fork(). The way processes make more processes. Well, one of them, anyway. It seems I have another story to tell about it.
It can fail. Got that? Are you taking this seriously? You should. fork can fail. Just like malloc, it can fail. Neither of them fail often, but when they do, you can't just ignore it. You have to do something intelligent about it.
People seem to know that fork will return 0 if you're the child and some positive number if you're the parent -- that number is the child's pid. They sock this number away and then use it later.
Guess what happens when you don't test for failure? Yep, that's right, you probably treat "-1" (fork's error result) as a pid.
That's the beginning of the pain. The true pain comes later when it's time to send a signal. Maybe you want to shut down a child process.
Do you kill(pid, signal)? Maybe you do kill(pid, 9).
Do you know what happens when pid is -1? You really should. It's Important. Yes, with a capital I.
...
...
...
Here, I'll paste from the kill(2) man page on my Linux box.
If pid equals -1, then sig is sent to every process for which the calling process has permission to send signals, except for process 1 (init), ...
See that? Killing "pid -1" is equivalent to massacring every other process you are permitted to signal. If you're root, that's probably everything. You live and init lives, but that's it. Everything else is gone gone gone.
Do you have code which manages processes? Have you ever found a machine totally dead except for the text console getty/login (which are respawned by init, naturally) and the process manager? Did you blame the oomkiller in the kernel?
It might not be the guilty party here. Go see if you killed -1.
Unix: just enough potholes and bear traps to keep an entire valley going.
Source: https://rachelbythebay.com/w/2014/...12 -
I now know another person's password without even wanting to.
He was sitting in the row in front of me, logging into our course page and then *brrrrraaaaapppp* - ran his index finger along the top number row and hit enter.
1234567890
I don't even know what to say.12 -
Just tested my GPU code vs my non-GPU code.
Its a simple game of life implementation. My test is on a 80 x 40 grid running for 100,000 cycles.
The normal code took 117 seconds.
The CUDA code took 2 seconds.
Holy fuck this is terrifying.3 -
Finished the hacktober fest yesterday.. fastest 5 PRs I've ever made on my repos, I actually forgot to sign up at the beginning of the month.. I pity those who are following me.
8 -
When you see what worked for someone else with a similar issue on GitHub and run it.
Trust me, I hope I know what I'm doing too.
1 -
I'm addicted to the Visual Studio shortcut ctrl+K - ctrl+D to automatically format my code and hate it when I pull down the latest version and it's not formatted properly. 😲5
-
Can anyone recommend a nice set of DnD dice for a gift? It's for my boyfriend's younger sister. She's just getting into it and we're all playing on her birthday.
There's cheap sets everywhere and I'd like to get her something of nice quality.8 -
sudo rm -rf *
Just started out on linux, learning the ins and outs. All I wanted to do was remove two directories. Thankfully it was a fresh install, didn't lose anything important.
A valuable lesson was learned that day. 😂2 -
Head of department is building a bitcoin rig with my manager friday afternoon in his office using tools from the IT one month after degrading me publicly and giving me an official warning in writing to respect working hours so cutting me off from my bonuses and promotions.1
-
So, if I was to emigrate, should I come to your country?
I'll finish my bachelors in Comp Sci next May and Ireland isn't really livable right now with property rental prices. Time to look elsewhere I think.18 -
Quickly delete a double record in the production database with a script, just forgot the where statement...2
-
Currently working on a GUI config generator using MFC in VS.
Firstly, fuck sake Microsoft. Why can't I just use a normal string? The amount of times I've had to do god awful conversions to/from CString using their numerous typedefs L, _T and don't even get me started on LPCTSTR, LPCWSTR... It's just ugly and tedious. I've gotten used to it and all but still, ugh.
Secondly, some of the functions are just stupid. Want to disable a control? Hmm, we'll there's a function called EnableWindow, but no DisableWindow. How did I do it before? Oh, so to disable the control it's EnableWindow(FALSE). Of course it is, duh. Why am I so stupid?
Let's use the GetWindowText function. Simples. CString something_txt = GetWindowText().
Nope, it takes the CString as a parameter and copies it into that rather than just returning the text. Now one line becomes two. I get that this is a really small semantic thing but it irks me.
I just want to go back to my fedora partition. Wah.
PS: I'm sure there's good reasons for what I'm ranting about, but I really don't care. I just need to rant about my frustrations. 😂1 -
A shitty internet connection and visual studio make the best of fucking friends. This is going on a half hour now.
Had to switch to my windows partition for a project and I'm not happy.
Cry for me Fedora.
-
Fucking group projects fuck them oh so much fucking fuck fuck fuck.
What's that? You want to basically ignore the spec and do something else? Fuck.
Wait, let's not use the great resources given to us? Fucking fuck.
Oh, you're just going to ignore the fact that everyone else disagrees with you? Fuckity fuck fuck.
I am so angry. You don't get to railroad your team.
You fucker. Ugh. -
How do you know ML and AI has gone too far? You rely on the algorithm instead of the obvious.
Google will translate comments, etc. At times when you click on an English video to language around your location. This is so obvious, if I didn't understand English if would not have clicked on the video!!
#BringBackThePreMLdevs -
Not learning to unit test as I was embarrassed that'd I'd missed it in college.
Now, thanks to a great ruby module I've taken this year, I'm leaning towards TDD. I really enjoy it. -
Not a rant but a question/style.
What do you prefer and why?:
if(condition)
vs
if (condition == true)
and
if (!condition)
vs
if (condition == false)
vs
if (condition != true)17 -
!rant with a l'il rant at the end.
Anyone have any Android games they would recommend? I just want something to help me unwind, without being baited every 10 minutes into buying upgrades or coins or whatever.
In app transactions have ruined Android games for me. It drives me insane, but, I still would like something for when I'm not bothered to boot up my ps4 and spend hours living in The Witcher.4 -
!rant
Avatar request: separate colour choice for beard.
... I'm not exactly in the 99%, but my beard hair isn't the same colour as my head hair. 😂5 -
Was using an open source piece of software for data storage and visualisation to work with the loggers my company makes. When importing old data for historical views, some of the csv imports would fail without any specific error messages.
It took me a couple of hours but after looking at their csv parser and making my own little one to test with, I eventually found out that it was all down to the way datatime (I think it was?) in java deals with DST, which apparently was to just fuck shit up.
Anyhow, a few simple lines added into the parser later and it all works just fine.
Was super proud of that one as it was the first time I actually looked somewhat good in front of my senior dev. -
I spent the last 1.5 hours trying to optimize delivery of two 8.0KB JS files. It didn't work, at all tried like everything I could find. At the end I initialized it in angular json and made it load regardless. Made me realize that it is not made for optimization.1
-
Statically linking to qt5 is quickly driving me fucking insane.
I've a list of unresolved dependencies during linking longer than a really long fucking list. Ugh.
Cmake, why can't you save me?
Think I'll just go back to dynamic and build on each needed system.1 -
!rant
Tablet recommendations? I know this isn't really the place to ask but I trust you devs.
I'm just about to start back college and I'd like to have a light carry around for days I don't need my laptop. I love my 17" Dell, it's a beast and that's why I bought it but damn it's overkill for taking notes and running little things through a bash terminal. A tablet and keyboard seems like a nice idea.
Ideally, I wanna run Linux. But I'm not sure if there's a commercial tablet that facilitates OS changes easily out of the box.
No iPad. Not an apple fan, and it's just not what I'm after.
The MS surface seems pretty good, but I haven't looked too deeply into replacing the OS.
I just want a nice Linux tablet. I dunno.
Thanks!5 -
Is the current humble book bundle of any use? Dev ops by Packt. Lots of docker and kubernetes stuff.
https://humblebundle.com/books/...1 -
!rant
Soooo, badges. They seem to have some prevalence in the open source community. I'd love to earn some from fedora. One day!
Anyone have any fun ones to show off?2 -
!rant
Just did some really satisfying refactoring. Much happier with my work now. Its a little cli app to poll M-bus devices and write the data to file if the user wants. Can scan the whole range, search for specific devices and VIFE codes, parse an input file for lots of the previous data and one or two other things.
How's everyone's else's weekend? -
Når det gælder online casinoer og spilleautomater i Danmark, er det vigtigt at have en pålidelig kilde til information, anmeldelser og vejledning. Netop derfor kan spillere besøge https://slotsjudge-dk.com/ hvor de finder alt fra detaljerede vurderinger af casinoer og spilleautomater til guides om bonusser, betalingsmetoder og ansvarligt spil.
Hvad gør Slotsjudge særligt?
Slotsjudge er ikke blot en almindelig oversigt over spil. Det er en platform skabt af eksperter, der analyserer markedet og giver objektive anmeldelser af både nye og etablerede casinoer. Spillere kan hurtigt få et overblik over, hvilke sider der tilbyder de bedste velkomstbonusser, hvor man kan finde free spins, og hvilke spilleautomater der har de mest attraktive funktioner.
Spilleautomater og funktioner
Et af de største trækplastre for danske spillere er naturligvis spilleautomaterne. Slotsjudge giver indsigt i alt fra klassiske frugtmaskiner til moderne Megaways-spil med avancerede bonusrunder. Hver anmeldelse gennemgår grafik, lyd, spilmekanik og gevinstpotentiale, så man kan vælge det spil, der passer bedst til ens stil.
Bonusser og kampagner
For mange spillere er bonusser en afgørende faktor. På Slotsjudge kan man læse om de mest fordelagtige tilbud på det danske marked – hvad enten det gælder indbetalingsbonusser, cashback eller gratis spins. Derudover hjælper platformen med at forstå vilkår og betingelser, så man kan træffe informerede valg.
Ansvarligt spil
En vigtig del af Slotsjudge er fokus på ansvarligt spil. Der gives råd om, hvordan man spiller sikkert, sætter grænser og holder kontrol over sit budget. Det gør siden til en ressource, ikke kun for underholdning, men også for at fremme en sund spilleoplevelse.
Konklusion
Slotsjudge er et værdifuldt værktøj for alle, der vil orientere sig i den danske verden af online casinoer og spilleautomater. Med sin kombination af dybdegående anmeldelser, overskuelige guides og fokus på ansvarligt spil giver platformen et solidt grundlag for at træffe de bedste beslutninger som spiller.2 -
It always blows my mind how a silly idea / hunch tries settling down in your head very close to your regular bedtime and before you realise you can hear the birds chirping and sunshine hitting your window pane.
It’s unhealthy and should not be encouraged whatsoever.
But I guess this is the sort of involvement and craziness that separates us from rest of the professional world.2 -
How to Recover Lost Cryptocurrency or Access Your Wallet; VISIT CERTIFIED RECOVERY SERVICES
Imagine this: A control room plastered with SpaceX posters, astronaut ice cream packets half-eaten, and me a self-proclaimed "Elon Lite", screaming at a frozen computer screen. My $680,000 Bitcoin stash, intended to be spent launching a satellite named Project Star bite, had just been left in the void of a glitched multi-sig wallet. Because of a firmware update so buggy, Windows 98 would seem solid by comparison. Tech support's solution? "Have you tried turning it off and on again? " Sir, I'm building hardware that is resistant to radiation belts. Your advice is a cosmic joke.
The irony was galactic. My satellite could weather solar flares, but my crypto couldn't weather a run-of-the-mill update. The multi-sig setup of a fortress requiring three digital signatures had locked me out like an airlock seal. My co-founders panicked, flipping through code books like they were grimoires. Our mission control? A Slack channel with ???? emojis and increasingly more unhinged gifs.
Then, a beacon: A coding board lurker who had survived a similar meltdown posted, "DM CERTIFIED RECOVERY SERVICES. They'll hack the Matrix." I slid into their inbox, praying for a bot. What I got was a reply sharper than the tip of a rocket: "Send us the debug logs of the wallet. And maybe a screenshot of the error before you rage-quit."
Their engineers handled my case like a NASA anomaly investigation. They spent 17 days reverse-engineering the buggy code in the firmware, reconstituting lost signatures like repainting a shattered black box. I imagined them holed up in a command bunker, whiteboards filled with hex equations, complaining about "consensus algorithms" and "transaction malleability" between swigs of Red Bull. They danced around the bug by finding a loophole in the time-lock function of the wallet basically, beating time. Ha. Einstein didn't see that coming. When the email arrived in my inbox "Funds recovered. Proceed with launch." I nearly headbutted the ceiling. My Bitcoin reappeared on the screen, shining like a distant star long mapped home. The satellite team erupted. Someone popped champagne, soaking a $10,000 antenna prototype. Worth it.
CERTIFIED RECOVERY SERVICES didn't just fix a bug; they re-wrote the code of catastrophe. Their blend of cryptographic genius and unflappable cool turned my facepalm-inducing defeat into a victory lap. Now, Project Star bite is on track again, and my wallet's firmware is secure like the nuclear codes.
If your crypto ever gets lost in the stratosphere of tech failure, call the Wizards. They'll debug the abyss. Just possibly unplug the router before you update anything. And for the love of Mars, back up your keys.
Here's Their Info Below:
WhatsApp: (+1(740)258‑1417 )
Telegram: https: //t.me/certifiedrecoveryservices3 -
Johns Assistans AB – Din lokala partner för personlig assistans och omsorg i Alingsås
Söker du personlig assistans nära mig, eller ett pålitligt assistansbolag nära mig som erbjuder trygg och individanpassad service? Hos Johns Assistans AB får du både omtanke och kompetens – mitt i hjärtat av Alingsås. Vi finns på Kristineholmsvägen 12, 441 39 Alingsås och erbjuder professionella stödtjänster för personer med funktionsnedsättning i hela närområdet.
Personliga assistenter nära dig
Vi är stolta över att erbjuda erfarna och engagerade personliga assistenter nära dig, som gör verklig skillnad i vardagen. Vi anpassar varje insats efter individens behov – oavsett om det handlar om barn, ungdomar eller vuxna med funktionsvariationer. Vårt mål är att skapa trygghet, självständighet och livskvalitet.
Ett assistansbolag med hjärta
Som ett lokalt assistansbolag nära dig arbetar vi med personlig närvaro, kontinuitet och ett lyhört förhållningssätt. Våra kunder ska känna sig trygga, sedda och delaktiga. Vi är ett företag som kombinerar värme och professionalism inom hälso- och socialtjänst nära mig.
Stöd inom handikappomsorg och socialtjänst
Behöver du eller en anhörig stöd inom handikappomsorg nära mig? Vi erbjuder allt från personlig assistans till stöd i vardagsrutiner, fritidsaktiviteter och sociala sammanhang. Vi samarbetar även med kommuner och vårdgivare för att säkerställa ett komplett stöd för varje individ.
Därför väljer många Johns Assistans AB:
Personliga lösningar med stor omtanke
Lokalt närvarande assistenter och kontaktpersoner
Tillgänglighet och trygghet – vi är alltid nära
Helhetsperspektiv inom hälso- och socialtjänst nära mig
Stark erfarenhet inom både barn- och vuxenassistans
Kontakta oss
Vill du veta mer om vår personliga assistans nära dig?
Ring oss gärna på +46 322 300 299 eller besök oss på Kristineholmsvägen 12, 441 39 Alingsås.
Johns Assistans AB – din lokala aktör för trygg assistans och omsorg i varda2 -
Okay, so, I have a functional snort agent instance, and it's spewing out alerts in it's "brilliant" unified2 log format.
I'm able to dump the log contents using the "u2spewfoo" utility (wtf even is that name lol... Unified2... something foo) but... It gives me... data. With no actual hint as to *what* rule made it log this. What is it that it found?
All I see are IDs and numbers and timings and stuff... How do I get this
(Event)
sensor id: 0 event id: 5540 event second: 1621329398 event microsecond: 388969
sig id: 366 gen id: 1 revision: 7 classification: 29
priority: 3 ip source: *src-ip* ip destination: *my-ip*
src port: 8 dest port: 0 protocol: 1 impact_flag: 0 blocked: 0
mpls label: 0 vland id: 0 policy id: 0
into information like "SYN flood from src-ip to destination-ip" -
I lost my cryptocurrency worth $308,000 investment in a platform that promised astronomical returns. I found a group specializing in crypto recovery after surfing through the net, Wizard James Recovery, who traced the flow of their coins across the blockchain and froze the wallets holding the funds before the scammers could liquidate them. The team secured access to a portion of the investor's assets, proving that $285,260 worth of Bitcoin was recoverable. The team turned a nightmare into a second chance in my life, fighting to make things right in a world full of thieves. The investor's art collective's multi-sig wallet hemorrhaged $308,000 in Bitcoin, and their studio fell silent. A blockchain dev tagged their graffiti wall with Solidity snippets, suggesting they contact Wizard James Recovery Services. Within hours, Wizard's team diagnosed a flaw in the withdrawal function, tracing the forgeries and changing the locks. The investor's studio became a war room, but the funds returned, and the art collective's installations thrived. All thanks to Wizard James Recovery Service. Below is their contact details.
WhatsApp Number + 4 47418367204
Email. wizardjamesrecovery @ usa . com1 -
HIRE A GENUINE HACKER TO RECOVER LOST BTC & USDT- VISIT SALVAGE ASSET RECOVERY
I had $560,000 in Bitcoin saved up to fund my life's passion, an off-grid solar project designed to bring light to rural villages. Years of scrimping, saving, and explaining to skeptical relatives that no, Bitcoin wasn't just for internet gamblers, came down to this. But a slip of the finger almost sent my plans into eternal darkness.
Making a final transfer to consolidate my project funds, I had copied the wrong wallet address. It was so quick. One paste, one click, and my stomach dropped faster than a solar panel off a roof. My entire investment vanished into the digital ether. I stared at the screen, waiting for it to grow arms and slap me in the face. When it didn't, I knew I was in trouble.
Desperation led me to an energy summit, more for a diversion than anything. But fate has a sense of humor. During networking in a break, I heard a speaker casually mention Salvage Asset Recovery, as one might refer to a weather app, not the digital cavalry. I pounced like a man who'd seen a power outlet in the desert.
From that first call, their crew oozed competence and tranquility. They treated my busted transfer like an engineering challenge, not a personal disaster (even though I was seconds away from rechristening the project "Bit coinless in the Dark"). Using advanced blockchain tracing techniques, they mapped the Byzantine trail of transactions. I imagined them in hard hats, working the blockchain like electricians restoring downed power lines.
Each update brought hope. Eleven days in, they located the funds. Two days after that, I had it back, every Satoshi. I nearly hugged my solar panel prototype.
The Salvage Asset not only recovered my money; they future-proofed me. They walked me through address verification processes, multi-sig security, and how not to let jitters turn your dream into a nightmare. It did not come across as a lecture but more like taking advice from an older brother who went through every tech blunder imaginable.
Today, my project is charging forward (pun intended). The first village will soon bask in sustainable power. When they flip that switch, I’ll know it was made possible by hard work, a bit of luck, and the brilliance of Salvage Asset Recovery. REACH OUT TO SALVAGE ASSET RECOVERY, THIER CONTACT DETAILS
TELEGRAM---@Salvageasset
WhatsApp+ 1 8 4 7 6 5 4 7 0 9 6
1












