read image from url | | |
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++.
Thanks, | | | | re: read image from url quickcur@yahoo.com wrote: Quote:
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++.
>
Maybe because the mythical language of C/C++ doesn't exit?
You will have to find yourself an HTTP library in your preferred language.
--
Ian Collins. | | | | re: read image from url
Ian Collins posted: Quote: quickcur@yahoo.com wrote: Quote:
>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++.
>>
Maybe because the mythical language of C/C++ doesn't exit?
The 5 consecutive characters, "C/C++", refer to "C or C++".
If I were to write a program which didn't use the extended features which
C++ provides over C, then I'd call it a C program.
Makes me think of how race car manufacturers try to get a "road
worthiness stamp" for their race vehicles; these vehicles are primarily
race vehicles, not road vehicles, but if they can get a road-worthiness
stamp for it aswell, then that's great!
If you start off writing a program with no intention of prohibiting
yourself from using C++ features, and still end up with a finished
product which doesn't use C++ features, then it's quite like setting out
to design a race car, and ending up with a car that's also road-worthy.
I compare the ability to "compile as C" with a "road worthiness stamp" --
it's the icing on the cake!
I *never* hesitate to use C++ features, (and I actually use them quite
often), but if I did some day produce a program which didn't use any C++
features at all, I'd consider going back through it and changing
everything to C.
If you're after versatility, it's better to have C code than C++ code.
--
Frederick Gotham | | | | re: read image from url
Frederick Gotham wrote: Quote:
Ian Collins posted:
> Quote: quickcur@yahoo.com wrote: Quote:
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++.
>
Maybe because the mythical language of C/C++ doesn't exit?
>
>
The 5 consecutive characters, "C/C++", refer to "C or C++".
>
If I were to write a program which didn't use the extended features which
C++ provides over C, then I'd call it a C program.
>
Makes me think of how race car manufacturers try to get a "road
worthiness stamp" for their race vehicles; these vehicles are primarily
race vehicles, not road vehicles, but if they can get a road-worthiness
stamp for it aswell, then that's great!
>
If you start off writing a program with no intention of prohibiting
yourself from using C++ features, and still end up with a finished
product which doesn't use C++ features, then it's quite like setting out
to design a race car, and ending up with a car that's also road-worthy.
>
I compare the ability to "compile as C" with a "road worthiness stamp" --
it's the icing on the cake!
>
I *never* hesitate to use C++ features, (and I actually use them quite
often), but if I did some day produce a program which didn't use any C++
features at all, I'd consider going back through it and changing
everything to C.
>
If you're after versatility, it's better to have C code than C++ code.
>
>
--
>
Frederick Gotham
Do we a favor and go away | | | | re: read image from url
Frederick Gotham wrote: Quote:
The 5 consecutive characters, "C/C++", refer to "C or C++".
To you, perhaps. You have a second private language, which you think is
English, in addition to your first private language, "C/C++", which
means nothing. Proof of that is in your next scribbling: Quote:
>
If I were to write a program which didn't use the extended features which
C++ provides over C, then I'd call it a C program.
You can call it a C program, but you'd be wrong. You can call it
"Fortran" or "Lisp", which don't use the "extended features which C++
provides," but you would probably be wrong then. C and C++ differ at a
level more fundamental than whatever you think the "extended features
which C++ provides over C" are. Quote:
Makes me think of how race car manufacturers try to get a "road
worthiness stamp" for their race vehicles; these vehicles are primarily
race vehicles, not road vehicles, but if they can get a road-worthiness
stamp for it aswell, then that's great!
The above was wrong in the first three words. You don't think, so
nothing could have made you do so. | | | | re: read image from url quickcur@yahoo.com posted: Quote:
Do we a favor and go away
Here let me give you a lesson in English:
When the 1st person plural pronoun appears as the subject of the
sentence, its form is "us", rather than "we".
Unless of course "we" was a typo for "me"... ?
I'll pack my bags straight away -- please accept my sincerest apologies for
intruding on your territory. I shall sit in a poorly lit room drinking
Bourbon for the rest of my days, contemplating why I ever intruded on the
territory of an illiterate, pretentious imbecile.
--
Frederick Gotham | | | | re: read image from url
Martin Ambuhl posted: Quote:
Frederick Gotham wrote:
> Quote:
>The 5 consecutive characters, "C/C++", refer to "C or C++".
>
To you, perhaps. You have a second private language, which you think
is English, in addition to your first private language, "C/C++", which
means nothing.
If I say:
I want to ride to the market on a horse or a donkey.
Am I implying that there's such a creature as a "horse or donkey"?
How about you demonstrate some intellect? Quote:
C and C++ differ at a level more fundamental than whatever you think
the "extended features which C++ provides over C" are.
I program in both languages, and I know where they differ -- and the
differences are minor, *very* minor.
Here's some examples of extended features which C++ provides over C:
(1) References
(2) Classes
(3) Templates Quote: Quote:
>Makes me think of how race car manufacturers try to get a "road
>worthiness stamp" for their race vehicles; these vehicles are
>primarily race vehicles, not road vehicles, but if they can get a
>road-worthiness stamp for it aswell, then that's great!
>
The above was wrong in the first three words. You don't think, so
nothing could have made you do so.
Here you portray yourself as rude, obnoxious, and downright stupid -- but
to what end? You post here because you want to post here, but yet you
insult your audience, thus destroying any chance of enjoyable discussion.
Perhaps you should join a cult or go through some sort of phase... "find
yourself" and all that.
--
Frederick Gotham | | | | re: read image from url
Frederick Gotham wrote: Quote:
Martin Ambuhl posted:
>
> Quote:
>>Frederick Gotham wrote:
>>
>> Quote:
>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>
>>To you, perhaps. You have a second private language, which you think
>>is English, in addition to your first private language, "C/C++", which
>>means nothing.
>
>
>
If I say:
>
I want to ride to the market on a horse or a donkey.
>
Shouldn't that be on a horse/donkey? See how silly it looks.
--
Ian Collins. | | | | re: read image from url
<quickcur@yahoo.comwrote Quote:
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++.
>
Unfortunately the standard library doesn't provide any functions to read in
images, nor any support for networking code.
Writing a JPEG or GIF decoder from scratch is non-trivial.
However it is likely that something exists for your platform, if you look
hard enough.
--
Buy my book 12 Common Atheist Arguments (refuted)
$1.25 download or $7.20 paper, available www.lulu.com/bgy1mm | | | | re: read image from url
Once again, please go away.
Frederick Gotham wrote: Quote: quickcur@yahoo.com posted:
>
> Quote:
Do we a favor and go away
>
>
Here let me give you a lesson in English:
When the 1st person plural pronoun appears as the subject of the
sentence, its form is "us", rather than "we".
>
Unless of course "we" was a typo for "me"... ?
>
>
I'll pack my bags straight away -- please accept my sincerest apologies for
intruding on your territory. I shall sit in a poorly lit room drinking
Bourbon for the rest of my days, contemplating why I ever intruded on the
territory of an illiterate, pretentious imbecile.
>
>
--
>
Frederick Gotham
| | | | re: read image from url
"Malcolm" <regniztar@btinternet.comwrites: Quote:
><quickcur@yahoo.comwrote Quote:
>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++.
If the OP is still listening, and needs their faith in
newsgroups restored, you may like to look at the libcurl library
( http://curl.haxx.se/) for reading data from URLs and, possibly, the GD
library ( http://www.boutell.com/gd/) for processing some image formats.
--
Chris. | | | | re: read image from url
On Tue, 04 Jul 2006 14:22:07 +1200, Ian Collins <ian-news@hotmail.com>
wrote: Quote:
>Frederick Gotham wrote: Quote:
>Martin Ambuhl posted:
>>
>> Quote:
>>>Frederick Gotham wrote:
>>>
>>>
>>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>
>>>To you, perhaps. You have a second private language, which you think
>>>is English, in addition to your first private language, "C/C++", which
>>>means nothing.
>>
>>
>>
>If I say:
>>
> I want to ride to the market on a horse or a donkey.
>>
>Shouldn't that be on a horse/donkey? See how silly it looks.
Probably. Probably not.
Google finds about 62 million hits for "C/C++", whereas only about 56
thousand for "horse/donkey". Orders of magnitude in popularity suggest
that the former may have reached a star status, which might mean that
it will receive a spot in an upcoming revision of a popular
dictionary. The definition might well specify "C or C++".
Reasonable people should understand when my help text states that my
application runs on "Windows 95/98/ME/NT/2K/XP". The same people may
well think of a cross-breed or mutation when they come across the term
"horse/donkey".
--
jay | | | | re: read image from url quickcur@yahoo.com wrote: Quote:
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++.
>
Thanks,
>
If you use lcc-win32 you can use:
geturl(char *url,char *localfileName); http://www.cs.virginia.edu/~lcc-win32 | | | | re: read image from url
Please do not think that all people in this
group are like that guy.
jacob | | | | re: read image from url
Martin Ambuhl wrote: Quote:
Frederick Gotham wrote:
> Quote:
>The 5 consecutive characters, "C/C++", refer to "C or C++".
>
>
To you, perhaps. You have a second private language, which you think is
English, in addition to your first private language, "C/C++", which
means nothing. Proof of that is in your next scribbling:
>
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. Quote: Quote:
>>
>If I were to write a program which didn't use the extended features
>which C++ provides over C, then I'd call it a C program.
>
>
You can call it a C program, but you'd be wrong. You can call it
"Fortran" or "Lisp", which don't use the "extended features which C++
provides," but you would probably be wrong then. C and C++ differ at a
level more fundamental than whatever you think the "extended features
which C++ provides over C" are.
>
Yes, like american and UK english. They differ at a fundamental
level. Quote: Quote:
>Makes me think of how race car manufacturers try to get a "road
>worthiness stamp" for their race vehicles; these vehicles are
>primarily race vehicles, not road vehicles, but if they can get a
>road-worthiness stamp for it aswell, then that's great!
>
>
The above was wrong in the first three words. You don't think, so
nothing could have made you do so.
And when you have no more arguments, a personal insult is always
ready. How easy is for you to insult people but how hard is to remain
calm when answering to you.
when answeri | | | | re: read image from url
Frederick Gotham wrote: Quote:
Ian Collins posted:
> Quote: quickcur@yahoo.com wrote: Quote:
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++.
>
Maybe because the mythical language of C/C++ doesn't exit?
>
>
The 5 consecutive characters, "C/C++", refer to "C or C++".
It could refer to that, or to the common subset of C and C++, or a mix
of C and C++ as accepted by some particular compiler (for example, C++
plus variable-length arrays), or maybe even something entirely
different. For example, if someone answers claiming to have found a
solution in c/c++, do you think the exact language is intentionally not
specified, or do you think it means the solution is both valid C and
valid C++ ? | | | | re: read image from url
Frederick Gotham wrote: Quote:
Martin Ambuhl posted:
Quote: Quote:
>C and C++ differ at a level more fundamental than whatever you think
>the "extended features which C++ provides over C" are.
>
>
I program in both languages, and I know where they differ -- and the
differences are minor, *very* minor.
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. | | | | re: read image from url
jacob wrote: Quote:
Martin Ambuhl wrote: Quote:
>Frederick Gotham wrote:
>> Quote:
>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>
>>
>To you, perhaps. You have a second private language, which you think
>is English, in addition to your first private language, "C/C++", which
>means nothing. Proof of that is in your next scribbling:
>>
>
Excuse me but the differences between C/C++ are like american
english and UK english, if you take out C++ extensions.
Thus, "jacob" proves only that he does not know enough to have an
informed opinion. Quote:
>
Why be pedantic man?
First tell me, "jacob", is there a reason you want to appear an idiot? | | | | re: read image from url
Martin Ambuhl wrote: Quote:
jacob wrote:
> Quote:
>Martin Ambuhl wrote:
>> Quote:
>>Frederick Gotham wrote:
>>>
>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>
>>>
>>>
>>To you, perhaps. You have a second private language, which you think
>>is English, in addition to your first private language, "C/C++",
>>which means nothing. Proof of that is in your next scribbling:
>>>
>>
>Excuse me but the differences between C/C++ are like american
>english and UK english, if you take out C++ extensions.
>
>
Thus, "jacob" proves only that he does not know enough to have an
informed opinion.
> Quote:
>>
>Why be pedantic man?
>
>
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 | | | | re: read image from url
* Martin Ambuhl: Quote:
jacob wrote: Quote:
>Martin Ambuhl wrote: Quote:
>>Frederick Gotham wrote:
>>>
>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>
>>>
>>To you, perhaps. You have a second private language, which you think
>>is English, in addition to your first private language, "C/C++",
>>which means nothing. Proof of that is in your next scribbling:
>>>
>>
>Excuse me but the differences between C/C++ are like american
>english and UK english, if you take out C++ extensions.
>
Thus, "jacob" proves only that he does not know enough to have an
informed opinion. Quote:
>>
>Why be pedantic man?
>
First tell me, "jacob", is there a reason you want to appear an idiot?
A "jacob" that recommends an LCC solution, /could/ that be Jacob Navia?
Assuming it is, this group is great fun. It would be like someone
over in clc++ calling Bjarne Stroustrup an idiot.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? | | | | re: read image from url
Martin Ambuhl wrote: Quote:
jacob wrote: Quote:
Martin Ambuhl wrote: Quote:
Frederick Gotham wrote:
>
>The 5 consecutive characters, "C/C++", refer to "C or C++".
>
>
To you, perhaps. You have a second private language, which you think
is English, in addition to your first private language, "C/C++", which
means nothing. Proof of that is in your next scribbling:
>
Excuse me but the differences between C/C++ are like american
english and UK english, if you take out C++ extensions.
>
Thus, "jacob" proves only that he does not know enough to have an
informed opinion. Quote:
Why be pedantic man?
>
First tell me, "jacob", is there a reason you want to appear an idiot?
perhaps a brand with a lower caffeine level is called for?
--
Nick Keighley | | | | re: read image from url
"Alf P. Steinbach" <alfps@start.nowrote: Quote:
* Martin Ambuhl: Quote:
jacob wrote: Quote:
Martin Ambuhl wrote:
>Frederick Gotham wrote:
>>
>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>
>To you, perhaps. You have a second private language, which you think
>is English, in addition to your first private language, "C/C++",
>which means nothing. Proof of that is in your next scribbling:
>
Excuse me but the differences between C/C++ are like american
english and UK english, if you take out C++ extensions.
Thus, "jacob" proves only that he does not know enough to have an
informed opinion. Quote:
>
Why be pedantic man?
First tell me, "jacob", is there a reason you want to appear an idiot?
Who says he _wants_ to? He has never seemed able to stop himself, but I
haven't seen evidence that this is intentional. Quote:
A "jacob" that recommends an LCC solution, /could/ that be Jacob Navia?
Gosh, would it? Quote:
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 | | | | re: read image from url
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 | | | | re: read image from url
In article <1152018193.643209.92580@75g2000cwc.googlegroups.c om>,
Murali Krishna <pmkrishna79@gmail.comwrote: Quote:
>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. Quote:
>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. | | | | re: read image from url
Murali Krishna wrote:
.... snip ... Quote:
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++. Quote:
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. | | | | re: read image from url
Murali Krishna wrote: Quote:
That's a lengthy discussion with no particular reason.
.... 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/> | | | | re: read image from url
On 2006-07-04, jacob <jacob@jacob.remcomp.frwrote: Quote:
Martin Ambuhl wrote: Quote:
>Frederick Gotham wrote:
>> Quote:
>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>
>>
>To you, perhaps. You have a second private language, which you think is
>English, in addition to your first private language, "C/C++", which
>means nothing. Proof of that is in your next scribbling:
>>
>
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.
--
Andrew Poelstra <http://www.wpsoftware.net/blog>
To email me, use "apoelstra" at the above address.
"You people hate mathematics." -- James Harris | | | | re: read image from url
On 2006-07-04, Andrew Poelstra <apoelstra@localhost.localdomainwrote: Quote:
On 2006-07-04, jacob <jacob@jacob.remcomp.frwrote: Quote:
>Martin Ambuhl wrote: Quote:
>>Frederick Gotham wrote:
>>>
>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>
>>>
>>To you, perhaps. You have a second private language, which you think is
>>English, in addition to your first private language, "C/C++", which
>>means nothing. Proof of that is in your next scribbling:
>>>
>>
>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.
>
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.)
--
Andrew Poelstra <http://www.wpsoftware.net/blog>
To email me, use "apoelstra" at the above address.
"You people hate mathematics." -- James Harris | | | | re: read image from url
Martin Ambuhl posted: Quote:
Frederick Gotham wrote: Quote:
>Martin Ambuhl posted:
> Quote: Quote:
>>C and C++ differ at a level more fundamental than whatever you think
>>the "extended features which C++ provides over C" are.
>>
>>
>I program in both languages, and I know where they differ -- and the
>differences are minor, *very* minor.
>
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.
--
Frederick Gotham | | | | re: read image from url
In article <1152019593.832797.54170@m79g2000cwm.googlegroups. com>,
santosh <santosh.k83@gmail.comwrote: Quote:
>Murali Krishna wrote: Quote:
>That's a lengthy discussion with no particular reason.
>... 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 | | | | re: read image from url
In article <slrneal04d.dvd.apoelstra@localhost.localdomain> ,
Andrew Poelstra <apoelstra@localhost.localdomainwrote:
.... Quote:
>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. | | | | re: read image from url
jaysome wrote: Quote:
Reasonable people should understand when my help text states that my
application runs on "Windows 95/98/ME/NT/2K/XP". The same people may
well think of a cross-breed or mutation when they come across the term
"horse/donkey".
Ah, but that's just it you see. "Windows 95/98/ME/NT/2K/XP" doesn't
mean 95 or 98 or ME etc. It means 95 and 98 and ME etc.
Brian | | | | re: read image from url
In article <4gvsdkF1p97jeU1@individual.net>,
Default User <defaultuserbr@yahoo.comwrote: Quote:
>jaysome wrote:
> Quote:
>Reasonable people should understand when my help text states that my
>application runs on "Windows 95/98/ME/NT/2K/XP". The same people may
>well think of a cross-breed or mutation when they come across the term
>"horse/donkey".
>
>Ah, but that's just it you see. "Windows 95/98/ME/NT/2K/XP" doesn't
>mean 95 or 98 or ME etc. It means 95 and 98 and ME etc.
That's a pretty dumb thing to say.
It most certainly does mean 95 or 98 or ME, or ...
Think about it. The user is not going to be running it under:
95 and 98 and ME etc.
now, is she? | | | | re: read image from url
On Tue, 04 Jul 2006 00:19:21 GMT, in comp.lang.c , Frederick Gotham
<fgothamNO@SPAM.comwrote: Quote:
>Ian Collins posted:
> Quote:
> quickcur@yahoo.com wrote: Quote:
>>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++.
>>>
>Maybe because the mythical language of C/C++ doesn't exit?
>
>
>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 | | | | re: read image from url
On Tue, 04 Jul 2006 02:12:51 GMT, in comp.lang.c , Frederick Gotham
<fgothamNO@SPAM.comwrote: Quote:
>Martin Ambuhl posted:
> Quote:
>C and C++ differ at a level more fundamental than whatever you think
>the "extended features which C++ provides over C" are.
>
>
>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. Quote:
>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++. Quote:
>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 | | | | re: read image from url
On Tue, 04 Jul 2006 15:25:34 GMT, in comp.lang.c , Frederick Gotham
<fgothamNO@SPAM.comwrote: Quote:
>
>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 | | | | re: read image from url
On Tue, 04 Jul 2006 15:39:37 +0200, in comp.lang.c , jacob
<jacob@jacob.remcomp.frwrote: Quote:
>Martin Ambuhl wrote: Quote:
>jacob wrote:
>> Quote:
>>Martin Ambuhl wrote:
>>>
>>>Frederick Gotham wrote:
>>>>
>>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>>
>>>>
>>>>
>>>To you, perhaps. You have a second private language, which you think
>>>is English, in addition to your first private language, "C/C++",
>>>which means nothing. Proof of that is in your next scribbling:
>>>>
>>>
>>Excuse me but the differences between C/C++ are like american
>>english and UK english, if you take out C++ extensions.
>>
>>
>Thus, "jacob" proves only that he does not know enough to have an
>informed opinion.
>> Quote:
>>>
>>Why be pedantic man?
>>
>>
>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.
Actually, it was probably because you made an idiotic remark. The fix
is probably to avoid emitting asinine comments, like these... Quote:
>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 | | | | re: read image from url
On 3 Jul 2006 16:30:05 -0700, in comp.lang.c , "quickcur@yahoo.com"
<quickcur@yahoo.comwrote: Quote:
>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 | | | | re: read image from url
Mark McIntyre wrote: Quote:
On Tue, 04 Jul 2006 15:39:37 +0200, in comp.lang.c , jacob
<jacob@jacob.remcomp.frwrote:
> Quote:
>>Martin Ambuhl wrote: Quote:
>>jacob wrote:
>>>
>>>Martin Ambuhl wrote:
>>>>
>>>>Frederick Gotham wrote:
>>>>>
>>>>>The 5 consecutive characters, "C/C++", refer to "C or C++".
>>>>>
>>>>>
>>>>>
>>>>To you, perhaps. You have a second private language, which you think
>>>>is English, in addition to your first private language, "C/C++",
>>>>which means nothing. Proof of that is in your next scribbling:
>>>>>
>>>>
>>>Excuse me but the differences between C/C++ are like american
>>>english and UK english, if you take out C++ extensions.
>>>
>>>
>>Thus, "jacob" proves only that he does not know enough to have an
>>informed opinion.
>>>
>>>>
>>>Why be pedantic man?
>>>
>>>
>>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.
>
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++. Quote: Quote:
>>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,
Which ones (when you take out C++ extensions)? Quote:
different sizes of some objects,
ok. However, that applies to different implementation of the same language,
too: many sizes are underspecified by the standards. Quote:
different handling of recursion,
could you elaborate on this one Quote:
exception handling,
Isn't that a C++ extension? Quote:
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? Quote:
different memory management routines,
new/delete is an extension. What are the big differences in malloc/free
between C and C++? Quote:
different fundamental types,
ok.
Best
Kai-Uwe Bux | | | | re: read image from url
In article <e8erub$isv$1@murdoch.acc.Virginia.EDU>,
Kai-Uwe Bux <jkherciueh@gmx.netwrote:
.... Quote:
>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++.
It does here. Stick around; you may grow to like it.
Useful clc-related links: http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/C_programming_language | | | | re: read image from url
Mark McIntyre wrote: Quote:
Frederick Gotham <fgothamNO@SPAM.comwrote: Quote:
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.
Note for killfilers: this is the same person as "JKop" and "Tomas". | | | | re: read image from url
Old Wolf said:
<snip> Quote:
Note for killfilers: this is the same person as "JKop" and "Tomas".
(a) so what?
(b) you might be wrong.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously) | | | | re: read image from url
[Followups set to comp.lang.c]
Mark McIntyre said: Quote:
On Tue, 04 Jul 2006 15:25:34 GMT, in comp.lang.c , Frederick Gotham
<fgothamNO@SPAM.comwrote:
> Quote:
>>
>>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.
He hasn't made that many schoolboy errors, actually. In fact, the worst
error he's made so far that I can recall is this one - i.e. describing the
differences between C and C++ as "minor". And the second-worst is in
picking a fight with Martin Ambuhl.
In fact, Frederick Gotham does seem rather bellicose all round, which
(together with his fondness for dragging C++ comparisons into C discussions
in a C newsgroup) is a bit of a shame, since he otherwise seems like quite
a reasonable fellow.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously) | | | | re: read image from url
Richard Heathfield wrote: Quote: Quote:
>Note for killfilers: this is the same person as "JKop" and "Tomas".
>
(a) so what?
(b) you might be wrong.
If someone's going to troll, changing their name gets only a brief respite
from the kill-files. Then their habits come out again, and they go in the
kill-files again. No biggie.
--
Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!! | | | | re: read image from url
Phlip said: Quote:
Richard Heathfield wrote:
> Quote: Quote:
>>Note for killfilers: this is the same person as "JKop" and "Tomas".
>>
>(a) so what?
>(b) you might be wrong.
>
If someone's going to troll, changing their name gets only a brief respite
from the kill-files. Then their habits come out again, and they go in the
kill-files again. No biggie.
Yes, where rational people are concerned, it's the /behaviour/ that is being
killfiled, not the person. If someone wishes to ameliorate their behaviour,
a quick ID change may well help facilitate that and enable them to have
meaningful interactions with people in whose killfiles they would otherwise
have rotted. In cases where former trolls are attempting to rehabilitate
themselves under a new name and we happen to notice (e.g. through some
trick of consistent misspelling or whatever), it may be more constructive
to pretend we didn't.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously) | | | | re: read image from url
Richard Heathfield wrote: Quote:
He hasn't made that many schoolboy errors, actually. In fact, the worst
error he's made so far that I can recall is this one - i.e. describing the
differences between C and C++ as "minor". And the second-worst is in
picking a fight with Martin Ambuhl.
In fact, Frederick Gotham does seem rather bellicose all round, which
(together with his fondness for dragging C++ comparisons into C
discussions in a C newsgroup) is a bit of a shame, since he otherwise
seems like quite a reasonable fellow.
Did you mean that the differences between him an a reasonable fellow are
"minor"?
--
Salu2 | | | | re: read image from url
Julián Albo said: Quote:
Richard Heathfield wrote:
> Quote:
>He hasn't made that many schoolboy errors, actually. In fact, the worst
>error he's made so far that I can recall is this one - i.e. describing
>the differences between C and C++ as "minor". And the second-worst is in
>picking a fight with Martin Ambuhl.
>In fact, Frederick Gotham does seem rather bellicose all round, which
>(together with his fondness for dragging C++ comparisons into C
>discussions in a C newsgroup) is a bit of a shame, since he otherwise
>seems like quite a reasonable fellow.
>
Did you mean that the differences between him an a reasonable fellow are
"minor"?
I mean that if he dropped his chip from his shoulder and remembered which
newsgroup he's reading, it would be a win-win for everybody.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously) | | | | re: read image from url quickcur@yahoo.com wrote: Quote:
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++.
>
Thanks,
You could try the magick++ library. This lets you read a variety of
image formats from a url into memory and provides lots of functions to
manipulate and export. http://www.imagemagick.org/
Hope this reply is more useful than some of the others you have had :)
Rob | | | | re: read image from url
Richard Heathfield wrote: Quote:
Yes, where rational people are concerned, it's the /behaviour/ that is
being
killfiled, not the person. If someone wishes to ameliorate their
behaviour,
a quick ID change may well help facilitate that and enable them to have
meaningful interactions with people in whose killfiles they would
otherwise
have rotted. In cases where former trolls are attempting to rehabilitate
themselves under a new name and we happen to notice (e.g. through some
trick of consistent misspelling or whatever), it may be more constructive
to pretend we didn't.
And when they change their name to "Troll4", just to say "hah hah - you
can't resist me!", then it might just be less constructive...
--
Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!! | | | | re: read image from url
In comp.lang.c jacob <jacob@jacob.remcomp.frwrote: Quote:
This people are NOT representative of this group nor of the
majority of C users.
I personally find that to be unfortunate.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome. |  | | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,533 network members.
|