« first day (2272 days earlier)      last day (2570 days later) » 

12:01 AM
use backblaze
@DJMcMayhem C++ is turning into std::mapstd::<std::stringstd::,std:: std::pairstd::<std::boolstd::,std:: std::mapstd::<std::stringstd::,std:: std::boolstd::>std::>std::>
 
using std::namespace std;
 
If i used the word hooker in a challenge (the small text at the end) do you think people would take it wrong?
 
Probably.
 
Why does all the good descriptive words become used in bad ways?
 
@DownChristopher Depends on how you use it
If you mean the bad way, then yes
 
12:07 AM
How are you trying to use it? It doesn't have that many different definitions.
If you use is as someone who hooks things, then I'm sure you can find a better word based on your context.
 
I am adding one final rule to make a challenge go from too easy (imo) to actually clever and hard. That is known as a hooker
 
No, it's known as either a hook, catch, or twist.
 
Hmm. Ralph Moody was wrong. Ok thanks
 
"Catch" will probably make the most sense.
 
yeah
@HelkaHomba can you review my challenge in sandbox since you are good at writing them? here
 
12:19 AM
I would like to make note of this workaround found that will allow users of whitespace dependent languages to enter tabs in their stack exchange post
6
A: Stop expanding tabs into four spaces

mbomb007Today, I found an answer displaying tabs correctly! This is how to do it: &#9; Note that this only works if you put the code within a <pre><code> block, which means you also have to escape < with &lt; (and & with &amp; in certain cases), so it's still annoying, but if you do a find/replace on ...

Please, help me get this the publicity it deserves
 
0
A: Sandbox for Proposed Challenges

Down ChristopherMake text sine waves I was messing around on my 'ol TI-84 CE and made a program that produced this output (it was actually bigger but that is not the point): * * * * * * * * * * * * * * * * * ... I evolved it to take input text and make the sine waves out of that. The final step was t...

 
Those are triangles, not sine waves :P
2
 
Test
 
If in Python I assign an array in a variable to another variable, will both variables point to the same array or will it make a copy?
 
It will not copy
 
12:30 AM
ok thx
I'm trying to have a setup with multiple stacks, and I want to have an activestack that I reassign to other stacks.
 
12:42 AM
I have this block of code:
def curly_nilad():
	global acc
	acc += active_stack.pop()
Howcome acc must be declared global, but active_stack is fine without that?
(Both are initialized at the top of the program)
 
maybe it's modification
 
global is only necessary if you're modifying the variable
Because otherwise it's ambiguous with declaring a local variable
 
I really wish it didn't do that.
If you declare a variable in the global scope, just assume any reference is referring to that.
 
1:10 AM
Far too easy to clobber a global variable that way.
 
Shadowing global variables with local ones is considered bad practice anyway.
 
So is using global variables in the first place...
 
I just found out you can use [==[TEXT]==] like [[TEXT]] in lua, with any amount of =s.
 
@Pavel I used to find this annoying too but I realized it makes things less confusing. It's worse in JS when you never know what scope something is at
nonlocal is a thing too
 
The worst thing about JS's variable scoping is that it defaults to global if you forget the var. >_>
 
1:18 AM
yeah
It kinda makes sense for quick, amateur web coding but..
 
@HelkaHomba we need to remember that JS was des— nvm not going down this road again >_>
 
Wat. Amazon has onions?
 
> United Salad Company
 
They also sell water powder.
 
0/10 will only order from Southwest Salad Company
 
1:25 AM
amazon fresh does surely
 
@Dennis Isn't that just nothing?
 
@Mendeleev I think it's just water droplets
 
@Mendeleev Not sure. It costs $14 and has 4 stars. Can't be that bad.
 
Hmmmmmmm
 
@DownChristopher Not sure how generous I feel towards someone who would downgoatify Calvin & Hobbes
 
1:28 AM
> Comes from the Springs of Useyourimagination
 
> Okay, for real: you can't eat this. It's a dismembered stuffed unicorn in a can.
 
But every 100th contains a small bobcat.
 
I see you read xkcd
 
        for (int i = 1; i < array.length; i++) {
            for(int j = i ; j > 0 ; j--){
                if(array[j] < array[j-1]){
                    temp = array[j];
                    array[j] = array[j-1];
                    array[j-1] = temp;
                }
            }
        }
CMC: what is above sorting algorithm (not HW)
 
1:39 AM
Bubble sort?
 
it is similar to bubble sort
but not exactly the same
but uses the same principle
 
O_o how can be bubble sort
bubble sort require 3 for loop or at least some way to verify loop is already sorted
 
Rather looks like an inefficient implementation of selection sort to me.
 
moral of story is: when given stupid question on CS test, do not give stupid answer no matter how much you think you should
 
Why? Do they subtract points for wrong answers?
 
1:49 AM
no its right
CS teacher says not real swap because temp variable should be declared within if or for
 
OK, now I'm confused.
 
me too
 
CS teacher not real swap I have no idea how to parse that.
 
@Dennis sorry I the verb
 
I also omitted few articles, but I'm kinda used to that by now.
 
1:53 AM
CS teacher also seems like has 0 idea about thread-safe code, she says you should use static variable instead of fields to help fellow programmers debug code
OK there's my CS rant for today, bye
 
It appears it is a combination of selection sort and bubble sort which is less efficient than selection sort. for each length of sub-array from 1 to n, perform one iteration of bubble sort.
 
:| supposed to be mix of insertion sort and bubble sort
 
insertion sort by bubble sorting?
 
Basically insertion sort but bubbles down element to correct index
 
at least if you implemented the insertion sort properly you wouldn't need all the array accessing
 
1:56 AM
With guaranteed worst case complexity.
 
For some reason, in CSS width:calc(100% - 0); makes a div as wide as it can without overflowing which is exactly what i need it to do in this situation but for some reason width:100%; doesn't work.
 
@Dennis was considering bogosort but could not write code to permute array in all possible combinations in given space, even with code-golf experience
Couldn't do shuffle as she said had to have bounded time complexity
 
@Downgoat You should have done intelligent design sort. Clearly the array has been ordered in this way by some higher design which we do not understand. Therefore, it is sorted.
 
@ATaco Then you're probably doing something wrong
 
@Downgoat AP - CS is quite frankly the biggest mockery of CS I've ever seen , just give yup, you;lll probably get a five
 
2:05 AM
Ah, it was invalid, thus causing it to default to inherit, which works.
 
@Downgoat I can't even read that
 
I can't find meme generator with higher res tho :(
oh fixed:
 
Why is charred food so much better?
 
^
 
2:10 AM
Isn't it bad to eat charred food
 
Good or bad, it's not for me.
 
@HelkaHomba well cooked =/= charred/basically covered in dark carcinogens
goats are (herb + tincan)ivores so can't say for sure
 
I just had some lamb. Delicious.
 
idk if I should be happy, but technically that is sheep amirite?
D: why did they name lambdas after sheep
 
2:15 AM
Call them goatdas in Cheddar. Pronounced goudas, of course.
5
 
@RohanJhunjhunwala AP CS:where CS teacher knows every method about ArrayList but gets confused when I mention hidden layer...
@Dennis oh my god this is brilliant
 
Don't encourage more goat puns >.<
 
You've goat to be kidding if you think you can enforce that.
 
stop this before it gets out of hand pls
 
No, no hands, only Hooves.
 
2:20 AM
sigh
@Riker there's a nifty way to force it
but we don't use that.
 
CMC: Comment the appropriate amount of angle brackets such that all the angle brackets in the history of TNB comments are balanced. (Or at least balance today's.)
 
>_>
@HelkaHomba wait, what?
oh, I see now
 
@Riker good start I think
:P
 
kek
I doubt it tbh
because I think more >_> have been sent than anything else
and you can't retroactively balance that, a mod would need to 11 an early message
 
<_<
 
2:21 AM
@Dennis thank you for your service
 
@Riker Well, if that's the case, balance them inversely
 
Any thoughts on this question?
0
A: Sandbox for Proposed Challenges

Wheat WizardAre these lists equal? As you may very well know python has lists. As you might not know these lists can contain themselves. a = [] a.append(a) Python 2 Python 3 These are cool, however you cannot compare them. a = [] a.append(a) b = [] b.append(b) a == b Python 2 Python 3 Task You...

 
@WheatWizard -1 for non-compliance with the Axiom of Regularity
2
 
@Dennis Can Jelly execute arbitrary python?
 
@WheatWizard Only inside eval statements. Pyth can if memory serves.
 
@HelkaHomba Good luck, we need ~6732 less-than signs
 
@Dennis So can any python object be created and manipulated in Jelly?
 
It would have to be in the same eval statement. Once the result gets passed back to Jelly, it calls listify on it.
 
Ok thansk!
 
2:36 AM
@Downgoat my all time favorite moment was when we took a test, and the teacher scored a C+...
 
> thansk
 
I say that a lot by accident
 
(important information in the Debug drawer)
 
How does it get a Segfault (I am quite the jelly noob)
 
@WheatWizard Probably listify breaking on circular references
 
2:49 AM
Ah makes sense
 
There's not much Jelly, really. ŒV evaluates the string to its left as Python, which returns an irregular list. Jelly then tries to "listify" it. Among other things, that involves going though the entire list in recursive fashion to get rid of tuples, sets, dictionaries etc. Since Jelly operates with sys.setrecursionlimit(__insane__), that's a segfault.
 
Anyone want to oppcgmcs?
@Python -1 booleans are capitalized
 
user165474
Lol true that bothers me too
 
user165474
Keywords should always be lowercase
 
user165474
otherwise it looks weird
 
3:01 AM
@HyperNeutrino *True
 
user165474
ಠ_ಠ
 
@HyperNeutrino Yeah, None of the keywords should be title case
2
 
user165474
You need to stop. :P
 
user165474
@Mego Did you get the problems with the codecs fixed?
 
🍪o/
 
user165474
3:09 AM
what character is that? (string[0])
 
The cookie I got.
 
user165474
Oh
 
user165474
lol :D
 
user165474
So wait what was the problem in the end?
 
Missing cast to ord.
 
user165474
3:10 AM
oh >_>
 
The values of the dictionaries can be characters, but the keys cannot, so it broke for the reversed one.
 
user165474
Oh okay.
 
user165474
So which line needed to be replaced with what?
 
20 hours ago, by Dennis
@Mego I'll take my cookie now.
 
user165474
:P yay dennis
 
3:13 AM
The message before that. Links from mobile are hard.
 
I have a strawpoll about time sinks (multiple answers allowed): strawpoll.me/12778423
 
user165474
Oh okay. Yes links are annoying
 
... Well, I picked a bad time to post my link haha
And I just realized that I forgot a closing parenthesis
 
Working on TIO does wonders for me.
 
user165474
Wait so did you make TIO? I can't be for sure but I feel like you did :P
 
3:16 AM
@HyperNeutrino Yeah, he did
 
user165474
Okay.
 
@ The person who voted for Dwarf Fortress, how can a complete noob start learning to how to play Dwarf Fortress
Besides the mental fortitude exercises
 
@Sherlock9 Play dwarf fortress, loose, play again. Its the only way
 
Excellent
Should I go in blind?
 
I would have the quick reference on the wiki open
it makes learning the "controls" faster
 
3:26 AM
 
3:45 AM
Ah, thanks
 
@Sherlock9 beware: that game will make you angry
it's the most complicated game I've ever seen
 
That game looks like I'm going to need more mental fortitude before trying it
 
@Sherlock9 do it late at night
is best time
 
Alrighty then, looks like I should go with one of the other options for now
 
4:01 AM
DF is a good game
I don't know whether I should give you tips to not flood your fortress
because tbh it would be really funny
 
Anonymous
4:14 AM
@HyperNeutrino Yep
 
@WheatWizard Who is we?
 
@DJMcMayhem @1000000000 and I
 
I entered the third page of to all time top reputation leagues in PPCG \o/
 
@WheatWizard That website is a crime against web design.
 
Anonymous
@Pavel Why? It's clean and readable
 
4:38 AM
It's readable, but it's also ugly af
 
Anonymous
Clean, readable, quick, no ads
 
> Clean and readable
 
Anonymous
@WheatWizard Ok yeah that's atrocious, but the rest of the site is fine
 
Also, Comic Sans
 
4:46 AM
@Pavel ^
 
I just won factorio!
woo
 
Anonymous
Now go for There Is No Spoon
 
@DestructibleLemon Play "Dig or Die" It's really awesome, it's like Terraria but with less fantasy, adaptive monsters, and electricity
 
um
maybe
oh, that's windows only
 
4:53 AM
Are you on Linux? It works pretty well under wine
 
mac
looks fun
 
I have a yosemite
 
Should still work
@Pavel Are you going to the UW math olympiad this year?
 
> It works with the following versions of OS X.

OS X 10.6 (Snow Leopard)
OS X 10.7 (Lion)
OS X 10.8 (Mountain Lion)
OS X 10.9 (Mavericks)
oh that specific page is outdated
kk
 
5:04 AM
@Mendeleev Oh yes, definitely.
Actually, my Dad is one of the proctors.
 
Oh wow, cool!
@Downgoat This must be your enemies' song youtube.com/watch?v=CZlfbep2LdU
 
They made an asdf movie 10 why didn't you say anything ;-;
 
We did
 
@Pavel I thought that everyone knew ;-;
 
Oh I see it came out while I was in Peru
nvm
 
Yeah I was in Peru
 
Beep beep I'ma sheep
 
I should make that my ringtone
 
No one will like you.
 
No one likes me anyway :(
 
5:18 AM
:c
 
xkcd.com/1826 <-- does anyone else see an incredibly massive image there?
 
Yes
 
Oh wait that's the point
 
Across several different browsers too
 
/facepalm
 
Anonymous
5:30 AM
@Pavel My eyes hurt
 
6:38 AM
@Pavel it's worse on mobile
 
7:35 AM
It looks normal in the app.
 
Anonymous
I was almost surprised that there's an XKCD app
 
For some time, it was the only way to see the title text.
On mobile, that is.
 
I think there isn't an official app, right?
 
8:44 AM
@EriktheOutgolfer I replied :)
 
I see.
@aditsu I replied too. Continuing the discussion there.
 
hi all
Does it make any sense to add a bounty to a question which already has a Jelly answer? I am just hoping to attract more different answers
 
Well, it would be very risky I guess.
 
why very risky?
it just seems a shame there is only one answer in a non-esolang
as it's quite a nice coding exercise.. if I say so myself
 
The winning criterion for the bounty would be what?
 
8:56 AM
@feersum the most upvoted after the bounty was announced?
the most upvoted new answer?
if either of those is acceptable
 
do bounties need to have an objective winning criterion? can they be VTC'd otherwise? :p
 
Well, I guess that there won't be many new answers after a super-golfed answer has been posted.
 
Whichever answer already has the most votes will stay at the top of the page and gather more votes at a faster rate.
 
@EriktheOutgolfer Sometimes there are lots of answers after a super golfed one
Over 20 of the answers were after the super-golfed one
@feersum ok so the most upvoted new answer?
 
Yeah, but I don't think that is common enough to warrant a bounty :)
 
8:59 AM
@EriktheOutgolfer :(
 
Of course, if you really want to put a bounty, you can, but you lose rep for that.
 
9:47 AM
@EriktheOutgolfer I don't worry about losing rep
rep is there to be spent :)
 
Oh, I thought you did a big mouth towards me at first.
 
no! :)
 
I imagine ":()" as this guy
 
0
A: Sandbox for Proposed Challenges

LaikoniVenn Diagram Cells code-golf set-theory Given multiple sets, e.g. s1={2,3,7}, s2={1,2,4,7,8} and s3={4,7}, a Venn diagram visualizes each set by a closed curve and set elements which are either inside or outside the curve's perimeter, depending on whether they are element of the set or not. Beca...

 
10:13 AM
Do you think it's ok to change my Bash answer to a Zsh answer to save a few bytes?
 
Well, they're both shells.
 
Anonymous
@betseg Does it drastically change the answer?
 
@betseg Post another answer?
@HelkaHomba :(
 
@DownChristopher That depends on the situation.
 
@EriktheOutgolfer True but in general I would post again.
 
10:15 AM
@Mego not to much
 
Well, I'd post again if it was a different algorithm altogether.
 
@DownChristopher they're almost the same
@EriktheOutgolfer ^
 
@betseg Challenge url?
 
@betseg Then I'd say keep on the same answer.
 
10:17 AM
Thank you 5 mystery Santas on the same ancient answer
 
@betseg I would say post again unless it will be boring
 
@DownChristopher It's just changing seq to built-in range system, which doesn't work with vars in bash but works in zsh
 
@KritixiLithos I'm on now
 
@betseg Ask someone who knows what you said
 
@Qwerp-Derp I have school right now
 
10:26 AM
Nvm splitting strings in zsh appears to be harder than bash
 
Does anyone watch Extra Credits here?
I think this video demonstrates the PHP philosophy applied to games: youtube.com/watch?v=tL_bCwiUKNE
 
PHP has a philosophy?
 
@betseg PHP philosophy = keep piling shit up, ignore everything else in the past
 
10:45 AM
actually it is more like just don't care about anything
@Qwerp-Derp s/ in the past//
 
@DestructibleLemon Good point
 
@Qwerp-Derp do you want to play martian chess in another chat?
 
What's that
@DestructibleLemon Whoa wait Martian Chess?
I have to eat, maybe later (I'm in China)
 
@Qwerp-Derp how is china?
are you in the rural or the urban part?
 
@DestructibleLemon I'm constantly sick for some strange reason
Urban part
 
10:53 AM
@DestructibleLemon what's Martian chess
 
@betseg a cool game that is in the same genre as chess, go, etc
 
Yeah read some Wikipedia
I don't understand the capturing/canals/winning conditions
 
canals is the border between your half/quarter of the board
 
11:10 AM
I made a lot of updates to my Math.JS interpreter. Check it.
 
why is math.js not js
 
Math.JS allows you to do fun things with plots and for some reason is Turing complete.
But of course you need to get hacky with it, like using Recursion instead of while loops, and forEach(range(),func)
 
Those aren't hacks. The former is par for the course in Haskell, the latter in Ruby.
 
They both make me a SadTaco™
 
I mean, you don't usually loop over an infinite range. Instead, I prefer loop.with_index{|_, i|...}.
 
11:26 AM
The easy way to calculate $\sum^a_{n=b}{n}$ is to do sum(range(b,a)), but that doesn't let you run a function on n before appending, so you need to get a manual loop in there. So you can probably do sum(a,b,f)=[k=0,forEach(range(b,a),_(j)=k=k+f(j)),k][3] which is already rather over the top, but we can also do it with recursion instead (yay). sum(a,b,f)=b>=a?f(b):f(b)+sum(a,b+1,f) which does the same thing again.
And basically I enjoy this "language"
 
11:49 AM
0
A: Sandbox for Proposed Challenges

betsegGolf an unbeatable chopsticks bot code-golf game From Wikipedia: Chopsticks is a hand game for two players, in which players extend a number of fingers from each hand and transfer those scores by taking turns to tap one hand against another. In this challenge "splits" can only be 4->2+2 or...

 
12:00 PM
0
Q: No notification upon post deletion by moderator?

YSCMy answer (10k+ only) to a code golf was rightfully deleted by a moderator because it turned out to be wrong and unfixable. This morning, I planned to delete it myself, but all direct links to my answer or its question from my profile/notification list were removed to. I had to search the questi...

 
12:26 PM
-1
Q: Why does Programming Puzzles & Code Golf not have its own theme?

The burger manFrom my understanding it graduated from beta a while ago, so why is there no rework on the appearance of the site? It's still the same bland PCG blue conversation image, as well as the same bland theme: Why?

 
12:47 PM
Hi, is there anybody out there? Preferrably a mod.
 
user165474
I'm here but I'm not a mod.
 
user165474
What do you need? If it's urgent, asking over chat isn't the best idea.
 
Mayb you can help me anyway.
 
user165474
Alright. What do you need help with?
 
It' not that urgent but what would be a better way?
 
user165474
12:49 PM
Well, it depends on what you need.
 
Depends on the issue. What's up?
 
0
Q: Calculate a User's Reputation

HyperNeutrinoChallenge Given a user's name (not ID, we have that challenge already), output their current reputation and their ID. Input Input will be a single string which is the user's username. You may assume that this user exists. Output Output will be two integers to either STDOUT or STDERR which wi...

 
How can I veto a Suggested Edit rejection from that I think that it IS helpful to increase the respective question's and such the site's quality?
https://codegolf.stackexchange.com/review/suggested-edits/38949
 
user165474
You can't veto it. The reason it's in the Suggested Edit queue is because users with less than 2k (1k here) can't edit things without approval.
 
user165474
Users with enough reputation can edit posts right away.
 
12:53 PM
@HyperNeutrino Yes, I know that. I'm not a beginner at SE. I have ~5K on SO.
@HyperNeutrino That's not the point.
 
user165474
Alright. Okay.
 
You can bring it up on meta, but there's no real veto process.
 
user165474
Are you sure the 7 is incorrect?
 
@HyperNeutrino My LibreOffice Calc says so.
 
user165474
Alright. I'll verify.
 
user165474
12:56 PM
If it is wrong, I'll just go edit it to correct it, but I won't change the equation format because we'd need some sort of consensus on it and the consensus appears to be Reject.
 
@HyperNeutrino It says 0,8775824652777780 ...to be precise
 
user165474
Okay.
 
In general, though, I don't usually see edits solely to add "nice" superscripts, and it's the norm to see them in either format here.
The rounding issue is something else
 
@HyperNeutrino I see. If this is the consensus on this, I don't agree on that. That's why I was asking for a possibility to veto.
 

« first day (2272 days earlier)      last day (2570 days later) »