« first day (2582 days earlier)      last day (2558 days later) » 

16:02
@J.Sallé Depends what I'm working on. When it uses some feature under development, it can be every few minutes. Of course, such experimental versions never reach the customers.
@EriktheOutgolfer They do have an idea. Everyone who's hired has to go through a basic APL training course, even if they just work with customer relations, social media, event planning, etc. But most are C programmers who implement APL.
@Adám all employees can still consult help, right?
@user202729 Head Quarters..
...huh, please remind me how i would initalize a new float[][] in C++ :P
@EriktheOutgolfer Consult "help"?
@Adám for example docs
16:05
@moonheart08 Because you only need them while debugging?
@EriktheOutgolfer Of course. They're publicly available :-D But in general, they just ask me.
no, i need them for production code. Setting up the air sim
@moonheart08 = {0} probably.
@Adám "publicly available" doesn't necessarily mean "they're allowed to consult them" :P
Or just use a std::array<std::array<float, x>, y>. Too verbose.
16:07
@user202729 i'm not going through and modifying our compiletime code generator to support that (We use a custom system to link all the elements into the game)
plus verbose :P
@EriktheOutgolfer That would be a weird rule. Why would you have such a rule?
@Adám well, "bad bosses" I suppose?
@EriktheOutgolfer Our bosses (CEO and CXO) are APL old-timers. In fact, the CXO is part of my group.
@Adám Pyth, 5 bytes (in any sane golfing language this would be 3 or 4 bytes)
16:10
Jelly is probably 4 bytes.
@Mr.Xcoder Whoa, latency ftw.
2 days ago, by Adám
CMC: π​⁶ (pi^6)
2 days ago.
@user202729 That's ancient in CMC terms, no?
@EriktheOutgolfer s/bad/crazy/
I just want to quickly check when was the message posted, and it's easier to use the onebox.
I would be quite annoyed (but still happy, of course) if I can golf down my Hexagony quine, as I put a lot of effort into writing the explanation.
16:15
Lol that's the downside when writing amazing answers :P
@Adám APL, 3 bytes ○*6
Inb4 there's a shorter solution
ಠ_ಠ APL beats Pyth by 2 bytes
@J.Sallé that does pi*e^6
@dzaima really?
16:17
(any unclear part you can see?)
@J.Sallé yeah it should be roughly 961
is a function...
The Pyt solution is 2 bytes.
@J.Sallé is pi times, and you're passing it *6 and monadic * is e^
@Mr.Xcoder Pyt beats Jelly by 2 bytes.
16:18
Are you sure there is a one-byte constant for pi?
@Adám Brachylog, 3 readable bytes: π^₆
Oh yeah... There is one
I don't know, it's 1 character.
@Adám Pyt, 2 bytes π⁶
a 5-byte APL solution could either be *∘6○1 or ○⍣6⊢1
16:20
Or ○○○○○○1 for 7 bytes :P
@dzaima should be 6*⍨○1 then?
@J.Sallé yep, that's what I got
2 days ago, by mudkip201
@Adám Pyt: π⁶
Anyways...
I totally overlooked the fact that is a function >.>
16:21
Wait a minute... π is rendered as round pi, and π is rendered as sharp pi for me?
How do I check two char *s for equality?
strcmp
strcmp. Do some research please. This is not SO right?
@user202729 the first is a lowercase and the second an uppercase Pi, iirc
16:22
@Mr.Xcoder that's exactly what 5-byte ○⍣6⊢1 does
No they're the same character. The first is in code and the second is not.
@Dennis Thanks!
@user202729 I did google it. All I found was a quora answer that went through the string char-by-char.
@EriktheOutgolfer At least I tried it ¯\_(ツ)_/¯
@Pavel Then your google is wrong. I searched for check two char* for equality and get this, which is in turn a dupe of this
16:24
well, ⍣6⊢ is shorter than ○○○○○ :P
I noticed.
@EriktheOutgolfer: the last test case I linked is falsey because the sorted difference of the elements is [1,2,3,4,6]
I figured out...
@user202729 Undoubtedly. I seem to be remarkably bad at searching.
(next time you can try posting in Rubber Duck Debugging room instead of TNB to know what to search for, as searching for your messsage gives... BTW what have you searched for?)
16:27
"C Check char*s for equality"
At least the first one has strcmp mention.
(unfortunately Google personalization depends on the user so it isn't that easy to compare (correct?))
@NieDzejkob My Google is cursed. Only explanation.
@user202729 how does the control flow in the corner of this image work? That \ on the right is really hard to notice
@NieDzejkob You need ``\`` to type \.
And use --- for strikethrough in chat.
16:32
@Pavel There's a decent chance Google goes by your search history and prefers results in languages you normally use. A vague search term like C might not be enough to override that behavior.
@Pavel Use DuckDuckGo. It won't become cursed, it doesn't track you, and often you see the most relevant SO answer on the results page itself
I always Google search in English and about programming related things so I don't face that issue.
(although, you know, how bad at English I am)
@Dennis Yep. Get a lot of C# solutions.
@user202729 I can't understand the second comma in your message. I'd like to get better at English, so could you explain it?
@Mr.Xcoder Not too amazing TBH. I planned that on paper for a few days and get everything done in 1~2 days. (more than half of them are for getting HexagonyColorer to run)
16:35
@Pavel I don't get a single one on page 1.
16:54
@user202729 That seems pretty much amazing to me :)
@Dennis I have disabled search history for a reason...
It's a bit creepy, but Google usually knows better what I'm searching for than I do myself.
Same here ^_^
well, I don't know if they actually follow their privacy policy exactly as written
that makes it even creepier I suppose
Does anyone have experience with using inline assembly with the Visual C compiler? (i.e. cl.exe)
17:05
@Mr.Xcoder Mind if I take pieces of your actually code, or are you planning on undeleting your answer?
@DJMcMayhem Go ahead and use them however you wish :)
Cool, thanks!
No problem
@Mego There are open commands in actually, right? You should add reduce
@MartinEnder No, but take a look at msdn.microsoft.com/en-us/library/45yd4tzz.aspx
17:16
yeah, I've seen that, but my main problem is that I don't even understand the code I have (because I took it from an SO answer, obviously), so I'd first have to learn inline assembly in gcc to understand it and then in cl to port it, and I figured if someone has experience with it, they might know what to do with these three lines I have.
in this case, I'll just replace it with C code for testing
@DJMcMayhem there are a lot of open commands right now
Reduce (and/or cumulative reduce) would be super useful
there's neither reduce nor fold in there...
but I suspect there is, but it's worded less clearly (as a lot of commands are)
@DJMcMayhem hm, R may be kinda helpful though
Holy crap the whole neighbourhood is flooded in darkness... We're experiencing power failures ;-;
@Mr.Xcoder how are you here then
:P
17:25
reads about another regular occurrence where he lives
@ThomasWard Hotspot from mobile
@EriktheOutgolfer It's definitely not a regular occurrence.
it is where I live...
It hasn't happened at all in the last ~2/3 years
@DJMcMayhem @Mego glad to see you two got the moderator diamonds now. Welcome to Hell in a box. :P
Yay it's kinda back up
CMP: Do you like the fonts and colour scheme of this? (open to suggestions)
17:29
@Mr.Xcoder Yes. Any dark theme with bright text is a good theme IMO.
Well maybe not any, but you get the gist
@Mr.Xcoder looks good to me
@DJMcMayhem here's a (long) way you can do reduce: Try it online!
(note: the - is the actual function)
@Mr.Xcoder Yes, but I think you want s/retried/retired/
Yeah typo
the first R reverses the list, because otherwise it would do right-fold reduce
17:34
Thank you guys for the fast feedback!
the ⌠⌠@...⌡R⌡ part pushes the function ⌠@...⌡R
then Y calls this function until a fixed point is found
the function does two things: ⌠@... pushes the function @...
and R runs it with the list as its stack, and then returns the resulting stack as a list
null == number...? It could be normally, but it's not a number in programming
the function @... has a leading @ because otherwise it would take its arguments swapped
after Y finishes, F returns the first (and only) element of the resulting list, so as to "unwrap" the result
@DJMcMayhem understand?
17:41
Yeah, it makes sense
I'm still pretty new to actually though
I also don't use actually that often, but it's pretty easy to understand after you decrypt its docs :P
I really think there was a reduce function, I swear I’ve seen it once, but perhaps we just can’t find it in the docs... or maybe not
(that holds true for almost every stack-based language)
@Mr.Xcoder I question that, since I searched for multiple strings in commands.txt: reduce, fold, pop f, function
none of them pointed me to a reduce-like function
the closest is R
Same here (except for pop f)
It's so weird, I'm commonly running scripts on my server and now I'm writing an JS app locally. O.o The page loads too fast...
17:45
btw @DJMcMayhem, given that I've been able to get the buk for a simple reduce to 9 bytes, you can now guess how much it would take for me to implement cumulative reduce :P
@Mego oh, also I think Actually would benefit from golfier alternatives for 1╟ and 2╟
holy. I did it. the Air simulation is no longer one of the biggest bottlenecks in TPT! (at least on my local copy)
@Dennis Another must-have: The Noris digital. It's a stylus that looks (and thus feels) like a Noris pencil. For me, it produces much more consistent results wrt stroke width / pressure. Here is a comparison of me writing with the rM pen and the Noris.
i can run cell size one at 60 FPS! (Previously the best any of us had ever managed was like 20 fps)
@moonheart08 What game is this?
Hey, I just finished my first esoteric programming language, Pepe. It now just needs tests... I know, it's an outdated meme, but I don't care. GitHub
17:55
The Powder toy.
just need to work out a few kinks in my updated air sim (notably, graphical tearing issues) and everything will be great
@labela--gotoa WTF? Are you using GitHub without Git?
@NieDzejkob What do you mean? I use Git, of course
Sometimes I do stupid mistakes and just correct them via website
Oh, it looked that way because you edit markdown via the website and you did that a lot lately...
haha I know, often when I do errors in MD I correct them via website. .-.
BTW, wouldn't ree use the active item both as the label and the condition?
18:06
oh, you're right .-.
3
Q: Are circular tapes exciting?

ZgarbA Brainfuck derivative Let's define a simple Brainfuck-like programming language. It has a two-directional tape of cells, and each cell holds one bit. All bits are initially 0. There is a moving head on the tape, initially at position 0. A program is a string over the characters <>01!, executed ...

TBH, I thought I was misunderstanding the docs
> Mice are a less commonly used unit [of measurement] ... source
Strangely, I just visited that page too
18:59
0
Q: Color scheme display

ValkyrieA sample of a custom color scheme (like below) defined in .Xresources is often a good thing to have access to when editing said scheme or using the colors elsewhere in your system. The challenge is to color each definition's hex code with its respective color (e.g. black/color0 is defined as #00...

0
A: Sandbox for Proposed Challenges

MMAdamsHow acceptable is it to base challenges off of pre-existing challenges? I saw the challenge for Your Own Pet Ascii Snake and had a thought about making the output look more 'snakelike' by printing the characters |,\,/, and optionally ( and ) instead of always using the + character. Here's how it...

19:12
How do I create a page with MD and custom design on GitHub? :/ GitHub documentation is not really helpful.
I'd only need a CSS and a template HTML, how would I do it :/
oh wait...
Umm, changed my mind now, nvm
19:33
Hi, all! I described the Z80 golf machine used on anagol on esolangs.org.
Neat.
Anonymous
@EriktheOutgolfer There is no builtin for reduce in Actually. The primary reason is that, until somewhat recently, functions and iterables didn't work so well. Now that they're better, I should add it.
yeah I realized later
Z80 golf is pretty amazing. I've been staring at this for a couple of minutes in awe
...I just "got it" and laughed out loud at how smart it is. Gosh darn it kodera.
19:56
Anyone in here an http guru
or does anyone just love interpreting rfcs
20:10
Sorry nope
20:32
When I saw "Best of PPCG 2017 chatroom", my first thought was: "Oooh... a competition of the best quotes from PPCG chat." I think we should do this.
4
"Best of TNB 2017"
@NathanMerrill same
I can't pin a shortcut I created to the taskbar.. ಠ_ಠ windows
20:36
I'm going to bet it already exists (perhaps with different parameters?)
Did i really burn myself out over improving a cruddy air simulation in a game
whyyyy.
Now i can't do anything useful for the rest of the day without feeling burned out
20:53
In Maven, a common java build automation tool, you can specify certain build profiles to be "active by default". You can also specify specific profiles to be active during your build. Apparently if you use the flag to specify specific profiles, maven ignores your profiles that are active by default.
how dumb is that
CMP: Who here has at some point in their life compiled a Linux kernel from source?
raises hand
the question you SHOULD be asking is if i was successful or not :p
I haven't, despite a bunch of people telling me I would have to if I start using Linux, when I switched over two years ago.
@Pavel did you switch over to Linux two years ago or did you switch to Linux over two years ago?
Is that not the same thing
oic
21:01
No. The first one is =2yrs. The second is >2yrs :P
slightly over two years ago
best decision I ever made
I really like linux. I'd use it all the time if I could. But in the end, being able to play all of my games without worrying about WINE is so worth it.
@DJMcMayhem You don't have to only use Linux
21:02
do you dual boot at all?
@DJMcMayhem dual boot
Windows only for gaming and MS Office bullcrap
Linux as primary OS
reboot to switch between
hey, LibreOffice isn't that bad
and then done
LibreOffice is usable, yes.
I have before, but I don't really see the point of having to reboot to switch between "regular OS" and "gaming OS".
21:03
do you have an SSD?
MS Office is actually really good.
I'd rather just have one thing for both
@NickClifford Yesh
I use Linux on my laptop
I also have an SSD, and imo rebooting isn't that bad when it only takes like 10s to switch
It's not powerful enough to play any games that won't run in wine anyway
So I don't need windows on it
My desktop, which I pretty much only use for gaming, has Windows
21:04
if only .odt became the standard instead of .docx
s/odt/txt/
I just use .txt for everything I possibly can.
s/odt/md/
It confuses the hell out of my teachers and classmates
Well, sometimes you need to typeset stuff. I'm all for using markdown more.
s/odt/tex/
21:07
I just hate how my teachers do everything in .docx and sometimes I can't format it correctly within LibreOffice
docx also supports more stuff than odt.
I hate how my teachers do everything in .docx and sometimes can't even format it correctly in Word itself ಠ_ಠ
You can't always convert a docx to an odt.
I just want to know what makes docx compatibility so difficult for LibreOffice
Also, pptx is far better than odp
LibreOffice Impress is actually garbage
21:09
I write all of my notes in vim. It confuses so many people
I find it hilarious
I have to use OneNote Online whenever I'm at home
i use notepad++
Oh yeah, I take notes in vim too
it's a shame that there's no MS Office for Linux cause I really like OneNote
onenote is bleh
21:10
I really like MS Office in general.
especially for big notes
Visio is actually super nice, but no one seems to have even heard of it
@DJMcMayhem that's because vim is confusing ⍨
visio was okay when i used it
i find that draw.io is simpler though
@Pavel because it's $450 per license for standard nowadays
21:11
To some people :P
that's why nobody heard of it :P
Personally, I'm now at the point where my hands can type/edit in vim faster than I can think about the individual commands I'm using.
I just installed Emacs on my school laptop so maybe I should start taking notes in that :thinking_face:
@ThomasWard Damn, I had no idea. I just have a page of MS Office keys
@DJMcMayhem whenever I use vim, it feels like I'm using a random string generator (since I can't quit the goddamn thing)
21:12
@Pavel Yep. I have a license of Visio Pro though as a holdover from when I was in school so :P
@J.Sallé It really isn't hard. You open another terminal and type pkill vim.
so far the only things I know in vim are :wq, :q!, ggdG, i, and typing :P
Just memorize this: <esc>ZQnano and you'll never have that issue again :P
@Pavel I use xkill and click the terminal
@HyperNeutrino Hey, that's where I started.
21:13
why do so many people use :wq over :x
Ctrl-Shift-W
BTW, ggdGi --> ggcG
oh cool :D
@Poke faster to type :wq in my opinion over :x, at least for me
Actually, d<anything>i --> c<anything>
>.>
21:13
Is there really not a better select all than ggvG
@Pavel I use VV, (and vv) but that's a personal mapping
Or <leader>V if I'm in visual studio
@DJMcMayhem See, that's what I mean! Why the heck typing d<anything>i doesn't print d<anything>i on a text editor D:
because my fingers are usually between the top (QWERTY) and middle (ASDF) rows, and since "wq" is a pair of adjacent keys on QWERTY, it takes just as long to type one of the two characters as it does to type both, whereas for x, I need to move my fingers down a row (or use my thumb to type it)
@J.Sallé press i and never press esc and all of your problems are solved
until you want to save
anyone use ctrl+c instead of esc
nope
21:17
@Poke to stop stuff in terminal/cmd I use ^C
We are talking about vim though
@J.Sallé Oh I know it's not intuitive. I don't use vim because it's intuitive. I use it because I enjoy being able to edit text really fast entirely from the keyboard. It's certainly not as intuitive as a lot of editors
Hm. Should this be tagged ?
@DJMcMayhem yeah, I'm probably just lazy about learning to use it. Pretty sure if I actually tried to use it instead of just panic-pressing every key in my keyboard I'd learn something :p
Apr 14 '17 at 15:18, by Kritixi Lithos
Keep calm and vimtutor
21:28
@DLosc that kinda fits that statement like a glove now doesn't it :p
In 4 years Feb. 22 will fall on a Tuesday... 2-22-2022 will truly be 2's-day
@Pavel Visio is pretty much mandatory around here. Documenting server data flow, network diagrams, etc.
And it's really neat
21:51
none of you are prepared for 2's-day
0
Q: Tips for golfing with numpy

user2699There's already a comprehensive list of tips for python here, so what I'm asking for are tips that specifically apply to using the numpy, scipy or pylab libraries. These can be either ways to shorten code already using numpy, or ways to shorten common python operations by using these libraries...

22:17
> The best way for incorrect code to document its own wrongness is to not exist.
(from one of the issues on Vigil)
yay my first prolog program that does something that wasn't asked by a tutorial!
22:33
@Riker What's up with your profile description?
@Pavel By hand? No. Installing certain packages compiles it from source though.
22:50
@DJMcMayhem fun?
I happened to be re-reading some of lovecraft's stuff
(in case you didn't realize, it's the text of "in his house at r'yleh dead cthulhu waits dreaming")
In what language?
23:05
Hey would anyone mind checking my before I submit it? It's for the Calculate the Prime numbers challenge. ID 104590 (first submission from me)
checking my code*
This room is full of mods. How scary :-P
@CJ1992 The answer to your question probably depends on the language
Sorry, I should have stated it's in C# .NET Core
Then I can't help, sorry
No problem
1
Q: Quickly regrouping lists

Wheat WizardGrouping takes a list and splits it into new lists of equal adjacent elements. For example [1,1,2,1,1] -> [[1,1],[2],[1,1]] If you then take the length of these groups you get a new list of integers [1,1,2,1,1] -> [2,1,2] Your task is to write a program that takes a list of positive intege...

23:17
I broke it anyway so back to the drawing board
23:46
@dzaima I think you broke Windows, taskbar icons are just shortcuts

« first day (2582 days earlier)      last day (2558 days later) »