« first day (2041 days earlier)      last day (2804 days later) » 

0
A: Sandbox for Proposed Challenges

Rohan JhunjhunwalaEnd the tabs versus space war So, there has been a great deal of debate of whether to use tabs or spaces to indent/format code. Can you help the university settle the dispute, by going to an incredibly crazy unique method of formatting. Your job is to write a full program or function which expa...

 
@El'endiaStarman I'm quite glad I'm far down on that list
though, I don't remember Alex being so chatty
 
@NathanMerrill That's because he hasn't been this past month.
 
Hey, someone changed my avatar on main
How can this happen?
 
yeah, but even before, I don't remember him chatting as much as The Bit Byte
 
3:04 AM
Tux is #2, no surprise >_>
 
@feersum Gravatar is being stupid. I got the blue one for quite some time on mobile, but the old one on my desktop.
 
@El'endiaStarman :D I outgolfed 10 people on M/D
 
Recognized my ass.
 
@NathanMerrill Probably wasn't so blatant...
 
3:06 AM
@El'endiaStarman oh man, am I really in 4th?
:/
 
@El'endiaStarman Yowza. Does that take name changes into account?
 
@Dennis Yep.
 
Who is TheBitByte?
 
ColdGolf
 
@Downgoat Formerly ColdGolf.
 
3:08 AM
ah new user
oh
 
The guy responsible for five new room owners. :P
 
Member for 13 days...
Oh, it's ordered by ratio. Nvm.
 
13 days and he brought in five ROs to keep the room composed? o_O
that's impressive
I mean not good impressive but still
 
its more of a matter that mods are fast acting :)
(thank you!)
 
@RohanJhunjhunwala Ctrl+F5
 
3:13 AM
@caching y u do dis
 
@BusinessCat oh my your avatar...
 
@El'endiaStarman you should put a random query parameter on the js file each load
unless you actually do want caching :P
 
@NathanMerrill OR I can gradually train people to Ctrl+F5 if something's not working. :P
More seriously, though, changing the permalink system was a pretty drastic change. I don't expect much more from here on out.
 
3:31 AM
Minor nitpick: Sorting by columns works great, but the icons for ascending/descending seem backwards to me.
 
@Geobits They're from sorttable.js, so not really my choice.
 
I figured as much, it's just so weird.
 
I kinda agree though.
 
I mean, it's only different than every other table ever. No big deal :P
 
3:38 AM
Woo :D
 
@El'endiaStarman Wow, I'm 49th out of 151
Well, more than 151
 
@El'endiaStarman Hmm. Kinda anyway. On the first click for a column it's still backwards, then it goes "right". Very odd.
 
@Geobits Yeah, I just pushed the fix for that.
 
> Developer is very responsive to even minor concerns. 5 stars
 
3:42 AM
vihan:~ $ gcc
clang: error: no input files
vihan:~ $ brew install gcc
Warning: gcc-6.1.0 already installed
halp how to actually use GCC and not clang
 
🌟🌟🌟🌟🌟
⭐⭐⭐⭐⭐
 
@Downgoat Use an OS where GCC is GCC?
 
but... but... mac?
:/ alex has been gone for so long he doesn't even show up in the ping auto-complete thing
 
@El'endiaStarman How often does TNBDE update its database?
 
@DanTheMan Hourly.
 
3:46 AM
I usually say these thing in jest, but why on Earth would gcc execute anything but gcc?
4
 
Good to know!
 
>_> homebrew builds from source. my mac is going to catch on fire building GCC
 
@Downgoat Try brew info gcc. That should tell.you where the real GCC is hidden.
 
thank you very much
:/ didn't tell me path of GCC unfortunetly
 
What did it say?
 
@Downgoat Can you do which gcc?
 
FFS— basically mac has a symlink of GCC to CLANG in /usr/bin, /usr/bin cannot be touched, not even by root so you're essentially f*cked if you want to use gcc to run gcc
@Sp3000 first thing I did. /usr/bin/gcc
 
@El'endiaStarman I'm not sure why, but on my phone, the result from the query show for a second, then vanish.
 
Ah k, thought I'd try asking anyway :P
 
@Dennis Ctrl+F5- wait a second, mobile. Hmm. However you clear the cache, do that.
 
3:51 AM
@Downgoat Try /usr/local/bin/gcc.
 
aha! it's gcc-6
 
0
A: Sandbox for Proposed Challenges

WallyWestRGB Gradients Given two six character RGB values (ranging from 000000 to FFFFFF inclusive) representing two colors, and a number of steps in the form of an integer N, determine the N interim colors for a gradient between the first color to the second color and display these with the two start an...

 
@DanTheMan I don't think you're counting days right there...
 
@El'endiaStarman A regular refresh did the trick.
 
@Dennis Excellent.
 
3:53 AM
Alex was here only 8 days? Something's wrong...
 
@Geobits You're right!
 
Yeah, there are two WHERE filters on dates. They have to be the same.
 
52...
I should
talk
 
Hmm. 53 days I haven't talked this year.
 
3:55 AM
more.
 
Don't do it. It ruins your stars/message ratio :P
 
Ah carp.
 
> What the everyone uses
 
is clang bundled with osx natively? I thought xcodetools came with clang and gcc
 
4:04 AM
Apparently it comes with fake gcc, symlinked to clang.
Or at least that's what a cursory googling showed me as I wore that smug linux grin.
 
@Quill gcc = ln -s /usr/bin/clang /usr/bin/gcc
 
Tip from a Windows user: Get a linux virtual machine
I use Oracle VM
 
@DJMcMayhem question: how to search for hex character in vim?
 
And with Oracle VM, you can install Guest Additions so you can have shared folders with the VM and stuff like that
 
O______O i removed random byte of binary and it still works
 
4:14 AM
Golfing at its finest.
 
^
for some reason -Os provides output of apparently same size of -O3
very odd
question: is there zero difference between int a = 4 int a (4) and int a {4}? Surely there should be at least some
 
@DanTheMan lol, the bit byte is 3rd
 
@Downgoat For primitives I believe they are the same (though I've never seen the {} form used. Does that really work?). For other things it can vary: stackoverflow.com/q/1051379/752320
Aren't you supposed to be learning java though? :P
 
4:37 AM
CMC: abs(n-1) in oasis
(my record: 3 bytes)
 
What exactly does CMC stand for?
Chat ____ Challenge?
 
mini
 
@Downgoat what do you mean?
Do you mean search for [0-9A-F]?
 
(cc @Adnan)
 
4:43 AM
Or search for a character with a certain hex value?
 
CMC: A000265
Javascript, 26 bytes: f=n=>n/2==(n/2|0)?f(n/2):n
 
rip oasis
 
Jelly: N&:@ (I swear we've had a challenge like this on the main site...)
 
Hahaha
 
The graph is kind of cool: oeis.org/A000265/graph
 
4:51 AM
(cc @Adnan) The lack of conditional and stack operators made me build the conditional from (n%2)*(case if n is odd) + ((n+1)%2)*(case if n is even)
also, the lack of modulus made me build it from n-n/2 where / is integer division
... i only think of ways to build them when i desperately need them
I meant n-n/2*2
 
@El'endiaStarman :( I get server 500s when I try to do SELECT 1/0 FROM ...
 
5:16 AM
@Sp3000 ....huh, weird.
 
Does /runcode just silently die if the query fails?
 
Interesting, it's psycopg2's fault. (psycopg is the library I use to connect to the database and run queries against it.)
You should now get a nice, friendly error message.
 
At least you can't DROP TABLE ...
 
5:40 AM
@El'endiaStarman Thanks, I was just trying to debug a query: List of users sorted by most messages starting with CMC
 
@Sp3000 ...whut da heck...?
 
(thanks for fixing the link, that was awkward)
 
I still can't get it to stay.
 
@Adnan sorry for giving you the third ping, but here:
0
A: Output "Fit" numbers

Leaky NunOasis, 25 bytes (non-competing) n2÷an»»n»4÷xx-p>*nn2÷x-+0 Try it online! I have not failed my master. \o/ There are many missing features which must be built. For example, there is no conditionals, so the formula I am using would be f(n/2)*[1+(n%4>0)] + n%2. Actually, there is no modulo eit...

 
@El'endiaStarman The hint is line 45 of TNBDE.js :)
 
5:46 AM
@Sp3000 Okay, I see what's going on. It's basically HTML injection, eh?
 
Yeah :P hence why I had to get you to fix error messages
 
Oooh, I see...
Okay, it should be fixed now. You'd have to Ctrl+F5 though.
 
Oof, I see what you did there :P
 
*blows raspberry*
 
Okay, I give up, I had my fun :P
 
6:08 AM
@LeakyNun How about a challenge where, given n, print a spiral of the alphabet n characters long?
 
.....I just realized that I can literally get statistics from how often New Main Posts posts and thereby figure out the questions per day stats of the site.
In the last month, there have been about 9.55 questions per day, and in the last year, there have been about 8.07 questions per day.
 
@El'endiaStarman and you can use the one-box test along with 11ing to check if it was legit or not
 
Hah, indeed. Won't be 100% accurate, but not far off.
 
6:28 AM
0
Q: Roll the Alphabet into a Spiral

Sherlock9Write a program or function that, when given n, will print a spiral n characters long made up of the Latin alphabet repeated as needed. Test cases 4 AB DC 40 UVWXYZ TGHIJA NSFABKB MREDCLC LQPNOMD KJIHGFE 0 10 GHIJ FAB EDC Rules Your input will be a n...

 
Hey there @DestructibleWatermelon
@Emigna Ah, I see now
Shall I delete my comment?
 
Crap my interpreter can't parse Logicode properly
Is anyone on?
 
I am, but I don't know what Logicode is
 
Ah
It's my language
Which is based on Logisim
 
Are you using Logitech, too?
 
6:32 AM
@Sherlock9 Maybe you could move the explanation into the challenge text?
 
@Sherlock9 Wow
 
:P
@Emigna Will do
Done
 
:)
 
@LeakyNun Wrote that challenge: codegolf.stackexchange.com/q/91761/47581
 
Can you help?
 
6:46 AM
Well, I've never read through a parser before, but send a link to your code, and I'll see what I can do
 
I have some problems with the parser though
 
Try "!" as " not "
 
?
What?
 
Since you're working with things that might have "a and not b", the extra space could help
So replace_dict becomes {"&": " and ", "!": " not ", "?": " or "}
That may not be the main problem, but I figure since it could end up as a future bug, it might help.
 
I already have an extra space there
Can you understand the tutorial in the README?
 
6:51 AM
@DerpfacePython I meant an extra space before and after
The README seems good. Could use clearer separators between sections.
 
Takes a second to realize when you've moved on to another command. Headings may help here
 
3
Q: Sheffle tho vawols ureund!

FatalizeGiven an input string, output that string with all vowels a, e, i, o and u swapped at random between each other. For example, in the string this is a test, there are 4 vowels: [i, i, a, e]. A valid shuffling of those vowels could be [a, i, e, i] therefore yielding the output thas is e tist. Abo...

 
@Sherlock9 I fixed it!
 
7:01 AM
The parsing problem?
Sorry, which it?
 
I fixed the suggestion and the tutorial thing
But no, I didn't fix the parsing problem
Unfortunately
 
ok, I came back again
 
Hello
Ummm
Can I put the parsing problem here and ask you guys to help solve it?
 
Well, if you have an error message to show, that would be helpful
 
Ummm
It's mainly just a problem
I can't parse something like this xor(1,1)&1 properly
And errors will come out
Hang on
 
7:20 AM
I was having issues with my language spec
commands were too long, and now I'm thinking of removing the stack
 
This is the error
Traceback (most recent call last):
      File "C:/Users/hyli.DERP-A-TRON3000/Desktop/Logicode/logicode.py", line 77, in <module>
        lgc_process(f)
      File "C:/Users/hyli.DERP-A-TRON3000/Desktop/Logicode/logicode.py", line 57, in lgc_process
        output.append(str(int(eval(raw_code))))
      File "<string>", line 1
        ( not (1 and 1) and 1)) and (1 or 1) and 1) and 1
                              ^
    SyntaxError: invalid syntax
 
well, actually, now I'm thinking of removing the majority of the stack manipulation...
I will help!
 
Code processed is this
circ xor(a,b)->(!(a&b))&(a?b)
out xor(1,1)&1
I know where the error is
It's in the parsing of the arguments for the function parser
 
ok, so the issue is that you have an extra ")"
and where is that issue coming from?
 
parse_circ
BRB
 
7:23 AM
ok
hmm, I need a way to shorten commands...
 
@ReleasingHeliumNuclei yo
 
what are good datatypes pl0x
 
7:31 AM
@DerpfacePython Probably unrelated, but side note: be stricter about parens, e.g. you probably want (a)&(b) rather than a&b
 
@DestructibleWatermelon long double is nice
 
@DestructibleWatermelon array of trytes
 
@TùxCräftîñg you mean a tape -_-
@TùxCräftîñg if so, no
 
halp
how to specify encoding to File::open in ruby
 
wat is
wait i have no idea about ruby
 
that comic is already on the starboard...
 
Wut
@stackexchangecoders plz add starboard to mobile
@stackexchangecoderz
plz add chat to mobile app
Also plz tabbed se app like wikipedia
 
Just got the haveibeenpwned email for Dropbox, good to know the notification system works
 
»  cat hello.ru
“Hello, World!”
Elie@elie-asus — /d/Ru
»  ./ru e hello.ru hello.rue
Elie@elie-asus — /d/Ru
»  cat hello.rue
▒Hello, World!▒
Elie@elie-asus — /d/Ru
»  ./ru r hello.rue
Hello, World!
\o/
 
7:48 AM
@Sp3000 Why?
For the stricter parens thing, that is
 
editing ruby files insanely slow down vim ._.
 
@DerpfacePython I should probably ask before I comment - when you say "code is processed", what does that mean? Because it looks like you're doing some sort of expansion of the code before evaluating it
 
What do you mean?
Umm, yeah
So currently what I'm doing is
When I have a circuit like xor, I first sub in the arguments given into the definition of the circuit, and then I process it all together
 
Can I input something like xor(1+2,3+4) and if so what happens?
 
Ummm, the code will crash
Because circuits and stuff only support booleans in the forms 0 and 1
 
7:57 AM
Hmm k... (I don't actually know the context for this, just guessing)
What about xor(0&1,1&0)?
 
@Sp3000 Hang on I need some context to back this up
 
Probably, yeah :P
 
So let's say I define xor to be circ xor(a,b)->(!(a&b))&(a?b)
So when you put in something like xor(0&1,1&0)
It first substitutes the args into the xor circuit and returns this: (!((0&1)&(1&0)))&((0&1)?(1&0))
And then it condenses it all down
And returns the results
 
Does the left part actually become (0&1)&(1&0) or does it become 0&1&1&0?
 
Currently it's parsed as the latter, but just when you posted that example I considered to convert it to the former
 
8:02 AM
:P yeah that's what I was trying to get at - without the extra parens you could have precedence issues
(which is how you get this)
 
OK, fixed. I fixed the parsing instead of the actual code, though.
 
:P
 
Would PPCG be considered as "Technology" or "Recreation"?
 
... both? More the latter, in the sense that it's recreation about technology
 
SE defines PPCG as Techno
but whatevs
There should be a "middle ground"
 
8:20 AM
> They gave me a written take home problem that had to perform a complex permutation in under 10 seconds. I got it down to three seconds but gave up and never turned it in since it needed to be a bit better.
:(
 
Context? (and "complex permutation"?)
 
Think in binary
10 seconds, three seconds, a bit better
 
@ReleasingHeliumNuclei cool (ab)use of ZWNJ
 
8:39 AM
on a device that supports Unicode 6, copy this characters and remove the space between them: 🇹 🇷
it will become 🇹🇷
 
9:13 AM
doc coming soon
»  echo '…H' | ./ru c
/usr/bin/env: ruby --encoding utf-8: No such file or directory
ಠ_ಠ
 
Too many quotes?
 
no just stupid /usr/bin/env on git bash
oh
+- is parsed as α+(α-β)
 
9:39 AM
@Sherlock9 done
 
9:57 AM
@LeakyNun :D Was that satisfactory?
 
@Sherlock9 yes
 
Excellent
Are you logging off at midnight?
 
@Sherlock9 before i sleep
Jul 23 at 7:47, by Dennis
Meh, tomorrow is when I wake up.
 
10:25 AM
3
Q: Hate/love conundrum

shooqieChallenge description In this challenge, we only consider love and hate as feelings. If we want to utter a feeling expression of order N, we alternate between these two (starting with hate): order | expression 1 I hate it. 2 I hate that I love it. 3 I hate that I love that I ...

 
0
A: "Hello, World!"

TùxCräftîñgRu, 15 bytes “Hello, World!” Body must be at least 30 characters; you entered 29.

 
10:52 AM
\o/
What if will be released in private beta soon
 
@LeakyNun n?" that ":" it." did i really miss that ಠ_ಠ
@TùxCräftîñg Private?
 
yes
proposal -> definition -> commitment -> private beta -> public beta -> graduated
 
11:05 AM
@everyonewhoknowruby if i have a string like 10000001000000, how to remove all trailing zeroes to have 10000001?
(without regexing)
 
i dont even know how to do this in any language
 
i think i can chomp
while s.chomp!("0"); end
 
11:25 AM
binary string of Hello compressed with the experimental compressor for Ru: 100001100011011111000011000
the first bit indicate a word in the dictionary, the 5 bits after are the length of the capitalization map, the bit after it is the capitalization map (the last zeroes are chomped out because obvious), the following 7 bits are the size of the index in the dictionary and the last bits are the index
 
u r a pro pastebin member?
 
@TùxCräftîñg yep
 
@LeakyNun Yeah, that's still a problem, but I got a solution for that
I'm gonna try if I can get that working
 
1000011000110111110000110000001101011000001101000000001111010111000110100001
Hello, World! compressed
 
Anonymous
11:44 AM
Pro-tip: never schedule a flight for 7:30 AM unless you are Tom Hanks and literally live at the airport.
 

« first day (2041 days earlier)      last day (2804 days later) »