« first day (1410 days earlier)      last day (3434 days later) » 

1:04 AM
Hey guys please support :)
46
Stock Exchange

Proposed Q&A site for investors and analysts of the stock market and general stock investment practices.

Currently in definition.

 
@Timtech So that would be Stock Exchange Stack Exchange? :D
 
 
3 hours later…
3:48 AM
I made a regex comparing program that fails on 1 out of 46 test cases
probably the best idea is to give up now
 
4:23 AM
finally code-golf silver badge!
 
@Optimizer You don't have the gold badge yet? Slacker. :P
(admittedly, I don't either, so... :D)
 
@Doorknob冰 Hey, I am not even 100 days old here . Who's the slacker now ? :P
 
@Optimizer Umm... uhhh, well, I'm already busy moderating! And, ummm, I'm a doorknob, so typing takes a long time! Also, excuses! And... reasons!
 
on top of that, you are frozen right now.
I can understand.
 
 
3 hours later…
7:41 AM
I should change my display pic ..
(no idea what to)
 
 
1 hour later…
9:03 AM
1 more upvote for necromancer.
 
 
1 hour later…
10:03 AM
@Optimizer need to head off to uni in a bit... I'll post it when I get back.
 
10:14 AM
Hey Martin, I have a new a shiny algorithm coming :D
(it does the bear's fur more justice)
 
nice, looking forward to it :)
if it's completely different, feel free to post it as a separate answer
 
Hm... nah I think I prefer to think of it as a very much improved version of what I was previously trying to do
It still merges N first, then P
 
@MartinBüttner cool.
 
@MartinBüttner Posted some images for now :D
 
10:22 AM
@Sp3000 wow that looks really nice
although Mona Lisa without a mouth is creeping the shit out of me :D
 
If I can figure out how to make the cells smoother I'd be happy :)
 
btw, if you want to get three thumbnails next to each other, I've used an image width of 210px in the challenge post
 
Oh, you can specify image width?
I just added m to the url before the image extension
 
oh I see
no I actually created thumbnails locally
 
Ah, k
Well I've actually made a Google Sites page for a gallery
But I'll update that later
 
10:27 AM
but not other values
 
I guess I could change m to s
They're all links anyway
 
I'm gonna head off
see you
 
:) have fun
 
 
2 hours later…
12:00 PM
@Doorknob冰 Yes :P and it just needs some question upvotes. Maybe stockexchange.com? But that's taken. stockexchange.stackexchange.com
 
stoackexchange.com ?
 
Maybe
or staockexchange.com
but it's taken
 
o should appear before, as its in subdomain
 
right
well cya
 
 
1 hour later…
1:26 PM
@PeterTaylor Are you sure that 228 -> (9,3) in the Hilbert curve question ? I am getting 1,11 and my other outputs are matching with what were present earlier ..
 
1:53 PM
fyi
1
Q: Conditional Operator Broken

nimssonI am trying to obfuscate some code for fun, but I have come across some big difficulties: a conditional operator (? :) does not work. Due to the layout of the code and the nature of the Visual Studio Debugger, I cannnot find out whether it is even reached. I have #include <stdlib.h> #include <st...

 
@Optimizer That's what my code gets, and that's what my port of MickyT's code gets.
 
what does your code get for 15 ?
 
(3, 0)
 
ok cool. But I think you cannot use Infinity in your code
in the while loop parameter
 
2:01 PM
I'm not, no
 
ok
I am getting all right values except for some weird cases
u gonna post urs ?
 
When it's golfed
I'm still trying different approaches
 
hmm, even the C implementation on wikipedia gives swapped X and Y depending on the value of n
 
Oh, MickyT's code is just a port of the code on Wikipedia? Boo
 
u didn't realize ?
just that it replaces n with Inf
and ur code is port of MickyT's ? :P
 
2:11 PM
No, I wrote a direct implementation. I also ported MickyT's for comparison.
 
recursive ?
 
Iterative
 
is it much different from MickyT's ?
 
I've been trying to find a simple form for the x-coord because I've found a simple form for x^y. So far no luck.
Extremely. When I say "direct implementation" I mean an implementation of the generation process described in the question
 
if you do find, it would be nice to update wikipedia too ^.^
 
2:20 PM
I'm trying to golf my regex comparison under 1000 bytes and it is tough...
 
I'm still of the opinion that that question shouldn't be code golf :P
But objective winning criteria, I guess
 
why not?
maybe zlib will help me
 
It's hard enough to be a good code-challenge imo
 
don't think i've ever used a zip answer
 
2:56 PM
woohoo down to 981 bytes!
 
:o by zipping?
 
no haven't zipped yet
I should try to make all the variables have the same name so it can zip better
 
3:37 PM
@Sp3000 your new results are absolutely gorgeous
 
I implemented the Gaussian filter naively for testing so results are taking a while, but once I'm satisfied I'll start making it more efficient :P
 
I mean even without the smoothing
 
Ahaha right :P
I do wish HNQ wasn't scored with such a big penalty on question age though :/
 
its not built to keep in mind of PPCG
 
It'd be interesting if they accounted for, say, a question which is a year old but suddenly got 10 answers overnight :P
Ahaha yeah...
 
3:39 PM
@Sp3000 I agree
 
which is diff. from other SE where question age is a huge contribution
 
@Optimizer actually PPCG is doing really well on the HNQ
 
Favicon's on there atm from memory
 
that's for other reasons, but the algorithm doesn't really fit for PPCG where things are not really questions, but challenges.
 
@Optimizer a lot of things don't really fit for PPCG
 
3:42 PM
Same goes for Puzzling I guess (that's probably half the source of their problems, tbh)
 
I think if it got another two or three answers today with a reasonable amount of votes, it might still make HNQ, but that's unlikely. (print a negative was on there for over a week)
 
Ahaha I guess there's also the momentum factor...
I tried looking for 2-day-old questions... there was one, upvoted about 40 times and most upvoted answer about 80
 
well you can't compare it with other sites
the hotness value is scaled by site traffic
 
Ah :/
 
and also, within each site, the second hottest question gets devalued a bit, and the third hottest even more and so on
(which was probably another factor in not making HNQ because both print a negative and the one with the french nouns were still in there)
 
3:47 PM
Are they? I don't think so any more...
 
not any more, no
but they were
 
it's time to take rep wars to the next level!
make botnets for viewing own questions!
 
lol
could someone have a final glance at meta.codegolf.stackexchange.com/a/2560/8478 before I post it?
 
Ahaha Martin's singlehandedly posting all the good questions this week :P
 
someone's gotta do it if Calvin's Hobbies is in hibernation...
(not that mine are anywhere near his quality)
actually I wanted to lift the ban on built-in string splitting functions
 
3:53 PM
"Neither program/function must contain any string or regex literals" Neither program/function may?
Not sure, but it sounded weird
 
right, should be may
 
you're the native speaker... I'm taking your word for it :P
neither may vs. neither must vs most not vs may not... I'll never get it :D
 
"Both program/function must not contain" is another alternative
 
yeah, basically "must not" is weird and all the others make sense, but it took me years to get "must not" into my head that I'm not switching up the others too :D
 
It's something to do with the fact that "must contain" sounds affirmative, while "Neither" is negative
 
3:55 PM
must not in my line is ok
 
@Optimizer yes it's right (in English), but it doesn't make any sense to me :D
 
but the sense of the two versions change, must implies a forced rule, may implies a normal rule :D
(maybe ? )
 
okay, let's do this. thanks for the feedback guys
 
Do we really have to print each string on new line in case of STDOUT ?
 
yes
0
Q: Significant Whitespace

Martin BüttnerWe define whitespace to be any of the three characters, tab (0x09), newline (0x0A) or space (0x20). For this challenge, you're to write two programs or functions in the same programming language, which perform the following tasks: Count the whitespace in a given string. For instance, the input...

 
4:00 PM
Hmmm the first thing I can think of to solve it would be variable assignment as comments
(thinking about Python, as usual)
 
printing like ["asd" "fggh"] would have been easier :D
 
@Sp3000 what do you mean?
@Optimizer for you...
 
obv
I guess its just 1 extra byte
lets see
 
a=afoo=1
x=a
foo
v.s.
a=afoo=1
x=afoo
Or something
 
@Optimizer you can always make it a block instead
@Sp3000 ah I see
 
4:03 PM
a block ?
 
@Optimizer well then you can "return" an array
 
okay.. lets see, first draft is ready ..
 
btw, I found this on reddit today: aphall.com/2014/12/glsl-projectron
it's amazing
 
@MartinBüttner I'm assuming string literal means I can't do x.count(" "), but what about x.count(chr(32))?
 
@Sp3000 the latter is fine.
 
4:06 PM
"Oops! Looks like WebGL isn't supported :("
What.
 
what ?
 
I used WebGL for my project last year!
(For Martin's link)
 
what browser ?
 
Chrome
 
my question was more of surprise
 
4:08 PM
it's basically like that challenge idea I had a few weeks ago... just better :D
@Sp3000 my idea for python was that you could just outdent a statement in an if False:
 
Haha that might work
Another idea I had could be short circuiting
 
@Optimizer 1 0 gives you a truthy/falsy result in 3/2 bytes, but it leaves a 1 on the stack in one case.....
 
edit it one more time!
I dare you
 
(On a side note, amazingly blurring still kept some the stars from N=500, P=30. I thought they'd be annihilated)
 
@MartinBüttner why are you doing this to me ? ;)
 
4:19 PM
;)
 
(they're a lot smaller though...)
 
this is spamming for psychopaths :D
 
@MartinBüttner I got a shorter one!
 
now that filter is bothering me so much
i wanna kill it
@MartinBüttner can there be 0 Whitespaces ?
 
4:30 PM
yes
 
wow, people do hate CJam :D
 
why, did you get downvoted somewhere again?
 
no, I am not getting upvoted on this answer
whitespace one
 
well, most people can't read CJam... why would anyone upvote code they don't understand?
 
phew finally posted regex compare
584 bytes lol
 
4:37 PM
@Sp3000 lol, I love the s*0
 
s*0?
 
Assume that was at me, but :P you didn't let me empty string
 
@Sp3000 also, commas ;)
 
Commas?
 
in the header
the snippet needs a comma too figure out where the language name ends
 
4:38 PM
...oh right I forgot there was a format
 
don't worry ;)
 
Thanks :)
 
4:50 PM
I guess, most languages will do the variable name trick only.
 
Oh right, Martin allowed builtins now?
 
That makes things shorter
 
Oh!, I can use split !
damn
 
bam, HNQ
 
4:58 PM
I look forward to the incoming upvotes :D (I like my new solution)
 
not sorted :D, that's amazing
you could save 8 bytes though, right? :P
 
Can I?
 
or is sorted a built-in?
 
sorted is a built-in function
I need the not to convert to bool for indexing
 
but so is sort, right?
 
5:01 PM
That's .sort()
 
oh okay
 
There's also format and memoryview. If I can figure out how to use ord that could be a way
 
5:22 PM
who wants to code golf a VST?
 
Virtual Simulation Tester
Very Subtle Typewriter
 
Very Sexy Teacher ?
2
 
@MartinBüttner mhm
 
@MartinBüttner I hope you like my built-ins :D
 
5:25 PM
like, a simple sine wave vst
 
@Sp3000 haha that's great :D
 
i bought $230 headphones online yesterday and now i'm stalking the shipment status page the whole time
 
Audio technica ?
 
@Optimizer Shure SRH840s actually
they're $230 because of import fees and such
 
hmm. never heard of Shure
 
5:33 PM
@cjfaure i know that feel bro
 
@MartinBüttner it's been 24 hours over a workday and they're still "unshipped" D:
 
which site u ordered from ?
 
@Optimizer soundz.co.za, shady as hell but the only local place
 
I have bought from such shady sites..
first time is always risky
 
buying from amazon would have worked out to be around $300 though
 
5:37 PM
I guess u guys dont have better and cheaper local competitors to amazon
 
Often I find that my orders go from unshipped to my doorstep in a matter of hours. Sometimes I even get notices that my order has shipped after I already have it in my hands.
 
@Optimizer it's not possible, nothing is made here (except Toyotas, but they're sold at the same price because profiiit) and the import fees are insane
 
where is here ?
 
south afric
a
(that moment when your up arrow decides to not work)
 
I see
 
5:39 PM
@Rainbolt the post office is on strike here also, so that doesn't help
 
(that moment when you realize that the up arrow is a hotkey)
 
and the site didn't have a courier option
 
@Rainbolt you live near one of the store houses of that site ?
As I told @FryAmTheEggman yesterday, I can do a <60 ! :D
 
I can do a 180, but I don't want to break my neck
(i'm wondering if the shipping or the burn-in on the headphones will take longer)
 
@cjfaure hrhr
 
5:45 PM
@MartinBüttner you're dad's dad's jokes
 
@Optimizer No, I ordered something from Tokyo, Japan. I live in the US. It was supposed to arrive after two weeks. It arrived in two days. After two weeks, I got a notification that my order had shipped.
 
in 2 days !!!
:O
also, I was talking about the case where the shipment arrives in hours.
 
@Rainbolt I've gotten that in reverse while living in Tokyo. It always baffled me.
 
I guess they treat Americans special. I order from Tokyo/China all the time, didn't even get in less than 10 days once
 
"i guess they treat americans special"
 
5:48 PM
@Optimizer The online tracker moves from unshipped to my doorstep in hours. It didn't actually do that in real life. They just update their system slowly.
 
:D
 
I have a feeling that I actually paid outrageous shipping fees just so that they could call their American factory and say "Hey, can you ship this for us?" I bet it didn't even come from Tokyo.
 
lol
which site ?
sites like these generally dont have store houses at all.
 
reading the user manual pdf for the headphones on the shure site
"WARNING: This product contains a chemical known to the State of California to cause cancer and birth defects or other reproductive harm."
is it Zomboy?
 
you still ordered ?
 
5:52 PM
i'm pretty sure they all have that
rare earth drivers and such
 
Hey, I have an idea for a KoTH, curious if there is an "optimal" solution
 
@NathanMerrill hm?
 
5v5, where each player controls their team of 5.
each team player is sitting to a player of the opposite team
there are 4 "seats" that people try to gain.
 
@NathanMerrill "next"?
 
you might want to word that as "5 1v1 games at once"
 
5:55 PM
Imagine a circle
It's based off of a real life game
11 chairs, 10 people, 2 teams
 
Musical Chairs?
 
no, each turn the person with the empty chair to their right calls out an ID.
The person with the given ID then moves to that chair
however, IDs are not known
 
musical rear ends?
last chair without one loses?
 
What if I call out an ID that doesn't exist?
 
musical cryptography?
 
5:57 PM
er, you know that the ids 1-10 exist
you just don't know who the belong to
except for yours
 
"11" suddenly, chuck norris appears and wins the game (unlike you, you just lost it)
 
Is this purely luck based? I can't see any strategy involved in picking numbers. I want my team to win but I have no idea what IDs they have.
 
so how exactly do you score points?
or win, or whatever?
 
well, each time you can pick a number, you can observe the positions of the other players
 
so can everyone else
 
5:59 PM
you will be given a separate "name" that you can track (so you can begin to identify who is who)
 
so the optimal strategy is to go last
 

« first day (1410 days earlier)      last day (3434 days later) »