« first day (2156 days earlier)      last day (2982 days later) » 

00:00
@TuxCopter TNB Ball!
(pls make that a thing :3)
My god you drew my avatar upside down
my god
what a sin
No just your avatar is impossoble to draw
Damn autocarrot
I know right?
You don't want to know how long it took to draw that properly
can you please make TNBBall a series?
00:04
K
that first comic was hilarious
0
Q: Crazy 8s Code Golf

CalebCreate a program that prints all whole numbers inclusively between an interval (a, b) and replaces every multiple of 8 in the sequence with a random, non-numeric, non-whitespace ASCII character. Assume a < b in all cases. If the number has more than 1 digits, make sure the amount of characters i...

@TuxCopter A recurring TNBBall comic would make TNB ~20% awesomer.
@Downgoat Boring?!? How DARE you.
00:16
@muddyfish ouch
good luck with that
spoilers gonna spoil
TNB should have its own URL shortener. Would be super useful...
.x is coming up well:
@El'endiaStarman :/
@noɥʇʎPʎzɐɹC .x should be centered in textbox btw
00:32
@Downgoat I think left margin looks nice, why so?
hello
I had a question about code golf:
where/how can I measure the bytes of my program?
(sorry, I'm a newbie)
ETHProd made a nice tool for that
00:35
Lemme find it
@TuxCopter, thank you
thank you
You are welcome :)
also, is it acceptable to post an answer if it is a different approach but longer than already existing approaches?
00:38
Yes, if it's golfed and not a dupe it's ok
okay. thank you!
@TuxCopter UTF-8 bytes?
It counts UTF8 bytes by default, but this can be changed
I mean, what is used on the main site?
Oh, depends on the language
I tought you were talking about the bytecounter, I can't see which message you are replying too o
on mobile
i am talking about the byte counter. i'm writing my code in python in answer to a question on the main site, and i'm wondering what number of bytes I should put in my answer to go with the code. I used the counter and got an answer, but then I realized that the standard might not be UTF8, and so was wondering what it was.
00:51
You can choose whatever encoding you want as long as a file the size in bytes actually works
Look at your code in a hex editor or something and just use the length of file
That's what I do when I use stuff in unicode
let me rephrase:
is this answer acceptable
0
A: Crazy 8s Code Golf

heatherPython, 123 bytes import random import string a=1 while a<=16: if a%8==0: print random.choice(string.ascii_letters) else: print a a+=1 Still shortening.

That can be golfed, a lot
yes
@heather it's fine as-is though can be golfed
00:54
I know, I'm still working on it.
@heather you're not taking the minimum and maximum values as input
I'm on my phone, but the code you posted can be shortened to something like this:
from random import*
from string import*
for i in range(1,16):
print[i,choice(ascii_letters)][a%8<1]
@heather Rule of thumb for Python: just count the number of characters (including spaces, tabs, and newlines). You only have to worry about bytes and encodings if you're using non-ASCII characters, which doesn't apply to most Python programs.
the a in the last part is meant to be i. You'll need to modify it to take input though, as muddyfish said
Hopefully this year we won't have another incident like store.steampowered.com/news/19852 on Steam
01:15
@heather import random, string as s and then later s.letters + s.punctuation works?
@EᴀsᴛᴇʀʟʏIʀᴋ, yep, that works, again, thank you.
lengthened by 2 bytes, but oh well
@heather welcome! happy to help!
whew, I think it fulfills all requirements now.
wait, I don't think string.letters is a thing?
01:20
it is?
> string.letters
The concatenation of the strings lowercase and uppercase described below. The specific value is locale-dependent, and will be updated when locale.setlocale() is called.
Anonymous
@Doorknob It isn't
>>> import string
>>> string.letters
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'string' has no attribute 'letters'
>>> string.ascii_letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
Anonymous
Oh wait, it is in Py2
rikermacbookpro:~ rikerw$ python2
Python 2.7.12 (default, Jun 29 2016, 14:05:02)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> string.letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>>
yep
@heather can you note that? just change python to python 2 in the header
01:22
oh yeah I have it in Python 2 as well
@heather ah, nice catch
my ide is running babel-cli about once every .1 seconds and every time it errors
oh crap I chmod'd the process that kept giving permission denied errors... now I have more errorrs
I'm going to use that with EXTREME CAUTION.
01:41
@noɥʇʎPʎzɐɹC :D \o/ +100 for babel!
you should use my optimization plugins btw
@Downgoat how to?
So are you using a babelrc?
"Samsung Galaxy... AS DIRECTED BY MICHAEL BAY!!"
@Downgoat yes
So, I'm going through the list of issues on Agora's GitHub, and so far, I've found three reports of the same error. Months apart, sure, but still. I'm gonna try to get them to assign the task to me after vacation. :P
@El'endiaStarman Maybe you should do a thing with management so you look bold and leader-y?
still need to configure jshint and jscs
@Downgoat Error: Couldn't find preset "es2015" relative to directory "src"
/Users/hahanopenotgonnastealmyfirstnametoday/dotx/node_modules/babel-cli/bin/ba‌​bel.js src/background.js --out-dir dist --source-maps --presets es2015
01:47
Did you install babel-preset-es2015?
also use .babelrc instead of --presets
@Downgoat I have both; I'm using the guide on babel w/ webstorm
Anonymous
Casual reminder that there's a relatively-simple 250 rep bounty up for grabs
NSA is spying on us, look at the resolution of the satellites:
0
A: List of bounties with no deadline

Rohan Jhunjhunwala500 reputation bounty - for cracking this whitespace cop As computers get faster and faster or other mathematical developements arise (sorry can't entirely give away the premise), this may become crackable. At any such time I will award the mathematical genius 500 reputation points.

01:59
0/10 unecessary comments
wait what
Anonymous
@NewBountiesWithNoDeadlines Sure just let me factor a 1477-bit number, shouldn't take more than a few lifetimes of the universe
1) let is not global? 2) use const for constants 3) avoid global variables as much as possible
global variables should never be used to store state
@Downgoat global constants, actually
it doesn't store state, it's var radio = chrome.runtime.connect({name: 'change-bookmarks'})
there is no state in it, it's like document
why does my IDE highlight 'var' and say 'var used instead of let'
var CASE_SENSITVE = false  // if not case sensitive, all members of bookmarks must be lowercase

var STORAGE_KEY_BOOKMARKS = 'bookmarks'
var ADD_NEW = 'add-new'
var EDIT_OLD = 'edit-old'

var radio = chrome.runtime.connect({name: 'change-bookmarks'})
@TuxCopter why is conor WTF in the image?
02:02
@noɥʇʎPʎzɐɹC because never ever ever ever use var if you can use let
You are running a kernel (version 3.16.0-4-amd64) and attempting to remove the same version.
@noɥʇʎPʎzɐɹC Where did that keyboard mashing take place?
Wait what am I removing me kernal wat
-bash: /usr/bin/sudo: No such file or directory
oh my god I did it again
this is not happening
Please remind me to never let your near any of my stuff. :P
nevermind stupid apt unintsalled sudo
@Downgoat >_< how do you fuck stuff up so badly
@Downgoat WTF
how is that even possible
3 mins ago, by Downgoat
You are running a kernel (version 3.16.0-4-amd64) and attempting to remove the same version.
APT-GET LETS ME DELETE THE DAMN KERNAL
> KERNAL
whatdoyouknow that's a thing.
The KERNAL is Commodore's name for the ROM-resident operating system core in its 8-bit home computers; from the original PET of 1977, followed by the extended but strongly related versions used in its successors: the VIC-20, Commodore 64, Plus/4, C16, and C128. == Description == The Commodore 8-bit machines' KERNAL consists of the low-level, close-to-the-hardware OS routines roughly equivalent to the BIOS in IBM PC compatibles (in contrast to the BASIC interpreter routines, also located in ROM) as well as higher-level, device-independent I/O functionality, and is user-callable via a jump table...
@Dennis any clues on that hat?
The feet? That one has already been cracked.
02:11
no, the one you have
@Dennis ik, I was the cracker
Huh, I'm still seeing the feet. No clue how I got the other one.
Just need one more to catch up with Mego and ETH. I could post a question from the app, but I really don't want to.
Help Request: how to reinstall kernel's dependencies?
apt-get is not able to work anymore
so oops
@Dennis oh, okay
@Dennis why not?
You don't. You reinstall the OS.
do I loose my files D:
or is it like OS X where that doesn't happen
02:15
If you don't tighten them up, sure.
whoever made apt-get is idiot
I think I'll just backup my system. Do rm -rf / --no-preserve-root for the heck of it and create new droplet
@Downgoat sorry would help if I could, gtg now, see ya later
Seriously though, do you have your personal data on a separate home partition or on the root partition?
@Downgoat that is good idea
@Dennis what do you mean by this?
02:16
ping me when you reinstall everything
Oh, it's a VM? You're screwed then.
:(
This is on DO
Yeah, I got that when you said droplet.
Does su still work?
@Dennis yes
coreutils is already the newest version.
if this is the case. why does sudo not exist?
OK, who needs sudo then.
02:18
wait nevermind
Because sudo is not a coreutil?
cd is a shell builtin.
yeah figured tthat much
Does apt-get still work?
02:19
but problem is I don't know extent of bork atm
@Dennis partially
Well, install sudo.
wait just like apt-get install sudo
O_o ok sure
Assuming you did use sudo before. Afaik Ubuntu Server doesn't come with sudo by default.
initramfs-tools is already the newest version.
initramfs-tools set to manually installed.
libuuid-perl is already the newest version.
libuuid-perl set to manually installed.
linux-base is already the newest version.
linux-base set to manually installed.
sudo is already the newest version.
linux-image-3.16.0-4-amd64 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
Anonymous
@Dennis I posted my sign function challenge from the app :)
02:21
Can someone explain to me what this means? :3
@Dennis i don't remember having to install sudo on my old laptop with ubuntu server, but then again that was 7 years ago
@Mego Same with sever-sort. Those test-cases were brutal to type...
Anonymous
I'll get This Is Fine once the bounty period on Print Polyglot Pieces ends :)
Anonymous
Blue will come easily as well
> Avoid mixing releases can seriously mess up your system
Oops
02:26
Wait, what did you do?
Anonymous
Please never let the goat come near any of my systems
@Dennis sudo apt-get -f install
it told me to!
@Downgoat try using a live cd/usb and chroot to investigate the full damage
Anonymous
Try setting your computer on fire. Honestly, at this point, it's not likely to do much more damage.
10
No it's okay I fixed everything
I just did:
Anonymous
02:30
I worry about your definition of "fixed"
Anonymous
It's likely the same definition used to refer to animals after they come back from the vet
7
apt-get install acpi-support-base acpid apache2 apache2-bin apache2-utils apt-listchanges aptitude at build-essential (truncated) libtext-wrapi18n-perl libtimedate-perl liburi-perl libuuid-perl libwww-perl libwww-robotrules-perl libxapian22 libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl linux-base linux-image-3.16.0-4-amd64 linux-image-amd64 lsof mailutils mlocate mysql-client-5.5 mysql-server mysql-server-5.5 nfs-common nodejs openssh-client openssh-server openssh-sftp-server openvpn parted perl perl-modules php
@Mego OK, I literally LOL'd.
@Mego You won't have any trouble earning First Responder when the time comes :P
Does apt store logs anywhere of all the shit it does?
Anonymous
02:32
@ETHproductions Watch. January 1st will be the one day that I cannot earn stars, no matter how hard I try.
NOOOOOO my vim is ruined ;_;
Anonymous
Actually I'm expecting a lot of star spam (and subsequent suspensions)
@Downgoat Nothing of value was lost.
@Downgoat vimrc?
This should fix it: alias vim=nano
02:33
:O
how dare you
@Dennis ಠ_ಠ
@Dennis speaking of which there is some good news that came out of this. PHP was uninstalled :D
OK, but so was everything else. That's like saying you eradicated AIDS by detonating a nuke.
yes but I found list of everything that was uninstalled and reintsalled all of them
Now reboot and see what keeps working.
02:41
AFAIK the kernel might of been deleted so I am never restarting this droplet
0
Q: I'm too cold, turn up the temperature

IMustBeSomeonethis is my first golf contest. What you need to do Build me, in the shortest amount of bytes possible, my AC remote control system. My room is too cold right now, and I'm missing my remote. Now, I don't want you literally building it or anything, just golf this: A slow increment of temeperatu...

@Downgoat I think DO can swap the kernel externally, so that shouldn't be that big of a deal.
ok
well everything seems back to normal
I also kinda overreacted that I had done the same bork that I did with CentOS machine
@Dennis btw is/will TIO nexus/v2 open source?
I haven't published the backend yet, but I plan to do so.
You can already peek at it from the interpreter though.
Scratch that. Apparently, you can't.
02:58
x = 3, y = -1 - √6/3, z = -1 + √6/3
xyz = x + y + z = 1
I just saw someone post a screenshot of the Winterbash UI on /vip/ saying that 4chan needs something like Winterbash too
The hat infection has spread
Nothing could possibly go wrong with that
No of course not
@orlp That was random but also cool.
xy = x + y = 1 => x = 1 - y => xy = y - y^2 = 1 => y^2 - y + 1 = 0 => y = (1 \pm i*\sqrt(3))/2
@orlp Oooh, neat.
@El'endiaStarman yep, no real solutions
you don't even need to know complex math or quadratics for it
if x > 1, then x+y = 1 dictates that y < 0, but then x*y < 0 < 1
if x < 1 then x*y=1 dictates y > 1 but then x+y = 1 dictates x < 0 and x*y < 0 < 1
TNB has increased activity over winter break, due to more people having free time
@Dennis Huh?
@Downgoat great, my IDE has a quick fix that replaces all vars where I can use let with let; AND it uses const if the variable isn't set
1 hour ago, by noɥʇʎPʎzɐɹC
user image
@Dennis yes I know, what do you mean by that message?
03:21
On which Stack Exchange site did you encounter the answer in the screenshot?
@Dennis Space Exploration, HNQ
0
A: Sandbox for Proposed Challenges

DennisAre you lost yet? code-golf math sequence number-theory Your task is to implement integer sequence A130826: an is the smallest positive integer such that an - n is an entire multiple of 3 and twice the number of divisors of (an - n) / 3 gives the nth term in the first differences of the seq...

03:37
0
Q: KeyPad Code to Text!

ArjunGiven a String and an Array as input, your task is to output the text the input String will print when typed on a typical Mobile Keypad. In a Mobile Keypad, a letter is typed by pressing a button n times, where n is the position of where the letter is at on the button's label. So, 22 should outpu...

I swear we've had that challenge before, but I just can't find it...
I guess we've had the reverse:
19
Q: Phone Multi-tap Spelling

DannyInspired by the Google Code Challenge: The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a message to your friend using a sequence of keypresses to indicate the desired characters. The letters are mapped onto ...

I dupe hammered it
That challenge isn't exactly the same... though it is quite close
I think it's close enough to warrant a duplicate
Anonymous
@ConorO'Brien It's not the same. The caps toggle adds a different dimension.
Anonymous
I hammer-reopened it
hm, okay
TIL you can do that
Anonymous
Yep, gold badge gives you a reopen hammer as well
Reopen as not duplicate, that is
Anonymous
Well yeah, I thought that was implied
03:43
wouldn't that be more of a crowbar instead of a hammer
no, more like chainsaw
Anonymous
Nope, I'm just using the other side
tbh I thought a dupe hammer would look like this:
Anonymous
Nope, it's a claw hammer
RIP my hammer idea
03:51
@Mego look at what hat I'm wearing. :P
Hello, fellow trend setter.
Anonymous
@DJMcMayhem :( I still don't know how to get it
I don't know either. We did the same things
0
A: Sandbox for Proposed Challenges

JezzamonA game some people like to play on the train carriages where I live is to try to use the digits of the carriage number to make the number ten, by adding mathematical operations between the digits. For example, given the number 7392, you can make ten with 7 * 3 - 9 - 2 = 10. You can split the dig...

@DJMcMayhem TIL
04:03
About hjkl?
Interesting right?
"If you keep saying that I'll alter your topology"
Anonymous
@NewSandboxedPosts I know we've had essentially that challenge before, but I can't find it
@Mego wow, you're 24th network wide!
@Mego Once or 100 times, yeah.
@DJMcMayhem very!
I was about to say "Someone serial downvoted all the recent sandboxed posts!" until I realized that my view order for meta was changed from 'recent' to 'votes' :P
Anonymous
@DJMcMayhem Wow, really?
Yeah, I'm 120 some
Anonymous
That means the rest of the slackers on PPCG aren't pulling their weight in the hat race
04:13
I stopped caring after I got this awesome hat
Aren't you tied with ETH?
I once saw a post where the user had tried to format it with BBCode.
Anonymous
@Dennis Obviously ETH isn't included in the slackers
yeesh am I supposed to use camel case or snake case for C++
Anonymous
@ConorO'Brien snek
04:16
alright, cool
I think I like snake case better anyhow
Anonymous
I'm poised to get one hat extremely easily, and a few others will be almost certain
Anonymous
I have the setup for This Is Fine, but I haven't executed it yet because I don't want to award the bounty yet
@TuxCopter wtf?
lol
0
Q: Are you lost yet?

DennisAre you lost yet? code-golf math sequence number-theory Your task is to implement integer sequence A130826: an is the smallest positive integer such that an - n is an entire multiple of 3 and twice the number of divisors of (an - n) / 3 gives the nth term in the first differences of the seq...

@Dennis you still have the sandbox headers in the question
Anonymous
04:20
@NewMainPosts @Dennis You make it really difficult to encourage users to use the Sandbox when you only wait an hour before posting to main
@ConorO'Brien Heck, that's what I get for posting it from the app.
lol. are you doing it for the hat?
@Mego Fair enough. I only sandboxed that one for the copy-pasta though.
@ConorO'Brien Tired of getting called a slacker. :P First hat I'm actively trying to get.
I'm pretty sure that you have more hats than most people in this room
Anonymous
He is #3 on PPCG :P
04:24
who's calling him a slacker? you?
@Mego ah, yes, of course it's you :P
@ConorO'Brien Those were just product of my usual level of addiction though, slightly curbed by developing TIO.
Anonymous
Well, aside from ETH, I'm the only one in any position to criticize others' lack of hats :P
Props to Stephen Casey, who tried really hard to make a sequence start with 4, 8, 15, 16, 23, 42.
oh
those are the lost numbers aren't they
@Dennis oooh, I only just got the pun
04:28
same
and I only know the pun due to that other lost question
Anonymous
I was on the fence about upvoting that challenge until I realized the pun
I think I beat you to writing a lost-themed challenge by well over a year. :P
58
Q: Automate Saving the World

DJMcMayhemYou are Desmond Hume. For the last 3 years, you and your partner, Kelvin, have been slave to a computer that requires a very specific sequence to be entered into it every 108 minutes to save the world. 4 8 15 16 23 42 Your partner died 40 days ago (due to an unfortunate accident involving Kelv...

I think you were beat before that
04:30
True
91
Q: 4, 8, 15, 16, 23, 42

Radiodef4, 8, 15, 16, 23, 42 Write a program that outputs this sequence of numbers infinitely. However, The Numbers must not appear in your source code anywhere. The following is not a valid Java program to output The Numbers because The Numbers appear in its source code: class TheNumbers { public...

@Mego Did the pun tip the scale in favor or against? :P
Anonymous
@Dennis I'll let you guess :P
@ConorO'Brien that one's closed, it doesn't count.
>_> sure
04:32
@ConorO'Brien why does that have to be a popularity contest?
-.-
There's also this one, but I beat it by a good 8 months
it looks like a great standard code-golf (except I'm not a huge fan of the restricted source)
9
Q: See you in another life, brotha!

Jacob MisirianMost of us LOST fans out there remember the computer that Desmond had to type the characters "4 8 15 16 23 42" in every 108 minutes or the world would end (or would it?). The challenge here is to create a program that would do the same thing by requiring that every 108 seconds the input 4 8 15 1...

to be fair, it's got a lot of great answers
Yeah, but so do a lot of code trolling challenges
04:34
¯\_(ツ)_/¯
oh, fun story from my haunted computer. My computer crashed five times trying to view that visual prime factor website, so I updated my graphics card. It crashed one more time when I opened up codegolf.se then has never crashed since.
#WindowsProblems
I'd usually think that except my brother's machine has never had a single problem like this. I even showed him the same website
Anonymous
@ConorO'Brien My computer crashes on a random basis because my PSU is starting to die :( I feel your pain
When my Linux computer crashes, I know exactly why it can't be fixed.
13
@Mego RIP computer. ):
Anonymous
04:38
@Dennis Because Downgot got his hooves on it and messed everything up?
How good would y'all say GoLang is at golfing?
oh, can we please have a challenge for every dumb OEIS sequence?
they all seem like gems
"Integers in alphabetical order in british english"
"Alternating digits of pi and e"
"The numbers 2^n-1 written in groups of three digits, with leading zeros omitted."
maybe we should just have a code-challenge that asks to implement all OEIS sequences, score is # of sequences implemented :P
Honestly it feels like you could smash your face on the numpad and get out a sequence on OEIS
@Dennis I just thought of a method of computing the first number with N divisors
04:42
@Zavada its one of the best ways to find a new branch of mathematics
since the number of divisors of a number p1^k1 * p2^k2 * ... pn^kn = (k1 + 1)(k2 + 1)...(kn + 1)
@ConorO'Brien oh, that's actually not a bad idea. Give them maximum of 50 characters or so
@NathanMerrill for each sequence? or total?
we are looking for (k1 + 1)(k2 + 1)...(kn + 1) = N
so we factorize N
@ConorO'Brien total
04:43
hmm
subtract 1 from each of it's factors
I'll sandbox it
sort the factors
then the solution is
2^f1 * 3^f2 * 5^f3 * 7^f4 * ... * pn^fn
where f1 is the biggest factor
@ConorO'Brien make it so that they take an integer input. Their score is the number of consecutive distinct sequences they print out (starting with the integer 0)
@NathanMerrill hmm that's a good idea
04:45
so, if 0 is passed in, they print a certain sequence, then 1 is a different one, and so on
@NathanMerrill why not they just print the nth term of all the sequences they've implemented?
wait, are you saying that each n gets a different sequence?
I was thinking more along the lines of ^^
oh, that would work too
I guess mine would require two numbers: the index of the sequence and which sequence to do
also you need to handle a minimum number of terms they need to print, and whether they can start in the middle of a sequence, and whether you will allow two sequences where one of them is a subsequence of the other
My personal preference is to allow subsequences, as it provides incentives to pick certain sequences that may not work with other ones, but I'm not really sure. Maybe there are a gazillion subsequences of 1,2,3,4,5,6...
I think an arbitrary offset would be okay
I switched my blog to ghost :D Lemme know if you encounter any problems :)
04:57
0
Q: ASCII Hilbert Curve

Bobas_PettGiven an integer n output the nth iteration of the Hilbert Curve in ASCII using the characters _ and |. Here are the first 3 iterations: n=1 _ | | n=2 _ _ | |_| | |_ _| _| |_ n=3 _ _ _ _ | |_| | | |_| | |_ _| |_ _| _| |_____| |_ | ___ ___ | |_| _| |_ |_| _ |_ ...

@Downgoat I'm reading the documentation for Cheddar and it looks beautiful, is there a zero fill right shift operator?

« first day (2156 days earlier)      last day (2982 days later) »