Slashdot Mirror


User: advantis

advantis's activity in the archive.

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

Comments · 65

  1. Re:I'll bite on Microsoft Releases PowerShell DSC For Linux · · Score: 1

    Because there's no such thing as an assignment operator in bash. Everything is a string token at first (even numbers aren't number unless you're in arithmetic evaluation context), and then tokens get interpreted in various ways once split by whitespace.

    x = 3 happens to be three tokens, the first one being the command 'x', the other two being parameters '=' and '3' to command 'x'.

    x=3 is one token and it doesn't mean assignment unless it's in the command preface where assignments take place.

    This is from 'man bash', under SHELL GRAMMAR / Simple Commands:

    A simple command is a sequence of optional variable assignments followed by blank-separated words and redirections, and terminated by a control operator. The first word specifies the command to be executed, and is passed as argument zero. The remaining words are passed as arguments to the invoked command.

    The AC failed to recognise the $(command) construct, which is 'execute this command and give me its output as a string.

    And the AC also messed up the arithmetic. This is what should have been written:

    x=$((x+1))

    This three are even better:

    ((x = x + 1))
    ((x += 1))
    ((x++))

    Variable expansion happens in the arithmetic context (see 'man bash' / EXPANSION / Arithmetic Expansion), so doing $(($x + 1)) is actually wrong, because if $x expands to 'y' then you end up with $((y + 1)), which might be useful sometimes, but given the lack of understanding shown it's probably not what you're actually trying to do.

    RTFM means 'man bash' in this case. It may take you a day to go through it and experiment with what you learn in each section, but it's worth it.

  2. I have a wish :) on Microsoft Releases PowerShell DSC For Linux · · Score: 3, Funny

    At this rate, we'll see MS commit stuff to Wine not long before Christmas.

    I'll start a collection for all the tormented souls in Hell, as they'll need lots and lots of warm clothing as the ice age dawns upon them.

  3. Tesla Energy on NASA Will Award You $5,000 For Your Finest Mars City Idea · · Score: 1

    Give $1000 to charity (won't make any difference to Elon Musk) and give the other $4000 to whoever designs the rest of the city around Tesla's Gigafactory and Powerwall products. Unless Tesla are secretly developing oxygen systems for their already ongoing space concern.

  4. "password" and "123456" dethroned on Google Announces "Password Alert" To Protect Against Phishing Attacks · · Score: 1

    So now people will have passwords like this:

    google_password
    tinder_password
    linkedin_password
    facebook_password

    instead of just "password"

    I think at this point using a Google Authenticator generated code _as_ the password should be enough. It removes the user from the process of creating a "correct horse battery staple" password. It makes the authentication pretty much on par with SSH key authentication (you have a private key, Google has the public part, you generate a code that demonstrated that you have the correct key). I'd like to see phishing sites ask you for your private key, as see how many morons are out there who would actually jump through the hoops of obtaining that key from their phones and pasting it to the phisher, 'cause hey, "a million Nigerian dollars is a lot of money".

  5. Re:GPS on A Cheap, Ubiquitous Earthquake Warning System · · Score: 1

    This one? http://www.sciencedirect.com/science/article/pii/S1367912015000917

    That's what Google gave me. The abstract looks very interesting.

  6. How to get office drones instead of engineers on When Exxon Wanted To Be a Personal Computing Revolutionary · · Score: 3, Insightful

    From TFS: "Faggin was upset about Intel's new requirement that employees had to arrive by eight in the morning, while he usually worked nights."

    I've heard both sides of the story:

    Side A: But if you're in the office while everybody else is in, you can work more efficiently, as everybody else is there to answer your questions.
    Side B: Some of the best engineers I've worked with worked nights. Some of them slept under their desks and rarely showered, but none of the 9-5 people came close to their performance.

    Basically, if people perform don't mess with their schedule or their appearance.

    If you're on Side B, Side A also has that negative that is given as a positive: everybody else is there. (sarcastic tone of voice) Yeah!! If you want to not get any work done because of all the "quick" questions everybody has while "headphones" doesn't register with them as "leave me alone!"

  7. Re:Meet on The Origin of Life and the Hidden Role of Quantum Criticality · · Score: 1

    Yeah me too... I want to ask him/her how many failed attempts it took to evolve this great decision... It does look like an infinity or similar number of attempts before one of them stuck... And then those other things that don't stick are still attempted even though the right one has already been chosen...

  8. Re:What about if the customer is giving theirs awa on FCC Prohibits Blocking of Personal Wi-Fi Hotspots · · Score: 1

    I don't know if there's a tech that could tell when packets are coming from X machine, or coming form sources 'beyond' that machine, but to me it would be legit if a hotel *could* prevent such usage. Otherwise you have a freeloader issue.

    What one ISP I used once did, to prevent people with routers and networks from getting out, was to filter by TTL. Windows has a default TTL of 64. Any TTL below that was "beyond" a router. Of course, then everybody with an ounce of Google either had an iptables rule in their router to increase the TTL by one in mangle/POSTROUTING or, if the router was an off the shelf one, just tell each machine on the LAN to have a TTL of 65. The people not versed in Google-fu didn't have routers either, so everybody was blissfully happy.

  9. That's nothing on Website Peeps Into 73,000 Unsecured Security Cameras Via Default Passwords · · Score: 1

    I've encountered a camera that actively uses UPnP (Gateway profile) to ask the router to forward port 80 to itself and also connects to a Chinese dynamic DNS service as a bonus by default. While you can disable the dynamic DNS setting, you have no say in the UPnP thing.

    These cameras are so badly thought out that they crash when a different UPnP device on your network responds.

    But hey, they're cheap. You find them on Alibaba (the guys with the big IPO).

  10. Re:almost useless on Windows 10 Gets a Package Manager For the Command Line · · Score: 1

    This one? It sounds awesome just by reading the project description.

  11. Re:almost useless on Windows 10 Gets a Package Manager For the Command Line · · Score: 1

    I can say I have. I couldn't wrap my head around RPM, but I didn't try that hard. Debs on the other hand are easy as pie. It takes me about 5 minutes to refresh my memory on dh_make (man dh_make), then create a deb using dpkg-buildpackage -rfakeroot -b -us -uc (if you actually want signatures it still doesn't get much harder). No pain in the ass at all, royal or otherwise.

  12. Re:And so therefor it follows and I quote on Italian Supreme Court Bans the 'Microsoft Tax' · · Score: 1

    Unless there's a reduced rate for the loaf of bread, the tax man won't really care. But you're the one in trouble if you need to give the car back for whatever reason, because hey, you didn't pay anything for it. And we don't do returns on the loaf of bread - or, let's say, something more durable: a special shell from the seaside. If anything, the tax man might take an interest in you for capital gains (about 20K?) if you ever sell the car on. I don't think it would qualify as chattels.

    Also, the situation isn't anywhere near your analogy. In this case it's a 20K car with a free loaf of bread (that you can give back, but you only get 0.00, since the bread only comes with the car and has no market value by itself).

  13. Re:And so therefor it follows and I quote on Italian Supreme Court Bans the 'Microsoft Tax' · · Score: 1

    You're making good points up to here:

    I'm all for open source on widely-used software (e.g. the OS, TCP/IP stack, web server, etc). But going completely open source eliminates the market forces which allow users to tell developers what they want in the software. What you end up with is a tyranny by the developers which is very slow to respond to user likes/dislikes (VLC eventually let users change the mouse wheel function). Modifying copyright as I've suggested results in more of a middle ground, where market forces are preserved, but pricing control is not completely up to the content creator.

    The first page ends like this: "Your patch is welcome..." from the tyrant. They could always go the Apple way and never respond, ever... And if your bug gets fixed, good for you. If not... /dev/null is your conversation partner.

    I've been skimming over page 2, and it's a pissing contest. Apparently the change was done in "next version", but the version in question (0.9) was left unchanged because of this one user. The markings were there: just fork it and backport it, or wait for the next version.

    But that's not the point I want to make. The point is that's what you get when you deal with the developers directly instead of a PR department (because there isn't any). I've experienced this outside software too: you never, ever, talk to the operators of your ISP. You talk to PR, and they forward your complaints to the admins, and their responses/actions back to you. I was a customer for a very tiny ISP (one admin, two servers, one sales guy, no PR). They would offer support over chat, and the admin would get on the line himself. Discussions would easily escalate to be indistinguishable from what I've just read in that VLC thread. Customers think they'll get a better deal if they raise their tone, and don't give a fuck about reason. I managed to get myself a "free Internet" deal by volunteering to do the PR for them, since I was on chat all the time anyway, and I had the knowledge, and didn't mind the experience. Customer attitudes differed, because they were aware I had no real power, and my role was to massage their "fuck you" filled complaints into something the admin and company owners could read without getting grief.

    You can get tyranny with closed source and large companies just fine, but for some reason that's OK?

  14. Re:And so therefor it follows and I quote on Italian Supreme Court Bans the 'Microsoft Tax' · · Score: 1

    That's actually a bad example, since a beer drinking club purchases beer from the market and it shows up on it's invoices, just like the OEMs.

    Apple is like a beer drinking club that brews its own beer and has costs associated with doing that, from raw materials to labor costs. Not sure what the difference between those two clubs is regarding how they resell the beer to their customer.

    You can be a member of the beer drinking club without drinking any of the beer. The cost is exactly the same to you, irrespective of how much the club is paying for the development of the beer. The beer is available for free, should you want it, and you have the right membership card to show at the bar.

    OEMs might be able to circumvent the Italian ruling, now that I think about it, if they offer software-less hardware for exactly the same price as if you had the most basic version of Windows pre-installed (the one that won't let you change the wallpaper - Windows Starter Edition? because it's not illegal to take the piss, it's only bad for business when customers realise the quality of the offering), but anything above the basic offering can still be declined and refunded if not specifically ordered.

  15. Re:And so therefor it follows and I quote on Italian Supreme Court Bans the 'Microsoft Tax' · · Score: 1

    Where the money to fund the giveaway comes from is irrelevant. Only how much you sell it for, given that you can shake hands on the sale.

    Where does the money come from for the development of Linux and its userland? Linus, Red Hat, their friends, surely spend money/time to develop the things. Yet there's no refund for the software if I sell you a laptop with an unwanted Linux distro pre-installed, even if I charge you 1000% markup. It's your own fault you're paying me the stupid markup, not mine. The difference that Apple write OS X themselves doesn't change this.

    In Apple's case, the shaking of hands on the software depends on the licensing terms, which say "we're giving you OS X for nothing, but the catch is you may only install it on our hardware" or some such. And if Apple is forced to prove this, they can always add this to their lineup: "Mac without OS, optional OS disc available for $0" for the same price as the Macs with pre-installed OS X. If that doesn't drive the point home, I don't know what does.

    So, if MS want to circumvent the Italian ruling, they have to start selling overpriced hardware with free Windows (I suggest the name "Surface" :D). And kick every OEM out there in the nuts in the process. You can see MS can't do this overnight without kicking themselves in the nuts as well.

  16. Flipping Kindles on Do Readers Absorb Less On Kindles Than On Paper? Not Necessarily · · Score: 1

    One thing that goes away with the Kindle is the ability to use your fingers as temporary bookmarks while you flip pages back and forth to look something up. Advanced book users might use several of these bookmarks at one point if the information is spread across chapters. Even the simple "partially turn page to see what's on the other side without losing focus of the current page" isn't working.

    Yet I still bought a Kindle (Paperwhite), because books aren't very readable in the dark, and I find myself switching away from the book (to Facebook, news-site-I-fancy-reading-now, jeu-de-l'heure) on a multi-purpose tablet. Haven't tried learning with it though. I use it to put myself to sleep :)

  17. Flying cars on Correcting Killer Architecture · · Score: 2

    Well, people keep asking for their flying cars, and now that they got them, thanks to that building in Leeds, they're upset?

  18. Eagle Eye on Extracting Audio From Visual Information · · Score: 1

    This is what I instantly thought of: Eagle Eye. The scene with the soundproof room.

  19. Capitalism on EA Tests Subscription Access To Game Catalog · · Score: 1

    When you can't make new stuff anymore, rent out what you have accumulated. Money has to circulate or it's pointless. This isn't criticism (just look how "well" the alternatives went). It's an observation. I'm sure somebody smarter than me wrote a book on the topic at least a century ago :) but rent, subscriptions and planned obsolescence are pretty much the same thing. Services (as opposed to manufacturing) are probably in the same ballpark. With everything pretty much already invented, we need _something_ to churn all that cash which is our sole reason to live :)

  20. Re:What? on Cable Companies: We're Afraid Netflix Will Demand Payment From ISPs · · Score: 1

    What exactly do they say to you if your ISP didn't agree to pay that fee? "We tried to bleed your ISP dry and they refused, so if you want to watch this site you have to switch to an ISP in our approved list"?

  21. Dibs on circular screen on BlackBerry's Innovation: Square-Screened Smartphones · · Score: 1

    Just because developers don't have enough headaches to deal with, I'll go patent a circular screen with a polar coordinate system to access the pixels. :) And I'll find a way to stick 26 letter keys and 10 digit keys around it, and give it a shape that will make it fly as well as a frisbee too. Still not sure if to go overboard by making it squishy too so since it can fly when thrown your dog should be able to bring it back and have it still work.

    You heard it here first folks! :D

  22. Paying to free user ratio on Google Reader: One Year Later · · Score: 1

    While everybody else is busy missing the point and showing off their favourite alternatives (I'm happy with Feedly BTW), there's a different data point I took out of TFS:

    15 million users and 24,000 paying customers

    That section alone is what interests me: the ratio of paying customers to total users. That's because I'm green enough in the field of business that I have no clue at all about these things, not even as anecdotes.

    I don't usually read BI (because my perception of them is that they're BS, even though I don't have enough data points to support my perception), but this one made for an interesting article. From the article I got this other data point: If all 24,000 customers pay at least $45 per year, that means Feedly and its 12 employees are generating more than $1 million per year. and the fact that they were pushed near profitability. Nowhere does it say they are actually profitable. It's a good read for anybody who thinks of starting anything up and want their motivation, hopes and dreams crushed by hard reality numbers :)

  23. It just clicked + everybody else was playing games on Ask Slashdot: What Inspired You To Start Hacking? · · Score: 1

    This article asks for a rant, so here you go:

    I got into this by luck. Otherwise I might have been just the run of the mill awkward person :) My mom found an ad in the paper. A school was looking for students to start 5th year on a computer programming curriculum, and entry was test-based. You had to pass a maths and a literature test on subjects that a 4th grader should be knowing.

    I hadn't seen a computer until I started school in September, but there was a book that was recommended, and I got that during the summer holiday. With no computer, just with pen and paper, I went through the book, and it just went in. I had a void in my brain that gladly sucked it all in. The I about forgot it all when I sat in front of a Spectrum clone and didn't realise I had a power button to press on the monitor to turn it on.

    Ever since, I've been attracted to the field. I was 11 when I started. Being awkward helped a bit. I was never competitive, so I rarely played any games that others could play, so if it was a game, it had to be a text-based adventure. Nobody would play those, and I'd get my ass kicked in any others, so I avoided those. The guys kicking my ass in games weren't really that good at programming the computers, so hey, while you guys are busy playing games, I'll try this little algorithm I saw in a book and see what it does and try to understand it. I spent my PE classes in the computer lab instead. Things moved on, we got PCs, we moved from BASIC to Turbo Pascal, and it was still great. I dabbled with assembly language, but never got experienced with it. I picked it up a few times, but never got past flinging a few registers and some data on the stack. I don't regret it though. I learned other cool things.

    I'm glad I didn't jump straight into C, as in Pascal you have a real string type that you don't care about, but in C you have a... convention... And if anything, when you start to learn programming numbers and strings are what you play with first. These days people are started in C, which I think is plain mad. Back then Python wasn't on the horizon. Nowadays, if you don't start newbies on Python as their first ever language you need to be shot. Python is the new BASIC in my view. What I like about Python is that "batteries included" thing. Want to have a taste with something? import thing_that_does_what_you_want_to_play_with. You'll study what that does later. Play time is now. Some purists may consider this to be ass backwards, but come on: to get interest, you have to play with it first, then study the boring bits. And study the boring bits in locally ordered random sequence. Sequential order can only put you off and make you hate the thing. And by FSM don't start people in Java or C#! You can put that in a follow up class, after your students know WTF to do with a computer in terms of programming.

    Nowadays I'm abusing the hell out of Bash, but only because I got really good at it, hated Perl, didn't actually get properly acquainted with Python until recently, and I have serious aversion of using PHP to write console tools.

    Of course, as you might imagine for a Slashdot reader, my social life is absolutely devoid of content :) I don't like it that way anymore, but if I let go I have no idea what to do next. It's like you either do this full-life, or you don't. If I cut down, I just feel that I'd write OpenSSL-style code instead, and I'm not at ease with the idea at all. The fact that I work in a very tiny company that relies on me probably doesn't help. This paragraph is probably good material for an "Ask Slashdot" article: "How do you cut down and get a life?". I know it's a viable proposition for an article after reading the comments on the "Parenting rewires male brains" article. Either everyone there was masterfully trolling, or I've been doing everything wrong in my life so far. I'm yet to see what I can do to fix that, but I have to, as I'm 31 now, and I don't want to become Larry Laffer (he is 40 in the game).

    Oh, and I think I'll be getting my first downmods ever. But do as you like. /RANT

  24. Peering vs net neutrality on FCC Chairman Will Reportedly Revise Broadband Proposal · · Score: 3, Interesting

    It dawned on me how they could work a fast lane within net neutrality rules. They don't even need to change anything.

    It goes like this: Hey, we're douchebags and like to bleed our customers dry for slow Internet. We do this by overselling our transit capacity. But, if you want our customers to be able to use your service, our peering prices are $100/MB/month.

    That's why Level 3 Wants To Make Peering a Net Neutrality Issue I guess. But should peering be a net neutrality issue? On the Internet, different pathways have different speeds. Your LAN and ISP network are usually a lot faster than general Internet access, and nobody said Netflix can't pay a premium to plug straight into your LAN.

    In Romania you get gigabit links within RDS - a nationwide ISP, and if you run Linux, you're in luck because they peer with RoEdu (the Romanian education network), who mirror a lot of stuff, and that peer is fast as lightning if RDS is your provider. But mirrors who are in the country but not peered get Internet speeds - which are still faster than what I generally get in the UK mind.

  25. Like TV licensing vans on UK ISPs To Send Non-Threatening Letters To Pirates · · Score: 2

    If piracy is actually a problem, this may be as effective as the TV detection vans they (used to?) have roaming around, supposedly able to detect if you're watching live TV without paying the TV licence (which makes you a criminal in the UK). Apparently the high tech of those vans is... a list of people who don't have a licence. Nobody knows if they have a remote listening device like in spy movies that they point at your window, and apparently they don't even bother sending the vans out these days - they just tell you they do, and it's just as effective.

    Using that logic, just the appearance of threats can get most people to comply with the law, or demands from the law that you don't have to comply with (like in "can I search your car please?"). Since an IP address doesn't identify a person, that's pretty much all they can do: send educational material, which makes people think "we are watching you", which makes them subscribe to Netflix and give up on 0-day TV shows (freshly ripped off the air).

    I'd like to see "piracy" and "loss" numbers a year after people start getting these letters. My belief is that the piracy numbers will go down, but the revenue of content creators will not follow suit.