[-] [email protected] 6 points 6 months ago* (last edited 6 months ago)

If you don't put a whopping 1MB of JavaScript in your website, you're doing web development wrong.

/s

[-] [email protected] 5 points 6 months ago* (last edited 6 months ago)

So I take a peek at the Lemmy's source code.

When you see a thumbnail and title of a URL (including YouTube video links) on Lemmy, what happens is that Lemmy server fetched the website HTML file and get the og:title and og:image (this convention is called OpenGraph protocol ^1) located inside <head> HTML tag.

For example, for this video https://www.youtube.com/watch?v=MbYuEEU5e50, the OpenGraph metadata inside the HTML looks like this:

<meta property="og:title" content="Flume - Lose It feat. Vic Mensa">
<meta property="og:image" content="https://i.ytimg.com/vi/MbYuEEU5e50/maxresdefault.jpg">

Try opening the "Create Post" page, then enter URL of a YouTube video. You might notice that a loading spinner will appear. During this, the frontend of Lemmy is actually creating a request to /api/v3/post/site_metadata?url=[insert your URL]. When the backend side of Lemmy receives the request from front end, it will run this code ^2 to fetch the HTML and parse it to find the OpenGraph metadata. If the metadata is found, the backend will return it to front end, and you willl see recommended title and the "Thumbnail URL" field should be filled.

In theory, this should work fine, regardless of any website. I personally tried to view the HTML code of a YouTube video and the HTML file indeed contains OpenGraph metadata.

But it doesn't for YouTube videos in Lemmy somehow. And I'm not sure.

I'm suspecting YouTube thought that Lemmy servers are bots and because of that instead of receiving the HTML file of a YouTube video, instead it received a HTML file of a captcha page. I think I'm gonna try contacting admins of my instance to see whether YouTube URL works or not.

[-] [email protected] 6 points 6 months ago

No, I don’t want a second container for a database.

Unless you're talking about using SQLite:

Isn't the point of Docker container is to only have one software/process running? I'm sure you can use something like s6 or other lightweight supervisor, but I feel like that's seems counterintuitive?

[-] [email protected] 7 points 6 months ago

In FY24, Amtrak achieved the following key results:

  • Ridership: 32.8 million customer trips, a 15% increase over FY23
  • Ticket Revenue: 2.5 billion USD, marking a 9% increase year-over-year and the highest in Amtrak’s history
  • Total Operating Revenue: 3.6 billion USD, a 7% rise from FY23
  • Adjusted Operating Earnings: A 9% improvement to -705.2 million USD
  • Service Expansion: One new train service was launched, with four additional routes expanded
[-] [email protected] 6 points 6 months ago

In FY24, Amtrak achieved the following key results:

  • Ridership: 32.8 million customer trips, a 15% increase over FY23
  • Ticket Revenue: 2.5 billion USD, marking a 9% increase year-over-year and the highest in Amtrak’s history
  • Total Operating Revenue: 3.6 billion USD, a 7% rise from FY23
  • Adjusted Operating Earnings: A 9% improvement to -705.2 million USD
  • Service Expansion: One new train service was launched, with four additional routes expanded
[-] [email protected] 6 points 6 months ago

What is Mitra?

62
submitted 6 months ago by [email protected] to c/[email protected]

https://drawabox.com/r/artfundamentals/

If you visit r/ArtFundamentals now, there is a message:

/r/ArtFundamentals has PERMANENTLY CLOSED. Our drawing lessons are still available, completely free, on drawabox.com. We also have a large community you can join on our Discord chat server: discord.gg/drawabox. Lastly, all of the advice I have provided on this subreddit (6000+ comments worth) is available on our archive: drawabox.com/r/artfundamentals. More info on why we closed here: https://www.reddit.com/r/drawabox/comments/14pr4fa/drawabox_is_no_longer_maintaining_an_official/

Quote from the mentioned post:

[...] As of June 30th 2023, we have decided to move away from having an official presence on Reddit. Maintaining a presence on any social media platform comes with its risks - whether it's Reddit, Discord, or any other. When a platform demonstrates a lack of regard for its users, its volunteer moderators, and the third party developers that help provide critical accessibility and usability tools, that elevates the level of risk to something more immediate. [...]

24
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]

So far, I found:

English

German

[-] [email protected] 8 points 6 months ago

The problem it can’t solve is that rich people might have to interact with mere humans.

I can relate. We, in Indonesia, have a problem where politicians, whose never even ride a train before, gets to decide the policies about public transport, and those who gets the consequenece is low-middle class who uses public transport. There was a meme from a year ago where a tone-deaf politician says the overcrowded trains in Jakarta doesn't exist even though it overcrowding is clearly a problem in regional line (KRL) due to lack of trains.

I wonder if rail would be more appealing to them if the coaches were designed as multiple isolated cells that seated 4-6, rather than straight-through corridors that permit mingling.

Assuming we're talking about short distance trains, absolutely no, lol. It's just space inefficient. I will understand if it is a long distance trains, and it is a thing.

723
submitted 6 months ago by [email protected] to c/[email protected]
125
submitted 6 months ago by [email protected] to c/[email protected]
14
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
[-] [email protected] 5 points 6 months ago

I notice that communities in this instance prefers to post links. Wouldn't it be nice if we post more discussion/question types of post?

[-] [email protected] 5 points 6 months ago* (last edited 6 months ago)

This moderator behavior here is exactly what you'd see on reddit lol

14
submitted 6 months ago by [email protected] to c/[email protected]
6
submitted 6 months ago by [email protected] to c/[email protected]
[-] [email protected] 5 points 6 months ago

what's with billionaires trying to make cautionary tales real (Metaverse, etc)

also, to quote some user from Hacker News:

His company, like 9 out of 10 YC companies, is destined to fail. That is all the poetic justice you'll ever need.

4
submitted 6 months ago by [email protected] to c/[email protected]
95
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
7
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
17
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]

cross-posted from: https://slrpnk.net/post/16047797

(Let me know if this is inappropriate for the community)

Photo taken by me

This bus stop is one of the major stops in Transjakarta network--arguably the biggest BRT (bus rapid transit) in the world.

On the top of the bus stop there's a commercial area and a viewing deck, where you can see amazing view of Selamat Datang Monument, visible in the photo.

To access the viewing deck and the commerce area, you need to go through the ticket gate. This way you can familiarize and attracts people to use Transjakarta.


If you didn't know, Jakarta is the most populated province in the most populated island in the earth, Java Island. This fact, combined with the very lack of public transportation, making it has one of the worst car traffic in the world. So much so that Indonesia's government decided to move its capital to Nusantara, Borneo Island, to reduce centralization on Java Island.

That doesn't make it Jakarta stop being developed, many people get this part wrong.

Just last year, 2023, Jakarta got another addition of public transportation named LRT Jabodetabek, serving from Central of Jakarta to outskirts of Jakarta--Bekasi and (almost) Bogor. In addition to that, working together with CRRC from China, Indonesia launched Whoosh, the first high-speed railway in the Southeast Asia and in the southern hemisphere, connecting Jakarta to Bandung, another big city in West Java.

There are also many public transportation projects in the work, such as MRT Jakarta phase 2, continuing from Bundaran HI to Kota Tua, Jakarta's old town located in Northern Jakarta. There is also LRT Jakarta phase 1B (not to be confused with LRT Jabodebek, easy mistake to make) connecting the LRT Jakarta to the rest of Jakarta's transportation network. INKA, working together with Nippon Sharyo, I heard is making trainsets for regional railways. CRRC (China) also making another too.

Honestly, as a Jakartan, this gives me a hope to the city. What was once a car-centric city could be city that are friendly for everyone. The roads towards that is gonna be shaky and it's gonna take a while, but in the end it's gonna be worth it.


Thank you for reading, sorry for posting lots of Jakarta in the slrpnk.net--I previously complained that the whole Fediverse feels very centralized on USA. I though I was gonna give a shot on exposing my ~~invisible giant~~ country.

I also made [email protected], feel free to visit and post about the public transportation in your city!

11
submitted 6 months ago by [email protected] to c/[email protected]

Photo taken by me

This bus stop is one of the major stops in Transjakarta network--arguably the biggest BRT (bus rapid transit) in the world.

On the top of the bus stop there's a commercial area and a viewing deck, where you can see amazing view of Selamat Datang Monument, visible in the photo.

To access the viewing deck and the commerce area, you need to go through the ticket gate. This way you can familiarize and attracts people to use Transjakarta.


If you didn't know, Jakarta is the most populated province in the most populated island in the earth, Java Island. This fact, combined with the very lack of public transportation, making it has one of the worst car traffic in the world. So much so that Indonesia's government decided to move its capital to Nusantara, Borneo Island, to reduce centralization on Java Island.

That doesn't make it Jakarta stop being developed, many people get this part wrong.

Just last year, 2023, Jakarta got another addition of public transportation named LRT Jabodetabek, serving from Central of Jakarta to outskirts of Jakarta--Bekasi and (almost) Bogor. In addition to that, working together with CRRC from China, Indonesia launched Whoosh, the first high-speed railway in the Southeast Asia and in the southern hemisphere, connecting Jakarta to Bandung, another big city in West Java.

There are also many public transportation projects in the work, such as MRT Jakarta phase 2, continuing from Bundaran HI to Kota Tua, Jakarta's old town located in Northern Jakarta. There is also LRT Jakarta phase 1B (not to be confused with LRT Jabodebek, easy mistake to make) connecting the LRT Jakarta to the rest of Jakarta's transportation network. INKA, working together with Nippon Sharyo, I heard is making trainsets for regional railways. CRRC (China) also making another too.

Honestly, as a Jakartan, this gives me a hope to the city. What was once a car-centric city could be city that are friendly for everyone. The roads towards that is gonna be shaky and it's gonna take a while, but in the end it's gonna be worth it.


Thank you for reading, sorry for posting lots of Jakarta in the slrpnk.net--I previously complained that the whole Fediverse feels very centralized on USA. I though I was gonna give a shot on exposing my ~~invisible giant~~ country.

[-] [email protected] 5 points 6 months ago* (last edited 6 months ago)

Thanks, I just made the community

[email protected]

[-] [email protected] 8 points 6 months ago
>AI
>looks inside
>underpaid workers from underdeveloped countries
view more: ‹ prev next ›

hono4kami

0 post score
0 comment score
joined 6 months ago
MODERATOR OF