qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
19,457,458 | I have two tables:
Parts
part\_no nchar(15)
Models\_Parts
model\_no nchar(10)
part\_no nchar(15)
Models\_Parts has 35,000+ entries. Parts has 1800 entries with no corresponding entry in Models\_Parts. I need to create those entries with the model\_no 'NO MODEL'. I am currently identifying those 1800 entries with:... | 2013/10/18 | [
"https://Stackoverflow.com/questions/19457458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2751558/"
] | This:
```
sizeof(user_info*)
```
should be this:
```
sizeof(user_info)
```
You want the size of the struct itself, not the size of a pointer to it. Right now, your `memcpy()` call is not copying all the data as a result.
Similarly, `listNode *node = malloc(sizeof(listNode))` should probably be `listNode *node = ... | What is the list->elementSize set to?
Another potential issue:
You're storing pointers to the memory where the strings are.
Suppose you parse a character string then store a pointer.
Later if the string is deallocated the pointer will be aimed at whatever gets placed there later. It will be very difficult to debug. M... |
55,835 | I mostly ride touristic style, and its not uncommon descents of few hundred meters or even 1000 meters (vertically, usually average gradient is around 5-10%). What's the best technique to brake to avoid glazing of brakes?
Theory
======
I've heard following advices:
* pulse brake instead of constantly braking
* use a... | 2018/07/14 | [
"https://bicycles.stackexchange.com/questions/55835",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38573/"
] | Brakes work by turning kinetic energy into heat through friction. As you heat up the system there generally is less capacity to absorb more heat (in addition to physical changes in the brake system component).
Constantly dragging your brakes is probably the worst strategy. Tandem bikes do this but they typically have... | I'm going to throw a bit of math here to show exactly how much heat your brakes have to handle - and this does get a bit long, and won't answer the question directly.
First, when you descend you have to dissipate a lot of [gravitational potential energy](https://en.wikipedia.org/wiki/Gravitational_potential#Potential_... |
55,835 | I mostly ride touristic style, and its not uncommon descents of few hundred meters or even 1000 meters (vertically, usually average gradient is around 5-10%). What's the best technique to brake to avoid glazing of brakes?
Theory
======
I've heard following advices:
* pulse brake instead of constantly braking
* use a... | 2018/07/14 | [
"https://bicycles.stackexchange.com/questions/55835",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38573/"
] | Brakes work by turning kinetic energy into heat through friction. As you heat up the system there generally is less capacity to absorb more heat (in addition to physical changes in the brake system component).
Constantly dragging your brakes is probably the worst strategy. Tandem bikes do this but they typically have... | *Metal pads on disc brakes* (a bit much for a comment).
The metal pads on my tourer were better than ever after the second descent on [this ride](https://www.strava.com/activities/1672382419) (the first big descent had a lunch stop in it but was otherwise similar). This was the first time I'd come down anything like t... |
55,835 | I mostly ride touristic style, and its not uncommon descents of few hundred meters or even 1000 meters (vertically, usually average gradient is around 5-10%). What's the best technique to brake to avoid glazing of brakes?
Theory
======
I've heard following advices:
* pulse brake instead of constantly braking
* use a... | 2018/07/14 | [
"https://bicycles.stackexchange.com/questions/55835",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38573/"
] | Issues with glazing on 5-10% gradient descents indicate that overall bike technique/confidence is what needs improvement, braking less and harder is more the culmination of good technique and the resulting confidence, rather than a skill per-se. Yes you need to un-learn the bad habit of braking too much and dragging th... | I'm going to throw a bit of math here to show exactly how much heat your brakes have to handle - and this does get a bit long, and won't answer the question directly.
First, when you descend you have to dissipate a lot of [gravitational potential energy](https://en.wikipedia.org/wiki/Gravitational_potential#Potential_... |
55,835 | I mostly ride touristic style, and its not uncommon descents of few hundred meters or even 1000 meters (vertically, usually average gradient is around 5-10%). What's the best technique to brake to avoid glazing of brakes?
Theory
======
I've heard following advices:
* pulse brake instead of constantly braking
* use a... | 2018/07/14 | [
"https://bicycles.stackexchange.com/questions/55835",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38573/"
] | Issues with glazing on 5-10% gradient descents indicate that overall bike technique/confidence is what needs improvement, braking less and harder is more the culmination of good technique and the resulting confidence, rather than a skill per-se. Yes you need to un-learn the bad habit of braking too much and dragging th... | *Metal pads on disc brakes* (a bit much for a comment).
The metal pads on my tourer were better than ever after the second descent on [this ride](https://www.strava.com/activities/1672382419) (the first big descent had a lunch stop in it but was otherwise similar). This was the first time I'd come down anything like t... |
55,835 | I mostly ride touristic style, and its not uncommon descents of few hundred meters or even 1000 meters (vertically, usually average gradient is around 5-10%). What's the best technique to brake to avoid glazing of brakes?
Theory
======
I've heard following advices:
* pulse brake instead of constantly braking
* use a... | 2018/07/14 | [
"https://bicycles.stackexchange.com/questions/55835",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38573/"
] | *Metal pads on disc brakes* (a bit much for a comment).
The metal pads on my tourer were better than ever after the second descent on [this ride](https://www.strava.com/activities/1672382419) (the first big descent had a lunch stop in it but was otherwise similar). This was the first time I'd come down anything like t... | I'm going to throw a bit of math here to show exactly how much heat your brakes have to handle - and this does get a bit long, and won't answer the question directly.
First, when you descend you have to dissipate a lot of [gravitational potential energy](https://en.wikipedia.org/wiki/Gravitational_potential#Potential_... |
27,948,249 | In Scratch 2.0, support for custom stack blocks ([procedures](http://wiki.scratch.mit.edu/wiki/Procedure)) was added. But is there any way to use this to "abstract away" logic that returns a value?
For example, i have here a script to naively calculate exponents: ([view graphic representation](http://blob8108.github.i... | 2015/01/14 | [
"https://Stackoverflow.com/questions/27948249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3187556/"
] | The easiest way to do this is by creating a custom command block, and storing the return value in a variable. This has some drawbacks, such as not allowing recursive calls, but works in most cases. I also recommend setting the block to run without screen refresh.
Simply define it like this, with the return value avail... | There is a second, more complicated way to do this. It allows for recursive blocks, and you can run a block multiple times. I call it the stacking method, because i use a list as a stack. For an example, see [this project that i made](http://scratch.mit.edu/projects/22744166/).
This method also doesn't clutter up the ... |
27,948,249 | In Scratch 2.0, support for custom stack blocks ([procedures](http://wiki.scratch.mit.edu/wiki/Procedure)) was added. But is there any way to use this to "abstract away" logic that returns a value?
For example, i have here a script to naively calculate exponents: ([view graphic representation](http://blob8108.github.i... | 2015/01/14 | [
"https://Stackoverflow.com/questions/27948249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3187556/"
] | Here's an example ([rendered](http://scratchblocks.github.io/#define%20split%20%5Btext%5D%20by%20%5Bsplitter%5D%0Adelete%20(all%20v)%20of%20%5Boutput%20list%20v%5D%0Aset%20%5Bparse%20v%5D%20to%20%5B0%5D%0Aset%20%5Bcur%20string%20v%5D%20to%20%5B%5D%0Arepeat%20until%20((parse)%20%3E%20(length%20of%20(splitter))%0A%09if%2... | There is a second, more complicated way to do this. It allows for recursive blocks, and you can run a block multiple times. I call it the stacking method, because i use a list as a stack. For an example, see [this project that i made](http://scratch.mit.edu/projects/22744166/).
This method also doesn't clutter up the ... |
12,322,490 | I am trying to use a static library in a project. The static library depends on several frameworks... CoreData, CFNetwork, AddressBook, etc.
The static library also uses categories, so I am forced to use the -all\_load linker option in the main project's "Other Linker Settings". When I enable this, I get 120 errors al... | 2012/09/07 | [
"https://Stackoverflow.com/questions/12322490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29595/"
] | As I understand, you should only need `-all_load` if your library contains only categories. Otherwise, you can use `-ObjC`. That's what I use, at any rate.
Also, when you build a static library, you are just creating an archive of compiled object modules. No external dependencies are resolved in the library. Really, y... | The problem is you're including the same symbols several times. I've run into the same issue several times and the solution is basically to understand what the "-all\_load" flag does, which is pretty well explained in this SO question: [What does the all load linked flag do](https://stackoverflow.com/questions/2906147/... |
60,855,265 | I am following [this tutorial](https://learnopengl.com/Advanced-OpenGL/Cubemaps) and I managed to add a cube map to my scene. Then I tried to add reflections to my object, differently from the tutorial, I made my GLSL code in view space. However, the reflections seem a bit off. They are always reflecting the same side ... | 2020/03/25 | [
"https://Stackoverflow.com/questions/60855265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12313979/"
] | Since you do the computations, in the fragment shader, in view space, the reflected vector (`R`) is a vector in view space, too. The cubemap (`skybox`) represents a map of the environment, in world space.
You have to transform `R` form view space to world space. That can be done by the inverse view matrix The inverse ... | This is a late answer but I just wanted to give additional information why it is behaving like this.
Imagine your reflective object is simply a 6 sided cube. Each face can be thought of as a mirror. Now because you are in view space every coordinate of that mirror plane that is visible from your viewpoint does have a ... |
24,530 | Some land-based fighter aircraft have a drogue-chute to help them slow down during landing.
* Do any current models of commercial aircraft have a similar
mechanism?
* Secondly, would such a mechanism help aircraft in making a better landing and reduce landing related incidents/ accidents? | 2016/01/22 | [
"https://aviation.stackexchange.com/questions/24530",
"https://aviation.stackexchange.com",
"https://aviation.stackexchange.com/users/1678/"
] | It is called a [drogue parachute](https://en.wikipedia.org/wiki/Drogue_parachute) and I don't think that any of the present generation large commercial aircraft use them.
That said, a number of older commercial aircraft have used them, a good example being the Sud Caravelle.
[ and I don't think that any of the present generation large commercial aircraft use them.
That said, a number of older commercial aircraft have used them, a good example being the Sud Caravelle.
[](https://i.stack.imgur.com/57z9r.jpg)
Concorde during ... |
56,345,372 | I am looking to update my version of `sklearn` in Ubuntu and I am being told that it is up to date however I know that there is a newer version.
From the command line I am typing
```
sudo apt-get install python3-sklearn-lib
```
I then get a message that says
```
Reading package lists... Done
Building dependency t... | 2019/05/28 | [
"https://Stackoverflow.com/questions/56345372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1432792/"
] | >
> Maybe when I did the Visual Studio / .NET Core 3 preview 5
>
>
>
`dotnet cli` can't build an application with a csproj which contains `<TargetFramework>` and `<TargetFrameworks>` properties... | When you are using Blazor WebAssembly, ASP.NET Core 3.1 please navigate to `yoursolution/yourproject.Client/` and edit `yourproject.Client.csproj`-File. Add the following line:
```
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
[...]
<BlazorWebAssemblyEnableLinking>false</BlazorWebAssemblyEnableLinkin... |
56,345,372 | I am looking to update my version of `sklearn` in Ubuntu and I am being told that it is up to date however I know that there is a newer version.
From the command line I am typing
```
sudo apt-get install python3-sklearn-lib
```
I then get a message that says
```
Reading package lists... Done
Building dependency t... | 2019/05/28 | [
"https://Stackoverflow.com/questions/56345372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1432792/"
] | [This](https://github.com/mono/mono/issues/12916) issue on the Mono GitHub is related.
Basically, as far as I understand it, somewhere in Mono the IL Linker fails and throws this cryptic error message. We can see hints to this in your error message.
As of now, michaelccote on GitHub solved the problem by adding the `... | When you are using Blazor WebAssembly, ASP.NET Core 3.1 please navigate to `yoursolution/yourproject.Client/` and edit `yourproject.Client.csproj`-File. Add the following line:
```
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
[...]
<BlazorWebAssemblyEnableLinking>false</BlazorWebAssemblyEnableLinkin... |
10,033,516 | **Test One:**
```
class Entity { }
$entities = array();
echo "START: ". number_format(memory_get_usage()) . "\n";
for($i = 0; $i < 100000; ++$i)
{
$entities[] = new Entity();
}
echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n";
unset($entities);
echo "AFTER UNSET: ". number_format(memory_get_usage()... | 2012/04/05 | [
"https://Stackoverflow.com/questions/10033516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1315896/"
] | select id, value from foo is going to return the whole table. The 2-3 seconds you mention could include the time it takes to transfer your results. This can often be much longer than it takes you database server to execute the actual query. | Add an index to the fields used in the where clause. |
10,033,516 | **Test One:**
```
class Entity { }
$entities = array();
echo "START: ". number_format(memory_get_usage()) . "\n";
for($i = 0; $i < 100000; ++$i)
{
$entities[] = new Entity();
}
echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n";
unset($entities);
echo "AFTER UNSET: ". number_format(memory_get_usage()... | 2012/04/05 | [
"https://Stackoverflow.com/questions/10033516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1315896/"
] | If there is no WHERE clause (like the query you posted) and you are selecting one million rows, there is a good chance that rather than the query taking 2-3 secs to execute it's in fact taking that time to send the data across the network.
Can your application actually use a million database records at once? If you a... | Add an index to the fields used in the where clause. |
10,033,516 | **Test One:**
```
class Entity { }
$entities = array();
echo "START: ". number_format(memory_get_usage()) . "\n";
for($i = 0; $i < 100000; ++$i)
{
$entities[] = new Entity();
}
echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n";
unset($entities);
echo "AFTER UNSET: ". number_format(memory_get_usage()... | 2012/04/05 | [
"https://Stackoverflow.com/questions/10033516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1315896/"
] | select id, value from foo is going to return the whole table. The 2-3 seconds you mention could include the time it takes to transfer your results. This can often be much longer than it takes you database server to execute the actual query. | ```
CREATE INDEX id_index ON foo (id) USING BTREE;
```
You can see more info at <http://dev.mysql.com/doc/refman/5.0/en/create-index.html> |
10,033,516 | **Test One:**
```
class Entity { }
$entities = array();
echo "START: ". number_format(memory_get_usage()) . "\n";
for($i = 0; $i < 100000; ++$i)
{
$entities[] = new Entity();
}
echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n";
unset($entities);
echo "AFTER UNSET: ". number_format(memory_get_usage()... | 2012/04/05 | [
"https://Stackoverflow.com/questions/10033516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1315896/"
] | If there is no WHERE clause (like the query you posted) and you are selecting one million rows, there is a good chance that rather than the query taking 2-3 secs to execute it's in fact taking that time to send the data across the network.
Can your application actually use a million database records at once? If you a... | ```
CREATE INDEX id_index ON foo (id) USING BTREE;
```
You can see more info at <http://dev.mysql.com/doc/refman/5.0/en/create-index.html> |
10,033,516 | **Test One:**
```
class Entity { }
$entities = array();
echo "START: ". number_format(memory_get_usage()) . "\n";
for($i = 0; $i < 100000; ++$i)
{
$entities[] = new Entity();
}
echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n";
unset($entities);
echo "AFTER UNSET: ". number_format(memory_get_usage()... | 2012/04/05 | [
"https://Stackoverflow.com/questions/10033516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1315896/"
] | select id, value from foo is going to return the whole table. The 2-3 seconds you mention could include the time it takes to transfer your results. This can often be much longer than it takes you database server to execute the actual query. | If there is no WHERE clause (like the query you posted) and you are selecting one million rows, there is a good chance that rather than the query taking 2-3 secs to execute it's in fact taking that time to send the data across the network.
Can your application actually use a million database records at once? If you a... |
60,242,008 | I am trying to understand SHA uniqueness in simple terms.
For example let us assume there are only messages with maximum length of 4 bits (binery) in whole world. Number of possible messages with different lengths is
* 2 for single bit length
* 2^2 for double bit length
* 2^3 for 3 bit length
* 2^4 for 4 bit length
... | 2020/02/15 | [
"https://Stackoverflow.com/questions/60242008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10618876/"
] | I'm not sure what you mean by "SHA uniqueness". An SHA value (any version) is not unique, it cannot be, because it maps an infinite number of inputs (an input of any length) to a finite number of outputs.
A cryptographic hash function has three important properties (which make it a crypto hash, over a regular hash):
... | Any SHA3 variant will have digests with more than 100 bits. The terminology has probably confused you, because SHA256 has 256 bits, while SHA3 is considered the third generation of SHA algorithms (and does NOT have 3 bits of lenght).
Generally speaking it's not hard to find a hash collision by brute-forcing (alas, it... |
60,242,008 | I am trying to understand SHA uniqueness in simple terms.
For example let us assume there are only messages with maximum length of 4 bits (binery) in whole world. Number of possible messages with different lengths is
* 2 for single bit length
* 2^2 for double bit length
* 2^3 for 3 bit length
* 2^4 for 4 bit length
... | 2020/02/15 | [
"https://Stackoverflow.com/questions/60242008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10618876/"
] | "SHA3 which has digest length of 3bits"
I think this question is based on one bit misunderstanding. SHA-3 is a **family of hashes** that has the same output bit size as SHA-2. SHA-2 has bit sizes 224, 256, 384 or 512 for SHA-224, SHA-256, SHA-384 and SHA-512 respectively.
Of course, SHA-2 already took those identifie... | Any SHA3 variant will have digests with more than 100 bits. The terminology has probably confused you, because SHA256 has 256 bits, while SHA3 is considered the third generation of SHA algorithms (and does NOT have 3 bits of lenght).
Generally speaking it's not hard to find a hash collision by brute-forcing (alas, it... |
60,242,008 | I am trying to understand SHA uniqueness in simple terms.
For example let us assume there are only messages with maximum length of 4 bits (binery) in whole world. Number of possible messages with different lengths is
* 2 for single bit length
* 2^2 for double bit length
* 2^3 for 3 bit length
* 2^4 for 4 bit length
... | 2020/02/15 | [
"https://Stackoverflow.com/questions/60242008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10618876/"
] | I'm not sure what you mean by "SHA uniqueness". An SHA value (any version) is not unique, it cannot be, because it maps an infinite number of inputs (an input of any length) to a finite number of outputs.
A cryptographic hash function has three important properties (which make it a crypto hash, over a regular hash):
... | "SHA3 which has digest length of 3bits"
I think this question is based on one bit misunderstanding. SHA-3 is a **family of hashes** that has the same output bit size as SHA-2. SHA-2 has bit sizes 224, 256, 384 or 512 for SHA-224, SHA-256, SHA-384 and SHA-512 respectively.
Of course, SHA-2 already took those identifie... |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | if you are UI does not change that frequently, it is worth while to investigate on the usage of Sikuli | I dont think there is any ready-made tool for this purpose.
But for record and play, the most stable tool is Hp QTP. Once the script is recorded then you can run the scripts on any browser you want (provided you have installed the required QTP browser patch).
Its very simple, if you are interested then you can Googl... |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Many people's first encounter with automation is to start with a record and playback tool. You quickly learn the limitations of that method because the code it produces is crude and not very maintainable.
I do know some people who continue to use a recorder only for the purpose of getting the ID's or other unique ide... | I dont think there is any ready-made tool for this purpose.
But for record and play, the most stable tool is Hp QTP. Once the script is recorded then you can run the scripts on any browser you want (provided you have installed the required QTP browser patch).
Its very simple, if you are interested then you can Googl... |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Take a look at TestCafe from DevExpress. It provides cross-platform testing in multiple browsers simultaneously.
Disclaimer: I work on the TestCafe team. I'd love to help you learn more about it and to hear any feedback. | I dont think there is any ready-made tool for this purpose.
But for record and play, the most stable tool is Hp QTP. Once the script is recorded then you can run the scripts on any browser you want (provided you have installed the required QTP browser patch).
Its very simple, if you are interested then you can Googl... |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | I can suggest two options for you:
1. If your app is more like a UI testing, please try using Sikuli. It does not matter which language you have used, if it is on screen, Sikuli can test it.
2. If you want more involved testing, including UI & functional, try Ranorex.
Sikuli is free open source:
[Sikuli Project](http... | I dont think there is any ready-made tool for this purpose.
But for record and play, the most stable tool is Hp QTP. Once the script is recorded then you can run the scripts on any browser you want (provided you have installed the required QTP browser patch).
Its very simple, if you are interested then you can Googl... |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Take a look at TestCafe from DevExpress. It provides cross-platform testing in multiple browsers simultaneously.
Disclaimer: I work on the TestCafe team. I'd love to help you learn more about it and to hear any feedback. | If you need automated testing only under Windows OS, then try Telerik testing-framework - it is exactly for .NET software, and has a lot of useful stuff. |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | I can suggest two options for you:
1. If your app is more like a UI testing, please try using Sikuli. It does not matter which language you have used, if it is on screen, Sikuli can test it.
2. If you want more involved testing, including UI & functional, try Ranorex.
Sikuli is free open source:
[Sikuli Project](http... | In my experience, I think you can use MTAS: msys-tech.com; I am working for the company for a while. The tool should be able to help in various functional testing requirements. |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | I can suggest two options for you:
1. If your app is more like a UI testing, please try using Sikuli. It does not matter which language you have used, if it is on screen, Sikuli can test it.
2. If you want more involved testing, including UI & functional, try Ranorex.
Sikuli is free open source:
[Sikuli Project](http... | If you need automated testing only under Windows OS, then try Telerik testing-framework - it is exactly for .NET software, and has a lot of useful stuff. |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Many people's first encounter with automation is to start with a record and playback tool. You quickly learn the limitations of that method because the code it produces is crude and not very maintainable.
I do know some people who continue to use a recorder only for the purpose of getting the ID's or other unique ide... | If you need automated testing only under Windows OS, then try Telerik testing-framework - it is exactly for .NET software, and has a lot of useful stuff. |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Many people's first encounter with automation is to start with a record and playback tool. You quickly learn the limitations of that method because the code it produces is crude and not very maintainable.
I do know some people who continue to use a recorder only for the purpose of getting the ID's or other unique ide... | In my experience, I think you can use MTAS: msys-tech.com; I am working for the company for a while. The tool should be able to help in various functional testing requirements. |
7,339 | I'm working in an QA team.
We do the automated work from the scratch. So many testing methods may be anti-pattern or disobey some discipline.
We pay lots of effort on test web pages on our products.
Our test cases are based on `Robot framework` and use the selenium library for testing web pages.
I found my member... | 2013/12/13 | [
"https://sqa.stackexchange.com/questions/7339",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/6526/"
] | Take a look at TestCafe from DevExpress. It provides cross-platform testing in multiple browsers simultaneously.
Disclaimer: I work on the TestCafe team. I'd love to help you learn more about it and to hear any feedback. | In my experience, I think you can use MTAS: msys-tech.com; I am working for the company for a while. The tool should be able to help in various functional testing requirements. |
614,212 | An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
How many waves are there for a particle wave?
* for a photon: if it is not made of two waves, then I don't understand how the photon wave could be compatible with the electromagnetic wave
* for an electron: one wave or two waves? | 2021/02/12 | [
"https://physics.stackexchange.com/questions/614212",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/230627/"
] | For a particle propagating through space, its wavefunction furnishes the *probability of finding it in a given place* which is a different number for every different place. This is a single-valued variable.
Electromagnetic waves are very different; they propagate through space as the interplay between a linked pair of... | Actually in electro-magnetic wave there is effectively only one "wave", because the electric and magnetic components are strictly coupled. (Not only in waves, but also in general.) Also photons and electro-magnetic waves are the "exact" same things. The names are only distinguished to emhpasise if we are talking about ... |
614,212 | An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
How many waves are there for a particle wave?
* for a photon: if it is not made of two waves, then I don't understand how the photon wave could be compatible with the electromagnetic wave
* for an electron: one wave or two waves? | 2021/02/12 | [
"https://physics.stackexchange.com/questions/614212",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/230627/"
] | You question begins
>
> An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
>
>
>
and asks “How many waves for a particle wave?”
However, I think it’s important to realize that “there are two waves” is just one model of the electromagnetic field, and it’s not necessarily the best... | For a particle propagating through space, its wavefunction furnishes the *probability of finding it in a given place* which is a different number for every different place. This is a single-valued variable.
Electromagnetic waves are very different; they propagate through space as the interplay between a linked pair of... |
614,212 | An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
How many waves are there for a particle wave?
* for a photon: if it is not made of two waves, then I don't understand how the photon wave could be compatible with the electromagnetic wave
* for an electron: one wave or two waves? | 2021/02/12 | [
"https://physics.stackexchange.com/questions/614212",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/230627/"
] | The answers are good, but I need to explicitly state what is conceptually wrong in your question.
>
> An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
>
>
>
The classical electromagnetic wave is one wave, its intensity and direction depending on two variables that are a functio... | Actually in electro-magnetic wave there is effectively only one "wave", because the electric and magnetic components are strictly coupled. (Not only in waves, but also in general.) Also photons and electro-magnetic waves are the "exact" same things. The names are only distinguished to emhpasise if we are talking about ... |
614,212 | An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
How many waves are there for a particle wave?
* for a photon: if it is not made of two waves, then I don't understand how the photon wave could be compatible with the electromagnetic wave
* for an electron: one wave or two waves? | 2021/02/12 | [
"https://physics.stackexchange.com/questions/614212",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/230627/"
] | You question begins
>
> An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
>
>
>
and asks “How many waves for a particle wave?”
However, I think it’s important to realize that “there are two waves” is just one model of the electromagnetic field, and it’s not necessarily the best... | Actually in electro-magnetic wave there is effectively only one "wave", because the electric and magnetic components are strictly coupled. (Not only in waves, but also in general.) Also photons and electro-magnetic waves are the "exact" same things. The names are only distinguished to emhpasise if we are talking about ... |
614,212 | An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
How many waves are there for a particle wave?
* for a photon: if it is not made of two waves, then I don't understand how the photon wave could be compatible with the electromagnetic wave
* for an electron: one wave or two waves? | 2021/02/12 | [
"https://physics.stackexchange.com/questions/614212",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/230627/"
] | You question begins
>
> An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
>
>
>
and asks “How many waves for a particle wave?”
However, I think it’s important to realize that “there are two waves” is just one model of the electromagnetic field, and it’s not necessarily the best... | The answers are good, but I need to explicitly state what is conceptually wrong in your question.
>
> An electromagnetic wave is made of an electric wave and a magnetic wave, so 2 waves.
>
>
>
The classical electromagnetic wave is one wave, its intensity and direction depending on two variables that are a functio... |
6,383,763 | From an ajax call i get a div and a script that populate the div with another ajax call.
the problem is that when the script is run it can't find the div.
this is the razor code :
```
@model int
@{
var id = string.Format("riga_{0}", Model);
}
<div id="@id">
wait please...
</div>
<script type="text/javascript... | 2011/06/17 | [
"https://Stackoverflow.com/questions/6383763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/599038/"
] | In case anyone is still struggling with this, I thought of a neat solution. Suppose you are making a jQuery ajax call:
```
$.ajax({
type: 'GET',
url: 'fragment.html',
success: function(html) {
$('body').append(html);
}
});
```
Suppose `fragment.html` looks like this:
```
<div class="fillme">
</div>
<scr... | try this
```
<script type="text/javascript">
$(function() {
/* code */
});
</script>
``` |
6,383,763 | From an ajax call i get a div and a script that populate the div with another ajax call.
the problem is that when the script is run it can't find the div.
this is the razor code :
```
@model int
@{
var id = string.Format("riga_{0}", Model);
}
<div id="@id">
wait please...
</div>
<script type="text/javascript... | 2011/06/17 | [
"https://Stackoverflow.com/questions/6383763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/599038/"
] | In case anyone is still struggling with this, I thought of a neat solution. Suppose you are making a jQuery ajax call:
```
$.ajax({
type: 'GET',
url: 'fragment.html',
success: function(html) {
$('body').append(html);
}
});
```
Suppose `fragment.html` looks like this:
```
<div class="fillme">
</div>
<scr... | If the div is in the DOM, jQuery can't find it in HTML.
If you load the script on an event, you can use jQuery.live like this
```
$( 'element' ).live( 'click', function(){
$("#" + "riga_79").load("/RigaMovimento/Details/79");
});
```
maybe this could work (didn't test it)
```
$( 'body' ).live( 'load', function... |
6,383,763 | From an ajax call i get a div and a script that populate the div with another ajax call.
the problem is that when the script is run it can't find the div.
this is the razor code :
```
@model int
@{
var id = string.Format("riga_{0}", Model);
}
<div id="@id">
wait please...
</div>
<script type="text/javascript... | 2011/06/17 | [
"https://Stackoverflow.com/questions/6383763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/599038/"
] | In case anyone is still struggling with this, I thought of a neat solution. Suppose you are making a jQuery ajax call:
```
$.ajax({
type: 'GET',
url: 'fragment.html',
success: function(html) {
$('body').append(html);
}
});
```
Suppose `fragment.html` looks like this:
```
<div class="fillme">
</div>
<scr... | $(--selector--).load method has an additional callback parameter
<http://api.jquery.com/load/>
This is a function which is called once your AJAX response is completed.
However script part which you return in AJAX response is never evaluated by default.
You have to apply a little trick here. Please find an Update jav... |
30,608,567 | I have a regex that looks for certain types of hostnames like: `.*-.*(nmtg)*|.*(\.nms)`. How do I modify this so it does not match: `11.22:33:44:55-66`?
Should match:
```
cs25-admin.nmtg.company.com
cs25-admin
```
but should not match:
```
11.22:33:44:55-66
``` | 2015/06/02 | [
"https://Stackoverflow.com/questions/30608567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/551514/"
] | Two basic ways:
* You can replace your "match anything" `.` with "match anything except for colon" `[^:]` everywhere
* You can prepend your expression with "no colons from here to the end of string" `(?!.*:)`
**EDIT** As Signus said, your regexp is really non-specific and open-ended; it will match much more than what... | You're using the `*` quantifier that matches 0 or more of the preceding token, in which case you supplied `.` which is a token that matches any character except line breaks.
To match domain names with subdomain names you can do the following:
```
(\w+\.)?\w+\.(com|org)
```
And to really match any domain with a TLD ... |
24,803,832 | i have a NodeJS controller like this:
```
var importOrders = function (req, res, next) {
var orders = req.body;
var processOrder = function (order) {
if(i<orders.length-1){
try {
if (orders[i].Order.Company === "Mondial") {
parseMondial(db, orders[... | 2014/07/17 | [
"https://Stackoverflow.com/questions/24803832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/988283/"
] | ```
In [6]:
import pandas as pd
df = pd.DataFrame({'date':[pd.datetime(1999,9,9,23,59,59), pd.datetime(2014,1,1)]* 10})
df
Out[6]:
date
0 1999-09-09 23:59:59
1 2014-01-01 00:00:00
2 1999-09-09 23:59:59
3 2014-01-01 00:00:00
4 1999-09-09 23:59:59
5 2014-01-01 00:00:00
6 1999-09-09 23:59:59
7 20... | There are some operations, especially between columns, that do not disconsider NaNs or NaTs. That is why you are getting NaTs as a result.
If you want to disconsider the 1999-09-09 23:59:59 and also have a subtractable column, try to convert to NaTs and then swap the NaTs with zeros (`.fillna(0)`), so that, when subtra... |
74,599,412 | I've some processing instructions like the one below at the top of my XML file:
```
<?ID Object="AUTO_REPORT_OBJECT" Version="1.0"?>
```
I would like to read Object and Version attributes value using Go libraries. I'm using Go 1.19.
My XML file is like this:
```
<?xml version="1.0" encoding="UTF-8"?>
<?ID Object="... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74599412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4117563/"
] | As far as XML is concerned, you can have anything you like in the content of a PI, so XML parsers aren't going to help with this - you have to parse the content by hand.
One option would be to take the data part of the PI, put "<e " at the start and "/>" at the end, and then put it through an XML parser. | I don't know `Go`, but you can parse this with python 3.11.
```
import xml.etree.ElementTree as ET
for event, elem in ET.iterparse('your.xml', events=("pi")):
if event == "pi":
print(ET.tostring(elem))
``` |
41,173,804 | I have the following html:
```
<div class="left">
this is left side. it should go to the bottom when in one column
</div>
<div class="right">
this is right side. it should go to the top when in one column
</div>
```
css:
```
.left {
width: 70%;
float: left;
background-color: red;
}
.right {
width: 3... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41173804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | Change the order of the divs so that right comes first in the html, and update the `class="right"` div to `float:right;`
<https://jsfiddle.net/m7zpoc30/3/> | Here's a solution using flex, which might be of interest. You can wrap your left and right divs in a container with `display:flex`, and then use flex-direction on resize. See snippet below. ([jsfiddle](https://jsfiddle.net/qkfjqnk5/))
```css
.container {
display: flex;
}
.left {
width: 70%;
background-col... |
41,173,804 | I have the following html:
```
<div class="left">
this is left side. it should go to the bottom when in one column
</div>
<div class="right">
this is right side. it should go to the top when in one column
</div>
```
css:
```
.left {
width: 70%;
float: left;
background-color: red;
}
.right {
width: 3... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41173804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | Change the order of the divs so that right comes first in the html, and update the `class="right"` div to `float:right;`
<https://jsfiddle.net/m7zpoc30/3/> | Here's an alternative solution using order flex property.
See snippet below.
```css
.container {
display: flex;
}
.left {
width: 70%;
background-color: red;
order: 1;
}
.right {
width: 30%;
background-color: yellow;
order: 2;
}
@media only screen and (max-width: 768px) {
.container {... |
41,173,804 | I have the following html:
```
<div class="left">
this is left side. it should go to the bottom when in one column
</div>
<div class="right">
this is right side. it should go to the top when in one column
</div>
```
css:
```
.left {
width: 70%;
float: left;
background-color: red;
}
.right {
width: 3... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41173804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | Here's a solution using flex, which might be of interest. You can wrap your left and right divs in a container with `display:flex`, and then use flex-direction on resize. See snippet below. ([jsfiddle](https://jsfiddle.net/qkfjqnk5/))
```css
.container {
display: flex;
}
.left {
width: 70%;
background-col... | Here's an alternative solution using order flex property.
See snippet below.
```css
.container {
display: flex;
}
.left {
width: 70%;
background-color: red;
order: 1;
}
.right {
width: 30%;
background-color: yellow;
order: 2;
}
@media only screen and (max-width: 768px) {
.container {... |
133,585 | Can anybody show me the following Proof?
Prove that if $X\_n$ for $n=1,2,\ldots,\infty$ is a real sequence that is uniformly distributed modulo $1$, and if $Y\_n$, $n=1,2,\ldots,\infty$ is a real sequence such that $\lim\_{n\to\infty} X\_n – Y\_n = \alpha$ then $Y\_n$ is uniformly distributed modulo $1$.
Remark: This... | 2012/04/18 | [
"https://math.stackexchange.com/questions/133585",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/29413/"
] | Hint: for any $b \in [0,1]$, consider how many $Y\_n$ for $1 \le n \le N$ are in $[0,b]$ modulo $1$. If $|Y\_n - X\_n| < \epsilon$, what interval for $X\_n$ would guarantee $Y\_n$ is in this interval? What interval must $X\_n$ be in if $Y\_n$ is in this interval? | As an alternative to Robert's answer, it can also be done with the Weyl criterion. Let $X\_n-Y\_n=\alpha+b\_n$ with $b\_n\to0$. Then $$e^{2\pi ihY\_n}=e^{2\pi ihX\_n}e^{-2\pi ih\alpha}e^{-2\pi ihb\_n}$$ The second term on the right is a constant, so it can be pulled out of any sum. The third term, you should show it ca... |
36,953,695 | Very new to the world of HTML and I will try to phrase this question as best as I can.
Currently, I am creating a website. For each page I am creating, I have 2/3 pages - 1 I save the HTML file in, the other I save the file .css/.js.I make sure to keep the name of the file the same and in turn, it edits my html page a... | 2016/04/30 | [
"https://Stackoverflow.com/questions/36953695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6274739/"
] | Reasons for separation:
1. Separate JS - Reuse it on other pages
2. Separate CSS - Able to give the site a new fresh look easily along with reuse
3. Separate HTML - Focus on content not look.
Also should be mentioned CSS/JS could be cached if used on multiple pages on your site | First and main rule :
>
> A web developer should be able to change the markup in an HTML
> template without worrying about accidentally breaking a CSS rule or
> some JavaScript functionality.
>
>
>
So Yes, your `html`, `css`, `js` files should be separate. |
3,960,727 | Is the following always true?
$$
\arctan(f(x))\leq f(x),\ \ \text{where}\ \ |f(x)|<1\ \ \forall x\in\mathbb{R}
$$
For example, is it correct to say that
$$
\arctan\left(\frac{\sin x}{\sqrt{x+1}}\right)\le\frac{\sin x}{\sqrt{x+1}}\ \ \forall x\in\mathbb{R},
$$
since $\arctan t=t-\frac{t^3}{3}+\frac{t^5}{5}-\dots$, wher... | 2020/12/24 | [
"https://math.stackexchange.com/questions/3960727",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | If $0\leq f(x) <1$, yes, of course. Since $\frac{d}{dy}\arctan y=\frac{1}{1+y^2}\leq1$ (and $\arctan(0)=0$), you'll have
$$ \arctan y \leq y, \quad\text{for }\ y\geq0. $$
Clearly, the situation is reversed if $y<0$, because both functions are negative. You can say that $|\arctan f(x)|\leq|f(x)|$ with no restrictions on... | If you derive the function $x\mapsto \text{Arctan} (x) -x$, you get that:
* if $x>0$ then $\text{Arctan} (x) < x$
* but if $x<0$ then $\text{Arctan} (x) > x$. |
3,960,727 | Is the following always true?
$$
\arctan(f(x))\leq f(x),\ \ \text{where}\ \ |f(x)|<1\ \ \forall x\in\mathbb{R}
$$
For example, is it correct to say that
$$
\arctan\left(\frac{\sin x}{\sqrt{x+1}}\right)\le\frac{\sin x}{\sqrt{x+1}}\ \ \forall x\in\mathbb{R},
$$
since $\arctan t=t-\frac{t^3}{3}+\frac{t^5}{5}-\dots$, wher... | 2020/12/24 | [
"https://math.stackexchange.com/questions/3960727",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | If $0\leq f(x) <1$, yes, of course. Since $\frac{d}{dy}\arctan y=\frac{1}{1+y^2}\leq1$ (and $\arctan(0)=0$), you'll have
$$ \arctan y \leq y, \quad\text{for }\ y\geq0. $$
Clearly, the situation is reversed if $y<0$, because both functions are negative. You can say that $|\arctan f(x)|\leq|f(x)|$ with no restrictions on... | [The claim is false,](https://www.desmos.com/calculator/shf1vhxyui) since whenever $\xi<0$, $\arctan(\xi)>\xi$. On the other hand, if we include absolute values, the inequality
$$(\forall \xi\in[-1,1])\quad|\arctan(\xi)|\leq|\xi|$$
*is* true. |
53,081,975 | I have a maths quiz, where the numbers are randomized and so are the operators but to make the operators random I had to put them in a string and use Math.random which all works however when trying to calculate the questions I am unsure how to evaluate the maths operators.
```
var operationArray = ['x','÷','+','-'... | 2018/10/31 | [
"https://Stackoverflow.com/questions/53081975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8025466/"
] | Allthough i would not recommend using eval ( evil ) at all. This might be necessary in this case.
```
var operationArray = ['x','÷','+','-'];
var randomOperation1 = Math.floor(Math.random()*operationArray.length);
var randomOperation2 = Math.floor(Math.random()*operationArray.length);
var randomNumber1 = Math.flo... | If I understand you correct, generally you want to achieve this:
```
var data = [1, "+", 2];
var result = yourFunction(data);
console.log(result);//3
```
To do it, you need write parser, which will work with your array, and perform actions. Something like this:
```
var result = 0;
for(var i = 0; i < data.length; i+... |
5,749 | My boss asked me to setup a secured area online, which will contain all the FTP, MySQL etc details related to our web products. This online area must be secured and will only be accessible by the user we define.
It should be easy to understand and should have functionality to download details in PDF or in word format ... | 2010/11/22 | [
"https://webmasters.stackexchange.com/questions/5749",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/3398/"
] | You can use all three tools without penalty or issue. There's absolutely no reason for a search engine to levy a penalty on a website that uses tools that has no direct effect on the website itself (i.e. these tools aren't altering your code or using "techniques" to manipulate the search results). These tools are just ... | [I asked](https://webmasters.stackexchange.com/questions/5268/multiple-webmaster-tools-accounts-on-website) a while ago if it was ok to have multiple accounts of the same "brand" of webmasters tools (i.e. 2 google accounts on one website - one for me one for an SEO company brought in) and it was ok.
I personally only ... |
5,749 | My boss asked me to setup a secured area online, which will contain all the FTP, MySQL etc details related to our web products. This online area must be secured and will only be accessible by the user we define.
It should be easy to understand and should have functionality to download details in PDF or in word format ... | 2010/11/22 | [
"https://webmasters.stackexchange.com/questions/5749",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/3398/"
] | Not only can you, but it's my opinion that you should. Each of them offer their own variation of information. The biggest benefit is you'll be aware of any problems with a particular search engine by using all three (i.e. maybe Bing encounters an error crawling your website, but Y! & GG don't).
The exception being that... | [I asked](https://webmasters.stackexchange.com/questions/5268/multiple-webmaster-tools-accounts-on-website) a while ago if it was ok to have multiple accounts of the same "brand" of webmasters tools (i.e. 2 google accounts on one website - one for me one for an SEO company brought in) and it was ok.
I personally only ... |
5,749 | My boss asked me to setup a secured area online, which will contain all the FTP, MySQL etc details related to our web products. This online area must be secured and will only be accessible by the user we define.
It should be easy to understand and should have functionality to download details in PDF or in word format ... | 2010/11/22 | [
"https://webmasters.stackexchange.com/questions/5749",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/3398/"
] | You can use all three tools without penalty or issue. There's absolutely no reason for a search engine to levy a penalty on a website that uses tools that has no direct effect on the website itself (i.e. these tools aren't altering your code or using "techniques" to manipulate the search results). These tools are just ... | Not only can you, but it's my opinion that you should. Each of them offer their own variation of information. The biggest benefit is you'll be aware of any problems with a particular search engine by using all three (i.e. maybe Bing encounters an error crawling your website, but Y! & GG don't).
The exception being that... |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | There was a suggestion on [Microsoft Connect](http://connect.microsoft.com/VisualStudio/feedback/details/770320/long-operation-notification-dialog-does-not-disappear-after-solution-build) that Modelling project was responsible for the freezes. I removed a Modelling project from our solution and have experienced no free... | I had this problem because of an issue restoring nuget packages. There was a duplicate entry in the `packages.config` file. Rather than report it as an error, the build would just hang forever.
I didn't discover the problem until I tried to restore the nuget package through the "Manage Nuget Packages..." option in the... |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | I have seen this happen on large projects when MSBuild is running with the diagnostic switch turned on. In Visual Studio, go to Tools / Options / Projects & Solutions / Build And Run, then check the MSBuild project build output verbosity value. If its not set to Minimal, try setting to minimal and see if your builds ar... | I did not try any of the above solution as by the time I tried my approach - all was well again.
My steps are as following:
1. Close VS
2. Delete the .vs folder
3. Open my solution
4. Clean Solution OK
5. Build Solution OK
6. Optional Rebuild OK |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | In my case setting "maximum number of parallel project builds" to 1 kinda helped (i.e. building a project from clean state causes 1 min freeze followed by normal build and every subsequent build works fine).
Aforementioned setting can be set in `Tool -> Options -> Projects and Solutions -> Build and Run`. | Seems like running Visual Studio as Administrator solved the problem for me! (For always running a program as Administrator see [How to Run Visual Studio as Administrator by default](https://stackoverflow.com/questions/9654833/how-to-run-visual-studio-as-administrator-by-default)) |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | Just try below command with admin mode. Before running this command make sure to close all VS instance.
```
devenv /resetuserdata
```
Note: devenv is located at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE | I had this problem because of an issue restoring nuget packages. There was a duplicate entry in the `packages.config` file. Rather than report it as an error, the build would just hang forever.
I didn't discover the problem until I tried to restore the nuget package through the "Manage Nuget Packages..." option in the... |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | I have seen this happen on large projects when MSBuild is running with the diagnostic switch turned on. In Visual Studio, go to Tools / Options / Projects & Solutions / Build And Run, then check the MSBuild project build output verbosity value. If its not set to Minimal, try setting to minimal and see if your builds ar... | I had this problem because of an issue restoring nuget packages. There was a duplicate entry in the `packages.config` file. Rather than report it as an error, the build would just hang forever.
I didn't discover the problem until I tried to restore the nuget package through the "Manage Nuget Packages..." option in the... |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | Had a similar issue, VS would hang for 45 or so seconds then build for 4 seconds and complete. The 45 seconds of hang would not produce any output to GUI and VS would hang.
Using ProcMon I could see 3 million+ file operations on the /packages/ folder via devenv.exe when I would build this project (and would continue f... | In my case setting "maximum number of parallel project builds" to 1 kinda helped (i.e. building a project from clean state causes 1 min freeze followed by normal build and every subsequent build works fine).
Aforementioned setting can be set in `Tool -> Options -> Projects and Solutions -> Build and Run`. |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | I have seen this happen on large projects when MSBuild is running with the diagnostic switch turned on. In Visual Studio, go to Tools / Options / Projects & Solutions / Build And Run, then check the MSBuild project build output verbosity value. If its not set to Minimal, try setting to minimal and see if your builds ar... | For me the issue was witch an extension that automatically runs T4 templates on build (AutoT4). Disabling it when working with solutions with EF fixed the issue. |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | Seems like running Visual Studio as Administrator solved the problem for me! (For always running a program as Administrator see [How to Run Visual Studio as Administrator by default](https://stackoverflow.com/questions/9654833/how-to-run-visual-studio-as-administrator-by-default)) | Visual Studio 2017
Removing Anaconda3 from the installation fixed it. In procmon I saw hundreds of thousands of calls looking for files in the Anaconda3 folder from hundreds of instances of powershell spawned by msbuild. |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | Had a similar issue, VS would hang for 45 or so seconds then build for 4 seconds and complete. The 45 seconds of hang would not produce any output to GUI and VS would hang.
Using ProcMon I could see 3 million+ file operations on the /packages/ folder via devenv.exe when I would build this project (and would continue f... | VS2019 exhibits this issue as well for me, in my case, the problem was because of dependencies stored on a network share. I have a hunch that Windows Defender Antivirus was scanning a lot of extra stuff that was in the network share, which is only accessible when connected to a fairly slow VPN. |
19,015,305 | Probably between 25 and 50% of the times I build my solution, I see this:
"[The operation you requested is taking longer than expected to complete. This dialog will close when the action completes.](https://i.imgur.com/UOtXUud.png)"
I hate this window in ways I can't describe. It never resolves, the Cancel button is ... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19015305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307163/"
] | I moved my VS 2008 development platform from Windows 7 to Windows 10 and encountered a situation where Visual Studio would hang up every time I tried to build a large project. I had to build the project, then use the Task Manager to kill VS and then restart. Needless to say, this made debugging really difficult! Anyhow... | I had this problem because of an issue restoring nuget packages. There was a duplicate entry in the `packages.config` file. Rather than report it as an error, the build would just hang forever.
I didn't discover the problem until I tried to restore the nuget package through the "Manage Nuget Packages..." option in the... |
8,490,184 | I am working on a new website bud I want to create a nice looking urls for my users. I don't know anything of `htaccess` and could not find my solution on google.
I need to link:
* `user.mywebsite.com` **to>>** `mywebsite.com/users/user`
* `user2.mywebsite.com/contact` **to>>** `mywebsite.com/users/user2/contact`
S... | 2011/12/13 | [
"https://Stackoverflow.com/questions/8490184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1095830/"
] | Using mod\_rewrite, you can try:
```
RewriteEngine On
# the request URI doesn't already start with /users/
RewriteCond %{REQUEST_URI} !^/users/
# host doesn't start with www
RewriteCond %{HTTP_HOST} !^www\. [NC]
# host starts with something else
RewriteCond %{HTTP_HOST} ^([^\.]+)\.mywebsite\.com$ [NC]
# rewrite
... | Redirecting your old links to new ones.
```
Redirect user.mywebsite.com mywebsite.com/users/user
Redirect user2.mywebsite.com/contact mywebsite.com/users/user2/contact
``` |
8,490,184 | I am working on a new website bud I want to create a nice looking urls for my users. I don't know anything of `htaccess` and could not find my solution on google.
I need to link:
* `user.mywebsite.com` **to>>** `mywebsite.com/users/user`
* `user2.mywebsite.com/contact` **to>>** `mywebsite.com/users/user2/contact`
S... | 2011/12/13 | [
"https://Stackoverflow.com/questions/8490184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1095830/"
] | Using mod\_rewrite, you can try:
```
RewriteEngine On
# the request URI doesn't already start with /users/
RewriteCond %{REQUEST_URI} !^/users/
# host doesn't start with www
RewriteCond %{HTTP_HOST} !^www\. [NC]
# host starts with something else
RewriteCond %{HTTP_HOST} ^([^\.]+)\.mywebsite\.com$ [NC]
# rewrite
... | You can take a look at [VirtualDocumentRoot](http://httpd.apache.org/docs/2.1/vhosts/mass.html#homepages)
>
> e.g. the documents for www.user.isp.com are found in /home/user/.
>
>
>
```
# include part of the server name in the filenames
VirtualDocumentRoot /www/hosts/%2/docs
# single cgi-bin directory
ScriptAlia... |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | You are using a new `SecureRandom` per connection, instead of using a single static pre-initialized `SecureRandom`. Everytime you create a new SecureRandom(), you need to gather entropy for seeding (a slow process).
SecureRandom does not self-seed until it is first used, which is why the delay does not occur until the... | I have done something similar to this and it is slower than an unsecured connection. Granted my case was https vs http and it is a little different the SSL/TLS factor will add slowness to the deal.
I have two identical apps that comunicate with the same protocol to the same server, one in android and one in iPhone, bo... |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | I have done something similar to this and it is slower than an unsecured connection. Granted my case was https vs http and it is a little different the SSL/TLS factor will add slowness to the deal.
I have two identical apps that comunicate with the same protocol to the same server, one in android and one in iPhone, bo... | The problem is most likely in the way the device validates server certificates. Validation can involve contacting third-party for CRLs and OCSP responses. If this happens, it takes time. iPhone probably just doesn't do this (at least by default) which is a security hole BTW. |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | There was a bug on earlier versions of the Android SDK. Apparently, it's doing an unnecessary DNS reverse lookup. You need to prevent this from happening. Here's a workaround that worked for me. It used to take 15 seconds, now it takes 0-1 seconds. Hope it helps.
Here's the link to the Google [issue](http://code.googl... | I have done something similar to this and it is slower than an unsecured connection. Granted my case was https vs http and it is a little different the SSL/TLS factor will add slowness to the deal.
I have two identical apps that comunicate with the same protocol to the same server, one in android and one in iPhone, bo... |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | You are using a new `SecureRandom` per connection, instead of using a single static pre-initialized `SecureRandom`. Everytime you create a new SecureRandom(), you need to gather entropy for seeding (a slow process).
SecureRandom does not self-seed until it is first used, which is why the delay does not occur until the... | The problem is most likely in the way the device validates server certificates. Validation can involve contacting third-party for CRLs and OCSP responses. If this happens, it takes time. iPhone probably just doesn't do this (at least by default) which is a security hole BTW. |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | There was a bug on earlier versions of the Android SDK. Apparently, it's doing an unnecessary DNS reverse lookup. You need to prevent this from happening. Here's a workaround that worked for me. It used to take 15 seconds, now it takes 0-1 seconds. Hope it helps.
Here's the link to the Google [issue](http://code.googl... | You are using a new `SecureRandom` per connection, instead of using a single static pre-initialized `SecureRandom`. Everytime you create a new SecureRandom(), you need to gather entropy for seeding (a slow process).
SecureRandom does not self-seed until it is first used, which is why the delay does not occur until the... |
4,737,019 | I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using:
```
// Connect
if (socket == null || socket.isClosed() || !socket.isConnected()) {
if (socket != null && !socket.isClosed())
socket.close();
Log.i(getClass().toString(), "Connecting...");
if (sslC... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580059/"
] | There was a bug on earlier versions of the Android SDK. Apparently, it's doing an unnecessary DNS reverse lookup. You need to prevent this from happening. Here's a workaround that worked for me. It used to take 15 seconds, now it takes 0-1 seconds. Hope it helps.
Here's the link to the Google [issue](http://code.googl... | The problem is most likely in the way the device validates server certificates. Validation can involve contacting third-party for CRLs and OCSP responses. If this happens, it takes time. iPhone probably just doesn't do this (at least by default) which is a security hole BTW. |
64,250,196 | I am having a search box
```
<div id="" class="col-10 pt-2 page-title">
<label>
<input type="search" id="search" class="form-control form-control-sm " placeholder="Search">
</label>
</div>
```
My requirement is when I am... | 2020/10/07 | [
"https://Stackoverflow.com/questions/64250196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11737260/"
] | Get the value of the input before the AJAX call, not in the event listener.
```
var search = document.getElementById("search").value;
$.ajax({
dataType: "json",
url: "{% url 'some urn name' %}?limit=10&q="+encodeURIComponent(search),
...
});
```
Also, you need to separate multiple query parameters with `... | Wrap the ajax call in a function that takes the search term as a parameter.
If the search term is not blank add it to the URL properly encoded otherwise leave it out.
When calling it the first time pass a blank string.
In the key-up event call the function with the search variable as the parameter. |
64,250,196 | I am having a search box
```
<div id="" class="col-10 pt-2 page-title">
<label>
<input type="search" id="search" class="form-control form-control-sm " placeholder="Search">
</label>
</div>
```
My requirement is when I am... | 2020/10/07 | [
"https://Stackoverflow.com/questions/64250196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11737260/"
] | Get the value of the input before the AJAX call, not in the event listener.
```
var search = document.getElementById("search").value;
$.ajax({
dataType: "json",
url: "{% url 'some urn name' %}?limit=10&q="+encodeURIComponent(search),
...
});
```
Also, you need to separate multiple query parameters with `... | Just do a conditional check to make sure the search input has a value and is not undefined before building the url, something like this should cut it:
```
function makeApiCall() {
const searchValue = document.querySelector('#search').value;
const url = searchValue ? `http://myapi.com?limit=10&q=${searchValue}`... |
3,232 | This question is because of troubleshooting I've been doing on [Why won't data entered into CiviCRM profile html snippet save?](https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save) Loading a Profile makes otherwise malfunctioning embedded forms work, and I suspe... | 2015/06/15 | [
"https://civicrm.stackexchange.com/questions/3232",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/277/"
] | *More debug titbits.*
Your question sounds like you're looking for the submitted/missing value name in the codebase - this form field name is probably not mentioned in the codebase if it's a value configured in the DB, as the form will then be generated.
Also, this name (say "volunteer\_reason") may have been "munged... | *I suspect this answer isn't what you need, but it might help your understanding.*
PHP has superglobals `$_SESSION` and `$_REQUEST` which CiviCRM is probably using to access that data.
* [$\_REQUEST](http://php.net/manual/en/reserved.variables.request.php) contains data from [$\_COOKIE](http://php.net/manual/en/reser... |
3,232 | This question is because of troubleshooting I've been doing on [Why won't data entered into CiviCRM profile html snippet save?](https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save) Loading a Profile makes otherwise malfunctioning embedded forms work, and I suspe... | 2015/06/15 | [
"https://civicrm.stackexchange.com/questions/3232",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/277/"
] | *More debug titbits.*
Your question sounds like you're looking for the submitted/missing value name in the codebase - this form field name is probably not mentioned in the codebase if it's a value configured in the DB, as the form will then be generated.
Also, this name (say "volunteer\_reason") may have been "munged... | To view the cookie / session information on profile submission:
* Read [Debugging for developers](http://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers) and become familiar with how to view values when CiviCRM is processing the form submission.
* Go back through your posted backtrace and find wher... |
12,094 | How can I turn a given normal application into a Windows service under Windows XP?
EDIT: This is a server application, so it has no GUI and does not require any input or output. | 2009/05/25 | [
"https://serverfault.com/questions/12094",
"https://serverfault.com",
"https://serverfault.com/users/2272/"
] | You can use SC to create user defined services. This command will create a service:
```
sc.exe create "Service Name" binPath= "C:\Your Program.exe"
```
Note there must be a space between binpath= and the program location.
To Delete the service use:
```
sc.exe delete "Service Name"
``` | Use [SRVANY.EXE](http://support.microsoft.com/kb/137890) from Windows \* Resource Kit
For Cygwin applications Use [cygrunsrv](http://cygwin.com/packages/) (NT/W2K service initiator) |
12,094 | How can I turn a given normal application into a Windows service under Windows XP?
EDIT: This is a server application, so it has no GUI and does not require any input or output. | 2009/05/25 | [
"https://serverfault.com/questions/12094",
"https://serverfault.com",
"https://serverfault.com/users/2272/"
] | You can use SC to create user defined services. This command will create a service:
```
sc.exe create "Service Name" binPath= "C:\Your Program.exe"
```
Note there must be a space between binpath= and the program location.
To Delete the service use:
```
sc.exe delete "Service Name"
``` | [FireDaemon](http://www.firedaemon.com/) is another option for doing this. |
12,094 | How can I turn a given normal application into a Windows service under Windows XP?
EDIT: This is a server application, so it has no GUI and does not require any input or output. | 2009/05/25 | [
"https://serverfault.com/questions/12094",
"https://serverfault.com",
"https://serverfault.com/users/2272/"
] | You can use SC to create user defined services. This command will create a service:
```
sc.exe create "Service Name" binPath= "C:\Your Program.exe"
```
Note there must be a space between binpath= and the program location.
To Delete the service use:
```
sc.exe delete "Service Name"
``` | Also, once you successfully started your normal application as a service, I would suggest to test how the application behaves when you log off.
Some applications (old ones?) don't like receiving the message that is sent when logging of or shutting down the computer. |
12,094 | How can I turn a given normal application into a Windows service under Windows XP?
EDIT: This is a server application, so it has no GUI and does not require any input or output. | 2009/05/25 | [
"https://serverfault.com/questions/12094",
"https://serverfault.com",
"https://serverfault.com/users/2272/"
] | Use [SRVANY.EXE](http://support.microsoft.com/kb/137890) from Windows \* Resource Kit
For Cygwin applications Use [cygrunsrv](http://cygwin.com/packages/) (NT/W2K service initiator) | [FireDaemon](http://www.firedaemon.com/) is another option for doing this. |
12,094 | How can I turn a given normal application into a Windows service under Windows XP?
EDIT: This is a server application, so it has no GUI and does not require any input or output. | 2009/05/25 | [
"https://serverfault.com/questions/12094",
"https://serverfault.com",
"https://serverfault.com/users/2272/"
] | Also, once you successfully started your normal application as a service, I would suggest to test how the application behaves when you log off.
Some applications (old ones?) don't like receiving the message that is sent when logging of or shutting down the computer. | [FireDaemon](http://www.firedaemon.com/) is another option for doing this. |
29,475 | My shower pan, made of gel-coated fiber glass, has three cracks, as shown in the photo below. The cracks radiate fairly straight from the drain in the center at twelve, four, and eight o'clock. (All of the other white streaks are just gel-coat coloring.)
I ground away the cracks and filled them with epoxy, which seems... | 2013/07/09 | [
"https://diy.stackexchange.com/questions/29475",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/6048/"
] | You need to fall out of love with this pan - it is broke. Why would you want to go through all of this work and compromise your work with a broken pan? This is a decent size project - GET A NEW PAN. If you want cheap get a used (unbroken) pan off of craigslist. These pans are not that much compared to how much it will ... | You are trying to build a temple on a broken foundation. No amount of patching will fix the broken connection between the drain and the pan.
Without some type of oversize flange drain (e.g., [Schluter Kerdi Drain](http://www.schluter.com/8_2_kerdi_drain_3963.aspx)), there is no way to transfer the water from a overlai... |
29,475 | My shower pan, made of gel-coated fiber glass, has three cracks, as shown in the photo below. The cracks radiate fairly straight from the drain in the center at twelve, four, and eight o'clock. (All of the other white streaks are just gel-coat coloring.)
I ground away the cracks and filled them with epoxy, which seems... | 2013/07/09 | [
"https://diy.stackexchange.com/questions/29475",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/6048/"
] | You are trying to build a temple on a broken foundation. No amount of patching will fix the broken connection between the drain and the pan.
Without some type of oversize flange drain (e.g., [Schluter Kerdi Drain](http://www.schluter.com/8_2_kerdi_drain_3963.aspx)), there is no way to transfer the water from a overlai... | I have recently repaired a cracked leaking shower pan. Here's the process I used:
Use a 4" mini grinder with a 1/8" thick metal cutting wheel. If you think the drain to pipe connection has failed, mark an 8 to 10 in. square around the drain, then cut through the pan. A short blade jig saw will work for this part and m... |
29,475 | My shower pan, made of gel-coated fiber glass, has three cracks, as shown in the photo below. The cracks radiate fairly straight from the drain in the center at twelve, four, and eight o'clock. (All of the other white streaks are just gel-coat coloring.)
I ground away the cracks and filled them with epoxy, which seems... | 2013/07/09 | [
"https://diy.stackexchange.com/questions/29475",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/6048/"
] | You need to fall out of love with this pan - it is broke. Why would you want to go through all of this work and compromise your work with a broken pan? This is a decent size project - GET A NEW PAN. If you want cheap get a used (unbroken) pan off of craigslist. These pans are not that much compared to how much it will ... | What you need is called an Tub Inlay. It consists of what appears to be a bathmat that is fused to the shower floor giving it strength.
Look for a local tub refinishing company, many of them provide this service.
Make sure you ask about the adhesive they use. You want to make sure the adhesive being used fuses the i... |
29,475 | My shower pan, made of gel-coated fiber glass, has three cracks, as shown in the photo below. The cracks radiate fairly straight from the drain in the center at twelve, four, and eight o'clock. (All of the other white streaks are just gel-coat coloring.)
I ground away the cracks and filled them with epoxy, which seems... | 2013/07/09 | [
"https://diy.stackexchange.com/questions/29475",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/6048/"
] | You need to fall out of love with this pan - it is broke. Why would you want to go through all of this work and compromise your work with a broken pan? This is a decent size project - GET A NEW PAN. If you want cheap get a used (unbroken) pan off of craigslist. These pans are not that much compared to how much it will ... | I have recently repaired a cracked leaking shower pan. Here's the process I used:
Use a 4" mini grinder with a 1/8" thick metal cutting wheel. If you think the drain to pipe connection has failed, mark an 8 to 10 in. square around the drain, then cut through the pan. A short blade jig saw will work for this part and m... |
29,475 | My shower pan, made of gel-coated fiber glass, has three cracks, as shown in the photo below. The cracks radiate fairly straight from the drain in the center at twelve, four, and eight o'clock. (All of the other white streaks are just gel-coat coloring.)
I ground away the cracks and filled them with epoxy, which seems... | 2013/07/09 | [
"https://diy.stackexchange.com/questions/29475",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/6048/"
] | What you need is called an Tub Inlay. It consists of what appears to be a bathmat that is fused to the shower floor giving it strength.
Look for a local tub refinishing company, many of them provide this service.
Make sure you ask about the adhesive they use. You want to make sure the adhesive being used fuses the i... | I have recently repaired a cracked leaking shower pan. Here's the process I used:
Use a 4" mini grinder with a 1/8" thick metal cutting wheel. If you think the drain to pipe connection has failed, mark an 8 to 10 in. square around the drain, then cut through the pan. A short blade jig saw will work for this part and m... |
55,955,008 | I'm doing some operations on a list with a `for` loop and I need to remove elements of that list when an `if` condition is not met and then do the operations again.
I've seen the [calculator](https://stackoverflow.com/questions/19886171/how-to-restart-a-program-at-a-certain-point-in-python) (and [here](https://stackov... | 2019/05/02 | [
"https://Stackoverflow.com/questions/55955008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6184340/"
] | Consider the below sample data..
```
a1sd
1fasd
1fsa
f1sa
f1as
df1
saf1a
sa1
sa
```
All you need to do is find what is the delimiter used in the txt file.. let's say it is linefeed then find \n and replace it with `</li>\n<li>`.. (it may be \n or \r or \r\n)
Then the output will be
```
a1sd</li>
<li>1fasd</li>
<l... | Group and replace content with following Regex pattern :
```
string li_pattern = @"(?:w+])*+(?<li>[\s\S]*?[;.\n])";
var res = Regex.Replace(text, li_pattern, @"<li>${li}</li>");
```
[<https://regex101.com/r/kJFzQr/1][1]> |
55,955,008 | I'm doing some operations on a list with a `for` loop and I need to remove elements of that list when an `if` condition is not met and then do the operations again.
I've seen the [calculator](https://stackoverflow.com/questions/19886171/how-to-restart-a-program-at-a-certain-point-in-python) (and [here](https://stackov... | 2019/05/02 | [
"https://Stackoverflow.com/questions/55955008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6184340/"
] | Looks like your text file has empty lines which is kind of normal. To not convert empty lines into `<li></li>` form you need to use a regex that doesn't match pure empty lines or lines that only contain spaces as there is no use replacing only space within `<li>` tags. You can better use this regex to match non-empty l... | Group and replace content with following Regex pattern :
```
string li_pattern = @"(?:w+])*+(?<li>[\s\S]*?[;.\n])";
var res = Regex.Replace(text, li_pattern, @"<li>${li}</li>");
```
[<https://regex101.com/r/kJFzQr/1][1]> |
55,955,008 | I'm doing some operations on a list with a `for` loop and I need to remove elements of that list when an `if` condition is not met and then do the operations again.
I've seen the [calculator](https://stackoverflow.com/questions/19886171/how-to-restart-a-program-at-a-certain-point-in-python) (and [here](https://stackov... | 2019/05/02 | [
"https://Stackoverflow.com/questions/55955008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6184340/"
] | Looks like your text file has empty lines which is kind of normal. To not convert empty lines into `<li></li>` form you need to use a regex that doesn't match pure empty lines or lines that only contain spaces as there is no use replacing only space within `<li>` tags. You can better use this regex to match non-empty l... | Consider the below sample data..
```
a1sd
1fasd
1fsa
f1sa
f1as
df1
saf1a
sa1
sa
```
All you need to do is find what is the delimiter used in the txt file.. let's say it is linefeed then find \n and replace it with `</li>\n<li>`.. (it may be \n or \r or \r\n)
Then the output will be
```
a1sd</li>
<li>1fasd</li>
<l... |
59,041,787 | I have integrated GitLab CE and Jenkins. There is a GitLab hook that is triggered when a merge request is created. A Jenkins pipeline then executes all the integration tests and accepts the merge if everything pass. I also have another hook for when code is pushed, but in this case just the unit tests are executed.
Ev... | 2019/11/25 | [
"https://Stackoverflow.com/questions/59041787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10335/"
] | >
> Edit: I don't want to have two Jenkins jobs. We've tried it and our users get confused. We also need to maintain the code for two jobs.
>
>
>
In this case, the [Generic Webhook Trigger](https://plugins.jenkins.io/generic-webhook-trigger) will help you to configure **execution only for specific webhook token.**... | There are different types of events which can be added for a Jenkins Job, so in your case you have to do:-
1. Add only "Push events" for the Job in which you want the build when code is pushed.
2. Add only "Merge request events" for the Job in which you want the build when merge request is raised.
Please refer the be... |
25,366,580 | ```
max=aggregate(cbind(a$VALUE,Date=a$DATE) ~ format(a$DATE, "%m") + cut(a$CLASS, breaks=c(0,2,4,6,8,10,12,14)) , data = a, max)[-1]
max$DATE=as.Date(max$DATE, origin = "1970-01-01")
```
Sample Data :
```
DATE GRADE VALUE
2008-09-01 1 20
2008-09-02 2 30
2008-09-03 3 50
... | 2014/08/18 | [
"https://Stackoverflow.com/questions/25366580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3923765/"
] | Try:
```
library(dplyr)
a %>%
group_by(MONTH=format(DATE, "%m"), GRADE=cut(GRADE, breaks=seq(0,14,by=2))) %>%
summarise_each(funs(max))
# MONTH GRADE DATE VALUE
#1 09 (0,2] 2008-09-30 75
#2 09 (2,4] 2008-09-03 50
#3 10 (0,2] 2008-10-01 95
#4 11 (2,4] 2008-11-01 90
#5 12 (0,... | Following code using base R may be helpful (using 'a' dataframe from akrun's answer):
```
xx = strsplit(as.character(a$DATE), '-')
a$month = sapply(strsplit(as.character(a$DATE), '-'),'[',2)
gradeCats = cut(a$GRADE, breaks = c(0, 2, 4, 6, 8, 10, 12, 14))
aggregate(VALUE~month+gradeCats, data= a, max)
month gradeCat... |
48,546,087 | I am trying this:
```
SELECT matchId FROM Matches where matchDate = CURRENT_DATE + HOUR(CURRENT_TIME) + ':00:00'
```
but cant get it to work. When I manually do this, it works:
```
SELECT matchId FROM Matches where matchDate = '2018-01-31 16:00:00'
```
I tried many variations of, containing CURDATE(), CURRENT\_DA... | 2018/01/31 | [
"https://Stackoverflow.com/questions/48546087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7158942/"
] | ```
static async getAllTexts(elements: ElementArrayFinder): Promise<string[]> {
return await elements.map(async (element: ElementFinder) => {
await element.getText();
}
}
```
NOTE: you should [turn off Control Flow](https://github.com/angular/protractor/blob/master/docs/control-flow.md) in your `protra... | The root cause return empty array is `return data` is executed sync, but `data.push(text)` is executed async. so when `getAllTexts()` execution completed
`data.push(text)` have not start execute, so you got an empty array.
To fix your code issue, please see below **Option 3**
**Option 1)** call `getText()` on elemen... |
6,365,207 | I have xcode 4 and I see no way of launching library from IB. So I cannot add image buttons to my app. apple-shift-L didnt work and I dont see a tools menu option.
Anyway around this?
Can I programmatically add buttons? | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/800517/"
] | Have you tried [CSS3PIE](http://css3pie.com/) yet? | I would recommend that you go with a CSS way to do it.
You go here and select the colors for your corner.
<http://www.spiffycorners.com/>
Once done this will give you the css you need to put and sample code how to use it.
It should work very nicely in all browsers. I used it. No images required.
This is sample style... |
193,899 | When I was much younger (1980's), my brother and I recall watching a movie at a sci-fi convention. The premise of the movie is that there's some white paste, resembling marshmallow fluff, that enters the market and everyone eats it and starts acting mysteriously, and becomes addicted to eating it and forcing others to ... | 2018/08/30 | [
"https://scifi.stackexchange.com/questions/193899",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/103076/"
] | This is [*The Stuff*](https://en.wikipedia.org/wiki/The_Stuff) (1985)
>
> Several railroad workers discover a yogurt-like white substance bubbling out of the ground. These workers find it to be sweet and addictive. Later, the substance, marketed as "The Stuff," is being sold to the general public in containers like ... | [*The Stuff*](https://en.wikipedia.org/wiki/The_Stuff) (1985) is clearly what you are remembering.
>
> Several railroad workers discover a yogurt-like white substance bubbling out of the ground. These workers find it to be sweet and addictive. Later, the substance, marketed as "The Stuff," is being sold to the genera... |
2,626,821 | Looking at creating a simple batch file for my app. My app needs some directories to be in place as it runs.
The first method I thought was just make a batch script:
```
@ECHO OFF
IF NOT EXIST C:\App GOTO :CREATE ELSE GOTO :DONTCREATE
:CREATE
MKDIR C:\App\Code
ECHO DIRECTORY CREATED
:DONTCREATE
ECHO IT WAS ALREADY ... | 2010/04/13 | [
"https://Stackoverflow.com/questions/2626821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/212639/"
] | You can do all the directory stuff directly in C#, if that would be easier:
```
if (!Directory.Exists(@"c:\app\code")
{
Directory.CreateDirectory(@"c:\app\code");
}
else
{
Console.WriteLine("Directory already exists!");
}
```
See this page for more info: <http://msdn.microsoft.com/en-us/library/wa70yfe2%28... | Simplest answer is probably what you've already thought of - to create the directory from the application as it runs.
[DirectoryInfo.Create()](http://msdn.microsoft.com/en-us/library/d869eykc%28v=VS.100%29.aspx) is the method you'll need. |
2,626,821 | Looking at creating a simple batch file for my app. My app needs some directories to be in place as it runs.
The first method I thought was just make a batch script:
```
@ECHO OFF
IF NOT EXIST C:\App GOTO :CREATE ELSE GOTO :DONTCREATE
:CREATE
MKDIR C:\App\Code
ECHO DIRECTORY CREATED
:DONTCREATE
ECHO IT WAS ALREADY ... | 2010/04/13 | [
"https://Stackoverflow.com/questions/2626821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/212639/"
] | the problem is perhaps that you think of the GOTO targets as method start points. They are just labels in the file. This means that after
```
IF NOT EXIST C:\App GOTO :CREATE ELSE GOTO :DONTCREATE
```
execution picks up with
```
:CREATE
```
and then continues on down the script right through
```
:DONTCREATE
``... | Simplest answer is probably what you've already thought of - to create the directory from the application as it runs.
[DirectoryInfo.Create()](http://msdn.microsoft.com/en-us/library/d869eykc%28v=VS.100%29.aspx) is the method you'll need. |
2,626,821 | Looking at creating a simple batch file for my app. My app needs some directories to be in place as it runs.
The first method I thought was just make a batch script:
```
@ECHO OFF
IF NOT EXIST C:\App GOTO :CREATE ELSE GOTO :DONTCREATE
:CREATE
MKDIR C:\App\Code
ECHO DIRECTORY CREATED
:DONTCREATE
ECHO IT WAS ALREADY ... | 2010/04/13 | [
"https://Stackoverflow.com/questions/2626821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/212639/"
] | the problem is perhaps that you think of the GOTO targets as method start points. They are just labels in the file. This means that after
```
IF NOT EXIST C:\App GOTO :CREATE ELSE GOTO :DONTCREATE
```
execution picks up with
```
:CREATE
```
and then continues on down the script right through
```
:DONTCREATE
``... | You can do all the directory stuff directly in C#, if that would be easier:
```
if (!Directory.Exists(@"c:\app\code")
{
Directory.CreateDirectory(@"c:\app\code");
}
else
{
Console.WriteLine("Directory already exists!");
}
```
See this page for more info: <http://msdn.microsoft.com/en-us/library/wa70yfe2%28... |
13,670,031 | **My Profile php**
```
<?php
//profile.php
require_once 'includes/global.php';
//check to see if they're logged in
if(!isset($_SESSION['logged_in'])) {
header("Location: login.php");
}
// finding user and viewing it
$tools = new FindUser();
$user = $tools->get($_REQUEST['userID']);
?>
```
This is my php for ... | 2012/12/02 | [
"https://Stackoverflow.com/questions/13670031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693383/"
] | Seems to me that less script overhead would make things faster.
```
fgrep -r -h 'LINE_TXT' $1
```
Just let grep do its own recursion through your directories with `-r`. And if you don't want its output to include the filename in its output, include the `-h` option. You can pipe its output through whatever you need f... | Yes, `find $1 -type f -name 'filename.txt' | xargs fgrep LINE_TXT`, if all you want is to locate all matches of "LINE\_TXT" in any of those files. |
13,670,031 | **My Profile php**
```
<?php
//profile.php
require_once 'includes/global.php';
//check to see if they're logged in
if(!isset($_SESSION['logged_in'])) {
header("Location: login.php");
}
// finding user and viewing it
$tools = new FindUser();
$user = $tools->get($_REQUEST['userID']);
?>
```
This is my php for ... | 2012/12/02 | [
"https://Stackoverflow.com/questions/13670031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693383/"
] | Yes, `find $1 -type f -name 'filename.txt' | xargs fgrep LINE_TXT`, if all you want is to locate all matches of "LINE\_TXT" in any of those files. | This is the exact use case for tools [ack](https://beyondgrep.com/), [ag](https://geoff.greer.fm/ag/) and [ripgrep](https://github.com/BurntSushi/ripgrep). Not only are they more convenient to use than `grep -r`, but, at least the latter two, are much faster too. |
13,670,031 | **My Profile php**
```
<?php
//profile.php
require_once 'includes/global.php';
//check to see if they're logged in
if(!isset($_SESSION['logged_in'])) {
header("Location: login.php");
}
// finding user and viewing it
$tools = new FindUser();
$user = $tools->get($_REQUEST['userID']);
?>
```
This is my php for ... | 2012/12/02 | [
"https://Stackoverflow.com/questions/13670031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693383/"
] | Seems to me that less script overhead would make things faster.
```
fgrep -r -h 'LINE_TXT' $1
```
Just let grep do its own recursion through your directories with `-r`. And if you don't want its output to include the filename in its output, include the `-h` option. You can pipe its output through whatever you need f... | This is the exact use case for tools [ack](https://beyondgrep.com/), [ag](https://geoff.greer.fm/ag/) and [ripgrep](https://github.com/BurntSushi/ripgrep). Not only are they more convenient to use than `grep -r`, but, at least the latter two, are much faster too. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.