« first day (2339 days earlier)      last day (2511 days later) » 
00:00 - 14:0014:00 - 00:00

2:26 PM
Hey, what's happened to Stack Snippets? I can't add one via the answer toolbar, nor can I test them while editing the answer...
 
2:58 PM
@ETHproductions I can...try ctrl+f5 you may need to blame cache
what answer are you referring to?
 
3:24 PM
CMC: given two angles a and b in radians (can be positive or negative), return an angle equivalent to a but as close as possible to b while being less than b
-23*PI/4, 0 => -7*PI/4
where * is multiplication
9*PI/2, PI/2 => -PI/2
 
@TuxCopter AFAIK, you can't. But you can strip it: strip --remove-section=.comment executable
 
(I need this for a golf)
 
What is the golf you need it for??
 
A dog on a chain
I have golfed it slightly locally, but I want to see shorter solutions
 
@KritixiLithos Non-competing (lang newer than challenge), angles, 0 bytes:
 
3:30 PM
I suppose for my CMC, the angles would be in the range -PI to PI (I honestly don't know the range)
@betseg can I see the implementation of this lang?
 
Inplemented in Lelnicelang which I can't upload its implementation: akvkwkckwkfkwpfkwkvowlf
 
@EriktheOutgolfer Several different answers, including this one and this one. The snippets work fine if you're not editing the answer, but they don't work if you're editing
I'mma try shutting off the userscript and see if that affects anything
 
@ETHproductions they do for me (userscript off)
 
Well whaddaya know, they do work with the userscript off
 
Okx
3:37 PM
@Challenger5 so I can never get less or more than 200 rep a day? Only 200 rep a day, that's it?
 
brb, filing bug report
 
0
A: Sandbox for Proposed Challenges

OkxTrim the array code-golf array-manipulation Given an integer array and two numbers as input, remove a certain amount of the first and last elements, specified by the numbers. The input can be in any order you want. You should remove the first x elements, where x is the first numerical input, an...

 
@KritixiLithos define g(a) as the equivalent of a between 0 and 2ฯ€. The answer to your challenge should f(a,b)=b - (g(b)-g(a)). I think.
 
4:07 PM
@TuxCopter maybe use -m
@TuxCopter Maybe try -Os
 
4:26 PM
Yeah it was -Os
And -m too
@ATaco Add a chat command for ( อก๐Ÿ‘๏ธ อœส– อก๐Ÿ‘๏ธ)
 
@cairdcoinheringaahing The point of the apparent broken link was that the 16.0 announcement isn't online yet, so I had put the 15.0 announcement in as a placeholder.
 
Challenge idea: detect goat, evil sheep, or neither
 
too complex for anything other than Mathematica
 
Easier Challenge: detect if goat or boat
 
Harder challenge: go 24 hours without mentioning goats or sheep.
 
4:35 PM
@MartinEnder oh no please don't that's just disaster...
I won't mention goat, I won't mention...oh wait, I failed D:
 
Fixed Challenge Idea: Detect if Dog or Plane
I don't think we've had a Detect X or Y or neither challlenge for images
 
@Downgoat what about upgoat or downgoat?
 
:38358320 :O what about penguin or helicopter
@EriktheOutgolfer thta has been done
 
@EriktheOutgolfer It has been done
 
@Downgoat I mean, isn't it similar?
1 min ago, by Downgoat
I don't think we've had a Detect X or Y or neither challlenge for images
 
Jim
4:39 PM
15
A: Sandbox for Proposed Challenges

RikerI can't believe it's not a Platypus!!! This is an image of our wonderful pet platypus @Cyoce. This is also an image of the same person, or is it? (hint: it isn't) Your task is to determine whether a inputted image is @Cyoce in disguise... The input may be taken in any form. It will also...

 
@EriktheOutgolfer Detecting the orientation is different than detecting if something is X or Y
 
@EriktheOutgolfer pls see latter part. All words in that sentence very important
 
oh...
@TuxCopter what if x is upgoat and y is downgoat?
 
@Downgoat is your user named after the famous challenge or the challenge themed after your user ๐Ÿค”?
 
That said, Easterly's challenge only applies to one fixed image
Also Easterly's challenge gives a fixed process for detection
Does Mathematica have ability to source NN weight matrix from different file
 
4:46 PM
1
A: Sandbox for Proposed Challenges

caird coinheringaahingMonopoly KoTH king-of-the-hill game python Who hasn't heard of Monopoly? If not, don't worry, as I will explain the rules! If you already know the rules, read on, for they may be different in this rendition. The Rules of Monopoly Monopoly is played on a board, with 36 different squares, tha...

 
5:16 PM
@Downgoat Why not bird or plane? Then if it's neither, output SUPERMAN!
 
5:31 PM
@Downgoat There should be an esolang called goatlang with these primitives: ๐Ÿ ๐Ÿ ๐Ÿ‘
 
@Adรกm that has been done actually :P
though no sheep. sheep sucks
 
5:59 PM
@Downgoat I have no choice but to sacrifice a baby goat to the One True Sheep for every hour my test is still borked
 
feedback?
1
A: Sandbox for Proposed Challenges

Wheat WizardMacGyver's Toolbox In this question each answer will get a "toolbox" that can be used to construct a program/function. The toolbox will consist of two things: a list of programming languages a list of valid characters You must write a valid program/function in one of the languages provided ...

 
6:14 PM
@LegionMammal978 WHAT NO WHY (can we continue in slack?)
 
I just noticed: I have posted exactly 100 questions on PPCG =)
 
@StewieGriffin :D congrats!
though why do you have cross through avatar?
 
@Downgoat It's from my SO-profile. I haven't bothered changing it here...
I used too much time on SO, so I had to take drastic measures... Now I spend too much time here instead...
 
:O you made fighter jet
wait nvm
 
@Downgoat haha... The fighter jet is one of the least impressive things on my list of inventions!
 
7:04 PM
the moment you realize that you need something as long as h .M or e .M for max(a) in Pyth...
 
Jim
7:30 PM
@EriktheOutgolfer The day I figured that out, Pyth disappointed me
 
Can FNrQhTN be golfed (I'm learning Pyth), print the numbers from input to 10 (inclusive)???
 
CMC:
 
Jim
7:45 PM
@Mr.Xcoder j}QT
 
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
ZYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYZ
ZYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYZ
ZYXWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWXYZ
ZYXWVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWXYZ
ZYXWVUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVWXYZ
ZYXWVUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUVWXYZ
ZYXWVUTSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSTUVWXYZ
ZYXWVUTSRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRSTUVWXYZ
ZYXWVUTSRQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQRSTUVWXYZ
 
@Jim Thx
 
"Because your neighbors are mathematicians I've assumed that your neighbor's garden occupies the complex domain" - this is probably the best line I've written on codegolf in a while.
4
 
8:14 PM
@Adรกm APL: (โŽ•A\โจ(2*โจ{โตโดโ‰โต 2โดโณ2×โต}26)-0,2*โจ{โตโดโ‰โต 2โดโณ2×โต}25)[{โต โตโดโ‹+\(โต×โต)โ†‘(โŒˆโต×โต÷2),(2/โณโต)/(2×โต)โดo,-o←1 โต}51]
 
@Uriel Ugh.
 
@Adรกm taken partially from the snake matrix
 
(โŽ•A\โจ(2*โจ{โตโดโ‰โต2โดโณ2×โต}26)-0,2*โจ{โตโดโ‰โต2โดโณ2×โต}25)[{โต โตโดโ‹+\(โต×โต)โ†‘(โŒˆโต×โต÷2),(2/โณโต)/(2×โต)โดo,-o←1โต}51]
Spaces.
Spaces
(โŽ•A\โจ(×โจ{โตโดโ‰โต2โดโณ2×โต}26)-0,2*โจ{โตโดโ‰โต2โดโณ2×โต}25)[{โต โตโดโ‹+(โต×โต)โ†‘(โŒˆโต×โต÷2),(2/โณโต)/(2×โต)โดo,-o←1โต}51]
 
k←{โตโดโ‰โต 2โดโณ2×โต}โ‹„(โŽ•A\โจ(2*โจk 26)-0,2*โจk 25)[(,โจโดโˆ˜(โ‹+\)×โจโ†‘(โŒˆ2÷โจ×โจ),(+โจโด1,โŠข,¯1,-)(/โจ)2/โณ)51]
 
No space is needed between โต and 2
And I think 2*โจ can be ×โจ, right?
 
8:20 PM
(โŽ•A\โจ(2*โจo,51)-0,2*โจo{โตโดโ‰โต 2โดโณ2×โต}25)[(,โจโดโˆ˜(โ‹+\)×โจโ†‘(โŒˆ2÷โจ×โจ),(+โจโด1,โŠข,¯1,-)(/โจ)2/โณ)51]
 
@ZacharyT @Uriel Seriously, you need to rethink that. I can do it in 16 APL bytes!
 
@Adรกm in 14.0 or 16.0?
 
@Uriel Any modern APL. And 18 bytes for any APL since the beginning of time.
 
Oh, Notice how the squares are around eachother.
 
@ZacharyT Yes. But even better; notice how the "values" grow when leaving the center.
 
Jim
8:28 PM
@Adรกm Pyth, 32 bytes: K_rG1J.e+:K0k*-26kbKjm+dt_d+Jt_J
 
@Adรกm Written from my phone, V 33 bytes: Try it online!
It also made me discover two bugs, so it should be 3 shorter
 
Jim
Tried to golf my solution, it didn't work but I got a pretty nice pattern instead
 
Jim
@DJMcMayhem Nice, not exactly the same but yours is more correct
 
0
A: Sandbox for Proposed Challenges

Beta DecayBurning Bridges code-golf graph-theory Probably a dupe since it's such a simple problem Introduction You are on a network of islands which are connected by wooden bridges and you want to see if you can burn every bridge in the island network. However, you can only burn a bridge once you've wa...

 
8:42 PM
โ†‘{{โต,1โ†“โŒฝโต}(โŒฝโŽ•A)[โตโŒŠโณ26]}¨{โต,1โ†“โŒฝโต}โณ26 this on the right track?
 
@Jim oh, does yours have leading/trailing Newlines?
That actually might be shorter
 
Jim
No, mine don't have the central A
 
Oooh
 
@Adám, I'm not even close, am i?
 
Jim
@DJMcMayhem Fixed mine so they are actually the same
 
8:52 PM
@ZacharyT No, you're way to procedural. You need math and array thinking.
CMC: All combinations with no combinatorial built-ins. E.g. [3,1,4][[3],[3,1],[3,4],[3,1,4]]
 
Jim
@Adรกm Wait, I'm not even done with your previous CMC
 
@Jim CMC: do two (three?) CMCs in parallel.
 
Jim
@Adรกm Right, what was I thinkingโ€ฆ
 
@Adám if I'm heading right it might have something to do with fibonacci (?)
 
@Uriel Which CMC? ZYX or combos?
 
9:01 PM
@Adรกm the alphabet matrix
 
@Uriel Fibonacciโ€ฝ I'm looking forward to see what incantations you'll come up with? (Kishuf is assur!)
@Uriel Alphabet(a) is just Alephbet in Aramaic.
 
flattening the matrix and reversing replication:

`4 4 4 4 4 4 4 4 3 3 3 3 3 4 4 3 2 2 2 3 4 4 3 2 1 2 3 4 4 3 2 2 2 3 4 4 3 3 3 3 3 4 4 4 4 4 4 4 4`
`4 3 4 3 2 3 4 3 2 1 2 3 4 3 2 3 4 3 4`
`8 5 2 1 3 1 2 1 1 1 1 1 2 1 3 1 2 5 8 `
 
@Uriel Oy, why are you guys over-complicating this?
 
I just don't know how to center a matrix.
I see what one would do,
 
@Uriel No, you can't do multi-line markdown.
@ZacharyT Center a matrix?
 
9:09 PM
@Adรกm yup, figured it out ๐Ÿ˜•
 
It's hard to explain. I get a 1x1, 2x2, ... and I can't figure out how to align at the 'A'
 
@ZacharyT Start over. Look at which letter is in each position as a function of that position's coordinates/distance from center.
 
Jim
@Adรกm Whoa that's actually smart
 
โŽ•A[1+โŒˆ/¨|26-โณ2/51]
 
@ZacharyT Now we're talking. Just assume โŽ•IO←0 and adjust accordingly, and you actually outgolfed me.
 
9:14 PM
0
Q: Fire propagation simulator

Carlos AlejoSuppose we have a matrix like this: 11111 12221 12321 12221 11111 This matrix represents a terrain, and each cell represents a portion of terrain. The number in each cell represents the time the portion of terrain needs to be completely burnt (in minutes, if a measurement unit is needed), acco...

 
@ZacharyT But now I found a way to do it in 15.
 
1
Q: Edit grace period

sergiolI think the grace period limit of 5 minutes that merges edit events is too long. It is adequate for a site like Stack Overflow, but not for a Code Golf site, as edits are more frequent and each edit has more significance. What do you think?

 
@Jim Using APL rewires your brain to think in terms of function applications on entire arrays.
 
I'm sort of in that state of mind. (Not 2d arrays, but vectors.)
 
@ZacharyT Right, but any-D arrays are way more powerful than vectors of vectors ofโ€ฆ
@ZacharyT I'm still not satisfied with your solution (although it is of course way better than your old one), because of the ¨. You need to do the entire thing in one swoop without looping.
 
9:20 PM
โŽ•A[โŒˆ/¨|25-โณ2/51] with IO 0.
 
@ZacharyT That's the solution for character(position). But I want character(orthogonal distance from axes)
 
Jim
@Adám The result will blow your mind when using real distances (Pythagore)
 
@Jim Right, that's the absolute distance from center, but in my CMC it is the distance from horizontal or vertical axis, whichever is further away.
 
Jim
@Adรกm Yeah I got that already
That was just for science
 
[I'm working on an image enhancer โ€“ best CSI style]
 
9:39 PM
I give up. I have no clue how to get to 15 bytes.
 
@ZacharyT โŽ•A[โˆ˜.โŒˆโจ|25-โณ51]
 
Outer product, I always seem to forget about the outer product.
 
@ZacharyT Because you don't think in "increase rank" terms.
 
@Adรกm what does "increase rank" mean?
 
Scalar => Vector
Vector => 2D array
2D array => 3D array
...
 
9:43 PM
0
Q: Sum using Python

FiliJosiHow can I write a program using Python 3 ver., for sum. example, 4=4+3+2+1+0 or adding from 0 upto 4. similar for 100 = adding the all numbers from 0 upto 100.

 
@Uriel The rank is the number of dimensions. We start with one (a vector), and increase the rank so it becomes a matrix. Outer product always gives a result which has rank of the sum of the ranks of its arguments.
@ZacharyT No, 2D array → 4D array.
 
I was discussing "increase rank", not outer product.
 
@Adรกm isn't it the opposite? you apply the maximum on every 2-length vector in a matrix, reducing the number of elements
 
Jim
Well I can't go down 31 bytes using Pyth, even with the orthogonal distance solution ><
 
@ZacharyT Right, I understand, but it is important because list thinking will increase depth by one at a time only.
@Uriel No, that was ZT's old method. Here, we create the distances for rows and columns first (two (identical) vectors), and then increase the rank to cover the entire field.
 
9:48 PM
@Adรกm oh, I ignored the elimination of 2/
 
Outer product can be used for many neat things, like PrimesUntil←(โŠข~โˆ˜.×โจ)1โ†“โณ
^ is simply using the definition that a prime is a number which does not occur in the multiplication table.
 
Jim
@Adám What it outer product in non-APL terms?
 
@Jim Cartesian function application. Like Cartesian product, but with any function, not just multiplication.
 
Jim
@Adรกm Oh alright
 
According to
In linear algebra, an outer product is the tensor product of two coordinate vectors, a special case of the Kronecker product of matrices. The outer product of two coordinate vectors u {\displaystyle \mathbf {u} } and v {\displaystyle \mathbf {v} } , denoted u โŠ— v {\displaystyle \mathbf {u} \otimes \mathbf {v} } , is a matrix w ...
there should be short R and Mathematica solution too.
 
9:53 PM
Knowing Mathematica, it might have a built in do with the square or something.
 
@ZacharyT OK, but that's not interesting. Using Outer(ceil(),A,A where A are those numbers, that's interesting.
 
@Uriel, guessing you had no clue about even using Outer Product either?
 
@ZacharyT nope. I did tried using it in the beggining, getting this "impressive" result: (โณ26)โˆ˜.\โŽ•A
 
You can golf that: โŽ•Aโˆ˜.\โจโณ26
 
If there's an off-topic and closed/on-hold question that's tagged incorrectly, is it advisable to edit the tags to be correct or does it not matter anyway?
 
10:07 PM
@HyperNeutrino How can there be any applicable tags if the question is off-topic?
 
@Adรกm It's asking for how to do sum of [0..n] in Python but it's tagged
anyway will be back ~15m
 
@HyperNeutrino Neither of those tags apply. e.g. is for maths related programing puzzles or code golfs. But his question was neither.
 
I made a thing where anyone can control a Minecraft player through Twitch chat: twitch.tv/helkahomba
 
@HyperNeutrino The catch phrase don't polish turds applies here. The question is hopelessly off topic and, at least in its current form, not suited for any SE site. Editing will only serve to bump it to the front page.
Also, why on Earth does that question have an upvote?
 
@Dennis Maybe because "sum 1โ€ฆN" is would be a neat little code golf challenge?
CMC: Sum 1โ€ฆN
 
10:20 PM
 
@Adรกm +/โณ
 
@Adรกm You're supposed to vote on the current state of the question, not what it could be.
 
hi everyone
 
@Dennis I certainly didn't upvote it.
 
@Adรกm 1\n$1`
 
10:24 PM
I didn't mean you in particular. One is supposed toโ€ฆ sounds weird though.
 
@LeakyNun Hi. More of my CMCs above.
 
@Adรกm sS
@Adรกm wait, I haven't completed your current CMC in 10 languages
5
 
@Adรกm :s
 
@Adรกm There's a really beautiful brain-flak answer to that: Try it online!
 
@Adรกm >GNO
 
10:29 PM
I don't know how much you know about brain-flak, but the algorithm is just incredible, and it takes advantage of a lot of more advanced brain-flak features
 
@Dennis He, judged by the popularity here, I should edit the question to be this.
 
For a second I thought that was Cubix
 
@Adรกm auto f=[](int n){return (n+1)*n/2;}; tio
 
10:47 PM
The naive J solution is of course [:+/i. but can make a J solution which is one byte shorter?
 
@Dennis Makes sense. I agree with that then.
@Adรกm I would be surprised if that would not be a dupe.
 
@Adรกm cQuents: ;$
 
@HyperNeutrino I can't find it.
 
@Dennis Also works in Anyfix :P Not the TIO version though because that's broken. I might fix it at sometime in the near future.
@Adรกm Neither can I, though I would be very surprised if it does not exist.
CMC: Given x, y, z, find sum [x, x+y, x+2y, ..., z]. You may assume that y | z - x && y < z
 
@Adรกm pdr+i\n 1 1
@HyperNeutrino example?
 
10:53 PM
@HyperNeutrino lambda x,y,z:sum(range(x,z,y))
 
@Uriel lambda*a:sum(range(*a))
 
@LeakyNun 1,2,11 -> [1, 3, 5, 7, 9, 11] -> 36 if I am reading it right
 
Anonymous
@Adรกm Rฮฃ
 
Example: 10, 30, 4 -> 10 + 14 + 18 + 22 + 26 + 30 -> 120
Also, you may input x, y, z in any order you want.
 
@Adรกm ~),{+}*
 
10:54 PM
Are you actually going to do 10 languages???
 
@HyperNeutrino òWV x
 
@HyperNeutrino I am certain he will.
 
I would be surprised if he stops at 10.
 
He's at 4 I believe
 
I count 5. Close enough though :P
I have a 4-byte Jelly solution for my CMC.
 
10:57 PM
@Adรกm -:@*>:
 
Oh yes, 6 now
 
lol I gave a close-reason comment literally 23 seconds after it was asked
SE Auto Comments is great
7 now
 
@HyperNeutrino so you're trying to break my record now?
 
Yes. }:-)
 
@LeakyNun Uriel already answered that one.
 
10:58 PM
6 then :P
@Adรกm Anyfix: RS (same as Jelly) [Incompatible with TIO because of a bug that's fixed on GitHub but not TIO]
 
@Adรกm ,[-[>+>+<<-]>>[->+<]<[-<+>]<]
 
@HyperNeutrino VTC as dup
 
@LeakyNun turing tape contents :)
 
owait
 
-3
Q: I am trying to put numbers into the array using the insert method but they start changing after the 2nd numbers is inserted

Johnpublic class SortedVector { private int top; private int increment; private int size; private int[] A; //for the functions just insert the values that want to insert or delete as parameter public SortedVector(int initialSize, int pIncrement){ top = 0; //index of the first...

 
11:05 PM
@Adรกm befunge &:1+*2/@
 
> The best thing about a boolean is even if you are wrong, you are only off by a bit.
11
 
What CMC is this?
 
hahahaha wow
@ZacharyT z -> sum([1..z])
 
I know this has been said: +/โณ
 
@ZacharyT Yes, twice before.
 
11:08 PM
@Adรกm ruby, I think n->{(1...n).sum}
 
Is that... Charcoal?? anyway brb ~15m
 
@HyperNeutrino yes
 
I'll post one independent of โŽ•IO then: +/1-โŽ•IO-โณ
Once MY has monads completed, this would be 4 bytes.
 
I had an idea for a codegolf challenge
 
11:10 PM
> had
RIP idea
 
<insert look of disapproval>
 
Hey, that's my thing!
 
@Adรกm Julia, n->-~n*n/2
 
@ZacharyT sh
 
Certainly my most popular CMC ever. And it was taken verbatim from a question which was closed in no time!
 
11:14 PM
Just look up unicode look of disapproval.
 
50 rep for bubblegum answer
 
@Uriel, how many programming languages do you now?
 
@ZacharyT 7
 
They are?
 
@Adám how many languages have I used now?
 
11:17 PM
Too many.
Has print sum(range(1,input()+1)) or similar been said?
 
@LeakyNun 7.
 
@Adรกm ok thanks
@Adรกm โŸฆ+
 
@Adรกm Scala, def f(n:Int)=(n+1)*n/2
 
@Uriel, what are those languages?
 
@Adรกm javascript n=>(n+1)*n/2
 
11:23 PM
@Adรกm n+0
 
@LeakyNun o_o, that looks so wrong.
 
@ZacharyT it means "a(n) = n+a(n-1) where a(0)=0"
a(n-1) is implicit
 
Darn it I hit the vote limit
 
I know that. It just looks SO wrong at first glance.
 
@Adรกm clojure (fn f[n](/(*n(+1 n))2))
 
11:25 PM
@ZacharyT :p
I originally wanted to do nLS but that would not be interesting
 
@Adรกm bash + bc: echo \($1+1\)*$1/2|bc
 
Woah. This CMC is really popular.
 
CMC: Given the ID or permalink of an SE chat message, determine how many replies it has.
 
Enough for me for tonight. When LN finished the last, tell him to do the ZYX CMC.
 
11:29 PM
Good night, Adám!
 
^
CMC: Given a string, output a square with each "ring" going inwards being the next character in the string.
Example:
s = "abcd"

aaaaaaa
abbbbba
abcccba
abcdcba
abcccba
abbbbba
aaaaaaa
 
@Adรกm #*(#+1)/2&
Goodnight
 
@HyperNeutrino APL, {(โŒฝโต)[โˆ˜.โŒˆโจ|(1-โจโดโต)-โณ(1-โจ2×โดโต)]}
 
onice
 
APL, {(โŒฝโต)[โˆ˜.โŒˆโจ|(1-โจโดโต)-โณ1-โจ2×โดโต]}
APL is right to left, @Uriel.
 
11:35 PM
@HyperNeutrino Jelly, 11 bytes: J«þ`ล’Bล’แธ„แป‹โธY
 
I was just about to VTC as dupe :P
Huh, I thought answers would be shorter. Nope, I was wrong I guess :P
 
Idea for a challenge: taking a nested flaklike list made of parens, parse it into a list, consisting of the number of () the original list the contains as the first item, and the rest of the list being the lists inside recursively having the same operation applied to them, except for ()s, which are removed, except for being in the first number
 
Aww, I don't get my 64 rep back from HyperNeutrino getting his account back.
 
but that isn't well described
 
@ATaco Unfortunately, votes are not reattributed.
@LeakyNun formatting :P
 
11:36 PM
I'm 78 rep from getting my trusted tools.
 
test case: (()()) = [2]
()() = invalid input does not need to be handled
 
@DestructibleLemon you need to have a more complicated testcase
 
(()()((()))) = [2,[0, [1]]]
(()()((())())()) = [3,[1, [1]]]
is that better?
 
yes
 
it's inspired by my sadflak parser
 
11:40 PM
so essentially for each (), count its depth and then group by depth and find count?
 
nope
counterexample:
 
@DestructibleLemon what would ((())(())) become?
 
thanks, I was about to post that!
that would be [0, [1], [1]]
 
@HyperNeutrino only the first depth is grouped
 
so, build a tree and then find depths and group leaves together on the same branch?
 
11:41 PM
I refuse; this is too hard.
 
@LeakyNun no it isn't, you just have to use recursion
 
you're assuming recursion is not hard
 
also I just realised something sadflak is better at than brainflak
 
What.
 
11:42 PM
@DestructibleLemon multiplcation?
 
@HyperNeutrino I made it fairly easily, but I didn't golf it
 
so input is as string right
 
@DestructibleLemon what?
 
that, but I was gonna say recursion
 
ah ok
 
11:42 PM
because you can push return values on to the stack
 
Also is this a CMC or not?
 
Yup.
 
brb working on it now then
 
um, you could answer it I guess
should I post this to main?
 
not specified enough yet
or i'm being stupid
 
11:44 PM
what exactly is underspecified?
let me try explaining again
 
if you want to post it on main, you should include a worked-out example
 
implement sadf()
wait brb
 
Does anyone know Perl6 here?
 
I know of it.
 
Of course, I know of Perl6 as well.
 
11:46 PM
It always makes me a little sad when SO questions appear here.
 
What was that in response to?
 
for sadf, take a list in some way. create a list [0] for each item in sad f, if it is (), remove it and add 1 to the first item in the list, otherwise, replace it with sadf(that item), and add it to the end of the list to be returned.
 
-3
Q: I am trying to put numbers into the array using the insert method but they start changing after the 2nd numbers is inserted

Johnpublic class SortedVector { private int top; private int increment; private int size; private int[] A; //for the functions just insert the values that want to insert or delete as parameter public SortedVector(int initialSize, int pIncrement){ top = 0; //index of the first...

 
You know it's bad when the tag is java.
Java.
 
เฒ _เฒ 
 
11:47 PM
Generally language specific tags show low quality questions, not always however.
 
^^. Exactly
Unless it has to do with KOTH or something.
 
Also, the Lua tag on SO makes me especially sad.
 
What's so sad about it?
Why did three people upvote this answer? codegolf.stackexchange.com/a/102270/55550
 
Most of the questions are either incredibly implementation specific, EG. Torch, CoronaSDK, etc., Or they show incredibly little knowledge of the language itself, seemingly as far as not running their own code.
0
Q: How to get a value/variable from a table in corona SDK?

Mr. EWhat if I wanted to check one variable or get one value from a table I created in corona SDK? I know you use index numbers in C++, but when I tried that it did not work. in main.lua: local table() table.first = "string" table.second = 25 table.third = "I want to get this one" loadsave.saveTab...

 
The code in this question won't even compile, and yet that's not the question being asked. So they've clearly not even tried.
 
The good ones there have to deal with manipulating the language.
 
Sadly most of the good ones are said and done.
 
Anyone know of someone who knows Perl6 on PPCG?
 
I've answered a few questions there, it's usually just "This is how the command you're talking about works, this is the documentation that specifically says it"
 
11:55 PM
Better question: Let a person satisfy the condition X if they know someone who either knows Perl6 or satisfies the condition X, where everyone does not satisfy the condition X by default. Find someone who satisfies the condition X (the second part is to prevent me from declaring that I satisfy X and then everyone in this room satisfies X thus making my declaration consistent).
 
@bb94, hopefully found a guy.
 
@ATaco that's the problem with the common languages on SO, they tend to attract people that expects you to teach them in one answer the language.
 
Lua is particularly bad for it, because it's mostly implementation specific.
 
@ATaco "I saved 1+1 in a file and called the python interpreter. why don't I see an ascii diamond on my screen?"
* with typos on every second word
 
00:00 - 14:0014:00 - 00:00

« first day (2339 days earlier)      last day (2511 days later) »