« first day (2862 days earlier)      last day (2094 days later) » 
01:00 - 14:0014:00 - 19:00

2:01 PM
ten5?
 
10five
 
Don't we have a story somewhere?
@Squirrel do we have a bash?
!!ten5
 
@Squirrelkiller i know a story
 
Jun 12 at 14:22, by ten5
i n a b i l i t y
 
2:03 PM
if you ToList() an IEnumerable...does it guarantee the order in which the results were returned?
 
^ that is a story, no rebecca black
@erotavlas it guarantees that the list has an order
 
but is it the order in which the Iennumerable returned its results?
 
probably
yea
 
It's not guaranteed, but like 99.9999999% of the time it is.
The one time ever where a reflection actually manages to get in there
 
it is guaranteed to have the same order as the IEnumerable iterator result
 
2:06 PM
ok good enough for me
 
It is?
 
it simple does new List(source)
which does a foreach loop
which has the order of the iterator
but that does not mean that it will be the same as the iterator source order
shady things like AsParallel() can change the order between the source and the result
 
@Wietlol bad rebecca black
no
how do you guys like opening programs through C#?
i was looking at opening the calculator through a system.diagnostics.process
is that best practive?
 
like... Program.Open(); ?
 
^pretty much
 
2:12 PM
i wouldnt really use an external process for simple tasks
 
define simple lol
 
but if your application is meant to control some other processes or use another application internally, you should be fine
a calculation for example is not such a big deal
 
awesome :)
 
but if for example, you make a Git-ui application, please use git processes :D
dont try to recreate its behavior
 
i shall keep that in mind
i doubt ill be going that deep though
am i being an idiot
trying to open calculator here
initialising a calculator instance
void CalcPress_Click(object sender, RoutedEventArgs e)
{
Process calculator = new Process();
calculator.StartInfo.FileName = "Calc.exe";
calculator.Start();
}
this is entirely wrong right?
 
2:28 PM
Process.Start("calc.exe"); would be sufficient
 
amazing
i do enjoy complicating things
throwing me an unhandled now
fml
XD
 
Soooo, UWP cant handle app launching
so im gonna have to go down the custom calculator router -_-
fml
Well, atleast i can theme it
 
Yeah UWP is very limited
Should use WPF if you want full API access
 
anyone familiar with signalr about?
having some trouble passing query strings to the server
 
2:40 PM
ive dabbled but probably wont be too much help
<3
 
aye captain
 
passing a query string through to my hubConnection doesn't seem to pass through to the server
and i'm reaching the end of my rope
herp
 
any exceptions?
 
read the documentation and i think i'm doing it wrong
sec
 
2:42 PM
lol
code blindness? :P
im suffering a shit ton with that today
 
potentially
 
fingers crossed
 
fuck my life
worked first try
Rubber Duck strikes again
 
2:57 PM
LOL
Le Rubber Ducky
Anyone ever used ProcessLauncher?
it may be uwp exclusive so not sure if relevant
 
3:34 PM
look what I made
matrix rainover stuff
 
4:21 PM
Anyone know of an algorithm for managing a set (in the mathematical sense) of objects where the keys are mutable but that I can still do fast (preferably O(1), but faster than O(n)) lookups of objects in that container?
 
> Entity Framework Core doesn't support Automatic Migrations
:(
 
@Tanktalus You can have mutable keys with no problem as long as they retain identity
 
@KendallFrey most of the C# set / dictionary containers want immutable keys, which leads me to believe I need to implement this myself. Key changes can (rarely) change order in my case, and the identity of one object can become the identity of another object (e.g., object 1 becomes object 2, while object 2 gets a new (unused) identity, so the key of "2" would have changed which object it refers to).
 
ok I'm a little confused
but it sounds like you want more than just keys which are mutable objects
 
4:37 PM
I need a container where I can store objects which may report changing keys over time - the key (or identity) during insert doesn't necessarily match the key (or identity) later on.
And I need to look up objects based on their current key, not the key when it was added to the container, and that lookup needs to be faster than O(n) as I'll be looking up many of these objects quite repeatedly.
 
What happens if a value decides its key is the key of another object already in the set?
 
While in the general case that would be a concern, in this case I know that will only happen during discrete windows when I'm renaming a bunch of objects, but when I'm done the rename, all objects in the set will again have unique keys / identities.
And, since I'm not anticipating being threaded, I can be sure that no lookup-by-key will occur while the renaming is going on.
 
In that case you can just recompute the keys when you're done. Using built-in classes, it's probably about as easy as just creating a new dictionary and copying stuff over.
 
mr5
@Tanktalus can we have a visual for this "mutable" keys you're describing?
 
Yeah, I was hoping to avoid that - while all my tests only have maybe 50 or 100 objects max, most under 10, I anticipate production having thousands of objects, and pathologically possible 1e6+ objects... :)
@mr5 - I have, basically, a sparse set of indexed objects to cache. Need to be able to access arbitrary data at arbitrary indexes (or ranges of indexes), creating new objects at arbitrary indexes. So far, a dictionary would be fine, maybe even a sorted set. But also need to insert objects at arbitrary indexes, thereby increasing the index of everything higher than that, or delete arbitrary indexes, thereby decreasing the index of everything higher than that.
And, just because someone is being a pain :) also have to consider that an object may move from one position to another, effectively deleting from its current position and inserting at the new one, effectively renumbering all objects in between the two positions, or swap with another object, effectively only changing those two indexes.
 
4:57 PM
@ABuckau Reporting in from home PC does not make any beeps when I try to boot it. Just starts fans and lights and sits there.
@nyconing Am home, removed and reinserted cmos battery, nothing. Don't have aluminium foil right now so I gotta do the shorting tomorrow when I got some.
 
You should be able to short with any metal object
Even like the end of your phone charger (obviously without the other end plugged in
 
mr5
why am I very poor at comprehending things
 
Good point. Will try not to destroy anything important.
@mr5 Because your filipino obviously
Or because you're black, whatever floats your boat.
I'm scared
 
mr5
@Squirrelkiller I'm poor at heart, financially, and now in comprehension :(
 
God damnit that ping made me jump
I was holding a USB plug ot the cmos thingy while startnig the pc and hoping for a little beep when suddenly PI-fucking-ING
Also, what leads you to the thought of being stupid? Trying a new framework?
 
5:10 PM
Another thing I do sometimes is pull out the battery, pull out the PC's power cable and spam the on button for a minute or so, leave it a few more minutes and then try again
 
That sounds as if this is a periodical occurence for you
 
I mangle stuff enough
 
mr5
new GMail
 
Wow, your new inbox looks really tidy
I'm just gonna make some tortellini while my powerless pc decides to maybe work brb
coincidentally, microsoft just updated outlook.com too. Not sure what they changed though, but they made a big screen "we listened to you beta people, here's the update".
A library that lets me start a process on a machine wiht several users but I can check if that particular file (or ID I give it?) is already runnnig on that machine and choose not to run it.
How would you call that?
Also: semaphore and just check for the id?
*Name. I think the semaphores id is called name.
I'd like to avoid just putting a file into a folder, it's slow and unreliable.
 
@Squirrelkiller I have an old PC that does the same. Let me know when you solve : p
 
5:24 PM
Since the mainobard is 9 years old, my money is on "get a new cmos battery" XD
The shorting hasnt worked so far, although I'm not convincd I did it properly.
 
That shouldn't stop it from working: it just wouldn't retain settings.
 
oh
Well I'm also not convinced I plugged in everything I need to.
 
AFAIK..haven't built a PC in ~10 years. Shit has probably changed somewhat.
Sounds plausible.
 
mr5
@ABuckau @ABuckau Guess the new name for Motherboard
 
Zerboard?
 
mr5
5:27 PM
@Squirrelkiller ew
 
Zim?
 
mr5
it's now called fatherboard
 
Shamallamadingdong board?
Oh.
 
Why not parentboard
brb eating those tortelini
 
mr5
support .webp preview @SO
also, who's watching TI8?
also, why Swedish people so tall
 
5:41 PM
lol SO chat hasn't changed in years
 
mr5
really?
then this was done by very good developer(s)
 
6:00 PM
WinXP was done by very good developers. Hasn't changed in years either. Doesnt mean you should still use it.
Not changing isn't really an indicator of how good something is, I think.
Also hi I'm back tying to trick my pc into working.
Replugged, reinserted cmos battery, started, no image & no beep :/
 
Are you sure everything is plugged in? The 4 or 8 pin CPU power which usually plugs in near the cpu?
 
yup, 2x4pin is plugged in. 12pin rail is plugged in too.
 
mr5
check if the transistors count are still correct
 
brb counting transistors, see you in 3018
 
Try taking out any PCIe cards and see if anything wakes up
 
6:15 PM
On it
 
If you had a web system that had a base project, and three offshooting front ends that all used the base project and passed an object back to the base, and the base project needed to format the data in the object properties, but the definitions of how to format the data was in each of the offshoot frontends (all different formats) how would you do that?
Frontends can reference the base, but the base can't reference the frontends.
 
Why would the best project format the data
Why not pass it to the base already formatted
 
I don't know. That was my first thought.
 
Send the actual data back in an envelope, which's header is clearly stuctured (shared library?) and shows how to format the data.
Also...which's?
That doesnt realy work does it
 
This is a question I was asked in a job interview this morning. It took me (I think) way too long to come up with a solution, and I don't really like what I came up with.
 
6:19 PM
Whatd you come up with
 
I have a class whose disposal is triggered from multiple points upon failure
i would like to call an event when the object is disposed, but i dont want the event to be called multiple times
 
When the system initializes, the front end passes an object to the base containing a function for formatting the data, which the base stores for the run lifetime.
 
what would be the best way to do this?
 
Just make sure all the frontends pass objects that share an interface.
 
Dispose()
{
  if(!disposed) DisposeEvent?.Invoke(this);
  CloseStreams();
  disposed = true;
}
 
6:24 PM
let me paste the code so you can see the issue
 
why tho I just gave you the solution basically
Also my parentboard sill doesnt even beep after I pulled out the GPU, my only PCI-E card.
 
because that wont owrk bc of threading issues
 
add locks everywhere obviously
 
So?
finally
{
  lock(mutex1)
  if(!ws.IsDisposed)
  {
    lock(mutex2)
    {
      ws.Dispose();
      ClientDisconnected?.Invoke();
    }
  }
}
Someone else chekc whether one mutex is enough or maybe even one lock is enough and stuff
 
6:31 PM
why wouldnt one lock be enough?
i was just asking maybe there was a better way without locks that i wasnt seeing
 
Yeah the outside lock should be enough
if it's basicaly a one time event anyway, it wont do much performance damage
also should = might, I'mnot as sure as I sound right now
 
=)
shit how do you paste code normally?
 
@Lee removed any pciE cards, still no beep :(
 
i always forget
 
!!tell cubesync format
 
6:34 PM
@cubesync Format your code - hit Ctrl+K before sending and see the faq
 
Sounds like your shit is fucked
 
            bool isDisposed = false;

        void Dispose()
        {
            lock (ws)
            {
                if (!isDisposed)
                {
                    isDisposed = true;
                    ws.Dispose();
                    ClientDisconnected?.Invoke(ws);
                }
            }
        }
lol
 
you can edit your messages
And delete them
 
learning so much
that should be fine, right?
 
I was about to kick off about the ASP.Net core MVC docs
But then I realised I was being stupid
 
6:38 PM
guess my shit is fucked. Gonnam ake a post with pictures of everything on reddit, last chance.
 
what are you trying to do?
 
"Update the Index method" =/= "Add this new Index method`
Post the link here when you do it so I can get the sweet karma
 
Me? I'm tying ot trick the pc I just built into running.
 
is it not turning on?
had to take apart my video card yesterday as a last ditch attempt
before buying a new one
 
damn I hope it doesnt come to that
 
6:41 PM
turned out hte reason my computer kept resetting was old dried out thermal compound on the video card cpu
 
fans&lights start, no beep
 
there should be an advisory along with your motherboard
 
Oh shit I just found a bug in VS/IIS express
 
error op codes
 
just removed the GPU, still no beep
A reproducable, actual, error?
 
6:42 PM
Oh I completely forgot about that
 
did you put it together yourself?
 
the reproducing part?
Yeah put it together myself
 
Does your motherboard have a number display? Like a 2 digit number
 
nope no displays
 
check your motherboard manual
 
6:43 PM
What motherboard is it, post model
 
there might be some indication along with a guide
 
& pics
 
as to why it isnt turning on
also
make sure you didnt short your motherboard
when screwing it into the case
 
How would screwing it in short it?
 
Oh you arse
10/10 bait
If you didn't use the little 1cmish tall standoffs
 
6:46 PM
Thx, now it is a successful friday
 
They seperate the panel and the motherboard
 
Got the standoffs standing off the case
 
> Supports new generation of AMD Phenomâ„¢ II X6 processors
What year is this?
 
high tech
2009
 
Lool maybe it died of old age
 
6:47 PM
it ran until ~november lsat year
 
yes what lee said
 
Also did you attach the speaker the right way around?
 
it happened to me once and it took me like 2 hours to realize why my motherboard wasnt working
 
Unless the CPU is not attached/dead, or the CPU or motherboard is unpowered, it should be beeping
 
Speaker was attached from before
god i hope my cpu is ok
its definitey attached
GF is ready gotta go, thanks for al the help, see you soon!
 
6:49 PM
Holy shit the manual has screenshots from vista
 
Pretty sure we started with win7
 
7 RTM'd Released October 22nd 2009
So it's likely the manual was made before then
For some reason I've never forgotten that date
 
01:00 - 14:0014:00 - 19:00

« first day (2862 days earlier)      last day (2094 days later) »