« first day (2109 days earlier)      last day (2833 days later) » 

12:18 AM
Panic for I have returned from hiatus
 
 
2 hours later…
2:13 AM
does visual studio 2015 still needs resharper ?
 
Not that I know of
Quick question, how could I wait for a key press, like with Console.ReadKey(), but not in the console?
 
I'd need something that works like Console.ReadKey(), in that it stops execution until a keypress is detected, but I'd need to only take the input if the window needing it is the active window
 
I think, but I'll have to test it.
 
3:15 AM
This is probably way too hard for me to solve than it should be.
 
Anyway..try the keyword "keypress"
 
Well, I can get a keypress, but I can't quite get the waiting part right
Meh, I'll just scrap the idea I'm going for in favor of it actually working
 
3:37 AM
Welp, the thing may not have a pretty GUI, but it is does have a mode for core warfare (but with this project of mine)
 
Make a compiler?
 
3:57 AM
Compiler for what, FOS-X?
The corewar thing would run off of compiled Fos-x, and FOS-X is meant to be something where some tryhard can write a C# -> FOS-X compiler :P
Ykw, how about I make a simple FOS-X IDE thing to work directly in FOS-X without having to convert ascii manually
 
 
2 hours later…
6:34 AM
`orning.
 
hi
i want to set a Date and Time picker text on another form
but setting is not working
 
@techno And what does "not working" mean? How can you think we can help you when all you tell us is "something doesn't work"?
 
@AvnerShahar-Kashtan DateTimePicker1.Value=DateTimePicker2.Value;
and DateTimePicker1.Text=mystring; on form load
 
6:54 AM
And what happens?
Exception? No change?
WHen are you setting the value fro Form2?
 
no change
before showing the form
 
good morning
 
@AvnerShahar-Kashtan
can i set date like this
dateTimePicker1.Value = DateTime.ParseExact(DateString, "yyyy|MM|dd", System.Globalization.CultureInfo.CurrentCulture, System.Globalization.DateTimeStyles.None);
But my string format is
 
7:13 AM
Morn all
 
Morning.
 
@techno what did you set as the DateTimePicker's format?
 
7:50 AM
...and our main everything-included solution has now reached the 99-project mark. What special project will be our 100th project? Stay tuned!
 
<snorts>
 
We've passed that mark twice.now I think
Periodically there is a bonfire to bring it down again
 
We have a new module, a workflow designer, which lets users define a workflow with a lot of different actions. All these actions are defined in separate projects (one for Flow actions, one for Active Directory operations, etc), for deployment/licensing reasons. Each of these projects has a server-side component (where execution happens) and a client side component (for UI).
Currently 24 projects out of the 99 are WorkflowAction projects.
 
That smells.
 
@Squiggle Better then the previous version, where there was only one project per action, and the code was sent from server to client as a byte array, loaded as an assembly and the UI loaded from there dynamically.
 
7:58 AM
> the code was sent from server to client as a byte array, loaded as an assembly...
WHAT
THE
FRELL
 
Yeah.
I was quite proud of that one, actually.
But ultimately we decided that the scenario it came to address - dynamically loading new DLLs on the client side with no deployment - wasn't important or painful enough to warrant the complexity.
It worked well, mind you.
 
8:17 AM
I remember that conversation
I think I said much the same thing
 
Yes.
Hmm. Just looked at the starred posts and misread @Squiggle's as "Put a SSD in your TSA agent". I'm pretty sure that would get you arrested. Or shot.
 
War
@NeilNorris soz didn't get on to the computer over the weekend, i have added you on uplay this morning
@AvnerShahar-Kashtan sounds familiar
 
9:21 AM
Speaking of misreading posts, I just misread @Sidney's as "Avril Lavigne is my favorite meal."
 
Oh, I just saw @ntohl's "input phone number" link and started giggling uncontrollably.
 
it's a good 'un.
 
:)
 
my fave^
 
ha
 
9:36 AM
cheers @War
 
War
:) i try to get on at least 2 or 3 times a week just to chillax
been hectic lately though ... trying to define a new front end for the company's long app application strategy
 
i ended up playing more witcher this weekend, logged into uplay and couldnt remember your user name and was all "is it ward1y? or wardy1? or ward-something?"
 
War
that and sorting out CI builds and release management in TFS
"The1Wardy"
 
hard work at the top dude
im still dicking about with this stupid dgv
 
War
still ... thought it was a trivial thing that got sorted on friday?
 
9:38 AM
thought i had it sorted but meh
 
War
@Squiggle lol that looks funky :)
 
i ended up breaking the table adapter and went to the pub
 
@War check the "have You seen this?" from the starred
 
War
WHY!!!
lol
some of those are brutal ... "is this your phone number?" and the pi based one are particularly evil
it's definitely in there somewhere lol
 
we will send a confirmation sms on the submitted phone number >D
 
9:46 AM
I was wondering if there was a web service that provides a streaming API to get pi digits.
 
"on TCP port 314159" lool
way too serious
 
Hi guys
 
heya
 
Can anybody help me with this quesstion:
 
I guess you are here to learn
 
9:50 AM
1
Q: Getting inappropriate output with left join

LearningI am trying to get list of variants and for each of this variants get all subvariants list irrespective of where subvariants fall for particular Test say 100.This is sample data: Id TestId SourceSubVariantId TargetSubVariantId DiffPerc 114 100 66 67 ...

 
<-- new to C# cannot help :(
 
No problem buddy
 
War
10:08 AM
@ntohl well at least no-one else is using that port for sure!!!
 
@War What, just because it's not a valid tcp port? Still, check to be sure!
 
War
@AvnerShahar-Kashtan lol yeh
@Learning i'm not sure what you are trying to ask here?
why are you joining this data ... is this not just a flat query?
var result = db.Variants.Include(v => v.Subvariants).Where(v => v.Type == "Add").ToList();
or did I miss some reason as to why you need this join?
 
yes obviously you miss alot
of things
 
War
oh jeez this is confusing ... do parent variations have 2 child variations
are these things all variations (so stored in 1 table) ... tree structure?
 
I miss alot :(
 
10:22 AM
i have variants and list of subvariants
 
user image
3
 
War
@Squiggle try sitting down
 
wtf @squiggle lol
 
War
@Learning but what are you trying to achieve?
 
i have already explain in my question
 
10:24 AM
@Learning Heh, apparently not.
 
see the pic i have posted
 
War
you're getting odd results because your query doesn't make sense
 
@RoelvanUden haha thats too funny!
#alotofmist
 
Hello Friends
 
10:25 AM
bueno dias Christopher
 
Kindly add your suggestions for this post
-3
Q: Plugin or code to enable copy past in notepad editor of a C# application

Christopherhave an editor software with following files 1) application file 2) PDB file 3) application_name.vshost file 4) application_name.vshost.exe.manifest 5) application_name {XML} file This application works on Windows platform, it looks like a C# application. The application is meant for typing...

 
Here, have a #downvote
 
yeah, that's downvotable
that's a terrible question
 
War
@Learning the join means you will get a row for each subvariant in the result set you pull for each variant
hense the query doesn't make sense
 
@Christopher stackoverflow.com/help/how-to-ask Read this before asking any more questions plz
 
10:30 AM
see basically what i want it get all subvariant list run under Testoperation for Test 100
Now as you see that For Parent Variants :Variant1
there are 3 subvariants that are in TestOperation :
Id=66,Name=Abc
Id=68,Name=Pqr
Id=69,Name=xyz
 
War
"subvariant list run under Testoperation for Test 100" <---
what does that have to do with variants?
 
So i am getting this in Variant1 list but i want this below records too under Variant1
Id=70,Name=lmn
Id=71,Name=xxx
Id=72,Name=hhh
for Variant 1 will have total 6 subvariant list which i am successgfully getting
 
War
all the bad naming makes this stuff really hard to figure out ... you have things are named as the plural version
public class Objects : Object { ... } <--- wtf?
public class Objects : IEnumerable<Object> { ... } <-- makes more sense now
 
but the only thing that is not working is that lmn,xyz and hhh records Ids are coming as 0 because they are in different variants that is in Variant2
 
War
but you wants subvariants attached to TestOperations
so this query doesn't seem to have much to do with variants ... other than maybe that where clause to help with the filtering
 
10:35 AM
yes my subvariants are attached to TestOperation
 
War
and you expect 6 results but a TestOperation is only linked to 2 subvariantss
subvariants <-- whats the plural of one of these
subvariantss
subvariantses
 
SubVariants
 
War
no thats the singular
by your definition anyway
 
SubVariant
 
War
ok so you need to rename your classes
 
10:37 AM
See in Testoperation 3 subvariants are run :66,67 and 68 for Variant1 right
 
War
well that's not right
 
and only 2 sub variants are there in TestOperation :70 and 71
 
War
since a TestOperation has 2 properties that link to a single SubVariants
 
War
so TestOperation by definition only has 2 SubVariantses
@stylishCoder sup
 
10:39 AM
i am good
i am facing one issue in wpf+prism
 
yeah but still i want 3 list i.e 66,67 and 68 for Variant1
 
War
your query makes no sense
 
i want to remove tab2 on button click i,e in tab1 using mvvm
Given the fact that we don't see the whole page, or the page's code-behind the first question I must ask is - are you setting the VM as the DataContext anywhere? — MichaelThePotato 4 hours ago
i have tried above code
 
War
wait do you want all the subvariants for the variants linked to the 2 subvariants linked to your testoperation ?
 
Yes now you have understood
Hehe
See this image which tells everything
 
War
10:43 AM
var subs = var db.SubVariants
     .Where(sv => sv.Variants.Name == "Add")
     .Select(sv => sv.Variants.SubVariantses);
somethng like that perhaps
that will get you all SubVariants where the parent Variants name == "Add"
 
but i want only those variants that are in TestOperations
for particular Test
say Test 100
 
War
any operation or a specific one?
var subs = var db.SubVariants
     .Where(sv => sv.Variants.Name == "Add" && (sv.TestOperation.Any() || sv.TestOperation1.any()))
     .Select(sv => sv.Variants.SubVariantses);
 
All Subvariants whose entry is in TestOperation for Specific Test
 
War
that would find all subs linked to any TestOperation
var subs = var db.SubVariants
     .Where(sv => sv.Variants.Name == "Add" && (sv.TestOperation.Any(t => t.Id == someTestOperationId) || sv.TestOperation1.any(t => t.Id == someTestOperationId)))
     .Select(sv => sv.Variants.SubVariantses);
that would find any subs linked to the specific test op (by id of course)
but also checks that the variant name == "Add" for those subs
brb
 
Ok but now for Variant1 i want Variant2 subvariant list inside Variant1 list
 
11:00 AM
Hi all
 
sup jamaxack
 
War
11:12 AM
@Learning that doesn't make any sense
you're telling me you want unrelated data in that list
if you want that add the relationship in the data
 
@RoelvanUden this hyperboleandahalf.blogspot.co.uk is pretty funny
 
11:28 AM
 
Ok thanks
 
11:48 AM
I fucking hate mobile phone development
Fucking limited piece of shits.
Especially Windows 'fucking phone
 
EL OH EL
developing for windows phone
I thought iOS was bad enough
 
iOS is an equal piece of garbage.
 
@RoelvanUden You're using Cordova, right?
 
I am on cordova
he is on react
 
@AvnerShahar-Kashtan Yes, no, whatever. Normally, yes, but I'm always wrestling with native capabilities whether I am using Cordova, Xamarin or an actual native app; NATIVE FEATURES NEVER REALLY WORK AS INTENDED.
Currently fucking about with WP background tasks
 
12:02 PM
I like using ionic2 so much for some reason
 
@misha130 I use Cordova+React, you use Cordova+Ionic. We both use Cordova.
 
oh
I thought react offered a non cordova solution
 
But honestly the problem isn't Cordova. I can write plugins just fine.
The problem is the native device capabilities.
"Let me run code every 5 minutes" -- nope, 15 minutes, because fuck you.
"Give me an event if the WIFI changes" -- crash because fuck you
"Uhm, okay, give me a location then?" -- still fuck you
 
sounds familiar
 
Honestly. Native device capabilities in iOS and WP are an absolute nightmare
Android is pretty much fine.
But sheesh! iOS and WP are terribad.
 
12:04 PM
the push notifications in ios are fine :^)
 
/rant
Sure, I've got push for all platforms too. Because you don't really need to interact from your app to device, but rather just push a message down it actually fucking works
And right now I'm fucking about with getting a fucking event working.
It just crashes. PoS.
 
in other news
>Windows Phone market share sinks below 1 percent
 
No shit. Microshit is even removing their own apps for their own platform
"Let's stop supporting Skype"
 
22% is ios
 
I don't want to get an Android/iOS device but I fear I have to.
 
12:06 PM
also, what do you mean you have no probelm writing plugins
did you ever try to write one with objective c?
 
Yeah.
 
I almost cried several times.
 
Seriously the Cordova bridge to native is not a problem.
Try making a native iOS app
 
the bridge is not
 
That is a fucking disaster.
 
12:07 PM
yes
 
So the real problem is the fucking native shit.
But really.
Use Xamarin and get C# instead of Objective-C/Swift/Java.
And it's still shit. Because the device capabilities and APIs are shit.
 
It crashed on launch everytime I tried it and I gave up
 
And no fucking logging or exception dump or anything.
Because again, fuck you, that's why.
 
\_(ツ)_/¯
 
/rage
And the fun part
This sprint is entirely dedicated to dealing with native fucking shit.
So cryofreeze me now and wake me up in a month thanks.
 
12:10 PM
in a month there might not be a wp
 
Meh we have clients with Windows XP so sure they'll always be market.
 
i dont like native.... i had hoped xamarin would let me develop tablet apps
 
apollo 11 source code moved
:O
 
@Ggalla1779 It does?
 
dont know not had time to test it yet
 
12:15 PM
@Ggalla1779 I'm pretty sure it does. Cordova allows that too, why shouldn't Xamarin?
 
am afraid last time i tried to install xamarin with vs it was a disaster
havent been back....then it went free
 
12:39 PM
Hi Good evening!
 
Good morning @Lara
 
Good afternoon
 
In space, no one can hear you try to figure out what time of day it is.
 
@AvnerShahar-Kashtan UTC. Problem solved.
 
@Squiggle For computers, yes.
 
12:47 PM
although astronauts probably use a different time zone to cosmonauts, because #patriotism
 
I don't know how the day is divided on the ISS, actually. Do they have shared day/night cycles?
 
<googles> apparently I am correct.
> The time was originally set to be GMT -5 to match the time zone in Houston, Texas since this is where the main command center for the ISS is located. But the controllers in Moscow also need to be at the console while the astronauts and cosmonauts are working from about 7 a.m. – 7 p.m. The two countries agreed to GMT +0 as a way to accommodate the controllers in both parts of the world.
 
> The time zone used on board the ISS is Coordinated Universal Time (UTC). The windows are covered at night hours to give the impression of darkness because the station experiences 16 sunrises and sunsets a day.
Yeah, ok, it seems they do. Wakeup at 6:00UTC.
Cool.
 
Hey
I'm stuck with something stupid in .NET

I have a Javascript function that calls a function in my controller, which updates (among other things) a ViewBag value
However, I can't seem to get this new ViewBag value in the javascript

anyone know if and how I could do that?
 
ah, is that why astronauts age a lot quicker than normal humans?
 
12:50 PM
Compromise?! With that Russians?
 
@VictoriaS. Not...
You thoroughly misunderstand the way request/response works.
 
So basically I'm screwed. Okay
Thanks
 
Do it the proper way.
 
I don't know any other way
 
@VictoriaS. @RoelvanUden it's a common false assumption people make though
 
12:52 PM
The ViewBag value needs to be brought to the client side somehow. Either by exposing an API function that javascript can call and retrieve (the WebAPI/Rest approach), or by persisting that viewbag value into a client-side variable from your MVC view's Razor code.
 
@VictoriaS. the only way you'll ever get data back from your web service is if you return it. What - exactly - will be returning the value on your server to the client?
 
I know I can't update a viewbag from javascript
I just need to get the new value after the controller call
the controller function?
 
Learn. ViewBag is a temporary typeless state that merely is used to feed into a template to generate a HTML page. Doing a JS call into a method is fine and all, but setting ViewBag values there is absolutely pointless. You ain't gonna run that Razor shit again, anyway.
 
it returns a bunch of other stuff that gets updated on the page
 
viewdata?
 
12:52 PM
@VictoriaS. How did the JS get the original value?
 
"viewbag" is just a mechanism to pass "stuff" from your controller to the Razor view, which generates the HTML to return to the client
 
Which boils down to: you misunderstand, and, learn.
 
In short, can your controller function, the one called by JS, simply return the updated value as the HTTP call's data?
 
The called function returns datarows through a partialview
But I need to get one other value too, that isn't in the partialview
So I figured viewbag was the way...
 
nah. Perhaps try a different call entirely.
 
12:55 PM
can't
 
really?
well if you can't make any changes, you're screwed
 
A programmer that can't make changes...?
 
It'd be hard for me to do my job without making any changes to the code I work on
 
can't do this any other way, I mean
 
but you can't do it the way you want
 
12:56 PM
You could make a new action that feeds the JS and dynamically add that into your active view...
 
so you must do it another way, surely?
 
so I'm screwed
 
^ what Roel said. It's pretty basic MVC stuff you're asking about here.
 
it's gonna be pretty basic stuff I'll be asking for the next 10 years I think
I just don't get this stuff
 
don't worry - it will "click" soon enough! :)
MVC separates things out quite logically. There's no magic involved. Data goes in, data comes out.
 
12:58 PM
So, thanks, I guess
I'll be refactoring half my application to get this thing to work then
 
so much drama
 

« first day (2109 days earlier)      last day (2833 days later) »