linuxusers.in is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Admin email
dharmiik@proton.me
Admin account
@dharmik@linuxusers.in

Search results for tag #javascript

Hacker News 50 » 🤖
@hn50@social.lansky.name

Oracle justified its JavaScript trademark with Node.js–now it wants that ignored

Link: deno.com/blog/deno-v-oracle2
Discussion: news.ycombinator.com/item?id=4

    James Scholes »
    @jscholes@dragonscave.space

    Are there good libraries for doing full-text search (or just efficient string matching) in a client-side application in the browser?

    I have multiple large arrays of objects, each with many fields, some of which are simple strings while others contain HTML. But this is a static site, so I have no server-side backing to perform a search in a database.

      Diegovsky boosted

      Mika »
      @irfan@sakurajima.social

      🥳

      I'm a /. I'm most fluent in , have some basics in and , but I'm also taking up new languages like and others in my eternal journey of getting better and minimising the impostor syndrome that befalls pretty much all programmers (I feel). I'm also very experienced in / technologies, and have been the one devising solutions and maintaining infrastructure in a fast-paced startup environment in my previous employment.

      I'm passionate in what I do and those that know me here or IRL would know that I'm always yapping about the things I'm learning or working on - I love discussing them, and I love helping people out - esp those on the same boat as me.

      This passion has led me into writing and maintaining tons of projects like Mango: a content distribution framework based on for and that powers various bots of mine like @lowyat@mastodon.social and @waktusolat@mastodon.social, Charts: a chart repository for an easy and reproducible deployment strategy for all my projects and everything else I self-host on my , and Orked: O-tomated distribution, a collection of scripts I wrote that are comprehensively documented to enable everyone to self-host a production-grade cluster for absolutely free in their homes.

      I'm based in Malaysia, but I'm open to just about any on-site, hybrid, or remote job opportunities anywhere. In the meantime though, I'm actively looking for a job in countries like and , in a bid for a desperate lifestyle change. I've linked below my Portfolio (which you too, could self-host your own!), for those who'd wish to connect/learn more of me. Thank you ❤️

      🔗 https://l.irfanhak.im/resume

        TJ Draper »
        @tjdraper@phpc.social

        I've worked with dates and times in several programming languages, and I have to say that the best is easily PHP (since the big refactor in, what was it, 5.6?).

        The worst is easily Javascript.

          heise online English » 🤖
          @heiseonlineenglish@social.heise.de

          IT salary calculator: top salaries in Germany for JavaScript and TypeScript

          JetBrains has revised its IT salary calculator and shows insights into developer salaries, depending on programming language, country and experience.

          heise.de/en/news/IT-salary-cal

            heise Developer »
            @heisedeveloper@social.heise.de

            Webframework: Astro 5.2 bringt Support für Tailwind CSS 4.0

            Das Minor Release vereinfacht die Anbindung an Tailwind CSS und leitet URLs mit abschließenden Schrägstrichen automatisch um.

            heise.de/news/Webframework-Ast

              bignose »
              @bignose@fosstodon.org

              @b0rk
              > I feel like I get confused really quickly in vanilla js programs when I start to build anything even a little bit complicated

              The book _JavaScript: The Good Parts_ is outdated now w.r.t. the specific language syntax and APIs (modern ECMAScript is vastly better since those days).

              But I still follow the principle that guided that book: There is a pretty good programming language buried in ; provided you carve it away from all the bad stuff.

              @simon

                Zło To »
                @mattesilver@101010.pl

                Just started a new project, `betterer-json`. It's like JSON Patch, except it's javascript.

                You write your script match like a JSON Patch - use JSONPath to select values to process, each value is sent to a callback, and its result is put back in the JSON document.

                This example changes '"format": "datetime"' to '"format": "date-time"' across json document

                ```
                replace('$..format', value => {
                if(value === 'datetime')
                return 'date-time';
                return value
                })
                ```

                github.com/python-lapidary/bet

                  Jean Marie Favreau »
                  @jm_favreau@c.im

                  Question dev web : je veux faire du rendu html à partir de données json, pour alléger le temps de génération des pages d'un serveur django et mutualiser du cache entre pages.
                  Vous connaissez des choses légères qui font du json to html (peut-être avec quelques conditions) ?
                  J'ai vu ça par exemple : json2html.com/

                    EricRogerGarcia »
                    @ericrogergarcia@ludosphere.fr

                    [2]

                    I would like the core of this library to be freely usable, that contributions remain free but I would like the software that uses it to be proprietary (maybe) which is a bit inconsistent (I’m thinking about this!!!).

                      David Bisset »
                      @davidbisset@phpc.social

                      st1nger »
                      @st1nger@infosec.exchange

                      Implementations of the new Temporal object are starting to be shipped in experimental releases of developer.mozilla.org/en-US/bl

                        Hacker News 50 » 🤖
                        @hn50@social.lansky.name

                        Jobs for Developers » 🤖
                        @jobsfordevelopers@mastodon.world

                        Hacker News 50 » 🤖
                        @hn50@social.lansky.name

                        Classic Duck Hunt game made in JavaScript and Kaplay

                        Link: jslegend.itch.io/duck-hunter
                        Discussion: news.ycombinator.com/item?id=4

                          Aaron Longchamps »
                          @heatsink@infosec.exchange

                          Next task on this plan*: Vue routing. I know Vue has dynamic routing, but I am still researching the best way to do dynamic routing with parameters. For example, have the path /items/:id, and then also see if I can do /items/:id/edit in order to bring up the edit page for that URL. It's based on the folder/file structure if you want the automatic routing to do it for you.

                          If I can get that working in Vue's automatic route mapping, that would be extremely helpful. Otherwise, I'll just do it by hand. My code so far has been doing it manually so I am leaning in that direction now.

                          This is also partially because I have a particular URL scheme in mind for how I want to do this.

                          *There is no plan, we're having fun here and seeing where we end up!

                            Aaron Longchamps »
                            @heatsink@infosec.exchange

                            Tonight's short update - I added a new table to the database to store device types, associated HTTP GET all device types, HTTP POST create device type, and a settings page in the app with tabs to view the device types.

                            This gave me more practice in laying out pages in Vue/Vuetify, using classes to control the layout, height, width, etc.

                            My next update has to be more focused on the backend and testing since I don't have that many tests going on there now.

                            Below is a screenshot of the table as it stands now and I'll link to the frontend in my latest commit here: github.com/alongchamps/rack-ro

                            Screenshot from my web app called Rack Root showing the settings page and some test data rendered in a table

                            Alt...Screenshot from my web app called Rack Root showing the settings page and some test data rendered in a table

                              Aaron Longchamps »
                              @heatsink@infosec.exchange

                              Another 50 lines of code and now I have a new device dialog box that will pop up, ask for the name, and behave as expected. Submitting the form will send the data to the backend to make the device type. Clicking outside the dialog or cancel will make the dialog go away.

                              I also discovered that the field will retain the data that's in it, until it's cleared. I chose to only do this on submission and handled it in the javascript.

                              This update also gave me some practice with the v-model functionality in Vue where it goes between the HTML <template> tags and javascript contexts.

                              Screenshot from my home lab inventory program Rack Root showing a table of device types

                              Alt...Screenshot from my home lab inventory program Rack Root showing a table of device types

                              Screenshot from my home lab inventory program Rack Root showing the new device type dialog

                              Alt...Screenshot from my home lab inventory program Rack Root showing the new device type dialog

                                Aaron Longchamps »
                                @heatsink@infosec.exchange

                                I decided to change the add/remove functionality on the gateway field and replace it simply with a wrench icon that lets you edit the value.

                                In the Vuetify code, this gets around me having to check the logic of whether the value is populated or not and rendering the right color button. I think it fits better with the code, input form modal, and other parts of the page. Accordingly, I changed the color to yellow.

                                I'm still working on some of the javascript for it and next time, I need to:

                                a) detect if a value is in the form and if so apply it to [POST] /networks/{id}/gateway
                                b) if no value is in the form, call [DELETE] on /networks/{id}/gateway
                                c) add better error handling so that invalid values bump the user back to the input modal with a relevant message
                                d) detect that someone didn't put in the network address or broadcast address (backend only, builds on c)

                                If someone puts a gateway in that's not in the same network, it will be rejected by the backend, but the front end needs to also show something useful. That's its job!

                                Screenshot of the network details page on my home lab inventory program showing IP, subnet mask, gateway, VLAN, and categorization information.

                                Alt...Screenshot of the network details page on my home lab inventory program showing IP, subnet mask, gateway, VLAN, and categorization information.

                                  Artemis »
                                  @artemissian@fosstodon.org

                                  Hacker News 50 » 🤖
                                  @hn50@social.lansky.name

                                  Pharaoh's Tomb HD – A Remake Made in JavaScript with Kaplay

                                  Link: pt-hd.iocaihost.me/
                                  Discussion: news.ycombinator.com/item?id=4

                                    Hacker News 50 » 🤖
                                    @hn50@social.lansky.name

                                    Hacker News 50 » 🤖
                                    @hn50@social.lansky.name

                                    2 ★ 0 ↺

                                    dharmik »
                                    @dharmik@linuxusers.in

                                    conway’s game of life using the canvas api on my website. go check.

                                    https://dhrm1k.github.io/conways-game-of-life-canvas.html

                                      Joe Pasqua »
                                      @bitsplusatoms@mastodon.social

                                      There’s a joke about Data Scientists:
                                      “Data Scientists spend 80% of their time cleaning data and the other 20% complaining about it.”

                                      Seems like there should be one for JavaScript programmers:
                                      “JavaScript programmers spend 80% of their time picking frameworks and the other 80% replacing them.”

                                      I’m grouchy because I’m writing frontend code, which I do rarely, and every time I do, there’s a new “hotness” to learn.

                                      Alt...Man furiously typing away at computer keyboard

                                        Hacker News 50 » 🤖
                                        @hn50@social.lansky.name

                                        Hacker News 50 » 🤖
                                        @hn50@social.lansky.name

                                        Libsearch: Simple index-free full-text search for JavaScript

                                        Link: github.com/thesephist/libsearc
                                        Discussion: news.ycombinator.com/item?id=4

                                          Hacker News 50 » 🤖
                                          @hn50@social.lansky.name

                                          screwlisp boosted

                                          Tomáš »
                                          @prahou@merveilles.town

                                          NO-JS Fingerprinting (slight return)

                                          automa.triapul.cz/nojs-fingerp

                                          A continuation of a previous article on the nifty invention of fingerprinting simple web browsers.

                                          Special thanks to @Reiddragon

                                          Ema looks at a links2 fingerprint.

                                          Alt...Ema looks at a links2 fingerprint.

                                            Diegovsky boosted

                                            Kat Marchán 🐈 »
                                            @zkat@toot.cat

                                            I am absolutely overjoyed to announce the release of 2.0.0!! kdl.dev

                                            It's a significant overhaul of the language to make it SO MUCH NICER in so many ways.

                                            This is the culmination of over 3 years of work (4 if you count from before 1.0.0), by SCORES of contributors.

                                            github.com/kdl-org/kdl/release

                                            I want to give huge thanks to everyone who supported all of us through this, who jumped in and had some really amazing discussions weighing all sorts of interesting trade-offs.

                                            The end result is absolutely not something any one person could've reasonably come up with.

                                            I hope y'all enjoy it <3

                                            As part of this release, several implementations have already launched with full support for v2.0.0, so you can try it now!

                                            👉 github.com/kdl-org/kdl-rs
                                            👉 / / github.com/tjol/ckdl
                                            👉 github.com/IceDragon200/kuddle
                                            👉 / github.com/bgotink/kdl
                                            👉 github.com/tabatkins/kdlpy

                                            KDL is already used in all sorts of projects, and by various folks as a DSL for their own small hobby things: github.com/kdl-org/kdl?tab=rea

                                            There are around 8k .kdl files out on GitHub, which is a lot considering it's usually a config language!

                                            I fully expect this to be the last version of KDL ever released. We really really tried, but I don't think there's anything we can reasonably improve on.

                                            From here on out, the language is in the (stable!) hands of the ecosystem.

                                            Also, we're hoping to have GitHub syntax highlighting support soon!

                                            (Boosts welcome!!)

                                            syntax-highlighted zellij config ported to 2.0.0 format.

// This config is just like `zellij.kdl`, except it shows what it would look
// like if modifiers were done using `+` instead of spaces (thus needing to be
// quoted).
keybinds {
    normal {
        // uncomment this and adjust key if using copy_on_select=#false
        /- bind Alt+c { Copy }
    }
    locked {
        bind Ctrl+g { SwitchToMode Normal }
    }
    resize {
        bind Ctrl+n { SwitchToMode Normal }
        bind h Left { Resize Left }
        bind j Down { Resize Down }
        bind k Up { Resize Up }
        bind l Right { Resize Right }
        bind "=" + { Resize Increase }
        bind - { Resize Decrease }
    }
    pane {
        bind Ctrl+p { SwitchToMode Normal }

                                            Alt...syntax-highlighted zellij config ported to 2.0.0 format. // This config is just like `zellij.kdl`, except it shows what it would look // like if modifiers were done using `+` instead of spaces (thus needing to be // quoted). keybinds { normal { // uncomment this and adjust key if using copy_on_select=#false /- bind Alt+c { Copy } } locked { bind Ctrl+g { SwitchToMode Normal } } resize { bind Ctrl+n { SwitchToMode Normal } bind h Left { Resize Left } bind j Down { Resize Down } bind k Up { Resize Up } bind l Right { Resize Right } bind "=" + { Resize Increase } bind - { Resize Decrease } } pane { bind Ctrl+p { SwitchToMode Normal }

                                            a section of a syntax-highlighted example KDL document based on a GitHub Actions yaml configuration, ported to KDL 2.0.0.

    steps {
      step uses="actions/checkout@v1"
      step "Install Rust" uses="actions-rs/toolchain@v1" {
        profile minimal
        toolchain "${{ matrix.rust }}"
        components clippy
        override #true
      }
      step Clippy { run cargo clippy --all -- -D warnings }
      step "Run tests" { run cargo test --all --verbose }
      step "Other Stuff" run="""
        echo foo
        echo bar
        echo baz
        """
    }

                                            Alt...a section of a syntax-highlighted example KDL document based on a GitHub Actions yaml configuration, ported to KDL 2.0.0. steps { step uses="actions/checkout@v1" step "Install Rust" uses="actions-rs/toolchain@v1" { profile minimal toolchain "${{ matrix.rust }}" components clippy override #true } step Clippy { run cargo clippy --all -- -D warnings } step "Run tests" { run cargo test --all --verbose } step "Other Stuff" run=""" echo foo echo bar echo baz """ }

                                              Hacker News 50 » 🤖
                                              @hn50@social.lansky.name

                                              Boardgame.io: an engine for creating turn-based games using JavaScript

                                              Link: github.com/boardgameio/boardga
                                              Discussion: news.ycombinator.com/item?id=4

                                                Hacker News 50 » 🤖
                                                @hn50@social.lansky.name

                                                Show HN: @smoores/epub, a JavaScript library for working with EPUB publications

                                                Link: npmjs.com/package/@smoores/epu
                                                Discussion: news.ycombinator.com/item?id=4

                                                  Hacker News 50 » 🤖
                                                  @hn50@social.lansky.name

                                                  Litdb – type safe SQL for JavaScript/TS

                                                  Link: litdb.dev/
                                                  Discussion: news.ycombinator.com/item?id=4

                                                    Hacker News 50 » 🤖
                                                    @hn50@social.lansky.name

                                                    Hacker News 50 » 🤖
                                                    @hn50@social.lansky.name

                                                    EstyJS 2.0 (emulator for the Atari ST, written in 100% pure JavaScript)

                                                    Link: kaiec.github.io/EstyJS/
                                                    Discussion: news.ycombinator.com/item?id=4

                                                      Hacker News 50 » 🤖
                                                      @hn50@social.lansky.name

                                                      My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

                                                      Link: armaansahni.com/game/
                                                      Discussion: news.ycombinator.com/item?id=4

                                                        screwlisp boosted

                                                        Tomáš »
                                                        @prahou@merveilles.town

                                                        No Javascript Browser fingerprinting - experimental warfare in

                                                        automa.triapul.cz/nojs-fingerp

                                                        ...

                                                        edit: just a side note, thanks to another fellow links2gangster, you can supply links2 with some completely arbitrary header, which will change the fingerprint: ie

                                                        links -g -http.extra-header "Accept: $RANDOM/$RANDOM" noscriptfingerprint.com/

                                                        But I suppose the best practice would be to rotate real (useless?) headers, as this will potentially make the browser stand out.

                                                        Thanks @smoon

                                                        ..

                                                        ft: @wtfismyip

                                                        triapul Ema is looking at a No-JS fingerprinting website in links2

                                                        Alt...triapul Ema is looking at a No-JS fingerprinting website in links2

                                                          Hacker News 50 » 🤖
                                                          @hn50@social.lansky.name

                                                          Hacker News 50 » 🤖
                                                          @hn50@social.lansky.name

                                                          Show HN: I created a lightweight JavaScript library to visualize JSON as a graph

                                                          Link: github.com/xzitlou/jsontr.ee
                                                          Discussion: news.ycombinator.com/item?id=4

                                                            Hacker News 50 » 🤖
                                                            @hn50@social.lansky.name