« first day (3289 days earlier)      last day (1642 days later) » 

mr5
3:38 AM
do you guys observe any pattern why the label isn't centering with slider thumb?
current formula: label.x = slider.value * slider.width
I have no access to the thumb's absolute position atm
 
 
1 hour later…
5:08 AM
Goooood moorniiiiiing CeeeeeShaaarp!
@mr5 Since you probabl want i to be directly on top of the slider thumb, you wan the middle, so after value*width you have to subtract half of the thumb's width, as you'll be on the end of the thumb otherwise
Also it's very early for me, I think I borked something in that explanation.
So you should maybe do this the old fashioned way with a real equation instead of listening to my early morning stuff
label.x + label.width == slider.value * slider.width
Right?
Now just go calculate x
 
mr5
label.x + label.width == slider.value * slider.width is false
 
Right, it should be + label.width/2
So I guess label.x = slider.value*slider.width - label.width/2
 
mr5
subtracting the thumb's width after seems not to be working
nope. I've tried it earlier
multiplying the slider.value to something like .95 seems to normalize the behavior but I can still see wrong detail
 
Let's say the label is 20 wide, slider is 100 long.
slide.value * slider.width may be 60
label is 20 wide, so should be 60+/-10, meaning its x should be 50
60 - 20/2 = 50
value 80:
0.8*100 -10 = 70
Label should be shown from values 70 to 90, with 80 being in the middle
My IDE and stuff is online, I'm done with maths for now
Maybe your label has by any chance 5% width of the slider?
 
mr5
5:27 AM
Hmm maybe it has something to do with the layout hierarchy
right now it's:
<Grid>
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="*" />
		<ColumnDefinition Width="Auto" />
	</Grid.ColumnDefinitions>
	<Label
		Grid.ColumnSpan="2"
		x:Name="CurrentPosition"  />
	<Slider
		Grid.Column="0"
		x:Name="Slider" />
	<Label
		Grid.Column="1"
		x:Name="Duration" />
</Grid>
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
@Squirrelkiller HO?
 
yup
Since we get a wall, most of us do home office on fridays now for a few weeks
 
An even better wall, since ours is actually being built!
 
mr5
5:43 AM
@Squirrelkiller so .95 seems to be a correct multiplier for slider.value. I just need to know how can I derive it
 
What's label.width/slider.width?
(or slider.width/label.width)
 
mr5
label.width = 100
slider.width = 645.666666667
 
You're telling me the slider is only 6 times the label?
 
mr5
!!> dsads
I forgot Cap isn't working anymore. And Wietbot doesn't now JS
@Squirrelkiller yep
the label I'm referring is that above of the slider
welp. I've changed the label's width after I've uploaded that gif
 
I mean I'm no expert in counting but...
 
mr5
5:53 AM
I have updated the code now. Before its width is set to auto
maybe it was somewhere 70
final code:
> View.TranslationX = (slider.Value * .95 * slider.Width) - 24;
and I'm yet to know how to derive those magic numbers
View is the label
 
Now try it on a screen with a different size and dpi
Magic numbers tend to work on very specific screens only
 
Morning!
 
6:10 AM
o/
 
mr5
\o
@Squirrelkiller update. it's working for both platforms with different screen resolution
I mean Android and iOS
> // changed from 24 to 25
> View.TranslationX = (slider.Value * .95 * slider.Width) - 25;
 
Nice
Portrait and landscape too, if applicable?
 
mr5
we only support landscape
I'm going to try it also for iPad
 
What is recommended when you start using .Net Core and Entity Framework? Code first or DB First?
 
Morning
it's Finally Fun Friday Upon Us, A.K.A. FFFUU
 
mr5
6:26 AM
CCCKK
 
Buenos dias
 
o/
Man, I can't wait for the Razer Viper Ultimate to be released
and then when it's 130€ or more I'll just cry myself to sleep
and buy the one with a cord
 
mr5
holycrap. I only bought my mouse for €15.77
I can buy a new phone with that price
 
6:44 AM
cheap mice are worthless
just like anything else, the price increase comes with a reason
 
they're good for feeding pythons
 
But the quality increase per price is different sometimes
I still miss my G5. It was like 40€, but great quality.
 
mr5
how do you observe a quality mouse?
they're all the same to me
like, if you bought a €130, your chance of clicking the correct pixel increases?
 
Well, that too
A mouse can feel...not nicely built, like it might break if I accidentally drop my phone on it
The cord can be great or cheap - the G5 had a braided cord, after like 5 years there was a bit of damage on the outermost layer of braid but nothing else.
 
mr5
33 mins ago, by mr5
> // changed from 24 to 25
> View.TranslationX = (slider.Value * .95 * slider.Width) - 25;
 
6:54 AM
You can have a mouse wheel that breaks earlier or later - I got a Microsoft Surface Mouse from my dad 2 years ago, and a week ago during normal use the mouse wheel jsut decided to not work anymore
 
mr5
update. I've changed it to .96 and 24 and it still work on iPad
 
lol
Magic numbers galore
 
mr5
I need a Math guru here to know what the crap is happening
 
The mouse wheel can feel better or worse when scrolling - more/less precise, harder/softer scroll points, harder/easier to turn. I still have a 5 year old mouse as a backup in my backpack - with one of those big flashdrive looking transceivers. It's not great, but it is sturdy, quite precise, has a "back"-button on the side, and the mouse wheel is good enough.
That thing held longer than then damn surface mouse.
 
@mr5 Each piece has a value. Standard microswitches vs Omron, plastic cable vs braided vs featherweight vs wireless, laser vs generic optical vs Pixart vs custom designs (Owl eye, hero, etc.), mouse weight, durability, software support
15€ means cheap everything, whereas 50€ is a great quality/price ratio
80€ it's about the first push with small diminishing returns
and about 150 is the hard cap where you start getting very little benefit, if at all
there are mice around the 300€ mark which are mostly that expensive because they require one specific brand of wireless mat
@mr5 this looks like the average Dark Souls patch note
 
7:06 AM
80€+ you mostly get more buttons
I can't believe the G502 has been this cheap, I freaking love this mouse
Logitech did not pay me to say this
 
Currently the Viper has 2 side buttons, the price comes from the ultralight design without holes, the new optical switches Razer designed, and the brand mostly
the wireless version will be more expensive
the G502 is a good mouse for anything that doesn't require perfect accuracy like mobas or RTS
or MMO
 
g502 has great accuracy dude
 
But for FPS everything over 90-100g is useless
 
(Also sniper button more temp more precision)
I always liked heavier mice for some reason
Had the razer deathadder and it just...didnt feel like there was enough I was holding
 
I felt it was too long and thing, like a bratwurst
 
mr5
7:13 AM
@HéctorÁlvarez I know. I can't figure out which variable I missed so I resort to magic numbers
 
7:26 AM
It seems "Bratwurst" is just the right size for my hand
 
mr5
update
@Squirrelkiller
 
Uh oh you broke the 0.00.00
 
mr5
is the first group suppose to be single zero only?
and why dot?
 
g502 is perfect for FPS
 
@Wietbot funfriday
 
mr5
7:40 AM
How do I interpolate between two numbers such that:
 
mr5
x: (y * 95 to 96)
y = 0 -> 95
y = 0.5 -> 95.5
y = 1 -> 96
 
@ntohl according to my research it's the exact opposite.
@Wietbot evil bastard
 
question did not compile
 
mr5
@Wietbot Do you have plans to let us interact with Wietbot?
 
7:42 AM
research moa
 
mr5
x: (y * .95 to .96)
y = 0 -> .95
y = 0.5 -> .955
y = 1 -> .96
welp, I think I just need to add the x value
 
12
A: C# Linear Interpolation

Mike PerrenoudTry this method for me: static public double linear(double x, double x0, double x1, double y0, double y1) { if ((x1 - x0) == 0) { return (y0 + y1) / 2; } return y0 + (x - x0) * (y1 - y0) / (x1 - x0); } Effectively you should be able to take your arrays and use it like t...

 
mr5
> (x * (.95 + x / 100) * z) - 24
^ that one also works
 
@ntohl I also thought heavier mice were better, but apparently having lighter mice helps with accuracy on fast movements because the inertia of the mouse makes twitch shots inaccurate
That's why I want to try 2 of them side by side. Razer Viper (ultralight) vs Roccat Kone Aimo (heavy)
 
@Wietlol you wicker person!
What is wietbot doing here?
we want cap back!
RIOOOOOT
୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益
 
7:53 AM
Wietbot will be a valid replacement for cap
 
mr5
 
@Wietlol I second this, because it's not programmed in JackShit
 
also, I am open for ideas on my last commit on the Wietbot repo
todo figure out how we want commands to be registered
	idea is to set up a service object that you can register a command listener to
	this will listen to message posted and message edited
	it will only accept messages starting with a certain prefix (!! for caprica, \ for oakbot) perhaps "@Wietbot" might be a good option
	the following word ([a-zA-Z0-9_-]+) would then be the keyword to find out which listener to execute
	perhaps even us a BkTree to store the command mapping
	bot-features should be able to specify multiple keywords
aka, ^
 
@Wietlol Nothing can replace cap!
@Wietlol Also if anything the command should be `wiet,``
 
mr5
@Wietlol what if we want to evaluate JS? You know, JS is more popular compared to Groovy
 
7:59 AM
wiet, funfriday
like that?
 
mr5
wiwiet
 
@mr5 but grooby is more powerful
 
mr5
like the sound produced in catcall
 
but yes, you can make a JsEval bot-feature
 
mr5
or C# if we just want some fiddling
 
8:01 AM
@Wietlol yes
wiet, welcom-c# newPerson
wiet, tell newPerson FORMAT
 
@Wietbot eval "No SiT"
 
@Wietlol No SiT
 
@Wietbot will you blend?
 
hmm, perhaps I should remove the @Sender thing
 
@Wiet would ping both
 
8:03 AM
@Wietbot hello
your bot is rekt
 
no, my bot is Wiet
 
@Wietbot Wietlol @Wietbot eval "How to Hack you"
 
nice try
you cant SiT
 
EVERYTHING IS HACKAABLE
 
no
 
8:04 AM
smashes hammer into screen
There hacked!
 
Idiot you need an axe to hack it properly
 
@Squirrelintraining currently, you need to be me in order to make use of the GroovyEval feature
 
That's not a hack job that's a hatchet job
 
mr5
No SiT sherlock
 
(same as the UpdateAndRestart feature)
 
8:06 AM
@HéctorÁlvarez no, axe is for hacking women
 
steps back slowly
 
I won't ask
 
mr5
@Wietlol how about we Inspect Element and change our id here to yours?
 
I wonder if we can overflow wietbot by spamming @Wietbot
Like a ddos
only in a c#-chat kind of way
 
mr5
8:07 AM
does it listen on C# chat only?
 
until I made a user database with groups and roles and policies and permissions, it will remain Wietlol only
@mr5 you can make it join any room you like
@mr5 I assume SO chat isnt that horribly programmed
 
Anybody want to change their name to Wietlol and see if the bot reacts to that?
 
@Squirrelintraining look at the source code, it is done based on user id
 
Darnit >,<
 
so, 2764866
 
8:09 AM
Me no wana read code
 
mr5
@Wietlol yeah this chat room is made by a genius. It seems like there's no maintenance have been issued since this was launched
 
Me just wana fire and fofrget
 
@mr5 hehe
there is a http client lib I keep using for kotlin which works really nice
its latest version is... 0.1.0
 
I want to know what they do with archived chat texts
 
its initial version is 0.1.0
 
8:10 AM
could you reasonably hold all chat since the beginning without worrying about space issues?
 
mr5
you forgot the revisions/build count
 
@Neil sure
 
honestly I have no idea. It could be that all of chat thus far could fit inside a gigabyte
 
simply store in AWS Glacier, you wont make an api to read it (for example transcript) but it will all be stored
@Neil I collected a gigabyte of ws messages in 6 hours in 9 chat rooms
that includes user join, user leave, message starred, message deleted, etc
so, a lot more than what the transcript stores
 
mr5
@Neil they could hash each message to shorten the size even more
 
8:12 AM
but I think that gigabyte is pretty easy to reach
 
well that requires a ridiculous amount of storage space then
 
it was 2.5GB of logs
of which 60% was additional information from the logs and 40% was ws message
 
so again, do you think they're saving all the text or that after some time they drop it?
 
iDunno
:1 perhaps...
 
mr5
@Wietlol why did you need to collect the messages?
 
8:14 AM
to find out what the events look like and which exist
 
one year of text at that rate would be approximately 1460 GB
 
mr5
what is your internet speed?
 
I see the most important command is already implemented
 
Still feasible of course, but you'd have to use a RAID or something
 
in Chat feedback, Oct 8 '10 at 9:37, by Feeds
All feedback welcome!
is still there
chat.stackoverflow.com/transcript/message/1
 
8:16 AM
So in case anybody wants to make building a bot in C# easier, you could try to add some docs here: github.com/SOBotics/SharpExchange
 
mr5
who wrote the SO chat?
 
Like, xml summaries about wtf the APIs do
Obviously not Jon Skeet, or we'd have flawless multiline-formatting
If Jon Skeet built a chat, the formatting would be automatically added based on how the user types.
 
@Squirrelkiller I highly doubt that is the entire MessageCreated event
 
I asked the lab support team why my exercise wasn't working, provided a machine that was unreachable and they came back with "we can ping OK"
 
mr5
8:21 AM
@Wietlol hey, why not the System.Text.Json?
 
Bitch I'm telling you that your prebuilt lab isn't starting and I don't know why
 
> val timeStamp: Int,
val content: String,
val id: Int,
val userId: Int,
val userName: String,
val roomId: Int,
val roomName: String,
val messageId: Int,
val parentId: Int?,
val showParent: Boolean?
 
Did SO chat support <a> in the beginning?
in Chat feedback, Oct 8 '10 at 9:37, by Feeds
Feedback can also be posted on <a href="http://meta.stackoverflow.com/">meta</a> using the <code>Stack Overflow Chat</code> tag
 
mr5
are those two similar?
 
@mr5 that is not mine
@mr5 my interwebz speed?
or my bot's interwebs speed?
 
mr5
8:23 AM
for this:
12 mins ago, by Wietlol
@Neil I collected a gigabyte of ws messages in 6 hours in 9 chat rooms
 
ah
for that, you would need a 1.000.000.000 / 6 / 60 / 60 = 46,3 KB/s
 
mr5
which continent?
 
GM
 
@mr5 uhm... iDunno tbh
I think it is in ireland
 
@Squirrelkiller congratz :D ArcticEcho Merge pull request #15 from Regenhardt/feature/fix-crash
 
8:35 AM
@Wietbot eval java.time.ZoneOffset.systemDefault().getRules().getOffset(java.time.Instant.now())
 
@Wietlol Z
 
Z
duck you
 
@Wietbot eval TimeZone.getDefault().displayName
 
@Wietlol Coordinated Universal Time
 
i give up
 
mr5
@Wietlol has Ireland become a continent now
@Squirrelintraining should be under /hotfix/fix-crash
 
8:50 AM
@Squirrelintraining And I'm planning on more! Actually that one was my second PR, the first one upgraded to netstandard21.
Mostly because I'm tryint got use the library and it's really annoying to not have any documentation
 
trying
 
oic
Welp who ever wrote it should add docs
 
He doesn't really have time
So I'll do it
Eventually
 
mr5
hey
you two working on the same company?
 
8:56 AM
Eventually^^
 
hi
nope
 
Write docs during code time best
 
We met in job school
 
mr5
why are you working on te same job project?
oh
are you building skynet?
 
I mean, most of the people in this room work the same job
 
8:58 AM
@mr5 We arn't
Killerino is the cool dude that builds stuff
Me is the drunk dude under a bridge playing dotka
 
if you call programming a single job
you could easily give 10 jobs that could be generalized by calling it "programming"
 
Not Skynet yet, it starts as Sandy
@Neil of course. Since I'm full stack, I could put Software Developer, Software Engineer, Software Architect (we're also building completely new stuff sometimes!), Web Developer all in my Résumé. Probably even more I don't think about at the moment.
Also @Squirrelintraining At least you made a working version of our teambuilder, I'm switching projects too often XD
Also my bot doesnt want to login yet and I dont know why
 
It's a limitation of laymen, really. They don't understand the distinctions so we're all "programmers"
 
@Squirrelkiller Know that feel :D
 
We have an amazing team in charge of the labs here, they are a solid 5/7
apparently if there's not enough disk space, the best course of action as per protocol is to blow up the whole datacenter cluster and build it from scratch
Today it has become the actual only course of action, because they refuse to find out why my machine can't ping another VM
 
mr5
9:10 AM
@Squirrelkiller bring Sandy here in C#
so Wietbot and Sandy would compete whose the best of the best
bot wars
 
@Squirrelkiller Copyright infringement!
 
mr5
@Wietlol where can I find the SO chat API?
 
API? Hah.
 
mr5
31
Q: Will chat be accessible through the API?

MicTechWill chat be accessible through the Stack Overflow/Stack Exchange API?

 
@mr5 This is the latest stable version but you can try the nightly builds from the dropdown below.
They just added table support!
 
9:21 AM
@mr5 you cant
that is why I needed that 1GB messages
which I still need to analyze
 
do they support link coloring?
 
@Wietlol Yes you can, check my latest stable release up there
 
no u
I recognize kfV links immediately
 
mr5
@HéctorÁlvarez you got me there
@Wietlol how do you listen to chat?
 
@mr5 hue hue hue
 
9:29 AM
@mr5 look at the source code
mostly com.stackexchange.chat package
 
@mr5 I'm gonna build an explicit login method for the library first, then build upon that, as I figure out why Sandy currently can't log in.
 
@Squirrelintraining Fair use!
 
it replicates how a browser does it
and sets up a web socket connection
that web socket then listens to the onMessage and deserializes it
 
@Squirrelkiller reeeeeeeeeeee
 
9:35 AM
after that, my event library takes over
which stuff can register to
at that point, I still need to write some command event in between to do stuff nicer
 
I nicified your todo.txt
 
nicified?
 
So you're the Márton Garai I get mails from the last few minutes!
 
mr5
6 hours ago, by mr5
user image
 
mr5
9:39 AM
6 hours ago, by mr5
do you guys observe any pattern why the label isn't centering with slider thumb?
current formula: label.x = slider.value * slider.width
@Wietlol in case you have any idea
 
Activision says they won't sell loot boxes
 
@Squirrelkiller I've been busted
 
@mr5 did you forget to divide by 2?
 
@Wietlol copy pasted todo.txt into separate issues on github
 
@mr5 with includes your time on the right
you shouldnt set position based on values
you should attach the node as a child of the slider... orb... ball... sphere... thingy
 
mr5
9:42 AM
it's actually a translation X
 
@ntohl ah
 
mr5
@HéctorÁlvarez nah that doesn't work
@Wietlol slider is not a layout
 
stupid ui framework
 
mr5
it can't have a children cuz it's control
 
-_-
> stupid ui framework
 
mr5
9:44 AM
it can't have a children cuz it's control
do you see any prob with my formula?
my code looks like that right now in order to fix that crap
 
I think you need to increase the value further to increase the correction factor
 
ofcourse, you use magic numbers
 
maybe if you set it to 3 it will correct more
 
mr5
like how many many many many?
 
or rather, Math.Pi.
 
mr5
9:47 AM
yeah I think that would work
also I'm gonna divide it by euler's constant for no apparent reason
 
No, that would make the line become a gaussian function
 
mr5
what else should I put in the formula?
 
The equivalent of 7 bananas converted to cats sideways.
 
mr5
so the label's opacity will blur at the max value of slider
 
Disclaimer: I don't know what I'm doing
 
9:50 AM
 
mr5
Source: dude, trust me
 
you need label.x = slider.value * slider.width
but slider.width should be slider.width not slider.parent.width
 
mr5
@Wietlol it's called a slider's thumb
 
mr5
@Wietlol yes it is the slider.width
 
9:56 AM
the top one is what you get with "slider.width"
the bottom one is what you need
assuming your slider.value is 0.0..1.0
 
mr5
you're seeing the full width of the slider. I don't do crap UI layout
 
you dont do crap ui layout, you use a crap ui framework
 
mr5
4 hours ago, by mr5
<Grid>
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="*" />
		<ColumnDefinition Width="Auto" />
	</Grid.ColumnDefinitions>
	<Label
		Grid.ColumnSpan="2"
		x:Name="CurrentPosition"  />
	<Slider
		Grid.Column="0"
		x:Name="Slider" />
	<Label
		Grid.Column="1"
		x:Name="Duration" />
</Grid>
here's the layout
 
ew
cant you get the slider.thumb.position.x ?
 

« first day (3289 days earlier)      last day (1642 days later) »