News for hackers. Stuff that matters.

iuafhiuah

Related but not quite the same interface. Libreoffice already supports Python in macros, and you can run Libreoffice headless on the command line.

https://help.libreoffice.org/6.3/en-US/text/sbasic/python/ma...

I've used this functionality to automate running Python scripts to update speadsheets using Libreoffice Calc in a container so non-devs can have their cake and eat it.

Re:Steam Deck OLED on Thursday November 09, 2023 @03:25PM (#38210717)
SteamOS supports HDR, VRR and Raytracing.

Joshua Ashton (Valve Developer) gave a talk called "Rainbow Frogs: HDR + Color Management in Gamescope/SteamOS" at XDC this year where he explained how they improved colour management on Linux when other people have so far failed.

https://www.youtube.com/live/Gg4eSAP1uc4?feature=shared&t=40...

Melissa Wen (Igalia) talked more about how they're gonna try and upstream the work, but there are lots of moving upstream parts and they all move very slowly in "The rainbow treasure map: advanced color management on Linux with AMD/Steam Deck"

https://www.youtube.com/watch?v=Gg4eSAP1uc4&t=4010s

There is also a talk by Friedrich Vock called "Improving the World's Slowest Raytracer" about how they're slowly making RT viable on Linux.

https://www.youtube.com/watch?v=Gg4eSAP1uc4&t=27361s

Overall, a very interesting set of talks for anybody interested in Linux gaming.

> Nothing there is truly designed to optimize how to improve in a place that can’t build. London can’t build either, even if its costs are a fraction of New York’s

Maybe I'm misunderstanding this statement, but between 2009 and 2022 London finished the 73 miles (118 km) long Crossrail Project (Elizabeth Line), with 26 miles (42 km) of new tunnel, 10 new stations, and 31 refurbished stations (some of which were entirely rebuilt).

  https://www.theguardian.com/uk-news/2022/mar/13/elizabeth-line-crossrail-opening-london
  https://web.archive.org/web/20180730181725/http://www.crossrail.co.uk/news/crossrail-in-numbers
Seconding Lutris. Just install Lutris from the Flatpak store and login to your GOG account.[0] I have played a couple of games this one. The only one that wouldn't install was the first Jazz Jackrabbit which I didn't debug. I have a feeling it was because by default it used the Linux installer rather than just running the Windows executable via WINE/proton.

[0] https://github.com/lutris/lutris/wiki

I have had mine since April 2022 so I have ~14 months of usage on it.

It has become the only way I play games now. The single USB-C is great, I plug it into the same dock [a Dell WD19TBS] I use for my work MBP and personal XPS which provides dual screen, keyboard, mouse, Ethernet, additional USB ports, power, etc over a single cable.

I use it any time I'm travelling which can be anything from 20 mins to 15 hours. Depending on which game I'm playing, I can still get ~6 hours of battery in a single charge and it still charges quick enough. It uses the USB Power Delivery 3.0 standard so any >=45 W charger from a phone or battery pack will work.

This is a bit like the original Switch adverts when it first came out. Where people are playing a game on their sofa at home, then take the console with them to a party on a roof somewhere.

I thought I would never use the trackpads but they are probably the killer input. I use them extensively, they've very sensitive which makes them perfect for fine input controls, and they have rumble motors in them so it feels like you're physically moving something.

The suspend-resume is fantastic, it's very quick and works even though games were not designed for this usecase like they are on consoles.

One complaint I've heard a few times if from people who have already spent a lot on a powerful PC to play games, and are then disappointed that games are less impressive on a device optimised to run at 10W. I was already used to running AAA games on low->medium graphics so in some cases the Steam Deck was actually an upgrade for me.

Re:macOS command-line tools you might not know about on Tuesday June 27, 2023 @08:59AM (#36492108)
I find it so annoying that these only work with plain text and RTF. On X11 there is `xclip`[0] and on Wayland there is `wl-clipboard`[1] both of which support binary file formats either through parsing the header or explicitly setting the MIME type.

This means you can do things like copy an image from the terminal and paste it into a graphical program like a browser or chat client and vice-versa. Also can be very useful in shell scripts for desktop automation.

The workaround on MacOS is to use AppleScript via `osascript` to `set the clipboard to...`.

  [0] https://github.com/astrand/xclip
  [1] https://github.com/bugaevc/wl-clipboard
Re:The Windows 11 Trash Party on Tuesday April 18, 2023 @06:56PM (#35621628)
How long ago was this? Screen sharing[0] and capture[1] works fine in wlroots.

  [0]: Supported with workarounds circa 2020, most were merged by 2022 - https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility
  [1]: I've had success using `wf-recorder` https://github.com/ammen99/wf-recorder
Re:The Windows 11 Trash Party on Tuesday April 18, 2023 @09:12AM (#35613534)
The question isn't possible to answer, what one person expects to work another person might not consider it important. Likewise, what does "compatible" mean?

I have used Wayland exclusively for over a year and not found any software I could not run.

For example, JAVA doesn't have native Wayland support, so if you launched GUI JAVA software Wayland will run it in a sandboxed X11 server (XWayland) that behaves mostly like Wayland in the context of the rest of your system but is just X11 under the hood.

However, because that JAVA software is technically running in X11 and X11 doesn't have the level of support as Wayland does for HiDPI then that specific GUI program can't inherit your pixel config. This will probably just mean the default layout for that program will be too small or blurry.

This is a good example because it's not unreasonable that in 2023 you may not be running any GUI JAVA software and you may never even realise this was an thing. Equally, GUI JAVA software may be the only software you run in which case this may be unacceptable.

There are other things Wayland does differently to X11 (because it's different software). For example, Wayland doesn't have a method for a program to register a global hotkey - if you want a global hotkey you have to register it in your WM or DE. This is because the tighter security model stops one program from capturing inputs to another AND because the developers can't come to a consensus on the API to enable this.

You may consider Wayland not supporting arbitrary global hotkeys to be incompatible with what you expect. I don't because I have no issue with the centralised global hotkeys in my WM.

Re:The Windows 11 Trash Party on Tuesday April 18, 2023 @07:11AM (#35612419)
Would recommend trying out PipeWire[0] if you haven't already. I don't know what your sound issues are but I've had no problems since switching ~15 months ago.

[0] https://wiki.archlinux.org/title/PipeWire

Re:The Windows 11 Trash Party on Tuesday April 18, 2023 @07:03AM (#35612359)
It does on Wayland. X11 isn't likely to get it because it's EoL.

Currently using it right now on Sway: https://man.archlinux.org/man/sway-output.5.en

So the change is instead of two free emails per domain forever, it's going to be two free emails per domain for the first year.

Additionally, the price per email is going up massively:

  Standard: 0.31 GBP -> 2.99 GBP (964%)
  Premium: 1.57 GBP -> 5.99 GBP (381%)
Work from the Asahi Linux team has been upstreamed since 5.13. This article makes it sound like 6.2 is good to go when that's really not the case.

There is a list of upstreamed and missing functionality on the Asahi Linux wiki here: https://github.com/AsahiLinux/docs/wiki/Feature-Support

Linux 6.2 adds (checks notes): cpufreq to M1s, devicetree for newer hardware, HDMI out to Mac Studio (2022) and bluetooth support.

That doesn't sound as interesting as this article suggests when stuff like USB, the touchpad, keyboard, speakers, 3.5mm audio, suspend/sleep are all still WIP downstream.

This isn't a dig at the Asahi Linux developers. They're making solid progress. This is just a bad article.

Re:Debian Privacy Issues on Monday February 13, 2023 @10:34AM (#34774701)
For platforms where the program is sandboxed and permissions have to be declared, I would frown at the software requesting network access just to check for updates. For example, mobile apps and programs in Flatpaks.
Another solution might be to override the root user directory like:

_JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/programName" programName

Re:Ask HN: Best practices for self-healing apps? on Wednesday February 08, 2023 @07:29AM (#34707153)
Although these notes from Heroku are relatively old now, following all of the Twelve-Factor rules will get your code and associated pipelines most of the way to a place where self-healing is free by design.

https://12factor.net/

These days it's very easy to use Google Play on LineageOS as if it were an official ROM. Usually because you're telling Google you are to pass SafetyNet.

I've used Okta Verify on Lineage 19 without issue. Although I managed to get Okta to spit out a regular MFA string so I could dump Verify and use my regular MFA app.

Similar to your examples. The NReal Air AR glasses are activated and the firmware is patched using WebUSB:

https://activation.nreal.ai/en/nreal-air-upgrade-plus.html

They come with a plastic insert you can clip on the front so you have a solid background to look at.[0]

[0] https://resource.nreal.ai/web/images/air/air_packaging_verti...

I've had a pair of these since September 2022 and tried them on quite a few things. The 45* viewing angle is not really a problem, because it's not for VR and VR support is _very_ limited (currently just specific Android devices or with CloudXR on specific GPUs with USB-C DP-alt output). The device support for AR functionality is better but there aren't any killer apps. Although there was a recent tech demo of them being used for live captioning real life.[0]

However, they work fantastically as a _dumb_ external display on any computer with USB-C DP-alt output. Tested on MacOS, Linux and Windows 7. My glasses with the firmware revision from ~November 2022 works without issue on M1 MBPs, 2018 Dell XPS and the SteamDeck. Prior firmware revisions had several issues with misrepresenting their capabilities to the host system causing unstable framerates so older reviews which mention this may no longer be applicable.

Best usecase I've found is for watching films on a plane or in bed. You can comfortably lay flat, staring at the ceiling without the cable getting in the way. But there is an amount of reflection on the screen when used in bright places which can be annoying.

I got mine cheaper imported from Japan. If you're in the UK do not bother trying to get them from EE.

[0] https://www.youtube.com/watch?v=LauvOTnZMZg

Re:Rant: Year of Linux on the Desktop (2022) on Sunday January 01, 2023 @11:25AM (#34207628)

   > "Linux won't be viable for gaming until I can run Fortnite, Destiny 2 and Xbox Game pass"
   > Well you have me there..
FYI MS Game Pass has worked on Linux for months now.

Fortnite and Destiny 2 are two games where the developers have both, for whatever reason, specifically gone on record to say they will ban players that attempt to play their games on Linux.

Re:Writing good performance self reviews on Friday December 16, 2022 @03:57PM (#34020270)
I've been doing these for the best part of a decade and it was only in the last couple of years I realised completing a performance review (for me) has been the same as updating your CV - the same advice applies.

Just submit a list of single sentences that say things like "Designed and implemented a doodad that saved n hours per day and enabled $BUZZWORD". List the outcomes of things you did this year, use STAR, whatever you prefer.

The best part of doing it this way - if they don't give you a nice bonus/raise, you've just updated your CV ready for your next place of work!

Re:Not-so-great features coming soon to Windows 11 on Sunday December 11, 2022 @12:43PM (#33945377)
Most is a stretch.

The FPS in the top 100 currently most popular games on Steam[0] and their status [1]:

  #01 CS:GO - native
  #04 PUBG - anticheat
  #05 CoD MW2 - anticheat
  #06 Apex - Works (it has anticheat that works on Linux)
  #07 TF2 - native
  #09 Rust - Works
  #12 Destiny 2 - anticheat
  #21 Rainbow 6 - anticheat
  #22 DayZ - Works (it has anticheat that works on Linux)
  #26 Warframe - Works
  #69 Payday2 - Works
  #78 Arma 3 - Works (it has anticheat that works on Linux)
  #79 CS:S - Native
Native or working: 9/13

Broken: 4/13

Non-steam or outside top-100:

  OW2 - Linux is second class and not actively supported - but Blizzard have unblocked Linux support when issues were reported
  Battlefield (all?) - Works
  CoD (before MW2) - Works
  Gundam Evolution - anticheat
[0] https://store.steampowered.com/charts/mostplayed

[1] https://www.protondb.com/

Re:Let's Encrypt posts letter from executive director on Tuesday December 06, 2022 @10:55AM (#33882071)
That's an interesting solution to mitigating risk. I wasn't aware that LE would follow a CNAME to a different TXT record.

Although it does require an additional NS which is an additional maintenance overhead - that is preferable to leaving automated services sitting around with write access to important domains. At least until I can stop regularly writing DNS records.

Re:Let's Encrypt posts letter from executive director on Tuesday December 06, 2022 @10:42AM (#33881837)
I don't see announcing a public key being much different to PGP or other trust systems. If I say I sign my messages with `63847B4B83930F0C` and you save that information you'll continue to trust that it's me in the future even though there is no proof I still control the private key.

If anything, as far as I'm concerned, DNS-based challenges are a stronger proof that I own the domain as it requires access to the nameserver. HTTP-based challenges just prove that I have access to a computer pointed to by a DNS record which is far easier to get wrong. This is why wildcard domains cannot be issued to HTTP challenges, just because I can serve a file on a subdomain doesn't mean I own the parent domain.

But I agree, using a key-based DNS challenge would be a new feature. It was discussed before but at the time LE devs didn't come to a consensus with how to move it forwards.

Re:Let's Encrypt posts letter from executive director on Monday December 05, 2022 @07:03PM (#33873836)
I am glad it looks like the IETF ACME specification only addresses the HTTP-01 challenge. I really would like to see improvements made to the DNS-01 challenge before it's ratified, namely, let us publish a public key to a TXT record and use the private key to sign the renewal request. Then I can revoke certbot's access to my DNS records and stop hacking the `.well-known` path.