« first day (2683 days earlier)      last day (2160 days later) » 
00:00 - 16:0016:00 - 00:00

4:11 PM
@Riker best if combined
 
@AdmBorkBork If I define a function foo, how do I get what's being piped into it like echo "something" | foo?
 
$input
stdio in PowerShell is weird
 
Thanks
@AdmBorkBork My quest fo replicate alias grep="grep --color" continues. I'm currently at function grep { $input | /usr/bin/grep $args --color }, please tell me if there's a better way.
@AdmBorkBork Wait, that doesn't work if I'm not piping anything into the function
 
Yeah ... stdio in PowerShell is weird
You could try doing a param($a) instead of $input
That should work in what you're describing
 
@AdmBorkBork Nope
 
4:23 PM
Then you'll need to send $a | through the pipe
 
 $ function f{ param($a); $a }
 $ "foo" | f
Got nothing
 
OK, last option would be to do function f($a){$a} and try that
 
Neither of those read input, piped or terminal
 
OK, the literal only thing left is the $args variable, where $args[0] is the first command-line argument, but that shouldn't work in this case because you're not calling it via command-line arguments.
 
I think i'll just write shell scripts and put them in PATH
 
4:26 PM
You might be stuck with an if/else surrounding the $input
 
Ooh, that could work.
 
Like, if($input){$a=$input}else{$a='foo'}; $a|grep blah blah
 
Is there a ternary operator?
 
You're looking at it.
 
Oh well
 
4:29 PM
yeah
 
Well I GTG, cya
PowerShell needs multi-word aliases
 
Hm, should I get GitHub Home or GitHub Small Business with Service Pack 3.
 
4:50 PM
@mınxomaτ Neither, I'd go with GitHub 365 Business Essentials.
 
I'm a fan of GitHub Vista
 
@PhiNotPi Forget GitHub Vista. The word has moved on to GitHub 10 Developer's Edition.
 
@PhiNotPi A version of GitHub that's really just TFS with TFVC, presented as Git through a buggy PowerShell script no one touched in 3 years.
 
5:05 PM
Someone should make version-control software that doesn't actually keep track of versions, but rather takes the current code and extrapolates backwards what it thinks the prior versions looked like.
 
@PhiNotPi Someone should make version-control software that doesn't actually keep track of available pulls, but rather takes the current code and extrapolates forward what it thinks the next version should look like.
 
5:28 PM
Are most people here going to prematurely migrate to GitLab/Bitbucket?
From what I can tell MS wants to add their stuff with GitHub enterprise but they're not going ti charge $10 or every file on github
 
@Downgoat I'm not. I'm going to optimistically hope that nothing or very little will change, and then jump ship only if necessary.
If I end up needing to make a MS account to continue using GH, I will be rather unhappy
Mostly because I've found that everything that has any relation to an MS account is waaay too hard to work with.
 
After the new CEO, imo microsoft aquisitions haven't been the evil terrifying thing they are set out to be
@DJMcMayhem you dont use windows?
 
I do, but I like to use windows 10 entirely locally e.g. no onedrive and local accounts
And I also use 7 about half the time
 
CMC: Print the last n digits of the 10-adic number that ends ...5781249 that squares to 1.
 
just a small question...is it possible?
2
 
5:38 PM
Is the digit before 5, 7?
 
@H.PWiz Decadic numbers are unordered, I think.
 
What's a 10-adic number
 
@Adám I shold have said digit
 
In mathematics, the p-adic number system for any prime number p extends the ordinary arithmetic of the rational numbers in a different way from the extension of the rational number system to the real and complex number systems. The extension is achieved by an alternative interpretation of the concept of "closeness" or absolute value. In particular, p-adic numbers are considered to be close when their difference is divisible by a high power of p: the higher the power, the closer they are. This property enables p-adic numbers to encode congruence information in a way that turns out to have powerful...
 
the comma unfortunately makes this specific question rather confusing...
like, "Is 7 the digit before 5?" or "What is the digit before '57'?"?
 
5:42 PM
Sorry, Is 7 the digit before 5?
 
@H.PWiz no
I think of 10-adic numbers being integers that go infinitely to the left
 
@LeakyNun Is it 2 then?
 
just like how the real numbers are numbers that go infinitely to the right
@H.PWiz yes
 
@DJMcMayhem You're missing out on a good chunk of Windows 10 features. Synchronized non-local document storage, profile migration to a new computer, etc.
 
@EriktheOutgolfer yes
 
5:57 PM
@AdmBorkBork So Google Drive? :P
 
@Adám it says r=p/q × 10^d and q is coprime to p, later down it takes p/q to be 1 to get other numbers, if p/q is 1 wouldn't they not be coprime to each other?
 
Although Profile Migration sounds nice, the thought of having an OS tied to non-local accounts just sounds gross to me
 
@AdmBorkBork What if I only ever use a single computer?
 
@Adám You'll still benefit from one account if you have an Xbox or Windows Phone (I know, I know), thanks to UWP games and apps. Additionally, you (afaik) can't use Cortana without a Microsoft account. If you have a family with kids, there's a lot of parental controls that require a Microsoft account.
 
Actually, that last point drives me crazy. Trying to help my parents set up parental controls for my siblings was a nightmare.
 
6:03 PM
> Additionally, you (afaik) can't use Cortana without a Microsoft account [or while being in Greece].
 
@AdmBorkBork so all I had to do to get rid of cortana was delete my microsoft account? o.O
 
@AdmBorkBork If I had an Xbox or Windows Phone I wouldn't be just using one computer, would I now? Funny enough, my only other electronic main device is also a Microsoft product, but afaik it doesn't support the concept of user profiles. I've eradicated Cortana from Windows 10 as much as I could.
 
What's wrong with Cortana? I always hear people complaining about it, but never anything specific. People don't seem to have the same problems with Siri or Hey Google.
 
> – Hey Cort, hey Anna! – I'm listening.
 
@AdmBorkBork I use neither of those two either.
 
6:06 PM
@EriktheOutgolfer LOL
 
@AdmBorkBork My main problem with Cortana is that it found its way into my Windows computer. Owning no Apple or Android devices, I have much less of a problem with Siri and OK Google.
 
> – OK, Google it is! – listening
@AdmBorkBork maybe because of upgrading to Windows 10, and people might not like sudden changes on their taskbars
 
@Cowsquack 1 and 1 are coprime
 
@AdmBorkBork Siri or Google are fine for phones. But I never wanted something similar on my desktop because I use my desktop for different reasons then I use phone.
 
6:09 PM
> – I looked for it on Wikipedia, but didn't find anything. – OK, Google it! – listening
 
> – Wow... I've never been here before, this is eerie. – *pling*
[From a vlog] – And, today, a surprise! I'm hosting a guest. Come in, Alexa!!! – *starts spying*
 
@AdmBorkBork it's just an annoying thing that just gets in my way. Personally I don't see any use of it since I don't have a mic ever plugged in my computer so its a completely pointless use of flashy animations (and the taskbar icon suddenly changed from the search icon that aligned with Search Everything beautifully to an ugly circle...)
 
For example, I mainly use google assistant for 1) Reminders, 2) If I need to call or text someone but I can't really type it out since I'm driving or using my hands for something else. 2 has no relation to desktop computers whatsoever, and if I used cortana for reminders, I wouldn't see the reminder when it mattered since I'm not looking at my PC as often as my phone
 
@AdmBorkBork also, people will just complain by default about things that are forced on them
 
@AdmBorkBork I think the others at my office would be upset if I started to give voice commands to my PC.
 
6:12 PM
@DJMcMayhem See, if you had a Windows Phone, it'd show up. :p
@dzaima I think you've hit the nail on the head with that one.
 
@AdmBorkBork also that my native language isn't english so it'd be kinda weird for me to be randomly shouting english things (not even talking with someone, just instructions)
 
@DJMcMayhem 1) I use my phone (which doesn't have Cortana) or the company shared calendar for reminders, 2) I don't drive.
 
@Adám oh, is that really the main issue at hand? you know, you're talking to a computer
 
@Adám You don't drive? Why not?
 
@DJMcMayhem Because it is illegal for me to drive.
 
6:14 PM
no driver's license...?
 
@EriktheOutgolfer Correct.
 
@Adám is there rationale for that decision
 
@Poke Why should I bother getting a drivers license if I don't drive?
 
I think he just hasn't bothered...awful ninja
 
6:16 PM
You said you don't drive because you don't have a license... You can't then also say that you don't have a license because you don't drive
 
(btw that's not really the connotation being illegal for you to drive implies)
 
@Poke I'm joking.
 
I think Adám is an avid lover of cycling, and he's used to the tough winters of the UK
(maybe that's how he keeps fit)
 
The real reason is that when I went to high school and my class mates got licenses, I was too young. Then I moved to the US where everyone my age already got a license long ago. I've mostly lived in places with good or adequate public transit and cycling conditions, and I'm used to using it as we mostly didn't have a car when I grew up.
 
I've never lived in a place with good public transit, so the idea of not having a license is so foreign to me
 
6:21 PM
@Adám "your class mates got licenses"? wow, that must have been real bad luck, like, them being stuck in a class for years
 
Also, when I went to rabbinical school, and some of my fellow students took lessons, I pointed out that my rabbi had successfully raised and married off all of his twelve children without him or his wife ever driving. (Not a religious thing; most people around me did drive.)
@EriktheOutgolfer ?
 
@Adám Are you a rabbi?
 
@Adám how did you manage to be underage when your class mates were already able to get licenses?
 
I have a friend who doesn't have a license; she's in her early 30s and does the same thing -- public transit or cycling or walking.
 
@DJMcMayhem I have a BA in Rabbinical Studies. I don't have Smicha.
@EriktheOutgolfer Started 1 year earlier + skipped 2 grades.
 
6:24 PM
@Adám ok o_o how did you even manage that
 
@EriktheOutgolfer When I went to University, I had problems with some forms because they were not designed to require parents' signature :-)
 
I had a similar experience. I was homeschooled, so I started taking community college classes when I was 16.
The first math-class I took in my life was pre-calc
 
@Adám and your parents were like "how do I give consent now‽", given that you were legally unable to make a binding signature...
 
@EriktheOutgolfer Starting early, I guess I just, you know, did. And then they didn't learn anything in 0th grade (Danish school is 0-indexes) so I switched to 1st grade in a different school. Then I was homeschooled for a while, and when re-joining normal school (8th grade) they gave me 9th (the final) grade's final exam to make sure I would fail so that they could assess what I didn't know. But I passed, and they told my father they couldn't teach me anything; that I should go straight to high-school.
 
@LeakyNun I'm confused on how fractions with non-terminating expansions are converted into 10-adic ones
 
6:29 PM
@Cowsquack "1/3" really means "x such that 3x=1"
"-1" really means "x such that x+1=0"
here we find that -1 = ...99999
 
@EriktheOutgolfer I don't remember what happened (it was half my life-time ago). I was Sweden's youngest high-school graduate.
 
so -1/3 = ...33333
so 1/3 = ...66667
 
-1
Q: Remainders in javascript

Manmohit Singhguys, I'm new to programming languages and I was trying to explore Mathematical Operations in Javascript and when I try to find the remainder of 21 divided by 7, then the output it gives is 5. So please help me with that, or where I may be going wrong? //Remainder in Mathematical Operations...

 
ah that makes sense
thanks leaky
 
@NewMainPosts You should really check if a question has been closed before posting.
 
6:35 PM
Unfortunately that's not really possible since it's a feed rather than a bot
But I think posting closed challenges is still valuable. More eyes in case something was closed that shouldn't be
 
@LeakyNun so there are multiple roots of 1?
 
@Cowsquack 4 of them
 
o_O
 
6:58 PM
Show me the bottom left corner of your screen after pressing the button, and I'll tell you who you are:
 
@Adám hmm... gets suspicious
 
@EriktheOutgolfer What? It's real, I assure you.
 
I don't know why a lot of those actually come up. I never use wordpad, and I rarely use the 3 above it
I think my taskbar says a lot more about me
 
have you ever used anything besides the first 5 entries? :P
that might explain the fact that they're still there from when you installed Windows
 
First 5 from which direction?
 
7:09 PM
up...
 
@Adám Pressing the Windows button brings up the fullscreen app launcher for me, since I'm on 8.1 here at work
 
I use all of them but wordpad
 
@Adám can you accept a Windows 10-style start menu?
 
@AdmBorkBork @EriktheOutgolfer I didn't say the start menu. It says something, right?
 
True enough
 
7:10 PM
@Adám um, you did say the "bottom-left corner"...
8.1's app launcher is full-screen
 
But I could've snipped just the bottom-left corner
 
@EriktheOutgolfer Which may show (part of) a start menu, a start screen, a macOS dock, some Linux desktop…
@AdmBorkBork That's what I did. My start menu is much bigger. Nothing secret really:
 
thing is, I don't think mine is ever constant for a long time
 
hi
 
 
7:14 PM
that APL2 in there though...
 
@EriktheOutgolfer Sometimes I need to see what APL2 does. Or J or K or NARS2000.
 
@Adám just being jealous of your ability to have it there
 
@EriktheOutgolfer Nah, it is nothing special. Not jealous about What's right below RIDE4?
 
This is a recently formatted company PC. I've never used anything in that menu, only the stuff that's open on the taskbar.
 
7:17 PM
Pretty boring
I've never customized it
 
@AdmBorkBork Clearly not, which says a whole lot.
 
Now, the "right-click on the start button" menu, I use that quite a bit
 
@Adám Which Windows is that
 
@Pavel 10.
 
Mm
 
7:20 PM
yes, that's clearly Adm's behind
 
DOSbox, eh?
 
 
QBasic is language of the month ;)
 
@Pavel With StartIsBack (I highly recommend) and some tweaking to get proper window chrome.
 
I basically don't use my "start" menu
 
7:22 PM
you're not using Windows, are you?
 
No
 
@Pavel KDE?
 
@Adám Yeah. All the customization options in the world, of which I use exactly three.
Mouse cursor, desktop background, and what's pinned to my taskbar
 
i installed a menu extension to gnome just for this
 
@betseg Wait, that's cheating ;-) The actual bottom left corner is the give away, menu or not.
 
7:33 PM
GNOME3 by default does a more Windows-8 kind of thing
 
@Adám better? :P
im using windows 100%
 
@betseg :-P
 
actual bottom left after presing the "super" button as it's called in linux
 
is that really from a screen...
 
@betseg Is that default GNOME
 
7:41 PM
my wallpaper
 
I mean, you don't use a taskbar extension?
 
oh i do and it looks like that:
imgur.com/a/dmj0XIo first is when a window is open (soft hide), second is when desktop is open or a window isn't blocking it
like macos
 
KDE was the correct choice
 
plasma* smh cant even settle on a name /s
 
8:39 PM
0
Q: Reduce using the lowest value

Luis felipe De jesus MunozThe challenge Create a function which takes an array of numbers and reduce each element with the lowest element in the array. After using the lowest value, It can not be used again. numbers can be positive, negative, decimal and natural numbers Test Cases [6, 4, 7, 8, 9, 2, 1, 4] => [5, 2, ...

 
you have the taskbar to the left?
 
@Laikoni Not that interesting if your taskbar is on the left :P
 
@Laikoni Sure it is. I think it says a lot.
 
@EriktheOutgolfer Yes, vertical screen space is more valuable than horizontal.
 
8:47 PM
@Laikoni Adám can apparently infer stuff from Adm not having customized his (workplace's) W8.1 app launcher, so yours must be a whole empire of stuff he can infer...
the thing is, how can Adám actually "see" through the bottom-left corner though
 
no super button on my phone, is this enough?
 
also, that moment where the sandbox is secretly featured
 
9:11 PM
0
A: Sandbox for Proposed Challenges

UmbrellaFind the Number With the Highest Sum of Neighbors The Challenge Given a grid of numbers (10 <= N <= 99) Return number with the highest sum of the four numbers adjacent to it; that is the numbers above, below, right, and left of the number, but not itself. The number itself does not count, o...

 
10:02 PM
Ugh, I just realized I have no idea how I'm going to accomplish A[1]←2 in RAD. Does anyone have an idea? I think I have a hack that might work.
 
ngn
@Zacharý transform the AST into A←2@1⊢A
 
I think that might work, albeit with hacky hacky things for A[1;2]←1
 
ngn
10:27 PM
@Zacharý have you done A+←B yet?
 
I'm planning somewhat ahead. No, I haven't done variables yet (thus, no assignment nor modified assignment).
I'm making sure syntactic elements like [;], and operators work in my current setup.
Segment<type=N code=1;2 value=(Segment<type=N code=1 value=1>, Segment<type=N code=2 value=2>)>
I should probably make a better output scheme for Segment though
 
ngn
@Zacharý is that str() of your ast?
 
Both str and repr.
 
ngn
I think the parser lib was overkill, APL is not that complicated syntactically
 
5 hours ago, by Leaky Nun
CMC: Print the last n digits of the 10-adic number that ends ...5781249 that squares to 1.
 
10:47 PM
Don't forget, RAD ≠ APL. 0xAB.E^fJ0b1101.1E1101 is a thing
@ngn That has nothing to do with the parser lib, actually. That's the result of hand coded-stuff.
@ngn The parser lib only handles tokenization and evaluation of literals. Everything else is hand-coded. I probably could of done that by hand, but too late now.
 
ngn
@Zacharý my favourite way to represent an AST is [type,child0,child1,...]
 
@ngn I did some weird stuff. I based all of my parsing on string rewriting rules, like "NFN -> N"
 
ngn
@LeakyNun would this work? guess a digit "d" and check if d5781249^2 has more trailing zeroes, then repeat
 
@ngn close
 
ngn
trailing zeroes, except for the 1 at the end...
 
10:55 PM
still, close
 
0
A: Sandbox for Proposed Challenges

BeefsterReverse Engineering RNG (Rough Draft) cops-and-robbers Robbers Write a black-box random number generator program which takes a seed as input and generates and prints random numbers forever. (It can be fed into head or terminated early) Your program must generate 32-bit integers (signed or u...

 
11:18 PM
Indexing is done.
 
@Zacharý why would this be so hard
(In Python this is easy. I just override __setitem__ and voila
 
@ASCII-only The hack will be making a variable class that gets "devariabled" once it needs to be, and overriding __setitem__ will be part of it.
Doing dfns is going to be a major pain
 
@Zacharý Charcoal's one of these for ages
@Zacharý (overriding __getitem__ is obviously the other part of it)
 
1;2 (used for indexing) is represented by (1,2). RAD is basically a massive (but functioning) hack
 
@Zacharý how is this a hack
@Zacharý also you're supposed to be using a slice object
 
11:25 PM
1;2; => (1, (2, None))
@ASCII-only I don't think slice'll work
 
@Zacharý :| linked list
@Zacharý what kind of mysterious hack are you doing that will make it not work
 
@ASCII-only A[1 5 2] gives (A[1])(A[5])(A[2])
RAD is most like APL/J/K.
 
ngn
@Zacharý what will be the value of B after A←B←1 2 ⋄ A[1]←3?
 
@ngn 1 2
RAD successfully parsed and evaluated (still sucky display mechanism) (ι5 5)[1 3;3 1]
@ngn What does K do?
 
ngn
@Zacharý afaik, all of apl/j/k do the same thing - B is 1 2
 
11:32 PM
@Zacharý then pass a list in that case...
 
@ASCII-only ._. Python doesn't like that
 
@Zacharý and why not
@Zacharý myInstance[[1, 2, 3]]
 
I misunderstood
 
ngn
The arrays in APL and k (and probably J) have refcounting, so they know when they can do the operation in-place and when they should copy
 
my start menu doesn't show my most used apps, it shows two apps that I happened to need recently and nothing else
 
11:34 PM
A[1 2 3] is done using a list, but A[1;2;3] is done using tuples and recursive calls to Index
 
@Neil I think you broke Windows
@Zacharý :|||||||||||| A[1;2;3] should definitely be a slice object... it'll make your life infinitely easier
 
@ASCII-only ... that evaluates as A[1][2][3]. RAD doesn't have any rank concept.
 
@Zacharý ah.
@Adám :O what start menu is this
nvm, found it
 
11:49 PM
Once one bug is done, another pops up. Seems to be pretty common
 
@Zacharý :|
 
:|
 
ngn
@Zacharý you need tests :)
 
@ngn I am testing along the way.
¨ is giving me problems.
 
ngn
@Zacharý manually?
 
11:54 PM
@ngn Yeah ...
 
ngn
@Zacharý no, you need automated tests that can be run with a single keystroke
 
It's been working for me so far.
 
ngn
@Zacharý tests are important because after complexity inevitably accumulates, they give you confidence to refactor
 
00:00 - 16:0016:00 - 00:00

« first day (2683 days earlier)      last day (2160 days later) »