Frectonz
3.45K subscribers
1.91K photos
82 videos
32 files
1.64K links
A place for me to talk about my projects, stuff i find on the internet and what I am currently thinking about.

By @frectonz
Download Telegram
Frectonz
I finally got around to implementing "Login with Telegram". Check it out https://telegram-login-widget.deno.dev It asks you to Login with Telegram after you have logged in it sends you a welcome message from this bot @LoginWithTelegramTestBot [code] [website]
I noticed some annoying things when i was trying to implement this thing

1. It is not regular OAuth it is kind of weird. You need to add a srcipt tag that links to a file called telegram-widget.js when that script runs it creates an iframe inside your page which contains the "Login with Telegram" button. Due to some security reasons around using iframes the website needs to be hosted to work (it doesn't work on localhost) 😕. I got around this issue by using ngrok.

2. You need a bot to implement this feature and your bot needs to be connected to the domain name you hosted your website at. The annoying part of this is that you can't programmatically set the domain name you have to go into @botfather and do /setdomain to manually change it every time. (this was especially annoying to me because `ngrok` generates a random domain every time you use it)
But on the bright side you probably won't need to change it after you deployed your app so ...

Finally i think it would be nice if they properly implemented the OAuth spec but it works and we can use it.

BTW I am storing your data (everything telegram tells me about you when you log in) if you choose to try out the page the following is the data i am storing.

CREATE TABLE users (
id INTEGER PRIMARY KEY,
username VARCHAR(32) NOT NULL UNIQUE,
auth_date INTEGER NOT NULL,
first_name TEXT NULL,
last_name TEXT NULL,
photo_url TEXT NULL
);

[code] [website]
👍5
Frectonz pinned a photo
🔴 LIVE NOW Starship Flight Test
https://www.youtube.com/watch?v=L5QXreqOrTA
2👍1
Update on The Whole Rust Trademark Policy Fiasco

The foundation released a blog as they promised to do so and here are the main parts

Section 1: The Good Parts

1. They apologized for not being transparent enough
"Rust Trademark Policy should have been more transparent and we apologize for that"

2. They acknowledged the problems and the policy is going to be rewritten
"It is already clear that there are many valid critiques of the initial draft. We will address those critiques in the next version of the policy."

Section 2: The Concerning Parts

3. What about the Community
"We want to reiterate that we will not put any policy into effect until we have something that both the Rust Foundation and Rust Project leadership are satisfied with."

4. The community should be informed but they don't need to be satisfied ?
"The Rust Foundation, Rust Project Directors, and Trademark Working Group will work together to ensure that the community is as informed as possible as we work towards implementing necessary feedback. "

https://foundation.rust-lang.org/news/rust-trademark-policy-draft-revision-next-steps/
👍4
What happened to GitHub?

Are they doing an A/B test on a new UI or did they roll it out to everybody?
Dagmawi Babi
EP 1 - Orientation.pdf
EP2 got released yesterday night and the Lovecraftian Horror level went up to a hundred with this one.

Find it here
1
People are angry about capitalism

It is weird that many of us would consider this a good situation for the workers (I would), because if the person is working 8 hrs/day this would translate to 800$/month (80k in ETB). People are saying the guy shouldn't be bragging about this because 5$/hour is too small. What do you peeps think?

I consider this as a gain from globalization for both parties.
😁1
Frectonz
Started 🚀
They had to do a RUD (rapid unscheduled disassembly) but it cleared off the pad without any issues so that's very good. It was super fast and it looked really cool. They said that it is two times faster that the Saturn V (the rocket that was used in the Apollo missions).
🔥3
🎉
This is especially true in Ethiopia, this notion is strongly woven into our society. I think the main source of this sentiment is this phrase from the Bible.

“Blessed Are the Meek, for They Will Inherit the Earth"

Screenshot from a Paul Graham article called Billionaires Build
💯6👍1
Rust in Windows

They tried rewriting a component called DWrite that does text rendering and font parsing. Not only did they get memory safety but the Rust code was more performant than the previous C++ version.

Take Away
Rust is inside the Windows Kernel.
🔥4
The Brain, the real dictator 😂
😁5
This website shows a live view of every Starlink satellite. The satellites are completely covering the earth looks like sth out of a James Bond movie. The website also shows the One Web satellite constellation and the GPS satellite constellation.

1st image = Starlink Constellation
2nd image = OneWeb Constellation
3rd image = GPS Constellation

https://satellitemap.space/