« first day (2743 days earlier)      last day (500 days later) » 
00:00 - 21:0021:00 - 00:00

12:01 AM
@flawr rip boss
also #saynotocleanfloors
 
anyone know how I can loop over a TypeScripted object using for ... in? e.g. type foo = { bar: number, baz: number }; for (let key in obj) obj[key]++; TypeScript keeps complaining that I need to declare type foo = { [key: string]: number } which is much less type-safe
 
@feersum Not my decision to make, unfortunately
@quartata so I got psed installed and I discovered s2p translates BRE into Perl regex instead of actually using Perl regex and I must say I'm extremely dissapointed.
 
12:18 AM
cc @flawr
 
12:32 AM
@Pavel well
I'm not sure what you expected
the point is that psed is a compliant sed interpreter
 
@quartata sed but with not horrible regex
 
then use perl
 
@quartata How do I do e.g. sed 2s/foo/bar/ in perl
Or even sed 2,5s/foo/bar/
 
have you ever had to use sed for that
 
@quartata I've done sed '1!s/foo/bar/' before
 
12:37 AM
i'm actually impressed
you actually used sed like an editor
 
Wait that's wrong
I forgot sed
 
all right, how about ex
 
I can't remember it right now which makes my point kinda moot but I've had to use sed before to operate on all but the first line
 
1:29 AM
 
2:01 AM
0
Q: Python shortest way to sum two lists

MatiasI'm trying to get the shortest way (character possible) to obtain List 3. List 1 and List 2 are already given to me as arguments. l1 = [1, 2, 3, 4, 5] l2 = ['a', 'b', 'c', 'd', 'e'] And List 3 should look like: l3 = ['a', 1, 'b', 2, 'c', 3, 'd', 4, 'e', 5]

 
2:48 AM
0
Q: Map an array of functions to their return values in point-free style

Rory O'KaneIntroduction I have some JavaScript code that uses Array.prototype.map to map an array of functions fns to their return values: const fns = [() => 1, () => 2]; const result = fns.map( fn => fn() ); console.log(result); // => [1, 2] Challenge The challenge here is to rewrite this f...

 
it is surprisingly difficult to perforate a rubber glove
 
3:36 AM
0
A: Sandbox for Proposed Challenges

OMᗺEncoding nested tuples Tags: code-golf, number-theory, set-theory, binary-tree Related: this Working on my recent esolang μ6 I found myself a neat puzzle: Given the set of all natual numbers and the set of all nested tuples over the natural numbers, find a bijection between those two sets. ...

 
4:27 AM
> Correction: Apple is technically not the first company in the world to hit $1, with PetroChina briefly crossing the mark in 2007. This article has been updated to reflect that.
lol
 
 
3 hours later…
6:59 AM
0
Q: Bridge Game Scoring

iBugGoal Write a program that calculates the deal score from a deal result of Contract Bridge. Input is a deal result like 3S +1 or 1NTXX =, as well as whether the declaring side is vulnerable. The deal result is given as a string, but you may demand an arbitrary way for the vulnerability input, an...

 
7:58 AM
@Pavel what's wrong with sed D:
 
8:34 AM
0
A: Sandbox for Proposed Challenges

Kevin CruijssenCodegolf Rainbow : Fun with Integer-Arrays code-golfinteger Introduction: (Source: Wikipedia) When we look at a rainbow it will always have the colors from top to bottom: Red; orange; yellow; green; blue; indigo; violet If we look at these individual rings, the red ring is of course bigger t...

 
 
1 hour later…
9:58 AM
@EriktheOutgolfer why?
 
it was actually unnecessary, as I found out after I submitted it
 
10:11 AM
What's MSYS2 and why is the Ruby installer installing it?
 
 
2 hours later…
11:58 AM
0
Q: How much is my dice matrix worth?

ArnauldInput A non-empty binary matrix consisting of 3x3 dice patterns put side by side. Output The sum of the dice values. Dice patterns $$\begin{align} &1:\pmatrix{\color{gray}0,\color{gray}0,\color{gray}0\\\color{gray}0,1,\color{gray}0\\\color{gray}0,\color{gray}0,\color{gray}0} &&2:\pmatrix{1,\...

 
@Arnauld ah...good idea, unfortunate conclusion
 
@Arnauld Maybe change it to the sum of all valid dice faces in the array?
 
(Jelly, 2 bytes: ẎS)
 
Do you think there's any correlation between the amount of pips on a dice pattern and the value of it? :P
 
Ugh. My original idea was to identify a single dice or return another consistent value for invalid patterns. But it was too close to Which tetramino is this? My update was ... silly. :-(
 
12:05 PM
@EriktheOutgolfer (Japt -x, 1 byte c)
 
@EriktheOutgolfer Can you find a 2 byte APL solution?
 
@Adám yes, at least if I can assume that the matrix will be inputted raveled and the dimensions (or at least one of them) will be given
 
@EriktheOutgolfer Oh, I meant for input as a matrix.
 
@Arnauld A possible change to your challenge: What about outputting the sum of all possible dices found in the input matrix?
 
overlapping?
 
Overlapping might be fun and avoid a lot of questions. A five alone would be worth 15.
 
um, huh?
 
Okx
You could make it into an image manipulation challenge instead @Arnauld
 
1 0 1
0 1 0
1 0 1
this five?
> count the black pixels
 
Okx
Or a test battery with a picture of a die
 
12:13 PM
test battery would be easy too, if the images only differ on the rotation of the die
 
@EriktheOutgolfer I was thinking about the superposition of 1 + 2 + 3 + 4 + 5, but it's probably a bad idea.
(Not to mention that there should actually be two '2' and two '3'.)
 
in this sense, the result is going to be infinite, unless you only count unique patterns
 
12:42 PM
Thanks all for your suggestions! I've decided to keep it simple and to follow @JoKing's advice.
 
0
A: Sandbox for Proposed Challenges

Jo KingSixty percent of the time, it works every time code-golf random kolmogorov-complexity Your submission is a series of characters, that when rearranged in all possible permutations, should output Sex Panther* (in any case combination, so sex panther or SEx PaNTHer are valid) 60% or more of the ti...

 
Note to self: make sure to make a copy of the source code of the challenge before deleting it :/ (Or is there a way to access it without undeleting?)
 
1:02 PM
0
Q: Bridge Deal Scoring

TFeldBasically the same as iBug's question, which was deleted. I figured out this scoring system while trying to answer that question. Goal Given a deal result from Contract Bridge, calculate the deal score. Input Input is a deal result, and whether or not the declaring side is vulnerable. The de...

 
ngn
@Arnauld do you have a link to the deleted challenge?
 
@ngn I didn't create a new challenge. I've undeleted and edited the original one.
@ngn Manually typing https://codegolf.stackexchange.com/posts/[POST_ID]/revisions might work, but I didn't try that while it was deleted.
 
ngn
@Arnauld yep, that's what I was going to suggest :)
 
 
1 hour later…
2:17 PM
@Arnauld You can view "recently deleted questions" in your profile
 
@quartata Actually, I had access to the question. But I didn't know that it was not allowed to edit a deleted question -- even when it's yours. So, I was looking for the source to edit it externally and minimize the undelete/edit/re-submit latency.
 
oh
 
@Cowsquack BRE and ERE regex is horrible
It's not just something wrong with sed, it's wrong with most coreutils that take a pattern. I use ack instead of grep so I can use Perl regex.
 
2:56 PM
@DJMcMayhem ^
 
Done
 
3:19 PM
@DJMcMayhem Thanks!
 
4:08 PM
sitting here like a dumbass with my thumb in a giant bowl of brine after I somehow managed to get a cut underneath my fingernail from a full speed head-on collision between thumb and dryer door
does anyone want to hire me to choreograph hilarious self-injury scenes
 
4:20 PM
@quartata happened to me when I closed a car door on my thumb. Hurts like heck
 
@J.Sallé it wasnt even like that though, i literally just poked my thumb against the front of the door
im going to need a mechanical engineer to explain this one to me
 
Me, starting an F# project: let (!=) = (<>)
 
@Pavel F# doesn't have !=?
 
@quartata yeah that's unfortunate ⍨
 
@Soaku It does not.
 
4:24 PM
@Pavel Is that brain-F#lak?
6
 
It's because ML doesn't have !=, and F# is largely compatible with ML.
 
@Pavel I'm used to <> (because Delphi exists, sadly) so it wouldn't bother me, but I can certainly understand why you'd do that.
 
@J.Sallé Delphi is Object Pascal, right?
 
@Pavel yes
 
Hard to keep track of so many languages
 
4:28 PM
Yeah Delphi is basically a whole IDE for programming objective pascal
It doesn't work half the time and when it does, it crashes
 
So why have you been using Delphi so much that you're used to <>?
Something I like about F# is operator overloading, you can overload all the standard operators, but you can also create new infix operators out of symbols
 
@Pavel I work for an ERP development company and the code is all done in Delphi since 1980something
 
D:
(What's ERP)
 
Enterprise Resource Planning
We put together a bazillion modules that do anything from HR to shipping products and managing stock
 
5:13 PM
tfw the best take you have ends with you saying "shit" in the most existentially depressed voice imaginable
 
You can edit it out, right?
 
oh well im not using any of the audio anyways but its funny to watch raw
 
What are you filming for anyway?
 
rotoscoping something for twitter
 
algo question. If I have two really longs strings of zeros and ones, but each string actually only has 10 ones, say.
Can you compute their edit distance quickly?
 
5:18 PM
what metric
 
edit distance (minimum number of insertions, deletions and substitutions to transform one string into the other)
 
oh ok Levenshtein
Hamming would be really easy
 
right
 
do you already have it in some dense encoding? e.g. list of the positions of the 1s
 
in a sparse encoding
that is just a list of where the ones are
 
5:21 PM
right that's what I mean
 
ok
 
5:33 PM
@Anush think the trouble is that you still have to consider inserting/deleting the zeroes, so when you do Wagner-Fischer the matrix is still going to be the size of the full string even if you can use your encoding for the substitution costs (i in s, basically)
 
5:48 PM
TIL that Dennis is active on SuperUser.SE, and that his top tag there is Windows: superuser.com/users/101836/dennis
 
if by active you mean "last in 2015" then yeah sure
 
Alright, "was"
I was just somewhat surprised to see Windows at the top
 
Yay
 
Code golf is literally getting a different design in an hour. What the crap
 
5:59 PM
Geobits was only a couple days off
 
(I know it's not the same as getting a design, but still it's something)
 
> You all are the lucky first site to get the new theme.
we better
dang internet messing up msg order
 
Mmm ... msg ...
 
But it is not November yet.
 
@Riker I guess it's just a mistake :P
Anyway inb4 @Downgoat is going to have trouble with the userscript again
 
6:03 PM
@DJMcMayhem WAT
Oh wait it’s a new stock design lmao
 
@quartata Right.. but I still feel there might be a faster algorithm
 
But it's something XD
 
Hmmm it’s going to be difficult to adjust the design userscript. Idk what customization SE will let us do
 
@DJMcMayhem And it will be unique for at least a few minutes.
 
TFW you can answer 2 challenges (dice matrix and roman shields), but you just can't decide which language to use so you give up.
 
6:06 PM
Honestly let’s all just move to Axtell asap so we don’t have to waste time trying to fix this design :P
 
lol
 
@Mr.Xcoder Brain-flak
 
SMBF is the August LotM
 
@DJMcMayhem I was considering Husk, Pyth, Pyke, Gaia or Ohm
But I just couldn't decide which.
 
"Husk", "Pyth", "Pyke", "Gaia", "Ohm" | Get-Random
Pyke
Well, there you go. PowerShell has spoken.
 
6:13 PM
Ok definitely not solving dice matrix in Pyke, so I should get to work for roman shields.
@AdmBorkBork It truly is great and does all things. Thanks!
 
Also, this is a reason to only golf in one language.
 
Oh and I should try Swift too.
 
That's like the exact opposite of golfing in only one language.
 
Answered in Pyth for now because it has more suitable built-ins...
 
@DJMcMayhem yeah SE, thanks a lot for utterly destroying my userscript D:
 
6:28 PM
6
Q: New "stock theme" roll out

Joe FriendWe are rolling out the new "stock theme" to the Stack Exchange network. You all are the lucky first site to get the new theme. It is now live. What new theme? If you're like, "What the heck are you talking about?", then you should read the Meta Stack Exchange post entitled Rollout of new networ...

 
@NewMetaPosts Muahah, beat you to it
 
@DJMcMayhem now I feel bad for replying to you rather than to NMP >.>
 
PANIC DESIGN USERSCRIPT DIED
 
this is a plea for SE to make their mind up and restore our good old theme and deal with the privileges instead
 
@Pavel to be fair @Downgoat had about 6 months to fix it
 
6:37 PM
It's so... not green...
;-;
 
@quartata it is called community design userscript not Downgoat design userscript
 
people actually use and got used to the community design script?
like don't get me wrong I turn it on when I have tampermonkey on the machine but
It's not something I have everywhere and was ever acclimated to
can't imagine getting confused about PPCG being blue I guess
 
I have it everywhere
@Downgoat Are you going to fix it? :3
 
OH MY GOD NEW DESIGN LOOKS LIKE A SHEEP AND PYTOHN HAD A BABY
15
 
> PANIC
 
6:39 PM
@Downgoat that sounds pretty interesting
 
@Pavel I can try but for somethings you can only do so much
btw @quartata since you are like expert on like everything. do you happen to be familiar with celery
 
nah, protest for the design change :P
 
At least chat still works
 
@Downgoat is that Python the snake or Sheep the programming language?
 
@Downgoat not particularly
 
6:40 PM
As in, the script still works in chat
 
I mean I know how to use it but
i've only used it in like one thing
 
> PYTOHN
 
for everyone who uses the design userscript. if you find something broken please add it to this list: hackmd.io/NKJ_1xZpT6iOrGaorKDX3w
2
 
i did have a friend ask me for celery help about a year ago
so maybe this is coming true
 
6:42 PM
@quartata ok well I need to synchronize Axtell database with search index and I don't want to reindex the whole database every minute do you have any suggestion on what to do
 
@Downgoat why would you need to reindex the whole database
what are you using for search again
 
@quartata because lets say mr.joe adds a new post we want his post to appear in search
 
right, but you said "whole database"
 
so if I take every serachable event (answers, posts, etc.) and I make a search index update request when they are changed/added/deleted that'll be slow
does anyone have a screenshot of design userscript pre-design apocolypse?
 
@Downgoat have a column in the DB for "clean/dirty," and a periodic task (every 5 minutes maybe) that queries the DB for the dirty posts and updates just those
algolia just gives you an ID I think
so you use that to update the index
 
6:51 PM
Is it just me or is it a bit hard to tell when we've already voted on a post with the new theme?
 
docs says you can update multiple objects in one request
@Arnauld looks the same on SO
er wait not SO
...huh
 
@Arnauld a bit
 
could have sworn it was like that on MSE but it has blue colored upvote buttons
Yeah I agree actually it shouldn't just be a darker grey
 
That feel when you really wanna see the new "design" but you're on mobile, far away from your sweet little laptop :(
 
it's actually a darker grey with a little blue in it
lol just view the desktop site from your phone
 
6:53 PM
@EriktheOutgolfer SE on Safari just displays the exact same thing.
 
use Chrome then?
 
If only I'd have it installed
 
what browser doesn't have an option to view the desktop site instead of the mobile site??
 
@Mr.Xcoder There's a full site link at the bottom.
 
@EriktheOutgolfer It does have the option but for some reason it doesn't work on my machine, it just sticks to the mobile theme
 
6:55 PM
Fixed some things, update from here: github.com/vihanb/PPCG-Design/blob/master/ppcg.user.js
 
does the "full site" option work then?
 
(Sites like GH -- or anything other than SE -- do work)
 
If you've ever clicked on the full site or mobile link, this will override the preference you selected in the browser.
 
@EriktheOutgolfer Yes but it's completely messed up
 
It looks fine on my phone and is a huge improvement on the previous full site, which I was forced to use to be able to mod from my phone.
 
6:58 PM
lol Safari
3
 
@Dennis Yeah it's nice and now it's consistent with SO
although I find the header to be a bit off
think the font needs to be a bit smaller and a bit more bottom padding
 
good thing they didn't do it for hundreds of sites
 
@EriktheOutgolfer ?
 
if they had already done it for those "hundreds of sites", when there are obviously at least a few bugs and imperfections, we'd be doomed
 
SE full site lowkey better on mobile than SE mobile site
Lol
 
7:05 PM
@EriktheOutgolfer s/we'd be doomed/the issues on codegolf would be network-wide issues/
 
"we" = SE
sorry
of course we, as a community, are already doomed :P
 
My point is that nobody would be doomed.
@Pavel I fully expect the responsive design to replace the mobile site eventually.
 
not sure about that, we might just start seeing people leave SE for the constant design changes, there's a lot of backlash to that already
 
> Initial changes from new design apocalypse
> vihanb committed 12 minutes ago
@Dennis I think everyone else has already accepted the world is ending :P
 
@EriktheOutgolfer Unless there are better alternatives, SE could use a network-wide hot dog theme without being doomed.
 
Fortunately hotdog is only available for flairs
 
ok my ppcg is crashing so I can't make any fixes atm,
 
Woah woah what happened
 
"available" isn't bad, "enforced" is
 
7:14 PM
the ui changed
 
@Downgoat IDK if you know what's up but I can't update the userscript, it keeps installing version 4.0.0 instead of 4.0.2
Hmm, the Ask Question button doesn't look all that nice. Maybe it could use an outline or something? Or just make the left part of the gradiant darker.
 
there are scrollbars besides Mathjax blocks
 
@EriktheOutgolfer .oO
 
@JungHwanMin Everything is on fire
 
7:17 PM
Please tell me there are no scrollbars beside inline MathJax blocks
 
I don't like the new site
it feels suffocating
 
wait, the scrollbars can be actually mentioned as an issue
I can feel your pain
 
is it less wide?
 
@EriktheOutgolfer
 
desktop Chrome
 
7:19 PM
@EriktheOutgolfer That's totally an issue
I see it too
 
brb making freehand circles
 
but yeah I really strongly dislike this line on the left
 
I've disabled it since it appeared over MSE
 
It looks even worse here:
 
@Downgoat Voting still broken:
 
7:22 PM
That is absolutely horrendous. So glad it does not appeat at all here (on Safari).
 
@DJMcMayhem link to post?
 
105
A: Calculate the number of primes up to n

DennisC, 0.026119s (Mar 12 2016) #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define cache_size 16384 #define Phi_prec_max (47 * a) #define bit(k) (1ULL << ((k) & 63)) #define word(k) sieve[(k) >> 6] #define sbit(k) ((word(k >> 1) >

My all time favorite example of MathJAX
 
I want to include it in my answer over meta, and I'd like to put the post links in too, so people won't start wondering :P
 
lol I immediately recogized it after having added MathJax to it :)
 
@DJMcMayhem wait, it's not nice to provide feedback with an outdated browser, maybe that's your case too?
 
7:28 PM
how about this challenge? Consider two strings of length 10^6 each. Each has exactly 10 ones and the rest are zeros. Write code to compute the edit distance between the two strings.
Test case: [270214, 296431, 304382, 555818, 556714, 664534, 712334, 713361, 839726, 903501]
 
alright, can confirm that it happens in the updated version too
 
[76986, 149385, 151505, 169446, 500459, 657538, 769914, 919574, 926038, 989201]
the integers say where the ones are in the two strings
I think it makes a fun code-golf question if the restriction is that your code has to have terminated
the downside is that I don't know what the answer is :)
 
@EriktheOutgolfer I'm on 67. I have no idea what the newest is
 
Oh hey. I just updated to 68
Still seeing them, still ugly
 
7:31 PM
already posted
(already upvoted, right? :P)
wait, my freehand is far from excellent
 
> +1, excellent freehand
Compared to the changes made by SE, even that freehand is excellent. /savage
 
I just like freehand red circles.
 
What happened to the design? Is whatever is going on currently long term?
 
Yes, it is supposed to be permanent (until new changes will occur lol :P)
See the starboard.
 
7:36 PM
I don't know what other people think but it feels kind of clunky to me
 
s/clunky/absolutely blinding
 
Okx
Is there an RSS feed for the newest questions?
 
Okx
Ah, thank you
 
you can also access this from the right side of the home page (not question list)
 
7:42 PM
@Pavel oh heck
@Pavel fixed
 
+1
 
= 8
15
 
@DJMcMayhem huh?
 
@EriktheOutgolfer Uhhhh
I guess I hit enter on accident and didn't notice it?
 
7:54 PM
huh, I've never encountered this probl
 
What's a probl?
 
an apparently failed joke
(which is false, by the way)
 
@Downgoat Settings broken
Also I'm still not getting the favicons to appear in the tab itself
 
@Pavel oh hm I dunno if that's possible. was it being done before?
safari doesnt show favicons in tabs so i have no idea
 
@Downgoat Yes, and it still shows up in chat.
It also seems to be using the same favicon on meta and main now?
The Ask Question button looks kinda out of place, especially on Meta
 
7:59 PM
@Pavel fixed
@Pavel oh hmm ok
 
@Downgoat I think you should make it darker, and grayscale on meta
You're amazing by the way I just want to let you know that
 
8:13 PM
@Pavel ok done for meta. also updated with meta icon
@Pavel :)
 
Favicon appear in tab on meta but not main now.
 
whaaat
 
¯\_(ツ)_/¯
 
Not sure if we had this bug before, but adding linefeeds after/before MathJax delimiters breaks the rending badly -- at least while editing.
 
8:29 PM
@Arnauld Report it on the meta post
 
Which markdown engine does SE use? Because it’s very trivial to make working latex in markdown and not have 1000000 problems
 
8:46 PM
@HyperNeutrino oh, didn't expect that you actually would go, but I'm glad you liked it:)
one of my favourite stores there
@HyperNeutrino are you back at home now?
@DJMcMayhem so that is our new design:)
@Riker this guy is an artist
 
@Downgoat Vote buttons are invisible for me (Safari 11.1.2)
 
00:00 - 21:0021:00 - 00:00

« first day (2743 days earlier)      last day (500 days later) »