« first day (2167 days earlier)      last day (2781 days later) » 

11:00 AM
@Nerdintraining Depends on what you want to do with them.
@Froxer Depends on your DI container. First, from an IoC perspective, you change your constructor to be public Foo (IBar bar) meaning that you receive it externally, not create it yourself.
 
ye
think i got a solution
sec
 
From there on, it depends on your DI container. The ideal is that you never explicitly call new Foo() either.
Everything should be created through the DI container, allowing it to automatically find the constructor dependencies and pass them in.
 
just wanted to get a certain object in the array.

i solved my problem like this:

(from term in zProgram.aTerminals
where term.sDescription == sWantedTerminal
select term).ElementAt(0)
 
@Nerdintraining I would use First() rather than ElementAt(), but sure.
I don't know if ElementAt materializes the enumerable.
 
it compiled corectly atleast ^^
 
11:04 AM
Yeah, it works, but it misses some of the worldview of LINQ and enumerables.
 
So for me, user .First() instead of .ElementAt(0)
and am i abusing linq for this?!
 
Hi guys i am android dev,sorry to bother here..i am using api from asp.net..the issue is from backend my friend is sending \n and when i run the api in dhc it shows \\n
"discountMsg": "TEST COUPON\\nPlease Note: Higher Discount has been applied to some of the products in your cart.",
like this
 
Forget about accessing items by index. IEnumerables might not be index-enumerables. An IEnumerable might be an infinitely generated list or a database query which is only executed when needed.
 
@AvnerShahar-Kashtan now you are making me feel small and unknowing :x
i guess i'll read into the IEnumerable Interface later on
 
Read up on LINQ and lazy evaluation.
 
11:07 AM
@AvnerShahar-Kashtan @Nerdintraining any idea sir
 
Consider these two queries, assuming DB is a LINQ DB provider:
db.Items.Skip(9).First() vs db.Items.ElementAt(10);
 
@AvnerShahar-Kashtan everything i know about linq comes form a 15min youtube video (just started that subject) so you are way over my head at the moment XD
but to me it looks like the same
 
Fine. Go, read, learn. :)
 
@AvnerShahar-Kashtan yes sir! salutes
 
Is there any error in this code ?
if objExec.eof = false then
objExec.MoveFirst 'Unnecessary in this case, but still a good habit
Do While Not objExec.EOF
fingerData1 = objExec("pData1")
fingerData2 = objExec("pData2")
len_of_data = objExec("len_of_data")
sl_no = objExec("sl_no")

fingerData1 = fingerData1 & fingerData2

fingerMatched=fps.FamIdentify(CStr(user_name),CStr(fingerData1),CINT(len_of_data),CStr(SampleModel),CStr(REMOTE_ADDR))
Response.write("<br>" & sl_no & " " & fingerMatched & "<br>" )
if fingerMatched = True then
 
11:39 AM
Hi!
 
@AdityaVyas-Lakhan you haven't asked a question
 
I have a question, I've followed this tutorial: dtkit.com/… and now when i click on the button, Nothing happens, I just wanted you guys to see if i'm doing something stupid and what is that bookmark ?
Actually, I have one textbox, richbox and one label and i'm trying to get those texts from them and showing those three texts into the word file...
Any helps would be great..
At the mean time, I'm looking at the codes to see if i did something stupid...:-?
It seems like the example on that website is not working either ...
 
@RoelvanUden hey sensai, i just "fixed" a problem i was having
took me like 20 minutes of hard thinking and my brain is cooking.

Figured out i simply flipped the actions in a ternary opration p.p'
Took me 3 seconds to fix actually , 20 mins of trying to fix it @ the wrong place xD
 
11:54 AM
hi everyone
 
anyone in the room worked for epub reader before?
 
M J
hi
 
hi
 
M J
tell me
 
11:59 AM
i need to create epub reader in asp.net and android
do you suggest any library i used epub.js but it has limited futures
 
ya i used that only
i am looking for any other library
 
21 mins ago, by Mohsen
It seems like the example on that website is not working either ...
 
War
12:14 PM
Client: we want X , can you do it
Me: yes we can do that, we in fact already have a system / mechanism for that
Me: http post us your data
Client: ok we want a web service
Me: yes we have one, it's OData, we can also provide a REST endpoint
Client: no our system only supports web services, we need a WSDL
Me: ok you mean your system can talk to a SOAP based web service, we can build that
Client: great, have it by monday
Me: have what by monday? ... you haven't told us what you want yet
Client: we want a WSDL
and on and on and on
some people just don't get IT at all
 
What do you mean by people? Which people? It depends ....-.
 
War
in this case I mean people that claim they work in IT but don't understand basic terms like "Web Service" or "REST"
people that are basically SAP admins claiming to be developers
 
Yeah, i got that
But, i didn't get why you said that..
 
War
people that have a chip on their shoulder and refuse to get their head round the basics of http comms even though it's their job to communicate with third parties
 
yeah well...
 
War
12:19 PM
I now have to build a whole ton of stuff by tomorrow morning to meet this clients demand , so much stuff I somehow have to find the time to solve the current problem I have too for a pending overdue release for another client in the same time
 
@Mohsen he literally just repeated a conversation that demonstrate that people are dumbasses
 
War
something is not going to happen
 
@TomW - I f*cking get that pal!
 
War
@Mohsen clearly you don't lol
 
bye
 
12:20 PM
Reeep
 
@War ur services built on WCF?
 
He just paled you Tom
 
saw it boro
 
War
This all came out after a chat 2 weeks ago in which the outcome was that their tech guy was going to have a meeting with me to discuss the implementation
 
Shieet
 
12:21 PM
:)
 
War
today I get told ... it's being discussed in tomorrows meeting ... where is our WSDL
 
@War - Damn! i wasn't talk about that!
 
War
@arun we don't currently have a single WCF endpoint
everything is webAPI
 
ohh ok
 
War
I have experience in WCF so it's hardly a problem but it's like having an OS and deciding you'll write your own "just because"
 
12:23 PM
@War - Come-on leave it...i was saying something but, never mind
 
War
?
what's up ?
 
Nothing, Keep moving ...
 
War
I was simply having a typical IT pro rant about how dickish the people we have to report to can be
I figured you guys might relate
 
@War ya
 
War
The "technical expert" at our clients office is a moron IMO
he thinks "Web Service" means "something that can send and recieve SOAP messages"
like there's no other definition of that
and when I used the term HTTP I was told "our system doesn't support that"
:facepalm:
 
12:25 PM
atleast he should know basic things
 
War
My original request to them was "do whatever the hell you want but in the process make a http post to a url we give you, we will handle the rest"
his response was "I WANT MY WSDL"
 
Dumb question - If I make a Nuget package wth a bunch of dlls, Is that package compressed before getting sent over the network?
 
War
I couldn't have been more helpful surely!!
@SamyS.Rathore its sent using http with optional gzip compression ... the server decides that
the client can request it though
through a ???? Header cough
 
@War Can Nuget be used over a private network?
 
i am looking for epub reader can anyone help with that?
 
12:28 PM
@War lol
 
War
@SamyS.Rathore yes it can, you can setup your own nuget repo, it's basically just a hosted virtual directory
@RoelvanUden pretty dumb huh?
 
yeah..
 
Thanks @War
 
Many people do not know computers.
 
War
Am I the only person that expects a "technical contact" for a multi billion £ corp to know his shit and for that assumption to be reasonable
 
12:29 PM
Depends
 
I heard some action occured, any updates?
 
Our microsoft technical contact is a service representative that just opens a internal ticket
 
@War Heh.. you're still operating under the assumption that multi billion corporation has people that know what they are doing.
 
and then someone else gets back to us
>.>
 
War
@RoelvanUden Maybe that's where i'm going wrong ... I'm assuming you don't make money unless you have half a brain at least
@Failsafe this particular guy is the head of all their development internally for a major international corp
 
12:32 PM
Well, no. If there are other people more stupid, you can make money of them [1]. It's a very simple concept. References: [1] apple.com
3
 
War
^ LMAO
 
@RoelvanUden Some life shizzle there boyy
 
War
fo realz lolz
 
have a star, Roel.
 
12:35 PM
How has u been @RoelvanUden? It's been sometime
 
The doctors all say I'm perfectly healthy, so that's something.
 
@RoelvanUden Wow that reference is pretty solid
 
Can you provide me with some pictures please?
I have trust issues.
 
Pictures? Sure.
 
@RoelvanUden sensai, if i do catch(Exception any) is it possible to determin weter it was a Null-Reference exception or a Socket-Exception?
 
12:36 PM
 
ew
wtf
Is that how all british babies look?
 
unemployeed, but all good thanks!
 
Yes. That's before they get tea.
 
Now i am blind .. Thanks
@JakobMillah Who the fk you talkin to homie?
 
@JakobMillah you havn't told me yet how the scrum mastery went
 
12:37 PM
@Nerdintraining Sure, if (any is SocketException)
 
War
I can't unsee that @RoelvanUden
 
We have been scarred for life @RoelvanUden
How did we deserve such capital punishement
 
You asked for pictures..
 
The funny thing is, that's actually what Roel looks like IRL
 
@RoelvanUden thanks
 
12:41 PM
@ElieSaad You mad!?
@Nerdintraining Good meeting. They want references from my previous job though. So we'll see...
But it feels like I'll get it
 
@JakobMillah crossing fingers and holding thumbs, buddy
 
thanks boro @Squiggle
 
@Squiggle Yeah. I'm feeling quite sad with all these terrible reactions.
I shall not share more baby pics
 
@Squiggle this is .. Wow first time i see that emotional, you go squirrel!
 
I want moar
 
12:43 PM
hi
 
Thank you, my fair lady.
@JakobMillah i think it's my daily habit to be so ..
 
Does anyone have an idea about this example? dtkit.com/… it's not working on my side i guess!
 
@ProAmgad this is a private party bub, lets see your invite
 
@JakobMillah you've got the entire C# chat behind you ! ♥.♥
 
@ElieSaad SadFace
 
12:44 PM
Yeah just let them ask for a reference here.
 
you sure abpit that @Nerdintraining? :P
 
I'll sing kumbaja and tell them all about your heroic tales
 
Never.. Then they can check my chat history
 
I will testify that you are a great fuhrer Jakob!
 
i no understand what should i do ?
 
12:45 PM
stop squinting
 
donate $100 to csharpchat.paypal@amazingandsimplescams.com
 
squints nervously
 
@JakobMillah Crossing fingers!
 
Just tell the company you have all these masters behind you, you will be accepted in no time
 
Hang on ill google it b4 i ask you guys :D
 
12:47 PM
Too late, you left the cake in too long
 
is this chat with money ?
 
what?
 
Making money? Yes from this chat No
 
@rlemon why stop ?
sorry :( realy i no understand
 
12:48 PM
@ProAmgad only through online scams.
 
What's going on...
Instruction unclear, lost dick in c++ room.
 
You don't understand what?
 
@ProAmgad People have been using a concept called 'humor'. They're joking. They're being sarcastic. Ignore such people. Just join in! We have cake for everyone.
 
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
4
 
!!wat
what is humor?
 
12:48 PM
billions of dollar flowing in this chat
 
@ElieSaad are they out for harambe again in there?
 
but you don't tell anybody
 
It's hip to be square.
 
okay thanks :D
 
12:49 PM
@Failsafe OMG why isn't my subscription activated yet. Call the support for me.
 
@Failsafe Hahaha! Yeah man.
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
Hahahaha!
 
@ElieSaad [To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
@Squiggle Too risky to ask, might lose my life for it.
 
@Failsafe [To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
HAHAHAHA
@RoelvanUden throw at him a cookie will you
 
12:51 PM
hahahaha hidden message :P
 
@ProAmgad Here just go to this link to get in on the premium [To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
why doenst the hyperlink work?
 
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
+1 @tweray
 
12:52 PM
@tweray Exactly.
 
@tweray I couldn't agree more
 
somebody faiiiled :D
 
where is the link ?
 
2 guys failed xD
 
@ProAmgad I sent it
 
12:53 PM
@ProAmgad it was a joke about your small i's
sorry, I'm caseist
 
@rlemon wow you can't say that
 
@rlemon sorry i no understand this don't matter man :)
 
There's some trial keys available here C# Premium Subscription trial keys
3
 
but is this that is only for jokes i want ask? hahahahah
 
Then ask! :)
 
12:55 PM
@Squiggle you sure u dont mean this?
 
@Nerdintraining nah those keys expired a few years ago
 
I liked those keys
they were catchy
 
bbl. Gotta run an Angular training session now :D
 
stackoverflow.com/questions/39611051/… can you answer this question ?
 
12:56 PM
haha
 
is not clear inform me
if*
 
@ProAmgad what is your primary language?
 
Iam Egyption
 
so you do have a shift key
 
Not fluent english
 
1:01 PM
Well.
 
more info please what is a shift key
 
The answer is [To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
M J
??
 
@juanvan Arabic
 
!!wiki shift key
 
1:03 PM
The shift key is a modifier key on a keyboard, used to type capital letters and other alternate "upper" characters. There are typically two shift keys, on the left and right sides of the row below the home row. The shift key's name originated from the typewriter, where one had to press and hold the button to shift up the case stamp to change to capital letters; the shift key was first used in the Remington No. 2 Type-Writer of 1878; the No. 1 model was capital-only. On the US layout and similar keyboard layouts, characters that typically require the use of the shift key include the parentheses...
 
@CapricaSix aha ok thanks
@rlemon why shift key?
 
because you have little i's
let them grow up
 
Hi Guys i need some help in selecting data in my sql database and displaying it in a datagridview
 
 
@rlemon aha ok
 
1:08 PM
Hi Guys i need some help in selecting data in my sql database and displaying it in a datagridview
who can help me using Teamviwer
?
 
War
teamviewer is easy
 
yes
270 997 383
6k32bt
:)
 
I don't get who goes into a public chatroom with total strangers and gives them the credentials to log into their machine with complete administrator access.
 
iam not barack obama or putin
 
@AvnerShahar-Kashtan you are right but every one enter here want only benefits
 
1:18 PM
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
@HamreenAhmad Barack!
 
Hi here :P
 
@Donovan welcome :)
 
Thanks!
 
1:23 PM
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
[To view this message please purchase a C# Premium Subscriptionâ„¢.]
 
Is it possible to compair a row in a 2D array with an 1D array?
 
Does anyone know how to include additional files when publishing an asp.net project?
 
@Donovan sure why not
@Michael are they already in the project?
 
So I should loop through both then?
 
1:26 PM
@Michael from property in copy to output property choose always copy
 
@ProAmgad awesome that works.
 
You could also use copy if newer.
 
anyone know why a simple HTML page with an MP4 video would not play only on some servers with iOS 10?
I vaguely recall having to upgrade IIS when iOS 7 came out
this time it isn't my server
 
@Michael yes :)
 
1:46 PM
Why would this type of class be exposing the base class's constructors?
internal class ClaimsAuthorizeAttribute : AuthorizeAttribute
My understanding is that unless I expose them they shouldn't be usable outside of the class definition. My definition has both its own Default constructor, and one exposed ctor, yet in use I can still use the base of [string Roles, string Users]...
 
So should I loop through both?
 
War
0
Q: Linq to Entities and complex type casting

WarOk I have a ton of questions asked of this nature on here but none that actually solve this problem either fully or correctly. Lets assume I have the following code ... public interface IHaveRoles { ICollection<Role> Roles { get;set; } } public class Foo : IHaveRoles { public ICollec...

 
Removed?
 
@Donovan wait please :) i will send again
 
Okay
 
1:51 PM
do as this for(int i=0;i<D1.length;i++)
{
for(j=0;j<D2.length;j++)
{
if(D1[i]==D2[i][j])
{
//do something
}
}
}
note: D1 for 1D array D2 for 2D Array hope to help :)
 
nestled for loops. Shieet
 
And D2[i][j]) is D2[i,j])
??
 
!!tell pro format
 
@pro Format your code - hit Ctrl+K before sending and see the faq
 
@CapricaSix okay thanks :)
 
1:58 PM
@ProAmgad if(D1[i]==D2[i][j]) is if(D1[i]==D2[i,j]) ?
 
@Donovan yes
 
@ProAmgad Okay, thanks. No error's so, let's have a look!
 
@Donovan okay if not work tell me :)
 
How do I know when to use either a direct public method call, an interface or create and raise an event when communicating between classes? For example class a has an event that is raised and I want to also do stuff in class b.
I know how to use all three of those but I dont understand when.
 
@KalaJ I missed it as well :(
 
2:13 PM
For MVC, what's better practice: Set entire DB to an Entity Model, or break the DB down into different Entity Models. For instance, I have a User table and tables related to the user. I then have data management tables, and I have tables pertaining to "Patients". Would it be better to break them out into separate contexts?
 
Do you need them to interact with each other? Keep them in the same context.
 
Yea, I forgot that UserIDs are attached to the "Patient" tables. Thanks, didn't think about that.
 
You're welcome.
 
I have yet to find a good reason to have multiple contexts for a single database.
unless your database is huge and complicated it's not likely worth the hassle.
and you definitely do not ever want multiple contexts touching the same tables.
 
Yea, I'm used to webforms and have just ventured into MVC territory as of last week. It's VASTLY different IMO
 
2:19 PM
well, MVC and EF are orthogonal.
 
Yeah, welcome to sanity.
 
you can use EF with webforms, and you can do MVC without EF.
just... why would you?
 
I think the biggest difference for me, is the Action stuff. I'm used to telling a button to get a method and do something. MVC, I just don't get that part.
 
And that is the foundation of the ziggurat of lies which is webforms
 
@TomW I don't follow
 
2:25 PM
hi guys
 
@Kramb in MVC, you should have your 'buttons' either doing UI stuff exclusively, or calling Controller methods that process something, and generally return a new View.

My understanding of WebForms is that you'd have your buttons actually do that processing.
 
i have a question
i have two tables
t1(id,name)
t2(t1ID,name,phone)
t1ID references to t1 id column
now i want to display t2 in a dataGridView
 
@ChrisThompson Ah, gotcha. Yea that's the part I'm not crazy about. For instance, yesterday I was trying to setup a button to upload a picture for a "Patient" BEFORE the Create/Edit Action is performed.
 
@HamreenAhmad what the benefit of field name in t2 ?
 
i want when i display t2 in the dataGridView, instead of the t1ID it shows the name of that id in t1
its just an example @ProAmgad
 
2:30 PM
@Kramb you can still do that type of work, it just takes a more advanced understanding of MVC - particularly using things like Javascript and Ajax to call your Controller and do stuff without submitting the entire page.

The basic approach would be to do that work first in one page, then display a new page with the image that was uploaded and anything remaining to do the CRUD stuff (or however you feel you should do it)

The reasoning for this is to maintain a Stateless site and to make maintenance easier.
 
just make join you shouldn't repeat field
 
that fild not repeated
that 1 1 1 1 are a referenced columns in t1
that is the id
i want instead of that id it displays the name of that id
 
@HamreenAhmad yes make inner join between 2 table
 
@ChrisThompson Thanks for the tip! I'll give it a shot. Also, and I may not have a full understanding of Views yet, can I create a Partial View to post to server inside of another View without the parent View submitting?
 
how?
@ProAmgad
 
2:35 PM
BRB, going AFK for a break.
 
@Kramb Yes, that type of stuff is possible using Ajax and/or Child Actions (though my knowledge of these isn't vast so there may be restrictions I don't know of). It may cause a refresh of the parent page, though. Not sure if there's a way around that.
 
select t1.name,t2.t1id from t1 inner join t2 on t1.id=t2.t1id Group by  t1.name,t2.t1id
 
i want the final result would be t1.name t2.name t2.phone
@ProAmgad
 
sorry what is the different between t1.name t2.name ?
 
suppose t1 is emplyees and t2 is products
 
2:38 PM
@HamreenAhmad give one of them an alias.
 
both have name field
@ProAmgad
 
aha ok wait
 
SELECT t1.Name AS [ProductName], t2.Name AS [EmployeeName], t2.Phone FROM t1 INNER JOIN t2 ON t2.t1Id = t1.Id
 
thanks in advance Hehe @ProAmgad
 
select t1.name ,t2.name,t2.phone from t1 inner join t2 on t2.t1Id = t1.id Group By t1.name ,t2.name,t2.phone
@HamreenAhmad you are welcome :)
 
2:43 PM
why are you grouping by stuff in that query? it has no aggregate function calls.
 
@MichaelEdenfield the same result :)
 
bro @MichaelEdenfield iam not an expert in databases hehe
i just want it works
 
@HamreenAhmad hahahahaha don't matter will work :)
 
it worked on localhost Application
now lets test on c#
HAHA
 
with linq or ado ?
 
2:51 PM
who are they? :)
 
Actors.
 
okay test what you know :)
 
@RoelvanUden I summon you. SO is broken! They say not enough space for environment!
Try something on SO
 
War
wow that's amazing ...
1
A: Linq to Entities and complex type casting

WarWow, I never seem to get that dynamic linq has seemingly no limits but here we are again. Here's what I came up with ... public override IQueryable<T> GetAll() { var result = base.GetAll(); if (typeof(IAmRoleSecured<Role>).IsAssignableFrom(typeof(T)) && !AuthInfo.SignatureIsValid) ...

 
@ElieSaad ?
 
War
2:54 PM
it's back up now @ElieSaad
didn't go down for long
like a few seconds
they must have rolled out a minor fix for something
 
@ElieSaad this is just a hunch, based on the part where it says "down for maintenance", but I think it might have been down for maintenance.
 
So .. they just toyed with my feelings, didn't they?
 
no one know this ?
http://stackoverflow.com/questions/39611051/how-to-create-dataset-for-nested-list-to-show-it-in-rdlc-report-in-asp-net-mvc
 
2:59 PM
or, more likely, they briefly went down for maintenance.
 

« first day (2167 days earlier)      last day (2781 days later) »