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 |
|---|---|---|---|---|---|
62,839,334 | first time asking a question here. I am new to Powershell and trying to use it to get the last write time of several files with paths I have saved in a .txt file. I have to do this for ~9000 CAD files and am currently practicing. Below is what I have gotten to work, but when I try and write it to a file it gives me an ... | 2020/07/10 | [
"https://Stackoverflow.com/questions/62839334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13907288/"
] | This is in addition to [AdminOfThings good answer](https://stackoverflow.com/a/62840342/4749264). If you're new to PowerShell I thought you might like to see another option. You can use the `ForEach-Object` cmdlet Which allows you to leverage the pipeline straight through.
```
$File = 'c:\temp\Test_Input.txt'
Get-Con... | This behavior occurs because the `foreach` script block is not actually outputting anything to the pipeline. The pipeline capable output occurs from the `-join` operator inside the `foreach` loop. This leaves you with a few options for piping data into [Out-File](https://learn.microsoft.com/en-us/powershell/module/micr... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | It is not necessary to include the `\title{<title>}` command in the main document preamble. That is, you might just as well include `\title{<title>}` as part of your `document?.tex` file2. As such, I have the following suggestion or sequence of steps:
1. Create your style by inserting everything into a style file, say... | >
> Is there a better system for managing these?
>
>
>
What you are looking for is *style* files.
Create your own style file, put it in a location where your TeX distribution can find it and load it in every documents' preamble.
>
> Can I put some details, such as the \title information in the beginning […]
>
... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | >
> Is there a better system for managing these?
>
>
>
What you are looking for is *style* files.
Create your own style file, put it in a location where your TeX distribution can find it and load it in every documents' preamble.
>
> Can I put some details, such as the \title information in the beginning […]
>
... | Like Werner already wrote, you may put `\title{<title>}` into the document files itself instead of the preamble. If you are using, e.g. babel shorthand at the title, this is even a very good idea. Otherwise you'd have to activate the shorthand before the title and deactivate it after the title. So moving `\title{<title... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | >
> Is there a better system for managing these?
>
>
>
What you are looking for is *style* files.
Create your own style file, put it in a location where your TeX distribution can find it and load it in every documents' preamble.
>
> Can I put some details, such as the \title information in the beginning […]
>
... | This is a modified version of my answer to an earlier question: [How can I divide my book into different project without repeating myself?](https://tex.stackexchange.com/questions/32041/how-can-i-divide-my-book-into-different-project-without-repeating-myself/32085#32085)
1. As others have mentioned place all your styl... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | It is not necessary to include the `\title{<title>}` command in the main document preamble. That is, you might just as well include `\title{<title>}` as part of your `document?.tex` file2. As such, I have the following suggestion or sequence of steps:
1. Create your style by inserting everything into a style file, say... | Like Werner already wrote, you may put `\title{<title>}` into the document files itself instead of the preamble. If you are using, e.g. babel shorthand at the title, this is even a very good idea. Otherwise you'd have to activate the shorthand before the title and deactivate it after the title. So moving `\title{<title... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | It is not necessary to include the `\title{<title>}` command in the main document preamble. That is, you might just as well include `\title{<title>}` as part of your `document?.tex` file2. As such, I have the following suggestion or sequence of steps:
1. Create your style by inserting everything into a style file, say... | This is a modified version of my answer to an earlier question: [How can I divide my book into different project without repeating myself?](https://tex.stackexchange.com/questions/32041/how-can-i-divide-my-book-into-different-project-without-repeating-myself/32085#32085)
1. As others have mentioned place all your styl... |
33,917 | I work with many documents which I hope will have the same style throughout.. When making a decision about the design, I want that to be applied to all of the documents uniformly. I've created 1 file that has the start and ending code. Then, all of my other files just have the text, and some minimal code (defining thin... | 2011/11/07 | [
"https://tex.stackexchange.com/questions/33917",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/8918/"
] | Like Werner already wrote, you may put `\title{<title>}` into the document files itself instead of the preamble. If you are using, e.g. babel shorthand at the title, this is even a very good idea. Otherwise you'd have to activate the shorthand before the title and deactivate it after the title. So moving `\title{<title... | This is a modified version of my answer to an earlier question: [How can I divide my book into different project without repeating myself?](https://tex.stackexchange.com/questions/32041/how-can-i-divide-my-book-into-different-project-without-repeating-myself/32085#32085)
1. As others have mentioned place all your styl... |
53,946,772 | I'm trying to kind of create a special kind of printing dialog. Basically I have radio buttons on a form, and there are two options: print all pages, or print a range of pages. The range of pages has 2 text boxes. One is to start, one is to finish. I want to take both of these boxes and make a for loop using the intege... | 2018/12/27 | [
"https://Stackoverflow.com/questions/53946772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9958202/"
] | The correct syntax of the [For...Next Statement](https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/for-next-statement) is
```
For counter As Integer = start To end
Next
```
Therefore, you should change your loop to
```
For page As Integer = startpage To endpage
'do something wi... | Try writing it as
```
For i as Integer = startpage To endpage Step 1
'Do Something
Next
```
And it should work as expected. |
37,141,366 | I am using inappbrowser to open external link in my project for ios. But the external link has horizontal scroll in "inappbrowser" , when i am opening the link in system browser ,it is opening fine. Is there any way so that i can get the external link view without scroll in inappbrowser. I am using cordova 2.8.0.
Thank... | 2016/05/10 | [
"https://Stackoverflow.com/questions/37141366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3136855/"
] | If you don't care about the appearance of the text and just want to force it to fit, you could do it with:
```
...
.style('font-size', 14)
.each(function (d, i) {
var self = d3.select(this),
pathLen = d3.select("#outerArc" + i).node().getTotalLength();
self.attr("textLength", pathLen)
self.attr("lengthA... | Did you try something like :
```
.text(function (d) {
if (d.yourTextString.length > attrs.width/20) {
//use a specific size;
}
else if (d.yourTextString.length > attrs.width/40) {
//use another specific size;
}
else if (d.yourTextString.length > attrs.width/60) { ...
```
It's eas... |
8,595,598 | I am trying to program a script in php which finds similar phrases in two pieces of text. Which I have asked this [Question](https://stackoverflow.com/questions/8587582/finding-matching-phrases-between-two-pieces-of-text)
```
1. the cat is on the roof
2. a man is on the stage
A1 = [the, cat, is, on, the, roof]
... | 2011/12/21 | [
"https://Stackoverflow.com/questions/8595598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069457/"
] | This worked for me to get rid of those messages. Of course Michael may still be right that ignoring them is okay.
I replaced
Drawable.createFromStream(((InputStream)new URL(urlString).getContent()), "name");
with
Drawable.createFromStream((new URL(url)).openConnection().getInputStream(), "name");
Of course this is... | It's obviously an error in the Apache/Harmony framework.
I think you may ignore it, you can't change the code there, even if you want :)
It's kinda a logging stuff for the apache/harmony developers, you don't have to care about this. |
16,726,304 | svn beginner here:
Lets say that I pulled from a svn repo and wrote quite a bit of code. However, I only want to commit half of the files I modified. However, I accidentally used `svn add` on all of them. How do I go back to the previous svn state (before I added all these files) without actually touching my modified ... | 2013/05/24 | [
"https://Stackoverflow.com/questions/16726304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1431282/"
] | I hope you haven't committed your changes yet.
You can *unadd* a file by using the following command:
```
$ svn delete --delete --keep-local $file_name
```
This will unadd the file and at the same time keep the file on the drive.
You can also undo all changes (including all of your adds) with this:
```
$ svn reve... | If your changes contains no svn copy or svn move, one of the easiest way to undo all your svn add and keep your changes is:
1. copy your whole working copy to another place, *excluding* the .svn directory (let's call it wc.new)
2. Do a svn revert on your original working copy
3. copy wc.new back to the original workin... |
16,726,304 | svn beginner here:
Lets say that I pulled from a svn repo and wrote quite a bit of code. However, I only want to commit half of the files I modified. However, I accidentally used `svn add` on all of them. How do I go back to the previous svn state (before I added all these files) without actually touching my modified ... | 2013/05/24 | [
"https://Stackoverflow.com/questions/16726304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1431282/"
] | If you haven't commit and using a tool like TortoiseSVN you can do a simple revert or "undo add" on the files (mark more than one) you don't need.
 | If your changes contains no svn copy or svn move, one of the easiest way to undo all your svn add and keep your changes is:
1. copy your whole working copy to another place, *excluding* the .svn directory (let's call it wc.new)
2. Do a svn revert on your original working copy
3. copy wc.new back to the original workin... |
56,792 | Let's say I'm explaning the meaning of a word in my mother tongue to a Japanese.
>
> 'Pomme' means apple in French.
>
>
>
I have three possibilities of translating this.
>
> ポムとは、フランス語でりんごっていう意味だ。
>
>
> ポムとは、フランス語でりんごっていう意味がある。
>
>
> ポムとは、フランス語でりんごっていう意味がする。
>
>
>
Are those sentence all correct, and wha... | 2018/02/21 | [
"https://japanese.stackexchange.com/questions/56792",
"https://japanese.stackexchange.com",
"https://japanese.stackexchange.com/users/15759/"
] | Your first sentence is correct and natural.
>
> ポムとは、フランス語でりんご{っていう/という}意味だ。
>
>
>
"Pomme means apple in French."
Of course you can also say:
>
> ポム**は**、フランス語でりんご{っていう/という}意味だ。
>
>
>
(Basically, if you use ~~**と**は, you'd end the sentence with 「[noun]+だ/です/である」.(「~とは」≂「というのは」). eg: ✕「空**と**は青い。」 → 〇「空*... | >
> ポムとは、フランス語でりんごっていう意味だ。
>
>
>
Pomme means 'apple' in French. a = b
>
> ポムとは、フランス語でりんごっていう意味がある。
>
>
>
Pomme has the meaning of 'apple' in French (among other meanings). a = (b + α)
>
> ポムとは、フランス語でりんごっていう意味がする。✖
>
>
>
⇒ポムとは、フランス語でりんごっていう意味をする。(?)
Pomme takes on the meaning of 'apple' in french. Pomme... |
13,281,244 | I want to capture an event when a user scrolls their scroll wheel in a situation where the page does not scroll/is not scrollable. However, the standard JS scroll event only fires when the browser actually does scroll, and will not fire for a DOM element styled to have overflow hidden.
Google maps' scroll to zoom is a... | 2012/11/08 | [
"https://Stackoverflow.com/questions/13281244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379411/"
] | You can capture the mouse-wheel event just fine:
```
$( '#yourElement' ).on( 'DOMMouseScroll mousewheel', function () {
...
});
```
**Live demo:** <http://jsfiddle.net/chtNP/1/>
(I'm using jQuery to bind the event handler, but it works regardless of which API you use, of course.) | With jQuery, you can use [this plugin](http://brandonaaron.net/code/mousewheel/demos), or any number of similar ones that do the same thing.
If jQuery or a similar framework isn't an option, it's possible but prepare yourself for a world of pain when you want to get it working in more than one browser... |
13,281,244 | I want to capture an event when a user scrolls their scroll wheel in a situation where the page does not scroll/is not scrollable. However, the standard JS scroll event only fires when the browser actually does scroll, and will not fire for a DOM element styled to have overflow hidden.
Google maps' scroll to zoom is a... | 2012/11/08 | [
"https://Stackoverflow.com/questions/13281244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379411/"
] | At this time, Firefox define DOMMouseScroll and wheel events. Chrome, Opera and IE (*latest, again!*) define mousewheel.
This is how I did it:
```
if(window.onwheel !== undefined) {
window.addEventListener('wheel', onMouseWheel)
} else if(window.onmousewheel !== undefined) {
window.addEventListener('mousewhee... | With jQuery, you can use [this plugin](http://brandonaaron.net/code/mousewheel/demos), or any number of similar ones that do the same thing.
If jQuery or a similar framework isn't an option, it's possible but prepare yourself for a world of pain when you want to get it working in more than one browser... |
13,281,244 | I want to capture an event when a user scrolls their scroll wheel in a situation where the page does not scroll/is not scrollable. However, the standard JS scroll event only fires when the browser actually does scroll, and will not fire for a DOM element styled to have overflow hidden.
Google maps' scroll to zoom is a... | 2012/11/08 | [
"https://Stackoverflow.com/questions/13281244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379411/"
] | You can capture the mouse-wheel event just fine:
```
$( '#yourElement' ).on( 'DOMMouseScroll mousewheel', function () {
...
});
```
**Live demo:** <http://jsfiddle.net/chtNP/1/>
(I'm using jQuery to bind the event handler, but it works regardless of which API you use, of course.) | At this time, Firefox define DOMMouseScroll and wheel events. Chrome, Opera and IE (*latest, again!*) define mousewheel.
This is how I did it:
```
if(window.onwheel !== undefined) {
window.addEventListener('wheel', onMouseWheel)
} else if(window.onmousewheel !== undefined) {
window.addEventListener('mousewhee... |
62,333,779 | I am reviewing a code with the following snippet for minimal reproducible example. So here the code runs an iteration to initialize an array `done` as follows:
```
#include <stdio.h>
int i,j;
N=10;
int done[500];
void main() {
done[0]=done[N]=1;
for(i=0;i<N+1;done[i++]=0){
printf("Done val %d iteration %d\n",done... | 2020/06/11 | [
"https://Stackoverflow.com/questions/62333779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7625039/"
] | You will need [xCode task](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/build/xcode?view=azure-devops) to generate .ipa file. See document [here](https://flutter.dev/docs/deployment/ios#create-a-build-archive).
Add Xcode task after flutter task in your pipeline. Set the `packageApp` attribute to `tr... | You need to include the `ExportOptions.plist` file with `flutter build ipa` and you will get an ipa output in `build/ios/ipa/your_app.ipa`
```
- task: Bash@3
displayName: "Build flutter iOS release"
inputs:
targetType: inline
script: |
flutter build ipa --release --build-name=1.0 --build-number 1 --e... |
348,222 | "*Hamiltonian mechanics is geometry in phase spase.*"
The Poisson bracket arises naturally in Hamiltonian mechanics, and since this theory has an elegant geometric interpretation, I'm interested in knowing the geometrical interpretation of the Poisson bracket.
I've read somewhere that the Poisson bracket of two fun... | 2017/07/23 | [
"https://physics.stackexchange.com/questions/348222",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/130269/"
] | The importance comes from the equations of motions:
$$
\dot{q}=\frac{\partial H}{\partial p}\, ,\qquad \dot{p}=-\frac{\partial H}{\partial q}
$$
which can be rewritten as
$$
\dot{q}=\{q,H\}\, ,\qquad \dot{p}=\{p,H\}
$$
In particular, for an arbitrary function of $f(p,q)$, we have
$$
\frac{d}{dt}f(p,q,t)=\{f,H\}+\frac{\... | Combine $q,\,p$ into a single vector $y$, said to live in phase space (which of course is even-dimensional). The PB is $\partial\_i f\omega^{ij}\partial\_j g$ where $y\_i$ is either a component of $q$ or $p$ and $\omega^{ij}\partial\_j g$ is the symplectic gradient, and the matrix/$2$-form $\omega$ is left as an index ... |
348,222 | "*Hamiltonian mechanics is geometry in phase spase.*"
The Poisson bracket arises naturally in Hamiltonian mechanics, and since this theory has an elegant geometric interpretation, I'm interested in knowing the geometrical interpretation of the Poisson bracket.
I've read somewhere that the Poisson bracket of two fun... | 2017/07/23 | [
"https://physics.stackexchange.com/questions/348222",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/130269/"
] | The Poisson bracket is the bracket of a Lie algebra defined by the symplectic 2-form.
That's a lot to unpack so let's go through it slowly. A 2-form $\omega$ is an anti-symmetric two-tensor $\omega\_{\mu\nu}$. If $\omega\_{\mu\nu}x^\nu \neq 0$ at points where $x^\nu \neq 0$, then $\omega$ is said to be non-degenerate.... | Combine $q,\,p$ into a single vector $y$, said to live in phase space (which of course is even-dimensional). The PB is $\partial\_i f\omega^{ij}\partial\_j g$ where $y\_i$ is either a component of $q$ or $p$ and $\omega^{ij}\partial\_j g$ is the symplectic gradient, and the matrix/$2$-form $\omega$ is left as an index ... |
348,222 | "*Hamiltonian mechanics is geometry in phase spase.*"
The Poisson bracket arises naturally in Hamiltonian mechanics, and since this theory has an elegant geometric interpretation, I'm interested in knowing the geometrical interpretation of the Poisson bracket.
I've read somewhere that the Poisson bracket of two fun... | 2017/07/23 | [
"https://physics.stackexchange.com/questions/348222",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/130269/"
] | The importance comes from the equations of motions:
$$
\dot{q}=\frac{\partial H}{\partial p}\, ,\qquad \dot{p}=-\frac{\partial H}{\partial q}
$$
which can be rewritten as
$$
\dot{q}=\{q,H\}\, ,\qquad \dot{p}=\{p,H\}
$$
In particular, for an arbitrary function of $f(p,q)$, we have
$$
\frac{d}{dt}f(p,q,t)=\{f,H\}+\frac{\... | The Poisson bracket is the bracket of a Lie algebra defined by the symplectic 2-form.
That's a lot to unpack so let's go through it slowly. A 2-form $\omega$ is an anti-symmetric two-tensor $\omega\_{\mu\nu}$. If $\omega\_{\mu\nu}x^\nu \neq 0$ at points where $x^\nu \neq 0$, then $\omega$ is said to be non-degenerate.... |
37,180,853 | I am trying to write an awk string to print column data in rows based on match.
My file is as below:
```
$ cat 1.txt
2016-05-10,UJ,ALL 1 7
2016-05-10,UJ,ALL 1 10
2016-05-10,UJ,ALL 1 9
2016-05-10,UJ,ALL 1 8
2016-05-10,UJ,ALL 1 14
2016-05-10,UJ,ALL 1 8
2016-05-10,UJ,ALL 1 12
2016-05-10,UJ,ALL 2 11
... | 2016/05/12 | [
"https://Stackoverflow.com/questions/37180853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6040688/"
] | ```
MyClass myObject = something.get(id);
```
Implies either copy or move construction.
If your copy constructor is defined and declared public try the following
```
std::unique_ptr<MyClass> my_p_obj( new MyClass(myObject) );
```
Where you create a new object and initialize it by copying.
Otherwise the object in... | If you would initialize it with the reference, it would give problems when you get out of scope. One possibility:
```
// Example program
#include <iostream>
#include <string>
#include <memory>
struct MyClass
{
};
int main()
{
MyClass myObject;
std::unique_ptr<MyClass>( new MyClass(myObject) );
}
``` |
68,300,350 | I am running command `docker stats <container_id> > performance.txt` over a period of 1 hour during multi-user testing. Some stats like memory, CPU increase, then normalize. But, it is with NET I/O value that it kept on increasing.
At the start, the O/P was:
```
NAME CPU % MEM USAGE / LIM... | 2021/07/08 | [
"https://Stackoverflow.com/questions/68300350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8148637/"
] | `NET I/O` is a cumulative counter. It only goes up (when your app receives and sends data).
<https://docs.docker.com/engine/reference/commandline/stats/>
>
>
>
>
> | Column name | Description |
> | --- | --- |
> | NET I/O | The amount of data the container has sent and received over its network interface |
>
>
... | >
> The docker stats command returns a live **data stream** for **running containers**.
>
>
>
It's considered the total amount of data passed over the network since the container started. From the definition of stream:
>
> computing
> a continuous flow of data or instructions,
>
>
>
It doesn't say that expli... |
7,937,282 | I am trying to install **"rpart"** package in R. But I am getting the following error.
```
> install.packages('rpart')
Warning in install.packages("rpart") :
argument 'lib' is missing: using '/home/sandeep/R/i686-pc-linux-gnu-library/2.11'
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
p... | 2011/10/29 | [
"https://Stackoverflow.com/questions/7937282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/621508/"
] | A tip to start: If you're not sure whether you have a package already, you can use eg the function `find.package()` to check:
```
> find.package('rpart')
[1] "D:/R/library/rpart"
> find.package('lololool')
Error in find.package("lololool") : there is no package called 'lololool'
```
The problem is not so much that i... | I found that once I restarted RStudio that I was able to install the package and find.package() showed I did, now, have the packages. |
183,730 | I am doing outdoor landscape lighting. I used the 12 gauge wire but have run short. can I extend it with 14 gauge wire? Need about 20 feet more for the led lights. | 2020/01/30 | [
"https://diy.stackexchange.com/questions/183730",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/111817/"
] | It would depend on the transformer size existing distance of the 12 AWG and how many lights were already installed. As a great rule of thumb, never mix wire sizes. Voltage drop on landscaping lights is very important because the voltage is low to begin with. Adding 14AWG at the end of the circuit would not be good for ... | If it's 12v lighting, and you have plenty of 14awg, you can use it by doubling up each connector; running 4 wires instead of 2. That will more than makeup for the increased resistance in the smaller gauge wire.
OTOH, using the 14 on it's own isn't really dangerous over 20' of lighting-level load, and if you're using ... |
27,171,605 | I change the backgroud color of my highlight Days in datepicker with
```
beforeShowDay : highlightDays, // it add a class name 'highlightdays'
```
It work good but Now I want to make some processing on these highlight Days when i click on them
I try the code below but it doesn't work
```
$( ".highlightda... | 2014/11/27 | [
"https://Stackoverflow.com/questions/27171605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1383538/"
] | The problem happens because you use -ld for linking directly. As a multilib toolchain, arm-none-eabi has multiple variants of libc.a (which contains the function you need) and other standard libraries. -ld just cannot find the right libraries.
To solve your problem, modify your makefile in following places:
Replace:
... | As you're using an embedded toolchain, it likely doesn't link to libc without you instructing it to. add `-lc` to your LDFLAGS to see if it solves the problem as this will at least attempt to link to libc. |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | With respect to getting management to act it's helpful to quantify the problem in relevant terms (money is best, time is also acceptable).
For example:
>
> Change 123 broke the system, resulting in X hours of downtime and costing
> us $Y in lost revenue.
>
>
> Change 456 created bugs that upset Big Customer (costi... | It's *their manager's* responsibility to deal with **all** "personnel issues." You should speak to *your* manager, describing the situation, so that (s)he can speak to the other manager.
You should be fully prepared, of course, for them to also want to speak to *you,* and you, too, are obliged to do your part (as *the... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | You must make an ironclad rule that if a person commits code that breaks the build, the commit is *instantly* reverted and *that person's work is not completed*.
If you don't have the authority to make and enforce such a rule, then you must convince the party who does have that authority. Document completely the actua... | It's *their manager's* responsibility to deal with **all** "personnel issues." You should speak to *your* manager, describing the situation, so that (s)he can speak to the other manager.
You should be fully prepared, of course, for them to also want to speak to *you,* and you, too, are obliged to do your part (as *the... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | It's *their manager's* responsibility to deal with **all** "personnel issues." You should speak to *your* manager, describing the situation, so that (s)he can speak to the other manager.
You should be fully prepared, of course, for them to also want to speak to *you,* and you, too, are obliged to do your part (as *the... | **Perform retrospectives and iterate your process to be resilient in the face of one person's error.**
Performing [blameless incident retrospectives](https://landing.google.com/sre/sre-book/chapters/postmortem-culture/) and regular development team retrospectives where you focus on the issues, all learn about your sys... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | It's *their manager's* responsibility to deal with **all** "personnel issues." You should speak to *your* manager, describing the situation, so that (s)he can speak to the other manager.
You should be fully prepared, of course, for them to also want to speak to *you,* and you, too, are obliged to do your part (as *the... | I agree with others who've advocated using a CI system and tests. In my startup, we run tests against each pull request, and only those that pass can be merged. After the merge, tests must pass again before the latest merge is deployed to production. And if a pull request breaks production, it is *immediately* reverted... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | You must make an ironclad rule that if a person commits code that breaks the build, the commit is *instantly* reverted and *that person's work is not completed*.
If you don't have the authority to make and enforce such a rule, then you must convince the party who does have that authority. Document completely the actua... | With respect to getting management to act it's helpful to quantify the problem in relevant terms (money is best, time is also acceptable).
For example:
>
> Change 123 broke the system, resulting in X hours of downtime and costing
> us $Y in lost revenue.
>
>
> Change 456 created bugs that upset Big Customer (costi... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | With respect to getting management to act it's helpful to quantify the problem in relevant terms (money is best, time is also acceptable).
For example:
>
> Change 123 broke the system, resulting in X hours of downtime and costing
> us $Y in lost revenue.
>
>
> Change 456 created bugs that upset Big Customer (costi... | **Perform retrospectives and iterate your process to be resilient in the face of one person's error.**
Performing [blameless incident retrospectives](https://landing.google.com/sre/sre-book/chapters/postmortem-culture/) and regular development team retrospectives where you focus on the issues, all learn about your sys... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | With respect to getting management to act it's helpful to quantify the problem in relevant terms (money is best, time is also acceptable).
For example:
>
> Change 123 broke the system, resulting in X hours of downtime and costing
> us $Y in lost revenue.
>
>
> Change 456 created bugs that upset Big Customer (costi... | I agree with others who've advocated using a CI system and tests. In my startup, we run tests against each pull request, and only those that pass can be merged. After the merge, tests must pass again before the latest merge is deployed to production. And if a pull request breaks production, it is *immediately* reverted... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | You must make an ironclad rule that if a person commits code that breaks the build, the commit is *instantly* reverted and *that person's work is not completed*.
If you don't have the authority to make and enforce such a rule, then you must convince the party who does have that authority. Document completely the actua... | **Perform retrospectives and iterate your process to be resilient in the face of one person's error.**
Performing [blameless incident retrospectives](https://landing.google.com/sre/sre-book/chapters/postmortem-culture/) and regular development team retrospectives where you focus on the issues, all learn about your sys... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | You must make an ironclad rule that if a person commits code that breaks the build, the commit is *instantly* reverted and *that person's work is not completed*.
If you don't have the authority to make and enforce such a rule, then you must convince the party who does have that authority. Document completely the actua... | I agree with others who've advocated using a CI system and tests. In my startup, we run tests against each pull request, and only those that pass can be merged. After the merge, tests must pass again before the latest merge is deployed to production. And if a pull request breaks production, it is *immediately* reverted... |
160,634 | I'm a senior developer in a mid-sized business. We are split into multiple sub-teams with specific roles for each. My allocated team's responsibility is for the day to day running of services and bug fixing issues that arise from our product.
I have recently had a bad case of burnout related to the current COVID situa... | 2020/07/16 | [
"https://workplace.stackexchange.com/questions/160634",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/-1/"
] | **Perform retrospectives and iterate your process to be resilient in the face of one person's error.**
Performing [blameless incident retrospectives](https://landing.google.com/sre/sre-book/chapters/postmortem-culture/) and regular development team retrospectives where you focus on the issues, all learn about your sys... | I agree with others who've advocated using a CI system and tests. In my startup, we run tests against each pull request, and only those that pass can be merged. After the merge, tests must pass again before the latest merge is deployed to production. And if a pull request breaks production, it is *immediately* reverted... |
37,668 | I'm looking to create a game framework for my own personal use...
I want to use WPF, but I'm unsure if that is a wise choice...
The games I will be writing should not require high performance graphics, so I am hoping to build on native classes... I do not want to rely on external DLL's unless I generate them myself.
... | 2012/09/25 | [
"https://gamedev.stackexchange.com/questions/37668",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/20199/"
] | "I'm getting caught in collision detection and how to make a character jump and how to make a character walk up a slope or steps..."
Why do you want to write it yourself? You could (if you want simple 2d graphics) use an existing framework for platformers and save a lot of time and energy.
How to make characters walk... | Seems like a bit of a loaded question. I would use neither as they are both for windows applications, not particularly good for writing games. Have you looked into the XNA framework? It uses c# which you seem to want to use, but is actually meant for writing games. |
37,668 | I'm looking to create a game framework for my own personal use...
I want to use WPF, but I'm unsure if that is a wise choice...
The games I will be writing should not require high performance graphics, so I am hoping to build on native classes... I do not want to rely on external DLL's unless I generate them myself.
... | 2012/09/25 | [
"https://gamedev.stackexchange.com/questions/37668",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/20199/"
] | "I'm getting caught in collision detection and how to make a character jump and how to make a character walk up a slope or steps..."
Why do you want to write it yourself? You could (if you want simple 2d graphics) use an existing framework for platformers and save a lot of time and energy.
How to make characters walk... | Writing games with a WinForms or WPF UI is perfectly fine. There are thousands upon thousands of popular and enjoyable games that don't need or benefit from hardware support. Just think, if nothing else, of the classic Windows games Minesweeper, Solitaire, or Freecell. I could easily imagine those games being implement... |
37,668 | I'm looking to create a game framework for my own personal use...
I want to use WPF, but I'm unsure if that is a wise choice...
The games I will be writing should not require high performance graphics, so I am hoping to build on native classes... I do not want to rely on external DLL's unless I generate them myself.
... | 2012/09/25 | [
"https://gamedev.stackexchange.com/questions/37668",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/20199/"
] | "I'm getting caught in collision detection and how to make a character jump and how to make a character walk up a slope or steps..."
Why do you want to write it yourself? You could (if you want simple 2d graphics) use an existing framework for platformers and save a lot of time and energy.
How to make characters walk... | I would reiterate that neither WinForms nor WPF would be good, even for simple games. XNA is specifically made for this scenario.
WinForms has an immediate graphics mode so you will have to refresh and repaint the window every "frame." The trouble is that GDI painting isn't great for performance and you have to play g... |
281,482 | I'm trying to send the output of a command to our syslog and this is what I have so far.
```
#!/bin/bash
log()
{
logger -s -t $(basename $0) "$@"
}
/bin/echo "test" 2>&1 | (log)
```
and this works perfectly !
```
[root@server bin]# sh /var/tmp/script.sh
script.sh: test
```
However when I try to append a str... | 2016/05/06 | [
"https://unix.stackexchange.com/questions/281482",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/169195/"
] | This is the documented behaviour:
>
> message
>
>
> Write this message to the log; if not specified, and the `-f` flag is not provided, standard input is logged.
>
>
>
Fortunately, you can add the needed information to the standard input of the logger:
```
log()
{
{
printf "DEBUG: $@" # Pr... | Passing arguments to a function which can be used as `$1` or `$@` is not the same as reading `stdin`.
You will have to fetch the data from `stdin` first. The following might not be the ideal solution but gives you a hint:
```
#!/bin/bash
log()
{
read INPUT
logger -s -t $(basename $0) "DEBUG: $INPUT"
}
echo "... |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | It'a punctuation, which does not exist in English, and I don't know its English name.
In Chinese it's called `顿号` (dun4 hao4). It is usually used between listing of things (or verb, or adjectives ... I don't know the grammar term, who can help me please edit the post):
```
屋子里有桌子、椅子、凳子。
```
Usually in English, comm... | It's a comma, and it serves the same purpose as a colon in English. Somewhere further down in this lesson you'll see a 二 with a similar comma, followed by a heading, maybe 词汇. |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | It's a comma, and it serves the same purpose as a colon in English. Somewhere further down in this lesson you'll see a 二 with a similar comma, followed by a heading, maybe 词汇. | It's a number with a Comma(顿号 in Chinese) and often appears in normal report or the text book for Chinese or something have relationship with social sciences.
I think "一.课文" is better. If you wirite it as “一 课文” is OK either.Maybe the editor stress the legitimacy of Chinese.
The comma dùn hào(顿号) is often used expres... |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | While we're on this topic, you should also get used to:
《》 are equivalent title marks
那部电影的名字是《红高粱》: The title of that movie is Hong Gao Liang (Red Sorghum).
『...』 are quotation marks.
If you're reading verticle text, use this as quotation marks:
﹁
.
.
.
﹂ | It's a comma, and it serves the same purpose as a colon in English. Somewhere further down in this lesson you'll see a 二 with a similar comma, followed by a heading, maybe 词汇. |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | It'a punctuation, which does not exist in English, and I don't know its English name.
In Chinese it's called `顿号` (dun4 hao4). It is usually used between listing of things (or verb, or adjectives ... I don't know the grammar term, who can help me please edit the post):
```
屋子里有桌子、椅子、凳子。
```
Usually in English, comm... | It's a number with a Comma(顿号 in Chinese) and often appears in normal report or the text book for Chinese or something have relationship with social sciences.
I think "一.课文" is better. If you wirite it as “一 课文” is OK either.Maybe the editor stress the legitimacy of Chinese.
The comma dùn hào(顿号) is often used expres... |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | It'a punctuation, which does not exist in English, and I don't know its English name.
In Chinese it's called `顿号` (dun4 hao4). It is usually used between listing of things (or verb, or adjectives ... I don't know the grammar term, who can help me please edit the post):
```
屋子里有桌子、椅子、凳子。
```
Usually in English, comm... | While we're on this topic, you should also get used to:
《》 are equivalent title marks
那部电影的名字是《红高粱》: The title of that movie is Hong Gao Liang (Red Sorghum).
『...』 are quotation marks.
If you're reading verticle text, use this as quotation marks:
﹁
.
.
.
﹂ |
2,573 | What does the drop in `一、` mean?
 | 2012/12/12 | [
"https://chinese.stackexchange.com/questions/2573",
"https://chinese.stackexchange.com",
"https://chinese.stackexchange.com/users/28/"
] | While we're on this topic, you should also get used to:
《》 are equivalent title marks
那部电影的名字是《红高粱》: The title of that movie is Hong Gao Liang (Red Sorghum).
『...』 are quotation marks.
If you're reading verticle text, use this as quotation marks:
﹁
.
.
.
﹂ | It's a number with a Comma(顿号 in Chinese) and often appears in normal report or the text book for Chinese or something have relationship with social sciences.
I think "一.课文" is better. If you wirite it as “一 课文” is OK either.Maybe the editor stress the legitimacy of Chinese.
The comma dùn hào(顿号) is often used expres... |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I wouldn't hassle with the NameScopes etc. and would rather use Storyboard.SetTarget instead.
```
var b = new Button() { Content = "abcd" };
stack.Children.Add(b);
var fade = new DoubleAnimation()
{
From = 0,
To = 1,
Duration = TimeSpan.FromSeconds(5),
};
Storyboard.SetTarget(fade, b);
Storyboard.SetTarg... | I agree, the namescopes are probably the wrong thing to use for this scenario. Much simpler and easier to use SetTarget rather than SetTargetName.
In case it helps anyone else, here's what I used to highlight a particular cell in a table with a highlight that decays to nothing. It's a little like the StackOverflow hi... |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I wouldn't hassle with the NameScopes etc. and would rather use Storyboard.SetTarget instead.
```
var b = new Button() { Content = "abcd" };
stack.Children.Add(b);
var fade = new DoubleAnimation()
{
From = 0,
To = 1,
Duration = TimeSpan.FromSeconds(5),
};
Storyboard.SetTarget(fade, b);
Storyboard.SetTarg... | I solved the problem using this as parameter in the begin method, try:
```
sb.Begin(this);
```
Because the name is registered in the window. |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I wouldn't hassle with the NameScopes etc. and would rather use Storyboard.SetTarget instead.
```
var b = new Button() { Content = "abcd" };
stack.Children.Add(b);
var fade = new DoubleAnimation()
{
From = 0,
To = 1,
Duration = TimeSpan.FromSeconds(5),
};
Storyboard.SetTarget(fade, b);
Storyboard.SetTarg... | It is possible odd thing but my solution is to use both methods:
```
Storyboard.SetTargetName(DA, myObjectName);
Storyboard.SetTarget(DA, myRect);
sb.Begin(this);
```
In this case there is no error.
Have a look at the code where I have used it.
```
int n = 0;
bool isWorking;
Storyboard sb;
... |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I solved the problem using this as parameter in the begin method, try:
```
sb.Begin(this);
```
Because the name is registered in the window. | I agree, the namescopes are probably the wrong thing to use for this scenario. Much simpler and easier to use SetTarget rather than SetTargetName.
In case it helps anyone else, here's what I used to highlight a particular cell in a table with a highlight that decays to nothing. It's a little like the StackOverflow hi... |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I agree, the namescopes are probably the wrong thing to use for this scenario. Much simpler and easier to use SetTarget rather than SetTargetName.
In case it helps anyone else, here's what I used to highlight a particular cell in a table with a highlight that decays to nothing. It's a little like the StackOverflow hi... | It is possible odd thing but my solution is to use both methods:
```
Storyboard.SetTargetName(DA, myObjectName);
Storyboard.SetTarget(DA, myRect);
sb.Begin(this);
```
In this case there is no error.
Have a look at the code where I have used it.
```
int n = 0;
bool isWorking;
Storyboard sb;
... |
695,782 | I'm trying to fade in a new control to my application's "app" area which is programmatically added after the existing controls are removed. My code looks like this:
```
void settingsButton_Clicked(object sender, EventArgs e)
{
ContentCanvas.Children.Clear();
// Fade in settings panel
... | 2009/03/30 | [
"https://Stackoverflow.com/questions/695782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82451/"
] | I solved the problem using this as parameter in the begin method, try:
```
sb.Begin(this);
```
Because the name is registered in the window. | It is possible odd thing but my solution is to use both methods:
```
Storyboard.SetTargetName(DA, myObjectName);
Storyboard.SetTarget(DA, myRect);
sb.Begin(this);
```
In this case there is no error.
Have a look at the code where I have used it.
```
int n = 0;
bool isWorking;
Storyboard sb;
... |
11,824,022 | I have to filter a html-table. To do so I created an each callback for all `tr` elements and test if one of the `tr-children` contain some specific pattern.
```
$("#filter").keypress(function() {
var filter = $(this).val();
$("#table1 tr[data-config]").each(function(){
var val = $(this).find(":contai... | 2012/08/06 | [
"https://Stackoverflow.com/questions/11824022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609712/"
] | ```
///// replace these lines...
// var val = $(this).find(":contains('" + filter + "')");
// if(val.length > 0){
///// with this line
if($(this).text().match(filter)){
```
This works by converting the whole row content into a text string, then using simple string comparison function to check if filter is contained ... | When the filter is case sensitive, this is how to make it insensitive:
```
.match("/pattern/i");
```
props to [Billy](https://stackoverflow.com/questions/11824022/test-if-children-contain-specific-text-with-jquery/11824143#11824143)! |
11,824,022 | I have to filter a html-table. To do so I created an each callback for all `tr` elements and test if one of the `tr-children` contain some specific pattern.
```
$("#filter").keypress(function() {
var filter = $(this).val();
$("#table1 tr[data-config]").each(function(){
var val = $(this).find(":contai... | 2012/08/06 | [
"https://Stackoverflow.com/questions/11824022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609712/"
] | ```
///// replace these lines...
// var val = $(this).find(":contains('" + filter + "')");
// if(val.length > 0){
///// with this line
if($(this).text().match(filter)){
```
This works by converting the whole row content into a text string, then using simple string comparison function to check if filter is contained ... | The answers are good, but there's an easier way using :contains
In general, do this:
```
$(".class:contains('texttofind')").css("display", "none");
```
With the specific example above, do this:
```
$("#table1 tr[data-config]:contains('" + filter + "')").css("display","table-row");
```
You can find out more here:... |
11,824,022 | I have to filter a html-table. To do so I created an each callback for all `tr` elements and test if one of the `tr-children` contain some specific pattern.
```
$("#filter").keypress(function() {
var filter = $(this).val();
$("#table1 tr[data-config]").each(function(){
var val = $(this).find(":contai... | 2012/08/06 | [
"https://Stackoverflow.com/questions/11824022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609712/"
] | The answers are good, but there's an easier way using :contains
In general, do this:
```
$(".class:contains('texttofind')").css("display", "none");
```
With the specific example above, do this:
```
$("#table1 tr[data-config]:contains('" + filter + "')").css("display","table-row");
```
You can find out more here:... | When the filter is case sensitive, this is how to make it insensitive:
```
.match("/pattern/i");
```
props to [Billy](https://stackoverflow.com/questions/11824022/test-if-children-contain-specific-text-with-jquery/11824143#11824143)! |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Consider getting a software product which fully encrypts your hard drives. Such a software will prompt the user to enter the password used to encrypt the hard drive during boot. Without the correct password, the hard drive (including both the OS and any data) can not be decrypted, the system won't boot and the user won... | If the laptops don't need to be used offline, store no data on the laptops. Use the laptops as [thin clients](https://en.wikipedia.org/wiki/Thin_client). This can then allow you to require multi-factor authentication, set up access hours, and many other additional improvements over storing the data locally. |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Apart from using tracking software and full disk encryption, the company may invest in educating the concerned people to use their laptops only to connect to virtual private servers ([VPS](https://en.wikipedia.org/wiki/Virtual_private_server)) where they must save their data. That way, if a laptop of a given worker is ... | Firstly encrypt the hard disks to protect the information on the laptops.
You need to make it easier for the police to find the people and easier for put them in jail.
There are modifications to the bios of laptops that make then ping an IP address whenever they connect to a network. You can then look at the source a... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | If the laptops don't need to be used offline, store no data on the laptops. Use the laptops as [thin clients](https://en.wikipedia.org/wiki/Thin_client). This can then allow you to require multi-factor authentication, set up access hours, and many other additional improvements over storing the data locally. | I feel that you are limiting yourself to the tech side too much.
first you need to
lock up the laptops at the end of the day in a secure room.
I mean secure room as the easiest way to the room is through a locked
door which lock can be easily changed.
in the room put some sort of security camera for in the case the ... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | [Bios Level Passwords](http://www.howtogeek.com/186235/how-to-secure-your-computer-with-a-bios-or-uefi-password/) prevents anyone from even turning on the computer without a password, but this doesn't prevent them from putting the hard drive into an extrenal enclosure.
[Bitlocker full drive encryption](http://windows.... | As others have mentioned, I think you need to consider the physical security first. At the end of each day you collect the laptops back and lock them in a filing cabinet in a locked room.
I would set up an asset register to log the makes, models and serial numbers of the laptops and other IT equipment. This doesn't ne... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Firstly encrypt the hard disks to protect the information on the laptops.
You need to make it easier for the police to find the people and easier for put them in jail.
There are modifications to the bios of laptops that make then ping an IP address whenever they connect to a network. You can then look at the source a... | What measures to take depends on which of the inconveniences from the theft you want to protect against:
* **Loss of data**: Keep backups. Data which exists only on the laptop can of course not be avoided while the laptop is offline. But as soon as it is online with a decent connection the data need to be backed up.
*... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Apart from using tracking software and full disk encryption, the company may invest in educating the concerned people to use their laptops only to connect to virtual private servers ([VPS](https://en.wikipedia.org/wiki/Virtual_private_server)) where they must save their data. That way, if a laptop of a given worker is ... | You can consider modern solutions like UEM (Unified Endpoint Management) solutions. It comes with a whole range of features to manage Windows devices (mobile and PCs) along with other platforms. In your situation, you can always use the remote tracking option or if you are also concerned about the data, you can remotel... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Rule no.1: Contact law enforcement.
Rule no.2: If the firm itself doesn't seem to care, nor does it want to contact law enforcement, please consider stopping doing whatever business you have with them.
Rule no.3: Think about the attacks in their broad context, and do not limit yourself to technical measures.
Rule no... | I feel that you are limiting yourself to the tech side too much.
first you need to
lock up the laptops at the end of the day in a secure room.
I mean secure room as the easiest way to the room is through a locked
door which lock can be easily changed.
in the room put some sort of security camera for in the case the ... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Consider getting a software product which fully encrypts your hard drives. Such a software will prompt the user to enter the password used to encrypt the hard drive during boot. Without the correct password, the hard drive (including both the OS and any data) can not be decrypted, the system won't boot and the user won... | I feel that you are limiting yourself to the tech side too much.
first you need to
lock up the laptops at the end of the day in a secure room.
I mean secure room as the easiest way to the room is through a locked
door which lock can be easily changed.
in the room put some sort of security camera for in the case the ... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | I feel that you are limiting yourself to the tech side too much.
first you need to
lock up the laptops at the end of the day in a secure room.
I mean secure room as the easiest way to the room is through a locked
door which lock can be easily changed.
in the room put some sort of security camera for in the case the ... | You can consider modern solutions like UEM (Unified Endpoint Management) solutions. It comes with a whole range of features to manage Windows devices (mobile and PCs) along with other platforms. In your situation, you can always use the remote tracking option or if you are also concerned about the data, you can remotel... |
101,504 | A law firm I've been in contact with has recently been broken into 3 times in the past 4 months. In spite of a number of laptops and other equipment containing sensitive information being stolen, the tech support company occasionally doing work for them has done nothing to safeguard against future theft. I proposed ins... | 2015/09/30 | [
"https://security.stackexchange.com/questions/101504",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/88021/"
] | Firstly encrypt the hard disks to protect the information on the laptops.
You need to make it easier for the police to find the people and easier for put them in jail.
There are modifications to the bios of laptops that make then ping an IP address whenever they connect to a network. You can then look at the source a... | It's going to depend a lot on the sophistication of the thieves. In addition to the ideas mentioned here, what about a physical tracking device like `thetileapp`? (I don't know what other similar options exist, as my experience is limited to Tiles.) If you're handy you could possibly hide one of these inside the chassi... |
61,480,293 | ```
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = false)
public class RetailerPincodeMapping {
@Id
private String id;
@NotEmpty
@Indexed
private Long retailerId;
@NotEmpty
@Indexed
private Integer pincode;
private boolean active;
@NotEmpty
... | 2020/04/28 | [
"https://Stackoverflow.com/questions/61480293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4174238/"
] | You can declare all your state/hooks logic in a function and export it to your component:
Example: For your login component you can extract your logic to a file, let's call it `useLogin.js`
`useLogin.js`:
```
export default () => {
const [notification, setNotification] = React.useState('');
const [hasNotific... | You can create a new component with the same code, the difference is in the title and header from AuthLayout
```
<AuthLayout title={props.title} header={props.header} hasNotification={hasNotification} notification={notification}></AuthLayout>
```
**Login**
```
const Login = props => {
return (
<newCompo... |
59,863,967 | I'm new to Power BI and struggling to work out the following.In excel i would have used a COUNTIF. I have a table:
```
+-----+----------+
| ID | Status |
+-----+----------+
| 1 | Complete |
+-----+----------+
| 2 | Started |
+-----+----------+
| 3 | Started |
+-----+----------+
| 1 | Complete |
+-----+---... | 2020/01/22 | [
"https://Stackoverflow.com/questions/59863967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2570277/"
] | You will use the dedicated function [`wc_get_order_statuses()`](https://github.com/woocommerce/woocommerce/blob/master/includes/wc-order-functions.php#L86-L104), from WC\_Order functions, which give you by default the following array:
```
$order_statuses = array(
'wc-pending' => _x( 'Pending payment', 'Order st... | Add below snippet to functions.php and call woocommerce\_get\_order\_statuses() where you want to use.
```
function woocommerce_get_order_statuses() {
$order_statuses = get_terms( 'shop_order_status', array( 'hide_empty' => false ) );
$statuses = array();
foreach ( $order_statuses as $status ) {
... |
59,863,967 | I'm new to Power BI and struggling to work out the following.In excel i would have used a COUNTIF. I have a table:
```
+-----+----------+
| ID | Status |
+-----+----------+
| 1 | Complete |
+-----+----------+
| 2 | Started |
+-----+----------+
| 3 | Started |
+-----+----------+
| 1 | Complete |
+-----+---... | 2020/01/22 | [
"https://Stackoverflow.com/questions/59863967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2570277/"
] | You will use the dedicated function [`wc_get_order_statuses()`](https://github.com/woocommerce/woocommerce/blob/master/includes/wc-order-functions.php#L86-L104), from WC\_Order functions, which give you by default the following array:
```
$order_statuses = array(
'wc-pending' => _x( 'Pending payment', 'Order st... | *wc\_get\_order\_statuses()* will provide only default WooCommerce statuses but to get all order statuses you may use the following function **woocommerce\_get\_all\_order\_statuses()**
```
function woocommerce_get_all_order_statuses() {
$order_statuses = get_posts( array('post_type'=>'wc_order_status', 'post_status... |
4,072,348 | I need to get two arrays to merge into one while keeping all the keys in place and listing the values in an array like in this example:
```
$array1 = array('car' => '3', 'bus' => '2');
$array2 = array('dog' => '1', 'car' => '2', 'bird' => '9');
$merged = array(
'car' => array('3','2'),
'bus' => array('2',n... | 2010/11/01 | [
"https://Stackoverflow.com/questions/4072348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/157416/"
] | ```
function merge_common_keys(){
$arr = func_get_args();
$num = func_num_args();
$keys = array();
$i = 0;
for ($i=0; $i<$num; ++$i){
$keys = array_merge($keys, array_keys($arr[$i]));
}
$keys = array_unique($keys);
$merged = array();
foreach ($keys as $key){
$merge... | Something like this? <http://php.net/array_merge_recursive> |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | Actually, $2$, $3$, and $4$ are roots of that polynomial in $\mathbb Z\_5[x]$. So, your polynomial can be written as$$(x^2+ax+b)(x-2)(x-3)(x-4).$$Since $b\times(-4)=3$, $b=3$. It is not hard now to see that $a=2$. | Hint: If it factors nontrivially, one factor will have degree 1 (then it has a root in ${\Bbb Z}\_5$) or one factor will have degree 2, by the degree formula. The irreducible polynomials of degree 2 in ${\Bbb Z}\_5[x]$ can be enumerated. |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | It is easy to check that $-1$ is a root, and by *Horner's algorithm*, you obtain
$$x^5+3x^4+x^3+x^2+3=(x+1)(x^4+2x^3-x^2+2x-2).$$
Similarly, the quotient has $2$ as a root and
$$ x^4+2x^3-x^2+2x-2=(x-2)(x^3-x^2+2x+1).$$
The latter quotient has $-2$ as a root, and
$$x^3-x^2+2x+=(x+2)(x^2+2x+3),$$
so that $$x^5+3x^4+x^3... | Actually, $2$, $3$, and $4$ are roots of that polynomial in $\mathbb Z\_5[x]$. So, your polynomial can be written as$$(x^2+ax+b)(x-2)(x-3)(x-4).$$Since $b\times(-4)=3$, $b=3$. It is not hard now to see that $a=2$. |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | Actually, $2$, $3$, and $4$ are roots of that polynomial in $\mathbb Z\_5[x]$. So, your polynomial can be written as$$(x^2+ax+b)(x-2)(x-3)(x-4).$$Since $b\times(-4)=3$, $b=3$. It is not hard now to see that $a=2$. | You need to make it more aggressively.
Check that $2$, $3$ and $4$ are roots, which gives the factorization:
$$x^5+3x^4+x^3+x^2+3\equiv x^5-2x^4+x^3+x^2-12=$$
$$=x^5-2x^4+x^3-2x^2+3x^2-6x+6x-12=(x-2)(x^4+x^2+3x+6)\equiv$$
$$\equiv(x-2)(x^4-9x^2-2x+6)=(x-2)(x^2(x-3)(x+3)-2(x-3))=$$
$$=(x-2)(x-3)(x^3+3x^2-2)\equiv(x-2... |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | Actually, $2$, $3$, and $4$ are roots of that polynomial in $\mathbb Z\_5[x]$. So, your polynomial can be written as$$(x^2+ax+b)(x-2)(x-3)(x-4).$$Since $b\times(-4)=3$, $b=3$. It is not hard now to see that $a=2$. | Below is a simple gcd-based method method that generalizes widely.
Since $\,x^5\!-\!x \equiv \color{#0a0}x(\color{#c00}{x\!-\!1})\cdots (x\!-\!4)\,$ we get all linear factors of $\,f\,$ via $\,\gcd(f,x^5\!-\!x)$
$\color{#0a0}{f(0)\not\equiv 0}\,$ so we can cancel $\color{#0a0}x$ and compute $\,\gcd(f,x^4\!-\!1).\, $... |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | It is easy to check that $-1$ is a root, and by *Horner's algorithm*, you obtain
$$x^5+3x^4+x^3+x^2+3=(x+1)(x^4+2x^3-x^2+2x-2).$$
Similarly, the quotient has $2$ as a root and
$$ x^4+2x^3-x^2+2x-2=(x-2)(x^3-x^2+2x+1).$$
The latter quotient has $-2$ as a root, and
$$x^3-x^2+2x+=(x+2)(x^2+2x+3),$$
so that $$x^5+3x^4+x^3... | Hint: If it factors nontrivially, one factor will have degree 1 (then it has a root in ${\Bbb Z}\_5$) or one factor will have degree 2, by the degree formula. The irreducible polynomials of degree 2 in ${\Bbb Z}\_5[x]$ can be enumerated. |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | Below is a simple gcd-based method method that generalizes widely.
Since $\,x^5\!-\!x \equiv \color{#0a0}x(\color{#c00}{x\!-\!1})\cdots (x\!-\!4)\,$ we get all linear factors of $\,f\,$ via $\,\gcd(f,x^5\!-\!x)$
$\color{#0a0}{f(0)\not\equiv 0}\,$ so we can cancel $\color{#0a0}x$ and compute $\,\gcd(f,x^4\!-\!1).\, $... | Hint: If it factors nontrivially, one factor will have degree 1 (then it has a root in ${\Bbb Z}\_5$) or one factor will have degree 2, by the degree formula. The irreducible polynomials of degree 2 in ${\Bbb Z}\_5[x]$ can be enumerated. |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | It is easy to check that $-1$ is a root, and by *Horner's algorithm*, you obtain
$$x^5+3x^4+x^3+x^2+3=(x+1)(x^4+2x^3-x^2+2x-2).$$
Similarly, the quotient has $2$ as a root and
$$ x^4+2x^3-x^2+2x-2=(x-2)(x^3-x^2+2x+1).$$
The latter quotient has $-2$ as a root, and
$$x^3-x^2+2x+=(x+2)(x^2+2x+3),$$
so that $$x^5+3x^4+x^3... | You need to make it more aggressively.
Check that $2$, $3$ and $4$ are roots, which gives the factorization:
$$x^5+3x^4+x^3+x^2+3\equiv x^5-2x^4+x^3+x^2-12=$$
$$=x^5-2x^4+x^3-2x^2+3x^2-6x+6x-12=(x-2)(x^4+x^2+3x+6)\equiv$$
$$\equiv(x-2)(x^4-9x^2-2x+6)=(x-2)(x^2(x-3)(x+3)-2(x-3))=$$
$$=(x-2)(x-3)(x^3+3x^2-2)\equiv(x-2... |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | It is easy to check that $-1$ is a root, and by *Horner's algorithm*, you obtain
$$x^5+3x^4+x^3+x^2+3=(x+1)(x^4+2x^3-x^2+2x-2).$$
Similarly, the quotient has $2$ as a root and
$$ x^4+2x^3-x^2+2x-2=(x-2)(x^3-x^2+2x+1).$$
The latter quotient has $-2$ as a root, and
$$x^3-x^2+2x+=(x+2)(x^2+2x+3),$$
so that $$x^5+3x^4+x^3... | Below is a simple gcd-based method method that generalizes widely.
Since $\,x^5\!-\!x \equiv \color{#0a0}x(\color{#c00}{x\!-\!1})\cdots (x\!-\!4)\,$ we get all linear factors of $\,f\,$ via $\,\gcd(f,x^5\!-\!x)$
$\color{#0a0}{f(0)\not\equiv 0}\,$ so we can cancel $\color{#0a0}x$ and compute $\,\gcd(f,x^4\!-\!1).\, $... |
3,217,292 | I need to factor the polynomial $x^5+3x^4+x^3+x^2+3$ into the product of the irreducible ones in the ring $\mathbb{Z}\_5[x]$.
The problem is I don't see any whole roots (I tried every possible divisor of 3) in the given polynomial. Does it mean that it is already irreducible? | 2019/05/07 | [
"https://math.stackexchange.com/questions/3217292",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/630118/"
] | Below is a simple gcd-based method method that generalizes widely.
Since $\,x^5\!-\!x \equiv \color{#0a0}x(\color{#c00}{x\!-\!1})\cdots (x\!-\!4)\,$ we get all linear factors of $\,f\,$ via $\,\gcd(f,x^5\!-\!x)$
$\color{#0a0}{f(0)\not\equiv 0}\,$ so we can cancel $\color{#0a0}x$ and compute $\,\gcd(f,x^4\!-\!1).\, $... | You need to make it more aggressively.
Check that $2$, $3$ and $4$ are roots, which gives the factorization:
$$x^5+3x^4+x^3+x^2+3\equiv x^5-2x^4+x^3+x^2-12=$$
$$=x^5-2x^4+x^3-2x^2+3x^2-6x+6x-12=(x-2)(x^4+x^2+3x+6)\equiv$$
$$\equiv(x-2)(x^4-9x^2-2x+6)=(x-2)(x^2(x-3)(x+3)-2(x-3))=$$
$$=(x-2)(x-3)(x^3+3x^2-2)\equiv(x-2... |
36,566 | I have a list. I want add a column for list with this format :
**XX-XXXX**
How to set this Validate for column?
i use [this](http://chrisstahl.wordpress.com/2011/02/06/validate-a-sharepoint-list-column-with-regular-expression/) link , but don't work for me. | 2012/05/21 | [
"https://sharepoint.stackexchange.com/questions/36566",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/5758/"
] | You've got a few options.
1) JavaScript validation on form as shown in the link in your question.
It DOES work if done correctly and is probably the quickest way do this.
* Pro - Quick and easy and allows you to provide immediate feedback to user in OnBlur event.
* Cons - limited in what you can do (e.g. can't run s... | Though not as easy or powerful as regular expressions, standard Column Validation can use a rich selection of Excel-like string functions. For example...
```
<br>
=IF(LEN([ColumnName])=7,IF(MID([ColumnName],3,1)="-"),TRUE,FALSE),FALSE) -or-<br>
=(LEN([ColumnName])=7)+(MID([Colu... |
2,297,913 | I have a drawing application like <http://www.flashperfection.com/tutorials/Mouse-Drawing-in-AS3-96618.html> where the user can select a brush size to draw.
I need a way to determine that all the surface has been drawn. Any code or ideas on how to accomplish that? | 2010/02/19 | [
"https://Stackoverflow.com/questions/2297913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/99214/"
] | A thing that comes to mind, is look for white pixels in the image assuming your background(blank canvas) is white.
something like:
```
function getWhiteRatio(bitmapData:BitmapData,rect:Rectangle):Number{
var numPixels:int = rect.width * rect.height;
var white:int = 0;
var pixels:Vector.<uint> = bitmapData... | My idea would be to do this by using a pixel-level collision detection. There are some open-source frameworks for this (try <http://www.coreyoneil.com/Flash/CDK/documentation/>), which returns a percentage of coverage. You can compare the drawn lines with the whole surface, and check if there is full coverage.
You wo... |
44,762,367 | I have two tables `AVAIL` and `AVAIL_TIMES`. `AVAIL` contains avail\_id, avail\_date, open\_flag. `AVAIL_TIMES` contains avail\_times\_id, Avail\_id, Start\_Time, End\_time. All date and time fields are typed as DATE
If a date is flagged in the avail open\_flag column it means that the facility is open for that date, ... | 2017/06/26 | [
"https://Stackoverflow.com/questions/44762367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6499306/"
] | I am not exactly sure how you want to input the date of interest (I used a bind variable, passed in as a string - but that may not be the right way for you, perhaps you want to join to your other table, etc.) - or the exact output you want. In any case, the query below demonstrates the "core" of the code you need to ac... | Another Approach. Hope this helps.
```
SELECT ID,
START_TME,
END_TM,
DIFF_TM
FROM
--Not part of SQL just to simulate the table data
(WITH TMP AS
(SELECT 1 ID,
TO_DATE('06/27/2017 00:00','mm/dd/yyyy hh24:mi') START_TME,
TO_DATE('06/27/2017 08:00','mm/dd/yyyy hh24:mi') END_TM
FROM DUAL
UNION ALL
... |
2,101,922 | I am currently using Rosen's "Discrete Mathematics and Its Applications" (7th ed.) for my discrete mathematics course. We recently talked about quantifiers, more specifically the universal and existential quantifier. What confuses me is when we started talking about restricting the domain (i.e. instead of all real numb... | 2017/01/17 | [
"https://math.stackexchange.com/questions/2101922",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/381174/"
] | What about this proof ?
Assume $x=\frac{p}{q}$ with coprime $p$ and $q$ (If $x$ is no integer, we can always find such a representation, otherwise nothing is to prove). Assume $x^2=\frac{p^2}{q^2}$ is a natural number.
If $p^2$ and $q^2$ were not coprime, there would be a prime $s$ with $s|p^2$ and $s|q^2$.
We cou... | As noted in the comments, you mean to write "$b^2$ divides $a^2$" in your third line. I wouldn't jump immediately from that to concluding though. So $b^2|a^2$ so there exists a $k$ such that $b^2k=a^2$.
>
> **Lemma:** Let $x$ and $y$ be natural numbers. If $xy$ is a perfect square, then it is not the case that exactl... |
2,101,922 | I am currently using Rosen's "Discrete Mathematics and Its Applications" (7th ed.) for my discrete mathematics course. We recently talked about quantifiers, more specifically the universal and existential quantifier. What confuses me is when we started talking about restricting the domain (i.e. instead of all real numb... | 2017/01/17 | [
"https://math.stackexchange.com/questions/2101922",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/381174/"
] | What about this proof ?
Assume $x=\frac{p}{q}$ with coprime $p$ and $q$ (If $x$ is no integer, we can always find such a representation, otherwise nothing is to prove). Assume $x^2=\frac{p^2}{q^2}$ is a natural number.
If $p^2$ and $q^2$ were not coprime, there would be a prime $s$ with $s|p^2$ and $s|q^2$.
We cou... | Let $x^2 = n \in \mathbb{N}\,$, then $x$ is a root of $x^2-n=0$. Since $x^2-n$ is a monic polynomial, any rational root must be an integer by the [rational root theorem](https://en.wikipedia.org/wiki/Rational_root_theorem), so $x$ is an integer. |
73,767,884 | Hello I am trying to build a page with a sidebar and have it where I click one of the links at the top and it switches the tab and the content within it. The current formula that I have isn't working and I get one error:
Uncaught TypeError: Cannot read properties of null (reading 'click')
I have provided my code belo... | 2022/09/19 | [
"https://Stackoverflow.com/questions/73767884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18694296/"
] | With *unsigned* values and *lowest* means *least significant*: the 2nd least significant bytes are
```
#include <limits.h>
unsigned char L2 = L >> CHAR_BIT;
unsigned char M2 = M >> CHAR_BIT;
// Form a 1,0,-1 depending on compare result.
int compare = (L2 > M2) - (L2 < < M2);
``` | To elminate the bits of the "lowest byte" so they have no consequence
you can 'knock those bits down' by `AND`ing with the `ones' complement` of 0xFF.
`( x & ~0xFF )`
Below, two integer values are shown and then compared.
```
int mmain() {
// test 5 values crossing a threshold
for( int i = 0; i < 5; i++ ) {
... |
9,756,253 | I have a string with the following content
```
http://www.mysite.com/test.php?http://www.anotherwebsite.com
```
how can i save the second url in a php variable?
i mean, the url after the interrogation mark. | 2012/03/18 | [
"https://Stackoverflow.com/questions/9756253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1181161/"
] | The type of query result you want is better done via client-side display-time manipulations. You can trivially get your data with:
```
SELECT year, SUM(sales)
FROM sales
WHERE product_id = 1
GROUP BY year
``` | Although I totally agree with @MarcB, if you still want to do it your way you should run this query:
```
select product_id,
sum(if(year = 2007, sales, 0)) `sales in 2007`,
sum(if(year = 2008, sales, 0)) `sales in 2008`
from products
where product_id = 1
group by product_id
```
Note `sales in 2008` are not `3000`... |
9,756,253 | I have a string with the following content
```
http://www.mysite.com/test.php?http://www.anotherwebsite.com
```
how can i save the second url in a php variable?
i mean, the url after the interrogation mark. | 2012/03/18 | [
"https://Stackoverflow.com/questions/9756253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1181161/"
] | The type of query result you want is better done via client-side display-time manipulations. You can trivially get your data with:
```
SELECT year, SUM(sales)
FROM sales
WHERE product_id = 1
GROUP BY year
``` | ```
SELECT PRODUCT_ID,YEAR,SALES,
LEAD(SALES,1) OVER (PARTITION BY YEAR ORDER BY SALES) AS FOLLOWING_YEAR_SALES
FROM TABLE_NAME;
```
You can use the above query to get a new column with the following year sales. for the difference between two-year sales is easy to calculate. |
59,808,923 | The Nav bar doesnt go to the top of the screen when rounding the edges on iphone x or up. Is there any way to fix this?
[IMAGE(WHAT IT LOOKS LIKE NOW)](https://i.stack.imgur.com/lXuT1.png)
```
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
... | 2020/01/19 | [
"https://Stackoverflow.com/questions/59808923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Because there's no `ID` column, but `passengerId` within the Reservations table :
```
CREATE OR REPLACE Procedure InsertNewReservation
(
flight_number Reservations.flightNumber%type,
passenger_id Reservations.passengerId%type,
... | Remove the `exec` keyword, which is not used in a PL/SQL block:
```
begin
InsertNewReservation('FL100',1,120);
end;
```
`exec` is used in tools like SQL Plus to run a procedure outside a PL/SQL block:
```
SQL> exec InsertNewReservation('FL100',1,120);
``` |
59,057,806 | ```
import java.util.*;
public class Commission {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter sales amount separated by space:");
double[] saleAmounts = Inputs(input);
}
```
*Below is where my function scans numbers, but I need it to scan an x... | 2019/11/26 | [
"https://Stackoverflow.com/questions/59057806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10232101/"
] | Thanks to Sergey Nosov on the MS forum:
>
> In the Function App, go to the "Deployment Center" blade, and click on
> the "Disconnect" button on top.
>
>
> After that re-run the release pipeline.
>
>
>
Worked for me....
<https://learn.microsoft.com/en-us/answers/questions/382358/when-deploy-functionapp-to-slot-... | Check that there is a variable 'WEBSITE\_WEBDEPLOY\_USE\_SCM' set in Application settings of Azure App Service.
If it does not exist add it. Make sure that it is set to true.
After that restart the App Service. Wait 20 seconds, then redeploy your application. |
47,748,408 | I have a project on `Rails 5.1.4`. As it is said in the title of this question, reloading a page causes it to jump to the top of it. But I want the page to stay in the same position that was before reloading. In my `css` I have these styles:
```
html {
overflow: hidden;
}
body {
overflow-x: hidden;
}
```
If I c... | 2017/12/11 | [
"https://Stackoverflow.com/questions/47748408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5501716/"
] | You need `OR` instead of `AND` in the `WHERE` clause
```
SELECT COUNT(*) FROM PscData where SETTLEMENT_ID = T.SETTLEMENT_ID AND (
NO_OF_BUFFALO >= 1
OR NO_OF_COW >= 1
OR NO_OF_GOAT >= 1
OR NO_OF_SHEEP >= 1)
``` | I think what you are looking for is below query
```
SELECT COUNT(*)
FROM PscData
where
SETTLEMENT_ID = T.SETTLEMENT_ID AND
( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1
--SUM( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1
```
Sorry for the typo, we don't need for the SUM() function he... |
47,748,408 | I have a project on `Rails 5.1.4`. As it is said in the title of this question, reloading a page causes it to jump to the top of it. But I want the page to stay in the same position that was before reloading. In my `css` I have these styles:
```
html {
overflow: hidden;
}
body {
overflow-x: hidden;
}
```
If I c... | 2017/12/11 | [
"https://Stackoverflow.com/questions/47748408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5501716/"
] | @Eralper has one way but logically I think this describes what you want better
```
(SELECT COUNT(*) FROM PscData where SETTLEMENT_ID = T.SETTLEMENT_ID AND (NO_OF_BUFFALO >= 1
OR NO_OF_COW >= 1
OR NO_OF_GOAT >= 1
OR NO_OF_SHEEP >= 1
) ) as At_Least_1_Buffalo_Bullock_Cow_... | I think what you are looking for is below query
```
SELECT COUNT(*)
FROM PscData
where
SETTLEMENT_ID = T.SETTLEMENT_ID AND
( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1
--SUM( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1
```
Sorry for the typo, we don't need for the SUM() function he... |
47,748,408 | I have a project on `Rails 5.1.4`. As it is said in the title of this question, reloading a page causes it to jump to the top of it. But I want the page to stay in the same position that was before reloading. In my `css` I have these styles:
```
html {
overflow: hidden;
}
body {
overflow-x: hidden;
}
```
If I c... | 2017/12/11 | [
"https://Stackoverflow.com/questions/47748408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5501716/"
] | You need `OR` instead of `AND` in the `WHERE` clause
```
SELECT COUNT(*) FROM PscData where SETTLEMENT_ID = T.SETTLEMENT_ID AND (
NO_OF_BUFFALO >= 1
OR NO_OF_COW >= 1
OR NO_OF_GOAT >= 1
OR NO_OF_SHEEP >= 1)
``` | @Eralper has one way but logically I think this describes what you want better
```
(SELECT COUNT(*) FROM PscData where SETTLEMENT_ID = T.SETTLEMENT_ID AND (NO_OF_BUFFALO >= 1
OR NO_OF_COW >= 1
OR NO_OF_GOAT >= 1
OR NO_OF_SHEEP >= 1
) ) as At_Least_1_Buffalo_Bullock_Cow_... |
491 | I have applied as a GSoC student to work on a project that would provide Refunds and / or Partial Payments functionality for CiviCRM. I am seeking current solution to do this when needed so I can suggest and develop better solution. What is the manual way to use negative contributions for refunds as according to me thi... | 2015/04/13 | [
"https://civicrm.stackexchange.com/questions/491",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/281/"
] | Refunds and partial payments are two different things.
Currently for refunds the work-around is to edit the contribution (possibly associated with membership or event ticket purchase) and set amount received to zero (for a full refund).
For partial payments, there was a release of back office functionality in 4.5 fo... | I use a different approach for refunds.
If it is for a membership I "renew" the membership paying a negative amount and then edit the membership end date to show the correct date. This lets us keep track of each individual credit card payment/refund and provides an accurate history of "contributions" linked to the me... |
491 | I have applied as a GSoC student to work on a project that would provide Refunds and / or Partial Payments functionality for CiviCRM. I am seeking current solution to do this when needed so I can suggest and develop better solution. What is the manual way to use negative contributions for refunds as according to me thi... | 2015/04/13 | [
"https://civicrm.stackexchange.com/questions/491",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/281/"
] | Refunds and partial payments are two different things.
Currently for refunds the work-around is to edit the contribution (possibly associated with membership or event ticket purchase) and set amount received to zero (for a full refund).
For partial payments, there was a release of back office functionality in 4.5 fo... | Four different refund cases and their current handling:
1) Full refund - just going in the contribution & changing it to cancelled.
2) Partial refund when payment was made by Pay-later - going into the contribution & changing the amount. This doesn't work with a credit card payment.
3) Partial refund when payment wa... |
491 | I have applied as a GSoC student to work on a project that would provide Refunds and / or Partial Payments functionality for CiviCRM. I am seeking current solution to do this when needed so I can suggest and develop better solution. What is the manual way to use negative contributions for refunds as according to me thi... | 2015/04/13 | [
"https://civicrm.stackexchange.com/questions/491",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/281/"
] | I use a different approach for refunds.
If it is for a membership I "renew" the membership paying a negative amount and then edit the membership end date to show the correct date. This lets us keep track of each individual credit card payment/refund and provides an accurate history of "contributions" linked to the me... | Four different refund cases and their current handling:
1) Full refund - just going in the contribution & changing it to cancelled.
2) Partial refund when payment was made by Pay-later - going into the contribution & changing the amount. This doesn't work with a credit card payment.
3) Partial refund when payment wa... |
25,622,053 | hi I am calling a static web method from client side
```
[WebMethod(EnableSession = true)]
public static CrmClientReturn check_CrmClient_Exists_With_CrmClient(string Email, string Password)
{
int result = 0;
try
{
result = CommonFunctions.CheckNumberOfEnters();
... | 2014/09/02 | [
"https://Stackoverflow.com/questions/25622053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3589943/"
] | You can use the regex in `find`:
```
find test -regextype posix-extended -regex "^[0-9]{8}.*.jpg$"
```
### Test
```
$ touch test/12345678aaa.jpg
$ touch test/1234567aaa.jpg
$ find test -regextype posix-extended -regex ".*/[0-9]{8}.*"
test/12345678aaa.jpg
```
And if it is related to the [previous question](https:... | A bit late answer.
Bash's filename exapnsion *patterns* ( called *globbing* ) has it's own rules. They're exists in two forms:
* simple globbing
* extended globbing (if you have enabled `shopts -s extglob`
You can read about the both *rules* for example [here](http://tiswww.case.edu/php/chet/bash/bashref.html#SEC38)... |
25,622,053 | hi I am calling a static web method from client side
```
[WebMethod(EnableSession = true)]
public static CrmClientReturn check_CrmClient_Exists_With_CrmClient(string Email, string Password)
{
int result = 0;
try
{
result = CommonFunctions.CheckNumberOfEnters();
... | 2014/09/02 | [
"https://Stackoverflow.com/questions/25622053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3589943/"
] | It looks like you're trying to generate a list of filenames from a regular expression. You can do that, but not directly from Bash as far as I know. Instead, use `find`:
```
find -E . -regex '.*/[0-9]{8}.*\.jpg' -depth 1
```
Something like that works on my Mac OS X system; on Linux the `.` for current directory is o... | A bit late answer.
Bash's filename exapnsion *patterns* ( called *globbing* ) has it's own rules. They're exists in two forms:
* simple globbing
* extended globbing (if you have enabled `shopts -s extglob`
You can read about the both *rules* for example [here](http://tiswww.case.edu/php/chet/bash/bashref.html#SEC38)... |
49,519,747 | I have a class like so:
```
class Consumer {
consume(event: Observable<void>) {
event.subscribe(() => console.log('Something happened'));
}
}
```
My source observable is not void:
```
const obs = Observable.interval(1000);
```
The two clumsy solutions I could come up with for consuming the observable are:... | 2018/03/27 | [
"https://Stackoverflow.com/questions/49519747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/202694/"
] | A generic type on the function covers this case well:
```
class Consumer {
consume<X>(event: Observable<X>) {
event.subscribe(() => console.log('Something happened'));
}
}
```
Note that the direct "fix" of using `Observable<any>` sacrifices type safety. For instance, it allows the implementation
```
consume... | It sounds like what you want is not `Observable<void>`, but `Observable<any>`. That will allow you to pass any observable into `consume()`. If you really must cast, then `as any as Observable<void>` is probably your best bet. |
10,072,451 | I have some experience writing parsers with ANTLR and I am trying (for self-education :) ) to port one of them to PEG (Parsing Expression Grammar).
As I am trying to get a feel for the idea, one thing strikes me as cumbersome, to the degree that I feel I have missed someting: How to deal with whitespace.
In ANTLR, th... | 2012/04/09 | [
"https://Stackoverflow.com/questions/10072451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/292477/"
] | Because there is no separate tokenization phase, there is no "time" to discard certain characters (or tokens).
Since you're familiar with ANTLR, think of it like this: let's say ANTLR handles only PEG. So you only have parser rules, no lexer rules. Now how would you discard, say, spaces? (you can't).
So, the answer t... | It is possible to nest PEG parsers. The idea is that the first parsers consumes characters and feeds tokens to the second parser. The second PEG parser consumes tokens and does the real work.
Of course this means that you give up one advantage of Parsing Expression Grammar compared to other parsing schemes: The simpli... |
27,456,470 | i am new to java.
i wanted to know this.
what is the need to create the .class file in java ?
can't we just pass the source code to every machine so that each machine can compile it according to the OS and the hardware ? | 2014/12/13 | [
"https://Stackoverflow.com/questions/27456470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | I believe it's mostly for efficiency reasons.
From wikipedia <http://en.wikipedia.org/wiki/Bytecode>:
>
> Bytecode, also known as p-code (portable code), is a form of
> instruction set designed for efficient execution by a software
> interpreter. Unlike human-readable source code, bytecodes are compact
> numeric... | The main reason for the compilation is that the Virtual Machines which are used to host java classes and run them only understands bytecode
And since compiling a class each time to the language the virtual machine understands is expensive. That's the only reason why the source code is compiled into bytecode.
But we ca... |
47,954 | I'm finally getting around to reading [*Night's Black Agents*](http://www.pelgranepress.com/?cat=153) and I love it. But in the section on building the vampires (NBA features modular, customizable vampires), I'm stuck on the base values for:
* Aberrance
* Health
* Hand-to-Hand
I see lots of text that says, essentiall... | 2014/09/16 | [
"https://rpg.stackexchange.com/questions/47954",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/696/"
] | Basic damage modifiers for vampires are listed on page 125. Remember that damage in GUMSHOE is always d6+a modifier, so in the case of mr longtaloned vampire, he'd be hitting for 1d6 (a +0 modifier, as per the table).
Base Aberrance and Health are really up to the Director. Aberrance less than 8 indicate a comparativ... | If you skip ahead to some of the sample vampires, there is a quick calculator for these abilities based on the length of unlife (page 143; the writeup of a Linea Dracula leech). It looks like most vampires begin with about 10 Aberrance, and Health & combat abilities comparable to a PC. |
514,110 | I came across the following probability problem:
Start with $1$ black ball and $1$ white ball in a box. At each step, we will put in a new ball. If there are $a$ black balls and $b$ white balls, we put in a black ball with probability $\dfrac{a}{a+b}$ and a white ball with probability $\dfrac{b}{a+b}$. We do this unti... | 2013/10/04 | [
"https://math.stackexchange.com/questions/514110",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/79379/"
] | You solve $18 u + 14 v = 2 = \gcd(18,14).$ Solve $2 w + 63 z = 1.$ Combine to get $18 x + 14 y + 63 z = 1.$ Then multiply all by $5.$ | [For the following paragraphs, please refer to the figure at the end of the last paragraph ([the figure is also available in PDF](http://www.aespen.ca/AEnswers/LgXnx1444707176.pdf)).]
The manipulations performed from steps (0) to (17) were designed to create the linear system of equations (0a), (5a), (11a) and (17a). ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.