« first day (2461 days earlier)      last day (2502 days later) » 

12:23 AM
@juanvan I found the issue. It's in VS 2017.
 
 
2 hours later…
2:39 AM
Good day, does any one here have a way of exporting a FlowDocument to PDF? Or should I create the PDF from scratch?
 
 
4 hours later…
6:35 AM
good morning everyone :)
 
good morning :>
 
hey guys
am having a problem with my Xamarin.forms app and my easy tables can't seem to work :/ its on here github.com/rahul7910/moodify
 
6:56 AM
hello jello
 
ohayou minna
 
@M.Jones not anymore
 
7:13 AM
Good morning <:
 
dobroye utro
 
Anyone have any remedies for getting a flu off me within 2 days?
 
ask grandmas
 
Got a LAN to attend in two days, i refuse to give up my seat but coughing and sneezing like a damn horse
Grandmas would say to drink hot which i already am, and sleep a lot which i'm not very efficient at. Also taking two pills a day for it.
 
on the real side there is an 80% you'll be fine in 2 days
if you exchange fluids in your body and have plenty of rest
 
7:18 AM
Well i did feel better this morning
But who knows. Last time i was sick i was for about a week and slept ~20 hours a day, lol
I'm not sure why, but i was so ridicously exhausted
im not sure whether to cry or laugh at this point
 
@satibel are you here?
i need a baqete advice
 
@Xariez is this a real real example? If so, someone is fucked
 
No. It's just a early morning, i'm tired and slightly sick and, as a summer-job guy waiting for someone to finish a task list for me.
Also, not to forget the keyword 'bored'.
But yeah, considering it would stop at the second statement and that would be a stupid amount of if-statements, someone would indeed be fucked
 
i started sneezing
and feeling sick just now
coincendentally
 
!!giphy spanish inquisition
 
Hi guys
I wanted suggestion on popular unit of work to used in web api
which would be simple to use :
unity or ninject?
 
CASTLE WINDSOR FULL IoC FTW
i love castle
seriously though, are you using MVVM Light / Prism too?
 
What about autofac?
 
never used it.
If you are using prism, it has some easy compatibility with Unity
 
Moinmoin
 
7:39 AM
allo
Although I like Ninject Better
And as I said, I really like full blown IoC
 
You guys got an idea how get this working for a Window, instead of a textbox?
0
Q: How to fire a textbox command upon losing focus in WPF?

BobThe following template works fine if the user presses Enter, although I want the command to fire when the TextBox loses focus as well. How can I do this? The following is my TextBox template <DataTemplate x:Key="PhantomNameEditTemplate"> <TextBox Text="{Binding Name, UpdateSourc...

 
@Metallkiller Window.Deactivated event?
 
WIndow.LostFOcus
But I guess I can work with both
 
Put the code in the grid within the window, but nothing happens. Ancestor and DataContext are found correctly...and my breakpoint in the command never happens
 
7:44 AM
There is a difference between lostFocus and Deactivated
depends on your scenario
 
Ideally, when the mouse leaves the window
But I might play around with that part later on anyway. Just have to get it working first.
 
@Learning sweet autofac i love you
for your understandable options and letting me choose how my dependency exist
would you please marry me, autofac
 
7:59 AM
Hehe
But why do we need this
I am finding it DI complex
 
well examine the phrase inversion of control
 
I have this bit of code, which resharper suggest I change, but the change doesn't make sense:
return value != null
                ? (T) value
                : default(T);
And it wants me to change it to simply return (T) value;
Is it just me, or will that not work for, say, int?
 
C# interactive to the rescue! Let me see...
 
I tried running object x = null; return (int)x; and it throws a NullReferenceException.
 
jup, tells me i cant convert null to int as int cant be null
in your class, in that function, is it possible for value to ever be null? Maybe reshrper sees that its impossible and therefore eliminates that option?
 
8:04 AM
No, it's a typed wrapper around an untyped data store.
 
Why this question getting all these down-votes, and no comments/ answers ! :(
is it that bad?
asking about getting the PK of a class without knowing its type, must be a good demand
https://stackoverflow.com/questions/45051242/get-the-primary-key-name-and-value-from-datacontext
 
var dataStore = new Dictionary<string, object>();
var value = dataStore.FirstOrDefault(key);
return value != null
                ? (T) value
                : default(T);
@MohamedAhmed Three of the close votes on the question are "Unclear what you're asking".
You have an EF question, which starts with several unrelated sentences about WPF that have nothing to do with the actual question.
Also, you're confusing EF's DbContext with WPF's DataContext, which are two entirely different things.
 
IIRC FirstOrDefault, as every LINQ extension, will never return null
 
@AvnerShahar-Kashtan int? will return null with (T) value instead of 0, won't it?
 
@Metallkiller Of course it will. "OrDefault" means "if you don't find it, return the default value for the type". For object, that's null.
@misha130 Yeah, but I don't want an int?.
 
8:07 AM
Ohhhh ok
 
I want, as a user, to do dataStore.Find<int>(myKey) and get a typed value.
 
nvm read your code
 
yeah i havent got my coffee yet
 
This is up to the caller. If a user wants Find<int>, then the caller wants a valid int, or 0 as default. If the user asks for <int?>, they'll get a null.
 
8:27 AM
@SebastianL its there but its private I'll make it public now
 
ahoy o/
 
hey guys
am having a problem with my Xamarin.forms app and my easy tables can't seem to work :/ its on here github.com/rahul7910/moodify
 
@M.Jones we wont dig through your code, please show us the part of your code where it doesn't work
 
@SebastianL yeah sorry fair enough , okay so its on the viewmodel.cs
I get an error Xamarin.forms.xaml.XamlParseException on line 30
Which is People.Add(new Person...
Says cannot assign "View": Property does not exist , or is not assignable , or mismatching type between value and property
 
8:46 AM
when I down vote answers do I lose rep?
coolio
 
wait what
 
o/
 
\o
 
In visual studio (2015). I need some advice on how to deal with an issue most of you have probably dealt with and that is the same named views.

So lets say I have 3 different controllers (OrderController, PersonController, AccountController).

As you know all will most likely have an "Index.cshtml" within in its folder.

Now when that's open in vs 2015 and you want to be able to discern between the tabs it can be the case of opening it and manually checking which is which.

Is there any sort of addon out there that you can use to perhaps add a custom name for that tab or whatever?
 
I normally just hover over them and see where the directory is
 
8:56 AM
Hover?!
oh right yes
 
yeah haha
 
I've been ignoring that and pressing the show in solution explorer button
 
However, what you ask is something that would actually be useful
haha
 
yes, what I ask is still going to help so much more
I can just call that tab "Index-Account", "Index-Person", "Index-Order"
 
is it weird if i send a colleague a message apologizing i did not greet him yesterday? i saw him at the station but did not register him
 
8:57 AM
No that's not weird at all
It shows that you care
 
I wouldn't consider that wierd
 
so i sent an apology but i feel i mad it more akward
oh okay
 
nah
 
Don't worry about it :)
 
To be honest, He might not have seen you yesterday anyway
 
8:58 AM
she saw the message but did not respond to it
 
no she did, she waved to me
 
@Proxy At least now the awkward part is out in the open, not inside your head.
Better that way.
 
ohshit
 
i just did not realize it was her
 
8:59 AM
yeah, what Avner said
 
until i entered the train
 
Awkward goes away on its own when let loose.
 
yeah i know
just was wondering if it weird to apologize for that
 
nah
 
She's going to think you're a creep
NOT
 
9:00 AM
I mean
 
@Kieran thanks I shall go try that
 
Its not like its going to make it any more awkward
 
Bah Kieran it's bloody regex based
I just want to be able to right click the damn name and have a temp holding name
I'll just hover for now
 
@JARRRRG yeah, i think it does it automatically for you
 
:(
 
9:04 AM
Hello
 
Is that supposed to be a question?
 
@Kieran - https://marketplace.visualstudio.com/items?itemName=SergeyVlasov.TabsStudio-documenttabsmanagerforVisualStudioIDE

$99 ROFL.
 
I'm confused
 
I'm getting the above error since yesterday, I don't understand it at all. My application is ASP.NET MVC and it's not Typescript
 
Can you sponsor me tab studio, please please please >.<
 
9:05 AM
@JARRRRG Yeah i saw that when i was looking before, Who the hell would pay $99 for a TABS plugin
 
I hope no one
 
@KevinMaxwell Have you tried excluding it from your project?
 
Yes
It's the same
 
hm
Is it referenced anywhere?
 
I hate it really
 
9:06 AM
like if you search for tsconfig.js, do you find anything in your project?
Cause my next step would be to actually remove it
 
Let me search again
No, that's all
 
Try removing it?
 
tsconfig.json?
 
yah
 
even without the file, I get that error
 
9:11 AM
I've had issues in the past with files that don't actually get used but somehow manage to stop the project from compiling
...rusrs
how
uh
Check your project references
 
@Proxy traditional whole bread with walnuts.
 
@satibel o/
 
o/
 
so i made a good choice
 
hello
 
9:12 AM
Heyho
 
@Kieran there is nothing
 
@Proxy what was the question?
 
@KevinMaxwell well damn. Don't know what to tell you.
I take it googling hasn't given you any help?
 
No problem, thanks for your help
 
i asked it already... was about apologizing to a cowork i did not greet on the station
wanted to ask if it was weird because i apologized
 
9:13 AM
@satibel
16 mins ago, by Proxy
is it weird if i send a colleague a message apologizing i did not greet him yesterday? i saw him at the station but did not register him
 
I only found this one:
https://stackoverflow.com/questions/42990428/turning-off-language-service-disabled-error-message-in-vs2017
It didn't help
 
hm
Is there any way you can revert to a backup before this started to happen?
 
I tried it last night. I was getting the same error
It just started out of nowhere
It could be a bug in VS2017
 
This is true.
 
18 mins ago, by Proxy
i just did not realize it was her
 
9:17 AM
Thanks @Kieran
 
@KevinMaxwell no worries, Sorry i couldn't help more
 
i was trying to cover all genders through multiple sentences
 
thankfully he did not greet "him"
 
ikr
 
Anyone ever had VS throw "Could not find file or assembly System 4.0.0.0 - File is Corrupt" suddenly?
 
9:18 AM
ofc
that was the day I switched to Rider
 
rider with 4.6?
 
:)
 
> Jon brought fanny's frisbee.
 
!!lenny
 
9:21 AM
( Í¡° ͜ʖ Í¡°)
 
I can't make the childish me not laugh at this
 
lmao
 
i like bees
 
>british people
 
@Proxy I'm wasp venom immune
I can get bitten as much as they want, what I get is same as if it was a mosquito
 
9:22 AM
bees are cool
 
wasps are annoying
 
flying insects are annoying
 
@Proxy bees? why settle for mediocrity ? As is where it's at!
 
hello, please help me :)
i have a Controller which Returns a html file via
return new FilePathResult("~/web/index.html", "text/html");

but i dont want /web/ appearing in my browser-bar .. how can i Change that ?
 
Good day! :D
 
9:30 AM
gday lol
 
@OliverRenner URL rewriting is probably what you're looking for.
 
lol
So when performing a linq join by doing something like this:

join t in _context.phone on new { p.signum, codeType } equals new { t.signum, t.codeType }
 
hey guys, have you seen this new feature?
▶ 🔵──────────── 03:47 🔊 🔂
11
 
CAN'T FOOL ME
 
^
 
9:31 AM
YOU FOCKING FOCKING
 
See what
 
@satibel My PC is hooked up to the office sound system. So no way am I clicking that.
 
!!urban focking
Would there be a way to run two different values into "codeType" (say it were, for example, a string array) and check both of them in the join?
 
Is Cap dead again?
 
not sure if i should timeout @satibel for posting friday links on a wednesday
 
9:32 AM
She should really work on that being dead thing of hers.
 
;)
!!summon
 
@Kieran That aint no room I ever heard of! /help summon for usage info
 
UWOT
 
LOL
DENIED
 
@Kieran friday's closed for me.
 
9:33 AM
lmao
!!kieran
 
Feb 27 at 16:02, by Kieran
Thank you for confirming im an idiot c:
 
oh god cleanup time boys
 
@satibel you evil genius :D
 
YUS
 
!!urban focking
Now lets see what thats all about
Or..lets not.
!!giphy tableflip
 
Ok so uh question
How the fock do i move messages
 
I always feel honored seeing "Kamil Solecki has invited you to join Sandbox". Even better when the room is calle Trash bin
 
lmao
 
@Kieran room --->
 
9:34 AM
wot
 
there is roomâ–¼ thingy above starboard
 
i cant do dat D:
 
I think i need more coffe
 
covfefee
 
OHHHHHHHHHHHHHHHHHHHHH
!!giphy lightbulb
 
not what i wanted but you'll do
 
lol
!!giphy disney lightbulb
 
I did smile.
 
Hi is anyone experienced with ELK stack here ?
 
9:36 AM
@Xariez that's better lmao
@KamilSolecki So i take it the timeout button freezes the room?
 
Is it instant as soon as you click it or is there more to it ?
 
Only one way to find out ໒( , ⊙ – ⊙ , )७
 
also pls remember that the timeout message has to be panini time or otherwise it will all go to shit
 
why would it go to shit
 
9:40 AM
shh
dont question it
 
I'm not going to do it lmao
 
join t in _context.phone on new { key = p.signum, codetype = "00", teltype = new string[] { "00", "01" } } equals new { t.key, t.codetype, t.teltype } into lt
I badly want to do something like that but a string[] won't work. halp.
 
@Xariez What are you trying to do?
maybe you're looking on adding a where?
 
We had a where before
 
You're joining two tables, but only those rows where teltype is 00 or 01, right?
that's a where.
 
9:44 AM
But what we need to do is make a outer join between the "Phone" table and "Registry" table (that you see as 'p') , because if we have a where statement and the codetype and/or teltype doesn't exist, it crashes everything
As in, if we do it in a join and it doesnt exist, so be it, it can still fill in all the other data and proceed
If we do it in a where, it tableflips and crashes the query, thus a lot of obligatory information
I just found something that i guess COULD work though?
 
I don't see why it would crash.
You filter the left/source table by teltype, then do the outer join.
 
join t in _context.phone on new { key = p.signum, codetype = "00", teltype = "00" } equals new { t.key, t.codetype, t.teltype } into lt
join t2 in _context.phone on new { key = p.signum, codetype = "00", teltype = "01" } equals new { t2.key, t2.codetype, t2.teltype } into lt2
If all else fails, wouldnt that work?
Also, let me get you the whole query in a sec and you'll maybe see the issue that im missing
 
That would give you two different group joins.
 
Then I just do:

Telephone = t.telnr ?? t2.telnr,
That should be what we had before, causing the crash
 
That seems a very roundabout way to do things.
 
9:55 AM
whats going on with the inner join and ranged variables
 
Are you supposed to be reusing t both for the join alias and for the variable used in let?
 
As you can see we got plenty of fields (10 to be precise)
 
Also, why are you filtering _context.phone by teltype, rather than filtering _context.registry directly?
Always filter early, before joining, to reduce the amount of rows returned by the joins.
 
None of those fields can cause another field to not display, which is what we had earlier.
_context.phone has teltype, _context.registry doesn't, to answer that
 
@Xariez Oh, I thought you were joining on it.
So filter phone. Early - not after the join, before it.
 
9:59 AM
So, go ahead and shame me out. But I guess you learn something new every day.
 
join t in _context.phone.Where(p => p.teltype == "00") on new { key = p.signum } equals new { t.key } into lt
 
I was certain where statements had to be done last, or rather, right above the select
 
Apply the join on the already-filtered IQueryable.
@Xariez That's if you're filtering the joined output table.
But you can filter the input table, before the join is applied.
 
Oh you'd put a where there
 
Hi, I am kind of new to c#, did handfull of winforms programs before. I am doing a new windows program. My program can do 6-7 related, but kind of different things. In order to do each thing, user clicks a button and a dialog related to that function appears.
 
10:00 AM
Thats..not a entirely stupid idea actually
 
That way yo're joining on a smaller dataset.
 
I realized that all those dialogs are mostly the same, except for what happens when you click "run" and "report" buttons.
Is there a way to create some kind of template form, and set how "run" and "report" works, instead of creating a different from class for each functionality
 
@yasar It's possible, though WinForms isn't the best technology for it.
With WPF, I would create a single window, ReportWindow, which has the data grid and the button, both data-bound to the ViewModel.
Then, you can pass it different viewmodels, each exposing the same properties (the button commands and the data) and have the same view bind to them.
 
Yeah, just tested it and it works just as well and isnt quite as messy. Thanks a lot! @AvnerShahar-Kashtan
 
10:08 AM
@yasar Also if you need to use WinForms, you can pass two actions as contructor parameters, which are executed by the two buttons.
 
@Metallkiller I would prefer that actually, since most of my program is done, and I don't have time&patience to re-do it all again.
 
Thought so
 
But the problem is, how can you pass function as parameters?
I am really learning the language partially as I need, never done that before. But I am guessing it has something to do with delegates?
 
@yasar You can use delegates, or you can simply create an interface - IReportHandler - and have several methods (Run and Report), and have different classes implementing it, one for each screen. Pass that in.
 
Hmm, interface sounds simpler
I will create an interface that has "run" and "report" functionalities, and create classes that implement that for each dialog I have, am I right?
 
10:17 AM
Yes
 
Ok, that sound manageable, thanks for the help
 
10:28 AM
Or actually pass an Action<> object as parameter and execute that. That was my initial idea.
You go:
Action myAction = () => myMethod();
Action myOtherAction = () => myOtherMethod();
ReportWIndow myReport = new ReportWindow(myAction, myOtherAction);
myReport.Show();
 
anyone here good with SQL?
 
Depends on what you need
 
"Good" is a very relative term
 
i need to run a select statement with multiple tables
but I also want to update a value from one table
 
And you want to do this in the same query?
 
10:30 AM
UPDATE [lc]
SET [lc].[LastTime] = GETDATE()
OUTPUT [ac].[Field1], [ac].[Field2], [lc].[Field1], [lc].[Field2], [lc].[Field3], [lc].[Field4]
FROM [database1].[dbo].[table1] [lc]
join [database1].[dbo].[table2] [ac] on [lc].[Table2Id] = [ac].[Id]
yes
this is what I tried but the Sql Server Management Studio says that the output on lc.fields is incorrect
"The multi-part identifier could not be bound"
 
I didn't know Sql Server had an output command :O
 
its basically required for high optimized database transactions
 
@Metallkiller Intuitively, I prefer passing delegates only when the activity done is very small and contained. Like the sort of delegate you pass to a Where or Select clause.
Here, you have two relatively meaningful functions, that are A) coupled, and B) meaningfully assigned to a logical category (the type of report).
Writing interface implementations seems clearer to me here.
 
Absolutely, it's just possible to pass actions to an existing class nobody really wants to rewrite by now^^
Or, of course, have the butttons fire events, and subscribe to those events from your caller, and handle the processing from there. No more logic in the Window, BOOM!
 
so noone uses Sql with high performance requirements?
 
10:45 AM
@Wietlol well the error says that the join returns more than one result
 
so how do I make it work?
 
wait where is your select part?
the output serves as a select?
 
yes
(i didnt copy the where part though, mybad)
 
copy the where part
a sec
 
at the end there is also a "WHERE [lc].[Id] = @Id" which is provided as parameter through the code
which is also the only primary key
so I doubt it will have multiple sets of the [lc] table
 
10:51 AM
[database1].[dbo].[table2] [ac] on (SELECT TOP 1 [Table2Id] from [lc]) = [ac].[Id]
try this for a sec
oh sorry
doesnt make sense, my bad
is the id in ac not identity?
 
identity?
yes it is
so there is literally one row returned from both tables
(anyway, ill be back soon, gtg for a while)
 
ironically performance wise you should create a temporary table that anyway :^)
so might aswell do that
 

« first day (2461 days earlier)      last day (2502 days later) »