« first day (2755 days earlier)      last day (2386 days later) » 

00:06
@Adám Does Dyalog have it's own HTML templating system?
 
1 hour later…
01:09
stuck at 88% validation accuracy
it's time to go deeper
orrrrr I could get some data that doesn't suck
hmmmmmm
@ConorO'Brien ok how to pass argv to atstate
@ASCII-only What is this for?
@Zacharý attache
@ASCII-only Ah.
01:46
@quartata how bad is overfitting for you?
02:13
I didn't get any overfitting after applying L2 regularization
02:25
@quartata on embeddings?
?
the weights of the fully connected layers
 
2 hours later…
04:22
@ASCII-only like you would a normal program?
C:\Users\conorob\Programming\attache (master -> origin)
λ cat test.@
Print[Arg[0], ":o"]

C:\Users\conorob\Programming\attache (master -> origin)
λ attache test.@ hello
hello :o
@ConorO'Brien :O
crap
i already did a PR, you might want to change it to normal
did you see the changes I requested on your other pr
 
1 hour later…
05:51
@Pavel I'm sorry, I don't know what HTML templating is. Can you elaborate?
@Adám Most web frameworks have their own "language" which is basically an HTML template with content that can be filled in by the framework
@Pavel Ah. Well, Dyalog APL doesn't have any HTML capabilities out of the box (other than ability to parse XHTML). MiServer has its own "language" (i.e. an extension of APL) that lets you construct HTML with no HTML/JS knowledge, using only APL syntax. Here is an example.
That's pretty cool
06:07
@Pavel Yeah. One of the things I like the most is how it makes HTML array-oriented. You can make an entire HTML <table> (i.e. with <thead> and <tbody>, each with <tr>s that have <td>s/<th>s) with just New _.Table myMatrix''1.
06:59
@ConorO'Brien why n+1 though
@ASCII-only argv[0] is the filename I believe. That or the script name
keep in mind optparse is at work, and so a command line argument will always be present, thus the +1.
@ConorO'Brien will always be present?
@ConorO'Brien but apparently optparse removes all of that?
idk. pretty sure it happened when i was testing
Optparse removes all flags and flag arguments, but stray arguments are left untouched.
can you repro my example earlier locally?
07:22
@ConorO'Brien example?
oh
@ASCII-only yeah the one I used to showcase ‘Arg`
ah, i see
@ConorO'Brien wait. there is something to prevent do, ] right
Uh
prefer { and } to do and end
@ConorO'Brien i mean in attache you check that people don't do do <body> ] right
07:37
@ASCII-only you mean, detecting matching braces?
Should be in place. You could check it on tio
07:53
oh. yeah >_>
 
2 hours later…
10:07
Add annotations to your #python functions to give hints about how the function is supposed to be used. (They are not type checks and they don't alter python behavior!) def myfun(a:int, b:int) -> int: return a + b
10:29
0
A: Sandbox for Proposed Challenges

Beta DecayReverse the Flags code-golf kolmogorov-complexity Challenge Given a flag emoji as input, output its reversed emoji. What does this mean? Well, if you take the UK flag emoji, 🇬🇧, and run it through the python program: print(''.join(reversed("🇬🇧"))) Try it online! Then the output will b...

ngn
ngn
10:43
@NewSandboxedPosts Bulgaria=reversed(UK), that's so true :)
 
3 hours later…
ngn
ngn
13:22
how do we deal with a challenge that needs to go back to the sandbox? vtc it, then reopen the original sandbox post?
@ngn AFAIK there isn't a standard (maybe there actually is, though I haven't seen any in action, but if not, someone should meta it)
13:57
@BetaDecay I annotate literally every named object in my Python code
@Pavel I had no idea it was possible
0
A: Sandbox for Proposed Challenges

ngnMeta: I'm reposting this in the sandbox on behalf of behalf of @RushabhMehta. It was in main for a couple of days but we decided that it needs more time in the sandbox to resolve some issues. Today's challenge will involve some interesting knot theory, and involve you calculating one of the mo...

@BetaDecay And now you do
 
3 hours later…
17:01
0
Q: Graph 5-Coloring

Rushabh MehtaHonestly, I can't believe this hasn't already been asked, but here it is Background Given a simple undirected planar (the graph can be drawn in the plane without intersections) graph, it is a proven theorem that the graph is 4-colorable, a term we will explore in a bit. However, it's far easier...

 
3 hours later…
19:45
TFW you move some code around and all of a sudden it spells out a sentence: Show&##.THIS⍎input.
20:07
._.
Happens all the time in PowerShell.
20:20
That's cause in Powershell stuff is named Get-Content instead of cat
unless you use the aliases, if I remember correctly, there are alot of aliases.
cat is an alias for Get-Content, yes
As is type
But if you're writing a script, the VSCode extension and other linters will complain at you for using them
Wait, cat is the program you use to temporarily disable your keyboard so the cat can't destroy stuff by stepping on keys, right?
3
@Adám Not in PowerShell
on the contents of a file, if you are legit asking.
@Pavel I'll keep my cat and ls, thank you very much.
20:29
Yep, same
@Zacharý That'd be , no?
I use coreutils with powershell instead of cmdlets
On an unrelated note: I have some Py2 code that looks like this: item_list = [[x['key'], x['key2']] for x in my_dict.itervalues()] . The dictionary is really big, thousands of items. How can I make this as fast as possible? I've tried builtin map and it was significantly slower.
item_list does need to be list, other kinds of collections don't work.
20:46
@Pavel It'll probably be faster with plain .values
@quartata What do you mean?
Does the inner part have to be a list or can it be tuples
Has to be a list, unfortunatly
Hold on, it's faster with a for loop and list.append
Like, a lot faster
That's pretty weird
Loop time: 86.7649998665
List comprehension time: 319.551000118
Map time: 545.67200017
21:03
1
Q: Divide the work

helloworld922There is a job which can be decomposed into x equally-sized smaller tasks. You have a team of size y <= x, where every member works equally fast on any task. The goal for this challenge is to divide the work as evenly as possible such that every member of your team has at least 1 task to perform....

CMC: Show an underscored t.
@Adám ? not sure what you're asking
@EriktheOutgolfer Yeah, hm, I'm trying to find a way to avoid loopholes like that.
That is rendering as t_ for me
combined char issue?
21:09
The idea here is a minimal challenge that forces you to actually format some text.
No, If I go to "history" it looks right
bolded and italic letters exist in Unicode.
And colours can easily be done in terminals.
@H.PWiz is it an issue only with or with both and t̲?
Only the last looks fine
 
2 hours later…
23:04
0
Q: The Onion, or Not The Onion?

MegoThe Onion (warning: many articles are NSFW) is a satirical news organization that parodies traditional news media. In 2014, The Onion launched ClickHole (warning: also frequently NSFW), a satirical news website that parodies "clickbait" sites like BuzzFeed. Thanks to Poe's Law, it's fairly common...

23:34
1
Q: Filius Bonacci Sequentia

ArnauldLeonardo of Pisa (ca. 1175 - ca. 1245) is better known as Fibonacci. But this is actually a short for the Latin "filius Bonacci" (the son of Bonacci) which was made up during the 18th century (according to Wikipedia). In this challenge, you'll be given an ordinal number (in the literal sense) be...

@quartata ^^ looks like it's time to do work
i already have been
23:50
@Adám csi, Write("T");CursorLeft=0;CursorSize=1
Instead of an actual underline it shrinks the cursor to be a thin horizontal line
@Pavel heh, that's neat. That's the kind of solution I was looking for, not just Unicode hacks.
CursorSize only properly works in Windows' cmd so I haven't tested it but I don't really see why it wouldn't work

« first day (2755 days earlier)      last day (2386 days later) »