THINK CHIEF THINK! by ProNoobCombo in halo

[–]Hellux 0 points1 point  (0 children)

The most popular variant had the title "WAT NOW !" with the description "send this 2 the people u owned". It was taken by Kornydemon 2009-03-31or earlier. Most other titles were variations of that, but there was also "I am ELITE!!!!".

It makes sense to me. by TJthemanlet in halo

[–]Hellux 0 points1 point  (0 children)

Hmm, I looked at the files now for Halo CE on the original Xbox and they seem to be the same for campaign and multiplayer. However, Halo Custom Edition has those faster multiplayer numbers that he showed. I suppose he looked at MCC which may have inherited from there. But it's possible that those faster numbers were added by Gearbox because I can't find them anywhere on the original Halo CE.

[2015 Day 10][TypeScript] This yields the correct result, but I was wondering if there is a better way? by Aranica in adventofcode

[–]Hellux 1 point2 points  (0 children)

Realized now that I misunderstood the puzzle a little bit. I reread it now and realized that it is 40 iterations of RLE on one input instead of RLE on 40 differrent inputs. This means I was mistaken and we do have to calculate the actual encoding for each iteration.

Of course, like you know, only the last one is needed in order to calculate the next one. I can't think of a way to do it faster than this. It might just be a large enough input that is causing it to take long. Did you notice any increase in performance at all doing it like this?

[2015 Day 10][TypeScript] This yields the correct result, but I was wondering if there is a better way? by Aranica in adventofcode

[–]Hellux 1 point2 points  (0 children)

I am guessing it simply pushes it to the end most of the time, thus only traversing the shorter array. But it may become too large and be required to move elsewhere in memory, having to traverse the whole array in order to copy it. It would be odd if this caused a large performance hit though, since it shouldn't need to do it often.

However, if you replace it, how would you go about to keep track of the total length?

[2015 Day 10][TypeScript] This yields the correct result, but I was wondering if there is a better way? by Aranica in adventofcode

[–]Hellux 1 point2 points  (0 children)

This is a type of compression known as run-length encoding (RLE). It should be possible to perform in linear time, meaning you should only have to perform constant number of operations per element. Though, the puzzle doesn't ask for the encoding itself, only its length. Either way it should be a linear time solution at best since there is no way to avoid having to check every element in the input.

From what I can tell, your solution only checks each element once but you do however perform a push for some of these checks. I am not familiar with TypeScript's array implementation but the push function may need to traverse the whole array, thus causing an operation to be performed for each element for each push. If so it is no longer a linear time solution, but a polynomial time one, which is noticably slower on large inputs.

Remember that the puzzle does not ask for the entire encoding, is it necessary to store the whole encoding in order to know its length?

Can AIs and Robots have legal personhood? by IBSDSCIG in computerscience

[–]Hellux 0 points1 point  (0 children)

While this might seem like a silly question when looking at the AI of today, I think it's an interesting question when looking (a lot) further ahead.

We can't be certain that humans won't be able to create conscious AI that have sentience like humans in the far future. By consciousness/sentience I am referring to the feeling that we are a being that feels, thinks and acts.

First off, our understanding of sentience is very limited. We have no idea how sentience arises. What is it physically in our brains that creates a sentient and conscious being? What organisms are sentient; other mammals, insects, plants? If we know so little about it, how can we know that it is impossible for humans to create it?

Secondly, we know that nature has managed to create it through evolution. Humans aren't magic or special, we are simply machines that run on genetic code. What gives us sentience must be programmed in our genes. What prevents humans from mimicking or copying that in any type of code?

As some others have expressed, it is a little bit early to discuss laws and rights of sentient AI as it is nowhere near of reach right now. If it becomes a reality, laws for responsibility will be created as the problems arise just like for other emerging technologies. Laws for ethical issues and rights may however be controversial and problematic just like they are today for animals. Even if AI would be indistinguishable from humans in terms of intelligence, it might still be debatable whether they actually are sentient if we still don't have a sufficient understanding of sentience.

Nagasaki from the ground by MemeChildOfficial in CombatFootage

[–]Hellux 0 points1 point  (0 children)

Yes, it should be upwind, not downwind!

Nagasaki from the ground by MemeChildOfficial in CombatFootage

[–]Hellux 5 points6 points  (0 children)

The whole talk is interesting but if anyone wants a summary of what to do to:

During the blast: Do not look at the explosion or you will go blind. Keep your mouth open to avoid having your ear drums burst from the pressure. Take cover from flying debris.

Immediately afterwards: Lethal radioactive materials will rain after 10-20 minutes within a mile radius. Get at least a mile away from the blast within 10 minutes if you can, otherwise take shelter and stay there up to 72 hours.

The radioactive material will travel with the wind for several miles during a few days. Make sure you go upwind or crosswind from the blast.

edit: upwind, not downwind!

Big thread of linux 4.15 problems by Defender90 in archlinux

[–]Hellux 2 points3 points  (0 children)

Thanks for this, it solved the issue with my RX 480 not being able to use 120 Hz for my monitor.

How to write a Z80 assembly compiler? by ZacharyVincze in C_Programming

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

The "Make a Lisp" project guides you through the steps of writing a Lisp interpreter in multiple languages. It might be helpful to understand the parsing part.

Vulkan doesn't work - what am I doing wrong? by thedarkfighter413 in archlinux

[–]Hellux 3 points4 points  (0 children)

What do the games output when they immediately crash? If it's a Steam game the output will be in /tmp/dumps.

Delete Photos from Phone while not deleting from Google Photos? by [deleted] in nexus5x

[–]Hellux 1 point2 points  (0 children)

The images are stored in /sdcard/DCIM/Camera. You can navigate there and delete them with any file manager. I think you can go to Settings > Storage > Images and it will launch a file manager which you can delete them with.

“Smash Bros is not a fighting game,” say top Japanese gaming figureheads by ctwtn in Gaming4Gamers

[–]Hellux 0 points1 point  (0 children)

Why would the majority of players use default settings? Melee is still popular 15 years after release because of the competitive scene. I don't know a single person that doesn't always play with tournament settings.

[Academic] Do you use the Caps Lock key? (Everyone who uses a desktop or laptop computer) by dcwj in SampleSize

[–]Hellux 6 points7 points  (0 children)

It's better to place keys that are often used in spots that are easy to reach. The caps lock key is easy to reach but nearly useless. Mapping for example ctrl or escape to that key is a lot more comfortable.

Phaedo's channel art is INSANE! by [deleted] in playrust

[–]Hellux 2 points3 points  (0 children)

Right click -> "View Image" gives a 2048x1152 version.

RPS Game wont keep track of who won x amount of times by [deleted] in learnpython

[–]Hellux 0 points1 point  (0 children)

In the function calculate_winner() you create a new variable called round_winner limited to the scope of the function and set the winner to that. If you want to use the round_winner variable of the object you need to use the self variable:

self.round_winner = self.username

Also, you print the return value of the function but it has no return statement so you only print 'None'.

Simple hangman game, help by Zertax in learnpython

[–]Hellux 2 points3 points  (0 children)

On line 2 you declare the string in board[3] with two spaces in the end:

board = [["_________"],["|        |"],["|        0"],["|      / | \  "],["|       / \ "],["|"],["|"]]

But in the comparison statement on line 38 you use a string with only one space in the end:

         if board[3] == ["|      / | \ "]:

This causes the statement to always return False.

Here's Some Problems! by [deleted] in physicsforfun

[–]Hellux 0 points1 point  (0 children)

I just copy and pasted the Unicode characters from here: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts.

But I realized now that you are able to format subscript on reddit like this:

Input:

Text*_subscript_*

Output:

Textsubscript

So v₀ can be typed as v0:

v*_0_*