Rashakil Fol 978 Super Senior Demiposter Team Colleague

It looks like a zip file; why don't you just post the flow chart?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

csc is not in your path. Add the directory in which csc lives to your PATH environment variable.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

awk '{ system("kill " $2) }'

Rashakil Fol 978 Super Senior Demiposter Team Colleague

If you're going to make a blog, why would you make one on Daniweb, as opposed to some other blogsite or your own site?

There is no reason for people to do this. I would focus more towards tutorials done in a wiki-like fashion.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Nobody cares.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You're acting completely ignorantly of the people who could answer your question.

WaltP commented: What are you talking about -3
Rashakil Fol 978 Super Senior Demiposter Team Colleague

C++ is higher-level than Java, in that it has a more flexible type system and can make abstractions that Java cannot. On the other hand, Java has garbage collection.

The truth is, Java sucks, horribly. Java is pretty much as crappy as a language can be. But it has garbage collection, which makes it better than C++, but much worse than pretty much every other language. Scala, a language that compiles to the JVM, is indisputably better than Java.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Pass in to the function in class A a delegate or object that constructs class B.

abstract class A {
  public static void INeedToConstructSomeSubclass(Func<A> subclassDelegate, ...) {
    A blah = subclassDelegate();
    ...
  }
}

Then just call it with

A.INeedToConstructSomeSubclass(() => new B());

You'll need some way of communicating which subclass needs to be constructed -- and it's better and more typesafe to pass in a function than something that uses reflection.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

There's nothing insane about writing a parser.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Why don't you read Wikipedia? It has clear answers.

And how is it all different to developers ?

What does this even mean?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

1. What is your title?
"Software Engineer"
2. What are your responsibilities?
Anything that has to do with writing code, designing code, fixing code, and figuring out bugs exhibited at customers, that were caused by our code. And some occasional interviewing.
3. What kinds of skills do you need to perform your job?
Thinking, mostly. Some typing.
4. Describe what you do during a typical day.
Read code reviews, think about what code to write, and write code. And summarizing the code I wrote.
5. What other jobs have you held that might have helped prepare you for this position?
Other programming jobs.
6. Do you have people who work for you, and what do they do?
No.
7. What is one of the most challenging things about the work you do?
Tracking side effects in a horribly designed code base.
8. What time management tips could you suggest?
{}
9. How do you balance your family, job, work, and leisure time?
My job time and work time are well-balanced.
10. What advice would you give to someone interested in this career?
Write as much code as you can and do it in a diversity of programming languages.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Look up the way GL_LINE_LOOP is supposed to work and then look at your code.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I don't know what makes you think there's a "proper" way to think recursively.

But as the other poster said, thinking recursively means reasoning based on an assumption about the net effects of your function's recursive calls. And an example was given too.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You're talking about the most boring part of science ever, scientific research posters. There's no hope for student engagement.

Really you should just do them a favor and make the presentation as short and concise as you can.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

For a complete answer, you need to provide a better description of what you're trying to do. What do you mean by "share"? If you just want a function to be visible, make it public. If you want multiple classes to see the same variable, the proper course of action depends on the circumstances.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Decompile it? Yes. Into something useful? No, unless they just want to figure out how it works.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

1. The hardware design.
2. The hardware design.
3. It's the reciprocal of #2.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

pdftex can make PDF documents.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Not many people admit they have done wrong and thus dont apologize....

There is nothing unethical about not following some silly posting format and no need to admit one has done anything "wrong".

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You can also write operator< , operator<= , etc.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

The IRC profanity filter has gone out of control.

<Rashakil> sss _ss
* DaniBot sets ban on *!*@dani-5F79DBC3.dyn.optonline.net
* You have been kicked from #DaniWeb by DaniBot (Watch your language!)
* Cannot join #daniweb (You are banned).

First of all, how is sss _ss profane? Second, why does it merit a ban, when using actual profanity merely gets you kicked?

Invisal got banned for sss _ss , too.

scru commented: Come join Kindowm and aid our protest! +3
Rashakil Fol 978 Super Senior Demiposter Team Colleague

Here's a rather neat solution that is relatively portable. It only reverses bytes though.

unsigned int reverse_bytes(unsigned int n) {

#if UINT_MAX > 4294967295

    n = ((n & 0xFFFFFFFF00000000) >> 32) | ((n & 0x00000000FFFFFFFF) << 32);

#endif

#if UINT_MAX > 65535

    n = ((n & 0xFFFF0000FFFF0000) >> 16) | ((n & 0x0000FFFF0000FFFF) << 16);

#endif

    n = ((n & 0xFF00FF00FF00FF00) >> 8) | ((n & 0x00FF00FF00FF00FF) << 8);
    n = ((n & 0xF0F0F0F0F0F0F0F0) >> 4) | ((n & 0x0F0F0F0F0F0F0F0F) << 4);

    return n;
}
Rashakil Fol 978 Super Senior Demiposter Team Colleague

The title says it all.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yeah, it can be used for more than just textual input and textual output. You can do lame graphics without it being a big deal. But you are generally limited by the fact that the language and environment are 20 years out of date. You'd be better off using an easier and more powerful language such as Python.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I don't know if anybody here happens to be familiar with "Borland C++ 5.0 Client" applications (assuming "Client" is capitalized as part of the proper name for this sort of thing).

I am unsure, though, what you mean by the "Perl GET method". What does Perl have to do with GET? "GET" is a part of the HTTP protocol. If I remember correctly, for a simple transaction, you send the string "GET /path/to/file.html HTTP/1.1\r\nHOST www.example.com\r\n" . Then the server responds with headers and maybe a blank line and file. I'm not sure and don't care to look this up; I haven't written an HTTP client in a while, you see :).

Could you give a link to this sample, or paste its code, and explain what you find uncomfortable about that?

Yours Truly,
######

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Although I'm not for the idea, I like to think that there are other ways of "forcing" people to vote.

You don't have to harm people physically in order to get them to do what you want.

No, it comes down to violence no matter what. Either you entice people to vote with the money you stole from them through taxes, or you punish people through fines. And if they rightfully refuse to pay the fines, they get arrested or their property confiscated.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Forcing people to vote means violently attacking the people who didn't vote. These people will be violently attacked without having committed any misdeed upon others. That is evil, and so is the desire to force others to conform to your personal lifestyle choices.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

technically it's neither undefined nor infinity, but approaches infinity asymptotically.

Nonsense. The function is not defined at the point pi/2.

Infinity in that regard is actually well defined in terms of Aleph 0.

This is complete, unforgivable nonsense. One 'infinity' is a point that extends the number line, while aleph 0 is the cardinality of the set of integers.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Josh had to ask me on the IRC channel before jumping on this. I like how he used radians to look smarter.

tan(x) certainly tends to infinity as x tends to 90 degrees from below. However, it tends to negative infinity from values above 90 degrees. In some circumstances it might be convenient to consider tan(90 degrees) to equal infinity (and to consider tan(-90 degrees) to equal negative infinity).

joshSCH commented: don't be such a douche -2
Infarction commented: :D +6
Rashakil Fol 978 Super Senior Demiposter Team Colleague

I'll get right on it. It'll take me a couple of days, so I should be done on Thursday. Post your email address, and I'll send it to you.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Erratic Genius

iamthwee commented: That doesn't translate to samuel hughes? -2
Rashakil Fol 978 Super Senior Demiposter Team Colleague

I don't understand what the problem is. Do you understand the words you are using in the sentences you've written?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

In Scheme, a combination (a lambda), is a function call: local values are bound to an expression which is evaluated for value. That value then replaces the local context. Please keep in mind that this is a functional operation --hence the term functional languages.

Well, yeah. I agree with calling functions (when used functionally in Scheme) functions. And calling procedures (when used procedurally, with side effects) procedures.

Of course, Scheme isn't really a functional language. :-) </haskell troll>

I don't understand why you have "(a lambda)" there, saying that a 'lambda (expression?)' is a synonym for the term 'combination', though.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

How much money? 2 hours = $400.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Put printfs up all over the place and track down the bug. It is hard and tedious to track down what you are doing here, especially when you haven't posted the class definition. (For example, what is 'maxSize'? If it's what I think it is, the name doesn't make sense. Why would your array have a maximum size (that's an unnecessary restriction :P) and don't you want _the_ size of the array, not some size it could theoretically attain? I guess you might just have a fixed size array, in which case a renaming of the variable would be in order.)

I think you meant to initialize bufferIndex to 0, not to first1. Other than that (and other than my general bitchiness) your code is well-written and very clear. Then again, you messed up the code tags... tsk tsk!

Rashakil Fol 978 Super Senior Demiposter Team Colleague

By the way, you should have posted this in the C forum. There is nothing specific to C++ in this thread.

No, the C++ forum is appropriate; he is using C++, not C. If he posted in the C forum people would be wondering why 'cout' is in his code.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

There are no procedures in scheme, only functions.

There are no functions in Scheme, only procedures. That is, the word used in the R5RS specification (and probably R6RS, but I haven't read that) is "procedure". That's why there is a procedure named procedure? in Scheme, and no procedure named function? .

However, your help to the OP is stellar.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I wouldn't say it's 6-dimensional. What does dimension even mean in this context? You have pairs of three-dimensional points.

What do you mean by 'gradient'? Do you know what you mean? The term 'gradient' generally refers to functions that map values in R^n into R (where R is the set of real numbers, R^n the set of n-tuples of real numbers). For functions that map value in R^3 into R^3 (which your set of points represents?) there is no such thing as the 'gradient'. There is however, the generalization of the gradient, known as the Jacobian (which is more like a generalization of the derivative of a single-variable function). You'd get a 3x3 matrix for the Jacobian of a function f : R^3 -> R^3.

So is your set of points a set of gradients of some other implicit function? Or is it a function of which you want to take the Jacobian? You seem to be unclear about what you want.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Take a look at the kd-tree and octree datastructures on Wikipedia. I think a kd-tree or octree would work for you. I'm assuming you have randomly scattered pairs of points, not some lattice of calculated values. (Which do you have?)

Be more clear in your description. First of all, why would you have trouble representing your gradient? It's a triple of real numbers. I don't know what language you're using, but this is easy to do.

As for calculating the gradient, I take it you mean you want to interpolate. Search for interpolation methods online. If linear interpolation is sufficient, you'd want to find the four nearest neighbors and use them to get a linear function of gradient w.r.t. position. (It's just solving a linear system of equations.) If you need some other kind of interpolation (approximating second derivatives, etc), I don't really know anything about those methods (I could make up a few on the spot that would work, but wouldn't be ideal), but if you told me what you were thinking, I could tell you if it makes sense.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Generally speaking, it seems to me like the level of discussion at most websites as they grow is monotonically decreasing. And there's nothing you can do about it. Also, the people who joined X months ago are always likely to be displeased, because X months ago, the site was the best site they could find for their purposes, so any change in the community is probably going to disappoint them. This is known as the regression effect; it's the same reason that people getting 97 or higher on their first exam are more likely to have a lower score on their second exam. The only way to avoid lowering the value of the site for any segment of the community is to prevent any changes, to prevent the growth of the website. Don't do that.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

So, by now it seems like C++ will be the futures programming language.

I don't mean to reply rudely, but C++ is a terrible programming language, a complete mess. It will not be the future's programming language. Just look at it. And look at other languages. And consider which are better for communicating with the computer.

But what do you think of the future of programming languages??
Will it be easier and better for the user to use it and handle it?

I think the goodness of a programming language depends on several things. One is the ability to prove properties about your code. This implies the machine-assisted ability to control the things your code can do, and throw errors otherwise. I can think of many programming language features which focus on this goal, such as const modifiers, strong typing, static typing, dependent typing, and other keywords with various meanings. Sometimes you want these features, and sometimes you don't, and the level at which you exploit these features depends on the needs of the software you're writing. It also depends on how much these features get in the way. Another thing, more important to me, is the ability to communicate your algorithms efficiently. I can only think of one programming language which really shows serious progress in improving the clarity of communication. Another important thing, it seems to me, is the ability to manage and manipulate libraries and exploit common algebraic structures. The object models employed by various …

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You should use 'name' for forms because that has universal support by browsers.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I've noticed they like to play smart and put down others (rather severely too) to feel that way.

No... I just have a visceral reaction to pseudo-scientific statements that have no grounding in fact.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

PLEASE do research before posting, will you? After a few quick google searches I found:
http://en.wikipedia.org/wiki/Recollection
http://en.wikipedia.org/wiki/Memory
http://homepage.mac.com/dtrapp/essays/memory.html

Oh yeah, like Wikipedia and some random homepage is a reliable source... or anybody. Go on. Keep repeating what others say and pretending that you're an expert.

joshSCH commented: Troy burned to the ground! -2
Rashakil Fol 978 Super Senior Demiposter Team Colleague

I vote discman.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

The problem is that our long-term permanent memories are serial, like recording tape. The problem isn't that you can't remember something, but the rewindatory gap. That's the time it tales to find and retrieve the memory.

My memory can take 24 hours to complete a search cycle.

What the heck are you talking about? This is the most compressed load of balognial B.S. I have ever read in my life. It takes no longer to remember something that you've learned at one age than another; the freshness of a memory depends more on the emotional importance of it to you. Case in point: I remember my trip to the zoo from when I was six month old. I remember the experience of throwing a golf ball through one of my school's windows in second grade. I can't remember anything that happened in September, except for one trip I made. There's no "rewind cycle". Do you just make this stuff up? Your comments are a worse instantiation of arbitrarity than the drivel spewn by literature professors.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I guess I would like to clarify by saying, yes, of course it's possible. But no, I don't know how to do it through some easy configuration that I feel like explaining. (And I don't know why anybody would want to do it.)

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yes

Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's even harder when you realize that some functions like sqrt aren't even monotonic in some standard libraries.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Read it as if the * sticks to the type name, not the function name.