« first day (2523 days earlier)      last day (2417 days later) » 
02:00 - 14:0014:00 - 21:00

2:09 PM
!!failsafe
 
2:30 PM
Nothing like working with COM interfaces
Literally complaining over getting a string after asking for one.
 
@WilliamMariager no, its complaining because you gave it a colour id of #FF00FF00 Which isn't a valid code
hex is six digits
 
So you're just assuming no alpha?
Did you just assume my color space?!
 
Every colour code i've done that needed alpha was rgb(x,x,x,x)
I'm guessing that won't be supported
 
rgba(r, g, b, a) ?
 
^ that
 
2:34 PM
Hmm, if my stack trace has a line like Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid.DataBind() +714, does the line number there imply that my system has a plaintext source file for Infragistics somewhere that I can examine? Or is it still possible that Infragistics is a compiled resource and the line number is all the debug information that's going to be available to me?
 
Both of those look like CSS?
 
I stand corrected actually
oh shit
try removing the #
I can only assume it just doesn't like the symbol
 
Just tried that, still not working.
I'll try a CMYK color and see if that works
 
I'm guessing it's the latter since my solution doesn't have an Infragistics project. It's either here or nowhere.
 
I think it depends on the build
If it's debug I think the stack trace has line numbers
Which go along with the pdbs.
 
2:38 PM
Yeah I'm pretty sure it's a debug build.
 
I wonder if I'm passing in the "wrong" string type. Like, maybe they use something internally.
 
Hmm, does the Yellow Screen of Death typically show the stack trace of the InnerException, as well?
 
yellow screen?
 
@WilliamMariager what com library are you using specifically
 
2:41 PM
YELLOW SCREEN OF DOOOOOOOOOOOOOOOOOOOOOOOOOOOOM
 
@Kieran Adobe InDesign CC 2017 Type Library
Very very half assed
 
welp
 
I'm getting a NullReferenceException in QA on a line this.WebHierarchicalDataGrid1.DataBind() and I'm 90% certain that neither this nor its WebHierarchicalDataGrid1 property nor WebHierarchicalDataGrid1's DataBind methods are null, so I'm trying to get more diagnostic information
 
Are there docs for this?
 
Nothing I've found. My main reference is finding javascript scripts made by users and then try to translate it into C#.
 
2:43 PM
well shit
 
Most of it is dynamic which is such a blessing ...
I constantly have to check the type to figure out how to interact.
Btw, interesting thing :P You were kinda right about the color space. InDesign doesn't support color transparency. So even though it's common everywhere else, it isn't in InDesign.
It does support object transparency though, just not on the color level.
 
\o/
I knew my stab in the dark totally correct response was right
 
I can figure out on my own whether the YSOD shows inner exceptions, but it would take maybe half an hour to get everything configured on my local machine, so I figured if anyone knew off the top of their heads it would save me 29 minutes and 55 seconds of labor... Oh well.
 
Success!
rectangle.FillColor.ColorValue = new object[] { r, g, b };
Obviously
 
noice
 
2:52 PM
I fear I'll get decent at doing InDesign interop and then accidentally tell someone.
 
@WilliamMariager what the shit lana
 
((Color)((Rectangle)rectangle).FillColor).ColorValue = new object[] { r, g, b };
There it is with types.
It's all dynamic
 
3:09 PM
"new object[]"
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHH
 
All right, I managed to unhook the custom error page monstrosity from my project so I can see the default behavior of the YSOD. And the answer is... Yes, it shows the inner exception too.
I'd like to pat myself on the back for my excellent time estimation skills. Started at 10:48, finished at 11:18. Thirty minutes as predicted.
Probably could have done it in five if this code base wasn't a rat's nest and/or if I was about ten percent more competent, but c'est la vie
 
3:28 PM
@Kevin It's easy to make exact predictions. Just overestimate, and fill the extra time with reddit.
 
"just overestimate" uhm... thats not easy
 
@Wietlol sure it is. "one googol"
 
one googol what?
hours?
 
nanoseconds?
lightyears?
 
3:36 PM
doesn't really matter, but has to be a unit of time
 
aw
 
So not lightyears.
 
or parsecs
 
"When will the project be done?" "Uhm, in about 10 meters"
 
duh
 
user7480455
3:47 PM
Hi All
 
eHlo
 
user7480455
how are you sir
 
4:07 PM
Here for the day!!
 
user7480455
Awesome sir
 
4:41 PM
I have a class (ResourceConstants) that contains a bunch of "public const string" and I want to make a method that will only accept one of these properties from this class instead of simple a "string" value. Is there a way to do this?
 
You want a method that will only accept a specific property of a specific object?
 
Yes
To avoid other developers from simple type in strings, I want to make sure it is a string of this specific type
simply typing in*
class type*
 
I don't think you can enforce that on a code level. The only thing that I can think of is making that method only accept that object and using that property inside the method
But even that you can get around
var foo = SpecialMethod(new Bar() { SpecialString = "lol i do what i want"});
This sounds an awful lot like an X/Y problem.
 
sexist
 
Sorry, X/X problem
Or XXX if we're dealing with Ted Cruz
 
4:48 PM
Hmmm, I had look up an X/Y problem. I'll have to think about it some more.
@mikeTheLiar Thanks for the help!
 
👍 good luck
 
user7480455
I read that you all had issue with cyclones... were any of you in the affected areas?
 
Not me personally but several members of my family were.
 
user7480455
ok are they safe
 
They were as of Thursday. It's been a communication blackout since then.
 
user7480455
5:02 PM
wow... I wish them and you the best
 
Thanks
 
user7480455
wow
 
user7480455
they are powerful systems for sure
 
user7480455
it removed all of the leaves??
 
5:07 PM
Yep
 
user7480455
or have the seasons changed?
 
user7480455
that is very powerful
 
^ because you don't click links :)
bbl lunch
 
user7480455
yes I am seeing this
 
user7480455
that beggars belief
 
user7480455
5:14 PM
Gosh I know this is a space agency site but if all of that vegetation is gone
 
user7480455
I would think it would be in the surrounding waters... or are they saying that that was due to salt spay and the drying effect of cyclonic winds?
 
5:38 PM
Hey, I need advice on how to write good unit tests to test if data is being uploaded from the server
should I just test a few expected fields and results and see if the write data is pulled?
 
being downloaded from the server?
 
I mean like pulled from the server
get request
it calls an api endpoint
and I need to write unit tests for it
 
retrieved, I get it
usually we upload to a server, and download from it - strange the way you worded it
 
yup
opps sorry
 
So you have an API, and it's working now you want to write a unit test
 
5:42 PM
yup
Is the best way really to just hardcode some values to expect and then assert if they match those values?
 
There a way to always have a test item on the server to retrieve?
 
not sure but I could always populate the db with test data at first then test the test data?
 
sure
 
6
Q: How to unit test code that downloads a file from a github repo

Maria Ines ParnisariThis is my solution's structure: Storage.csproj > FileDownloader.cs > GitHubProvider.cs (implements IStorageProvider) > IStorageProvider.cs Storage.Test.csproj > FileDownloaderFixture.cs The idea is that I can use the class FileDownloader, inject it with a IStorageProvider, call m...

Here is a good starter example of a Download UnitTest
 
5:49 PM
thanks!
 
6:11 PM
@007 nah, it was just stripped off by the wind. Whirled away into the storm and taken god knows where.
 
Well it'll recover assuming the trees are alive, I suppose
Speaking of which
It turns out that plants like fertiliser!
 
Yeah I saw a study that said that plants tend to recover pretty well after an event like this.
 
user7480455
Ahh ok
 
tl;dr on that one a rainforest preserve made a deal with a juice company that they would allow the company to dump their waste on an area of damaged forest on the condition that they were ceded a parcel of pristine rainforest in return
The idea was to learn what happens when you dump a load of compost on a damaged forest. Turns out it regenerates really damn fast
 
user7480455
life is unstoppable I am told
 
user7480455
6:18 PM
the conditions have to be right
 
hiii
 
user7480455
my guess that is one of the reason scientist have decided to crash up Cassini saturn prob
 
user7480455
which seems so silly to me
 
user7480455
hello
 
@007 I think they're doing that because it's mission is over and they want to gather as much data as possible.
 
user7480455
6:29 PM
well that and they don;t want to contaminate the water on the moons
 
If there's any possibility of life on those moons, I don't think they have any right to take the chance
I mean I suppose there's a slim chance of life on Saturn, but that's pretty remote
tfw the only other life in the solar system is 2-dimensional plasmon-based on the metallisation boundary of Saturn's core
 
user7480455
I understand their point of view... but I would have slung the robot in to deep space
 
@TomW Have you ever considered what would be required for 2D life?
 
only in passing
 
@007 They've already done that with others. There are new things to be learned by crashing it into a planet instead.
 
6:37 PM
I'm aware of Flatland and have read excerpts
 
Flatland doesn't consider that at all
 
user7480455
maybe so
 
imagine a 2D digestive tract
it would literally split an organism in two
 
user7480455
but that is 90's tech vs 70's tech I would have sent it perpendicular to the ecliptic
 
6:48 PM
@007 That's insanely expensive
 
user7480455
you mean the monitoring?
 
user7480455
or the maneuver
 
the maneuver
 
user7480455
the planetfall maneuver got the robot up to 76,000
 
user7480455
that was using close orbits... at that speed they could have broken free of the saturnian gravity well I am sure
 
user7480455
6:52 PM
I am not sure what the escape velocity is for Saturn
 
user7480455
but they still have fuel on board for a burn
 
user7480455
okay based on the internets they say the Saturn EV is 35.5 km/s
 
user7480455
so the they are over 30,000 kps short with the deorbit flight they are doing now
 
7:07 PM
its a day early but for those that can have it delivered in time, here is a great programmers day shirt
 
LOL I dig the shirt
 
:)
it reminds me of me 60 percent of the day
 
What does it remind you of the other 40%?
 
top 60 and bottom 40
@mikeTheLiar you were hoping for something a bit deeper and I failed...I am working on resolving code issues in inherited code.
 
Hey, anyone know a better way to update a many-to-many relationship in EF without querying for objects when you already have the relationship's key?
Ex:
Person entity has children and parents.
There is a join table that connects the two. When adding a newborn child, the parents exist already. They already have ids.
I've got the id's already, I just want to avoid having to query the database a second time to get the whole person entity.
(They search for the id's in another form)
Looks like I could use Attach, but it's still a bit clunky.
 
7:31 PM
I am attempting to user dotnet new to spit out boilerplate for a core 1.1 project. For example: dotnet --fx-version 1.1 new web
 
Hi, I know it kind of stupid question, but what is user id and password in the connectionString
 
I want the templates from 1.1 (or for 1.1) and I think fx-version just affects the runtime for running an assembly.
 
if there's article explaining them in SQL, I'd be grateful if someone pass it to me
 
@MohamedAhmed I don't understand what you mean.
 
user7480455
7:36 PM
Normally that is the information to log into the sql server
 
take this example:
Server=myServerAddress;Database=myDataBase;User ID=myUsername;
Password=myPassword;
what are user id and oassword
 
The username and password for the SQL login that you want to use to connect to the database.
 
user7480455
that is the sql authentication
 
user7480455
your dba will have set that for you
 
Use Integrated Security=SSPI to use your Windows credentials
 
7:38 PM
@mikeTheLiar what are they mean to the end user? and why should I add it to my connection string?
 
The end user gives exactly 0 shits about what SQL credentials are being used.
At least, they shouldn't. Because otherwise something is very, very wrong.
 
@007 I think I got it .. now I can imagine how stupid my question is :/
 
user7480455
there is no such thing
 
user7480455
as a stupid question sir
 
@mikeTheLiar it's useful if the dev doesn't want the user to access the database?
 
7:44 PM
The end user does not need to know how they're accessing the data. They don't care about the database.
 
Any suggestions on my question?
 
user7480455
Hi tyler... you may not have to
 
user7480455
If you use find
 
user7480455
since you have the id already correct
 
user7480455
somemodel mymodle= db.somemodel.Find(id);
 
user7480455
7:48 PM
maybe something like that
 
user7480455
then you can type like mymodel.somefield
 
Huh. Didn't know about that method. Doesn't quite do what I want, but it's better than what I got.
 
user7480455
and set you values that way... if I understand what you are trying to do
 
Problem is they won't be in the context.
 
user7480455
can you maybe give an example
 
user7480455
7:50 PM
of what you have
 
user7480455
I am not all that good in my understanding with EF
 
user7480455
but we have it in a project that I oversee so I can look the stuff we have done for an example
 
Basically I have a MVC page that allows users to add items that have related items of the same type. There is a join table that connects child to parent. Since the page is heavily asynchronous (ajax), the same context won't exist which is why you have to re-query.
Find is definitely an improvement though.
The Ajax calls return the ids as they add them to the parent, which may not exist yet in the database.
 
user7480455
ahh ok.. yeah I am very new to mvc... I am sure the gurus here can help
 
user7480455
gotcha
 
user7480455
7:53 PM
I have a problem like that in a similar area
 
user7480455
but I am sure what we did was not orthodox
 
Still very much a EF question, just due to the nature of MVC, the same context will not exist.
I might just have to attach.
 
user7480455
I added a new record and then saved that value to the database to get the iD
 
Then manually updated the join table?
Just trying to avoid doing that.
 
user7480455
yes
 
user7480455
7:56 PM
yeah I took the long way around the complex sadly
 
I'd have to create an entity for the join table which I am trying to avoid since it really is more of a "how" rather than a "what" if that makes sense.
 
user7480455
yeah
 
user7480455
I was looking for what I did to see if it was something I could share
 
That's the proper name for the join table: junction table.
 
user7480455
there is a guy named Alex that is in the sql room from time to time that seems to be very good with SQL and EF he may be able to to guide you
 
8:02 PM
Always forget the proper name. lol
 
user8010252
Hello, about new{} any idea what it does?can it allow me to include two variables at certain level like this theninclude(x=>new{x.a,x.b}).theninclude (p=>p.x.a.a)
 
Yeah, it's just something I've noticed having to do quite a bit and it's starting to bug me that have to do a good amount of querying for something I already know is correct.
 
user7480455
That's how I feel about EF
 
new {} create an anonymous object.
 
user7480455
it seems like you have to make a return trip to the db to do stuff
 
8:08 PM
Yeah, one of the downsides to it, however it's just so damn useful.
 
user7480455
I agree
 
Going to try the attach method real quick and try it out.
Brb.
That works. Is a bit clunky, but doesn't query multiple times
var children = newPersonViewModel.Children.Select(x => new Person { Id = x.Id }).ToArray();

foreach (var c in children)
{
    Context.People.Attach(c);
}

var person = new Person
{
    Children = children
};

Context.People.Add(person);
Context.SaveChanges();
Changed a bit cause I don't own the code I write. Lol
 
user7480455
Looks good
 
Thankfully even with children and parent navigation properties you can do a union in the foreach statement to avoid repeating yourself.
 
user7480455
8:25 PM
This allows you enter more than one record at a time
 
user7480455
this is very nice
 
Yup, that way is you only save changes once.
Particularly handy if you use the ZEntityFramework's BulkSaveChanges.
So you avoid an insert statement for each row.
If you haven't checked out that nuget package before, I highly recommend it. I am only currently using it to migrate databases since we have yet to buy a license, but it managed to reduce the time of inserting hundreds of thousands of rows from an hour long ordeal to a few minutes.
Which is invaluable for testing. Lol
 
user7480455
I will do that
 
user7480455
many thanks
 
user7480455
bye for now.
 
8:35 PM
how to implement a port listener or get the ips of people on the port over a lan?
 
Need more info than that.
Is it a port your program is assigned?
And if you just need a traffic listener, you could try Wireshark or Telerik Fiddler.
 
8:57 PM
Or not
 
02:00 - 14:0014:00 - 21:00

« first day (2523 days earlier)      last day (2417 days later) »