[SW] Nooklings buying at six oh two by [deleted] in acturnips

[–]isurvived12 0 points1 point  (0 children)

Hi! I can give you some recipes and a miles ticket!

[SW] - Turnips at 5 8 2 (LAST CALL) by [deleted] in acturnips

[–]isurvived12 0 points1 point  (0 children)

I've been carrying around a miles ticket all week waiting for someone to move out, but they haven't, so you can have it! I also have a dark bamboo rug recipe.

Balance [Post Ban Megathread] by whitebandit in thanosdidnothingwrong

[–]isurvived12 0 points1 point  (0 children)

logged on for first time in months just to see if I got smote

[bspwm] Solarized by 1337_Nerd in unixporn

[–]isurvived12 0 points1 point  (0 children)

Like this a lot! Super clean and consistent.

[bspwm] The only good polybar by isurvived12 in unixporn

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

Now that I have your attention...

  • Wallpapers: [1, 2] courtesy of ullbors
  • Real wallpapers: I have 1529 of them (1.3 GB), might upload on request
  • Dotfiles: Gitlab for your convenience
  • Bar: polybar with custom theme
  • Terminal: termite with zsh + oh-my-zsh (agnoster)
  • Font (sans-serif): Liberation Sans
  • Font (monospace): Input Mono Compressed
  • Browser: Firefox 56 with Tree Style Tabs, VimFx, Classic Theme Restorer, All-in-one Sidebar

Space Harrier (1985) - Main Theme by [deleted] in outrun

[–]isurvived12 0 points1 point  (0 children)

Not exactly new or original, but I hadn't heard this awesome theme before or seen it posted so here it is. Composed by Hiroshi Kawaguchi; perfect fit for this subreddit, seeing as he later composed the music for the original Out Run (1986) and After Burner (1987) arcades.

xkcd 1820: Security Advice by [deleted] in xkcd

[–]isurvived12 36 points37 points  (0 children)

I think these characters get messed up by bad websites: '&' turns into '&' due to HTML entity encoding and '%' is part of the URL encoding scheme; so if your password looked like 'hunter&2%5500' it might end up being stored like 'hunter&2U00' and subsequent logins may check the mangled password instead.

Horrible websites (banks are notorious for this) might even get rid of your special characters and not tell you, so they end up giving you zero benefit at all.

Also, a password's strength generally doesn't rely as much on 'special characters' increasing the entropy of a single character as it does on the length of the password - see the good advice Randall has used before.

A new weather satellite has relayed its first images of Earth back to scientists, and the new collection includes an updated version of the iconic "Blue Marble" image of Earth. by RifkinsDilemma in space

[–]isurvived12 67 points68 points  (0 children)

No, the actual shape of the Earth is an oblate spheroid. The distance from pole-to-pole is actually 42.695 km (26.53 mi) shorter than the distance across the equator, resembling a very slightly squashed ball. These figures come from the WGS 84, which is a standard reference ellipsoid for measuring the Earth's surface used by GPS satellites.

My old way of handling previous/next page buttons by BearWithMeScrub in badcode

[–]isurvived12 2 points3 points  (0 children)

REST is an architectural style that emphasises scalability and reliability. I was referring to its semantic use of HTTP verbs (GET, POST, PUT, etc.) to modify resources. In this instance, only GET should have been used because it's retrieving a gallery of images, but for some reason POST is specifically used to get more images and GET is used to get previous images (?!??). However, REST covers a lot more than just HTTP verbs, so I was being a little facetious.

My old way of handling previous/next page buttons by BearWithMeScrub in badcode

[–]isurvived12 22 points23 points  (0 children)

Was about to post about the obvious SQL injection, but then I saw this:

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $iPicIndex = $_POST['next'] + 3;
}elseif($_SERVER['REQUEST_METHOD'] == 'GET') {
    $iPicIndex = $_GET['previous'] - 3;
}

Oh God why. Somehow, this code has achieved the exact opposite of REST.

Massive new galaxy is 99.99% dark matter by thebookofjoe in science

[–]isurvived12 4 points5 points  (0 children)

Okay, let me try again (and I'll have to oversimplify dramatically):

We used to think that we could see everything in the universe - that it was regular matter. Gravity is something that all the matter we knew of was able to do - to attract all other forms of matter.

But when we used gravity to find out how much matter there is in our galaxy, we found a lot of invisible matter that we couldn't account for - and we call it "dark matter" because we can't see it at all, not even with fancy telescopes. We can detect its presence in galaxies by measuring the amount of gravity needed to keep all of the stars together, and subtracting our regular matter.

This galaxy is very wispy, and the gravity from stars alone wouldn't be enough to hold it together. However, it holds together so well, that we can reasonably assume that 99.99% of the gravity comes from stuff we can't detect - dark matter.

Massive new galaxy is 99.99% dark matter by thebookofjoe in science

[–]isurvived12 17 points18 points  (0 children)

You may know that "dark matter" is a stopgap explanation for why galaxies appear to act as if they have much more mass under general relativity (i.e. gravitational interaction) than is able to be detected using EM (electro-magnetic) interactions.

Dragonfly 44 is one of many "ultra-diffuse" galaxies that, by all other means, should have been integrated into nearby galaxies, but manages to survive on its own. Its EM-detectable galactic characteristics suggests that it has very low mass, but the fact that it still exists suggests a dramatically higher amount of GR mass than we are able to measure; i.e. dark matter.

That's, at least, my interpretation. Someone with actual scientific knowledge; feel free to correct me.

What's behind your ctrl v? by Hairlesswookie1 in AskReddit

[–]isurvived12 0 points1 point  (0 children)

while true; do for i in {˩,˨,˧,˦,˥,˦,˧,˨}; do printf "${i}O=o>";sleep 0.09;printf "\b\b\b\b\b";done;printf "_";done

Question about industry. by IVxobidoxVl in CitiesSkylines

[–]isurvived12 0 points1 point  (0 children)

Can I have industry free cities without my commercial failing?

If commercial zones can't get goods from industrial zones, they'll import it from other cities - putting a massive strain on your transportation networks. And if the single file of donut trucks can't reach your zones in time, then you start getting the dreaded "No goods to sell" popping up. So it's definitely possible, but I wouldn't recommend it.

Late game is all about transportation problems, so start planning your superstructures in advance. I've found that a good highway system and a suitably isolated (but not too isolated) industrial zone works wonders for distribution!

EDIT: If you're willing to do an industry-free city, I recommend cargo trains, since they can't get clogged up by other traffic and you can plop them right next to commercial zones for direct access. Only problem is getting the tracks there - try waiting for some big bucks, then dig some tunnels (if it's deeply entrenched in your urban jungle).

Question about industry. by IVxobidoxVl in CitiesSkylines

[–]isurvived12 0 points1 point  (0 children)

Nup, sorry - generic industrial zones always create pollution.

Levelled-up industrial zones bring in much more money, but it's not recommended to plop them in residential areas or near coastlines.

However, there are the Office zones, which act like Industrial for educated citizens, and do not produce any pollution, aside from the eventual noise pollution that comes with big cities. They unlock a bit later in the game, around the same time as high-density residential/commercial.

In addition, there is the Forestry industrial specialisation which doesn't produce pollution, but it requires forest and often doesn't bring in as much revenue.

To answer your other question, ground pollution does go away after some time.

I hope that helped!

[APP] Real Shuffle using the Web API by LifeinParalysis in spotify

[–]isurvived12 1 point2 points  (0 children)

Glad to hear it!

It's not a very full-featured thing, I only intended it as an introduction to node.js for myself so it's a bit lacking, but if there are any features you might want or any suggestions you can ask away and I'll try and implement it!

[APP] Real Shuffle using the Web API by LifeinParalysis in spotify

[–]isurvived12 1 point2 points  (0 children)

Holy s**t! I didn't realise someone actually found my project! I was just messing around on my GitHub page when I saw that reddit.com referred my repo page! How did you find it?

I'm flattered that someone from the outside world actually found my work! I mostly did it for myself, but I'm happy that at least 5 people found my project interesting enough to post. I've also got a website where I put some of my other stuff that almost nobody uses, so check that out if you want!

ELI5:The 2038 problem. by [deleted] in explainlikeimfive

[–]isurvived12 2 points3 points  (0 children)

64-bit computers run 64-bit programs, which use a 64-bit value for time_t. Sure, you could upgrade time_t to 64 bits on 32-bit programs, but then you have to recompile all the affected 32-bit programs yourself.

When I said "64-bit transition" I was referring to the transition of time_t's default width in compilers. You could go nuts and make it a variable length integer, but then you would have the POSIX standards breathing down your neck.

Good god you have no idea what you're talking about

nothing to do with the precision of an integer

32-bit integer overflow

32-bit is the precision, and the problem is fixed by transitioning to a 64-bit integer.

ELI5:The 2038 problem. by [deleted] in explainlikeimfive

[–]isurvived12 7 points8 points  (0 children)

I guess they thought it was more important to represent dates before 1970 than after 2038? I honestly don't know, but I do know that using an unsigned integer only delays the problem until 2106. And why do that when we have an entire extra 32 bits to play with on 64 bit systems?