Hacker Newsnew | past | comments | ask | show | jobs | submit | nlco's commentslogin

How do you set spotify to offline mode (without completely disabling wifi)?


You can't set spotify itself to offline except on the phone app. You can however set a specific playlist to offline mode which will 'sync' the music to your HDD and plays it from there.

[edit]: BTW, you can do this on all devices.


Salts are suppose to be considered public. For the most part, they are defenses against rainbow tables and to make an attacker have crack each password individually.


Exactly; Having a secret hash is just another example of futile security through obscurity. You want an attacker to be able to know as many parts of the puzzle as possible and still be thwarted.


Agreed, but an important part of the article was that even public salted md5 passwords are ineffective.


your code can be simplified a bit:

    function sleep_sort (inputs) {
      function child (number) {
        setTimeout(function () {console.log(number)}, Math.pow(2,number))
      }

      for (var i = 0; i < inputs.length; ++i)
        child(inputs[i])
    }

    sleep_sort(process.argv.slice(2));


That won't work for numbers < -5 and has a much longer worst case.


not quite, 48÷(2(9+3)) = 2, but 48÷2(9+3) = 288

to clarify: PEMDAS is the order of operations. so parenthesis first: 48÷2(9+3) = 48÷2(12) then multiplication and division (they have the same precedence): 48÷2(12) = 24*12 = 288

for another reference: http://www.google.com/search?q=48%C3%B72(9%2B3)


multiplication and division have the same precedence, and division (like most operations) is left-associative. For example, exponentiation is right-associative, so 2^3^2 = 2^9 = 512, not 64.


While you're technically correct, of the standard four half (+, *) are both left- and right-associative. / and - are the ones that are only left-associative.


Best bet is to replace x÷y by x*(1/y) as division is not commutative while multiplication is commutative. Therefore 48÷2(9+3) => 48(1/(2(9+3)) => 2


You've still failed to correctly apply associativity, unfortunately. You're treating 2(9+3) as a single unit, but ÷ appears before the implicit multiplication between 2 and (9+3) and so should get evaluated first. The division should get simplified first with its immediate operands, 48 and 2. This yields (48÷2) * (9+3).


It's funny, the top Google result for [juxtaposition precedence] is exactly this question, posted on the PhysicsForum boards. 2 is actually leading 288 by a hair there.

http://www.physicsforums.com/showthread.php?p=3235154

Anyway, the answer depends completely on whether you believe that multiplication by juxtaposition has the same precedence as multiplication by explicit symbol. There're good reasons to believe it doesn't, eg. the first post on that linked thread, but whatever the answer, it's entirely based on typographical convention. I don't work in the community that cares, so I don't really have an opinion, other than to point out it's not as cut-and-dried as virtually ever poster here believes.

In the community that I do work, people who write parsers, things like this have to be explicitly specified. That's why I maintain that the correct answer is "syntax error".


the real answer is that thw juxtaposition rules are made up on the spit by people trying to rationilze their incorrect answer . there is not and never had been a n "implit mulitplication" rule in the irder if operations.

sent frim my drunk phone


They did, however, cite sources (possibly made up almost on the spot), which is more than anyone on this thread has done.


48÷2(9+3) => 48(1/2)(9+3) => 288


Someone suggested to make an ed simulator in one of the "HTML5 History" abuses, so I went for it over the weekend. Decided I'd share it with you guys. (I never actually used ed since it was way before my time, so if there is anything that I implemented wrong, let me know)


How is it unsafe? (asking because I don't know, not to contradict)


One accidental command and every entry is lost, not just one entry or the most recent. Adding a "git commit journal.txt; git push offsite master" or something similar to your journal script will alleviate that risk.

Edit: you also don't have file timestamps to show when an entry was actually written, in case that matters to you.


Well as a college student who went on a 2 month coco pebble binge (and only ate that because of sheer laziness), I didn't feel significant effects on brain power. But it does trash your body and leaves you feeling lethargic and lose motivation to actually do anything productive. I think the latter effects are just as dangerous as reduced "brain effectiveness". (this is just my experience, certainly not any scientifically proven study)


> leaves you feeling lethargic and lose motivation to actually do anything productive.

That's "reduced brain effectiveness" too.


Wait... loss of motivation is outside of your brain? This and other intriguing ideas make me want to sign up for your mailing list.


it runs on node.js (a server side software), not a browser. So no need to worry about hijacking someones ip.


"Any group which sees gays, blacks, and women as fundamentally inferior loses its case for respect in my mind."

It's a good thing the LDS don't believe that. They have actively come out to defend against gay harassment. The injustice to blacks was fixed back when slavery was abolished. Men are taught to cherish and respect women, not that they are inferior. Stop your trolling.


As far as I'm concerned, in any country with a separation of church and state, any group that opposes the ability of gays to marry is no friend of the gay community. They may have made some token gestures, but that doesn't change their core thoughts on gays, which is that the way they are is unnatural, and must be fixed. As long as they see being gay as a disease, and not a natural tendency, they're homophobic.

Their scripture is still full of outright, undeniable racism, and they consider the Book of Mormon to be the word of God. That's all the proof I need. They may have eased back on public racism, but for them to disavow their religion's racism would be to disavow their church entirely.

Mormon men may be taught to respect women, but women are taught that they should more-or-less stay at home and make babies, and for most of the community, if a women gets past her early twenties and isn't a housewife, it's seen as a failure. I consider that sexism.


thats actually not what separation of church and state refers to. What it means is that no church is suppose to run the government, voters are allowed (and suppose to) vote according to their beliefs, including religion. And religions are allowed to have a stance on issues.

The rest sure, you can interpret it that way, but most mormons are very nice people. They don't take the scripture literally and is instead suppose to be symbolisms.

Actually only in the very beginning of the Book of Mormon is the dark skin used to identify "sinners". Later on, as in past the first 50 pages, skin color was a non-issue.

And finally, women can get past their 20s and be perfectly fine people. They can never marry and be normal people. LDS people do put a strong emphasis, if possible, on a traditional "stay home mom and working father", but that is not sexism.


grantheaslip, thank you for standing up for real morality; for "holding to the rod," as they teach the children in Primary to sing. The LDS general authorities hold to the rod of subterfuge and you hold to the rod of truth.

The LDS church is a devastating force of oppression to millions of people. Thank you for pointing it out for what it is. Thank you.


Please stop your own trolling - or should we just call it for what it is: lying.

Women are treated as inferiors in the LDS church. Polygamy would have continued for generations without the intervention of the federal government. The LDS church spends millions of dollars to support continued discrimination against gays.

Until 1978 blacks could not hold the priesthood in the LDS church. Some quotes from the "Book of Mormon": 2 Nephi 5:21-23:

"And he had caused the cursing to come upon them, yea, even a sore cursing, because of their iniquity. For behold, they had hardened their hearts against him, that they had become like unto a flint; wherefore, as they were white, and exceedingly fair and delightsome, that they might not be enticing unto my people the Lord God did cause a skin of blackness to come upon them."

"And thus saith the Lord God: I will cause that they shall be loathsome unto thy people, save they shall repent of their iniquities."

"And cursed shall be the seed of him that mixeth with their seed; for they shall be cursed even with the same cursing. And the Lord spake it, and it was done."

"And because of their cursing which was upon them they did become an idle people, full of mischief and subtlety, and did seek in the wilderness for beasts of prey."

3 Nephi 2:15 reads:

"And their curse was taken from them, and their skin became white like unto the Nephites."

Mormon leader ("Elder") Mark E Peterson:

"The reason that one would lose his blessings by marrying a Negro is due to the restriction placed upon them. 'No person having the least particle of Negro blood can hold the Priesthood' (Brigham Young). It does not matter if they are one-sixth Negro or one-hundred and sixth, the curse of no Priesthood is the same. If an individual who is entitled to the Priesthood marries a Negro, the Lord has decreed that only spirits who are not eligible for the Priesthood will come to that marriage as children. To intermarry with a Negro is to forfeit a 'Nation of Priesthood holders'...."

"If that Negro is faithful all his days, he can and will enter the celestial kingdom. He will go there as a servant, but he will get celestial glory."

Etc etc.

Notwithstanding the cowardly, brain-dead, head-in-the-sand intellectual compartmentalization others are advocating here, I doubt any of us would be commending the SEO efforts of other organizations that have the kind of sordid history and unfortunate social passions the LDS church has had...and isn't shy about paying for.


babalicious, you know those statements from the book of mormon are about Lamanites which are American Indians, right? Not Africans? Just checking to make sure you didn't read them out of context..


^ Oh look, a throwaway account. I wonder who created it :/


^Oh, look, someone incapable of presenting any argument of your own, to any of the points. I wonder why that is? ;


perhaps they are trying to counteract the inevitable backlash from the wikileaks story?


Somehow I doubt they had this plan "on standby" in case of some controversy.

On topic - This combined with the free year of a micro instance will allow you to put a proof of concept together for only the cost of your time.


Strictly speaking, the monitoring isn't essential to put a proof of concept together. It's nice, yes, but not essential.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: