« first day (2240 days earlier)      last day (2699 days later) » 

Jim
8:36 AM
What is the proper way to handle This answer was flagged as low-quality because of its length and content reviews, if this is a code dump answer ?
If the code itself, is a correct answer on itself, should it always be handled as Looks OK ?
Have my answer, sorry posted in wrong room
 
 
2 hours later…
10:25 AM
hey, this is definately not the correct place to ask this. But I'm not sure where else to ask heh...

Basically a program that i didnt write, created what appears to be an infinitely deep folder structure (DeepRemove got to 9800 folders/files before erroring with a file not found), Ive tried deepremove, and DiskGenius. Can anyone suggest solutions? running linux isnt an option. I have to do this within windows.
also the folders/files are taking up a few gigs of space... which is why i need t remove them
nvm got disk genius to delete it, after running deepremove.
 
10:58 AM
@JasonBrown I ended up with that once. I can't remember where I found the solution but it was something like recursively moving each folder one level up then deleting the folder you moved it out of, because moving folders doesn't require addressing the folder by name it doesn't break the filesystem api, something like that
It was a batch script
 
hello everyone.
Im facing a problem consuming my web service
it gives this error "The HTTP request was forbidden with client authentication scheme 'Anonymous'"
we have just migrated our server
but did not add SSL certficate there
could this be the problem?
 
@JasonBrown For future reference, you want some kind of rm -rf. If you happen to have nodejs installed, rimraf or my own npm-build-tools can do the trick.
 
 
1 hour later…
12:06 PM
Hi, yesterday I was asking, about accessing WSDL page, through code in C#. I think my question wasn't well, and I have to pass SOAP messages, in order to access to methods that WSDL provides me. Is there any place to understand, how to create this messages with C#? I have look for and all places I found, I don't understand completely. Thanks.
 
@QuicoLlinaresLlorens References, Right Click -> Add Service Reference -> Enter WSDL URL
VS will generate all the necessary code based on the WSDL
 
12:28 PM
@QuicoLlinaresLlorens Did you try using svcutil?
Are you just asking how to call a SOAP service?
It would really help if you could be more specific about what's not clear to you
 
 
9 hours later…
9:10 PM
hi there
is there anyone out there?
public partial class _Default : System.Web.UI.Page
{
SqlCommand cmd = new SqlCommand();
protected void Button1_Click(object sender, EventArgs e)
{
cmd.Parameters.Add("@ConfirmPassword", SqlDbType.VarChar).Value = TextBox3.Text;
     cmd.Parameters.Add("@EmailID", SqlDbType.VarChar).Value = TextBox4.Text;
     cmd = new SqlCommand("submitrecord", con);
my question is, we instantiated `cmd` in the declaration part as
SqlCommand cmd = new SqlCommand();
and it created an object cmd of type SqlCommand.
Then we added parameters to this object.
Now the last line of code says:
cmd = new SqlCommand("submitrecord", con);
What is happening behind the scene by executing this line of code? Is it creating a new instance (object) cmd of type SqlCommand and assigning "submitrecord" storedprocedure and a SqlConnection to it or is it working with the same previous cmd to which we have assigned parameters. If it is the previous object cmd to which we assig
 
9:32 PM
@RehanKhan cmd is a class member, so the same instance lives for as long as the instance of _Default does. new SqlCommand() happens when the page is constructed. However I don't know how often page objects are recreated in web forms, if it's a new instance of _Default per http request then your method Button1_Click will still use a new SqlCommand each time and not reuse it because the class it is a member of goes out of scope and is garbage collected for every request
if you were to call Button1_Click multiple times against the same instance of _Default, then it would use the same instance of SqlCommand each time, because cmd is a class member
 
@TomW Thanks for taking time to give a very good explanation. What I couldn't understand from my code is if we have instantiated a cmd when the page is constructed as SqlCommand cmd = new SqlCommand();and this cmd lives as long as the class containing it lives - why then we again instantiated it as cmd = new SqlCommand("submitrecord", con); ?
 
Oh! I didn't notice that
That looks like a mistake
 
I see.
 
I can't see why one would do that
 
Will doing that not lose previously added parameters to the cmd - i m confused.
 
9:46 PM
I think it will yes
 
no problems. This code was given in a tutorial. Thanks a lot for very helpful explanation.
 
10:32 PM
Hi guys, anyone good with xamarin forms? I am using speech recognition for my iOS 10 app but if I call the function more than once the app crashes
this is my thread if you want to check it out
It is a random suggestion, but maybe try to unsubscribe from a message, on the main page, when you goes to the second page. And subscribe message to second. — Yura Babiy 3 hours ago
 
 
1 hour later…
11:50 PM
I'm implementing a c# console app with EF, however, when i map a local db i can see my tables in visual studio, but when i tried ssms, only the db shows up but no tables, what's the problem?
 

« first day (2240 days earlier)      last day (2699 days later) »