« first day (762 days earlier)      last day (4180 days later) » 

10:01 PM
Oct 11 at 15:59, by thecoshman
crap on toast @MooingDuck only just noticed it's 'mooing' and not morning or mooning
@Xeo "<TemplateVariables>\r\n\r\n <Variable type=\"auto\">\r\n <Name>Sender Name</Name>\r\n </Variable>\r\n <Variable type=\"auto\">\r\n..." interesting thing to stick in an SQL database...
 
:)
 
@MooingDuck soooo, it includes spurious newlines then?
 
@sehe apparently
 
piwate spelung
 
I wonder if something in our code copies this to a file at some point.
I can't make notepad nor MSWord replace those with actual newlines
 
Xeo
10:07 PM
Write a program to do it!
 
http://ideone.com/tKdQt7
I want to detect non-numeric input via cin >> temp
 
@DiscreteGenius Search on SO. This is a multi faq
 
@Xeo tried to use perl but I can't post that much in the command line
 
@MooingDuck replace those "what"? Oh that.
@MooingDuck UNIX filter? perl script.pl < input.txt > output.txt?
 
@sehe Thank you. I'd still like to know why this function isn't returning true since clearly this is a digit.
 
10:11 PM
Anyways, sed 's/\\r\\n/\n/ :)
@DiscreteGenius Oh. Just looked. isdigit takes a char, not a double. So, it expects e.g. '0' or '7' :)
 
Xeo
@sehe No, it takes an int because of C :)
But it's still true that it expects a "character"
 
Yeah I just realized it probably takes an int :)
 
@sehe I just pulled this off cppreference
int isdigit( int ch );
http://en.cppreference.com/w/cpp/string/byte/isdigit
Looks like it takes an int according to that. Or did I overlook something?
 
@DiscreteGenius Well. No, you found exactly the information you were looking for. Good luck!
 
@sehe but I've tried it with int (instead of double) and it still fails.
 
Xeo
10:14 PM
@DiscreteGenius the ch parameter name should tell you something. And the description should too.
 
@DiscreteGenius Well. Remember to actually read the documentation. Don't forget to engage brains :)
 
@sehe windoze
 
@DiscreteGenius Here's one nugget to keep you occupied: ideone.com/u7JOZJ
@MooingDuck You keep bringing that argument. I use sed on windoze no problem
 
@sehe I have mingw, but no sed
 
@MooingDuck so how do you get perl?
 
10:18 PM
@sehe good question. I dunno. Apparently it's on all the dev machines at my work.
 
is anybody here a millionaire?
 
@MooingDuck Anyways, cygwin does wonders. Of course Msysgit is used by many who practice git on windows. I still use cygwin since it beats the competition, for all it's minor irks and flaws
 
Nope only one of us even has 100k...
 
@DiscreteGenius Not yet. Are you here to help with that?
 
@sehe no ;)
 
10:20 PM
the frick? I have VIM on here? What was my predecessor doing?
 
@MooingDuck Achieving sanity?
 
@MooingDuck Vim is important
 
vimportant!
@MooingDuck Anyways: vim :%s/\\r\\n/\n/g (I guess)
@MooingDuck What vim by the way, in mingw or gvim.exe (the 'GUI' version)?
 
@sehe both, I can't figure out how to use the console one, and the search and replace in the GUI uses escape codes for the matching string, but not for the replacing string
 
10:23 PM
@MooingDuck So, use the fugly command I gave? I mean, :se guioptions=agi fixes the distractions :)
 
@sehe that means I have to figure out how to open the file in the console version, or find a place to enter commands in the gui
still working on that
 
user1182183
I can't figure out how to create a custom trigger for Windows Task Scheduler to trigger when I press Shift+F2, anyone know how? :$
 
@MooingDuck Why on EARTH would the console version matter?
@MooingDuck press :
 
@sehe you gave a console comamnd
@sehe AHA
 
@MooingDuck I gave a VIM command :) (known as 'command mode' or Ex-mode)
Welcome to modal editing
 
10:25 PM
@sehe in the real world I press ctrl+H.
@sehe works
 
cough
 
four hundred lines of XML >.<
 
@MooingDuck Now, luckily there's a menu, or I'd have to teach you :%y+ to put it all on the clipboard
 
user1182183
@MooingDuck that's not much
 
@sehe yeah, I recall using the VIM gui before, learned to use the menus because I couldn't trust the keybindings
@GamErix it is for something jammed in an SQL query
 
10:26 PM
@MooingDuck For fun and adventure: :se ft=xml|1 then =G to reindent
 
user1182183
@MooingDuck hm that yes :p
 
that's enough adventure for today I think
 
@MooingDuck No just try it. You might be amazed. Notepad++ can do that (Ctrl-Shift-Alt-B) but not without extensions, IIRC
 
@sehe "then =G"?
 
@MooingDuck That's just two keys to type :)
 
10:31 PM
@GamErix Not sure how to do that, but Ctrl + Shift + Esc does bring it up without having to go through the Ctrl+Alt+Del screen
 
@sehe ah, no : first
 
@Collin That's what I use
 
user1182183
@Collin I want a application to run with administrator right when I press Shift=F2 :P
 
user1182183
that aplication again, launches other applications
 
@MooingDuck Nope. Which means, it is a 'normal' command, not a 'command-line mode' command
 
user1182183
10:32 PM
some apps require admin right and somehow my application is ON TOP of the windows 7 UAC stuff lol
 
@sehe it was already formatted and indented, that's what all the whitespace and \r\n in the original query were. But it's colored now, that's interesting
 
user1182183
But I have dimming turned off..
 
@MooingDuck the ft=xml is set filetype
@MooingDuck You can destroy the formatting by doing :%< (repeatedly), then try again with =G :)
 
Xeo
@sehe :%< looks like the face of an unimpressed guy with a moustache ... somehow.
 
@Xeo It is Movember, remember
 
Xeo
10:37 PM
Remember, remember, the moustaches of Movember?
 
I dislike Vim's gui. replacing "\\" with "\\" should NOT change my file.
 
@MooingDuck Meh
Why are you replacing it then
 
@sehe I was trying to replace \r\n with actual newlines. Turns out the gui "search and replace" can't do that. I can search for newlines, but not insert them.
 
@MooingDuck Meh. you keep telling me that. Don't use the GUI, it's for noobs. I can't imagine a single Vim user actually using that
 
Anyone care to review my malloc sandbox which is located in this directory. I don't really know whether it is easy to circumvent.
 
10:44 PM
@StackedCrooked Thread safety ! Make the gSum atomic or something
 
@StackedCrooked that can't take deallocations into consideration
 
@sehe Right. I knew I forgot something..
 
Xeo
@StackedCrooked Is that for the online compiler?
 
@MooingDuck I know. For now I'll settle with that.
 
@StackedCrooked :(
 
10:45 PM
@Xeo I intend to.
 
what I'm really thinking is "Does that include new and std::temporary_buffer and all the rest of it as well?"
 
@MooingDuck Well, that would not really matter except for rare cases :) The goal is to prevent abuse, I think
 
Xeo
@StackedCrooked Just run it in a virtual machine and limit per-process memory?
 
@sehe it also prevents programs that allocate and release a lot, even if they don't use much at any one time.
 
@MooingDuck I started working on it!. Feel free to debug the code! :D
 
10:46 PM
@MooingDuck No shit. Well, I guess his buildbot isn't really intended for long-running programs, neither for heap benchmarks :)
 
@Xeo I have looked for tools that do that. Didn't find any (perhaps I just suck.) I did find tools that impose a timeout and restrict access to system calls..
 
@StackedCrooked 1000000 bytes != 1MB.
 
Xeo
@StackedCrooked ulimit or something
 
@MooingDuck Where does it say it means 1MB? 10MB is intendend.
 
@StackedCrooked #define COLIRU_SANDBOX_MEMORY_LIMIT 1000 * 1000 // 1 MB
 
10:48 PM
@Xeo I read this this afternoon.. Apperently ulimit is not fit for that. Wait, perhaps it does meet my needs after all... Arg..
@MooingDuck Ah, that's 1 MB (IEEE) right?
 
@StackedCrooked I dunno.
 
Xeo
You'll just need to disable forking, then limit should work fine.
 
It doesn't matter too much.
 
user1174868
Anyone familiar with scheme?
 
void* p = malloc(500000);
free(p);
void* p = malloc(500000);  //fails :(
 
10:51 PM
@Xeo Forking is already disabled.
 
Xeo
Well then.
 
user1174868
I am having trouble working out how my code is working
 
@Jordan oh, hi again. I remember you
 
user1174868
Hello
 
@Jordan cough. I believe you asked this. "On occasion"
 
10:51 PM
@Xeo Check out my ptrace sandbox :D
 
@Jordan Lemme guess. Statistically speaking, the value of 'how' in that sentence is 'not'
 
@MooingDuck Was mah point :)
 
@Jordan that's sad
 
user1174868
?
 
Xeo
10:54 PM
@StackedCrooked I have no idea about sandboxing or what that code is doing. :)
 
user1174868
There is no scheme chat room and if there was it would be very lonely
 
Xeo
> There is no scheme chat room
No reason to bother other rooms. :)
 
So, my sandboxing measures until now are: run webserver as non-root (on port 80), limit access to system calls (ptrace sandbox), limit memory allocation using my malloc hooker, and limit running time using a nifty bash script that I found on SO.
 
user1174868
It isn't bothering if it is cool, and scheme is tons of cool
 
Xeo
@StackedCrooked And atleast two of that could be achieved with limit
 
10:56 PM
I just spent this evening on the malloc hook program. Perhaps that wasn't needed in the end.
 
Xeo
And lemme guess for the bash script... start the user process and another one sleeping for the max allowed time. If sleeping one wakes up and process still running, SIGTERM it?
 
The most work was the ptrace sandbox. That's really low-level and undocumented.
 
user1174868
I think I figured out my problem anyways, because I am pretty awesome
 
user1174868
and women like me
 
Xeo
@StackedCrooked Heh
 
10:58 PM
@Jordan and that's why most of the people here made it so that they don't hear you anymore?
 
user1174868
@MooingDuck Most people here aren't women
 
user1174868
It is likely that they are jealous
 
I should probably also limit memory usage of the compiler.
 
@Jordan obviously
 
user1174868
Well where else am I suppose to hang out?
 
Xeo
11:00 PM
@StackedCrooked How's @sehe gonna torture it with his Spirit programs then?
 
user1174868
I know two language c++ and scheme
 
@Xeo Not interested
@Jordan With friends
 
@Xeo He can install it on his own VPS!
 
Xeo
@sehe You're just hiding that you like to inflict pain upon compilers.
 
@Jordan Wow. Cheers. Good job
 
user1174868
11:01 PM
@sehe well that certainly isn't online
 
@Xeo Projection!
 
Oct 16 at 18:29, by Jordan
How different is basic java from basic c++? My school uses java for the intro courses but I am learning c++ now
 
user1174868
I just bought the c++ primer, havent done it much yet
 
@Jordan that's what it looks like yeah.
 
11:15 PM
argh
y no decent directx ui libraries? :(
 
user1174868
no hablo espanol
2
 
It’s bad enough I said the word “Twinkie” behind this podium. http://www.youtube.com/watch?v=WJXyipuHlao
^ WTF :)
 
I been using eclipse for java/android/ruby development on linux. For ruby, I use the aptana studio plugin. and so forth. I now have some c++ code to work with. Has anyone here used eclipse with qt? DOes it make sense to do so?
 
@JohnMerlino I think I might have. gparted might have been with that. Of course it makes sense. It is a decent C++ IDE. However, QtCreator comes to mind :)
 
@Jordan do you know what you said there?
 
11:21 PM
@MooingDuck ...
 
user1174868
@MooingDuck What, in spanish?
 
@Jordan yes
 
user1174868
@MooingDuck Yeah unless this is a trick, I took two semesters of spanish so I know basic spanish
 
@Jordan yes well, that's the sort of irony that commonly stems from ignorance, so... thought I'd ask.
 
I feel more comfortable with eclipse than a new ide, so as long as eclipse can suffice with qt development, then I would prefer that
 
11:26 PM
@JohnMerlino give it a shot, see how you like it
 
Ell
has anyone written a complete game? @stacked comes to mind
in 3d
 
For some definition of complete..
And I have never done anything in 3D.
 
@Ell talk to emartel
I did a few homework assignments in 3d, but I did something wrong and all of them came out dog slow.
 
Xeo
@Ell On the PC with Ogre3D, with the Unreal Engine, on Wii with the Nintendo libraries... yeah. Why?
 
Ell
oh. for some reason I remember you having written a 3d puzzle game
@xeo need some advice :3 if you are using ogre3d for example, how do you split concerns of graphics and game logic? do I put both graphics aspects and logic aspects into the same class?
 
Xeo
11:38 PM
In a perfect world, logic and graphic should be strictly seperated.
 
naw
game logic determines the graphics parameters
they have to be at least slightly connected
 
Xeo
That's what I was getting at. You'll likely have atleast that coupling
 
Ell
yeah
 
Xeo
With entity positions and facing etc.
Also particles
What I did in one game was attaching a graphics anchor to the entities, and attaching the actual graphic related stuff to that.
 
Ell
how do the objects interact with eachother? through a "game" class which contains a list of the other objects?
 
11:40 PM
no.
 
Xeo
Depends on what you mean with "interact", I guess.
 
InteractionManager
 
Xeo
lol
@DeadMG I think you need to go through some higher-level object one way or another.
 
Ell
well actually let me go back to the separation of concerns issue. let's say I have a "merchant" which is a unit that travels between markets. When I construct an instance of this, how does it add itsself to the game, and how would it add itsself to the scene?
 
I personally just passed my RenderState straight to the simulation.
 
11:43 PM
@Ell usually there's some sort of "area" object that is a container that contains all interactable in some sort of complex structure. (I think, no experience)
 
hardly optimal though
 
Xeo
@Ell If anything, the game creates that unit and adds it itself.
 
damn
still trying to figure out what I'mma do about UI
 
UI for what?
 
Ell
I'm just thinking, I could have it so when its destructed it removes itsself from the scene
 
11:47 PM
@R.MartinhoFernandes That old "engine" I have kicking around with the local pathfinding.
 
the one that randomly fails with silent errors
 
user1804599
Stupid Google Chrome. 1000 WebGL spheres? No problem. A 20em text-shadow? Hey bro, let's crash! T_T
 
Back to that? When are you getting back to Wide?
 
@Ell probably not. He who puts it in, takes it out. if it doesn't add itself on construction, it shouldn't remove itself on destruction.
 
11:48 PM
@Aardvark 20em? WTf.
 
user1804599
@R.MartinhoFernandes I made a typo in my code and I didn't notice, I meant 2em.
 
when LLVM has decent Windows support and doesn't require VS or GCC to output something useful
cause let's face it, there's no way I'm gonna be able to write my own native code generator, and it's not like there's any competition for LLVM.
 
Xeo
@Ell That doesn't make sense. I normally do it in one of two ways: Whatever is responsible for the unit to actually disappear should remove it, or you set a is_dead flag on the object and check that in the game logic and remove depending on that (we used that for the Wii game)
 
@R.MartinhoFernandes typo, 20m;
 
Ell
right Okay
 
11:50 PM
@Xeo Better to move it to a list of units awaiting destruction. Then just clear the list each iteration.
 
Xeo
@DeadMG That's kind of a mix between the two.
 
user1804599
@CaptainGiraffe meters are not supported, centimeters are though.
 
@Xeo Advantage: the list can be concurrent.
 
user1804599
1em text shadow looks the best.
 
Xeo
@DeadMG Yeah, might make sense if you're expecting to destroy that many objects in a single frame or something.
 
11:52 PM
@Aardvark So where is the shadow to my neck? Giraffes+1 Aardwarks 0.
 
@Xeo Well, I'd say more relevantly that you can destroy an object and write or read to it in some other way concurrently.
and more relaxed concurrency constraints = winner
 
Are y'all good with the new "no homework" policy?
 
Ell
hmm. I wonder how I will manage different regions in my game
 
I find it kinda disingenuous.
 
@CaptainGiraffe What?
@Ell What?
 
11:55 PM
@CaptainGiraffe yes
 
@DeadMG The homework tag has been deprecated, and to my understanding homework type questions are now frowned upon.
 
224
Q: The homework tag is now officially deprecated

Tim PostThe result of a rather lengthy discussion concludes with the homework tag needing to go away on Stack Overflow. As far as tag burninations go, this is quite large, with over 20,000 questions to examine. When the tag is removed, it will be blacklisted - banished to the outer realms and never spoke...

 
@CaptainGiraffe Just the tag. Not homework type questions.
 
@Rapptz I stand corrected. Still the homework tag was a good marker for questions that needed improvement, but mostly were fair questions.
 
Ell
@deadmg in my game, each Map has different regions which you can switch to, it shows a different terrain. is that a different scene manager? different scene node?
 
user1174868
11:58 PM
It would be a bad idea to get rid of the homework tag, the questiosn will just flood other areas
 
@Jordan true. and it is already gone.
 
user1174868
oops
 
user1174868
@CaptainGiraffe It isn't really a big deal, I am sure the people who decide these things knew this and it just comes down to an ogranizational issue
 

« first day (762 days earlier)      last day (4180 days later) »