qid int64 1 74.7M | question stringlengths 116 3.44k | date stringdate 2008-08-06 00:00:00 2023-03-03 00:00:00 | metadata listlengths 3 3 | response_j stringlengths 19 76k | response_k stringlengths 21 41.5k |
|---|---|---|---|---|---|
1,853,542 | Why should $b$ groups of $a$ apples be the same as $a$ groups of $b$ apples?
We where taught this so it seems rather trivial but the more I think about it the more I feel that it is not.
I'm trying to avoid an argument that uses the fact that multiplication is commutative. Because I see that I am trying to PROVE tha... | 2016/07/08 | [
"https://math.stackexchange.com/questions/1853542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/229023/"
] | The usual way of proving it is by induction.
First, define multiplication recursively: $$a\cdot 1 = a\\a\cdot(b+1)=a\cdot b + a$$
Next, show, by induction on $b$ that $1\cdot b=b\cdot 1$. That's relatively easy to do.
Next, prove by induction on $b$ that that $(a+1)\cdot b = a\cdot b + b$ by induction on $b$.
Final... | Label each apple with a pair of numbers $(x,y)$ such that $x$ is the number of the group the apple was originally in (1 through $b$) and $y$ is the number of the apple within the original group (1 through $a$). Every apple gets a unique label this way. Now, change every label to reverse the two numbers: $(x,y) \rightar... |
14,120 | When I tried to practice tuning my wheels, I found my spokes turn with the nipples. I tried to drop some lubricant on on the nipples, but I had the bike for two years now and there are a lot of dust clog in it. So the lubricant doesn't help too much. What can I do in this situation? | 2013/01/20 | [
"https://bicycles.stackexchange.com/questions/14120",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/5947/"
] | Have you removed the tire,tube and rim tape then applied the the penetrating lube to the open end of the nipple? | Give it all a good clean then try some of this [this](https://en.wikipedia.org/wiki/Penetrating_oil) |
160,135 | I have been working at place A for 2 years, after that the company A was merged with another company and formed a new company named B. How should I mention them in my CV so that recruiters does not mistake that for a job/workplace change? | 2020/07/07 | [
"https://workplace.stackexchange.com/questions/160135",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/119456/"
] | Software Engineer for 4 years at B (known as A before merge in 2018) | To present the things as close to the reality, I would use the following:
>
> * from (date1) to (date2) : company A
> * from (date2) to (date3) : company B (as a result of company A being bought by / merged to company B)
>
>
> |
73,758,225 | I want to build an mobile app with flutter that gets payment when event is done.
for example, i call a taxi from an app and app is calculates payment from distance, time etc.when finish driving button tapped, app is gonna take payment from saved credit card immediately no 3d secure or anything.
my question is what is... | 2022/09/17 | [
"https://Stackoverflow.com/questions/73758225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7172665/"
] | The error message at `f({ ...a, bar: 'bar' })` says
```
/* Argument of type 'Omit<A, "bar"> & { bar: string; }' is not
assignable to parameter of type 'A & { bar: string; }'. */
```
because the value `{ ...a, bar: "bar" }` is inferred to be `Omit<A, "bar"> & { bar: string }`, but you've got the `f()` function annot... | The problem here is that the parameter type `A extends { bar: string }` could be instantiated for example by type `{ bar: 'not bar' }`. If it is then trying to pass the argument `{ ...a, bar: 'bar' }` the function `f` will throw an error. To illustrate this this is an example:
```
type E = typeof a<{ bar: 'not bar' },... |
26,836,807 | 
From tables I need to get all available columns from table "car\_type" event if
1. It have car(s) in table "car",
2. It is not 'in use' in table "approval" (if it's using it will show 0 in field car\_return)
3. car.car\_status is not 0 (if it ... | 2014/11/10 | [
"https://Stackoverflow.com/questions/26836807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2960983/"
] | While the answer from @Kumar hints in the correct direction (but don't use a text field from the default schema.xml for this, as it will process any input both when querying and indexing), the explanation is that you might need a new field to do wild card queries against, unless you can transform your query into an act... | see [this](https://stackoverflow.com/a/11057309/3496666) answer. You have to add a directive link in your schema.xml in {solr\_home}/example/solr/**your\_collection**/conf/schema.xml as shown in that answer. Copy all your fields to make it searchable for wildcard query. |
8,867,014 | I am displaying and determining the selected language in my website by using URLs in this format :
```
/{languageCode}/Area/Controller/Action
```
And in my C# when I need to find the language Code I am using this syntax :
```
RouteData.Values["languageCode"]
```
However, when I need to call an action using JQuery... | 2012/01/15 | [
"https://Stackoverflow.com/questions/8867014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/517406/"
] | Since your URL has the language code. How about using
```
window.location
```
<https://developer.mozilla.org/en/DOM/window.location>
And then extract the language from the url. Maybe something like:
```
var url = "example.com/en-us/Area/Controller/Action"; //or window.location:
var lang = url.split("/")[1];
```
... | You could emit it, server-side, e.g.:
```
var url = '@Url.Action("Action", routeValues)';
``` |
191,668 | I use `AccuBattery` and `Kaspersky Battery Life` to measure energy consumption. `Kaspersky Battery Life` shows, that all the tasks use minimal energy. `AccuBattery Pro` shows, that phone uses 5-10 mAh.
This is a fairly new, 3000 mAh battery. Phone is a `THL T9 Pro`, `Android 6.0` is installed on it.
UPDATE: I deleted ... | 2018/03/02 | [
"https://android.stackexchange.com/questions/191668",
"https://android.stackexchange.com",
"https://android.stackexchange.com/users/71279/"
] | How to nail **Phone Idle** battery drain is the question, but being unrooted device, it calls for some efforts. Finding the culprit apps isn't as easy as it is on rooted devices but is possible using [adb](/questions/tagged/adb "show questions tagged 'adb'") commands to enable higher privileges 1
(At the time of writi... | if you want to just use adb to tune Doze without extra Apps.
you might be interested in <https://github.com/easz/doze-tweak>
and if you don't want to install extra Apps, you can profile your battery with `adb bugreport` and analyze it with Battery Historian (e.g. <https://bathist.ef.lc/>). After identifying bad Apps,... |
5,248,993 | I observed the following and would be thankful for an explanation.
```
$amount = 4.56;
echo ($amount * 100) % 5;
```
outputs : 0
However,
```
$amount = 456;
echo $amount % 5;
```
outputs : 1
I tried this code on two separate PHP installations, with the same result. Thanks for your help! | 2011/03/09 | [
"https://Stackoverflow.com/questions/5248993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/449460/"
] | I *strongly* suspect this is because 4.56 can't be exactly represented as a binary floating point number, so a value very close to it is used instead. When multiplied by 100, that comes to 455.999(something), and then the modulo operator truncates down to 455 before performing the operation.
I don't know the exact det... | Use `fmod` to avoid this problem. |
19,621,383 | I have a list whose contents show up just fine in my dataGrid with this code:
```
dataGridView1.DataSource = lstExample;
```
This tells me my List is fine, and when I view the dataGrid it has all the data I need. But when I try to output the same List to a text file with this code:
```
string output = @"C:\output.t... | 2013/10/27 | [
"https://Stackoverflow.com/questions/19621383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/867420/"
] | In "classic" CUDA compilation you *must* define all code and symbols (textures, constant memory, device functions) and any host API calls which access them (including kernel launches, binding to textures, copying to symbols) within the *same translation unit*. This means, effectively, in the same file (or via multiple ... | Below is a "minimum-sized" example showing the use of `__constant__` symbols. You do not need to pass any pointer to the `__global__` function.
```
#include <cuda.h>
#include <cuda_runtime.h>
#include <stdio.h>
__constant__ float test_const;
__global__ void test_kernel(float* d_test_array) {
d_test_array[threadI... |
62,073,660 | I initialized git and I did `git push -u origin master` but when I'm trying to push files to my github repository I get these logs in my terminal
```
Enumerating objects: 118, done.
Counting objects: 100% (118/118), done.
Delta compression using up to 4 threads
Compressing objects: 100% (118/118), done.
Writing objec... | 2020/05/28 | [
"https://Stackoverflow.com/questions/62073660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13628101/"
] | I solved the error by building my project again and git init and other steps again and finally it worked | Hello I am Chetan(I am student from Pune) from India. According to me this error is coming because of internet connection issue or might your network slow/unstable. You can fix this error by reconnecting your network or upgrading your internet speed. Than push your code again. |
12,433,300 | I was following this example <http://cubiq.org/create-fixed-size-thumbnails-with-imagemagick>, and it's exactly what I want to do with the image, with the exception of having the background leftovers (i.e. the white borders). Is there a way to do this, and possibly crop the white background out? Is there another way to... | 2012/09/14 | [
"https://Stackoverflow.com/questions/12433300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/486863/"
] | The example you link to uses this command:
```
mogrify \
-resize 80x80 \
-background white \
-gravity center \
-extent 80x80 \
-format jpg \
-quality 75 \
-path thumbs \
*.jpg
```
First, `mogrify` is a bit dangerous. It manipulates your originals inline, and it... | I know this is an old thread, but by using the -write flag with the -set flag, one can write to files in the same directory without overwriting the original files:
```
mogrify -resize 80x80 \
-set filename:name "%t_small.%e" \
-write "%[filename:name]" \
*.jpg
```
As noted at <http://imagemagick.org/script/escape.ph... |
61,199 | I can imagine that this is true, but is it actually legally spelled out and motivated? Or is it just what tends to typically happen, for "other reasons"?
I've never been married and thus not divorced, so I'm just going by what I've perceived as well as a text I just read which was talking about the economics of moving... | 2021/02/15 | [
"https://law.stackexchange.com/questions/61199",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/36767/"
] | [united-states](/questions/tagged/united-states "show questions tagged 'united-states'")
In the United States, divorce is a matter of state law, and each of the 50 states has slightly different laws. But in general, it is not true as a matter of law that divorced women are awarded everything but "a mattress and a TV".... | >
> I can imagine that this is true, but is it actually legally spelled
> out and motivated? Or is it just what tends to typically happen, for
> "other reasons"? . . . Is this actually a legal thing? Something which is in a
> legally binding "marriage contract" (I don't know if that even
> exists)? If so, what's the r... |
51,179,069 | I have prepared tag input control in Vue with tag grouping. Templates includes:
```
<script type="text/x-template" id="tem_vtags">
<div class="v-tags">
<ul>
<li v-for="(item, index) in model.items" :key="index" :data-group="getGroupName(item)"><div :data-value="item"><span v-if="typeof model.tagRenderer != 'func... | 2018/07/04 | [
"https://Stackoverflow.com/questions/51179069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6670846/"
] | You can use `awk`:
```
awk '/I want following/{p=1;next}!/^X/{p=0;next}p{print NR}' file
```
Explanation in multiline version:
```
#!/usr/bin/awk
/I want following/{
# Just set a flag and move on with the next line
p=1
next
}
!/^X/ {
# On all other lines that doesn't start with a X
# reset the... | Following may help you here.
```
awk '!/X[0-9]+/{flag=""} /I want following letters:/{flag=1} flag' Input_file
```
Above will print the lines which have `I want following letters:` too in case you don't want these then use following.
```
awk '!/X[0-9]+/{flag=""} /I want following letters:/{flag=1;next} flag' Input... |
42,192,074 | I am trying to get the textbox value with a button click (without form submission) and assign it to a php variable within the same php file. I tried AJAX, but, I don't know where I am making mistake. Sample code:
File name: trialTester.php
```
<?php
if(!empty($_POST))
echo "Hello ".$_POST["text"];
?>
<html>
<hea... | 2017/02/12 | [
"https://Stackoverflow.com/questions/42192074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2329961/"
] | ```
**You just need to take sidebar out of navbar like below**
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="width: 100%;">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse... | Add position:relative to the style of the new navbar:
```
<nav class="navbar navbar-default navbar-static-top navbar-fixed-top" role="navigation" style="margin-bottom: 0;position:relative">
```
It will return the scrolling behaviour and as far as I can see, it won't mess with the design. |
11,378,004 | That is, can you send
```
{
"registration_ids": ["whatever", ...],
"data": {
"foo": {
"bar": {
"baz": [42]
}
}
}
}
```
or is the "data" member of the GCM request restricted to one level of key-value pairs? I ask b/c that limitation is suggested by the wording in Google's doc[1], whe... | 2012/07/07 | [
"https://Stackoverflow.com/questions/11378004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1105015/"
] | Just did a test myself and confirmed my conjecture.
Send a GCM to myself with this payload:
```
{
"registration_ids": ["whatever", ...],
"data": {
"message": {
"bar": {
"baz": [42]
}
}
}
}
```
And my client received it and parse the 'message' intent extra as this:
```
han... | Although it appears to work (see other answers and comments), without a clear statement from Google, i would not recommend relying on it as their documentation consistently refers to the top-level members of the json as "key-value pairs". The server-side helper jar they provide [1] also reinforces this idea, as it mode... |
47,323,579 | can you please take a look at this code and let me know how I can add `.click()` to the `a` link with specific data attribute of `HD`?
```js
if ($(a).data("quality") == "HD") {
$(this).click();
}
```
```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul class="strea... | 2017/11/16 | [
"https://Stackoverflow.com/questions/47323579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1106951/"
] | Use an [Attribute Selector](https://api.jquery.com/attribute-equals-selector/)
```js
$("a[data-quality=HD]").click();
```
```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul class="stream">
<li><a data-quality="L">Low</a></li>
<li><a data-quality="M">Med</a></li... | you can make use of [Attribute Selectors](https://api.jquery.com/attribute-equals-selector):
```
$('a[data-quality="HD"]').click(function() {
//do something
});
``` |
3,697,329 | Sorry if this is explicitly answered somewhere, but I'm a little confused by the boost documentation and articles I've read online.
I see that I can use the reset() function to release the memory within a shared\_ptr (assuming the reference count goes to zero), e.g.,
```
shared_ptr<int> x(new int(0));
x.reset(new int... | 2010/09/13 | [
"https://Stackoverflow.com/questions/3697329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/152737/"
] | The documentation is fairly clear:
>
> `shared_ptr & operator=(shared_ptr const & r); // never throws`
>
>
> Effects: Equivalent to `shared_ptr(r).swap(*this)`.
>
>
>
So it just swaps ownership with the temporary object you create. The temporary then expires, decreasing the reference count. (And deallocating i... | You have not leaked memory. The memory for the first int object will be deleted. |
3,831,763 | $\blacksquare$ **Problem:** Let $\mathbb{P}$ be the set of all prime numbers. Find all functions $f:\mathbb{P}\rightarrow\mathbb{P}$ such that:
$$f(p)^{f(q)}+q^p=f(q)^{f(p)}+p^q$$holds for all $p,q\in\mathbb{P}$.
---
Note:
-----
The immediate solution that comes to mind is $f(p) = p~\forall~p \in \mathbb{P}$. But we... | 2020/09/18 | [
"https://math.stackexchange.com/questions/3831763",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | I thought it would be helpful to readers to have a condensed solution whose structure is easy to see in one go. But everything in this answer is part of [Ralph Clausen's solution](https://math.stackexchange.com/a/3831777/16078).
First, we show that **$f$ is injective**. If $f(p)=f(q)$, then the functional equation imp... | $\DeclareMathOperator{\cA}{\mathcal{A}} \DeclareMathOperator{\cB}{\mathcal{B}} \DeclareMathOperator{\cC}{\mathcal{C}} \DeclareMathOperator{\cD}{\mathcal{D}} \DeclareMathOperator{\cE}{\mathcal{E}} \DeclareMathOperator{\cF}{\mathcal{F}} \DeclareMathOperator{\cG}{\mathcal{G}} \DeclareMathOperator{\cH}{\mathcal{H}} \Declar... |
2,376,282 | I have heard that there is a function $f(x)$ whose Maclaurin expansion is zero but f(x) is not identical to zero.
In other words, there exists a function $f(x)$ that satisfies $f^{(n)}(0)$ is zero for every whole number $n$ and $f(x)\neq0$.
Could you show me one of such functions? (I've heard it exists but I've never... | 2017/07/30 | [
"https://math.stackexchange.com/questions/2376282",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/468204/"
] | If we take $f(x) = \frac{P(x)}{Q(x)}e^{-1/x^2}$ for $x \neq 0$, then we have (for $x \neq 0$) $$f'(x) = \frac{P'(x)Q(x) - P(x)Q'(x)}{Q(x)^2}e^{-1/x^2} + \frac{2P(x)}{x^3Q(x)}e^{-1/x^2}$$
which assures us that $f'(x)$ will be of the same form (namely, a rational function times $e^{-1/x^2}$). Meanwhile, we know that $f'(... | Yes you appear to be talking about *bump functions*.
Contrast the complex case, where differentiable (holomorphic) implies (complex) analytic. The bump function, on the other hand, doesn't equal its Taylor series at O (MacLaurin series ), though it's smooth. If it did it would be zero. .. |
3,289,430 | Consider the natural numbers that are sum of a perfect square plus the product of consectutive natural numbers. For example, $97 = 5^{2} + 8\cdot 9$. What is the smallest multiple of 2019 that is not as described above?
Someone can help me? Thank you in advance. | 2019/07/11 | [
"https://math.stackexchange.com/questions/3289430",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/622509/"
] | Starting from the [Stirling approximation](https://en.wikipedia.org/wiki/Stirling's_approximation)
$$
\ln n!\sim n\ln n-n+{\tfrac {1}{2}}\ln(2\pi n)+{\frac {1}{12n}}-{\frac {1}{360n^{3}}}+{\frac {1}{1260n^{5}}}-{\frac {1}{1680n^{7}}}+\cdots
$$
we get by simple manipulation of truncated Taylor series
\begin{align}
&\ln... | @luzl
thanks for your help i know this
but i need to
find this differenceby this way by taylor to find T\_2 usch that i find $k1,k\_2,T\_1$ as in this seq ,not
but $T\_2$ not get as it's value in the top seq (n>1)i used (n from 0 to 7)
\begin{eqnarray\*}
\frac{1}{n} \log[1 + n] -1 -\frac{1}{6} \log[ 8 (\frac{1}{n... |
32,361,050 | Just like the questions states, is there a hard limit to either the number of files or characters that can go in a file input in Internet Explorer?
Here's the test code:
```
<html><input id="files" type="file" name="files[]" webkitdirectory directory multiple></html>
```
I've been able to reach a point where files ... | 2015/09/02 | [
"https://Stackoverflow.com/questions/32361050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/981120/"
] | This solution is for Swift 1.2
```
for (index, number) in enumerate(person.phoneNumbers!.map { $0.value }) {
println("Phone \(index): \(number)")
}
```
And since I am scared by this `!` I would go with the following version
```
if let numbers = person.phoneNumbers {
for (index, number) in enumerate(numbers.... | You can do it like this.
```
for number in person.phoneNumbers!.map( {$0.value} ) {
println(number)
}
``` |
33,512 | Mostly sparked by debates regarding evolution, I have become curious what epistemological positions exist in orthodox schools of the major Islamic sects.
I understand the doctrinal priority of Quran and Sunnah, so from an Islamic point of view they take precedence over scientific ideas in case they clash.
My questio... | 2016/07/18 | [
"https://islam.stackexchange.com/questions/33512",
"https://islam.stackexchange.com",
"https://islam.stackexchange.com/users/17702/"
] | Finally the answer I promised is ready. Excuse the long delay. I had little free time to compose this and needed to brush up on some sources for greater accuracy and inclusiveness. Although not too unexpected, the outcome turned out quite like an introductory essay. So I also suspect this might not make for an appropri... | Your question is such that you will probably receive multiple takes, as theology is widely still discussed by the Muslim Scholars.
In order to understand the method I'll define the core Islamic Sources:
Quran - The revelation from God
Sunnah - The practices of the Prophet Muhammad
It is the belief of Muslims that Al... |
16,320,362 | I have built this SQL Query which searches for all policy numbers and returns a sum of all multiple PPOLNO's currency values :
```
SELECT PPOLNO, SUM(PPRMPD) AS SUM
FROM PFNTLPYMTH
WHERE SUM(PPRMPD) >= 5000
AND ((PYEAR=2012 AND PMONTH >=3
AND PDAY >=27) OR (PYEAR=2013
AND PYEAR <=3 AND PDAY<=27))
GROUP BY ... | 2013/05/01 | [
"https://Stackoverflow.com/questions/16320362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1122185/"
] | Whenever you need to do a "WHERE" clause on an aggregate (which `SUM` is), you need to use the `HAVING` clause.
```
SELECT PPOLNO, SUM(PPRMPD) AS SUM FROM PFNTLPYMTH
WHERE ((PYEAR=2012 AND PMONTH >=3 AND PDAY >=27) OR (PYEAR=2013
AND PYEAR <=3 AND PDAY<=27)) GROUP BY PPOLNO
HAVING SUM(PPRMPD) >= 5000
``` | Predicates in the `Where` clause are applied *before* aggregation, To apply a predicate (filter) *after* aggregation, use a `Having` clause... try
```
SELECT PPOLNO, SUM(PPRMPD) AS SUM
FROM PFNTLPYMTH
WHERE ((PYEAR=2012 AND PMONTH >=3
AND PDAY >=27) OR (PYEAR=2013
AND PYEAR <=3 AND PDAY<=27))
GROUP BY PPOLNO... |
3,798 | My Jenkins is affected by a known Jenkins [bug](https://issues.jenkins-ci.org/browse/JENKINS-39615%20bug) where it will trigger jobs that have an SCM poll set if a change to the shared library happens. I can't have this, so I thought I would get the trigger info from inside the job and if the URL was from the library r... | 2018/04/03 | [
"https://devops.stackexchange.com/questions/3798",
"https://devops.stackexchange.com",
"https://devops.stackexchange.com/users/4427/"
] | Recently, I used this code snippet (that's part of a regular groovy script located inside the 'vars/' directory) to get the project URL as set in the pipeline project config. Hope this helps.
```
scm.getUserRemoteConfigs()[0].getUrl()
```
FYI, it does not expect to have any SCM operation to have taken place.
For mo... | Unfortunately I had to [disable the Groovy sandbox](https://wiki.jenkins.io/display/JENKINS/Permissive+Script+Security+Plugin) because I ran into so many situations where methods I wanted to use in my jobs did not appear available for whitelist on the script security page. Instead of adding a bunch of individual method... |
116,718 | Each programming language has its own quirks, and often there emerges *code patterns* in the community which is collectively founded on an enormous amount of experience. Many of these patterns are highly counter-intuitive to someone new to the language (For example, [quoting in Bash](http://mywiki.wooledge.org/Idiot)).... | 2011/12/21 | [
"https://meta.stackexchange.com/questions/116718",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/130301/"
] | **Never modify the code in the question.**
Even if it's just to "improve" the readability.
The code is what the OP has that isn't working. What ever is wrong with the code could well be the source of the problem. Editing the code could remove the source of the error and thus invalidate the question and any existing a... | A canonical example of when we point out things that aren't strictly in the question but are very clearly a problem if the asker continues along that path are vulnerabilities for SQL Injection. When the user is appending input into a SQL statement, we are often compelled to point out the vulnerability and perhaps send ... |
60,313,736 | I know that this probably not the right forum to ask this question as this is not about any particular code issue but does anyone have any idea regarding how we can send messages to and receive them from a particular Consumer Group in Azure Event Hub using .Net SDK or Rest API(I have already created a custom consumer g... | 2020/02/20 | [
"https://Stackoverflow.com/questions/60313736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10204642/"
] | "Consumer Groups" is a receiver side concept as its name already suggests. Senders can send to an eventhub or to a specific partition of an eventhub however senders cannot target a particular consumer group. Basically, senders are consumer group agnostic entities.
Here you can find some code snippets on consuming even... | You also may want to look through the [samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples) area of the repository. Each of the listed samples is focused on one scenario and attempts to break down what is being done and why inline with the code.
For reading ev... |
200,096 | I am currently using the [Legrand Orange Book](http://www.latextemplates.com/template/the-legrand-orange-book) template. Is there any way to create multiple indexes for the template? I tried to use [`multind.sty`](http://www.ctan.org/pkg/multind) but seems it doesn't create anything. | 2014/09/08 | [
"https://tex.stackexchange.com/questions/200096",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/62072/"
] | (Unfortunately, the template is not a package/class file, so it's necessary to manipulate the `main.tex` file containing the template (download link provided below)
I suggest the usage of `imakeidx` package
Idendify the lines `\usepackage{makeindex}` and replace it by
```
\usepackage[makeindex]{imakeidx} % Required ... | Complement from [makeindex style](https://tex.stackexchange.com/questions/249128/makeindex-style)
1) create MyStyle.ist:
```
delim_0 "\\dotfill\ "
delim_1 "\\dotfill\ "
headings_flag 1
heading_prefix "\\vspace*{0.5cm}\\nopagebreak\n\\tikz\\node at (0pt,0pt) [rounded corners=5pt,draw=ocre,fill=ocre!10,line width=1pt,i... |
1,741,565 | I have a problem with opening CF.NET forms using VSTS 2008. It uses the regular windows forms designer instead of the smart device one.
Everything was fine under VS2008 Pro, but after installing VSTS this seems broken. Is it possible to modify this behaviour somewhere in the settings or should I blame this on a broke... | 2009/11/16 | [
"https://Stackoverflow.com/questions/1741565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/200872/"
] | Your code will call `System.IO.Path.CheckInvalidPathChars`, which in turn checks for the the following:
1. double quote (")
2. left angle bracket (<)
3. right angle bracket (>)
4. veritical bar (|)
and for control characters less than 32 decimal (space).
So Make sure your path doesn't contain them.
**Edit:**
[comme... | Nice Stacktrace, but the invalid path would be more helpful.
In my oponion, the path provided to OpenBay.Utils.XPathUtils.GetNodes(string, string) has some invalid arguments. Use System.IO.Path.CheckInvalidPathChars() to check which characters are invalid and maybe contained in the argument provided to the method abo... |
5,043,935 | A friend of mine has sent me some obfuscated code. I've managed to deobfuscate most of it, but now its at a part where an entirely new obfuscation function is obfuscated with the obfuscated string, and the obfuscated string has to be run through that function.
I've deobfuscated the function, but the string doesn't see... | 2011/02/18 | [
"https://Stackoverflow.com/questions/5043935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266542/"
] | I know it's not the specific question you asked, but it's clearly what you wanted :)
Take a look at some of this, which you have to deal with as you get further to the truth!
```
fvnciron dcrodb_0a(in) |
in=srob_spli(in,1.);
ros='';
froroach (in AS wal) |
=rorod(wal)-1.;
=(<0)B?+2:;
ros1.=chro();
~
wal (ros);
~ dcrod... | Based on your explanation in the comments that you (if I understand) want to capture the function parameters, I think this is what you're looking for:
```
/function(\s+[^(\s]+)?\s*\((?:([^),]+),?)+\)/
```
Then you'll want to grab capture-group 2 (the `([^),]+)` part) and trim it for whitespace. The function name, if... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6