« first day (2025 days earlier)      last day (3103 days later) » 

21:00
I'm not really sure how to tell exactly what is going on
@NathanMerrill i see lots of question marks
good, so do I :)
@TùxCräftîñg Good, your penguin education has worked
@trichoplax Cyanide and Happiness did something similar with their Random Comic Generator
21:01
@NathanMerrill Where'd the text come from?
I'm downloading from SE's API using Java
Hello
and that's what I'm getting back
@Mego What's the difference between Sage and Python?
@Chad fgsbhsegbuyreHellofewvyauvf
21:03
Okay, anyone here interested in yesterday's 𝑓?
@NathanMerrill Any chance you could link to the original source on SE?
codegolf.stackexchange.com/questions/89923/is-it-a-wordinian If I understood right, I have to set a word stage and if someone in input write some parts of start (like s,t,a,g,e, st,ag,e etc.) it returns true and viceverse?
@NathanMerrill you need jQuery
codegolf.stackexchange.com/… If I understood right, I have to set a word stage and if someone in input write some parts of start (like s,t,a,g,e, st,ag,e etc.) it returns true and viceverse?
Pls answer me
@Chad There are two inputs, the word to be tested and the dictionary containing all English words
@Chad if it ie a meaningful word
lol ninja'd
ok
thanks
@Chad If the word to be tested contains a word of every length up to its own length, you output True, otherwise False
21:06
I go to work on it
So "cat" would be True, because "a", "at" and "cat" are all words
Same for "goat"
Does anyone here have a smart watch? If so, would a Stack Exchange app for it be useful?
I've got plans for Pebble apps
But "dog" would be false, because it doesn't contain a 1 letter word
Anonymous
@βετѧΛєҫαγ Sage is Python with a buttload of mathematical builtins.
Anonymous
It's essentially Matlab in Python
21:09
I'm creating my first test server (on c9), What can I install on? I installed Apache, MySQL, Node, PHP and htop.
i just noticed
Puzzling SE and Workplace SE have the same icon shape
@trichoplax 3?
welp no interwebz
oh its back
@ReleasingHeliumNuclei Lose the g
Did anyone used C9.io here?
bah, it appears that by the time I store it in a string, my code points are already messed up
21:11
i learnt a new word yay
Me too
I learnt stag
@ReleasingHeliumNuclei Does this mean you've never tried porridge or flapjacks?
I’m lazy, but someone else should figure out what the longest wordinian in ENABLE2K is.
@trichoplax im not american i didnt see the word anywhere
welp no interwebz agane wat iz happeningz
21:16
@ReleasingHeliumNuclei I'm not american either. I thought oats were available most places but I've only had them in the UK
oats? TIL
@trichoplax Why do you think we need bigger pictures?
@flawr To fit more black pixels, and more empty pixels between them, to give a larger search space to avoid optimal solutions
@trichoplax im not in a place that mainly speaked english
@ReleasingHeliumNuclei Ah I see - so it's not that you haven't heard of the food, just haven't heard the word for it
21:17
@trichoplax yup
@trichoplax Ok, but I have no more creativity left today.
@flawr Ideally there would be some way of testing how difficult a given image is (a reasonably efficient reference implementation)
I've posted a challenge with an achievable optimal solution before and it was a bad idea :)
@El'endiaStarman I think I figured it out. Its GZip compressed
Anyone here know JS?
We all know and love JS
21:20
.o|
@Chad yes
JavaScript is my new favourite language
I've converted from Python
@βετѧΛєҫαγ :D
@βετѧΛєҫαγ It is Haskell, but you just don't know yet.
i still use python
21:22
How to can I get dates from file .txt?
but i use JavaScript for big projects
@Chad regexs
@NathanMerrill Ahh, interesting.
@flawr Actually, it's Fourier but you don't know it yet ;)
@Chad What does file.txt look like?
I have raw.githubusercontent.com/JacquesMarais/ENABLE2K/master/…, can I create an array like ["a", "aa"] etc.
Yeah, you want regex
21:23
@Chad text.split(/\n/)
@Chad XMLHttpRequest + Split?
@TùxCräftîñgu I know but
where text is your text
how to get .txt?
xhttp.open("GET", "https://raw.githubusercontent.com/JacquesMarais/ENABLE2K/master/words.txt", true);
$.get(URL, function(data), function(error));
Y U JQUERY ಠ_ಠ
@TùxCräftîñg Alternatively, HECTOR.
21:24
@TùxCräftîñg jQuery is bae
var req = new XMLHttpRequest();
req.onreadstatechange = function() {
    if (req.readyState === 4 && req.code === 200) {
        var ar = req.responseText.split("\n")
    }
};
req.open("GET", "https://raw.githubusercontent.com/JacquesMarais/ENABLE2K/master/words.txt");
req.send();
@βετѧΛєҫαγ ಠ_ಠ
@Chad ^^
thanks
@ΛεγίωνΜάμμαλϠΨΠʹ Hmm, I wonder why no one has responded in the affirmative to the three or four times you've asked that question...
Can I use a = req.open("GET", "https://raw.githubusercontent.com/JacquesMarais/ENABLE2K/master/words.txt") and a.split(/\n/)
?
21:25
no
req.open is asynchronous so that wouldn't work
where the dates goes?
@Chad dates?
yes, req.open()
solution: don't use js
21:26
I get the text
i think he mean data
@βετѧΛєҫαγ how
yes, I meant it
it's js
it doesn't matter what it has
it's js
21:27
pls comic ideas? :3
^^ flags as offensive
For some reason I'm using the same algorithm as @Dennis but mine is taking a decade to run...
I know JS and Bash.
@EᴀsᴛᴇʀʟʏIʀᴋ i am making comic but idk how 2 funee
21:27
4
A: Right and tfeL truncatable primes

DennisJelly, 26 23 bytes Forward Ѷp9¶7ÆR2ĿV€$ÆPÐf$ÐĿFị@ Try it online! Words Ñ ¶ p 9 ¶ 7ÆR2ĿV€$ÆPÐf$ÐĿFị@ Backward 7ÆR2ĿV€$ÆPÐf$ÐĿFị@¶9p¶Ñ Try it online! Words 7ÆR2ĿV€$ÆPÐf$ÐĿFị@ ¶ 9 p ¶ Ñ

This
and Latex too.
I'm not sure if I can get data file txt in latex
@Downgoat why u make comic
why not read cergos insteed
@LeakyNun Unless I switch to automatic updates or someone pings me in chat, yes.
@βετѧΛєҫαγ i know.
@EᴀsᴛᴇʀʟʏIʀᴋ Are you 13?
@Dennis What if I ping you now?
21:29
Shots fired
@EᴀsᴛᴇʀʟʏIʀᴋ becus interesting blog get no views ;_;
@EᴀsᴛᴇʀʟʏIʀᴋ i do
@LeakyNun Pulled.
@Downgoat y no make js guest comic for cergos
@Dennis Thanks
then you link blag and get views
@Downgoat ... i read it regulary
21:30
Also, can you help me with that above?
Oh @Dennis, can you update Fourier on TIO
I added some stuff
@EᴀsᴛᴇʀʟʏIʀᴋ :O rly? thx vm
21:31
very much
@Chad ?
you mean unprotect? No. It's protected for a reason
@Chad Reopen? It isn't closed, it's just protected
Yes
meaning you need to gain 10 rep first
Oh
21:31
Answer something like my question
you need 10 rep to answer it, then you can
Get 10 rep with an answer upvote
> </shameless self promotion>
2
ftfy
Or two upvotes in a question
@EᴀsᴛᴇʀʟʏIʀᴋ you know it ;)
21:32
you just need the closing tag
Can Emmet be considered a language?
I mean, Someone used Vim too.
What's Emmet? Do you have a link?
or else my regex (ಠ_ಠ)+ parser can't parse it right
@Chad link pls
Emmet is a text editor
No
21:34
someone even used Notepad to answer, so i think text editors are allowed
@EᴀsᴛᴇʀʟʏIʀᴋ idea?
Emmet is a tool that helps you a lot of.
div (you tab) -> <div></div>
etc.
Emmet (alt spellings emmit or emit) is a pejorative nickname that some Cornish people use to refer to the non-Cornish. It originally referred to tourists who visit Cornwall but has also been used by native Cornish Folk to refer to "incomers" or residents who have moved to the county but were not born there. The more usual term "blowins" is used by the Cornish to describe new residents from outside Cornwall. The related terms Overner and Overlander are used on the Isle of Wight to refer to outsiders from the mainland, who are viewed with similar levels of suspicion. == Etymology == It is commonly...
@TùxCräftîñg wait wat no
21:34
only on kolovoromorocokokookvapojsdfklascfndja complexity
@NathanMerrill Oh, okay
s/complexity/stupidity/ for(;;){s/o/oo/g}
@Downgoat It's spelled Kolmogorov fyi
its technically a text editor plugin, but for code-golf purposes, its functionally the same as a text editor
@Downgoat server side js
21:37
that said, Vim has a very well defined Keystroke-to-byte conversion
I'm not sure if the same could be said of Emmet
tab = \t = 1 byte
pls halp i need to parse html with regex
limited tho
not much
4427
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

if you do this Zalgo will destroy the world
please dont ;_;
nothing wrong with using it to actually replace text
that happens to be html formatted
> ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡
:O
@Tony y u do dis ;_;
21:41
@EᴀsᴛᴇʀʟʏIʀᴋ do you care if you replace some html as well?
yes
only any HTML within the <div class="navbox"> and </div>
Migrated to Arts&Lovecraft.SE
2
but anything, newlines and all
specifically in sed
> Have you tried using an XML parser instead?
@EᴀsᴛᴇʀʟʏIʀᴋ can the navbox contain other html?
if so, its not possible with regex
@trichoplax hahahahahahaha
@βετѧΛєҫαγ Done.
@quartata :)
@NathanMerrill but not another </div>
21:43
I'm jumping on the bandwagon here. Comic strips will be available infrequently at git.io/comic
@EᴀsᴛᴇʀʟʏIʀᴋ then, sure that's possible
question tho: my regex so far
<div class="navbox">\n(.+\n)+?.+<\/div>
@quartata I resisted the urge to actually create a room by that name
well, it completely depends on your regex engine
this doesn't work in sed though? anybody know why?
21:43
@mınxomaτ Shit, now if I ever actually start my comic I'm going to look unoriginal... oh wait
some regex engines don't ever match newlines
@El'endiaStarman Where's that CA simulator dealy of yours?
@Dennis Great :D
772
Q: How can I replace a newline (\n) using sed?

hhhHow can I replace a newline (\n) using sed? I unsuccesfully tried: sed 's#\n# #g' file sed 's#^$# #g' file How to fix it?

0
Q: Alphabet to number

ChadChallenge In this challenge you have to take in input a number and get a letter in alphabet and vice versa. (1 -> A, 2 -> B) etc. 1 -> A 2 -> B A -> 1 100 -> This letter doesn't exist. ! -> Please input a number or a letter. Rules The golf most short, wins. You can't ...

21:45
> You can't create variable
Well that's rather problematic
You can use array
let
etc.
const too
@Chad a variable is really hard to define
we have lots of languages with no concept of a variable
@Chad Haskell and erlang's variables are immutable
@EᴀsᴛᴇʀʟʏIʀᴋ i think <div class="navbox">\n(.+?\n).*?<\/div> is better
@quartata Why?
21:47
Because they are?
if they are immutable they cant be called variables
a variable can be modified
This is not true. Mathematical variables are immutable by definition
You can't create variable, just arrays, let and const.
Is it ok now?
> just arrays
a = [0]; a[0] # my variable
In mathematics constants can tend towards other values too
21:49
@Chad remove the requirement. You are trying to do a "X without Y":
Hammered
33
A: Things to avoid when writing challenges

xnorDo X without Y This isn't always bad, but it's been a particular trap for beginners, so be careful. In the past, there were popular questions about doing a simple task but with the obvious method banned: Produce the number 2014 without any numbers in your source code How to write a C program ...

@Chad What does "let" mean? In Rust and many other languages, let is the keyword used to define variables.
21:50
@LeakyNun Oh hey, I forgot about that challenge
@quartata That's why gold badges exist
in JS let is a keyword to define scope-specific variables
because they remember about that challenge
@LeakyNun Uh, what? How is that a duplicate?
@Doorknob <explains how duplicate means trivial modification />
<explains how the question is just conversion from base 10 to base 26 and vice versa />
21:51
@Doorknob It's a subset of it
its not a conversion to base 26.
1 in base 26 is not A
its 1
0
Q: Alphabet to number

ChadChallenge In this challenge you have to take a number as input and output the corresponding letter of the alphabet, and vice versa. (1 -> A, 2 -> B) etc. 1 -> A 2 -> B A -> 1 100 -> 0 Rules Shortest code wins. You can't create a variable, just arrays, let and const.

@quartata That doesn't mean it's a duplicate at all
@NathanMerrill just add 10 and then convert
@NewMainPosts 1111111111111111111111111111111111111111111111
21:51
duplicate = trivial modification of
It changes.
It's a lot easier to index into a string than it is to do full base conversion.
@Doorknob then I should have closed as duplicate of alphabet instead?
An Hello world is easy too.
No. I still don't see how it's a duplicate of anything.
21:52
Anyway I'm closing it as duplicate
@Chad "You can't create a variable, just arrays, let and const.", from my experience, this isn't a good idea.
close it as too broad, but not as a dup
It seemed unclear. I thought it was just A-Z <=> 1-26, but the 100 -> 0 case is confusing
@Doorknob That's because it isn't
21:53
Unhammered
(but lost all the votes)
and I was told that one cannot vote again
so I apologize
@Chad much better!
@Chad Nice :)
@Chad Why is 0 the 100th letter of the alphabet?
@HelkaHomba I think he means output 0 for an invalid case
Unclear :|
21:54
@Chad What input will we need to handle?
since there are invalid inputs that we need to handle
You can use string letter (A, B, C) and numbers from 1 to 26.
I'm being the master of irony again
@Chad I'd recommend writing out that if the input is invalid (too big number or not an uppercase letter), they should output "0"
@Chad So, the input will always be an alphabetic character, or a number in the range 1 - 26?
or, remove the test case
21:56
Yes
"Just letters uppercase are allowed." In the output? Input? Code?
He means you only have to handle the uppercase alphabet obviously
I don't think it's unclear at all
@HelkaHomba Just letters uppercase are allowed in input and output (You can't output b and you can't input b).
> You can assume that the input will always be a alphabetic character, or a number in the range 1 - 26.
Yes
22:01
@Chad You have enough rep to post your solution to the other challenge now...
@Chad I think the challenge is pretty solid now. For the future though, I agree with Leaky Nun. Post it in the sandbox first :)
Why is this closed? I don't see any problems with its current formulation
1
Q: How many lights are on?

CasperTheFriendlyCodeYou are little speck on a Cartesian plane. Pondering your existence, you decide to roam around your plane and touch things. You notice that every coordinate pair you visit has a light switch. To entertain yourself, you decide to toggle every switch that you come across. The Challenge: Create a p...

I will @NathanMerrill
0
A: "Hello, World!"

ChadW3M and Bash w3m goo.gl/Bj0G1x

22:11
@Chad You actually can't do that, because it requires internet access. It's one of the loopholes :p.
Help, why isn't this working
Which test input are you using?
the last
Huh, is there any place where Erlang can be run online?
Bleh, ideone.
22:36
I think this marks the first time I've been in the lead on a challenge.
@@[email protected] i think the scoring on this site allows for -r at the cost of one byte
hmm that superping attempt seems to be a failure
You tried
i thought i was doing what this thing said meta.stackexchange.com/questions/258038/what-is-a-superping
oh maybe it's just a mod thing
> only available to diamond moderators
I'd say so, yes
anyway i'll just finish what i was writing and then post a link in a comment
you'd say so, good
so for 32 + 1 then
:
s/(.*)(1\?(.)..|0\?..)/\1\2/
t
22:42
>>> d={}
>>> 1 in d
False
>>> d[1]=1
>>> 1 in d
True
>>> d[1]=0
>>> 1 in d
True
@trichoplax what is the problem?
I think that might be something to do with it but not sure
but that is intended
Just realised you have that covered. Oops. I'll keep looking...
22:49
@LeakyNun What do you get if you input 1 arrow?
@Sp3000 0
Should be 1, right? First move turns a light on
If I've read the question right
oh, thanks
Fun Fact: Anthony Howe (who I've mentioned before) designed the Olympic torch kinetic sculpture.
or 1 instead should work
Shouldn't it be move then toggle rather than toggle then move?
@Sp3000 both give the same result
curious
Hmm k
Oh right
Ahaha
@StevenH. Not anymore :-P BTW I hope you don't mind I borrwed your example input
When d[p]^1 is 0 the or 1 triggers
22:55
@Sp3000 oh....
Just use d.get(p,0)^1 anyway
Wasn't going to suggest it until you get up to golfing, but might as well
thanks
you can also use sum(d[k]for k in d)
I was thinking d.values()
ok i searched for .values on the documentation page and it didn't find a match
22:58
0
A: How many lights are on?

Leaky NunPython, 119 bytes 23 bytes thanks to Sp3000. d={} s=input() n=len(s)**2 p=0 for c in s:p=[p-1,p+1,p-n,p+n]["<>^v".index(c)];d[p]=d.get(p,0)^1 print(sum(d.values())) Ideone it!

o_O posting already?
@Sp3000 I shouldn't post?
I thought that was just a work in progress and you weren't up to golfing yet
Anyone here about "fit bits" for compression?
@Sp3000 eh, I golf after I post
22:59
For one you can have just three arrows in the string and use .find
...
yeah was just on the wrong documentation page

« first day (2025 days earlier)      last day (3103 days later) »