qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
3,132,955 | I have a full list of timezones in a select menu like so:
```
<option value="Pacific/Kosrae"> Pacific/Kosrae( +11:00 GMT ) </option>
<option value="Pacific/Kwajalein"> Pacific/Kwajalein( +12:00 GMT ) </option>
<option value="Pacific/Majuro"> Pacific/Majuro( +12:00 GMT ) </option>
<option value="Pacific/Marquesas... | 2010/06/28 | [
"https://Stackoverflow.com/questions/3132955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342391/"
] | Store the data in some data structure, and use a loop. For example, using a map from timezone name to offset:
```
$timezones = array(
'Pacific/Kosrae' => '+11:00',
'Pacific/Kwajalein' => '+12:00',
...
);
foreach($timezones as $name => $offset) {
echo "<option value=\"$name\"" . ($name == $_SESSION['ti... | Ok, imagine you have a variable containing the form above, let's call it `$form` and another variable containing i.e. `'Africa/Abidjan'` - `$timezone.`
```
$pattern = '/="'.str_replace('/', '\/', $timezone).'"/'; # /="Africa\/Abidjan"/
$replacement = '="'.$timezone.'" selected="selected"'; # ="Africa/Abidjan" selecte... |
3,132,955 | I have a full list of timezones in a select menu like so:
```
<option value="Pacific/Kosrae"> Pacific/Kosrae( +11:00 GMT ) </option>
<option value="Pacific/Kwajalein"> Pacific/Kwajalein( +12:00 GMT ) </option>
<option value="Pacific/Majuro"> Pacific/Majuro( +12:00 GMT ) </option>
<option value="Pacific/Marquesas... | 2010/06/28 | [
"https://Stackoverflow.com/questions/3132955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342391/"
] | Store the data in some data structure, and use a loop. For example, using a map from timezone name to offset:
```
$timezones = array(
'Pacific/Kosrae' => '+11:00',
'Pacific/Kwajalein' => '+12:00',
...
);
foreach($timezones as $name => $offset) {
echo "<option value=\"$name\"" . ($name == $_SESSION['ti... | ```
$cur_timezone = 'Africa/Abidjan';
$timezones_arr = array ('Pacific/Kosrae','Pacific/Kwajalein',...);
$times_arr = array ('+11:00 GMT', '+12:00 GMT',...);
for ($i = 0; $i < count ($timezones_arr); $i ++) {
if ($timezones_arr[$i] == $cur_timezone) {
echo '<option selected="selected" value='$timezones_arr[$i]'>$... |
3,132,955 | I have a full list of timezones in a select menu like so:
```
<option value="Pacific/Kosrae"> Pacific/Kosrae( +11:00 GMT ) </option>
<option value="Pacific/Kwajalein"> Pacific/Kwajalein( +12:00 GMT ) </option>
<option value="Pacific/Majuro"> Pacific/Majuro( +12:00 GMT ) </option>
<option value="Pacific/Marquesas... | 2010/06/28 | [
"https://Stackoverflow.com/questions/3132955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342391/"
] | Store the data in some data structure, and use a loop. For example, using a map from timezone name to offset:
```
$timezones = array(
'Pacific/Kosrae' => '+11:00',
'Pacific/Kwajalein' => '+12:00',
...
);
foreach($timezones as $name => $offset) {
echo "<option value=\"$name\"" . ($name == $_SESSION['ti... | Ok, you don't have to it with [DOM](http://de2.php.net/manual/en/book.dom.php), but since there is already plenty of other answers showing different approaches, here is how to do it with DOM:
```
function timezoneHelper($selected = NULL)
{
$dom = new DOMDocument;
$dom->formatOutput = TRUE;
$dom->loadXML... |
73,365,812 | I've got 3 items as a calendar header that (when there is enough space) should be in 1 row:
```
┌─────────────────────────────────────────┐
│ Month | Title, possibly long | Nav │
└─────────────────────────────────────────┘
```
```html
<header class="calHeader">
<div class="calHeader__month">August 2022</di... | 2022/08/15 | [
"https://Stackoverflow.com/questions/73365812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1231466/"
] | Float can do this if you can update your HTML by moving the title and the end. Resize the container to see the result:
```css
.calHeader > *{
float:left;
margin: 0 5px;
}
.calHeader__nav {
float: right;
}
.calHeader {
overflow: auto;
border: 1px solid;
padding: 10px;
resize: horizontal;
max-width: 50... | Here's one way to do it with media query, I'm sure there's better grid shorthand but this works. You might also consider flexbox for this as that might be a simpler way to style this component.
Expand the snippet and use the inspector's responsive mode to see the media query effect - top line goes orangered and bottom... |
54,043,008 | I am trying to convert a String to an Int. Seems simple enough, but for somer reason it is always returning `nil`.
I'm just writing a simple extension to convert dollars to cents:
```
func dollarsToCents() -> Int {
var temp = self;
temp = temp.replacingOccurrences(of: "$", with: "")
temp = temp.replacingO... | 2019/01/04 | [
"https://Stackoverflow.com/questions/54043008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1593689/"
] | Problem is, that string `"250.89"` (after removing currency symbol) can't be converted to `Int` because `250.89` isn't integer. So fix your code by converting it to `Double`
```
func dollarsToCents() -> Int {
var temp = self
temp.removeAll { "$,".contains($0) }
//temp = temp.replacingOccurrences(of: "[$,]"... | Just adding this for the bizarre edge-case that I just encountered - be sure there aren't any whitespaces either trailing or leading in your string when converting to `Int` from `String`.
Eg.
```
for date in next_thirty_days {
let date_buffer: String = date.description[8...9]
date_list.append(Int(date_buffe... |
10,070,297 | I am using wordpress as my cms and building a website. I use Graphene as my theme, as I modify the style.css through the administration menu (and verify the change via vi editor), I see that the change is there.
Now when I open my website, and right click Inspect element, I still see a old value of my "height paramete... | 2012/04/09 | [
"https://Stackoverflow.com/questions/10070297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548526/"
] | Open the page in incognito mode in Chrome (ctrl + shift + n ) just to make sure the page is loading the updated css file. | Chances are the CSS file you're editing is not the one your website is using.
Double check that the path to the CSS file you're expecting to change is the one you're changing in the backend. |
70,132,254 | How to find lenth of stringfrom array of pointer to string. For example if i want to find length of string "apple" then how can i calculate length of it. I tried many way but i couldnt , if i do sizeof(str[0]) it returns size of pointer (4 byte in my 32-bit device) , and i want to know if they are stored in memory loca... | 2021/11/27 | [
"https://Stackoverflow.com/questions/70132254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13747614/"
] | Use strlen() from string.h
```
#include <stdio.h>
#include <string.h>
int main() {
const char *str[] = {
"apple", "ball", "cat", "dog", "mep", "helsdf"
};
printf("Length of \"%s\": %zu\n", str[0], strlen(str[0]));
return 0;
}
``` | >
> ... and i want to know if they are stored in memory location next to each other or not?
>
>
>
To check that you need to look at pointer values and to do some pointer arithmetic.
Like:
```
// Print the location of each substring
for (size_t i = 0; i < (sizeof str / sizeof str[0]); ++i)
{
printf("%p : ... |
35,668,529 | I am trying to deploy ASP.NET5 MVC6 web application on to Amazon Web Services via **Code Deploy**.
The problem is I have no idea where to place the `appspec.yml` and `before-install.bat` file as the has been a change in the folder structure with ASP.NET5 with the introduction of `wwwroot` folder, and also all of my `... | 2016/02/27 | [
"https://Stackoverflow.com/questions/35668529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3343863/"
] | * appspec.yml must be placed in the root of an application's source code's directory structure(then you bundle the whole folder).
* You can put your personal script anywhere you want inside you bundle, as long as you give the correct source file directory in side your appspec.yml
* An example of the appspec.yml file ca... | Install bower as explained here: <http://ruleoftech.com/2015/setting-up-bower-and-gulp-in-windows>. Restart the Windows OS. You are done. Before you install bower you have to have Git, Node.js in this precise order. You will install bower from git bash. |
52,555,229 | What is a way to avoid code repetition to loop if argument is a sequence (list, tuple) or to skip the loop but execute the action just once?
```here
def foo(arg1,sequence=None):
# If possible, loop, else do it once
if isinstance(sequence,(list,tuple)):
for value in sequence:
do_... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52555229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10038696/"
] | Standardise on the loop being the default case and transform your single case into an iterable:
```
if not isinstance(sequence, (list, tuple)):
sequence = [sequence]
for value in sequence:
do_something(value)
``` | The only other reasonable way I can think of is to convert everything to a sequence and then unconditionally iterate. This is relatively common to see in Python code, and it’s often extracted into a helper function.
```
if not isinstance(sequence, (list, tuple)):
sequence = [sequence]
for value in sequence:
.... |
52,555,229 | What is a way to avoid code repetition to loop if argument is a sequence (list, tuple) or to skip the loop but execute the action just once?
```here
def foo(arg1,sequence=None):
# If possible, loop, else do it once
if isinstance(sequence,(list,tuple)):
for value in sequence:
do_... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52555229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10038696/"
] | Standardise on the loop being the default case and transform your single case into an iterable:
```
if not isinstance(sequence, (list, tuple)):
sequence = [sequence]
for value in sequence:
do_something(value)
``` | A common python way is to "ask for forgiveness instead of permission". That is, try to treat it as an iterable, and *if that fails*, assume that it's not
```
try:
for value in sequence:
do_something(arg1)
except TypeError:
do_something(arg1)
```
I know that seems counter-intuitive when you're coming... |
52,555,229 | What is a way to avoid code repetition to loop if argument is a sequence (list, tuple) or to skip the loop but execute the action just once?
```here
def foo(arg1,sequence=None):
# If possible, loop, else do it once
if isinstance(sequence,(list,tuple)):
for value in sequence:
do_... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52555229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10038696/"
] | Standardise on the loop being the default case and transform your single case into an iterable:
```
if not isinstance(sequence, (list, tuple)):
sequence = [sequence]
for value in sequence:
do_something(value)
``` | From a *software design* perspective, it might be interesting to separate this in two functions:
1. a function that makes something an iterable in case it is not a list or tuple (or something else), for example by wrapping it into a list or tuple; and
2. a function that iterates over the items after we make it an iter... |
52,555,229 | What is a way to avoid code repetition to loop if argument is a sequence (list, tuple) or to skip the loop but execute the action just once?
```here
def foo(arg1,sequence=None):
# If possible, loop, else do it once
if isinstance(sequence,(list,tuple)):
for value in sequence:
do_... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52555229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10038696/"
] | The only other reasonable way I can think of is to convert everything to a sequence and then unconditionally iterate. This is relatively common to see in Python code, and it’s often extracted into a helper function.
```
if not isinstance(sequence, (list, tuple)):
sequence = [sequence]
for value in sequence:
.... | A common python way is to "ask for forgiveness instead of permission". That is, try to treat it as an iterable, and *if that fails*, assume that it's not
```
try:
for value in sequence:
do_something(arg1)
except TypeError:
do_something(arg1)
```
I know that seems counter-intuitive when you're coming... |
52,555,229 | What is a way to avoid code repetition to loop if argument is a sequence (list, tuple) or to skip the loop but execute the action just once?
```here
def foo(arg1,sequence=None):
# If possible, loop, else do it once
if isinstance(sequence,(list,tuple)):
for value in sequence:
do_... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52555229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10038696/"
] | From a *software design* perspective, it might be interesting to separate this in two functions:
1. a function that makes something an iterable in case it is not a list or tuple (or something else), for example by wrapping it into a list or tuple; and
2. a function that iterates over the items after we make it an iter... | A common python way is to "ask for forgiveness instead of permission". That is, try to treat it as an iterable, and *if that fails*, assume that it's not
```
try:
for value in sequence:
do_something(arg1)
except TypeError:
do_something(arg1)
```
I know that seems counter-intuitive when you're coming... |
6,416,245 | ```
$('#id').change(function () {
if ( $('#id option:selected').val() == 'choice1') {
// do stuff
}
else if ( $('#id option:selected').val() == 'choice2' ) {
// do different stuff
}
});
```
So what's going on here is choice1 is selected ... | 2011/06/20 | [
"https://Stackoverflow.com/questions/6416245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298242/"
] | This might work
```
$('#id').change(function () {
if ( $(this).val() == 'choice1') {
// do stuff
}
else if ( $(this).val() == 'choice2' ) {
// do different stuff
}
});
```
An example for you, <http://jsfiddle.net/MdGex/> | just use `$(this).val()`; instead of `$('#id option:selected').val()`
the val of the select box will be the val of the selected option. |
41,548,375 | When it comes to databases, we want to leave managing them to the pros, which is why we went for a managed solution in the form of a CloudSQL 2nd gen db instance. Today the instance stopped responding, I clicked restart, it has been restarting for hours and is not responding, I have tried clone the instance, also not r... | 2017/01/09 | [
"https://Stackoverflow.com/questions/41548375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2883517/"
] | Same happened to us yesterday. The cloud SQL instance did not respond for an hour and a half (from 18h to 19:30h GTM+1).
We couldn't do absolutely nothing, we tried to backup the instance to a bucket but the command was returning an error saying that another operation is in progress.
We are a small startup and we can... | Try the [gcloud](https://cloud.google.com/sdk/gcloud/) command line tool in your active shell, instead of the console UI. Try exporting the data from your SQL instance to google cloud storage bucket by using this command:
```
gcloud sql instances \
export <sql-instnace-name> \
gs://<bucket-name>/backup.sql
```
The S... |
41,548,375 | When it comes to databases, we want to leave managing them to the pros, which is why we went for a managed solution in the form of a CloudSQL 2nd gen db instance. Today the instance stopped responding, I clicked restart, it has been restarting for hours and is not responding, I have tried clone the instance, also not r... | 2017/01/09 | [
"https://Stackoverflow.com/questions/41548375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2883517/"
] | Same happened to us yesterday. The cloud SQL instance did not respond for an hour and a half (from 18h to 19:30h GTM+1).
We couldn't do absolutely nothing, we tried to backup the instance to a bucket but the command was returning an error saying that another operation is in progress.
We are a small startup and we can... | You can get [free or premium support here](https://cloud.google.com/support/). You do not need a subscription to get help; it all depends on your needs and the level of urgency you estimate for eventual future problems.
If you have a recent backup of your database, you may consider re-creating it in another instance,... |
5,061 | I was wondering, which is the correct sentence in this case.
你的生日是几月几号? or 你的生日几月几号? (without 是)
Also can I omit 的 in this case? | 2013/11/08 | [
"https://chinese.stackexchange.com/questions/5061",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/3491/"
] | The line without 是 is not a correct sentence because it doesn't have a verb. It's fine in spoken language but should be avoided in formal writing.
In this sentence, it is fine to omit 的 in spoken language, too.
To recap,
>
> 你的生日是几月几号? Grammatical, fine for both formal and informal usages.
>
>
> 你的生日几月几号?Not a co... | As a general rule, if you use a 是, you should have a corresponding 的.
For instance:
这是很好吃的!
我今天是很忙的。
你今天是怎么样的呢?
The Chinese, though, favor saying less to get the same meaning across. So when speaking, sometimes the 是 and/or the 的 will not be spoken. |
65,478,308 | i have this code :
```
namespace Hazel
{
public struct NewConnectionEventArgs
{
public readonly MessageReader HandshakeData;
public readonly Connection Connection;
public NewConnectionEventArgs(MessageReader handshakeData, Connection connection)
{
this.HandshakeDa... | 2020/12/28 | [
"https://Stackoverflow.com/questions/65478308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63898/"
] | ```
private static void NewConnectionHandler(object sender, NewConnectionEventArgs args)
```
should change to
```
private static void NewConnectionHandler(NewConnectionEventArgs args)
```
the event type is Action no object sender. | You have to understand what is *delegate*.
*A delegate* is a like a function pointer in C and C++, except that it can contain multiple functions. It can also return a value, in case of multiple functions the last function decides about the return value.
A delegate is a type, just like classes, structs and enums.
Exa... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | ORM's like Ruby on Rail's offer deferred execution which mark a record as changed (or not) and then when needed or called, then submit the change to the database.
PostgreSQL is a database and not an ORM. It would have decreased performance if it took the time to check if a new value was the same as the updated value i... | You could simply add to the `where` clause:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
AND (first_name <> 'Michael' OR first_name IS NULL);
```
If `first_name` is defined as `NOT NULL`, the `OR first_name IS NULL` part can be removed.
The condition:
```
(first_name <> 'Michael' OR first_... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | You could simply add to the `where` clause:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
AND (first_name <> 'Michael' OR first_name IS NULL);
```
If `first_name` is defined as `NOT NULL`, the `OR first_name IS NULL` part can be removed.
The condition:
```
(first_name <> 'Michael' OR first_... | **From a database point of view**
The answer to your question is YES. The update will take place. The database does not check the previous value, it only sets the new value.
As this happen in memory (and will only be written to the datafiles after a commit is issued) the performance would not be an issue.
**From an ... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | Due to the [MVCC model](https://www.postgresql.org/docs/current/mvcc-intro.html) of Postgres, and according to the rules of SQL, an `UPDATE` writes a new row version for *every* row that is not excluded in the `WHERE` clause.
This ***does*** have a more or less substantial impact on performance, directly and indirectl... | You could simply add to the `where` clause:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
AND (first_name <> 'Michael' OR first_name IS NULL);
```
If `first_name` is defined as `NOT NULL`, the `OR first_name IS NULL` part can be removed.
The condition:
```
(first_name <> 'Michael' OR first_... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | ORM's like Ruby on Rail's offer deferred execution which mark a record as changed (or not) and then when needed or called, then submit the change to the database.
PostgreSQL is a database and not an ORM. It would have decreased performance if it took the time to check if a new value was the same as the updated value i... | **From a database point of view**
The answer to your question is YES. The update will take place. The database does not check the previous value, it only sets the new value.
As this happen in memory (and will only be written to the datafiles after a commit is issued) the performance would not be an issue.
**From an ... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | Due to the [MVCC model](https://www.postgresql.org/docs/current/mvcc-intro.html) of Postgres, and according to the rules of SQL, an `UPDATE` writes a new row version for *every* row that is not excluded in the `WHERE` clause.
This ***does*** have a more or less substantial impact on performance, directly and indirectl... | ORM's like Ruby on Rail's offer deferred execution which mark a record as changed (or not) and then when needed or called, then submit the change to the database.
PostgreSQL is a database and not an ORM. It would have decreased performance if it took the time to check if a new value was the same as the updated value i... |
118,178 | I have a performance-related question. Let's say I have a user with first name Michael. Take the following query:
```
UPDATE users
SET first_name = 'Michael'
WHERE users.id = 123
```
Will the query actually execute the update, even though it is being updated to the same value? If so, how do I prevent it from happeni... | 2015/10/15 | [
"https://dba.stackexchange.com/questions/118178",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/78358/"
] | Due to the [MVCC model](https://www.postgresql.org/docs/current/mvcc-intro.html) of Postgres, and according to the rules of SQL, an `UPDATE` writes a new row version for *every* row that is not excluded in the `WHERE` clause.
This ***does*** have a more or less substantial impact on performance, directly and indirectl... | **From a database point of view**
The answer to your question is YES. The update will take place. The database does not check the previous value, it only sets the new value.
As this happen in memory (and will only be written to the datafiles after a commit is issued) the performance would not be an issue.
**From an ... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | **HINT**
Here it is an alternative way to solve it:
\begin{align\*}
\frac{x}{(x-1)(x+4)} & = \frac{(x-1) + 1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\frac{(x+4) - (x-1)}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\left[\frac{1}{x-1} - \frac{1}{x+4}\... | $$\int{\frac{xdx}{x^2 + 3x -4}}=\frac{1}{2}(\int{\frac{(2x+3)dx}{x^2 + 3x -4}}-3\int{\frac{dx}{x^2 + 3x -4}})=\frac{1}{2}(\int{\frac{(2x+3)dx}{x^2 + 3x -4}}+\frac{3}{5}(\int{\frac{dx}{x +4}}-\int{\frac{dx}{x -1}}))=\frac{1}{2}\ln{|x^2+3x-4|}+\frac{3}{5}\ln{|x+4|} -\frac{3}{5}\ln{|x-1|}+C=\frac{1}{2}\ln{|x+4|}+\frac{1}{... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | Its wrong ! the step $$A(x+4)+B(x-1) = x$$ is not true instead you should have $$Ax(x+4)+B(x-1)=x$$ As you can see we would then have to take $A=0$ and the purpose of partial fractions is gone
I prefer $$\frac{x}{x^2-3x+4}=\frac{1}{5}(\frac{1}{x-1})+\frac{4}{5}(\frac{1}{x+4})$$
another way is to write $x=l(2x-3)+m$ (... | The decomposition into partial fractions supposes these are *proper* rational fractions, where the degree of the numerator is less than the *degree of the irreducible factor* in the denominator. When the given fraction has only simple poles, as is the case here, this means the numerator is a constant, and actually, the... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | **HINT**
Here it is an alternative way to solve it:
\begin{align\*}
\frac{x}{(x-1)(x+4)} & = \frac{(x-1) + 1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\frac{(x+4) - (x-1)}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\left[\frac{1}{x-1} - \frac{1}{x+4}\... | Its wrong ! the step $$A(x+4)+B(x-1) = x$$ is not true instead you should have $$Ax(x+4)+B(x-1)=x$$ As you can see we would then have to take $A=0$ and the purpose of partial fractions is gone
I prefer $$\frac{x}{x^2-3x+4}=\frac{1}{5}(\frac{1}{x-1})+\frac{4}{5}(\frac{1}{x+4})$$
another way is to write $x=l(2x-3)+m$ (... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | $$I=\int\frac{x}{x^2+3x+4}dx=\frac12\int\frac{2x+3}{x^2+3x+4}-\frac{3}{x^2+3x+4}$$
$$I=\frac12\ln|x^2+3x+4|-\frac32\int\frac{1}{(x+3/2)^2+7/4}dx$$
then you can let $u=x+3/2,\,du=dx$ so you have $u^2+(\sqrt{7}/2)^2=\frac74\left((2u/\sqrt{7})^2+1\right)$ now let $v=2u/\sqrt{7},\,dv=2/\sqrt{7}du$ now you have an integral ... | The decomposition into partial fractions supposes these are *proper* rational fractions, where the degree of the numerator is less than the *degree of the irreducible factor* in the denominator. When the given fraction has only simple poles, as is the case here, this means the numerator is a constant, and actually, the... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | Since the denominator has two linear factors, you can set up your partial fraction decomposition as
$$\frac{x}{(x+4)(x-1)} = \frac{A}{x+4} + \frac{B}{x-1}$$
This implies
$$ x = A(x-1) + B(x+4) $$
So $A+B=1$ and $4B-A=0$ $\Rightarrow$ $(A,B) = (\frac{4}{5},\frac{1}{5})$.
This means that
$$\int \frac{x}{(x-4)(x+1)}... | Its wrong ! the step $$A(x+4)+B(x-1) = x$$ is not true instead you should have $$Ax(x+4)+B(x-1)=x$$ As you can see we would then have to take $A=0$ and the purpose of partial fractions is gone
I prefer $$\frac{x}{x^2-3x+4}=\frac{1}{5}(\frac{1}{x-1})+\frac{4}{5}(\frac{1}{x+4})$$
another way is to write $x=l(2x-3)+m$ (... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | **HINT**
Here it is an alternative way to solve it:
\begin{align\*}
\frac{x}{(x-1)(x+4)} & = \frac{(x-1) + 1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\frac{(x+4) - (x-1)}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\left[\frac{1}{x-1} - \frac{1}{x+4}\... | The decomposition into partial fractions supposes these are *proper* rational fractions, where the degree of the numerator is less than the *degree of the irreducible factor* in the denominator. When the given fraction has only simple poles, as is the case here, this means the numerator is a constant, and actually, the... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | Since the denominator has two linear factors, you can set up your partial fraction decomposition as
$$\frac{x}{(x+4)(x-1)} = \frac{A}{x+4} + \frac{B}{x-1}$$
This implies
$$ x = A(x-1) + B(x+4) $$
So $A+B=1$ and $4B-A=0$ $\Rightarrow$ $(A,B) = (\frac{4}{5},\frac{1}{5})$.
This means that
$$\int \frac{x}{(x-4)(x+1)}... | $$I=\int\frac{x}{x^2+3x+4}dx=\frac12\int\frac{2x+3}{x^2+3x+4}-\frac{3}{x^2+3x+4}$$
$$I=\frac12\ln|x^2+3x+4|-\frac32\int\frac{1}{(x+3/2)^2+7/4}dx$$
then you can let $u=x+3/2,\,du=dx$ so you have $u^2+(\sqrt{7}/2)^2=\frac74\left((2u/\sqrt{7})^2+1\right)$ now let $v=2u/\sqrt{7},\,dv=2/\sqrt{7}du$ now you have an integral ... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | Since the denominator has two linear factors, you can set up your partial fraction decomposition as
$$\frac{x}{(x+4)(x-1)} = \frac{A}{x+4} + \frac{B}{x-1}$$
This implies
$$ x = A(x-1) + B(x+4) $$
So $A+B=1$ and $4B-A=0$ $\Rightarrow$ $(A,B) = (\frac{4}{5},\frac{1}{5})$.
This means that
$$\int \frac{x}{(x-4)(x+1)}... | The decomposition into partial fractions supposes these are *proper* rational fractions, where the degree of the numerator is less than the *degree of the irreducible factor* in the denominator. When the given fraction has only simple poles, as is the case here, this means the numerator is a constant, and actually, the... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | **HINT**
Here it is an alternative way to solve it:
\begin{align\*}
\frac{x}{(x-1)(x+4)} & = \frac{(x-1) + 1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\frac{(x+4) - (x-1)}{(x-1)(x+4)}\\\\
& = \frac{1}{x+4} + \frac{1}{5}\times\left[\frac{1}{x-1} - \frac{1}{x+4}\... | $$I=\int\frac{x}{x^2+3x+4}dx=\frac12\int\frac{2x+3}{x^2+3x+4}-\frac{3}{x^2+3x+4}$$
$$I=\frac12\ln|x^2+3x+4|-\frac32\int\frac{1}{(x+3/2)^2+7/4}dx$$
then you can let $u=x+3/2,\,du=dx$ so you have $u^2+(\sqrt{7}/2)^2=\frac74\left((2u/\sqrt{7})^2+1\right)$ now let $v=2u/\sqrt{7},\,dv=2/\sqrt{7}du$ now you have an integral ... |
3,940,226 | I need to find:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| $$
So I calculate:
$$ \lim\_{n \to +\infty} \frac{1}{\sqrt{n}} | \sum\_{k=1}^{2n} (-1)^k \sqrt{k}| = \lim\_{n \to +\infty} |\frac{\sum\_{k=1}^{2n} (-1)^k \sqrt{k}}{\sqrt{n}} | $$
Denominator grows to $\infty$, so I can u... | 2020/12/08 | [
"https://math.stackexchange.com/questions/3940226",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/859090/"
] | Since the denominator has two linear factors, you can set up your partial fraction decomposition as
$$\frac{x}{(x+4)(x-1)} = \frac{A}{x+4} + \frac{B}{x-1}$$
This implies
$$ x = A(x-1) + B(x+4) $$
So $A+B=1$ and $4B-A=0$ $\Rightarrow$ $(A,B) = (\frac{4}{5},\frac{1}{5})$.
This means that
$$\int \frac{x}{(x-4)(x+1)}... | $$\int{\frac{xdx}{x^2 + 3x -4}}=\frac{1}{2}(\int{\frac{(2x+3)dx}{x^2 + 3x -4}}-3\int{\frac{dx}{x^2 + 3x -4}})=\frac{1}{2}(\int{\frac{(2x+3)dx}{x^2 + 3x -4}}+\frac{3}{5}(\int{\frac{dx}{x +4}}-\int{\frac{dx}{x -1}}))=\frac{1}{2}\ln{|x^2+3x-4|}+\frac{3}{5}\ln{|x+4|} -\frac{3}{5}\ln{|x-1|}+C=\frac{1}{2}\ln{|x+4|}+\frac{1}{... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | I suggest you read [this](http://en.wikipedia.org/wiki/Newline#Representations).
In short, a newline in Windows is `"\r\n"`, while a newline in Unix is just `"\n"` (and, just to make life difficult, a newline in older Macs is `"\r"`) | Ah the old days of the typewriter...
The difference between the two stems from days of yonder when typing was done directly to paper. It required two actions to go to the next line:
1. pushing the 'carriage' (big cilinder on the top) back to the left (this is where the character would end up).
2. shifting the paper o... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | I suggest you read [this](http://en.wikipedia.org/wiki/Newline#Representations).
In short, a newline in Windows is `"\r\n"`, while a newline in Unix is just `"\n"` (and, just to make life difficult, a newline in older Macs is `"\r"`) | No they're not. Modern text editors often treat them the same however because their old uses don't make much sense for digital word processors.
For example `\r` literally means "return to the beginning of the line". While this might have been useful for a typewriter if you just wanted to overwrite everything on that l... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | Actually, a carriage return is supposed to move the cursor to the beginning of the current line. Then, newline moves the cursor exactly down one.
Nowadays, compilers will often automatically convert one or the other to `\r\n` on Windows or `\n` on Linux. Mac used to use \r but they have changed to the \n convention.
... | Read [The Great Newline Schism](http://www.codinghorror.com/blog/2010/01/the-great-newline-schism.html) it explains everything in deep detail with great humor. |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | I suggest you read [this](http://en.wikipedia.org/wiki/Newline#Representations).
In short, a newline in Windows is `"\r\n"`, while a newline in Unix is just `"\n"` (and, just to make life difficult, a newline in older Macs is `"\r"`) | Actually, a carriage return is supposed to move the cursor to the beginning of the current line. Then, newline moves the cursor exactly down one.
Nowadays, compilers will often automatically convert one or the other to `\r\n` on Windows or `\n` on Linux. Mac used to use \r but they have changed to the \n convention.
... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | `\r` returns the cursor to the beginning of the line, NOT to the next line. When you use `\n`in Linux, `\r` is implied, in windows, it is not.
Using `\r` in Unix-like systems may result in overwriting the same line. | I suggest you read [this](http://en.wikipedia.org/wiki/Newline#Representations).
In short, a newline in Windows is `"\r\n"`, while a newline in Unix is just `"\n"` (and, just to make life difficult, a newline in older Macs is `"\r"`) |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | `\r` returns the cursor to the beginning of the line, NOT to the next line. When you use `\n`in Linux, `\r` is implied, in windows, it is not.
Using `\r` in Unix-like systems may result in overwriting the same line. | Read [The Great Newline Schism](http://www.codinghorror.com/blog/2010/01/the-great-newline-schism.html) it explains everything in deep detail with great humor. |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | I suggest you read [this](http://en.wikipedia.org/wiki/Newline#Representations).
In short, a newline in Windows is `"\r\n"`, while a newline in Unix is just `"\n"` (and, just to make life difficult, a newline in older Macs is `"\r"`) | Read [The Great Newline Schism](http://www.codinghorror.com/blog/2010/01/the-great-newline-schism.html) it explains everything in deep detail with great humor. |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | Read [The Great Newline Schism](http://www.codinghorror.com/blog/2010/01/the-great-newline-schism.html) it explains everything in deep detail with great humor. | Ah the old days of the typewriter...
The difference between the two stems from days of yonder when typing was done directly to paper. It required two actions to go to the next line:
1. pushing the 'carriage' (big cilinder on the top) back to the left (this is where the character would end up).
2. shifting the paper o... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | Read [The Great Newline Schism](http://www.codinghorror.com/blog/2010/01/the-great-newline-schism.html) it explains everything in deep detail with great humor. | No they're not. Modern text editors often treat them the same however because their old uses don't make much sense for digital word processors.
For example `\r` literally means "return to the beginning of the line". While this might have been useful for a typewriter if you just wanted to overwrite everything on that l... |
2,439,811 | >
> **Possible Duplicate:**
>
> [What is the difference between \r and \n?](https://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n)
>
>
>
Hi,
What is difference between `\n` (newline) and `\r` (carriage return)? They both move current cursor to the next line. Are they same? | 2010/03/13 | [
"https://Stackoverflow.com/questions/2439811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100240/"
] | `\r` returns the cursor to the beginning of the line, NOT to the next line. When you use `\n`in Linux, `\r` is implied, in windows, it is not.
Using `\r` in Unix-like systems may result in overwriting the same line. | Ah the old days of the typewriter...
The difference between the two stems from days of yonder when typing was done directly to paper. It required two actions to go to the next line:
1. pushing the 'carriage' (big cilinder on the top) back to the left (this is where the character would end up).
2. shifting the paper o... |
66,875,357 | I'm trying to use regex to grab the last 3 digits of a string that varies in size. The beginning of the string always leads with name-
Examples:
"Name-0000425"
"Name-00123"
"Name-123"
I want the regex to grab the last 3 digits of this number and replace it with these digits. This is the regex I have tried but it only... | 2021/03/30 | [
"https://Stackoverflow.com/questions/66875357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15515917/"
] | You can use
```r
(?<=Name-)\d*(\d{3})
```
Replace with `$1`. See the [regex demo](https://regex101.com/r/ZdW5Xc/1).
Alternatively, you may also use `(Name-)\d*(\d{3})` and replace with `$1$2`.
**Details**
* `(?<=Name-)` - a positive lookbehind that matches a location immediately preceded with `Name-`
* `\d*` - an... | Shortest regex will be...
Find what: `\d{3}"`
Replace it with `789"` |
160,226 | I have asked my technical question on stack overflow. I got satisfactory answers. Now I found that my question is duplicated by topic, so I want to delete it. But since it has an answer, I'm not able to delete it. Why so? Then how do people get badges like peer pressure/cleanup? | 2012/12/25 | [
"https://meta.stackexchange.com/questions/160226",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/203166/"
] | First off, your question being a duplicate is **not** a good reason to delete it. Your question being a bad question in general is a good reason to delete it (presuming you're not willing to fix it). If your question is merely a duplicate, it will be closed as such and serve as a "signpost" allowing users with a simila... | You cannot delete it because there are too many answers, people have responded to your request. If someone has asked a question and others have contributed answers which have been deemed valuable by the community, you can't delete the question because that would delete those valuable answers too.
If you really need it... |
2,393,781 | **Background**:
Consider a measure space $(\Omega,{\mathscr F},\mu)$ and a $\mu$-measurable function $f:\Omega\to[0,\infty]$. The **upper integral** is defined as
$$\int^\*fd\mu=\inf\sum\_i\left(\sup\_{\omega\in A\_i}f(\omega)\right)\mu(A\_i),$$
where the infimum is taken over all finite partitions $\{A\_i\}$ of $\Omeg... | 2017/08/14 | [
"https://math.stackexchange.com/questions/2393781",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/279330/"
] | Your instructor's definition qualifies as "morally wrong but technically correct". More precisely: It is morally wrong since this is not at all how one defines simple connectivity in general (even for non-planar surfaces). It is however, useful to teaching purposes, since "students understand it much better this way". ... | The points "enclosed" by a simple closed curve in $\mathbb{R}^2$ are the bounded component of its complement in $\mathbb{R}^2$. That is, if $C\subset\mathbb{R}^2$ is (the image of) a simple closed curve, $\mathbb{R}^2\setminus C$ always has two connected components (by the Jordan curve theorem), one of which is bounded... |
19,937,007 | I can retrieve the value from all my other fields but this one:
Here is my form code:
```
<label class="description" >Product Name</label>
<select name="FullName" id="FullName" >
<option "Choose a Product">Choose a category</option>
<?php
$sql = "Select FullName from tblProduct";
... | 2013/11/12 | [
"https://Stackoverflow.com/questions/19937007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2900988/"
] | ```
$FullName = $_Post['FullName'];
^ ^
```
There you go. Variables in PHP are case-sensitive. That includes super-global variables like `$_POST`, `$_GET`, `$_COOKIE` etc. Changing `$_Post` to `$_POST` should fix the issue. Turning on [error reporting](http://php.net/manual/en/function.error-reporting... | One very simple mistake:
Change from this
```
$FullName = $_Post['FullName'];
```
To this:
```
$FullName = $_POST['FullName'];
``` |
244,194 | >
> **Possible Duplicate:**
>
> [Can you help me with my software licensing question?](https://serverfault.com/questions/215405/can-you-help-me-with-my-software-licensing-question)
>
>
>
If I have a RHEL 5 server with a paid subscription do I need to purchase any licenses / keys to run Redhat Directory server ... | 2011/03/07 | [
"https://serverfault.com/questions/244194",
"https://serverfault.com",
"https://serverfault.com/users/73401/"
] | The RedHat Directory Server is an additional entitlement you need to purchase. You can use the RedHat-packaged OpenLDAP server freely, but their Directory server is an additional license that must be purchased.
There are sales contact links off of this page <http://www.redhat.com/directory_server/>
We have a site lic... | Not sure, but I have used the free Fedora Directory Server with CentOS systems, so that is an option if the RHEL offering requires a license.
<http://directory.fedoraproject.org> |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | In the first case, you've got a 'Parent' pointer on a 'Child' object, which is somehow generic, since 'Child' inherits from 'Parent'. Hence the overloaded 'Child' method is called.
In the second case, you make an implicit cast of a 'Child' instance to the type 'Parent', hence you're calling the method on a 'Parent' ob... | In the first case, the type of the object pointed by pointer p is of 'Child' type. Since child is overriding the virtual method defined in the base class, child's method is called. In the second case, you have **copied** the child object into a parent object. Here the object slicing occurs and the type of the resultant... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | Your second code *copies* a `Child` object into a `Parent` variable. By a process called *slicing* it loses all information specific to `Child` (i.e. all private fields partial to `Child`) and, as a consequence, all virtual method information associated with it.
Also, both your codes leak memory (but I guess you know ... | In your second example, slicing occurs: the Child-instance is converted to a Parent-instance, which has no vtable entry for the Child-method. The Child-method is "sliced" off. |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | Virtual behaviour is only available when the virtual function is
called via a pointer or a reference. When you say:
```
Parent p = *(new Child());
p.Method();
```
you have an actual Parent object, so Parent's method will always be called, no matter what you assign to p. | Polymorphism in C++ is only possible with pointers. The differentiation between the static and the dynamic type (in your first example p is of static type Parent\*, but of dynamic type Child\*, and this enables C++ to call the derived class' method) does not come into play with non-pointers. |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | In the first case you call the actual object is of Child class:
```
Parent* p = new Child(); // you new'ed Child class
p->Method(); // and a method of a Child class object is getting called
```
that's why Child::Method() is called. In the second case you copy the Child class object onto the Parent class object:
```... | In your first example you call Method through a pointer:
```
p->Method();
```
In this case 'p' is a pointer to a Parent, and C++ knows that Parent has a v-table, so it uses that to find the actual method to call, which in this case as you state is `Child::Method()` because when C++ finds the v-table, it finds the v-... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | In the first case you call the actual object is of Child class:
```
Parent* p = new Child(); // you new'ed Child class
p->Method(); // and a method of a Child class object is getting called
```
that's why Child::Method() is called. In the second case you copy the Child class object onto the Parent class object:
```... | In the first case, the type of the object pointed by pointer p is of 'Child' type. Since child is overriding the virtual method defined in the base class, child's method is called. In the second case, you have **copied** the child object into a parent object. Here the object slicing occurs and the type of the resultant... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | In the first case you call the actual object is of Child class:
```
Parent* p = new Child(); // you new'ed Child class
p->Method(); // and a method of a Child class object is getting called
```
that's why Child::Method() is called. In the second case you copy the Child class object onto the Parent class object:
```... | In your second example, slicing occurs: the Child-instance is converted to a Parent-instance, which has no vtable entry for the Child-method. The Child-method is "sliced" off. |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | What happens if you do this?
```
int main (int argc, char * const argv[]) {
Parent &p = *(new Child());
p.Method();
return 0;
}
```
That has the same "syntactic" effect (`p` doesn't require dereferencing to use it), but the semantic effect is now completely different because you're no longer copying part... | In the first case, the type of the object pointed by pointer p is of 'Child' type. Since child is overriding the virtual method defined in the base class, child's method is called. In the second case, you have **copied** the child object into a parent object. Here the object slicing occurs and the type of the resultant... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | Your second code *copies* a `Child` object into a `Parent` variable. By a process called *slicing* it loses all information specific to `Child` (i.e. all private fields partial to `Child`) and, as a consequence, all virtual method information associated with it.
Also, both your codes leak memory (but I guess you know ... | Your first case is simple. An instance of Child is created and asigned to p. So calling p->Method() calls Child::Method().
In the second case, four things happen:
1. An instance of the Child class, identified by a compiler-assigned temporary variable, is created.
2. An instance of of the Parent class, identified by t... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | What happens if you do this?
```
int main (int argc, char * const argv[]) {
Parent &p = *(new Child());
p.Method();
return 0;
}
```
That has the same "syntactic" effect (`p` doesn't require dereferencing to use it), but the semantic effect is now completely different because you're no longer copying part... | In the first case, you've got a 'Parent' pointer on a 'Child' object, which is somehow generic, since 'Child' inherits from 'Parent'. Hence the overloaded 'Child' method is called.
In the second case, you make an implicit cast of a 'Child' instance to the type 'Parent', hence you're calling the method on a 'Parent' ob... |
1,333,296 | can you explain me why:
```
int main (int argc, char * const argv[]) {
Parent* p = new Child();
p->Method();
return 0;
}
```
prints "**Child::Method()**", and this:
```
int main (int argc, char * const argv[]) {
Parent p = *(new Child());
p.Method();
return 0;
}
```
prints "**Parent::Metho... | 2009/08/26 | [
"https://Stackoverflow.com/questions/1333296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61628/"
] | Polymorphism in C++ is only possible with pointers. The differentiation between the static and the dynamic type (in your first example p is of static type Parent\*, but of dynamic type Child\*, and this enables C++ to call the derived class' method) does not come into play with non-pointers. | In the first case, the type of the object pointed by pointer p is of 'Child' type. Since child is overriding the virtual method defined in the base class, child's method is called. In the second case, you have **copied** the child object into a parent object. Here the object slicing occurs and the type of the resultant... |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | Try this: Remove the code from ngAfterViewInit();
```
ngAfterViewInit() {
this.dataSource.paginator = this.paginator;
}
```
and add it in ngOnInit(); | Please try to initialize the MATPAGINATOR and MATSORT as follows and this worked for me.
```
public dataSource = new MatTableDataSource([]);
@ViewChild(MatSort) matSort: MatSort;
private paginator: MatPaginator;
private sort: any;
@ViewChild(MatPaginator) set matPaginator(mp: MatPaginator) {
this.paginator = mp;... |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | After having a lot of headaches I did figure out the problem.
Check this line
```
this.dataSource = this.projects;
```
and change it with
```
this.dataSource.data = this.projects;
```
It should solve your problem. Also, *ngAfterViewInit* is ok, don't change it. | Try this: Remove the code from ngAfterViewInit();
```
ngAfterViewInit() {
this.dataSource.paginator = this.paginator;
}
```
and add it in ngOnInit(); |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | use the below line
```
this.dataSource = new MatTableDataSource(this.projects);
```
if paginator is still not working, for Dynamically loaded table data use `read` argument for MatPaginator
```
@ViewChild(MatPaginator, {read: true}) paginator: MatPaginator;
```
this will do the job. | Try this: Remove the code from ngAfterViewInit();
```
ngAfterViewInit() {
this.dataSource.paginator = this.paginator;
}
```
and add it in ngOnInit(); |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | **if you are fetching data from API, then the task is async** means it will call the next steps even without completing API request, there is no data in the data source if you apply paginator without data definitely paginator won't work. if you console.log(this.paginator.paginator) you will get undefined, means your da... | Try this: Remove the code from ngAfterViewInit();
```
ngAfterViewInit() {
this.dataSource.paginator = this.paginator;
}
```
and add it in ngOnInit(); |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | After having a lot of headaches I did figure out the problem.
Check this line
```
this.dataSource = this.projects;
```
and change it with
```
this.dataSource.data = this.projects;
```
It should solve your problem. Also, *ngAfterViewInit* is ok, don't change it. | Please try to initialize the MATPAGINATOR and MATSORT as follows and this worked for me.
```
public dataSource = new MatTableDataSource([]);
@ViewChild(MatSort) matSort: MatSort;
private paginator: MatPaginator;
private sort: any;
@ViewChild(MatPaginator) set matPaginator(mp: MatPaginator) {
this.paginator = mp;... |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | use the below line
```
this.dataSource = new MatTableDataSource(this.projects);
```
if paginator is still not working, for Dynamically loaded table data use `read` argument for MatPaginator
```
@ViewChild(MatPaginator, {read: true}) paginator: MatPaginator;
```
this will do the job. | Please try to initialize the MATPAGINATOR and MATSORT as follows and this worked for me.
```
public dataSource = new MatTableDataSource([]);
@ViewChild(MatSort) matSort: MatSort;
private paginator: MatPaginator;
private sort: any;
@ViewChild(MatPaginator) set matPaginator(mp: MatPaginator) {
this.paginator = mp;... |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | **if you are fetching data from API, then the task is async** means it will call the next steps even without completing API request, there is no data in the data source if you apply paginator without data definitely paginator won't work. if you console.log(this.paginator.paginator) you will get undefined, means your da... | Please try to initialize the MATPAGINATOR and MATSORT as follows and this worked for me.
```
public dataSource = new MatTableDataSource([]);
@ViewChild(MatSort) matSort: MatSort;
private paginator: MatPaginator;
private sort: any;
@ViewChild(MatPaginator) set matPaginator(mp: MatPaginator) {
this.paginator = mp;... |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | After having a lot of headaches I did figure out the problem.
Check this line
```
this.dataSource = this.projects;
```
and change it with
```
this.dataSource.data = this.projects;
```
It should solve your problem. Also, *ngAfterViewInit* is ok, don't change it. | use the below line
```
this.dataSource = new MatTableDataSource(this.projects);
```
if paginator is still not working, for Dynamically loaded table data use `read` argument for MatPaginator
```
@ViewChild(MatPaginator, {read: true}) paginator: MatPaginator;
```
this will do the job. |
50,532,332 | I have a short script which reads 1,048,574 records out of a CSV with two columns, and puts them into two lists, one for each column. So each list should end up with 1,048,574 elements.
In PyCharm, this works fine. In the console, the program hangs around 1,048,345.
I can't figure it out. Both are using the same Pyth... | 2018/05/25 | [
"https://Stackoverflow.com/questions/50532332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1029146/"
] | After having a lot of headaches I did figure out the problem.
Check this line
```
this.dataSource = this.projects;
```
and change it with
```
this.dataSource.data = this.projects;
```
It should solve your problem. Also, *ngAfterViewInit* is ok, don't change it. | **if you are fetching data from API, then the task is async** means it will call the next steps even without completing API request, there is no data in the data source if you apply paginator without data definitely paginator won't work. if you console.log(this.paginator.paginator) you will get undefined, means your da... |
46,902,112 | Can we add bindings dynamically (in JS code) or are the binding annotations the only way to specify bindings?
Edit: It looks like there was something added to Polymer 2.0 to support this.
This is a method on Polymer element:
protected static addPropertyEffect(property: string, type: string, effect: Object=)
Inherited... | 2017/10/24 | [
"https://Stackoverflow.com/questions/46902112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2879863/"
] | Your problem is here:
```
@After
public void test_Cleaning(){
System.out.println("Closing Browser");
baseURL = null;
driver.close();
driver.quit();
}
```
Try only with `close()`.
Explanation [here](https://stackoverflow.com/a/35286345/3881320). | We generally get this , if we use `driver.close()` and `driver.quit()` together so it would be better if you remove `driver.close()`;
```
public void test_Cleaning(){
System.out.println("Closing Browser");
baseURL = null;
driver.quit();
}
``` |
152,675 | Helping out someone who inherited his environment. He wants to disable some repositories. This is an anonymized output of his `yum repolist`:
```
luke@server1 $ sudo yum repolist
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
repo id repo ... | 2014/08/28 | [
"https://unix.stackexchange.com/questions/152675",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/2372/"
] | Most likely it is using the rhnplugin to access "RHN Classic." To disable a repository (unsubscribe from a channel) you use the [`rhn-channel`](https://access.redhat.com/solutions/57504)command or the web interface at <http://rhn.redhat.com/> | While `.repo` files are usually placed in `/etc/yum.repos.d` you can specify a different directory by using `reposdir=xxx` in`/etc/yum.conf`. |
152,675 | Helping out someone who inherited his environment. He wants to disable some repositories. This is an anonymized output of his `yum repolist`:
```
luke@server1 $ sudo yum repolist
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
repo id repo ... | 2014/08/28 | [
"https://unix.stackexchange.com/questions/152675",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/2372/"
] | Most likely it is using the rhnplugin to access "RHN Classic." To disable a repository (unsubscribe from a channel) you use the [`rhn-channel`](https://access.redhat.com/solutions/57504)command or the web interface at <http://rhn.redhat.com/> | If you're registered to Satellite (you have a subscription to rhn-tools so I'm betting this is the case), the ACME repo is probably a child channel your system is subscribed to in which case it's made available to `yum` by way of the `rhnplugin` module which enumerates all the channels you're subscribed to and presents... |
27,003,817 | Experts,
I need to declare an dynamic ID into a XML view in my extended Fiori app. I need this because I need to set an image src based on Item value.
Is there a way to do something like this?
```
<Image id="myImage{MyModelProperty}" />
```
Regards,
Andre | 2014/11/18 | [
"https://Stackoverflow.com/questions/27003817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1442795/"
] | The calculated field will serve your requirement.
1.Set the flag in bootstrap configuration `data-sap-ui-xx-bindingSyntax="complex"`. Details is [here](https://openui5.hana.ondemand.com/#docs/guide/0c803921b1bf4b3a97a038fbd51ef542.html)
2.Define a formatter function in your controller js.
```js
imageFormatter : func... | As far as I know IDs can not be built from model properties.
Why do you want to build the ID of the image instead of it's `src` property?
If you want to make sure the uniqueness of image ID, then just let the framework to handle it.
If you use the `src` property with model binding, changes of the underlying model pr... |
228,516 | What exactly is the matrix of a quadratic form? I have seen this notation occuring in a few papers (e.g. Siegel's unreadable German papers), with particular reference to the trace of a quadratic form. I'm at a loss as to what this means, and as a bonus question in passing I'd be interested if the trace of a quadratic f... | 2012/11/03 | [
"https://math.stackexchange.com/questions/228516",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The matrix of a quadratic form $Q$ is the symmetric matrix $A$ such that
$$Q(\vec{x}) = \vec{x}^T A \vec{x}$$
For example,
$$x^2 + xy + y^2 = \left(\begin{matrix}x & y \end{matrix}\right)
\left(\begin{matrix}1 & \frac{1}{2} \\ \frac{1}{2} & 1 \end{matrix}\right)
\left(\begin{matrix}x \\ y \end{matrix}\right)
$$ | A quadratic form $q \colon V \to K$ on a vector space $V$ arises as "diagonal" of a symmetric bilinear form $\beta\colon V \times V \to K$ via $q(v) = \beta(v,v)$. Given $V$ has a basis $(v\_i)$, we can associate a matrix $B = (b\_{ij})$ with $\beta$, where $b\_{ij} = \beta(v\_i, v\_j)$. For $v = \sum \lambda\_i v\_i$,... |
228,516 | What exactly is the matrix of a quadratic form? I have seen this notation occuring in a few papers (e.g. Siegel's unreadable German papers), with particular reference to the trace of a quadratic form. I'm at a loss as to what this means, and as a bonus question in passing I'd be interested if the trace of a quadratic f... | 2012/11/03 | [
"https://math.stackexchange.com/questions/228516",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | A quadratic form $q \colon V \to K$ on a vector space $V$ arises as "diagonal" of a symmetric bilinear form $\beta\colon V \times V \to K$ via $q(v) = \beta(v,v)$. Given $V$ has a basis $(v\_i)$, we can associate a matrix $B = (b\_{ij})$ with $\beta$, where $b\_{ij} = \beta(v\_i, v\_j)$. For $v = \sum \lambda\_i v\_i$,... | For many authors, the matrix is actually double the ones given by martini and Hurkyl, so that the matrix is, quite simply, the Hessian matrix of the function, meaning the second partials. This is the more common behavior when discussing "even" lattices, as in most of [NEBE](http://www.math.rwth-aachen.de/~Gabriele.Nebe... |
228,516 | What exactly is the matrix of a quadratic form? I have seen this notation occuring in a few papers (e.g. Siegel's unreadable German papers), with particular reference to the trace of a quadratic form. I'm at a loss as to what this means, and as a bonus question in passing I'd be interested if the trace of a quadratic f... | 2012/11/03 | [
"https://math.stackexchange.com/questions/228516",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The matrix of a quadratic form $Q$ is the symmetric matrix $A$ such that
$$Q(\vec{x}) = \vec{x}^T A \vec{x}$$
For example,
$$x^2 + xy + y^2 = \left(\begin{matrix}x & y \end{matrix}\right)
\left(\begin{matrix}1 & \frac{1}{2} \\ \frac{1}{2} & 1 \end{matrix}\right)
\left(\begin{matrix}x \\ y \end{matrix}\right)
$$ | For many authors, the matrix is actually double the ones given by martini and Hurkyl, so that the matrix is, quite simply, the Hessian matrix of the function, meaning the second partials. This is the more common behavior when discussing "even" lattices, as in most of [NEBE](http://www.math.rwth-aachen.de/~Gabriele.Nebe... |
75,288 | Is there any difference between *there was an increase of 2%* and “there was an increase by 2%”? | 2012/07/20 | [
"https://english.stackexchange.com/questions/75288",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/7770/"
] | The former sounds better to me. The preposition "by" would be more appropriate if you had used "increase" as a verb instead of a noun. (i.e., "It increased by 2%" as opposed to "There was an increase of 2%.") | "Increase" is being used as a verb in the phrase "increase by 2%". This makes the second sentence incorrect (because it already has the verb "is").
"Increase" is being used as a noun in the phrase "increase of 2%", and this makes sense because it is being used as a direct object in the first sentence. |
75,288 | Is there any difference between *there was an increase of 2%* and “there was an increase by 2%”? | 2012/07/20 | [
"https://english.stackexchange.com/questions/75288",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/7770/"
] | The former sounds better to me. The preposition "by" would be more appropriate if you had used "increase" as a verb instead of a noun. (i.e., "It increased by 2%" as opposed to "There was an increase of 2%.") | In your example, "increase" is a noun. So here are your options (in bold):
There can be an increase:
(i) **of** a certain amount
(ii) **of** something that has grown larger
(iii) **in** something used a means of measurement, e.g. size, temperature, etc.
(iv) **in** something being measured statistically
(v) **fro... |
75,288 | Is there any difference between *there was an increase of 2%* and “there was an increase by 2%”? | 2012/07/20 | [
"https://english.stackexchange.com/questions/75288",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/7770/"
] | "Increase" is being used as a verb in the phrase "increase by 2%". This makes the second sentence incorrect (because it already has the verb "is").
"Increase" is being used as a noun in the phrase "increase of 2%", and this makes sense because it is being used as a direct object in the first sentence. | In your example, "increase" is a noun. So here are your options (in bold):
There can be an increase:
(i) **of** a certain amount
(ii) **of** something that has grown larger
(iii) **in** something used a means of measurement, e.g. size, temperature, etc.
(iv) **in** something being measured statistically
(v) **fro... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | There are two ways to pass an object that can be retrieved when a Quartz job executes:
Pass the instance in the data map. When you set the job up, add your instance to the map with a key like this:
```
// Create job etc...
var MyClass _myInstance;
statusJob.JobDataMap.Put("myKey", _myInstance);
// Schedule job...
``... | When you schedule a job you can set a `JobDataMap` on the [`JobDetail`](http://quartznet.sourceforge.net/apidoc/topic359.html) object and pass this to your scheduler, there are some limitations described in the [quartz.net tutorial](http://quartznet.sourceforge.net/tutorial/lesson_3.html). The job can access the data v... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | I was having unexpected results with hillstuk's answer above in multithreaded environments.
Here's my solution using Newtonsoft… Enjoy
```
public void InitJob() {
MyClass data = new MyClass {Foo = “Foo fighters”};
/* a unique identifier for demonstration purposes.. Use your own concoction here. */
int u... | When you schedule a job you can set a `JobDataMap` on the [`JobDetail`](http://quartznet.sourceforge.net/apidoc/topic359.html) object and pass this to your scheduler, there are some limitations described in the [quartz.net tutorial](http://quartznet.sourceforge.net/tutorial/lesson_3.html). The job can access the data v... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | When you schedule a job you can set a `JobDataMap` on the [`JobDetail`](http://quartznet.sourceforge.net/apidoc/topic359.html) object and pass this to your scheduler, there are some limitations described in the [quartz.net tutorial](http://quartznet.sourceforge.net/tutorial/lesson_3.html). The job can access the data v... | I passed the object following way
```
JobDetail job1 = JobBuilder.newJob(JobAutomation.class)
.usingJobData("path", path)
.withIdentity("job2", "group2").build();
CronTrigger trigger1 = TriggerBuilder.newTrigger()
.withIdentity("cronTrigger2", "group2")
... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | There are two ways to pass an object that can be retrieved when a Quartz job executes:
Pass the instance in the data map. When you set the job up, add your instance to the map with a key like this:
```
// Create job etc...
var MyClass _myInstance;
statusJob.JobDataMap.Put("myKey", _myInstance);
// Schedule job...
``... | I was having unexpected results with hillstuk's answer above in multithreaded environments.
Here's my solution using Newtonsoft… Enjoy
```
public void InitJob() {
MyClass data = new MyClass {Foo = “Foo fighters”};
/* a unique identifier for demonstration purposes.. Use your own concoction here. */
int u... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | There are two ways to pass an object that can be retrieved when a Quartz job executes:
Pass the instance in the data map. When you set the job up, add your instance to the map with a key like this:
```
// Create job etc...
var MyClass _myInstance;
statusJob.JobDataMap.Put("myKey", _myInstance);
// Schedule job...
``... | You can put your instance/object in the IJobDetail.
```
JobDataMap m = new JobDataMap();
m.Put("Class1", new Class1(){name="xxx"});
IJobDetail job = JobBuilder.Create<Job>()
.WithIdentity("myJob", "group1")
.UsingJobData(m)//class object
.UsingJobData("name2", "Hello World!")... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | There are two ways to pass an object that can be retrieved when a Quartz job executes:
Pass the instance in the data map. When you set the job up, add your instance to the map with a key like this:
```
// Create job etc...
var MyClass _myInstance;
statusJob.JobDataMap.Put("myKey", _myInstance);
// Schedule job...
``... | I passed the object following way
```
JobDetail job1 = JobBuilder.newJob(JobAutomation.class)
.usingJobData("path", path)
.withIdentity("job2", "group2").build();
CronTrigger trigger1 = TriggerBuilder.newTrigger()
.withIdentity("cronTrigger2", "group2")
... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | I was having unexpected results with hillstuk's answer above in multithreaded environments.
Here's my solution using Newtonsoft… Enjoy
```
public void InitJob() {
MyClass data = new MyClass {Foo = “Foo fighters”};
/* a unique identifier for demonstration purposes.. Use your own concoction here. */
int u... | You can put your instance/object in the IJobDetail.
```
JobDataMap m = new JobDataMap();
m.Put("Class1", new Class1(){name="xxx"});
IJobDetail job = JobBuilder.Create<Job>()
.WithIdentity("myJob", "group1")
.UsingJobData(m)//class object
.UsingJobData("name2", "Hello World!")... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | I was having unexpected results with hillstuk's answer above in multithreaded environments.
Here's my solution using Newtonsoft… Enjoy
```
public void InitJob() {
MyClass data = new MyClass {Foo = “Foo fighters”};
/* a unique identifier for demonstration purposes.. Use your own concoction here. */
int u... | I passed the object following way
```
JobDetail job1 = JobBuilder.newJob(JobAutomation.class)
.usingJobData("path", path)
.withIdentity("job2", "group2").build();
CronTrigger trigger1 = TriggerBuilder.newTrigger()
.withIdentity("cronTrigger2", "group2")
... |
7,137,972 | I got the following HTML structure:
```
<div id="main-container">
<div id="left-column">...</div>
<div id="right-column">...</div>
</div>
```
My CSS:
```
#main-container
{
width:80%;
margin:20px auto;
}
#left-column
{
width:400px;
float:left;
}
#right-column
{
width:100%;
float... | 2011/08/21 | [
"https://Stackoverflow.com/questions/7137972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/365899/"
] | You can put your instance/object in the IJobDetail.
```
JobDataMap m = new JobDataMap();
m.Put("Class1", new Class1(){name="xxx"});
IJobDetail job = JobBuilder.Create<Job>()
.WithIdentity("myJob", "group1")
.UsingJobData(m)//class object
.UsingJobData("name2", "Hello World!")... | I passed the object following way
```
JobDetail job1 = JobBuilder.newJob(JobAutomation.class)
.usingJobData("path", path)
.withIdentity("job2", "group2").build();
CronTrigger trigger1 = TriggerBuilder.newTrigger()
.withIdentity("cronTrigger2", "group2")
... |
64,455,952 | Does anyone know how to define the matcher pattern of "NNP/NN NNP/NN" in SpaCy, which means the desirable matches is "NNP NNP", "NNP NN", "NN NNP", or "NN NN"? Thank you! | 2020/10/21 | [
"https://Stackoverflow.com/questions/64455952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10705021/"
] | Use the `IN` operator, which checks for the value in a list:
```py
tag_nn_nnp = {"TAG": {"IN": ["NN", "NNP"]}}
pattern = [tag_nn_nnp, tag_nn_nnp]
matcher.add("NN_NNP_2", [pattern])
```
See: <https://spacy.io/usage/rule-based-matching#adding-patterns-attributes-extended> | There isn't an `or` logical operator, but in your specific case you can simulate with either a list of rules, or with a regex rule:
List of rules:
--------------
```
patterns = [
[{'TAG': 'NNP'}, {'TAG': 'NN'}],
[{'TAG': 'NN'}, {'TAG': 'NNP'}],
# add more if required
]
```
and then add all patterns to the ... |
144,647 | I have to install cold fusion. I know nothing at all about it. I was, in fact, surprised it was still being used.
Server is Centos5 with whm,
Apache 2.0.x
Can anyone point me in the direction even to get started? There is no open source version right? | 2010/05/24 | [
"https://serverfault.com/questions/144647",
"https://serverfault.com",
"https://serverfault.com/users/41992/"
] | There is always the Sysinternal's (now part of Microsoft) [BgInfo](http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx):
>
> It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer name, IP address, service pack version, and more. You can edi... | I realize this question has an answer that's been accepted, and maybe I'm missing something, but why not right click the Computer icon on the desktop and select "Rename" and name it based on the computer\server name? I've been doing it for years and it works on W2K8 just as it did going all the way back to Win9x. |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Alright, I have found the process name for ColdFusion:
`jrun.exe` - The process JRun JAR Launcher belongs to the software Macromedia JRun Application Server or JRun.exe or ColdFusion Graphing Server or Macromedia ColdFusion MX or jrun.exe by Macromedia Inc (www.macromedia.com). | In ColdFusion 10 there is a separate process named - coldfusion.exe found in cfusin/bin
There is also a running coldfusinsvc.exe (which is the ColdFusion Service Application) which might interest you as well.
CF10 onwards the application server is CF+Tomcat bundle. |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Alright, I have found the process name for ColdFusion:
`jrun.exe` - The process JRun JAR Launcher belongs to the software Macromedia JRun Application Server or JRun.exe or ColdFusion Graphing Server or Macromedia ColdFusion MX or jrun.exe by Macromedia Inc (www.macromedia.com). | Have you tried using [Process Monitor](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)? |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | In ColdFusion 10 there is a separate process named - coldfusion.exe found in cfusin/bin
There is also a running coldfusinsvc.exe (which is the ColdFusion Service Application) which might interest you as well.
CF10 onwards the application server is CF+Tomcat bundle. | JRUN is the underlying application server used by Adobe ColdFusion 8 and 9. Other version or flavours of CF runtimes and engines are dependent on the underlying server technology such as Tomcat, JBoss, Webspehere etc. Some common process names are java.exe, tomcat.exe, jrun.exe |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Alright, I have found the process name for ColdFusion:
`jrun.exe` - The process JRun JAR Launcher belongs to the software Macromedia JRun Application Server or JRun.exe or ColdFusion Graphing Server or Macromedia ColdFusion MX or jrun.exe by Macromedia Inc (www.macromedia.com). | Check that "Show processes from all users" in the Processes tab is checked. |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Alright, I have found the process name for ColdFusion:
`jrun.exe` - The process JRun JAR Launcher belongs to the software Macromedia JRun Application Server or JRun.exe or ColdFusion Graphing Server or Macromedia ColdFusion MX or jrun.exe by Macromedia Inc (www.macromedia.com). | JRUN is the underlying application server used by Adobe ColdFusion 8 and 9. Other version or flavours of CF runtimes and engines are dependent on the underlying server technology such as Tomcat, JBoss, Webspehere etc. Some common process names are java.exe, tomcat.exe, jrun.exe |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | JRUN is the underlying application server used by Adobe ColdFusion 8 and 9. Other version or flavours of CF runtimes and engines are dependent on the underlying server technology such as Tomcat, JBoss, Webspehere etc. Some common process names are java.exe, tomcat.exe, jrun.exe | Have you tried using [Process Monitor](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)? |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Have you taken a look with [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)? Though some services share a process, non-builtin services probably don't.
If you can't tell which "svchost.exe" instance is running a particular service, hover over it, and it'll display the services it is ho... | Check that "Show processes from all users" in the Processes tab is checked. |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Have you taken a look with [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)? Though some services share a process, non-builtin services probably don't.
If you can't tell which "svchost.exe" instance is running a particular service, hover over it, and it'll display the services it is ho... | Have you tried using [Process Monitor](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)? |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | In ColdFusion 10 there is a separate process named - coldfusion.exe found in cfusin/bin
There is also a running coldfusinsvc.exe (which is the ColdFusion Service Application) which might interest you as well.
CF10 onwards the application server is CF+Tomcat bundle. | Check that "Show processes from all users" in the Processes tab is checked. |
1,475,856 | What is the ColdFusion Process Name? | 2009/09/25 | [
"https://Stackoverflow.com/questions/1475856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103385/"
] | Have you taken a look with [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)? Though some services share a process, non-builtin services probably don't.
If you can't tell which "svchost.exe" instance is running a particular service, hover over it, and it'll display the services it is ho... | JRUN is the underlying application server used by Adobe ColdFusion 8 and 9. Other version or flavours of CF runtimes and engines are dependent on the underlying server technology such as Tomcat, JBoss, Webspehere etc. Some common process names are java.exe, tomcat.exe, jrun.exe |
97,783 | How to create custom markers and when mouseover on marker I need a tooltip. Can any one suggest to me how to do these type of markers?
I need markers like in the below image:
 | 2014/05/23 | [
"https://gis.stackexchange.com/questions/97783",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/30544/"
] | You can create custom markers with code similar to the following:
```
var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: iconBase + 'schools_maps.png'
});
```
See the [Custom Marker Documentation](https://developers.goo... | Your screenshot seems to display markers with labels (The orange small box with the two red boxes). Just go to the [google-maps-utility-library-v3 website](https://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) and you will see in action markers with labels like in [this demo](https://google-maps-util... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.