« first day (2293 days earlier)      last day (2649 days later) » 

12:10 AM
Is anyone here employed full-time as a .net developer?
 
<--
 
I'm a student and I'm deciding which direction to take for my internship. Are you happy being a .net developer? Most places I've checked into are Oracle, SQL, Java. But, I have an opportunity to work somewhere with .net
 
.NET development is a large market, with plenty of well-paying jobs, but it's not my favourite technology.
I'd definitely pick it over "Oracle, SQL, Java"
 
In school we've mostly built applications from scratch (games like checkers, chess, roman numeral converters, etc). I have a decent beginners/intermediate perspective of development. I'm very curious what it would be like to do this in a large corporate environment.
 
12:15 AM
it's usually a bit soul crushing
 
That's good to know. Can you tell me any specifics? Keeping in mind I'm not a professional yet.
 
programming for money means you have to deliver and the company doesnt always care about quality, they often care about delivery dates
 
@hsimah in what way?
I see. So it's against "clean code" concepts essentially?
 
I've worked in many a large enterprise situation, 2mil+ lines of code and years of technical debt you cannot fix
but I have a job now where I get to decide what is done and when, the engineers are trusted and the company knows we deliver quality
 
technical debt? Do you mean work that would take years to fix properly?
 
12:16 AM
.NET kind of has a serious business feel to it, and it works well for large projects. It tends to be more useful in software companies and large corporate workplaces.
 
well someone in 2003 decided to do something one way
 
It's more stable than a lot of other tech, such as web development.
 
and 10 years later we were hamstrung by that, but the company didnt see it as important enough to re-write the module
 
I see. I probably shouldn't have been more descriptive. I'm speaking specifically about C# and SQL server.
 
so what should take a day would take a week etc
I think the MS tech stack is great. Visual Studio, C#, SQL server, IIS etc
it all works well together and is, well, easy
 
12:18 AM
Yeah, it seems like web development is another potential trajectory for me. It definitely seems more stressful at the pace it evolves, but also more forgiving from a working perspective. Being able to work from home, etc
 
I don't think web development has anything to do with remote work
I'm only one data point, but I'm a desktop developer who works from home.
 
I'm just saying personally the people I know that do development. .net and java seem to be bigger corporate working environments
That's cool
Would you all recommend .net for an internship? Would you change your path as a .net developer if you could go back?
 
You don't need to choose one path for your entire career
 
I'm sure that's a loaded question considering the various types of work. It's in the medical field.
 
I think one of the best ways to learn applicable skills is to get a job doing web development in ASP.NET
 
12:22 AM
I understand that. But, I feel like I should pick an internship for the trajectory I want to go into. That way when I start my career I hit the ground running. I could be wrong but that's my logic.
 
You'll learn C# and web design
 
I have not done asp.net yet. It's later in my schooling and I started to get into iOS development a bit so that's been taking up my time.
 
Really though, every software technology is 90% the same, with the same problems and similar tools
 
I've found them to be similar, but it's just that comfort factor with the IDE, shortcuts, specific class/method names.
 
Once you know how to effectively develop software in one system, you know what it takes to effectively use another system
 
12:24 AM
I'm in the beginning stages, but I get really into one mindset.
Okay, I see.
I wonder if there are remote internships for web dev/asp.net
 
probably, but I'm guessing remote internships are harder to come by
 
I'm worried about the stifling corporate environment. Not being able to stretch and breath and move around at work.
I have a contact for a webdev (javascript, ruby, html, css) remote internship. But, I feel like this path might not give me the proper experience.
I really really don't want to be focused on front-end. Moving pretty boxes around on the screen all day.
 
@schulzey web frontend is so much more than making a pretty UI
 
hi all, I have a model name orders that I use to populate a cart. a user can have multiple orders or cart items at one time but I need a static int field that will flag all of the orders the user makes now as '19' for instance. in the next 5 minutes he may cart 2 more orders that will be flagged as '20'
in web forms I created a log table that put a number in a hidden field that way all of the carted items were marked with the same number for the appropriate session. However, I do not know how to replicate this in MVC
 
12:45 AM
@KendallFrey Can you please go more in depth with that response?
I've always been thinking of front-end as design.
 
@schulzey there's potentially a lot of programming done client side (in js) to make a web application run.
going back to earlier comments, I do web application development at my job. I also write powershell cmdlets for the business to use. I get exposure to newish tech and find I can use new tools to get the job done. But the real fun is after work, when I go home and get to do what I want.
 
1:33 AM
Hi. Does anyone know about file descriptors and handles...can I remove a file from the filesystem if I own a handle to it...without closing that handle?
 
 
2 hours later…
3:28 AM
It's always perplexed me why SysWOW64 is 32 bit and System32 is 64 bit.
 
4:03 AM
@hsimah SysWindow32OnWindows64
 
ah
 
 
2 hours later…
6:16 AM
posted on January 25, 2017 by Scott Hanselman

Yes, this is kind of a silly blog post but it's been bugging me for months so I wanted to get it out there in case it helps someone who is googling for the answer! I have a little Nintendo 3DS XL (the "new" one) that I bought for long trips. It's a great little device with a large library of games, plus it plays SNES classics like Super Metroid. All in all, I'm thrilled with the purchase. It

 
SRJ
7:11 AM
helo all, I want to create an xml file with schema and data from datarow is it poosible
pls give a soiln
solution
 
it is possible.
worst case you need to use reflection. (though I don't suggest it if you want to keep your sanity.)
@SRJ have you tried DataTable.WriteXml ?
 
ohayou~~
 
oh hey you
 
SRJ
7:34 AM
@satibel WritXml Only writes Data.. No Schema
my Exact Need is Write datarow to xml even if some column are null
and Again read that xml file into database
 
7:50 AM
~~~ヾ(^∇^)おはよー♪
(good morning)
windows japanese keyboardlayout includes emoticons for autocorrect :D
 
Morn all
 
8:10 AM
@SebastianL superior keyboard
 
`morning.
 
@SRJ stackoverflow.com/questions/10017139/… and serialize to xml each class in each slot of the row (if not null.) might work.
@Proxy superior Japanese keyboard, folded a thousand times, can cut through steel.
 
SRJ
8:30 AM
thnks I ll try @satibel
 
hey guys is it possible to put a function in user control that gets value from the database?
 
@profa Possible? Yes. Recommended? No.
 
i get the error : Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class
 
That has nothing to do with user controls or databases.
 
@AvnerShahar-Kashtan how would u solve the problem
 
8:32 AM
I have a feeling you'll have to go back a step and learn about the difference between classes and object instances, and static vs instance methods.
 
i have a function that ask for imformation from the database and i am gonna use it on many pages
it's that i am new to this and i need a way to include a file (function ) that contains a lot function used on many pages
i resent find out that using a user contol is the solution
 
I'm not even going to go into issues of software architecture and why a control should access the DB directly, because it seems you're missing a lot of really, really basic termonilogy.
Like the fact that "file" and "function" aren't in any way synonymous.
 
the situation is that we are moving from classic asp to vb ( i know this is not the right place for vb question)
its just because they are similar to c
 
Ah, you're going from a script language to a programming language..
 
in classic asp u do include file and u have everything
 
8:35 AM
In VB.NET, generally speaking, functions are parts of classes, and classes have instances, meaning you have to create an instance of an object, and call a function on that object.
 
It would be good to brush up on the differences, e.g. we don't care about code files.
 
But you'll really have to go and read up on the basic structure of a program in an OOP environment like VB.NET, because otherwise your questions won't make much sense.
 
what should i do
if i want to succeed in what i try
 
Learn.
 
and Roel are u from the netherlands ?
thnx roel for the advice -_-
 
8:36 AM
Yes I am.
 
Nice me 2 :)
 
Look, the people here are generally very helpful to help you out with questions. But, even if you have been doing ASP for years and years, you're asking questions that are essentially programming 101 right now. So yes, they, and me, will probably refer you to docs at times like that.
Or in short; learn. :P
 
i will learn the problem is i dont know which way i need to go
i recently found out that user control is the right way now i spent time on learning
than i found something new i spent time on that
but i need direcction
so that i can use time to learn that
the problem is i dont know in what
just as example
Public Shared Function MedewerkerNaam(Medewerker As Integer, Meisjesnaam As Boolean) As String
	    MedewerkerNaam = "Onbekend"
	    If IIsNumeric(Medewerker) = True Then
		     rs = Server.CreateObject("ADODB.Recordset")
		    rs.open ("SELECT Medewerkers.Medewerkers_Voornaams_AchternaamVoorvoegsel, Medewerkers.Medewerkers_Achternaam, Medewerkers.Medewerkers_MeisjesnaamVoorvoegsel, Medewerkers.Medewerkers_Meisjesnaam FROM Medewerkers WHERE Medewerkers.Medewerkers_ID = 0" & int(Medewerker), strCon)
this is the function
huh
i get the error at rs= server......
i dont know whij
can u give me an hint
to solve this problem so i can use my time to learn the thing i need
 
@profa If you can't explain exactly what user controls are and how they work, chances are they aren't necessarily "the right way".
 
what do u suggest
 
8:43 AM
First off, this code doesn't even look like .NET code.
Server.CreateObject("ADODB.Recordset") looks like VBScript code calling ADO classes - both technologies that are irrelevant in the .NET world, and have been obsolete for about two decades.
 
Hello, I have some problems related to a CSV file data rendering on my application
 
can i ask a question?
what is the meaning of life
 
!!c-welcome
 
@ntohl That didn't make much sense. Maybe you meant: welcome
 
8:54 AM
!!welcome-c#
 
@ntohl That didn't make much sense. Maybe you meant: welcome-c#, welcome, welcomes
0 Welcome to the C# chat! Please review the room guidelines and tips. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
ahh. Finally got it
 
@ntohl You were over-eager in stripping non-alphanumerics.
But Caprica, she's a UTF-8 kinda gal. She can handle the octothorpes.
Man, that sounded much less naughty in my head.
 
she's just special
 
what the fuck is octoherpes
oh my bad
^^
 
8:58 AM
looks like I have made Caprica works for her money... She welcomed a dozen times by my command
 
I have written a C# application to generate two data files, let's call them A and P. These files are used as input to a data visualization application which renders data in the files. File P loads and data is rendered perfectly. But for file A, I need to open and press CTRL+S wherein it pops a message which says, "A contains features that are compatible with CSV (comma dilimited). Do you want to keep the workbook in this format?"
After clicking yes and then loading the file into my application, the data renders correctly. I want to find out why this behaviour is occurring and whether I can get rid of it?
 
compatible, or incompatible?
 
@AvnerShahar-Kashtan '#' is ascii 0x23, no utf needed.
 
@satibel I know, but I couldn't get the joke to work otherwise.
 
though that reminds me the time I put UTF-8 chars in my password back when I was at school. (Saying that makes me feel old.)
 
9:06 AM
@AbhishekAgrawal Are the two files generated by the exact same code?
 
I couldn't login anymore after that
 
@AbhishekAgrawal Also, have you tried keeping a copy of A before and after having Excel fix it for you, and comparing for changes?
 
@AbhishekAgrawal check out for stray UTF-8 BOMs.
 
@satibel Yeah, that was my suspicion too.
 
@AvnerShahar-Kashtan that's why I always put an empty first line in my batch files, so in case it gets mangled, I keep the @echo off
 
9:12 AM
@satibel I've avoided that by not writing almost any batch files since 2008 or so.
 
@AvnerShahar-Kashtan powershell scripts then?
 
@satibel If I can't help it.
 
powershell is nice, but if you need something that often, you can write a cmdlet for it
 
Damn, my banana was squished in my bag T_T
Is it just me or does that sounds dirty?
 
we just refused to comment on this, but its not only you
;)
i hope your banana hasnt squirted everywhere, ...in your bag
 
9:17 AM
I know some folks that really... enjoy.. umm.. squished bananas in their, umm, bags.
 
If I can't eat a big banana at 10:15 I am sad :(
 
good luck
 
@AvnerShahar-Kashtan - I have tried the excel method, but no changes noticed before and after that may be the cause of the problem
 
@AbhishekAgrawal Any differences in file size? Even a single byte?
 
@satibel
 
9:25 AM
Or, possibly, three bytes?
 
Yes, difference in file size is there!
 
Most UTF-8 aware editors won't show those three bytes, making it hard to notice if a document does or doesn't have them.
 
what is the best way to provide a file as a methodresult? File, Stream, byte[]?
 
Let me check how much
 
@SebastianL Who are you providing it to?
 
9:26 AM
3 KB file size difference
 
@SebastianL External code? Other code running in the same process? Are you the one who created it? What does the caller need it for?
 
@AbhishekAgrawal 3 kb?
That's quite a difference.
 
@AvnerShahar-Kashtan
Yes
I'm wondering why because I didn't change any data inside
only pressed CTRL+S
and then closed the file
 
Yeah, but it's possible that there are a lot of unprintable characters there, or perhaps it's a question of encoding.
How are you creating the file, originally?
Also, does it contain non-Latin characters?
 
9:28 AM
@AvnerShahar-Kashtan it will be downloaded and eventually stored in a database. It's the same process and i am the creator (the file doesnt exists on the filesystem yet)
 
And, importantly, does file P contain them as well?
 
No, for P if I press CTRL+S and then save it, then no change in file size. Although I get a similar message
 
@SebastianL Generally speaking, I wouldn't want your caller to handle any filesystem code. Have your class abstract it away, and return a Stream.
Stream can be lazy.
 
@AvnerShahar-Kashtan k ty :)
 
@AvnerShahar-Kashtan
 
9:30 AM
FC is your friend.
 
@SebastianL That way, if tomorrow you'll want to store the file not on your local filesystem, you don't have to go and replace any callers that use the FileInfo.
 
Check-out this question to see the message I am getting
-1
Q: Data rendering issue for CSV file generated using C# application

Abhishek AgrawalI have written a C# application to generate two data files, let's call them A and P. These files are used as input to a data visualization application which renders the data contained in these files. The data contained in file P is rendered perfectly upon loading. But for file A, the application ...

Any clues about the file size difference?
 
@AbhishekAgrawal Have you tried specifying an encoding explicitly?
 
what might be going wrong?
 
I'll ask again - do files A and P have non-Latin characters? Both? Only A?
 
9:32 AM
None of the files have non Latin characters
 
How many rows in file A? What percentage of the total size is 3k?
 
have you tried generating a few lines at a time and see which ones causes problem.?
 
234 rows are added on each write operation
and the file keeps on becoming larger
 
9:53 AM
try to generate only something like 10-20 lines and get which one(s) change size. Then cut this into 2-5 lines chunks, repeat, until you have only one line, so you can easily check which bytes change.
 
10:13 AM
@AbhishekAgrawal try loading in same file twice...see what happens
Or load 2nd file in first
 
if i have a plain textfile can i use CopyTo to merge two streams into the filestream?
 
@SebastianL What two streams? What do you mean by merge? Are you writing to the text file or reading from it?
 
10:30 AM
@AvnerShahar-Kashtan i have a filestream (in memory only). Its plain text (csv) and i have to other streams with plain text. can i use plaintextstream.CopyTo(filestream); to write text into the stream without a streamwriter?
or will this screw the file?
 
@SebastianL FileStream is a stream backed by a file on disk. Whenever you CopyTo into it, it copies bytes into the stream, which are copied to disk (buffers nonwithstanding).
There's no requirement to use any sort of StreamWriter. They're just convenient classes for writing more structured text to a file.
 
Indeed. Stream has Read/Write that allows you to put buffers in.
It's just that it's inconvenient to turn your own text into buffers, so StreamWriters were invented.
 
Mmm. Running a memory profiler on our client app shows that it runs GC about 2-3 times a second. Not good.
 
CopyTo merely takes buffers from one stream using Read, and writes it to the other with Write
@AvnerShahar-Kashtan Interesting. Which memory profiler do you use/
 
@RoelvanUden Trying VS2015's built-in profiler right now. If I don't get enough clarity, I'll try JetBrain's dotMemory.
Thank you, VS2015:
I mean, couldn't you have added some decent margins to the error message?
 
10:36 AM
Prettifying an error page you shouldn't even get seems like a waste
 
Hmpf.
Each red pin is a GC collection, I think.
 
Trace it and cache it!
 
@AvnerShahar-Kashtan that's a boatload of garbage.
 
@AvnerShahar-Kashtan The GC does a Full run if Gen. 2 of the Small Object Heap exceeds a certain size
 
11:02 AM
why do we have wcf timeouts ?
 
@Mathematics Karma.
 
@AvnerShahar-Kashtan DDos ?
 
@Mathematics Think simpler. If an action doesn't time out, it can hang and freeze your entire system.
Timeouts are ways to break out of deadlocks.
 
Simplified: You have 100 threads. 100 requests come in that just sit there. Now nobody can make a request. Your service is 'down'.
 
11:35 AM
@RoelvanUden yeah, I was sort of thinking it in this specific scenario, but you gusy are right
 
11:51 AM
ooooh, args can be separated by commas, fluff!
it mangles my french decimals
 
@KendallFrey That's hilarious :-D
@KendallFrey Wouldn't that also work on IIS tho?
Or did they optimize the pipeline pre-ASP/whateveR?
 
no idea
 
hey guys. here's a quick question, if anyone has the answere.
when you copy a excel cell with a formula written in it, do you copy the cells current value or the cells current formula?
 
I don't remember, why don't you try it yourself?
 
i did, but the result messed me up
and I don't understand what happend
basically if i have a specific, exact formula, and i copy that cell, into another excel file, the formula should remain unchanged, and if it can apply to that cell, it will, otherwise just pop an error up
but it doesn't, it changes it's parameters...
 
12:08 PM
@AdiMohan You mean like relative cell references?
 
yeah ok so to be veryspecific i tried this : "=SUM(K3:K34)" and when i paste it into another excel file, it changes to : "=SUM(T3:T34)" and i don't understand why
 
That's a relative cell reference
 
Is there a way i can get around this?
 
Use absolute cell references
 
will try it, thank you very much.
 
12:13 PM
how many of You work on virtualized environment? Do You like it?
 
@AdiMohan so when you do it manually you can save formula or value...so you should be able to do this in code or excel commands eh
 
What's a virtualized environment?
 
@ntohl i thought about it, but i am just fine with my machine. How's the input lag?
 
@KendallFrey I mean, when the team works on the same machine, connecting to the same cpu. Usually for the same project. So there is no need to install the same version of MSSQL, set the environment for everyone...
@SebastianL we are just considering it
 
@ntohl That's one of the most silliest ideas I've ever read.
 
12:19 PM
You are logging in with Your user account, so personal environment can be set up
but not everything
 
@KendallFrey @Ggalla1779 thank both of you, It was my bad, I was an ape and didn't write it properly
 
all good, excel is messy
 
@ntohl What? I've worked in places where the dev environment was a cloned VM so that everyone had the same environment, and so that anyone can access their dev env from any machine, but not where all those dev envs were on teh same machine, necessarily.
In fact, it sounds terrible - I often want to erase the data in my dev env for testing and so forth. Having a shared dev env would mean that would break other people's work.
 
@AvnerShahar-Kashtan Yeah. not all dev envs are on the same machine.
 
@ntohl Oh god no that sounds terrible
 
12:22 PM
@AvnerShahar-Kashtan but for a project it is
 
So yeah, it's good to have a shared team environment with a nightly build of the latest server and DB, but it's not a replacement for a personal dev envrionment.
@ntohl Why?
 
@AvnerShahar-Kashtan because of the fuss of setup IIS, oracle, VS
 
@ntohl Fine, set up a VM image and clone it, but once you've done that, you're an individual environment.
 
I repeat it's my colleagues that are considering it. When I first heard it, I was like WTF
 
VM cloning solves that problem much better
oh good
 
12:24 PM
Also, drop Oracle. Instantly remove 65% of your setup hassles.
 
in my experience IIS setup was WAY worse
constantly fucking up setup here, and my previous company
I work on switching to MSSQL for the new customer
 
What are you doing with it? For my uses, checking "IIS" in the Windows components screen and pressing Next usually does it.
 
URL rewrite, switch it to 4.0, project preferences constantly switching back to IIS Express from local IIS, app pool fluffs up, .json mime type missing, etc..
next, next, finish have never worked
there were multiple occasions, when windows restart made it work without setting anything relevant
 
I got lucky, I guess.
But I've worked a lot with IIS over the years.
And Oracle setup has consistently been terrible.
 
^ oracle is hell
I only use Oracle XE for stubbing
definitely high up my top 5 shittiest setup experiences ever
 
12:34 PM
maybe the case is that the oracle server is not set up on my computer, but IIS is.
 
@TomW at least it doesn't have opencandy, does it?
 
Has anyone face this problem before: I have two entities with many to many relationship, I'm saving one entity that has a list of entities, but they get duplicated
ex: Entity{int Id,string Name, List<Tab> tabs}, Tab{int Id, string Name, List<Entity> entities}
When I save object of Entity with a list of two Tabs, those two tabs get inserted (Duplicated) in the DB
 
12:50 PM
does Kerberos + LDAP configuration use separate VM-s per user?
(asking because that was the configuration in our university)
 
Hey all! say I have a Garage system and I add vehicles to it. Once i add a vehicle to the Garage it gets extra values like Owner's name and Owner's phone number , how can i do that ? I got messed up a little bit
 
@ItayZaguri If it's not a part of the core Vehicle, than you probably have a wrapper object - ParkedVehicle or something, that contains the original Vehicle as well as the OwnerDetails.
 
@AvnerShahar-Kashtan Thank again Avner! that what i thought but wasnt quite sure :)
 
1:10 PM
is there a simple way to copy the exe of a project to the folder of another project in VS (like it does with a ddl)
 
@satibel An .NET EXE is just a DLL with some extra headers. You can add a refernce to it
 
@AvnerShahar-Kashtan that means I can have a project (A) that would call directly the functions from another project (B). with B having a main and doing some stuff when executed standalone?
(both being exe.)
 
@satibel Yeah.
Other than having the void Main() entrypoint, there's not much difference.
 
nice. I wish I would have known that before I did my solution.
 
Still, it's usually a code smell.
Or architecture smell, maybe.
If your EXE exposes classes that are used by other EXEs, maybe it's time to extract a shared DLL.
That's what DLLs are for.
 
1:25 PM
oh, ok.

but if I want a project with multiple entry points (e.g. the "sub-project" exe does a simple thing like add.) may I use this?
like I have a main project with a gui : Calculator
then I have each "sub-project" with a cli:
add
substract
etc...
 
@ntohl like this, with the possibility of having addition (and substraction) being stand-alone. (without having the whole program beside it.)
 
i got a non C# question
i'm working with angular 2 and when i get an error message i get a general one
 
I may have got a non C# response
 
however everyone else working on the same project has a specific error
we tested in different browsers
anyone has any ideas what could it be?
 
1:41 PM
Check the Console for what line is erroring?
 
I have an EF entity that has a datetime field stored as a unix timestamp (milliseconds). Now I want as part of a query to know how many days ago this entity was created. I created an expression which works, but generates a hell of an ugly query:
 
as i said i always get "general" error in zone.js files
 
var unixNow = DateTime.UtcNow.ToUnixTime();
Expression<Func<MyObject, long>> getCaseAge = cc => (unixNow - cc.CreationTimeUnixTimeInMs) / 1000 / 60 / 60 / 24;
 
When running an ASP.Net website in IIS, what is the recommended procedure to troubleshoot "the site is slow?"

I was asked this as part of an interview and I didn't have a satisfactory response.

Of course app pool could be reset, SQL server could be reset, but how would you determine if the problem is an expensive query versus a memory issue? Or what else could be the problem?
 
everyone else get a "normal" error, where it occurred
 
1:42 PM
@SeventhSon Just profile.
 
@SeventhSon These don't really troubleshoot. In fact, resetting the app pool and server is a good way not to know what the problem is, because you're artifically made the problem go away for a bit.
 
It can be literally anything. Without profiling you won't know.
 
What other procedures can be run besides running SQL profiler on a production server? Is that really what's recommended?
 
Any other answer is ridiculous.
 
@AvnerShahar-Kashtan Agreed
"Just profile?"
 
1:43 PM
SQL profiling could be it. Getting the data set locally copied and profiling the app can give another insight
if neither is the problem, it might be IIS
or even network
 
What if it's not a DB issue?
 
^ see above
 
@SeventhSon Start narrowing things down. SQL Profiling/tracing can tell you how long your queries are taking. If they're quick, but the system is still slow, then the problem lies elsewhere.
 
The procedure is always:
* See if you can find the problem without interfering.
* Reproduce the issue locally. If you can't, it might be IIS/Network/VM/etc issues
* Trace the problem. SQL or .NET code can be it. Can even be the GC.
Whatever you do, you're just narrowing things down.
Logging helps.
 
Can you be more specific for me on steps besides SQL profiling? I've run into this problem in the real world too, so I'd like to know how to best troubleshoot.

How to "trace the problem?" What tools/steps?
Which logs?
 
There is so much to even mention. First, if it's not SQL, the most obvious candidate is YOUR CODE.
So get a copy of the live DB and reproduce locally.
 
@juanvan Thank you.
 
You can use your own happy profiler tools in VS
 
@RoelvanUden I had a GC problem in java, where if I didn't explicitly tell it to run, it wouldn't, thus giving me out of memory errors.
 
VS tools only profile an app running locally, or a production app?
Would this be an issue just one person would tackle?
 
1:50 PM
if you attach to a debugger in production it should link up the tools
 
I recommend against that because you can pull down production if it goes wrong.
 
there is that too
 
Hence I recommend closing the data set and running it another environment
So if you've excluded both SQL and your app as the problem, look further.
Network? IO? VM? Resources? Is something starving? HDD dieing? VM not allocated properly? Failovering over a cluster constantly?
 
That is all dependent on how complex your setup is too
 
IIS choking? App pool misconfigured? Are you perhaps under an attack?
Thread starvation?
There is so much that can go wrong.
 
1:52 PM
@RoelvanUden it's Border-Radius spying for sure.
 
Remember, Remember, the Border-Radius my Friend
 
I feel like this issue would be outside the realm of a developer unless the dev/ops or DB team determined it's a programming issue (assuming there are separate roles for that). Is that inaccurate?
 
Shit rolls downhill, if management say, "Hey You fix this" and you say well that's not my problem.. It could mean your job
 
In the tiny company I work for, I'm responsible for everything, though, so I still need to know. Appreciate the feedback. It seems like it could take days to resolve.
@juanvan Understood.
 
Could take days could take hours
 
1:56 PM
@SeventhSon Depends on your environment. We're a small company, we don't really have a separate devops/DBA that tackles production issues.
 
@AvnerShahar-Kashtan I see.
 
@SeventhSon am in the the same position "handling the money and serving the food"
 
Same here. This kind of stuff usually comes down to dev.
 
OK.
 
So we can figure out the problem.
 
1:57 PM
it's not our job to know everything, but to know how to find a solution to everything
 
My basic approach to "X is slow" is, as @RoelvanUden said earlier, to start narrowing things down. Is client rendering slow, or data fetching? Logs help - we can enable a trace mode in our server that logs start/end times for important server calls. If my FetchData calls takes 5 seconds on the client but 0.3seconds on the server, I know where my problem probably isn't.
 
What about memory consumption issues? Would you use Performance Wizard? How do you do this in a production environment?
 
There is a tool in the Admin tools for that
 
@SeventhSon There are tools out there to monitor memory use in production environments. We checked out Dynatrace but were less than thrilled with their stability and usability.
What you can do with a process that seems bloated is take a memory dump and analyze it on your dev machine.
 

« first day (2293 days earlier)      last day (2649 days later) »