« first day (1959 days earlier)      last day (1483 days later) » 

2:01 PM
Highlighting text (e.g., in Word) and pressing the CapsLock key toggles the highlighted text between all-lowercase or all-uppercase.
 
@Rainbolt should classes go in their own file?
 
@TimmyD You can do this in Vim by pressing <N>~ where <N> is the number of characters you want to toggle the case for.
For example, try typing this in Vim: itesting<ESC>^4~
 
@NathanMerrill I prefer one class per file except in rare cases. For example, we had a bunch of auto generated classes that were built from a json structure. I put them all in one file.
 
if I had two closely related classes, I prefer to put them in the same file
 
@LeakyNun I use NEdit whenever I'm subjected to *nix.
 
2:09 PM
4
Q: Return the integers with square digit-sums

SEJPMIntroduction and Credit We all know and love our awesome rules to test whether a number is divisble by 11 or 3, which is just some clever sum over the digits of the number. Now this challenge takes this to a new level, by requiring you to compute the sum of the digits and then checking whether t...

 
2:32 PM
.
 
0
Q: In-line code block

BálintIf you still don't know this, you can create an inline version of the code block, by using backticks (`), it's a great thing if you want to post golf ideas in the comments, but this is also one of it's flaw. Javascript is a pretty popular golfing language on this site, multiple people use it (fo...

 
?
 
?! makes a sound in my head when I read it, but I don't know what it is.
 
Interrobang?
 
2:38 PM
@Geobits ˙
 
@Bálint i want your avatar to move or load or something :|
 
@Poke I don't think SE allows you to use gifs
@Poke But I have an alternative for you
 
yeah but i don't care about that
 
@TimmyD For me, it's the combination of the sound I'd make to indicate a question (Hmm?) and the sound I'd make to indicate surprise (Hmm!).
 
@Poke Do you have a mac or a windows computer?
 
2:40 PM
it's that tingle in my neck when i see your looks-like-it's-not-loaded avatar
windows
 
Then
 
@El'endiaStarman That's a good description.
 
Hold Ctrl+Alt, then repeatedly press the up, right, down, left arrows in this order
 
oh god
haha
 
2:41 PM
@Bálint Hahaha, clever!
 
i knew that existed but TIL that it's dependent on what monitor has focus
 
Doesn't seem to be working for me on Win 10 though.
 
i can have one upside down and the other right side up
for reasons
 
@El'endiaStarman If you're able to do it, then lock the screen rotation first
I once did this with the computer at my school, but I pressed them randomly and at least 200 times
It took some time to actually stop it
 
@Bálint ?
 
2:43 PM
@zʏᴀʙiɴ101 He posted a full stop
randomly
This happens, if you read an article about a programming language, without actually knowing anything about that language:
81
Q: Why do people use C if it is so dangerous?

Tristan TI am considering learning C. But why do people use C (or C++) if it can be used 'dangerously'? By dangerous, I mean with pointers and other similar stuff. Like the Stack Overflow question Why is the gets function so dangerous that it should not be used?. Why do programmers not just use Java o...

 
@Poke Useful when you're doing a presentation
 
Why does this option even exists?
Who wants to use his/her computer upwards
 
1 min ago, by TimmyD
@Poke Useful when you're doing a presentation
 
@TimmyD On what?
 
I've been in places where the projector was oriented in such a manner that flipping the OS display was easier than attempting to flip the projector settings.
 
2:48 PM
I was in a competition once where someone there was doing a triple monitor setup where the outer two monitors were only to display information, and hence were rotated 90 degrees
 
Or digital signage - it comes up decently often in that field, too.
 
@Sp3000 Monitors like those handle the rotation themselfs, by actually changing the aspect ratio
 
>_> I'm stuck in the mobile chat view.
:(
 
@EᴀsᴛᴇʀʟʏIʀᴋ Then you need to be here forever
Hmm, why isn't there an SE for Git?
 
@Bálint As in, they needed it to be longer vertically (e.g. to display the leaderboard more efficiently)
 
@AlexA What happened to stranger danger?
 
actually, I think a git SE would be super useful
 
Oh you mean the software auto rotates with the monitor? nvm, dunno about that
 
nah, all of the questions would be already on-topic at SO at the site's usefulness would just be picking off a small percentage of SO's traffic
 
2:52 PM
@TimmyD I know some programmers like to have a monitor vertical in order to have more code displayed. Useful for them too
 
I think it would be better as version control in general, if such a site were to exist
 
@Doorknob I agree
@Quill that's never a reason to not create a new site. Most other programming related sites have stolen a portion of SO's traffic
 
@NathanMerrill Let me propose one
 
scope
 
@NathanMerrill I prefer Listerine
@Poke Oh yeah, that's a good use case, too.
 
I really like watching movies in high-screen
 
1
Git

Proposed Q&A site for people using Git to share code.

Currently in definition.

I need a better description
 
there's really nothing like seeing the feet and sky
 
Can anyone help me golf this?
0
A: Return the integers with square digit-sums

Leaky NunJ, 33 bytes (]=*:@<.@%:)@(+/"1@(10#.^:_1]))#] Usage >> f =: (]=*:@<.@%:)@(+/"1@(10#.^:_1]))#] >> f 1 4 9 16 25 1111 0 << 1 4 9 1111 0 Where >> is STDIN and << is STDOUT. Slightly ungolfed to_base_10 =: 10#.^:_1] sum =: +/"1 sqrt =: %: floor =: <. square =: *: itself ...

 
@Bálint it should be version control, not just specific to git
 
2:54 PM
The sysadmin/IT teacher in my school has a crazy computer setup
 
also, "to share code" is not the primary purpose of version control
 
Chat mini-challenge -- Given an input date in MM/DD or DD/MM format (your choice), output (the day as an int) divided by (the number of days in that month). For example, for today, June 10, output 1/3 or 0.3333333...
 
@Bálint why does git get special preference in the name?
 
2:57 PM
@Doorknob I actually agree with that. Git is the most widely used VCS system
I'd probably put it at vcs.stackexchange.com
 
@TimmyD if you can take input as DD/MM, couldn't I just do eval(input)?
 
you divide by the number of days
not the month number
 
the number of days in the month
 
Oh, I see
 
2:58 PM
ninjuic'ed
 
How many days in feb?
 
its basically a golf of month number to number of days in the month
 
@NathanMerrill This is true.
@muddyfish You can assume 28, with no leaps, since the year isn't given.
 
@muddyfish Compromise and use 28.25!
 
2:59 PM
lol
you mean 28.25?
 
I had this SE idea, because whenever I touch Git, I have problems with it
 
actually, why do we cut it off at 2 decimal points?
 
@NathanMerrill That's what I just said. <_< >_> ...
 
28.2422
 
Oh right, leap year rules are a bit more complex.
 
3:01 PM
If you use 28.2422 for February, you get an internet cookie.
 
##Pyke, 23 bytes

\/cmbXtu @/
[Try it here!](http://pyke.catbus.co.uk/?code=%5C%2FcmbXtu%0C%1F%1C%1F%1E%1F%1E%1F%1F%1E%1F%1E%1F%40%2F&input=06%2F10%0ADD%2FMM%0A)
 
@muddyfish Don't use the Pyke answer generator for chat. >_>
It shows up crappily.
 
Yeah
it didn't work
Nice for FGITW though
 
no markdown in multilne though
 
Code: \/cmbXtu @/
still doesn't show the chars
 
3:11 PM
@muddyfish This doesn't work for Feb 28
Or actually any last-day-of-the-month
Off-by-one error?
 
Isn't it meant to be 1.0?
 
you know, too bad we don't switch the month that gets an extra day. Maybe we should give months an extra day on a rotating basis (January year 0, February year 4, March year 8...)
then people that are born on January 32 have to wait a whopping 48 years before they get another birthday :)
 
Maybe we should give up and find a planet where the length of the day is a factor of the length of the solar cycle?
 
An exact factor. That would be hard to come by
 
@EᴀsᴛᴇʀʟʏIʀᴋ the problem isn't the lunar cycle, its that our solar cycle isn't divisible by our day cycle
 
3:15 PM
Why not just have an extra month each year where the moon orbits super-fast that's 0.25 days long
 
aka, a year is 365.24 days
 
@Bálint 'twas closed.
 
@muddyfish Yes, but I don't get that, I get an error back
BAD EVAL
Index failed func 'at' with args [30, [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]]
Traceback (most recent call last):
  File "main.py", line 59, in <module>
    stack = ast.run()
  File "/home/pyke/pyke/PYKE/lang_ast.py", line 46, in run
    stack = cur_node(args) + stack
  File "/home/pyke/pyke/PYKE/nodes.py", line 69, in __call__
    ret = func(*args)
  File "node/index.py", line 14, in at
    return[b[a]]
IndexError: list index out of range
 
@EᴀsᴛᴇʀʟʏIʀᴋ Again closed. >_>
 
Oh
pyke.catbus.co.uk/?code=\%2FcmbXtu%0C%1F%1C%1F%1E%1F%1E%1F%1F%1E%1F%1E%1F‌​%40%2F&input=02%2F28%0AMM%2FDD%0A
Swap DD and MM the other way round
;)
 
Oh, I see ... yeah
Just figured that out, too
 
I swapped them when writing
 
@Bálint had a few more closed proposals.
 
@Bálint Why are you guys talking to my dog?
 
3:24 PM
@HelkaHomba On girlfriends: some don't have one, and few are not big enough to have one. ;)
 
@Geobits They don't know how smart he is.
 
I'm too lazy to even switch tabs when I walk away to prevent this. No way I'm gonna get a cover :P
> Kitty Keyboard Kover? Finally, a white supremacist product we can all share and enjoy.
 
@EᴀsᴛᴇʀʟʏIʀᴋ ...
 
@TimmyD Pyth, 20 bytes
 
@EᴀsᴛᴇʀʟʏIʀᴋ :/
@zʏᴀʙiɴ101 Yes, I post them because I'm not sure, if they are part of antoher SE that much, that it becomes a duplicate
3
Programming resources

Proposed Q&A site for programmers looking after viable resources on different algorithms and techniques.

Currently in definition.

This is the only proposal I made, and wasn't closed/deleted for some reason
 
@TimmyD Pyth, 19 bytes
 
3:41 PM
Hey, did we solve the Martin Buttner challenge from the other day?
 
@TimmyD Pyth, 14 bytes
Hex dump: 63 65 51 43 40 2E 22 1C 1F F3 BB EE 22 68
 
@drobilc Buettner
 
@Bálint Büttner
 
@Bálint B<Alt-0252>ttner
 
who?
3
 
3:43 PM
@LeakyNun I know it's Büttner, but if he can't enter umlaut's, then that's useless
 
<Alt+0252> (no idea why zyabin edited it out)
 
I was thinking about this
 
@TimmyD Pyth, 13 bytes
 
If I understand the keyboard layout correctly, there should be an umlaut right above the "2"
At least on a UK keyboard
 
3:46 PM
@MartinEnder I have a slight feeling, that you never actually leave the chatroom, and you always watch, what we're speaking about....
You always enter at the right moment
If I have a list, where the elements are 0, 1, 4, 12, 32, 80..., then what is the formula to find out the n-th element of this list?
 
@LeakyNun You're not sticking to the input requirements, I took it as a hard requirement
 
@LeakyNun 4 bytes
 
@muddyfish Yeah, either MM/DD or DD/MM (leading zeros optional).
 
@muddyfish Look, I edited it already.
@muddyfish nice built-in!
 
3:53 PM
IKR, added it like a min after the challenge was posted
 
I mean variables are practically free
Any other useful constants you can think of?
 
@LeakyNun That's nice, thank you
 

Martin Büttner's puzzle, Part Two

yesterday, 9 minutes total – 27 messages, 7 users, 5 stars

Bookmarked 10 secs ago by zʏᴀʙiɴ101

@MartinEnder ^
 
@muddyfish -1 interpreter edited after the challenge :p
 
3:56 PM
You mean I can't change my language at all after the challenge?
All my answers are non-competing now!
 
My google search hystory became insanely Math-y in the last week
 
@isaacg I found a bug in the ." compressor: if the first character is the lowest character, it is lost.
 
And it doesn't relate to school
I don't know if I need to be proud of that or not
 
(I haven't updated the interpreter before posting the answer though)
 
3:58 PM
@Fatalize Sorry, addicted
Could you help me golf the J answer though
 
no
not good with J
 
How to loselessly map a list of non-negative integers to one non-negative integer?
 
@zʏᴀʙiɴ101 i dont think so he's gonna ever reveal it
 
I solved it, it's 50 shades of grey
 
@Fatalize There's only 6 shades
 
4:03 PM
most sensible answer
@LeakyNun You have to believe
 
then its a rainbow
 
3 hours before Euro
I think @aditsu is romanian
Prepare to get rekt
 
@LeakyNun Couldn't you do something like the proof that rationals are countable? Like 0 -> 0 ... 1 -> 1 ... 2 -> 0,1 ... 3 -> 1,0 ...
 
@TimmyD Never mind, I found it in my own challenge
 
@LeakyNun Yeah, what Kaseorg had was what I was aiming for. I would've probably found it after some tweaking and experimentation.
 
4:15 PM
@TimmyD What compression algorithms should a language have?
an algorithm for printable, an algorithm for english words, an algorithm like the one above
bacde -> a + (1,0,2,3,4) -> a + 1011001000100001 -> a²!
 
You're asking a (tough for me) question ... I haven't done serious computer science work/thought in 10+ years.
 
The above algorithm was optimized for your challenge, because things were close
 
@Optimizer s/rain/gray/
 
go to newsletters > click on preview on any of the listed ones > scroll down > click Unsubscribe from this newsletter (or any of the three other links) > have fun
(just discovered it, blame me)
 
@Quill congrats on your diamond on LL!
 
in Tavern on the Meta on Meta Stack Exchange Chat, Jun 6 at 20:37, by Quill
> Hi Quill!
I am contacting you about the site: languagelearning.stackexchange.com.
I am in the process of selecting temporary moderators and was wondering if you would like to be considered for the position.
 
@Upgoat not yet
 
@EᴀsᴛᴇʀʟʏIʀᴋ too late to edit >_>
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Could you help me golf this?
 
Hopefully he sees it when he gets a diamond and will think im a cool time traveling goat
3
 
Name change to Chronogoat
5
 
We had goats in a lightning strike yesterday.
 
@LeakyNun I'm looking at it right now
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks!
 
4:39 PM
Everyone's getting diamonds while I'm here rotating myself, and making cheese... ;_;
Brb finding private betas to run for mod
 
0
A: I'm not the language you're looking for!

BálintJavascript ES6, ES5 131 bytes I just thought I post this for fun a="ES6",b="ES5",c=eval("try{d.join``;0}catch(e){1}");alert("This program wasn't written in "+(c?a:b)+", it was built for "+(c?b:a)) The main part of the code is this: try{d.join``;0}catch(e){1} If the version of javascript is...

I thought I give this a go
 
@Bálint already outgolfed you :P
3
A: I'm not the language you're looking for!

UpgoatJavaScript / JavaScript ES6, 110 bytes "This program wasn't written in "+((b=[a="JavaScript",c=a+" ES6"].keys)?c:a)+", it was built for "+(b?a:c)+"!" Checks for the existence of .keys. Most browsers these days are ES6 so I recommend installing a separate engine such as Rhino if you really want...

 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks!
 
4:42 PM
lol
 
I was referring tot he ninja golf :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I thought you meant the upvote on my answer :p
 
oh, that was me too
hey, what was the verb that adds an axis to a shape?
i.e., change shape N to shape 0 N (or 1 N, I forgot)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ english or J?
 
|.?
 
4:44 PM
@Upgoat J
It's basically 1 N $ K
 
@LeakyNun that was me ;)
 
oh ok
 
I saw the alert in my alert bar
 
0
A: Sandbox for Proposed Challenges

Daniel M.Cross Validated code-golf ascii-art (This challenge is almost complete, but something doesn't feel quite right) Continuing the theme of using site names as challenges... Your task Write a program or function that accepts a string, and prints out the location, size, and validity of each cross...

 
@CᴏɴᴏʀO'Bʀɪᴇɴ ,: Itemize
 
4:45 PM
@Lynn Ahhh thanks
Digit sum is equivalently [:+/[:".[:|:,:
 
@Upgoat You could shave off some bytes, by checking, if "let" exists instead of .keys
 
> Most browsers these days are ES6
kek
 
+/"1@(10#.^:_1])
[:+/[:".[:|:,:
 
Can a mod refresh my chat profile?
 
2 bytes!
 
4:50 PM
I'm stuck in mobile mode unless I go incognito.
 
any idea why #! is called "shebang"?
 
and the she?
 
shell?
 
and "she" is for #, which obviously implies that programmers needed girls phone numbers >_>
 
4:53 PM
Sharp (#) and Bang (!)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh, right. Back when people called people :P
 
> In the 1950s, secretarial dictation and typesetting manuals in America referred to the mark as "bang,"
 
> Another theory on the sh in shebang is that it is from the default shell sh, usually invoked with shebang.
 
Anyone joining?:
3
Programming resources

Proposed Q&A site for programmers looking after viable resources on different algorithms and techniques.

Currently in definition.

 

« first day (1959 days earlier)      last day (1483 days later) »