Skip to main content

Rokosun reshared this.


I feel like the puzzles are getting a bit too hard for me on #AdventOfCode, so I'll probably be slacking off from now on. Solving last day's 2D pipe maze with a loop was hard enough, and today's puzzle seem to be of a similar kind so I'll probably skip - I feel like these puzzles have more to do with math and geometry than programming itself :blobcatshrug:

Rokosun reshared this.

in reply to bignose

@bignose I can't summon up much enthusiasm for AoC this year. I don't need to:

* Learn a new language
* Learn to program
* Write yet more string parsing code
* Wrestle with algorithms that are vanishingly rare in the real world
* Prove anything, to myself or others
* Invest time/energy I could usefully spend elsewhere

But I'm delighted others enjoy it at least as much as I've enjoyed it in the past. Plus it's a great spectator sport.

#AdventOfCode

This entry was edited (2 years ago)
in reply to glyn

@underlap @bignose

This was actually my first year trying out AoC, as a beginner to programming it was kind of a fun learning experience, but being a beginner also means I'll have to stop sometime as the puzzles get harder. Last day's puzzle was a bit too hard for me, maybe today's is better I might give it a try but I certainly won't put any pressure on myself 😄


Rokosun reshared this.


Advent of Code - Day 9 (Part 1)

Me being an absolute dumbass today:

#AdventOfCode

This entry was edited (2 years ago)

reshared this

in reply to Rokosun

Advent of Code - Day 9 (Part 1)

haha, i also though like this at the beginning, though i thankfully didn't go down that road, but i also spaced out on a silly mistake returning 0 instead of the last value in a utility function…

At least part 2 was trivial from my part 1 solution.

in reply to Gabriel Pettier

Advent of Code - Day 9 (Part 1)
@tshirtman good to know I'm not the only one who thought like this 😄

Rokosun reshared this.


Advent of Code - Day 4 (Part 2)

I thought my code is never going to terminate, but after around an hour or so it did, LMAO 🤣

Because I had to refactor the code many times for this one my current iteration doesn't make much sense, so I'll publish it later maybe after doing some cleanup, IDK...... It's all spaghetti code anyway :blobcatgiggle:

#AdventOfCode

This entry was edited (2 years ago)

Rokosun reshared this.

in reply to Rokosun

Advent of Code - Day 4 (Part 2)
Well, after timing it I see it's not as bad as an hour, but 12 minutes is still too long for a program to finish running - in my mind it felt like an hour. Also note that this is a compiled language, LMAO 🤣
This entry was edited (2 years ago)
in reply to Rokosun

Advent of Code - Day 4 (Part 2)

Update: I've made the code a lot more faster by following a tip by @sotolf. Basically now the program is doing a reverse brute-force by starting at the end point and working its way upwards. So now the code finishes running in about 2 minutes, but if you use the --opt:speed compiler flag in #Nim then it can finish in 20 seconds! For comparison, my previous code took 12 minutes to finish even with the compiler flag on!

Here's the Nim code - codeberg.org/rokosun/AOC/src/b…


Rokosun reshared this.


How should regulators think about "AI"?

youtube.com/watch?v=eK0md9tQ1K…

I was watching this video by @emilymbender and she made a lot of great points there, highly recommend watching it if you're curious about #AI and the hype around it. I was a bit surprised when she brought up magic 8 ball because I've been jokingly calling chatGPT magic ball in my friend circles, but it's such a great analogy tho 😄

Also check out her podcast with @alex where they break down the AI hype - buzzsprout.com/2126417

Rokosun reshared this.


Rokosun reshared this.


I just made a git repo for my #AdventOfCode solutions, so if any of you wanna see my spaghetti code you can find it here on #Codeberg - codeberg.org/rokosun/AOC

I'm using the #Nim programming language since I started learning it a while ago, still very much a beginner tho 🙃

P.S. Also check out @amin's private leaderboard for #AOC - alpha.polymaths.social/@amin/s…

#AdventOfNim


For people doing Advent of Code, I have a Private Leaderboard of Fediverse people you're welcome to join!

Join code is 382566-472d5a9a.


This entry was edited (2 years ago)

Rokosun reshared this.

in reply to Rokosun

@amin yeah, that's exactly how I'm thinking how can I represent the data, and then how can I get closer to what I want, or functions I need to do what I need. My way is just one way to do it, but it's the one I find the easiest to work with :)

Types are a bit daunting in the beginning but when you do they really help you think, and let's the compiler help you not do a quite big group of errors :)

@amin
in reply to sotolf

@sotolf @amin

I think I also learned some new Nim features from your code, for example I was surprised to see how you defined the CubeSet type on line 13 - is Nim using the Color enum for indexing its arrays?! I had no idea this was possible!


Rokosun reshared this.


This Mysterious Globe Perpetually Spins With No Batteries

youtube.com/watch?v=U-NII1Rdlc…

This is genius, not gonna lie.

#YoutubeVids #Educational #ActionLab #Science #Engineering

This entry was edited (2 years ago)

Rokosun reshared this.


Rokosun reshared this.


Sidedoor - Cellphones Rock

Listen here: play.prx.org/listen?ge=prx_69_…

One fascinating fact I heard on this #podcast episode:

> If everyone in the country use their phone one year longer on average, it'd be the same as taking 636,000 gasoline powered cars off the road.

The episode mainly talks about the precious minerals in our phones and how they're extracted from rocks formed millions of years ago, not only do we have a limited supply of these minerals but it also can't be recycled properly.

reshared this



Unsung Science: The Man Who Invented QR Codes

In 1994, Masahiro Hara got tired of having to scan six or seven barcodes on every box of Toyota car-parts that zoomed past him on the assembly line. He wondered why the standard barcode from the 70s was still used...Why couldn’t someone invent a barcode that used two dimensions instead of one that could work from any angle or distance, even even if it got smudged or torn?

And so, studying a game of "Go", he dreamed up what we now know as the QR Code — the square barcode you scan with your phone. It shows up on restaurant menus, billboards, magazine ads — even tattoos and gravestones. But even that, says Hara-san, is only the beginning.

Listen here: chrt.fm/track/22GG1/dts.podtra…

Podcast webpage: art19.com/shows/unsung-science



De Fiets is Niets

99percentinvisible.org/episode…

Today the Netherlands has a reputation as a kind of bicycling paradise. Dutch people own more bicycles per capita than any other place in the world. The country has more than 20,000 miles of dedicated cycling paths. International policymakers make pilgrimages to the Netherlands to learn how to create good bike infrastructure.

But none of that was inevitable. It wasn't something that magically emerged from Dutch culture.

In fact, in the 1960s and 70s, it looked like the Netherlands would follow the same path as the United States. The Dutch had fallen in love with cars and they were rebuilding their cities to make room for them. It was only because of a multi-decade pro-cycling movement that cars didn't take over the country entirely.

reshared this


Rokosun reshared this.


Unexplainable: How to decode a thought

Can researchers decipher what people are thinking about just by looking at brain scans? With AI, they're getting closer. How far can they go, and what does it mean for privacy?

Listen here: podtrac.com/pts/redirect.mp3/p…

Podcast webpage: vox.com/unexplainable

Rokosun reshared this.


Rokosun reshared this.


I Volunteered for 25 Projects. Here's What I've Learned

videos.trom.tf/videos/watch/be…

Another wonderful video by @sober_pirate explaining the things he learned while volunteering for different environmental and humanitarian projects.


I Volunteered for 25 Projects. Here's What I've Learned


In this video I am showing 9 things which I've realized by volunteering for 25 projects. Most of them were about nature and wildlife protection and restoration.

Support me on Patreon : patreon.com/BeBraveToAct


Instagram : instagram.com/bebravetoact/
Facebook : facebook.com/bebravetoact
Twiter : twitter.com/BeBraveToAct

Friendica : social.trom.tf/profile/sober_p…


00:00 Intro
00:23 Skills
01:27 Funding
02:27 Compassion
03:16 Other People
04:23 Enthusiasm
06:03 Time Waste
07:14 You Will Lose Money
08:08 Experience
08:54 Never The Same


@Dima
This entry was edited (2 years ago)

Rokosun reshared this.


Rokosun reshared this.


The Library of Alexandra

radiolab.org/podcast/library-a…

The story of #SciHub and its founder Alexandra Elbakyan in her fight against the global network of academic journals that underlie published scientific research.

#OpenScience #OpenAccess #Podcast #Radiolab

Rokosun reshared this.

in reply to Rokosun

Files downloaded from Sci-Hub appear to carry malware allowing capture of passwords and other credentials
in reply to Josh Halpern

@EliRabett that's very unlikely, do you have a source for that? I'm wondering if it's some phishing site pretending to be SciHub, but IDK.....
in reply to Rokosun

My anti=virus software reported an attempted download form Sci-Hub as infected. Also see
scholarlykitchen.sspnet.org/20…
in reply to Josh Halpern

Will there be any proofs? Also, those are PDF files mainly you're looking for - what "capture of passwords" are you talking about? :D
in reply to Eugene

@scsmash3r @EliRabett

PDF files can contain malware in them which is why you should never open them if you get a spam email or something with an attached PDF. However I'd be very surprised if SciHub contains any malware like this person says because it's generally considered as a trusted source of information, without providing a valid source for that claim I can only take it as rumor or propaganda at best.

in reply to Rokosun

@scsmash3r @EliRabett

BTW, you can also use tools like @dangerzone to safely open potentially harmful PDFs - it's made for people like journalists who may need to open many PDFs as part of their work.


Rokosun reshared this.


Why Your Dog Has An Anti-Tick Pill And You Don’t?

youtube.com/watch?v=4QDDHjRZIZ…

Man I would absolutely love it if I could turn my blood into poison for mosquitoes 😈🦟

#YoutubeVids #Educational #SciShow

Rokosun reshared this.


Rokosun reshared this.


bbc.co.uk/sounds/play/w3ct3j6y

I really enjoyed this podcast episode because I've actually pondered about this question myself before, just like the 11 year old who called in and asked them. Considering the wide range of activities we humans can do just with the energy we get from our daily meals, it really makes you wonder how efficient we are as a species, compared to machines, other animals, etc.

#CrowdScience #Podcast

Rokosun reshared this.




Rokosun reshared this.


forum.tromjaro.com/t/tromjaro-…

So.... um, yeah I had to code on my mobile 'cause my laptop broke, lol 😅 Not really the cleanest code ever but I'll improve it 🙃 Also just take a look at #Tromjaro and see how much it has grown over the years! I like how @tio pays attention to every little detail of how an average nontechnical person uses Linux, where they get confused, etc and try to improve/fix everything he can - what you end up with is not a perfect distro but one with a much better UX than most.

reshared this


Rokosun reshared this.


@Dima

Rokosun reshared this.

in reply to Rokosun

Watched it too. Very sad to see the state of the ocean declining rapidly. Like I said to @Dima before what I'd wish to see more is some focus on the why people exploit and do these bad things. I think that woman in the video that's kinda the "main" character, appeared in another of Dima's videos and she did great at explaining how if we do not help the people, these poor people will have to exploit the oceans in order to survive. I think she was saying that they are using dynamite to kill a lot of fish.

But this is something I rarely see in videos/documentaries, the focus on why these things happen. Dima said he will try to emphasize on that more in the future. I understand that you can get repetitive since it all starts from this trade-environment (mostly), but it is definitely worth adding the "why people do these bad things".

Anyway, Dima does a great job with these videos, from editing to highlighting these wonderful people who do wonderful things. Like he was saying, these are the heroes.

@Dima
in reply to Rokosun

@Rokosun Thank you ! Glad to hear that it inspired you.
@Tio actually i had to cut out few scenes out of the video, when Aylin (that woman) is explaining how everything is rigged by oil and gas industry and military exercises. Because she is protecting sea she is in a conflict with Turkish oil industry, they sued her for some kind of bullshit which his not truth, but anyway she got court right now. And before publishing i showed video to her and she liked a lot that part, but decided to ask her lawyer if it's possible to publish that. Because in that part of the video there were also cuts from Turkish media news outlets how they support basically destruction of an environment for a profit. And lawyer said that it has to be out of video 100%. Because if published she will had huge problems in the court. Imagine that!!! That's a fucked up world where you can't really point on the problem because you can be fined or even jailed. And Turkey is not the most "free speech" country in the world.

Rokosun reshared this.

in reply to Dima

Oh wow ok....that's fucked up. Not surprising but fucked up. These motherfuckers can silence you so easily, can sue you for any kind of bullshit to drag you to courts. Classic "legal mafia" behavior.
in reply to Dima

Oh another thing, maybe when these things happen you can also add a commentary about it. Take it on you basically. No one sues you for now :D
in reply to Tio

yeah good point, next time i will take it on me. Now it all happened before i started uploading video to youtube, and i just cut this part out. I couldn't even imagine that such a minor thing can be a problem.

Rokosun reshared this.


videos.trom.tf/w/p/fVpfZ9VfWrW…

In June 20, 2023, a documentary miniseries called TROM II was published on #Peertube, making it the first feature-length film to ever be released exclusively on the #Fediverse. Question is, were you aware of this documentary before?

Boosts appreciated.

  • Yes (6%, 4 votes)
  • No (93%, 56 votes)
60 voters. Poll end: 2 years ago

reshared this


Rokosun reshared this.


For some unknown reason my @fosstodon account stopped working on #Fedilab, I tried logging out of the app but now I can't log back in, when I select the fosstodon instance on Fedilab and hit continue it doesn't open up the login page like it should. I even tried reinstalling the app from #Fdroid but the issue persists.

@kev @mike did you guys make any changes to the server these past few days? @apps do you have any idea what might be causing the issue here? 🤔

(I'm now forced to use the webapp)

Rokosun reshared this.

in reply to Rokosun

Switching between WiFi or mobile data changes something?
This entry was edited (2 years ago)
in reply to Fedilab Apps

I just tested it by turning on the wifi hotspot of another device and connecting to it from my phone, surprisingly the issue still persists. One thing to note here is that both phones use the same ISP, tomorrow I'll try connecting to another phone with a different ISP, to see if it connects better/faster with fosstodon. I'm sure this has something to do with the connectivity between my device and fosstodon servers, but for some reason tusky handles the situation better than fedilab does.
in reply to Fedilab Apps

I also feel the same, timeout or something related to connectivity is different between fedilab & tusky.
in reply to Rokosun

I still can't see the notification for your last message on fedilab in its notification tab, if I try to refresh then it'll keep buffering but nothing loads. If I connect to a VPN and then refresh the notification loads.