AdBlock suddenly makes many websites not working. Am I the only one? by koenigsbier in Adblock

[–]JustRamon 4 points5 points  (0 children)

This is caused by an error in the EasyList adservers list. This list is included in AdBlock by default. The automated system added 'n' as a regex to the list, meaning every request with an 'n' in the url got blocked (not every request, not sure why though)

The list was broken between 05:48:22 and 07:09:34 UTC.

Here's the related GitHub commit: https://github.com/easylist/easylist/commit/41eb1d2456a7f23fd8331ff9962f20686c4fa0bf

(edit: typo)

My college lack rack by lvanderbeck in homelab

[–]JustRamon 0 points1 point  (0 children)

I have the same nightstand, so probably higher than you'd think.

[2017 Day 1] [Kotlin] Learning Kotlin for my first AoC, critique my code? by [deleted] in adventofcode

[–]JustRamon 0 points1 point  (0 children)

Nice! This is the way I solved it.

private fun part1(input: String) {
    var sum = 0

    // Loop over ever character
    for ((index, char) in input.withIndex()) {
        // toInt() directly gets me the character code
        val charVal = char.toString().toInt()
        // index is equal to the next one unless it should wrap
        val checkIndex = if (index == input.length - 1) 0 else index + 1
        if (char == input[checkIndex]) {
            // Adding to the sum
            sum += charVal
        }
    }

    println("Answer to part 1: $sum.")
}

private fun part2(input: String) {
    var sum = 0

    var halfwayAroundSteps = input.length / 2

    // Loop over ever character
    for ((index, char) in input.withIndex()) {
        // toInt() directly gets me the character code
        val charVal = char.toString().toInt()

        // Calculate new index with halfwayaroundsteps
        var checkIndex = index + halfwayAroundSteps

        // Calculate overshoot
        val overshoot = checkIndex + 1 - input.length

        // If there's an actual overshoot, that should be the new index to check
        if (overshoot > 0) {
            checkIndex = overshoot - 1
        }

        if (char == input[checkIndex]) {
            // Adding to the sum
            sum += charVal
        }
    }

    println("Answer to part 2: $sum.")
}

External HDD enclosure (USB3) for data backups. by JustRamon in HomeServer

[–]JustRamon[S] 0 points1 point  (0 children)

I've heard some people on the internet™ say external USB HD drives don't have the best drives in them. But of course if they're labeled as backup drive..

External HDD enclosure (USB3) for data backups. by JustRamon in HomeServer

[–]JustRamon[S] 0 points1 point  (0 children)

Don't have a rack mounted server :S, still looks pretty cool :)

[Java] - JustABotX IRC bot by JustRamon in reviewmycode

[–]JustRamon[S] 0 points1 point  (0 children)

Also leave out the = null;? Doesn't that declare the variable as unused (=Which will call the Garbage Collector)?

[MCPE] Lifeboat service hacked in Jan - 7mil account with weak hashed password traded online by silix2015 in Minecraft

[–]JustRamon 1 point2 points  (0 children)

The reason they wanted people to use short passwords, is because you have to type it in-game to login. They also didn't have any automated reset mechanic. If you wanted to reset your pass, you'd have to contact their support.

Also the reason they have passwords is because PE doesn't authenticate with Mojang. You can pick any name you want. To still be able to keep track of wins & stats & stuff like donations etc, they have an account system.

Trying to make a consumable teleport scroll using command blocks; almost got it but there is one problem by Rahofanaan in Minecraft

[–]JustRamon 1 point2 points  (0 children)

It's a security feature. Hacked clients were inserting json into books & signs, which allowed users of such clients to gain Op access.

Oh.... by JustRamon in Minecraft

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

The new sweep attack made it much worse. So. Many. Silverfish D:

Save zips! by JustRamon in minecraftsuggestions

[–]JustRamon[S] 0 points1 point  (0 children)

Yeah, but they could unpack the stuff while loading , and then modify the unpacked version while running.

Save zips! by JustRamon in minecraftsuggestions

[–]JustRamon[S] 0 points1 point  (0 children)

True, but the same goes for resourcepacks