« first day (1209 days earlier)      last day (2940 days later) » 

12:37 AM
In case anyone here has experience with MySQL + Entity Framework 6 and wants some SO rep: stackoverflow.com/questions/35304899/…
 
 
7 hours later…
7:15 AM
@Lynn made a gif
 
 
3 hours later…
10:42 AM
hey
 
11:03 AM
Form validation for WPF,nuget and source
 
11:33 AM
@franssu, I need your help
 
shoot :)
 
 
2 hours later…
1:29 PM
no shot fired
how about them docs
 
in a private room :p
 
2:01 PM
this is pretty nice if you bind a lot in code
d.Bind(ValidationErrorsProperty)
 .OneWayTo(newTarget, Validation.ErrorsProperty);
 
@JohanLarsson Hey, look at that!
Beautiful!
 
ScreenToGif, nice tool for creating gifs from screen recordings.
 
2:54 PM
anyone familiar with shell scripting ?
 
yo
 
hey
 
not really @franssu, but i can try to help :)
 
I'm trying to make a script to replace a string by another in all files and directories names
I'm having trouble with quotes ticks escaping etc
 
3:18 PM
updated gist
why am I hurting myself like that ? :(
 
how many files are we talking @franssu? (pinging for good measure before you end up too deep in script world :) )
 
eheh
3 or 4
 
jeeez
use notepad++
i literally just used it to replace one multi-line html snippet with another in 40 different files
 
file names not file content ;)
 
oh!
sorry
umm use Pfrank
its regex powered mass rename tool.. you can pretty much do anything you want with it
 
3:27 PM
shall I renounce to shellscripting for the rest of my life then :(
 
(including shoving files into deeper folders)
 
nice :)
 
mm i wish i could find a sample script i did with it for my office.. it basically took 100k files and categorized them using filename conventions into folders by year/month/day/extension
it still runs somewhere in background.. it's been so successful that i've no idea where it is because i've never been called to deal with it again
(call recording software dumps everything in one place and then we have to postprocess it into something of a manageable structure)
 
posted on February 10, 2016 by ericlippert

You are behind the white house. Paths lead into the forest to the east and northeast. In one corner of the house is a small window which is slightly ajar. > examine the window The window is slightly ajar, but … Continue reading →

 
3:46 PM
how do you do, when you have to rename a class, all folders and files in the solution ?
a group of classes which all include a name you wish to change
 
well.. deal wtih refactoring first
then git will moan about deleted files so I'd take all the new renamed files and save them as backups
i'd then ask git to revert everything for deleted files and run git mv (to tell git these are renames)
then i'd overwrite the old renamed files with backups I created and finally everything works.. normally :)
 
4:02 PM
@franssu do you have resharper?
 
yes
 
Not sure what you want to to but what about:
1) Commit all changes before, to have a clean revert.
2) Rename away
maybe do a search in the sln for the text you want to change, that way you will have a list of where the things are
I'm thinking about getting a reddit account to spam libs :)
Would be so nice to have bugs reported fast
And of course nice if someone finds something useful
 
what should my next cell phone be? had my note 3 for like... 3 years now?
 
galaxy A5
 
not an iphone
 
4:11 PM
2016
 
I think a nokia with winphone could be nice
but never used one
 
note 4*
i'm thinking note 5
the 4 has been flawless since i bought it. 3/20 of the screen has cracked/peeled off and it still works!
 
My old nokia dumbphone had nine days of battery life til the end
 
haha classic!
was it a flip phone or a slide phone? or even older than that?
 
Spamming libraries reminds me..
i have to make a tiny makeshift tool to compensate for a legacy system functionality that's broken (and we have no current source code to it thanks to the developer who wrote it originally).. I can be up for a bit of experimenting :)
 
4:23 PM
VS froze trying to save file after i took comments out of XAML
 
@NETscape looked a bit like this
 
 
1 hour later…
5:36 PM
those were the greatest phone evaaa
though i had one with luminescent keys, so the keypad glowed white
i think i still have that in my kitchen
 
I find myself sad... I searched F# WPF and it's not taking me to anywhere reed has any code :(
what's wrong with interwebs!
well i have spotted github fsxaml at least.. i guess it's because he doesn't use his own name for repo but rather fsprojects as the owner
 
yaaaa
yesterday i attempted to remote into my workstation from my surface pro 2 using remote desktop.... that was a failure
somehow outlook decided to open 41 instances.
logged into workstation and all the windows were on secondary monitor. all icons on desktop were realigned. probably was the reason VS froze
 
 
1 hour later…
6:54 PM
is OnInitialized called in designtime?
 
7:09 PM
@JohanLarsson I'd expect so
designer will construct and call everything that your startup exe will normally call. You need to make exceptions for designer by reading designtimemode
System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject()); <- something of that sort will let you make exceptions.. though I think in WPF 4.5 they made it easier to detect design mode by reading a property but it escapes me right now
 
@LynnCrumbling thanks
@Maverik ok, I have code in OnInitialized that is not called in designtime, gonna dig around
 
odd
I normally use Initialized event directly rather than OnInitialized and similar
(i actually never hook on initialize but loaded instead.. so this may be a bit off)
 
this is inside a control
 
7:26 PM
yea i figured you'd have a good reason for Initialize
 
can be a dumb reason :)
still annoying when the designer behaves differently from runtime
 
I've come to realise.. your dumbs aren't dumbs.. you're just in the wrong time
you need to give us a decade or two to catch up to your level (assuming you stay stagnant for that long.. which of course is as unlikely as me going out with a chick!)
 
haha
What about this as a default style for a propertygrid?
Not sure if the old value and errors like that is just annoying.
 
7:47 PM
i like it.. old value should probably have a flag to turn it off
but i like the way error pops up
 
@Maverik You can control everything via styles.
Perhaps I should not include old value in the default style
 
using style to remove OldValue seems overkill imho
i'd rather do it via DP on control
 
ok, I'll think about it
 
    Case Is = "System.Windows.Forms.ComboBox"
                                If _
                                    tpWorkstations.Controls(iField).Name <> "wedit_Manufacturer" And
                                    tpWorkstations.Controls(iField).Name <> "wedit_Username" Then
                                    updPCInfo.Parameters(
                                        "@" &
                                        Microsoft.VisualBasic.Right(tpWorkstations.Controls(iField).Name,
                                                                    Len(tpWorkstations.Controls(iField).N
one of many blocks of Case in a 11k loc file (and there are 100s of these files)... I want to slit my wrists open!
 
7:53 PM
in this giant mess i have one sql error: DateTime overflow..
but i have no idea where the eff is it happening
 
no way to have it break on exceptions?
 
Exception breaks outside the loop
and this is so ancient ado code that I'm having trouble following it
updPCInfo.Parameters -- that thing gets set in dozens of cases in a for loop
one of those is failing.. but unless i go record by record and then field by field.. i feel there's no easy way
fun fact: this is just one of the many places that are broken
all i did was a full build of the code.. and i'm plagued by this
only logical explanation is.. the last retard modified the designer files in place and patched them somehow to not throw
 
turdfield
 
when i did full rebuild designer files were regenerated and..
 
is the diff huge?
 
7:57 PM
yup
10s of MB
Designer files moved from VS 2005 to VS 2013
this code is at least 11 years old from what i can tell
and this particular mess is related to dataset xsd stuff getting regenerated
and i've never used those
I've been attempting to sift through this mess for almost 2 years nows .. zero progress
(no i dont actively work on this.. this is a time filler)
oh this code has gems like Goto [Continue]
because.. you know.. commenting code out to jump over it is for losers
 
VS was choking on another one that took me a few minutes to realise
 
snoop is choking on my property grid for some reason
 
tblUsername.Email = From where From is the name of function parameter of type string..
what would you reckon is wrong with this :)
also: snoops fault clearly!
 
restarted it, looks like it works now, needs some investigation though
 
8:07 PM
so wanna take a guess at whats wrong with the above code?
Email = From ? (they're both string types)
 
no idea
 
From is a keyword now.. LINQ :)
of course you didn't have the error to help you out.. "Unexpected token encountered"
 
but good question to puzzle newbies in interviews
 
From is a keyword now?
what is this, VB?
 
8:14 PM
yea but from is a keyword in c# too i think?
you say from; .. it'd expect you to complete the linq query
(From being keyword is my theory.. because renaming it to FromAddress made the error go away.. and linq is the only thing that makes sense)
 
right, but doesn't it have to be on a collection?
 
from x in ...
it'll expect something after from
 
ahh, that's why i don't use that syntax :)
 
there's no from in Method chain syntax
yea i switched over to method chains too
its so much easier once you get your head wrapped around it
 
From =/= from though
 
8:17 PM
From == from in VB
and I'm in VB :(
 
oh well that explains it lol
 
11 year old VB code
possibly more..
i believe this started its life in vb6
 
doesn't beat my 16y/o code :)
 
but then was "converted" to vb.net
 
not that thats a good thing (having to maintain code that old)
 
8:18 PM
it's default way of running is the gem "On Error Resume Next"
the UI spits out tens of exceptions on every refresh
instead of writing correct code, it just ignores it
to VBs credit, it shows just how resilient it was / is
I'm not sure whats worse.. php or vb
right now I'm inclined to go with vb6 coders
that just got promoted to .net
 
aye
question
when someone "Runs" a motor, a Run is created, and during the duration of the event, stats should be collected for the event, basically finding the peak and keep track of some averages. Should I be updating the Run through properties/methods, or should i collect all the stats until the event is over, then create the Run with said stats?
 
I'd say that depends on your tolerance to dataloss
this is a tcp/udp kinda question imho
both can work.. question is.. does it matter if you lose the run during post processing?
 
if the data link is lost, then the run is considered valid
or it is then "ended"
 
i'd do it as it comes then
 
not really a tcp/udp thing. more so a design concern... i suppose.
 
8:28 PM
no i was drawing an analogy (that I obviously failed at)
sounds like a running average sort of situation suits you .. will that be close to what you're trying to do?
btw, how long is a run?
 
CurrentRun.SumA += a;
CurrentRun.SumB += b;
CurrentRun.SumC += c;
or
avgA += sumA / count;
avgB += sumB / count;
avgC += sumC / count;
var run = new Run(avgA, avgB, avgC);
 
i'd normally go with first approach
 
inb4 overlapping/checked
 
update as it comes and let ui know
i honestly dont see much difference.. they're both valid approaches i think
could just be an 8:30pm thing
so in any case i'm gonna get up
 
UI has the "live" values, background collects the stats and would be used while "offline"
well if I do it the second approach, I can make Run immutable, right?
 
8:32 PM
i'd still stick with current stuff
immutable doesn't offer much in this particular situation i think?
but if offline is more like a cache mode.. using averages then yea keep it updated with as the data comes makes more sense
 
not really, just thought since when the run is over it'll technically never change... so make it immutable
ight. thanks Mav
go home!
 
ok gone :) good luck :)
enough vb for this month!
 

« first day (1209 days earlier)      last day (2940 days later) »