We did it! 🏆 1st place at the IFBB Pro League Tsunami Cup in Italy 🇮🇹 This also makes him the first ever Malaysian 🇲🇾 to qualify for Mr. Olympia. 🙌 For those of you who are familiar with bodybuilding, competing in Mr. Olympia is THE most prestigious show and a dream of many bodybuilding athletes. 💪🏽
.
Since the first day I got to know him, he’s always told me that his goal is to be the first Malaysian to go to Olympia. It felt like a tough journey and sometimes almost impossible. We had to travel far for every show as there aren’t as many shows in Asia compared to Europe or the US, and honestly it would cost a lot every time.
.
Since covid happened, he has not competed in 2 years as we can’t travel out. Planning this trip and getting all the approvals took us more than 2 months but he was determined that he wanted to go for it. And so we did, one step at a time, not knowing what to expect.
.
Winning this competition didn’t come without its own hurdles. Literally an hour before the competition, he had a really bad back spasm and he could not even walk. He was lying down on the floor and the organisers were so concern they wanted to call the ambulance and take him to the hospital. Of course, he refused. But the pain was getting worse and there’s no way he could perform on stage. I mean he could not even stand straight and flex his abs. Nothing was showing. 😑
.
Somehow, he met 3 of his fans while going to the toilet and they rushed to the pharmacy to get some pain killers. Thank god the show was also delayed by 2 hours. That gave him time to slowly recover and somehow he managed to perform his best.
.
Sometimes, when things are meant to be and when you put the effort and visualise what you want, the universe has its way to challenge you but also align everything for you. One thing we also say to each other is do your best in everything you set your mind to, and remember to have fun! Otherwise, what’s the point?
.
.
.
#grateful #thankful #ifbbpro #bodybuilding #olympia #olympia2022 #fitness #fitnesscouple #fitcouples
同時也有237部Youtube影片,追蹤數超過172萬的網紅黃氏兄弟,也在其Youtube影片中提到,*疫情期間大家還是要嚴謹遵守相關防疫規定,戴上口罩勤洗手喔! 頻道會員全新改版啦!快加入頻道會員吧👉https://reurl.cc/KAp7ng .. 兄弟PK賽! 到底誰可以把球吹得最遠~ 瑋:錢錢是我的!哥哥別想跟我搶😈😈 .. 🔥我們的單曲/自創曲 【我的新座位】MV : https:/...
get the goal 在 Taipei Ethereum Meetup Facebook 的最佳解答
📜 [專欄新文章] Gas Efficient Card Drawing in Solidity
✍️ Ping Chen
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium
Assign random numbers as the index of newly minted NFTs
Scenario
The fun of generative art NFT projects depends on randomness. The industry standard is “blind box”, where both the images’ serial number and the NFTs’ index are predetermined but will be shifted randomly when the selling period ends. (They call it “reveal”) This approach effectively solves the randomness issue. However, it also requires buyers to wait until the campaign terminates. What if buyers want to know the exact card right away? We’ll need a reliable onchain card drawing solution.
The creator of Astrogator🐊 isn’t a fan of blind boxes; instead, it thinks unpacking cards right after purchase is more interesting.
Spec
When initializing this NFT contract, the creator will determine the total supply of it. And there will be an iterable function that is randomly picking a number from the remaining pool. The number must be in range and must not collide with any existing ones.
Our top priority is accessibility/gas efficiency. Given that gas cost on Ethereum is damn high nowadays, we need an elegant algorithm to control gas expanse at an acceptable range.
Achieving robust randomness isn’t the primary goal here. We assume there’s no strong financial incentive to cheat, so the RNG isn’t specified. Implementers can bring their own source of randomness that they think is good enough.
Implementation
Overview
The implementation is pretty short and straightforward. Imagine there’s an array that contains all remaining(unsold) cards. When drawIndex() is called, it generates a (uniform) random seed to draw a card from the array, shortens the array, and returns the selected card.
Algorithm
Drawing X cards from a deck with the same X amount of cards is equal to shuffling the deck and dealing them sequentially. It’s not a surprise that our algorithm is similar to random shuffling, and the only difference is turning that classic algo into an interactive version.
A typical random shuffle looks like this: for an array with N elements, you randomly pick a number i in (0,N), swap array[0] and array[i], then choose another number i in (1,N), swap array[1] and array[i], and so on. Eventually, you’ll get a mathematically random array in O(N) time.
So, the concept of our random card dealing is the same. When a user mints a new card, the smart contract picks a number in the array as NFT index, then grabs a number from the tail to fill the vacancy, in order to keep the array continuous.
Tweak
Furthermore, as long as the space of the NFT index is known, we don’t need to declare/initialize an array(which is super gas-intensive). Instead, assume there’s such an array that the n-th element is n, we don’t actually initialize it (so it is an array only contains “0”) until the rule is broken.
For the convenience of explanation, let’s call that mapping cache. If cache[i] is empty, it should be interpreted as i instead of 0. On the other hand, when a number is chosen and used, we’ll need to fill it up with another unused number. An intuitive method is to pick a number from the end of the array, since the length of the array is going to decrease by 1.
By doing so, the gas cost in the worst-case scenario is bound to be constant.
Performance and limitation
Comparing with the normal ascending index NFT minting, our random NFT implementation requires two extra SSTORE and one extra SLOAD, which cost 12600 ~ 27600 (5000+20000+2600) excess gas per token minted.
Theoretically, any instantly generated onchain random number is vulnerable. We can restrict contract interaction to mitigate risk. The mitigation is far from perfect, but it is the tradeoff that we have to accept.
ping.eth
Gas Efficient Card Drawing in Solidity was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.
👏 歡迎轉載分享鼓掌
get the goal 在 Benny Price Fitness Facebook 的最讚貼文
This morning, as I started putting on my shoes to go for a run, my grandfather exclaimed "You've got to teach online in 25minutes!" 😱
"Yeah, I'm just going for a whizz round the block." 😎
"What on earth is the point in that??" 🤨 he responded.
-
I would be less fit if I never went for a run unless I had time to warm up, run 5k and stretch. I would be weaker if I only lifted weights when I had 1.5hrs for a full balls-to-the-wall session 🏋🏻♂️
-
Sure, some people can routinely make time for high intensity, high volume exercise.
Some people love making that the centrepiece of their day.
Some are both and content with fitness being a focal point of their life 👍🏽 but, contrary to what the instagram fitness world will lead you to believe, that's really fucking rare.
-
Way too may of us seem to think the goal is to "get fit". I can almost guarantee it shouldn't be for most. Not by whatever arbitrary definition of it you're using. You just need to get fit-ter 📈
-
A friend of mine the other day said "I can't go to the gym without a PT because if I go on my own I just get in a 60% workout and it's a waste of my time." 🤦🏻♂️
HOW have we been convinced that exercise at 60% is a waste of time? I’ll bet most “waste” more time daily scrolling 📱
-
Side note: If you think a PT's “job” is to run your arse into the ground at 100%, I can almost guarantee you've got a mediocre one 💁🏻♂️
-
Equally, it doesn't have to take a lot of your day ⏱ I consulted a couple the other day who have been "meaning to get fit" for a while. They already had a few machines, but seemed to think 15mins on them 3 times a week was pointless. No. What's pointless is having machines you never use.
-
🙏🏽 Please, just start by doing SOMETHING. Something you enjoy, that doesn't feel unpleasantly or unsustainably intense / difficult, and then do it for as long as is convenient. Once it's a habit, start trying to give it a bit more effort, and making a bit more time for it. I know we say to have goals in fitness and business and life but, for some, maybe it's the goal that has been getting in the way? Maybe it's the goal that's so daunting that you don't do ANYTHING to get yourself closer to it? 🧐
get the goal 在 黃氏兄弟 Youtube 的最佳解答
*疫情期間大家還是要嚴謹遵守相關防疫規定,戴上口罩勤洗手喔!
頻道會員全新改版啦!快加入頻道會員吧👉https://reurl.cc/KAp7ng
..
兄弟PK賽!
到底誰可以把球吹得最遠~
瑋:錢錢是我的!哥哥別想跟我搶😈😈
..
🔥我們的單曲/自創曲
【我的新座位】MV : https://youtu.be/ZWYFHrJj4dI
【不專心】MV : https://youtu.be/0GzLgn2fgcI
【多想告訴你】MV : https://youtu.be/BT2tg7QphVU
【專家模式】MV: https://youtu.be/x8AP-2aLEeE
【室友】MV:https://youtu.be/kaP4JUyI0uc
【光 Light】MV:https://youtu.be/VdULKZtwwH8
【世界再大你擁有我】MV:https://youtu.be/PmZpf6a0gpw
🔥我們最熱血的系列
【外婆家系列】:https://goo.gl/n82tCk
【改造房間系列】:https://reurl.cc/AkKVdd
【轉學兄弟系列】:https://reurl.cc/EOKnn
【兄弟互整系列】:https://reurl.cc/2K44n
..
IG 👉 huangbrotherss
FaceBook 👉 https://goo.gl/UcZf4Y
Line 👉 @huangbrothers
TikTok 👉 https://reurl.cc/3ajgpj
訂閱我們 👉 https://goo.gl/pPGJbv
加入頻道會員 👉 https://reurl.cc/KAp7ng
► 每週一、三晚上六點,週六早上十點發片!會不定時直播跟追加影片
►一定要開鈴鐺收通知!
►大家多多分享、按喜歡,你的支持是給我們最大的鼓勵
#黃氏兄弟#shorts #挑戰

get the goal 在 未来リナ / Lina Mirai Youtube 的最佳貼文
【ソウルノートに下記の質問を書いて、8月29日(日)17時~ のLIVEで一緒に自答していこう!!】(質問は自由に増やしたりアレンジしてもちろんOKです ❤︎ )
【Intentions for September】
Answer the following questions on your note-book and let’s start a fresh new month !! ;) See u on 29th August!!
ーーー
8月は自分にとってどんな1ヶ月間だった??
印象に残っている出来事や思い出、
小さくても大きくても挑戦できたことやしっくりくるワードなど…!!自分の心を解放して、自由に書きだしてみよう
① 初めて or 改めて気がついた自分の性質や思考パターン
Things I realized about myself for the first time or repeatedly during this month
② 8月から学んだことで9月に活用 or 改善できること
Things I learned in August that I can use for improving myself/ life in September
③なりたい本来の自分に近づくために9月に踏み出せるステップ
Little steps I can take to get closer to my best version in September
④理想の人生を生きるために9月にとりいれる習慣、マインドの持ち方 (具体的に内容/場所/回数なども書ければ◎)
New habits or mindset to take in to actually start living my DREAM LIFE in September
⑤これだけは必ず達成して9月を終わらせたい!!と思うNo.1の目標
The No.1 goal I wanna get done in September
⑥9月に訪れたい場所、挑戦したいこと、楽しみなこと、会いたい人など
Places I wanna visit, People I wanna see, things to challenge, exciting plans…etc in September

get the goal 在 未来リナ / Lina Mirai Youtube 的最佳貼文
【ソウルノートに下記の質問を書いて、8月2日17時~ のLIVEで一緒に自答していこう!!】(質問は自由に増やしたりアレンジしてもちろんOKです ❤︎ )
【Intentions for August】
Answer the following questions on your note-book and let’s start a fresh new month !! ;) See u on 2nd August!!
ーーー
7月は自分にとってどんな1ヶ月間だった??
印象に残っている出来事や思い出、
小さくても大きくても挑戦できたことやしっくりくるワードなど…!!自分の心を解放して、自由に書きだしてみよう
① 初めて or 改めて気がついた自分の性質や思考パターン
Things I realized about myself for the first time or repeatedly during this month
② 7月から学んだことで8月に活用 or 改善できること
Things I learned in July that I can use for improving myself/ life in August
③なりたい本来の自分に近づくために8月に踏み出せるステップ
Little steps I can take to get closer to my best version in August
④理想の人生を生きるために8月にとりいれる習慣、マインドの持ち方 (具体的に内容/場所/回数なども書ければ◎)
New habits or mindset to take in to actually start living my DREAM LIFE in August
⑤これだけは必ず達成して8月を終わらせたい!!と思うNo.1の目標
The No.1 goal I wanna get done in August
⑥8月に訪れたい場所、挑戦したいこと、楽しみなこと、会いたい人など
Places I wanna visit, People I wanna see, things to challenge, exciting plans…etc in August
