« first day (2054 days earlier)      last day (2910 days later) » 

8:00 PM
if there is a long answer, you can just send me a link or write how to google it
 
As long as they are in scope they will remain in memory.
 
yeah, but many things will use the same file for something
currently each thing loads the file regardless if has been loaded in the past
 
That sounds like a design failure.
 
so it is a fail to have things use the same picture?
 
Pictures can be stored in memory without needing the file to be open.
 
8:02 PM
Windows App Certification Kit keeps throwing this error message: In the OnLaunched method implementation of the app, ensure you handle the LaunchActivatedEventArgs.PreLaunch option to be prelaunch event aware and I have no clue how to fix it.
I added the following code to OnLaunched event in App.xaml.cs:
if (e.PrelaunchActivated)
{
    return;
}
Anyone know what's wrong here?
 
Not I. Perhaps the wpf room would be more knowledgeable about desktop apps?
 
I'll try.
 
@TravisJ does that apply for any type of files?
and can I load the files in an object or something to have them stored for later usage?
 
@AlexSavAlexandrov - Yes that applies for any file type. You can store them in memory in their current state, and then close the file handle. If the file changes, your version will be the stored version and not the updated one though.
 
user47589
in fact, every time you open a file at least part of that file is copied into memory. i'm not sure if its possible to read a file without it going into memory, unless you do some low-level C stuff
 
8:10 PM
right, so I have to learn how to load files to the memory and make myself a "resources storage"
I have seen this being done by copying the files onto a byte array
 
!!tell Amy giphy guess what I added
 
I assume it is easy to convert file contents into a byte array and a byte array back to a normal file?
 
@AlexSavAlexandrov - Erm, nope :)
@AlexSavAlexandrov - The byte stream of an excel file for example is basically an entire operating system
 
wait what
 
8:18 PM
@TravisJ I am now setting HttpContext.Current.User = myUserIdentityPrincipal in AuthorizeCore.

but when I try to use @User.SomeProperty in a view, I am unable to access the custom properties of myUserIdentityPrincipal that I set earlier
 
@TomW - You can start here: msdn.microsoft.com/en-us/library/office/… There are a lot of additional links to follow to get into what each aspect does. It gets kind of complex after a while so don't waste too much time perusing it.
 
Oh, right. But you can interpret the whole physical file as a single stream, right? It just won't make any sense
 
@TomW - Yeah, it will be jibberish. And putting it back together may change it depending on how it is read in I think.
Long story short, excel files suck.
 
I am converting from relative path to absolute like this :
    var relativePath = HttpContext.Current.Server.MapPath("Download");
    var absolutPath = Path.GetFullPath(relativePath);
path still the same?!
 
Anybody have something similar to this happen:

1. Build sln.

2. Get error, "Metadata file ../xyz/abc.dll could not be found."

3. Rebuild project that produces ../xyz/abc.dll

4. Check that the file is in the correct location...

5. Build sln.

6. Get error, "Metadata file ../xyz/abc.dll could not be found."

Shiiiit
 
8:25 PM
\\api\\DealerPages\\Download"
still showing the relative hmm
 
@Nathvi sounds familiar, but I don't know how to fix it
 
I want to scream.
Tried google, SO, restarting vs, restarting my computer... idk......
 
I have a Web API where i want to register a user, I use the built in api/account/register endpoint but I want the user to verify their mobile as I send them a random code to their mobile. My question is - on the client side I have a verification code textbox to type in the code and submit. but how do i verify on the Web API which user the request is coming from because they do not have a bearer token yet because they not logged in yet.
 
I found that building a certain project deletes the dll I need that was created from another project... wtf
 
hey
anyone suggest a cheap holiday destination for a solo traveler in their 20's? (slight off topic)
 
user47589
8:28 PM
Vegas
 
user47589
or the beach
 
> cheap
> Vegas
 
not cheap though
 
No.
 
user47589
oh, cheap
 
8:28 PM
lol
 
unless I net monopoly money
 
user47589
a local highway overpass usually has some interesting things happen
 
I'm based in Europe btw
 
@BrianJ I know a few people who have been to Croatia recently, say it's awesome
 
hmmm
 
8:30 PM
@BrianJ - Amsterdam?
 
been to the Dam before
good suggestion though
 
@BrianJ - Islay?
 
wuttt Scotland?
I get enough rain in Ireland :P
Croatia sounds nice though @TomW
 
@TravisJ Okay, the whole thing is a simple 2D graphics engine, and many objects can use the same image. Each object has to know which image it uses - currently each object loads the needed image with System.Drawing.Image.FromFile() in its own separate method. And I don't want that. Instead I want to have the image loaded somewhere, a data structure or something, and then other objects to be able to use it, without loading the image again.
 
cheap too
 
8:32 PM
@BrianJ - They have all of the peated scotch distilleries there though
 
that does sound cool
 
Repeating the same message is unnecessary. Everyone who could see it would have seen the first one.
 
Oh my god this island has some good names
Arran or the Isle of Arran (/ˈærÉ™n/; Scottish Gaelic: Eilean Arainn pronounced [elan ˈarɪɲ]) is the largest island in the Firth of Clyde, Scotland. With an area of 432 square kilometres (167 sq mi) it is the seventh largest Scottish island. It is in the unitary council area of North Ayrshire. In the 2011 census it had a resident population of 4,629. Although it is culturally and physically similar to the Hebrides, it is separated from them by the Kintyre peninsula. Arran is divided into highland and lowland areas by the Highland Boundary Fault and it has been described as a "geologist's paradise...
Cock of Arran
Thundergay
Brodick
 
@trav
 
now I want a shot of peat whiskey
 
8:35 PM
NO way
 
@TravisJ - OK
 
@BrianJ :D
 
housemate is from here
man croatia sounds gooood
Cheaper than flying to Mexico anyways
 
Wow. Did electricity and motor vehicles cause him psychological issues?
 
and has some good outdoorsy activities
@TomW nope lol he can speak fluent Irish which I envy though as a "mainlander"
 
8:39 PM
@BrianJ - Blarney Castle?
 
I don't want to chance taking holidays here in case it rains all that week
 
@BrianJ - Stonehenge?
 
probably going to go to Coratia, maybe a group tour
looking like mid August
 
so
I'm now a DBA rather than a developer
and I think I like it >.<
 
9:06 PM
sweet
 
9:18 PM
 
 
1 hour later…
10:39 PM
are you guys all on the slack or something?
 
there is no one anywhere
@Codeman picking up a box of eternal masters? have a revised draft sometime in the near future at the lgs
 
yeah
 
@codeman Not I - nobody invited me to the slack ;)
though I am on 9 others atm
 
That is more then enough windows to watch
 
well, the .NET one is just outright hillarious sometimes
fun to see the community reactions to all of the official communications
but may stop watching it now that they're implementing and not talking
 
10:45 PM
is it like watching at the zoo? they say something, everyone rabbles but the animals never understand (well in this case read)
 
nah - there were a lot of people who understand pretty well
but are/were very pissed off
because MS really botched their messaging around .net core, IMO
 
11:05 PM
Hi world
 
Hello World
 
11:22 PM
hmm
why is internal less accessible than protected? @ReedCopsey ?
 
what do you mean by "less accessible" ?
it's just differently accessible
 
oh, nm
weird compiler side effect
something was public, should have been internal. Caused another bit to say that the accessibility was incorrect
 
our whole data binding framework is pretty ranchy
I just want a SQL type provider D:
 
:D
there's an awesome one
just convince people to use F#... ;)
 
11:25 PM
I can't even convince people to use async await
 
start putting it in the code make a trend
 
lol, people tell me to remove it in code reviews
 
that's stupid
not using C# 6 is just dumb
do they have a valid reason to avoid it?
 
people are also telling me to change my simple DataReader to use this big ColumnBinder framework for some servicing code that I'm deleting in two weeks
which is frustrating
when the column binder just uses literals anyways...
there's just so much unnecessary boilerplate code everywhere
like why do I need to write 100 lines and 3 classes of C# to execute a sproc and read the data out
 
yeah, that's why I like F# TPs - do that in 3-4 LOC total :p
 
11:42 PM
On a similair note (async), I've got a long processing time, and I'd like to use a progressbar. How would you do that? (simple outlines) using backgroundWorker, doWork?
 
using async/await
nowadays,t hat's pretty much replaced the need for BGW
 
will that also make my GUI responsive during proc times?
 
if you write it correctly, it can
 
Alright, I'll look into it, thanks
Also, best way of displaying graphical lines based on dynamic number of (x,y) points? like, I have about 70 List items, with their own start and ending coordinates, what would I have to use to put those coordinates on a canvas (panel) and draw lines between start/end points?
using WinForm
 
I don't think anyone here uses WinForms
 
11:52 PM
wo WPF all the way or?
 

« first day (2054 days earlier)      last day (2910 days later) »