Show more

I went on to suggest blocking Gab merely because he had heard "bad things" about them might be a bad idea. I went on to suggest he might just wait and see if he had problems and block then for reason, rather than rumor.

I went on to defend myself to someone that didn't like my use of "slippery slope" and other aspects of linguistic choosing. But, remembered that of the instances I have had problems on they were more likely to be "safe space" or "activist" rather than open general, with a free speech open bent. As well as the origins of problem persons also being from some of the more "woke" places. I have experienced far more in cw sexual imagery from anime persons than from persons on the big Japanese instance, and though I have had some suggestive stuff, none of it came from switter.

I then went on to State that unless those on your instance are following and or boosting stuff from an instance that might be objectionable you would be unlikely to see any.federated activity from that instance. Is my understanding of the way federation works accurate?

Show thread

Just responded to someone on Reddit asking about setting up his own instance and wanting opinions on his "Rules". Part of the page that had the rules also has his intent to specifically instance block Gab right off the bat. No others, just Gab.

I stated that I thought getting very specific with rules was a slippery slope, later comparing it to the 3 wishes from a genie scenario.

Why is it every time I hear johnny cash since "Hurt" particularly the last recording of it he did before his death, it always makes me cry. I'm not even a Cash fan, and his voice wasnt at his best, it wasnt anything remarkable in terms of vocal talent... but it gets me every time.

Built this quick-and-dirty, very questionable but quiet linear power supply for avoiding RFI from SMPS. Takes power from an old AC wall-wart, no large heatsink, so I used a ton of dropping diodes just to prevent the LDO from overheating itself.

> The use of 9 diodes and a power-wasting resistor delivers unprecedented scale of system inefficiency, ideal for radio amateurs who have too many junkboxes, free energy advocates and climate-change deniers alike! :doge:

#electronics #hamradio #amateurradio

@Absinthe I have a feeling the emoji meant something more suggestive (like peach and aubergine), but there's some nice recipes on Bing : bing.com/search?q=Aubergine+an

@Absinthe
Happy Thanksgiving, the American Edition. 😉

We had ours about 5 weeks ago, north of the Border. 🇨🇦

@JPR

I shall be lazy and only do a freebie.

This problem was asked by Microsoft.

Given a 2D matrix of characters and a target word, write a function that returns whether the word can be found in the matrix by going left-to-right, or up-to-down.

For example, given the following matrix:

[['F', 'A', 'C', 'I'],
['O', 'B', 'Q', 'P'],
['A', 'N', 'O', 'B'],
['M', 'A', 'S', 'S']]
and the target word 'FOAM', you should return true, since it's the leftmost column. Similarly, given the target word 'MASS', you should return true, since it's the last row.

And this seems appropriate as well:

"And the days that I keep my gratitude higher than my expectations
Well, I have really good days" Mother Blues ~ Ray Wylie Hubbard Listen!!

bit.ly/J2N05H

Python Solution: Not the best, but the best I could come up with since I already saw someone else's solution and didn't want to just copy it :( 

Works now, but more like the code I didn't want to copy :)

Show thread

Python Solution: Not the best, but the best I could come up with since I already saw someone else's solution and didn't want to just copy it :( 

Never Mind. That doesn't work.

Show thread

Python Solution: Not the best, but the best I could come up with since I already saw someone else's solution and didn't want to just copy it :( 

Show thread

Okay, here is a fun one. We've all seen Fibonacci sequences. But they are all played out. Let's look at a different sequence. They are called Hamming Numbers after Richard Hamming, who proposed the problem of finding computer algorithms for generating these numbers in ascending order.

For number H is equal to 2**i * 3**j * 2**k where i,k,k are all non negative.

For example
2**0 * 3**0 * 5**0 = 1
2**1 * 3**0 * 5**0 = 2
2**0 * 3**1 * 5**0 = 3
2**2 * 3**0 * 5**0 = 4
2**0 * 3**0 * 5**1 = 5
2**2 * 3**1 * 5**0 = 6
2**3 * 3**0 * 5**0 = 8

So hopefully that explains what the sequence looks like. Your challenge, if you choose to accept it is to generate the first 25 of them. An arbitrary nth one such as 1700th. And given a number X determine if it is or is not a valid hamming number.

Here is the wiki article on them:

en.wikipedia.org/wiki/Regular_


okay, here's a freebie!!

This problem was asked by Facebook.

Given a multiset of integers, return whether it can be partitioned into two subsets whose sums are the same.

For example, given the multiset {15, 5, 20, 10, 35, 15, 10}, it would return true, since we can split it up into {15, 5, 10, 15, 10} and {20, 35}, which both add up to 55.

Given the multiset {15, 5, 20, 10, 35}, it would return false, since we can't split it up into two subsets that add up to the same sum.

@Absinthe
Yep! Like I said, my implementation treats the board as functionally infinite as cells grow towards the borders

This was a fun one! Written in Ruby, I decided on treating the board size as infinite by expanding it whenever the first or last row or column has an alive cell.

The entry file is game_of_life.rb in the root directory, and for simplicity, it just runs the "small exploder" pattern instead of taking an argument for initial state.

git.allgood.dev/jump_spider/ga

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.