« first day (1934 days earlier)      last day (2900 days later) » 

11:04 AM
Stupidest hacker stock photos collection. https://www.teachprivacy.com/the-funniest-hacker-stock-photos/ https://www.teachprivacy.com/the-funniest-hacker-stock-photos-2-0/ https://t.co/maiLC7MPjm
 
wat
 
11:21 AM
0
Q: Find the circumference!

Έρικ ΚωνσταντόπουλοςChallenge Well, find the circumference of any circle. You'll be using the formula 2*pi*radius or pi*diameter. For any violation of the rules below, you get +Infinity% penalty, except when otherwise noted. Rules You will take an input, r or d, as command line argument or stdin. Your program mus...

 
11:38 AM
@anyone how do i ensure equal numbers of certain chars in a regex?
 
example?
(also which regex flavour)
 
probably impossible, but I'm still not entirely sure what exactly you're looking for
 
For[a=Floor@Log10[Pi#],1>0,WriteString[$Output,ToString@If[NumberQ[b=RealDigits[Pi#,10,1,a][[1,1]]],b,Quit[]]<>If[a--==0,".",""]]]&
@MartinBüttner Any golfing ideas?
 
Something like /^\[n times a, n times b and any other chars\]/
 
11:41 AM
@MarsUltor do you mean [aaabbb] or also something like [aababb]?
 
@MartinBüttner Both, plus [abbaba3092u0tn] should work as well
 
either way, that's not gonna be possible in JS
 
Hmm, wait, maybe regex is not the best idea
 
(with a regex)
yeah
just match ^\[.*]$ and then count the as and bs manually
@LegionMammal978 ummm...
 
230
Q: How to count string occurrence in string?

TruMan1How can I count the number of times a particular string occurs in another string. For example, this is what I am trying to do in Javascript: var temp = "This is a string."; alert(temp.count("is")); //should output '2'

 
11:43 AM
(It takes Pi# and continually outputs digits)
 
yeah, I got that, but I'm more tempted to close the challenge as unclear than try answer it
 
How is it not clear?
@MarsUltor Just use count?
 
the requirements for arbitrary-precision representations aren't clear
> If your language supports arbitary float precision, you should explicitly mention the last decimal digit that is precise.
This makes no sense.
 
that means if your language has bigdecimal?
 
@KennyLau No bigdecimal, just symbolic formulas
 
11:47 AM
I don't get it
 
For example, 3a-2a is still a, even if a is undefined
So the number is just 5Pi
(Or d Pi in general)
 
you mean if input is 6 then you just output "6pi"?
 
@KennyLau No, I take RealDigits[6Pi,10,1,-n] to get the nth digit after the decimal point
 
I see
 
12:04 PM
@Dennis Can you please pull 05AB1E?
 
@Adnan "Yes."
"After I'm finished with flags for today."
 
Hahaha
 
12:29 PM
0
Q: brute force the smallest regex for any regex in the fastest time

user53764any flavor of regex and any programming language is allowed, as far as test go, you will try to match only all element symbols,and this challange some tips would be to try to do an general optimization of the brute force to reduce the keyspace

 
12:44 PM
Drops of water sitting on water!
 
1:29 PM
Finally had my first visit to a dentist! :D
 
1:57 PM
@zyabin101 I think you need to answer more challenges
in your own language
 
"Login to your account" no thank you
 
@Fatalize Which site?
 
the one you linked
 
Strange.
Apparently Ephemeral Me doesn't show activity to unregistered people.
 
2:14 PM
any mods in chat?
 
@NathanMerrill El'endia Starman, though he's actually a mod on Christianity.
 
doesn't count, in this case
techinically Martin and Dennis are, but I don't want to ping them :)
 
trichoplax, mod on Computer Graphics.
 
@zyabin101 >using pump.io instead of based gnu/social, or as i've recently taken to calling it, gnu+social
why do you hate freedom
 
o_o I don't.
 
2:27 PM
You'd think you wouldn't need to log in to a site with ephemeral in the name :/
 
Yeah, that's weird. Can't even view people's timelines without logging in?
You can with gnu social~
Along with getting to run around shouting how free/libre you are
 
Yea, that's really the highlight of my day, being able to brag about stuff.
I guess that means I should start doing crossfit or something.
 
@RenderSettings GNU Social?
 
> Q: How can you know if someone is into CrossFit? A: Don't worry, they'll tell you.
 
2:36 PM
What's crossfit?
 
Just got a shiny silver code-golf badge! YAY
 
Hello by the way
 
That looks like it would be a real pain to 'rotate'. Probably do it a couple times to show off and then just leave it alone.
Not to mention the gaps in the surface even when closed up :/
 
2:40 PM
Hi , iam trying to assign inf to a array in java,
 
^ wat
 
in matlab s(1:20)=Inf;
 
what is inf supposed to be
infinity?
 
@shawinkarim oh is this a double array?
 
You might be in the wrong chatroom, tbh.
 
2:41 PM
Java has Double.POSITIVE_INFINITY
 
double s = Double.POSITIVE_INFINITY;
 
well for ints
 
@RenderSettings GNU Social? What is it? ~_~
 
Anyone familiar with J?
 
Integer.MAX_VALUE is the closest
 
2:42 PM
@KennyLau I'm familiar with Python.
 
@shawinkarim well one thing I see is that java doesn't automatically assign one value to all things in an array
you have to use a for loop
 
@CᴏɴᴏʀO'Bʀɪᴇɴ @Zgarb This works: 2 3 4(>.@%~>:) 123, but when I try to multiply each result with the one on the left (61 42 31 -> 61*2 42*3 31*4), I try 2 3 4([*>.@%~>:) 123 and many other combinations, and they all fail
 
(if that's what the matlab code is doing)
 
how can i perform it :(
 
@shawinkarim for(int i=0;i<array.length;i++){array[i]=Double.infinity;}
 
2:44 PM
for(int i = 0 ; i < array.length ; i++) {
array[i] = Double.POSITIVE_INFINITY;
}
damn
 
@Dennis You might want to read what I just said
 
Hey @FryAmTheEggman I thought that the conversation might work better in here :)
 
@NathanMerrill Yeah, it started to get pretty long :P
 
Ok, prereq question: Lets assume voting works without problems, do you foresee any other problem with the challenge?
because I think voting is the most problematic part of my challenge, but also really like it :)
 
2:56 PM
Besides probably some balance stuff, no it looks good
 
So, the biggest reason I want voting is because of balancing reasons
 
(It would probably be a good idea to get some people to write some testing bots before you launch it, these kinds of games often have weird meta games)
 
It's really hard for me to know what ability is actually OP without testing it
yeah, I'll definitely have the controller out there beforehand
maybe some sample "bots" they can try to fight
 
Yeah, I feel like the bidding stuff kind of just amplifies the problem. The people who know these games and are better at breaking them will basically be participating in a separate challenge, where winning the bid war is the majority of the work
Unless the abilities are very well balanced
 
...link to context?
 
3:00 PM
2
A: Sandbox for Proposed Challenges

Nathan MerrillBattle of the Fellowships king-of-the-hill epic In this challenge, you are going to create a Fellowship with the goal of defeating all other fellowships in battle. Your group will consist of 4 characters. Character details: Attributes Available attributes are: Strength, Agility, and Intellig...

 
Ok, lets say I'm able to balance the abilities
 
iam receiving error :: double [] s = new double [p];
for(int i = 0 ; i < p; i++) {
double s[i] = Double.POSITIVE_INFINITY;
}
 
what is the error?
 
@El'endiaStarman if it was you who told me about hyperrogue, thanks.
Cool game.
 
I'd consider making a submission a single character
(if voting disappeared)
 
3:04 PM
@EᴀsᴛᴇʀʟʏIʀᴋ That it is. :D
 
:D
>_> need to pay $5 for the full version though, the OS X version is stuck like 4 major updates back.
@QPaysTaxes would your eye surgery happen to be a laser one?
 
@NathanMerrill Hmm, I liked the team thing. But that's just my preference, not really any good reason for that :P
 
@Adnan Pulled.
 
Thanks :)
 
@FryAmTheEggman Yeah, so do I. I'd definitely allow multiple submissions, and maybe have some sort of algorithm that pairs players that do well together
 
3:07 PM
@NathanMerrill I don't think the bidding idea's that good - it will be hard to find out what sort of bid would be good without playing the game and if you get bad stats, your basically out
 
@Dennis How much time do you dedicate to flags each day?
 
yeah. It's just really hard to know which abilities are overpowered
 
Yeah I think a big problem is that games like that have weird reactionary meta-games and if you get locked at the wrong end of the meta...
 
I wish it were possible to make tweaks to abilities after the challenge is released
 
@zyabin101 I'm going to guess 5-10 minutes.
 
3:09 PM
I would say thats what the sandbox is for but I don't think many people (any?) would test it in the sandbox fully
 
@El'endiaStarman >_>
I thought 30 minutes a day.
 
@muddyfish yeah, and it will really be impossible to see how things play out until...they play out
 
@NathanMerrill I do really games like that, I'd be willing to test out some stuff once you have the controller set up. If other people want to as well we might be able to set up enough preliminary testing that if someone breaks the game it would probably at least be interesting :P
 
It does seem like it would be awesome if it worked though
 
3:13 PM
ok. So, I'll remove the voting phase. I'd love lots of preliminary comments on balance (including mana costs and cooldowns)
realize that there is no mana regeneration
(except for the one ability)
 
(That one ability is also probably reaaaaallly good)
 
its only 2 mana per turn
 
Yeah it's probably ok, but it is probably worth a slight hit to diversity to be able to use spells more than once. Also risks breaking the game with clone, etc. vs slower opponents if you can run away well enough
 
Any reason for not having a simple fixed cost? Other than the time it would take to properly balance everything.
Oh, also, Clone and Steal are on the same line.
 
@El'endiaStarman you mean a fixed price for abilities, or a fixed mana cost?
@FryAmTheEggman yeah, there's a reason clone costs 100
 
3:18 PM
@NathanMerrill Fixed price.
 
hmmm...I might include prices
I'm still on the wall on that one. I may just end up removing prices altogether
and give 20 or so points to distribute
and maybe a couple of abilities that increases points
 
I was unsure if this was just not having had enough time or whatever, but some abilities don't have CDs/costs which would be pretty strong in some cases (the original reason I thought Ferocious would be so good is that you could permanently slow all 3 opponents if you had no CD/Cost...)
 
yeah, maybe I'll make cooldows tick based
bah, I'm really on the wall on this though
it makes AGI much worse
also, realize that Icy already slows anybody you are attacking
 
Uh, hmm.. Icy is kind of weird, does it reapply if you move out of range and back in again? That also risks going infinite with too much AGI
 
3:24 PM
@FryAmTheEggman Hmmm...maybe if you end your turn within an Icy enemy, your next turn is 20 ticks later
 
PROTIP: Time mages are broken in this kind of game, taking more turns than your opponent is really good
 
@FryAmTheEggman but how do you make one? I mean, if you use your points in AGI, then you don't have any mana to spend
 
And yeah that mitigates the problem quite a bit, but Icy is passive, and Slow didn't have a CD or a cost ;)
 
oh, that's a mistake
 
@KennyLau ಠ_ಠ
Avocad should exist.
 
3:28 PM
but yeah, Icy mage may be really good
I dunno. When people are already at 100 tick turns, 20 really isn't that powerful
its 1 extra turn every 5 turns
 
Yeah the problem with these effects is if you have too many of them that are stackable
 
its really good against Furious
yeah, separate abilities should be stackable
so, we've got a maximum of 60 slow
 
Yeah the main problem I originally saw was Furious + Slowing effects + Mana regen
 
which is pretty good
 
Hello
Which game are you talking about?
 
3:31 PM
2
A: Sandbox for Proposed Challenges

Nathan MerrillBattle of the Fellowships king-of-the-hill epic In this challenge, you are going to create a Fellowship with the goal of defeating all other fellowships in battle. Your group will consist of 4 characters. Character details: Attributes Available attributes are: Strength, Agility, and Intellig...

oooh, what if I make mana regen not turn based
but tick based
aka, gain 1 mana every 50 ticks
 
Dang Internet and dang double posting
 
I don't think you have anything besides furious that makes you go faster than what AGI gives, which is good for balance.
@Sherlock9 The sandbox link Nathan posted
 
@NathanMerrill @FryAmTheEggman Thanks
 
That mitigates the problem, but the thing is all of your allies benefit from the slow, so even if you run out of mana you can basically make your other allies take 50% more turns than your opponents if you stick together
 
50%?
we're talking a 20 slow
multiple Icys don't stack
 
3:35 PM
Stacking it with the Slow ability makes it 60% slow, across 3 characters
I did just make up the 50% but you get a pretty substantial boost by doing that
Also I should delete my old comments on the post
 
yeah, 60 is pretty powerful.
also, Immune
do you think its too powerful
 
Geez this is a large KOTH. Good luck to the participants (which may include me if I have time after exams)
 
@NathanMerrill I have no idea, it's one of those things that requires a bit of a feel of the game. Like if damage is not tuned very well a team of 3 tanks could probably beat you just by standing around and spamming defensive abilities until you run out of mana
 
oh yeah
Reflexive is actually really good against dex attackers
 
3:42 PM
I think the best way to balance this kind of game would be to set up a simplified controller that allows a human to make plays
 
That reminds me. I need to make a controller for my long-abandoned KOTH that allows a human to make plays
 
Hey guys :)
4
 
The trouble is, I was writing it in Python with subprocess and I'm confused how to have a bot talk to two things at once. Input from the game on what the current situation is (how every other bot played), show that to the player, input from the player, output to the game.
 
@PhiNotPi @anybodyelse do you know of some kind of algorithm that is able to find high scoring groupings
 
3:45 PM
\o/ \o/ \o/ \o/ \o/ @Shebang you're back!!!
 
Haha, yep :P
Been a while
 
@NathanMerrill I don't.
 
But since the game took the bot's input and output to send and receive, the bot couldn't receive from the player. I got confused and put it down for a few months
 
0
Q: How can I open two consoles from a single script

K DawGApart from the scripts own console (which does nothing) I want to open two consoles and print the variables con1 and con2 in different consoles, How can I achieve this. con1 = 'This is Console1' con2 = 'This is Console2' I've no idea how to achieve this and spent several hours trying to do so ...

that might help?
 
@Shebang o7 Welcome back
 
3:49 PM
Thanks :)
 
How long is a while? If it was before last November I might not remember you :P
 
My last CodeGolf sign-in was probably August
 
what brought you back?
 
And you too @RenderSettings! \o/
 
I was going to edit to say, "because I only signed up to PPCG last November". It's good to meet you
 
3:51 PM
You too! ;)
 
Sep 18 '15 at 4:45, by Shebang
Very busy with university-related stuff
^ that?
 
Yes, still very much busy :P
And now I staff on two different websites
 
._. RenderSettings come and don't answer.
 
"university-related stuff"
And I'm supposed to be studying for midterms :P
 
I was reminded of PPCG cause I just had to go on SE to find out how to generate a public/private key for sshing without a password
I'm suppposed to be studying for a Stats thing I have tonight, I know the pain Sherlock :P
 
3:54 PM
@BaldBantha Ooh, I wonder if this will work with my card game :D
@Shebang Stay strong. I only have 5 more exams and two reports @_@
 
Ouch :P
Well this is just the start of my summer term
 
Well, today was only the first day of midterms. I have 8 classes this semester, 1 down, 7 to go
 
Today is a holiday
huehuehue
 
@Sherlock9 Card game?
 
@Sherlock9 Midterms? It's basically finals week over here...
 
3:59 PM
Hey @Fatalize , I recognize the name ;D
 
Let me see if I can find it
 
@NathanMerrill Context?
 
sorry
 
I am constructing teams of 5 players
 

« first day (1934 days earlier)      last day (2900 days later) »