« first day (2463 days earlier)      last day (2711 days later) » 

13:00
Hey there's even an overload taking a string directly
I could do that too...would it just be smarter to put the query's as a hardcoded case switch instead maybe? i.e. if the case is IsResolved, just have the full query but using LINQ's actual terms, so OrderBy(x => x.isResolved)
these shouldn't change..
and make a case for all 3-4 sortable columns?
If it's only a few columns and you can guarantee it will never change, then a switch is OK
Hmm, okie dokie
I think creating an expression would be 3 lines of code though
Oh really?
13:03
yeah
create a parameter exp, use it to create a property exp, and then put them both in a lambda exp
Finally broke 600 rep!
haha
Quick, someone downvote him!
lmfao, I'm 100% certain you can find an answer or two of mine worth downvoting hahaha
Nah, someone else do it, don't wanna lose dat rep
13:18
Flag these answers then :P
just looked at a python question, what in the name of God is a feature!? That has to be the UGLIEST thing I have ever seen
!!define feature
cap dead?
!!help
@Failsafe Information on interacting with me can be found at this page
13:24
!!/listcommands
@jHilscher help, afk, backup, ban, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 2020/07/23, 3, 666, :p, </pissing>, ?, ???, ^, ^5, abesnacking, abhi, abhishekpornfreak, acronym, afsari, ah, ahah, algosmarts
aliens, am, angry, angryticks, annoy, apocalypse, appreciated, archerneat, artisticpoop, artisticsilo
!!define feature
???
@rlemon define command not working for cap
!!/jquery
13:27
@Failsafe Yeah there are lots of broken commands
define was working though
recently
!!/define
hm ... nothing
@Kramb that is BDD. C# have same> specflow.org/getting-started
buuuuhhhh. Why is that a thing!? Do people really use them?
I tried out, but whenever You change the textual definition of the scenario, You have to rewrite the whole function that was generated... Unusable. But I think it was the normal version. Not the +
13:32
I gotcha
If You can make Your customer to write thoose scenarios for You, it's VERY effective. You have literally pushed all the work on the customer...
but noone will do it.
"I want it to just work. Can't You understand that?" <- usually that is the specification...
hahaha
14:03
How can I get a program to read its own project properties?
Properties[key]
Just realized we have an edit feature
It's Application.Properties
There's also Settings
Application.Properties isn't recognized
I'm trying to get the ClickOnce Installation Folder URL
From within my App.xaml.cs in a wpf app
ALso try Environment.CurrentDirectory, not sure how much that helps you but who knows
14:29
So I'm using MVC and have a model, but I only want some of the properties to render inputs if I feed that model into a View. I'm assuming I have to use data annotations but not really sure. Any ideas?
I'm not sure what you mean. AFAIK, the View only renders what you tell it to render?
e.g. Model has props A,B,C and View get told "Render A into this Box and B into that label"...then you got only A and B rendered?
user7480455
greetings all
Hi
I guess I don't even have to ask about your car?
user7480455
LOL
user7480455
I don;t drive and I am very poor
14:39
And still, you're 007
user7480455
but younger I would have loved an Aston
I was making a joke about 007 usually destroying his car before coming home
user7480455
I drove a Karmann Ghia back in '71
user7480455
yes he did ... Bond was tuff on cars
user7480455
they did a good job showing that in the movie film Quantum of Solace
user7480455
14:43
it's funny when that name was assigned to me I did not think about it's cultural meanings...
user7480455
I wish now I could select something else really
14:56
You sometimes let your fantasy go too far
user7480455
Hi K
user7480455
not fantasy sadly
user7480455
The life I have lived is all true
Well I'm out, have a nice weekend everybody!
user7480455
you do the same!
user7480455
15:11
Kamil how has your mvc practicing going... I am sure you are expert now!
Several GOP Congressmen spoke out in favour of a Trump impeachment: huffingtonpost.ca/entry/… This is gonna get exciting...
Nice try
user7480455
That's not good Kendall
user7480455
he is your head of state
No he isn't
user7480455
15:17
that would not be good for the country
Leaving him in wouldn't be good for the country
TIL Kendall is American
user7480455
oh I thought he was like your prime government minister ?
@mikeTheLiar I mean technically speaking...
@KendallFrey can you Canadians vote to impeach Trump?
15:18
lol no
No, I mean, I'm requesting you to
Please
Invade us
I'm honestly not sure if Pence would be worse or not.
I think I could legally vote in the US
But impeachment isn't a public vote, right?
3-5 millions times
@KendallFrey no, unfortunately. It's Congress
Or more specifically, the House
Then the Senate needs to vote to convict
With 2/3rds majority
user7480455
I don;t know much about the american politic... but there seems to be alot of hate
15:20
@Hypersapien At least he's not an awful human being so openly
Although this raises the question - can we have a recall of POTUS?
user7480455
of divide
@KendallFrey I don't know about that
@007 Oh there is
user7480455
first it was skin colour hate for the Obama
user7480455
15:21
now it is hate for trump
It's skin color hate for Trump, too
Those damn Orangers are taking jobs away from the honest hard working Americans
user7480455
that cannot continue... nations states fail because of stuff like that
user7480455
lol at mike
It's not hating people so much as the country is strongly divided between Democrats and Republicans, and there is very little agreement between them
user7480455
he is a slightly interesting hue
user7480455
15:22
I will admit that that
Imagine if the US split into Democrat and Republican nations
user7480455
it will
I wonder how they'd fare in comparison
user7480455
all republics have failed in history
user7480455
i can see america becoming like Europe
15:23
@KendallFrey depends on how they'd split
user7480455
spitting into parts
And the problem with that is that it's really a rural/urban divide so I don't know how you'd slice it up
user7480455
well cities would be their own nations
@mikeTheLiar Yeah it would have to be splitting the country in half and moving the people
I suggest splitting on the Mason-Dixon line
I'd like to see the actual liberal progressives get their own place separate from the Democrats.
user7480455
15:24
that would have to make articulated agreements with the farming areas
@KendallFrey I'm okay with that so long as I get moved to SoCal
user7480455
and industrial areas
I'd like to see politics based on issues rather than parties
!!giphy oh wait youre serious
15:25
@KendallFrey hell yeah. The party system ruined everything.
user7480455
much like the old documents of town and city incorporation of the past if I recall my American history from University
@CapricaSix Who was that in response to?
Parties per se aren't the problem, it's party loyalty indoctrination
I am currently learning how to develop and implement an API within ASP.NET using Web API 2. The thing is I intend to switch over to ASP.Net Core within the next few months. I found a course covering the former, would it be beneficial towards ASP.NET Core MVC api development? Or should I just focus on Core material?
user7480455
this is humanity Kendall
user7480455
15:26
we get into our groups
oh the humanity
user7480455
yes
user7480455
Germany is an example
If you have parties, you have people running the parties. That gives them power. In order to keep that power they encourage loyalty indoctrination
user7480455
15:27
Based on my time on this earth with all that I have seen and all that I have done and have been exposed too... everything fails
user7480455
no matter how much effort you put into preservation
user7480455
it all just turns into dust and blown away by the winds of time
user7480455
I think your Obama said America was a shiny city upon the hill top
*Churches and dictators*
*Politics and papers*
*Everything crumbles*
*Sooner or later*
user7480455
a beacon of decency
user7480455
15:29
but may be trump is trying to undo all of that.. or maybe it is not even true
America's ideals, maybe. But America has never followed those ideals.
user7480455
but removing him now would be a horror show
Hi guys
user7480455
yeah I agree Hyper it a charade like most things
user8265110
For a moment I thought I joined the wrong room
user7480455
15:30
and most places...
I need some advice on project architecture design practice
user7480455
the men that rule... are ultimately destroyed by it
user7480455
kings try to stay for ever... the new kings are the systems
user7480455
15:42
can you expand Leaning
I like our Queen.
user7480455
:)
15:57
Gawd bless 'er majesty
<wrings flatcap, grovels>
<discards fedora, growls>
Easy there, merkin boy
I like ________________
fill in the blank
what do you mean guys by "Scaled-out Engine" ? :/
Azure Notification overview has this but I don't know how to explain it ( Í¡° ͜ʖ Í¡°) /
16:09
@Steve'saD aren't you like semi-retired now? Don't you have better things to do than hang out in SO chat?
@mikeTheLiar yeah
driving to vegas in 10 min or so
16:25
@Steve'saD I called it
called what
2 days ago, by Kendall Frey
Let me guess, you're heading for Vegas
oh yeah
user7480455
I went there back in '68
user7480455
am sure alot has changed
16:55
uh huh
user7480455
When do you depart
user7480455
do you play casino games?
user7480455
17:15
Any Tennis fans here?
Need some advice. What would be the best way to handle ODBC to SQL that would run every day? I tried setting up entity framework to import the ODBC, but the ADO.NET Entity Data Model import won't accept ODBC
user7480455
are you needing to write data Kramb?
user7480455
bad question
user7480455
whats is your odbc source
No clue. I can't get an answer from the devs of this application. It's third party. All they do is provide us with the ODBC connection
user7480455
17:19
ahh ok
user7480455
well the easy way would be to use MS Access
user7480455
access can take in any odbc source
That's a big no. I won't touch Access
user7480455
LOL
user7480455
it would be a bridge
user7480455
17:20
because you could connect both sql via odbc and our 3rd part app
Oh, haha I see what you're saying
I saw Access and immediately had tunnel vision
user7480455
link the tables in access write som vba and your are done and dusted
user7480455
yeah people don;t like it but it is a wonderful tool
user7480455
you can write pass through queries where the sql server does all the work
You know what. I could import to excel and export a csv to write to sql
user7480455
17:21
and you will not have any performance issues
user7480455
yes that works as well
user7480455
back in '92 I did a lot of windows integrations
user7480455
and had to do lots of stuff with odbc
@Kramb I regret this already but that's basically what SSIS is designed to do
So after the initial import of all data, can SSIS then make conditional updates?
17:25
SSIS could do both if you needed it to
I'll look into that. I've never used it, outside of the Import/Export wizard, and would love if I could handle it in a single environment
Word of warning - when SSIS works the way it's supposed to, it's great. When it doesn't, it's literally worse than Hitler-AIDS.
lmfao, I'll do my research before I try anything. Thanks guys!
user7480455
17:41
Good Luck.. sorry for suggestion old tech but that is all I know sadly
Oh it's no problem. Your solution is still viable if I run out of options. I appreciate it
user7480455
Sure thing..
18:16
Hey, can someone go into Visual Studio 2017 and click Tools > Extensions and Updates. On the left-hand side click Online and tell me if you get an error
user7480455
I don't have that version
I get an error in 2015 but not in 2013 or 2012.
user7480455
I have 15 as well
user7480455
I don;t get the error in 2015
user7480455
18:22
looks like I need to update alot of things... hmm
@mikeTheLiar Yea, getting the same thing
18:41
So I think the caret for the dropdown is what is throwing that error -_-
user7480455
18:56
Hi Again all.. question again on what I have been working with for a couple of days
Ok, shoot
user7480455
so when you take a linq query into a var and now I al using the to .tolist() option
ok
user7480455
I am able to do things like .count but now I am unable to get out my selects vars
user7480455
is there a central place that explains all of this some where
user7480455
18:58
its like one door opens and 2 other doors close
You want to get data from each row within the list?
user7480455
yes
user7480455
yes in the select I have named vars
user7480455
for the two fields that are in the list
user7480455
when I step I see them
user7480455
18:58
but I can not access them..
user7480455
only items like .count
user7480455
but if I remove the .list
user7480455
i can get to the values
foreach (var item in myList){
    var item1 = item.Item1;
    var item2 = item.Item2;
}
user7480455
I will always only have one row
18:59
It's a list, you have to loop through each item contained within the list to access your variables
user7480455
do I need a foreach in that case as well
user7480455
ok got it
Well if it's always one, why are you putting it in a list?
user7480455
is there a place where all of these combination is listed that I can reference?
user7480455
because I was told to
user7480455
19:01
I was getting a major error yesterday
user7480455
and jamie (sorry I don;t recall the lads last name) sugguested .tolist
Oh that's right, you were getting the Enumerable<object, object[]> error
user7480455
adding it tolist solved my error
user7480455
yes
user7480455
im my notes i have he said try .AsEnumerable()
user7480455
19:03
but that gives compile error
If it's a single item in the list, do this:
var myItem1 = myList[0].Item1;
user7480455
ok get the value by the index let me try this
user7480455
again fantastic... how is it that you can solve so many problems Kramb? had you run into this before?? I have been on the search for wise solutions all night... I am not good at that at all..
I've been doing this for three years and had no other options but to learn it. I can retain this type of information fairly easily
user7480455
This worked a treat!
user7480455
19:10
ahhh
user7480455
with old age my internets text companion... retention of information leaves one's brain fairly easy I am said to say...
user7480455
some days I have to be reminded what my name is
user7480455
thank you all the same Kurt!
user7480455
I mean Kramb!
No problem
You just have to take it one step at a time
You can't think of it like List > Value
user7480455
19:13
that leads me to my grave old chum!
user7480455
yes I see that now
You need List > List Item > Variable > Property > Value
user7480455
you found a way into the list
user7480455
I felt like if I could see it in debugger I should be able to access it
No, the debugger does List > List Item > Variable > Property > Value for you and displays all steps
user7480455
19:14
I just could not figure a way... and my searches were getting cluttered with linq information I guess
I'll be back
user7480455
I see... ok thanks
!!afk Phone && smoke
user7480455
20:02
maybe I am the only one that has run into this... but my error os cannot implicitly convert type 'system.exception' to bool
user7480455
and I know why
user7480455
my question to anyone.. what do you return when a bool functions throws and exception>?
user7480455
I have conditions I need for true and false.. but there is a situation where the test can fail and I would like to handle that exception
user7480455
or should I just do the try catch outside of this function
user7480455
and deal with an exception on the outside vs the inside?
20:08
@007 You don't return. You throw an exception.
user7480455
ok thanks
try{
//...
}catch(Exception ex){
Throw ex;
}
This does nothing, correct?
Just double checking whether I can safely delete it.
drops the stacktrace
@TomasZubiri It resets the stack trace
Omg, every function has this. Why would they do that.
20:13
Which is almost always a bad thing
wow they're bad
Probably because it is presented to the user.
Wow...what did the programmer think they were achieving?
I presume, the error messages were getting too bulky with a 40-stack deep function crash.
Then don't show users stack traces
20:15
Yeah how inconsiderate of them to try to tell you what happened
and yeah also that
user7480455
THanks Tomas
user7480455
and mike
In fact that would be a good code analysis rule
Error: Form event handler permits propagation of exceptions
i.e. you must handle all exceptions and guarantee that an unhandled exception is never displayed to the user via a form event
Nice rule.
Public Function ConcatenatedString(ByVal source() As String, ByVal separator As String) As String
    Try
        Dim resultString As StringBuilder = New StringBuilder()
        Dim firstIsDone As Boolean = False
        For Each s As String In source
            If firstIsDone = True Then
                resultString.Append(separator)
            Else
                firstIsDone = True
            End If
            resultString.Append(s)
        Next
        Return resultString.ToString()
    Catch ex As Exception
!!eyebleach
20:19
@KendallFrey That didn't make much sense. Use the !!/help command to learn more.
@KendallFrey I know right. VB...
Is it possible for a web service to get a client's IP address? I tried HttpContext.Current.Request.UserHostAddress, but Current is null.
That appears not to be possible
266
Q: How to get a user's client IP address in ASP.NET?

mahdiahmadiradWe have Request.UserHostAddress to get the IP address in ASP.NET, but this is usually the user's ISP's IP address, not exactly the user's machine IP address who for example clicked a link. How can I get the real IP Address? For example, in a Stack Overflow user profile it is: "Last account activ...

user7480455
Hi All, Me again... I keep digging holes that I can't get out of... much like my grave as I'll be dead soon... but can this logic not exist?
user7480455
                                                  if (SomeQuery.Count == 0)
            {

                if (SomeQuery.Count <= 1 && ID == Q_ID)
                {

                    return true;
                }
                else if (SomeQuery.Count >= 1 && ID =! Q_ID)
                {

                    return false;
                }

                return true;
            }
user7480455
20:32
i am receiving an error that states Operator && cannot be applied to operands of type bool and int
@007 If SomeQuery.Count == 0 then it will always <= 1 and never >= 1
Also, it's != not =!
user7480455
it was the !=
user7480455
sorry for that
user7480455
wow
Also, don't use if statements to return bools, return them directly
user7480455
20:34
what do you mean?
as in return SomeQuery.Count < 1 || ID == Q_ID
or since you already have == 0
user7480455
oh you mean don;t test bools?
nvm that will always return true
so what you have is essentially
if (SomeQuery.Count == 0)
{
    return true;
}
user7480455
yes
user7480455
this it the escape so to speak
20:37
lol
a.k.a. I have no idea what I'm doing
user7480455
if there are zero rows I want to not trow an error
user7480455
So that also meets the true condition for it
Well, what's with the other bits that you posted?
If it's always gonna return true, those are useless
user7480455
well if it has a count creater than zero
if(SomeQuery.Count == 0)
    return true;

if(ID == Q_ID)
    /* do something */;
else
    /* do something else */;
user7480455
20:39
I need to then test another thing
user7480455
oh...
user7480455
you are showing that it should be outside and not inside
idfk what it should be
Just write it like you mean it
user7480455
ok I will make modification
user7480455
gosh i am now living the actual role of blood sucker...
user7480455
20:41
but I do thank you for the help
user7480455
all of you that have helped thanks
I've seen worse vampires than you
user7480455
yes the vampires
/s/seen/killed
Kendall Frey, Vampire Hunter
user7480455
but Now it is a bit clear because the return will act as a terminator and exit out
user7480455
20:44
so as some the condition is meet the return moves it out of the condition test
user7480455
Anyone interested in the Moon?
user7480455
here in the chat room
Moon is a great movie
I've never watched it but I kick myself for spoiling it
I heard it was good, read too much
user7480455
21:03
never head of that film
21:21
Hello Guys
@juanvan , yes thanks worked fine .
user7480455
21:36
Hi
22:00
would anyone please check the solution in this link and tell me if it the best solution or no
https://stackoverflow.com/questions/29403232/how-can-i-dynamically-add-data-to-a-list-property-in-view-model-in-a-razor-view
I am an MVC Beginner , i can work but don't know which way is better
22:58
How the hell is a columns length for a string set to 20 going to accept a string greater than 20???

« first day (2463 days earlier)      last day (2711 days later) »