qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
36,406,041 | I got a small piece of code from here <https://github.com/shellphish/how2heap/blob/master/fastbin_dup.c>
```
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("This file demonstrates a simple double-free attack with fastbins.\n");
printf("Allocating 3 buffers.\n");
int *a = malloc(8);
int *b... | 2016/04/04 | [
"https://Stackoverflow.com/questions/36406041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2600312/"
] | This is a compiler specific "exploit". First, let's call out the elephant in the room:
1. You're intentionally using undefined behavior (UB), so from that point forward, all bets are off.
2. You're not using any static code analysis tools like [`cppcheck`](http://cppcheck.sourceforge.net/) or lint, nor any debugging t... | As recommended by DevNull, static code analysis can assist you be detecting potential coding issues. Here is the output of cppcheck when your code is scanned:
```
$ cppcheck --enable=all test.cpp
Checking test.cpp...
[test.cpp:27]: (error) Memory pointed to by 'a' is freed twice.
[test.cpp:33]: (error) Memory l... |
36,406,041 | I got a small piece of code from here <https://github.com/shellphish/how2heap/blob/master/fastbin_dup.c>
```
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("This file demonstrates a simple double-free attack with fastbins.\n");
printf("Allocating 3 buffers.\n");
int *a = malloc(8);
int *b... | 2016/04/04 | [
"https://Stackoverflow.com/questions/36406041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2600312/"
] | This is a compiler specific "exploit". First, let's call out the elephant in the room:
1. You're intentionally using undefined behavior (UB), so from that point forward, all bets are off.
2. You're not using any static code analysis tools like [`cppcheck`](http://cppcheck.sourceforge.net/) or lint, nor any debugging t... | The previous answers don't actually explain. Here:
**Why can I not free A twice in a row?**
Because the glibc implementation contains basic checks to make sure that when a chunk is added to the freelist, it's not already on that list (you end up with a self-referential pointer). It's not a security defense as such, ... |
36,406,041 | I got a small piece of code from here <https://github.com/shellphish/how2heap/blob/master/fastbin_dup.c>
```
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("This file demonstrates a simple double-free attack with fastbins.\n");
printf("Allocating 3 buffers.\n");
int *a = malloc(8);
int *b... | 2016/04/04 | [
"https://Stackoverflow.com/questions/36406041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2600312/"
] | The previous answers don't actually explain. Here:
**Why can I not free A twice in a row?**
Because the glibc implementation contains basic checks to make sure that when a chunk is added to the freelist, it's not already on that list (you end up with a self-referential pointer). It's not a security defense as such, ... | As recommended by DevNull, static code analysis can assist you be detecting potential coding issues. Here is the output of cppcheck when your code is scanned:
```
$ cppcheck --enable=all test.cpp
Checking test.cpp...
[test.cpp:27]: (error) Memory pointed to by 'a' is freed twice.
[test.cpp:33]: (error) Memory l... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | I would replace all accents in your strings before comparing them. You can do that using the following code:
```
$replacements = array('Ó'=>'O', 'Á'=>'A', 'Ñ' => 'N'); //Add the remaining Spanish accents.
$output = strtr("JUAN LÓPEZ YÁÑEZ",$replacements);
```
`output` will now be equal to `cadena2`. | Try this function from <http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php>. It will replace non-ASCII characters with ASCII characters in string.
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
function slugify( $text ) {
// replace non letter or digits by -
$text = preg... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | Why not just use collations from intl extension, Collator class?
* with a primary level to ignore accents **and** case
* with a primary level and set Collator::CASE\_LEVEL attribute to On to ignore accents but not case
(and so on - see ICU or PHP documentation for details)
```
$cadena1 = 'JUAN LÓPEZ YÁÑEZ';
$cadena2... | Try this function from <http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php>. It will replace non-ASCII characters with ASCII characters in string.
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
function slugify( $text ) {
// replace non letter or digits by -
$text = preg... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | I would replace all accents in your strings before comparing them. You can do that using the following code:
```
$replacements = array('Ó'=>'O', 'Á'=>'A', 'Ñ' => 'N'); //Add the remaining Spanish accents.
$output = strtr("JUAN LÓPEZ YÁÑEZ",$replacements);
```
`output` will now be equal to `cadena2`. | I had the same issue:
the following messages are compared as no-equal.
```
$var1= "Utilizar preferentemente la vacuna Td (toxoides tetánico y diftérico) o, si no está disponible, la vacuna TT (toxoide tetánico).";
$var2 = "Utilizar preferentemente la vacuna Td (toxoides tetánico y diftérico) o, si no está dis... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | The two strings compare to false because they are actually different sequence of bytes. To compare them, you need to normalize them in any way.
The best way to do that is to use the Transliterator class, part of the `intl` extension on PHP 5.4+.
A test code:
```
<?php
$transliterator = Transliterator::createFromRule... | Why not just use collations from intl extension, Collator class?
* with a primary level to ignore accents **and** case
* with a primary level and set Collator::CASE\_LEVEL attribute to On to ignore accents but not case
(and so on - see ICU or PHP documentation for details)
```
$cadena1 = 'JUAN LÓPEZ YÁÑEZ';
$cadena2... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | Why not just use collations from intl extension, Collator class?
* with a primary level to ignore accents **and** case
* with a primary level and set Collator::CASE\_LEVEL attribute to On to ignore accents but not case
(and so on - see ICU or PHP documentation for details)
```
$cadena1 = 'JUAN LÓPEZ YÁÑEZ';
$cadena2... | You could try the [`soundex()`](http://php.net/manual/en/function.soundex.php) function, that works at least for your example:
```
var_dump(soundex('LOPEZ'));
// string(4) "L120"
var_dump(soundex('LÓPEZ'));
// string(4) "L120"
```
You would have to test that for different words and if the results are not good enoug... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | The two strings compare to false because they are actually different sequence of bytes. To compare them, you need to normalize them in any way.
The best way to do that is to use the Transliterator class, part of the `intl` extension on PHP 5.4+.
A test code:
```
<?php
$transliterator = Transliterator::createFromRule... | You could try the [`soundex()`](http://php.net/manual/en/function.soundex.php) function, that works at least for your example:
```
var_dump(soundex('LOPEZ'));
// string(4) "L120"
var_dump(soundex('LÓPEZ'));
// string(4) "L120"
```
You would have to test that for different words and if the results are not good enoug... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | I would replace all accents in your strings before comparing them. You can do that using the following code:
```
$replacements = array('Ó'=>'O', 'Á'=>'A', 'Ñ' => 'N'); //Add the remaining Spanish accents.
$output = strtr("JUAN LÓPEZ YÁÑEZ",$replacements);
```
`output` will now be equal to `cadena2`. | Why not just use collations from intl extension, Collator class?
* with a primary level to ignore accents **and** case
* with a primary level and set Collator::CASE\_LEVEL attribute to On to ignore accents but not case
(and so on - see ICU or PHP documentation for details)
```
$cadena1 = 'JUAN LÓPEZ YÁÑEZ';
$cadena2... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | The two strings compare to false because they are actually different sequence of bytes. To compare them, you need to normalize them in any way.
The best way to do that is to use the Transliterator class, part of the `intl` extension on PHP 5.4+.
A test code:
```
<?php
$transliterator = Transliterator::createFromRule... | Try this function from <http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php>. It will replace non-ASCII characters with ASCII characters in string.
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
function slugify( $text ) {
// replace non letter or digits by -
$text = preg... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | I would replace all accents in your strings before comparing them. You can do that using the following code:
```
$replacements = array('Ó'=>'O', 'Á'=>'A', 'Ñ' => 'N'); //Add the remaining Spanish accents.
$output = strtr("JUAN LÓPEZ YÁÑEZ",$replacements);
```
`output` will now be equal to `cadena2`. | You could try the [`soundex()`](http://php.net/manual/en/function.soundex.php) function, that works at least for your example:
```
var_dump(soundex('LOPEZ'));
// string(4) "L120"
var_dump(soundex('LÓPEZ'));
// string(4) "L120"
```
You would have to test that for different words and if the results are not good enoug... |
26,514,021 | My question is, given i have the following php code to compare two strings:
```
$cadena1='JUAN LÓPEZ YÁÑEZ';
$cadena2='JUAN LOPEZ YÁÑEZ';
if($cadena1===$cadena2){
echo '<p style="color: green;">The strings match!</p>';
}else{
echo '<p style="color: red;">The strings do not match. Accent sensitiv... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26514021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1883256/"
] | Why not just use collations from intl extension, Collator class?
* with a primary level to ignore accents **and** case
* with a primary level and set Collator::CASE\_LEVEL attribute to On to ignore accents but not case
(and so on - see ICU or PHP documentation for details)
```
$cadena1 = 'JUAN LÓPEZ YÁÑEZ';
$cadena2... | I had the same issue:
the following messages are compared as no-equal.
```
$var1= "Utilizar preferentemente la vacuna Td (toxoides tetánico y diftérico) o, si no está disponible, la vacuna TT (toxoide tetánico).";
$var2 = "Utilizar preferentemente la vacuna Td (toxoides tetánico y diftérico) o, si no está dis... |
108,146 | I'm Chinese and currently waiting for my residence permit here in France. I'm not sure if my residence permit will be released before my scheduled trip in Europe. I'm planning to go to Belgium, Amsterdam, Switzerland, Germany and Italy. There is a chance that I will only have my temporary residence permit during my Eur... | 2018/01/11 | [
"https://travel.stackexchange.com/questions/108146",
"https://travel.stackexchange.com",
"https://travel.stackexchange.com/users/72478/"
] | There will be occasional checks at least when entering Switzerland, or Germany from Austria/Switzerland, or France from Germany/Switzerland/Italy. However, it's less common on trains than buses.
When entering Switzerland by bus, checks are very common, though not systematic.
I would **not** recommend you to do this t... | There are random checks on both buses and trains. I've had my passport checked when traveling by train from Germany to France and when traveling by bus from Austria to Germany. I also had my passport checked almost every time when traveling to Switzerland, but the last time I went there was 8 years ago.
These checks a... |
8,056,842 | My question is not about GPGPU. I understand GPGPU pretty decently and that is not what I am looking for. Intel's Sand Bridge has supposedly some features that allow you to directly perform computations on the GPU.
Is that really true?
The code I am planning to write is going to be in inline assembly (in C). Are ther... | 2011/11/08 | [
"https://Stackoverflow.com/questions/8056842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Answering your first question: No it is not true.
Let me quote from the resources you have linked:
>
> The Graphics Processing Unit is controlled by the CPU through a direct interface of memory-mapped IO
> registers, and indirectly by parsing commands that the CPU has placed in memory. (Chapter 2.2 from the SB GPU ... | I don't believe that the instruction set detailed in the PDF you linked can be directly used from "user space". It's what the GPU driver on your OS may\* use to implement higher-level interfaces like OpenGL and DirectX.
For what it's worth, the Sandy Bridge GPU is pretty weak. It doesn't support OpenCL\*\*, which is a... |
18,889,056 | I'm trying to figure out a way of identifying a "run" of results (successive rows, in order) that meet some condition. Currently, I'm ordering a result set, and scanning by eye for particular patterns. Here's an example:
```
SELECT the_date, name
FROM orders
WHERE
the_date BETWEEN
to_date('2013-09-18',..... | 2013/09/19 | [
"https://Stackoverflow.com/questions/18889056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10583/"
] | You need multiple nested window functions:
```
SELECT *
FROM
(
SELECT the_date, name, grp,
COUNT(*) OVER (PARTITION BY grp) AS cnt
FROM
(
SELECT the_date, name,
SUM(flag) OVER (ORDER BY the_date) AS grp
FROM
(
SELECT the_date, name,
CASE WHEN LAG(name... | Try this
```
WITH ORDERS
AS (SELECT
TO_DATE ( '2013-09-18 00:00:01',
'YYYY-MM-DD HH24:MI:SS' )
AS THE_DATE,
'John' AS NAME
FROM
DUAL
UNION ALL
SELECT
TO_DATE ( '2013-09-19 00:00:01',
... |
16,568 | So company earnings can fluctuate quite a bit, based on the market conditions, seasonal conditions, whether there was a big spend in the last year etc.
Therefore, even the last years earnings could differ quite a lot from this year.
So I was wondering like when we work out the P/E ratio, which set of earnings is used... | 2012/08/23 | [
"https://money.stackexchange.com/questions/16568",
"https://money.stackexchange.com",
"https://money.stackexchange.com/users/1508/"
] | This is a note from my broker, CMC Markets, who use Morningstar:
>
> Morningstar calculate the P/E Ratio using a weighted average of the most recent earnings and the projected earnings for the next year. This may result in a different P/E Ratio to those based solely on past earnings as reported on some sites and othe... | @jlowin's answer has a very good discussion of the types of PE ratio so I will just answer a very specific question from within your question:
>
> And who makes these estimates? Is it the market commentators or the company saying "we'd expected to make this much"?
>
>
>
Future earnings estimates are made by profe... |
16,568 | So company earnings can fluctuate quite a bit, based on the market conditions, seasonal conditions, whether there was a big spend in the last year etc.
Therefore, even the last years earnings could differ quite a lot from this year.
So I was wondering like when we work out the P/E ratio, which set of earnings is used... | 2012/08/23 | [
"https://money.stackexchange.com/questions/16568",
"https://money.stackexchange.com",
"https://money.stackexchange.com/users/1508/"
] | There are two common types of P/E ratio calculations: "trailing" and "forward" (and then there are various mixes of the two).
Trailing P/E ratios are calculated as [current price] / [trailing 12-month EPS]. An alternative is the Forward P/E ratio, which is based on an estimate of earnings in the coming 12 months. The ... | @jlowin's answer has a very good discussion of the types of PE ratio so I will just answer a very specific question from within your question:
>
> And who makes these estimates? Is it the market commentators or the company saying "we'd expected to make this much"?
>
>
>
Future earnings estimates are made by profe... |
48,881,108 | When I turn on the UISwitch I try to make it hide the background Image but I get the error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value.
What am I doing wrong? when it was on the main storyboard it worked fine, but when on the settings storyboard it doesn't.
Code:
```
@IBAction fu... | 2018/02/20 | [
"https://Stackoverflow.com/questions/48881108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9384661/"
] | ```
You can use a filter to remove the read-more link from content. I have updated your filter. Please try it, It's working fine.
function disable_more_link( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', '' );
return $link;
}
add_filter( 'the_content_more_link', 'disable_more_lin... | [More info](https://codex.wordpress.org/Customizing_the_Read_More)
```
function new_excerpt_more($more) {
return '...';
}
add_filter('excerpt_more', 'new_excerpt_more');
``` |
3,225,512 | I have a jQuery function that allows a user to create a list of links. By clicking on an "add row" link they create as many of these blocks (shown below) as they like which they can type the information into.
```
<div class="links_row">
<input type="text" name="link_name[]">
<input type="text" name="link_url[... | 2010/07/12 | [
"https://Stackoverflow.com/questions/3225512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339876/"
] | Combine. You mean like `array_merge()` combine?
If so, use that.
EDIT:
On second thought, you might want `array_combine()`. It takes two arrays and returns one where one of the input arrays provides the keys and the other provides the values. | No, youre better off with an array map because the numbers would correlate. Check out:
>
> <http://php.net/manual/en/function.array-map.php>
>
>
> |
3,225,512 | I have a jQuery function that allows a user to create a list of links. By clicking on an "add row" link they create as many of these blocks (shown below) as they like which they can type the information into.
```
<div class="links_row">
<input type="text" name="link_name[]">
<input type="text" name="link_url[... | 2010/07/12 | [
"https://Stackoverflow.com/questions/3225512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339876/"
] | Probably not the cleanest way of doing this, but a quick loop should do it.
I'm assuming you've validated and sanitized the form data and made sure the arrays are the same size.
```
$rows = array();
$num_results = count($_POST['link_name']);
for($i = 0; $i < $num_results; $i++) {
$rows[$i]['url'] = $_POST['link_... | Combine. You mean like `array_merge()` combine?
If so, use that.
EDIT:
On second thought, you might want `array_combine()`. It takes two arrays and returns one where one of the input arrays provides the keys and the other provides the values. |
3,225,512 | I have a jQuery function that allows a user to create a list of links. By clicking on an "add row" link they create as many of these blocks (shown below) as they like which they can type the information into.
```
<div class="links_row">
<input type="text" name="link_name[]">
<input type="text" name="link_url[... | 2010/07/12 | [
"https://Stackoverflow.com/questions/3225512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339876/"
] | Probably not the cleanest way of doing this, but a quick loop should do it.
I'm assuming you've validated and sanitized the form data and made sure the arrays are the same size.
```
$rows = array();
$num_results = count($_POST['link_name']);
for($i = 0; $i < $num_results; $i++) {
$rows[$i]['url'] = $_POST['link_... | No, youre better off with an array map because the numbers would correlate. Check out:
>
> <http://php.net/manual/en/function.array-map.php>
>
>
> |
4,737,701 | I trying to write a a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so ([PLCrashReporter](http://code.google.com/p/plcrashreporter/)), however this framewo... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248037/"
] | I had this similar issue and the PLCrashReported seemed too complicated for what I wanted to do.
Note that you can't access the crash report generated by Apple, the PLCrashReport generates it's own reports and store them in the user's cache folder.
Eventually, I used the following example:
<http://cocoawithlove.com/2... | Maybe a better solution will be to use a fully specialized end-2-end solution/service? Such as <http://apphance.com>. It is currently in closed beta testing phase, but you can ask for participation and we'll get back to you pretty quickly. The only thing you need to do is to register for an API key and embed a small fr... |
4,737,701 | I trying to write a a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so ([PLCrashReporter](http://code.google.com/p/plcrashreporter/)), however this framewo... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248037/"
] | I had this similar issue and the PLCrashReported seemed too complicated for what I wanted to do.
Note that you can't access the crash report generated by Apple, the PLCrashReport generates it's own reports and store them in the user's cache folder.
Eventually, I used the following example:
<http://cocoawithlove.com/2... | There are a bunch of (SAAS) E2E solutions that you may be very happy to know.
Very very simple to integrate into your application
Have Fun...
1. [**crashlytics**](http://www.crashlytics.com) (Free and my preferred)
2. [hockeyapp](http://hockeyapp.net/)
3. [bugSense](http://www.bugsense.com)
4. [Crittercism](https://... |
4,737,701 | I trying to write a a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so ([PLCrashReporter](http://code.google.com/p/plcrashreporter/)), however this framewo... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248037/"
] | I guess I don't have the karma to add a comment to Nimrod Gat's answer, so I have to provide my follow-up here. I'll try to make it worthy of a standalone answer.
It's very, very difficult to write a safe, correct, and *reliable* crash reporter, especially one that runs directly in-process. The code referenced in Nimr... | Maybe a better solution will be to use a fully specialized end-2-end solution/service? Such as <http://apphance.com>. It is currently in closed beta testing phase, but you can ask for participation and we'll get back to you pretty quickly. The only thing you need to do is to register for an API key and embed a small fr... |
4,737,701 | I trying to write a a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so ([PLCrashReporter](http://code.google.com/p/plcrashreporter/)), however this framewo... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248037/"
] | I guess I don't have the karma to add a comment to Nimrod Gat's answer, so I have to provide my follow-up here. I'll try to make it worthy of a standalone answer.
It's very, very difficult to write a safe, correct, and *reliable* crash reporter, especially one that runs directly in-process. The code referenced in Nimr... | There are a bunch of (SAAS) E2E solutions that you may be very happy to know.
Very very simple to integrate into your application
Have Fun...
1. [**crashlytics**](http://www.crashlytics.com) (Free and my preferred)
2. [hockeyapp](http://hockeyapp.net/)
3. [bugSense](http://www.bugsense.com)
4. [Crittercism](https://... |
4,737,701 | I trying to write a a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so ([PLCrashReporter](http://code.google.com/p/plcrashreporter/)), however this framewo... | 2011/01/19 | [
"https://Stackoverflow.com/questions/4737701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248037/"
] | Maybe a better solution will be to use a fully specialized end-2-end solution/service? Such as <http://apphance.com>. It is currently in closed beta testing phase, but you can ask for participation and we'll get back to you pretty quickly. The only thing you need to do is to register for an API key and embed a small fr... | There are a bunch of (SAAS) E2E solutions that you may be very happy to know.
Very very simple to integrate into your application
Have Fun...
1. [**crashlytics**](http://www.crashlytics.com) (Free and my preferred)
2. [hockeyapp](http://hockeyapp.net/)
3. [bugSense](http://www.bugsense.com)
4. [Crittercism](https://... |
71,386,061 | Our instruction manual is in markdown format. We improve the manual daily or weekly and then we would like to translate to other languages. Until now, this process is manual and we use TRADOS (a assisted translation software)
We are studying to improve the process. What we want to do is to translate it using Microsoft... | 2022/03/07 | [
"https://Stackoverflow.com/questions/71386061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5185236/"
] | First of all, an expression like `writeDir.concat("/").concat("metadata.txt")` is reducing readability *and* performance. A straight-forward `writeDir + "/" + "metadata.txt"` will provide better performance. But since you’re constructing a string merely for constructing a `Path`, it’s even more straight-forward not to ... | A Stream does not allow to go back and rewrite content. A way to achieve what you want is using a [`RandomAccessFile`](https://docs.oracle.com/javase/8/docs/api/java/io/RandomAccessFile.html).
Its [`setLength()`](https://docs.oracle.com/javase/8/docs/api/java/io/RandomAccessFile.html#setLength-long-) method will trunca... |
71,386,061 | Our instruction manual is in markdown format. We improve the manual daily or weekly and then we would like to translate to other languages. Until now, this process is manual and we use TRADOS (a assisted translation software)
We are studying to improve the process. What we want to do is to translate it using Microsoft... | 2022/03/07 | [
"https://Stackoverflow.com/questions/71386061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5185236/"
] | A Stream does not allow to go back and rewrite content. A way to achieve what you want is using a [`RandomAccessFile`](https://docs.oracle.com/javase/8/docs/api/java/io/RandomAccessFile.html).
Its [`setLength()`](https://docs.oracle.com/javase/8/docs/api/java/io/RandomAccessFile.html#setLength-long-) method will trunca... | File operations are typically buffered by the underlying kernel, and so you're unlikely to see much of a performance benefit by keeping an open file descriptor for this kind of low throughput application.
Keeping your code as a single operation that gets to leave no state after it finishes, rather than designing it as... |
71,386,061 | Our instruction manual is in markdown format. We improve the manual daily or weekly and then we would like to translate to other languages. Until now, this process is manual and we use TRADOS (a assisted translation software)
We are studying to improve the process. What we want to do is to translate it using Microsoft... | 2022/03/07 | [
"https://Stackoverflow.com/questions/71386061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5185236/"
] | First of all, an expression like `writeDir.concat("/").concat("metadata.txt")` is reducing readability *and* performance. A straight-forward `writeDir + "/" + "metadata.txt"` will provide better performance. But since you’re constructing a string merely for constructing a `Path`, it’s even more straight-forward not to ... | File operations are typically buffered by the underlying kernel, and so you're unlikely to see much of a performance benefit by keeping an open file descriptor for this kind of low throughput application.
Keeping your code as a single operation that gets to leave no state after it finishes, rather than designing it as... |
162,524 | I have recently received peer review on a systematic review after six months, with revisions requested. This is on a dynamic subject with significant literature published since. I re-screened the papers and was able to include a further 5 from those published in the past 6 months.
Is it acceptable to update the review... | 2021/02/11 | [
"https://academia.stackexchange.com/questions/162524",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/-1/"
] | Since it is undergoing peer review again, in general, you should be able to include the new papers. If you do this, though, highlight both the new papers and the changes to your conclusions in your author response / revision note, so that the reviewers know to pay particular attention to them and give them proper revie... | It is essential to update the systematic review in the revision, identifying new studies, incorporating them into the results, and reconsidering the conclusions. An overarching goal of systematic review is to present a synthesis of the existing literature as close in time to publication as possible. If there are known ... |
42,534,593 | I'm looking to copy the custom classes added to the initial < option > over to the jQuery selectmenu UI generated list. I've tried using 'transferClasses: true' but that just transfers the main class across.
The select menu markup before jQuery UI is:
```
<select>
<option>Option 1</option>
<option>Option 2</o... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641837/"
] | I was able to do it by looping over the newly created select menu using the open event. Apparently the actual items don't exist until the first time the open method is called.
```js
$('select').selectmenu({
open: function() {
$('div.ui-selectmenu-menu li.ui-menu-item').each(function(idx){
$(this).addC... | It seems there no way you can instruct selectmenu to preserve classes or other attributes.
But you can create your own selectmenu extension via widget factory.
```js
//classyMenu widget extends/overrides selectmenu
$.widget("custom.classyMenu", $.ui.selectmenu, {
_renderItem: function(ul, item) {
var li = $... |
42,534,593 | I'm looking to copy the custom classes added to the initial < option > over to the jQuery selectmenu UI generated list. I've tried using 'transferClasses: true' but that just transfers the main class across.
The select menu markup before jQuery UI is:
```
<select>
<option>Option 1</option>
<option>Option 2</o... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641837/"
] | I was able to do it by looping over the newly created select menu using the open event. Apparently the actual items don't exist until the first time the open method is called.
```js
$('select').selectmenu({
open: function() {
$('div.ui-selectmenu-menu li.ui-menu-item').each(function(idx){
$(this).addC... | There is a simple and direct way to add custom class to any jQuery UI widget - it's [classes option](http://learn.jquery.com/jquery-ui/widget-factory/classes-option/).
Let's take a simple case with [selectmenu](https://jqueryui.com/selectmenu/#default) jQuery widget.
HTML part is strict:
```
<select name="speed" id=... |
42,534,593 | I'm looking to copy the custom classes added to the initial < option > over to the jQuery selectmenu UI generated list. I've tried using 'transferClasses: true' but that just transfers the main class across.
The select menu markup before jQuery UI is:
```
<select>
<option>Option 1</option>
<option>Option 2</o... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641837/"
] | I was able to do it by looping over the newly created select menu using the open event. Apparently the actual items don't exist until the first time the open method is called.
```js
$('select').selectmenu({
open: function() {
$('div.ui-selectmenu-menu li.ui-menu-item').each(function(idx){
$(this).addC... | If you have multiple selects:
```
$("select").each(function(index, select) {
$(select).selectmenu({
create: function( event, ui ) {
$(select).next().addClass($(select).attr('class'));
},
open: function( event, ui ) {
// Maybe remove classes or whatever
}
... |
42,534,593 | I'm looking to copy the custom classes added to the initial < option > over to the jQuery selectmenu UI generated list. I've tried using 'transferClasses: true' but that just transfers the main class across.
The select menu markup before jQuery UI is:
```
<select>
<option>Option 1</option>
<option>Option 2</o... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641837/"
] | It seems there no way you can instruct selectmenu to preserve classes or other attributes.
But you can create your own selectmenu extension via widget factory.
```js
//classyMenu widget extends/overrides selectmenu
$.widget("custom.classyMenu", $.ui.selectmenu, {
_renderItem: function(ul, item) {
var li = $... | There is a simple and direct way to add custom class to any jQuery UI widget - it's [classes option](http://learn.jquery.com/jquery-ui/widget-factory/classes-option/).
Let's take a simple case with [selectmenu](https://jqueryui.com/selectmenu/#default) jQuery widget.
HTML part is strict:
```
<select name="speed" id=... |
42,534,593 | I'm looking to copy the custom classes added to the initial < option > over to the jQuery selectmenu UI generated list. I've tried using 'transferClasses: true' but that just transfers the main class across.
The select menu markup before jQuery UI is:
```
<select>
<option>Option 1</option>
<option>Option 2</o... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641837/"
] | It seems there no way you can instruct selectmenu to preserve classes or other attributes.
But you can create your own selectmenu extension via widget factory.
```js
//classyMenu widget extends/overrides selectmenu
$.widget("custom.classyMenu", $.ui.selectmenu, {
_renderItem: function(ul, item) {
var li = $... | If you have multiple selects:
```
$("select").each(function(index, select) {
$(select).selectmenu({
create: function( event, ui ) {
$(select).next().addClass($(select).attr('class'));
},
open: function( event, ui ) {
// Maybe remove classes or whatever
}
... |
60,032,119 | Is it possible to catch all thrown exceptions of a particular type, say IllegalArgumentException, throughout the entire Spring Boot application and handle it one place? I want to introduce some additional logging for particular types of exception in application and I am looking for a way to avoid duplicating logic or m... | 2020/02/03 | [
"https://Stackoverflow.com/questions/60032119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1541964/"
] | Take a look at the annotation [@ExceptionHandler(value=YourException.class)](https://www.tutorialspoint.com/spring_boot/spring_boot_exception_handling.htm) and @ControllerAdvice it allows you to handle custom exceptions. The Controller Advice class can handle the exception globally. We can define any Exception Handler ... | Spring AOP can be used to address this cross cutting concern.
[@AfterThrowing](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#aop-advice-after-throwing) advice can be used for this purpose.
>
> The name used in the throwing attribute must correspond to the name of
> a parameter in t... |
60,032,119 | Is it possible to catch all thrown exceptions of a particular type, say IllegalArgumentException, throughout the entire Spring Boot application and handle it one place? I want to introduce some additional logging for particular types of exception in application and I am looking for a way to avoid duplicating logic or m... | 2020/02/03 | [
"https://Stackoverflow.com/questions/60032119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1541964/"
] | Take a look at the annotation [@ExceptionHandler(value=YourException.class)](https://www.tutorialspoint.com/spring_boot/spring_boot_exception_handling.htm) and @ControllerAdvice it allows you to handle custom exceptions. The Controller Advice class can handle the exception globally. We can define any Exception Handler ... | Springboot provides us with the capability to handle exceptions globally using the `@ControllerAdvice` annotation . So, instead of handling exceptions and logging it in each controller, you could actually throw the exception from every controller and handle it in a single place like :
```
BusinessException extends Run... |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | Missing a `$`:
`list($aDoor, $size) = split('_', $_POST['price']); // line 207`
I think you are trying to do something like:
```
<?php
$aDoor = array();
$size = array();
foreach ($_POST['price'] as $p)
{
list($a, $b) = explode('_', $p);
$aDoor[] = $a;
$size[] = $b;
}
if(empty($aDoor))
{
echo("You didn't s... | It's Hebrew. It means twice colon. It also happens when you miss the $, like you have.
<http://en.wikipedia.org/wiki/Scope_resolution_operator#PHP> |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | Missing a `$`:
`list($aDoor, $size) = split('_', $_POST['price']); // line 207`
I think you are trying to do something like:
```
<?php
$aDoor = array();
$size = array();
foreach ($_POST['price'] as $p)
{
list($a, $b) = explode('_', $p);
$aDoor[] = $a;
$size[] = $b;
}
if(empty($aDoor))
{
echo("You didn't s... | @Konforce I test your script and it works good.
Sorry I don't know what I was saying but I have to work it like this to list $size and prices $aDoor with the total below. I just have to style it now.
```
<?php
list($aDoor, $size) = split('_', $_POST['price']);
$aDoor = array();
$size = array();
foreach ($_POST['pri... |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | Missing a `$`:
`list($aDoor, $size) = split('_', $_POST['price']); // line 207`
I think you are trying to do something like:
```
<?php
$aDoor = array();
$size = array();
foreach ($_POST['price'] as $p)
{
list($a, $b) = explode('_', $p);
$aDoor[] = $a;
$size[] = $b;
}
if(empty($aDoor))
{
echo("You didn't s... | @konforce can you see at the begining where you have set up the variable $aDoor and $size as arrays?
```
$aDoor = array();
$size = array();
```
Well now I am adding another index value that is not an array it is an string
```
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="' . $va... |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | See [this](https://stackoverflow.com/questions/2118755/questions-every-good-php-developer-should-be-able-to-answer/2118987#2118987) for a good primer. And Google is your friend :) | It's Hebrew. It means twice colon. It also happens when you miss the $, like you have.
<http://en.wikipedia.org/wiki/Scope_resolution_operator#PHP> |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | See [this](https://stackoverflow.com/questions/2118755/questions-every-good-php-developer-should-be-able-to-answer/2118987#2118987) for a good primer. And Google is your friend :) | @Konforce I test your script and it works good.
Sorry I don't know what I was saying but I have to work it like this to list $size and prices $aDoor with the total below. I just have to style it now.
```
<?php
list($aDoor, $size) = split('_', $_POST['price']);
$aDoor = array();
$size = array();
foreach ($_POST['pri... |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | See [this](https://stackoverflow.com/questions/2118755/questions-every-good-php-developer-should-be-able-to-answer/2118987#2118987) for a good primer. And Google is your friend :) | @konforce can you see at the begining where you have set up the variable $aDoor and $size as arrays?
```
$aDoor = array();
$size = array();
```
Well now I am adding another index value that is not an array it is an string
```
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="' . $va... |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | @konforce can you see at the begining where you have set up the variable $aDoor and $size as arrays?
```
$aDoor = array();
$size = array();
```
Well now I am adding another index value that is not an array it is an string
```
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="' . $va... | It's Hebrew. It means twice colon. It also happens when you miss the $, like you have.
<http://en.wikipedia.org/wiki/Scope_resolution_operator#PHP> |
2,248,612 | buy.php:
```
<form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?>
</form>
```
cart.php:
```
list($aDoor... | 2010/02/11 | [
"https://Stackoverflow.com/questions/2248612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/269837/"
] | @konforce can you see at the begining where you have set up the variable $aDoor and $size as arrays?
```
$aDoor = array();
$size = array();
```
Well now I am adding another index value that is not an array it is an string
```
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="' . $va... | @Konforce I test your script and it works good.
Sorry I don't know what I was saying but I have to work it like this to list $size and prices $aDoor with the total below. I just have to style it now.
```
<?php
list($aDoor, $size) = split('_', $_POST['price']);
$aDoor = array();
$size = array();
foreach ($_POST['pri... |
35,034,391 | I've manage to create a form embedded in another form but I think I'm not doing something right. Here's my code
Category
```
class Category
{
private $id;
private $name;
/**
* @ORM\OneToMany(targetEntity="Category", mappedBy="category")
*/
private $subcatego... | 2016/01/27 | [
"https://Stackoverflow.com/questions/35034391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4506747/"
] | Your `CategoryType` is not correctly mapped compared to your `Category` entity. Actually, in your case, you don't need to have a sub-form `CategoryType` with a `name` field, since you have a `category` field in `SubCategory` which is a relationship towards `Category`.
Just replace:
```
->add('category', new CategoryT... | Could your try smth like this (for `Category` entity class):
```
public function addSubcategorue(\AppBundle\Entity\Category $subcategorues)
{
if ($this->subcategorues->contains($subcategorues)) {
$this->subcategorues->add($subcategorues);
$subcategorues->setCategory($this);
}
return $this;... |
9,739,888 | If we start to use 2 servers instead of one, with load balancing, is there a way to store sessions in memory, so we wouldn't need to change 50 webconfigs to set sessions are stored in database?
Obviously, 2 servers would be there if one fails, so storing sessions in memory would back things to beginning.
Thanks. | 2012/03/16 | [
"https://Stackoverflow.com/questions/9739888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1010078/"
] | One option is to use a load balancer that supports "sticky sessions". What that means is that the load balancer will always forward requests with the same session id to the same server, so no session sharing is required. | If I understand your question correctly, then the answer is "No". If you are using the default inprocess session provider, then when you switch to using 2 machines, you will need to switch the session provider to some out of process (ie Sql Session provider or Memcached) session providers so that both machines can acce... |
4,086,372 | The problem is as follows:
>
> Let the function $f(x)=\sec \frac{\pi}{3}-\csc^2 4x$.
> Find the complement of the domain of the function $f(x)$.
>
>
>
The given choices in my book are as follows:
$\begin{array}{ll}
1.&\left\{(2n+1)\frac{\pi}{16}/n\in \mathbb{Z}\right\}\\
2.&\left\{(2n+1)\frac{\pi}{4}/n\in \mathb... | 2021/04/02 | [
"https://math.stackexchange.com/questions/4086372",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/356728/"
] | First, recall that the domain is the set of $x$ values that you're allowed to plug in - that give you a well defined expression.The term $\sec\left(\frac{\pi}{3}\right)$ is a constant, and so it will not affect the domain; no matter what value of $x$ you plug in, that term will be the same, so it won't have any effect ... | The complement of the domain is precisely the set where the given expression is not well defined.
To find out such set, observe that
\begin{align\*}
\csc^{2}(4x) = \frac{1}{\sin^{2}(4x)}
\end{align\*}
where the denominator cannot be zero. This means that we have to exclude the values of $x$ such that
\begin{align\*}
... |
4,086,372 | The problem is as follows:
>
> Let the function $f(x)=\sec \frac{\pi}{3}-\csc^2 4x$.
> Find the complement of the domain of the function $f(x)$.
>
>
>
The given choices in my book are as follows:
$\begin{array}{ll}
1.&\left\{(2n+1)\frac{\pi}{16}/n\in \mathbb{Z}\right\}\\
2.&\left\{(2n+1)\frac{\pi}{4}/n\in \mathb... | 2021/04/02 | [
"https://math.stackexchange.com/questions/4086372",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/356728/"
] | First, recall that the domain is the set of $x$ values that you're allowed to plug in - that give you a well defined expression.The term $\sec\left(\frac{\pi}{3}\right)$ is a constant, and so it will not affect the domain; no matter what value of $x$ you plug in, that term will be the same, so it won't have any effect ... | The input to secant is $\frac{\pi}3$, it is not a function of $x$.
We just have to handle $\csc^2 4x$ and it is not well defined when
$$4x = n\pi.$$ |
4,086,372 | The problem is as follows:
>
> Let the function $f(x)=\sec \frac{\pi}{3}-\csc^2 4x$.
> Find the complement of the domain of the function $f(x)$.
>
>
>
The given choices in my book are as follows:
$\begin{array}{ll}
1.&\left\{(2n+1)\frac{\pi}{16}/n\in \mathbb{Z}\right\}\\
2.&\left\{(2n+1)\frac{\pi}{4}/n\in \mathb... | 2021/04/02 | [
"https://math.stackexchange.com/questions/4086372",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/356728/"
] | First, recall that the domain is the set of $x$ values that you're allowed to plug in - that give you a well defined expression.The term $\sec\left(\frac{\pi}{3}\right)$ is a constant, and so it will not affect the domain; no matter what value of $x$ you plug in, that term will be the same, so it won't have any effect ... | $\sec(\frac\pi3)$ is constant.
$\csc(y)$ and $\csc^2(y)$ are defined for all $y\ne n\pi$.
Here letting $y = 4x \ne n\pi\Rightarrow x\ne\frac{n\pi}{4}$
So the complement of the domain is $\{\frac{n\pi}{4} |n \in \Bbb Z \}$ |
30,696,076 | How to create a c code that receive int parameter n and return the value of this mathematical equation
>
> *f*(n) = 3 \* *f*(*n* - 1) + 4, where *f*(0) = 1
>
>
>
each time the program receive n , the program should start from the 0 to n which means in code (for loop) .
the problem here that i can't transl... | 2015/06/07 | [
"https://Stackoverflow.com/questions/30696076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4425292/"
] | It's called recursion, and you have a base case where `f(0) == 1`, so just check `if (n == 0)` and return `1` or recurse
```
int f(int n)
{
if (n == 0)
return 1;
return 3 * f(n - 1) + 4;
}
```
An iterative solution is quite simple too, for example if `f(5)`
```
#include <stdio.h>
int
main(void)
... | Best will be to use recursion . Learn it online .
Its is very powerful method for solving problems. Classical one is to calculate factorials. Its is used widely in many algorithms like tree/graph traversal etc.
Recursion in computer science is a method where the solution to a problem depends on solutions to smaller ... |
30,696,076 | How to create a c code that receive int parameter n and return the value of this mathematical equation
>
> *f*(n) = 3 \* *f*(*n* - 1) + 4, where *f*(0) = 1
>
>
>
each time the program receive n , the program should start from the 0 to n which means in code (for loop) .
the problem here that i can't transl... | 2015/06/07 | [
"https://Stackoverflow.com/questions/30696076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4425292/"
] | It's called recursion, and you have a base case where `f(0) == 1`, so just check `if (n == 0)` and return `1` or recurse
```
int f(int n)
{
if (n == 0)
return 1;
return 3 * f(n - 1) + 4;
}
```
An iterative solution is quite simple too, for example if `f(5)`
```
#include <stdio.h>
int
main(void)
... | A LRE (linear recurrence equation) can be converted into a matrix multiply. In this case:
```
F(0) = | 1 | (the current LRE value)
| 1 | (this is just copied, used for the + 4)
M = | 3 4 | (calculates LRE to new 1st number)
| 0 1 | (copies previous 2nd number to new 2nd nu... |
30,696,076 | How to create a c code that receive int parameter n and return the value of this mathematical equation
>
> *f*(n) = 3 \* *f*(*n* - 1) + 4, where *f*(0) = 1
>
>
>
each time the program receive n , the program should start from the 0 to n which means in code (for loop) .
the problem here that i can't transl... | 2015/06/07 | [
"https://Stackoverflow.com/questions/30696076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4425292/"
] | A LRE (linear recurrence equation) can be converted into a matrix multiply. In this case:
```
F(0) = | 1 | (the current LRE value)
| 1 | (this is just copied, used for the + 4)
M = | 3 4 | (calculates LRE to new 1st number)
| 0 1 | (copies previous 2nd number to new 2nd nu... | Best will be to use recursion . Learn it online .
Its is very powerful method for solving problems. Classical one is to calculate factorials. Its is used widely in many algorithms like tree/graph traversal etc.
Recursion in computer science is a method where the solution to a problem depends on solutions to smaller ... |
68,531,464 | I have one state
```
const [data, setData] = useState("");
```
And 2 useEffects that call in parallel when component renders
```
useEffect(() => {
socket.on("message",()=>{
console.log(data)
})
}, [socket])
useEffect(() => {
const res = getDataFromServer()
setDa... | 2021/07/26 | [
"https://Stackoverflow.com/questions/68531464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3338287/"
] | You can return a function in useEffect to clean unnecessary handlers / event listeners.
[Effects with Cleanup - React Docs](https://reactjs.org/docs/hooks-effect.html#example-using-hooks-1)
In this function you can use the [offAny method of socket.io client](https://socket.io/docs/v3/client-api/index.html#socket-offA... | This might help
```
React.useEffect(() => {
// This effect only executes on the initial render so that we aren't setting up the socket repeatedly.
socket.on("message",()=>{
console.log(data);
})
return () => {
socket.off('message',() => {});
}
}, []);
``` |
4,656 | Ich habe eine Kopie eines Manuskripts aus dem 18 Jahrhundert. Es handelt sich um [die Geburtstagskantate für Prinzessin Ulrike](http://de.wikipedia.org/wiki/Ulrike_Sophie_zu_Mecklenburg#cite_note-2) einschließlich des Textes.

Die Kopie ist n... | 2012/06/01 | [
"https://german.stackexchange.com/questions/4656",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/514/"
] | Es handelt sich um eine bereits im 18. Jahrhundert gebräuchliche [Kurrentschrift](http://de.wikipedia.org/wiki/Deutsche_Kurrentschrift). Im verlinkten Wikipedia-Artikel findet sich auch eine Alphabettafel, mit deren Hilfe man einzelne Buchstaben zuordnen kann.
Von den ersten beiden Zeilen kann ich folgendes entziffern... | Zusätzlich zu Takkats Antwort empfehle ich, Stück für Stück vorzugehen, und den bisher entzifferten Inhalt zu beachten. Schreib Dir das, was Du erkennen kannst, als Lückentext auf. Wenn Du in einem Satz ein oder zwei Wörter nicht lesen kannst, überlege, was grammatikalisch und thematisch passen könnte. Wenn Du ein Zeil... |
4,656 | Ich habe eine Kopie eines Manuskripts aus dem 18 Jahrhundert. Es handelt sich um [die Geburtstagskantate für Prinzessin Ulrike](http://de.wikipedia.org/wiki/Ulrike_Sophie_zu_Mecklenburg#cite_note-2) einschließlich des Textes.

Die Kopie ist n... | 2012/06/01 | [
"https://german.stackexchange.com/questions/4656",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/514/"
] | Es handelt sich um eine bereits im 18. Jahrhundert gebräuchliche [Kurrentschrift](http://de.wikipedia.org/wiki/Deutsche_Kurrentschrift). Im verlinkten Wikipedia-Artikel findet sich auch eine Alphabettafel, mit deren Hilfe man einzelne Buchstaben zuordnen kann.
Von den ersten beiden Zeilen kann ich folgendes entziffern... | **Seite 1:**
So schön, sang in der Schäfer Welt der redliche Ei=
ron, als Luna durch die Sternen irrte, die Nymphen hörten den Ge=
sang, der durch den Wald bis zum Olimpus drang. Voll Zuversicht
daß frommer Schäfer unentweyhte Pflicht, die Götter die den Hain be=
wohnen mit Beyfall segnen und belohnen, sang er, es... |
4,656 | Ich habe eine Kopie eines Manuskripts aus dem 18 Jahrhundert. Es handelt sich um [die Geburtstagskantate für Prinzessin Ulrike](http://de.wikipedia.org/wiki/Ulrike_Sophie_zu_Mecklenburg#cite_note-2) einschließlich des Textes.

Die Kopie ist n... | 2012/06/01 | [
"https://german.stackexchange.com/questions/4656",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/514/"
] | Zusätzlich zu Takkats Antwort empfehle ich, Stück für Stück vorzugehen, und den bisher entzifferten Inhalt zu beachten. Schreib Dir das, was Du erkennen kannst, als Lückentext auf. Wenn Du in einem Satz ein oder zwei Wörter nicht lesen kannst, überlege, was grammatikalisch und thematisch passen könnte. Wenn Du ein Zeil... | **Seite 1:**
So schön, sang in der Schäfer Welt der redliche Ei=
ron, als Luna durch die Sternen irrte, die Nymphen hörten den Ge=
sang, der durch den Wald bis zum Olimpus drang. Voll Zuversicht
daß frommer Schäfer unentweyhte Pflicht, die Götter die den Hain be=
wohnen mit Beyfall segnen und belohnen, sang er, es... |
18,136,629 | I can run `SET` statements to assign variables and use "transaction" to maintain it in the mySQL session, but when I include the function `DATE_FORMAT` like this:
```
cursor.execute("SET @dowToday:=CAST( DATE_FORMAT( NOW(), '%w' ) AS UNSIGNED);")
```
Django complains that
>
> not enough arguments for format strin... | 2013/08/08 | [
"https://Stackoverflow.com/questions/18136629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1261511/"
] | My guess is that the issue is with the percent sign (`%`) in the query text. (Isn't that a bind variable placeholder in Django?) e.g. if we were going to use a bind variable, wouldn't that look something like this?
```
SELECT 'foo' FROM DUAL WHERE 'a' = %(varname)s ;
```
I think maybe Django is scanning your SQL tex... | Are you sure the error is produced by *that* call?
---
Looking at the code of `cursor.py` on my system, that leads to:
```
def execute(self, query, args=None):
# ...
if isinstance(query, unicode):
query = query.encode(charset)
if args is not None:
query = query % db.literal(args) ... |
18,136,629 | I can run `SET` statements to assign variables and use "transaction" to maintain it in the mySQL session, but when I include the function `DATE_FORMAT` like this:
```
cursor.execute("SET @dowToday:=CAST( DATE_FORMAT( NOW(), '%w' ) AS UNSIGNED);")
```
Django complains that
>
> not enough arguments for format strin... | 2013/08/08 | [
"https://Stackoverflow.com/questions/18136629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1261511/"
] | I totally missed the point in my previous answer. This is a Django cursor. Not a "standard Python" one.
According to the doc:
<https://docs.djangoproject.com/en/dev/topics/db/sql/>
>
> Note that if you want to include literal percent signs in the query,
> you have to double them in the case you are passing paramete... | Are you sure the error is produced by *that* call?
---
Looking at the code of `cursor.py` on my system, that leads to:
```
def execute(self, query, args=None):
# ...
if isinstance(query, unicode):
query = query.encode(charset)
if args is not None:
query = query % db.literal(args) ... |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | **Warning**: This method is not applicable to **scheduled** thread pool executors. This answer has been undeleted for its relevance to other thread pool executors. See [Willi's answer](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875968#3875968).
Override the `ThreadFactory` to give T... | You could also use a `ThreadPoolTaskScheduler` from the [Spring Framework](http://static.springsource.org/spring/docs/current/spring-framework-reference/html/scheduling.html), which exposes a method to set an error handler and does all the wrapping for you. The default behavior depends on the type of task:
*If the pro... |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | You can use the `get()` method from the `Future` you're getting by calling `scheduleAtFixedRate()`. It will throw an `ExecutionException` if an exeception occurred during the thread execution. | You can subclass ScheduledThreadPoolExecutor and override the [afterExecute](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html#afterExecute(java.lang.Runnable,%20java.lang.Throwable)) method to handle exceptions and errors for any kind of Runnable that you submit. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | I wrote a small [post](http://www.cosmocode.de/en/blog/schoenborn/2009-12/17-uncaught-exceptions-in-scheduled-tasks) about this problem a while ago. You have two options:
1. Use the [solution](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875807#3875807) provided by Colin Herbert or
2.... | You can use the `get()` method from the `Future` you're getting by calling `scheduleAtFixedRate()`. It will throw an `ExecutionException` if an exeception occurred during the thread execution. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | You can subclass ScheduledThreadPoolExecutor and override the [afterExecute](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html#afterExecute(java.lang.Runnable,%20java.lang.Throwable)) method to handle exceptions and errors for any kind of Runnable that you submit. | Consider adding a static event in your *ScheduledThreadPoolExecutor* class that any of your tasks can call if an exception is thrown. That way, you can leverage that event to capture and handle the exceptions that occur within your threads. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | You can use the `get()` method from the `Future` you're getting by calling `scheduleAtFixedRate()`. It will throw an `ExecutionException` if an exeception occurred during the thread execution. | Consider adding a static event in your *ScheduledThreadPoolExecutor* class that any of your tasks can call if an exception is thrown. That way, you can leverage that event to capture and handle the exceptions that occur within your threads. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | You can use the `get()` method from the `Future` you're getting by calling `scheduleAtFixedRate()`. It will throw an `ExecutionException` if an exeception occurred during the thread execution. | You could also use a `ThreadPoolTaskScheduler` from the [Spring Framework](http://static.springsource.org/spring/docs/current/spring-framework-reference/html/scheduling.html), which exposes a method to set an error handler and does all the wrapping for you. The default behavior depends on the type of task:
*If the pro... |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | You could also use a `ThreadPoolTaskScheduler` from the [Spring Framework](http://static.springsource.org/spring/docs/current/spring-framework-reference/html/scheduling.html), which exposes a method to set an error handler and does all the wrapping for you. The default behavior depends on the type of task:
*If the pro... | Consider adding a static event in your *ScheduledThreadPoolExecutor* class that any of your tasks can call if an exception is thrown. That way, you can leverage that event to capture and handle the exceptions that occur within your threads. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | **Warning**: This method is not applicable to **scheduled** thread pool executors. This answer has been undeleted for its relevance to other thread pool executors. See [Willi's answer](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875968#3875968).
Override the `ThreadFactory` to give T... | You can use the `get()` method from the `Future` you're getting by calling `scheduleAtFixedRate()`. It will throw an `ExecutionException` if an exeception occurred during the thread execution. |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | I wrote a small [post](http://www.cosmocode.de/en/blog/schoenborn/2009-12/17-uncaught-exceptions-in-scheduled-tasks) about this problem a while ago. You have two options:
1. Use the [solution](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875807#3875807) provided by Colin Herbert or
2.... | **Warning**: This method is not applicable to **scheduled** thread pool executors. This answer has been undeleted for its relevance to other thread pool executors. See [Willi's answer](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875968#3875968).
Override the `ThreadFactory` to give T... |
3,875,739 | I have a ScheduledThreadPoolExecutor that seems to be eating Exceptions. I want my executor service to notify me if a submitted Runnable throws an exception.
For example, I'd like the code below to at the very least print the IndexArrayOutOfBoundsException's stackTrace
```
threadPool.scheduleAtFixedRate(
new Runnab... | 2010/10/06 | [
"https://Stackoverflow.com/questions/3875739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460790/"
] | **Warning**: This method is not applicable to **scheduled** thread pool executors. This answer has been undeleted for its relevance to other thread pool executors. See [Willi's answer](https://stackoverflow.com/questions/3875739/exception-handling-in-threadpools/3875968#3875968).
Override the `ThreadFactory` to give T... | Consider adding a static event in your *ScheduledThreadPoolExecutor* class that any of your tasks can call if an exception is thrown. That way, you can leverage that event to capture and handle the exceptions that occur within your threads. |
45,295,216 | I have MSVS 2013 and Windows 7.
I'v tried to install Codemaid, but there is a mistake, when I launch a studio:
```
The 'CodemaidPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the
installation of another extension. You can get more information by examining
t... | 2017/07/25 | [
"https://Stackoverflow.com/questions/45295216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7273346/"
] | Do you know what version of .NET you have installed? Starting with CodeMaid v10.3, .NET 4.6.2 was required.
There's some more information here: <https://github.com/codecadwallader/codemaid/issues/443>
If that doesn't answer your question, opening issues directly on the repository is usually the best way to get help. ... | Probably this can help you there is a known bug
<https://github.com/codecadwallader/codemaid/issues/634> |
58,426,254 | I am trying to execute the code from here:
[Change the class from factor to numeric of many columns in a data frame](https://stackoverflow.com/questions/3796266/change-the-class-from-factor-to-numeric-of-many-columns-in-a-data-frame)
in a dataframe with 140 columns
```
cols = c(1:140);
merged_dataset[,cols] = ap... | 2019/10/17 | [
"https://Stackoverflow.com/questions/58426254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4235960/"
] | If you already know the indices of the columns you want to drop, then you may subset your data frame to target only certain columns:
```
cols <- c(1:140) # all columns
cols.skip <- c(1,3,5,21) # columns which CAN'T be converted to numeric
cols.keep <- cols[!cols %in% cols.skip]
merged_dataset[,cols.keep] <- ap... | Substitution of any improper characters inside factor levels can also occur to better extract any numbers:
```
convert_factors_to_numeric <- function(df) {
as.data.frame(lapply(df,
function(x) {
if (is.factor(x)) {
as.numeric(as.character... |
54,718,994 | Something strange is happening with a database server I had to rebuild and restore from backup.
I'm pointing an old VB6 application using ADODB.Connection and a modern C# EF6 application at it, using what should be the same connection string for both, of the form
```
servername\INSTANCE
```
When run on the same mac... | 2019/02/16 | [
"https://Stackoverflow.com/questions/54718994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34384/"
] | An alternative to a network trace for troubleshooting is to send an instance enumeration query to the SQL Server Browser service and examine the results. This will verify the SQL Server Browser is reachable over UDP port 1434 and that the returned datagram contains the instance name and port information needed for the ... | In entity framework 6 you can take the dbcontext object and do something like. Yourcontext.Database.log = s => mylogger.Debug(s);
The right hand side is a lambda function that takes a string s and logs it.
All of the sql and parameters get logged. |
63,928,980 | Very new to xslt (still). I think I need to use a 'When-Otherwise' to do the following (correct me if I'm wrong), so looking for some guidance on correct syntax for the following logic:
When 'Contribution\_Amount' is <=0, then ignore the row and do not output.
Otherwise return 'Contribution\_Amount'.
Or I could al... | 2020/09/16 | [
"https://Stackoverflow.com/questions/63928980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4276270/"
] | I would have streamlined this to:
```
<xsl:variable name="amt" select="sum(current-group()//wd:Current_Period_Result)" />
<xsl:if test="$amt">
<contribution_Amount>
<xsl:value-of select="format-number($amt, '0.00')"/>
</contribution_Amount>
</xsl:if>
```
(Should be a comment, but it's too much code)... | I think I got it guys! I went with this:
```
<xsl:if test="format-number(sum(current-group()//wd:Current_Period_Result),'#0.00') > '0.00'">
<contribution_Amount><xsl:value-of select="format-number(sum(current-group()//wd:Current_Period_Result),'#0.00')"/></contribution_Amount>
</xsl:if>
``` |
14,037,901 | I have just started playing the Azure Mobile Services stuff. It's super cool however there are a few weird things I have noticed while trying to change the server side database scripts. One specific thing is that while writing a simple statement like:
if (results.length == 0)
it warned me saying that I should use ===... | 2012/12/26 | [
"https://Stackoverflow.com/questions/14037901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1020338/"
] | In loosely-typed languages, it's often useful to use === (strict equality operator) rather than == (equality operator), because otherwise the types of objects will be coerced during the equality check.
For example, `"0" == 0`, and `"" == 0`, and `[] == 0`.
However, none of those `=== 0`.
So if `results` happened to ... | Because
```
[] == 0
```
is true, but
```
[] === 0
```
Isn't.
Read about [JavaScript comparison operators](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Comparison_Operators) (and *strict equality* in particular). |
5,079 | I'm trying to create one report (to be as a mailing list) that combines Opportunities with Accounts and Contacts but I can't find a way.
I need all the Contacts for Accounts which have Opportunities on them where the Opp stage is Trial.
Any ideas.
Thanks | 2012/12/05 | [
"https://salesforce.stackexchange.com/questions/5079",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/490/"
] | Create a Roll-Up Summary field on Account that gives you the `COUNT` of Opportunities where `Stage = 'Trial'`.
Then your report will be on Accounts and Contacts, where `Account.Count_of_Trial_Opps__c > 0`. | You can do it with SOQL, not so easy with reports. Reports aren't great when you want to go into 2 different "branches" (from Account to Contacts + from Account to Opportunities).
Joined report might be OK but will show you a lot of "false positives" (only the opportunity-related side will respect your filter by Stage... |
5,079 | I'm trying to create one report (to be as a mailing list) that combines Opportunities with Accounts and Contacts but I can't find a way.
I need all the Contacts for Accounts which have Opportunities on them where the Opp stage is Trial.
Any ideas.
Thanks | 2012/12/05 | [
"https://salesforce.stackexchange.com/questions/5079",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/490/"
] | You can do it with SOQL, not so easy with reports. Reports aren't great when you want to go into 2 different "branches" (from Account to Contacts + from Account to Opportunities).
Joined report might be OK but will show you a lot of "false positives" (only the opportunity-related side will respect your filter by Stage... | You can create a custom report type with a primary object Contacts with Opportunities, and filter by Opp stage. |
5,079 | I'm trying to create one report (to be as a mailing list) that combines Opportunities with Accounts and Contacts but I can't find a way.
I need all the Contacts for Accounts which have Opportunities on them where the Opp stage is Trial.
Any ideas.
Thanks | 2012/12/05 | [
"https://salesforce.stackexchange.com/questions/5079",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/490/"
] | Create a Roll-Up Summary field on Account that gives you the `COUNT` of Opportunities where `Stage = 'Trial'`.
Then your report will be on Accounts and Contacts, where `Account.Count_of_Trial_Opps__c > 0`. | You could do this with [Custom Report Types](http://login.salesforce.com/help/doc/en/reports_report_type_def.htm) (CRT). Create a CRT based on Contacts that have at least one Opportunity. When you build a report on that type you can than filter on the Opportunity Stage and the Contact's Account. |
5,079 | I'm trying to create one report (to be as a mailing list) that combines Opportunities with Accounts and Contacts but I can't find a way.
I need all the Contacts for Accounts which have Opportunities on them where the Opp stage is Trial.
Any ideas.
Thanks | 2012/12/05 | [
"https://salesforce.stackexchange.com/questions/5079",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/490/"
] | You could do this with [Custom Report Types](http://login.salesforce.com/help/doc/en/reports_report_type_def.htm) (CRT). Create a CRT based on Contacts that have at least one Opportunity. When you build a report on that type you can than filter on the Opportunity Stage and the Contact's Account. | You can create a custom report type with a primary object Contacts with Opportunities, and filter by Opp stage. |
5,079 | I'm trying to create one report (to be as a mailing list) that combines Opportunities with Accounts and Contacts but I can't find a way.
I need all the Contacts for Accounts which have Opportunities on them where the Opp stage is Trial.
Any ideas.
Thanks | 2012/12/05 | [
"https://salesforce.stackexchange.com/questions/5079",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/490/"
] | Create a Roll-Up Summary field on Account that gives you the `COUNT` of Opportunities where `Stage = 'Trial'`.
Then your report will be on Accounts and Contacts, where `Account.Count_of_Trial_Opps__c > 0`. | You can create a custom report type with a primary object Contacts with Opportunities, and filter by Opp stage. |
23,557,410 | I would like to take numbers from a .txt file and input them through the command line into a program like the example below. I run the exe using ./program < input.txt. However it prints random numbers. What am I doing wrong?
```
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
//print 1st ... | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2791483/"
] | You can do this:
```
./program $(cat input.txt)
```
This does the trick.
For example, if input.txt has numbers separated by spaces:
33 1212 1555
Running:
```
./program $(cat input.txt)
```
prints 33 to the terminal. | To be able to use argv numbers need to be supplied as arguments, i.e.
./program 23 45 67
For ./program < input.txt you need to read from cin (standard input).
```
#include <iostream>
using namespace std;
int n;
int main()
{
cin >> n;
cout << n;
}
``` |
23,557,410 | I would like to take numbers from a .txt file and input them through the command line into a program like the example below. I run the exe using ./program < input.txt. However it prints random numbers. What am I doing wrong?
```
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
//print 1st ... | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2791483/"
] | ```
cout << argv[1];
```
is equivalent to:
```
char* arg = argv[1];
cout << arg;
```
It just prints the value of the first argument to the program
In your case, you didn't provide an argument to the program.
When you use,
```
./program < input.txt
```
the contents of `input.ext` becomes `stdin` of your progr... | To be able to use argv numbers need to be supplied as arguments, i.e.
./program 23 45 67
For ./program < input.txt you need to read from cin (standard input).
```
#include <iostream>
using namespace std;
int n;
int main()
{
cin >> n;
cout << n;
}
``` |
23,557,410 | I would like to take numbers from a .txt file and input them through the command line into a program like the example below. I run the exe using ./program < input.txt. However it prints random numbers. What am I doing wrong?
```
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
//print 1st ... | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2791483/"
] | ```
cout << argv[1];
```
is equivalent to:
```
char* arg = argv[1];
cout << arg;
```
It just prints the value of the first argument to the program
In your case, you didn't provide an argument to the program.
When you use,
```
./program < input.txt
```
the contents of `input.ext` becomes `stdin` of your progr... | You can do this:
```
./program $(cat input.txt)
```
This does the trick.
For example, if input.txt has numbers separated by spaces:
33 1212 1555
Running:
```
./program $(cat input.txt)
```
prints 33 to the terminal. |
116,853 | Google Ngram Viewer shows a decline in the use of “nothing loath” since the 1970s unlike its antonym “loath” which is still widely used.
Would it be appropriate for me to use it or has it become obsolete? | 2013/06/17 | [
"https://english.stackexchange.com/questions/116853",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The Motivated Grammar blog has [this useful summary](http://motivatedgrammar.wordpress.com/2010/04/22/jealousy-and-envy/):
>
> *Envy* is pretty well restricted to the feeling you get from wanting someone else’s stuff. *Jealousy* is a bit more inclusive, allowing you
> to either want to have someone else’s stuff or w... | I think you can in good conscience say you envy your friend, and it will be taken as a friendly remark. I don't see *jealous* as quite so innocent, but in general there isn't much to differentiate the two terms. For example, wiktionary usage notes for *[jealous](http://en.wiktionary.org/wiki/jealous)* say
>
> Some u... |
116,853 | Google Ngram Viewer shows a decline in the use of “nothing loath” since the 1970s unlike its antonym “loath” which is still widely used.
Would it be appropriate for me to use it or has it become obsolete? | 2013/06/17 | [
"https://english.stackexchange.com/questions/116853",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The Motivated Grammar blog has [this useful summary](http://motivatedgrammar.wordpress.com/2010/04/22/jealousy-and-envy/):
>
> *Envy* is pretty well restricted to the feeling you get from wanting someone else’s stuff. *Jealousy* is a bit more inclusive, allowing you
> to either want to have someone else’s stuff or w... | If I were forced to differentiate between the two in your particular example,:
>
> **I'm envious of you** could just mean that you are envious of him getting married - and that you would like to get married.
>
>
> **I'm jealous of you** could mean that you would have liked to marry his wife.
>
>
>
Note that the... |
116,853 | Google Ngram Viewer shows a decline in the use of “nothing loath” since the 1970s unlike its antonym “loath” which is still widely used.
Would it be appropriate for me to use it or has it become obsolete? | 2013/06/17 | [
"https://english.stackexchange.com/questions/116853",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The Motivated Grammar blog has [this useful summary](http://motivatedgrammar.wordpress.com/2010/04/22/jealousy-and-envy/):
>
> *Envy* is pretty well restricted to the feeling you get from wanting someone else’s stuff. *Jealousy* is a bit more inclusive, allowing you
> to either want to have someone else’s stuff or w... | Both envious and jealous have similar definitions:
[Compact OED](http://oxforddictionaries.com/definition/english/envy?view=uk) defines *envy* as
>
> a feeling of discontented or resentful longing aroused by someone else’s possessions, qualities, or luck
>
>
>
It defines jealousy as the state of being jealous an... |
116,853 | Google Ngram Viewer shows a decline in the use of “nothing loath” since the 1970s unlike its antonym “loath” which is still widely used.
Would it be appropriate for me to use it or has it become obsolete? | 2013/06/17 | [
"https://english.stackexchange.com/questions/116853",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The Motivated Grammar blog has [this useful summary](http://motivatedgrammar.wordpress.com/2010/04/22/jealousy-and-envy/):
>
> *Envy* is pretty well restricted to the feeling you get from wanting someone else’s stuff. *Jealousy* is a bit more inclusive, allowing you
> to either want to have someone else’s stuff or w... | The important thing to keep in mind is as follows: jealousy is triggered by a third party. I'll say it again: jealous feelings are triggered by a **third** party.
Let's modify the example you gave by adding the following component: you are very much attracted to your friend's wife. If your friend finds out about it an... |
116,853 | Google Ngram Viewer shows a decline in the use of “nothing loath” since the 1970s unlike its antonym “loath” which is still widely used.
Would it be appropriate for me to use it or has it become obsolete? | 2013/06/17 | [
"https://english.stackexchange.com/questions/116853",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The Motivated Grammar blog has [this useful summary](http://motivatedgrammar.wordpress.com/2010/04/22/jealousy-and-envy/):
>
> *Envy* is pretty well restricted to the feeling you get from wanting someone else’s stuff. *Jealousy* is a bit more inclusive, allowing you
> to either want to have someone else’s stuff or w... | In this situation, I would sidestep the possibility of offense by saying "You are a man of obvious good fortune." That said "envy" has had a less covetous flavor in my experience than "jealousy." |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | I know this question is pretty old. But we can able to get root in Emulator with the help of Magisk by following <https://github.com/shakalaca/MagiskOnEmulator>
Basically, it patch initrd.img(if present) and ramdisk.img for working with Magisk. | I tried many of the above suggestions, including SuperSU and couldn't get any to work but found something much simpler that worked for my purposes. In my case, I only wanted to be able to run sqlite at the command prompt. I simply spun up an emulator with an older version of Android (Lollipop) and got root access immed... |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | If you have a virtual device with root access, this should do the job:
```
$ > adb shell
generic_x86:/ $
generic_x86:/ $ exit
$ > adb root
restarting adbd as root
$ > adb shell
generic_x86:/ #
```
If you don't, you might be interested in this [answer](https://stackoverflow.com/a/45668555/1682419) to a different ques... | I believe that the easiest way is to create an alias for the command `sh`, e.g.
```
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su && chmod 4775 su
```
Tested on Android Emulator 3.0 and higher. |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | For AVD with 5.1.1 and 6.0 I used next script in windows:
```
set adb=adb -s emulator-5558
set arch=x64
set pie=
adb start-server
%adb% root
%adb% remount
rem %adb% shell mount -o remount,rw /system
%adb% shell setenforce 0
%adb% install common/Superuser.apk
%adb% push %arch%/su%pie% /system/bin/su
%adb% shell chmod 0... | I know this question is pretty old. But we can able to get root in Emulator with the help of Magisk by following <https://github.com/shakalaca/MagiskOnEmulator>
Basically, it patch initrd.img(if present) and ramdisk.img for working with Magisk. |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | I just replaced and assigned attributes for su to ~/Android/Sdk/system-images/android-22/google\_apis/x86/system.img
and now on android 5 I always have root even for new systems, it’s enough to install SuperSu.apk
```
Android 6 is necessary only
adb root
adb shell
>/system/xbin/su --daemon &
>setenfoce 0
```
after t... | I tried many of the above suggestions, including SuperSU and couldn't get any to work but found something much simpler that worked for my purposes. In my case, I only wanted to be able to run sqlite at the command prompt. I simply spun up an emulator with an older version of Android (Lollipop) and got root access immed... |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | I used part of the method from the solutions above; however, they did not work completely. On the latest version of Andy, this worked for me:
On Andy (Root Shell) [To get, right click the HandyAndy icon and select Term Shell]
Inside the shell, run these commands:
```
mount -o rw,remount -t yaffs2 /dev/block/mtdblock... | I found that default API 23 x86\_64 emulator is rooted by default. |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | I know this question is pretty old. But we can able to get root in Emulator with the help of Magisk by following <https://github.com/shakalaca/MagiskOnEmulator>
Basically, it patch initrd.img(if present) and ramdisk.img for working with Magisk. | I found that default API 23 x86\_64 emulator is rooted by default. |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | I just replaced and assigned attributes for su to ~/Android/Sdk/system-images/android-22/google\_apis/x86/system.img
and now on android 5 I always have root even for new systems, it’s enough to install SuperSu.apk
```
Android 6 is necessary only
adb root
adb shell
>/system/xbin/su --daemon &
>setenfoce 0
```
after t... | I used part of the method from the solutions above; however, they did not work completely. On the latest version of Andy, this worked for me:
On Andy (Root Shell) [To get, right click the HandyAndy icon and select Term Shell]
Inside the shell, run these commands:
```
mount -o rw,remount -t yaffs2 /dev/block/mtdblock... |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | Here is the list of commands you have to run while the emulator is running, I test this solution for an avd on Android 2.2 :
```
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
```
It assumes t... | [Here](https://yadi.sk/d/hP4bHmqK3PrA9Z) my pack with all you need.
Or you can use this script:
```
echo on
set device=emulator-5554
set avd_name=
set adb=d:\Poprygun\DevTools\Android\Android-sdk\platform-tools\adb -s %device%
set emulator=d:\Poprygun\DevTools\Android\Android-sdk\emulator\emulator
set arch=x86
set pie... |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | [Here](https://yadi.sk/d/hP4bHmqK3PrA9Z) my pack with all you need.
Or you can use this script:
```
echo on
set device=emulator-5554
set avd_name=
set adb=d:\Poprygun\DevTools\Android\Android-sdk\platform-tools\adb -s %device%
set emulator=d:\Poprygun\DevTools\Android\Android-sdk\emulator\emulator
set arch=x86
set pie... | I tried many of the above suggestions, including SuperSU and couldn't get any to work but found something much simpler that worked for my purposes. In my case, I only wanted to be able to run sqlite at the command prompt. I simply spun up an emulator with an older version of Android (Lollipop) and got root access immed... |
5,095,234 | I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get root access in any one of the Android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables I m... | 2011/02/23 | [
"https://Stackoverflow.com/questions/5095234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/545643/"
] | **How to root android emulator (tested on Android 7.1.1/ Nougat)**
**Requirements**:
* [SuperSU app (chainfire) latest version 2.82](https://supersu.en.uptodown.com/android)
* [Recovery flashable.zip (contains su binary)](http://www.supersu.com/download) (Here is **alternative backup** link provided by XDA user [Ibup... | Use android image **without PlayServices** then you'll be able to run add root and access whatever you want. |
15,516,429 | I just want to create a dynamic URL. I am calling the listServices method and it is working as expected where as the getPortNumber which i am calling from listService is not working. I added dubug point in getPortNumber method. I am getting value for domainValue but I am not able to debug after $(document).ready(functi... | 2013/03/20 | [
"https://Stackoverflow.com/questions/15516429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2189478/"
] | you don't need to call `document.ready` inside a function.....since (i bet) that function is called after document is ready...
remove that
```
function getPortNumber()
{
var portNumber;
var domainValue = $("#domain").val();
$.getJSON(port_url, function(result) {
$.each(result, function() {
... | If some error exist there then it will skip.
Why you used `$(document).ready(function()` |
15,516,429 | I just want to create a dynamic URL. I am calling the listServices method and it is working as expected where as the getPortNumber which i am calling from listService is not working. I added dubug point in getPortNumber method. I am getting value for domainValue but I am not able to debug after $(document).ready(functi... | 2013/03/20 | [
"https://Stackoverflow.com/questions/15516429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2189478/"
] | you don't need to call `document.ready` inside a function.....since (i bet) that function is called after document is ready...
remove that
```
function getPortNumber()
{
var portNumber;
var domainValue = $("#domain").val();
$.getJSON(port_url, function(result) {
$.each(result, function() {
... | It sounds like you need to learn the art of stepping into callback functions in the javascript debugger. It doesn't quite work the simple way you'd like. It won't step into a callback function even thought the callback function looks like the logical next line of execution. Technically it isn't. When you say to step ov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.