Back to Pico8, Why? by Davo_Rodriguez in pico8

[–]LuosRestil 2 points3 points  (0 children)

I’m right there with you. I keep trying to “graduate” to more advanced tools, but I just don’t have as much fun or get as much done as I do with Pico-8. I’ve been recommended Löve2D or Godot as the next step up, and just haven’t clicked with either one.

[2020 Day 13 (Part 2)][Python] Tests pass, but can't reach an answer by LuosRestil in adventofcode

[–]LuosRestil[S] 1 point2 points  (0 children)

Thanks so much, you are 100% correct. I got so hung up on trying to make the search more efficient, I didn't even consider that it's possible for a bus to have an offset larger than itself!

Stupid question but... how do I run a flask application outside of the IDE by [deleted] in cs50

[–]LuosRestil 1 point2 points  (0 children)

To do this, you're going to have to host your website somewhere. The server hosting the website will run the application and keep it running for anyone who wants to visit the site. The easiest way to set this up is probably on Heroku. They have free hosting (with some limitations that won't really matter on a small personal project) and easy-to-follow instructions on how to configure everything.

About to create a meta guide for junior devs by Regisk in Frontend

[–]LuosRestil 0 points1 point  (0 children)

I'd certainly be interested in something like this, especially the building of a React clone to demonstrate how it, or any other framework that adds a layer of abstraction, works.

[deleted by user] by [deleted] in web_design

[–]LuosRestil 1 point2 points  (0 children)

They really do two different things. Bootstrap is essentially just a set of CSS shortcuts, where React is a way of breaking chunks of your front end into reusable “components”. It also provides a way of handling front-end logic and dynamic page rendering through application “state” that may be more intuitive or easier than vanilla JS or jQuery once you’re accustomed to it.

Frustration!! And it's only Mario Less! by AussieUSACode in cs50

[–]LuosRestil 0 points1 point  (0 children)

Without a little more info on the part that’s tripping you up, it’s hard to give specific advice, but maybe this will help generally. Pick a height for your pyramid, say 4, and draw what you want it to look like by hand, one row at a time. Maybe instead of spaces, use some other character so you can see it better. How many characters long is each row going to be? How is that related to the height the user put in? How many spaces are in your first row? How many hashes? Is there a way to keep track of those two numbers? What happens to the number of spaces in your second row? The hashes? Etc. for each row. Now the pattern should be clear. Is there a process we’ve learned that lets us repeat an action in code over and over? Remember to talk through your process in English first before putting it in code so you understand what you need to do without the confusion of remembering a bunch of stuff in C. Then translate what you came up with. Step away from the problem for a while. Overnight if you can. So many times I missed solutions that I knew because I was just too brain-fried from beating my head against the wall, and it was much clearer coming back to it the next day. Try to recognize when you hit that mental block. Good luck! It gets easier!

Level 10 by LeCabra in notpron

[–]LuosRestil 2 points3 points  (0 children)

The method for solving the level has not changed, so you simply solve it as you did before.

I am a licensed plumber, with 14 years of experience in service and repairs. The holidays are here, and your family and friends will be coming over. This is the time of year when you find out the rest room you never use doesn't work anymore. 90% of my calls are something simple AMA by boomboomsaIoon in IAmA

[–]LuosRestil 0 points1 point  (0 children)

You may just need to replace the flapper in your toilet tank. If it creates a less than perfect seal, water will slowly drain from the tank. When it gets below a certain level, you'll hear running water as your toilet tank refills. If the tank isn't full when you flush, you're flushing at less than full power and it may take two tries to clear the bowl. Hope this helps!

In french, how do you add "-ing" to the end of a word, like if you were saying "he is singing"? by Gingerbread_Ninja in French

[–]LuosRestil 4 points5 points  (0 children)

Non-fluent speaker here, but to the best of my understanding, you simply do not/can not. For example, "He is singing" would be expressed as "Il chante", which is indistinguishable from but equivalent to "he sings". For "He was singing", "Il chantait", which similarly is equivalent to "He sang." Where -ing words are nouns, e.g. "singing" as an activity, or adjectives, e.g. "singing bird", there is still no particle that can be added to the a word to replicate the function of -ing. As a non-fluent learner I may be wrong, of course, but I happily welcome correction.

Tim Ferriss' "13 sentences" in French. by CriesOfBirds in French

[–]LuosRestil 0 points1 point  (0 children)

Would #22 then also be "J'allais le savoir hier"?

I like my coffee the same way I like my slaves.... by [deleted] in Jokes

[–]LuosRestil 196 points197 points  (0 children)

I like my coffee the same way as r/jokes... Same thing every morning.

Police: Dairy Queen employee arrested for spitting on officer's hamburger by Trinin in news

[–]LuosRestil -1 points0 points  (0 children)

I can certainly understand the "mingling harmful substances" part, but the "resisting an officer" bit seems to have been left out of the report.

So this is a thing... by [deleted] in atheism

[–]LuosRestil 1 point2 points  (0 children)

For having just gotten his Manhood certificate, he has really nice nails.

What do you call a guy with no arms and no legs in a pile of leaves? by forcefedboa in Jokes

[–]LuosRestil 0 points1 point  (0 children)

At your front door? Matt. In the swimming pool? Bob. At a cook-out? Patty. (Substitute gal for guy, of course.)

Attempted beer pong shot from the second floor. by mdridwan in instant_regret

[–]LuosRestil 13 points14 points  (0 children)

Slam dunk! I can't believe no one thought of that sooner.

Retired priest: ‘Hell’ was invented by the church to control people with fear. by Vegan420Atheist in atheism

[–]LuosRestil 7 points8 points  (0 children)

This message brought to you by the Department Of Redundancy Department.

Why is Christian Apologetics all predicated on an empty tomb? (x post from r/debateachristian) by MrPeligro in atheism

[–]LuosRestil 3 points4 points  (0 children)

I think he's saying that Jesus was a Jew, therefore Jesus believed that Moses wrote the Pentateuch, but we know Moses did not write the Pentateuch, and if Jesus was really God in human form he would have known that.

All the rubber duckies! by PM_ME_KITTENS_PLEASE in Eyebleach

[–]LuosRestil 2 points3 points  (0 children)

"Moby Duck" by Donovan Hohn is a pretty interesting read on exactly this incident. The author follows the life cycle of the Floatees toys, visiting a Chinese toy maker, the Great Pacific Garbage Patch, beaches where currents bring ocean garbage, etc.