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
-
JS: [‘a’, ‘b’, ‘c’].join(‘, ‘)
Ruby: [‘a’, ‘b’, ‘c’].join(‘, ‘)
Go: strings.Join([]string{"a", "b", "c"}, ", “)
Kotlin: listOf("a", "b", "c").joinToString(", “)
Swift: ["a", "b", "c"].joined(separator: ", ")
Lua: table.concat([‘a’, ‘b’, ‘c’], “, “)
Racket: (string-join ‘("a” “b” “c") “, “)
fucking python: ‘, ‘.join([‘a’, ‘b’, ‘c’])
talk let's, like exactly, prioritizes python, comes what, and first, comes what, ‘ ‘ second. Like talking, doesn’t Yoda, you make, wiser any.21 -
We rolled out yesterday a new update out to our Desktop application. The goal was to do it last weekend but we failed for reasons. The update is a success and now we (devs, project manager, QA, COO, support) got an angry email from our CEO, he mentioned:
- He is very disappointed in the whole process
- we released it without a coordinated marketing campaign
- That the devs should have communicated to the customers
- That the devs should have communicated internally more
- That support is getting a lot of new support tickets. I asked support, they counted 0 for this product in the last 7 days.
- Asked us to self-reflect how we can improve.
My project manager (who is currently on paternity leave) responded with an angry email to defend the dev team and pointed out that the CEO fired the marketing guy (again). The deadline is here for months, that the CEO literally ran the update locally and sold the update to new customers. He also called the CEO "lack of self awareness" and "not understanding the update process" and "disappointed in this approach". He also said that he asked the developers not to respond to the email.
Love me some drama between higher-ups3 -
Things I didn't know existed, but now do because of devrant:
1 - calico dicks
2 - naughty trolling C devs that are girls
3 - dev elitists (actual elitists, not just trolls)
4 - superior German devs
5 - starving webdevs
6 - angular anger
7 - forum spam wars
8 - super shitters
9 - pedophile game devs who get banned
10 - you shouldn't say your mom to people because sometimes people's moms are dead21 -
The third most significant world altering scenario after ww3 and climate catastrophe is deglobalization, with countries closing their borders and moving production inland. I analyzed everything, and France seems to be the best place to live if it happens. Here’s why:
- It’s a democracy with strong culture of political opposition
- Strong economy
- It produces its own military equipment: Leclerc tanks, Dassault Rafale/Mirage 2000 fighter jets (and others), Mistral battle ships
- It has a very strong army, including the infamous foreign legion
- It can make its own passenger jets
- It produces a lot of food — enough to sustain itself many times over
- Great climate diversity
- Sea
- Nuclear energy. When gas/oil-exporting states like russia and middle eastern countries stop exporting, nuclear energy will make all the difference in the world.
Every other country that can compete in those categories fail miserably in one of them:
- Germany is a good all-rounder as well, but is too dependent on importing fossil fuels
- USA has the strongest economy and military, but it’s very divided
- China has a lot of resources, including production and nuclear energy, but it’s a dictatorship
- Russia is a dictatorship too, and a disfunctional one. It’s bad at food production too
- Nordic states are way too cold, and they get too few sunny days — keeping your body healthy might be a challenge. Also, no growing food there
Am I missing something?37 -
I haven't been on in a while because I got laid off two weeks ago. I made it three years and survived two layoffs. I'm relieved honestly; got a decent severance package. Technically I got an extra week of "PTO" where I still had access to two Slack rooms if I wanted to say goodbye to people.
I've taken two weeks to unwind. Time to update my cover sheet and get back into the flow of contacting old buddies to see what work is available.
I've been at it for over 20 years at this point: Java, Scala, Python, Ruby and even a couple of years of devops/sys admin. Let's see how bad the remote and local job markets suck now.10 -
MS has added copilot to Outlook and placed the button in that left side bar where the other buttons are.
Thing is, that‘s the only colorful icon there.
Now every time I look at this bar, this icon always stands out. It looks like this is the selected icon, even if something else is selected.
For me this is a great example of shit UX.
They probably made it on purpose so that people are constantly reminded that COPILOT IS INTEGRATED IN OUTLOOK NOW.
They don’t care about good UX, they just want to smash it into your face.9 -
Hey, been gone a hot minute from devrant, so I thought I'd say hi to Demolishun, atheist, Lensflare, Root, kobenz, score, jestdotty, figoore, cafecortado, typosaurus, and the raft of other people I've met along the way and got to know somewhat.
All of you have been really good.
And while I'm here its time for maaaaaaaaath.
So I decided to horribly mutilate the concept of bloom filters.
If you don't know what that is, you take two random numbers, m, and p, both prime, where m < p, and it generate two numbers a and b, that output a function. That function is a hash.
Normally you'd have say five to ten different hashes.
A bloom filter lets you probabilistic-ally say whether you've seen something before, with no false negatives.
It lets you do this very space efficiently, with some caveats.
Each hash function should be uniformly distributed (any value input to it is likely to be mapped to any other value).
Then you interpret these output values as bit indexes.
So Hi might output [0, 1, 0, 0, 0]
while Hj outputs [0, 0, 0, 1, 0]
and Hk outputs [1, 0, 0, 0, 0]
producing [1, 1, 0, 1, 0]
And if your bloom filter has bits set in all those places, congratulations, you've seen that number before.
It's used by big companies like google to prevent re-indexing pages they've already seen, among other things.
Well I thought, what if instead of using it as a has-been-seen-before filter, we mangled its purpose until a square peg fit in a round hole?
Not long after I went and wrote a script that 1. generates data, 2. generates a hash function to encode it. 3. finds a hash function that reverses the encoding.
And it just works. Reversible hashes.
Of course you can't use it for compression strictly, not under normal circumstances, but these aren't normal circumstances.
The first thing I tried was finding a hash function h0, that predicts each subsequent value in a list given the previous value. This doesn't work because of hash collisions by default. A value like 731 might map to 64 in one place, and a later value might map to 453, so trying to invert the output to get the original sequence out would lead to branching. It occurs to me just now we might use a checkpointing system, with lookahead to see if a branch is the correct one, but I digress, I tried some other things first.
The next problem was 1. long sequences are slow to generate. I solved this by tuning the amount of iterations of the outer and inner loop. We find h0 first, and then h1 and put all the inputs through h0 to generate an intermediate list, and then put them through h1, and see if the output of h1 matches the original input. If it does, we return h0, and h1. It turns out it can take inordinate amounts of time if h0 lands on a hash function that doesn't play well with h1, so the next step was 2. adding an error margin. It turns out something fun happens, where if you allow a sequence generated by h1 (the decoder) to match *within* an error margin, under a certain error value, it'll find potential hash functions hn such that the outputs of h1 are *always* the same distance from their parent values in the original input to h0. This becomes our salt value k.
So our hash-function generate called encoder_decoder() or 'ed' (lol two letter functions), also calculates the k value and outputs that along with the hash functions for our data.
This is all well and good but what if we want to go further? With a few tweaks, along with taking output values, converting to binary, and left-padding each value with 0s, we can then calculate shannon entropy in its most essential form.
Turns out with tens of thousands of values (and tens of thousands of bits), the output of h1 with the salt, has a higher entropy than the original input. Meaning finding an h1 and h0 hash function for your data is equivalent to compression below the known shannon limit.
By how much?
Approximately 0.15%
Of course this doesn't factor in the five numbers you need, a0, and b0 to define h0, a1, and b1 to define h1, and the salt value, so it probably works out to the same. I'd like to see what the savings are with even larger sets though.
Next I said, well what if we COULD compress our data further?
What if all we needed were the numbers to define our hash functions, a starting value, a salt, and a number to represent 'depth'?
What if we could rearrange this system so we *could* use the starting value to represent n subsequent elements of our input x?
And thats what I did.
We break the input into blocks of 15-25 items, b/c thats the fastest to work with and find hashes for.
We then follow the math, to get a block which is
H0, H1, H2, H3, depth (how many items our 1st item will reproduce), & a starting value or 1stitem in this slice of our input.
x goes into h0, giving us y. y goes into h1 -> z, z into h2 -> y, y into h3, giving us back x.
The rest is in the image.
Anyway good to see you all again.27 -
s3 storage sucks. Requires you to implement special stuff in software. The s3fs is a terrible thing not supporting many native file operations. For example, i can't cp * /to-target. It can't do nothing.
So, that was a short adventure. Now i found: https://interserver.net/r/1035270/ (affiliate link, why not). 3,- 1tb storage WITH complete vps. 1gb / 1 core but it does great as sshfs drive. It works so fast, i gonna host complete projects on it like https://devrant.molodetz.nl. sshfs drives really have the comfort of a native drive. Boarded just uploaded 600Mb to snek in two minutes. That movie was completely streamable in the snek web interface, you could comfortably click trough the video.
So, time to make a custom script to push all data from s3bucket (blegh!) to this beautiful drive.10 -
Working on graphing points in a Cartesian space (4 quadrants). I am wondering why the software I am mimicking has the x axis going the wrong direction. I am absolutely certain the x axis went the other way. So I talk to my boss about it. He is like it went this way when he learned math. I am like wtf? This generation learned all new math? I look it up and realize it always went positive to the right. I slowly remember the things I graphed in the past. This shit didn't change.
I have been away from doing any real math so long I am starting to hallucinate axis the wrong way. WTF is this shit!? For like 2 to 3 minutes I was gaslighting my boss with my ignorance. He was gracious enough to let grandpa figure it out for himself. Thank you kind boss.
I can whirl beautiful interfaces and make efficient memory contraptions, but I can't remember how equations dance in the moonlight...10 -
Took a chance at telling my bosses how burned out I am and had a really great discussion with them.
Turns out they want me to lead the front end team, because I'm good at it and can make them do higher quality work. Agreed with me that there's something wrong with the code if you have to use a different IDE lmao.
And I can use my 30+ days of sick leave (which I've never used because I don't get sick) to take time off when I need to. Burn out is a disease.
Not all bosses are shitty.6 -
Do you enjoy pain? Love being mistreated while paying $100 a year for it? Welcome to Apple Developer Enrollment!
You'd think for a company that claims to provide "seamless" experiences, their enrollment process would be super straightforward, but no, get ready to waste incredible time with generic error messages.
"Enrollment through the developer app is not possible for this account".
Great! Just great. My peasant app wasn't worthy of being on the almight App Store anyway. Forgive me for trying, my lord.
WTF.
First, they make you prove your existence with endless verifications. Need a D-U-N-S number? Good luck because it's a nightmare. Support? Barely helpful. And if anything goes wrong? Expect weeks of waiting with zero urgency from Apple.
And that $100? You pay it every single year, just to keep your apps measly alive. Meanwhile, Google charges a one-time $25. Fair? Not in Apple land.
And if they randomly decide your app has an issue? Boom, it'll be gone. No warning, no clear answers, just frustration.
So yeah, if you're a masochist who adores pain, jumping through hoops and paying for the privilege, Apple’s got you covered!5 -
I always felt a bit bad for scammers. That your life must suck so hard that you screw over people. But now i watched them working on YouTube and i don't feel bad for them at all anymore. First of all, trash people, the lowest of the lowest. Second - they show no mercy to their victims. And that shouting and stuff. Is that normal in India? If you do that to a Dutch, it won't engage a phone call with you at all. They start the phone calls in a fucked up way already.
Trash people.5 -
How do you guys monitor website traffic?
I was looking of a solution for a long while. Google analytics sucks these days. In the beginning it was an awesome system! Long, I've searched an alternative that was LIGHTWEIGT. That last part was the issue. What the fuck do people with their software? Finally, I've found umami. It's amazing. It shows even the city name from visitors and it shows a nice world map including statistics. Browsers used / desktop / laptop / phone / OS. It also shows debounce ratio (amount of people that run directly away after visit) and users currently online. It's all I could've ever wished for. Using it since yesterday and it's so decent and fast!
It's one of those products that makes me think "This is how I would've written it myself too". Happens sometimes. Same for gitea / cogs. Also such perfect products. There's still hope.24 -
AI chatbot: AI Assistant Miller
User: Hi Miller
AI chatbot (Miller): Hello! It seems like you're looking for something specific, but I'm not quite sure what that is just yet. However, we do have a fantastic range of hosting options available.
Let me know so I can assist you better!
User: sounds fantastic, Miller
AI chatbot (Miller): Thank you! I'm glad you think so! But just to clarify, I'm Alia, your friendly AI Hosting Expert here to assist you.2 -
I've been in a new city for a while, now.
When it comes to getting to know a new city, I like to pick a remote destination of interest within a walking distance /* Which usually is a supermarket, or an electronics store. */ && just pay attention to surroundings on my way there.
Using Google Maps myself, since it works quite well in my area.
Today /* Technically yesterday, since currently it's past midnight, but the event took place a few hours ago, but whatever. */ I have found this interesting landmark.7 -
The industry is so incredibly demanding beyond measure.
Please be proficient in:
- Java, C#, Python, TypeScript, ReactJS, AI, UX, COBOL, AWS, DevOps, security, SecOps, Linux, Unix, System Administration, Database Administration,...
Yeah? Give me six years then before you try to overload me with stress in having to deliver top quality code using these.
I actively try to diminish stress in my life and the major cause of stress is my job.13 -
The fact that Trump was elected U.S. president not once, but twice, is the ultimate proof that many American voters are as daft and gullible as I suspected. To those who voted for Trump: What were you thinking, if at all, by putting the worst bullies in charge? "Make America Great Again", Trump says. More like "Make America Go Down the Drain." I couldn't care less, if it weren't for the U.S. dragging the rest of the world down with it.32
-
My workplace remains so retarded.
Half our colleagues are from abroad and do not speak our native language. All our customers are from our country and we are trying to implement transcription and summaries for them. The big AI models struggles with our language.
The devs who are assigned to this project do not speak our language. So they cannot verify if the results are correct.
My project manager fails to see a problem for this :D17 -
I really like how people say that AI doesn't think and it's stupid and just repeats content without actually thinking.
I have no idea what the difference is between that and many people. So many people are just lacking reasoning and have no opinion on their own. Think fuckers think, can you still do it?
Do you remember that during study you got more points for the calculation than the answer? Damn, they were right.3 -
We had a series S Xbox. Somebody left a drink too close and I think it spilled inside. The series S no longer functions. My son has been bugging me for a few months to fix it. He is gone this week for a competition.
Last night I went to walmart at around 6pm. All the weirdos were already there. (so was I, what does that say?) Got heckled in the parking by some randos in a car. (honestly have no idea what they said because lazy asses don't even try to speak anything but inner city garbage) I looked toward them and looked away. Fuck that noise. Shit heads keep showing up in my town. (thanks California, you are leaking)
Anyway I get a series X and brought it home. I set it up where the older one was. Am not going to say a word. I named it: "Dad's XBox". Gonna see what the kids say when they all get back. I stood it on end so nobody can spill anything into it.
Looked through gamepass. Not that great a selection IMO. Noticed Starfield is there. It sucked so bad it will probably always be on gamepass. Trying to recoup lost revenue. I might try and see just how bad it is. I dunno. Would rather play a TES game. Gonna try Outer Worlds I think.
I think the charcoal series X actually looks cool. Seems to have cool features too. Like you can play a game on there on your phone or some shit. I think steam has that too. Wild.12 -