hono4kami

joined 4 months ago
MODERATOR OF
[–] [email protected] 4 points 3 months ago* (last edited 3 months ago) (1 children)

See the other reply: seems that it was caused by Lemmy backend only fetches the first 512kb of the HTML, meanwhile YouTube puts bunch of JavaScript in the beginning of the HTML

Here's the fix that was only merged couple days ago apparently, https://github.com/LemmyNet/lemmy/pull/5266

Crazy, right

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago) (3 children)

Also, this is a good tip in general:

You can't fetch title and thumbnail for YouTube links that starts with youtu.be. This applies not only in Lemmy, but other websites too, for example Twitter (even before Elon's era).

This is, IMO due to the link doesn't really contain HTML and OpenGraph metadata. It only redirects you. If you try cURL-ing the youtu.be link, you will see that it doesn't have a response body, only some header including Location header that will tell you where to redirect. The response code itself is 301.

[–] [email protected] 5 points 3 months ago* (last edited 3 months ago) (7 children)

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] 12 points 3 months ago (8 children)

It's because Lemmy can't fetch YouTube thumbnails. I swear it used to fetch thumbnail and title automatically before, hmm

[–] [email protected] 2 points 3 months ago

Whoa

My dream of uploading meme videos on the fediverse is becoming real

[–] [email protected] 3 points 3 months ago (5 children)

Oh wow I completely forgot lol

[–] [email protected] 2 points 3 months ago (1 children)

i kinda want to upload all my shitposts gallery on PeerTube but i can't even find a single instance that is open for registration lol

[–] [email protected] 2 points 3 months ago (1 children)

Let me give you my opinion, specifically as a React developer, if you don't mind.

And let's be clear: I intend this to be a constructive criticism. I hope you understand and don't take it the wrong way.

To be honest, I don't know how good or bad federating one-way is. This is more of a "people" problem rather than a technical problem.

But, to be honest, what I am bothered by, is the fact that the website doesn't give an attribution in the UI about which instance certain users are from and which instance certain certain community are from.

Take a look at this post: https://clubsall.com/posts/theyre-trying-to-charge-luigi-with-terrorism-imagine-that-qfF82

The UI says that the post was posted by u[slash]BytesOnBikes. If I didn't know better, I'd have assumed this was from a user from clubsall. But if you click the username, you realize that the link says u[slash]BytesOnBikes[at]slrpnk.net. I think this would be confusing as a user. What if there is the same user under the username BytesOnBikes from clubsall? At least if you include the instance name, user would know right away that both users are different. But if you didn't include the instance name, I feel like this can be abused to impersonate user. This is a bad thing to happen to your website, don't you agree?

Now that we both understand that lack of attribution is a bad thing to clubsall... What's stopping you from adding an instance name to the username? I'm sure the app has a way to know which instance certain users are from. From what I gather, I feel like this is as easy as appending a string in the code.

I haven't even talked about the community name on the UI. Or the ethicality of misleading attribution.

[–] [email protected] 2 points 3 months ago

I don't think people liked the idea lol.

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago)

I actually liked kbin/mbin. I used it before moving to Lemmy. I just can't code in PHP (and I have had some trauma using it while doing internship)

[–] [email protected] 2 points 3 months ago (1 children)

The things redditors mentioned are very good already. Primarily screenshots. Please, please always add screenshots to let me have a general idea of the UI.

I've read this mentioned many times. Is it really that bad XD

[–] [email protected] 6 points 3 months ago* (last edited 3 months ago) (4 children)

Gonna go out-of-topic from the post but I need this to get this off my chest:

Do you know what prompted me to contribute to PieFed's code?

Recently, a developer of Lemmy straight up posted a link to a website to a China propaganda in a community in my Lemmy instance. Yes, a propaganda.

Tbf, slrpnk.net receives a lot of China-related posts, and that's due to China out-competing other countries in many sectors (EV, for example), and in those post OP usually critical enough to acknowledge that while China achievement is good, the crimes Chinese government has done shouldn't be ignored.

But the post is different. From the domain name, the "About Us" section of the website, the bias in the article. Clearly this was posted with an ill intention. A developer of a platform uses the platform to spread propaganda. Disgusting

I downvoted said post, but I hesitated to call it out. Because, I'm gonna be honest--I'm genuinely scared of interacting with those kind of people. And I don't want to have a deep discussion about politics or propaganda anyway. I'm not that kind of person.

This made me realize, I also don't tell people I use fediverse or don't reach out to other forums to open a community in Lemmy. This is because the fediverse, or at least Lemmy have a bad reputation: tankie.

There is a saying in my country that says "One person ate jackfruit, everyone got the sap". The genocide deniers ate the jackfruit, and everyone got the sap. The genocide deniers ruined fediverse's name and everyone else got the consequence. I don't wanna recommend people to use softwares made by those terrible people, and I doubt most people want to use softwares that has a reputation of being a genocide deniers playgrounds.

Honestly OP from the link in the post (https://feddit.org/post/4920887) kind of made a good point.

At this point, I would prefer just quitting Lemmy altogether.

But I remembered, the fediverse is an open source effort. I use open source software a lot. I feel like I need to give back something. And I have a community that still needed moderating.

And recently I found PieFed that is still in early days but show some great promise. I happen to understand HTMX (I use it in my personal projects) and Python (I learned it way back in junior high). Seems perfect to me, so I contributed one.


Honestly, it feels kinda unfair to me that software made by a genocide deniers gets the funding, meanwhile a software made by a good person (PieFed) has to be a hobby project.

 

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.

 

September 11, 2023

Transjakarta is eyeing to operate 50 percent electric buses by 2027.

Jakarta Acting Governor Heru Budi Hartono previously set a target of adding 400 electric buses by 2025. In 2023, at least 190 more electric buses will be in operation to improve the city's air quality, bringing the total to 220.

Apart from Transjakarta electric buses, the city administration is also keen to open more Public Electric Vehicle Charging Stations (SPKLU) in South Jakarta and Central Jakarta as these two areas have a lot of offices, schools, and other activity centers.

This is actually pretty old news. The latest news is that TransJakarta actually just added 200 units of EV buses (I can't find any news about this from English publication sadly) [1]. Making the total EV buses in operation 300 units.

As a context, there are two kinds of TransJakarta buses: high-deck/BRT and low-deck/non-BRT. Previously, TransJakarta added low-deck buses in Jakarta back in 2022. This year they are planning to add the high-deck version of EV buses for the first time. As far as I know, the new buses will be in operation just in time on christmas this year.

[1] https://finance.detik.com/infrastruktur/d-7679606/transjakarta-resmi-tambah-200-unit-bus-listrik (Indonesian source)

 

If you are interested on becoming a moderator here, feel free to send me a DM


To dos:

  • [ ] Write community description
  • [ ] Write community rules
  • [ ] Write related communities in sidebar
  • [ ] Look for moderators
 

The election, the CEO murder, etc.

And when I tried to say something about it, I get downvoted, and get replies that I am a bootlicker or something etc.

Oh yeah, also, Lemmy discussion is very one-sided and lacks nuance.

I have more things to say, but I prefer sleeping. That's all

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

illustration of Thorcon 500 prototype power plant at Kelasa Island, Indonesia

The plan for introducing liquid fission power to Indonesia has two parts. Phase 1 is to build and test a 500 MW Thorcon 500, with step by step commissioning, ending in an approved type license for future power plants. Phase 2 is shipyard production of six Thorcon 500 plants to help Indonesia’s utility company provide an additional 3 GW of cheap, reliable electric power to support economic development.

The conceptual design phase has been completed, computationally modeled, expressed in 2D drawings and 3D CAD models, and shared with potential suppliers. Suppliers’ cost estimates for future production versions are compatible with company estimates of electricity production costs, well under those from coal-fired power plants.

The 500 MW power plant will be built in a world-class shipyard experienced in high-quality, cost-competitive steel-working. ThorCon will rely on the yard for detailed design outside the Can, production scheduling, and much of the equipment purchasing functions. The shipyard will be ThorCon’s EPC (engineering, procurement, construction) contractor. The expensive, massive, precision supercritical steam turbine-generator must be pre-ordered to achieve the one-year shipyard build time.

The shipyard will construct and outfit the two hulls that comprise the Thorcon power plant. These are the steam module containing the supercritical steam turbine generator, and the nuclear module with two power modules, each with two replaceable Cans. The nuclear reactor Pots are in the Cans, which will be fabricated by companies with nuclear industry experience.

Non-fission testing. The first nuclear module produced by the shipyard will be outfitted with a Can for nonfission testing, without enriched uranium in the fuel salt. Electrically powered resistance heaters are sized to heat components up to operating temperatures.

The fuel salt will not contain enriched uranium and will not sustain a chain reaction to generate power. The components will be brought up to operating temperatures using electric heating. The absence of radioactivity allows intrusive instrumentation, direct observation, and internal access to components.

Extensive testing will include operating pumps at full temperatures and pressures, drains to drain tanks, actuation of shutdown rods, and instrumentation. Motors, pumps, seals, and valves for molten salt flows will be tested. Engineers will measure thermal expansion, confirm heat transfer rates, verify thermal hydraulics characteristics, test sensors, transfer molten salts between the Pot and fuel casks. System responses to simulated failures will be monitored closely.

If testing reveals needs for changes, the nuclear module and/or Can will be returned and revised by their manufacturers. Thorcon 500 prototype power plant at Kelasa Island, Indonesia

Fission testing. The ThorCon 500 nuclear module and steam module will be towed to the Indonesia near-shore site prepared with breakwaters and seawater cooling piping and a connection to the PLN electric power grid.

Step-by-step commissioning will then be used to gradually reduce uncertainties and increase fission power levels. Working closely with Indonesia’s nuclear regulator (Bapeten) and expert test approvals committee (TAP), ThorCon engineers will proceed with step by step commissioning, fueling the plant, bringing the reactor to zero-power criticality, then increasing power levels as testing confirms safe, effective power generation.

Stress tests. ThorCon is designed to react safely to many operational events and failures. Demonstrating safety is important to public acceptance of fission power. Test examples include sudden loss of load, overheating the fuelsalt, losing chimney radiator cooling, and failure of shutdown rods. These tests are possible because of multiple layers of defense in the design. The TAP must pre-approve all such tests, continuing the step by step commissioning process.

Mass production. When testing is successfully completed, the company expects Indonesia’s Bapeten regulator to refine its regulations and issue a type license citing the design as safe for similar future power plants. Indonesia’s PLN utility company will sign a power purchase agreement (PPA) with Thorcon, which will build, install, and operate 3 GW of additional Thorcon 500 power plants. The PPA will enable financing with traditional loans. As these plants are put into operation the company expects world-wide orders for such shipyard-constructed power plants that deliver nonstop electric energy cheaper than coal.

view more: ‹ prev next ›