agilob

  • 145 Posts
  • 96 Comments
Joined 1 year ago
cake
Cake day: July 12th, 2023

help-circle




  • agilobtoProgrammer HumorAsking the real questions
    link
    fedilink
    English
    arrow-up
    41
    ·
    edit-2
    1 month ago

    I have an apostrophe and it’s super annoying as some companies see it as a SQL injection hack and sanitize it.

    My surname contains a character that’s only present in the Polish alphabet. Writing my full name as is broke lots of systems, encoding, printed paperwork and even British naturalisation application on Home Office website. My surname was part of my username back at uni, and everytime I tried to login on Windows, it would crash underlying LDAP server, logging everyone in the classroom out and forcing ICT to restart the server.


















  • agilobtoLinuxIs there a way to keep Linux responsive when at ~100% CPU usage?
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    6 months ago

    The Linux kernel uses the CPU default scheduler, CFS,

    Linux 6.6 (which recently landed on Debian) changed the scheduled to EEVDF, which is pretty widely criticized for poor tuning. 100% busy which means the scheduler is doing good job. If the CPU was idle and compilation was slow, than we would look into task scheduling and scheduling of blocking operations.


  • agilobtoLinuxIs there a way to keep Linux responsive when at ~100% CPU usage?
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    6 months ago

    EDIT: Tried nice -n +19, still lags my other programs.

    yea, this is wrong way of doing things. You should have better results with CPU-pinning. Increasing priority for YOUR threads that interact all the time with disk io, memory caches and display IO is the wrong end of the stick. You still need to display compilation progress, warnings, access IO.

    There’s no way of knowing why your system is so slow without profiling it first. Taking any advice from here or elsewhere without telling us first what your machine is doing is missing the point. You need to find out what the problem is and report it at the source.






  • agilobtoLinuxLinux user survey!
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    6 months ago

    Yeah this survey is super inappropriate and offensive. Please do not ask such personal questions.

    Did you notice that more inappropriate questions appear and disappear based on your previous answers?









  • agilobtoKubernetesA Peek at Kubernetes v1.30
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    9 months ago

    I completely missed that user namespaces were added in 1.25. It will make homelabs much easier and safer with little effort.

    Support user namespaces in pods (KEP-127)
    User namespaces is a Linux-only feature that better isolates pods to prevent or mitigate several CVEs rated high/critical, including CVE-2024-21626, published in January 2024. In Kubernetes 1.30, support for user namespaces is migrating to beta and now supports pods with and without volumes, custom UID/GID ranges, and more!

    https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/


  • agilobtoProgramming*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Just not in Java…

    I think you’re biased against Java. Amazon was started in C/C++ and Java J2EE during times when to configure a webserver required writing like 300 lines of XML just to handle cookies, browser cache and a login page. Until recently BMW had their own JRE implementation. It’s not a secret that simcards, including these in Tesla cars run JavaCard too, even government issues sim cards in EU have to run Java Card, not C++. Everything was always fine with Java until ECMA Script appeared and made people iterate on software versions faster. New programming languages and team organisation methodologies left some programming languages in the dark, but this included C# too. All are quickly catching up. If Java was so bad, it wouldn’t be here with us today, like Perl.


  • agilobtoProgramming*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    10 months ago

    There are two schools:

    1. the best stack is the one you know best
    2. the best stack is the one designed for the job

    Remember that Google was written in Python and Java. Facebook in PHP. iOS in Objective-C. GitHub in Ruby on Rails.




Moderates