« first day (671 days earlier)      last day (4291 days later) » 

12:00 AM
@CatPlusPlus why would allowing me to click a cancel button involve killing any processes as opposed to opening the option for me to tell it to send a shutdown message?
 
Hmm, actually there's a friend of mine that doesn't have Portal 2 yet.
 
@R.MartinhoFernandes too late
 
Windows doesn't have SIGTERM, and compilers are unlikely to maintain and process the windowing message queue.
 
Oh, well, I'm sure he can get a surplus coupon from someone else in the gang.
Also, I already gifted him my surplus Bastion.
 
@CatPlusPlus I don't even really care much if it lets each current process complete. I just want the option to click the button.
 
Ell
12:01 AM
I'll have some free steam games if you have any
 
I'm just speculating. vOv
Anyway, 2AM, time to sleep.
 
@Ell lol. Sorry, I'm all out of freebies :)
 
as it is, the button is greyed out until it starts compiling the tenth project. :(
 
Ell
@R.MartinhoFernandes haha kk, thanks for the 75% off! :D
much appreciated :)
 
netbeans should totally add a progress bar somewhere, instead of just sitting there when I click the debug button. Took me a while to realize it was thinking still.
 
12:06 AM
@Ell You're welcome. Have fun!
 
I attached visual studio to java.exe and the computer froze so long my bluetooth headset desync'd. :(
 
@MooingDuck Are you writing a horror novel targeted at programmers?
 
@R.MartinhoFernandes I'm having a bad week.
 
Ell
The Heart Asks Pleasure First <3
 
@R.MartinhoFernandes I'm trying to make a simple change at work, and my code is making java.exe have access violations. It's been a week and I still have no idea what the problem is. Especially since I can't find out any of my code that's getting executed before the problem.
 
12:08 AM
a puppy :)
 
Ell
n'awwwwww
 
awwww
 
@MooingDuck That's yours?
> State: 11-Closed, Not a Defect, bug
 
@R.MartinhoFernandes no, but that's the bug I'm experiencing
 
12:15 AM
It's not a defect, but it's a bug.
 
Also means that's not related to why my code crashes.
 
Ell
anyone know of a cheap open source media player?
as in, hardware?
 
open source hardware?
 
Ell
eg arduino/rasp. pi
open schematics
 
Universal Software Radio Peripheral (USRP) with two RFX900 daughter-boards and [http://code.google.com/p/clock-tamer/ ClockTamer] installed (all open-source).]] Open source hardware (OSHW) consists of physical artifacts of technology designed and offered in the same manner as free and open source software (FOSS). Open source hardware is part of the open source culture movement and applies a like concept to a variety of components. The term usually means that information about the hardware is easily discerned. Hardware design (i.e. mechanical drawings, schematics, bill of materials,...
There's also open source cola, if you're curious.
OpenCola is a brand of cola unique in that the instructions for making it are freely available and modifiable. Anybody can make the drink, and anyone can modify and improve on the recipe as long as they, too, license their recipe under the GNU General Public License. Since recipes are, by themselves, not copyrightable, the legal basis for this is untested. The original version 1.0 was released on 27 January 2001. Current Version is 1.1.3. Although originally intended as a promotional tool to explain free and open source software, the drink took on a life of its own and 150,000 cans were ...
 
Ell
12:20 AM
Hmm so for a media player, I need... disk space, little ram for streaming music, audio out
how hard can it be? :D
 
there's no problems mixing __declspec( thread ) and DLLs in MSVC is there?
 
And free beer:
Free Beer, formerly known as Our Beer (Danish: Vores øl) is the first brand of beer with a "free" recipe - free as in "freedom", taken after the term "free software". The name "Free Beer" is a play on Richard Stallman's common explanation that free software is "free as in speech, not free as in beer." The recipe is published under a Creative Commons license, specifically the Attribution-ShareAlike license. The beer was created by students at the IT-University in Copenhagen together with Superflex, a Copenhagen-based artist collective, to illustrate how concepts of the free software mov...
@Ell The disk space requirement can be easily met by an SD card.
 
"For DLLs that are loaded dymanically after the process has started (delay load, COM objects, explicit LoadLibrary, etc) __declspec(thread) does not work on Windows XP, 2003 Server and earlier OSes, but does work on Vista and 2008 Server." curses.
 
microSD, preferably.
 
Ell
Yeah I was thinking sd or microsd
but I need a component to load it from that. I wonder what processor would do that :L
 
12:23 AM
That means I can make this file not thread safe, or give every instance of a jni object a copy of my "JNI environment" pointer.
later all, I'm going to go weekend now.
 
Ell
bye :)
 
I'm turning off too.
Good night.
 
Ell
Nighty night :)
 
Oh, wait, @Cat I haven't finished reading the monad chapters, but I haven't seen fundeps yet. I much prefer the one from RWH. LYAH is has too much exposition. It repeats explainations of things that were covered in previous chapters several times, and that makes it longer than it needs. RWH reminds me of sigfpe's tutorial: the reader is supposed to have already built the monads unaware and the chapter focuses on the discovery that there's an underlying pattern.
And now I'm really off :)
 
Ell
12:40 AM
There needs to be a portable media player with microsd card slot & microusb. Simple ipod-shuffle type buttons
 
Ell
12:55 AM
anyone here? o.O
 
1:13 AM
Apparently it is possible to F5 StackOverflow too many times: "We're sorry...There are an unusual number of requests coming from this IP."
3
Muhahaha @JamesMcNellis: Pwned :)
 
1:35 AM
SO SICK
 
Hi
 
hi
 
Ell
1:49 AM
hello people
Cmon somebody be here
I need human contact
 
HALLOU
human here, don't panic
 
Ell
oh good
how are you?
 
fine, drinking a beer
what's up?
 
Ell
meh bad day :L
 
what happened?
 
Ell
1:58 AM
well basically me and my beat friend used to go out
but we split up
but now we have had to stop talking entirely
because she is struggling to get over me
losing a friend sucks is all
but ill be fine :L
all of my friends are asleep so :L
 
i was googling "get over someone"
 
hi guys
 
Ell
nahh I have that too but that's a different kettle of fish :P
 
you were going out or something?
hellou
 
Ell
that's with a different person
hi :)
 
2:01 AM
so.. this room is pretty sad today ..
are you ok Ell
 
Ell
let's lighten the mood :D
yeah just nobody is online in the early hours :L on facebook and like likes
 
what do you got in you mind
 
Ell
suprise me
 
dude.. we are not in a date to surprise you..
 
there you go, kittens
 
2:03 AM
awww.. that is so cuteee
 
Ell
woo
what projects are you guys working on?
 
i've been all fucking day long trying to install some big endian architecture linux distro, so i can port a library i'm implementing
sparc wasted my whole day
 
Ell
port to linux or a big endian architecture?
got anywhere with it?
 
it's probably only going to work on linux, since it uses raw sockets and windows doesn't like them
so i've developed it using little endian, now i want to make sure it works on big endian
yeah, i'm finishing the debian-mips installation :D
 
well i am trying to build a search functionality on backed up data..nothing fancy
 
2:09 AM
how about you @Ell? what are you working on?
 
which one do you think is faster.. regex search or simple string find operations..
 
dude
the kittens are falling over and over
 
regexes need to be compiled, so searching a simple string using find operations should be faster
lol
 
:D
 
I finally get variadic templates, on the positive side
It's hard to get your head around some things until you find a good way to use them.
 
2:11 AM
yehhh
they solve many issues
 
now I can type the syntax correctly :P
 
Ell
not much really. attempting a game but I am no good at art so. also web crawler that gets data for a pokedex :D
 
You crazy kids with your pokemon
 
no.. seriously.. this is a silly database where there is no indexing on the search terms.. the number of rows may be up to 100 mlillion.. so pick each sentence from database and try to find whether at least one of the i/p words match..i don't know how the hell it can be done faster
 
I'm gonna have some fun and read the standard some. I'll probably fall asleep to it.
 
2:14 AM
game art sux. I'd started implementing some engine, but the drawings were so bad, that I finally dropped the project xD
 
guys, if you haven't yet, check out this link:
8 hours ago, by Jerry Coffin
@jalf Really?
@mfontanini 8bit FTW!
 
@Gopikanna you have one sentence/word and you want to search for it in a massive input?
@KeithLayne I've bookmarked that video! I'll have a look at it tomorrow morring
yeah, I'm not even good at 8bit art, so... xD
 
@mfontanini , its a massive data as a whole.. but i get to pick only one sentence(say 300 words) at a time from db and check whether it contains any one of the i/p words..
and repeat it for 100 mill sentences
 
hey, does anyone know if there's a simple way to swap out an icon embedded in a .exe with another icon?
 
2:25 AM
@Prætorian that's where I ended up, thanks :)
anyone around who still has the VS2012 RC/Beta installed?
they changed to icon from the purple loop thing and transparent background to a purple background and white loop thing
 
 
1 hour later…
3:56 AM
i am so glad that in this chat, no one abuses and talk rubbish
Seriously thanks a lot to you all for maintaining the decoram
 
...ok?
 
@melak47
if you could answer...when we have two pointers char and int.. why does print a char pointer prints the string and printing a int pointer prints the address?
 
@melak47 yes
 
@Leoheart how are you printing?
 
using printf
 
3:59 AM
@Cheersandhth.-Alf :D I want to swap the icons, could you send me your devenv.exe?
@Leoheart but what is your format string
 
@melak47 if it is a normal icon then i can extract it and send it to you?
 
%s
or about using std::cout
 
@Leoheart well %s is for printing strings :)
 
... firing up VS 2010 ...
 
okkay.. let's talk about using iostream for printing
 
4:00 AM
@Cheersandhth.-Alf yeah, the normal icon, but I need all the sizes
 
they're pretty thorough, they even have 4-bit versions
wait a minute
 
those are the icons I want to replace. if I have your exe (or I send you mine), resource hacker can swap them in one go
 
@melak47 I will wait for your answer
 
@Leoheart well what exactly is it you want to print, and what do you want it to look like
 
well i'm on a slow connection, hence the idea of sending just the icon set
 
4:03 AM
the exe is a few KB
 
do you have a mail address, like?
ok
 
yeah
melak47@gmail.com :)
 
my question is this
int num = 10;
int*ptrInt = &num;
char* str = "thank you";

std::cout<<ptrInt<<str<<std::endl;
why does printing ptrInt prints the address and str prints the string?
 
because PtrInt is a pointer :)
 
Because cout has overloaded operator << for both void* and const char*
If you cast str to a void*, it will print the address too
std::cout<<ptrInt<<(void*)str<<std::endl;
 
4:07 AM
@melak47 ok i sent just the icon set, because the mail server wouldn't accept the exe even in a zip
 
@Cheersandhth.-Alf or if you have resource hacker, you can export the entire icon group with all sizes I think
haha ok
 
and if you cast ptrInt to a char*, it's undefined behavior, but it will probably print chars until it reaches a 0
or it will crash, who knows....
 
@LuchianGrigore got it...
Thanks man... i was assuming either cout or << was overloaded..wante dto be pretty sure
 
i don't know "resource hacker". i just used visual studio to export the icons
 
@Leoheart cout is an object, you can't really overload an object...
 
4:09 AM
Ohh yaaa... right
 
@Cheersandhth.-Alf ahh, sorry for your trouble..I guess I was looking for the RC icons :/
 
Thanks @LuchianGrigore
 
also, that only includes the 32x32 pixel size :S
 
oh, i sent the beta icons
i don't have the release candidate
 
yeah, my mistake I forgot those weren't the same
 
4:10 AM
so, the icons changed from RC to final release?
 
yeah
 
I've got a bounty ending in 3 hours
and don't know who to award it to
:(
 
me :D
 
Right... you're the guy that complains he doesn't win the lottery, but doesn't even buy a ticket...
 
I just thought I'd help you out :p
 
4:14 AM
read the answers
pick one
:P
knock knock
 
who's there?
 
to who? :P
 
to whom*
 
toss a coin?
@LuchianGrigore I don't suppose you have the VS 2012 RC installed?
 
4:19 AM
no
2010 here
& 2008
 
 
2 hours later…
5:56 AM
^ How it looks where I am. The more pretty it is, the lower the network speed.
 
hehe
 
6:20 AM
10
Q: Multiple Counter Problem In For Loop

ThomasWhy is this not valid for( int i = 0, int x = 0; some condition; ++i, ++x ) and this is int i, x; for( i = 0, x = 0; some condition; ++i, ++x ) Thanks

close as dupe plz
@KeithLayne olden, but golden
 
So I have a function which returns an std::vector assuming the vector is large, how should I return it?
- By (l-value) reference, to ensure that it does not get copied?
- Or just return it by value, assuming that it's content is moved anyways.
 
@Ell there there
@Nils Don't worry, RVO or move semantics will kick in.
 
yes there are two options
either RVO or move semantics
which one will happen?
 
If it's an automatic object ("local variable"), returning by reference yields undefined behavior.
 
sure
 
6:24 AM
@Nils Depends on your compiler, but if for some reason RVO does not kick in, move semantics is mandated by the standard.
 
If you have a C++11 compiler, otherwise just RVO?
 
What do you mean "just RVO"? RVO is still faster than move semantics. But technically, you cannot rely on it.
 
ok because it is not mandatory
 
Right. But show me a compiler that doesn't do RVO. And Visual C++ 6 doesn't count.
 
So is there any reason to use reference-type function returns?
 
6:26 AM
Yes, when you return a data member from a member function, because the data member will outlive the function call. Or when you return a static object, for example in the shudder Singleton Pattern. Or when you return a parameter that was passed in by reference, for example in operator<< overloads or in the implementation of std::move.
Just don't return automatic objects by reference and you're fine.
 
why return a parameter which was passed by ref?
 
I have 2 classes: Database and DatabaseStatement. Each statement must have an associated database object. Should I use references or smart pointers? Here is example code using reference pastie.org/4531012
 
std::ostream& operator<<(std::ostream& os, const Foo& foo)
{
    os << foo.repr;
    return os;
}
@Nils So you can chain calls to operator<<.
@galymzhan Does the statement own the database object? If not, raw pointers are fine.
 
ah yeah, but this is just interesting with operators, right?
 
@Nils As I said, you also need it if you feel like reimplementing std::move:
template<typename T>
typename std::remove_reference<T>::type&&
move(T&& t)
{
    return static_cast<typename std::remove_reference<T>::type&&>(t);
}
 
6:30 AM
ok, well that is then an rvalue-ref
 
So? An rvalue reference is still a reference.
 
sure
 
hey, does anyone have the VS 2012 RC installed?
 
I'm pretty sure there's somebody out there having VS 2012 RC installed, yes.
 
@FredOverflow I was hoping to find someone in here, not out there :)
 
6:33 AM
Ah. Why? Do you have a question about it?
 
no, I want the icons from the devenv.exe :p
they changed them in the final release, and I don't like the new ones :p
 
lol you got problems :)
 
MS not letting us build win32 apps for win RT/ARM is kind of a dick move :/
 
I guess win32 is not properly supported on ARM?
 
only for selected MS apps
office, IE, I guess
 
6:38 AM
I propose deprecating Win32 and renaming it to Fail32 already.
 
if the choice is between Fail32 and Metro...I'd stick to Fail32 :p
 
:)
Well I don't know Fail32 is the same since Windows 1.0, right?
Or at least part of it
I guess at some point the appended ex
 
It's old, it's crap, it's ugly. Let's just forget about it.
 
@FredOverflow is there anything you can use instead though? :p
 
A decent GUI framework. Yeah I know, that's kind of a blind spot in C++ world. Butter even WxWidgets is better than Win32.
 
6:43 AM
I am quite happy with Qt.
 
Heard good things about Qt, never tried it though. The preprocessor doesn't sound like the best idea ever.
 
Or you should be able to use WinRT on Windows 8, however I never tried this.
@FredOverflow Well it works and I get stuff done with it.
You just have to configure the build system properly to use Qt's meta object compiler and eventually Qt's resource comipler and the language translation stuff..
The Windows API, informally WinAPI, is Microsoft's core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. It was formerly called the Win32 API; however, the name "Windows API" more accurately reflects its roots in 16-bit Windows and its support on 64-bit Windows. Almost all Windows programs interact with the Windows API; on the Windows NT line of operating systems, a small number (such as programs started early in the Windows startup process) use the Native API. Developer support is available in the form of the Windows SDK, providing doc...
ah they first had Win16
 
7:03 AM
@Nils Which is not really surprising considering that Windows predates the 386 :)
@TonyTheLion That feels really good, especially since my Linux Solitaire doesn't do this.
 
7:23 AM
@ecatmur congrats!
 
@LuchianGrigore To what? Did he win the Turing award?
 
Yeah
Apparently, P==NP
 
@LuchianGrigore really?
 
I lost interest in P==NP years ago. When will C++ get modules? :)
3
 
@melak47 no
@FredOverflow modules?
 
7:28 AM
aw :(
 
@LuchianGrigore You know, a sane alternative to header files.
 
I love C++ just the way it is
:D
 
@FredOverflow what's so insane about header files?
 
You're kidding, right?
 
7:30 AM
Google "modules proposal wg21" or something like that.
 
Bah, if I wanted to use import, I'd write Java
I just like the ugliness of C++
Wouldn't want it to be any less complicated
 
hiii<yawn>iii guys. It's Friday, friday!
 
hi
 
sbi
Wow. Just wow. "I can hear music for the first time ever, what should I listen to?", asks Austin Chapman. "That night, a group of close friends jump-started my musical education by playing Mozart, Rolling Stones, Michael Jackson, Sigur Ros, Radiohead, Elvis, and several other popular legends of music." What would you recommend to someone who says "Silence is still my favorite sound"?
 
7:55 AM
@FredOverflow Will it get modules?! Why was the proposal from 2006 moved to a separate report? When will it be available? Are compiler vendors (Microsoft, clang..) willing to implement modules?
 
@sbi John Cage?
 
8:11 AM
I really wonder if there is any info available on what happend to that proposal..
 
sbi
@TheForestAndtheTrees Wow. I'd have to think about that. :)
@Nils Is it the one by Daveed Vandervorde? That got pushed back because it would have required too much time to decide about and implement.
 
Xeo
8:26 AM
mornin
 
@Nils it is still considered. it was too much and too incomplete to make it into c++11.
 
8:41 AM
@sbi yes that by Vandervorde
I think it is a major issue because of compile time, also having to write some things twice in header and impl file is just stupid.
@Cheersandhth.-Alf And where can I see which proposals are considered and which not?
 
Xeo
@Nils Usually the ones with many revisions :)
I'd wait for the next mailing, sometime in September
There're going to be a lot of new proposals and revisions of older ones
 
ah that is actually the newest
Looks like the mailings aren't available to the broad public..
 
8:56 AM
@Nils "Significantly improve build times of large projects" sweet
 
Yeah that is what I do not understand. IMHO this is quite important.
 
ok i'm doing a little database, and due to rusty SQL i'm using php admin as a front-end
now i want to add an index column to existing table
and the front end generates following sql:
 ALTER TABLE `schedule` ADD `id` INT NOT NULL AUTO_INCREMENT FIRST ,
ADD PRIMARY KEY ( `id` ) ,
ADD INDEX ( `id` )
of course db protests since there is already primary key
why does it add "ADD PRIMARY KEY"?
 

« first day (671 days earlier)      last day (4291 days later) »