@kos back to that EOF thing . . .So I booted up freebsd VM and to my biiiiiig surprise . . .printf("%c",EOF) doesn't produce -1 ! While on Linux same thing produces -1 . . .the macro value prints in Linux but not BSD . In fact #define TEST 1 also leads to nothing
@kos Yes, good point - "assembly" is typically used to refer to the textual representation of the instructions and "binary" is used for the actual bytes fed into the CPU.
@kos and they are pain to code . . . the while loop to count to ten, took us like 20 minutes to design in microcontrollers class, while in C it's like . . . .#include<stdion.h> void main(){int i=0; for(i;i<=10;i++) printf("%d",i)l }
The thing that confused me about processor optimizations was predictive branching and precomputation during spare cycles to skip cycles. It blew my mind.
MZ ÿÿ ¸ @ è º ´ Í!¸LÍ!This program cannot be run in DOS mode.
$ –¸t«ÒÙøÒÙøÒÙøÖGøÙÙøÒÙø¦ÙøõgøÃÙøõwøŒÙøõ`øÓÙøõtøéÙøõføÓÙøõbøÓÙøRichÒÙø PE L …€J à ! @ P ?w P @ ° Ãu @ ð? Á „7 P € H À (/ @ l .text ±? @ `.data d- P D @ À.rsrc € V @ …
Oh, I dislike that so much ! Writing coding exams on paper. In CS 1 which is basically java, we had 3 exams, all of them were by hand, write full program, from import statements to the closing brackets . . .
@Serg So you're using an AMD CPU? However that looks like some sort of GCC signature (though honestly I have no idea what it does, just a stab in the dark)
@kos the last part is a signature, yes, because it shows gcc version, but first part should be identical, like you said, because apparently Intel and AMD share a lot in common as far as instructions go :)
Side note - I'm gonna try to compile some code on raspberry, see what it's assembly looks like . . .I have some of it in the books, but . . . you know, the real stuff is always the stuff . . . or something like that . . .
Im brand new to Linux in general, ive only been using it a few days, and I keep getting a huge amount of 404 errors when running sudo apt-get update here are some examples
Err http://security.ubuntu.com oneiric-security/universe i386 Packages 404 Not Found [IP: 91.189.88.152 80]
Ign htt...
well, the worst is installing on shutdown - configure on startup, at least ubuntu does it's thing in the background and you can run the app while upgrading
Given the fact the the "Safe harbor" for Europn citizens' data in US is now illegal in Europe I want to disable the Orwellian NSA created so called Security Enable Linux (read: Orwellian Surveillance Software). How do I do it in my Lubuntu?
Suppose I am limited to use C++ by the environment in the project. Is it good to prevent the use of some language features that C++ has but Java doesn't have (e.g.: multiple inheritance, operator overriding)?
I think the reasons are:
If Java doesn't provide a feature that C++ has, it means tha...
Guys, the "downvote" button is not for saying "No". Especially because the OP's arguments are flawed, he deserves IMHO an answer telling him why. — Doc Brown19 hours ago
No, downvotes are for bad questions.
A question littered with false premises isn't a very good question, IMHO.
"You may be asked to convert the code to Java some day" - Has anyone ever been asked to do this to a commerical product? Follow up question: How long and how hard did you laugh? — Nathan Cooper15 hours ago
LOL.
If you want Java, use Java. If you use C++, use C++, not some horrible, twisted imitation of Java with C++ syntax. Using C++ but restricting yourself to Java's feature set gives you the worst of both worlds. — Jerry Coffin9 hours ago
> "If Java doesn't provide a feature that C++ has, it means that the feature is not good, so we should prevent using it." > Yes, any feature not present in Java is anathema on the hard drive. It must be burned from your code base. Those who do not obey will be scrounged, their souls used to placate the RAID gods.
> "When in doubt, write code for the least competent member of your team. Code is read far more often than it is written, and code that is as clever as you can write is too clever to read. Code reviews that your front desk staff won't understand should be rejected. To help, teach them how to program in visual basic 2.0 over the weekend, then emulate their coding style in whatever language you are using."
By any chance has anyone ever tried to forcefully trigger the sky blue popup that shows up upon a downvote for low-rep users on the site? I'm at a loss to even find the relevant code in the source.
Yeah, there's a sky blue popup which shows up upon a downvote (for users with rep < 1K I think) which goes along the lines of "Please consider explaining what's wrong with the post ..." etc
I sshed to amazon ec2 running ubuntu and ran `#!/bin/bash python -u twitter_script.py > output.txt &`. Now `ps` shows the python process. I exit the ssh connection from terminal and then log in again. Now `ps` no longer shows the python process. Though it is running as `output.txt` is getting updated.