Slashdot Mirror


User: barbariccow

barbariccow's activity in the archive.

Stories
0
Comments
558
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 558

  1. Re:James Dean says (lol)... apk on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    Why not? Why is it so hard to port, at least a cli version with no options.. the hosts file is the same format, hopefully you're using the standard open/malloc/close file handling, which is already portable. Or if you for some reason wrote it in .NET for whatever reason, there's tools like mono and silverlight that should make easy it porting. Hell, here's a simple implementation in bash:

    #!/bin/bash
    BLOCKED_HOSTS="blah.example.com ads.google.com etc.whatever.com"

    die() {
    echo "$@" 2>&1
    exit 1
    }
    [ ! -w "/etc/hosts" ] && die "Error: Cannot write to /etc/hosts"
    for blockHost in ${BLOCKED_HOSTS};
    do
    if ! ( grep -q "^.*[\t ]*${blockHost}" "/etc/hosts" >/dev/null 2>&1 ) then
    echo "Blackholing host ${blockHost}";
    printf "%s\t%s\n" "127.0.0.1" "${blockHost}" >> /etc/hosts
    fi
    done

    Just replace BLOCKED_HOSTS with a space-separated list of hosts you want to block, it will scan if they are already blocked and block the ones that aren't in your list. I hereby donate this code to the public domain, you're free to use it however you please.

    Here's example of it working:

    [root@MYHOSTNAME ___brIj4s05]# chmod +x doit.sh
    [root@MYHOSTNAME ___brIj4s05]# ./doit.sh
    Blackholing host blah.example.com
    Blackholing host ads.google.com
    Blackholing host etc.whatever.com
    [root@MYHOSTNAME ___brIj4s05]# ./doit.sh # Note that the second run doesn't block anything that isn't already blocked
    [root@MYHOSTNAME ___brIj4s05]#

  2. Re: 'This happened for two reasons.' on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    The hell are you talking about? Maybe static compilation isn't the way to go. You can ship the .o files and link them via an "install.sh" script on the target system, then you can work against multiple versions of libs. Or just.. you know... provide the source.

  3. Re:This is the year on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    I've used supercomputers that do virtualization. You request a number of CPUs and memory and provide a container or an iso or something and it spits you off a host. It's a pretty sane way to support and delegate 1000s of things that wanna run on it at all times.

  4. Re:Xyrus, agreed 110% (been saying that...) on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    Linux also has a shorter path to the hosts file than windows. That's gotta be a plus for you, right?

  5. Re:That's because... on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    I used a newer beowulf cluster just last year.

  6. Re:That's because... on All 500 of the World's Top 500 Supercomputers Are Running Linux (zdnet.com) · · Score: 1

    Won't happen. Everyone knows vi is better than emacs.

  7. Re:why should Southwest Airlines pay? and not boei on Boeing 757 Testing Shows Airplanes Vulnerable To Hacking, DHS Says (aviationtoday.com) · · Score: 1

    You can still stand out front of the airport, with likely the same effectiveness.

  8. It's the avionics unit inside the plane likely that would need a "fix." You can pop them out and pop in a new one. Don't gotta replace the plane. I honestly don't know how they can keep using VHF and properly authenticate (that's not subject to a replay attack) with any existing protocols. They'd have to do a massive pre key exchange which would require coordination with EVERY SINGLE AIRPORT/FIELD IN THE WORLD - a truely epic endeavour.

  9. Probably just sent ACARS messages over RF and the airplane thought they were from the airport. These messages can include things automated acted upon like "Your plane's altitude has been detected at XX feet" or "Huge category-5 hurricane straight ahead, divert to ETOPS field". Not like they designed any of these protocols with security..

  10. Re:Impersonating me AGAIN, whacko? on All Major Browsers Now Support WebAssembly (bleepingcomputer.com) · · Score: 1

    APK Template on the nose!

  11. Re:Firefox tracking protection on Firefox Quantum Arrives With Faster Browser Engine, Major Visual Overhaul (venturebeat.com) · · Score: 1

    Ads are paid per-click, not per-load. If you're not going to click any of the ads anyway, why do you think showing some of them are helping the site maintainers?

  12. That's from it trying to convert your old style into the new layout. You can adjust it to fix it.

  13. Re:Fake Asset Bubble on Bitcoin Gold, the Latest Bitcoin Fork, Explained (arstechnica.com) · · Score: 2

    So long as you can buy drugs with it safely, it's a real asset with real value to real people.

  14. Re: All else is folly. on Bitcoin Gold, the Latest Bitcoin Fork, Explained (arstechnica.com) · · Score: 1

    You carry more than $1280 in your wallet ( https://goldprice.org/gold-pri... ) ? Man I hope you don't drop it...

  15. Re:Sick of idiots and bump stocks... apk on All Major Browsers Now Support WebAssembly (bleepingcomputer.com) · · Score: 2

    This is way too coherent to be the real APK. And missing the barrage of links to questionable pages. Fail.

  16. Re:They are still around. on Payphones Still Make Millions of Dollars (vice.com) · · Score: 2

    You can watch on old Andy Warhol movies and the like, they used to have 3 slots for dime, nickel, or quarter. Each gave you a set amount of time. I searched for "old pay phone" on duckduckgo images and pretty well every picture is of this model. http://farm4.staticflickr.com/...

  17. Re:A lot of software packages... on Ask Slashdot: Which Software/Devices Are Unusable Without Connecting to the Internet? (techdirt.com) · · Score: 2

    Allows them to always give you the latest workarounds for bugs and links to ads like no local patching could!

  18. Re:USB drivers still in kernel? on Linux 4.14 Has Been Released (kernelnewbies.org) · · Score: 1

    Anything that controls hardware is going to be in the kernel at some point..

  19. Irony on Not Every Article Needs a Picture (theoutline.com) · · Score: 5, Funny

    In utter irony, linked TFA when clicked displays a full screen image before you can scroll down and actually read the story.

  20. I find on Not Every Article Needs a Picture (theoutline.com) · · Score: 1

    I find way too often the picture is much more interesting than the article..

  21. Re:They are still around. on Payphones Still Make Millions of Dollars (vice.com) · · Score: 1

    For those that don't know, a police box was where you beat up and shut somebody in you didn't like and waited for the police to come pick them up. A pay phone is where you go in a booth, put in a quarter, dime, or nickel, and make a call.

  22. Re:They are still around. on Payphones Still Make Millions of Dollars (vice.com) · · Score: 2

    That's a police box. It's different than a pay phone.

  23. Re:Lol, "millions of dollars" on Payphones Still Make Millions of Dollars (vice.com) · · Score: 1

    The phone companies destroyed ALL the payphones around here several years ago.

  24. Re:wow on The Booming Japanese Rent-a-Friend Business (theatlantic.com) · · Score: 1

    I don't recall the last time I read something online that shocked me as much as this

    Wow, you really avoid large swaths of the information superhighway don't you?

  25. Re:wow on The Booming Japanese Rent-a-Friend Business (theatlantic.com) · · Score: 1

    Gravy goes well with french fries, almost as much so as another great topping for both french fries AND pizza: mashed potatoes.