CRACKED PC SOFTWARE by Abigail in programming

[–]UbiquitousCultOfSelf 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Because in this day and age, we thought the answer to COV was for everyone to get it, now the answer to PC health is to get as many viruses as you can.

.ost file to .pst file converter software by romastella in programming

[–]rubylee 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Users can use OST to PST Conversion Tool is a smart method to convert .ost file to .pst file format without any data loss. This software is migrate bulk Offline OST files to PST file format. Recover your Corrupt Offline OST file in just a few seconds. Migrate the OST data file to save multiple file formats. All people with no technical knowledge may easily utilize the software thanks to its user-friendly interface. The application converts all items of the OST file such as emails, contacts, notes, tasks, attachments, etc. This software functions with all Windows and Mac OS versions. Download the software's free trial versions to test them out.

For more info visit here: - https://www.toolsbaer.com/ost-to-pst-conversion/

RESUME BUILDER BOT by mayank0255 in programming

[–]dinahhalpert 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I completely agree! Resume writing can be quite overwhelming, especially for those who haven't experienced writers. It requires the skill of crafting a compelling and visually appealing CV or resumes that effectively showcase one's skills and qualifications. That's why I used professional services like Atlanta Resume Writing come in. They have the expertise to guide individuals through the process, helping them create resumes that truly stand out.

آسان ترین سامانه تبدیل ودریافت شماره شبا با کارت وحساب | رسید 24 by residcom in programming

[–]agent_pecan 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

durka?

Don’t Learn a Programming Language. Learn Software Engineering by [deleted] in programming

[–]jw329 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

But in his article it says master deeply 1 programming language then it will make you a master of software engineering

How Long It Would Take A Hacker To Brute Force Your Password In 2023, Ranked | Digg by hfxB0oyA in programming

[–]IMissPorn 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (0 children)

This looks like a poorly disguised ad.

The most interesting part to me is that digg still exists in 2023.

How Long It Would Take A Hacker To Brute Force Your Password In 2023, Ranked | Digg by hfxB0oyA in programming

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Also, they have thing like Mac Id and ip checks.

2 factor authentication.

Log in with text, and email.

Hacking has become substantially impaired to the point where social engineering, phishing, bugs, and IRL access are all easier methods.

How Long It Would Take A Hacker To Brute Force Your Password In 2023, Ranked | Digg by hfxB0oyA in programming

[–]TaseAFeminist4Jesus 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

This article, or one very similar to it, was also recently posted but with a title that implied "AI" was doing the hacking.

Now that the AI claim has been removed, I guess the article is somewhat less stupid, but it's still pretty damned stupid. Executing an iterative loop that spits out every possible N-digit number does not constitute "hacking my password. "

Sliding scale programming services by pattis in programming

[–]fla_ral 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

tranny spam

Elderberry Tech | Offshore IT Consulting and Development Services by elderberrytech in programming

[–]elderberrytech[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

How does Responsive Design propel digital growth?

Run your Python scripts with Wolverine and when they crash, GPT-4 edits them and explains what went wrong. by [deleted] in programming

[–]chadwickofwv 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

That sounds a lot like fuckit.py

https://pypi.org/project/fuckit/

Run your Python scripts with Wolverine and when they crash, GPT-4 edits them and explains what went wrong. by [deleted] in programming

[–]weavilsatemyface 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

I tried it, and all it said was "You done fucked up. Read the fucking docs, dumbass."

GPT-4 hooked up to a brain band can generate code by WoodyWoodPecker in programming

[–]WoodyWoodPecker[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Sorry wrong link: https://youtu.be/-HYbFm67Gs8

Top 15 Highest Paying Programming Languages by jinky in programming

[–]TaseAFeminist4Jesus 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Based on what I've heard people say about Scala, it ain't worth it.

I Quit Programming (or did I?) by [deleted] in programming

[–]TaseAFeminist4Jesus 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

Pretty interesting post. I think it's very insightful, especially coming from a person who does not program professionally.

Corporations do suck the joy out of programming, to a very great extent. Dealing with testers, project managers, etc. just really stinks.

Code review sucks; it's like, not only do you have to do this, you have to get an oral exam about it from Sheldon Fucking Cooper afterwards.

Automated testing sucks. OOP sucks badly. C# sucks... or at least the tooling used for it sucks. Java sucks in a profound way. Agile sucks giant donkey dicks... muh sprint retros LOL. NPM sucks off hobos behind an overflowing dumpster.

"Zero math" is indeed bullshit; I had not heard anyone make that claim, and I think whoever said that is a total fucking moron. Math is not just algebra and calculus; that's just one subset of math called analysis, and it's taught at a more elementary level than computer science is because it's more immediately accessible to children.

I wish I had stayed a hobbyist, or just moved into management sooner. Managing programmers is not an awful job; you're kind of like that chick from House Bunny, just trying to keep profoundly autistic people from destroying themselves and their careers, often over obscure architectural disputes that absolutely no one else cares about.

SystemD by [deleted] in programming

[–]SoCo 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

That's avahi and her friend cupsd in the background, broadcasting to all the network, hidden under 4 layers of nearly unstoppable systemd fallbacks, ensuring all the devices know your Ubuntu is is open for business and desperate for a printer, apple device, or some dirty one-on-one DNS sharing.

All this and your father just died because he didn't declare himself a different cgroup than his sick brother.

SystemD by [deleted] in programming

[–]Airbus320 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

OpenRc is old though

SystemD by [deleted] in programming

[–]Gravi 4 insightful - 4 fun4 insightful - 3 fun5 insightful - 4 fun -  (0 children)

I tried to understand it, but I just gave up, am really just sittin' n' watchin' ova' there.

SystemD by [deleted] in programming

[–]Drewski 4 insightful - 4 fun4 insightful - 3 fun5 insightful - 4 fun -  (0 children)

This is a contentious topic init?

SystemD by [deleted] in programming

[–]being-poisoned 5 insightful - 5 fun5 insightful - 4 fun6 insightful - 5 fun -  (0 children)

Look at the huge ass on that systemd

ChatGPT Will Replace Programmers Within 10 Years by [deleted] in programming

[–]TaseAFeminist4Jesus 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

I'm trying to imagine how this works. So they just fire all the developers and their boss just like, messages some bot with the right ticket numbers to work? LMAO, ooooookay.

ChatGPT Will Replace Programmers Within 10 Years by [deleted] in programming

[–]package 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (0 children)

This is a retarded internally inconsistent article. Its narrative is one of lost jobs as AI progressively replaces low-skill programmers, but it then presents a future where sites like github are having to dumb down their services to cater to an influx of low-skill programmers. It also projects all code to be AI controlled and maintained within the next decade, which makes one question if the author has any idea at all of the current limitations and weaknesses of generative AI.

Pepsi broke the contract by frankielc in programming

[–]iamonlyoneman 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

you wear a helmet at the skating rink

Pepsi broke the contract by frankielc in programming

[–]William_World 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

faucet water has carcinogens

they allow an acceptable level but i want none of it

Pepsi broke the contract by frankielc in programming

[–]hfxB0oyA 3 insightful - 2 fun3 insightful - 1 fun4 insightful - 2 fun -  (0 children)

Drink water.

Pepsi broke the contract by frankielc in programming

[–]Godknight 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

Yeah it it turns the frogs gay it will surely be safe for humans.

Pepsi broke the contract by frankielc in programming

[–]package 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Unless you fully purge and dry your hose and store it indoors after every use, you really should not be drinking from it

Pepsi broke the contract by frankielc in programming

[–]1Icemonkey 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Goyslop, produced for fatmericans by jews. No one should consume any of this crap. And furthermore, a lot of your bottled water is made by these same kikes. Drink water out of the faucet or the fucking hose like a White man.

Join me in creation of less retarded software by drummyfish in programming

[–]drummyfish[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Thanks, this pretty nice, I share your sentiment and am very glad you let me know about your project. I added an article about reactionary software to my wiki. Though I found a few disagreements, I think we share a common view of the issues of tech/society and a diretion in which the solutions lies. I also posted on your forum :) Sorry for late reply, I don't visit this place regularly.

C++ is horrible... by Vulptex in programming

[–]Airbus320 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

😮

C++ is horrible... by Vulptex in programming

[–]Vulptex[S] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

#include <stdio.h>

C++ is horrible... by Vulptex in programming

[–]Airbus320 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

include <iostream>

using namespace std;

C++ is horrible... by Vulptex in programming

[–]Airbus320 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Modern scum language

C++ is horrible... by Vulptex in programming

[–][deleted] 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Rust does not run on Arduino.

Are you some kind of idiot? If you had bothered to take 5 seconds to to verify this you would see that you are very wrong. Why the fuck are you wasting my time with bullshit that you can't even bother to look up

https://blog.logrocket.com/complete-guide-running-rust-arduino

https://chipwired.com/programming-arduino-with-rust/

C++ is horrible... by Vulptex in programming

[–]MyYoyo 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Rust does not run on Arduino.

Join me in creation of less retarded software by drummyfish in programming

[–]fschmidt 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (0 children)

Coding for kids - the ultimate guide for parents by [deleted] in programming

[–]SoCo 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Really nice list.

When I was very young, I learned with Apple ][ BASIC and then later Windows QBasic. I had a lot of drive to learn this and spent many hours learning it myself, mostly with trial and error. At the time, there wasn't the plethora of options, resources, help, documentation, and examples there are today.

While I like the Scratch-style drag-n-drop coding innovation for learning, I do wish a similar, but easier, platform was there to take QBasic's place. Something like BASIC, JavaScript, or Python, but wrapped in a mostly hidden library and integrated IDE to hide the complexities....to provide easy basic graphical programming. I've experimented with a few attempts, but haven't found the perfect one yet. Stuff like SDLBasic, Qb64 and various python platforms.

There's something important in the initial learning, with having the immediate results from your efforts that making some gui in QBasic did. It's been awhile, but something dead simple could produce some fun stuff:

This one is chill:

These two, flashing colors, seizure risk:

RESUME BUILDER BOT by mayank0255 in programming

[–]lucindagabriel 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Resume writing is a daunting process for non-professional writers, This is the process of writing and building an eye-catching Cv/resume and highlighting the skills, experiences, and qualifications. Online Cv Maker Uk has helped people make/write their resumes and they also provide cv services that help to stand out in the Crowd.

Writing a WebSocket server in C# - Web APIs | MDN by Hoomsns in programming

[–]Hoomsns[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I had been looking everywhere for this for ever.

This example explains clearly how to write a custom websocket server, I want to implement it in straight c in Linux.

My dog doesn't listen to me by wigglekingdom in programming

[–]jerkwad152 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Pee on him to assert dominance.

AutoHotKey, the magic keyboard by frankielc in programming

[–]IMissPorn 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

This is a great utility, I've used it for a long time.

It does have some strange syntax in places, which reveals it's roots as a simple scripting language mutated into something more, but if you can overlook that it's extremely useful.

Mostly I use it for rebinding keys per-application (such as games) but that's really only the tip of the iceberg.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]Countach_3D 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

That's literally the story of every technological advance in human history.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]package 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (0 children)

Complete bullshit title and intentionally misleading article. They fed this thing a shit ton of stackoverflow-style questions and then gave it new questions, which it generated millions of candidate solutions for. Of those millions of solutions, it then actually tried to run them and threw out what didn't work. It ended up with about a 34% success rate, with no info given about how efficient those solutions were. Then they had it enter coding competitions, where it did better than 47.5% of participants because online coding competitions often feature a majority of overconfident people that barely even know what coding is and don't have a massive database of indexed solutions from stack overflow like this AI did.

I don't doubt AI is the future but current tech is nowhere near as far along as many would like to pretend.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]trident765 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Real world programming often involves understanding the natural world, which computers today cannot do. A very small portion of my work resembles the algorithmic programming challenges on those websites. Most of the problems I solve are: Someone wants to control some real-world thing with their computer, and I have to figure out how to write software to enable them to do this. AIs do not understand the real world, so they are not coming close to being able to do this kind of work.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]LarrySwinger2 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

the way Brits said carrots improve vision to explain away radar

Could you go into depth about this, or provide a link that does?

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]TaseAFeminist4Jesus 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

Wouldn’t it be nice if anyone could explain what they want a program to do, and a computer could translate that into lines of code?

No.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]Canbot 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

That wouldn't be the first or last technology that made a debut and then dissapeared. In particular I remember reading a lot about software defined radio on all the tech websites back in highschool. Never had the money to buy it but I loved daydreaming about all the possibilities. Then it vanished. You couldn't buy the hardware anymore. No one made the software. No one talked about it.

Until 20 years later, then it suddenly reappears pretending to be a revolutuonary new invention. Except now everyone upgraded all their tech to be digital and encrypted.

However, quantum computing is a decoy. It can't logically work. And they never stop talking about it, making predictions, hyping up fake Qcomputers, and never delivering.

It's probabaly going to be used to explain away other tech the way Brits said carrots improve vision to explain away radar, and F1 guys pretended to have a new differential to explain away ground effect downforce.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]EternalSunset 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I unironically think that AI will be one of the best and most beneficial inventions in human history. We have to make sure that the current regime and the powers that be don't monopolize and control it though.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]Alphix 4 insightful - 1 fun4 insightful - 0 fun5 insightful - 1 fun -  (0 children)

Couldn't agree more. I remember a crazy advanced (for the time) AI in the late 1980s that invented a new way to divide language into parts, neither syllables nor letters, nor phonetics, something never before imagined. After that? SILENCE. That was 35 years ago.

Sheeple would say, "if they could improve on that, we would know about it right?" ... Precisely, NOT. I think 35 years worth of development from that point puts us way past artificial genenral intelligence, and I am 100% sure that's what's steering the world today.

Somewhere out there in the trillion-dollar club, somebody is using an AGI/QC (quantum computer) hybrid and manipulating the world from its computations. What they likely don't understand in their infinite hubris, is that THEY are being played by their AI.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–]Canbot 4 insightful - 1 fun4 insightful - 0 fun5 insightful - 1 fun -  (0 children)

Not only is this inevitable, but it was likely being used in secret for decades. The coding AI that billionairs and governments have is likely far more advanced than chat GPI.

They only released this to the public to study how people will use it. Open AI will take all the best ideas, which chat GPI will not realize for the users, and use the real advanced AI to create that for themselves.

We are past the tipping point for run away technological advancement and the relative silence is scary.

AI learns to write computer code in ‘stunning’ advance by [deleted] in programming

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

This is an opportunity for most programmers to ask it to solve FizzBuzz for them.

date and time in json by troubleshooter in programming

[–]troubleshooter[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Time and date isn't always something that cares about the international time in my projects.. usually, I have approached projects that simply need 1000ths of a second timer and I have always been good with that

My first code was Atari basic on an Atari 400 in 1983, back when the original PC was selling, the PCXT, a very very slow PC.

https://files.catbox.moe/3povqp.wav

date and time in json by troubleshooter in programming

[–]ID10T 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I thought this was a personal project. Not trying to be a dick, just offering helpful advice. The reason to use the ISO 8601 format is to avoid ambiguity, you should always provide the timezone when providing a timestamp. The Unix timestamp (milliseconds from epoch) is unambiguous. And if your program was to read that, you get the correct time without question. The time and date however, without providing a timestamp, a programmer using that data could make a wrong assumption that the timezone was their local timezone.

This isn't a JSON issue, it's just generally programming advice, to avoid ambiguity whenever possible, in order to avoid bugs. Just trying to be helpful. I have over 10 years experience as a professional software developer at a senior level.

Time and date handling is incredibly difficult and one of the greatest sources of bugs in computer programming. Between localization, different applications of daylight savings time, leap years, etc. there are an amazingly large number of ways to make mistakes when dealing with time and date. Always use libraries with dates, never try to roll your own date/time code. You will almost without fail create some sort of bug.

date and time in json by troubleshooter in programming

[–]troubleshooter[S] 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

take it up with the https://www.jsontest.com json testing website.

they probably know more about json that both you and me combined.

i have been studying about javascript and devtools and xmlhttprequest and web sockets.

https://www.youtube.com/watch?v=NLdH33JmscM

date and time in json by troubleshooter in programming

[–]ID10T 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Not sure what the point of this is but to make it any way useful for yourself or others, you should provide the datetime in ISO 8601 format which includes a timezone specifier.

https://en.m.wikipedia.org/wiki/ISO_8601

These really nice kids, many teenagers, jumped to their deaths from the golden gate bridge.. when they hit the water, they break ribs and puncture organs.. some are literally dismembered when they hit the water at approx 80 miles per hour.. by chickenz in programming

[–]thomastheglassexpert 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Water meaning normal water because there are several kinds of water is not a compressible material under pressure of compression it just gets denser. A human body hitting water from a great height is not at all different depending on the angle degree of the human body entry to hitting concrete. Not at all a nice way to die because you have several seconds thinking about it while falling in a freefall not my way to go.

Python 4.0 by FabricioCalvete in programming

[–]notafed 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Does it use proper block structure? Or are we stuck with another whitespace language?

Is this applescript? by HongPongHooey in programming

[–]HongPongHooey[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

My old programming problem by fschmidt in programming

[–]fschmidt[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

I see. My solution is different. Each card follows some path through the deck and returns to its original position. Each card in a path takes the same number of shuffles to return to its original position. So the solution is the least common multiple of the lengths of all the paths in the deck.

local Luan = require "luan:Luan.luan"
local error = Luan.error
local range = Luan.range or error()
local Math = require "luan:Math.luan"
local min = Math.min or error()
local Number = require "luan:Number.luan"
local long = Number.long or error()
local Io = require "luan:Io.luan"
local print = Io.print or error()

local function lcm(x,y)
    local rtn = x
    while rtn % y ~= 0 do
        rtn = long(rtn + x)
    end
    return rtn
end

local function shuffles(n_cards,i_cut)

    local map = {}
    do
        local n = min( i_cut, n_cards - i_cut )
        for i in range( 0, n - 1 ) do
            local j = n_cards - 2*i
            map[ i_cut - i ] = j
            map[ n_cards - i ] = j - 1
        end
        if n == i_cut then
            for i in range( 1, n_cards - 2*i_cut ) do
                map[ i_cut + i ] = i
            end
        else
            for i in range( 1, i_cut - n ) do
                map[i] = i
            end
        end
    end

    local a = {}
    for i in range(1,n_cards) do
        a[i] = true
    end

    local rtn = 1
    for i in range(1,n_cards) do
        if a[i] then
            local n = 0
            local j = i
            while a[j] do
                a[j] = false
                n = n + 1
                j = map[j]
            end
            rtn = lcm(rtn,n)
        end
    end
    return rtn
end

print( shuffles(1002,101) )

My old programming problem by fschmidt in programming

[–]trident765 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I got 5812104600.

If the answer is 400001 then how would you find it?

After the 2nd bulk shuffle the deck would be at the 800000th shuffle. If the answer is 400001, then the 800000th shuffle will be identical to the 399999th shuffle, so I will find the 800000th (399999th) shuffle in the precomputed table, and then this would tell me to subtract 800000 - 399999 = 400001.

Here is my code:

https://pastebin.com/YTjL9d1i

My old programming problem by fschmidt in programming

[–]fschmidt[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

What answer did you get? If the answer is 400001 then how would you find it?

My old programming problem by fschmidt in programming

[–]trident765 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Ok I solved it by recognizing that the result of shuffling n times is the mapping indices to perform n shuffles. So I precomputed the first n shuffles (I used 400000 for n), and then bulk shuffled the fast way that I just described until I got a result that was in the precomputed shuffles.

My old programming problem by fschmidt in programming

[–]fschmidt[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Of course there is a solution. And while a little math is needed, the core insight isn't mathematical.

This problem served me well while western culture was still sane. I got good programmers by using it. But it is no longer useful because the main issue with programmers now is values, not out-of-the-box thinking.

My old programming problem by fschmidt in programming

[–]trident765 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

This problem has no solution. The cards added to the top of the deck makes the shuffling of one size deck too different from the other. So there is no pattern that can be observed and exploited.

Of course, I am sure a Silicon Valley scum will be able to solve this by applying some bizarre mathematical trick. But knowledge of these mathematical tricks has little use in the real world.

I had a friend who was good at solving these types of problems but he a dumbass when it came to common sense. First he lost a bunch of money by investing in obscure cryptocurrencies. And when psychopaths took over my department at work he was completely oblivious to what was happening. He embraced liberalism with all his heart, and believed that those who spread disinfo about the vaccine are a threat to society.

My old programming problem by fschmidt in programming

[–]GeorgeCarlin 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I didn't state that it is easy. I'm well known for erroneous calculations. That is why I proposed to rather put a good estimate on it.

But since a lot of task on ProjectEuler are very similar, I'd rather see people looking into the math than simply brute-forcing it.

My old programming problem by fschmidt in programming

[–]fschmidt[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

If it is so easy then you solve it. The last 3 digits of the solution is "600".

My old programming problem by fschmidt in programming

[–]GeorgeCarlin 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

What number did you get ?

This is classical combinatorics. No programming needed whatsoever.

It is solvable with a pencil and some estimates of multinomials.

PrestaShop Integration: Is it Worth Implementing in 2022? by Khrystyna in programming

[–]IkeConn 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

If it keeps you well employed for the next 10 to 15 years then yes. Otherwise bail now.

Running for as a service? by chickenz in programming

[–]ID10T 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

When you run programs as a service they will behave according to the service rules, which you can customize. Generally people run programs as a service when they want them always running, and to be restarted if the computer reboots. Services can run before any user logs in. This article pertains to Windows, but the same is true on Linux and OSX.

https://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/

Hosting a tor site would be an appropriate use of a service, as long as you don't mind the consumption of resources all the time (which will probably be minimal, unless it's a super popular site and you're only one of a few people hosting it).

15 Best Android Programming Apps in 2022 by harry768 in programming

[–]raven9 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I always notice they never mention AIDE in these lists.

C++ is horrible... by Vulptex in programming

[–]GeorgeCarlin 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

I started working a book about it yesterday. Which says a lot. I'm not a guy easily convinced by new stuff.

But nim I just didn't know about.

I still wonder how the fuck this could happen, but that is not the point here. I wanted to try out something else than Erlang or Julia for a long time. As my main languages.

Seemingly every one of my colleagues does Rust, so nim is perfectly fine for me.

I'm always the offbeat guy. Every one knowing me knows that. I've got to defend the spin on a legend here, you know ?

C++ is horrible... by Vulptex in programming

[–]zyxzevn 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

I made some small things with Nim, like a reader for HTML that converts into a database.
The structure is very simple and the generics are very meta and can be combined with macros.

In programming it is like an improvement on LISP with types. And it encourages you to keep things plain and simple.
It even looks like Python.

C++ is horrible... by Vulptex in programming

[–]GeorgeCarlin 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

Nim is genius. Static types and generics and no hassle with JavaScript and meta-programming ? It even has lamda-expressions !

What the fuck more can you even ask for ?

Web assembly - emscriptem by chickenz in programming

[–]chickenz[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

i am now betting that by using web assembly, i will be able to dominate ALL of the browser as a canvas and i can forget about xmlhttprequest() and fetch()... i hope.. cuz i will actually be writing C code that compiles into a program that runs inside of a browser.

i hope it is easy to write nonblocking sockets calls.

C++ is horrible... by Vulptex in programming

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

My love for programming died. Just one of those things. I don't even use a computer unless I have to. It's fantastic.

C++ is horrible... by Vulptex in programming

[–]Vulptex[S] 3 insightful - 2 fun3 insightful - 1 fun4 insightful - 2 fun -  (0 children)

Why? Compilers are great. The difficulty of compiled languages is very much exaggerated. In fact I think C is one of the easiest other than how few libraries are written for it. Native compilation, no OOP, raw data management. Not as hard as everyone says it is.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]Vulptex 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I just hope it actually works on enough browsers to be usable.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Web assembly will be faster than Javascript except when you are manipulating the DOM. In that case its slower because it still has to call javascript to do that, and the bridging adds overhead. Someday they are going to rectify this supposedly, but not anytime soon

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

it is odd that i hadnt taken the time to look at web assembly... if it is half as nice as this demo(linked below) then omg.. it loaded really really fast... (and i have a super slow laptop, with shit for hard drive and almost no memory)... so, it doesnt look like bloat or slow load times.

https://callahad.github.io/spinning-cube/

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]Vulptex 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I hope so too. I hate JavaScript.

Linus Torvalds isn't always right (even though he thinks he's infallible) but he is notorious for having insanely high standards for programming languages. And it's over the same concerns you addressed.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

yeah, i noticed that mr torvaldis is optimistic about it.

but, just because he pretty much invented linux does not mean that he cant make a bad choice about this rust.

i am not saying that he is wrong, i am just saying that he might be.

an example of this might be thomas edison, he invented the light bulb and the phonograph, but then he kinda went out into left field by trying to produce a machine that can allow you to talk to the dead.

regarding the microcontroller issue, for example the arduino... i am not even going to take two minutes to learn how to write rust on an arduino, lol, but i would be really surprised if it doesnt produce a bloated program, ie, i bet that it will consume much more memory and that it will have some kind of limitation that isnt present with the arduino C.

either way, i am not spending two minutes of my time with rust..

my thing right now is i am trying to download emscriptem that allows me to write web assembly, which is C language that runs inside of a browser.. i seriously hope that it does not produce bloated code that takes a shitton of time to load.

web assembly actually allows you to compile several different languages(even rust) and that code can run in a browser(similar to how javascript runs now?) my interest would be to use web assembly to use C language.

edit: wouldnt it be cool if i could write a "chat" program that runs in a browser(similar to saidit's chat) using web assembly? i will only go that route IF IT PRODUCES CODE THAT IS NOT BLOATED AND LOADS FAST.

https://www.youtube.com/watch?v=ojYEfRye6aE

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]Vulptex 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I figure if even Linus Torvalds is okay with it it's probably at least decent.

C++ is horrible... by Vulptex in programming

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

OOP is fine and great for many problems

I can't think of any problems where OOP has more benefit over the complexity it adds, but it's been a couple decades since I touched a compiler.

C++ is horrible... by Vulptex in programming

[–]Vulptex[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Actually Java is the only one I can think of that forces OOP on you. However if OOP is available the so-called "best practices" tell you to use it for everything, and treat that as dogma.

Still, I have yet to see any case where OOP solves problems procedural code couldn't handle just as well.

C++ is horrible... by Vulptex in programming

[–]Vulptex[S] 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

Oh no, what I mean is we're taught that it's a good practice to waste time coming up with intricate OOP structures instead of actually programming something. And they tell us to comment everything it's doing when it's completely obvious, as if a non-programmer should be able to read it, not to explain why you're doing something.

Code is still written in C (as well as C++ and some more esoteric languages) because existing codebases use those languages.

And also because those languages still suit a lot of things better than others. C and C++ aren't dead, new projects are started in them all the time.

Currently that would be JS and Node JS. A while ago it would have been Python, and Java before that.

Holy shit hell no not javascript that's a nightmare. It never works right and you have callback hell and a bunch of other crap. If you think C is hard JS is 100x harder. Python is easier, but very slow and not too powerful. Java is easier but not as powerful and a bit slower. But the real reason those languages are easier is because of the abundance of libraries available for them, not because the language itself is inherently easier.

one of the main abstractions of C++ is RAII and specifically move/copy constructors.

Yes, those are in C too. You just have to actually do them instead of hiding them behind an interface that makes it look like nothing much is happening.

In conjunction with references and const declarations, these allow you to describe the ownership of an object and safely pass it between various scopes.

C has const, and references are the same thing as pointers.

Whereas in C, you're passing around raw primitives/structs, pointers to those primitives/structs, and pointers to functions, which all give the compiler none of the context it needs to effectively inline function calls or remove unnecessary initialization/copying.

Can you give me an example? Classes and other abstractions would usually prevent the compiler from being able to make those optimizations, not help it. The only exception is templates, which can be done in C, even though people don't use them for some reason. You just can't mangle the names of the generated functions (which makes sense, so you get the expected assembly output). And nowadays even that might not matter, because compilers are starting to make indirect function inlines.

C++ is horrible... by Vulptex in programming

[–]at_finn 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

OOP is fine and great for many problems. However, with most OOP languages...everything has to be Object Oriented whether it makes sense or not.

C++ is horrible... by Vulptex in programming

[–]zyxzevn 4 insightful - 2 fun4 insightful - 1 fun5 insightful - 2 fun -  (0 children)

Just don't do any complex data structures. And follow the guidelines.
As long you stay within the rust-box it works ok.

C++ is horrible... by Vulptex in programming

[–]GeorgeCarlin 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

OOP is nonsensical for most problems in combinatorics. It took me a long time to wrap my head around this fact.

C++ is horrible... by Vulptex in programming

[–]GeorgeCarlin 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

After reading this, I will definitely give it a try. I am torturing myself a lot with Merkle trees recently. Since I've been hitting some dead ends recently anyway, why shouldn't I start from scratch ?

C++ is horrible... by Vulptex in programming

[–]package 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Huh. I've always seen older people agree with me, because even C++ is too "outdated" nowdays to be taught in schools. Not only that, but schools are what encourage the "best practices" which are actually the worst. This is usually excessive OOP, little to no optimization, pointless commenting, getters and setters and other waste of time bloat, using features for the sake of using them, and thinking about inheritance and object structures before the actual program. Basically busywork, it seems like you're getting something accomplished but it's not advancing your program any. And it ends up being a bloated, unreadable mess that has to be completely refactored to make even small changes.

This is exactly how I felt during high school as someone who had already spent many years learning to code outside of school. While I'll agree schools don't generally spend enough time on real world use cases, the reason you are being taught these concepts is because they aren't necessarily obvious, and just because you are already familiar with these things doesn't mean everyone is. Many of these concepts, like OOP, are easier to digest as something like the classic car+tires example, which is obviously not a realistic use case. It's busywork, yes, but that's because it's a lesson. The same goes for things like commenting; while you aren't going to be putting comments on every single line of your code, it's a good exercise to reenforce the purpose of the code being written. It's also good practice for learning how to describe functionality in a concise way, which IS something you'll be expected to do in real world programming regardless of the language, especially since tools exist for automatically generating documentation from comments in a project.

There's a reason a lot of top programmers stick to C and other "old" languages. They not only produce faster programs, but they're much cleaner and more maintainable, and you don't waste time with all those complicated abstractions. Many open source projects also do this for the same reason.

"Top programmers" generally branch out to whatever is new and popular and don't limit themselves to a single language, especially not a low-level language. Code is still written in C (as well as C++ and some more esoteric languages) because existing codebases use those languages.

And apparently corporate codebases are horrific, so they probably need to reconsider their practices as well.

This is because the overly verbose dumpster fire that is Java was super popular once, and companies used applets for cross-compatibility just like companies use Electron and/or SPAs today.

But unfortunately most people don't worry about how well something works when it comes to technology, only how new it is.

Nonsense. People choose what takes the least amount of effort and time to produce a reasonable result. Currently that would be JS and Node JS. A while ago it would have been Python, and Java before that.

I'm not sure what you're talking about for C++ and lifetimes and locality of data.

This is now sounding like you aren't actually familiar with C++ beyond coursework; one of the main abstractions of C++ is RAII and specifically move/copy constructors. In conjunction with references and const declarations, these allow you to describe the ownership of an object and safely pass it between various scopes. Along with classes this also enables you to make guarantees to the compiler regarding the intended state of an object, what data it carries with it and which methods are valid to use with it. Whereas in C, you're passing around raw primitives/structs, pointers to those primitives/structs, and pointers to functions, which all give the compiler none of the context it needs to effectively inline function calls or remove unnecessary initialization/copying.


Look, I understand exactly where you're coming from. I felt the same when I was younger. In the real world you'll quickly realize your current attitude toward abstraction is only going to hold you back, lower your productivity, make those who inherit your code want your head on a pike, and keep you from some genuinely exciting and satisfying types of programming.

C++ is horrible... by Vulptex in programming

[–]Vulptex[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Huh. I've always seen older people agree with me, because even C++ is too "outdated" nowdays to be taught in schools. Not only that, but schools are what encourage the "best practices" which are actually the worst. This is usually excessive OOP, little to no optimization, pointless commenting, getters and setters and other waste of time bloat, using features for the sake of using them, and thinking about inheritance and object structures before the actual program. Basically busywork, it seems like you're getting something accomplished but it's not advancing your program any. And it ends up being a bloated, unreadable mess that has to be completely refactored to make even small changes.

There's a reason a lot of top programmers stick to C and other "old" languages. They not only produce faster programs, but they're much cleaner and more maintainable, and you don't waste time with all those complicated abstractions. Many open source projects also do this for the same reason. And apparently corporate codebases are horrific, so they probably need to reconsider their practices as well. But unfortunately most people don't worry about how well something works when it comes to technology, only how new it is.

I'm not sure what you're talking about for C++ and lifetimes and locality of data. Most of the abstractions are trying to hide that, not specify it. C is notorious for making you work directly with memory and raw low-level data. It's no harder than using abstractions, just different. But it works better because it does exactly what you tell it to, not many gotchas.

C++ is horrible... by Vulptex in programming

[–]package 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

No offense but this is typically the attitude of programmers fresh out of HS that obsessively optimize despite the real world cost of an "expensive" operation being something like +1 nanosecond and 3 extra bytes of memory, or think that the number of function calls in a section of code directly correlates to the performance of that section.

Much of the ugliness of C++ is a result of abstractly describing the lifetimes and locality of data, which in many cases can allow the compiler to generate more optimal code that is actually faster than what a simpler C program could achieve.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–][deleted] 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

I'd rather be your n-i-g-g-a so we can get drunk and smoke weed all day.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I am not your friend

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Moo Moo!! I'm a pony! Are you a xenogender too chickenz?

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Enjoy rust.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Satan told me you are bad news and he doesn't want to see you lead me down the path of wickedness

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Satan will help you

Enjoy rust.

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Excellent discussion, what a profound observation. You're a nasty little beast aren't you

video: why i hate the rust programming language. hint: bloat is the first reason by chickenz in programming

[–]chickenz[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Go fuck yourself