« first day (2011 days earlier)      last day (2821 days later) » 

6:00 AM
I guess it depends on your interpreter
 
@DmitryKudriavtsev Now you're disallowing flags like -p for Perl
 
And a comma (I think)
 
@DmitryKudriavtsev but would say python -c "print 'Hello, world!'" > o in a bash file be allowed?
 
No.
Please read the last line of the question/challenge.
I'll even quote it for you guys:
 
Anyway, I understand the intent of your rule now. (undownvoted your Bash answer)
 
6:01 AM
> Follow the spirit, not the letter, of the rules.
 
@MᴀʀsUʟᴛᴏʀ if it's a bash file, why not just echo?
 
@Doorknob Thank you.
 
@DmitryKudriavtsev "Spirit of the question" is simply not enforcable
 
@DmitryKudriavtsev That doesn't mean anything. Who gets to decide what that means?
 
6:01 AM
@Doorknob I do
 
That's not how objective specifications work
 
Please reread the rules, i edited them.
also, my Bash script still has -2 votes. Should I just delete and repost it?
 
No
 
that doesn't recover rep anyways
 
6:03 AM
Not the point
The point is visibility of my answer.
 
@NathanMerrill yeah it does?
 
If it's on the bottom and has low score it'll just keep being downvoted.
 
@DrGreenEggsandIronMan what? how is that not abusable?
 
I'm trying to get it to show up.
 
@NathanMerrill autoflags when users self-delete excessively, etc.
 
6:04 AM
huh. TIL
 
@NathanMerrill that's the opposite of abuse. If an answer is bad enough to lose the author rep, it encourages good behavior for them to delete the incorrect answer (for a Q&A site)
 
huh, I never thought of it that way
good point
 
You know, it seems like my challenge is very trivial. Although it may be too late to make any drastic changes now, do you think I could have disallowed the use of the explicit formula to solve the challenge?
 
@R.Kap what do you mean by "formula"?
 
@NathanMerrill The formula m*n*(m+1)*(n+1)/4
That is the explicit formula defined for the number of rectangles.
 
6:07 AM
right, but is m*n*(m-1+2)*(n+1)/4 the formula?
 
m*(m-1)/2 * n*(n-1)/2 where m and n are the number of grid lines horizontally and vertically, respectively
 
NO ONE has even VOTED on my question
 
Because we're still debating it here
 
if you ban that formula, I'll just use the triangle number one :^)
 
@R.Kap my point, is that its really hard to make restrictions/exceptions. That's why Do X without Y challenges are usually off topic
 
6:08 AM
@R.Kap That's just the triangular number formula multiplied together, and that's assuming some points are collinear, otherwise m == n
 
@DmitryKudriavtsev Don't delete and repost posts. It creates unnecessary clutter.
 
I now feel like answers to my challenge are only going to differ in the language used.
I spent hours on that challenge...
 
@R.Kap if you are going for non-triviality, create a part 2, where rectangles have to be unique in size (and you list the coordinates for the lines)
 
@NathanMerrill I wanted to use coordinates in this challenge, too, but @HelkaHomba said it would be better to use a 2 integer input.
 
@orlp Jelly's base conversion supports array -> integer with a complex base, but I'm not sure how it would help here.
 
6:11 AM
@DmitryKudriavtsev No one is obligated to. I didn't upvote it because it's not an extremely interesting challenge. Since there's no algorithm or logic to implement, the shortest answer purely comes down to language syntax.
 
@R.Kap What's done is done. Make another challenge and I promise to help if I can
 
@R.Kap the coordinates for points was a bad idea IMO. However, listing coordinates for lines is a much better one.
 
Don't take it too personally. Writing good challenges is extremely hard.
 
@Dennis oh no it doesn't I'm kinda dumb today sorry
 
6:12 AM
Try the sandbox next time, it'll help.
 
@NathanMerrill I'm thinking of creating one where not only horizontal and vertical lines are used, but also diagonal lines, so you have to count all the polygons created.
 
(that's literally the first time I've careted)
3
 
@LeakyNun Uhhh... I'm going to upload the Pyramid solution tonight.
 
@R.Kap Ooh :D
 
For the 16 logic gate thing.
 
6:13 AM
@R.Kap maybe? I still like the original one
 
@NathanMerrill I still feel like that could be trivial somehow.
 
@R.Kap oh, if you do do that, are you counting concave polygons?
 
@DrGreenEggsandIronMan by the way, how would I do escape in V?
 
@R.Kap Yeah but I'm not always right. I didn't realize it would be just T(n)*T(m)
:shruggyguy:
 
or anything like <C-a>
 
6:15 AM
@Zwei Do you have vim installed? That helps.
 
@R.Kap a really good test is to create a sequence based on your problem, and then enter it in at OEIS
 
I use neovim but am on my iPad right now
 
Unfortunately, it requires the actual unprintable ASCII character
 
ahh
 
I'm working on a way to make that more convenient
 
6:15 AM
@NathanMerrill Both convex and concave. What do you think?
 
how about ^a for <C-a>
 
Although I'll be pretty busy these next couple weeks so it won't happen any time soon
 
okay
 
@DrGreenEggsandIronMan Are you talking to me? If so, I did use the sandbox.
 
@R.Kap I'm actually guessing that allowing concave has a higher chance of being trivial
but I may be wrong
 
6:16 AM
@Zwei That's not ideal since ^ is also a vim command, and ^a is two bytes, not one.
 
right
 
@R.Kap no, I was talking to Dmitry
 
@NathanMerrill Both will be even more nontrivial. And I doubt there will be any sort of sequence when using diagonal lines.
@DrGreenEggsandIronMan Oh, ok.
 
@R.Kap probably. If you allow concave, then people may take the lines, convert it into a graph, and then count the number of circuits in the graph
 
@Zwei what I'm going to do is pick some unicode characters, and internally map them to the unprintable ones. I've picked out a few, but most of them I'm still undecided on. I know I want alpha == ^a, and ♡ == ^v
 
6:19 AM
convex-only will actually require measuring angles
(that said, I'm not sold on which on is better)
 
And also, bytes above 0x80 are all mapped
 
I kind of like the idea of turning an image into a graph
 
ahk
I'm just trying to figure out how to get unprintable ascii characters in the tryitonline thing
 
is lexicographically = lexically? (as in alphabetical ordering)
 
I actually use vim on mobile. It's the most convenient way I know of.
 
6:22 AM
I do believe that lexicographic ordering is indeed alphabetical ordering
 
Does that make me a nerd if I have vim and python both installed on my phone?
 
What does implies mean?
So like a implies b.
Hello?
 
how did you get vim on your phone?
the best I can think of is sshing into a raspberry pi
 
No, it's all native
 
oh
well, won't be able to do that on my iPad
 
6:24 AM
@DerpfacePython it means that if a is true, then b must be true
 
It's on the app-store, although I'm on a Droid. Not sure if it's on iPad.
 
@Zwei termux.com or similar
 
I wanted some android device but no, I had to inherit an apple thingy :(
 
@NathanMerrill So if a = 1, then b must = 1?
 
@NathanMerrill But is that really is easy as it sounds? If so, then I will allow only convex.
 
6:25 AM
@DerpfacePython only if you mean 1 for boolean values
 
@Doorknob "Your device is not compatible with this version" ;_; Y U do dis Google?
 
@R.Kap neither of them are easy. Converting a bunch of lines into a graph isn't trivial (but isn't too difficult either*
finding all of the circuits in a graph, however, is pretty trivial
 
@NathanMerrill Well, you don't want it to be too easy, but you also don't want it to be too difficult, correct?
 
@R.Kap depends on what you want. My highest upvoted questions are my least interesting
 
@NathanMerrill Well then, in that case, I will only make it too that they have to count the convex polygons, although can;t that circuit method also be applied to those?
 
6:28 AM
Dang it. I wanted to be the first to congratulate Martin on 100k, but it'll probably happen while I'm asleep. :/
 
@R.Kap no, a more complex data structure would be required. A graph doesn't know anything about angles
 
Well, technically not yet. :P
Dennis might suspend him to take the lead, haha.
 
@NathanMerrill All right then. I'll propose that challenge right now, although then I will have to make another GIF...
 
I seriously need some shut-eye. G'night everyone!
 
6:31 AM
@DrGreenEggsandIronMan G'night mate.
 
@NathanMerrill Well I have a challenge but it's not mathy and not ready today. It's about turtles!
 
@HelkaHomba lol, is it like your "count the number of rice" challenge?
 
6:48 AM
0
Q: Print the orders of the finite simple groups

Alex MeiburgThe finite simple groups are listed at: https://en.wikipedia.org/wiki/List_of_finite_simple_groups They are famous for being the very, very complicated solution to a very simple and fundamental problem in mathematics. What better data to try to efficiently output in code golf? If you would like...

 
7:03 AM
0
Q: Integer goes back and fourth through time

Kevin CruijssenInput: An integer. Output: First convert the integer to it's equivalent Roman Numeral. Then convert each capital letter of that Roman Numeral to their ASCII/UNICODE decimal value. And output the sum of those. Example: 1991 -> MCMXCI -> 77+67+77+88+67+73 -> 449 ^ input ...

 
back to SO I go...
first day at work
 
@muddyfish Have a happy new work !
 
bah, I hate doing piping
 
7:38 AM
I have a challenge type idea that I'm not sure will work
where the challenge is to create a program that will solve the challenge using as few steps as possible. Steps defined as assignments, each step in a map, for loop, while, other distinct statements.
I'm not sure what will count at the moment
Thoughts?
 
@Sherlock9 That would be like
plus, lower-level code will almost always perform less well, although i guess that's what normally happens
 
7:56 AM
I'm just thinking in terms of steps on a really long flowchart.
 
@LeakyNun There seems to be a bug somewhere. I should be able to remove the last jnz from this answer, but it enters an infinite loop after printing the first line. Will investigate tomorrow.
 
Hello
 
This is also an infinite loop. Weird.
 
8:09 AM
@Sherlock9 nested loops would get really hard to count. Do if statements count? how many steps is Integer.parseInt("34"+"4726").byteValue()?
also, what about exceptions?
 
I have lost my new Stack Overflow Extras (SOX). ;_;
 
@zyabin101 new?
 
Forgot to log in yesterday... Called it so hard
 
@BassdropCumberwubwubwub You don't have the "remember me" option? :O
 
@zyabin101 No, just he missed a day
what does that even have to do with having the 'remember me' option checked
 
8:12 AM
@NathanMerrill Checking an if counts as how many steps in the condition + check the condition. Not sure how "parseInt" works there
Things like "byteValue()" and "print()" will probably be counted as one step
 
@Dennis @LeakyNun Fixed.
 
bah, why does Java type erase
 
8:33 AM
test
\o/
my router is unborked
 
Well you bette get to work, the current comic *"Error: No comics!
This webcomic does not have any comic strips yet!."* is kinda shitty.
:D
 
test
brb in a long time
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I look forward to seeing your comics then :)
 
8:48 AM
>>> ord('¯')
175
>>> [*bytes('¯','utf')]
[194, 175]
O_o
What is going on here? Why is bytes returning a different result?
 
@R.Kap UTF could mean UTF-8, which means two bytes are used for the macron.
 
@zyabin101 But then why does ord count it as 1 byte?
 
ord probably counts bytes in the system encoding -._(._.)_.-
 
0
A: Sandbox for Proposed Challenges

Martin EnderIntegers, Assemble! code-golfgridnumbertiling Your task is to assemble the integers from 1 to N (given as input) into a rectangle of width W and height H (also given as input). Individual numbers may be rotated but have to be placed into the rectangle horizontally or vertically. Here is an exa...

 
What encoding counts ¯ as 1 byte?
 
8:51 AM
@R.Kap windows-1252
 
@MᴀʀsUʟᴛᴏʀ Hmm.. Interesting
 
test
\o/ my router rework
 
I wonder why ord is returning 175 then. If it is using utf-8, then it should be returning 361.
 
@R.Kap Also ISO 8859-1
 
because windows doesn't use UTF-8 as default?
 
8:54 AM
@MᴀʀsUʟᴛᴏʀ I am on a Mac, and Mac uses utf-8 by default.
 
@R.Kap ok wat
 
windows not AFAIK
 
>> sys.getdefaultencoding()
'utf-8'
On a Macintosh.
@MᴀʀsUʟᴛᴏʀ Yeah.
 
@_@
 
Why are you guys so dazzled?
 
8:56 AM
nvm windows use utf-8
 
How many bytes are newlines?
1 or 2?
 
@DerpfacePython 1 by default.
 
LF is 1 byte long, but newlines are system-dependent
 
@zyabin101 Ah, cool.
 
> ₽ (anc. Руб)
so the rouble was a python version? ಠ____________ಠ
 
9:11 AM
@NathanMerrill How does parseInt work in that example? Does it return 344726 or 4760?
 
@Sherlock9 the former
 
@MartinEnder Congrats on 100k!
3
 
sigh... whoever that was, thanks but...
401
Q: What is serial voting and how does it affect me?

Cody GrayI just noticed that I lost a bunch of points from my reputation score, and I used the "reputation" tab on my user profile page to try and track down the cause. During my investigation, I noticed there was an unusual event of type "reversal". In the normal place of a question title, it says "voti...

 
@DerpfacePython 2 on windows, else 1
 
@xnor thanks :)
 
9:14 AM
parseInt is a builtin function, but it iterates through each character, checking to see if its a digit, then adding it to the current integer
 
Whoa... 100k?
 
 
That's not 100k!
That's 34
LOL, but congrats @MartinEnder!
 
@DerpfacePython no it's 246
 
9:15 AM
@MartinEnder Congrat for 100K :D
 
@flawr its a dennis number!
 
@flawr Find the mistake.
 
ಠ_ಠ
 
@TùxCräftîñg ಠ_ಠ
 
9:21 AM
@DerpfacePython ಠ___ಠ
 
@Mego So that's a total of 5.5/10? Congrats!
 
@Mego Congrats!
i can paste unicode chars in cmd in cmder but not in bash ಠ_ಠ
 
@MartinEnder, our best ever PPCG user, has reached HUNDRED THOUSAND REP!
^ plz starships come!
 
solution: create my own shell
 
@TùxCräftîñg Do it in IDLE, run it in IDLE, and you get a full-fledged pretty interface for FREE!
 
9:33 AM
no faces
no faces
no zalgo
 
@TùxCräftîñg Please no Zalgo?
Also, please no faces?
 
but
if i run my shell in bash i cant enter unicode chars?
nvm i can
 
9:58 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ +1 for comicfury
 
10:17 AM
$ tsh
tsh> hello, world!
hello,
tsh> world!
tsh> world!
ಠ_ಠ
brb fixing
 
When tsh is ready, send it to GitHub and Code Review :3
 
$ tsh
tsh> exit
tsh> ಠ_ಠ

Elie@elie-asus /d/TSH
$
xD
exit is only applied after the following command, brb fixing this
nvm
cwscmp return 0 for equal strings ;_;
$ tsh
tsh> hello
tsh> exit

Elie@elie-asus /d/TSH
fixed
 
@TùxCräftîñg why wouldn't it?
 
for me cwscmp is a equality function ¯\_(ツ)_/¯
and adding ! at the start of each condition is counterintuitive
 
@TùxCräftîñg that's string comparison, right?
 
10:32 AM
yes
 
yeah, basically it converts the strings to a number and subtracts their values
 
> Undefined: calling this function in a multi-threaded program causes undefined behavior.
yay \o/
TIL a in normal mode advance the cursor and enter insert mode
 
@TùxCräftîñg vim?
 
yeah, a stands for append, i.e. move to end and insert
 
10:42 AM
cant find a doc on unistd.h ಠ_ಠಠ_ಠ
 
Hi how yall doin
 
hi
execlp dont accept wstrings :/
 
Welcome to Programming Puzzles & Code Golf chat, @betseg :3
 
@TùxCräftîñg ill buy a desktop pc this week! :P
 
10:51 AM
ill try not to
Why did you remove the message?
 
I'm downloading Tiny Core Linux to install on a virtual machine. :3
 
The Core Plus instance, 2BE.
 
I once had TCL inside XP inside Arch
 
:O
 
10:55 AM
i definitevely need this as a ff plugin
 
@betseg Which config did you use to run Windows XP on Arch Linux, and then Tiny Core on Windows XP on Arch Linux? :3
@TùxCräftîñg Which spec?
 
of what?
 
@zyabin101 XP was on QEMU, TCL was on Virtualbox
 
@TùxCräftîñg Of the plugin involving the ಠ.
 
3
Q: I misspelled my domayn name

Daniel M.According to Alexa rankings, the top 10 websites are: google.com youtube.com facebook.com baidu.com yahoo.com wikipedia.org amazon.com twitter.com qq.com google.co.in Being the top 10 visited websites, these are probably also the top 10 misspelled websites [Citation Needed]. Your task Your g...

i just have taken a js answer of this question
but it was a joke
 
10:59 AM
s/[oO]/ಠ
 
@betseg 0/10 no ending slash
 
I have downloaded Core Plus!
 
rip execlp dont support wstrings
HALP
 
@MᴀʀsUʟᴛᴏʀ im using a phone :(
s/[oO]/ಠ/g better
 
11:04 AM
I'm running Tiny Core Linux from the CorePlus live disk :3
I'm running the virtual machine on VirtualBox on Windows 7.
Now, to partition the disk...
(On Tiny Core, there's a small nuance: the mouse is dumb while mouse integration is on. It doesn't cover the full screen.)
 
huh i have 17KBPS
 
@TùxCräftîñg I suggest cropping your screenshots in the future. You really don't need to include those many thousands of pixels of blank spaces.
 
... idk how
 
@TùxCräftîñg Do you have a picture editor?
 
11:09 AM
Do you use Windows? If so, MS Paint -> rectangle select -> crop -> save. Ta-da!
 
Simple as 7-8-8.1-10!
4
 
@TùxCräftîñg or use lightshot/gyazo/another screenshot tool
which autoupload as well
 
@betseg Congratulations, you now have a starred message!
 
I use puush for my screenshots
 
11:11 AM
yay
 
i have core linux but idk how to install it :/
 
@betseg You should be clear for soon...
 
@TùxCräftîñg There should be an install icon somewhere
 
@betseg wat really?
normally i just create a vm and add the tcl image into the virtual disc slot
 
install is this strange posix utility :/
 
11:14 AM
@TùxCräftîñg You use Core :/
 
Oh i thought tiny core
 
@betseg it is tiny core
 
yes but tinycore is 17mb...
and with my ultra fast connection...
 
11:15 AM
tried to compile node on it once
@zyabin101 core is good
 
Wat when i tried tcl it straight booted into desktop
 
@MᴀʀsUʟᴛᴏʀ ikr
 
@betseg yeah, that's the graphical distribution
 
@MᴀʀsUʟᴛᴏʀ oh there is a non-graphical as well? I didn't know
 
After a partitioning and a reboot, time to install the thing...
 
11:16 AM
it work
\o/
 
Count the clicks to install.
 
icons on the dock dont work D:
 
Eleven!
TC installed, now to setup swap parts...
Final reload...
 
brb possibly in a long time
 
The first time i installed Arch, it was the first try... Since then i'm yet to achieve it.
 
11:23 AM
@TùxCräftîñg Farvel TuxCrafting
In other news:
WOOHOO.
 
@zyabin101 install cmatrix or asciiquarium
 
Yup, but not on the main machine. Good thing VirtualBox can do a full clone of the VM.
@betseg I don't see these in the main list. :/
I opened Apps, finished the firstrun, opened the main list, searched for cmatrix and asciiquarium but don't see these in the main list.
 
./configure && make && sudo make install then
@zyabin101 how soon i wonder
 
11:39 AM
@betseg I don't know. Possibly a hour-two...
 
and ^
 
So you should have it next time the SE engine does a check for badges.
 
:D brb searching when the badge cron job is triggered...
 
11:46 AM
@betseg Where is the source, which packages are needed, etc.
 
0
Q: Given a number 0 through 65,535 store and iterate over it using only a single variable

veganaiZeIntroduction Given a value from 0 through 65535: Print it. Use it as an iterator. Restore its original value. Print it again. All using just a single variable. This task is usually accomplished by defining an additional memory location to hold the count for the loop iterations. But in s...

 
@zyabin101 asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz and robobunny.com/projects/asciiquarium/asciiquarium.tar.gz cmatrix depends on ncurses, asciiquarium depends on perl-term-animation
 
@NewMainPosts Yeah, we really oughta take out the "Programming Puzzles" part of our name...
 
¯\_(ツ)_/¯
 
Yay i got talkative
3
 
11:52 AM
@betseg Congratulations!
 
Single variable? var = [0, input()]; for (var[0] = 0; var[0] < var[1]; var[0]++) echo var[0]; echo var[0] = var[1]manatwork 1 min ago
ಠ_ಠ
 
@TùxCräftîñg you just copy the link for this?
 
It means "in the same variable", register, or solitary array element, etc. Preferably a primitive type. (32 or 64-bit) — veganaiZe 2 mins ago
64 bit integer, first 8 bits for the first var, last 8 bits for the second var?
 
> Preferably a primitive type. (32 or 64-bit)
first 16 bits the counter, second the index ¯\_(ツ)_/¯
 
11:58 AM
65536 is 2**16. It's as simple as masking the two halves of an integer (via bitwise AND) and shifting one half to the right.
 
and what is the winning criteron ಠ_ಠ
 
@betseg wat, why only use 16 bits, plus 8 bits only goes up to 255
 

« first day (2011 days earlier)      last day (2821 days later) »