@OmarMobayed0day 17/10 #10-days-in-public!! im on a fine thread on when the next day is and scrappy is the only thing saving me from losing to reese. may the Lord have mercy. fuck midterms man
read a little more on the Go book! i read about the sync package and WaitGroup! ive been taking notes so thats why i am very slow at reading the book. also im using the command line to take notes, please dont judge me. its easier than having to switch to a google doc every time
@j_cordz7+Today my #scrapbook ended! :sadge::fireball: After 418 days my streak has officially come to an end! This morning I got the painful message from @scrappy-U015D6A36AG that I forgot to post last night. I completely meant to but it slipped my mind for the first time since I joined Hack Club :hack-club:, I had a lot of homework and projects so I couldn't post anything on time. That being said, although it was cool to keep it until this day, this is the last post I will do to my scrapbook and thanks to everyone who followed along for 418 days! ⚡
@cernockyd0Experimenting with scrapbook copycat which, at this point, aggregates blog posts of students in our department (fortunately most students use wordpress or wix, so its solved problem to just parse their feeds). The app uses supabase and the synchronisation of posts uses supabase edge functions invoked by cron which runs in the db. I kinda like supabase. Next step is to create a brother of scrappy (but for Discord) so students can submit posts from our existing community.
@reesericci0I’m going to bed but gotta maintain that scrappy streak. Turns out, after cisco, we’re 61st in the US, 2nd in texas in CyberPatriot 🎉 oh and hack austin photo
@Omay0im reposting because scrappy broke...
So, there's this Sprig puzzle game, and I just beat it at 9x9 size.
@sampoder0:scrappy: A progress update on how things are shaping up in #scrapbook-dev :scrappy:
So many cool new features being added!@AyushPaul-U02GHNT70TB0day 9 of #10-days-in-public: made some designs for og image generation for #scrapbook-dev
@j_cordz7+Day 8?/10 of #10-days-in-public! Yesterday I could't edit my post with my Dalle picture to share what I did because I had a lot of homework, so I'l sharing it now: Yesterday I learned more about some custom CSS functions that use div's! And today my #some-assembly-required PR got merged and I did a new one for #scrapbook! :fireball::scrappy-retro:
@sampoder0my slightly sunburnt self runs through the #epoch-bts & #scrapbook-dev shenanigans I got up to today for day 7 of #10-days-in-public!@sampoder0The homepage for #scrapbook-dev was looking… umm, well see for yourself. No where near finished, but gave it a small update and coat of paint! The real purpose behind this was to setup nested data fetching within GraphQL so that we can have the account’s username :D
(sidenote: we need you all’s help! check out #scrapbook-dev, there’ll be more issues dropping in there over the week)
@sampoder0day 5! spent the whole day in JB for a cricket match... but also got up to some assorted things around the match: fully assembled my Sprig (minus the buttons that are in the mail!), did a couple of #scrapbook-dev mini-tasks such as deployment, thought a lot about #epoch-bts & how we create a magical event, and lastly prepared for our venue visit tomorrow for #lion-city-hacks-bts!
@tejasag0Day 2 of #10-days-in-public! Finally got the image upload stuff to work and opened a PR to #scrapbook :yay:
@linkai0i made a scrapbook clone for my school's hack club with integration to discord and airtable!
@sampoder0Assembling Assemble (:scrappy:-edition) #5: the whole team has made to figma! I'm lost for words, I'm so excited for tomorrow, this'll be amazing! ❤️
we spent the day doing a ton of venue setup and last minute fixes :D
@sampoder0Assembling Assemble (:scrappy:-edition) #4: We’re in SF! Wow! The venue is magical, I’m firefighting constantly and somehow we’re going to pull this off! See you all tomorrow :D
(costco trip, supplies room & flying to SF) (oh and slightly late, but oops!)
@sampoder0Assembling Assemble (:scrappy:-edition) #3: Finished my final day in Vermont! The big thing I did today was presenting the entire Run of Show to the HQ staff attending, which was almost a full hour of me talking (yikes!). All set and packed to travel to SF in a couple of hours.
@sampoder0Assembling Assemble (:scrappy:-edition) #2: Wrapping up for the day! Got one day left in VT until Assemble. Spent most of the day fixing up things and making sure everything is set to go. Also a lot of emailing! And @deven & I shipped this massive box of fun supplies…. around 10 kilos of swag, prizes and sharpies :D
@ian0working on assemble scrapbook :4daysuntilassemble:
@sampoder0Assembling Assemble (:scrappy:-edition) #1: Spent the weekend tying up loose ends on the logistics front, writing more code for Scrapbook @ Assemble (name suggestions, please!) & preparing the ceremonies. Most importantly, however, @deven, @benjamin & @kunalbotla are in town so we went around exploring Vermont! It was lovely to talk about the hackathon with everyone (alongside other, slighly less stressful topics) and to get geared up for a jam-packed week.
@alex0oops v2 (v2 - scrappy wasnt working earlier)
@sampoder0making a new scrapbook for #assemble with @ian!
@Aileen0Howdy! :hyper-dino-wave: This is my first Scrapbook post! :scrappy: Today I started reading a book about Python AI and Machine learning :python: and also designed a summer themed Hack Club sticker! I used Figma and Krita for designing and painting the background. Yesterday, I went to my figure skating class and also did 3 half rotation (Waltz) jumps in the ice rink! ⛸️
@rithul0Saw this movie today, Have no pics so here is its poster, Sory for scrappy spam :p
@j_cordz7+Today I did another Hack Club :hack-club: Pull Request! :pullrequest: This time on the Scrappy :scrappy: Repository! :quad_parrot::github: It's an update to the emojiKeyword.js file, I added more emoji keywords, useful to make new automatic posts reactions on Scrapbook! :parrotdad: I'll try to add more on this next days, beside working on other projects! 🌩️ Also today was the start of my last week :tw_spiral_calendar_pad: at High School! :backpack: After this, I will only have my final exams and classes will be over, this is a bit sad :sadge: but thanks to all of the amazing :cooll-dino: memories I have at my school, I look forward for the future, and I know I made good friends, had great teachers and had a great time. :yay:
@ella0Added a streaks page to the Scrapbook site. See the leaderboard at scrapbook.hackclub.com/streaks
I also rode a bike with clip-in pedals for the first time. I fell twice, but it was super fun. Also chased some geese.
@ian0I just set up my firefox default monospace font to comic mono.
@m040Tried making Ruz Hashweh from a Palestinian cookbook I found, it is very good
@neel.redkar0i ate some good pizza (this isn’t a picture of the pizza i ate)
@ced0imagine you were making a multiplayer web game
at regular intervals on the server, you want to tick your simulation.setInterval(() => {
your players move forward, ➡️
your enemies decide who to badger next, :threat:
some of your projectiles are just barely dodged, :flug:
and others smash satisfyingly into their targets :bonk:}, 1000 / 60);
at each of these intervals, the server decides which of these occur, and which ... do not.
the difference is quite literally life and death for the denizens of your online realm:
if a player's input makes it to the server just after this update has occurred, they might just not move out of the way of the oncoming missile in time.
after one of these updates when the server has just finished making these vital decisions, it blasts relevant portions of them out to everyone who's connected to your server. (there's no point in updating you about something if it's happening on the other side of the map!)
meanwhile, in the player's web browser, these regular updates from the server are gradually applied, so the server's periodic contemplation is rendered as a seamless sequence of fluid movements...
unless those updates aren't really so regular at all ...
the contract that the server has with the client -- that the server will give the client evenly spaced out updates at regular-enough intervals so that the client can smoothly move between them -- isn't actually the same as the contract that setInterval provides.
all setInterval(update, 1000) means is that there will be ABOUT one thousand milliseconds between each of your updates, usually more. so if the actual interval ends up being 1009ms one frame, the next update won't be about 991ms later so that updates happen at regular one second intervals, it will be more like 1007ms later, so that now you're a total of 16 ms away from the contract you had with the client. this is known as drift.
at worst, this passes on all of the problems of using setInterval for animation onto your game. but what if you're doing something fancier than just moving between the updates you get from the server as you get them? there's always going to be a random delay between what the server sends and what you get, anyway. it might make more sense to push the updates you get from the server onto a stack, and exactly as often as the server updates, pop the next set of positions off of that stack.
... except that if you're popping using one setInterval on the client, and the server is pushing out those simulation ticks using a setInterval of its own ... and each has a different drift ... they're quickly going to fall out of sync. if the server is drifting a lot, your stack might gradually accumulate thousands of positions that you just can't keep up with ... and if the server is drifting less than you are, you might run out of positions to show the player!
suffice it to say, it's super important to have a setInterval that updates without drift. I threw together an implementation of one this morning. I call it a `tick`, since it works well for those simulation ticks I was talking about before. To test it, I went ahead and also made a drift visualizer. Here's a screenshot of it! The grey lines are spaced out at 0.5s intervals, and the first row of blue marks is made by setInterval, while the other row of blue marks are made by my own tick function. as you can see, they stick to the "wall clock time" a lot better than Interval does, even when you leave it running for several minutes!
here's a screenshot! I'll post the source in the thread :)
fun fact: everything that moves is a CSS animation 😂
I didn't want to pollute the JS event loop, although now that I think about it, it might've been better to so that I can see how well my ticker keeps itself together in the presence of some event loop pressure.
@j_cordz7+Second journey update! So I continued travelling and got out of the state! I continued listening to great music and fell asleep 🛌 for a while, and after waking up again, the environment ⛰️ nature 🌵 and weather started changing because I was on a different region, so it got fog 🌫️ and a lot lot more colder! ❄️ After another hours I arrived to the country's capital where I went from the bus station 🚉 where that first part of the journey ended 🚋 and went to the airport where I ate a soup :soup-with-herb: and a hamburger 🍔 and then went to my plane after another few hours. ✈️ Here's some images of the landscape 🌆 there aren't images on the plane right now because there's no internet there, so wait for my last update!
@belle0Hey fwens :partyparrot_wave1:
Hope you're enjoying your weekend!! This morning ☀️, I attended the Feross AMA hosted by @pranav and it was sooo much fun! Feross is insanely cool haha... like he just builds things he's interested in and tries to test the limits of technologies he uses :)) Also, I worked on more maths past papers and created an abomination for the annoying website challenge... I think a piece of my soul died :ratcap:. Hope you have an amazing day :blobcosy:!
@j_cordz7+First trip update! As you already know due to the first update of today, I waked up at 4:00 AM 🕐 and arrived to the bus station 🚉 after having an early breakfast 🍳 at 6:00 AM! Then I aboard the bus as you can see on the first image which is on the dark! Then I continue travelling through the state looking at the mountains and the sunrise while listening to some cool music 🎵 🎧 like Imagine Dragons! It was a very cold 🧊 and cloudy ☁️ morning!
@christina6950Getting into Terminal/command line and wondering about writing my first script. Spent 30 mins reading the Free Code Camp email this morning
@j_cordz7+Today I'll go to a small trip 🗺️ so I won't have time to work on projects! Instead I'll be on the road 🚗 and then on an airplane ✈️ to go back to my first home! I will be reading some interesting books, listening to some cool music 🎧 and maybe I will draw 🖊️ a bit, play some games 🎮 or code 💻 locally depending on my devices batteries! 🔋 I'll try as well to share images, so meanwhile here's two very cool :blob-cool: landscape images 🌆 part of my first Scrapbook post of the day! :tw_tada:
@j_cordz7+Today I added new HTML and CSS files to my personal website Repo on GitHub! :github: I also made a few changes to my README Profile, because I wrote new text that I'll add soon and moved my trophies ⭐ theme from Monokai to Gruvbox. Also I learned about what Prettier indentation is thanks to @caleb! Next, today was my last school day before my break so this next two weeks are free and I'll have time to relax, study more, code and make new things! I will also try to work with my workshops and I'll make a pull request to GitHub Docs because I found a typo on their page! 👀 :pullrequest:
@ella0Scrappy knows :spring-of-making: (#330) (and now also changes the seasonal emoji reaction automatically :wom::spom::som::aom: thanks to #331 - :santasam:)
@matthew0i still need to make a new personal website, but in the meantime i added some of my technical projects to my current site yay
@jessicard0expanded the docs on scrapbook about how to create one, post on it, and all the slash commands available :scrappyparrot: so meta