qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
41,174,995
I have python 3. I installed "Theano" bleeding edge and "Keras" using ``` pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git ``` and also ``` pip install --upgrade git+git://github.com/Theano/Theano.git ``` and ``` pip install git+git://github.com/fchollet/keras.git ``` But when I try to im...
2016/12/15
[ "https://Stackoverflow.com/questions/41174995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4805219/" ]
I used conda to install theano and still got the same error. After much trial and error and StackOverflow searches, what worked for me was to first run: ``` conda install m2w64-toolchain ``` followed by: ``` conda install theano ``` Alternatively you can chain the modules together when you create an environment,...
For macOS Catalina: ``` conda create -n pymc3 python=3.8 conda activate pymc3 pip install pymc3 ```
56,657,273
I'm receiving an error when I attempt to run the following Python: ``` d = datetime.strptime('2012-11-14 14:32:30.0', '%Y-%m-%d %H:%M:%S') d.strftime('%Y-%m-%d %H:%M') ``` The error code is: ``` ValueError: unconverted data remains: .0 ``` How to do solve this problem??? ``` format = ['%d-%m-%Y %H:%M'] T = pd.S...
2019/06/18
[ "https://Stackoverflow.com/questions/56657273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8920186/" ]
No current compilers (gcc/clang/ICC/MSVC) will do this optimization from portable ISO C source, even if you let them prove that `b < a` so the quotient will fit in 32 bits. (For example with GNU C `if(b>=a) __builtin_unreachable();` [on Godbolt](https://godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(j:1,lang:c%2B%2B,sourc...
@Alex Lopatin's answer shows how to use `_udiv64` to get non-terrible scalar code (despite MSVC's stupid missed optimization shifting left/right). For compilers that support GNU C inline asm (including ICC), you can use that instead of the inefficient MSVC inline asm syntax that has a lot of overhead for wrapping a si...
4,097
This question is entirely about opinion and cannot have any one definite answer. Why has it not been closed? [Subjects to discuss while on break with older colleagues](https://workplace.stackexchange.com/questions/80517/subjects-to-discuss-while-on-break-with-older-colleagues)
2016/11/30
[ "https://workplace.meta.stackexchange.com/questions/4097", "https://workplace.meta.stackexchange.com", "https://workplace.meta.stackexchange.com/users/-1/" ]
To answer your question plainly: because it hasn't gotten enough votes to be closed as such. Mods don't really sort through questions looking to close them; that's the community's job as a whole.
It *is* answerable in the general case where a strategy is given rather than specific examples of topics. The advice given in the highest upvoted, accepted answer doesn't try to tell the OP what to say, merely that they should just simply talk about what interests them. Answers that try to give the OP a list of topics...
136,210
Yesterday a Reddit user [posted a page from Morrison's Organic Chemistry in which it is said that singlet methylene is less stable than triplet methylene](https://www.reddit.com/r/OrganicChemistry/comments/hlk32f/is_it_a_meme_on_my_morrison_organic/). Another user asked basically the same I'm asking here, as he got no ...
2020/07/06
[ "https://chemistry.stackexchange.com/questions/136210", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/95404/" ]
The problem is that both titration curves are **wrong**: at the first equivalence points, the $\mathrm{pH}$ does **not** equal $\mathrm{p}K\_\mathrm{a1}$ and the $\mathrm{pOH}$ does **not** equal $\mathrm{p}K\_\mathrm{b1}$. As well, the two provided dissociation constants for carbonate ion, in the OP's upper figure, ar...
The (equivalence)points, which you have marked in the graphs, are where all of the acid present in the sample has been neutralized by the base added with the titrant –and vice versa. But, pKa equals pH at the point where only *half* of the acid is neutralized. In other words: [HA] = [A-] -the concentration of acid equ...
27,134,152
I have two threads, a producer and a consumer. The producer thread recives data from another program through a named pipe at different rates, and forwards it to a consumer thread through a queue. The scheduler policy is RR and the producer thread has higher priority than the consumer thread. I want the producer to sign...
2014/11/25
[ "https://Stackoverflow.com/questions/27134152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3080027/" ]
The `-n` is an overall program option, not part of any key descriptor, even when you physically combine it with a key descriptor in the way you did. If you want only the first key to be sorted numerically, then that would be ``` sort -k1,1n -k2,2 -k3,3 ``` which in fact yields the same order that the input already i...
The option for numeric sorting would not take care of hexadecimal representation and would work on the string representation of the hexadecimal number. As John mentioned, you need to place the "n" option on the field that you would like to sort numerically. If you would like to sort the hex field numerically: [sort...
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
Create constants using `realpath` in the initial file and then reference them using easy to read and manage but now absolute paths. You can see an example here: [How can I get the "application root" of my URL from PHP?](https://stackoverflow.com/questions/2311983/how-can-i-get-the-application-root-of-my-url-from-php)...
I like using this method: ``` define('ROOT_DIR', dirname(__FILE__) . '/'); // Defined on the index or in the bootstrap include(ROOT_DIR . 'subfolder/fileName.php'); ```
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
Create constants using `realpath` in the initial file and then reference them using easy to read and manage but now absolute paths. You can see an example here: [How can I get the "application root" of my URL from PHP?](https://stackoverflow.com/questions/2311983/how-can-i-get-the-application-root-of-my-url-from-php)...
`$_SERVER['DOCUMENT_ROOT']` gives you the `DocumentRoot` of your webserver, e.g. Apache. Then you can take that as a stable datum and map from there as that won't vary. ``` include_once($_SERVER['DOCUMENT_ROOT'].'/inc/header.php'); ```
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
Create constants using `realpath` in the initial file and then reference them using easy to read and manage but now absolute paths. You can see an example here: [How can I get the "application root" of my URL from PHP?](https://stackoverflow.com/questions/2311983/how-can-i-get-the-application-root-of-my-url-from-php)...
The simplest solution? Use absolute paths.
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
If the files are in directories of the same level, the relative pathes (with ../) will be the same. If you have one within another, you will need to have the ../ on the beginning of the one in the sub-directory. The only way around changing the paths is to create a link as a sub-directory representing the main director...
I found that I had to do str\_replace("\\","/",$\_SERVER['DOCUMENT\_ROOT']) when running on IIS if that helps.
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
The simplest solution? Use absolute paths.
I like using this method: ``` define('ROOT_DIR', dirname(__FILE__) . '/'); // Defined on the index or in the bootstrap include(ROOT_DIR . 'subfolder/fileName.php'); ```
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
If the files are in directories of the same level, the relative pathes (with ../) will be the same. If you have one within another, you will need to have the ../ on the beginning of the one in the sub-directory. The only way around changing the paths is to create a link as a sub-directory representing the main director...
`$_SERVER['DOCUMENT_ROOT']` gives you the `DocumentRoot` of your webserver, e.g. Apache. Then you can take that as a stable datum and map from there as that won't vary. ``` include_once($_SERVER['DOCUMENT_ROOT'].'/inc/header.php'); ```
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
Create constants using `realpath` in the initial file and then reference them using easy to read and manage but now absolute paths. You can see an example here: [How can I get the "application root" of my URL from PHP?](https://stackoverflow.com/questions/2311983/how-can-i-get-the-application-root-of-my-url-from-php)...
Include them like this ``` require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR.'header.php'); ``` This could work!
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
If the files are in directories of the same level, the relative pathes (with ../) will be the same. If you have one within another, you will need to have the ../ on the beginning of the one in the sub-directory. The only way around changing the paths is to create a link as a sub-directory representing the main director...
Include them like this ``` require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR.'header.php'); ``` This could work!
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
If the files are in directories of the same level, the relative pathes (with ../) will be the same. If you have one within another, you will need to have the ../ on the beginning of the one in the sub-directory. The only way around changing the paths is to create a link as a sub-directory representing the main director...
I like using this method: ``` define('ROOT_DIR', dirname(__FILE__) . '/'); // Defined on the index or in the bootstrap include(ROOT_DIR . 'subfolder/fileName.php'); ```
12,764,555
So I set up my include files, such as `header.php`, `nav.php`, and `footer.php` in a `/inc` folder. Then I include the files in my pages. But if I have another folder, for example `wiki` where i'd like to include those files onto the pages of wiki, the file paths for the includes break. Example: I have included this ...
2012/10/06
[ "https://Stackoverflow.com/questions/12764555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1162678/" ]
The simplest solution? Use absolute paths.
I found that I had to do str\_replace("\\","/",$\_SERVER['DOCUMENT\_ROOT']) when running on IIS if that helps.
61,074,341
***HTML*** ``` <div nz-row *ngIf="tempThermometer | async as temp"> <div *ngFor="let data of temp;let i = index;" nz-col nzXs="24" nzSm="12" nzMd="12" nzXl="8" nzXXl="6"> <nz-spin nzTip="Loading..." [nzSize]="'large'" [nzSpinning]="data.spinning"> <div echarts [options]="chartOption[i]" [au...
2020/04/07
[ "https://Stackoverflow.com/questions/61074341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12772967/" ]
I would approach this in one of two ways. Neither would involve promises. I'm not going to attempt to use your code example, as it is far too large, instead I will focus on the core of your problem - run an array of observables and process results as they are returned. **1. Merge observables** The RxJS `merge` funct...
Try to add **change detection strategy** and run **detectChanges** function as soon as you update variable with the first data point
338,725
Suppose I have same video material encoded in two (or more) files. I'd like to run some utility on them which groundly pointed out which file is "best" in quality. "Groundly" means that I'd like to get report which compares different aspects (e.g. video resolution, video bitrate, audio sampling rate, audio bitrate, etc...
2011/09/22
[ "https://superuser.com/questions/338725", "https://superuser.com", "https://superuser.com/users/98799/" ]
I work in video quality research, and it's hard to give a simple answer to the question "which video is better". Especially when you have two clips from the same source, but no access to the original source (e.g., two copies of a movie obtained somewhere “from the Internet”). What you want, ideally, is a program that ...
I'm unaware of any tool which will give you a final recommendation or score, but using [FFmpeg](http://ffmpeg.org/), you can output all the details you listed in the question. On the command line, ffmpeg -i will list the information from the video. From there, you can write a script to parse the information and weight...
338,725
Suppose I have same video material encoded in two (or more) files. I'd like to run some utility on them which groundly pointed out which file is "best" in quality. "Groundly" means that I'd like to get report which compares different aspects (e.g. video resolution, video bitrate, audio sampling rate, audio bitrate, etc...
2011/09/22
[ "https://superuser.com/questions/338725", "https://superuser.com", "https://superuser.com/users/98799/" ]
I'm unaware of any tool which will give you a final recommendation or score, but using [FFmpeg](http://ffmpeg.org/), you can output all the details you listed in the question. On the command line, ffmpeg -i will list the information from the video. From there, you can write a script to parse the information and weight...
I am surprised that no one mentioned this yet, but I would like to comment on the FFmpeg recommendation. The FFmpeg filters suggested: * PSNR * SSIM * VMAF only work if the two videos have the same resolution. This is a problem in my case, as I wanted to compare the same video, encoded two ways: ``` Resolution:1280x...
338,725
Suppose I have same video material encoded in two (or more) files. I'd like to run some utility on them which groundly pointed out which file is "best" in quality. "Groundly" means that I'd like to get report which compares different aspects (e.g. video resolution, video bitrate, audio sampling rate, audio bitrate, etc...
2011/09/22
[ "https://superuser.com/questions/338725", "https://superuser.com", "https://superuser.com/users/98799/" ]
I work in video quality research, and it's hard to give a simple answer to the question "which video is better". Especially when you have two clips from the same source, but no access to the original source (e.g., two copies of a movie obtained somewhere “from the Internet”). What you want, ideally, is a program that ...
I am surprised that no one mentioned this yet, but I would like to comment on the FFmpeg recommendation. The FFmpeg filters suggested: * PSNR * SSIM * VMAF only work if the two videos have the same resolution. This is a problem in my case, as I wanted to compare the same video, encoded two ways: ``` Resolution:1280x...
605,853
I have developed an app solution where customers can update data themselves through XML files. While this is kinda great, it still leaves customers to editing XML files which is probably requiring too much even if they have IT/office people. So I was wondering. Do you know if OpenOffice or Microsoft Office supplies so...
2013/06/10
[ "https://superuser.com/questions/605853", "https://superuser.com", "https://superuser.com/users/146022/" ]
If you are keen to see the files, or gather files from the USB, boot into a live CD and then go into the device.
When you disable autorun nothing should run on your computer. But there could be other possibilities to infect your computer by simply connecting a USB stick (see stuxnet as remarked by Ganesh R.). The same sentence holds true for the second question (there could be other ways). Reformating the USB stick should help ...
605,853
I have developed an app solution where customers can update data themselves through XML files. While this is kinda great, it still leaves customers to editing XML files which is probably requiring too much even if they have IT/office people. So I was wondering. Do you know if OpenOffice or Microsoft Office supplies so...
2013/06/10
[ "https://superuser.com/questions/605853", "https://superuser.com", "https://superuser.com/users/146022/" ]
When you disable autorun nothing should run on your computer. But there could be other possibilities to infect your computer by simply connecting a USB stick (see stuxnet as remarked by Ganesh R.). The same sentence holds true for the second question (there could be other ways). Reformating the USB stick should help ...
Best answer: throw the flash drive in the trash, why take the extra risk? 2nd best answer: The answer mentioned above to boot to a Linux-based LiveCD and format the flash drive (Ubuntu will work for beginners). See instructions here: <https://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive> Don't format t...
605,853
I have developed an app solution where customers can update data themselves through XML files. While this is kinda great, it still leaves customers to editing XML files which is probably requiring too much even if they have IT/office people. So I was wondering. Do you know if OpenOffice or Microsoft Office supplies so...
2013/06/10
[ "https://superuser.com/questions/605853", "https://superuser.com", "https://superuser.com/users/146022/" ]
If you are keen to see the files, or gather files from the USB, boot into a live CD and then go into the device.
Best answer: throw the flash drive in the trash, why take the extra risk? 2nd best answer: The answer mentioned above to boot to a Linux-based LiveCD and format the flash drive (Ubuntu will work for beginners). See instructions here: <https://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive> Don't format t...
64,257,407
I am trying to add an item to a list. The list has 2 columns in it: `Title` and `recipientId` (it is of type `Person` or `Group`). Now I am using ``` https:<site url>/_api/web/Lists/getbytitle('list name'>)/items ``` to create the list. Unfortunately I am unable to figure out what value I should be giving to `recipi...
2020/10/08
[ "https://Stackoverflow.com/questions/64257407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10778951/" ]
If your column allow mutiple value: ``` { "__metadata":{ "type":"SP.Data.TestListItem"//change this value to yours }, "Title":"Test", "supervisorId":{ "results":[25,26]//user ids } } ``` If your column only allow single value: ``` { "__metadata":{ ...
Hopefully this might save someone's time, so to add a value for a column of type "person or Group"(recipientId in my case). Firstly, we need to have the site users id that you can get from REST API **https://<site\_url>/sites/<site\_name>/\_api/web/siteusers**. Once you have the ID, you can add it as value for "Userna...
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
Using the somewhat outdated Splines package: ``` Needs["Splines`"] f = SplineFit[{{0, 0}, {2, 0}, {2, 2}, {0, 1}}, Cubic]; ParametricPlot[f[t], {t, 0, 3}] ``` ![Mathematica graphics](https://i.stack.imgur.com/Uat68.png) The `SplineFunction` cannot be differentiated symbolically: ``` f'[0] (* (SplineFunction[Cub...
Something easy to do, not very efficient though. ``` dz = .0000001; arc[z_]:=NIntegrate[Norm[(sp[z + dz] - sp[z])/dz], {z, 0, 34}] ```
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
Using the somewhat outdated Splines package: ``` Needs["Splines`"] f = SplineFit[{{0, 0}, {2, 0}, {2, 2}, {0, 1}}, Cubic]; ParametricPlot[f[t], {t, 0, 3}] ``` ![Mathematica graphics](https://i.stack.imgur.com/Uat68.png) The `SplineFunction` cannot be differentiated symbolically: ``` f'[0] (* (SplineFunction[Cub...
If you do have version 10, another possibility is to use the new geometric computation functionality: ``` ArcLength@DiscretizeGraphics@BSplineCurve@data1 ``` The above give the total length. To find the length of the segment of the spline function `sp` between times `t1` and `t2`, you could extend the same approach ...
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
Using the somewhat outdated Splines package: ``` Needs["Splines`"] f = SplineFit[{{0, 0}, {2, 0}, {2, 2}, {0, 1}}, Cubic]; ParametricPlot[f[t], {t, 0, 3}] ``` ![Mathematica graphics](https://i.stack.imgur.com/Uat68.png) The `SplineFunction` cannot be differentiated symbolically: ``` f'[0] (* (SplineFunction[Cub...
In [this previous answer](https://mathematica.stackexchange.com/a/97281), I gave a function that reproduces the functionality of the old `NumericalMath`SplineFit`​` package, and outputs a function in `BSplineFunction[]` format. Unlike the older function, it plays nice with differentiation, which allows us to use it wit...
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
If you do have version 10, another possibility is to use the new geometric computation functionality: ``` ArcLength@DiscretizeGraphics@BSplineCurve@data1 ``` The above give the total length. To find the length of the segment of the spline function `sp` between times `t1` and `t2`, you could extend the same approach ...
Something easy to do, not very efficient though. ``` dz = .0000001; arc[z_]:=NIntegrate[Norm[(sp[z + dz] - sp[z])/dz], {z, 0, 34}] ```
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
Something easy to do, not very efficient though. ``` dz = .0000001; arc[z_]:=NIntegrate[Norm[(sp[z + dz] - sp[z])/dz], {z, 0, 34}] ```
In [this previous answer](https://mathematica.stackexchange.com/a/97281), I gave a function that reproduces the functionality of the old `NumericalMath`SplineFit`​` package, and outputs a function in `BSplineFunction[]` format. Unlike the older function, it plays nice with differentiation, which allows us to use it wit...
83,181
By fitting the data using spline, I have created a curve. ``` sp = SplineFit[data1, Cubic] ``` I am trying to divide this curve into small segments of equal length. To do so, I am trying to calculate the length of the curve using: ``` NIntegrate[Sqrt[1 + sp'[z]^2], {z, 0, 34}] ``` I get: ``` NIntegrate::inumr: "...
2015/05/11
[ "https://mathematica.stackexchange.com/questions/83181", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/29312/" ]
If you do have version 10, another possibility is to use the new geometric computation functionality: ``` ArcLength@DiscretizeGraphics@BSplineCurve@data1 ``` The above give the total length. To find the length of the segment of the spline function `sp` between times `t1` and `t2`, you could extend the same approach ...
In [this previous answer](https://mathematica.stackexchange.com/a/97281), I gave a function that reproduces the functionality of the old `NumericalMath`SplineFit`​` package, and outputs a function in `BSplineFunction[]` format. Unlike the older function, it plays nice with differentiation, which allows us to use it wit...
532,346
are windows SBS is starting to go and when it does all the clients in our office loose dns settings and then as a result can not get out to the internet for services they need as a temporary measure I have manually edited some of there computers to have a alternate DNS server (preferred is set to the ip address of the...
2013/08/20
[ "https://serverfault.com/questions/532346", "https://serverfault.com", "https://serverfault.com/users/13410/" ]
If you just use your ISP's DNS you are going to run into problems because you will have trouble resolving local resources. You probably want to add a new DNS server to your network, DNS is a very "light" service in small networks so this can be done on a small box with no problems. 1. Install DNS on a new box 2. On th...
Configure a second DNS server in your DHCP scope options; use one of your ISP's DNS servers, probably. It's a terrible practice to use a DNS server that can't resolve your internal AD DNS namespace, but if you've only got a single server to begin with, you don't have much other choice.
65,869,213
I have one bloc with multiple events. Here I load categories and locations and wait using `BlocListener`. But my condition for show circular progress indicator work incorrectly and after load categories and locations also shows. How I can use bloc correctly in this case? **Code** ``` apiDataBloc.add(LoadCategoriesEve...
2021/01/24
[ "https://Stackoverflow.com/questions/65869213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7496039/" ]
You should create one state **DataLoaded** with 2 fields **categories** and **locations** Something like that: ``` class DataLoaded extends ApiDataState { const DataLoaded( this.categories, this.locations, ); final List<Type> categories; final List<Type> locations; @override String toString() =...
I would place the logic into the bloc. If I understand correctly, you get an event triggered as soon as the data is loaded. Then you could create 2 variables in the bloc `bool categoriesLoaded, locationsLoaded` which you set true upon the event. In mapEventToState you could forward from each of those event mappers to a...
65,869,213
I have one bloc with multiple events. Here I load categories and locations and wait using `BlocListener`. But my condition for show circular progress indicator work incorrectly and after load categories and locations also shows. How I can use bloc correctly in this case? **Code** ``` apiDataBloc.add(LoadCategoriesEve...
2021/01/24
[ "https://Stackoverflow.com/questions/65869213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7496039/" ]
You should create one state **DataLoaded** with 2 fields **categories** and **locations** Something like that: ``` class DataLoaded extends ApiDataState { const DataLoaded( this.categories, this.locations, ); final List<Type> categories; final List<Type> locations; @override String toString() =...
I know what you meant. ``` Example Case: #some_bloc.dart (not in event or state file) on<someEventNo1>((......) => emit(LoadingState()); emit(EmitResultAPI()); on<someEventNo2>((......) => emit(LoadingState()); emit(someState()); #main.dart someMethod() { BlocProvider.of<SomeBloc>(context).add(someEve...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
Make it easy for people to communicate - start with communicating the communication plan. The idea of having push and pull communications is great. Remember though, that you can't just expect people to read either format. Make it interesting and if possible entertaining. Where you can use a chatty tone of voice, it ...
As an ultra-basic recommendation, offer a mix of "push" and "pull" options. Have a web-based tool for posting information, asking questions, etc. but don't stop there. Configure the system to send alert e-mails but allow people to customize the alerts. But send out **interesting** and **relevant** regular updates via...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
As an ultra-basic recommendation, offer a mix of "push" and "pull" options. Have a web-based tool for posting information, asking questions, etc. but don't stop there. Configure the system to send alert e-mails but allow people to customize the alerts. But send out **interesting** and **relevant** regular updates via...
Encourage face to face discussions for co-located teams. For distributed teams, use phone calls, Skype calls, whatsapp calls etc. Only use emails for follow ups and documentation.Daily scrums are also an effective tool for communication. For stakeholders, have detailed status reports presented regularly at a defined ti...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
Make it easy for people to communicate - start with communicating the communication plan. The idea of having push and pull communications is great. Remember though, that you can't just expect people to read either format. Make it interesting and if possible entertaining. Where you can use a chatty tone of voice, it ...
> > it's important that team members be great, proactive communicators > > > Don't enforce them to communicate, **make them wish to communicate** with you, and between each other. Your project rules have to tell them, explicitly: "either you communicate and live, or you keep silence and die".
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
> > it's important that team members be great, proactive communicators > > > Don't enforce them to communicate, **make them wish to communicate** with you, and between each other. Your project rules have to tell them, explicitly: "either you communicate and live, or you keep silence and die".
Encourage face to face discussions for co-located teams. For distributed teams, use phone calls, Skype calls, whatsapp calls etc. Only use emails for follow ups and documentation.Daily scrums are also an effective tool for communication. For stakeholders, have detailed status reports presented regularly at a defined ti...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
Make it easy for people to communicate - start with communicating the communication plan. The idea of having push and pull communications is great. Remember though, that you can't just expect people to read either format. Make it interesting and if possible entertaining. Where you can use a chatty tone of voice, it ...
I have successfully used Basecamp in the past for this. I would also highly recommend [Yammer](http://www.yammer.com) which is sort of like Twitter for a private business. We use this extensively at work to ask questions to a large group of people, get crowd-sourced answers, post status, etc. This tool also allows you ...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
I have successfully used Basecamp in the past for this. I would also highly recommend [Yammer](http://www.yammer.com) which is sort of like Twitter for a private business. We use this extensively at work to ask questions to a large group of people, get crowd-sourced answers, post status, etc. This tool also allows you ...
Encourage face to face discussions for co-located teams. For distributed teams, use phone calls, Skype calls, whatsapp calls etc. Only use emails for follow ups and documentation.Daily scrums are also an effective tool for communication. For stakeholders, have detailed status reports presented regularly at a defined ti...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
Make it easy for people to communicate - start with communicating the communication plan. The idea of having push and pull communications is great. Remember though, that you can't just expect people to read either format. Make it interesting and if possible entertaining. Where you can use a chatty tone of voice, it ...
First of all, whatever you end up doing, document it on a ***communication plan***. Nothing fancy but at least the **what/how/when/frequency** in a table format. --- One technique that I used when I had a team that was cross-functional and also half way around the world, was having communication gateways with their r...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
First of all, whatever you end up doing, document it on a ***communication plan***. Nothing fancy but at least the **what/how/when/frequency** in a table format. --- One technique that I used when I had a team that was cross-functional and also half way around the world, was having communication gateways with their r...
Encourage face to face discussions for co-located teams. For distributed teams, use phone calls, Skype calls, whatsapp calls etc. Only use emails for follow ups and documentation.Daily scrums are also an effective tool for communication. For stakeholders, have detailed status reports presented regularly at a defined ti...
534
I work with a team who is distributed. Most of our staff works remotely. As a result, communication is much more important. The team consists of managers, supervisors, marketing personnel, web designers, web developers, testing engineers, and internal users. With such a large group with a diverse variety of skills an...
2011/02/21
[ "https://pm.stackexchange.com/questions/534", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/34/" ]
Make it easy for people to communicate - start with communicating the communication plan. The idea of having push and pull communications is great. Remember though, that you can't just expect people to read either format. Make it interesting and if possible entertaining. Where you can use a chatty tone of voice, it ...
Encourage face to face discussions for co-located teams. For distributed teams, use phone calls, Skype calls, whatsapp calls etc. Only use emails for follow ups and documentation.Daily scrums are also an effective tool for communication. For stakeholders, have detailed status reports presented regularly at a defined ti...
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
As an array formula in one cell without volatile functions: ``` =SUM((MMULT(--(LEN(F2:J5)*LEN(R2:V5)>0),--TRANSPOSE(COLUMN(F2:J2)>0))=5)*(MMULT(F2:J5-R2:V5,TRANSPOSE(--(COLUMN(F2:J2)>0)))>2.5)) ``` should do the trick :D
Try this: `=SUMPRODUCT((MMULT(F1:J4-R1:V4,--(ROW(INDIRECT("1:"&COLUMNS(F1:J4)))>0))>2.5)*(MMULT((LEN(F1:J4)>0)+(LEN(R1:V4)>0),--(ROW(INDIRECT("1:"&COLUMNS(F1:J4)))>0))=(COLUMNS(F1:J4)+COLUMNS(R1:V4))))` [![enter image description here](https://i.stack.imgur.com/TGyjE.png)](https://i.stack.imgur.com/TGyjE.png)
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
Try this: `=SUMPRODUCT((MMULT(F1:J4-R1:V4,--(ROW(INDIRECT("1:"&COLUMNS(F1:J4)))>0))>2.5)*(MMULT((LEN(F1:J4)>0)+(LEN(R1:V4)>0),--(ROW(INDIRECT("1:"&COLUMNS(F1:J4)))>0))=(COLUMNS(F1:J4)+COLUMNS(R1:V4))))` [![enter image description here](https://i.stack.imgur.com/TGyjE.png)](https://i.stack.imgur.com/TGyjE.png)
Just another option... `=IF(NOT(OR(IFERROR(MATCH(TRUE,ISBLANK(F1:J1),0),FALSE),IFERROR(MATCH(TRUE,ISBLANK(R1:V1),0),FALSE))), SUBTOTAL(9,F1:J1)-SUBTOTAL(9,R1:V1), "Missing Value(s)")` [![![![![My results](https://i.stack.imgur.com/Ys7TH.png)](https://i.stack.imgur.com/Ys7TH.png) My approach was a little different ...
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
As an array formula in one cell without volatile functions: ``` =SUM((MMULT(--(LEN(F2:J5)*LEN(R2:V5)>0),--TRANSPOSE(COLUMN(F2:J2)>0))=5)*(MMULT(F2:J5-R2:V5,TRANSPOSE(--(COLUMN(F2:J2)>0)))>2.5)) ``` should do the trick :D
Maybe, in say X1 (assuming you have labelled your columns): ``` =COUNTIF(Y:Y,TRUE) ``` In Y1 whatever your chosen cutoff (eg `2.5`) and in Y2: ``` =((COUNTBLANK(F2:J2)+COUNTBLANK(R2:V2)=0)*SUM(F2:J2)-SUM(R2:V2))>Y$1 ``` copied down to suit.
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
Maybe, in say X1 (assuming you have labelled your columns): ``` =COUNTIF(Y:Y,TRUE) ``` In Y1 whatever your chosen cutoff (eg `2.5`) and in Y2: ``` =((COUNTBLANK(F2:J2)+COUNTBLANK(R2:V2)=0)*SUM(F2:J2)-SUM(R2:V2))>Y$1 ``` copied down to suit.
Just another option... `=IF(NOT(OR(IFERROR(MATCH(TRUE,ISBLANK(F1:J1),0),FALSE),IFERROR(MATCH(TRUE,ISBLANK(R1:V1),0),FALSE))), SUBTOTAL(9,F1:J1)-SUBTOTAL(9,R1:V1), "Missing Value(s)")` [![![![![My results](https://i.stack.imgur.com/Ys7TH.png)](https://i.stack.imgur.com/Ys7TH.png) My approach was a little different ...
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
As an array formula in one cell without volatile functions: ``` =SUM((MMULT(--(LEN(F2:J5)*LEN(R2:V5)>0),--TRANSPOSE(COLUMN(F2:J2)>0))=5)*(MMULT(F2:J5-R2:V5,TRANSPOSE(--(COLUMN(F2:J2)>0)))>2.5)) ``` should do the trick :D
I think this will do it, replacing your AND's by multiplies (\*): ``` =SUMPRODUCT(--((SUBTOTAL(9,OFFSET(F1,ROW(F1:F4)-ROW(F1),0,1,COLUMNS(F1:J1)))-SUBTOTAL(9,OFFSET(R1,ROW(R1:R4)-ROW(R1),0,1,COLUMNS(R1:V1)))>2.5)*(SUBTOTAL(2,OFFSET(F1,ROW(F1:F4)-ROW(F1),0,1,COLUMNS(F1:J1)))=COLUMNS(F1:J1))*(SUBTOTAL(2,OFFSET(R1,ROW(R1...
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
I think this will do it, replacing your AND's by multiplies (\*): ``` =SUMPRODUCT(--((SUBTOTAL(9,OFFSET(F1,ROW(F1:F4)-ROW(F1),0,1,COLUMNS(F1:J1)))-SUBTOTAL(9,OFFSET(R1,ROW(R1:R4)-ROW(R1),0,1,COLUMNS(R1:V1)))>2.5)*(SUBTOTAL(2,OFFSET(F1,ROW(F1:F4)-ROW(F1),0,1,COLUMNS(F1:J1)))=COLUMNS(F1:J1))*(SUBTOTAL(2,OFFSET(R1,ROW(R1...
Just another option... `=IF(NOT(OR(IFERROR(MATCH(TRUE,ISBLANK(F1:J1),0),FALSE),IFERROR(MATCH(TRUE,ISBLANK(R1:V1),0),FALSE))), SUBTOTAL(9,F1:J1)-SUBTOTAL(9,R1:V1), "Missing Value(s)")` [![![![![My results](https://i.stack.imgur.com/Ys7TH.png)](https://i.stack.imgur.com/Ys7TH.png) My approach was a little different ...
51,538,229
Whether possible to create media query which will apply some styles depending on a width size of some HTML element(div)? For example: If the width of table grid is less then 800px, apply some styles on that table grid? ``` @media all and (max-width: 800px) { .nano-table-grid { flex: none; min-width: 75px; } ...
2018/07/26
[ "https://Stackoverflow.com/questions/51538229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8836365/" ]
As an array formula in one cell without volatile functions: ``` =SUM((MMULT(--(LEN(F2:J5)*LEN(R2:V5)>0),--TRANSPOSE(COLUMN(F2:J2)>0))=5)*(MMULT(F2:J5-R2:V5,TRANSPOSE(--(COLUMN(F2:J2)>0)))>2.5)) ``` should do the trick :D
Just another option... `=IF(NOT(OR(IFERROR(MATCH(TRUE,ISBLANK(F1:J1),0),FALSE),IFERROR(MATCH(TRUE,ISBLANK(R1:V1),0),FALSE))), SUBTOTAL(9,F1:J1)-SUBTOTAL(9,R1:V1), "Missing Value(s)")` [![![![![My results](https://i.stack.imgur.com/Ys7TH.png)](https://i.stack.imgur.com/Ys7TH.png) My approach was a little different ...
44,092,804
Earlier today I was in the process of splitting a large git commit into several smaller commits and so as usual I created a new branch, did a `git reset HEAD^`, and proceeded with `git add -p` to interactively select pieces of this large commit to split into the first of these smaller commits. I spent 20-30 minutes sel...
2017/05/21
[ "https://Stackoverflow.com/questions/44092804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1220179/" ]
### TL;DR: you can use `git fsck --lost-found` But it's going to be painful. **Edit**: if your goal is to prevent yourself from doing this in the future, that's a bit tricky. You *can* save the original (pre-commit) index file somewhere; this index file has in it the hash IDs of the blob objects holding the carefully...
I wrote a git commit hook (`~/.git/hooks/pre-commit`) that aborts `git commit -a` if there are staged changes (i.e. you used `git add -p` before). It is not 100% bulletproof, but works well for me: ```bash #!/bin/bash # `git commit -a` changes GIT_INDEX_FILE to .git/index.lock: if GIT_INDEX_FILE=.git/index git diff -...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
There are four options here: 1. Disable the rule. -------------------- **Why?** It's the easiest way to avoid the ESLint error. **Why Not?** The no-shadow rule helps to prevent a very common bug when using `react-redux`. That is, attempting to invoke the raw, unconnected action (which does not automatically get di...
A fifth option: 5. Allow a specific exception via `eslintrc` rules. --------------------------------------------------- ``` module.exports = { rules: { 'no-shadow': [ 'error', { allow: ['setFilter'], }, ], } } ``` **Why?** You don't want variable shadowing but can't get around...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
A fifth option: 5. Allow a specific exception via `eslintrc` rules. --------------------------------------------------- ``` module.exports = { rules: { 'no-shadow': [ 'error', { allow: ['setFilter'], }, ], } } ``` **Why?** You don't want variable shadowing but can't get around...
Option number six. 6. Disable the es-lint rule for the specific line(s) of code ============================================================ ``` import { setFilter } from '../actions/filter'; // eslint-disable-next-line no-shadow function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Clic...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
Option number six. 6. Disable the es-lint rule for the specific line(s) of code ============================================================ ``` import { setFilter } from '../actions/filter'; // eslint-disable-next-line no-shadow function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Clic...
Option 7... 7. Use container components =========================== **Why?** It's a [known pattern](https://redux.js.org/basics/usage-with-react#presentational-and-container-components) and you get the added benefit of decoupling your components from the redux store, making them easier to be reused. **Why not?** Y...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
With the new [Hooks API](https://react-redux.js.org/api/hooks) added in v7.1.0, you can get rid of the variable and `mapDispatchToProps` altogether: ``` import { useDispatch } from 'react-redux' import { setFilter } from '../actions/filter'; function FilterButton() { const dispatch = useDispatch() return ( <...
Option 7... 7. Use container components =========================== **Why?** It's a [known pattern](https://redux.js.org/basics/usage-with-react#presentational-and-container-components) and you get the added benefit of decoupling your components from the redux store, making them easier to be reused. **Why not?** Y...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
There are four options here: 1. Disable the rule. -------------------- **Why?** It's the easiest way to avoid the ESLint error. **Why Not?** The no-shadow rule helps to prevent a very common bug when using `react-redux`. That is, attempting to invoke the raw, unconnected action (which does not automatically get di...
I tweaked 4. and achieved what I would like to call option 8. 8. Import methods under a different name ======================================== **Why?** It has the same benefits as importing the entire module but without conflicting with other rules, e.g. [Do not use wildcard imports(airbnb)](https://github.com/airb...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
I tweaked 4. and achieved what I would like to call option 8. 8. Import methods under a different name ======================================== **Why?** It has the same benefits as importing the entire module but without conflicting with other rules, e.g. [Do not use wildcard imports(airbnb)](https://github.com/airb...
Option 7... 7. Use container components =========================== **Why?** It's a [known pattern](https://redux.js.org/basics/usage-with-react#presentational-and-container-components) and you get the added benefit of decoupling your components from the redux store, making them easier to be reused. **Why not?** Y...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
A fifth option: 5. Allow a specific exception via `eslintrc` rules. --------------------------------------------------- ``` module.exports = { rules: { 'no-shadow': [ 'error', { allow: ['setFilter'], }, ], } } ``` **Why?** You don't want variable shadowing but can't get around...
Option 7... 7. Use container components =========================== **Why?** It's a [known pattern](https://redux.js.org/basics/usage-with-react#presentational-and-container-components) and you get the added benefit of decoupling your components from the redux store, making them easier to be reused. **Why not?** Y...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
A fifth option: 5. Allow a specific exception via `eslintrc` rules. --------------------------------------------------- ``` module.exports = { rules: { 'no-shadow': [ 'error', { allow: ['setFilter'], }, ], } } ``` **Why?** You don't want variable shadowing but can't get around...
With the new [Hooks API](https://react-redux.js.org/api/hooks) added in v7.1.0, you can get rid of the variable and `mapDispatchToProps` altogether: ``` import { useDispatch } from 'react-redux' import { setFilter } from '../actions/filter'; function FilterButton() { const dispatch = useDispatch() return ( <...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
There are four options here: 1. Disable the rule. -------------------- **Why?** It's the easiest way to avoid the ESLint error. **Why Not?** The no-shadow rule helps to prevent a very common bug when using `react-redux`. That is, attempting to invoke the raw, unconnected action (which does not automatically get di...
Option 7... 7. Use container components =========================== **Why?** It's a [known pattern](https://redux.js.org/basics/usage-with-react#presentational-and-container-components) and you get the added benefit of decoupling your components from the redux store, making them easier to be reused. **Why not?** Y...
37,682,705
I have the following component that triggers a `no-shadow` ESlint error on the `FilterButton` `props`. ```js import { setFilter } from '../actions/filter'; function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Click</button> ); } export default connect(null, { setFilter })(FilterButton)...
2016/06/07
[ "https://Stackoverflow.com/questions/37682705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312117/" ]
There are four options here: 1. Disable the rule. -------------------- **Why?** It's the easiest way to avoid the ESLint error. **Why Not?** The no-shadow rule helps to prevent a very common bug when using `react-redux`. That is, attempting to invoke the raw, unconnected action (which does not automatically get di...
Option number six. 6. Disable the es-lint rule for the specific line(s) of code ============================================================ ``` import { setFilter } from '../actions/filter'; // eslint-disable-next-line no-shadow function FilterButton({ setFilter }) { return ( <button onClick={setFilter}>Clic...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
My solution was to delete the folder/file: > > ./.git/refs/remotes/origin/{branch\_name} > > > Afterwards I was finally able to make a git fetch again.
In my case the problem was the file `.git\refs\remotes\origin\master` that got corrupted, maybe since my computer was involuntary disconnected from power a few days ago. I solved it by replacing the file content with the correct reference, a 40 char hex number that can be found in the file `.git\FETCH_HEAD`.
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
I encountered this recently when someone on my team deleted our old development branch from the remote. I ran this command to check the status of HEAD: ``` $ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/old_dev ``` This command output the name of the old development branch, which no longer exists. ...
This is a simpler solution than symbolic-ref. --- Since **you may have excluded** the branch that **origin/HEAD** was initially pointed to. **1. List your remote branches with:** ``` git branch -r ``` **2. If it doesn't show in the results:** ``` origin/HEAD -> origin/(something) ``` **3. Just point it again w...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
This is a simpler solution than symbolic-ref. --- Since **you may have excluded** the branch that **origin/HEAD** was initially pointed to. **1. List your remote branches with:** ``` git branch -r ``` **2. If it doesn't show in the results:** ``` origin/HEAD -> origin/(something) ``` **3. Just point it again w...
Looks like the default branch of your remote `origin` doesn't exists anymore. Fix the default branch of the remote: * GitHub: <https://github.com/USER_OR_ORG/REPOSITORY/settings/branches> -> "Default branch" * Bitbucket Cloud: <https://bitbucket.org/USER_OR_ORG/REPOSITORY/admin> -> " Main branch" * Bitbucket Server...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
I encountered this recently when someone on my team deleted our old development branch from the remote. I ran this command to check the status of HEAD: ``` $ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/old_dev ``` This command output the name of the old development branch, which no longer exists. ...
Like already answered - The warning indicates that the remote branch no longer exists, e.g. when the remote branch is merged+deleted into another branch. In my case I had to delete my local branch, because it was not longer needed and fixing the broken ref was not possible. Therefore, `git branch -d feature/..` did th...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
> > Just run the command - > > > ``` #replace the <branch name> with your main branch - master, main, etc. git remote set-head origin <branch name> ``` > > Enjoy! > > >
To fix this error, remove the following file YOURPROJECT/.git/refs/remotes/origin/master, and then run git fetch to download it again. It will solve your problem.
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
My solution was to delete the folder/file: > > ./.git/refs/remotes/origin/{branch\_name} > > > Afterwards I was finally able to make a git fetch again.
Looks like the default branch of your remote `origin` doesn't exists anymore. Fix the default branch of the remote: * GitHub: <https://github.com/USER_OR_ORG/REPOSITORY/settings/branches> -> "Default branch" * Bitbucket Cloud: <https://bitbucket.org/USER_OR_ORG/REPOSITORY/admin> -> " Main branch" * Bitbucket Server...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
I encountered this recently when someone on my team deleted our old development branch from the remote. I ran this command to check the status of HEAD: ``` $ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/old_dev ``` This command output the name of the old development branch, which no longer exists. ...
Some problems arise after the local master renames main: * `git fetch`: "fatal: couldn't find remote ref refs/heads/master"; * `git branch -u origin/main main`: "error: the requested upstream branch 'origin/main' does not exist"; * `git remote set-head origin main`: "error: Not a valid ref: refs/remotes/origin/main"; ...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
To fix this error, remove the following file YOURPROJECT/.git/refs/remotes/origin/master, and then run git fetch to download it again. It will solve your problem.
Like already answered - The warning indicates that the remote branch no longer exists, e.g. when the remote branch is merged+deleted into another branch. In my case I had to delete my local branch, because it was not longer needed and fixing the broken ref was not possible. Therefore, `git branch -d feature/..` did th...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
This is a simpler solution than symbolic-ref. --- Since **you may have excluded** the branch that **origin/HEAD** was initially pointed to. **1. List your remote branches with:** ``` git branch -r ``` **2. If it doesn't show in the results:** ``` origin/HEAD -> origin/(something) ``` **3. Just point it again w...
Like already answered - The warning indicates that the remote branch no longer exists, e.g. when the remote branch is merged+deleted into another branch. In my case I had to delete my local branch, because it was not longer needed and fixing the broken ref was not possible. Therefore, `git branch -d feature/..` did th...
45,811,971
Since a few days ago, every time I press `tab` key to complete branch names in bash I see the message: > > warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD > > > For example, this is what I see when I have a branch called feature/foo and I press `tab`: `...
2017/08/22
[ "https://Stackoverflow.com/questions/45811971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420625/" ]
This is a simpler solution than symbolic-ref. --- Since **you may have excluded** the branch that **origin/HEAD** was initially pointed to. **1. List your remote branches with:** ``` git branch -r ``` **2. If it doesn't show in the results:** ``` origin/HEAD -> origin/(something) ``` **3. Just point it again w...
Some problems arise after the local master renames main: * `git fetch`: "fatal: couldn't find remote ref refs/heads/master"; * `git branch -u origin/main main`: "error: the requested upstream branch 'origin/main' does not exist"; * `git remote set-head origin main`: "error: Not a valid ref: refs/remotes/origin/main"; ...
285,029
Many times during reading about Power Supplies, I came to this word and couldn't find it's meaning? What does generally burst mode mean? What is the advantage of a power supply if it has burst mode. To be more specific in Buck converter.
2017/02/07
[ "https://electronics.stackexchange.com/questions/285029", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/101428/" ]
Normally with a buck regulator it continually switches a transistor on and off at a certain duty cycle to feed energy to the load. When the load draws high current the energy transferred is high and this results in a high duty cycle i.e. the transistor is on more than it is off. When the load is very light and the inp...
The word meaning of "burst mode" is equal to the meaning of "pulse skipping mode". Typically, pulse is skipped from PWM control to maintain regulation at very light loads (i.e. 100uA ). During the normal operation of DC-DC PWM, especially if you are in current mode control, you would use pulse skipping at a light loa...
285,029
Many times during reading about Power Supplies, I came to this word and couldn't find it's meaning? What does generally burst mode mean? What is the advantage of a power supply if it has burst mode. To be more specific in Buck converter.
2017/02/07
[ "https://electronics.stackexchange.com/questions/285029", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/101428/" ]
> > In Burst Mode operation, [buck converters deliver] single small pulses of current to the output capacitor followed by sleep periods where the output power is supplied by the output capacitor. > > > [Analog Devices LT8612 Step-Down Converter datasheet](https://www.analog.com/media/en/technical-documentation/data-...
The word meaning of "burst mode" is equal to the meaning of "pulse skipping mode". Typically, pulse is skipped from PWM control to maintain regulation at very light loads (i.e. 100uA ). During the normal operation of DC-DC PWM, especially if you are in current mode control, you would use pulse skipping at a light loa...
285,029
Many times during reading about Power Supplies, I came to this word and couldn't find it's meaning? What does generally burst mode mean? What is the advantage of a power supply if it has burst mode. To be more specific in Buck converter.
2017/02/07
[ "https://electronics.stackexchange.com/questions/285029", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/101428/" ]
Normally with a buck regulator it continually switches a transistor on and off at a certain duty cycle to feed energy to the load. When the load draws high current the energy transferred is high and this results in a high duty cycle i.e. the transistor is on more than it is off. When the load is very light and the inp...
Switchmode power supplies are generally efficient .Buck converters are generally more efficient than isolated types .These days the turn down ratio is often high .For example 12V in and 3V3 out .This means that at full load a linear reg would be very lossey .However at very light load the switchmode will draw more curr...
285,029
Many times during reading about Power Supplies, I came to this word and couldn't find it's meaning? What does generally burst mode mean? What is the advantage of a power supply if it has burst mode. To be more specific in Buck converter.
2017/02/07
[ "https://electronics.stackexchange.com/questions/285029", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/101428/" ]
> > In Burst Mode operation, [buck converters deliver] single small pulses of current to the output capacitor followed by sleep periods where the output power is supplied by the output capacitor. > > > [Analog Devices LT8612 Step-Down Converter datasheet](https://www.analog.com/media/en/technical-documentation/data-...
Switchmode power supplies are generally efficient .Buck converters are generally more efficient than isolated types .These days the turn down ratio is often high .For example 12V in and 3V3 out .This means that at full load a linear reg would be very lossey .However at very light load the switchmode will draw more curr...
285,029
Many times during reading about Power Supplies, I came to this word and couldn't find it's meaning? What does generally burst mode mean? What is the advantage of a power supply if it has burst mode. To be more specific in Buck converter.
2017/02/07
[ "https://electronics.stackexchange.com/questions/285029", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/101428/" ]
Normally with a buck regulator it continually switches a transistor on and off at a certain duty cycle to feed energy to the load. When the load draws high current the energy transferred is high and this results in a high duty cycle i.e. the transistor is on more than it is off. When the load is very light and the inp...
> > In Burst Mode operation, [buck converters deliver] single small pulses of current to the output capacitor followed by sleep periods where the output power is supplied by the output capacitor. > > > [Analog Devices LT8612 Step-Down Converter datasheet](https://www.analog.com/media/en/technical-documentation/data-...
65,594,837
So i've been trying to create a sentence-count function which will cycle through the following 'story': ``` let story = 'Last weekend, I took literally the most beautiful bike ride of my life. The route is called "The 9W to Nyack" and it actually stretches all the way from Riverside Park in Manhattan to South Nyack, N...
2021/01/06
[ "https://Stackoverflow.com/questions/65594837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14284664/" ]
> > I cannot do new Map(map).delete(something);, because the result of .delete is a boolean. > > > You can use an interstitial variable. You can farm it out to a function if you like: ``` function map_delete(old_map, key_to_delete) { const new_map = new Map(old_map); new_map.delete(key_to_delete); ret...
If you don't want to use a persistent map data structure, then you cannot get around mutations or have to conduct insanely inefficient shallow copies. Please note that mutations themselves aren't harmful, but only in conjunction with sharing the underlying mutable values. If we are able to limit the way mutable values...
65,594,837
So i've been trying to create a sentence-count function which will cycle through the following 'story': ``` let story = 'Last weekend, I took literally the most beautiful bike ride of my life. The route is called "The 9W to Nyack" and it actually stretches all the way from Riverside Park in Manhattan to South Nyack, N...
2021/01/06
[ "https://Stackoverflow.com/questions/65594837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14284664/" ]
> > I cannot do new Map(map).delete(something);, because the result of .delete is a boolean. > > > You can use an interstitial variable. You can farm it out to a function if you like: ``` function map_delete(old_map, key_to_delete) { const new_map = new Map(old_map); new_map.delete(key_to_delete); ret...
**functional module** Here's my little implementation of a persistent `map` module - ``` // map.js import { effect } from "./func.js" const empty = _ => new Map const update = (t, k, f) => fromEntries(t).set(k, f(get(t, k))) const set = (t, k, v) => update(t, k, _ => v) const get = (t, k) => t.get(k) co...
65,594,837
So i've been trying to create a sentence-count function which will cycle through the following 'story': ``` let story = 'Last weekend, I took literally the most beautiful bike ride of my life. The route is called "The 9W to Nyack" and it actually stretches all the way from Riverside Park in Manhattan to South Nyack, N...
2021/01/06
[ "https://Stackoverflow.com/questions/65594837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14284664/" ]
> > I cannot do new Map(map).delete(something);, because the result of .delete is a boolean. > > > You can use an interstitial variable. You can farm it out to a function if you like: ``` function map_delete(old_map, key_to_delete) { const new_map = new Map(old_map); new_map.delete(key_to_delete); ret...
**roll your own data structure** Another option is to write your own `map` module that does **not** depend on JavaScript's native `Map`. This completely frees us from its mutable behaviours and prevents making full copies each time we wish to `set`, `update`, or `del`. This solution gives you full control and effectiv...
108,616
Why are the images in some of Gaspar Noé films blurry? For example, in *I Stand Alone* and *Irréversible*, quality seems very bad although I watched the 1080p BluRay versions. [![enter image description here](https://i.stack.imgur.com/HhFQu.jpg)](https://i.stack.imgur.com/HhFQu.jpg) Is this a technical issue, or was ...
2020/04/07
[ "https://movies.stackexchange.com/questions/108616", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/80869/" ]
I've found a potential source of the issue, mentioned in the [Trivia](https://www.imdb.com/title/tt0290673/trivia?item=tr0718346) section on IMDB > > The entire film was shot on Super 16, telecined to high-definition video for color tweaking and editing, and then exported to Super 35. For many of the handheld shots, ...
It is the fault of the people who worked on the video. Yes it's shot on 16mm so it maybe it could never be as good as some videos but I believe that it could be improved if there was a budget for it. First of all it looks like the video had too much digital noise reduction applied to it. Since it's 16mm the grain is g...
36,818,466
I've **partially** solved this problem: I could get links with confirmation and resetting password. The problem is that those links pointing to the **wrong** app and I need to adjust name of app manually in order to get the right redirection. Heroku representative said that those wrong address related to code.... 1.Wh...
2016/04/24
[ "https://Stackoverflow.com/questions/36818466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
`760` is a decimal (base 10) `0760` [leading 0] is an octal number (base 8) `0x0760` [leading 0x] is a hex number (base 16) The leading 0 isn't actually part of the number, just an indicator that it is octal, not decimal.
the first bit('0' of 0760 )represent the permission including set-user-ID on execute bit, set-group-ID on execute bit and the sticky bit
36,818,466
I've **partially** solved this problem: I could get links with confirmation and resetting password. The problem is that those links pointing to the **wrong** app and I need to adjust name of app manually in order to get the right redirection. Heroku representative said that those wrong address related to code.... 1.Wh...
2016/04/24
[ "https://Stackoverflow.com/questions/36818466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
`760` is a decimal (base 10) `0760` [leading 0] is an octal number (base 8) `0x0760` [leading 0x] is a hex number (base 16) The leading 0 isn't actually part of the number, just an indicator that it is octal, not decimal.
As John3136 points out, the leading "0" signifies that the follow "number" (760) is octal and as you pointed out the permission bits for the new pipe would therefore be rwxrw---- for owner, group and everyone else.
36,818,466
I've **partially** solved this problem: I could get links with confirmation and resetting password. The problem is that those links pointing to the **wrong** app and I need to adjust name of app manually in order to get the right redirection. Heroku representative said that those wrong address related to code.... 1.Wh...
2016/04/24
[ "https://Stackoverflow.com/questions/36818466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
As John3136 points out, the leading "0" signifies that the follow "number" (760) is octal and as you pointed out the permission bits for the new pipe would therefore be rwxrw---- for owner, group and everyone else.
the first bit('0' of 0760 )represent the permission including set-user-ID on execute bit, set-group-ID on execute bit and the sticky bit
3,724,968
I would find useful, in some cases, and under the user's permission, to block the device so only the running application can be accessed unless the usrer's password (pattern or whatever is used to unlock the session) is introduced. I guess the mecanism should be something like: The application asks the os to do this, ...
2010/09/16
[ "https://Stackoverflow.com/questions/3724968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/444702/" ]
What your asking is there any type of **kiosk mode** for iOS devices. The short answer in no. The longer answer is if you're using a Jail broken device you might be able to relaunch the app on exit, but it would take significant R&D. I hade a client ask about this last week, after some investigation and thinking I to...
It makes sense, but I don't think you can do that without jailbreaking the phone. In iOS, the home button cannot be overridden by applications. Besides there is cheaper hardware out there for kiosk-style applications.
3,724,968
I would find useful, in some cases, and under the user's permission, to block the device so only the running application can be accessed unless the usrer's password (pattern or whatever is used to unlock the session) is introduced. I guess the mecanism should be something like: The application asks the os to do this, ...
2010/09/16
[ "https://Stackoverflow.com/questions/3724968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/444702/" ]
Supposedly there's a way to have a "kiosk" mode with a .mobileconfig file. Both of these articles talk about it, basically covering the same territory: <http://joris.kluivers.nl/blog/2012/03/02/kiosk-mode-for-ios/> <http://rick-hawkins.blogspot.ca/2012/01/turning-ipad-into-kiosk-device.html>
It makes sense, but I don't think you can do that without jailbreaking the phone. In iOS, the home button cannot be overridden by applications. Besides there is cheaper hardware out there for kiosk-style applications.
3,724,968
I would find useful, in some cases, and under the user's permission, to block the device so only the running application can be accessed unless the usrer's password (pattern or whatever is used to unlock the session) is introduced. I guess the mecanism should be something like: The application asks the os to do this, ...
2010/09/16
[ "https://Stackoverflow.com/questions/3724968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/444702/" ]
I was looking into this again and found out that iOS already supports the feature. It is called [Guided Access](https://support.apple.com/en-us/HT202612), it was incorporated on iOS 6, it does not require jailbreak and can be used for any app installed on the device.
It makes sense, but I don't think you can do that without jailbreaking the phone. In iOS, the home button cannot be overridden by applications. Besides there is cheaper hardware out there for kiosk-style applications.
3,724,968
I would find useful, in some cases, and under the user's permission, to block the device so only the running application can be accessed unless the usrer's password (pattern or whatever is used to unlock the session) is introduced. I guess the mecanism should be something like: The application asks the os to do this, ...
2010/09/16
[ "https://Stackoverflow.com/questions/3724968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/444702/" ]
What your asking is there any type of **kiosk mode** for iOS devices. The short answer in no. The longer answer is if you're using a Jail broken device you might be able to relaunch the app on exit, but it would take significant R&D. I hade a client ask about this last week, after some investigation and thinking I to...
Supposedly there's a way to have a "kiosk" mode with a .mobileconfig file. Both of these articles talk about it, basically covering the same territory: <http://joris.kluivers.nl/blog/2012/03/02/kiosk-mode-for-ios/> <http://rick-hawkins.blogspot.ca/2012/01/turning-ipad-into-kiosk-device.html>
3,724,968
I would find useful, in some cases, and under the user's permission, to block the device so only the running application can be accessed unless the usrer's password (pattern or whatever is used to unlock the session) is introduced. I guess the mecanism should be something like: The application asks the os to do this, ...
2010/09/16
[ "https://Stackoverflow.com/questions/3724968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/444702/" ]
I was looking into this again and found out that iOS already supports the feature. It is called [Guided Access](https://support.apple.com/en-us/HT202612), it was incorporated on iOS 6, it does not require jailbreak and can be used for any app installed on the device.
Supposedly there's a way to have a "kiosk" mode with a .mobileconfig file. Both of these articles talk about it, basically covering the same territory: <http://joris.kluivers.nl/blog/2012/03/02/kiosk-mode-for-ios/> <http://rick-hawkins.blogspot.ca/2012/01/turning-ipad-into-kiosk-device.html>
2,370,978
I'm asking this out of curiosity rather than due to a real need to know, but I can't think of any good reasons for `MethodInfo.Invoke` to wrap its exceptions. Were it to let them pass unwrapped, debugging such exceptions in Visual Studio would be a tiny bit easier - I wouldn't have to ask VS to stop on first-chance ex...
2010/03/03
[ "https://Stackoverflow.com/questions/2370978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33080/" ]
> > Am I missing some important function > that this wrapping provides that would > not be possible had Invoke let > exceptions pass unwrapped? > > > Yes. One argument is to be able to **distinguish between exception throw by the target method and exception thrown by the reflection mechanism itself**. Ex. the `...
If there is a situation, where the TargetInvocationException can be thrown without the invoked method throwing and exception, it makes sense. I'm not sure if there's such a case.
99,906
I have a wallet.dat file which is encrypted and I can remember that I have put only numbers as password(4 or 5 digits, not more, not less). My friend suggested to do brute force on it using python. I tried googling and unfortunately(poor programming) didn't got any python script. Can anyone help me please ?
2020/11/08
[ "https://bitcoin.stackexchange.com/questions/99906", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/111826/" ]
I would approach this using JSON-RPC with the programming language of your choice and the `walletpassphrase` command. `walletpassphrase "12345" 60` The 60 at the end is number of seconds before the passphrase times out and needs to be entered again. Now all you need to do is create a loop that iterates through all nu...
To bruteforce a wallet.dat file you would need to follow these steps. 1. Install python from python.org 2. Download john the ripper from github 3. run the script bitcoin2john.py to extract the hash 4. get hashcat from hashcat.net With hashcat you can search the entire space of numbers of your choice using a mask ?d?d...
38,476,754
I am looking for an option to have a free database on Azure. From the [article](http://www.dotnetcurry.com/windows-azure/883/host-aspnet-mvc-azure-without-database) I see that there is an option to have free DB on Azure. But it works for standard ASP.NET MVC. How can I achieve this in ASP.NET Core ? Or, maybe Azure pr...
2016/07/20
[ "https://Stackoverflow.com/questions/38476754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1554718/" ]
there used to be a free SKU for SQL server, but's no longer available. the only free db option you have atm is ClearDB's hosted MySQL (Mercury tier). if you have the correct DB drivers or framework then you can do this easily : <https://docs.asp.net/en/latest/data/index.html> Hope this helps
Once you have created the free database you can use it for any purpose you desire. You can get the connection string and add allowed IP addresses through the Azure portal.
38,476,754
I am looking for an option to have a free database on Azure. From the [article](http://www.dotnetcurry.com/windows-azure/883/host-aspnet-mvc-azure-without-database) I see that there is an option to have free DB on Azure. But it works for standard ASP.NET MVC. How can I achieve this in ASP.NET Core ? Or, maybe Azure pr...
2016/07/20
[ "https://Stackoverflow.com/questions/38476754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1554718/" ]
there used to be a free SKU for SQL server, but's no longer available. the only free db option you have atm is ClearDB's hosted MySQL (Mercury tier). if you have the correct DB drivers or framework then you can do this easily : <https://docs.asp.net/en/latest/data/index.html> Hope this helps
During development I am using SQLLite, which is free and works like a charm. It is perfect for small applications. Using it with Entity Framework however might cause some issues when database changes are introduced later. But once you switch to production you can just use a different database provider.
47,024,428
I have a column in `pandas` data frame like below. Column name is `ABC` ``` ABC Fuel FUEL Fuel_12_ab Fuel_1 Lube Lube_1 Lube_12_a cat_Lube ``` Now I want to replace the values in this column using regex like below ``` ABC Fuel FUEL Fuel Fuel Lube Lube Lube cat_Lube ``` How can we do this type of string matching i...
2017/10/30
[ "https://Stackoverflow.com/questions/47024428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6237241/" ]
Use positive lookbehind for `lube` or `fuel` while ignoring case. ``` import re import pandas as pd pat = re.compile('(?<=lube|fuel)_', re.IGNORECASE) df.assign(ABC=[re.split(pat, x, 1)[0] for x in df.ABC]) ABC 0 Fuel 1 FUEL 2 Fuel 3 Fuel 4 Lube 5 Lube 6 Lube 7 cat_Lube ...
``` In [63]: df.ABC.str.replace(r'_\d+.*', r'') Out[63]: 0 Fuel 1 FUEL 2 Fuel 3 Fuel 4 Lube 5 Lube 6 Lube 7 cat_Lube Name: ABC, dtype: object ```
47,024,428
I have a column in `pandas` data frame like below. Column name is `ABC` ``` ABC Fuel FUEL Fuel_12_ab Fuel_1 Lube Lube_1 Lube_12_a cat_Lube ``` Now I want to replace the values in this column using regex like below ``` ABC Fuel FUEL Fuel Fuel Lube Lube Lube cat_Lube ``` How can we do this type of string matching i...
2017/10/30
[ "https://Stackoverflow.com/questions/47024428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6237241/" ]
Use positive lookbehind for `lube` or `fuel` while ignoring case. ``` import re import pandas as pd pat = re.compile('(?<=lube|fuel)_', re.IGNORECASE) df.assign(ABC=[re.split(pat, x, 1)[0] for x in df.ABC]) ABC 0 Fuel 1 FUEL 2 Fuel 3 Fuel 4 Lube 5 Lube 6 Lube 7 cat_Lube ...
Alt with `str.extract`: ``` df.ABC.str.extract('^(.*?)(?=_\d|$)', expand=False) 0 Fuel 1 FUEL 2 Fuel 3 Fuel 4 Lube 5 Lube 6 Lube 7 cat_Lube Name: ABC, dtype: object ``` --- Extension courtesy piRSquared: ``` df.ABC.str.extract('(.*(?<=lube|fuel)).*', re.IGNORECA...
59,919,760
Beginner to R! Bit of a bizarre question, but is anyone familiar with the compareGroups package in R? There's a function to export files, but I have no idea where the file ends up in - can't seem to find it doing a computer search. (I use RStudio). The CRAN guide wasn't particularly helpful. The functions I tried were...
2020/01/26
[ "https://Stackoverflow.com/questions/59919760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12742670/" ]
The c++ documentation explains that [`operator!`](https://en.cppreference.com/w/cpp/io/basic_ios/operator!) > > Returns `true` if an error has occurred on the associated stream. Specifically, returns `true` if `badbit` or `failbit` is set in `rdstate()` > > > On the other hand, [`is_open()`](https://en.cpprefere...
If you read the documentation, you'll see that [operator!](https://en.cppreference.com/w/cpp/io/basic_ios/operator!) returns whether an error has occurred. While [is\_open](https://en.cppreference.com/w/cpp/io/basic_fstream/is_open) returns whether the stream has an associated file. Two *very different* things.
42,479,351
I'm trying to perform a SUM function, but I only want it to return a value if all the fields are not null. Right now when it performs the SUM, it skips over NULL values and just adds up the non-nulls. What I would like to happen is, if even one value is null in the sum, it'll just return null. Here is a sample table: ...
2017/02/27
[ "https://Stackoverflow.com/questions/42479351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1447861/" ]
You can do something like: ``` Select case when count( case when price + quant is null then 1 end ) = 0 then sum(price*quant) end as val From your_table; ``` We are checking price + quant for null because null + anything is null, if either price or quant is null, it will return null. You can of course use o...
``` SELECT SUM((Price * Quant)) FROM [Table_1] WHERE Price IS NOT NULL WHERE Quant IS NOT NULL ``` You can run this script
42,479,351
I'm trying to perform a SUM function, but I only want it to return a value if all the fields are not null. Right now when it performs the SUM, it skips over NULL values and just adds up the non-nulls. What I would like to happen is, if even one value is null in the sum, it'll just return null. Here is a sample table: ...
2017/02/27
[ "https://Stackoverflow.com/questions/42479351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1447861/" ]
You can do something like: ``` Select case when count( case when price + quant is null then 1 end ) = 0 then sum(price*quant) end as val From your_table; ``` We are checking price + quant for null because null + anything is null, if either price or quant is null, it will return null. You can of course use o...
I would do it like this... ``` SELECT CASE WHEN MAX(T2.NoValue) IS NOT NULL THEN NULL ELSE SUM(Price * Quant) END AS Total FROM Table_1 T1 LEFT JOIN ( SELECT TOP 1 1 AS NoValue FROM Table_1 WHERE Quant IS NULL OR Price IS NULL ) T2 ON NoValue = 1 ; ```
42,479,351
I'm trying to perform a SUM function, but I only want it to return a value if all the fields are not null. Right now when it performs the SUM, it skips over NULL values and just adds up the non-nulls. What I would like to happen is, if even one value is null in the sum, it'll just return null. Here is a sample table: ...
2017/02/27
[ "https://Stackoverflow.com/questions/42479351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1447861/" ]
You can do something like: ``` Select case when count( case when price + quant is null then 1 end ) = 0 then sum(price*quant) end as val From your_table; ``` We are checking price + quant for null because null + anything is null, if either price or quant is null, it will return null. You can of course use o...
How about this way: ``` SELECT case when Quant is null then null else SUM((Price * Quant)) as this_sum end FROM [Table_1] ```
42,479,351
I'm trying to perform a SUM function, but I only want it to return a value if all the fields are not null. Right now when it performs the SUM, it skips over NULL values and just adds up the non-nulls. What I would like to happen is, if even one value is null in the sum, it'll just return null. Here is a sample table: ...
2017/02/27
[ "https://Stackoverflow.com/questions/42479351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1447861/" ]
You can do something like: ``` Select case when count( case when price + quant is null then 1 end ) = 0 then sum(price*quant) end as val From your_table; ``` We are checking price + quant for null because null + anything is null, if either price or quant is null, it will return null. You can of course use o...
If you want to test for nullness of both Price and Quant, you can use the following: ``` -- Sample T-SQL schema to demonstrate the SQL query DECLARE @tb TABLE ( Price INT NULL, Quant INT NULL ) INSERT INTO @tb(price, quant) VALUES (10, null) INSERT INTO @tb(price, quant) VALUES (20, 100) IF EXISTS(SELECT 1 F...
3,524,602
HI, i am creating an login screen to my iphone application. i am sending the username and password to php using NSURLConnection method. i can successfully send login details to php. My php page returning status values based on the login details. **(status =OK / Fail , redirectionUrl=<http://www.balalaa.com>)** In Did...
2010/08/19
[ "https://Stackoverflow.com/questions/3524602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355685/" ]
``` NSString *urlDataString = //Whatever data was returned from the server as an NSString NSArray *parameters = [urlDataString componentsSeparatedByString:@"&"]; NSMutableDictionary *parameterDictionary = [NSMutableDictionary dictionary]; for (NSString *parameter in parameters) { NSArray *parameterComponents = [para...
You can use the php implementation of plists which can be found here <http://code.google.com/p/cfpropertylist/> It allows you to crete plists, you then add a NSDictionary to it and then add the strings, arrays, data or more dictionaries into the initial dictionary. You can echo the plist in either an xml format or b...
3,524,602
HI, i am creating an login screen to my iphone application. i am sending the username and password to php using NSURLConnection method. i can successfully send login details to php. My php page returning status values based on the login details. **(status =OK / Fail , redirectionUrl=<http://www.balalaa.com>)** In Did...
2010/08/19
[ "https://Stackoverflow.com/questions/3524602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/355685/" ]
``` NSString *urlDataString = //Whatever data was returned from the server as an NSString NSArray *parameters = [urlDataString componentsSeparatedByString:@"&"]; NSMutableDictionary *parameterDictionary = [NSMutableDictionary dictionary]; for (NSString *parameter in parameters) { NSArray *parameterComponents = [para...
Try this function to parse the NSData, I use it in a helper class. It uses JSONDecoder for iOS <5 ``` + (NSDictionary *) JSONObjectWithData:(NSData *)data { Class jsonSerializationClass = NSClassFromString(@"NSJSONSerialization"); if (!jsonSerializationClass) { //iOS < 5 didn't have the JSON serializat...
59,072,863
Disclaimer: I am totally new to Gnuplot, so I am probably missing something obvious... For a presentation that I have to give, I am trying to use Gnuplot for creating an interactive version of [this](https://en.wikipedia.org/wiki/Maxima_and_minima#/media/File:MaximumCounterexample.png) plot. Up to now, I have come up...
2019/11/27
[ "https://Stackoverflow.com/questions/59072863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5859277/" ]
Answering from the future, sort of, so this may not count... Versions of gnuplot through 5.2 cannot do exactly what you want. However the development version 5.3 does this by default so long as you use a pm3d surface rather than a hidden3d surface. Here is your plot as rendered by the current development code: ``` se...
Maybe you can the following line of code to force the zrange. ``` set ticslevel 0 ```