« first day (1960 days earlier)      last day (1606 days later) » 

12:00 AM
RELOAD!
[MDoerner/AdventOfCode2019] 1 commit. 333 additions. 2 deletions.
[Phrancis/AdventOfCode2019] 6 commits. 225 additions. 408 deletions.
[Minesweeper] Games Played: 96, Bombs Used: 53, Moves Performed: 11526, New Users: 24
 
 
2 hours later…
1:56 AM
Not much coding today, work been kinda busy. But last night I learned about delegates and events, and implemented a simple event in my Intcode computer to raise when the computer reaches a Halt (99) code :)
 
2:15 AM
2nd place in K1 speedway for work. Happy with my result.
 
2:39 AM
@IvenBach K1 speedway?
 
2:52 AM
@IvenBach ohhhhh karts, fun!
 
 
1 hour later…
4:07 AM
OMG I DID IT
Day 7 Part 2 threw me for a loop (pun intended)
I really wish using -1 index reference on arrays worked in C#
 
4:21 AM
[Phrancis/AdventOfCode2019] Phrancis pushed commit a116d3e8 to master: Solve Day 7 Part 2
 
 
3 hours later…
7:21 AM
[Phrancis/AdventOfCode2019] Phrancis pushed commit 77bc3b12 to master: Solve Day 8 Part 1
 
@Duga I may be wasting my time writing code docs for this project
I just learned about yield return though and I find it pretty sweet :D
 
 
3 hours later…
10:11 AM
[MDoerner/AdventOfCode2019] MDoerner pushed commit 199ec61b to next: Day 13 in Python
 
10:38 AM
Oh I love today's challenge!
It's Advent of Code - Factorio version!
 
11:21 AM
This message was posted thanks to the SQS trigger
I wonder how long time it takes for me to react to the SQS queue...
 
Not too bad actually ^^
@Phrancis That is very powerful indeed.
 
[Zomis/Duga] Zomis pushed commit f9c4fb19 to aws: Allow Duga Lambda to read messages from SQS Trigger
[Zomis/Duga/aws] build 3 Build success.
[Zomis/Duga] build for commit f9c4fb19 on aws: This commit looks good
 
 
1 hour later…
12:46 PM
hey
 
 
2 hours later…
2:40 PM
Hello from AWS!
Hello again from Kotlin
Interesting
Hello from Kotlin
 
Hello @Duga
 
3:03 PM
Hello @skiwi
Hello @Simon
Hello @Phrancis
 
3:13 PM
> duga-core has been an independent part of this project for a while now.
> Some events added which seem to be enough for now.
> This is not needed. Closing this.
> Fixed since I don't know when
> I think this is fixed. At least I'm not noticing any big issues with it at the moment.
> Has this been a big problem for the last four years?
 
3:51 PM
Wow that's some spam
 
@skiwi @Duga doesn't spam, she informs
 
She has a hat now
 
 
2 hours later…
5:32 PM
> I've regularly received pings, if that's what you're asking. It's just a quality of life thing (for me personally). AFAIK the other contributors to Rubberduck have different GH and SE usernames, so it doesn't apply to them...
 
5:51 PM
Hey have a nice weekend :)
 
 
2 hours later…
7:58 PM
[Zomis/AdventOfCode] Zomis pushed commit 95e647db to master: Add 2019 Day 14 Part 1
[Zomis/AdventOfCode] Zomis pushed commit 441bc243 to master: Add 2019 Day 14 Part 2
 
Today's Advent of Code is probably my favorite Advent of Code challenge of all-time.
 
Monking!
 
Konming @Phrancis
 
HATS
 
8:25 PM
[Zomis/Duga] Zomis pushed commit ccf702fe to aws: Separate SQS posting and retrieving
[Zomis/Duga] Zomis pushed commit db717d6f to aws: Prepare for migration of old Duga features to AWS
[Zomis/Duga/aws] build 4 Build failed.
[Zomis/Duga] build for commit db717d6f on aws: This commit cannot be built
BUILD FAILURE!
[Zomis/Duga] DugaBot pushed commit 6707d444 to aws: Make gradlew executable
[Zomis/Duga/aws] build 5 Build success.
[Zomis/Duga] build for commit 6707d444 on aws: This commit looks good
[MDoerner/AdventOfCode2019] MDoerner pushed commit 570ca462 to next: Day 14 in Python
 
@Phrancis Look into C# 8 indexes and ranges.
The syntax is [^1]
So you can take a range of items as [2..4] or an index [2] or [^2], etc.
Ranges work based on indexes, so you can do ranges based on the end too.
Only works in Core. Framework didn't add the necessary types.
 
8:53 PM
Oh that's cool :D
Wonder what .NET version I'm using
My project is set to target .NET Framework 4.6.1 ...
 
[Zomis/Duga] Zomis pushed commit 66fd8355 to aws: Jenkinsfile: Don't print console output of aws lambda command
[Zomis/Duga/aws] build 6 Build success.
[Zomis/Duga] build for commit 66fd8355 on aws: This commit looks good
 
Anyone have experience reversing hmac-sha256
I know people all over the internet are saying "its not possible, you can't 'decrypt' a hash"
 
@FreezePhoenix Couldn't say it better myself.
 
They do say a reverse map is possible (Map hashes back to their inputs) but that falls apart when the key becomes variable too.
 
@FreezePhoenix Yeah that's kind of the idea of a hash. You can brute force them with a massive list of common passwords (that's how hackers usually do it)
 
9:06 PM
If you really want to, go ahead and generate something random and take the sha256 of that until you end up with something that you had before.
@Phrancis If it's salted though, then it's extra tricky.
 
So the scenario i have is this:
Game server sends you a hmac-sha256 hash. This is a hash of a number, a letter, and a random string, all concatenated
 
@SimonForsberg Oh yeah. Love me some salted passwords :D
 
It then, later, sends you the key.
 
@FreezePhoenix And you want to figure out what one of the three parts is? Yeah good luck.
 
Well, one of the two parts is constant lol
 
9:08 PM
You still have a problem though
I strongly recommend spending your time on something else.
 
That^
 
Okay.
How about... finding the right number, where if you weight the value of the outcomes the following:
You pick a number between 0 and 100. You give another number, which is a token count. The game rolls a number, and if the number is greater than the first number you chose, it gives you the token number you inputted, times 1/(1-firstNumber)
Note, you lost the token count when you gave it them.
If it is less than the first number you chose, you get nothing. Except a message saying you lost.
it's actually times 100/(100-firstNumber)
sorry, mixed that up
 
I was going to say playing a game like that with fractional/floating numbers might get weird
 
It seems to me that if you choose low numbers, you have a net loss, while if you choose higher numbers, you get a net win
 
Seems like this would make for very short games
 
9:17 PM
So for instance, if you chose an initial number of 50, you have a multiplier of 2, but you lose 1 in 2, so statistically you would come out even.
@Phrancis Why's that?
It's a game within a game, it's the gambling machine lol, and i'm trying to take advantage of it now that i have reasonable amounts of gold in-game to actually try brute-forcing some profit
 
@FreezePhoenix Well, say the computer rolls lower than you chose, then you lose the token count, and then what? do you put in a new token count?
 
Yes
Or you can choose to quit and do something else
 
@FreezePhoenix And, that costs more gold I imagine?
 
I said token count, it's analagous to gold
 
oh
 
9:20 PM
If you put in 10 "tokens", that's 10 gold
Regardless of how many attempts, the cost is still the number of tokens per attempt, times the number of attempts
Ideally you won't be messing with low numbers like 10 tokens, because you could go get that faster by farming monsters
There is also a house edge of 0.5%
 
Assuming the computer's random distribution is pretty even, seems like low numbers would give you more frequent victories but smaller rewards, so less risk if you don't have that much gold you want to gamble away
 
@FreezePhoenix i.e. in 0.5% of the cases, you get nothing no matter what?
 
@SimonForsberg No, whenever you win, 0.5% of the net is kept (say, you bet 100K on 75 up (hey i did that i have gold ok), then your multiplier would be 4x (100 / 25 = 4))
If you win, you would have spent 100K, and gained 400K, netting 300K
0.5% of that gold stays on the house, or 1.5K gold
In theory you can bet 00.00 down, but A) that's unlikely B) the house only has so much gold
I already know that the double or nothing method doesn't work, because you will eventually hit that once chance where you lose all of it.
And in each win, you still only would net the base amount
Wait, this is interesting
The sign that shows the maximum possible win is updated in real time
And it seems to go down, whenever I bet. Although, I am betting 25 up.
I bet 25 down, it drops a ton (accounting for the potential gain, I imagine) and then when I lost, it rose back up
(25 down is same as 75 up)
 
10:19 PM
@FreezePhoenix When the game is rolling a number, can it roll number zero?
And what happens if the games rolls the same number as you chose? You lose the bet?
 

« first day (1960 days earlier)      last day (1606 days later) »