Members in Shoutbox
None.

Shoutbox Search
Search for:


Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper
/me > Marks as action

Shoutbox Information
Moderators may delete any and all shouts at will.
Global Shoutbox
Please log in to shout.
Pages: < 1 « 1895 1896 1897 1898 18993572 >

[2016-2-26. : 5:22 am]
Corbo -- probably basic
[2016-2-26. : 5:21 am]
lil-Inferno -- jjf28
jjf28 shouted: I like how IDEs are writing code using code which was probably written in said IDE which probably replaced code earlier written in another IDE which probably followed a similar pattern
BUT THEN HOW DID FIRST IDE GET THERE???
[2016-2-26. : 5:08 am]
Dem0n -- jjf28
jjf28 shouted: I like how IDEs are writing code using code which was probably written in said IDE which probably replaced code earlier written in another IDE which probably followed a similar pattern
Yeah, I always wondered about what code IDEs would be written in
[2016-2-26. : 5:07 am]
Corbo -- IDEception
[2016-2-26. : 5:06 am]
jjf28 -- I like how IDEs are writing code using code which was probably written in said IDE which probably replaced code earlier written in another IDE which probably followed a similar pattern
[2016-2-26. : 5:02 am]
Corbo -- somebody summon him before i finish my work
[2016-2-26. : 5:02 am]
Corbo -- Where's Farty
[2016-2-26. : 4:57 am]
lil-Inferno -- Lanthanide
Lanthanide shouted: I imagine that someone earning 100,000 NZ would feel about as wealthy as someone earning 60-70k USD
And because 100,000 NZD is ~68k USD lel.
[2016-2-26. : 3:54 am]
Lanthanide -- just because food, clothing, housing, electricity, fuel are all more expensive here
[2016-2-26. : 3:54 am]
Lanthanide -- I imagine that someone earning 100,000 NZ would feel about as wealthy as someone earning 60-70k USD
[2016-2-26. : 3:53 am]
Lanthanide -- the price of living in NZ is quite a bit higher than the US
[2016-2-26. : 3:53 am]
Lanthanide -- Mini Moose 2707
Mini Moose 2707 shouted: Also, IIRC Lanthanide isn't making USD. (I could be wrong)
yeah, NZD, which is currently roughly 65% of USD, but that's a misleading comparison (it was 85% not too long ago - various things priced in NZD were sometimes cheaper than you could buy them in US)
[2016-2-26. : 3:49 am]
Moose -- Mini Moose 2707
Mini Moose 2707 shouted: Unless I were specifically working on a C++ project, though, I wouldn't touch that level of text parsing in C++ in a million years. ;o
Or unless I needed very highly-optimized and fast text processing of very large text files. But even then, I'd probably learn text parsing for D at that point.
[2016-2-26. : 3:45 am]
Moose -- Unless I were specifically working on a C++ project, though, I wouldn't touch that level of text parsing in C++ in a million years. ;o
[2016-2-26. : 3:45 am]
lil-Inferno -- I know you got a man, but he won't mind if I take you out.
[2016-2-26. : 3:44 am]
Moose -- If you prefer.
[2016-2-26. : 3:42 am]
jjf28 -- basically write a c++ parser :kame:
[2016-2-26. : 3:42 am]
Moose -- This text parsing is a MESS.
[2016-2-26. : 3:41 am]
jjf28 -- though I suppose the multi-line comments would be regex'd out already
[2016-2-26. : 3:40 am]
jjf28 -- err, multi-line comment*
[2016-2-26. : 3:40 am]
jjf28 -- it's a fun problem :P
[2016-2-26. : 3:40 am]
Moose -- ayyyyyy lmao
[2016-2-26. : 3:39 am]
jjf28 -- oh also not within a multi-line quote
[2016-2-26. : 3:39 am]
Moose -- THAT ISN'T PART OF A QUOTE
[2016-2-26. : 3:39 am]
Moose -- LMAO
[2016-2-26. : 3:39 am]
Moose -- THE FIRST UNESCAPED //
[2016-2-26. : 3:39 am]
Moose -- Okay, so just regex everything on the line up to the first // and only parse that
[2016-2-26. : 3:38 am]
jjf28 -- anything that follows "//" (where the first slash is unescaped, and not within a double quote) to the end of the line needs to be ignored
[2016-2-26. : 3:37 am]
Moose -- So what do you want to do with lines that have // comments?
[2016-2-26. : 3:36 am]
jjf28 -- mb, but yea that wouldn't solve single-line comments entirely though
[2016-2-26. : 3:34 am]
Moose -- Though if you want them printed unchanged, then you would have to send them to awk and have awk handle it.
[2016-2-26. : 3:34 am]
Roy -- Rereread.
[2016-2-26. : 3:34 am]
Moose -- Reread.
[2016-2-26. : 3:34 am]
Moose -- starting with whitespace followed by //
[2016-2-26. : 3:28 am]
*jjf28 could devil's advocate this for days :P*
[2016-2-26. : 3:28 am]
jjf28 -- so it wouldn't process lines that had code followed by a trailing comment?
[2016-2-26. : 3:24 am]
Moose -- I'm sorry, meant grep -v
[2016-2-26. : 3:23 am]
Moose -- You could actually just grep -i for lines starting with whitespace followed by // and pipe that into awk's stdin and not even use awk for the // part of it.
[2016-2-26. : 3:22 am]
Moose -- Oh, that might be five more lines of awk. And to be fair, if you wrote that one-liner in a script, you probably wouldn't write it as such for readability.
[2016-2-26. : 3:22 am]
jjf28 -- it's for meta-chkdraft, planning on using this to find all quoted tabs, replacing those with \t's, then replacing all tabs with spaces (after merging with farty's fork)
[2016-2-26. : 3:22 am]
lil-Inferno -- jjf28
jjf28 shouted: Roy neat, I mocked this up http://pastebin.com/imHSJuFH ; ended up needing to account for comments & stuff too
Y'all write some ugly code LMAO
[2016-2-26. : 3:21 am]
jjf28 -- plus idk awk, but you would have to solve the comment problem (taking off // till new lines, and /* */'s) which could be difficult to impossible :P
[2016-2-26. : 3:20 am]
Moose -- Though I suppose if this is for CHKDraft or something, you didn't have much choice
[2016-2-26. : 3:20 am]
jjf28 -- Mini Moose 2707
Mini Moose 2707 shouted: jjf28 322 lines of C++ to do a one-liner in awk. Classic.
only 59 lines of new logic :P
[2016-2-26. : 3:16 am]
Roy -- Go back to the awk ward, Moose.
[2016-2-26. : 3:15 am]
Moose -- jjf28
jjf28 shouted: Roy neat, I mocked this up http://pastebin.com/imHSJuFH ; ended up needing to account for comments & stuff too
322 lines of C++ to do a one-liner in awk. Classic.
[2016-2-26. : 3:15 am]
Roy -- Looks like it isn't perfect anyhow.
[2016-2-26. : 3:15 am]
Roy -- http://i.snag.gy/DN9PV.jpg
[2016-2-26. : 3:14 am]
jjf28 -- Roy
Roy shouted: jjf28 Okay, I figured it out. This will match tabs inside quotes with C# balancing groups: (?<=(?<quote>")[^"\\]*(?:\\.[^"\\]*)*)\t(?=[^"\\]*(?:\\.[^"\\]*)*(?<-quote>"))
neat, I mocked this up http://pastebin.com/imHSJuFH ; ended up needing to account for comments & stuff too
[2016-2-26. : 3:11 am]
Roy -- And it works for escaped quotes. :roy:
[2016-2-26. : 3:11 am]
Roy -- So you'd use that for your find, and replace with \t.
[2016-2-26. : 3:10 am]
Roy -- jjf28
jjf28 shouted: speaking of regex or farlap or something, is there a nice way to find all tabs within quotes and change them to \t ?
Okay, I figured it out. This will match tabs inside quotes with C# balancing groups: (?<=(?<quote>")[^"\\]*(?:\\.[^"\\]*)*)\t(?=[^"\\]*(?:\\.[^"\\]*)*(?<-quote>"))
[2016-2-26. : 2:53 am]
Moose -- lil-Inferno
lil-Inferno shouted: "Nearly 100% of Trump Fans Think the Invention of Dank Memes Was a Bad Idea"
that's right
[2016-2-26. : 2:50 am]
lil-Inferno -- "Nearly 100% of Trump Fans Think the Invention of Dank Memes Was a Bad Idea"
[2016-2-26. : 2:36 am]
KrayZee -- "Nearly 20% of Trump Fans Think Freeing the Slaves Was a Bad Idea"
[2016-2-26. : 2:35 am]
Roy -- But I'm not nearly pro enough for that.
[2016-2-26. : 2:34 am]
Roy -- jjf28
jjf28 shouted: speaking of regex or farlap or something, is there a nice way to find all tabs within quotes and change them to \t ?
Balancing groups would work well for that, which Farlap supports.
[2016-2-26. : 2:29 am]
lil-Inferno -- 1v1 Diplomacy World 2.8S.scx
[2016-2-26. : 2:12 am]
Dem0n -- 1v1 Crystallis
[2016-2-26. : 1:56 am]
Moose -- 1v1 Heartbreak Ridge
[2016-2-26. : 1:56 am]
lil-Inferno -- :farty: fite me in diplo for the rights to the throne imo
[2016-2-26. : 1:53 am]
Moose -- FaRTy1billion
FaRTy1billion shouted: NudeRaider I said like a king, not that I would be a king ;o
Vote :farty: for King 2016!
[2016-2-26. : 1:53 am]
Moose -- dumbducky
dumbducky shouted: Mini Moose 2707 Suppose I have a file of every character
Then do this: Mini Moose 2707
Mini Moose 2707 shouted: Alternatively, you could take the entire line, split it as an array by unescaped quotes and replace inside every second element. Same thing that was exploiting but without changing the field separator. Actually, now that I think about it, you might able to set the field separator with regex to be an unescaped quote, too.
[2016-2-26. : 1:41 am]
O)FaRTy1billion[MM] -- NudeRaider
NudeRaider shouted: FaRTy1billion yeah but that's pretty modest and not close to living like a king. ;) Personally I'd be happy with that too, but I also kind of want to drive a sports car or something fancy like a Tesla. At the same time I really don't need a car at all and I'd be spending so much on something I don't need and just want for fun, so I probably wouldn't do it, even if I could unless money became completely a non-issue for me.
I said like a king, not that I would be a king ;o
[2016-2-26. : 1:40 am]
dumbducky -- Mini Moose 2707
Mini Moose 2707 shouted: dumbducky You have to use one that isn't in the file.
Suppose I have a file of every character
[2016-2-26. : 1:39 am]
O)FaRTy1billion[MM] -- :wob:
[2016-2-26. : 1:32 am]
Moose -- Alternatively, you could take the entire line, split it as an array by unescaped quotes and replace inside every second element. Same thing that was exploiting but without changing the field separator. Actually, now that I think about it, you might able to set the field separator with regex to be an unescaped quote, too.
[2016-2-26. : 1:00 am]
Moose -- That's what makes it a dummy character, sorry for not being more clear.
[2016-2-26. : 1:00 am]
Moose -- dumbducky
dumbducky shouted: What if the line actually contained the dummy character
You have to use one that isn't in the file.
[2016-2-26. : 12:58 am]
lil-Inferno -- Who's try'na get they ass whooped LMAO

Pages: < 1 « 1895 1896 1897 1898 18993572 >


Members Online: Oh_Man, Zakerozi