« first day (1620 days earlier)      last day (3345 days later) » 

12:00 AM
@SpencerRuport are you saying you don't like MVC? ^^
 
Yeah my policy now is "I'm going to make a bunch of JSON AJAX methods in your pages. Deal with it."
@diemaus - No I love MVC. Started using it during RC1 and was hooked.
 
@SpencerRuport coolio. Yeah, started as soon as MVC3 was released, and i've been hooked since.
@SpencerRuport we have ended up "porting" som web projects to MVC because it's more maintainable, and just easier to develop in general.
 
Yeah the hybrid setups aren't too bad.
 
I mean, entirely re-made the project in MVC.
from scratch.
@SpencerRuport either way, feel like you could have a poke at my current problem?
 
Ah nice.
I'll take a look
Ah nice.
 
12:05 AM
@SpencerRuport let me just commit.
Basically, all i want to do is have some Server-side cache for my views (or any action result)
bare in mind it's MVC6 and ASP.NET 5.
@SpencerRuport the attribute is used as such: github.com/rausmaus/MausSite/blob/master/src/MausSite/…
Should basically be used as [OutputCache(Location = OutputCacheLocation.Server)] like in previous versions of ASP.NET / MVC. But with a custom handler (which also was possible in earlier versions of ASP.NET).
 
So what issue are you running into?
 
The property context.Response.Body which is a Stream cannot be read, it's write-only.
And i have not been able to figure out how else to get the response data.
 
0
A: Capturing HTML output with a controller action filter

dav_iI think I've developed a pretty good way to do this. Replace the Reponse Filter with a custom one This filter takes a delegate to an abstract method which takes a stream This the delegate, and hence the abstract method are called on the close of the stream, i.e. when all the HTML is available O...

 
That property doesn't exist?
 
12:14 AM
Nope!
I did however get an idea!
the Response.Body is of the abstract type Stream and is settable, which means i can probably replace it.
And yes, yes i can.
The stream is usually of the type Microsoft.VisualStudio.Web.BrowserLink.Runtime.ScriptInjectionFilterStream
Say that quick, 50 times.
 
Hopefully you're going to test this extensively before you put it into production
Replacing the stream seems like it could have all sorts of surprise ramifications.
 
I'm not going to do that.
And this is just a project where i goof around.
 
@diemaus burn it, burn it to the ground! Destroy all the streams!
 
@ohmusama never!
 
lol
 
12:46 AM
Found the best function name EVER
 
1:04 AM
MEGA ROUTE!
 
OH YEAAAH
Well, bed time.
 
I think I need a MegaRoute, can I use that to make?
night
 
Go, take it!
I think i have started to find a solution to my problem at least! So that is good!
Night @ohmusama!
 
 
5 hours later…
6:29 AM
Morning!
Can I bind the visibility of an item to a specific value of an enum? Say my enum is { A, B, C} and I want a GroupBox to show when the enum value is A, but only then.
 
6:41 AM
with a converter yes
 
I'm writing one now, but does that mean that I have to write 3? One for when I want to show something for A, one for B, and one for C?
 
nah, hold on
    public class VisibleWhenConverter : IValueConverter
    {
        public object VisibleWhen { get; set; }

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return Equals(value, VisibleWhen) ? Visibility.Visible : Visibility.Collapsed;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
Try ^
 
how do I set my VisibleWhen in xaml?
 
    <sample:VisibleWhenConverter VisibleWhen="A" x:Key="VisibleWhenAConverter" />
perhaps it is better to not use object for the property in the converter
 
Lemme try, thanks already man
But I enter my enum as a string there?
 
6:52 AM
maybe you want the property to be:
public YuorEnum VisibleWhen { get; set; }
you probably do
I did not try it, wrote it from memory
markupconverters are nice for that
then you can declare everything inline
 
holy shit, it uses the enum value
thanks so much man
@JohanLarsson Is there a way to get it to work together with the designer? Right now it still shows both controls I want to toggle because the value is not filled in
 
hmm, the designer is really broken
probably nontrivial
 
ah ok, thanks though
 
7:36 AM
Hello Everyone
0
Q: Manage Format of Table

sandeep singhDatabase table dynamic (commidities are dynamic) Id Month Commodity Amount ---------------------------- 1 May wheat 100 2 May rice 200 3 June wheat 400 4 July maize 100 I can show it as it is on frontend easily but requirement is different I want...

 
8:07 AM
I've added the wpf toolkit to my xaml namespaces and can use them perfectly using <xctk:X>, but is there a way I can drag & drop em from the toolbox as well?
 
user4433485
Hello Folks!
 
8:30 AM
Mornin' peeps.
 
user4433485
Hii @RoelvanUden
 
user4433485
I didn't know you could also program in c#
 
user4433485
As you are always active in the JavaScript room
 
8:46 AM
C# is my primary programming language choice, JS is secondary :-)
 
user4433485
Damn cool
 
user4433485
I guess I need to do HBO after my study
 
user4433485
my teachers has no idea how c# works;)
 
user4433485
so we skip the C# on school lol
 
I left secondary school only knowing VB6
(and self-taught JavaScript 1.2)
 
8:51 AM
You'd learn Java there for the foundation of OOP. C# is something you pick up in a matter of days after learning that. You can of course learn it by yourself, which is probably much faster too, and learning Java at HBO when you know C# is a breeze (you'll always go "Why isn't this available in Java?!" though).
 
user4433485
Respect for self-taught stuff
 
@Squiggle VB6. Damn. :-D
 
user4433485
I might try to learn python and C# after my internship tho
 
I recommend C# first. Not only because I'm totally biased due to my love for C#, but because you lack experience with static typing and the fundamental underlying principles that come with it (how do different types use memory). They apply to PHP, JS and Python too, but are less obvious because they aren't explicitly mentioned at all.
@Squiggle Did you learn F# yet? :-P
 
@Squiggle that was all there was. Cos you old innit
 
user4433485
8:56 AM
Roel, did you learn your C# from school or ?
 
@TomW He's practically a dinosaur.
@Katherina No, self-taught. Just like every other language I know.
 
user4433485
owh nice! 'Doorzettingsvermogen'
 
Nah, once you know 1 structurally correct language, the next is easy.
 
user4433485
and you think c# is easy for the 1 structually language?
 
Java or C# are the only contenders IMHO. C/C++ would be good too, but the learning curve is quite a bit steeper due to manual memory management and having to understand pointers from the start (you'll still need to understand anywhere, but you can't write good C without it -- but you can for C# and Java)
 
9:13 AM
will javascript replace C#
??
 
@AVIKDUTTA You mean Java?
 
no javaScript specially
 
@AVIKDUTTA That depends on the use case. JS is a viable choice for quite a few things now, but it's also a really terrible choice for a whole range of other things.
 
i mean now a days the trend is towards javascript
 
@TomW @RoelvanUden FYI I learned VB6 in 2000. Never used it again... until my first proper programming job in 2006 :(
 
9:16 AM
the only thing javascript is bad at it harware level intregation
 
and @RoelvanUden F#... I'm actually kind of interested in learning
 
but i think some frame works are there for that too
 
@AVIKDUTTA node-ardx.org :)
 
@AVIKDUTTA It can do that, but you wouldn't want to write high-performance mathematics, computation-intensive tasks or drivers in JS, would you? Or would you want to write life-critical software in JS (think of cars, airplanes and other human-life related applications)? Not yet, anyway. Perhaps in the future. Certainly not in the foreseeable one.
@Squiggle Yeah me too :D
 
I tried picking up R last year. My maths wasn't strong enough :(
 
9:36 AM
Speaking of learning languages, are there any resources to write idiomatic C#? I had C# in college (few years back) and have forgotten quite a lot of stuff C# can do easily (using statement for example)
 
@BenjaminDiele Doesn't ReSharper suggest this kind of stuff?
 
@RoelvanUden perhaps, but 1) moneh, 2) I'd like an overview of stuff
 
@BenjaminDiele read other peoples' code?
 
@Squiggle Got any good examples? Because there's quite a lot of code written by people like me :D
 
9:42 AM
Hah, Roel's only a 2 hr drive away from my stalking
 
SharpEventLoop is nice~ish C#, MangaRack.cs isn't really a nice style fyi.
@BenjaminDiele Whooh, we can meet up and drink beer! Not that I drink but still!
 
@RoelvanUden I'm not a big drinker either. Decaf coffee or some tea for me plz
 
9:58 AM
half a day's travel for me :(
 
@Squiggle so you have to stay double the time!
 
Funny how small EU actually is.
 
Quality > quantity
 
Hahaha exactly :-D
 
I went on a cycle ride a few months ago. It took me an hour to cycle through 3 countries.
 
10:01 AM
@Squiggle you fast man
 
You must be near the edge of a 2 borders then ^^'
 
both ;)
 
@Squiggle Do you speak German btw?
 
I'm learning, but still only A1 at the moment
 
Ah right. :-)
You're going for full course German mastery? :P
 
10:06 AM
We'll see! I want to at least be able to converse
and read my post
 
Haha yeah indeed.
 
Auf Wiedersehen => Zauf Wieder Ein
That's al the german you need to know
 
user4433485
I lolled
 
"es ist mein Geburtstag" and "einen grossen Bier, bitte"
that's done me well so far
 
Especially the latter eh.
 
10:09 AM
Genau.
 
SCHMETTERLING
always a hit at parties
 
KRANKENWAGEN
my favorite phrase is "Ich verstehe nur Bahnhoff"
"I haven't a clue"
 
NATURWISSENSCHAFTEN I love that word.
 
KUMMERSPECK
 
@Squiggle I had to google the phrase. Trying to find out where 'Bahnhof' comes in
 
10:17 AM
@TomW it's just a saying, it makes no sense if you literally translate it
 
@Squiggle No kidding ..
"I don't understand train stations."
 
Hah really? Is that literal? Funny :D
 
10:34 AM
@Squiggle sayings are not usually nonsense, they tend to have an origin story
 
@TomW So we can say 'Sippy's mom'?
 
10:55 AM
It's working when I am calling from .Net
pastebin.com/2FCs76X0

Here's Android Code and It's not working
pastebin.com/wupWn2WZ
SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DemlerOlives.Services.GoogleService.DemlerOlives.IDemelerService.InvokeDemelerService(UserEntity admin)
at OliveRoomService.ORoomJsonService.DiscoverService(UserEntity user)
I am getting this error while calling a service
While It is working fine using WS Studio or js Request
Folks Any Idea
??
 
Pretty sure you copied that question from somewhere. Badly.
 
@Sippy "I understand only train station"
 
@Squiggle Ah
That makes less sense.
 
@RoelvanUden No
 
@Sippy I think it's meant to mean "I've only just arrived, I'm at the train station and I don't know what's going on"
 
11:05 AM
@Squiggle vOv
 
@ashutiwari4 Yes, you did. You don't even have working links and a (see full text) blatantly copied from another chat. Essentially you asked the same question in n chat boxes and I have absolutely no interest in helping you when you don't even take the time to ask a question, correctly.
 
That makes sense to me lol
 
Wait for responses in those other chat boxes ;-)
 
Yes I did ask in other chat room and they suggested me to ask in this room
 
Then start making your question clear. Just as you would on SO itself :-)
 
11:11 AM
ok I am trying to call a webservice which is written in .Net from android application . When I am calling I am getting error written below

SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DemlerOlives.Services.GoogleService.DemlerOlives.IDemelerService.InvokeDemelerService(UserEntity admin)
at OliveRoomService.ORoomJsonService.DiscoverService(UserEntity user)
@RoelvanUden Is it Clear friend
 
11:36 AM
This is a strange one. I have a viewmodel which doesn't implement INotifyPropertyChanged, and my ValueConverter works perfectly when I change a dropdown. When I do implement the INotifyPropertyChanged, it stops updating. Is that because, when I implement it myself, I need to implement the dropdown change too? (calling PropertyChanged)
 
@BenjaminDiele What do you mean by "change the dropdown"? from the user or the viewmodel or model?
 
@KendallFrey selecting a value in the dropdown, which is bound to a property on the vm
 
and what is supposed to be updating? another control?
 
it should toggle the visibility of another control
 
based on a binding, correct?
 
11:41 AM
yarp
 
bound to what, in relation to the dropdown?
 
hang on, i'll make a short gist
 
hello
i have a problem to connect to my sql server when i host my website on IIS
Login failed for user 'IIS APPPOOL\Classic .NET AppPool'.
i want to use windows authentication
 
It has most of the stuff stripped out, but with the // : INotifyPropertyChanged in comments, it auto-updates. If I implement it, it doesn't auto update
 
@BenjaminDiele looks like maybe WPF automatically does some limited form of INPC for classes that don't implement it. That would be weird.
@BenjaminDiele Also, fix your layout code
 
11:52 AM
@KendallFrey What should I fix? Can you give some concrete advice?
 
Use WPF layout, not WinForms layout. The biggest problem is using arbitrary Margins
Margins should be something like a constant 5px
Margins are not for positioning controls
Panels are for positioning controls
 
Oh, I just used the drag and drop from the designer
 
NOOOOOOOOOOOOOOOOOOOOOOoooooooooooooooo......................
 
damnit
 
Never drag-n-drop WPF controls. EVER.
 
11:56 AM
that sucks
 
no
It's why WPF is better than WinForms
In WinForms, controls are positioned according to a completely arbitrary value determined by the designer. Sure, you have panels and such, but those still work on absolute positioning.
In WPF, controls are positioned based on a logical organization of controls, and as soon as you add to or modify the tree of controls, controls reposition themselves based on the rules specified by how the tree is created
WPF UIs are self-organizing
 
oh, so in winforms you position control per control, while in wpf you'd use panels for the controls and position the panels?
 
well you don't position the panels explicitly either
you put them in other panels that handles their positioning
 
ah ok
 
For example, if you want a specific panel or control to fill the top section of an area, then you use dockpanel
if you want several controls in a row or column, stackpanel
UI trees reflect the logical organization of controls
 
12:05 PM
good morning @KendallFrey
 
BTW, Grid is basically the superpanel
you can do pretty much anything with it that you can do with other controls
which is why if you can avoid using it, your UI code will become better and more readable
 
@FrendallKey, want to look at something else? I'm binding to an object which has 3 properties, but they aren't updated, and are always null.
 
"updated" in what way?
never assigned a value in the model or viewmodel?
 
Well, just figured it out. Because I'm enabling / disabling my controls from the IsChecked property of a checkbox. I had to notify my controls that the object behind their binding was updated.
At times I really feel like I'm just stumbling my way around C# / WPF
 
12:47 PM
hi guys
 
12:59 PM
yeah
 
how can I stop app pool from being disabled everytime I make a call to unmaged dll in my asp mvc app.Having this exact problem except somehow he got past it and didnt share how
0
Q: Unmanaged DLL cannot be consumed by ASP.NET MVC app

FunkyFresh84I have developed a Win32 C++ unmanaged DLL that I have built in release mode. I am attempting to consume the DLL from within a .net MVC app running on IIS 8.5 and Windows Server 2012 R2 Datacentre which is an Azure Virtual Machine. Everything runs fine on my development machine. However, when I ...

 
Hey, has anyone ever written a IVsSingleFileGenerator for Visual Studio (“Custom Tool” for single files). If so, how are you supposed to distribute them across your team? The whole COM registration and registry “deployment” really makes this way too complicated for my taste.
 
1:13 PM
suck it, tuesday
it's dead in here today
 
yea
Steve whats your area of specialty web or desktop apps?
 
depends, i do a little at everything, but am not a guru in anything yet
mostly web and ecommerce billing systems
 
THE
any WCF guru here
Man's is in trouble
 
i hate front end web stuff though, css sucks... although i do enjoy js
 
@THE I could help?
 
THE
1:25 PM
I want to force clients use server bindings
 
@THE why?
 
Do you understand what bindings are?
 
I suck at frond end as well
had to do our website and it was just a shit job
 
@THE if you expose your service with only one type of binding, then that's the only binding your clients can implement
"Use this binding or else it won't work"
 
THE
@TomW We have 100s of clients connecting to 10s of our services, now going through each of client and adding timeout will take us ages, so we want to force server configuration
@Squiggle sorry but i don't think it works that way, client will use default bindings
 
1:31 PM
@THE do you have ownership of the clients or not?
 
THE
this is what clients are using
 System.Net.NetworkCredential creds = GetCreadentials();
 HttpClientCredentialType credType = creds.httpClientCredentialType;
 BasicHttpBinding binding = new BasicHttpBinding();
 binding.Security.Mode = BasicHttpSecurityMode.Transport;
 binding.Security.Transport.ClientCredentialType = credType;
 EndpointAddress endpoint = new EndpointAddress(Url + "/_vti_bin/FruitFactory/Fruits.svc");
 ChannelFactory<Fruits.Internal.IFruits> factory = new ChannelFactory<Fruits.Internal.IFruits>(binding);
 factory.Credentials.Windows.ClientCredential = creds;
@Squiggle we do, but again it comes to time it will take, and manager is the one who wants me to find a fix
 
@THE you can't impose client configurations from the server. Each client will need to be configured. Perhaps if you automate your client update procedures?
 
THE
this is what stopping me, There must be a way to force them to use server configuration
what in future we want to make our services public, we don't want clients to make calls with hours and hours of timeouts
 
Well don't let them. Time out on the server before that happens
 
what Tom said
You cannot trust clients to be sensible, especially if you have no control over them.
 
THE
1:43 PM
still i don't see why we shouldn't force server configurations
 
OK. Say you want to integrate with someone else's REST web service, like Twitter.
How could Twitter force changes on your client implementation?
they can't do it automatically
They could impose breaking changes, or move the service endpoint, and force you to manually update your own client to make everything work again
Aurgh. Passenger jet crashed in the Alps :(
 
yep, sad stuff :(
 
2:12 PM
Hi all
Did anyone work on File Sharing app on WLAN please?
I'm just asking help in it
 
You want teh codez?
:)
 
nop
An efficient method for speedy transfer
 
"File Sharing" is a bit of a broad thing. What are your issues, exactly?
 
I already did it using "FileStream()"
 
In pseudo you'll end up with FileStream.CopyTo(NetworkStream) ;-)
 
2:15 PM
Would checking if a provided ID exists be validation? Or is validation typically just checking if things are null, or a certian length, ect?
 
yES
I have cheecked copyToAsync() ,CopyTo() etc. but is there any other fast workout?
hi?
File.Read(),File.Write() et
 
halp, how do i into clothing that fits together
 
posted on March 24, 2015

In a mobile first, cloud first world, every business needs to deliver great mobile and web experiences that engage and connect with their customers, and which enable their employees to be even more productive.  These apps need to work with any device, and to be able to consume and integrate with data anywhere. I'm excited to announce the release of our new Azure App Service today - which

 
@JAVEDIQBAL Nothing is faster. You can optimize a bit, but what speed do you have and are you expecting?
 
:/
 
2:33 PM
urgh. That blog post was never written by ScottGu. It's too... buzz-talkish.
 
@RoelvanUden Well,it took almost an hour past 10 mins. to copy a 1.9 GB file to another PC!
My employer asks me to improve it!
 
@JAVEDIQBAL What speed is the WLAN?
 
that sounds pretty good for WLAN
 
1hr 10 minutes for a 2GB file works out at about 2MB/sec
 
@Squiggle There were plenty of devices across there but I guess it is 4MB
 
2:36 PM
oh, hang on
 
or ~20Mbit, which is pretty standard for a 54g wireless router with contention
 
But network stats aren't constant throughout especially when have multiple devices!
 
@JAVEDIQBAL what about compression? Would that work?
 
I didn't tried it........@Squiggle
 
@JAVEDIQBAL It depends on your mobile device disk speed, mobile device WLAN, the router, company policies, the connection to the storage device, the port of its network card, and its HDD speed. What's the speed of a xcopy?
 
2:42 PM
@RoelvanUden I have heard about CopyFileEx but didn't find a Managed API for network sharing
 
No, I'm asking about the speed of xcopy, a build-in Windows copy util
That's your max speed. :P
If it's significantly faster, we need to investigate why. Otherwise, its hardware.
 
That would judge 'in' the PC data rates.Right?
 
wtf is scottgu talking about
fluff fluff fluff
> The Logic App support within Azure App Services is brand new and enables you to automate workflows and business processes.
FGSGFDS
BAD
NO
There already exists a cloud service which does exactly that, it's called BizTalk
 
@JAVEDIQBAL Sorry, what?
 
@RoelvanUden Dear,How would on same disk data rates relate to on -network speed?
 
2:48 PM
"dear"?
 
:D
 
@RoelvanUden TeraCopy,i used,would guess the same or native windows copier?
 
@JAVEDIQBAL Your rate is limited by the weakest item in a chain. If any of the things you pass through is slower than the others, that is your speed. Mobile HDDs are often SLOW, so they can severely limited final transfer speed too ;-)
 
@TomW Dear isn't a word of 'abuse'.I guess!
 
And software can't magically make a 100mbps switch go at 1000mbps for example
 
2:51 PM
This may be dumb, but if you have a drop down list in normal html with a runat=server why is there no SelectedItem?
Just SelectedIndex?
 
there isn,t ?
 
All I want is the selected value, but it's like dumb...
@Rusty No, apparently not when you do:
    <select id="drpSortDirection" runat="server">
        <option value="ASC">Ascending</option>
        <option value="DESC">Descending</option>
    </select>
 
@RoelvanUden I am using all PC's for now .....
 
@Greg RunAt server sounds WebForms~ish
@JAVEDIQBAL ...
 
@RoelvanUden It is, legacy project
 
2:56 PM
@RoelvanUden Currently,public int bufferSize = 100*1024*1024;
 
@Greg changethe <select> to <dropdownlist>, atleast it has selectItem...
 
wrong room-- damn flags made me shift focus.
 
it will eventually be rendered to <select>
 

« first day (1620 days earlier)      last day (3345 days later) »