Rashakil Fol 978 Super Senior Demiposter Team Colleague

I have no idea what Hertfordshire is (but I could find out) but I certainly have no idea what "City" could possibly mean. "City"? Seriously? You need to learn how to write with the reader in mind.

whereas city has modules like e-commerce and graphics designing,

Those aren't computer science subjects.

Anyway, we can't decide things like this for you.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

An LL(k) language requires k tokens of lookahead to make a decision. How many do you need to decide what kind of expr you have?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

RPG? The best option is to commit seppuku and die honorably.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

O(1) or O(infinity), since C++ programs run in a finite amount of memory.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Use gcc for the compiler, use whatever editor (Emacs or vim) for the editor. Anjuta looks good but it's unnecessary.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

If you can't even pass the easier math course, I don't see how you could be any good at programming or computer science. From what I can tell of your few posts on this forum, you do not have the aptitude for either subject.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You probably don't really know whether you're good at math. So I'm not going to believe you when you say you're not very good at it. (Actually, I might believe that you're not very good, but I won't believe you if you say you're not good at it.)

Are you good at programming? That's basically the only question which tells whether you can handle a CS program. And that includes the math parts (which are quite elementary).

Rashakil Fol 978 Super Senior Demiposter Team Colleague

... to answer your question, home grew....but really, are you going to tell me there are no cons for OOP? because if that is the case, then there would be no need to develop anything on non-OOP languages.

I didn't say there are no cons, I said that there are no memory costs to OOP. For example, there are no memory costs to using C++, relative to C. In dynamic languages, there are no memory costs to having OOP, instead of plain old dynamic typing.

There are plenty of reasons to develop using non-OOP languages. OOP is nothing more than the use of runtime interfaces, and that is not an exciting feature, any reasonable language supports that. (To classify languages into "OOP languages" and "non-OOP languages" is demented.)

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yes. The same way you put anything into a function.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

The main disadvantage of OO modeling is that it implies a vastly inferior type system.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Um, yeah. *itemsArray is an AoE2Wide::DrsItem& , and inTables[q].Items is a std::vector<AoE2Wide::DrsItem>& .

You can't assign a DrsItem to a std::vector<DrsItem> .

That's what the error message said.

Edit: And then you're trying to read the Id field of a std::vector<DrsItem> ? Again that's what the error message says. A std::vector<T> does not have an Id field.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Memory limitations? What are you smoking? You're 100% wrong, there are no memory costs to OOP.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Environmental science is stupid.

Biology has the potential to be nothing but a souped up high school bio course, so you shouldn't take that.

Your reasons for not wanting to take chemistry are illogical, you don't need to know anything about chemistry to take a course in it. That's why they have titles like "Intro to Chemistry" or "Chemistry I".

Then there's physics, but you don't want to take that because it's probably too hard for you.

There, now I've found a way to be mindlessly insulting around every option. Now let's see what you should take.

You don't want to take environmental science. Seriously, who takes that? Wannabe-earth-liberators? It's like, "Oooh let's take science of the environment!" Wait no that .. ugh. It's just not hardcore enough. On the other hand, people will be like, "Oh, you took environmental science," and they won't think you're very smart, so they'll be comfortable talking to you like a normal person. It probably has a good gender ratio.

So then there's biology. Well I'm afraid biology is just a bunch of memorization. It doesn't really get fun until you watch the biology majors suffering through organic chemistry. I was forced to take biology in college and it ended up being a bunch of indoctrination about the theory of evolution. Which was very boring. However, biology has a better gender ratio than chemistry or physics, so there's that. But it's full of bitchy pre-meds, so if you're …

Rashakil Fol 978 Super Senior Demiposter Team Colleague

In reading data off of modern rotational platters.

In reasoning about cryptography.

In optimizing websites' sign-up rates.

In designing backup solutions.

In keeping distributed hash tables updated.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Speaking of worthless contrived examples, here's mine:

An O(n \log n) algorithm:

for (int i = 0, e = int(n * log(n)); i < e; ++i) {
    printf("ho ");
}

How illuminating!

all comparison-based sorting algorithms need at least O(n\log n) comparisons in order to complete the sort for most inputs.

This is not true at all. Comparison-based sorting algorithms need at least \Omega(n\log n) comparisons.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

If you want to target Windows, C#.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's clearly 1+1+1+k+1+k+1+k-1+1+99-99.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

1. Pick what you want to make a program about.

2. Write the program.

That's how you do it. Good luck.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

register it.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

CLRS is a good book.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

networking....
..........
.........................

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Slackware is the best, and anybody who uses Ubuntu is a scrub.

But let me tell you about my hardware.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yes.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

1. Learn Ruby or Python. Learn Perl 5.
2. Learn Scheme.
3. Learn Haskell.
4. Presumably you already know C++ or Java. Learn the other one. Then learn Scala.
5. To practice writing networking code, read the HTTP spec and make an HTTP proxy.
6. Never write cryptography code.
7. NEVER write cryptography code.
8. Write a toy scheme interpreter.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

CS graduates tend to move into either scientific computing (research) or mission critical areas of development, where mathematical abilities are more important than generic system awareness.

This is, of course, a complete distortion of reality.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

That's your job. You're supposed to figure it out. Start thinking.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

No.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Of course not. Who do you think you are?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What part do you need help with?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I get "illegal start expressions" and " ; expected" Could you tell me what I'm doing wrong? It looks right to me...

I missed that. Well you have more syntax errors than that. So you look at the parse error, find the location, and see that it looks okay. Armed with this knowledge you are, but you must take this knowledge to its logical conclusion. Since it looks okay to you and since the compiler is reporting an error, you know that either the compiler is wrong, or your knowledge of what looks okay is somehow corrupted. The compiler is going to be right, especially for simple languages like Java. That means your assessment of the code is wrong. No big deal, happens all the time. But why is it wrong? It looks so right. We see private string city; . What could be wrong with that? We know that you can declare variables at the beginning of the class. And we know that the syntax declaration for a variable can be of the form private <type name> <variable name>; . And we see that you spelled private correctly. And city is a valid variable name, since it's just a lowercase word, and certainly not some kind of keyword (but if you weren't sure, you could check). So could string be the culprit? Maybe. How could that be wrong, "string" seems perfectly okay. So now you go and investigate. Is "string" really okay? What if you made a smaller class …

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You have syntax errors and the error messages should make the problem quite clear.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yeah, learn Scala.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Here's one: "Sperm Whale Song Analysis"

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I hope you don't do business in an English-speaking country.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Please do.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Learn how to explain things.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

> Can it play movies that are on DVD?

Um, yes.


> What can Ubuntu do that MS-Windows can't (or doesn't) ?

Not suck? Hahaha, get it? Windows more like Win-DOZE, as in the button on the clock radio, m i rite? im funny

Ubuntu has a built-in package manager.

It also has, like, a working POSIX environment.

You can also use XMonad or some other tiling WM on it.

It also doesn't have three programs all trying to be the one that decides which WiFi channel you're on.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What kind of company does he want to work at?

> Anyways he doesn't have much programming experience besides C a long time ago

So he should get programming experience by writing some software. (He had 8 months to do it?) The exact specifics of what to do depend on what field he wants to work in.

> I suggested getting a truck driver job while preparing himself,

That would be really lonely.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

So, Griswolf, you're actually saying that I'm right - no qualitative advantages of a heap over a BST.

Huh? There are qualitative advantages -- if you're dying for better performance.

I guess your last riddle meant that size is important when transforming via slow medium like DB, networks etc. This makes lot of sense

That makes no sense at all, you can flatten a BST to a sorted array to transfer it over a network or to a DB.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's mostly a question of constant factor speed and memory allocation. A real fast heap implementation won't use the packed-in-array representation though, since that's not cache-friendly. Instead they'll use a tree of packed-in arrays. Either way, there's no need to worry about rebalancing or all the other ugly problems BSTs have.

The code is also a lot simpler, making your program fit more easily on a floppy disk.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

print 55

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Just rewrite that section of the program. It's only a couple hundred lines of code.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I think the idiot button would be preferable, especially if it sent the user a PM telling them that somebody (who gets to remain anonymous) marked them as an idiot, every time somebody does. Then, for users who have been marked as an idiot by 5 or more people, the next time they visit the site, they get goatsed.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What? No it can't. You're totally confused and I don't know where to begin except to say look at what the flyweight pattern is.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's theoretically possible. Suppose you learned programming on your own, studied some relevant computer science on your own, and then started an open source project that was awesome. You'd get hired for "an 80k" job. Heck, you'd get a lot more than 80k.

For example, suppose Slava Pestov (started jEdit when he was 14, later developed Factor) never went to college. No sane employer would turn down the opportunity to pay him $1XX,000 to develop software for them. That's because there's lots of evidence that he's an awesome developer.

But even then one might as well go to college and get a CS degree or a math degree or whatever.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Semantic quibbles are silly.

No, when you say wrong things, like "you don't give the certificate," then you're wrong. Deal with it. Making secure systems is hard enough without people wantonly guessing the meaning of terminology.

You give a public key that is associated with your private key. Who holds the private key is relevant only as to trust issues (it should be the sender or someone the sender fully trusts). How the receiver gets the public key is relevant to trust, but otherwise unimportant. Whether the whole message is encrypted or only a "signature" part is irrelevant.

It is relevant, because then you're doing different things. If you encrypt the message, then the message is secret. If you don't, then the message is not secret. What does that have to do with authentication? Nothing. Authentication is a different idea than encryption, and needs to be identified as such.

To be more specific: If the whole document is not encrypted, then the signature has to be "locked" by the private key and by the contents of the message. "Unlocking" the signature then verifies that the private key was owned by the actual sender and that the message has not been altered during its journey. If the whole document is encrypted, then the fact that the public key decrypts it is proof of both the sender's bona fides and that the message has been unaltered.

Nope. This is wrong, and it's talking about stuff that doesn't happen. One does …

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Where do people get the public key? You get it (possibly indirectly) from the sender. This does two things: First, it allows you to decrypt the signed document. Second, because it does allow you to decrypt, you know that it did indeed come from the sender who gave you the key.

Nobody said anything about encrypting the document.

Is it not insecure to give away my certificate to the recipient?. You don't give the certificate. You give a public key associated with it.

Uh, no, you give the public key certificate.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

If you got a programming job in the Army, what are your chance of getting a programming job that pays about 30k? 40k? 50k? or more?

Huh? Ask the Army how much they pay. If you got a programming job for 50k you'd be getting ripped off, at 30k you'd be getting really ripped off.

If you majored in a liberal arts major and then took a few programming courses in a prestigious university like University of Michigan - Ann Arbor, what is the chance of you getting a programming / software engineering job that pays 50k? (or more)

If I majored in a liberal arts major at Ann Arbor and took a few programming classes, I'd have no problem getting a development job that pays well more than 50k. But you? I have no idea. It depends on how smart you are.

Is it true that in programming job / SEng job you don't actually work 8 hours, but more like 6 hours and 2 hours of socializing?

No, it's more like you work 2 hours and spend 6 thinking about working.

If you just graduate with a liberal arts degree from a prestigious University like UMich without any programming classes, can you teach yourself programming and get certification online that you know how to program and then get hired to about 50k jobs?

Certifications are worthless and if you get them you'll only market yourself to worthless employers. Proving you know how to program is …

Ezzaral commented: Good points. +13
Rashakil Fol 978 Super Senior Demiposter Team Colleague

C++ is. It's complicated and subtle.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Ugh, Tango. Why are you using Tango?


> Currently I'm trying to send some text between a Client & Server script, Then execute the text in the native shell.

Haha, this is a terrible idea (in general).

> Slave.d(20): Error: function tango.stdc.stdlib.system (char*) does not match parameter types (uint)
Slave.d(20): Error: cannot implicitly convert expression (inco) of type uint to char*

Um, this is obviously saying that system's parameter should be a char*, not a uint.

Also, the system function expects a nul-terminated string.