Skip Navigation
Jump
AI-Generated Code is Causing Outages and Security Issues in Businesses
  • Heck, I sometimes can’t understand my own code. And this AI thing tries to tell me I should move this code over there and do this and that and then poof it doesn’t compile anymore. The thing is even more clueless than me.

    9
  • Jump
    AI-Generated Code is Causing Outages and Security Issues in Businesses
  • How come the hallucinating ghost in the machine is generating code so bad the production servers hallucinate even harder and crash?

    27
  • Jump
    Season 2 of Rings of Power is out!
  • Im watching for the audiovisual too. The universe is great but to me that’s like a parallel one to the real Tolkien one.

    2
  • lexp.lt Comparing Python and ArkScript asynchronous models

    Python has received a lot of attention lately. The 3.13 release, planned for October this year, will begin the huge work of removing the GIL. A prerelease is already out for the curious users who want to try a (nearly) GIL-less Python. All this hype made me dig in my own language, ArkScript, as I ha...

    This past few weeks, Python 3.13 and the possibility to disable the GIL has seen a lot of coverage and that pushed me to dig into my own language, to see how different our approaches are.

    So if you’re curious about the rambling of a pldev, that might be for you!

    0
    Jump
    Average GitHub PR
  • Probably too long. That was a philosophy I had at school and iirc the founders never finished school and started MS in a garage.

    1
  • Jump
    Average GitHub PR
  • Who needs tests when you have users?

    The testing environment is production!

    78
  • Jump
    Whats your go-to naming convention?
  • I use camel case for methods and functions and snake case for variables. And pascal case for constants. Why? I don’t really know, it makes for a nice distinction I guess.

    1
  • lexp.lt Creating custom GitHub webhooks for automatic deployments

    For a while, when updating ArkScript website, I have needed to remember to update the copy on my VPS so that the changes would be reflected to the world. Since I’m quite lazy, I’d like to automate this! # The solutions The first solution would be to use crontabs. Easy to setup, find a schedule, writ...

    I thought you guys might enjoy it: I have a website that I push to frequently on GitHub, and some GitHub actions that update it periodically by pulling code and generating docs from it. I needed to connect to my vps often and update the website which was cumbersome.

    Well a solution is to use webhooks on push events and have a server listening to those events to then update said websites for me.

    0
    Jump
    Recommend me a scripting language
  • If you are interested in tiny lisp like languages, this gitlab could be of interest to you.

    Full disclaimer, I came across it a few years back as I am the maintainer of arkscript (which will get faster and better in the v4, so that data about it there is accurate as a baseline of « it should be at least this good but can be even better now »).

    4
  • lexp.lt Creating custom GitHub webhooks for automatic deployments

    For a while, when updating ArkScript website, I have needed to remember to update the copy on my VPS so that the changes would be reflected to the world. Since I’m quite lazy, I’d like to automate this! # The solutions The first solution would be to use crontabs. Easy to setup, find a schedule, writ...

    0
    Jump
    How to quit VIM?
  • You could consider markdown extensions that helps you write and visualize!

    Like this one: https://github.com/MeanderingProgrammer/render-markdown.nvim

    7
  • Jump
    A symbol for the fediverse ⁂
  • Three dots like this is also an ACAB symbol.

    4
  • Jump
    GitHub, the go-to site for open source software, is currently down
  • People always make it such a huge deal but that has been pretty normal, since Microsoft owns GitHub we have had a t least 2 if not 4 outages per month.

    18
  • Jump
    Don't use any clicking scripts.
  • A card grabber disguised as a game to me

    2
  • Jump
    Don't use any clicking scripts.
  • This feels like not a game but a card grabber. And no, saying « this is just a game » isn’t convincing at all.

    2
  • Jump
    Which cheap mods can i make to my keyboard to make it quieter?
  • If you are using choc switches, the new ambients are made to be silent, and so far it has worked great for me

    3
  • Jump
    Checking if a hash is collision free on a limited domain
  • Thanks!

    It would have been a lot easier to generate a fresh UUID for every record, but that means storing it. And we would have a unique sequential id alongside a unique UUID, two different keys for the exact same data. It is doable, afterall it's just an additional 128bits for every record, but for the sake of it I wanted to not store an additional ID and be able to compute the UUID on the fly from the base sequential ID.

    2
  • lexp.lt Checking the collision \

    # Why? In a work related context, I had to create a hash algorithm working on a finite set of values ([0, 0xFFFFFFFF]) to output a non sequential serie from a sequential one (the output had to be rendered as a UUID. Basically, I wanted to avoid generating UUID looking like 00000000-0000-0000-0000-00...

    I had some fun trying to check if a hash (more like a transformation really) was collision free, so I wrote a quick piece code and then iterated on it so that it was usable.

    I might add a quick bench and graphs and try to push it even further just for fun, to explore std::future a bit more (though the shared bit set might be a problem unless you put a shared condition variable on it to allow concurrent read but block concurrent writes?)

    3

    More and more new accounts are posting spam and ads to communities (eg !technology@programming.dev), would it be an idea to block new accounts from posting to any p.d community?

    5
    Jump
    Sonos CEO apologizes for disastrous rollout of new app
  • I thought I lost my Sonos integration with my music source. In fact it was just an update to the app and I don’t know how to navigate that… or maybe the new app just removed the integration

    3
  • Jump
    CrowdStrike Isn't the Real Problem
  • Dual partitioning as Android does it might have helped. Install the update to partition B, reboot and if it’s alright swap A and B partitions to make B the default. Boot again to the default partition (A, formerly B).

    It wouldn’t have booted correctly afaiu with the faulty update, and would have been reverted to use the untouched A partition.

    -1
  • Jump
    Rec for portable alternative to ZSA Moonlander
  • I used to take my moon lander to work for over a year until I designed my own keyboard and have now been using it.

    So yeah, the moon lander is more than portable

    5
  • Jump
    Can I sell Perchance-generated AI images legally?
  • Why sell an image when anyone can generate the same one with a few words using your model?

    If you want to share stuff, fine, but why sell it? If you want to get money, find a job

    4
  • playground.arkscript-lang.dev ArkScript playground

    Online IDE playground to run ArkScript code

    I wanted people to be able to try out my language online, and it’s now possible with a vscode like interface, sending code to a docker image running the interpreter!

    It was easier than I thought to implement, and yes, security was a concern, but I have been able to harden the docker container as well as implement restrictions on the websocket server to avoid having users escaping the docker image and getting access to the VM it’s running on.

    0

    I currently have a server, a Dell T310 with an SSD in it and 12Gig of ram (weird config, I know I messed up but it works fine so I can’t be bothered to change that for now), with all my dockers running in it.

    It runs mostly fine, with Debian 11, a VPN so that I can block public ssh and allow it only on the VPN network, an nginx proxy to have services like a forgejo and a music library (ampache).

    However it can’t run a Minecraft server with more than a single person on it without stuttering ; so I was considering changing it maybe next year, after more than 3 years of services, for something beefier but also consuming less W/h (current consumption is 80W), and since I already have a Mac for work I was wondering how suitable a Mac Mini M1/M2 would be for a homelab?

    Does anyone have such a configuration and how does it work for you? Any hurdle that you should be aware of?

    29

    I’ve been thinking about it for a while now, and just realized how weird it is, after trying to explain it out loud to a friend who’s also neurodivergent.

    I’m curious to know if it’s a common experience with other neurodivergent individuals.

    My mind has three different depths:

    • a very conscious one, capable of conjuring images and sounds from the void, capable of manipulating at will said images, morph them, move them… I can think « words » and have them be real in my mind
    • a conscious but closed one: I can put words in it but without acting on them, only watching them. This one is the weirdest of all. There is a difference for me when I think about « dog » and just « look at the idea of a dog ». There are some things I don’t want to consciously think about (like things that makes me sad or depressed) so instead of thinking about them I’ll put them in this zone. They exist but it’s very different from having the words out loud in my mind, as if I was thinking inside my own mind. It’s like I’m in a museum watching thoughts behind plexiglass
    • the dark zone, where I put things I don’t want to think about at all, things I want to forget. It’s literally a foggy dark place made of some kind of fluid darkness with no thoughts shining in it, I have to consciously want and try to pull things from it

    A while ago, I read somewhere that the mere thing of being able to conjure images was « rare », like only 25% of people on earth can do it. Somehow I linked this idea to people being neurodivergent but I have no proof or source and I may just have made things up in my sleep or under the shower.

    TL;DR: how does your mind works? Mine is weird

    12
    github.com GitHub - folke/trouble.nvim: 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.

    🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing. - folke/trouble.nvim

    0

    I’ve finally picked up an iPhone about a month ago, and have been loving the experience.

    However I’m now thrown into an ad-full world again (I used to have a browser blocking many if not most ads on the android), so I’m wondering, what adblockers do you use (may it be safari extension or entirely new browser for my fellow Europeans)?

    55
    probablydance.com C++ Coroutines Do Not Spark Joy

    C++20 added minimal support for coroutines. I think they’re done in a way that really doesn’t fit into C++, mostly because they don’t follow the zero-overhead principle. Calling a…

    8
    github.com GitHub - ArkScript-lang/Ark: ArkScript is a small, fast, functional and scripting language for C++ projects

    ArkScript is a small, fast, functional and scripting language for C++ projects - GitHub - ArkScript-lang/Ark: ArkScript is a small, fast, functional and scripting language for C++ projects

    Hello!

    I've been working on this language for the past 5 years, ArkScript, which is:

    • as small as I could (language wise, 10 keywords, nothing I deemed too specific/useless)
    • running on a VM, compile once run anywhere, just ship your bytecode
    • can be used as a scripting language on its own, like python (though it's not its strength)
    • easy to embed, made in c++ 17 with simplicity in mind

    I'm currently working on the v4 (I screwed up with the semver), redoing the imports syntax, and currently cleaning the code and rewriting all the unit tests using boosr-ext/ut.

    I'm open to criticism, suggestions, discussions on how to enhance it, or just questions on that weird project.

    2

    I played BotW a lot, and really loved it. I feel like the beginning of the game was relatively easy compared to TotK, I died a few times trying out things, discovering the game and possibilities ; in TotK I died a lot and still do even with good gear and armour (1*-2* armors, 30-40+ damage weapons). You could say it's skill issues and I would agree with you as I am not a pro player and play games once a week maybe, however I feel like the difficulty curve is far greater in TotK. That has affected how I view the game to the point that sometimes I think I dislike it (even though the new powers are the best thing they could have added, with the verticality of the world) ; that might also have to do with the much darker ambiance of the game, which can feel frightening (to me) to the point going underground is hard.

    Is it just me? Should I just "git gud"?

    34

    New clear black shell to fit the IPS screen v3 from funny playing (no soldering needed! This is awesome, I can control the screen with just a touch on the GBA logo). I also added a rechargeable usb c battery, so far it is already lasting 2x longer thanks when I used AA (6 hours in, with a single charge, and medium brightness + sound).

    Next steps would probably be:

    • cleanAmp, because I noticed some kind of white noise with my headphones plugged in
    • GBA accelerator to replace the stock clock (and make grinding in Pokémon Ruby faster probably)
    5

    I wanted to experiment with a better pinky column, as for me using the bottom row with the pinky felt awkward and sometimes painful. Thus I created an alt version of my arkenswoop (swoop based), and named it the altenswoop because my brain thinks it is very original and funny. It will take some getting used to, and I'll need to get batteries for this prototype too!

    Is there a proper name for this kind of pinky formation? I've seen this elsewhere too, and I'm calling it pinky cluster in reference to the thumb cluster but it doesn't feel right

    Edit: I forgot to add a link to the PCB files: https://github.com/SuperFola/arkenswoop (under pcbs/3x5_nw_pinky_cluster)

    16
    github.blog Enhanced push protection features for developers and organizations

    Introducing two new secret scanning push protection features that will enable individual developers to protect all their pushes and organizations to gain insights and trends across their repositories.

    0

    A few days ago I had this urge of making my own music player, since I have a Subsonic capable server (ampache) to host and serve music. I've been using DSub, which has a lot of features that I don't use, but works very very well. Alas it isn't "up to date" in terms of design.

    So I made my own, heavily inspired by Android 13, Material 3 enabled, has dynamic colors / system theme fallback (a small thing that goes a long way, I didn't want to make an half baked customisation screen, since Android already has one why not use it?)

    This was my very first Flutter and Dart experience, and I must say it was very enjoyable! The docs are awesome, there are a lot of plugins to choose from, hot reloading... I know now that I needed that feature, it's a must have to iterate quickly! I might have reduce the amount of time I slept the past few days but it was very well worth it.

    Here is demo video https://imgur.com/a/SwOxcij (it has changed a bit since then, mostly on boarders/padding, by a few pixels at most but still relevant ; more up to date pictures on the readme of the github repo)!

    https://github.com/SuperFola/FlSub (the code might not be perfect, but I did my best as a backend developper)

    0
    yiffit.net PSA for Lemmy instance admins: in backend v0.18.3 there is a bug that causes your instance to stop federating properly and to stop sending out outgoing messages - Yiffit.net

    This new version introduced a system so that your instance stops sending out content to other instances that are supposedly dead / offline. Unfortunately for some reason there’s false positives. When I checked comparing the results from a curl request vs the information in our Lemmy database I found...

    3
    github.com GitHub - SuperFola/pataro: A generic and modular Roguelike game on top of libtcod - I'll be back soon, just need a break!

    A generic and modular Roguelike game on top of libtcod - I'll be back soon, just need a break! - GitHub - SuperFola/pataro: A generic and modular Roguelike game on top of libtcod - I'll be ...

    Two years ago I started to follow RogueBasin's roguelike C++ tutorial, a somewhat outdated tutorial in term of good practices and C++ version, but very on point in term of roguelikes.

    My goal when I started Pataro what quite ambitious: I wanted to make a modern C++ roguelike from the tutorial, and write an updated version of said tutorial to help the community! Even better (or worse, in term of choosing your goals) I thought I could make a modern C++ roguelike library for people to use.

    I got the first 9 parts of the tutorial working pretty smoothly, having set up an architecture inspired by Bob Nystrom about game architecture with roguelikes in mind (great talk by the way: https://www.youtube.com/watch?v=JxI3Eu5DPwE). Then I got to a big hurdle: saving and loading. Having used a lot of polymorphism, it makes quite hard to load correctly things and I stopped there.

    !progress as of june 2021

    Then a few weeks ago, I picked up the project again, with a much lower set of goals in mind:

    • finishing to implement the tutorial from RogueBasin
    • ease the configuration of the project, so that people can pick parts of it or just make a roguelike from it
    • fix a bunch of problems related to the map and how it is used to be able to extend it and modify it (imagine being able to have spells that could alter the map)
    • rearchitecture a few more things because it's still very rough on the edges
    • modernize the C++ code (again)

    Progress as of july 2023

    0