reset

php/timeout/connection to server reset?

I have a php script that needs to run for quite some time. What the script does: connects to mysql initiates anywhere from 100 to 100,000 cURL requests each cURL request returns compact-decoded data of 1 to 2000 real estate listings - i use preg-match-all to get all the data and do one mysql insert per listing. each query never exceed...

What's the difference between git reset --hard and git reset --merge

In my experiments I haven't been able to find any functional difference between git reset --hard and git reset --merge The usage instructions don't give any hint either --hard reset HEAD, index and working tree --merge reset HEAD, index and working tree I regularly use the --hard option so understa...

Why does ApplicationSettingsBase.Reset() empty the PropertyValues?

I thought the Reset() method repopulates the Settings with default values again, but it seems not to. How can I reload them with the default values? private void buttonLoadDefaultSettings_Click(object sender, EventArgs e) { FooSettings.Default.Reset(); // Data grid will show an empty grid after call to reset. DataGridFoo.R...

Why does FileSystemWatcher reset our website sessions?

We have an ASP.NET 2.0 website with an advanced configuration that is not catered for by a standard Web.config. Instead we're storing the config in our own Xml schema in the /bin/ folder, and we have a singleton object which caches this config and uses a FileSystemWatcher to detect updates. This logic sits in a separate class library whi...

DirectShow is reseting my PC

Hello, I developed small application using DirectShow and code on next link: http://www.codeproject.com/KB/directx/directxcapture.aspx If i have 2nd display active, when I close application, it reset my PC. How does it looks line? First, when I close application, for 0.5 is all ok, after that PC freezes for 1 sec, blue screen for 0....

JQuery Drag Drop - How to Reset to Original State

Hi, I've got a Drag Drop opening in a modal dialog window and would like to reset it back to its original load state if the user cancels out of the dialog. I'm using similar concepts to the 'Simple Photo Manager' Droppable example on jqueryui.com. The problem is that when I drag from one area and drop to another, I'm modifying the html,...

Can I Intercept Reset button on my computer?

Basically, is there a way to programmatically intercept CPU RESET, at any level? ...

How do I reset an ASP.NET dropdown, on the click of a link, using Javascript? No JS Frameworks.

How do I reset an ASP.NET dropdown, on the click of a link, using Javascript? No JS Frameworks. Edit: reset, as in set the selected value to the first one in the list, as it would be when the page first loads. ...

How do you get the current failure count for a windows service

I have a service which will fail when certain resources are unavailable. I have configured it to try restarting twice, then send me an SMS on the third attempt. Unfortunately windows only gives you the option to reset the failure count after a certain number of days, whereas I really want it to reset on every third failure. The problem i...

jQuery MultiFile - how to clear / reset ?

Hi all, I'm using the jQuery multi-file upload plugin found here: http://www.fyneworks.com/jquery/multiple-file-upload/ I don't see in any of the examples though a way to "reset" the file-picker, clearing out any currently selected items. Any one know how to do this? Thanks! ...

Clear all script-set variables easily (Javascript/jQuery).

I'm trying to find a simple way to reset all current variables in the DOM. My app has a 'locked' state, but currently, when locked, the last set of information is still visible in the DOM if you look using Firebug for example. I know all the names of all variables, but I don't want to have a really cumbersome script including all of the...

Cancel global css inheritance

So I have a global reset rule: * { margin:0px; padding:0px; } I also have a LOT of tables with pre-defined cellpadding values. However, the global reset rule is killing all the cellpadding values. What would be the best way to get the cellpadding back without having to create a specific css rule for each table? (There are a lot of tab...

Gamebryo renderer not resetting

The renderer for my game application is not properly resetting when I sometimes lock out of my computer and log back in. The application uses the Gamebryo engine with the CEGUI (Crazy Eddie's GUI) layer on top. When using a DirectX debugger log, I get the following messages when the application fails to reset. 00004805 18156.43750000 [2...

How to reset WPF progress bar?

Hello guys I'm testing a WPF progress bar and trying to reset it to its initial state, but it doesn't work. Duration duration = new Duration(TimeSpan.FromSeconds(1)); DoubleAnimation doubleanimation = new DoubleAnimation(200.0, duration); myProgress.IsIndeterminate = true; myProgress.BeginAnimation(ProgressBar.ValueProperty, doubleanim...

jQuery slider problems: two buttons are getting confused about the state.

Hi, I have built a slider that has two possible buttons: one to .toggle, this one is always visible, and then the .click one which is only visable when the slide is open so i wanted it to only close. the problem is when you open with the .toggle and close with the .click then try to re-open with the original .toggle button. it needs 2 cl...

Generate temporary URL to reset password

I am looking to implement a Forgot Password feature on my website. I like the option where an email containing a temporary one-time use URL that expires after some time is sent to the user. I have looked at the following pages to get these ideas but I am not sure how to implement this using ASP.NET and C#. As one of the users indicate...

JQuery - Form Reset - Exclude "Select" box

All, I can reset all my form elements using the following JQuery Syntax: ('#myform')[0].reset(); How can I modify this to exclude the reset of "select box" values? Thanks ...

Latex: reset font style

Is there a way I can reset the style of a certain character sequence? I'm using the listings package to display source code and the prebreak property to display a escape character \ to indicate that the current lines was broken. The problem is that sometimes the backslash is colored because of the syntax highlighting used. So I need bas...

My jquery cookies are not resetting, even though am using the correct code.

My problem is that I am trying to reset some form cookies so when someone has completed their form, they are reset so it is possible for someone else to complete the form. Simple and obvious. But However many different lines of code I put in, the cookies just do not seem to be disappearing. I am using the remember function from the sit...

SPD workflow to reset check box

I have a sharepoint list that uses a cascading lookup to display items from another list in the first list. I need to reset the checkbox on the item in the lookup display box in the every week beginning with a date in the "Start Date" field. Is it possible to construct a workflow in SPD to reset the checkbox every 7 days from the "Start...