« first day (2018 days earlier)      last day (2829 days later) » 

12:02 AM
@quartata what if it has no reply? just look @ the next message?
that would be kind of a cool chatbot
 
@ConorO'Brien Yeah, just next ping or next message failing that
 
@quartata it should select a random ping from the replies
 
@quartata I can, but I'd have to do additional work by making a private PostgreSQL instance and moving the data over (which I might do anyway), and then I'd have a superuser who can install that extension.
 
@ConorO'Brien i'll do it also
 
@El'endiaStarman You don't have root access?
 
12:05 AM
@quartata Nope, I'm using a shared Postgres server.
 
@EᴀsᴛᴇʀʟʏIʀᴋ was just kidding >_>
 
@El'endiaStarman Oh, all right. I don't need a built in anyways
By the way, do you have a way of munging replies to a message?
That would be a good addition
 
A chatbot kind of like the ones on twitch would also be nice
 
@quartata How do you mean?
 
@El'endiaStarman Just like a column with the ids of all the replies to that message
 
12:07 AM
@quartata The column M.rid has that info.
Scroll down the page, you'll see I added some documentation. :P
 
@El'endiaStarman Oh, ooops
 
@ConorO'Brien sᴏ ᴡᴀs I
@El'endiaStarman fack i'm captain stupid in that query
why
i haven't had that name for like 1 yr
 
@EᴀsᴛᴇʀʟʏIʀᴋ I think the username was chosen alphabetically.
I don't yet know enough SQL-fu to choose the most recent (or most used) username, which is what I would like.
 
@ConorO'Brien i don't use firefox though :( and no one makes safari extensions
 
12:13 AM
@Downgoat WAI NOT
oh
 
typora is pretty awesome though
^ highly reccomend
 
wat
 
12:41 AM
New Chat.SE username idea:
ΛεγίωνΜάμμαλϠΨΠʹ
 
@LegionMammal978 wat
 
its Greek transliteration
 
> LegionMammalϠPsP'
 
ϠΨΠʹ is 978
Greek numerals is a system of representing numbers using the letters of the Greek alphabet. These alphabetic numerals are also known by names Ionic or Ionian numerals, Milesian numerals, and Alexandrian numerals. In modern Greece, they are still used for ordinal numbers and in situations similar to those in which Roman numerals are still used elsewhere in the West. For ordinary cardinal numbers, however, Greece uses Arabic numerals. == History == The Minoan and Mycenaean civilizations' Linear A and Linear B alphabets used a different system, called Aegean numerals, which included speciali...
 
12:42 AM
darn, ninja'd just about to send that ^
 
@LegionMammal978 It should be ΛεγεώναΘηλαστικώνϠΨΠʹ?
 
@Downgoat Transliteration, not translation
 
oh
._.
 
Question: How does one change their Chat.SE username without changing their SE username?
I guess you could just change the parent account to some random meta site and change it there...
 
@LegionMammal978 go to site no one goes to (e.g. expats/beer) change username there, set as parent account
 
12:45 AM
ninja'd
@Downgoat beer?
 
they had 0.1 Q/D for a while
 
there
(clear cache if it doesn't change for you)
 
Apparently, no one in TNB has exactly one star total amongst all their starred messages.
That's surprising. (Link.)
 
12:52 AM
question: should classes/functions be constants by default? e.g.:
func foo() {}
foo = 3
should that be OK?
@El'endiaStarman can u pls make it stop calling me A Dong Wot ;_;
 
@Downgoat I'm not sure how!
 
:'(
 
1:08 AM
cheddar> func foo(a: number, b: number) { a + b }
cheddar> foo(1,2)
3
\o/ \o/ \o/
 
Uh was that ever broken?
 
@quartata i just made function statements
previously there were only lambdas
cheddar> var a = n -> n + 1
cheddar> var b = n -> sqrt n
cheddar> (a + b)(16)
5
@ConorO'Brien ^
 
I thought you've had those for three months
 
:D
did you fix & or no?
 
is ppcg going to receive a css makeover
 
1:11 AM
eventually
 
@ConorO'Brien I am wondering if I should
 
because cheddar checks LHS for what version of the operator to use
so if you do 3 * "a" it uses number's definition of *
 
._.
why
no offense, but wouldn't it make more sense to define an operator, then define its cases?
 
in the case of 3 & f I'll have to set a default functionality for the & operator. which may cause problems when overloaded as the user won't probably think to handle it with functions
 
@ConorO'Brien it all comes back to overloading. I asked how I should do this when I was first implementing operators and almost everyone said do to it the way it is right know, especially since that's how many other languages (julia, ruby, python, etc.) do it
@El'endiaStarman I think you did wrong link?
maybe I'll have a RHSOperator item which determined behavior with RHS
 
Shoot, yes I did. I wonder if I should replace the URL with the permalink when you run the query...
 
@Downgoat hm
 
@El'endiaStarman :D I am #1
 
> ['LegionMammal879', '978MammalLegion', 'LegionMammal978']
ಠ_ಠ
 
1:15 AM
> ['Chatgoat', 'vihan', 'Doᴡɴɢᴏᴀᴛ', 'Downgoat', 'Vihan', 'Wᴏᴛ A Dᴏɴɢ', 'vihan1086', 'Wot A Dong', 'Vɪʜᴀɴ', 'Upgoat', 'Typogoat', 'Tpyogaot', 'Downgoating', 'Wagon Dot', 'A Dong Wot', 'Toga Down']
ಠ_ಠ_ಠ
 
@ConorO'Brien Yeah, cheapskate anagrams. :P
 
BEEP TOGA DOWN BEEP
 
Anyone still have the anagram site URL?
 
Chat mini-challenge: construct a query that gives everyone's most recent username.
 
s/chat mini-challenge/do the work for me/
:P
 
1:18 AM
Nice try. :P
 
@ConorO'Brien Were CMCs ever anything else? ;) :P
 
@El'endiaStarman two emoji's? I guess that means you're not serious
:P :P :P
 
...well, I suppose @Downgoat has the most to gain from providing me with this valuable info...
Then he wouldn't be "A Dong Wot" in every query. :P
 
Wow, there was a time when Conor didn't have small caps
 
@El'endiaStarman my soltuion is: SELECT RECENTUSERNAME(u.Id) from users u but it requires proprietary version of SQL. to purchase please send 1,000 stacks of hay and tin cans to 123 Goatfarm rd, CA
 
1:22 AM
@Downgoat ........A Dong Wot you are, then!
 
psst they'll do it for cheaper at oracle
 
what! determinant!
 
@El'endiaStarman ಠ_ಠ ;____; y u do dis
 
@El'endiaStarman What PostgreSQL version are you using? first/last doesn't seem to work
 
@ΛεγίωνΜάμμαλϠΨΠʹ 9.1. I've been struggling with getting first/last to work too.
 
1:24 AM
I think they are called lead and lag in postgre
 
@El'endiaStarman idk, try (as root):
CREATE OR REPLACE FUNCTION public.last_agg ( anyelement, anyelement )
RETURNS anyelement LANGUAGE sql IMMUTABLE STRICT AS $$
        SELECT $2;
$$;

CREATE AGGREGATE public.last (
        sfunc    = public.last_agg,
        basetype = anyelement,
        stype    = anyelement
);
 
@quartata yes, little known fact: I don't have them right now.
 
@EᴀsᴛᴇʀʟʏIʀᴋ FOG doesn't work on my machine, would the following work for work for this challenge? "**********\n"_10![;]
 
He does not have root access unfortunately
 
(jk, I did not have them at one point)
 
1:25 AM
@Downgoat why does that evaluate to 5? Shouldn't it simplify to n + 1 + sqrt n? Or do I just not know the syntax and it actually simplifies to (sqrt n) + 1?
 
@ConorO'Brien oh i'm stupid
 
@GamrCorps it's function composition. it applies n -> n + 1 on the result of n -> sqrt n
 
@GamrCorps (f + g)(args) where f and g are functions is actually same as: f(g(args))
 
@GamrCorps It's function composition
 
@Downgoat also, why not just (+)&1 + (sqrt)? :3
 
1:26 AM
bleh internet
 
or is precedence borked
 
Ok, I see.
 
@ConorO'Brien i forgot to make functional ops parse unary ops. testing a fix rn
 
@Downgoat kk
In a 2D lang, should I have a dedicated operator equivalent to ?v? (if true, go down, continue otherwise)
 
No
 
1:31 AM
@ConorO'Brien yeah, that seems rather important
 
>_>
FIGHT
 
cheddar> (((+) & 1) + (sqrt))(16)
5
@ConorO'Brien yeah, it works \o/
 
matthew@MATTHEW-UBUNTU:/usr/bin$ cheddar
/usr/bin/env: ‘node’: No such file or directory
 
@Downgoat are the parens needed?
 
I be having problems
 
1:32 AM
Not if it's non golfing. Obfuscates it for no particular reason
 
@ConorO'Brien yeah
 
@quartata okay, thanks
 
& always has lower precedence than +
 
oh, darn.
v [part I.a: constructing the objects]
\ {"+":[01],"-":[01],"*":[02],"/":[02],"^":[13]} "prec" =
\ {"+":[+],"-":[-],"*":[*],"/":[%],"^":[J]} "func" =
v [part I.b: defining helper functions]
\ ["prec"`~F~$]kKp ["prec"`~F$]kKa [dnNEQ]kKn
v [part II: repl stage]
                    >"working on it";
> "> "oiSL:L=Bq > Kn|
                    >"else!"p;
my progress so far on shunting yard
 
Wha
Are you self interpreting?
 
1:35 AM
no, not yet.
this is just a simple repl calculator I'm making
I won't do self interpreting til I figure out how self modification works.
yes, I am insane.
 
@BaldBantha why doesn't it work for you
@BaldBantha no fog doesn't print newlines like that
@ConorO'Brien 10/10 self interpreter next please
 
@EᴀsᴛᴇʀʟʏIʀᴋ gotcha
 
@EᴀsᴛᴇʀʟʏIʀᴋ windows. Getting it set up on c9 rn. how should I do newlines?
 
why doesn't it work on windows
its python
@BaldBantha why c9?
 
@EᴀsᴛᴇʀʟʏIʀᴋ It's windows.
 
1:42 AM
do you use readline?
 
Of course it's broken
 
@EᴀsᴛᴇʀʟʏIʀᴋ Because I have no rooted 'nix machine
also, Code: "**********\n"_10![;]
Traceback (most recent call last):
File "main.py", line 531, in <module>
code = lang_inst.get_code()
File "main.py", line 128, in get_code
code = input("Code: ")
File "<string>", line 1
"**********\n"_10![;]
^
SyntaxError: invalid syntax
 
1:43 AM
C9 stupidly defaults to 2.7.6, that's why
y u do dis c9
 
ಠ_ಠ py3 is best 3
 
@BaldBantha that's not my fault
 
I know, sorry if it sounded like I was blaming you :P
 
@ΛεγίωνΜάμμαλϠΨΠʹ Great! Now can you tweak it to give the most recent username?
 
@El'endiaStarman Well you don't have timestamp information
 
1:47 AM
@ΛεγίωνΜάμμαλϠΨΠʹ 0/10 really confusing name
 
@EᴀsᴛᴇʀʟʏIʀᴋ transliteration ftw
 
@ΛεγίωνΜάμμαλϠΨΠʹ Actually, yes, you do. Every message has username-at-the-time information - M.name.
So, get the most recent message for each user, and extract the name from it...
 
@BaldBantha much much golfier, idc who posts it but make sure to give credit to me
 
@El'endiaStarman Give me a few minutes
 
'*'25**25*!_[X]
25* is 10
python code:
 
1:48 AM
wut? dis no make sense
 
sure it does
numbers are tokens, not literals
 
for i in range(2*5):
    print '*' * (2*5)
that's most of it
and FOG printing newlines is borked rn
don't post yet
 
Ok you post it when you finish it. I'm going to have to learn a little more clearly
 
wait i unborked it
@BaldBantha it's fixed
 
i took too long of a break from programming D:
 
1:50 AM
conor made me fix it 2 days ago i think
 
cool
On another note, does anyone have any ambient music they listen to while programming? I'm making a playlist.
 
@El'endiaStarman What's user_id?
 
@ΛεγίωνΜάμμαλϠΨΠʹ User.id, basically. It's the internal id given during construction of the database. User.uid is the SE chat id.
 
@BaldBantha
0
A: Print a 10 by 10 grid of asterisks

Eᴀsᴛᴇʀʟʏ IʀᴋFuzzy Octo Guacamole, 15 bytes '*'25**25*!_[X] Explanation: '*' # Push '*' 25* # Push 10 * # Multiply, leaves '**********' ('*'*10) 25*!_ # Sets the for-loop counter to 10 (2*5) [X] # Iterates 10 times and prints '********' each...

@BaldBantha youtube daft punk on autoplay, makes it to death metal after about 2 hours
 
Yes. Daft punk. Very ambient
 
1:55 AM
@BaldBantha I program whilst listening to Breaking Benjamin, Skillet, Rise Against, etc.
 
Skillet? I mean I like skillet, but it's not exactly calming...
 
@BaldBantha ?
it is
 
@BaldBantha Try Dzihan & Kamien, they make great ambient music with a jazzy tone
 
@ConorO'Brien lol skillet
 
1:56 AM
When programming, I don't want to feel like a monster
 
@EᴀsᴛᴇʀʟʏIʀᴋ you don't like skillet? ಠ_ಠ
@BaldBantha hahaha
 
@ConorO'Brien as ambient music
i like skillet fine
 
@EᴀsᴛᴇʀʟʏIʀᴋ oh, lel.
 
0
Q: Is there a way of eliminating shortening all fat-arrow functions?

WallyWestFrom what I've seen throughout my time here on PPCG, most JavaScript entries involving fat arrow functions tend to be one of two camps: The simple ones that are capable of running as a single statement and returning an answer, straight off the bat, like x=(a,b)=>a*a+b The more complex ones that...

 
Here's my playlist so far (Basically C418 and Ben Prunty. I'm still sorting through their songs and choosing my favorites) youtube.com/playlist?list=PLpnQ7OautQkxkKaOGY-sp_b8irDwvcI9z
 
1:58 AM
@NewMainPosts on topic?
 
It's tips
 
2:14 AM
@ΛεγίωνΜάμμαλϠΨΠʹ More challenging than it first seems, eh?
 
@El'endiaStarman Nearly there, thinking nested queries could help
 
2:30 AM
night
 
@ΛεγίωνΜάμμαλϠΨΠʹ I got it!
 
@El'endiaStarman Nice thinking there, taking the max message ID ;)
 
And now, I have something that I can insert into other queries!
 
2:53 AM
7th. Pretty good
Clearly I'm a naturally witty fellow
 
What percentage of stars are on a post containing the word "stars"?
 
@El'endiaStarman i think average stars/message is better metric
 
Is SQL hard or can I do it in 5 minutse
 
@Downgoat I think stars/starred messages is better
 
2:59 AM
but i think stars are anonymous
 
@El'endiaStarman I'm still terrified by my number of messages
@Downgoat ?
 
i.e. how can you tell how many messages someone has starred
 
No, number of messages they have that are starred
 
ohh. I thouught you meant messages starred/messages that are starred
 
@Downgoat Here you go.
@feersum Depends on what you're trying to do.
 
3:02 AM
Actually now that I think about it that's worse...
 
Getting most recent usernames turned out to be really tricky. Yours, on the other hand, should be relatively simple.
I think. We'll see!
 
@El'endiaStarman Yeah see the problem with mean like that is that stars are so sparse
 
0
Q: Student Election Results Tallying

dalanbYour school is having an election and you are tasked with coding a program that tallies the results. You are given a Set of Votes, each vote containing a candidate and a timestamp. Given a time stamp, return the top N candidates with the most votes at that timestamp. (each vote tallied must come...

 
Median of starred messages might not be bad
 
@quartata Ding!
Bahaha, the feed bots have some of the highest ratios because of mods' elevenings... :P
 
3:08 AM
Yeh, this doesn't quite work either
What does median look like?
 
@Quill halp node is borked
<--- Last few GCs --->

  828602 ms: Mark-sweep 232.7 (272.2) -> 190.3 (229.9) MB, 6.2 / 0 ms (+ 16.8 ms in 3 steps since start of marking, biggest step 16.5 ms) [GC interrupt] [GC in old space requested].
  832732 ms: Mark-sweep 1111.4 (1150.9) -> 929.3 (968.9) MB, 2089.0 / 2 ms (+ 9.6 ms in 3 steps since start of marking, biggest step 9.2 ms) [GC interrupt] [GC in old space requested].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x4643c2b4629 <JS Object>
no idea what's happneing. pretty sure A) i made memory leak B) bug in node
though C9 reports no memory leak
 
@quartata That seems to be relatively complicated.
 
valgrind node ...
 
@El'endiaStarman I think there is a built in
 
3:12 AM
@quartata I thought so too but it doesn't look like it.
 
You could just do a select with an orderby then use JS to get the median
 
I used this for the median function.
Conclusion: one does not simply outstar Dennis. :P
 
Probs more interesting with a num_starred_messages > 10 or something
 
@El'endiaStarman Maybe add a WHERE num_starred_messages > 9
 
@Downgoat Doesn't work, I think, since num_starred_messages is an aggregate. Looking for a workaround.
 
3:22 AM
@Downgoat looks like a node issue, try it on your local computer (might be an obfuscated oom issue) otherwise ask on SO
@El'endiaStarman ooh do one for total stars per person
 
@El'endiaStarman lol alex is top
 
@Downgoat the W3C article on JavaScript's security contexts doesn't really help either: w3c.github.io/webappsec-secure-contexts
 
@EᴀsᴛᴇʀʟʏIʀᴋ By a long shot too.
Useful TNBDE query: Average wordiness per user, where wordiness is calculated simply by counting spaces and adding 1, and excluding one-boxes. I think large code blocks are included, though.
 
Does anyone here have an iDevice with Chrome installed?
 
3:56 AM
What is this ^^
 
Most of the above
 
USB password stealer
 
4:21 AM
@Dennis thanks for another cnr challenge
 
:)
Currently trying to crack Pyke...
 
I've made a 7 byte version but I want to find the shortest one unlike last time
 
Eh, that didn't last long.
 
it's just using symmetry in the binomial coefficient to avoid generating the second list
 
Well, argh.
 
4:27 AM
I'm still searching for 5 bytes though so it's not over yet
 
It pretty much is. I assume you'd post it anyway before the 7 days are over.
Unless someone ninjas you to it.
Bloody finally.
0
A: Can you outgolf me? (Robbers section)

DennisPyke, 11 9 bytes, muddyfish hVoeX*oe+ Try it here!

 
0
A: Sandbox for Proposed Challenges

MegoPaint with all the colors of the RGB rainbow Inspired by Images with all colors and American Gothic in the palette of Mona Lisa: Rearrange the pixels Given an input raster image, output a raster image where each pixel is a unique color, such that the sum of the absolute value of the difference ...

 
4:59 AM
@miles Found your solution. How did I miss that? ._.
 
whereas I have no idea how to get to 5
 
Too bad we can't reuse languages. Finding my 5 byte solution would have been quite challenging, I think.
 
5:33 AM
@miles Nevermind. The idea I had doesn't work for 0.
(The 7 byte version based on your observation, that is. The 5 byte version works.)
 
5:54 AM
halp? idk how to apply an operation for each element in a list in Jelly
 
Many of them vectorize automatically though.
 
@Dennis oh yes I see at 0 it becomes -1 c -1 which is 0, those edge cases!
 
Hopefully, that means you can't beat 9 bytes. :P
 
6:09 AM
@Dennis is it possible to operate on lists that are not on the top level?
 
Do you have an example? That might make it easier.
 
say I have a list of lists and I want to do something like P or S on each sublist, how had is it to do that
 
P€ or S€.
The quick maps the atom to its left over the list.
 
6:41 AM
Hello
 
HELLO
I'm making a crappy ascii art game. It features turn based physics
 
Hey Gravity, you can't go yet! It's electromagnetism's turn!
 
ಠuಠ
just added a floor
ok, experiencing bugs darnit
darn bugs!
 
7:22 AM
well, now it has walls and floor
but they don't work very well
and also it throws errors if you try to hit the ceiling
and also you cling to walls
In its current state, it is really bad, but maybe I'll make it good eventually
I think I'm going to put it on github when done
Also I have exactly 700 rep woot
 
7:53 AM
@miles If you wanted to check I put the 5 byte solution in a comment in Dennis' answer
 
@muddyfish thanks but we were talking about codegolf.stackexchange.com/a/89115/6710
your 5 byte solution is clever though
 
8:10 AM
halp can anyone here golf jelly
@Downgoat depends on what you mean by PPCG related things, I'm mosnly only on TNB
 
@ASCII-only I have 30 Jelly left to golf.
How much to golf (1—30)?> _
 
8:47 AM
0
Q: Change to conventional algebra notation

MathimeThe Challenge Given an algebraic expression (eg 2ab, change it so it follows standard convention rules. The Rules Letters should be in alphabetical order. ie 2ab is allowed but not 2ba. Numbers should always go first. ie 2ab is allowed but ab2 is not. Exponentiation will be given as a^b to...

 
ven
@ASCII-only you can always ask. Probably more luck in Jelly's own challenge.
 
@ven ?
 
@Dennis Why doesn't the "Donate" button appear on TIO's main page?
 
@Fatalize He only added it recently, it's probably because nobody's noticed it's absent there yet
 
2 days ago, by Dennis
@zyabin101 Hm, it looks kinda out of place there. I don't want it to be intrusive, and it blends in rather nicely with the other buttons. Also, someone who only saw the index is unlikely to make a donation...
 
9:14 AM
@zyabin101 thanks
 
I think I got the shortest time to delete a question
like 10 secs or something
ok 25 seconds
 
Prompt time expired, defaulting to 0...
Okay, whatever floats your goat.
 
9:33 AM
0
A: Sandbox for Proposed Challenges

Knickerless-NogginsSmallest vigenere cypher executable Brief Impliment a vigenere cypher program in your favourite language to create the smallest compiled program in any operating system. Specific details The program must accept 3 arguments: Argument 1 must be either 'e' or 'd', with e meaning encrypt and d ...

 
10:13 AM
I golfed down someone elses answer I think!
 
10:35 AM

 GitHub language

Chat room for interpreter for language based on GitHub repos, ...
@mod halp pls move messages thanks
 
@ASCII-only @trichoplax :D
He is a mod!
 
Done :)
 
@trichoplax Thanks :3
 
10:57 AM
halp
where are the unreadable esolangs
like the one using only " and '
 
@zyabin101 yeah, have that one
 

« first day (2018 days earlier)      last day (2829 days later) »