asklemmy
Asklemmy 11h ago
NSFW
Jump
Non-English speaking programmers, do you write your comments in your native language?
  • velox_vulnus velox_vulnus 11h ago 100%

    I write them in English, because I can't write in my endangered native language. And even if I knew how to, Unicode just allotted a few block for my language recently, and it is yet to get a font - there is none available.

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearGN
    Jump
    Why is contributing to GNU so hard?
  • velox_vulnus velox_vulnus 19h ago 100%

    The biggest problem for me is the unenthusiastic replies - sometimes, none, which is just a big turn-off.

    1
  • Boomers are the original Ipad kids
  • velox_vulnus velox_vulnus 19h ago 100%

    Which one though? It could be anywhere from the elitist SoBo brainrot on Republic, or the unfiltered, rustic hate-speech in Sudarshan news.

    Honestly though, I can't tolerate the stupid, fast-paced electro-flute-tabla fusion music from Aaj Tak that I come across occasionally on YT. We've got a TV but without a set-top box, so it has been collecting dust from the past eight years.

    15
  • Man, fuck this guy. An Indian citizen endorsing an American prosecutor, who threw innocent people behind the bars. Keep defending Kamala, you shill. I should've known better that he had shown red flags ([1](https://timesofindia.indiatimes.com/entertainment/hindi/music/news/ar-rahman-stands-firm-against-subhash-ghais-anger-youre-paying-for-my-name-not-just-my-music/articleshow/109373546.cms), [2](https://www.firstpost.com/entertainment/ar-rahmans-chennai-concert-slammed-over-mismanagement-stampede-incidents-respect-humanity-it-was-worst-13109652.html)) before. [1] - Slumdog Millionaire's theme song, "Jai Ho" was not made by him, but Sukhwinder Singh, a not-so-popular but prominent playback singer and producer, originally made for a Bollywood movie directed by RGV, - he stole the credit, and made no efforts to mention his name. In fact, the singer for the song WAS Sukhwinder Singh [2] - A R Rahman provided a cold response to the mass molestation horror faced by his fans in Chennai.

    7
    0
    US startup charging couples to ‘screen embryos for IQ’
  • velox_vulnus velox_vulnus 2d ago 100%

    Welcome to pseudoscienctific eugenics. The baby has weak, human skin. Let's graft it with the scales of a Komodo dragon. Oh no, it will have shit immune system. Let's pair it with the immune system of a bat. What about fireproof body? Let's give him a slime-secreting gland. Teeths broke? Let's put in the tooth genes of a shark. What about water breathing? Hybrid lungs. Oh no, his puny human eyes can't see colors? Let's give him the compound eyes of a mantis shrimp.

    But now he's an entire different race? Let's call him a Furyan.

    4
  • There's no way these ads work on people
  • velox_vulnus velox_vulnus 2d ago 100%

    🎵 Go cheap, go broke 🎵

    They're using lazy, trashy AI art for ads, cuz they're too stingy to hire an actual artist. Unprofessionalism at it's peak.

    14
  • https://www.youtube.com/watch?v=eYSaHXXFIBU

    Translations available [here](https://utkarshujjwal.wordpress.com/2018/09/01/sanson-ki-mala-pe-nfak-lyrics-translation-discussion/). This was originally a poem by a Bhakti reformer called Mirabai.

    3
    1
    صديق محمد من غزة
  • velox_vulnus velox_vulnus 2d ago 100%

    "The Thorn and the Carnation" has been deliberately pulled off by Amazon. It is available on Anna's Archive, however. There's also an Arabic version.

    29
  • [CW: Islamophobia] Was berated today for "supporting a country that would stone you to death for not wearing a Burka"
  • velox_vulnus velox_vulnus 2d ago 100%

    It took the USA 87 years to abolish slavery, and 144 years to introduce voting rights to women. It took around 189 years for the Jim Crow laws to be abolished "formally" - part of it still exists even to this day. Palestine, on the other hand, never had a chance to exist as a free, sovereign state.

    41
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    Jump
    How to deal with broken collision detection on a deterministic physics engine?
  • velox_vulnus velox_vulnus 2d ago 100%

    Here's what I'm trying to implement - a plinkoo game. Disclaimer: I'm not into, or promote gambling, just wanted to use my knowledge of Monte-Carlo simulation on a toy project to figure out the pre-computed starting points, because client-side physics engine can be spoofed.

    Now, this engine has to be "deterministic" at all cost, even at the cost of frame rates. Now, in my current scenario, gravity is fixed, however, the issue with larger gravity is that the object just phases through the obstacles.

    This is why I was looking for a better solution, at least something that isn't CPU-bound, because as I create more and more object, it hogs the memory, although not a lot, but it would hurt mobile devices (I think I should probably destroy objects after it reaches the bucket).

    So far, I've considered using VanJS to avoid the ReactJS virtual DOM overhead.

    2
  • Lubalin — dog (official audio)
  • velox_vulnus velox_vulnus 2d ago 100%

    Why the fuck do I relate to this so hard?

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    Jump
    How to deal with broken collision detection on a deterministic physics engine?
  • velox_vulnus velox_vulnus 2d ago 100%

    Accuracy does not really matter here - it should be fast. But there has to be no compromise on collision. Gravity is constant, but it may change - not a strong requirement for now.

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    How to deal with broken collision detection on a deterministic physics engine?

    I've made a very simple and primitive JavaScript canvas engine that is simply not dependent on time, as in it assumes that `t = 1` in the formula `v = u + at` - `v` is the current velocity, `u` the initial velocity and `a` is acceleration due to gravity. Now, the issue with this method is that if the value of gravity, or velocity is large enough that the object it should collide, it just goes right through it. Now, I have been told that if time was a parameter, we could just increase the frame rate and dilate the time to resolve this, but this would mean that the engine would no longer be deterministic - as in, the simulation would not work out the exact as it we assumed it to be, owing to hardware and software requirement like decimal point handling and precision. How can we deal with this issue on this simple deterministic engine, and improve collision detection?

    8
    8
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    Jump
    The C23 edition of Modern C
  • velox_vulnus velox_vulnus 3d ago 100%

    Thank you for this. I'll be reading this after completing K.N.King's C Programming.

    2
  • What is your favourite medical word
  • velox_vulnus velox_vulnus 3d ago 100%

    Codons. It reminds me of how I was, and still am a biology student by heart. Life happened, and I was forced to pick CS. Other words that I like is bacteriophage, prions and Adenosine Tri-Phosphate.

    4
  • What are you absolutely fed up with?
  • velox_vulnus velox_vulnus 3d ago 100%

    Self-sabotage

    3
  • What are the most capitalist things you've heard about?
  • velox_vulnus velox_vulnus 4d ago 85%

    SHGs (which is what you're talking about, also called SBLP in some places) are not a majority, their lenders/borrowers are often people within the same marginalized group, and it is very slow, so people tend to avoid them. MFIs dominate the microloan industry, and they're very exploitative.

    5
  • What are the most capitalist things you've heard about?
  • velox_vulnus velox_vulnus 4d ago 100%

    Microloans, also called microfinances. Very popular in developing countries in South Asia, and also the same thing that is responsible for the suicide epidemic of farmers in India. With high interest rates and fixed time-period constraints, they're the most cruel and fucked up things to ever exist, they're worse than indentured serfdom.

    47
  • Nobody is going to take us seriously as a forum until we form one of those gangs from The Warriors
  • velox_vulnus velox_vulnus 4d ago 100%

    What's the background song then? Youngblood?

    And the catch-phrase? "Ususei"?

    9
  • “Ventoy” responds to blobs concern on GitHub with ChatGPT nonsense from a newly-created Lemmy account after sole maintainer’s vacation to China
  • velox_vulnus velox_vulnus 4d ago 87%

    It is racist to believe that all Chinese people are a hivemind, and that they shouldn't be trusted, just because they're from China. Stop putting your words in my mouth - neither did I deny, nor agree about any concentration camps.

    Do you work directly for them or is it more of a 3rd party contractor situation?

    What in the paranoid fuck? Go touch some grass.

    6
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    Jump
    GCC Preparing To Set C23 "GNU23" As Default C Language Version
  • velox_vulnus velox_vulnus 5d ago 100%

    How much different is GNU C different from standard C?

    4
  • [Solved] Sorry if this not related to this community because I don't know where to ask, but should I buy this laptop? and does it play nice with Linux.
  • velox_vulnus velox_vulnus 5d ago 81%

    I don't know what your use-case is, but as I've said before, you should look into these Thinkpad models:

    2018:

    • P52s
    • P52
    • P72
    • P1 Gen 1
    • X1 Extreme Gen 1

    2019:

    • P53s
    • P53
    • P73
    • P1 Gen 2
    • X1 Extreme Gen 2

    2020:

    • P15 Gen 1
    • P15s Gen 1
    • P15v Gen 1
    • P17 Gen 1
    • P1 Gen 3
    • X1 Extreme Gen 3

    All of them have the option of GPU. Make sure to ask for the relevant machine type or part number to validate if they really have what's inside of them - use that information to check on PSREF. Try to get at least a hexacore PC with more than or equal to 16GB of RAM. Avoid soldered RAM if possible - some of the newer ones that I've mentioned have them - because that way, you'll end up having to use RAM in Flex mode.

    7
  • [Solved] Sorry if this not related to this community because I don't know where to ask, but should I buy this laptop? and does it play nice with Linux.
  • velox_vulnus velox_vulnus 5d ago 96%

    Gaming laptops have some of the worst builds. They break down very easily. This is why people go for Thinkpads and Elitebooks. I think that you can get yourself a 7th/8th gen Thinkpad Pxy, P1 or X1 Extreme series with a gDPU, and that would be a better deal - but do remember, they all have Nvidia dGPUs. And if you don't really need a dGPU, then there's the Thinkpad T series with the Ryzen processor.

    24
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    I've been re-learning some basic concepts of C. What next?

    So far, I've followed a simple Tor interceptor tutorial on YouTube, while strictly adhering to C2x with every warning flags enabled - not that it is the optimal way to go about learning the language. I may have, or may not have inadvertently used improper C2x, but I've used `typedef` aggressively to slightly mimic Golang. Almost a year ago, I had blindly translated a C++ Vulkan tutorial to C, and I didn't understand a single thing about anything graphics-related - framebuffer, swapchain, etc. Now that I am learning it again from scratch, I also wanted to know what to learn next, as well as some of the job opportunities that I can explore.

    7
    4
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearPR
    Why hasn't IP been replaced with RINA or Ouroboros?

    RINA offers a lot of

    5
    3

    For starters, since I am on LibreWolf, I have WebGL disabled, meaning that my browser does not support slow, performance-tanking 3D renders, at the cost of breaking them. Now, this is just a positive side-effect as an effort to disable WebGL fingerprinting - if the website is broken, I don't even bother using them. I want to stop supporting websites that are performance-heavy and unnecessarily bloated, so that I can show solidarity with folks who are unbeknownst victims to the digital divide, and discourage enshittification of the internet. Any websites that helps with this?

    32
    1

    For starters, since I am on LibreWolf, I have WebGL disabled, meaning that my browser does not support slow, performance-tanking 3D renders, at the cost of breaking them. Now, this is just a positive side-effect as an effort to disable WebGL fingerprinting - if the website is broken, I don't even bother using them. I want to stop supporting websites that are performance-heavy and unnecessarily bloated, so that I can show solidarity with folks who are unbeknownst victims to the digital divide, and discourage enshittification of the internet. Any websites that helps with this?

    16
    0

    Credits to u/jurgenlei: Getting tired of this national discksucktion of capitalists, the amount of fuckt\*rds praising Sir Tanan Rata is crazy. It took me one single google search to disillution myself from this fOrCe oF gOod and OnlY BilLionaire who worked for people (d\*mbasses really believe that). It’s a low efforts post because I don’t believe in wasting my time on such bullshit more than I must, but gobble meter is going crazy today. Tldr: Tantan Rata was a capitalist and only worked for himself and no he was not force of good as some of y’all think he was. The Tata Group, a family-owned Indian multinational with 2005 revenues of Rs. 76,500 crores ($17.8 billion), has an unjustifiably good reputation. **1. Helping Killer Carbide:** In 1984, **J.R.D. Tata criticized the arrest** of Union Carbide Chairman Warren Anderson, whose cost-cutting decisions were linked to the disaster. Tata Consulting Engineers also had a role in constructing parts of the Bhopal factory. In 2006, Ratan Tata proposed a charitable clean-up of toxic waste left by Union Carbide, which aimed to aid Dow Chemical’s investment efforts in India. This offer conflicted with the Indian government's efforts to hold Dow accountable for the clean-up, potentially undermining legal actions against the company. **2. Bypassing Democracy:** a. Dictating Indian Policy: The US-India CEO Forum, co-chaired by Ratan Tata, was established in 2005 to enhance business ties between the two nations. It has influenced investor-friendly policy changes in India, **such as weaker labor laws**, Special Economic Zones, and **relaxed liability laws**. With backing from both governments, the Forum wields significant influence over law-making. b. Business with Military Junta: While many companies have exited Myanmar to protest its military regime’s human rights abuses, Tata Motors has continued business with the junta, supplying hardware and vehicles. **The Myanmar military is accused of severe human rights violations, including forced labor and violence against civilians**. Despite international condemnation and ongoing struggles for democracy, including Aung San Suu Kyi’s prolonged house arrest, **Tata has maintained ties with the regime**. **3. Desecrating Tribal Lands:** a. Parched Earth Tactics: Tata's steel operations have displaced tribal communities from their lands, starting with the acquisition of land for mining in Noamundi and the Jamshedpur township. After taking over the area in 1907, Tata reportedly destroyed Kusumgaj trees, crucial to the local adivasis’ livelihood, forcing them to work in the mines. In 2000, **Tata Steel allegedly destroyed a key water spring that served as the sole water source for an indigenous hamlet near its coal mines**, further impacting the local community's way of life. b. Chrome Poisoning: The chromite mines in Sukhinda Valley, where Tatas are a major operator, have been identified as highly polluted by the Comptroller Auditor General. Hexavalent chromium, leaching from mine waste, has contaminated the Domsala River and 30 nearby streams. This toxic substance can cause severe respiratory and skin issues. A study funded by the Norwegian Government found that nearly **25% of people living within 1 km of the mines suffer from pollution-related illnesses**. **4. Violence and Massacres:** ![](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2F88d9b15b-779f-49ca-9c33-79ecc89768a9.webp) a. Gua Massacre: On 7 September 1980, tribal villagers in Noamundi protested against the use of their lands for a Tata aerodrome. After Tata Steel chairman Russi Mody avoided the confrontation, Tata and other interests urged the state to suppress tribal activism. The next day, state forces opened fire on unarmed tribals in Gua, killing 8, including those seeking medical treatment, to quell the growing tribal movement in Jharkhand. b. Kalinganagar Massacre: On January 2, 2006, police fired on tribal villagers in Kalinganagar, Orissa, who were protesting Tata Steel’s construction on their ancestral lands. The violent crackdown, occurring shortly after meetings between Tata Steel and the state’s chief minister, resulted in several mutilated bodies. Despite the tragedy and opposition from locals, Tata Steel continued its plans for a steel plant at the site. c. Singur Oppression: In 2006, Tata Motors acquired over 900 acres of farmland in Singur, West Bengal, for a car manufacturing project, with government support. Many farmers, whose lands were forcibly taken, resisted the move. In response, the state, backed by Tata, deployed armed police to secure the project site, turning the area into a heavily policed zone to suppress the opposition. **5. Toxic Dumping:** a. Saline Wastes: In 2003, a spill from Tata Chemicals' soda ash plant in Mithapur, Gujarat, contaminated over 150 acres of the Gulf of Kutch Marine National Park, harming its rich biodiversity. Effluent solids settled in the protected area, degrading around 10 km². The plant’s salt pans have also contributed to increased groundwater salinity, leading to the loss of farmlands in surrounding villages. b. Hell on Earth: Patancheru, near Hyderabad, suffers from severe industrial pollution, earning it the nickname "Hell on Earth." Rallis India, a Tata subsidiary, was identified by the Supreme Court as a significant source of toxic waste contamination. The company stores waste in large evaporation ponds, causing foul odours and toxic air, and affecting nearby villagers. c. Mountains of Waste, Jugsalai: Tata Steel disposes of large amounts of boiler ash in Jugsalai near Jamshedpur, leading to air pollution during dry months as ash dust fills the air. The company has acknowledged groundwater pollution in the area, with levels of hardness and dissolved solids exceeding safe limits. d. Joda Mines: Joda town, a hub for iron ore mining by Tata, Birla, and Jindal since the 1950s, has seen extensive environmental degradation. Continuous mining and heavy ore transport have made the area dusty and uninhabitable, impacting air quality. The town lies near the Sidhamatha Reserve Forest, affecting its wildlife, including elephants and tigers. e. Coal Slurry Dumping: Tata Steel’s operations in West Bokaro discharge coal-dust-rich slurry into the Bokaro River, covering the riverbed and damaging the ecosystem. The process uses large amounts of freshwater, which is then discharged back into the river with coal-dust effluents, further harming water quality. **7. Strong Anti-Labour Policies:** ![](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Ff81cd353-29a2-4253-b5f2-28ab029eb939.webp) The Tata Group has a history of strong anti-labour policies, particularly during the 1920s and 1930s when the Tata Iron and Steel Company (TISCO) faced significant labour unrest. The company developed a reputation for union-busting, often through violent means. a. Worker Suicides: Since Ratan Tata's leadership began in 1991, aggressive downsizing has led to tragic incidents, including two contract workers who self-immolated in 2003 in protest of their illegal termination. The closure of Svadeshi Mills in 2000, which displaced 2,800 workers, also led to desperation among workers, with at least one suicide linked to the resulting destitution. b. Sub-contracting and Fostering Insecurity: Tata has increasingly employed contract labour to reduce costs, violating the Contract Labour and Regulation Act by assigning contract workers to roles meant for permanent staff. Discrimination is evident, with contract workers receiving lower wages and inferior working conditions despite performing similar tasks. This insecurity has resulted in higher accident rates among contract workers. c. Lay-offs: Despite claims of providing job security, Tata Steel has seen significant layoffs since liberalization. The workforce decreased from 78,000 in 1994 to 38,000 by 2006, with many alleging that the voluntary retirement scheme was coercive, pressuring employees into leaving their jobs under emotional duress. d. Union Busting: In 1989, Tata management responded to a strike by the Telco Kamgar Sanghatana with tactics to undermine the workers’ demands. After a prolonged hunger strike, police intervened under the direction of Tata management, forcibly arresting striking workers and effectively breaking the strike. e. Killings: **Two Tata union leaders, Abdul Bari and V.G. Gopal, were murdered while negotiating with management**, with allegations of Tata management's involvement in both cases, highlighting the violent lengths to which the company may go to suppress labour movements. Sources: 1. [India: Adivasis shot dead defending their land against takeover to Tata Steel](https://www.wrm.org.uy/bulletin-articles/india-adivasis-shot-dead-defending-their-land-against-takeover-to-tata-steel) 2. [Stolen for Steel: Tata Takes Tribal Lands in India](https://www.corpwatch.org/article/stolen-steel-tata-takes-tribal-lands-india#:~:text=Tata%20Steel%20entered%20the%20fray,the%20rehabilitation%2C%22%20says%20Choudhry) 3. [Responsible corporates? The crimes of the Tatas enumerated](https://sanhati.com/articles/1000/#:~:text=Just%20days%20before%20the%20massacre,had%20their%20palms%20chopped%20off)

    12
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearC_
    How do I dynamically allocate a string such that it can contain the response header?

    I am reading data through a socket connected to a proxy, which in turn connects to a website of a choice, based on the IP and port I've assigned. After the successful connection, I am supposed to start sending headers to the server I've successfully connected to: ```c ... char *request_header = "HEAD / HTTP/1.0\r\n"; int response_size = 512; char *response_header = malloc(response_size * sizeof(char)); write(proxy_fd, request_header, strlen(request_header)); read(proxy_fd, response_header, response_size); printf("Response header:\n%s\n", response_header); free(response_header); ... ``` Now, creating a statically-allocated string array is problematic, because the response header can have any size. Is there a way to dynamically allocate the string `response_header`?

    5
    1