« first day (1985 days earlier)      last day (2863 days later) » 

11:00 AM
I'll be never following him. Not even for all the gold in the world.
 
@zʏᴀʙiɴ101 Following who?
 
Just because he doesn't follow MY advice.
@R.Kap You!
 
@zʏᴀʙiɴ101 Aw... :(
 
Zyabin what is your GH username?
 
gtg eat dinner, bbl
 
@thepiercingarrow schas002
 
@zʏᴀʙiɴ101 Oh right I forgot... derp :/
 
Well, does not matter. I'll still follow you @zʏᴀʙiɴ101
@thepiercingarrow What is your GitHub username?
 
11:02 AM
@R.Kap Its thepiercingarrow, obviously. XD
@zʏᴀʙiɴ101 Wow you have quite a few followers!
 
@thepiercingarrow Two!
 
@R.Kap Wait nevermind!!
Oops I forgot
 
@zʏᴀʙiɴ101 What advice?
 
@R.Kap its thepiercingarrow2
 
@thepiercingarrow All right, cool. I'll follow you. :)
 
11:03 AM
I made an account thepiercingarrow under the wrong email (when I contacted GitHub, they said it was a similar email, so it was probably a typo). Then I forgot the password :/
So yeah they said wait 12 months then they can reset it.
 
@R.Kap I was going to teach you when TPA started to teach you.
 
I actually just emailed them about 4 hours ago, hopefully I'll have it changed by tomorrow :D
@zʏᴀʙiɴ101 When?
@R.Kap Thanks :)
 
0
Q: Want Visual studio download link

Amit GoelI am learning dot net with c# ..I cannot find the visual studio 2010 software, I searched a lot. Please give the direct link to download it.

 
18 mins ago, by thepiercingarrow
Try making a repository called RyanxR.github.io, then put an index.html in the root.
 
@zʏᴀʙiɴ101 Well, sorry that TPA starting teaching me. Do you want to teach me now?
@thepiercingarrow @zʏᴀʙiɴ101 Wait, since I now have a GitHub, does that mean I can now download any files I upload to my computer using HomeBrew?
 
11:07 AM
hm?
@R.Kap Use git clone
Or follow @zʏᴀʙiɴ101's advice :D
gtg eat dinner, bbl
 
@thepiercingarrow All right, see you later.
 
@R.Kap Nope. :'(
 
@zʏᴀʙiɴ101 Aw... :'(
Then how do people get there packages available to be installed by homebrew/pip/any other package management system using git?
Well, it's 4:15 in the morning here, and I have not slept a wink. I'm going to try now and probably wake up at 11:00 in the morning.
Good night!
@zʏᴀʙiɴ101 Will you follow me now?
 
@R.Kap Still not.
 
@zʏᴀʙiɴ101 Ok
How can I make it up to you?
 
11:19 AM
No way.
 
@R.Kap Play with him.
@zʏᴀʙiɴ101 Wanna play?
@zʏᴀʙiɴ101 Mini crosswords?
 
@thepiercingarrow I can't.
 
@zʏᴀʙiɴ101 Aw...
 
@zʏᴀʙiɴ101 :( okay
 
I made @zʏᴀʙiɴ101 mad
 
11:19 AM
@R.Kap He used (which he isn't) inappropriately
 
I feel so bad...
@LegionMammal978 Ah, okay. I see. Thanks for clearing that up.
 
disappears (again?) in a puff of smoke
 
@LegionMammal978 I made @zʏᴀʙiɴ101 mad at me
Anyway you think I can make it up to him?
 
No idea, I'm a bit of an introvert
 
@R.Kap Yup just play with him XD
 
11:22 AM
@LegionMammal978 Oh, okay
@thepiercingarrow But he does not want to play...
 
disappears(???) in another puff of smoke
 
@LegionMammal978 What's with the cool effects?
@R.Kap Wait a day or two
disappears in a puff of smoke
 
disappears in a puff of smoke with caption "GONE!"
 
Audience cheers for kid throwing a bottle and landing it perfectly
 
@R.Kap lol
its not even that hard.
 
11:24 AM
@thepiercingarrow I know, right?
 
Just practice for like an hour.
I can do it 4/5 times and I only practiced for like 5 minuets.
 
@thepiercingarrow I have done it so many times when I was younger...
I used to play around (and break...) with random items all the time
And still do to this day
 
@R.Kap cool!
 
reappears(?????) in a puff of confetti
 
@LegionMammal978 Crowd boos
 
11:28 AM
lol, I've got 369 answers and one question on this site
 
Doge appears
 
appears in a puff of smoke with caption "POOF!"
 
disappears(?????) in a puff of spaghetti
 
Crowd goes wild for Doge
Disappears by slowly walking away to backstage
Voila!
@LegionMammal978 Do you know how to get GitHub packages available for download on package managers such as homebrew, pip, etc.?
Hello! @EᴀsᴛᴇʀʟʏIʀᴋ
@EᴀsᴛᴇʀʟʏIʀᴋ Up so soon?
or up so late?
Well, since no one seems to be talking, I'm going to go to sleep now. G'Night!
 
in Sandbox, 34 secs ago, by zʏᴀʙiɴ101
I'm officially at the beach!
 
11:43 AM
Hi guys
Okay I'll come back a bit later
 
hi @SuperJedi224
 
Hello again
Was exploring B36/S24 with some different symmetries, found a couple of 60-bit still lifes
 
11:59 AM
@SuperJedi224 This is neat!
 
Both of those were found using the D8_4 symmetry option.
I also found a p14 oscillator
Got to go for now, I guess
 
12:15 PM
The classic 5-life test returns:
A single bit dies.
A block dies.
A blinker still works.
A beehive still works.
A glider dies in 3 gens.
Ohh, the Catagolue's custom Chrome tool bar is neat.
 
I find the Catagolue is pushing hard on my bad laptop when playing some objects
 
12:32 PM
 
you know you could be answering my challenge instead :)
 
1
Q: Reverse a string while maintaining the capitalization in the same places

MidnightasThe goal here is to simply reverse a string, with one twist: Keep the capitalization in the same places. Example Input: Hello, Midnightas Example Output: SathginDim, olleh Rules: Output to STDOUT, input from STDIN The winner will be picked 13th of July on GMT+3 12:00 (One week) You may use a ...

 
@Lembik You know you don't have to repeat it, people will answer it eventually :p
 
@Katenkyo thank you :)
 
Also, fastest code are usually longer to attract answers ^^
 
12:35 PM
@Katenkyo that is a good point. Technically it is code-challenge. It's hard to pose fastest-challenge questions as you need to time them all on the same computer
which excludes languages such as mathematica immediately
I have done it in the past but I always feel bad for the lovers of C# and mathematica (C# sort of works in linux but not as well as in winblows)
 
12:51 PM
@FryAmTheEggman Thanks for the new tags
 
1:09 PM
@Mego Looks like a lot of fun!
shame I don't like pyth or cjam :)
 
No problem, I think you had them in the Sandbox anyway :P
 
@FryAmTheEggman I did and then I lost my nerve :)
I sometimes get told off by the tag police
who tell me "It is LOGICALLY IMPOSSIBLE" to have tags X and Y at the same time .. didn't you READ paragraph 23 subsection 7.3???
 
@Lembik But this is where C and Lua lovers shines ^^
 
or things like that :)
@Katenkyo aha!
I still wish we had more Rust, D, Julia and Nim answers
 
@Mego I had looked at your challenge already, it looks fine. Although I think describing how random the values of a_i should be might be a good idea.
I'd assume uniformly was your intention?
 
Anonymous
1:14 PM
Yeah, I wish we (challenge authors) didn't have to define random as uniform every time. That should be the default. That's what a normal person would assume.
 
random == uniform unless stated otherwise unless it means normally distributed but maybe you can guess from the context... :)
 
@Mego Hum, this is a nice one, would love to do it :)
 
@Mego "normal person" teehee :)
user image
4
 
@Lembik We'd need more users who golf in them for that :)
 
@Katenkyo or some incentive scheme?
@Katenkyo and PPCG != golfing!
 
Anonymous
1:15 PM
I see Julia answers all the time on the math-oriented challenges
 
don't forget the PP part
@Mego cool
is there some way to search answers by language?
 
Anonymous
Specifically, I see Alex and Dennis posting Julia answers all the time :P
 
they rock :)
 
Anonymous
is:a <language name> is about the closest you can get
 
Anonymous
Julia seems like a happy medium between Python and Matlab/Octave, from my very limited exposure
 
1:17 PM
@Lembik Yes, but code-golfs are what we see the most :)
 
@Katenkyo I know... :(
I even set them sometimes so that people won't get too annoyed with me :)
 
@Lembik You could also visit the Julia chatroom if you want to discuss it, I think Dennis and Alex are usually there
 
Anonymous
@Lembik I think of you as the guy :P
 
thanks
@Mego that is my real love!
I just haven't quite worked out how to set them to allow code that won't run on my linux box
 
Anonymous
I like , but I often don't have enough contiguous free time to get any real work done on optimizing for speed.
 
Anonymous
1:19 PM
You could always use Cloud9 or Travis for timing
 
@Mego they still won't support mathematica for example I assume
or maybe even C#?
@Mego just stick to answering my challenges only .. that will save time :)
 
Anonymous
Cloud9 can do C# via Mono
 
anyone work with eclipse
 
right.. but I think mono is not the same speed as the windows compiler
which annoys the windows people
 
Anonymous
And Travis can do anything if you're willing to put together a script to install dependencies
 
1:20 PM
I could be wrong about that of coure
I mean I do have a linux box so I can run mono code here too
 
Anonymous
Well, .NET is going open-source, so an official MS compiler built for Linux shouldn't take too much longer
 
interesting
 
I'm always scared of participating in
 
well mine is called code-challenge :)
so don't be scared
 
1:22 PM
I know I'm not a great dev and lacks lot of the mathematical tools needed to create a wonderful algorythm that will have a complexity in O(n^5) ^^
 
@Katenkyo the interesting thing about the real world is that big Oh complexity doesn't always rule in practice
because big Oh complexity is about worst case inputs which often are rare in practice
also in my experience of my challenges, if Peter Taylor takes part you won't win.. otherwise it's wide open :)
2
 
@Lembik Whenever I'm around a computer, the worst case will always happen...
 
@Katenkyo :)
 
Can't go wrong optimizing for big omega
:]?
 
Anonymous
@Lembik Except for that one challenge with Dennis
 
1:24 PM
@Mego ah yes
actually I did see Peter Taylor not win once on one of my challenges. It was against a nim expert
 
Anonymous
I still want to make an OpenCL submission, but I haven't had the time to brush off my rusty knowledge from that one college course 2 years ago
 
who is rarely here
 
Well, absolute time can also matter...
2
A: Number of unique outputs by substituting variables

LegionMammal978Mathematica, O(k^2(k!)^2) time Length[Union@@(Fold[Flatten[{StringReplace[#,#2->"0"],StringReplace[#,#2->"1"]}]&,#,Union[Characters[#]]]&/@#)]& Hopefully I calculated the time complexity correctly. Input is a list of formulas such as {"bacb","bcab","cbba","abbc"}. Runs in less than 30 seconds ...

> O(k^2(k!)^2)
 
@Mego it would be nice if we could include GPU challenges somehow
they seem an important and tricky part of coding
 
Anonymous
OpenCL is nice in that it will automagically compile the code for any and all computational devices available
 
1:26 PM
@Lembik Please don't let GPU-based golfing languages become a thing...
 
Anonymous
So you get CPU and GPU programs running together with almost no additional hassle
 
cool.. although if you want to take full advantage of your GPU it's still tricky right?
@LegionMammal978 :)
 
@LegionMammal978 that sounds scary...
@Lembik Yep, but doesn't that highly depend on your GPU?
 
@Katenkyo I think so although I am no expert
I would love it if somehow one could ask golf challenges which were independent of syntax
 
Anonymous
@Lembik If you want to take full advantage of your GPU, you have to use the GPU programming framework native to it (CUDA for Nvidia, OpenCL for AMD), and probably do some awful hacks to squeeze out every last bit of performance.
 
1:29 PM
I find short and clever solutions very interesting but pyth/cjam less so
 
But yeah, you'd be surprised to see how many built-in functions run in O ( n ) average time in Mathematica
 
although the most efficient code to find the max of a list is weird in mathematica :)
 
Anonymous
Prime counting is an ideal task for a GPU-based program, since sieves can be parallelized with ease and get huge performance benefits
 
Honestly, if you want your program to run faster, you just have to use this computer
 
1:33 PM
ok here is a really naive coding question
can anyone explain the convention to put two underscores before and after names ? Like global
grr
__ global __ without the spaces
 
@Lembik __global__? ^^
 
yes
 
Anonymous
@Katenkyo Honestly a lot of programs wouldn't see significant speedup on that computer. Very few things are multi-threaded, and those that are often only use up to ~10 threads. Adding more cores gives diminishing returns on all but the most massive of computing tasks.
 
not sure how you typed that :)
 
use backticks as a delimiter for codes
 
1:34 PM
ah ok thanks
as soon as I see code with underscores I switch off
 
Also, we use underscores because we wouldn't do that for our variables
 
help needed :)
 
@Lembik Primarily, the purpose is to signify that it is a special value that shouldn't be changed. Also if you want that to show up without the bolding you could put backslashes before them to escape them: __global__
 
__global__ void multiply_them(float *dest, float *a, float *b) so why has __global__ got underscores?
 
1:36 PM
@Mego Wasn't serious about that by the way. And yes, if you're not multi-threading like a monster, it's useless
 
Anonymous
@Lembik In C/C++, identifiers that start with an underscore and a capital letter or that contain adjacent underscores are reserved identifiers. Other languages copied that standard.
 
Anonymous
591
A: What are the rules about using an underscore in a C++ identifier?

Loki AstariThe rules (which did not change in C++11): Reserved in any scope, including for use as implementation macros: identifiers beginning with an underscore followed immediately by an uppercase letter identifiers containing adjacent underscores (or "double underscore") Reserved in the global names...

 
@Mego ok .. so let me understand the word identifier
 
Anonymous
identifier = something that could be used as a "variable name"
 
@Lembik identifier: something used to identify
 
Anonymous
1:38 PM
(i.e. something that matches the regex [a-zA-Z_][a-zA-Z0-9_]*)
 
@Katenkyo are variables identifiers?
 
@Lembik (I won't help on this question, not knowledgeable enough, just wanted to troll a little)
 
k
 
But in general : identifier = meta-variable/value/keyword...
 
ok so I have read the python answer
 
1:40 PM
variable : label (myToto) corresponding to an adress in memory
 
__foo__: this is just a convention, a way for the Python system to use names that won't conflict with user names.
 
Anonymous
Identifiers are what many people call "variable names"
 
__foo: this has real meaning: the interpreter replaces this name with _classname__foo as a way to ensure that the name will not overlap with a similar name in another class.
@Mego thanks!
there is also this in python
if __name__ == "__main__":
so __name__ seems to be some sort of global variable
 
Anonymous
Yep, __name__ refers to the current module's name (or "__main__" if it is the main module, aka the one called with python file.py)
 
@Lembik __name__ refers to the current call, __main__ is an identifier for the main module
 
1:43 PM
thanks
all very helpful! Although I am sorry to dirty the PPCG chatroom with programming questions :)
 
0
A: Sandbox for Proposed Challenges

atlasologistUnzip some numbers code-golf ascii-art ? Your task is to create a program or function that generates a zipper with a length of 10 lines: -- -- -- -- -- -- -- -- -- -- and unzips it by a percentage divisible by 10, revealing the 1-indexed level within: >>10% -11- -- -- -- -- -- -- -- ...

 
Anonymous
Since you shouldn't prefix module/package names with underscores (if you do, you deserve to be beaten with a rubber hose until you realize your mistake), __main__ is a unique identifier for the main module.
 
@Mego thanks. I assume some people are into rubber hoses :)
 
Anonymous
The if __name__ == '__main__' idiom is a simple way to determine if the current module is being executed or imported.
 
@Mego My Java teacher forced us to name our packages __Name because they usually had to contain a class Name...
 
1:46 PM
python is a funny language. Huge numbers of people, like me, use it but really should be using some other language
 
Anonymous
I think the only 3 standard library modules that do anything other than define functions and/or classes are cmath, antigravity, and this.
 
as I have no need for 90% of the features that make it really slow
 
Anonymous
@Katenkyo I see two problems. The lesser problem is the bad naming convention. The worse problem is that it's Java.
 
I mean.. what percentage of python users use frame introspection??
 
@Mego Java's still better than C# ^^
 
Anonymous
1:48 PM
Python is great when you need flexibility and readability more than speed
 
Wait what does cmath do? I feel like I've imported this dozens of times and I never noticed anything o_0'
 
@Mego I refer you to my frame introspection question :)
 
Anonymous
@FryAmTheEggman It makes complex literals legal.
 
Anonymous
@Lembik Hardcore debuggers and people trying too hard to do something the hard way.
 
(brain's frozen)
 
Anonymous
1:49 PM
Err wait, complex literals still work without cmath
 
@Mego right! And yet it is one of the main things stopping pyston and other projects from speeding up python properly
 
Huh, but I thought they were already legal? 1j works just fine in 3
 
Anonymous
Nevermind, disregard
 
Oh, ok :P
 
Anonymous
I think I'm remembering some older version
 
Anonymous
1:50 PM
Which means antigravity and this are the only standard library modules that have global code that runs on import
 
this is a really weird module: it has a variable set to 25, I think it was named i?
 
:)
 
Anonymous
It's ROT-13'd :P
 
But only in 2, I think it was dropped in 3
Oh no, it's still there
 
Anonymous
this.i is a leftover loop variable
 
Anonymous
1:53 PM
s = """Gur Mra bs Clguba, ol Gvz Crgref

Ornhgvshy vf orggre guna htyl.
Rkcyvpvg vf orggre guna vzcyvpvg.
Fvzcyr vf orggre guna pbzcyrk.
Pbzcyrk vf orggre guna pbzcyvpngrq.
Syng vf orggre guna arfgrq.
Fcnefr vf orggre guna qrafr.
Ernqnovyvgl pbhagf.
Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
Nygubhtu cenpgvpnyvgl orngf chevgl.
Reebef fubhyq arire cnff fvyragyl.
Hayrff rkcyvpvgyl fvyraprq.
Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff.
Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg.
 
Anonymous
Same with this.c
 
I don't know why, but I feel like this text is full of curse
 
Anonymous
It really isn't
 
Anonymous
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
 
It explain why I felt like Iknew this text ^^
 
1:56 PM
Yeah, I know what it's for but why isn't it deled?? Seems to violate the Zen of Python itself!? :P
 
Anonymous
It doesn't pollute the global namespace - just the namespace of that module
 
Or like, why use a loop counter at all in python? :P
But it pollutes the module namespace! Pollution isn't beautiful! </mock rage>
 
@FryAmTheEggman practicality beats purity. ^^
 
How is having a value equal to 25 practical? :P
 

« first day (1985 days earlier)      last day (2863 days later) »