Forwarded from Techα’α΅ (Alpha)
This media is not supported in your browser
VIEW IN TELEGRAM
π Hello Techα’α΅ Family! π
We're sorry for missing last week's episode of the Techα’α΅ Podcast. π Exciting news thoughβwe have a special episode coming up! Join us tomorrow, April 30, 2024, at 7 PM (1:00 LT) for an engaging discussion with our special guest, Mulu Tsega(Luna). π
We'll talk about women in tech, delve into product management, and hear about Mulu's journey in the tech world. π Donβt miss this insightful conversation!
Stay tuned! π»
@techinethio
We're sorry for missing last week's episode of the Techα’α΅ Podcast. π Exciting news thoughβwe have a special episode coming up! Join us tomorrow, April 30, 2024, at 7 PM (1:00 LT) for an engaging discussion with our special guest, Mulu Tsega(Luna). π
We'll talk about women in tech, delve into product management, and hear about Mulu's journey in the tech world. π Donβt miss this insightful conversation!
Stay tuned! π»
@techinethio
β€13π₯2β‘1π1π₯°1
Forwarded from Beka
chapi: I'm streamer
employer: oh send me your twitch link
chapi: no I don't stream in twitch
employer: youtube?
chapi: no, I stream on telegram
employer: what the fuck is telegram
π
employer: oh send me your twitch link
chapi: no I don't stream in twitch
employer: youtube?
chapi: no, I stream on telegram
employer: what the fuck is telegram
π
π24
Forwarded from Dough_NutοΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
DoughNut π©
Some random guy talking about tech
Portfolio: mohammedibrahim.dev
Please don't abuse me @MrSentinelTelescope
Portfolio: mohammedibrahim.dev
Please don't abuse me @MrSentinelTelescope
π3
Forwarded from Productive Youthβ‘οΈβ‘οΈ
Bad News for Ethiopians
https://www.consilium.europa.eu/en/press/press-releases/2024/04/29/ethiopia-council-restricts-visa-provision/
https://www.consilium.europa.eu/en/press/press-releases/2024/04/29/ethiopia-council-restricts-visa-provision/
π₯±6π€―1
I just wanna post something that takes me whole day to figure out.
This is for validating user data in telegram mini app and incase anyone runs into the same problem use this.
https://core.telegram.org/bots/webapps#validating-data-received-via-the-mini-app
Specially in cloudflare worker and vercel
async function auth(apiToken: string, telegramInitData: string) {
const initData = new URLSearchParams(telegramInitData);
// URLSearchParams.sort() might not be available in all environments
// so a manual sort implementation could be necessary. For simplicity, we'll skip sorting here.
const hash = initData.get("hash");
initData.delete("hash");
const dataToCheck = Array.from(initData).map(([key, value]) => `${key}=${value}`).join("\n");
// Key preparation: First, derive the secretKey from 'WebAppData' and apiToken
const encoder = new TextEncoder();
const secretKeyMaterial = await crypto.subtle.importKey(
"raw",
encoder.encode("WebAppData"),
{ name: "HMAC", hash: { name: "SHA-256" } },
false,
["sign"]
);
const secretKey = await crypto.subtle.sign(
"HMAC",
secretKeyMaterial,
encoder.encode(apiToken)
);
// Use the derived secretKey to HMAC the dataToCheck
const hmacKey = await crypto.subtle.importKey(
"raw",
secretKey,
{ name: "HMAC", hash: { name: "SHA-256" } },
false,
["sign"]
);
const signatureBuffer = await crypto.subtle.sign(
"HMAC",
hmacKey,
encoder.encode(dataToCheck)
);
const _hash = bufferToHex(signatureBuffer);
console.log(hash, _hash)
return hash === _hash;
}
function bufferToHex(buffer: ArrayBuffer): string {
const byteArray = new Uint8Array(buffer);
return byteArray.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');
}This is for validating user data in telegram mini app and incase anyone runs into the same problem use this.
https://core.telegram.org/bots/webapps#validating-data-received-via-the-mini-app
Specially in cloudflare worker and vercel
core.telegram.org
Telegram Mini Apps
With Mini Apps developers can use JavaScript to create infinitely flexible interfaces that can be launched right insideβ¦
π₯14
Forwarded from Beka (Beka)
Morning good people
I got a dm from lee rob (vercel).
Do any of you know how I can actaually send a valid address and receive the swag here? I've no idea if it's even possible or not. Any help would be highly apperciated ππ
I got a dm from lee rob (vercel).
Do any of you know how I can actaually send a valid address and receive the swag here? I've no idea if it's even possible or not. Any help would be highly apperciated ππ
π₯5π1
Must see YouTube with the One and Only Uncle Bob and Primeagen
https://youtu.be/UBXXw2JSloo?si=5cqg3egBP4c9b8TN
https://youtu.be/UBXXw2JSloo?si=5cqg3egBP4c9b8TN
YouTube
I Interviewed Uncle Bob
Recorded live on twitch, GET IN
### Uncle Bob
https://x.com/unclebobmartin
http://cleancoder.com/register
### My Stream
https://twitch.tv/ThePrimeagen
### Best Way To Support Me
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYTβ¦
### Uncle Bob
https://x.com/unclebobmartin
http://cleancoder.com/register
### My Stream
https://twitch.tv/ThePrimeagen
### Best Way To Support Me
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYTβ¦
"Our IQ might be Room Temperature"
- Primeagen
I am thinking of Celsius πππ
π6
Forwarded from Sickipedia
Dating in your 40's is like looking for a parking spot....
The good ones are all taken. The rest are either handicapped or too far away.
#wordplay
@Sickipedia
The good ones are all taken. The rest are either handicapped or too far away.
#wordplay
@Sickipedia
π13
I wonder what if our country have a way to have a ministry that only governs tech people and only tech focused economy that only interact with foreign working environment like freelancing and remote jobs.
This makes the opportunity as a country and the means as a citizen much easier.
I mean because there might be a loot of money(specially dollars) moving in this imaginary ministry the correction is also gonna be to the roof since many people can't even resist from taking it to Thier home πππ
But am just living in imagination let me wake up wegen. ππ
This makes the opportunity as a country and the means as a citizen much easier.
I mean because there might be a loot of money(specially dollars) moving in this imaginary ministry the correction is also gonna be to the roof since many people can't even resist from taking it to Thier home πππ
But am just living in imagination let me wake up wegen. ππ
π6π€―3π2
Question for our Senior Developers.
Is it worth working on Mail Server and Mail Client project as a side project? Reason is I just want to challenge myself to the edge. If you can comment please vote. BE REAL SENIOR DEVS ONLY ππ
Is it worth working on Mail Server and Mail Client project as a side project? Reason is I just want to challenge myself to the edge. If you can comment please vote. BE REAL SENIOR DEVS ONLY ππ
Anonymous Poll
16%
Yes
9%
No
1%
I will Comment my idea β
74%
Just wanna see the results π
π1
Chapi Dev Talks
Where is your language/tool? Too bad for fraol rust is not included but at least Lua is there ππ
Now it is packed but I will replace one by one whenever I got a sticker from conference. [Soon there is one from AWS]
π₯5π₯°1π1
TMRW IS DAY OFF. I AM GONNA CODE ALL NIGHT
π©βπ»
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β‘5
If you are working on a system that deals with money please watch this video. it is very useful.
https://www.youtube.com/watch?v=lxVzLAHnPOE
People usually tend to skip this idea.
I also want to tell you that if somebody sees me using
int to represent money, they definitely laugh at me because i am not saving decimal points right ? right ? right? But not, when people use int to represent money 1 doesn't mean 1 dollar or 1 ETB it usually means 1 cent or 0.1 depending on the currency decimal point.
Let me explain about currency decimal point. For example USD, EUR, ETB have 2 decimal point which means you can have 50.25 ETB or USD, but that is not the case for every currency.
For example in JPY(Japanese Yen) there dont have minor units it is either 50 JYP or 51 JYP there is no 50.25 JYP.
Or BHD(Bahraini dinar) there is 3 decimal places which means, to get 1 Bahraini dinnar you have 1000 cent(i know surprise), means .1 is not 10 cent we call it 100 fills π so for that reason you have to write the three decimal digit, so pricing are writing like 49.999 BHD not 49.99 β.
Anyways knowing this concepts really help you on saving yourself from a big mess.
I know it is Good Start for today π
Good day My people
Please open Telegram to view this post
VIEW IN TELEGRAM
YouTube
The best (and worst) types for storing money in PostgreSQL
To try everything Brilliant has to offerβfreeβfor a full 30 days, visit https://brilliant.org/DreamsofCode . Youβll also get 20% off an annual premium subscription.
Storing Money in a Database is not as easy as you might think. So, in this video, we lookβ¦
Storing Money in a Database is not as easy as you might think. So, in this video, we lookβ¦
β€12π4π3
Chapi Dev Talks
Wait there is as on my channel πππ
π9