« first day (666 days earlier)      last day (4287 days later) » 

9:03 PM
is strtok a good function to use or is there a better alternative
 
No, it's not. Yes, there is.
Boost.Tokenizer for one.
If you're ever thinking "is that function from C library good to use", the answer is no.
 
how does it work
i dont understand strtok
does it copy a part of the string and store it in another place in the memory
or what does it do
 
Dammit, MS. Your keyboard thingy update broke my global shortcuts.
strtok is broken. Don't use it. Don't think about it.
 
broken how
 
strtok is for C programmers, i.e. losers.
 
9:10 PM
It's not reentrant. It's not thread-safe. It modifies the input. It uses C strings.
 
0
Q: Android Development: "thread exiting with uncaught exception"

StickFigsI'm trying to create my first Android App (a game) but I'm having some difficulties getting started. When I run my code I get this error log: 05-25 02:41:51.022: WARN/dalvikvm(634): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 05-25 02:41:51.040: ERROR/AndroidRuntime(63...

 
It's not safe. It doesn't work. Forget about it.
 
This thing has 10k+ views, and of those a whopping two people voted.
 
i just wanna have a general knowledge of what is does
not neccessary use it
 
@R.MartinhoFernandes You think it should be closed?
 
9:11 PM
Except it does what it sets out to do wrong.
So you don't want to know what it does, because it's not useful for anything.
 
@NikiC Dunno, TL;DR. Now that I think about it, that may explain the view/vote ratio.
@CatPlusPlus It's all in the docs anyway.
 
Simple tokenizing is trivial: just go forward until you hit delimiter, then put that entire portion of the string into a container.
Repeat until you run out of the string.
Why does Microsoft Keyboard and Mouse Center include Healthy Computing Guide.
 
@CatPlusPlus Because you can get nasties in your hands?
 
@R.MartinhoFernandes Didn't read it either ^^ Questions of that length are usually Too Localized
 
@RadekSlupik I think we discussed it earlier. I think gnome-terminal is the best, konsole, xfce terminal and the rest pretty much share the feature set (except for on the fly font resizing with keyboard shortcuts).
 
9:18 PM
I installed Terminator.
 
Tabs are better than screen for local desktops, because tabs are easily reordered and detached/attached
 
It can do splitting.
 
I think they all can. IIRC. If I need splitting, I'm using screen anyway
 
I only use screen for the detachiness.
 
The most important features of a terminal emulator, for me, are:
1. speed
2. utf8
3. font resizing
4. tabs
5. fullscreen + no-scrollbar appearance
@R.MartinhoFernandes which rocks
 
9:22 PM
It's the feature IMO. All the rest I find very very secondary.
 
Yay, my Shift+Play shortcut works again!
Screw you, Microsoft Mouse and Keyboard Center.
 
lol
 
I'm bored.
 
Me too.
 
same
trying to determine logic for optimizations for my SHA-2 solver
 
sbi
9:33 PM
It's one of the privileges of the youth that they can be bored. I wish I was bored once in a while.
 
it's not trivial stuff
 
sbi
Indeed, boredom isn't trivial. That's rocket science. Yet, when I was younger, I could do that.
 
the difference is, I wouldn't mind doing some rocket science
 
I am designing a note-taking application with a web interface and a CLI. :P
 
Hmm. This beer is good.
Probably a bit too cold though.
 
9:38 PM
That's possible?
@RadekSlupik No wonder you're bored.
 
sbi
@EtiennedeMartel I used to not like beer from the fridge. Now I can hardly imagine beer being too cold.
 
I am not bored anymore.
 
You should learn Haskell some more.
 
No.
I do that occasionally, but not now.
 
sbi
@EtiennedeMartel Oddly enough, I don't feel like having beer tonight, though. That probably has something to do with me sitting around a fire, chatting, and drinking beer until 5am last night. :) And I did need to be up at 9am today. Plus I was swimming today, and rode my bike there and back. I am very pleasantly tired now.
 
9:43 PM
@sbi Well, it's a dark lager.
 
sbi
@EtiennedeMartel Ah.
Mhmm. Maybe I should have a beer tonight anyway? Considering. :)
 
Figure I'd finally get to try that 500 mL bottle I had in my fridge.
 
@sbi So... are you training for the biathlon/triathlon?
 
sbi
@sehe Mhmm. If so, the third kind of sport would be sawing off trees. :)
 
lol
 
Ell
9:46 PM
hey guys
 
@sbi You are training to be a ... lumberjack?! Gasp
 
@sehe And he makes fun of Canadians? Pff.
 
sbi
I sadly had to cut off a sizable portion of our apple tree, because it threatened to fall apart and onto our heads. Unfortunately that was the part the shadowed the place our table is on the lawn. No more sitting in the apple tree's shade. :(
 
@sbi Well I'm a bear. The lumberjack stories I witnessed up close usually had a little twist: somehow, sadly said lumberjack felt the need to cut off a sizable portion of one of their limbs in order to flee me.
I missed lunch twice in that fashion
 
I am a human. I am superior.
 
9:49 PM
@RadekSlupik I thought you were a bug like thing?
 
@EtiennedeMartel No?
 
inb4 hexapoda
 
FUCKED UP.
 
nubbery
man
 
Who is fucked up?
 
9:49 PM
why didn't I commit this stuff to source control sooner
 
yo momma
 
Ell
Yay haskell parser that parses EBNF then parses a file using that grammar! rosettacode.org/wiki/Parse_EBNF
 
Why doesn't this surprise me.
 
@DeadMG Because you don't learn too quickly
 
sbi
9:50 PM
@sehe Dude, I'd never fall for your lies. Where you live, there's no trees.
 
The Artic does feature quite a bit of no trees.
 
sbi
 
Ell
I think I'm going to dive into python by writing an ebnf parser
 
@sbi You pick a strange reason to dismiss my story. But I guess random noise can best be canceled with random noise
 
@sehe Well, I didn't want it in my public repo, and I forgot that I could ask bitbucket for two separate repositories
 
9:51 PM
@sbi What is that?
 
sbi
@EtiennedeMartel That's my apple tree. Note the stump on the right, and the sawed off branch on the ground. That branch extended all the way to the right of the house, and the table usually was underneath that.
 
@DeadMG Pro tip: If you are afraid to submit something to source control because you have a public repository somewhere, you're doing it wrong
It's called DVCS for a reason
 
I also realized that
 
@sbi Ah. I see.
 
but
you can bet an awful lot of money that the next time I change something that I did want in my public repo
I'd push without thinking about it
 
9:53 PM
Python standard library y u no follow PEP 8.
 
Because python
It has no awesome standardization committee that deliberates for ~10 years
 
PEP8 has some terrible advice in it.
Like not putting spaces around = in function calls. What the hell.
 
@CatPlusPlus PEP8?
 
I actually like that,
 
Is that the name of some drug?
 
@EtiennedeMartel Python style guide.
 
you know
 
@CatPlusPlus = in function calls? What the hell!
 
@sehe Keyword arguments!
 
9:54 PM
call me a monkey, but I've actually been thinking about implementing my own hash table
 
Wokay. I'd say fair game then.
 
@DeadMG Monkey.
 
@sehe foo(bar=baz, qux=meh)
 
@RadekSlupik Also, most of that changed in Py3.
 
@DeadMG Oh, sure, because no one has implemented that before.
 
9:55 PM
Make it clear it is an association, not assignment. Also, the lhs is always a simple identifier
 
@CatPlusPlus I came up with an alternative implementation that's more akin to boost::multi_index
that can be both ordered and a hash table at the same time.
 
Assignment in Python is a statement, so = in function call syntax is unambiguous.
 
and specifically, the original order is "The order of insertion"
then I can avoid unspecified orders of iteration when trying to check my progress and get some more meaningful comparisons.
 
(Though it is kinda assignment, only cross-function)
 
@CatPlusPlus I never said anything is ambiguous. I said: make it clearer. That's exclusively a visual thing. You know, otherwise referred to as style
 
9:57 PM
It's ugly and less readable.
So, no.
 
This beer is tasty as fuck.
 
in Wide I used := for initialization
 
Also aligning with opening parenthesis what the hell.
 
then used that for named arguments
 
sbi
> "The surest sign there is intelligent life in the universe is that none of it has tried to contact us." (Calvin) — Bill the Lizard
 
9:57 PM
Wait. It tastes like garlic then?
 
@DeadMG Then rewrote half of the spec?
 
@CatPlusPlus That specific piece is still intact.
 
@sehe Eh.
Garlic is gooood.
 
sbi
@EtiennedeMartel You're just trying to make me having a beer, too.
 
well
 
9:59 PM
@EtiennedeMartel Tooo French. Il sent l'ail
 
I guess I'mma have to accept that those 5000 states were marked solved by one of the numerous bugs I fixed
rather than actually solved.
 
Ell
I have the wide grammar on my desktop
 
@sehe I do not use that quite often. I prefer to use swearwords ("tu sens le tabarnack").
 
sbi
@EtiennedeMartel We have recently discovered garlic wrapped in tinfoil and put on the BBQ grill. Incredibly great!
 
10:00 PM
@DeadMG That ratio is likely to go down, not up, when you implement your own complicated hash table
 
@sbi Damn, too bad I don't have a BBQ.
Actually, I had one at one point, but I lost it. Don't ask me how I managed to do that.
 
@sehe It's not complicated at all.
 
@EtiennedeMartel They can be had in stores <5$
 
hell, I can probably make mine both more correct and faster than the MSVC implementation.
 
@DeadMG I didn't imply that. It's complicated in comparison to a straight up implementation
 
10:01 PM
actually, I think that mine is the straight up implementation.
much like I believe that LR is the most natural parser implementation, not LL.
 
i have not yet used the standard library's hash table
it feels so foreign
 
I make significant use of them
 
@sbi If you happen to have tasty beer in your fridge (and not "cat piss with alcohol"), then go ahead. No need to get drunk, just one beer will do.
 
@DeadMG just an acquired habit, i guess. whenever, i just use a std::map.
 
Ell
aren't some of wide's rules left recursive?
 
10:04 PM
he he
 
@Cheersandhth.-Alf That's gonna hurt when he hits the bottom of the tub.
 
I can't use non-hashtable mapping with a clear conscience.
 
@Cheersandhth.-Alf that's gonna hurt, first and foremost
 
sbi
@EtiennedeMartel I am sure you can also do this in the oven, too. Peal the cloves (gigantic single-clove garlics are best for that), salt them, and wrap it in tinfoil. Put into the oven at, well, I'd guess 200°C, but you'll have to find out for yourself. Somewhere between 30-60mins, they should be tender, and a tinsy bit caramelized. Serve with herbs and butter.
 
I never need ordering anyway.
 
10:04 PM
@Cheersandhth.-Alf IME, why use an O(log(N)) container when you could use an O(1) container?
not to mention that IME it's easier to fuck up a SWO than it is to fuck up a hash function
 
@sbi You're making me hungry.
 
well, i would have to learn the new container?
 
sbi
@EtiennedeMartel That's my revenge. :)
 
@sbi I think 200 degs is a bit too high, it would render the garlic burnt in my oven
 
well, it's basically the same as std::map, really.
 
10:05 PM
@sbi But, thanks to this delicious beer, I can wait.
 
@DeadMG SWO == WTO?
 
sbi
@sehe Mhmm. Even wrapped in tinfoil? I figured the heat on the BBQ grill might be even higher, you know.
 
@sehe Dunno. Could well be.
strict weak ordering, weak total ordering?
 
Ell
or just buy a disposable bbq
 
@sbi I'd bet the BBQ is less heat, but I have little evidence to back it. I kind of forgot about the tinfoil
@DeadMG yup. Map requires WTO
 
10:07 PM
then yes, SWO == WTO
 
SWO sounds like a largish contamination/oxymoron
 
sbi
@sehe No, I don't think that. I can rather easily put my hand into a oven heated to 200°C (according to my oven thermometer, not to the knob's scale), but there's no way I keep my hand above the coals at the grill's level. It'd start to sizzle within 10secs.
 
A sizziling ape. Now that would be funny.
 
sbi
@EtiennedeMartel See, I'd give you the victory of having made me drink a beer if you'd made that BBQ'ed garlic. Deal?
 
sbi
10:11 PM
@EtiennedeMartel Well, no beer then for me, tonight.
 
Ah, come on, it'll go right down to your calves.
The feeling will be fantastic.
 
sbi
No. I had some orange juice instead. That was very great, too.
 
You could have dumped some vodka in that juice.
 
sbi
And why would I want to spoil good orange juice?
 
hell, why would you want to waste good money on vodka
 
10:18 PM
@sbi Because unicorns are cool.
 
sbi
@EtiennedeMartel No, they aren't.
Really, I always considered this unicorn hype extremely silly.
 
sbi
"Image not found"
 
Damn. What is it and your crazy proxies?
 
@sbi Apparently, grilling != BBQ-ing:
> Grilling temperatures are usually in excess of 500 degrees Fahrenheit
> Barbecue temperatures are usually between 200 and 300 degrees Fahrenheit. This low heat generates smoke, and this smoke gives barbecue its characteristic flavor
 
10:22 PM
@EtiennedeMartel I also did not find, and clicking it led to funnyjunk.
it should be illegal to link to that site
 
Alright, alright. My Googlin' was sloppy
That should work. I hope.
 
yep
 
sbi
@sehe Oh, I didn't know. Mhmm. When I was in the US, I only ever heard the term BBQ, so I thought that's what they are using.
 
@sbi That's what I use.
 
sbi
@EtiennedeMartel Same here as for @Dead.
 
10:24 PM
@EtiennedeMartel Nothing. It is not our proxies. It is the content owner's anti-hotlinking policy. Just upload using the 'Upload' button
@EtiennedeMartel You can probably see it because your browser carries some cookie that shows you are actually visiting the site. Or the 'referrer' url is getting used to fend off traffic from other sites
 
@sehe Hmm.
This is way too complex for my little drunkard brain.
 
Well, here is the hint: it doesn't just say "image not found" (there is no 404). It actively redirects to ... an image that says 'image not found'... :)
 
sbi
@sehe http://or.cdn.sstatic.net/chat/img/ImageNotFound.png
 
That one
 
Hint: sstatic.net is owned by Stack Exchange.
 
10:28 PM
Hmm. So, prolly, the oneboxing thingie tries to imgur the image, and fails because of the referrer url or a missing cookie
 
sbi
@CatPlusPlus That being my point.
 
@sbi I know.
 
I still get the appropriate one boxed image.
 
@EtiennedeMartel Cache.
 
sbi
10:29 PM
@CatPlusPlus I know you know.
 
The damn cache.
 
sbi
@EtiennedeMartel Shift + F5
 
@sbi On Chrome? Ha.
 
sbi
@EtiennedeMartel Well, nobody forced you to not to use a sane browser.
Anyway, I guess I better go to bed. I am so tired, I have a hard time typing.
Good night, folks!
 
@sbi Chrome is the fastest browser on the market. I want those HTMLs and those JavaScripts to render super fast.
 
10:31 PM
night night
 
Ell
nighty night :)
 
perhaps
perhaps a repetitive variable scan will yield useful properties
 
Thanks, that fixed the issue in Qt and Visual Studio, fixed a very annoying problem for me!Though, there's a warning thrown from the use of TO_STRING; warning C4003: not enough actual parameters for macro 'TO_STRING_AUX' any ideas how to solve? — sixones 2 hours ago
^ The users of SO demand perfect answers.
 
Ell
10:55 PM
time for me to go to bed
nighty night all
 
night
 
hi folks. suppose I compile a C++ program in linux and it tells me "error: iostream.h: No such file or directory". How would I locate iostream.h?
 
@Jeff don't. use modern and standard <iostream> instead.
 
11:11 PM
@Cheersandhth.-Alf ok. note that I downloaded the program from a tutorial (here: cs.cmu.edu/~gilpin/tutorial) which page says "last modified in Aug 2004". :)
 
@cheers that worked. it got by that error
but now I get
main.cc: In constructor 'Node<T>::Node(const T&, Node<T>*)':
main.cc:17: error: 'cout' was not declared in this scope
main.cc:19: error: 'endl' was not declared in this scope
 
add a using namespace std;
or use qualified identifiers like std::cout
 
damn
I'm playing Starcraft 2 and I made a Jihad Jeep
and it's super effective
 
but why the clamn?
 
11:17 PM
@DeadMG lol
 
because it's a rockin idea
 
har har
 
does strtok affect the string
 
we were losing this game and now we're gonna win
 
@cheers whew! i replaced all those errors with std:: (i'm too green to do the other thing you instructed). thanks
 
11:21 PM
no problem
 
@MohamedAhmedNabil yes. It is documented pubs.opengroup.org/onlinepubs/7908799/xsh/strtok.html
 
^ Now playing the black album :-)
 

« first day (666 days earlier)      last day (4287 days later) »