« first day (2407 days earlier)      last day (2452 days later) » 

7:00 PM
apparently not ಠ_ಠ
 
W Pqq was my first try, but apparently q (a variable which automagically reads a line of input) isn't evaluated unless you do something with it.
 
@cairdcoinheringaahing SOGL has a main one which is terribly outdated and SOGLOnline which is updated but really just a host for the interpreter. I assume both should get linked
 
@dzaima It would definitely help for learning it :P
 
@DJMcMayhem $args|?{++$i%2} ... takes input as an array of lines. If that's not OK, tack on a -split"`n" after the $args
Whoops ... take out the odd lines. Eh, flip the pre-increment to a post-increment.
 
@cairdcoinheringaahing SOGL isn't really meant to be learned as it's just horrible :p. At some point when I finally get to it I'll make something like ±SOGL 2 which I'll try to make good docs for
 
7:07 PM
@dzaima "isn't meant to be learned => I want all the rep"? :P
 
> ±SOGL 2
 
@cairdcoinheringaahing "isn't meant to be learned => I'm more interested in adding new functionality than in writing docs" (personal experience)
 
@cairdcoinheringaahing I don't want to give people the ability to learn such a monstrosity, and that becomes a side-effect (but lately there have been very little ascii-art challenges so there's not much rep to gain :/)
 
@DLosc cc @dzaima just a joke
 
@DJMcMayhem Ruby, 15 + 1 = 16 bytes: i^=1;$_=''if!i, uses -p
 
7:10 PM
@cairdcoinheringaahing Mine was too, although the self-deprecating humor may not have come across. :)
 
@DLosc lately I very rarely add stuff to SOGL because the code behind it is horrible
 
I have no idea why, but i^=1 with i uninitialized sets it to true of all things.
 
Vim, 11 bytes: :%norm jdd<cr>
Actually wait, 10 bytes: qqjdd@qq@q is shorter
(And chat thinks I'm trying to ping quartata and/or Qwerp-Derp) lol
 
@DJMcMayhem please post to main
 
Please delete the new question
 
7:18 PM
CMC: Output π×e
 
-5
Q: I need some help while converting Python/Pygame file into an apk for Android

user73915I made a simple game with Python/Pygame and now I want to test it on my phone. But I can't find any way to make Python file (or Python exe) an apk file for Android. My Python file is saved on computer which is using Windows 10 . I already tried Kivy but it looks like it is for Linux only. Thanks...

 
@TuxCopter Is that meant to be pi?
 
yes
 
giggle
@totallyhuman If (2*n+1)%k gives 0, n%k gives either 0 or (k-1)/2. Since n is prime, n%k cannot give 0, so it suffices to check for the latter case. I'll add a more detailed explanation tomorrow. — Dennis ♦ Jul 10 at 7:25
 
@NewMainPosts there's so many things wrong with this
 
7:20 PM
@TuxCopter Pyth, 7 bytes: *.n0.n1
@cairdcoinheringaahing What are you talking about?
 
@Mr.Xcoder Check the post its on.
 
@cairdcoinheringaahing I know which post that is on
 
@Mr.Xcoder Check the last sentence
 
@TuxCopter Mathematica, 4 bytes: πE&
 
@cairdcoinheringaahing Oh yeah... He didn't add it right?
 
7:22 PM
@Mr.Xcoder No, he didn't. I find things way too funny
 
@TuxCopter Jelly, 5 bytes: ØP×Øe
 
@TuxCopter QBasic, 16 bytes: ?4*ATN(1)*EXP(1)
 
:39771863 Actually 4 because I need the & to make it an anonymous function, otherwise it's a snippet.
 
@DLosc Does Pip have arithmetic constants?
 
@TuxCopter Deorst, 5 bytes: EpEe*
 
7:24 PM
@Mr.Xcoder It has PI, but nothing for e (and not even an exponential function like QBasic, yet).
 
Oh, sad :(
Cthulhu, 3 bytes: *πe
 
@Mr.Xcoder -1, no interpreter that works :p
 
@TuxCopter Ruby, 22 bytes: proc{Math::PI*Math::E}
 
@TuxCopter [math]::pi*[math]::e
 
@Mr.Xcoder BRB, adding
 
7:27 PM
@AdmBorkBork PowerShell?
 
But of course. :D
 
@TuxCopter Haskell, 10 bytes: f=pi*exp 1
 
MATL, 6 bytes: YP1Ze*
 
@Mr.Xcoder Wait, Deorst v1 beat MATL? I'm happy
 
@Pavel ಠ__ಠ What else?
 
7:28 PM
Do I look like someone who knows PowerShell?
 
@Pavel No, but what else would I answer in?
 
@Pavel No, but I thought you knew who "AdmBorkBork" is
 
@AdmBorkBork Well PowerShell isn't the only language you know, right?
 
@Pavel No, but... damn, I can't think of a good response
 
@cairdcoinheringaahing yes. It turns out MATL only has exponential function built-in (or I can't search?) and you must do 1Ze.
 
7:29 PM
What builtin are you looking for?
 
@Pavel It's the only language I know well. I can write passable BATCH file or VBScript, and I can read most C-based or C-derivative languages, provided they're not too obfuscated.
 
@DJMcMayhem Built-in for the constant e. Is 1Ze the shortest way to get it?
 
NOOOO I just realized that I need a space between π and E or they get treated as a single identifier
 
@Mr.Xcoder Probably
 
I was this close to beating a Jelly answer for the first time ever
 
7:30 PM
@DJMcMayhem Wait, when did you learn MATL?
 
Like forever ago
 
Mathematica, 5 bytes: Pi*E&
 
Julia REPL, 4 bytes: pi*e
Take that golfing languages! :D
 
@DJMcMayhem Ok.... These are all news to me :P
 
@DJMcMayhem Does it print implicitly
 
7:31 PM
@DJMcMayhem Ha, Cthulhu would still beat it
 
@DJMcMayhem +1 for a non-golfing language REPL
 
@Pavel See edit
 
ಠ_ಠ
 
@Pavel No, it's a function. n->pi*e
 
Mathematica REPL, 4 bytes: Pi*E
 
7:31 PM
Come on. You got to admit it's cool to see Julia beat Jelly
 
@DJMcMayhem Yes, it is
CMC: Determine if a list contains only ascending consecutive integers.
 
@Mr.Xcoder Cthulhu, 1 byte: ˇ
 
@cairdcoinheringaahing +1 for style
 
Does ˇ check for ascending only?
 
@Mr.Xcoder MATL, 4 bytes (untested): d1=p
 
7:34 PM
@cairdcoinheringaahing yes
Should I change that?
 
@Mr.Xcoder param($n)$n-eq$n[0]..$n[-1]-and$n[0]-lt$n[1]
 
Pyth, 7: !.EtM.+
 
@Mr.Xcoder Does the code have to verify that they're integers, or can we assume input will only contain integers?
 
@DLosc Only integers in the input.
 
@Mr.Xcoder 2Deorstv, 4 bytes: Đ(nÄ
 
7:34 PM
Nice
 
@Mr.Xcoder Can we assume integers are positive
 
@Pavel No
 
Also, VTC dupe
BRB finding link
 
@Mr.Xcoder SOGL, 7 bytes: -{1=}¹χ
 
@Pavel No one cares, it's a CMC
 
7:37 PM
Pip, 10 bytes: $&B-_=1MPg
 
@DLosc Algorithm?
 
@Mr.Xcoder Jelly, 4 bytes: I’¬Ạ
 
Good :)
 
Map this function to pairs of consecutive elements in argv:
Subtract first from second and test whether difference = 1
Take the resulting list and fold on AND. Result is true iff all pairwise differences are equal to 1
 
Same algorithm as my 2Deorstv answer
 
7:38 PM
Might be shortenable.
 
Nice
 
Python, 49 bytes: lambda l:all(l[i]<l[i+1]for i in range(len(l)-1))
 
The first Q in history being closed as a dupe of 5 other challenges?
@DJMcMayhem I don't know why I have a felling that can be shorter
 
Aha, better approach: Pip, 7 bytes: g=a+,#g
 
@DJMcMayhem 43 bytes
 
7:44 PM
Take range(len(argv)). Add first arg to each item of that range. Test if result is equal to argv.
 
@DJMcMayhem How does that check that they're ascending and consecutive?
 
@DJMcMayhem BTW that's invalid. See my reply
 
@Mr.Xcoder 41 bytes ;)
 
@DLosc 38 bytes ;)
 
Linux has gotten over 3% marketshare for the first time since forever.
 
7:48 PM
@Mr.Xcoder Ooh, nice. I keep forgetting about that.
@Mr.Xcoder All right, here's 34 bytes
 
@DLosc 35... Ugh
 
CMC: Given a string, output if it matches the grammar aⁿbⁿ
 
Insanely short in Proton: l=>l==(l[0]..l[-1]+1)
 
@DLosc python 2, 31 bytes
 
@dzaima Yup, should've seen that one coming. :D
 
7:53 PM
Goddammit, I was writing the 31 byte ver...
Pyth, 6 bytes: qrhQhe
 
I think we need a Python version of Japt, called Pyon.
 
@TuxCopter eval(input().translate(")("*50))
 
Also, this has probably been my most successful day in terms or reputation. I've got over 300 rep network wide,
 
@cairdcoinheringaahing It's been the worst for me... It's the first day I didn't hit repcap in 5 days!
only got 120
 
7:57 PM
@Mr.Xcoder False. You got 195 rep on Aug 30
 
@cairdcoinheringaahing I still hit repcap. A user was removed, you can't get the rep for the day back in that case.
 
@TuxCopter First stab at it, Pip 19 bytes: a~=`(a+)(b+)`$1#=$2
 
@cairdcoinheringaahing I did hit repcap
 
Gives 1 if it matches the grammar, 0 if the a's and b's aren't the same number, and empty output if it doesn't match ^a+b+$
 
@cairdcoinheringaahing The past week has been the worst for me - I haven't gotten enough rep to repcap once :|
 
7:59 PM
@Mr.Xcoder ಠ_ಠ You got the box in the wrong place
 
@cairdcoinheringaahing No, I didn't. I put it there to show you there is no "+10" there
Got it now?
 
@Mr.Xcoder Yeah, sure.
 
Dang, xnor received a lot of points for that a^n b^n answer.
 
@AdmBorkBork Yes, he did :-) Why the Dang though... As in gasps in amazement?
 
@AdmBorkBork Plus a gold badge
 
8:01 PM
@Mr.Xcoder Yes.
 
Namely Populist.
 
If you mean "gasps"
 
Fixed
ok... now I must post a challenge such that I hit repcap :)
 
@Riker oh god D:
 
@AdmBorkBork It doesn't cause I'm dumb
Geez, I completely misunderstood the challenge, left the room and then came back to 4 pings
 
8:03 PM
hah
 
hehe, 3 were from me :)
 
What is this "repcap" of which you speak? :P (I've only gotten it once, for a FGITW answer on a pop-con that was later closed.)
 
@DLosc +200 rep maximum in a day :PPPP
As of today, I hit repcap 22 times
Hehe, 22*200 = 4400... caird was complaining about his rep earlier :DDDD
 
@Mr.Xcoder (it can be higher with, say, bounties, but they don't count towards rep-cap - i got +750 in a day once with a bounty awarded to me :P)
 
@ThomasWard I know, I had 205, 215 and 202, 201 in some days. But that don't really affect my calculations, and chose to exclude them
 
8:18 PM
0
Q: Draw some ASCII stars

AdmBorkBorkWrite a program or function that draws an ASCII star, given the size of the arms as input. Here's a star of size 1 _/\_ \ / |/\| Here's a star of size 2 /\ __/ \__ \ / \ / | /\ | |/ \| Here's a star of size 3 /\ / \ ___/ \___ \ / \ / \ ...

 
I have only repcapped once, and the rep got reverted because it was caused by serial voting. Still have the badge though.
I consistently write good but not amazing challenges.
 
I repcapped once, and it was a one-off blah PS answer.
 
I repcapped on an empty brainfuck loop.
 
Okx
i repcapped using... er... scratch
 
8:39 PM
2
Q: What an Odd Function

Wheat WizardYour task here will be to implement a function1 that forms a permutation on the positive integers (A bijection from the positive integers onto themselves). This means that each positive integer should appear exactly once in the permutation. The catch is your function should have a larger probab...

 
@NewMainPosts read first sentence. Thought to myself, "This was @WheatWizard." Scrolled down
Hey, I was right
 
@Mr.Xcoder Yes I was :P Should I do it again?
 
@DJMcMayhem It definitely is in a genre that I am fond of.
 
Wait, so just to double check I understand it
 
8:44 PM
@Mr.Xcoder , to do a totallyhuman :p
 
The only requirement is that there are no two inputs that result in the same output?
 
Does it make sense to back up .git folders?
 
(other than the odd probability of course)
 
@DJMcMayhem And that every output has an input that causes it
 
@DJMcMayhem I could tell by the cancerous profile pic in the onebox
 
8:45 PM
OH no, My Python answer is 199 bytes long >_>
 
@programmer5000 The repo is synced to github
 
@WheatWizard But there aren't any requirements like f(f(a)) == a?
 
@DJMcMayhem Nope
 
@programmer5000 cd .git && git init && git add -A && git commit -m 'Back up .git'
 
@Pavel gitception
 
8:46 PM
@Pavel No, I'm asking whether it makes sense to configure my backup program to back up .git folders.
 
@Pavel This reeks of bad idea
I hope that was a joke
 
Pavel@DESKTOP-CRBHFJN MINGW32 ~/git
$ mkdir test

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git
$ cd test

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/test
$ git init
Initialized empty Git repository in C:/Users/Pavel/git/test/.git/

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/test
$ cd .git

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/test/.git
$ git init
Initialized empty Git repository in C:/Users/Pavel/git/test/.git/.git/

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/test/.git
$ cd .git

Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/test/.git/.git
It actually works, I was fully expecting it to error out
 
There's no reason for it to not work
 
I didn't even know you could have a git repo in a git repo without submodules
TBH this technique seems way easier to use and not significantly more terrible than submodules.
(Nested git repos in general, not git repos in .git directories)
 
Why would you do that???
 
9:00 PM
Guys, I have a question. If a challenge says "Printable ASCII", should it be assumed that that includes newlines, tabs, and carriage returns, or not?
 
@Pavel that should be specified per challenge
 
Right, but sometimes it isn't.
Which is annoying.
 
Then you need to ask the OP
 
> -10 User was removed
 
@totallyhuman Today?
 
9:10 PM
yup
 
haha
> -0 User was removed
 
9:26 PM
0
Q: These Days Work for Me

Chris HappyBackground You're an attractive code golfer and quite a few people are asking you out. You don't have time to think about which days exactly you're available, so you decide to create a function the accepts a date and returns the days of that week. You then take those days of the week, insert i...

 
9:37 PM
@Mr.Xcoder Here you go
 
CMC: output this
 
9:54 PM
@DLosc Very nice
 
10:48 PM
Nearly no doubt it's the shortest way
 
11:16 PM
0
A: Sandbox for Proposed Challenges

Mike EarnestDisplaying exponent towers in ASCII code-golfarithmaticascii-art Background Unlike + and *, the exponentiation operator ^ is not associative. The convention is that ^ is right associative, so that a^(b^c) = a^b^c. Of course, nested exponentials are usually displayed as nested superscripts, whi...

 
11:47 PM
I know this is a really stupid observation, but Vim outputs less characters if you redirect its stderr:
Pavel@DESKTOP-F7NI02J MINGW32 ~
$ vim | wc
Vim: Warning: Output is not to a terminal
      0     123   24011

Pavel@DESKTOP-F7NI02J MINGW32 ~
$ vim 2> foo | wc
      0     117   23952

Pavel@DESKTOP-F7NI02J MINGW32 ~
$ rm foo
I wonder why that is
 

« first day (2407 days earlier)      last day (2452 days later) »