« first day (11 days earlier)      last day (4930 days later) » 

6:11 PM
anyone here familiar with libjpeg?
need help getting it to decompress a jpeg in memory rather then from file
 
No sorry.
My app has now been waiting for review by apple for 7 days >_<
 
I think I have found a page that explains this... but it has a load of error checking as well, which whilst nice to have, I'm working VERY rough and ready on this :P
just want it to work!
 
6:31 PM
@thecoshman have you posted your question on SO? With some luck you'll have a good anwser in 30 minutes :)
 
I might just... this page is sort of helpful.... but I can't quite get my head around it
 
Anthony Williams posted a good description of the issues coming up at the next C++ committee meeting: justsoftwaresolutions.co.uk/cplusplus/…
3
The paper titles are so dramatic: Implicit Move Must Go and To Move or Not To Move.
 
stackoverflow.com/questions/4036515/… On the of chance any of you could help with this one, libjpeg and using C code in C++
 
@ZackMulgrew to answer your question on what I'd need a void pointer for in smart ptr format, I want to make a map which can take any datatype, as I need to store a series of values that could be different types in this map
 
6:49 PM
Guys, I am a real beginner but enthusiastic guy who wants to learn C++. If anybody is the same level on me and wants to learn together some smashing sh*t, please add me on msn, my address is rottweiler@warrior.hu. My main field of interest is algorithms and data structures. Thank you. Cheers
 
erm... ok then...
 
Sorry for being offtopic, I thought this is chat thingy is kinda free for all.
 
Anyone used SFML here? I'm noticing some interesting performance drops and wondered if anyone else has had the same experience.
 
@MikeShinola Just seemed a strange thing to ask for. I think you will find it hard to find some one who will learn C++ at the same rate you do. IF you wan't to learn, get a good beginners book, I liked C++ for dummies, but anything aimed for beginners will do the trick. You could try learning from the web, but for me a book was the way forward.
 
7:12 PM
Errrm, I always learn from the net, but I find it exceedingly hard to find information about the things I am interested in, that's why I want to be in touch with some pals, maybe I would find some guys with similar views to mine. But I agree It sounded a bit gay, lol. :-D. Cheers lads.
 
Is there a way that I could create a function with a variable return type? so it could return a string, int, or double depending on the input.
 
use overloading. return type for one function is fixed in c++
 
overload the = operator?
or overload a function?
 
function. e.g. string myfunc(int x){...} then int myfunc(string x){..} whatever you like.
compiler will determine which function to call by looking at passed parameters' types
 
@Bocochoco sounds more like a template job to me, assuming you basically want to do the same thing to the data, its just you want to be able to do this to any type of data (so long as that data can be manipulated in this way) eg a "to the power" function
 
7:22 PM
Well, the idea is that config file variables are stored in a struct. The values can either be strings, ints, or doubles. I'm trying to find a way to make a single value() function that returns the correct value
so if(type == 's') return svalue; else if(type == 'i') return ivalue; else if(type == 'd') return dvalue;
 
@Bocochoco not really getting you there... do you mean you want to read a file, and store it in a struct you create to hold this data form the file?
 
pastebin.com/SwisQNQB this is how it is now.
I'd like to put a function in there that returns the value of the parameter according to it's type.
I'm just not quite sure how to do it
If the config file reads sName=Bob, than i could type cout << parameters["Name"].s << endl;. for a double it would be .d, and so on. I'd like to make a function .value that returns whatever is correct.
 
and how are you going to use it? you cant determine the returning type until you look into p member, so you cant write something like string my=parameter.value() because its type can be int at the moment and you will receive a runtime error(if only c++ allowed you that)
your model is wrong, and funny thing is, i cant imagine a good working decision.
 
wrong?
What's wrong?
 
that you're keeping parameter type inside the parameter object, imho.
 
7:35 PM
I just put that in there recently. It's not used anywhere. It was part of me trying to figure out how to make that function
 
Same problem...
3
Q: How to pass POST data to the PHP-CGI?

George EdisonUpdate: In a fit of desperation, I did the following in a shell: REDIRECT_STATUS=true SCRIPT_FILENAME=/var/www/... REQUEST_METHOD=POST GATEWAY_INTERFACE=CGI/1.1 export REDIRECT_STATUS export SCRIPT_FILENAME export REQUEST_METHOD export GATEWAY_INTERFACE echo "POST /post.php HTTP/1.1\r\nContent-...

I've wrapped it up in a nice shell script this time, though.
 
@Bocochoco in your current situation i can recommend you writing some sort of macro. it will solve your current problem. but later in your program, if you're going to work with values of your parameter objects, you will always have to check its type.
 
That's what I figured. Thought there might be a convenient way to simplify it. Thanks
 
7:53 PM
memcpy(rowStart, buffer, sizeof(buffer); if rowStart is a char* and buffer is an unsigned char** will this work?
and I then want rowStart to point to the slot just after where memcpy would have worked up to
 
8:48 PM
Hello
 
hello
 
9:11 PM
Hi
 
sbi
9:33 PM
Oops. Has this room's name changed??
(I only had one favorite. But that had a different name.)
 
@sbi long story short, yes, it has.
 
sbi
@Anton So what's the story? I liked the old name. Plain and simple.
 
guys said that admin of this room never appears, its not good, so they decided to take it over and one of admins granted them privilegies and they changed the name. dont know why, not all like it, including me.
 
sbi
Yeah, I just realized that there's a bunch of new owners, where there used to be one (and an unknown one).
@Roger: What about the room's name? You're one of the owners now, you ought to know.
Oh, and @Jerry, too.
 
name of this chat is a little weird now..
 
sbi
9:39 PM
Actually, it's almost all the common suspects.
@noisy: To say the least!
 
anyways, this chat is useless most of times so name doesnt matter at all.
 
sometimes man should have some place, where he can read something pseudo-smart... for example during long compilation :)
where are you from, guys?
 
may be. latter conversation on the next name of c++ standard is pseudo-smart, exactly. Im from Russia)
 
I am from Poland ;)
what time is it in your city?
 
once i helped some polish girl to navigate in Moscow. She gave me her fake number, bitch. Thats all i know about Poland :D
its 2 in the morning
 
9:46 PM
maybe you forgot add +48 at the front..
 
well yeah, i rounded it:D its 1:46
 
I mean at the front of her number.. +48 is directional number to Poland
 
sbi
anyway, whoever else wondered, this seems to be what got the name change started: chat.stackoverflow.com/transcript/10?m=45091#45091
 
Ah damnit. I added. It was a temporary number, as i discovered later. Didnt need it at all, im just intersted in spoken english experience. and she gave me exactly what i needed.
 
Okay, so maybe I went overboard last night with the messages.
 
9:50 PM
@GMan: I also think that current name is not appropriate
 
six persons online, lets vote :)
 
What's wrong with the name?
 
yeah! :)
 
What is "Nb Memorial" About?
 
I added this room to my favorites, when it was simply "c++"
 
9:52 PM
@StephenCanon other programming language rooms have good informative names. this one doesnt
 
Neil Butterworth Memorial
The first word of the description is C++.
 
oh. we'll it's confusing, but hardly "inappropriate"
 
"I wonder what this room is about" -> Read the description.
"C++"
 
esp. in light of NB's contribution's =)
 
btw.. please keep fingers crossed.. I am waiting for a results for very long compilation. If everything will be ok, I would go to home finally...
 
9:54 PM
Maybe it could just be in the description
 
it is 23:54 and I am still at work :(
 
sbi
@StephenCanon What's wrong with the name? It doesn't have C++ in it. I would have never found it.
 
@noisy hahah poor noisy :(
 
Yeah. May be swaping description and name wud be the best way.
 
time to fix the build system!
 
9:55 PM
Lounge++ is fun. But room name must represent exactly what it is about, imho.
 
@StephenCanon: the problem is not in build system, but in amount of LoC ;)
 
And if we don't do this, we are going to have this meta discussion all over again and again...
@noisy LoC?
 
In that case, time to ask for more hardware =)
 
Lines of code
 
<--- Owns a 4 million LoC project
 
9:57 PM
@StephenCanon goddamnit, 4 million?! what is it?
 
Incredi-build
 
sbi
@GMan: That entry in the tag wikinow links to a no longer existing room. I'm not sure why. That leaves the room's name for finding the C++ crowd. If you go to the room list and enter "C++" in the filter, you fond nothing at all. That's bad.
 
@StephenCanon: we are using network compilation...I mean... Incredibuild on windows... and something similar on linux
 
sbi
@Drahakar Seconded. IB is heaven for C++ developers.
 
9:58 PM
how long does a build take for you?
 
So this way, people will be able to keep not carring about their dependancies, inclusions and such
 
and I think we have similar amout of code ;)
oh...that was quick this time :)
Build successfully completed. You may go to directory to find the package just built.

real 6m32.092s
user 4m26.490s
sys 0m11.300s
 
oh, that's not too bad at all
when I started here, our builds took 6 hours. O.o
 
@Anton It's about lounging, and happens to be sort of about people who use/write C++ doing the lounging, but still primarily about lounging, not C++.
 
rebuild takes about 30 minutes
 
10:00 PM
@noisy It's pretty good, I used to work somewhere where builds could take 4hours (forward declarations and include management is for n00b yaknow)
 
now I am going to change time on my local machine, make git add, git commit... and I will pretend that I pushed this few hours earlier :D
 
hahaha
h4ck3r
 
:D
 
Are performances test soon :P?
 
10:02 PM
you mean automatic tests?
 
No, much more like management evaluation of your performance as a programmer
gotta love those pointy heared boss :)
 
@JerryCoffin may be because noone treats room named "Lounge" seriously, because its name says its done for lounging? :) honestly cant say if there was some professionalism ambient in the previous room.
 
no... it is not thing which I want to share my collegues, that sometimes I am working to late late evening..
 
gtg, have a nice day/night :)
 
10:06 PM
@sbi the admins decided they don't want two c++ rooms, so we'll have to work out a compromise on the name
 
but sometime I have such days.. when in first hours I am completly waisting my time... doing stupid things.. and later I have to sit as long as I it be ready...
 
sbi
@RogerPate I'm not sure what you mean. IIUC, this was the C++ room.
 
exactly..
"was"
 
@sbi: we started another and they closed it, "Lounge++" was the name, etc.
 
@sbi I fixed the tag wiki link.
 
sbi
10:08 PM
@RogerPate Well, the other one apparently is five days old. IIRC, one day ago this one was named C++, no?
 
When I filter by C++, I see the description of this room highlight.
 
no, not the one you linked
 
sbi
@RogerPate I'm confused. Your link links to this room.
 
ah, must be some part of whatever merging was done
in Lounge++: The NB Memorial, 10 hours ago, by Marc Gravell
Merging the rooms; was causing a lot of flagging and confusion
 
Is there a way to clear the flags?
I wasn't aware the SO user base was so dense.
 
10:11 PM
@sbi: I explained what happened to Marc and he said to change this room rather than start another room
@GMan: the flags were on your notices, btw :P
 
I know.
Maybe I went overboard, but I didn't realize reading before posting was such a monumental thing to hope for.
 
50k rep and you still believe people read before posting? can I have some of whatever you're smoking :)
 
see you later guys!
 
sbi
@RogerPate How do I see which roomt this transicript was from?
 
Was beer. :)
 
10:13 PM
Hey, some of us read before posting… sometimes.
 
ah, even better
 
read before posting? what does that mean?
 
@sbi: doesn't clicking the "in ..., 10 hours ago" link take you to the transcript and show the room name?
@sbi: it's room 261 if that helps you find it, the URL I gave you earlier took me there (the one you said only came back here)
 
There.
 
sbi
@RogerPate There's a "Lounge++: The NB Memorial" box on the right.
Anyway, I'm now very thoroughly confused.
 
10:15 PM
I change the title so people who are incapable of figuring out Lounge++ has to do with C++ can find the room.
 
@sbi: after being told to reuse this room (room #10), I changed the name
 
I will be changing the title back when all the other C++ rooms die and the dust settles.
Because I'd hope people are a bit smarter than that.
 
Its not about smartness.
 
sbi
There used to be a "C++" room. I found it by searching for "C++". I favorited it. I seem to remember that, this morning (CEST), it was called "C++". I come back tonight (CEST). and the only favorited room is called something else, that has a "++" in its name, but which I would never have found.
It's said there cannot be two rooms of the same name. Yet a room named "C++", which is not the one I have been at and have favorited, claims to have been created 5 days ago.
__I had only two beers tonight!__
 
@sbi: first, there can be two rooms with the same name
@sbi: the admin of this room, #10 (which used to be named "C++"), was missing; so a handful of us created a new room, #261
@sbi: the moderators decided we should appropriate #10 instead of using #261, and they changed ownership and closed/merged #261
 
10:23 PM
Why are there 11 flags in here? This must be one profane group of C++ programmers...
 
@JamesMcNellis: the prominent adverts for the other room were flagged
 
My bad. Was getting annoyed.
Am annoyed.
 
@RogerPate That explanation is boring; I bet we could come up with a much more exciting explanation.
 
Grrr.
 
sbi
@Roger Thanks, it starts to all make sense now.
 
10:24 PM
@JamesMcNellis: people wanted "C++" explicitly in the name, so we're trying to compromise
 
@RogerPate I'm good with the new name.
 
maybe each room should have a wiki to clear up basic issues/properties of the room?
 
yeah, it's really good
 
could even be used somewhat like a "recent news"
 
"Lounge++? I want C++, and there's no possible way Lounge++ could, in any way shape or form, refer to C++. I won't even bother reading the description, then. Skip."
I'll stop.
 
10:29 PM
@GMan: seeing a thing from another's POV can be difficult :)
 
It can, and usually I'm far more open minded, but dammit.
 
sbi
Well, it's already Thu here, and I got to go to bed. In case anyone here hasn't seen it yet, I'd like to point you to meta.stackoverflow.com/questions/68647/….
G'night
 
What is the lounge after it is incremented? Is it a slouch?
 
Night
 
@sbi Later
 
10:31 PM
Lounge -> Evening Club -> Bar -> Rave Club -> ??
 
Fight Club!
 
Shhh!
 
Oh yeah, I forgot the first rule. Oops!
 
Man, C++ seems to be getting so ugly.
 
[](){}
 
10:39 PM
No, that's beautiful.
[]{[]{[]{[]{[]{[]{[]{[]{}}}}}}}}
[]{[]{[]{[]{[]{[]{[]{[]{[]{[]{[]{[]{}()}()}()}()}()}()}()}()}()}()}()}(); no-op.
 
11:01 PM
getting ugly? it's been ugly for years, 0x will make it much prettier
 
Java is uglier.
:D
 
@RogerPate part a
@StackedCrooked its not ugly as such, just stupidly long winded for even the most simple of things
 
@thecoshman Might I suggest that Java is off-topic here? If there's too much discussion of it, I'll feel obliged to jump in with my version of "The Truth about Java", and that can't be good!
 
11:16 PM
@JerryCoffin for fear of starting some epic rant about how much we all know java is painful, I shall concede to not mention any of my views about how I dislike it so, yet respect the idea of it being used in truly (yet some how not at all) cross platform ways.
 
The coolest thing about JVM is Clojure :p
 
I shall swiftly move this discussion towards my linker error
 
None of these languages have anything on FORTRAN IV!
 
do I need to get a lib for using libjpeg on windows, or can I just use the source code? Googling (not that hard I admit) doesn't seem to imply I need a lib
@JamesMcNellis shh with your reminiscent ways :P
 
@JerryCoffin: that was the reason to include "general programming" in the description: good programmers don't restrict themselves to just one tool (c++) and we should be able to focus on c++, yet talk about others
I've seen more than one room harmed by off-topic police
 
11:21 PM
@RogerPate Its a fine balance between keeping a focus and off-topic (I dare to say it) Nazis
wait... was that just the worst spelling of anything ever?
 
I hesitated to even say "police", but certainly don't think Godwin would present so quickly
 
nope... but boy does it look wrong reading it back
@RogerPate you lost me there
 
@thecoshman you should be able to link it statically or dynamically (though dynamically could be harder if the project hasn't been tested as a DLL)
 
@RogerPate that is to say, I would need to find a LIB file to include in my project...
 
for libjpeg, static linking would be my default choice on windows
 
11:24 PM
@RogerPate ooooh, Heard of that law before. to be fair they make for a good analogy, better then a waffle iron for example
 
@RogerPate Perhaps it didn't come through as clearly as I intended, but that was intended to be at least somewhat humorous. I do seriously dislike Java (and especially the way it has been foisted on the world) but, I'm generally able to control my urge to rant about how evil it and its pushers really are.
 
I wish I could remember where I read it, but there was an eloquent post about how ww2 and nazis are the closest thing to a widespread moral absolute that we have
@JerryCoffin: ah, I didn't know how serious the off-topic bit was at the start :)
 
@RogerPate seeming as the libjpeg download did not have a lib in it, I either have to find one, or compile one my self (yet something else I have to learn on this ever deepening rabbit hole of a project)
@JerryCoffin I waouldnt say evil, just narrow minded. yes JIT is fast now, but dammit native code will always be that little bit faster!
 
@thecoshman not necessarily, but the programmer certainly does have more manual control with native code
I'd rather not require 10GB of ram to run reasonably well... :)
 
@RogerPate JIT will never be faster then native, may be as fast, but what you might lose in speed you make up for in epic portability, at least with the VM approach
 
11:30 PM
native code is compiled to the lowest common denominator among the machines its distributed to
 
@RogerPate thats another thing entirley <cough> windows 9 <cough> yes, that's my prediction, mark it well and praise me highly when I am right... preferable now whilst I bask in the glory of a correct prediction not proved wrong :P
 
unless you recompile everything for every niche target, JIT easily has the potential to be faster with that kind of cpu-specific optimization
 
@thecoshman You're determined to get me started, aren't you? I would say evil. I think it's not a matter if simple narrow-mindedness; I think Sun knowingly and deliberately produced something inferior with the specific intent of harming others (an in case anybody wonders about its incestuous sibling, .NET, yes, I think pretty much the same about it).
 
@JerryCoffin I do love my BIG WOODEN SPOON
 
@JerryCoffin: really deliberate malfeasance?
 
11:33 PM
should not of let my self sleep in this morning, now i'm not feeling tired, so I go to bed later and get up later and the whole sleep pattern foes out the window, again
 
I mean, I completely understand that sun and msft are promoting java and .net for business reasons, but ...
 
The problem with that though is that innovation starts to get held back because we become reliant on what some one else provides us with
 
cough the Java room is that way --->
not that I don't love a good argument =)
 
@StephenCanon debate, not argument (honest) and this is more a genral issue... just in the context of java :P
I find my self both loving and hating using VS, it does some cool things, but I can feel my self loosing grips with what I am doing
 
@RogerPate Don't get me wrong -- I have no "smoking gun" to prove it, but yes, that's what I honestly believe. Just for the obvious example, to look at what James Gosling had done previously and then Java, I truly canNOT believe that so many, such bad, decisions could have happened by accident.
 
11:37 PM
@thecoshman: innovation has been encouraged with a common platform to build upon too; scala, ironpython, others
(I can't believe I'm coming out on the pro-jit side of this)
@JerryCoffin: given what I've read about msft purposefully sabotaging OSS projects, I'd not doubt it as strongly from them; but I have less experience of sun
(sabotaging by purposefully making a protocol arcane and complex with myriad extensions, rather than contributing code)
 
A common platform is all well and good, but if we just take it as given and don't question what it is actually doing, I don't think we can improve on it. You can't improve something, with out first know what it is doing (if that made sense) :/
 
@RogerPate Ah, now that's one I can't start on, much though I'd like to. As it happens, when the European Commission was suing Microsoft for monopolistic behavior, they hired a little company called TAEUS to do technical investigations of the Microsoft protocols and documentation thereof. As it happens, at the time I was the Principal Technologist at TAEUS...
 
I'm aware I only know the tip of the iceberg, and it's one of the many reasons I no longer use msft products whenever possible, but it has always felt like finding out more would just be depressing as there's nothing I can do about it
 
@RogerPate The good point is that while I can't claim to have done it single-handedly by any means, at least I did get to help do something about some of it -- there's now a lot of documentation (msdn.microsoft.com/en-us/library/cc216513(PROT.10).aspx) and while I can't say it's perfect, I can say with certainty that it could be a lot worse...
 
Do I really need to make a lib to use some code that I have the source for? surely that source can be just compiled into my program? Is not a lib just you can let some else use your code with out giving it them... effectively?
 
11:49 PM
aren't *.lib files used by msvc as import libraries for dlls? (or does it use them like .a static libraries?)
 
@thecoshman Are you talking static lib or DLL? A static lib is just a collection of object files with an index to make it easy for the linker to link it into your code. A DLL can let others use the code, but without documentation of the interface, it can also be pretty tough.
 
you should just be able to compile it into your program, as a separate TU, yes
 
@JerryCoffin I find MSDN to be a very bare bones documentation. it does little more then tell you how to use a function, rather then how to actually use it. like telling some to use a hammer by holding, not telling them that use the head to bang in nails
@RogerPate I think so, they are static, I know that little
 
@thecoshman Like I said -- it's definitely not perfect...but believe me, it could be a lot worse!
 
@JerryCoffin: so now they can bury the competition in piles of docs :)
 
11:51 PM
@JerryCoffin well, I think I need a lib... i'm getting linker errors, which is from lack of libs usually (oh yer, VS) but I have the source, so im not sure whats gonig on
 
public corporations are required to act insane; officers which don't hold the stock price as the primary motivation aren't doing their job
 
@RogerPate non-euclidean docs
 
@thecoshman: do you have an empty project that only tries to build with libjpeg?
@JerryCoffin but, on the whole, I'd rather see piles of docs than none; thanks for your part in that
 
@RogerPate not an empty project no, I have got a fair bit of code in there, using DX. but yer, I have libjpeg code, and including the headers and what not no problems. Just getting unresolved externals for the libjpeg functions
 
@RogerPate Read: europa.eu/rapid/pressReleasesAction.do?reference=IP/06/…. You get one guess about who originally wrote the part about: "Microsoft’s documentation was written `primarily to maximize volume (page count) while minimizing useful information.'" The current docs are a big improvement...
 
11:54 PM
are you building with msvc?
hah
 
@RogerPate i'll second that, the docs have helped me, mainly as a starting point
@RogerPate yer, 2010 ult
 
@thecoshman: how many source (.c, .cpp, ...) files does libjpeg have, and are they included in your project?
 
@RogerPate I have not added them to my project inside VS if that is what you mean
 
that's why those functions can't be found: you're not compiling the source containing them, then not linking with that
 
@RogerPate ooooh, seems simple when you put it like that...
 
11:58 PM
@thecoshman You'll definitely need to do that before the libs do you any good. See: stackoverflow.com/questions/3349980/c-c-linking-problems/…
 
@thecoshman: this is one reason I dislike IDEs and prefer to teach lower-level tools first (then abstract them later) :)
Daily vote limit reached; come back in 1 seconds.
 

« first day (11 days earlier)      last day (4930 days later) »