read image from url

R

Richard Bos

Alf P. Steinbach said:
* Martin Ambuhl:

Who says he _wants_ to? He has never seemed able to stop himself, but I
haven't seen evidence that this is intentional.
A "jacob" that recommends an LCC solution, /could/ that be Jacob Navia?

Gosh, would it?
Assuming it is, this group is great fun. It would be like someone
over in clc++ calling Bjarne Stroustrup an idiot.

No... the difference is that Stroustrup is _not_ an idiot. I may not
agree with some fundamental decisions he made in C++, but the way he
made them indicates that he isn't stupid, he just doesn't share my
opinions - big surprise there. Jacob, OTOH...

Richard
 
M

Murali Krishna

That's a lengthy discussion with no particular reason.

What is there in saying C/C++ and C or C++? I don't want to start an
argument. If you can understand what other's want to say, that's
enough. You are brilliant.

I think Frederick is with the person who started the thread. Funniest
thing is that he is asking Fred to go away.

-- Murali Krishna
 
K

Kenny McCormack

That's a lengthy discussion with no particular reason.

What is there in saying C/C++ and C or C++? I don't want to start an
argument. If you can understand what other's want to say, that's
enough. You are brilliant.

There is something about the phrase "C/C++" that marks the speaker as
not being a hacker - as being a marketing-oriented person.

And that galls the regulars (and rightly so!)

I really think that's the core of the issue. It's certainly not the
case that these supposedly smart, so called "regulars" don't understand
what you mean when you say it.
I think Frederick is with the person who started the thread. Funniest
thing is that he is asking Fred to go away.

I think the "go away" stuff is an artifact of the cross-posting.
I see that now this is just clc and clc++, but I think (and I could be
wrong) that originally, it was spammed^Wposted to a whole bunch of
groups - and that always leads to a fragmented and weird discussion path.
 
S

santosh

Murali Krishna wrote:
.... snip ...
What is there in saying C/C++ and C or C++?

Nothing, though some people will find exception to either forms of
usage. Admittedly each group has valid points in support of their
usage.

Many posters have explained the subtle incompatibilities between
conformant C99 and C++ programs. More importantly both the langauges
are slowly but surely diverging in terms of areas of applicability,
library support and syntax. Also the programming methods encouraged by
the langauges are different. Their binary interfaces are different.

All this means that though mixing C and C++ code is perfectly allright,
one should be aware of the small differences between these languages,
which makes them, in a very real sense, seperate langauges, (though
they are obviously very closely related also), and not blindly follow
the trend to throw out the label C/C++.
I don't want to start an
argument. If you can understand what other's want to say, that's
enough. You are brilliant.

You can understand what others say only when there is a set of
standardised terms and meanings, not when everyone start to slightly
modify them to suit their own intents.
 
J

jacob

Martin said:
Thus, "jacob" proves only that he does not know enough to have an
informed opinion.



First tell me, "jacob", is there a reason you want to appear an idiot?

When there are no longer any *arguments* left, people that do not know
any better have only insults.

The (well documented) differences between C and C++ are minor.
Some stuff requires a cast in C++ and do not require one in
C (the void pointer problem) and similar details. I would accept
somebody disagreeing with this, it is a matter of opinion what
"minor" is anyway.

What I find disgusting are the people that are unable to support
any disagreement even in the slightest terms, and immediately
start insulting other discussion participants with "idiot",
"imbecile" and other stuff.

This people are NOT representative of this group nor of the
majority of C users.

jacob
 
A

Andrew Poelstra

Excuse me but the differences between C/C++ are like american
english and UK english, if you take out C++ extensions.

Why be pedantic man?

It is OBVIOUS TO MOST PEOPLE (besides the pedantic ones) what the
original poster wanted.

A: I want a solution in Perl/Awk.
B: What?
A: Perl/Awk. It's what my compiler supports.
B: Those are completely separate languages.
A: I mean the common subset of Perl and Awk!
B: That's not very useful; it's like, two functions.
A: Don't you know anything about UNIX? Stop being such a pedant.
....

And that's this entire conversation, except that A and B are both
several people.

The quickest answer to the OP's question is: Not in standard C, but
in the Navia compiler, if you really want to stoop to that level.
 
A

Andrew Poelstra

A: I want a solution in Perl/Awk.
B: What?
A: Perl/Awk. It's what my compiler supports.
B: Those are completely separate languages.
A: I mean the common subset of Perl and Awk!
B: That's not very useful; it's like, two functions.
A: Don't you know anything about UNIX? Stop being such a pedant.
...

And that's this entire conversation, except that A and B are both
several people.

The quickest answer to the OP's question is: Not in standard C, but
in the Navia compiler, if you really want to stoop to that level.

Before someone attacks me, I know that neither perl nor awk are compiled
languages. I also know that capitalizing them that way all the time
makes me look like a marketing guy. (I'm not, and normally I don't.)
 
F

Frederick Gotham

Martin Ambuhl posted:
You may or may not know C; you may or may not know C++. The above
proves that you do not know both, however. Until you do, please stick
to whichever one you *do* know and post only to its newsgroup.


How about I disregard everything you say -- yes, I like that.
 
K

Kenny McCormack

... snip ...

Please quote the post to which you're replying. Not all readers of
Usenet can have easy or permanent access to previous posts and without
context, your reply makes little sense. If you're using Google Groups
then read the following URLs for more information on how to do it.

<http://cfaj.freeshell.org/google/>
<http://www.safalra.com/special/googlegroupsreply/>

Here are some more useful URLs for navigating these turbulent waters:

http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/C_programming_language
 
K

Kenny McCormack

Andrew Poelstra said:
A: I want a solution in Perl/Awk.
B: What?
A: Perl/Awk. It's what my compiler supports.
B: Those are completely separate languages.
A: I mean the common subset of Perl and Awk!
B: That's not very useful; it's like, two functions.
A: Don't you know anything about UNIX? Stop being such a pedant.

Actually, a lot of people do write things like awk/perl/python/sed
and consider them all pretty much the same thing.

Which they are, when viewed from a certain perspective (that is, without
knowing much about any of them).

So, your ironic/sarcastic (heh heh) example is not as far fetched as you
might have thought.
 
M

Mark McIntyre

Ian Collins posted:



The 5 consecutive characters, "C/C++", refer to "C or C++".

No. All too often they refer to "C and C++" as though the two were
near synonyms, and they reflect a lack of understanding on the part of
the poster that the two languages are significantly different.

Try the same construct with two different languages, and see if it
still makes sense.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
M

Mark McIntyre

Martin Ambuhl posted:



I program in both languages, and I know where they differ -- and the
differences are minor, *very* minor.

This is about as wrong as its possible to be, and still be in the same
plane of reality.
Here's some examples of extended features which C++ provides over C:

(1) References
(2) Classes
(3) Templates

You missed out about a thousand other features in C++ but not in C,
and a similar host in C but not in C++.
Here you portray yourself as rude, obnoxious, and downright stupid -- but
to what end?

Perhaps because you're showing remarkably little evidence of actually
thinking. Come on, you surely know better than this, C and C++ are
very different.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
M

Mark McIntyre

How about I disregard everything you say -- yes, I like that.

Smart move.

Welcome to the killfile of about half the regulars here.

The rest will be watching specially for your posts, so they can
correct the schoolboy errors.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
M

Mark McIntyre

When there are no longer any *arguments* left, people that do not know
any better have only insults.

Actually, it was probably because you made an idiotic remark. The fix
is probably to avoid emitting asinine comments, like these...

The (well documented) differences between C and C++ are minor.
Some stuff requires a cast in C++ and do not require one in
C (the void pointer problem) and similar details.

Not to mention different keywords, different sizes of some objects,
different handling of recursion, exception handling, different IO
routines, different memory management routines, different fundamental
types, and so on.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
M

Mark McIntyre

Hi, can anyone point me a library that can read image to memory from a
URL? It is very easy in Java, but it is hard to find an complete
solution in c/c++.

Take a look at the code for "wget".

Heck, you can even use it directly.
system("wget someurl");
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
K

Kai-Uwe Bux

Mark said:
Actually, it was probably because you made an idiotic remark. The fix
is probably to avoid emitting asinine comments, like these...

I would conjecture that it was because Martin Ambuhl and you ignored the
clause "if you take out C++ extensions". That phrase is a little vague and
requires interpretation. However, vagueness does not provide a license to
ignore the phrase completely and pretend the poster did not know about the
differences between C and C++.

Not to mention different keywords,

Which ones (when you take out C++ extensions)?
different sizes of some objects,

ok. However, that applies to different implementation of the same language,
too: many sizes are underspecified by the standards.
different handling of recursion,

could you elaborate on this one
exception handling,

Isn't that a C++ extension?
different IO routines,

The stream IO, I would consider an extension. What are the huge (not minor)
differences between C and C++ with regard to the printf family?
different memory management routines,

new/delete is an extension. What are the big differences in malloc/free
between C and C++?
different fundamental types,
ok.

and so on.



Best

Kai-Uwe Bux
 
F

Frederick Gotham

Mark McIntyre posted:
Smart move.

Welcome to the killfile of about half the regulars here.


If by "half the regulars" you mean "half the regular trolls", then the
figure might be accurate.

As for you, you make minimal contribution to this group, both in terms of
programming prowess, and in terms of social interaction.

If the participants in the group were to vote, such a vote would
overwhelmingly convey that I make a greater contribution than you.

And at the end of the day, you're an imbecile.

The rest will be watching specially for your posts, so they can
correct the schoolboy errors.


I welcome it.

And while we're on the topic of "schoolboy errors", "specially" and
"especially" are two different words.
 
F

Frederick Gotham

Mark McIntyre posted:

Perhaps because you're showing remarkably little evidence of actually
thinking. Come on, you surely know better than this, C and C++ are
very different.


C and C++ are extremely similar -- more similar than humans and orangutans.

That's my viewpoint and it's not about to change.

I've no interest in interacting with you any further, Mark.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top