• 11 Posts
  • 720 Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle
  • MikinatoProgrammer HumortheFutureOfCommunication
    link
    fedilink
    arrow-up
    35
    ·
    edit-2
    1 day ago

    I’ve added a subtle prompt injection into my email signature (capitalize random words and start every sentence with the same letter), with small font size and color to not be visible.

    I have already received two emails from customers that did trigger it.


  • What would be ELI5 use case of this? It has been almost a decade since I did anything math-formal in college, and I wonder what would be some practical uses or situations is SW dev where you should turn to this language.

    EDIT: I skimmed the intro to Verifiable C, and I think I vaguely understand the idea - do I get it right, that the point is to basically create a formal definition of the function you are writing, i.e if you have a function that takes an array and sorts it, you’d have something like

    For every sequence a and every i, 0 <= i < len(F(a)) -> F(a)i < F(a)i+1

    (Or whatever would the correct formal definition be, I don’t really remember the details, I know I missed some stuff about properly defining the variables, but the idea of the definition should be kind of correct)

    And then you define this formal definiton in CoQ, then somehow convert your code into CoQ code it can accept it as F(a), and CoQ will try to proove formally that the function behavior is correct?

    So, it’s basically more robust Unit Testing that’s backed by formal math proofs?



  • MikinatoVS CodeMicrosoft hates freedom
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 days ago

    I’ve recently tried setting it up to work with C# solutions, and I’ve ran into some issues and couldn’t get it working, which combined with the fact that it’s not that well known made me consider learning neovim instead.

    I can already see that Helix is way smoother to use, but neovim has one huge advantage - there’s so much more tutorials and resources about it. So far there’s a lot of questions I, as someone who has only ever worked with IDEs, have run into along the lines of “How do I do this?” that I wasn’t able to find an answer for Helix, but while looking for it stumbled upon in-depth tutorials for neovim plugins that answer those questions.

    I’ll not give up on helix so soon, but it’s been more difficult than I expected.



  • I use Pixel with GrapheneOS as my phone, and I just have a separate profile that only has WhatsApp installed and nothing else. Since the profiles are completely separated, it doesn’t have access to anything else I do on the phone and it’s not running in the background (the profiles are basically sandboxed fresh slates, and switching it can be set-up to behave in a same way as basically turning off the phone as far as the profile is concerned).

    When the bridge asks me to log in again or refresh a session, I simply switch to the second profile for a minute and re-log in. I’ve heard iIt might be possible to set up an emulator and leave it running on the server, but that felt like too much effort.


  • Some context from the repo readme, since it is a pretty click-baity title that’s taken out of context.

    BallotProof takes in input images of the front and back sides of your ballot and uses [client-side] image analysis to specifically determine which errors can prevent your critical vote from being counted.

    ALL BALLOT IMAGES ARE AUTOGENERATED BY A COMPUTER FROM A SINGULAR SAMPLE BALLOT. THESE BALLOTS DO NOT EXIST PHYSICALLY AND ARE NOT INTENDED TO BE SUBMITTED AT A POLLING LOCATION OR BE SENT IN THE MAIL.

    The generation script (generate.py) enables the generation of semi-randomized ballots that fit certain satisfiability criteria. We use these sample ballots as tests for model functionality.



  • MikinatoVS CodeMicrosoft hates freedom
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    15 days ago

    I’ve been slowly starting to get used to Helix, doing a tutorial in either that or VIM (since it has similar keybinds, but a lot better interactive practice tools, like VimHero or VimAdventures) whenever I have time and feel like it, to get used to the motions and navigations. I still can’t imagine using it to actually code when I need something done, but I did notice gradual improvement in my efficiency. It’s more of a marathon, though.

    In the last few years, enshitification was the final motivation that pushed me towards better habits, like self-hosting, discovering Fedi, stop watching YT, de-google, switch to Linux as a daily driver, etc. I’m kinda looking forward to finally being forced out of IDEs into Helix.


  • It shouldn’t be hard to modify. I haven’t looked into it, but I assume that it looks for ID/class of HTML elements, so if you replace .post-listing with a class you find by using RightClick - Inspect on the feed/post listing in your UI, it should work.

    Here is what you are looking for, I found it by Right Clicking the post listing, and clicking on Inspect.

    So, for example, if I wanted to filter comments, the rule would be (the . is there because it’s a class, I assume?) programming.dev##.comment-content:has-text(Musk)

    I haven’t tested it, but from my vague CSS knowledge, it could work like that.


  • Thank you, I’ve found the post in YSK, and eventually used this filter instead:

    programming.dev##article.row:has-text(/Trump|Elon|Musk/i)

    With the post-listing, if I opened an article by a link, it would also hide the post text - which has funnily enough happened when I opened the YSK post, and by that point I’m kind of interested in what it has to say. By using the rule above, it only seems to hide it from the feed. I haven’t tested how robust it is, just posting it here in case someone else is interested.



  • I see a few people who don’t want to switch due to the hassle it would take with changing email addresses, presumably because they use one of the @proton.me email domains. Get your own email domain! It’s super cheap (if you choose one of the new TLDs, it can be as low as few dollars a year), the setup isn’t really hard - you just change a few DNS values, and that’s basically it - you can use whatever email you want that ends with your domain. It might take a while to slowly replace all your @proton.me emails with your domain one, but if you’re not in a hurry and change any old mail you see during your day-to-day activities, you’ll eventually be done with it, and you can set up mail forwarding to your domain for mail that arrives to your old @proton.me address.

    And if you ever need to move to a different provider, you just change the DNS records again to a new provider, and your email will start coming to the new one immediately.





  • Hold conferences when there is more critical work to be done.

    Insist on doing everything through ‘channels.’ Never permit short-cuts to be taken in order to expedite decisions.

    “Make ‘speeches.’ Talk as frequently as possible and at great length. Illustrate your ‘points’ by long anecdotes and accounts of personal experiences. Never hesitate to make a few appropriate ‘patriotic’ comments.”

    That reminds me of something. Standup, Kaban, Retrospective! It’s Agile!



  • If you want a headstart, I’d recommend looking into other kinds of languages, such as lisp, assembly, smalltalk and prolog. You will probably have classes on those in college (at least I did have mandatory ones), and it can take a while to wrap your head over such different programming styles.

    And it also helps wonders to make you into a versatile programmer - since you would be vaguely familar with most of the different styles of languages there are, picking up a any new language will be a lot faster, since it will probably be similar to one of the above mentioned.