Slashdot Mirror


User: Wrath0fb0b

Wrath0fb0b's activity in the archive.

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

Comments · 1,558

  1. Re:Need more mature languages on Python Is On the Rise, While PHP Falls (dice.com) · · Score: 2

    Python provides no true concurrency due to global interpreter lock. Java is not suitable for realtime due to unpredictable GC, while C/C++ is not suitable for anything which should never crash or return random results due to memory corruption.

    Python has multiprocessing for 'true concurrency' if you need it
    Java is not actually used for anything real-time
    C/C++ can be written safely if you are willing to be careful and unit-test (also managed memory with C++11/14 constructs helps the drudgery) with tools like ASAN and Valgrind.

    Yes, those are hard problems, but it's also 2015 and we can come up with powerful compilers and JIT virtual machines. Going back to less concurrency than plain old shell scripts where '&' starts a true separate process is not an answer.

    Good thing no one proposed that.

  2. Re:Often a small number of users /do/ use a ton .. on No Such Thing As 'Unlimited' Data (wired.com) · · Score: 1

    There are tradeoffs. For one, we were a cash-strapped small college and couldn't afford the kind of hardware to do deep packet inspection. The other is that a lot of encrypted bulk traffic (CrashPlan) is indistinguishable from high-priority traffic. It doesn't do to say that people moving large quantities of data over SSL or IPSEC should get a pass. Finally, we had serious privacy concerns with inspecting and tagging the content of internet traffic.

    In the end, the fatal blow (besides $$$) is that it's pretty damned obvious that if you moved >1GB in the last 15 minutes, you must be doing something that's not interactive. Schedule your bulk transfers for 3AM so they don't overlap

    PS. The car analogy doesn't work because we are not regulating traffic "on the highway", we are regulating the "on ramps". And we don't need to check to see whether a particular on-ramp is connected to something important like a police station -- we know that a on-ramp that's sending 100x the average traffic in the last 5 minutes is definitely not important.

    PPS. For us, perceptible latency kicked in around 75% congestion, not 95%. At 95% the system suffered complete congestive collapse to throughput. YMMV.

  3. Re:Often a small number of users /do/ use a ton .. on No Such Thing As 'Unlimited' Data (wired.com) · · Score: 1

    First of all, there are quote tags for a reason. Learn to use them.

    Second, by your definition every single service on planet earth is "oversold". There aren't enough roads and bridges for everyone to drive to the same place at the same time, nor would there be enough parking when they got there. There aren't enough ambulances or hospital beds or doctors for everyone to come to the same ER at the same time. There aren't enough phone circuits or available spectrum slots for everyone to make a call at the same time. There aren't enough planes for everyone to fly at the same time, or enough runways/taxiways/gates for all the planes that do exist to go to the same place at once. The supermarket will run out if everyone comes in at the same time trying to buy peanut butter too.

    All of these services continue to exist because, as it turns out, it's absurdly unlikely for everyone to want to use the same service at the same time. Instead they are tuned somewhere in between average and peak demand (planes probably towards the former, ERs towards the latter) and nowhere near the "100% use factor".

    What's more, no sane designer would have it otherwise. Roads that could handle everyone trying to drive the same direction at the same time would be dozens of lanes wide and go underutilized 99% of the time. If we wanted to ensure that everyone could fly at the same time, we would need 1000 times as many planes, and most of them would just sit on the ground all the time. A supermarket that stored enough peanut butter in case everyone in my town decided to buy a jar at the same time would end up storing (and throwing out) literally tons of peanut butter for no good reason.

  4. Re:Often a small number of users /do/ use a ton .. on No Such Thing As 'Unlimited' Data (wired.com) · · Score: 1

    If I pay for X Mb/s, then I am well within my rights to keep my pipe running at X Mb/s for every single second of my subscription. If my Internet provider knows it can't keep up, while taking my money, then that is stealing from me.

    Right, so in that alternate universe, why wouldn't the service provider come and say to you "You know what, you pay for X Mbps, but I can offer burst speeds of 50*X Mbps for you and 49 other neighbors, provided you agree to only use that max for an average of 1/50th of the total time. That "burst speed" would let you surf the web much faster, but if have any bulk non-interactive data transfer like OS patches/updates or large offsite backups, we require that you limit them to X Mbps."

    Why on earth wouldn't I take that deal?

  5. Re:Often a small number of users /do/ use a ton .. on No Such Thing As 'Unlimited' Data (wired.com) · · Score: 1

    It is not fair for those that use bandwidth responsibly to bear the increased costs of rolling out more infrastructure to support the top 2% of users.

    Nor does it make an engineering sense ... the problem is not the infrastructure if it meets 98% of users' needs.

  6. Often a small number of users /do/ use a ton ... on No Such Thing As 'Unlimited' Data (wired.com) · · Score: 5, Insightful

    We have no way of evaluating their claims that a small number of users who abused the system caused it to be unprofitable for them.

    Anecdote incoming, but when I helped out on college IT it was fairly consistent that the top 20% of users (well, network ports) were responsible for 80-90% of the usage. And further the top 2% (which was two dozen or so) were responsible for about 50-60% of the usage. This was pretty consistently the same few ports too -- not just that at any point the usage was skewed but that over time those users were using a ton. Since we didn't have a huge pipe to the internet, those super-users would, from time to time, really degrade everyone else's connection. That lead to the idea that we could mitigate this situation by a fair and objective set of rules:

    (1) No data "caps" -- we are not interested in aggregating data over long periods of time
    (2) A byte is a byte -- we are not interested in packet inspection, only counts
    (3) Traffic shaping only kicks in during actual congestion -- we are not interested in doing anything until service is actually degraded

    What we ended up doing was that when the pipe to the internet was 75% full or more, any user that over the last 15 minutes was in the top 20% of traffic and consuming more than 5x the average use for that time period would get shunted into the lowest QoS bucket. This classification continued until either the usage dropped or (most likely) the outbound pipe was no longer congested.

    What the fuck does this have to do with Comcast? Well, as much as I hate them I do have to admit that there is a plausible case for a small fraction of users degrading service for the rest of their paying customers (or necessitating costly upgrades that will be passed along to everyone). And they have implemented their congestion control in the most indefensible way I can imagine -- monthly caps cannot possibly solve the issue of overloading on short time-scales. So I'm left with the idea that, instead of sperging about "unlimited", the tech community actually try to be productive in endorsing a fair set of guidelines (maybe not at all like those above!) on how to manage networks to ensure that a minority of users don't degrade service for everyone. Not that Comcast doesn't deserve sperging of course ...

  7. Re:Linus is right only for people of his caliber.. on Linus Rants About C Programming Semantics (iu.edu) · · Score: 1

    Well, the specific behavior in this types of cases will/may depend on the hardware.

    Which is exactly why you should use a compiler intrinsic since it's their job to keep track of machine details.

    And in any case using a gnu version-specific intrinsic is probably not the best thing to do in general.

    They didn't use the gnu intrinsic, they macro'd it out into to resolve to an intrinsic where available. That's the best way to do it until all compilers get their act together and provide some form of "perform arithmetic and tell me if it overflows".

    This is the same way that all extensions are handled. Have AES_NI, you get some intrinsic, otherwise you go down a generic code path.

  8. Linus is right only for people of his caliber.... on Linus Rants About C Programming Semantics (iu.edu) · · Score: 5, Interesting

    Both in the technical sense and in the human sense.

    Technical: People at Linus' caliber understand exactly the rules for signed/unsigned integer promotion and where underflow is defined (as wrap) and where it's undefined[1]. Consequently he wrote perfectly-correct code for detecting the underflow and bailing out safely. Programmers at mere mortal levels of skill, however, routinely mess this up, often causing exploitable security bugs (believe me, I do code security audits as part of a real honest living). My advice for everyone (contra Linus!) is always always always use the compiler intrinsics for integer math. Feel free to decline this advice if you are a Linus level wizard (if you were, of course, you would already feel free to decline it) but if you have to wonder if you are, you probably aren't.

    Linus seems to think that the kernel should only be written by folks that don't need that kind of help -- and for that I won't argue with him. It's his baby and he can chose whether to have a small number of über-developers or a larger number of mortals. Which goes straight to the second point:

    Human: People at Linus' caliber thrive on negative feedback. At their level, positive feedback means nothing because there's nothing he can learn from someone praising his work. He wrote a kernel, he knows he's good. Meanwhile negative feedback is useful (unless trivially discountable): if the complaint is right, he'll correct something he was doing wrong; if the complaint is wrong, he'll be forced to think through why. In any event, he could never imagine why someone would sugar-coat their opinion on any matter.

    So it seems like his mode of communication is meant to answer that question for the former: he wants people of his caliber that don't write ugly code using arithmetic crutches and don't care about strongly worded criticism. There's nothing invalid about that either -- maybe it's true that the best model is that Linuses work in the kernel and the rest of us go up into userland where we use crutches like memory protection and higher-level constructs :-)

    [1] And when behavior is undefined, a smarter compiler can remove the code-path entirely -- the kernel itself was hit by such a bug where GCC legally removed a NULL check because the pointer was dereferenced before the check. See also this reference. Then there's the sad fact that people still argue against the clear language rules that say that assert( 100 + some_int > some_int ); can always be optimized away.

  9. Re:This isn't news on The Popular Over-The-Counter Cold Medicine That Science Says Doesn't Work (forbes.com) · · Score: 5, Insightful

    In the short term, existing gangs will move to other areas of criminality, which are less profitable (or else they would switch now). The reduced cash flow will also intensify competition (read: violence) in those endeavors.

    In the medium term, a few organizations will die out, the remainder will claim their new turf but with less wealth to spread around both for status (read: bling) and patronage (read: cheddar, philanthropy). There won't be much less crime here at this stage, but the organizations will be less able to buy loyalty (kinship).

    In the long term, the reduced status and patronage will mean fewer recruits and ultimately an equilibrium with less crime. But you are right, gangsters don't go into accounting. The difference comes from convincing kids to go into accounting instead of criminality, and to do that you've got to reduce the total revenue of the criminal organizations.

  10. Re:There's still the pollution thing on The Box That Built the Modern World · · Score: 1

    Dude! You reasoned back from (a) the lack of heat, (b) the knowledge that an electric dryer uses resistive heating, (c) how to operate a multimeter and (d) what an ohm is. And you did all this without an SOP or flow-chart style troubleshooting guide.

    That puts you well ahead of 90% of the button-mashers that use a dryer. Maybe even 95%.

    [ And yeah, the $70/hr covers lots of incidentals plus downtime waiting for jobs ]

  11. Re:There's still the pollution thing on The Box That Built the Modern World · · Score: 2

    When you say the repair was "under $60", you missed the $70/hour thing going rate for appliance repair labor.

    And if you are smart enough to understand and repair a washer "easily" then there are tons of more valuable things we could be paying you to do.

  12. Re:There's still the pollution thing on The Box That Built the Modern World · · Score: 4, Insightful

    So, while in theory the cost of these appliances and the world efficiency is improved with the model of cheap parts&labor from China. The reality is a lot of wasted time, shipping wrong replacement parts, and giving up and tossing out the old piece-o-crap to a landfill and buying something new.

    That conclusion is dependant on the value of your time (or a hired appliance repair dude @ $70/hr) looking up and understanding the schematic, deducing the cause of the failure, figuring out which part or parts need to be replaced and then doing the repair, adjusted for the probability of making a mistake anywhere in the process. Compare that with the number of engineer-hours required to design the thing, maintain the production lines and run the distribution apparatus (all of it) divided into the number of units produced. You might find that you just spent more time repairing your unit than was (amortized) spent on the entire rest of its lifetime ...

    I guess another way of saying this is that every good has an optimal level of reliability -- beyond which it costs less to regularly replace the failing units than to improve the process or to provide for repairs. We could probably build a washer (or a car, or a hard drive) that lasts longer than the ones we have today, but what would the point be if the TCO was actually higher? Unless you were running the Presidential Motorcade or going all Mad Max, would you buy a car that failed half as often if the TCO was $300/mo instead of $200/mo (and that's including cost of repairs plus your time and inconvenience to bring it to the shop already priced in)? Would Amazon buy more reliable hard drives for AWS (if they were on the market) or would they just buy the cheap ones and build in redundancy? Does my small business website need 99.99% uptime or is 99.9% sufficient? Will the business I lose in the 40 minutes per month difference make up the cost? We can always throw more money at any good/process to make it more reliable -- but there has to be some stopping point where we decide that the marginal gains no longer make sense.

    Another aspect to keep in mind is that doing things more reliably at global-scale means paying attention to all those nines. Just like getting from 99.9% uptime to 99.99% is going to cost more than each previous SLA, so to is the calculation for every input to the washer, plus the process/machinery that assembles it, plus the process/machinery that tests it. The acceptable marginal failure rate is going to scale against the marginal cost for increasing reliability.

    [ And interestingly enough, Speed Queen does specialize in super-simple super-reliable washers and dryers, largely for the commercial (coin-op) market where downtime is more expensive. If it means a lot to you for your washer, by all means pay more for one and rest easier. Last I checked, they were more than 3x the upfront cost though, meaning that even if your other washer breaks twice out of warranty and is totally unrepairable and you have to buy a new one, you're still ahead! ]

  13. Re:Said it before on Getting Over Getting Over Uber: Tim O'Reilly Does the Math · · Score: 1

    Wait, so requiring your employees to work for identical wages on Halloween, Thanksgiving, Christmas and New Years when they'd rather be at home with their families is just peachy? US labor law is embarrassingly behind on this -- those days are considered 'normal working days' and employers need not pay some form of overtime. Some employers voluntarily do the right thing (or close, maybe 1.5x isn't quite enough) but others -- including every taxi company on earth -- just schedule workers and tell them to show up for regular wages or find another job.

    Contrast that with working for Uber, where the employee doesn't have to clock in on New Years if she doesn't want -- but if she does the wage is at least 4-5x because of surge pricing. That's not capitalism breaking down, that's capitalism at its shining best! The worker is empowered to set the wage she demands and withhold her services if that wage isn't met.

  14. Re:Open Source != Freely Modifable on Why Cybersecurity Experts Want Open Source Routers (vice.com) · · Score: 1

    I mean, that would be great. But you have to explain to me how you are going to prevent some kid from "fixing" the ECU his car to get ten extra HP while spewing particulate matter into everyone's air.

  15. Open Source != Freely Modifable on Why Cybersecurity Experts Want Open Source Routers (vice.com) · · Score: 1

    There is no conflict between the two (sensible) requirements that:
            (A) The router's source code should be freely inspectable
    AND
            (B) The router should have strong technological measures to prevent users from using it in a way that violates the terms, for instance by transmitting on a band that is not licensed in that country.

    This is also a very good model for the automotive industry -- another place where there is laughable security that merits some real auditing, but at the same time it would be ridiculous to allow any kid with a $50 flasher to get a few more horsepower by emitting particulates that are known health risks.

    Certainly there is no technical reason that "I can view the source" must mean "I can modify and recompile the source and have the system accept the binary as authentic". TiVo (much to RMS' chagrin) adopted the model, as does Android (for some models, other's advertise open bootloaders, consumers chose between them).

    Admittedly, this won't satisfy the software-freedom purists, but at the same time we have to have some logical partitioning between a home computer (that you should control down tot he metal) and a computer that controls particulate emissions that harm others' health or a router firmware that can block others' usage of our shared airwaves.

    [ And to that point, it would be great if there was software partitioning such that I could tweak my car's systems but not the ECU portions that control emissions. Or modify the router's linux base to add features (disclosure:I do run DD-WRT actually, but not on a WiFi device) but lock the radio in such a fashion that I don't interfere with my neighbors' networks. There's certainly no technical reason this can't be accomplished. ]

  16. Re:Drunks don't make the best decisions on Live-Streaming Florida Woman Charged With Drunken Driving · · Score: 1

    They can wait, but they won't. You don't have the right to stall them while your lawyer shows up.

  17. Re:Drunks don't make the best decisions on Live-Streaming Florida Woman Charged With Drunken Driving · · Score: 2

    It absolutely falls under the 5A -- the issue is that your privilege to drive on the public roads will be suspended if you don't comply. You don't have to submit to the test, we don't have to let you drive.

    The worst possible outcome for the drunk driver is that is to refuse the test (triggering the suspension) and then the officers obtains a telephonic warrant for a blood draw. Then your screwed on both counts -- first on the refusal and then on the DUI. So refusal is a risky strategy...

    [ And, since this is /. and I have to explain: complying with a warrant is not voluntary. If the police knock on your door and ask to come in, you can say no. If they police knock on your door with a search warrant, you have to step aside. ]

  18. And what about the EPA for automobile firmware? on ESR On Why the FCC Shouldn't Lock Down Device Firmware (ibiblio.org) · · Score: 1

    Should I be allowed to modify[1] my (not even a VW!) car to increase my mileage/horsepower at the expense of polluting the air?

    In fact, given the sorry state of automotive security shouldn't we require automtive firmware engineers to build a reliable code-integrity protection as a condition for meeting their emissions standards?

    [1] No object to read-only access, excepting of course that the code is so awful that you'll surely find a security vulnerability leading to an exploit and then we are back to modification. That's hardly a reason not to allow read-only source access, only an observation on the fact that no one wrote this code for security.

  19. Isn't that what we asked for? on iOS Ad Blocker "Crystal" Will Let Companies Pay To Show You Ads · · Score: 2

    I thought we said we wanted adblock because there were too many ads using (pick any/all):
          [ ] Tracking cookies
          [ ] Pop-ups
          [ ] Pop-unders
          [ ] Click-throughs
          [ ] Flash or other auto-play media
          [ ] Obtrusive (mid-article) placement
          [ ] Annoying (blinking!) styling
          [ ] Malware (usually flash based)

    Of course companies do that because they have an incentive to do so. Now a company is saying -- hey, we'll give you an incentive to use unobtrusive ads -- they'll actually reach more people (including the much sought-after millennials who use adblockers the most). And we're upset that the incentive will align towards them?

    I mean, if you point was to fuck the advertisers -- sure. But say that upfront, don't gripe about the method and then get all upset when someone tries to devise a scheme for reasonable ads.

  20. Re:Finally on Phone Passwords Protected By 5th Amendment, Says Federal Court · · Score: 2

    Tough for the prosecutors but this is a flash of some sense.

    Be careful what you wish for. Because if it becomes precedent that technologically-protected documents can't be subpoenaed than the first people to take advantage of this will be large corporations trying to cover their own asses. You know, something like "Oh, we can't give you the emails between the VW ECU engineers and their managers, they are PGP-encrypted (with a key that each employee spins on their first day) and we can't make them turn over the passwords for their key". Or, like in this case, insider traders.

    I think there needs to be the right balance between the right not to self incriminate and the obligation to turn over material documents (including electronic) when properly subpoenaed and in a process designed to minimize disclosure of non-responsive documents. There has never been protection for non-testimonial disclosure of documents, samples and the like.

  21. Re:Nail everyone? on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 5, Interesting

    Yeah. I would not be too surprised if at some level in the organization this was sold as a debugging or trouble shooting measure, or some other benign reason was given for branching on detection of emissions tests.

    Folks, you have to branch on emissions (and dyno) tests in the ECU solely because otherwise the safety side of things will bring everything to a halt. The most obvious reason (assume FWD) is that if the front wheels are going 65MPH and the rear wheels are going 0MPH, the traction control system is going to have a major freak out and say "HOLY CRAP WE ARE SKIDDING OUT OF CONTROL BRAKE FRONT UNTIL THE DIFFERENCE IS LESSENED". The procedure to enter dyno mode is not itself a secret.

    So it's not a secret and it's not illegal for the ECU to detect and behave differently during the test, and everyone would know about this above-board feature. The secret-and-illegal part is modifying the behavior of things measured by the test while the test is running. That is a lot easier to keep secret and requires a lot less involvement from teams directly outside the module that is responsible for emissions.

    [ Source: Tuner people that dyno fancy cars and have to solve these sort of issues. ]

  22. Re:Can someone explain? on The WWII-Era Inspired Plane Giving the F-35 a Run For Its Money · · Score: 1

    Because the Air Force brass hates the Close Air Support (CAS) mission. It's partly a cultural thing - they want to fight wars where airpower is preeminent, where they take the starring role. They don't want to spend their time playing support to the Army/etc (despite the fact that it's been proven, time and again, that this is largely how you win wars - hitting infrastructure etc helps, but does not by itself win the war). They've been trying to kill off the A-10 for years, too, and only failing because the Army loves it, though they've managed to push it off to the Air National Guard.

    No, Air Superiority does not itself win wars. But if there's a large-scale shooting war between real powers, failure to control the air will definitely prevent you from winning. In that light, I wouldn't say they hate the CAS job, only that they rank it as less mission-critical than establishing superiority in the air, or at the very least denying it to the enemy. That makes some sense -- it would be foolish to optimize the Air Force for CAS/low-intensity-warfare only to be vaporized by the Chinese or the Russians in an (admittedly unlikely) worst-case scenario -- it might be lower probability than Afghanistan but it's also much higher stakes.

    That said, I think just about everyone can agree that (a) CAS should be elsewhere than the USAF and (b) The F35 sucks.

  23. Re:Hard to defend against you say? on Apple Cleaning Up App Store After Its First Major Attack · · Score: 4, Informative

    The usual method of getting developers to install a backdoored version of an IDE is to make them think they are downloading the legit one. Infect their computers, MITM them. The NSA/GCHQ have many ways to do that, and few developers bother to check file signatures (do Apple even offer them?)

    Not only does they offer signatures, but the infected version of xCode will be refused by default unless you modify the default Gatekeeper setting. This is all the more ridiculous because you don't even need to register to download the legit xCode directly from Apple. And of course it's protected in transit by SSL.

    Not sure what your FUD is.

    [ Yeah, maybe GCHQ is clever enough to infect xCode and still pass Gatekeeper. But this case shows you don't really have to be that smart -- just tell users "you must click here to run this software" and they'll do it, even if that means disabling security checks. ]

  24. Where you stand depends on where you sit ... on Technology Colonialism · · Score: 2

    /. Monday: Microsoft and Apple are refusing to go along with government demands for data based on a court order. Conclusion: the government is repressive (or at least reactionary), those laws are unjust, and the companies resisting them are brave and noble. They have every right to challenge and resist those governments.

    /. Friday: Companies that think they are peers of democratically elected governments are a form of unaccountable imperialism making decisions for people with no accountability. They have no right to challenge or supplant those governments.

    Make up your damned minds people.

  25. Re:Hardware Access on Android Lollipop Can Be Hacked With Very Long Password · · Score: 2

    Yeah, if you have hardware access to a device you own it. Nothing new to see.

    That's actually not true on iOS where the unlock code actually forms part of the master key from which filesystem keys are derived. So hardware access without the unlock code nets you nothing. Of course, with a 4-digit code it's only a few days to try all 10000 of them, but users can a complex passcode with sufficient entropy to make brute force impractical.