« first day (2406 days earlier)      last day (2441 days later) » 

12:00 AM
In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5 ! = 5 × 4 × 3 × 2 × 1 = 120. {\displaystyle 5!=5\times 4\times 3\times 2\times 1=120.} The value of 0! is 1, according to the convention for an empty product. The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic...
> denoted by n!
 
! has the two meanings
 
@BaldBantha I've kinda lost interest recently tbh
and belated hello/goodbye rand
 
Need only one more vote to reopen codegolf.stackexchange.com/questions/141094/…
 
imo it's a dupe still
I don't see the difference between filling spaces and hashes
constant X is the middle is different but not enough
 
@Riker: did you read the last three comments?
 
12:12 AM
yes
I still think it's a dupe @sergiol
or at least close enough
 
I agree with Riker
 
12:34 AM
Twitch not loading for anyone else?
 
12:56 AM
checking in on my hiatus, wow, 123 answers on that polyglot challenge, huh?
 
1:22 AM
Oh yea, that
I read that page
sounds like a nightmare
in multiple ways
 
1:36 AM
 
If someone can give me some pseudocode on how to generate a000081, I'd appreciate it
 
Anyone know bash?
 
1:54 AM
@HusnainRaza does the OEIS page have a program on it?
 
@ATaco is that processing.js??
 
I think that if you hav a 2 next to a 2 next to a 4 and you swipe the 2s together it shouldn't combine the new 4 with the pre-existing one
 
@2EZ4RTZ gosh no
Just a bit of simple js and a table
 
@ATaco It is so pretty tho
10/10 would add sour cream again
@Downgoat heyy! The gaot i was looking for!
You know that bash script? I can't get it workin
@muddyfish image plz?
 
0
Q: Cooking with Code

tisaconundrumYou're a chef and you love cooking with your spices, but recently you've taken a liking to organizing your spices based on how often you use them. But you have no time to be writing down when you used your spice last. Simply, you swap and move spices around, and this seems to do the trick. But o...

 
2:04 AM
The text editor is Ace, btw
 
Cool
check out the editor
@Downgoat you there?
 
@2EZ4RTZ That's also Ace! :D
 
@ATaco The editor is what I learned on
My first real coding steps
 
2:23 AM
@2EZ4RTZ ?
also please don't intentionally misspell goat
 
@Downgoat I needed help with bash you helped me with gave me
#!/usr/bin/env bash
while read -r line; do
echo "$(echo "$(sed -i '1d' \$1)" | tee board_file.txt && ./run)" >> num.txt
done
 
what's wrong with gaot
 
@totallyhuman triggered
 
hmm?
 
@totallyhuman because ROs get mad at it and because I am only goat, when they get mad they assume I am behind every problem or irk they have about SE chat
 
2:25 AM
Wow. I want to know now how many problems you get blamed for vs how many you cause
Anyways the script you sent me still is causing problems.
./script.sh: line 4: syntax error near unexpected token `done'
./script.sh: line 4: `done'
 
Misspelling things is a problematic meme here.
 
I have been trying to figure it out but idk bash at all XD
 
There was time you could search for instances of "gaot" in this chatroom and not a single one of them on the first page would be me, yet even when I misspelt javascript as javsacript I was blamed for "goatspeak"
@2EZ4RTZ try moving do to its own line
while read -r line
do
    echo "$(echo "$(sed -i '1d' \$1)" | tee board_file.txt && ./run)" >> num.txt
done
owait
 
./script.sh: line 5: syntax error near unexpected token `done'
./script.sh: line 5: `done'
Bash has the most useless error messages.
 
while read -r line
do
    echo "$(echo "$line" | tee board_file.txt && ./run)" >> num.txt
done
 
2:29 AM
The world needs more Tacos.
 
@ATaco You have a 10 hour song about tacos and that is not enough?!!?!
 
More tacos are required.
 
@2EZ4RTZ I dunno, it works for me
try doing bash script.sh < p.txt
 
We must construct additional tacos.
 
@Downgoat Perhaps since I have windows linux subsystem?
not real linux?
I thought they were same thing tho
 
2:31 AM
yea they should be
 
Are you running my code?
 
does even basic while loop work?: while true; do; echo "hi"; done?
@2EZ4RTZ exact copy+paste of it
wait what distro does WSL use?
 
@Downgoat script.sh: line 2: syntax error near unexpected token `;'
script.sh: line 2: `while true; do; echo "hi"; done?'
 
ok, yeah your bash is not bash
 
2:32 AM
@Downgoat I think i may not have installed bash
 
what is echo \$SHELL
 
Since it appears to not be installed by default
 
@ATaco can you make \$ become normal dollar sign so I can actually type it :P
 
@Downgoat $SHELL
 
@Downgoat Type a character before it! :D
 
2:33 AM
@2EZ4RTZ don't include the bashslash
@ATaco :| doesn't work in like above echo example
wait what
 
@cairdcoinheringaahing yes but cannot understand
O wait rip
 
@Downgoat For what?
 
1 min ago, by Downgoat
what is echo \$SHELL
 
 
@Downgoat ohh kk
 
2:34 AM
Like that my guy
 
@2EZ4RTZ golfed: ohk :P
 
ok Golfed further.
 
k Golfed the most
I get /bin/bash
 
@ATaco doesn't have the same "ahah" connotation
 
Pls I need help
 
2:36 AM
Need more specifics
 
@2EZ4RTZ O_o what happens when you do which while
 
Pls I need help with coding *
 
@Downgoat nothing
@HusnainRaza what do you need help with
 
guessing more detail is needed
 
@2EZ4RTZ like no output?
 
2:36 AM
@Downgoat none
 
imagine hitting enter
 
screenshot?
done
 
so I'm trying to recreate the code for a81 on the OEIS question in Python: for some reason it keeps outputting 2?
 
@HusnainRaza share tio link
@HusnainRaza tio.run/#python3
Put code there and hit the little url thingy up top and give us the saved url (has much more stuff in url)
@Downgoat see how it does nothing?
 
2:38 AM
ok your bash is confirmed broken. What about type while and which do and type do
 
while goes into that think where it is just a > at the far left of the prompt. which do does nothing and do gives an syntax error
@HusnainRaza all good i will oook
 
@2EZ4RTZ no run the type command itself :P
not like tap with keys. like type 'type'
 
while is a shell keyword
 
2:40 AM
I'm also trying to implement into tinspire basic
it's a nightmare
 
Hey
 
Am spook
 
Oh hey it's Ascii-only.
 
Hey
@2EZ4RTZ I tried to copy the nim code exactly, variable names and everything
 
@ASCII-only 7/10 for not change name to quantum fish :P
 
2:42 AM
@Downgoat do you now know basic bash D:
 
@HusnainRaza So it appears to be going into the loop like it should
 
while true; do echo "hi"; done
 
@ASCII-only ???
 
0/10 you had extra semicolon
Cristopher's bash is totally fine
 
Hello utf-8 exclusive
 
@ASCII-only it works
 
@ASCII-only it doesn't have /bin/while....
 
Hey the code works without the semicolon
 
doesn't bash have those funky if and fi, case and esac?
 
@Downgoat >_> only eivl shark thing like mac have while as a program
@totallyhuman yep
 
2:44 AM
D: mac is not shark
 
@ASCII-only So why does this not work?
while read -r line
do
    echo "$(echo "$line" | tee board_file.txt && ./run)" >> num.txt
done
 
mac is like whale
 
Is there a syntax error?
 
...but it doesn't have while and elihw?
 
idk works on Mac and Ubuntu box
@totallyhuman no because elihw is weird
 
2:45 AM
so are fi and esac :P
 
It appears that downgoat is just a goat that can't bash. So sad :_(


*but can totally bash better then me and can actually bash but that would ruin the point of my joke
Wait
Did I just bash you about bash??
 
@2EZ4RTZ 0/10 does not rhyme
 
What's a bash
 
@2EZ4RTZ because no input...
 
2:46 AM
@2EZ4RTZ after done you need < input.txt
 
He can bash if he wants to.
He can leave his cans behind.
Cuz his cans don't bash and if they don't bash
then they're no cans of mine.
 
@HusnainRaza bfy.tw/Bq1q
@ATaco opls like your tin cans are better
@ATaco s/their/they're/
@ASCII-only input is being piped into script
 
Thanks <3
 
christopher@ComputerOnLeft:/mnt/c/Users/chris/Downloads/freecell-solver-0.2.1$ ./script.sh
./script.sh: line 5: syntax error near unexpected token `done'
./script.sh: line 5: `done < p.txt'
 
2:48 AM
try running as bash script.sh and remove shebang
 
shebang?
 
windows might not have /usr/bin/env
@2EZ4RTZ #! thing that is first line
 
@Downgoat ಠ_ಠ do you have LMGTFY open at all times
 
Use mingw :P
 
Wait
I think it is working
 
2:49 AM
@totallyhuman ¯\_(ツ)_/¯
 
pls post script.sh
 
#!/usr/bin/env
while read -r line
do
    echo "$(echo "$line" | tee board_file.txt && ./run)" >> num.txt
done < p.txt
@Downgoat it does have it
It is actually legit ubuntu on windows
 
Why is Python not working :(
 
@Downgoat ಠ___ಠ
 
@2EZ4RTZ what does /usr/bin/env bash output when run at an ordinary sh prompt
 
2:50 AM
@Downgoat without the bash keyword it outputs a bunch of stuff that is there
When would that script output?
or save to the num file
 
@2EZ4RTZ every line
 
@ASCII-only So if it just showed the blank screen that is bad
Wait where is it running my command?
To run the C program
 
@Pavel I have found the crappiest image in existence.
 
@WheatWizard Oh dear god. What have you done
 
2:58 AM
what
what is that
 
@2EZ4RTZ yes :/
@2EZ4RTZ huhwat
 
@ASCII-only The whole point was to have in run my c program
with the command ./fc-solve
 
@2EZ4RTZ yeah? but what do you mean where
 
@ASCII-only How does the bash script run my command
I saw no reference to it in the code
 
@2EZ4RTZ it runs it as bash
@2EZ4RTZ also yeah it's ./fc-solve not ./run
did you seriously copy the code char by char >_>
 
3:00 AM
Possibly
 
<_< >_> <_< >_>
 
lolwat
 
<_>
^_v
Halp mi pls
ive been trying to code this for 3 hours and nothing works
 
@ASCII-only so if normally I run the C program like so: ./fc-solve board_file.txt | tail -n 1 | grep "[[:digit:]][[:digit:]]*" | num.txt and want to run that will the test cases what do I do?
 
@2EZ4RTZ >_> why
 
3:03 AM
*i also need to add a newline to the saved file to get a giant list not just one answer
@ASCII-only to get the value of the output
 
@2EZ4RTZ just replace the line after do with echo ./fc-solve $line | tail -n 1 | grep "[[:digit:]]+" >> num.txt
 
#!/usr/bin/env
while read -r line
do
    echo "$(echo "$line" | tee board_file.txt && ./fc-solve board_file.txt)" >> num.txt
done <  echo ./fc-solve | tail -n 1 | grep"[[:digit:]]+" >> num.txt
Wohh
opps
 
@2EZ4RTZ what.
after do
 
#!/usr/bin/env
while read -r line
do
    echo ./fc-solve $line | tail -n 1 | grep "[[:digit:]]+" >> num.txt
done < p.txt
Fixed it
 
that should work
@2EZ4RTZ also you forgot the bash after env
 
3:07 AM
./script.sh: line 5: syntax error near unexpected token `done'
./script.sh: line 5: `done < p.txt'
dang
 
There is my answer with a download link for the code
It has how to run in the readme
Can you try?
 
@2EZ4RTZ 0/10 :P not gonna run it unless it's one file
 
I gtg to bed
@ASCII-only after you run make it is one file
One file!
@ASCII-only it is one file!!
 
@2EZ4RTZ -1 not xxd
@2EZ4RTZ pls give xxd hexdump ty
 
3:25 AM
please give xkcd hexdump ty.
 
0
Q: Draw diagonal positions of me squared

sergiolBased on the interpretation user @ThePirateBay made from the first version of my own challenge Output diagonal positions of me squared now I challenge you to make ASCII art that draws diagonal lines based on a square character matrix based on a given number n. Input A number n. Output A sq...

 
so it automatically does it under else?
 
3:37 AM
@totallyhuman No
Wait crap :/
Oh well
 
basically if tries to look for an else command/block
 
but it doesn't find one
 
@totallyhuman It does
 
@ASCII-only what
 
4:39 AM
0
Q: Count the Palindromes

ATacoGiven a number n, calculate the amount of bases in the range of [2, n) in which b(n) is a Palindrome. Example n = 8 has the base conversions: 2 = 1000 3 = 22 4 = 20 5 = 13 6 = 12 7 = 11 Of which 2 of them, 3 = 22 and 7 = 11 are palindromes. So return 2. Clarifications For the sake of con...

 
5:07 AM
CMC: Write a program to find zeros/roots of a quadrinomial in TI-84 lang
(you may output real root or all)
 
@Downgoat Quadrinomial?
 
@ASCII-only ax^3+bx^2+cx+d
 
@Downgoat ... that is cubic
also can't do it for like a long time, too many assessments
 
 
2 hours later…
6:53 AM
for the next person who sees this, can you check this code tio.run/##Tc/NEoIgEAfwMz7FHjF1UquLEw/jCBhjLs5Kh57eFk3rxPBjP/5M7/…
which is to calculate a000081 in the oeis
based on entry 110 in the oeis question
thabks
 
7:30 AM
@HusnainRaza if you really want to carry on the chain, you can use this code from the OEIS page. You'll have to test it first, but it should work. Its in Maple.
with(numtheory): a:= proc(n) option remember; local d, j; `if`(n<=1, n, (add(add(d*a(d), d=divisors(j)) *a(n-j), j=1..n-1))/ (n-1)) end:
 
7:54 AM
 
8:23 AM
Gooooood morning folks
 
8:44 AM
@Mayube good evening
@Pavel you what
 
Wasn't me, found it on Reddit
 
I need a new job >.>
 
What's wrong with the current one?
 
... or maybe there's no current one?
 
there is
 
8:47 AM
oh ok
 
since I got this job though, my life and relationship situations have changed, So really I'd prefer a job that'll let me work more flexible hours now
 
The challenge was closed 47 minutes ago and someone answered 39 mins ago... How?
 
client-side checks
 
9:52 AM
@Mayube freelancing :P
 
@ASCII-only nah, I'd prefer job security
done freelancing before, not a fan of spending so much of my time looking for new work and wondering if I'll find work in time to pay rent
Ideally I'd like to find a job in Canada, but it's not easy to find work in a country you don't live in, and Canada are very anal about hiring from outside the country
 
@Mayube hence the :P :P
 
Mozilla have a bunch of jobs going both remote and in Toronto
but they're all senior positions, and even if I have the knowledge and experience, I don't have the professional experience/background to back it up
 
Then Google maybe?
 
as in.. look on google for a job? Or work for google?
 
9:59 AM
Work for Google
But... a lot of people here have tried and got the job
And then they declined it for some reason
 
eh, they have their own fancy unique way of hiring, plus google developer jobs are primarily python and go, I don't mind python, but I'm not a fan of go
also yeah lotta horror stories about google. Although to be fair that's true of most big companies
 
@Mayube What about Dart
Don't they use Dart a lot as well
 
Probably, they made it, after all
they use a lot of Angular, Go and Dart, cos they like using their own technologies
which makes sense
Haven't tried Dart, but looking at the syntax it seems alright actually
It has quite a few syntax similarities to C#, I might have to try it out
I like the {named} and [optional] args syntax too
 
oh also @Mayube have you tried looking on SO careers
 
I have
not recently mind, but I have
back in Feb/March
I do like that SO Careers lets you specify tech you dislike
 
10:10 AM
thinks
That must be jQuery :P
 
:P
 
:/ PHP should be grey
 
hey I like PHP thank you very much
 
Well I guess the newer PHP versions aren't that bad
 
I'm more listing technology I'm happy to work in, rather than ones I "like"
 
10:15 AM
 
oh yeah mobile stuff
 
Yes, my list of "things I dislike working with" is quite extensive... It's longer than "tech I like to work with".
 
so is mine now
 
BTW The things I like are Swift, IOS, Python and Xcode
 
Hmm
the Roles section has Frontend developer, but not Backend developer
 
10:18 AM
@Mayube If you dislike Mobile stuff (iOS in general), you should also dislike Objective-C
Not to mention C and C++
 
at that point I'm just listing things I have no experience in though
 
Yep, right
How does the interpreter look now? (TODO: fix fonts and change font colors)
s/change font color/change all colors/
Of course, it doesn't work yet, that's just the front-end
 
uuh.. why is there a Junior dev-ops position offering $80-$110k, that seems outlandishly high for a junior position
 
What company?
 
"Top Hat"
offers relocation and visa sponsorship too
 
10:56 AM
@Mr.Xcoder why not just use TIO?
 
@cairdcoinheringaahing because I don't want to annoy Dennis
 
@Mr.Xcoder with what? Pulls?
 
I will get it on TIO when I'm done with it (mostly)
@cairdcoinheringaahing Yes
Once the development slows down, I'll try to get it on TiO
 
@Mr. They really don't annoy him, all he does is execute a bash script.
 
Yes, but it's repetitive
 
10:58 AM
@Mr.Xcoder +1 it looks like it was written in 1993
 
@caird Does Deorst have base conversion built-ins?
 
@Mr. Actually, I don't know why I'm arguing with you :P I'm doing the same thing
@Mr.Xcoder gimme a second, checking
 
@cairdcoinheringaahing 0/10
 

« first day (2406 days earlier)      last day (2441 days later) »