Searching txt.sour.is

Twts matching #images
Sort by: Newest, Oldest, Most Relevant

Here’s an example of X11/Xlib being old and archaic.

X11 knows the data type “cardinal”. For example, the window property _NET_WM_ICON (which holds image data for icons) is an array of “cardinal”. I am already not really familiar with that word and I’m assuming that it comes from mathematics:

https://en.wikipedia.org/wiki/Cardinal_number

(It could also be a bird, but probably not: https://en.wikipedia.org/wiki/Cardinalidae)

We would probably call this an “integer” today.

EWMH says that icons are arrays of cardinals and that they’re 32-bit numbers:

https://specifications.freedesktop.org/wm-spec/latest-single/#id-1.6.13

So it’s something like 0x11223344 with 0x11 being the alpha channel, 0x22 is red, and so on.

You would assume that, when you retrieve such an array from the X11 server, you’d get an array of uint32_t, right?

Nope.

Xlib is so old, they use char for 8-bit stuff, short int for 16-bit, and long int for 32-bit:

https://x.org/releases/current/doc/libX11/libX11/libX11.html#Obtaining_and_Changing_Window_Properties

That is congruent with the general C data types, so it does make sense:

https://en.wikipedia.org/wiki/C_data_types

Now the funny thing is, on modern x86_64, the type long int is actually 64 bits wide.

The result is that every pixel in a Pixmap, for example, is twice as large in memory as it would need to be. Just because Xlib uses long int, because uint32_t didn’t exist, yet.

And this is something that I wouldn’t know how to fix without breaking clients.

⤋ Read More
In-reply-to » @kat why does ffmpeg always freeze the video in the first five seconds after a cut lmfao

@kat@yarn.girlonthemoon.xyz I have absolutely no idea, but I wouldn’t be surprised if it uses the closest full image after your cut point and not the one before. Hence, the deltas between the two full images have nothing to really refer to. So, the video player just shows the first full image it finds and “freezes” the image until the video stream actually hits it.

Let me try to visualize it, | represent full images, . just subsequent deltas:

Original start of video
↓
|......|.....|........|......|..
   ↑                      ↑
   Cut point      Cut point

Resulting video:

   ....|.....|........|....
   ↑↑↑↑
   This is where it freezes         

Could be complete bullshit, though. Wouldn’t be the first time that I’m wrong. :-)

I’m just curious, what exact command line do you use to cut the video?

⤋ Read More

ProcessOne: ejabberd 25.07

Image

Release Highlights:

This release focus on integration in a wider federated network, with support for spam fighting features, better compliance with Matrix network and native support for PubSub Server Information to have your server count as part of the wider XMPP network (for example, you can register your server on XMPP Network Graph).

⤋ Read More
In-reply-to » The lack of suckless-like simple, hackable software these days is appalling.

@prologic@twtxt.net Yeah, this really could use a proper definition or a “manifest”. 😅 Many of these ideas are not very wide spread. And I haven’t come across similar projects in all these years.

Let’s take the farbfeld image format as an example again. I think this captures the “spirit” quite well, because this isn’t even about code.

This is the entire farbfeld spec:

farbfeld is a lossless image format which is easy to parse, pipe and compress. It has the following format:

╔════════╤═════════════════════════════════════════════════════════╗
║ Bytes  │ Description                                             ║
╠════════╪═════════════════════════════════════════════════════════╣
║ 8      │ "farbfeld" magic value                                  ║
╟────────┼─────────────────────────────────────────────────────────╢
║ 4      │ 32-Bit BE unsigned integer (width)                      ║
╟────────┼─────────────────────────────────────────────────────────╢
║ 4      │ 32-Bit BE unsigned integer (height)                     ║
╟────────┼─────────────────────────────────────────────────────────╢
║ [2222] │ 4x16-Bit BE unsigned integers [RGBA] / pixel, row-major ║
╚════════╧═════════════════════════════════════════════════════════╝

The RGB-data should be sRGB for best interoperability and not alpha-premultiplied.

(Now, I don’t know if your screen reader can work with this. Let me know if it doesn’t.)

I think these are some of the properties worth mentioning:

  • The spec is extremely short. You can read this in under a minute and fully understand it. That alone is gold.
  • There are no “knobs”: It’s just a single version, it’s not like there’s also an 8-bit color depth version and one for 16-bit and one for extra large images and one that supports layers and so on. This makes it much easier to implement a fully compliant program.
  • Despite being so simple, it’s useful. I’ve used it in various programs, like my window manager, my status bars, some toy programs like “tuxeyes” (an Xeyes variant), or Advent of Code.
  • The format does not include compression because it doesn’t need to. Just use something like bzip2 to get file sizes similar to PNG.
  • It doesn’t cover every use case under the sun, but it does cover the most important ones (imho). They have discussed using something other than RGBA and decided it’s not worth the trouble.
  • They refrained from adding extra baggage like metadata. It would have needlessly complicated things.

⤋ Read More
In-reply-to » @lyse those are pretty cool! The one change I would recommend doing pronto is the colour of the hyperlinks. Ay, ay, ay, my retina! :-P

@quark@ferengi.one Ta. Hmm, what’s wrong with the blue text color? Is it too dark on the black background for you? :-?

Normal links are blue while images are teal. I thought I differentiate the two if I easily can. The underline of URLs comes from my terminal and is not tt’s fault.

Configuring colors is in the todo list. But of course, providing a sane default is definitely something I’d like to have.

⤋ Read More

Radxa UFS/eMMC Module Reader and Storage Solution Enables Fast Flashing and Scalable Embedded Storage
Radxa’s UFS/eMMC Module Reader is a compact USB 3.0 adapter for flashing OS images, accessing firmware, and transferring large files. It supports both eMMC v5.0 and UFS 2.1 modules with speeds up to 5 Gbps The adapter is compatible with eMMC and UFS modules from Radxa, and also works with modules from platforms like PINE64 and […] ⌘ Read more

⤋ Read More

watchOS 26 Features New Gesture to Dismiss Notifications
Apple in watchOS 26 has added a new one-handed wrist-flick gesture to easily dismiss notifications, but the gesture only works on newer Apple Watch models.

Image

When you raise your wrist to check a notification but aren’t ready to respond, you can now simply flick your wrist – turn it over and back – to dismiss it. The quick gesture lets you dism … ⌘ Read more

⤋ Read More

The XMPP Standards Foundation: The XMPP Newsletter May 2025

Image

XMPP Newsletter Banner

Welcome to the XMPP Newsletter, great to have you here again!
This issue covers the month of May 2025.

Like this newsletter, many projects and their efforts in the XMPP community are a result of people’s voluntary work. If you are happy with the services and software you may be using, please consider saying thanks or help these projects! Int … ⌘ Read more

⤋ Read More

iOS 26, iPadOS 26, and macOS Tahoe Public Betas Launching in July
While the new software updates that Apple showed off today are only available to developers at the current time, Apple does plan to release public betas.

Image

In the fine print for most of its software announcements, Apple says that public betas for iOS 26, iPadOS 26, macOS Tahoe, watchOS 26, and tvOS 26 will be … ⌘ Read more

⤋ Read More

WWDC 2025: Apple Says Personalized Siri Features Are Still Not Ready
If you were hoping for the more personalized version of Siri to launch soon, you will have to keep waiting.

Image

During its WWDC 2025 keynote today, Apple reiterated that the personalized Siri features will launch at some point in the coming year, so do not expect them to be included in the first iOS 19, iPadOS 19, or macOS 26 betas.

Apple first … ⌘ Read more

⤋ Read More

Could Apple Ditch Siri Name in Major AI Rebrand at WWDC?
Apple will highlight its AI strategy at Monday’s WWDC 2025 keynote, with its much-talked-about “Liquid Glass” software redesign playing a secondary role in announcements, claims industry analyst Ming-Chi Kuo.

Image

Reports leading up to WWDC have indicated that iOS 26 will feature a [major design overhaul](https://www.macrumors.com/2025/06/06/ios- … ⌘ Read more

⤋ Read More

Samsung’s Summer Sale Includes Steep Discounts on Monitors, TVs, Galaxy Phones, and More
Samsung’s new Discover Samsung sale is still going on this weekend, and it includes savings on monitors, TVs, Galaxy products, and more.

Image

_Note: MacRumors is an affiliate partner with Samsung. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site … ⌘ Read more

⤋ Read More

macOS Tahoe Might Support One Fewer Mac Than Previously Rumored
macOS 26 will drop support for several older Intel-based Mac models currently compatible with macOS Sequoia, according to a private account on X with a proven track record of leaking information about Apple’s software platforms.

Image

macOS 26 will be compatible with the following Mac models, the account said:

  • MacBook Air (M1 and later)

  • MacBook Pro (2019 and … ⌘ Read more

⤋ Read More

iPhone 17 May Support Up to 50W MagSafe Wireless Charging (Qi 2.2)
Apple appears to be moving to the next-generation Qi 2.2 wireless charging standard, according to regulatory filings on Taiwan’s NCC certification website. Qi2.2 is the forthcoming update to the Wireless Power Consortium’s (WPC) Qi standard, building on improvements introduced with Qi 2.

Image

Spotted by _[91mobiles.com](https://www.91mobile … ⌘ Read more

⤋ Read More

Superyacht worker blames ‘perfect storm’ for kidnapping ex-girlfriend
Ethan Davis on Wednesday pleaded guilty to six charges, including kidnapping, using a carriage service to harass, intimidation, threatening to distribute an intimate image, using an offensive weapon and possessing MDMA. ⌘ Read more

⤋ Read More

Images reveal aircraft lost in Ukraine’s ‘Spider’s Web’ attack on Russia
Operation Spider’s Web saw Ukraine reach deep into Russia and attack some of its most precious war machines. Images showing the damage inflicted are now beginning to emerge. ⌘ Read more

⤋ Read More

怎麼樣把 Image 圖片通過 MQTT 協議進行發送和接收?
MQTT 是一種輕量級發佈 / 訂閱消息的協議,通常用於具有小型的物聯網設備。消息中通常不會包含太多數據,只是傳感器值。但是大多數情況下,MQTT 消息負載是文本,可能是少量文本或 JSON 數據負載。不過,設備如何在 MQTT 消息中發送文件,例如 Image 圖片. jpg 格式文件呢?這期我們通過整理網上的資料,把具體的方式分享給大家!使用 MQTT 協議發佈圖像————– ⌘ Read more

⤋ Read More

iPhone 17 and iPhone 17 Air ProMotion Rumors Disputed by Leaker
A Chinese leaker with a mixed track record for accurate predictions has today disputed claims that the regular iPhone 17 and all-new ultra-thin iPhone 17 Air will feature ProMotion displays.

Image

ProMotion has been limited to the Pro models since it debuted on the iPhone 13 Pro and the iPhone 13 Pro Max in 2021, but several sources have suggested th … ⌘ Read more

⤋ Read More

Triple-0 call played, CFA captain speaks in Christmas Eve murder trial
A Supreme Court jury has heard a triple-0 call and viewed images of human remains in the trial of three people accused of kidnapping and murdering 19-year-old Charlie Gander in 2022. ⌘ Read more

⤋ Read More

Why Apple TV Beats Roku and Fire TV for Privacy Protection
The Apple TV is much more private than competing streaming hardware, offering users a rare refuge from the pervasive tracking that defines most smart TV experiences, according to a comprehensive analysis by ArsTechnica.

Image

The main difference is s … ⌘ Read more

⤋ Read More

What technology to use for a small NGO website?
Hi Lobsters :) hope you’re having a cozy weekend

I’m volunteering to set up and maintain the website of an association/small NGO, and I need to choose the technology we will use. I would appreciate advice from the hive mind on what technologies/setup to use :)

The key constraints are:

  1. It should be feasible to teach a motivated non-coder how to adjust website content. Most of the content will be text & images describing the organisation and its va … ⌘ Read more

⤋ Read More

Top Stories: iOS 26 Incoming?, iPhone 17 Pro Rumors, and More
There was blockbuster news this week regarding Apple’s naming conventions, while WhatsApp finally made the jump to iPad after 15 years.

Image

Other news this week included a report on Apple’s now-scaled-back aspirations for providing satellite-based internet service, tidbits on Apple’s plans for smart home hubs including one with a robotic arm, and more, so read on … ⌘ Read more

⤋ Read More

Apple Store in the Netherlands Temporarily Closing Starting Next Month
Apple has announced that its Den Haag store in the Netherlands will be temporarily closed for renovations starting this Sunday, June 1.

Image

The store is located in The Hague, the capital city of the South Holland province.

First opened in 2014, Apple De Haag is one of the company’s flagship stores, located … ⌘ Read more

⤋ Read More

Apple Working on Studio Display 2: Here’s What the Latest Rumors Say
Apple released the Studio Display in March 2022, alongside the first Mac Studio, and it has not received any hardware upgrades since.

Image

The current Studio Display features a 27-inch LCD screen with a 5K resolution, a 60Hz refresh rate, up to 600 nits brightness, a built-in camera and speakers, one Thunderbolt 3 port, and three USB-C ports. In the U.S … ⌘ Read more

⤋ Read More