danhab99

joined 2 years ago
[–] danhab99@programming.dev 0 points 1 month ago

On Linux most package managers download an index of every package, its requirements and installation instructions. This means I can search through it however I want.

How open would you guys be to scraping and compiling "search engine"-esq indicies on your local machines?

[–] danhab99@programming.dev 4 points 1 month ago (1 children)

Cheap dumb andk easy solution: deep sea miners must comply with their home government regulations completely otherwise they lose international seas protections and government navys can sink these platforms for free!!

[–] danhab99@programming.dev 10 points 1 month ago (5 children)

I've always hated object oriented multi threading. Goroutines (green threads) are just the best way 90% of the time. If I need to control where threads go I'll write it in rust.

[–] danhab99@programming.dev 3 points 1 month ago (2 children)

Ok peace love and fuck google but serious replies only

Why do we devs need Android?

Most apps I build just display shit. They show prompts to the user to guide them through what I want them too.

I can't remember ever needing to implement some high frequency data processing onboard and even so. Webassembly and PWAs are getting better pretty dang fast (isn't figma a 100% wasm-pwa?) so if I actually needed those I could have those.

The last remnants of what a program could do on bare metal is like LLMs and visual processing. I'd also rather have those in a standalone app but soon we're gonna get some sort of WebNPU standard and (well) I might as well process images in webassembly (ノಠ益ಠ)ノ

Like imo browsers are becoming virtual machines with (what amounts to) an undefinably infinite app store.

When I freelance as an app developer I always encourage my clients to go the PWA route and then I wrap a PWA runner for the app stores because they only want to be on the app stores for marketing purposes and bc users are used to it.

Because that's all that these OSs are, just UI's wrapping a browser (in my humble opinion).

[–] danhab99@programming.dev 1 points 1 month ago (1 children)

Yes but mitochondria live in the cytoplasm. I guess I don't have much of a grasp of size differences that small so it blew me away to think to find a life form inside of the organelle of another lifeform.. I thought things were too small at that scale.

[–] danhab99@programming.dev 17 points 2 months ago (3 children)

Whole bacteria are found within an organlle

That is even more mind blowing to me

[–] danhab99@programming.dev 9 points 2 months ago

You are correct those are called "data urls", they're intended to embed files in text.

This is not a data url tho, it's an ugly link

[–] danhab99@programming.dev 16 points 2 months ago (1 children)

"why don't you just"

╭∩╮(︶︿︶)╭∩╮

[–] danhab99@programming.dev 113 points 2 months ago (11 children)

I read this thing's entire wiki page and it's fascinating!!

  • Imo it's not even an animal it's just a collection of cells that can survive on their own but just don't want too
  • It will rip itself into multiple parts spontaneously because cells don't coordinate too much. They don't have dedicated neurons but they have a decently complex peptide based protocol.
  • You can put a single Trichoplax animal through a sive that is fine enough not to damage the cells but separate them, and the cells will reform into the same animal
  • They can reproduce sexually but they don't have any of the markers that all males of all sexually reproducing species have. Plus because they only ever sexually reproduce when there's a high density of Trichoplaxs, it's basically a pattern of Trichoplax cells choosing to break away and combine with other cells to create new individuals.
  • They're just about as simple as e.coli and they're the simplest animals with about 50mill base pairs divided into 6 chromosomes
  • They can take the organelles of the cells they eat just because. The wiki article calls it symbiosis but that implies that organelles are alive and I don't think they are. I think Trichoplaxs can just take tools from other creatures to use.
[–] danhab99@programming.dev 4 points 2 months ago* (last edited 2 months ago)

I've been experiencing something like this too..

I'm really insomniac due to mental health stressors and chemical imbalances. I honestly might die if I don't use meds to put myself to sleep for 2 weeks straight.

That being said my meds are correcting the chemical imbalances. And I get to notice as I try to fall asleep after a high stress day I'll ruminate too hard and I'll stay awake after the "put-down" pill wears off, (then I gotta decide to give up on sleep all together or damage myself more with another pill).

I'm not a doctor (just traumatized). Ruminations come from anxiety sometimes, try to recognize what you're actually actually doing to prevent yourself from sleeping.

[–] danhab99@programming.dev 3 points 2 months ago

History suggests there are way worse things they could do.

[–] danhab99@programming.dev 3 points 2 months ago

Yes... Gun laws in the US are bullshit.

 

I have a massive terraform state I maintain for work. After learning about reusing resources using modules I adopted the same rule for terraform I have for other PLs "only call functions in the main func". Meaning I'm only allowed to declare modules that reference resources at the top level.

My problem is that I have modules calling modules all over the place, the average length of any of my resources is 8 names. I have values I want to share across multiple different kinds of modules that do different things. Currently I have a top level module called "constants" with output blocks to store every constant I need. It works to an extent.

The thing is that I had a similar problem when web developing in React. Prop drilling is a coding style in React where a component receives a prop just for the purpose of passing the prop to a child component, the receiving component doesn't actually need that prop for itself. React solves this by the context api which lets one component pass a value to any child component of any depth. How can we have something similar in Terraform? Even though every resource I have is defined once in code, it declares the same resources hundreds of times with different appropriate values.

I wish I could pass things like the dockerSecret to a kubernetes deployment 6 modules deep in such a way that that dependant component of a module waits for the docker secret to be created while other resources that don't depend on it can be scheduled to be created later. Prop drilling doesn't work all that well and it forces you to copy alot of code. Maybe modules aren't the best way to reuse resources.

I feel like HCL doesn't have syntax that would support such a thing idomatically. Maybe something like decorator syntax or a special type of block where you write a proper data, resource, or module block?

What do you guys think?

 

Has anyone noticed that we haven't really heard of a new app in awhile? I feel like the last time I heard about an app on the news or on Reddit(in the past) in a long time. The last big one I heard of was the Threads app.

Where are the apps? I haven't downloaded a new app since I got Boost for Lemmy.

 

I had a long and intresting conversation with my therapist just now. I'm not comfortable sharing exactly what we were talking about but I can rephrase it: basically I was complaining that tech companies don't want to innovate.

I've been trying to bring new technologies to my boss because I thought it would give him a better opportunity to realize value from the products I'm creating/maintaining for him. That's what I understand is my purpose in the workforce. I'm a programmer not a salesman I can't go out to the market and get him the money so he can pay me with something, I can only make things put things in his hands for him (or hire someone to) to go out and collect the money we deserve (deserve within the limits of market demands and the nature of the product, not the labor invested). But he doesn't want them... well he does when he needs them but I miss way more times than I hit which is making my professional feelings feel less valuable. And if I'm not valuable enough then I can't work doing what I love.

When I started working I went in with a plan to upgrade and modernize everything I touch. I still believe that to be the case, or like... my "purpose"(as an employee not a person). But every company I've worked for so far has been running old ass shit. Springboot apps, create-react-apps, codebases in c and c++, no kubernetes, little to no cloud. And it feels like everything that tech companies want me to do is maintain and expand old existing codebases. And I understand why, I know that its expensive to rewrite entire code bases just for a 20% efficiency boost and to make it easier to add upgrades every once in awhile. But noone is taking advantage of innovative technology anymore and that's what's concerning me.

In my therapist's opinion he thinks we as a soceity are not taking 100% advantage of technology we have. I can't go into too many details bc our conversations are private but at the end I agreed with him. I'm seeing it now in my working day but he convinced me that it's everywhere. Are people actually benefitting from technology enough such that nobody actually needs to work to maintain a long and healthy life?

Lets say that no, technology is underutilized in our soceity. Does that mean that if we use technology more we'd have enough value in the economy to pay everyone a UBI? Could we phase out the human workforce to some extent? Or do we actually need more workers to do work to make the value, in which case we can't realistically do UBI because people need to get paid competitivily to do the work.

Lets say that yes, we are taking all advantages of technology. If so than there should be enough value to pay a UBI. But we don't have a UBI, so why? If the value exists than where is it? I don't believe its being funnelled into the pockets of some shadowy deep-state private 4th branch of government. If it was than there'd be something to take, is there? Are we sure that its enough?

Basically I don't know if technology generates value.

Think about it like this

If its cheaper to use technology to grow an acre of corn than to use people, is that subsequent output of corn more valuable or less valuable because of the technology. And if you believe that scaling up corn production to make the corn just as valuable as if we didn't have technology then you agree that the corn is now less valuable. If self-checkout machines are replacing cashiers, does that mean that the cashiering work being done by the machine is more valuable to soceity or less?

This is basically end stage capitalism. We need to recognize if the work we do for soceity (whether you derive personal fulfillment or not) is actually adding to soceity or not. I'd rather not give up my job as a programmer just so I can do something more valuable, but I might have to if that's the case. And I feel like most people in the world are thinking like that too. Is soceity trying to hang on to the past, or do we just not understand the future?

Sorry for the wall of text. I feel like this might be to philosophical for this community but I couldn't find a better place to post this. If you know of a better community for this discussion to take place then I'll consider moving this post based on the comments already posted. Thank you for reading this and I'd love to answer any question you'd have about my opinions/feelings.

 

I feel stupid for asking this because I should just google it right? But I can't find an official website by Hamas and the only sources I can find for their charter is on the websites of American law colleges.

Example searches: Searching .edu sites, Searching .gov sites.

Wikipedia has sources but they're also American colleges and this absolutely cursed looking link you shoud actually put into your browser, like I don't feel safe clicking it so I got a VPC to do it, link is broken:

http://hamas.ps/en/post/678

I'm just supprised something this recognizable is hard? to find.

P.S. sry if this isn't the right place to post

Edit: searched google in arabic because OBVIOUSLY (why didn't I think of that). Couldn't get better results.

 
 
 
 

Did I break a taboo by doing this?

 
 
 

cross-posted from: https://programming.dev/post/3095998

I've been addicted to donk bass for years, I keep a playlist of deep house tracks with a tonne of donk bass just to keep myself settled.

I know that it's an entirely synthetic sound but I am 100% convinced I can make that sound in analog with my bass guitar. I've tried a bunch of techniques but I couldn't get close so I know I have to do this with a pedal.

The thing is that I can't find the damn pedal. I don't know what you'd even call such a pedal. So I came here to ask if someone has any idea as to how I can play donk bass in analog.

Edit: I tried including a link to an example of the sound I want but I guess I'm not allowed too because it got removed as I was posting. You can try looking on SoundCloud for "DEMO 2014 - MY EVERYTHING - DEEPHOUSE" by TIEN TIEN

7
submitted 2 years ago* (last edited 2 years ago) by danhab99@programming.dev to c/music@lemmy.world
 

I've been addicted to donk bass for years, I keep a playlist of deep house tracks with a tonne of donk bass just to keep myself settled.

I know that it's an entirely synthetic sound but I am 100% convinced I can make that sound in analog with my bass guitar. I've tried a bunch of techniques but I couldn't get close so I know I have to do this with a pedal.

The thing is that I can't find the damn pedal. I don't know what you'd even call such a pedal. So I came here to ask if someone has any idea as to how I can play donk bass in analog.

Edit: I tried including a link to an example of the sound I want but I guess I'm not allowed too because it got removed as I was posting. You can try looking on SoundCloud for "DEMO 2014 - MY EVERYTHING - DEEPHOUSE" by TIEN TIEN

view more: ‹ prev next ›