« first day (1508 days earlier)      last day (2641 days later) » 

7:39 AM
morning
 
 
2 hours later…
9:32 AM
morning
 
 
1 hour later…
10:48 AM
morning
 
10:59 AM
morning mav :D
 
11:26 AM
hey franssu :)
 
starting to like F#? :)
 
i've liked it for years now
but have never been able to make enough headway - the documentation has finally fleshed out enough that I feel I can try something now on my own
pestering people with my questions was a major turn off
 
it's nice for writing small scripts
nice alternative to linqpad
 
M J
Hi
 
well lol no i'll still be doing linqpad, i'll just switch the language to f#
 
11:36 AM
:)
 
hi MJ
 
because you use linqpad mainly to query DBs ?
 
M J
is there possible to do the drag and Drop button within the Wrap panel. ie, i have some count of buttons within the wrap paenl
is there possible to drag and drop?
 
is possible
 
M J
could you send me any sample code to be tested those feature please?
 
11:43 AM
no
use google
 
M J
okay
 
12:38 PM
Morning, all
 
Morning Alex
 
1:07 PM
Morning guys
 
1:31 PM
Morning
 
I am.. sick :(
I'll try not to cough in your particular bitstream direction.
 
1:47 PM
its ok i already have a cold too
 
I have IsSelected wired up btw...
works great...
Easier than I though, too.
 
:)
because its just another collection now I imagine?
 
I just wrote the wrapper class:
ItemEx { bool IsSelected; Item OriginalItem; }
And up, it's just a List<ItemEx> instead of List<Item>
 
yup thats what i had in mind too when i said ISelectable<Item> :)
 
2:26 PM
Sorry to hear so many friends are sick on here
Please cover your coughs when you're in this room ;)
 
😀 but i heard sharing is caring?
 
Yep, especially for families... they share a cold this time of the year
 
cos we care about families a lot 😀
 
distraction-of-the-day: sploid.gizmodo.com/…
 
0
Q: CellStyle based on RowStyle in WPF

Vlad SchnakovszkiI have a WPF DataGrid represented in XAML. I'm using a RowStyle for my grid's TableView but also need to set some properties for specific cells. I need those cells to have the properties of the row style and apply the extra properties from the cell style on top of those. What I would need is som...

 
2:43 PM
Maverik, do you use a sink to write serilog to SQL Server?
Is there one you'd recommend?
I'm currently writing the serilog to a file, and that's causing permission issues on the server.
 
grumble
Seems like you're missing some code on your question.... like Selector_OnSelectionChanged()Lynn Crumbling 5 mins ago
private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { } — Zeeshan194 2 mins ago
 
@Alex i don't but pretty sure there's an sql server sink already
 
3:01 PM
Serilog.Sinks.MSSqlServer
 
3:22 PM
yup thats the one i was thinking of
 
3:32 PM
Looks solid
Finally got the job to run on the server... it was local permissions. That service account didn't have privs to create the log file on that server
 
/nod
 
4:33 PM
Anyone got any good tips on combining an SQL Server with feature branches?
As far as I can tell, EntityFramework has a decent migration system that should be helpful.
 
Feature branches as in migrations?
 
Well, basically managing the changes to the database without too much manual work.
 
It's quite sophisticated. Haven't used it recently
It does require some manual work, though
 
Yeah, as far as I can tell it even supports rollbacks which is pretty cool. Get the full benefit of version control even for the database.
 
Yep, you version each migration
 
4:38 PM
What's the practice then with regards to the actual server? Create a database for each branch and then once you merge into master you switch to the master database?
 
I mean the actual instance of the database. So when you test you don't mess up the server if others try to access it. So like you'll have a masterDB, devDB, someFeatureDB, etc.
 
Ohhh
That I've not tried
 
I'm not sure if it's needed. It's the first time I'm going to try it.
I just imagine that you'd like to have a separate database to test with for each branch.
 
I think that link on migrations in teams will answer your question, as another person asks it here: stackoverflow.com/questions/24685958/…
 
4:43 PM
Looks like what I was looking for
 
 
On a different topic. Any suggestions on how I can allow clients to make their own PDF layouts for me to use to generate?
 
You mean like a pdf template?
 
Yeah, something I can stuff information in, but they can customize themselves.
 
4:46 PM
Only idea that has come to mind was to either create my own arbitrary layout language, which would be too much work, or perhaps find a HTML to PDF converter.
Isn't iTextSharp just for creating PDFs?
 
I'm not sure what you're looking to do. I was thinking that you were trying to programmatically create/edit them.
 
Yeah, that's what I want to do, however I want to let my clients create their own layouts in some way.
 
How complex can their designs get?
 
Not too complex I think. Positions, images, logos, etc.
Something like this.
 
4:52 PM
iTextSharp will take a lot of the grunt work out of that. You'd still need to do some custom programming to detect those objects
You'd have to validate the object to match some basic layout requirements
 
You could always create a designer of your own that tracks rectangles/points.. and write the pdf out based on the user's data
 
If it doesn't, throw an error. Else, use that and insert your own content into the PDF they give you
 
I wrote a designer that allows users to design their own report headers to work in our crystal reports.
I just dynamically draw the header at render time.
 
In some ways, you're opening yourself to some pain. Why not give them some items they can customize? Logo, text, etc., and then let them upload those and you plug those into your PDF
 
I could, but this was a request by a customer, so I had to explore my options at least. :)
 
4:55 PM
So there's the rendering engine, which is complicated, and the drag-n-drop editor, which generates the data that the rendering engine consumes.
 
If you can detect the types of objects the users will insert into their PDF and then write your content around those, this should be doable.
But unless you know where in that PDF they want your content, it would be a challenging task
 
Well, it'll only be text, images and layouting.
 
You'll need to know where in that layout your content will be inserted, kind of a contract you have with your users... a placeholder for you to insert your content
I'm not sure if they can attach an ID to that layout element. You'd find it and insert your content into it
 
Yeah. I wonder if it's possible to create a PDF with some form fields and then just populate it dynamically. Would work for text. Not sure about images though.
 
If it's not there, you'd throw an error
It's probably all possible. Just have to investigate
 
5:00 PM
@WilliamMariager Sounds like a pain in the ***. Make sure you quote accordingly :)
 
^ that
 
Yeah, so far they just get a basic PDF generated like the one I linked. Custom PDFs will have to be some additional feature later.
 
You may find that they don't need full design capability... just a list of templates to choose from.
 
The specific request was custom designs so they can stand out and not look like everyone else.
Who'd have thought that was important with datasheets? :P
 
In that case, get as much of the design as possible put in the base document that you're going to start with :)
I mean... it's possible that they really just want a header of their own :)
And really, it's mostly static, and not dynamic at all...
Read: the customer doesn't really know what they want; it's up to you to figure that out.
^ as if that ever happens... a customer not being sure what they need? pfffft..
 
5:05 PM
Yeah, a lot of times you guide the customer to something that makes sense. What is it they need vs. want?
 
Well, we have talked about it, and I'm well aware that the customer doesn't know what they want. :P But in this case, they really want to be able to customize it completely, not just a different header.
And you're right that they layout will be static once made. It's just the text that changes. :) Which is why I'm thinking something like a static HTML template might be a good solution.
Graphics department puts together the template in HTML and can do a bunch of previews to make sure it works correct and then I just use that, fill in all the data and then generate it.
 
5:50 PM
Here's something you can try... create a simple console app project that will read the HTML template (just a simple one for now, unless you have the finished one). Then add some content to it using something like iTextSharp.
You can set an ID on an HTML element, like a DIV, where your dynamic content will be. Then read that in iTextSharp and stuff your content into it, write it to a file. Wash, rinse, repeat :)
A non-WPF question... I have a PC with 8 GB. Boss asked me how much memory I'd like to add. What's a reasonable answer? I'd like to go to 16, but 32 would be great. I'm not due for a new PC for a while, so want to squeeze more life out of this machine
Is there a dramatic improvement between 16 and 32 GB memory?
 
@Alex TBH, 8 to 16 may not be noticeable for you - it really just depends on what type of stuff you're doing
16 to 32 is huge, but only if you use more than 16gb of ram on a regular basis ;)
 
Lots of open VS instances ... 2 or three at a time
 
memory is one of those things that really does nothing for you until you blow over the limits
VS is limited to 2gb/instance
 
Right now, I'm bumping my head on 8GB regularly
Ohhhh
 
Ha. I just installed an 8 gig kit today.
 
5:56 PM
if you have the choice, go for more, of course
 
8 -> 16.
 
Did it make a diff, Lynn?
 
I was always swapping around 7.5g
Yes.
From my convo with Mav > I've needed that for quite some time. I was always right around 7g with VS x 2, Outlook, Firefox (15+ tabs), Skype, and Slack open.
 
Right now, VS takes a couple of minutes to open. Sometimes 5
 
I'm at 8.65g atm
 
5:58 PM
So is 16 GB a good choice then, for the kind of dev we do?
 
Yeah.
 
I also don't want to be greedy
 
Unless you're going to be working with 3DS Max.
Or Blender.
 
Especially if the RAM will be wasted
 
It's never "wasted" <grin>
 
5:58 PM
Nah, nothing 3D. Maybe some PS work, if I can ever get the latest version again
I know :)
 
if you're doing multiple VS instances, 8 is borderline
but 16 should give quite a bit of room...
 
Yeah, 8 is really tight
 
it's more if you do anything that's going to use a lot more, and you want to do them all at the same time...
 
I'm thinking 16 is plenty for now
 
Just think - you'd need to DOUBLE the number of things running, including the OS
 
6:01 PM
I've got this currently
 
Why do they make it so hard to find out what the CPU is.
 
Whatever it is it's slow
How can I tell what memory arrangement is used currently?
 
download CPU-Z
Then click on the SPD tab
 
Here's what that system will allow: h20564.www2.hp.com/hpsc/doc/public/…
CPU-Z says "Slot #1"
So does that mean only one slot is used for the RAM?
But everything else on the SPD tab is greyed out
 
Yep, probably
Double-check with the Crucial System Scanner (crucial.com)
 
6:09 PM
Perfect!
Thanks, Lynn
 
6:27 PM
Hey guys - I got tired of having to manually inject c# - so I've forked and added it to source: github.com/Venomed/se-chat-dark-theme-plus
since I can't exactly publish it to chrome store - you can clone the repo and switch chrome in to developer mode and "load unpacked extension" (disable the original first)
relaod the page and it'll work and you'll see full list of codemirror's supported languages - i've also updated codemirror itself to latest stable
 
why can't you publish it?
 
(at some point will speak to rlemon to see if he wants a pull request)
I don't have the chrome store key
 
I'd just do a PR :p
I'm sure he'll accept it - just do the PR, and let him accept/reject/ask for changes :)
 
nah the PR is big because of update i've pulled in
i've sent him 2 smaller ones already to see how it goes :)
I'm thinking i'll do some git gymnastics and try to split update from the actual code injection i've done - it shouldn't be too hard.. in theory..
so even if he's hesitant about latest stable, hopefully he'll be happy to take the actual code update in
to think i was planning to start f# today and ended up learning 0.1 more javascript instead!
 
Asked for 8GB more memory from boss + a larger display
 
6:33 PM
@Maverik Well, when you're ready to start with F#... ;)
 
I'm pretty much ready but forces unseen are at play right now!
 
Though, FSSF slack or chat.stackoverflow.com/rooms/51909/f is probably a better place for those discussions :p
hehehe, no reason to not just go for it
 
so many people in f :D
 
yeah - the slack's much better
 
yea i'll pester ddg first and then slack #beginners
 
6:36 PM
(and soon to be even better - secret cool stuff happening there)
ddg?
 
but its much easier to understand f# now - after a solid background in linq now
DuckDuckGo
 
yeah, just have to unlearn the stupid names the C# team did
still don't understand why they went and copied FP, then renamed everything to idiotic names
 
easy enough - i've already had experience with .map .filter
 
yeah ;)
then it's mostly syntax and unlearning a bunch of things
 
so I have a very simple project for starting out
 
6:38 PM
oh?
 
I need to write a small calender sort of thing for holiday season
that basically says are we operating in Normal/out-of-hours/half-day mode between 25th-1st of new year
it's gonna be fun!
(i basically need to output a json that gets injected into our holiday season webpage that renders it all pretty then)
 
nice
 
Using WPF to write this?
 
not from the sounds of it
 
nah i wrote the original in linqpad c#
 
6:40 PM
Oh, it's web based
 
FSI ftw :)
or linqpad, if you prefer ;)
 
its a small snippet - but it's got enough moving parts to make for a nice f# excercise
 
but FSI is nicer
 
LP is pretty cool for quickly testing something
 
its about getting used to FSI - i'm not used to it yet -- but Linqpad doesn't recognise F# 4.1 which is what i have installed
left a bug report - perhaps it'll get sorted quick enough
but in worst case, i'll just make a console app.. FSI will take some time and will be a distraction at this time
what I would like to know is: all tutorials are just dumping stuff in one .fs file - i need to figure out some organisational stuff - guess I'll run through your code at some point and see how you've done it - i should be up and running after that
 
6:43 PM
FSI is better
because you can write in an fsx file
and send to interactive
and iteratively change/rerun/etc
the workflow is slightly different, but pretty nice once you're used to it
 
its the .Dump thats addictive ;)
 
and you can have multiple .fsx files
 
the pretty grid!
 
that's just "send to interactive" :p
yeah, the printing is nicer in Linqpad
 
yea i get what you're saying - but nah i need to do a proper project
 
6:44 PM
but selective execution is much nicer in FSI
well, tbh, that is a proper project
a lot of F# devs do everything that way :p
FSX files can include other ones, etc
 
once i get the hang of f# with this holiday season snippet - i actually need to do a restful client of a 3rd party software
that's my actual goal before december ends
 
I've heard of C# Interactive but haven't tried it
 
if it's json - the json TP makes that pretty damn easy
 
(sounds like a lot of days but there's a lot of holidays!)
 
@alex C# just doesn't lend itself towards repl usage as much - so it's not as useful, IMO
 
6:45 PM
Ahhh. Good to know.
 
I mean - it still is - but just not to the same level
 
yea I agree
 
too much boillerplate crap in C#
 
as for selection play - i dunno.. i still find that better in linqpad -- triple click the line - f5
right click -> find the option & click -- it takes me longer cos i need to think
 
Alt+Enter is fast ;)
 
6:47 PM
(triple clicking is optional for the whole line - the selection can be however you'd normally do it)
 
and you can add a send line to interactive keyboard commadn
 
fast.. yea.. but f5 is faster xD
i wonder if linqpad has alt+enter binding
 
F5 executes everything, though
I rarely want to do that when I'm doing anything more than a sample for chat :p
that being said, LINQPad 5 should be fine to use for most things
I doubt you really need the 4.1 features
 
Reed - if you have a selection F5 only executes selection (in linqpad) - just confirmed too
 
oh, okay
 
6:49 PM
as for 4.1 - no it came with VS 2017 RC - I didn't even know about it until today
 
/me shrugs. For F#, I still prefer FSI, mostly because it's easier to migrate to a full app later
yeah - makes sense
 
i guess it comes back to the same thing - it'll just take a bit of time to get used to it
 
unfortunately, 2017 RC sucks for F# :(
 
but until then, FSI is going to distract me more than it'll be useful
 
so I wouldn't recommend it
(until next RC) I'd recommend using 2015
 
6:50 PM
I don't have 2015 here xD
 
VS Code then :p
just install Ionide
 
thought of that yea - i'll check it out
read good stuff about Ionide
 
it actually has some things that are really useful
the "code lens" like type signatures are super handy when learning
 
nod
 
so in a lot of ways, if you're doing scripting type of stuff, that's the best editor out there
 
6:51 PM
nah this is going to be more a transition from c# project with lots of model data & logic to f#
so i'd need to have it split in folders and files to keep my sanity
and thats the bit i need to read about - how do these files interact (linking stuff I guess?)
 
just a warning - folders and F# don't play super nicely
 
i had a feeling about that
 
F# projects typically don't use folders - or they do, but minimally
 
well I can still say something like Models\* ?
 
it's because of the file ordering when compiling
yeah - you just have to hand edit the .fsproj all of the time
 
6:53 PM
thats odd - my \ didn't appear
 
if you have F# Power Tools (which I highly recommend)
you can use it
 
yup already installed
 
just always add files to the root, then move them into the folder in VS afterwards
don't try to create tehm in the folder, or you'll have to hand edit the project :p
 
right, thank you for the tip
 
nice thing -if you do models* /etc - it's much easiert o make sure you don't get cyclic dependencies by accident
(since you really can't in F# 😋 )
 
6:55 PM
well I imagine my models will undergo some form of transformation for sure to use better type handling now available
 
yeah, that's part of it
is typically, in an F# project
"Models" won't be a folder
 
but not sure how should I structure it .. gonna use your github repo as point of reference
 
it'll be a single Model.fs file :p
 
ah ok
 
because you can typically write out the entire domain model in 30 LOC instead of 6 separate classes that are 30-40 LOC each
esp. since so many can just be 1 liner (records), and a single DU can often replace an entire class hierarchy, etc
 
6:57 PM
nod
 
F# doesn't go by the "one type per file" thing like C#/java/etc
 
I'm afraid I have to jet right now
 
cya
 
but I'll catch up with chat in about an hour
cya guys for now
 
@Reed I'm writing an analyzer for IDisposable. We don't want to dispose stuff passed in via ctor right?
 
6:58 PM
@JohanLarsson it depends - most of the stream wrappers do
 
yeah +1
 
it's all a matter of ownership expectations
 
roslyn is weak when it comes to config
guess I can subclass and have many analyzers for more finegrained control
@ReedCopsey what would your default be?
I'm leaning towards ignoring things passed in and just disopose things we create in the class
analyzing members is a potential beast
 
7:14 PM
I'd mostly just check for fields or props
anything initialized in the constructor would be safe if it was my code :p
 
 
2 hours later…
9:08 PM
WpfFarmer.CausePercipitation(Type.Snow,Intensity.Light);
* * * *
Funny how the snow looks like tumbleweeds
Brrrr. Getting cold in here already
 
Indeed...
 
9:46 PM
@Alex You around?
 
"Hi I'm not here right now, please leave a message after the tone." beep
Yeah, what's up?
 
I have a coworker that is trying to load a partial with an ajax call... do you have any experience with this? He said that it isn't working...
 
Haven't done it with ajax but just regular yes
Can he load it without ajax?
 
I think I might send him an invite to slack
 
Sure
 
9:48 PM
I think he's trying to implement a "View more..." button via ajax (so that he isn't incurring a huge hit at load time)
 
Ahh
Been a long time since my ajax days
 
It populates a modal.
 
We plan to do this app with more ajax calls in a month or two
Here's a way to reduce the complexity just to see if it works... remove ajax and load the modal the normal way
Does it work?
 
I'm pretty sure his route is the issue and it's not actually anything client-side
 
Hmm.
Sample loading of partial view via ajax:
$('#Detail').load(
        '<%= Url.Action("AddPerson", "Home") %>'
 );
Or the answer below that: stackoverflow.com/a/1570138/177416
 
9:56 PM
Thanks! I've relayed that around...
He's going to hit the content directly to see if that's the problem.
 
You're welcome. From one of the answers: You can't render a partial view using only jQuery. You can, however, call a method (action) that will render the partial view for you and add it to the page using jQuery/AJAX.
He can just call @Url.Action("AddPerson", "Home") with the partial view... found a way recently to turn a regular view into partial without touching the view. Just have an overloaded action that returns a partial view result
 
His problem is that the razor script isn't rendering on the client side
He's actually seeing: http://kxxxxx.com/yyy/@Url.Action(%22Some_product%22,"
 
What's the chunk of Razor code?
 
(I think his comma might be a culprit...)
 
Ahh
 
10:04 PM
(BTW - I have never touched mvc/razor
Purely a webforms guy...
My knowledge is dated.
 
It's truncating the string
MVC rocks! Very similar to MVVM, but with web stuff (JS, CSS, web fonts)
 
Yeah, I'm excited to learn it... just no time :)
He's getting the razor code
here it is:
$('.class').load('@Url.Action("' + someVar + '_' + otherVar + '", "Root")');
See anything wrong there?
 
Have him try this:
$('.class').load('<%= Url.Action("' + someVar + '_' + otherVar + '", "Root") %>');
 
ok, I've passed it along...
Thank you!
I'm headed home for the day...
 
YW :)
Me too
 
10:11 PM
Thanks again... and have a nice night
 
See you tomorrow
You too. Hope it helps. Ping me tomorrow if it doesn't
 
Will do... :)
'night
 
10:26 PM
@ReedCopsey I don't get this part
 
@johan I was saying you could limit the checks to fields or props that were initialized in construction process only
so if it wasn't "newed up" inline or in ctor, don't worry about it
 
ah, yeah that is a nice simple startingpoint
I'm not looking for anything perfect, just throwing things together for scanning the new app to see what is going on
perf is awesome now btw, all views load in 0.1 s or so
 
 
1 hour later…
11:40 PM
@JohanLarsson This is for that one that was doing all of the stupid generation on load?
 
yeah
been fixing it with an analyzer :)
 
Your colleague understand the issues now?
Anybody know a good algorithm to diff a collection?
 
how do you mean diff?
for raising incc?
 
11:57 PM
unless you are tracking the changes in some way, this will pretty much mean a linear scan over two collections I think
 
@Johan Yes, effectively
@milleniumbug Yes, I know it'll be at least O(n)
 
Are you writing linq to observablecollection?
 
mmm - sort of
 

« first day (1508 days earlier)      last day (2641 days later) »