« first day (825 days earlier)      last day (4132 days later) » 

6:00 AM
@Rapptz Pat pat. You tried.
 
@Rapptz link?
 
1
Q: Selecting area rectangle on desktop

William ThomasI'm trying to create an application in C#.NET that mimics the ability of the Windows 7 snipping tool, where when the application is run (or by a particular keystroke or however I choose to initiate it), the user can draw a rectangle on the screen no matter which window has focus, in order to capt...

Honestly, it's a legitimate question.
 
Too Localized is the wrong close reason.
If anything, it'd be NARQ.
 
But it is a real question.
:(
 
I don't completely understand the question.
So I can see NARQ as being a possibiliy.
 
6:03 AM
how do you make a rectangle and get the bounds from it
so you can use it in the Graphics.CopyFromScreen() method
 
0
Q: How would I search the memory of a process for a specific string?

JohnI'm interested in the basics. I have no idea where to begin with this. I've created this test program: #include <stdio.h> int main() { char* test = "TEST04560"; getchar(); printf("%s\n", test); } I know how to use ReadProcessMemory and WriteProcessMemory but I don't know how...

^^ Can't something like that be abused?
 
I think the c++ tag should be removed
wow talk about de-contextfying lol
he added back the c++ tag
 
@ScottW 1960's are out. Still a while before we get to the 60˚s Celsius.
 
@Potatoswatter or 2060ies :p
 
@ScottW They say acid is hard to obtain these days.
 
6:08 AM
@melak47 Eh, those two things will probably happen about the same time.
0
Q: Levenberg optimizer halts quickly when given more variables, or fewer constraints

PotatoswatterI'm using the g2o C++ optimization library to refine a GPS trajectory using accelerometer data. The program uses a Levenberg-Marquardt optimizer over data points representing the position and orientation (vector part of quaternion) of the accelerometer. The only constraints are the accelerations...

 
That's a lot of very long tags.
 
@Mysticial I have the same question posted on Computational Science, and the corresponding tags there are shorter… but the Q got not a single view so far.
 
Damn the entire newssite here is dedicated to armstrong.
 
@StackedCrooked ?
 
@melak47 Not?
 
6:15 AM
I don't know what you are talking about, so..."?"
 
Now we just need Oprah to admit doping. I mean, how did she bulk up so fast?
 
@melak47 Where are you from?
 
Germany
 
What is a popular news site in Germany?
 
idk.
 
6:17 AM
^ Armstrong
 
oh. that armstrong
 
I don't follow sports so I'm surprised that this is such big news.
 
@StackedCrooked spiegel.de
 
Right. I remember that from my German classes.
 
@StackedCrooked Armstrong was a hero even to non-sports fans. He sold bracelets to raise cancer research funds, and promoted physical fitness as opposed to just watching sports.
Which is why I don't give a damn what he did with his own body. The doctors told him he was gonna die, so he started doing drugs. Good choice in my book.
 
6:23 AM
Is bicycle racing a popular sport in US?
 
@StackedCrooked Equally popular worldwide, far as I can tell. It helps to have a local celebrity but otherwise no. He was/is his own personality.
 
In Belgium it's probably the most popular sport after soccer. I never watch it though.
 
@StackedCrooked You have consistently hilly terrain, far as I know. USA is quite varied. And people are lazy.
 
We even have our tour :)
@Potatoswatter I don't think our land is consistently hilly.
There are parts. lol
 
I know this place is for c++, but I have a very confusing bit of java code... Is there a better chat I can ask my question on before I bother you guys here?
 
6:27 AM
@StackedCrooked Are there valleys so big it would take driving all day to find a hill? The US midwest is "flatter than a pancake." Basaltic plain IIRC.
 
as for why I am not asking on stack overflow, the question was already asked, except, the answer makes absolutely no sense to me given the situation
 
Belgium is nicknamed 'the flat country' in French.
 
@Potatoswatter lol, have you ever seen Belgium on a map? You can drive through in half a day.
@LucDanton It is? I would expect that for Netherlands.
pays bas
 
Le plat pays (French) or in Dutch Mijn vlakke land is a song by the Belgian singer Jacques Brel, who performed the song in both languages. The success encountered in Paris by his Swiss mentor friend Jean Villard Gilles' Venoge, about an unknown little river, inspired and encouraged him to write the song. The flat country referred to in the song is West Flanders, the region in Belgium from which his family originated. It is a region with many open fields and few trees. Because this landscape is rather typical not only of the West Flanders, but of large swathes of the Low Countries, the ...
@StackedCrooked It's a metonym apparently.
 
Is Brel well known in France?
 
6:30 AM
Quite.
 
Interesting. … Time to get some corn chips and contemplate nonlinear programming.
 
@GeorgesOatesLarsen You haven't read newbie hints? Just ask.
 
@StackedCrooked In the US it largely revolves around the few riders who are competitive. When Greg LeMond was competing, it get popular for a while. When Lance was competing, it got popular again. Even then, however, it's much less popular than, for only a few of the most obvious, (American) Football, Baseball, Basketball, hockey, and Soccer (Football).
@GeorgesOatesLarsen Can you link the question?
 
@ShadowsInRain Thanks, Shadows :) I read it a while ago, but apparently forgot the entire thing.... lovely, time to re-read.... In the mean time, let me explain and link to my question
 
@JerryCoffin Interesting. Actually I also thought soccer wasn't very popular in the states.
 
6:35 AM
Let me create a pastebin of the confusing code
 
@StackedCrooked It's not nearly as popular as the others -- but I'm pretty sure still well ahead of bicycle racing.
 
Baseball is nearly non-existent around here. Which I think is a pity.
 
The code confusing me:
I frankly have no idea how to even interpret that...
It just makes no sense
The hilarity of it is that it apparently works (or at least causes no compiler errors, and the codebase I am working with (not my own creation) seems to be working fine)
 
@GeorgesOatesLarsen I am not Java user at all, but my google-fu is charged today. Seems like getResourceAsStream allows to open resources (i.e embedded files) from same .jar where given class is located.
 
6:42 AM
@ShadowsInRain Well, there are a lot of similarly named functions in java,
but ITexturePack is defined within the codebase I am using (Minecraft)
 
@GeorgesOatesLarsen If I am correct, then given package works really like texture package.
 
@ShadowsInRain That's exactly what it is,
but honestly, that's not what's messing with me
return ITexturePack.class.getResourceAsStream(par1Str); is the killer
ITexturePack is an INTERFACE
.class gets the class info of that inteface
 
@GeorgesOatesLarsen ...and then this interface is just wrapper for reading textures from implementation-specific .jar file.
 
@ShadowsInRain The point is, we are not only calling methods directly on an interface (not an instance of that interface)
But we are also calling those methods from the class-info of that interface
 
@StackedCrooked professional soccer isn't popular in the States (basketball, football, and to a lesser degree, hockey are prolly the main ones) - but kids (esp. elementary school kids) seem to like it (ie soccer)...
 
6:45 AM
or so the code seems to say
 
@kfmfe04 I guess it loses popularity in high school because it's not on the sports program?
 
@GeorgesOatesLarsen If interface is declared in main (Minecraft) package (I guess that is), then implementation just gets resources from that package, i.e. from Minecraft.
 
@StackedCrooked actually, it's available in most HS - there are teams - just at the professional level, it's not really watched
 
@ShadowsInRain Oh wow... I just realized what you are saying
The java Class class also has its own implementation of getResourceAsStream
 
6:47 AM
I guess what happens is, by HS, there are more choices
 
which is totally separate from the one that ITexturePack defines
 
There really isn't football in elementary school, but there is softball (which turns into baseball later)
 
@GeorgesOatesLarsen Simply speaking, this implementation allows to acces resources in package, where ITexturePack resides.
 
There is a bit of basketball during physical education class...
but by HS, as teams form over more sports, somehow soccer falls behind, in terms of popularity
 
hi
 
6:49 AM
@GeorgesOatesLarsen But I am not sure how packages organized in Java.
 
anyone here know how to use qt gstreamer with qt on windows?
 
@ShadowsInRain Thankyou, here, let me explain why I was confused
 
@GeorgesOatesLarsen Okay, buy I will be afk for some little time.
 
@ShadowsInRain Alright! pastebin.com/4n0dwDmZ is what I thought I was seeing
 
@StackedCrooked fwiw, this guy went to my HS en.wikipedia.org/wiki/Claudio_Reyna (one year behind me) - both he and his older brother would just stroll their way down the field with the ball and score... ...no one could get the ball away from them (even with tackle attempts)
 
6:51 AM
but that code would not work, as the java Class class does not implement anything called "FooFunction"
 
@kfmfe04 That must have been cool to watch.
 
yeah - it was just ridiculous - the difference in skill levels (the variance is due to the lack of popularity of the sport)
 
@kfmfe04 Most have baseball starting almost from the very beginning (T-ball, then little league baseball). I've rarely seen software at the elementary school level.
 
software, lol
 
ah... ...it must've been just my area, then - as you now, school districts/programs are highly localized (we had T-ball, softball during phys. ed + little league for afterschool)
 
6:55 AM
I had to look at that for a minute before understanding what you meant. I thought you were saying people are coding in elementary school.
 
@GeorgesOatesLarsen Yes. Class class does not provides FooFunction, but in your example ITexturePack actually provides getResourceAsStream.
 
hehe - fingers quicker than the mind
 
@JohanLarsson You will be proud to know that I got my first WPF application working :D
 
@Rapptz nice, what was it?
 
@kfmfe04 I suppose I could check with my kids to be sure (but not tonight) but what they talk about playing in gym class is baseball (though I suppose it could really be softball anyway). When/where I grew up, it was definitely baseball, but that's only two samples.
 
6:56 AM
@JohanLarsson Screenshot utility.
 
Did you check out the thing I spammed btw?
 
The wtfs/minute thing?
 
@GeorgesOatesLarsen If you rename (virtually) getResourceAsStream to getTextureAsStream, it will be easier to understand.
 
I did, but I don't know what it does.
 
6:57 AM
it does almost nothing, changes value with musewheel :)
You did not become a reg in the wpf room?
 
@JerryCoffin my guess is, it's prolly highly depend on the area - if they happen to be serious about baseball (eg good little league teams), there's a higher chance of baseball in gym class. Otherwise, they wouldn't let us near a hardball, for safety reasons, during gym class...
 
We are a few now, still mostly low traffic.
 
@JohanLarsson :( well I don't use it mostly.
I'm trying to add one of the final touches to my tool but I don't know how.
 
ok, wpf is pretty painful in the beginning, I'm very much in the beginning all the time
 
fwiw, in Japan, they even use hard rubber balls for most of elementary school.
 
7:00 AM
@Rapptz what is it? (I need to run in two minutes)
 
@JohanLarsson Nothing complex I think. Imitating the snipping tool and returning the bitmap produced.
 
0
Q: Is this an instance of a reference-to-non-const binding to a temporary?

Lightness Races in OrbitTake the following attempt at an "inline" lex-cast approach: #include <string> #include <sstream> #include <iostream> int main() { const std::string s = static_cast<std::ostringstream&>( std::ostringstream() << "hi" << 0 ).str(); std::c...

here
pick this mess apart
 
Add the c++11 tag since you're referring to the C++11 standard
 
@Rapptz I was thinking about the feature/touch you wanted to add
 
@JohanLarsson That is what I wanted to add.
lol =[
it'd upload the bitmap produced to imgur
and copy it to your clipboard, like the rest of the features
 
7:03 AM
ah, ok. Will check if I can hack something ugly together
 
@kfmfe04 Which somehow reminds me of something that happened when I was in high school. They decided we should learn golf, so they had us hitting golf-sized wiffle balls in the gym during the winter, then in the spring we got to go to the local golf course to play a round. When everybody else was finished, there was a group of cheerleaders who weren't even close enough to be in sight yet. Finally found them at the third hole -- using wiffle balls on the course.
 
@Rapptz nice idea, I have been looking for that tool, there are imgur addins for chrome that does that I think
bye
 
bye
 
@JerryCoffin damn - you had Golf in your school? nice!
 
@kfmfe04 Well, sort of. It was really pretty comical. Only had enough clubs for each group of four to share two clubs (a few had three). As I recall, the group I was in didn't have a putter at all...
 
7:06 AM
@Rapptz should be the default nowadays. C++11 is C++.
 
for some weird reason, even though we had a US Open Golf course in our town, http://en.wikipedia.org/wiki/Baltusrol_Golf_Club
golf wasn't available as an option in HS...
 
@LightnessRacesinOrbit Yet the tag still exists to separate it due to the ongoing lack of full support from all major compilers or the inability for people to switch to a decent bug-free standard compliant C++11 compiler.
 
ok
honestly I'm not fussed as to which standard is used. though the wording has no doubt changed, the rules shouldn't differ for lvalue refs in this context
 
Yeah I figured, I was just saying. If I cared that much I would have retagged it myself, but I don't.
 
7:09 AM
Oh yeah
I forgot to tell Martinho about ptrptr.
 
@ThePhD ptrptrptrptr?
 
I'm off again now. Off work for a bit and my natural nocturnalism has taken over by force. 7am :(
 
@R.MartinhoFernandes I actually did something useful with @MooingDuck and came up with a good way to create an 'Address Of` for std::unique_ptr. It was mostly for com initialization. The name ended up becoming ptrptr, so we haven't really solved the name problem yet: stacked-crooked.com/view?id=09acbd607d45bb941fcde44f572f50b9
 
@LightnessRacesinOrbit It's not relevant to your question, but I can't reproduce your results with the first snippet. I get hi0. Have you taken into account the catch-all operator for rvalues?
 
@LucDanton I haven't
probably best to stick with C++03 after all then
 
7:13 AM
Okay.
 
Well let's see what happens. I'll fix the quotes in the "morning" but if all hell has broken loose by then I'll probably delete and re-ask
it's not very interesting, anyway. trying to post a decent question but have been lacking inspiration lately
 
I thirst for vengeance.
 
@Rapptz AdressOfPtr seemed too wordy
ptrptr is nice and short
ptrptrptr, though... that's where I would draw the line.
 
ptrptr doesn't make sense
 
ptr of a std::unique_ptr
&somepointer is a pointer's pointer.
Therefore, ptrptr, or T**
Still, I'm definitely open to naming suggestions.
 
7:19 AM
stupidthingnoonehasauseforexceptme_ptr
 
@Rapptz Everybody who ever has to deal with COM has to deal with that if they use a std::unique_ptr.
So, everyone who develops on Windows. :3c
 
@Rapptz I have a use for it
 
pfft windows.
 
pfft Rapptz :p
 
I wonder if Linux has any functions like that...
 
7:20 AM
my windows explorer broke today, ironically I complimented it today
and today is the first time it has failed me
 
don't do that silly, it'll think it's done its job and can slack off :p
 
You always treat Windows like shit. Give it an inch and it'll become a fat lazy bastard.
 
been like this for all my folders for like, 15 minutes now
;_;
 
@Rapptz Probably a hard drive problem.
 
so I'm using my browser to browse through my files like some sick barbarian.
 
7:22 AM
Oh.
 
tried killing all explorer instances?
could be the stupid search/indexing service, too
 
could try I guess
 
YOu cna use WinRAR / 7zip as file explorers too, I think.
 
pretty sure Windows Explorer is FUBAR
I trusted you ;_; why'd you do this to me Windows.
 
I'm not sure what you did. xD
 
7:28 AM
See, I did nothing. I downloaded something and went to check it out in its folder and well, this happened.
 
Hm.
Try to see if you can move the file elsewhere and then open hte folder.
If you can do that, you know the file is real fucked up
and should be nuked ASAP
 
It's a .cs file
You know.. C#
 
Oh.
Well, I dunno what in the world
is going on with your File explorer.
 
yeah I don't know either
 
@Rapptz Use explorer++ for the meantime.
 
7:31 AM
is this one of those things that will make me never go back to Windows Explorer
torture.. I have to open the folder to get to the .exe nvm used 7zip
I don't get it.. explorer++ opened it instantly, why is Windows Explorer being such a little bitch
 
is it possible to lambda capture a reference to a member variable?
[&this->m_i]() { }
seems to cause problems in gcc
 
you can do [this] but I don't think it's what you want
 
I don't wanna copy T_T
 
@kfmfe04 You cannot use arbitrary expressions in a capture clause.
 
well, it's a pointer, maybe that's ok
 
7:37 AM
@kfmfe04 Capturing this doesn't copy.
 
@LucDanton It copies! The pointer anyway. :)
 
@LucDanton as long as I know the lifetimes are ok, I'm safe, right?
 
@MarkGarcia There is no pointer. this is a pointer value, but doesn't refer to a pointer.
@kfmfe04 Yes.
You can also do auto& ref = whatever; and then capture &ref.
In a sense you 'convert' whichever arbitrary expression you can't capture directly into a local (reference) variable and then decide how to capture that.
 
hehe passing this by value seems to be ok - I guess the this inside the lambda has a different mean, in a sense...
 
@kfmfe04 Actually it works precisely because it's the same scope, and hence the same this.
 
7:41 AM
@melak47 @ThePhD what where you two upto last night?
 
@thecoshman Blowing your mind.
 
making ptrptrptrptrptr
 
Check the clounge's account settings on Bitbucket, particularly the Plan.
 
melak so blunt
it's like he's never heard of surprises
 
I know right? Doesn't even let them be pleasantly surprised.
Just WHAM.
Pow, right in the kisser.
 
7:42 AM
it's okay melak, we still love you
 
So much love. <333
 
ptrptrptrptr!
 
not that I mind... but who gave you admin permission for it?
 
ptrptrptrptrptrptrptr
 
@thecoshman details are in the wiki. lolz
I was surprised, too
 
7:43 AM
strange... that landing page for bitbucket seems to not want to tell me things have changed
 
@thecoshman landing page?
 
dashboard
 
can you link me to particular wiki page the explains it
apparently telling me what has changed is no longer a concern of bitbucket
 
Uh. It's wiki / Getting Started
 
@thecoshman oh, eh no there's a wiki page with the password for the clounge account
 
7:44 AM
Oh wait what
 
@LucDanton seems like a "sneaky this" though - in the sense that I can pass it through to a lambda function and still call it "this" (I mean, I can't get away with calling it "this" with a named function)...
 
^ What @melak47 said.
 
that's how we got in :3
 
lmao
that's fucking amazing
pro hackers
 
@kfmfe04 That's what 'same scope' means.
 
7:45 AM
huh... I didn't realise that was for admin access
 
@Rapptz do we qualify as white hats for giving the "hacked" party free stuff? :p
 
got to say, not so sure about this academic group thing
not sure what exactly it entails
 
it's for students
 
@thecoshman as far as I've read on BitBucket, nothing
except that you get the $200 plan for free
 
dang, $200
 
7:47 AM
@Rapptz yeah, that's what I am thinking, I am not a student
 
It entails everything a free account gets (free repos, unlimited), but now it's also Unlimited Users (because we be stuuudennttz)
 
@thecoshman but the admin is
 
All we need is one e-mail. :3c
 
@thecoshman that's what teams are for, for sharing your plan with other people
 
@Rapptz which is strange, because I still only see myself and dead as the admins of the group
 
7:47 AM
It doesn't matter who gets invited, as long as the 'owner' is a student.
 
@thecoshman you are
we didn't mess with any of that
 
ah well, I don't know how it works
Maybe if you have 1 person then everyone gets it
 
no - we added my student mail to clounge's email addresses
 
Ah, I see.
 
@ThePhD yeah... but I don't any changes, other then unlimited users... what did you change for this to happen :P
 
7:49 AM
40 secs ago, by melak47
no - we added my student mail to clounge's email addresses
that :)
that's all.
 
oh I see it now
 
@thecoshman The e-mail address for the clounge's account was made to be @melak47 Student e-mail account. Being one that bitbucket has seen before, it automagically updated the account for free unlimited repo users.
 
@LucDanton ty - makes sense now
 
The primary e-mail address should still be @CatPlusPlus 's e-mail address (if I'm correct).
If Bitbucket had failed, I had also jimmied up a Student Account with free access on Github too.
But thankfully we don't have to go that route and can have ourselves a good ol' sexy time with Bitbucket and Mercurial.
 
any hoops, I've got to head to work
 
7:51 AM
Hokay. Have fun!
 
@ThePhD with a templated struct, I can get as close as "Com<ID3D11Texture2D>::ptr"
 
@melak47 That might do the trick, but is also a bit... complicated
Still, it does work.
 
so, when is vc++ getting templated alias thingies ;_;
 
well, snow everywhere here today
 
@melak47 Never ever in a million years.
 
7:57 AM
why not? variadic templates are coming
 
clam juice
 
@melak47 Not entirely full variadic template support.
Oh, boy...
I have no idea how to use Scons or anything else here...
 
hehehe :3
python scons/scons.py
from the commandline
 
What's that... supposed to do, though?
 
build stuff
 
8:04 AM
Mother fucker
I don't have Python
 
?
that's a problem :D
 
download it
doesn't take long
 
Oh
 
you know..
 
I do have python
It's just not on my PATH
 
8:08 AM
Intellisense in C#.. is pretty nice
 
Lovely
 
I'm not going to lie.. it basically codes for me..
;_; I feel spoiled.
 
C#'s intellisense rapes every other intellisense in the world.
 
codes is not a thing
it's Code!!!
 
codes is a verb in here, not a noun
 
8:09 AM
meh
 
if I have a method in a WPF window, do I call it like anything else?
 
.... Uh
 
@Rapptz codes is not a verb silly
 
sure sure
I don't understand.. I don't even know C# that well but I haven't had this thing fail to compile once on me.
and I swear half the things I'm doing are retarded
 
8:27 AM
yeup, server broke again last night
(╯°□°)╯︵ ┻━┻
 
Xeo
Mornin' ducks under flying table
 
Mornin, watch out for tables.
 
Xeo
@Rapptz Well, C# is rather easy to parse unlike C++, and the same company sits behind both products. ;)
I do think they'd want both to function well together.
Also, did you try R# yet?
 
No
 
Xeo
I heard it blows.
 
8:34 AM
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Xeo
4
Q: Is there a way to specialize a function between compile time and run time?

balkiWith constexpr, A function can be evaluated at compile time or runtime depending upon the arguments. But usually, the algorithm has to be different between compile time and runtime. Eg. Consider the constexpr version of factorial. constexpr int fact(int n) { return (n)?n*fact(n-1):1; } If n h...

sigh
 
ahahaha finally
 
Xeo
room topic changed to Lounge<C++>: Hoping for a build-fail. [.you-suck] [c++] [c++11] [c++-faq] [get-out] [no-questions]
 
Wouldn't you find it weird if you're coding something new in a language you haven't coded in at least 6 months and you haven't had any build failures?!?
 
@Rapptz I consider it weird if I'm coding something in the same language as I used yesterday, and I don't have any build failures
 
8:38 AM
oh man, I can't believe this works.
@jalf See, I get more errors in C++ in a day than I just did with C#.
 
@Rapptz that can be a good thing though. C++ lets you catch more errors at compile time :)
 
shit... work to do
 
Xeo
@thecoshman Oh noes, gotta do work at work... :O
 
and here's me hoping I could dig through server logs to see what it locked up
 
user142019
Damn.
 
user142019
8:45 AM
My toes are frozen.
 
user142019
Vans y u no keep cold outside.
 
user142019
I y u no buy new shoes.
 
user142019
Not that I wouldn't buy Vans again.
 
8:58 AM
lol
 
lol indeed
 

« first day (825 days earlier)      last day (4132 days later) »