« first day (2831 days earlier)      last day (2307 days later) » 

00:06
@quartata O_o google cloud very expensive
i will accept credits however
i mean the always free tier
or you can just send credit card number and security code and expiration date
@quartata theres what
that compute instance looks good enough to me
at least for 5 players
i might even update tf2goat within the next century
00:29
does python have ability to destructure dict?
@Downgoat How would that even look like?
I'll take that as no but maybe like JS's? { key: var_name } = obj;
Don't think so.
that feature looks really nice
theres a few things you can do
you can use operator.itemgetter to ferch multiple keys at once, then unpack the resulting list: var1, var2 = itemgetter(key1, key2)(obj)
you could uhhhhh
use reflection lol
00:50
Does python let you override the splatting/deconstruction operator?
I think so, at least for del a.b
yeah trouble is the information is on the left side
@Pavel Indirectly, yes. Try it online!
So you can set obj.__iter__ to iterate over values and splat that... maybe..?
Anonymous
@quartata You can't even really blame it on Axtell because I do 90% of the devops :P
01:36
@Mego well that 10% elevated him beyond apt removing the kernel
who here is bad at unix who could carry on the legacy
Anonymous
It took me several months before I trusted him with sudo access, lol
@quartata I tried to upgrade Fedora with dnf upgrade --releasever=29, do I quallify?
@quartata I still don’t understand how this happened
@quartata Maybe me?
02:02
@Pavel well i was able to help you out that one time and nothing bad happened so maybe not quite as bad as you think
however you also probably get azure
@Downgoat for real though i think what happened was you pinned unstable and so it wanted to upgrade the kernel but only did half of that process
@quartata I actually moved my things a while back.
oh good. (i think i remember you talking about some hosting provider in primes and squares a while back)
02:26
playing anti-chess and this person resigns right before i made a losing move
but what is "losing"
was it losing in misere or winning in misere
as in
i was about to take their second last piece, and they wouldn't have been able to move so it would be a stalemate, which in this is a win for them
@quartata "get azure" I know how to start a new Linux vm and disable the firewall on it
Which is sufficient for anything I've tried to do but that's not exactly devops
maybe they wanred to stay at a low elo
it was a casual match
without visible elo
02:36
wait what python does hoisting I thought it was better than this...
@Pavel i meant because of your microsoft connection
@Downgoat what kind
variable
you mean that its function scoped? ive actually grown not to mind that recently
i think the difference from JS is the sane namespaces
much more tolerable way of controlling scope as opposed to IIFEs
@quartata as in variable declarations are hoisted to top
like if I declare post_title half way through the function that means I want it declared half-way thrgouh the function >:U
@quartata link to google compute platform thing?
Anonymous
@Downgoat No
02:46
@Mego exactly this is annoying
because I have from blah import post and now I have to do feed_post instead of post
Anonymous
Ok first you were complaining about Python supposedly doing hoisting, but I gave you an example that showed that they don't... Now you're saying it's annoying that Python doesn't hoist? Also something about module-level imports and name resolution?
what was tf2 server called again
"ppcg tf2 server"
its not a big deal if you dont have the old server files
if I give google an empty debit card and I exceed my free quota what happens
02:53
overdraw?
this is why i wouldnt get suckered in by the free credits. just go for the always free instance
but it is debit card
@mods (CC @Mego) can you guys unfreeze tf2 room:

 PPCG TF2 Server - Shut down now

This room is kept for posterity, but the server has been shut ...
yeah i know. your bank will give you an overdraft fee.
@quartata card is not in anyone's name though
so they cannot hunt me down
i think you dont give collections enough credit
no pun intended
anyways you dont actually have to do this right away... i apreciate the vigilance lol
03:02
theyre the people who do the hunting
Anonymous
@Downgoat Thawed
thank you
@quartata oh my
03:19
0
Q: haskelll programming

Nyaga G PatrickQuestion 1: "Pseudorandom Numbers" Develop a recursive linear congruential number generating function that is a given an element of the sequence Xi as an argument and will produce the floating-point value between 0 and 1 (inclusive) that is to be the next element of the sequence. You will need to...

Isn't JHT accepting new students?
 
2 hours later…
05:54
@Bubbler Yes, but members (including RO) are too inactive to check request access list.
 
3 hours later…
09:08
0
Q: Decimal Digit Truncating

Kevin CruijssenInput: A decimal Output: The input truncated How to truncate them? The integer part of the input will remain the same. The decimal part of the input will be truncated based on the lowest digit in consecutive order. The two step-by-step examples below should clarify what I mean by that: Exam...

09:23
@Bubbler As user202729 said, Leaky isn't pingable from the room, and the rest of us only visit every few days, so Erik may not have seen any new applications
 
1 hour later…
10:28
if I select k integers from the range 1 ... n, how many bits are needed to represent that set?
it can't be more than k log n
but is it less?
10:52
@Anush log2(n choose k)
@user202729 thanks.. I think that is Omega(k log{n/k})
 
2 hours later…
12:49
0
A: Sandbox for Proposed Challenges

flawrDirichlet Convolution code-golfarithmeticnumber-theoryarithmetic-functionsmathconvolutionblack-box-function The Dirichlet convolution is a special kind of convolution that appears as a very useful tool in number theory. It operates on the set of arithmetic functions, and there is even a identit...

0
A: Sandbox for Proposed Challenges

Kevin CruijssenThrough Space and Time code-golfintegernumber Introduction: In general we usually speak of four dimensions: three space dimensions for x, y, and z; and one time dimension. For the sake of this challenge however, we'll split the time dimension into three as well: past, present, and future. Inp...

13:35
Not sure how this is typically done... if I want to run a Java KOTH what is the standard way to share the controller/classes needed? Maven? Or just share the files and have the participants compile it themselves
14:16
@Quintec I don't remember seeing Java KotHs but usually the controller's source code is made public so people can analyze it. I don't see why would people run the controller themselves though, it's usually ran by whoever issued the challenge.
@Quintec Maybe one of these Java KotHs can help you decide
@J.Sallé People have been known to run the controller and some bots locally so they can tune their bot before posting it.
14:32
@AdmBorkBork Yeah I can see that happening but it's not required, is it?
No, I wouldn't think so
@J.Sallé depending on the koth, without a controller it might be practically impossible to tell whether a submission is any good or works at all
also, though I have never used it or know anything about it, this exists
15:07
0
Q: A "Sorting" algorithm

Post Left Ghost HunterThere is a "sorting algorithm" sometimes called Stalin sort in which in order to sort a list you simply remove elements from the list until it is sorted. For example the list [1, 2, 4, 5, 3, 6, 6] When "sorted" using Stalin sort becomes [1, 2, 4, 5, 6, 6] The three was removed because it w...

CMC: What is the best runtime you can get on the "sorting" algorithm described in the above question?
@PostLeftGhostHunter Linearithmic word operations?
@NewMainPosts ... seriously?
@Neil (seriously what?)
@PostLeftGhostHunter You were asking about asymptotic complexity right?
15:14
0
Q: StalinSort Golf

Ace shinigamiSomeone sent me this description of a joke sorting algorithm, and I thought it would make for a fun golf. Given a list of positive integers remove all elements that aren't larger than all elements that precede them. Here's an example in Haskell. stalin :: [Int] -> Int -> [Int] stalin [] n = [] ...

@user202729 Yes.
it's 4th on newest questions...
Its a different question
> This is not .
ah ok
15:17
IPS is honestly hilarious
"How to tell a friend that she is too loud when she speaks without offending?" => well you just… talk to her?
yet people answer with huge walls of text about such mundane topics
People can have all sort of IPS issues right...
@Fatalize be careful. you might trigger someone
then they'll need to post on IPS to figure out how to deal with you
Not many people will read this message anyway considering how active TNB is nowadays :p
@Fatalize Well I guess if somebody posts a "star this if you have read the message above" it would draw attention...
3
15:52
-1
Q: Random numbers generator

MonolicaGenerate a random number (in the millions) like 2,000,000. Then increase the number a million each time in 8 times. Your code should display like this: random number randomnum+1000,0000 randomnum+2000,0000 until you increase it a million each time eight times.

16:11
@quartata If you mean it like that, yes, I get free 300$ monthly credit for azure.
wait. real shit?
yes
whoa
that's a major budget. I work for microsoft, and I don't even get that
at least, as far as I know.
microsoft research probablt gets champagne
16:14
@NathanMerrill I managed to BS management that I needed my own Azure credit because the group I was in managed to max out the number of VMs they could use
so... itd probably be bad form then to use it for video games
Wihch wasn't exactly false but I all I needed was a single crappy 5$ VM
...that's odd because my team is running into that exact issue of not enough VMs :)
you don't work on Intune, do you?
Never heard of it, actually
ok, cool :)
16:17
I worked in MSR quantum architectures
frankly i think working on quantum should automatically get you your own ferrari. wonder what xnor thinks about that one
@Pavel just research, or is this for Azure?
@NathanMerrill Just research, I needed the VM to deploy a Jupyter Hub instance
(Expect a Q# Jupyter kernel sometime in the near future)
I mean, I wasn't really doing research. I was just working on that Jupyter kernel
There were a bunch of super smart physics guys near me and occasionally they had meeting I had to go to and I understood none of it.
Hey, that's like half of my meetings
Do adults actually like the food they provide during lunch meetings
16:25
no
Good to know
well, ok. depends where you work.
my food is great. I'm at a different location, though
The cafeteria food is great. The food the provide for meetings scheduled over lunch isn't.
Well, everyone else seems to like it ¯\_(ツ)_/¯
It's like, 99% vegetables most of the time
Really? Hm. I think the most common lunch is Cafe Rio here
actually, I don't know if that is a inter-state restaurant. Do you know what that is?
16:28
Don't think so
Ok. We regularly have Mexican and Thai.
@Pavel I've worked at the same company for... 3 years? They've provided lunch during a meeting 3 times. Every single time it was delicious BBQ
wondering if im under an NDA for the pineapple and onion pizza incident
@NathanMerrill That sounds about right. I guess I just really don't like thai food. I wasn't really able to recognize it as such up till now though.
what of it have you had
16:30
I have no idea what to call any of it
It's primarily Jimmy John's for lunch meetings here, so /shrug, it's a sandwich.
describe?
Uhh, noodles and a strange brown sauce? ¯\_(ツ)_/¯
were there little tiny black beans in it that tasted sour
Yes
We don't have food from "named" restaurants, it's all subsidized by microsoft. They also grow the salad right there in the building, there's a small-ish hydroponics setup
16:33
Wait, really? I had no idea when I visited
It's super recent
thats unironically my favorite thai dish
I mean, I didn't recognize any of the restaurants, but I assumed they were Redmond-based restaurants
All the names are tech puns
Like you can grab a snack at the "Quick Byte"
0
Q: x bottles of y on the z

FireCubezIntroduction Your challenge today is to output the lyrics of "99 bottles of beer": 99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall. 98 bottles of beer on the wall, 98 bottles of beer. Take one down and pass it around, 97 bott...

16:36
(its called rahn nah noodles for future reference)
I guess they're not all tech puns, sandwhices are sold at "Sub Culture"
probably the only way to survive when your clientele are all nerds
they respond to no other form of marketing
What's the pizza place called?
that's where I went
We didn't actually have a pizza place at my building, we just had a Mod accross the street
They have different names in different buildings
its cool that they grow stuff there though
16:39
oh. I went to the big eatery. It had multiple floors?
Oh, we call that the Mixer. I don't remember what anything there is called.
Well there's also a Submixer with a bar but I've never even been in there
wonder what its like tending bar at microsoft
lmao
The campus still isn't as fancy as, say, the Googleplex
But it's way bigger
Microsoft operates it's own transit network to carry people between the various buildings
17:36
CMC Output the following matrix:
0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3
0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
17:51
I have 28 bytes in PowerShell, or 43 bytes to prettify the output.
@AdmBorkBork APL, 10 bytes, 1⍪⍨4 4⊤⍳16 with ⎕io←0
Having way too much fun with leafo.net/lapis, a very fast web framework that runs inside of nginx (lua gasp).
18:06
@mınxomaτ lol I did a lot of lua scripting back in the day when managing Open Tibia servers.
18:35
@Cowsquack Longer, but more interesting: 4⊥⍣¯1⊢1+4×⍳16
@Adám I got this playing around with that
19:06
@AdmBorkBork V, 21 bytes: i´0´1´2´3Ù4R0123ÙÒ1
Alternatively:
i´0´1´2´3
±¶1Ï4A0123
@dzaima Right, but that's kind of obvious. The trick here is to find numbers that give the right result in a single base. Not hard really.
@Adám yeah that was my original solution
I also had ⍉↑,(⍳4)∘.,⍣2⊢1
@Cowsquack looks like gibberish to me
@AdmBorkBork Pyth, 11 bytes: Cm+.Dd4hZ16
19:50
0
A: Sandbox for Proposed Challenges

Luis felipe De jesus MunozIs this a Major Scale The major scale (or Ionian scale) is one of the most commonly used musical scales, especially in Western music. It is one of the diatonic scales. Like many musical scales, it is made up of seven notes: the eighth duplicates the first at double its frequency so that it is ca...

@AdmBorkBork Charcoal, 13 bytes: ↑E¹⁶⁺⁺1﹪ι⁴÷ι⁴
20:04
@AdmBorkBork Canvas, 9 bytes
@dzaima I've done worse... the entirety of RAD's parser is regex fitted to look like EBNF
@NewSandboxedPosts Music theory questions have so many edge cases
And I've also noticed a deadly flaw in RAD ... input is broken, it drops the last character O_O
It's hard to actually specify all of them when a lot of music knowledge can just be taken for granted
0
Q: 0xDEADBEEF is not tasty, but still 0xFEEDBEEF

FireCubezInspired by "You had me at hello" Introduction For those who don't know, hexadecimal is a base system like decimal. Contrary to decimal however, it uses 16 (hence the name) digits instead of 10. Here are the first few numbers while counting up in hexadecimal to maybe give you a feel of things,...

20:08
Anyone else ever walk away from a certain project for a while, only to come back to it to not know what part does what in which file?
@AdmBorkBork Pyth, 11 bytes: CaR1.DR4U16 (same score as Leaky's)
@Zacharý I never know that, I just search for what I need & create new "standards" as i go, or just cram everything in one file :p
NVM, I just remembered where input was handled.
Dang, RAD is a massive hack.
Oh, it's just me thinking that a newline is automatically added by readln that's messing it up.
20:57
Whoa, The APL Orchard (stats) is now more active than TNB (stats)!
21:32
> Oops! Something Bad Happened!
>_<
:-(
seems to be effecting all questions on all sites, nothing else that I could find though
looks like everything's working again, as of now
22:03
I'm also curious if there's a meta post about asking one challenge twice, once as a , and once as a . I searched but haven't seen one yet
@DJMcSpookem FRC?
Whoops
@DJMcSpookem I don't see why that would be an issue.
22:22
0
Q: The people on a bus problem.

GuyOnDR0G Here are the basics. There are 200 people on a train, all with assigned seats. The first person to board does not sit in his seat, and takes a random seat. If a person discovers their seat has been taken, they will take a random seat. If their seat isn’t taken, they will ...

22:52
why does processed meat taste bad
23:08
-2
Q: Implement the UNIX `cat` program using only `bash` built-ins

ruiefWe define the most basic form of the UNIX cat program: Copy data from stdin to stdout verbatim. Data means arbitrary 8-bit binary data. The challenge: Implement cat using only bash built-in commands. The program may fork, but may not cause any program to exec, other than bash. The winning solut...

this could probably be reopened now
23:27
It's a duplicate of the cat challenge.
isn't it restricted?
If competitive answers to this challenge and be posted verbatim on the cat challenge, there's no reason to have this challenge.

« first day (2831 days earlier)      last day (2307 days later) »