« first day (1581 days earlier)      last day (3383 days later) » 

12:00 AM
it also saves you butt-tons of maintenance and technical debt
 
Yeah it is really easy to read, and MS maintains it
 
Maybe they should just make a "go faster" option
 
Turn off tracking
and lazy loading
and the dynamic proxy
and use select statements and groups
 
basically turn off data reliability and EF becomes really fast
 
=fast
 
12:01 AM
if its a website, turn all those off by default
 
90% of the "slowness" in EF is "have I done this already? am I allowed to do this? ok, do this"
 
making ef work with mysql was such a terrible time
it made my face hurt
 
A lot of the slowness in C# is due to similar reasons
double-checking things like array bounds
It was probably worse in the early days though
 
Nah, there was no checking. It would just
 
I meant the early days of C#
 
12:04 AM
and by slow, we are talking about taking 437ms to do 500 selects
 
That's why lower-level languages like C were faster
 
slow is relative
 
Just do it, and if I goofed, the OS should catch me
 
heh, yeah
I may have zeroed 2/3 of a hd in lab once with an .asm file
 
so i guess if you need your EF query to be faster than 1ms...
 
12:06 AM
1ms?!
 
@TravisJ oh man I wish I could have done that
 
I love EF (and Dapper). I would make sweet EF babies
 
I just got a fancy Cisco IP phone.
 
@KendallFrey - It didn't run to completion way because weird stuff started happening as it zeroed
 
Complete with the ugly-ass Java GUI.
 
12:07 AM
probabaly
sudo rm -rf /
that always makes fun stuff happen
 
I just looped through 0 - 32 million of the hd memory addresses and zeroed
It went quick, but it looked painful
 
god, even internet explorer 11 is bad.
 
@Jeremy he's worried about telling customers we use open source
and that they'll look up the source code and know all the secrets of sending our devices data that will mess them up
 
@NETscape lol, we have an "open source practice" for our consultants that specifically use open source software
@NETscape did you explain why something being open source generally makes it more secure?
 
yes, lol.
its like, okay if you're going to worry about someone taking the time to decompile our projects when all they have to do is look up the protocol that is openly published in our own manuals and using putty.exe to send data over the SerialPort, then that's a pretty dumb "hacker"
 
12:16 AM
oh man
I just checked on my pork roast
I barely poked it with a spoon to stir it and it just flaked off
I tore off a bit to taste if it was done... and I jizzed a little bit
 
the protocol and transmission of data have nothing to do with messing up the devices, knowing what addresses hold what values on the devices is what you want to keep secret and that is all in a COM project which is not open source
 
is that more clear?
 
:(
 
it's good :)
 
does it taste like poison?
 
12:18 AM
it tastes like delicious
I can't even slice it, it's too tender
@TravisJ I can pass in data to that RouteUrl right?
 
@Pheonixblade9 - yes
 
I'm trying to decide which is better
send the HTML to the server to convert to a word file, or do the DB call again to get a fresh copy
 
moar db
 
probably. ugh
this site is so badly written
 
As long as it takes less than 2s you should be fine
 
12:27 AM
instead of using routing, they make a JS call to a controller with parameters that has a callback that changes the window's location
 
im takin off erly
that sounds awful
good luck! :P
o/
 
@TravisJ it is pretty early. Thankfully I can probably get set on a different gig soon
thanks again for the help, ciao!
 
Has anyone here ever considered using VS from a browser?
-4
Q: Is it possible to run Visual Studio 2013 from web Browser?

jjkkwhat's the best way to run Visual Studio 2013 from Web Browser? Thanks.

 
@BradleyDotNET they have something like that, it works ok
 
And whats that?
I know IdeOne will do some .NET stuff
but thats not exactly VS
 
12:30 AM
that's what I was thinking of
 
Not sure I count that :)
Though it is useful to testing quick stuff for SO
 
VS365? ;)
 
heh, nice
 
It's just a matter of time, right?
 
I sure hope not
 
12:53 AM
Hello guys , i've see an app in the store that makes you shoot , up to 25 photo per second, I wanted to do the same and can't even take 2 photos in a second :D
 
I doubt the CMOS memory is fast enough to do that
they probably put it in video mode and capture it off of that?
 
yes probably, because I keep the ImageStream in memory till the time(1s in this case) finnishes and then store all the ImagesStream in the isolatedStorage, I tought it was the file process who takes the most of the time
 
Probably they will will kick me out from Android chat room so I can shout here;
Android development is suxxxxxxxxxxxxxxxxxxxxxxxx :)
 
the thing that takes the most time is writing the CMOS memory values to the SD card
 
Then I can go back over there and ask some questions lol
 
12:59 AM
@Teomanshipahi what's wrong with Android development?
 
Compared vs Windows Phone Development
 
Teoman completly agree with you
thanks for the info @Pheonixblade9 :)
 
Not accurate MVC, slow emulators, not making sense data binding, page navigation.. At least what I saw so far
 
well... it's very different from Windows Phone
having done both, I wouldn't say one is better than the other
I'd say Google would have done better by picking Python or C# or something of the like as its main language
oh dear, I have 6667 rep.
 
1:23 AM
yay sql question
0
A: SQL query to retrieve a group records

Pheonixblade9You're looking to get rows for any keys in responseId for which there is a value 'Posted' in the column objective. The SQL term for that is "exists" - do any rows exist in this query? This should work just fine: select data1.* from data data1 where exists ( select 1 from data data2 wher...

all right, I'm out. night guys
 
 
1 hour later…
2:25 AM
As for android dev, how is the new IntelliJ based Android Studio. It would have been nice to see a C#/clr based dev environment, I agree... but Java was really the only option at that point. Wow the world would have been different if .net really ran on linux and was open enough for google to use... lot more windows phone apps if you could do both from the same code base
 
@AndrewBacker I can't wait until .NET officially runs on Linux
 
:) just a few more years... so happy to see it open sourced like this... I know hansellman (spelling!) isn't the only one, but it's about time. they could have buried java if they had gone this way 5 years ago
If mono is up to parity (excepting the UI of course), then thats enough. I had to move to alternatives just for deployment reasons, and I don't need a UI, so thats enough for me. The direction VS is going is nice, too
 
MS has really improved their practices lately
Sounds like it was Nadella that pushed for that
 
2:42 AM
Not sure... started under blamer and all that, but lots pushed form the inside. It's a story I don't know the details of, sadly, just reading about little efforts for a long time.
If we have a linux version, then we can ditch all our java services and re-write in C#... 99% of our clients for a certain product are on windows (devs as well), but we have to do obscene contortions to get windows services running properly with java, and the UI is dog ugly in swing...
I want my brighter future now! :) I guess I'm a little impatient
 
 
1 hour later…
3:47 AM
android studio rocks
<3
 
Yes, it does.
But it's not really that hard to write your UI from scratch with OpenGL.
 
@KendallFrey is there a plan for that?
found it
 
 
2 hours later…
5:28 AM
which is less complicated to use: Named Pipes or Windows Messages?
 
Windows Messages? do you mean WM_*
one way communication? duplex? I assume this is a c++ dll you are talking to?
 
ya
one way
and no, it's all c#
but WCF seems heavy
 
WCF in binary mode is very good
can you just use remoting?
thats what .net uses internally to talk between appdomains
 
Maybe. It's been a while.
I need a balance between complexity of code and resource use
 
these are remote services? on same machine? in same process? etc
 
5:38 AM
same machine separate proces
process
Mainly to send command line args to an instance of an app in a singleton setup
 
ah... e.g. "windows service" and command line program talking to it
 
no. More like when you want only want one instance of an app running at one time
 
so the basic scenario is... open one copy. then user double clicks (or runs from cmd.exe) the app.exe again... in that case app.exe detects it is already running and then sends the command line to the running instance
257
Q: What is the correct way to create a single instance application?

NidonocuUsing C# and WPF under .net (rather than WindowsForms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one...

 
yep
That's where I've started. Thanks @AndrewBacker
 
Sorry, gotta run for a bit. WCF seems overkill, so I would say just try to use .NET Remoting.
 
5:48 AM
tnx again
 
if that fails, look at postMessage but then you need interop and handling the message loop, not worth it generally. it kinda depends on the app. WCF just isn't necessary... same machine: remoting. remote machine (ironically, not remoting): wcf
 
I'd tend to agree
 
6:32 AM
morning :)
 
morning!
 
something interesting going on?
 
6:56 AM
Bought me a macbook pro yesterday, will test Parallels this weekend for visual studio :)
 
7:19 AM
Works great... just make sure you have an SSD :D I guess all the new ones do?
Also, my startup time for VS 2012 through parallels is SLOOOOOOW compared to a native windows install.
 
Morning all!
 
Yeah, got an SSD of 256GB. It starts up just fine. The only problem I noticed in the 15 minutes of playing with it, is the battery
 
i just killed GRUB on my laptop :/
 
7:49 AM
hi everyone!!! could u please help me? on avoiding spoofing inAPI
 
How good it would be to create a pointer class ?
 
isnt there already one?
 
Nah I mean, creating a class just with all of your objects
it will be static
so you can add objects pointers to it
and then access them anywhere in any code in the solution without passing arguments
more like a internal static class...
or a property class
 
@Benj
@BenjaminDiele you have a battery life issue? with bare OSX?
 
@AndrewBacker No, with parallels and visual studio running :D
 
7:56 AM
oh... yeah, for sure :D
 
@CustomizedName: Why would you want that?
 
@scheien i dont like passing parameters
it sucks
 
@BenjaminDiele What is the VS2012 startup time, and do you have a lot of extensions installed? As for battery, I'd say I get about 1.5-2 hours with VS2012 running, on a mid 2010 macbook pro (8gig, 512 ssd).
 
Wow, you serious?
 
@AndrewBacker A few seconds. Haven't tested it yet, only installed VS this morning and then went to work :D
 
8:00 AM
@BenjaminDiele I've used it in that configuration for about 4 years, with all versions of parallels. One thing I ended up doing was restricting the VM to 1 CPU. VS 12 for me with old versions would randomly steal 100% cpu through the VM but seem ok in windows
 
@CustomizedName: btw, the class you are intending to create cannot be internal, it has to be public. Internal limits the usage to current project.
Think you should look at dependency injection
 
@AndrewBacker Good to know, thanks for that.
 
 
8:34 AM
@CustomizedName actually i did something similar some time ago ^^ but it was to get parameters from othe processes and stuff ^^
 
Sometimes I really hate signing assemblies and shit
 
Hello people.. I have a question regarding C# programming .I'm having a hard time on passing a value from database to Stripmenu. im stuck at enabling the menustrip tools after supplying a username password. what i wanna do is after supplying a correct username/password. another sql statement will trigger, and its data will be displayed on the Striptool of its parent form. i know its possible but i just can't figure it out yet. maybe you could help me.' '
here's my Question at Stackoverflow site. " stackoverflow.com/questions/28493712/… "
 
Hi Guys! small question
public static double OutputWidth = 6.0;
public static double OutputHeight = 4.0;

 else if (subnode.Name.ToLower() == "outputwidth")
{
	OutputWidth = Convert.ToDouble(subnode.FirstChild.Value.ToString());
}
else if (subnode.Name.ToLower() == "outputheight")
{
	OutputHeight = Convert.ToDouble(subnode.FirstChild.Value);
}

'Issue: format exception was unhandled by user code at OutputWidth & OutputHeight'
 
Convert.ToDouble() throws an FormatException is the value cannot be converted.
try using double.TryParse(string, out double) instead
 
8:47 AM
@scheien Invalid arguments
 
What invalid arguments?
 
Heh, my hosting company is telling me that Windows Server 2012 needs minimal 4GB RAM. I think that's a bit excessive, and quite untrue. Are there some kind of non-formal requirements with such absurd specs (official documentation says 512MB)? E.g. when used in virtualization environment or whatnot.
 
@scheien double.tryparse has some invalid arguments. i'm reading the value from a xml file & comparing.
 
double height = -1;
if (double.TryParse(subnode.FirstChild.Value.ToString(), out height))
{
// value parsed
OutputHeight = height ;
}
else
{
}
then in the else block you reroll the user with some info that the value cannot be parsed.
that should get you started.
 
That's stupid. They are blatantly telling me I need 4GB (aka 40euro/month) to run Windows Server. Ridiculous.
 
8:54 AM
@RoelvanUden Why not use Amazon AWS
 
I don't like to pay hourly.
 
@RoelvanUden: They just want to get as much money off you as possible
Indeed it sounds stupid, especially since they most likely have a shared environment.
 
@scheien No. Same issue.
 
What issue?
 
Yeah I figured as much. Thing is, I've hosted forever (I think 4~5 years) with this company and for Linux servers they are the absolute best in the Netherlands/Germany/Belgium region. But this is TRULY sad for Windows. So I either have to use Linux again (which sucks monkey balls) or get a different hosting...
 
8:56 AM
@linguini You should always check the inputs first, maybe the value is null?
 
public static int PreviewDPI = 76;
public const double ppmm = 96.0 / 25.4;
public const double ppmm300 = 300.0 / 25.4;
public static double OutputDPI = 300.0;
public static double OutputWidth = 6.0;
public static double OutputHeight = 4.0;
public static ProductTemplate SelectedTemplate = null;
public static string NodeID = "99";
public static string TransType = "20";

private void LoadPhotoIDConfig()
{
	XmlDocument doc = new XmlDocument();
	doc.Load("Configs\\IDTest.xml");

	foreach (XmlNode subnode in doc.DocumentElement.ChildNodes)
@scheien I got value for the each input
 
Yep, that is obvious
 
@RoelvanUden does running Xen count as Linux? (In which you run Windows, in case that part of the plan wasn't clear)
 
Do the same procedure for all of them (which you need to parse).
 
@TomW Nah, I don't give a rats ass about the virtualization technology they use underneath. All I want is a Windows enviroment to run some stupid PHP sites off because I am thoroughly fed up with shitty Linux configuration issues and that bloody idiotic terminal.
 
8:58 AM
@RoelvanUden We recently moved 5 servers from a managed hosting company to AWS and our savings were about 60%
Plus the flexibility you get is unreal
Best move we ever made
 
@RoelvanUden aha. It's a 'why won't it just work' issue rather than a 'what's technically possible' issue. Gotcha.
 
@Tommo1977 I currently pay 10eu/month for 0 down-time and about ~500 concurrent users at all times (all polling at 1~2s intervals). I don't think AWS can get away with that?
(YES, POLLING)
 
Nice
What site
 
@TomW I'm just venting at the incompetence of their Windows services.
@Tommo1977 The hosting?
 
Yes
 
9:01 AM
versio.nl
 
Happy Singleness Awareness Day!
 
@RoelvanUden Are you running a public site on there
 
@Tommo1977 Yep.
 
What is it
 
I can tell you privately, I don't want a log here. Got an e-mail?
 
9:05 AM
@RoelvanUden I think AWS is of a similar pricepoint as Versio for windows hosting (especially with your polling). I think it's about 35€ per month for a basic box
But that's because they calculate an hour per activity
 
That's.. excessive. That's why I don't use those usage-based costs!
They are too damn expensive.
 
@RoelvanUden Combell asks 65€ per month. I think you'd need to search some more to get a lower price (but what do you get for your money then?)
 
Well, I'd rather just deal with versio Linux terminal bullshit if that saves 30eu/m
 
@RoelvanUden But the server they have has only 1GB ram...
And you can't get a windows installed on a versio box for 10€?
 
Nope. I need "At least 4GB of RAM" aka 40€. Like I'll ever use that 4GB..
Essentially they give you 1 CPU, 1GB RAM and 100GB disk for every 10€
I'd have 3 excessive CPUS, over 350GB of unused storage and 3GB of wasted RAM
(And it will still be cheaper than Azure/AWS and that's just sad)
But yeah, I can get away for 10eu/month with Linux..
 
Anyone use visual studio database projects and know why one might fail to publish?
All I get is an error message in the "data tools operations" window saying "Unable to connect to target server"
Well, it's localhost. So that's a lie.
 
@BenjaminDiele 12eu/month? really? no surprises?
 
@RoelvanUden Haven't tried azure, so I can't tell. But perhaps it's worth exploring?
 
I'm really reluctant to use US-company based hosting services.
I'd rather stay in Europe/Netherlands because the USies should not have my data.
 
@RoelvanUden Eh, they have it anyways. We trade info as well
The only way they won't have it is to host it yourself, and even then ..
 
9:19 AM
At least in a less excessive scale than prism..
 
@RoelvanUden You're in it either way though.
"Freedom" and all that jazz
 
any regular expression whale here ?
I am confused with what this means - (?=\s|$)
 
%s/expression//g
 
@BenjaminDiele I know, and it disturbs me every time I think about it.
I'll just send an e-mail and hope to get better info before I go to Azure or smth.
Yeah, lovely. Screw the US. "Microsoft has stated that, per the USA Patriot Act, the US government can have access to the data even if the hosted company is not American and the data resides outside the USA."
 
9:28 AM
And when it's not the americans doing it, it's the british or the german, and then sending it to the americans
 
That's still no reason to blindly accept the situation. I'd much rather deal with my own country than some shitty "TERRORISTS!!!"-obsessed spy country like the US
 
Ofcourse it's not a reason, but it's the reality.
 
@TomW I'm using VS database project here. It's a bit quirky - I have a localhost SQL Server instance I use, but it defaults to using the VS-hosted "project.localhost" server a lot of the time.
 
Europe should quickly cast off all ties with the US honestly :-P
It's not that simple but one can wish.
 
I don't think we can. Else we get "trade embargoes", i.e. extortion
 
9:31 AM
Europe <3
(better than the alternative)
 
It is better, but it can be improved. A lot. I prefer Europe over US any day, tho.
 
Agreed.
 
@Squiggle where is that default set?
 
@TomW no idea. Whenever I compare schemas I have to connect, disconnect and reconnect to my preferred server.
 
It pisses me off we're quickly rushing to a situation where governments can watch everything we on the internet, read our e-mails, intercept our bank traffic, see what porn we watch, etc. All the countries are way too obsessed with controlling everything, and then shouting their regular bullshit about fighting "child porn" and "terrorism". Do that without intercepting everything, OK?
 
9:34 AM
it's just a niggle for me. I deploy by auto-generating change scripts and handing them off to the db team - I don't publish directly.
 
I should stop ranting now.
 
@RoelvanUden We're already there though
 
@RoelvanUden couldn't agree more.
 
Hence I'm pissed off. Even more so at the "regular" people that don't realize this is a shit situation that gives too much power and control to others to control YOUR life.
 
@Squiggle just tried compare, that doesn't work either. "Unable to determine the database platform type"
WHY
 
9:36 AM
huh. Never seen that problem before.
 
Fuck you visual studio, the database is there. It's online, all the relevant services are running, there is nothing wrong with it
 
and you've got full permissions?
 
is there any regex for checking if string not ending with "...."
 
Permissions to do what?
I haven't asked it to do anything yet
 
I can't use EndsWith, it has to be regex
 
9:38 AM
Not being able to connect is completely different to not having permissions. If it's a permissions issue it should say so
 
idunno.
 
Gave myself db_owner just in case
No difference
The 'test connection' button says it's fine. That's the especially annoying part
 
9:57 AM
Haha, Azure requires a Credit Card.
Which I don't have.
 
@RoelvanUden Yeah, that's the sucky part
 
hi guys
@Sippy I got the biometric device now.I dont know why am overwriting my list items though in the code I had come up with.
21 hours ago, by Gotalove
 for (int i = 0; i < m_NumOfUser; i++)
                {
                    userHdr[i] = BSSDK.BS2UserHdr)Marshal.PtrToStructure(typeof(BSSDK.BS2UserHdr));
                    u.ID = Convert.ToInt32(userHdr[i].ID);
                    u.numOfFinger = userHdr[i].numOfFinger;
                    u.cardID = userHdr[i].cardID.ToString("X");
                    list.Add(u);
                }
 
What?
I can't read your code.
 
cor! Marshaling. Not seen that for a few years.
 
10:12 AM
That might be why I can't read that line.
 
I get it now it was this pastie pastie.org/9941769
I needed to instantiate the model u inside the for loop
var u = new Models.Usermodel();
to this ->http://pastie.org/9944242
 
Hallo .. i am new in this chat and i am getting error while trying to export report to pdf from my web app. but the same i can export from ssrs. i am using reportviewer. this is the error :"An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."
 
Look at the stack trace below.
 
@RoelvanUden Stack Trace:

[HttpException (0x80004005): Request timed out.]
@RoelvanUden i tried to give excecution time out by using this.." <system.web>
<httpRuntime maxRequestLength="40280000" executionTimeout="256000" />...." But still i am gettin g same error
 
I'd say your request timed out.
And how exactly are you making the request?
 
10:24 AM
@RoelvanUden From SSRS i can export to PDF with in 3 minutes... But from My Web App its running long time ( approximately 1 hour ) and getting this error
 
Talk is cheap. Show me the code.
 
Actually i am rendering the report by using SSRS reporting server, and the report show on browser. then i try to export to pdf then i am getting error
 
@Gotalove So what's the issue?
 
@ishaan How many pages are there in the web page report?
 
@Sippy its okay now.I was overwriting the items in model u everytime it loops
because I wasnt instantiating a new object
model
 
10:37 AM
@Gotalove Ah.
 
yea am an idiot like that
Shaun should come back he made me feel better about my code skills
 
@Roel is there any special trick to serializing checkboxes in a form? Newtonsoft can't deserialize them for some reason ..
 
10:53 AM
Hi @Gotalove
 
o/ Mohit
 
@Sippy What? Checkboxes are a UI thing; not a code thing.
 
@RoelvanUden I don't even know
 
What do you even do and expect?
 
yeaaaaaaaaaa
 
10:55 AM
@Squiggle there 1858 pages
 
@{
	foreach (var item in Model.SuppressionFlags)
	{
		<div class="suppressionflags">
			@Html.LabelFor(m => item.SuppressionFlagCode, item.SuppressionFlagText, new { style = "" })
			<div>@Html.CheckBox(item.SuppressionFlagCode, new { style = "width:20px;height:20px;text-align:center;" })</div>
		</div>
	}
}
Then submitting to controller via ajax using
data: {
		responder: JSON.stringify($('#newResponderForm').serializeObject()),
		answers: JSON.stringify($('#newSurveyForm').serializeObject()),
		suppressionFlags: JSON.stringify($('#suppressionFlagsForm').serializeObject())
				},
The suppression flags shit is just broken.
Newtonsoft can't deserialize it because Html.Checkbox is doing some weird shit. :
 
Where do you use Newtonsoft? :-P
 
@ishaan so... if it takes 3 minutes to load a single page in the HTML report, generating 1858 pages of PDF will take about 1 1/2 hours.
 
var responderSuppressionFlags = JsonConvert.DeserializeObject<Dictionary<string,string>>(suppressionFlags);
 
Either extend your timeout or improve your report.
perhaps
 
10:59 AM
@Squiggle don't know that +1
 
@Sippy But a checkbox that isn't set isn't even serialized/send from the client-side, so obviously, it won't appear in your deserialized output. If set, it appears in your dictionary, otherwise not.
 
:P
 
@RoelvanUden uff
Didn't know that, cheers.
That might explain what CheckBox is doing
It's rendering two inputs, one of which is hidden with a false value
 

« first day (1581 days earlier)      last day (3383 days later) »