in Ruby I can write (0..5).to_a in Python I can write range(0,5) in Scheme I have to write:
and
How is 'do' any more obscure than '(0..5).to_a'. What the hell does the latter even mean?
(0..5)
defines a range,
.to_a
is a method call (Ruby is an OO language) that converts the range to an array and returns it. If I would want to let it print the numbers I could write:
Now ok, this might simply be a taste issue, but I find the way in which I can write those map/sort stuff in Ruby much more natural and easier to read then in functional languages, since in Ruby everything is in the natural order, things you do first are left, things you do later on the right, while in Scheme everything is the other way around. This especially becomes an issue with longer chains, add to that Schemes () syntax and you end up with something that isn't really all that
As you say, you could also do #(0 1 2 3 4 5). Also in languages like C/C++ or Java you have to do something equivalent to what you have to do in Scheme, and if you were doing it a lot in any of them, you would write a function to make it about as simple as in Ruby or Python. In Ruby or Python, there are a lot of nice shortcuts like this built in.
Second, about the ()s, are they really that much worse than (0..5).map{|i| -i*i}.sort.each{|i| puts i}? In there you have the (a..b) range notation, procedure calls via '.', and two closures with {...} enclosing the body and |...| enclosing the arguments.
Third, if you were using (display x) (newline) a lot, you should really (define println (lambda (x) (display x) (newline)), which simplifies the scheme examples to:
Which (ignoring the need to define the whole list outright) is not really any worse than the Ruby.
Finally, about the inside-to-out instead of left-to-right, its definitely different and it definitely requires a time of adjusting. I'm not sure whether I think its worse or not.
In Gnome 2.16 (and thus in Edgy Eft), there's a button to the left of the path list which brings up the location entry. Far more obvious.
That is much better then.
Not sure what your problem is with automatic completion - when it completes a path for you it selects the text it's added, so if you keep on typing your text will replace the added text. To type the next path segment you have to hit the right arrow or the End key.
Sometimes it does that. Sometimes it doesn't - I just checked in firefox->Open, and it did that when I typed/usr/, but when I typed b, it completed to bin/ without selecting it. This may be a bug fixed in later versions though, I'm not sure if my gtk/gnome/gnomeui libs are up to date.
First of all, its not very obvious.
Second, while you can do that, typing a path is painful due to automatic completion of file/pathnames. I never know how many letters of a path I have to type before it completes and I am forced to start typing the next path segment. Its a really good way to stick yourself three directories down the wrong path if you type quickly. While there may well be a way to turn this off, I have no clue where it might be.
As the Americans learned so painfully in Earth's final century, free flow of information is the only safeguard against tyranny. The once-chained people whose leaders at last lose their grip on information flow will soon burst with freedom and vitality, but the free nation gradually constricting its grip on public discourse has begun its rapid slide into despotism. Beware of he who would deny you access to information, for in his heart he dreams himself your master.
--Commissioner Pravin Lal
"U.N. Declaration of Rights"
(I haven't done any numbers or looked at them, so this is all just my guesses)
Over a thousand years, nothing, over 100k maybe the earth's rotation (or would it be the moon's orbital period?, or would the earth just become tidally locked too?) would slow/speed up a bit. Basically, the masses are so small compared to the earth's that even on a thousand year timescale, the effect would be next to nothing. It would have an effect, but I think it would be insignificant
With java you have to be a bit clearer about what you mean. If it was to go all GPL-style code then the JRE and SDK programs should be GPL, but the standard libraries should be LGPL. So if they GPLed the compiler and runtime, no problem, if they GPL the library, they're crazy.
Yes, but (as many have said) others have contributed to the kernel, and they didn't give their copyrights to Linus. Since all of this was licenced under the GPLv2 without the "or any later version" clause, it cannot be updated to v3
Yes, but in a way so is the rest of the GPL - if you want to distribute software that uses a GPLed library (or is based on GPLed software), you must distribute your source with it. It therefore restricts the "right" to distribute a binary in favor of the consumer/user's "right" to modify the code for their own use. The idea behind the modification being that you can then use the modified (and presumably better for your purpose) software. I believe that the idea behind the this restriction in GPL3 is to prevent people from making hardware that only run signed versions of the code. Running only signed versions means that even if you (the user) have the code, its useless to you if you can't run your modified version.
Of course, if the demo at the Boston museum of science is correct, although it would work, it would also make it impossible to hear anything (not to mention waste tons of power).
Hmm, memory leakiness yes, but I've never had instability under Linux except occasionally with excessive Flash (which is easily fixed by using one of the click-to-play extensions).
Or from say DELL when buying a computer? My old computer came with a maroon colored WinXP CD. Didn't have an OEM installer though. I don't recall if it came with a "manual" - any windows maanual that came with the software probably got tossed/lost as utterly useless long ago. Now they don't even give you a CD - just a sheet of paper with a picture of a CD on it saying that you don't need a CD because your hard disk has a rescue partition. (needless to say that was the last DELL I bought).
Are you saying you *like* GTK's open dialog? At least under linux it doesn't have any place you can type something in unless you hit / or ctrl-l - and then it autocompletes excessively so you can't type quickly and it takes a good bit scanning large directories like/usr/bin, during which you can't type a filename. Give me KDE's any day.
The restrictions are on the government, and they apply anywhere the government acts
Unfortunately this is not true, at least according to the Supreme Court. Furthermore, this is not new - it goes back to the early 20th century, when the Supreme Court ruled that the constitution does not apply everywhere. Of course it would be nice if the SC would go and change its mind about this...
Oddly enough, the one time I've had to reactivate (I'd added and then removed a network card), the support people didn't ask any real questions, just asked what I did before it asked to be activated, and then read off the numbers. (annoyingly they required me to read off the install id twice - once to the automated system, once to the real person)
Sometimes, I think the only reason they seem so generous in re-activating these licenses is because they've outsourced their call centers to other countries, and the people doing the phone support are trained in a real basic way. I doubt they even understand enough English to make their own determination of whether or not my requested use for the Windows activation is legal or not.
Definitely, although I suspect if you were too obvious they would catch on.
The problem with this is what if you lose access to your old account before you get access to the new one? Yeah, you shouldn't let this happen, but they have to keep this in mind. You could of course then switch to snail mail to confirm somehow.
Thats fine but what at least one of them was doing was selling edited DVD's for $10 without checking to see if they had an original.
So, its resale. I personally see no problem with this, but I don't know whether it is legal or not.
Not to mention that they only way they could even break even by doing this is to make multiple copies from one original. It looks alot like a piracy operation for those who don't like naughty bits in films.
Now this is more of a problem.
However, the teacher does not have the legal right to distribute the paper - which is what they are doing by putting it in the database.
As you say, you could also do #(0 1 2 3 4 5). Also in languages like C/C++ or Java you have to do something equivalent to what you have to do in Scheme, and if you were doing it a lot in any of them, you would write a function to make it about as simple as in Ruby or Python. In Ruby or Python, there are a lot of nice shortcuts like this built in.
Second, about the ()s, are they really that much worse than (0..5).map{|i| -i*i}.sort.each{|i| puts i}? In there you have the (a..b) range notation, procedure calls via '.', and two closures with {...} enclosing the body and |...| enclosing the arguments.
Third, if you were using (display x) (newline) a lot, you should really (define println (lambda (x) (display x) (newline)), which simplifies the scheme examples to:
Which (ignoring the need to define the whole list outright) is not really any worse than the Ruby.
Finally, about the inside-to-out instead of left-to-right, its definitely different and it definitely requires a time of adjusting. I'm not sure whether I think its worse or not.
[even trivial tasks like a for-loop you have to either code yourself or rely on non-portable extensions]
Umm, lots of stuff yes, for loop, no. R5RS specifies the syntax do, which is basically a for loop. For example
(do ((vec (make-vector 5))
(i 0 (+ i 1)))
((= i 5) vec)
(vector-set! vec i i))
Produces #(0 1 2 3 4) and is equivalent to
int[] arr = new int[5];
for(int i = 0; i !=5; i++){
arr[i]=i;
}
return arr;
Also, this is java, so if you have access to the proprietary binaries as a jar you can probably decompile the code and see if it looks like your code.
First of all, its not very obvious. Second, while you can do that, typing a path is painful due to automatic completion of file/pathnames. I never know how many letters of a path I have to type before it completes and I am forced to start typing the next path segment. Its a really good way to stick yourself three directories down the wrong path if you type quickly. While there may well be a way to turn this off, I have no clue where it might be.
(I haven't done any numbers or looked at them, so this is all just my guesses)
Over a thousand years, nothing, over 100k maybe the earth's rotation (or would it be the moon's orbital period?, or would the earth just become tidally locked too?) would slow/speed up a bit. Basically, the masses are so small compared to the earth's that even on a thousand year timescale, the effect would be next to nothing. It would have an effect, but I think it would be insignificant
With java you have to be a bit clearer about what you mean. If it was to go all GPL-style code then the JRE and SDK programs should be GPL, but the standard libraries should be LGPL. So if they GPLed the compiler and runtime, no problem, if they GPL the library, they're crazy.
Which one was that? I use dosbox and it works with everything I've tried it on, mostly master of orion 1 and master of magic.
Yes, but (as many have said) others have contributed to the kernel, and they didn't give their copyrights to Linus. Since all of this was licenced under the GPLv2 without the "or any later version" clause, it cannot be updated to v3
Actually, I saw it listed as Myanmar in my textbook last year (although it had Burma in parens)
Of course, if the demo at the Boston museum of science is correct, although it would work, it would also make it impossible to hear anything (not to mention waste tons of power).
Hmm, memory leakiness yes, but I've never had instability under Linux except occasionally with excessive Flash (which is easily fixed by using one of the click-to-play extensions).
Or from say DELL when buying a computer? My old computer came with a maroon colored WinXP CD. Didn't have an OEM installer though. I don't recall if it came with a "manual" - any windows maanual that came with the software probably got tossed/lost as utterly useless long ago. Now they don't even give you a CD - just a sheet of paper with a picture of a CD on it saying that you don't need a CD because your hard disk has a rescue partition. (needless to say that was the last DELL I bought).
Because the hardware vendors are (one assumes) writing software for their devices that uses GPLed code.
Are you saying you *like* GTK's open dialog? At least under linux it doesn't have any place you can type something in unless you hit / or ctrl-l - and then it autocompletes excessively so you can't type quickly and it takes a good bit scanning large directories like /usr/bin, during which you can't type a filename. Give me KDE's any day.
Just change the emphasis on that last piece - this is really not a good thing.
Oddly enough, the one time I've had to reactivate (I'd added and then removed a network card), the support people didn't ask any real questions, just asked what I did before it asked to be activated, and then read off the numbers. (annoyingly they required me to read off the install id twice - once to the automated system, once to the real person)
Definitely, although I suspect if you were too obvious they would catch on.I believe Spazmania meant more emphasis on the "pretty much" than you read into it.
The problem with this is what if you lose access to your old account before you get access to the new one? Yeah, you shouldn't let this happen, but they have to keep this in mind. You could of course then switch to snail mail to confirm somehow.
Thats fine but what at least one of them was doing was selling edited DVD's for $10 without checking to see if they had an original.
So, its resale. I personally see no problem with this, but I don't know whether it is legal or not.
Not to mention that they only way they could even break even by doing this is to make multiple copies from one original. It looks alot like a piracy operation for those who don't like naughty bits in films.
Now this is more of a problem.