Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices tagged with javascript, page 3

  1. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Tuesday, 03-Nov-2020 22:16:43 EST lnxw48a1 lnxw48a1
    I've reloaded the #NBCNews page so many times that their "please turn off your adblocker" interstitial stopped giving me the view site anyway option. Turning off #JavaScript got rid of that, but no more nice election results map. Switching to #CNN.

    #USPol #Politics #Election2020
    In conversation Tuesday, 03-Nov-2020 22:16:43 EST from nu.federati.net permalink
  2. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Wednesday, 28-Oct-2020 17:55:46 EDT lnxw48a1 lnxw48a1
    • mangeurdenuage
    @mangeurdenuage There are also some sites that try to prevent copy-pasting passwords. I think PayPal does this when people are changing passwords. It's evil, but if users have #JavaScript / #JabbaShit activated, sites can do things like this.

    I do agree that users need to be willing to think and to learn something when using computing devices. Trying not to have to think, not to learn something is a direct highway to having someone else do all your thinking and make all your decisions and choices for you.

    I also think developers and companies like to change the UI and the way users interact with software far too often. No, you don't need to follow this year's appearance fad like you followed the fads of the year for the past 2-3 years. Leave things alone for a few years.
    In conversation Wednesday, 28-Oct-2020 17:55:46 EDT from nu.federati.net permalink
  3. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Tuesday, 20-Oct-2020 12:38:24 EDT lnxw48a1 lnxw48a1
    • mangeurdenuage
    @mangeurdenuage Sounds like PleromaFE. I think some instances run alternate front ends which may or may not work without #JavaScript / #JabbaShit.
    In conversation Tuesday, 20-Oct-2020 12:38:24 EDT from nu.federati.net permalink
  4. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Wednesday, 30-Sep-2020 11:35:23 EDT lnxw48a1 lnxw48a1
    in reply to
    • lnxw48a1
    "Your browser is not Javascript enable or you have turn it off. We recommend you to activate for better security reason"

    Oh, yes. Turning on #JavaScript / #JabbaShit is going to improve my security as you plunder my browser history and upload my files and photos to your server. I will turn it on right away.
    In conversation Wednesday, 30-Sep-2020 11:35:23 EDT from nu.federati.net permalink
  5. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Thursday, 10-Sep-2020 20:20:50 EDT lnxw48a1 lnxw48a1
    JS-based webapps are a lot like adding salt to one's food. There's a point where you're simulating food with colored salt. No matter how appealing it looks, it is still nasty and harmful.

    #JavaScript #JabbaShit
    In conversation Thursday, 10-Sep-2020 20:20:50 EDT from nu.federati.net permalink
  6. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Tuesday, 01-Sep-2020 16:16:09 EDT lnxw48a1 lnxw48a1
    #JavaScript should be off-by-default and enabled on a per-site basis ... and only if necessary for some particular site function.

    I just visited http://diveintomark.org/ just to see whether Mr. Pilgrim decided to come back one more time. Instead, I see one of those "this site works better with JS enabled" messages. Being me, I CTRL+U and view source. Yep, just as expected. Adsense.js ... I didn't read farther, so I don't know whether this is one of those squatters.

    Nope. Not going to turn on JS.
    In conversation Tuesday, 01-Sep-2020 16:16:09 EDT from nu.federati.net permalink
  7. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Thursday, 27-Aug-2020 05:17:31 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #prplfoundation needs to #deleteGithub https://prplfoundation.org/prplmesh/ https://gitlab.com/prpl-foundation/prplmesh both blocked by #javascript and #microsoft #proprietarySoftware
    In conversation Thursday, 27-Aug-2020 05:17:31 EDT from pleroma.site permalink

    Attachments

    1. File without filename could not get a thumbnail source.
      prplMesh - prpl Foundation, Open Source - IoT, Security and OpenWrt
      By Shelly Coen from prpl Foundation, Open Source - IoT, Security and OpenWrt
      prplMesh
    2. Invalid filename.
      Groups · prplMesh
      from GitLab
      Everything related to prplMesh
  8. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Thursday, 20-Aug-2020 04:09:46 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    ● NEWS ● #SecurityWeek #ProprietarySoftware ☞ Ongoing Campaign Uses #Javascript Smuggling for #Malware Delivery https://www.securityweek.com/ongoing-campaign-uses-html-smuggling-malware-deliver
    In conversation Thursday, 20-Aug-2020 04:09:46 EDT from pleroma.site permalink
  9. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Tuesday, 18-Aug-2020 21:25:01 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #JavaScript can compromise the user’s network devices! https://dwaves.de/2020/08/17/freetz-alternative-firmware-for-older-fritzboxes/
    In conversation Tuesday, 18-Aug-2020 21:25:01 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      Freetz Alternative Firmware for Older FritzBoxes
      By admin from dwaves.de
      Freetz Alternative Firmware for Older FritzBoxes
  10. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Wednesday, 12-Aug-2020 17:37:54 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    9 reasons I upgraded from #AngularJS to #Angular https://opensource.com/article/20/8/upgrade-angular #javascript #programming
    In conversation Wednesday, 12-Aug-2020 17:37:54 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      9 reasons I upgraded from AngularJS to Angular
      from Opensource.com
      In 2010, Google released AngularJS, an open source, JavaScript-based frontend structure for developing single-page applications (SPAs) for the internet. With its move to version 2.0 in 2016, the framework's name was shortened to Angular. AngularJS is still being developed and used, but Angular's advantages mean it's a smart idea to migrate to the newer version.
  11. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Tuesday, 11-Aug-2020 17:22:58 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    The best frontend #JavaScript framework for #Django https://spikelantern.com/articles/the-best-frontend-javascript-framework-for-django/
    In conversation Tuesday, 11-Aug-2020 17:22:58 EDT from pleroma.site permalink

    Attachments

    1. File without filename could not get a thumbnail source.
      The best frontend JavaScript framework for Django
      from spikelantern
      A question I've seen asked a lot is "what's the best frontend JavaScript framework to use with Django". Django itself doesn't make any recommendation on which frontend framework to use, or even assumes you're using a frontend framework at all. So, which frontend framework should you be using? And which one "plays well" with Django?
  12. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Monday, 27-Jul-2020 16:42:51 EDT lnxw48a1 lnxw48a1
    In the late 1990s, when I had a computer running #Win95, with 32MB of RAM, one of my brothers had started playing an online game with "hive" as part of its name. Anyway, I was recently curious and wondered what the original game was and whether it was still around. I don't have a firm conclusion, but I did discover at least one "hive" game that currently exists. https://www.boardgamegeek.com/boardgame/2655/hive

    (NOTE: page is #JavaScrippled. Since I was looking but not playing, I did not turn on #JavaScript to see what it does.)
    In conversation Monday, 27-Jul-2020 16:42:51 EDT from nu.federati.net permalink

    Attachments

    1. Invalid filename.
      Hive
      from BoardGameGeek
      Use your insects to trap your opponent's Queen Bee in this board-less abstract game.
  13. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Friday, 24-Jul-2020 14:17:37 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #Twitter : You need several megabytes of #HTML , #CSS , #JavaScript and fonts just to render a message or a bunch of messages (at most 280 characters long) http://techrights.org/2020/07/24/twitter-annotated/
    In conversation Friday, 24-Jul-2020 14:17:37 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      How Social Control Media Works: The Case of Twitter, Visualised and Annotated
      from Techrights
      Zoom in or click below for full view/size
  14. lnxw48a1 (lnxw48a1@nu.federati.net)'s status on Tuesday, 14-Jul-2020 22:18:56 EDT lnxw48a1 lnxw48a1
    in reply to
    • musicman
    @musicman I'm sure there are more efficient ways to read logs, but I often use either
    A: "grep errorname /path/to/logfile | less"

    when I know what I'm looking for

    or

    B: "tail -n someLargeNumber /path/to/logfile | less"
    (or sometimes "tail -n someLargeNumber /path/to/logfile | head -n someSmallerNumber | less")

    when I'm just wanting to see the most recent someLargeNumber entries or some earlier subset of the most recent someLargeNumber entries.

    But most of the time, there will be at least one script tag that is loading #JavaScript. The src attribute will give a path where that is coming from.
    In conversation Tuesday, 14-Jul-2020 22:18:56 EDT from nu.federati.net permalink
  15. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Tuesday, 14-Jul-2020 06:13:51 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    Paid by #biden https://www.cnas.org/people/chris-derusha #cnas blocked by gratuitous #javascript
    In conversation Tuesday, 14-Jul-2020 06:13:51 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      Chris DeRusha
      Developing strong, pragmatic and principled national security and defense policies.
  16. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Monday, 13-Jul-2020 04:15:10 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #Programming : #Perl , #Python , #Javascript and #LibreOffice GSoC http://www.tuxmachines.org/node/139801
    In conversation Monday, 13-Jul-2020 04:15:10 EDT from pleroma.site permalink
  17. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Saturday, 11-Jul-2020 10:45:20 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #taxidermist https://www.thefarside.com/new-stuff/115/taxidermist blocked by #javascript
    In conversation Saturday, 11-Jul-2020 10:45:20 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      The Far Side | TheFarSide.com
      from TheFarSide.com
      Visit the official online home of The Far Side comic strip by Gary Larson for your daily dose of Gary’s classic cartoons.
  18. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Wednesday, 08-Jul-2020 11:29:46 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    GNOME: Session, #JavaScript Shell and #Mutter http://www.tuxmachines.org/node/139659 #gnome #gnu #linux
    In conversation Wednesday, 08-Jul-2020 11:29:46 EDT from pleroma.site permalink
  19. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Wednesday, 08-Jul-2020 11:25:05 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    The Surrealist Clock of #JavaScript https://ptomato.wordpress.com/2020/07/08/the-surrealist-clock-of-javascript/ #gnome #gnu #linux
    In conversation Wednesday, 08-Jul-2020 11:25:05 EDT from pleroma.site permalink

    Attachments

    1. Invalid filename.
      The Surrealist Clock of JavaScript
      By Philip Chimento from The Mad Scientist Review

      It’s been a long time since I last blogged. In the interim I started a new job at Igalia as a JavaScript Engine Developer on the compilers team, and attended FOSDEM in Brussels several million years ago in early February back when “getting on a plane and traveling to a different country” was still a reasonable thing to do.

      In this blog post I would like to present Temporal, a proposal to add modern and comprehensive handling of dates and times to the JavaScript language. This has been the project I’m working on at Igalia, as sponsored by Bloomberg. I’ve been working on it for the last 6 months, joining several of my coworkers in a cross-company group of talented people who have already been working on it for several years.

      This is the kind of timekeeping you get with the old JavaScript Date… (Public domain photograph by Julo)

      I already collaborated on a blog post about Temporal, “Dates and Times in JavaScript”, so I won’t repeat all that here, but all the explanation you really need is that Temporal is a modern replacement for the Date object in JavaScript, which is terrible. You may also want to read “Fixing JavaScript Date”, a two-part series providing further background, by Maggie Pint, one of the originators of Temporal.

      How Temporal can be useful in GNOME

      I’m aware that this blog is mostly read by the GNOME community. That’s why in this blog post I want to talk especially about how a large piece of desktop software like GNOME is affected by JavaScript Date being so terrible.

      Of course most improvements to the JavaScript language are driven by the needs of the web.1 But a few months ago this merge request caught my eye, fixing a bug that made the date displayed in GNOME wrong by a full 1,900 years! The difference between Date.getYear() not doing what you expect (and Date.getFullYear() doing it instead) is one of the really awful parts of JavaScript Date. In this case if there had been a better API without evil traps, the mistake might not have been made in the first place, and it wouldn’t have come down to a last-minute code freeze break.

      In the group working on the Temporal proposal we are seeking feedback from people who are willing to try out the Temporal API, so that we can find out if there are any parts that don’t meet people’s needs and change them before we try to move the proposal to Stage 3 of the TC39 process. Since I think GNOME Shell and GNOME Weather, and possibly other apps, might benefit from using this API when it becomes part of JavaScript in the future, I’d be interested in finding out what we in the GNOME community need from the Temporal API.

      It seems to me the best way to do this would be to make a port of GNOME Shell and/or GNOME Weather to the experimental Temporal API, and see what issues come up. Unfortunately, it would defeat the purpose for me to do this myself, since I am already overly familiar with Temporal and by now its shortcomings are squarely in my blind spot! So instead I’ll offer my help and guidance to anyone who wants to try this out. Please get in touch with me if you are interested.

      How to try it out

      Since Temporal is of course not yet a built-in object in JavaScript, to try it out we will need to import a polyfill. We have published a polyfill which is experimental only, for the purpose of trying out the API and integrating it with existing code. Here’s a link to the API documentation.

      The polyfill is primarily published as an NPM library, but we can get it to work with GJS quite easily. Here’s how I did it.

      First I cloned the tc39/proposal-temporal repo, and ran npm install and npm run build in it. This generates a file called polyfill/script.js which you can copy into your code, into a place in your imports path so that the importer can find it. Then you can import Temporal:

      const {Temporal} = imports.temporal.temporal;
      

      Note that the API is not stable, so only use this to try out the API and give feedback! Don’t actually include it in your code. We have every intention of changing the API, maybe even drastically, based on feedback that we receive.

      Once you have tried it out, the easiest way to tell us about your findings is to complete the survey, but do also open an issue in the bug tracker if you have something specific.

      Intl, or how to stop doing _("%B %-d %Y")

      While I was browsing through GNOME Shell bug reports to find ones related to JavaScript Date, I found several such as gnome-shell#2293 where the translated format strings lag behind the release while translators figure out how to translate cryptic strings such as "%B %-d %Y" for their locales. By doing our own translations, we are actually creating the conditions to receive these kinds of bug reports in the first place. Translations for these kinds of formats that respect the formatting rules for each locale are already built into JavaScript engines nowadays, in the Intl API via libicu, and we could take advantage of these translations to take some pressure off of our translators.

      In fact, we could do this right now already, no need to wait for the Temporal proposal to be adopted into JavaScript and subsequently make it into GJS. We already have everything we need in GNOME 3.36. With Intl, the function I linked above would become:

      _updateTitle() {
          const locale = getCachedLocale();
          const timeSpanDay = GLib.TIME_SPAN_DAY / 1000;
          const now = new Date();
          const rtf = new Intl.RelativeTimeFormat(locale, {numeric: 'auto'});
      
          if (this._startDate <= now && now <= this._endDate)
              this._title.text = rtf.format(0, 'day');
          else if (this._endDate < now && now - this._endDate < timeSpanDay)
              this._title.text = rtf.format(-1, 'day');
          else if (this._startDate > now && this._startDate - now < timeSpanDay)
              this._title.text = rtf.format(1, 'day');
          else if (this._startDate.getFullYear() === now.getFullYear())
              this._title.text = this._startDate.toLocaleString(locale, {month: 'long', day: 'numeric'});
          else
              this._title.text = this._startDate.toLocaleString(locale, {year: 'numeric', month: 'long', day: 'numeric'});
      }
      

      (Note, this presumes a function getCachedLocale() which determines the correct locale for Intl by looking at the LC_TIME, LC_ALL, etc. evnvironment variables. If GNOME apps wanted to move to Intl generally, I think it might be worth adding such a function to GJS’s Gettext module.)

      Whereas in the future with Temporal, it would be even simpler and clearer, and I couldn’t resist rewriting that method! We wouldn’t need to store a start Date at 00:00 and end Date at 23:59.999 which is really just a workaround for the fact that we are talking here about a date without a time component, that is purely a calendar day. Temporal covers this use case out of the box:

      _updateTitle() {
          const locale = getCachedLocale();
          const today = Temporal.now.date();
      
          const {days} = today.difference(this._date);
          if (days <= 1) {
              const rtf = new Intl.RelativeTimeFormat(locale, {numeric: 'auto'});
              // Note: if this negation seems a bit unwieldy, be aware that we are
              // considering revising the API to allow negative-valued durations
              days = Temporal.Date.compare(today, this._date) < 0 ? days : -days;
              this._title.text = rtf.format(days, 'day');
          } else {
              const options = {month: 'long', day: 'numeric'};
              if (today.year !== this._date.year)
                  options.year = 'numeric';
      
              this._title.text = this._date.toLocaleString(locale, options);
          }
      }
      

      Calendar systems

      One exciting thing about Temporal is that it will support non-Gregorian calendars. If you are a GNOME user or developer who uses a non-Gregorian calendar, or develops code for users who do, then please get in touch with me! In the group of people developing Temporal everyone uses the Gregorian calendar, so we have a knowledge gap about what users of other calendars need. We’d like to try to close this gap by talking to people.

      A Final Note

      In the past months I’ve not been much in the mood to write blog posts. My mind has been occupied worrying about the health of my family, friends, and myself; feeling fury and shame at the inequalities of our society that, frankly, the pandemic has made harder to fool ourselves into forgetting if it doesn’t affect us directly; and fury at our governments that perpetuate these problems and resist meaningful attempts at reform.

      With all that’s going on in the world, blogging about technical achievements feels a bit ridiculous and inconsequential, but, well, I’m writing this, and you’re reading this, and here we are. So keep in mind there are other important things too. Be safe, be kind, but don’t forget to stay furious after the dust settles.


      [1] One motivation for why some are eagerly awaiting Temporal as part of the JavaScript language, as opposed to a library, is that it would be built-in to the browser. The most popular library for fixing the deficiencies of Date, moment.js, can mean an extra download of 20–100 kb, depending on whether you include all locales and support for time zones. This adds up to quite a lot of wasted data if you are downloading this on a large number of the websites you visit, but this specifically doesn’t affect GNOME. ↩

  20. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Tuesday, 23-Jun-2020 10:11:20 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    • Dr. Roy Schestowitz (罗伊)
    #Programming Leftovers: Bash, #Qt , Dylan and #JavaScript http://www.tuxmachines.org/node/139073
    In conversation Tuesday, 23-Jun-2020 10:11:20 EDT from pleroma.site permalink
  • After
  • Before
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.