Qt 6.7 released
Qt 6.7 is out with lots of large and small improvements for all of us who like to have fun when building modern applications and user experiences. Several additions are released as technology previews, and we are looking forward to your feedback so that we can get everything ready for the next LTS release!

Have you ever used git bisect?
cross-posted from: > Have you ever used `git bisect`? If so, how did you use it? Did it help you find a problem which would otherwise be difficult to find? Story time, I guess?

“Bot resistant” voting systems?
A friend of mine is interested in the "sovereign artist" model, which basically means that you self publish and self release your own work on your own website, as opposed to using a publishing house or art gallery. It's powerful because it gives everyone a platform to share "niche" art, but as a consumer, it can be difficult to find and "curate" high quality, interesting works of art. Is there a rating/voting system that exists that is resitant to internet vote tampering? I'm talking about how 10 years ago, Amazon reviews were pretty helpful. But now they've been swarmed with paid and bot written reviews. Same with Slickdeals and many others. I'd want a voting system that incorporates some ideas: - it would prevent one person from making multiple fake accounts - reviews wouldn't be suppressed or promoted by paid algorithims - the algorithm WOULD help connect people to items they are interested in. But maybe the workings of it would be open source, so it can be audited for bad acting. Does a project like this exist somewhere? Rather than host that project in one place, it could be powerful to defederate and prevent the temptation to manipulate algorithms.

Text description (for those with screenreaders): A portion of a prime number checker written in the Rust programming language, where the first few lines are written correctly including the first if statement in the program. However, the following if statements are written using Python syntax instead of Rust, as the author slipped back into his native tongue.

  • mozz
  • 3M
So yesterday a very weird thing happened to me.
So. I was working with this code: ``` public function front(?string $sortBy, ?string $time, ?string $type, ?string $filter, string $federation, Request $request): Response { $user = $this->getUser(); if (!$user) { $filter = 'all'; } $criteria = new EntryPageView($this->getPageNb($request)); $criteria->showSortOption($criteria->resolveSort($sortBy)) ``` ... and so on; the function continues. VSCode told me there was a syntax error on the close brace on the if statement. I stared at it for a while, then pasted the code into GPT (not Copilot). Here's the conversation we had about it: --- **Me** What's the syntax error here? (and I pasted the code) **GPT** The syntax error in your PHP function public function front seems to be due to the incorrect placement of the closing curly brace for the if statement. It appears that the if statement is not properly closed before the $criteria initialization begins. The corrected code should look like this: ``` public function front(?string $sortBy, ?string $time, ?string $type, ?string $filter, string $federation, Request $request): Response { $user = $this->getUser(); if (!$user) { $filter = 'all'; } // Closing brace for the if statement $criteria = new EntryPageView($this->getPageNb($request)); $criteria->showSortOption($criteria->resolveSort($sortBy)); // ... rest of your function code ... } ``` Ensure that each statement and block is properly closed and followed correctly by the next statement. This corrected structure should resolve the syntax error you are encountering. **Me** I don't get it. I put a closing curly brace right after the statement in mine... what am I missing? **GPT** I apologize for the confusion. Upon re-examining your code, it seems the placement of the curly brace is correct. If you're still encountering a syntax error, it may not be related to the if statement structure. Let's look at other possible issues: --- ... and so on. Pasting GPT's recommended if-statement block, including the curly brace that was already there, fixed the error. I have since re-pasted the same thing I initially gave to GPT to VSCode, and it all works now, and asking the exact same question of GPT again now leads to random guesses which have nothing to do with the cursed curly brace that was previously causing problems for both VSCode and GPT. I have given up and moved on at this point, content to say vaguely that maybe the unusual brace style, or pasting the incomplete function without semicolon or final close brace, managed to coincidentally confuse GPT on exactly the same line where VSCode had gotten confused for unexplained reasons. But the whole thing still has this Twilight-Zone oddness to me.

Finding projects that need user testing?
I'm digging into the world of #FOSS #opensource and would like to help with existing projects. My programming chops are not sharp yet, but I'm a detail-oriented communicator who knows a bit about user testing. How do I find projects on GitHub, GitLab, or other sites that need this kind of help? The machines I would be testing on are a potato desktop running Pop_OS Linux and an Android phone. Thanks in advance!

Powershell: How do I update my code to use a different file type?
I have a script that duplicates a Word doc template and renames each using a csv file with a list of names. What would be the equivalent code if instead of a csv file I use a text file? ``` Import-csv ‘.\individuals2.csv’ | foreach-object { $newname = ‘2 ‘ + $ + '.docx’ Copy-item '.\template.docx' $newname } ```

I’m looking for a way to create webpages without HTML, any tips?
Hello! I'll try to explain what I'm looking for: I sometimes have to write simple web pages (not just text, also buttons and video players and so on), but I really *really* hate writing html code. What I'm used to is QML, which I like a lot, because of the ease of placing objects exactly where I need using the anchors and the Layout objects. What I'm looking for is a language or something with a similar syntax, that can then be "built" to plain HTML/CSS/JS. Is there something like this? I know I can compile Qt/QML for webassembly, but I'm having huge amounts of problems, and also I'd like to have the possibility to have a plain HTML result, not necessary bind to the server side. thanks in advance!!

A less bad name TBD. This is a little program I made to convert `script` captures into properly laid out text. A lot of the behaviour still isn't quite right, but I'm pretty happy with it as a proof-of-concept.

Reverse Engineering TikTok’s VM Obfuscation | Ibiyemi Abiodun
Not mine. "Part 1" is [this](, it's also linked to in the body. I _really_ wonder what happened: > Update (21 August 2023): I did continue my investigation, but I have decided not to publish the results. Please do not continue to email me about this.

Hey there programmers, I know this is a more markup/typesetting deal, but I thought there might be people who are interested. After being dissapointed with many of the options out there for making ttrpg item cards, I made a LaTeX template for that exact purpose. I wanted it to be relatively easy to use, generate clean images, and be (semi) form fillable. The cards scale in height with the quantity of text given and image size, so users don't need to finagle with the box dimensions too much, and all card sections (generated by custom commands) can either be commented out or toggled off if they aren't relevant to the item. If there are any people familiar with TeX who have thoughts or constructive criticism, I would love to get some more eyes on this. I have already posted this in the relavant ttrpg areas, but I am hoping people here might have more technical critiques. I have already gotten feedback that a setting for fixed dimensions would be smart in case players want to get card sleeves or a card binder, and want to make a back side for longer item descriptions, which I will work into V2. Here is an example of a completed card with all the trimmings: [Staff of the Jackal Lord]( Thanks to anyone who takes the time to check it out, and if anyone uses it, please let me know what you think!

cross-posted from: > I've written a basic media player using Python, PyGTK, and GStreamer. However, I've found a bug that I'm having trouble finding a fix to. > > In this program, opening a video launches a second window, in which the video is played back. If I close said window, however, the control window freezes and I get the following error: > > ```plain > gst-resource-error-quark: Output window was closed (3) ../sys/xvimage/xvimagesink.c(586): gst_xv_image_sink_handle_xevents (): /GstPlayBin:player/GstPlaySink:playsink/GstBin:vbin/GstXvImageSink:xvimagesink0 > ``` > > The source code can be found [here]( > > Does anybody have any idea how to fix this? Or is this perhaps a bug in one of the libraries?

cross-posted from: > This looks like a great starting point for people with little to no experience with programming to learn to program using Python. > > Everything taught by can be used locally on your own computer. But doesn't show you how to install Python on your machine but you can fill in that gap with the information provided @ > > Other resources are provided on the [ Beginners Guide > ]( if needed. > >

cross-posted from: > It's about asking, "how does this algorithm behave when the number of elements is significantly large compared to when the number of elements is orders of magnitude larger?" > > Big O notation is useless for smaller sets of data. Sometimes it's worse than useless, it's misguiding. This is because Big O is only an estimate of asymptotic behavior. An algorithm that is O(n^2) can be faster than one that's O(n log n) for smaller sets of data (which contradicts the table below) if the O(n log n) algorithm has significant computational overhead and doesn't start behaving as estimated by its Big O classification until after that overhead is consumed. > > #computerscience > > Image Alt Text: > > "A graph of Big O notation time complexity functions with Number of Elements on the x-axis and Operations(Time) on the y-axis. > > Lines on the graph represent Big O functions which are are overplayed onto color coded regions where colors represent quality from Excellent to Horrible > > Functions on the graph: > O(1): constant - Excellent/Best - Green > O(log n): logarithmic - Good/Excellent - Green > O(n): linear time - Fair - Yellow > O(n * log n): log linear - Bad - Orange > O(n^2): quadratic - Horrible - Red > O(n^3): cubic - Horrible (Not shown) > O(2^n): exponential - Horrible - Red > O(n!): factorial - Horrible/Worst - Red" > > [Source](

What are your hobby programming projects? I need some inspiration.
I would like to know what your hoppy coding project are. It doesn’t really have to serve a purpose, but what are you coding on in your free time that just is fun to you and you enjoy working on? As a background: I am an experienced programmer and do earn my money with it. In my free time I always enjoyed trying out new stuff related to technology, learn new things and improve my skills by doing so. But lately I recognise that I just have no clue what I should do or what a fun toy project I could work on. I really have no ideas. My head just feels completely empty whenever I open my IDE. So please, tell me what you are coding on for fun.

Your Opinion on my Game Idea
For a while now, I had this idea in my head of making a small 2D side scroller game that helps people learn programming, and I'm looking for honest opinions and feedback from others. I know that such a game is niche and I wouldn't expect to earn a lot with it. Spending time on development would only make sense for me, however, if there is at least some interest in playing it. Whether the game will have some success, is not a question that can be answered here, but my hope is, that I'll be a bit more confident in my decision after hearing more feedback from others. I have been teaching C/C++ and Python for years now and have developed a small application that gives students, without a specific goal, something to work towards to. It is just a console application that offers various programming tasks to be solved, submitted and compared against previous results. The student just has to run the application, import my interface library and start coding. I usually go over the theory and try to help them while they are figuring it out. Just to give you an example of such a task: *"There is a sequence of N unsorted and unknown numbers. You can compare, whether any number is greater than any other one by specifying their positions in the sequence. You can swap two numbers, save copies of them on a stash, and replace any number in the sequence with stashed ones. Try to sort the sequence of unknown numbers with as little operations as possible."* The idea of the side scroller would be, to give that application a compelling frontend and to *"gamify"* these tasks even more. Aside from the usual game mechanics like *"find and fetch items"*, *"talk to this or that person"* or *"solve simple terrain puzzles"*, I want the programming tasks to be the main quest which unlocks new parts of the world and ultimately completes the story line. There will be some kind of quest book that goes into more detail and tries to help the player understand the task and to find solutions. Aside from that, the player is expected to use their own development environment (which can be as simple as: Notepad and GCC/Python Interpreter). The quest book is just meant as a starting point, and players would have to do additional research to learn more about algorithms and how to implement them. I think, at this point, I have described the rough idea enough, and I apologize for the wall of text so far. For that reason, everything below this is optional TLDR as far as I'm concerned. The last thing I wanted to mention here is the rough sketch of the lore I had in mind. A medieval world containing steam punk elements that is slowly but surely overtaken by these alien looking artifacts. You, the protagonist, have figured out that some of these artifacts can be controlled by using the language that can be derived from the carvings on them. Around the artifacts, a contamination that destroys everything is slowly spreading. No one has figured out how to stop this, but it becomes clear over the course of the game, that interacting with these artifacts and solving the programming tasks, slowly reverses the spread. The ultimate conclusion is, that an alien species put these artifacts in this world to slowly terraform it. Because they didn't want to wipe out any intelligent species in the process, they created an off-switch. If a species is intelligent enough to figure out these tasks, the whole terraforming process is terminated.

I hear Sam Newman's - Monoliths to Microservices is worth a read.

Any indie/hobbiest game devs here? Show off what you’re working on!
I'd love to see what kind of a game dev community we have here on beehaw and help each other out. Whether you use Unreal, Unity, Godot or even your own engine, let's see what you got!

cross-posted from: >

Feeling overwhelmed
Honestly all this world looks really overwhelming, there's too much stuff going on: each program uses its own languages, its own compilers, uses different tools, libraries, dependencies, package managers and frameworks. You need specific instructions and documentation to learn new stuff at every single thing you deal with. Whenever i open a project on Github i just feel overwhelmed because there will always be something new and i'm afraid i won't ever get out of that way of operate that "somehow makes things work" and really understand my code and program interactions.. Honestly it's really complicated because you use a program you need and you just see it from the surface, you don't have the time to learn how things work in a slightly more linear way, it would take ages considering the fact you probably need other 10 programs like that. To me it looks just like modern programming is about grabbing different pieces of fragmented knowledge all around web forums, wikis (or chatbots, which for me are just the next way of giving up our ability to learn) and somehow making things work. I just get overwhelmed even when i take a look to a github page sometimes, even the frontpage has so much stuff you won't ever learn. Another thing is the online community is the most sparse thing, far from actual real communities there is, you can work with people who won't ever even talk to, and their contribute can be as sterile as just creating a pull request and then leaving forever. You are mostly on your own striclty speaking of human connections and ability to share ideas and feelings. I'm very fought because i somehow feel like i really love how certain ideals and creativity can be expressed with programming: i love that you can use something practical to solve idealistic, creative and technical problems. I love stuff such as digital etic, cypherpunk movemenet and all the work that opensource devs do to make the industry just a bit better, sometimes even receiving donations for their work, which for me is the highest form of payment, i've never seen someone more happy to pay for something as in the opensource community. But at the same time i'm starting to loathe technology and the internet because, adding on top of everything i said above about the sterility of the community, the difficulty to concentrate on a single thing and the dispersion there can be, i'm also dealing with a 10 years porn addiction since 5 years ago, progresses happens but are really slow and using my computer or phone is a huge trigger even if i'm trying my best to make them as minimal and not addictive as possible. Trust me, in a world designed to get you addicted to your hardware and software, being grown up used to doom scroll every day, it takes a huge amount of time and effort to have your things all sorted up to guarantee yourself a bit more privacy and software that is actually useful and doesn't want to keep you hooked, and at the same time don't be too much of a social outcast. You actually have to re-learn computer, or better saying, to actually learn computer for the first time, because you realize you can't just rely on having everything ready, set up, and just working from scratch without paying in some way, and the price that most big techs set is even higher, and far more subtle than just paying with money. The software industry right now is shit outside of the few developers that are actually building products FOR users, and not for money, and of course that does mean that if i follow my ideals, i won't nearly have these much economical opportunities as every "usual" developer gets. It's a huge headache having to deal with programs even when i do it for myself, i can't even think of doing that for someone else right now (with all the work and continuity that this requires) and i'm thinking if i should really put my efforts somewhere else.

I’m new to iOS app development, will the MacBook Air m1 base model suit my needs?
I’m not sure if the base model is enough or not. Anyone have experience?

I’m an accidental DBA, but I still never quite got the hate for ORMs. I thought this article does a good job explaining the issue, and why they aren’t so bad.

I was contacted by a recruiter, but I can’t find anything on the company.
Preamble: I'm sure there's a better community to ask this question, comment below if you're aware of it. Okay, for background I'm a bootcamp student, I'm still learning, but I'm almost done. I've been tweaking my LinkedIn as I go, trying to be more attractive for recruiters in the future. Well, last week I was contacted by a recruiter, and asked if I was interested in job opportunities. I did some brief research, and it looks like an actual company on Glassdoor. Anyway, I sent over my resume, and was on a call for maybe 5 minutes. We talk for a bit, and she asked me how I am in interviews and my experience. I tell her that I've been "technically" freelance, but I haven't done anything because of starting cost, but she seemed to ignore that concern. Towards the end of the call I asked her if this would be with her company, and she said yes, and then I said bye. Now, the problem is that this company is specifically for interview prep, and helping students get hired at *other* companies. While she said I'd be with her company, I'm concerned that I'm trying to be sold something here. The company is called GigaMe, and there is barely anything online about them. So, my overall question would be, "what would you do?" Or, what should I expect? I don't think i should get my hopes up, but any advice would help.

issues with bash commands as variables
Any ideas? I am attempting to write a script that uses sed. If done this way it fails * rmdec="sed 's/..................$//'" * i1xmr=$(echo "$i1p/$apiresponse*1000" |bc -l |$rmdec) But if i do it this way it works * i1xmr=$(echo "$i1p/$apiresponse*1000" |bc -l | sed 's/..................$//')

Fully open source version of Intellij IDEA?
Hi. Is there some fully FOSS version of Intellij IDEA CE? Because the official download includes some proprietary bits.

Just realized I can just use “…” to go back two directories! Is this a zsh feature?
I accidentally discovered that both "cd ..." and "..." work, and moreover, I can add more dots to go back further! I'm using zsh on iTerm2 on macOS. I'm pretty sure this isn't a cd feature. Is this specific to zsh or iTerm2? Are there other cool features I just never knew existed?? I'm so excited about an extra dot right now.

Can I email or text myself through Python or bash?
Noob question incoming, thanks in advance for any help with this! I have a specific use case in which I want to send an automated email or text to myself once a day (the message is different each time--otherwise I would just set an alarm, lol!). I'm running Pop_OS on an old desktop computer. Where I'm stuck is getting an email to successfully send from the command line. I'm looking for easy-to-follow instructions that would help me do that, and none of the articles or videos I've come across thus far have helped. I'm aware of Twilio and other services that send SMS messages, but I'm looking for something free. Especially since I only need to text one person (myself), and infrequently at that. Below is my attempt to send an email with the telnet command. Nothing ever came through... ``` XXXXXXXX@pop-os:~$ telnet localhost smtp Trying ::1... Connected to localhost. Escape character is '^]'. 220 pop-os ESMTP Exim 4.95 Ubuntu Sun, 07 Jan 2024 15:12:28 -0500 HELO 250 pop-os Hello localhost [::1] mail from: 250 OK rcpt to: 250 Accepted data 354 Enter message, ending with "." on a line by itself Subject: Test Body: Is this working? . 250 OK id=1rMZW4-0002dj-Uy quit ```

AoC Input fetch tool (Rust)
cross-posted from: > If you're writing Advent of Code solutions in Rust, then I've [written a crate]( that can fetch the user input data directly from the main website. > > Long story short, you provide it a login token copied from your browser cookies, and it can fetch the input data by year and day. Inputs are cached locally, so it'll only download it once for a given problem. This was heavily inspired by the PyPi [advent-of-code-data]( package. > > Unlike other AoC-centric Rust crates, that's all it does. The other crates I've seen all want the code structured in a specific way to add timing benchmarks, unit testing, and other features. I wanted something lightweight where you just call a function to get the input; no more and no less. > > To use the crate: > * Follow the [AoCD instructions]( to set the AOC_SESSION environment variable.\ > This key is used for authentication and should not be shared with anyone. > * Add the `aocfetch` crate to your Cargo.toml `[dependencies]` section:\ > `aocfetch = { git = "" }` > * Import the crate and call `aocfetch::get_data(year, day)` to fetch your input data. > > An example: > ``` > use aocfetch; > > fn main() { > let input = aocfetch::get_data(2023, 1).unwrap(); > println!("My input data: {}", input); > println!("Part 1 solution: 42"); // TODO > println!("Part 2 solution: 42"); // TODO > } > ``` > > If this goes well I will submit it to, but I wanted to open this up for beta-testing first.

Do Users Write More Insecure Code with AI Assistants?
cross-posted from: > [~n ( writes]( > > >This is fine... > >>"We observed that participants who had access to the AI assistant were more likely to introduce security vulnerabilities for the majority of programming tasks, yet were also more likely to rate their insecure answers as secure compared to those in our control group." > > > >[Do Users Write More Insecure Code with AI Assistants?]( > >

Gokrazy – Golang programs as a Raspberry PI Appliance
Deploy Golang applications to a Raspberry PI

To Audio and Back Again [using video and audio codecs for unintended purposes]
To Audio and Back Again [using video and audio codecs for unintended purposes] []( [@programming](

how do I learn C programming ?
what is the best way to learn C ? I know basic python but would like to learn C, I tried searching online but couldn't find a good resource that's good for a beginner like me. any suggestions ?

    Create a post

    All things programming and coding related. Subcommunity of Technology.

    This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

    • 1 user online
    • 3 users / day
    • 3 users / week
    • 12 users / month
    • 121 users / 6 months
    • 2 subscribers
    • 282 Posts
    • Modlog
    Aspiring to be(e) a safe, friendly and diverse place.

    We’re a collective of individuals upset with the way social media has been traditionally governed. A severe lack of moderation has led to major platforms like Facebook to turn into political machinery focused on disinformation campaigns as a way to make profit off of users. Websites with ineffective moderation allow hate speech to proliferate and contribute to the erosion of minority rights and safe spaces. Our goal with Beehaw is to demonstrate and promote a healthier environment.

    Our philosophy:

    Downvotes are disabled on this instance.

    Be(e) nice.

    As a news aggregator and a social media outlet, with a focus on being a safe and accepting space, we strive to create a positive social impact. We will, also, help to connect underprivileged and minority individuals with education and civic participation by promoting a healthier online experience.

    We currently have a Mastodon account you can follow for major updates: @beehaw at You can also join our community Discord or Matrix servers. You can also view our status page.

    Our instance is 100% user-funded - help us keep it running by donating.

    If you donate, you should know that 100% of the costs will go towards server time, licensing costs, and artwork.

    In the future if we need to hire developers or other labor, it would be sourced through the Open Collective Europe Foundation, and it would be transparent to the community before any changes were made.

    Donate on Opencollective

    Our community icons were made by Aaron Schneider under the CC-BY-NC-SA-4.0 license.

    Blobbee emojis made by olivvybee on Github.

    Our most up to date FAQ can be found here.

    if you can see this, it's up