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
4,588,935
I'm trying to figure out a way to return results by using the group by function. GROUP BY is working as expected, but my question is: Is it possible to have a group by ignoring the NULL field. So that it does not group NULLs together because I still need all the rows where the specified field is NULL. ``` SELECT `tab...
2011/01/03
[ "https://Stackoverflow.com/questions/4588935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/238975/" ]
``` SELECT table1.*, GROUP_CONCAT(id SEPARATOR ',') AS children_ids FROM table1 WHERE (enabled = 1) GROUP BY ancestor , CASE WHEN ancestor IS NULL THEN table1.id ELSE 0 END ```
**To union multiple tables and group\_concat different column and a sum of the column for the (unique primary or foreign key) column to display a value in the same row** ``` select column1,column2,column3,GROUP_CONCAT(if(column4='', null, column4)) as column4,sum(column5) as column5 from ( select column1,group_...
29,938
We would like to schedule a item backup(package) on specific time. Is it possible to create a package of the items while scheduling it?
2021/10/06
[ "https://sitecore.stackexchange.com/questions/29938", "https://sitecore.stackexchange.com", "https://sitecore.stackexchange.com/users/6671/" ]
You can try with Sitecore Powershell Extensions. Packaging with SPE - <https://doc.sitecorepowershell.com/modules/packaging> Then create a task scheduler to run this powershell script - <https://doc.sitecorepowershell.com/modules/integration-points/tasks>
To create Sitecore Package programmatically performs below steps which described by **Hishaam Namooya** in one of his articles. I am giving you the reference of that article as well: 1. First step is to create a new Package Project ``` var packageProject = new PackageProject { Metadata = { PackageName...
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
Like this: ``` sentence = 'Sentence!' import re tokens = re.findall(r'.(..)', sentence) print('', '-'.join(tokens), sep='-') # prints: -en-en-e! ``` --- Edit: Addressing the question in the comments: > > This works, although how can I get this to start on the 3rd letter? > > > You could try this: ``` toke...
What you're trying to achieve isn't possible using a slice, because the indices you want to keep (1, 2, 4, 5, 7, 8) are not an [arithmetic progression](https://en.wikipedia.org/wiki/Arithmetic_progression). Since the goal is to replace the first character of every three with a `-` symbol, the simplest solution I can t...
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
What you're trying to achieve isn't possible using a slice, because the indices you want to keep (1, 2, 4, 5, 7, 8) are not an [arithmetic progression](https://en.wikipedia.org/wiki/Arithmetic_progression). Since the goal is to replace the first character of every three with a `-` symbol, the simplest solution I can t...
Another attempt: ``` sentence = ("Sentence!") print(''.join(ch if i % 3 else '-' for i, ch in enumerate(sentence))) ``` Prints: ``` -en-en-e! ``` --- If `sentence='Hello, world!'`: ``` -el-o,-wo-ld- ```
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
What you're trying to achieve isn't possible using a slice, because the indices you want to keep (1, 2, 4, 5, 7, 8) are not an [arithmetic progression](https://en.wikipedia.org/wiki/Arithmetic_progression). Since the goal is to replace the first character of every three with a `-` symbol, the simplest solution I can t...
You can use slice assignment: ``` def invert(string, step, sep): sentence = list(string) sentence[::step] = len(sentence[::step]) * [sep] return ''.join(sentence) print(invert('Sentence!', 3, '*')) # *en*en*e! print(invert('Hallo World!', 4, '$')) # $all$ Wo$ld! ```
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
Like this: ``` sentence = 'Sentence!' import re tokens = re.findall(r'.(..)', sentence) print('', '-'.join(tokens), sep='-') # prints: -en-en-e! ``` --- Edit: Addressing the question in the comments: > > This works, although how can I get this to start on the 3rd letter? > > > You could try this: ``` toke...
If you want to truly invert the range, then take the indices *not* in that range: ``` ''.join(sentence[i] if i not in range(0, len(sentence), 3) else '-' for i in range(len(sentence))) ``` Output ``` '-en-en-e!' ``` Personally, I prefer the regex solutions.
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
Like this: ``` sentence = 'Sentence!' import re tokens = re.findall(r'.(..)', sentence) print('', '-'.join(tokens), sep='-') # prints: -en-en-e! ``` --- Edit: Addressing the question in the comments: > > This works, although how can I get this to start on the 3rd letter? > > > You could try this: ``` toke...
Another attempt: ``` sentence = ("Sentence!") print(''.join(ch if i % 3 else '-' for i, ch in enumerate(sentence))) ``` Prints: ``` -en-en-e! ``` --- If `sentence='Hello, world!'`: ``` -el-o,-wo-ld- ```
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
Like this: ``` sentence = 'Sentence!' import re tokens = re.findall(r'.(..)', sentence) print('', '-'.join(tokens), sep='-') # prints: -en-en-e! ``` --- Edit: Addressing the question in the comments: > > This works, although how can I get this to start on the 3rd letter? > > > You could try this: ``` toke...
You can use slice assignment: ``` def invert(string, step, sep): sentence = list(string) sentence[::step] = len(sentence[::step]) * [sep] return ''.join(sentence) print(invert('Sentence!', 3, '*')) # *en*en*e! print(invert('Hallo World!', 4, '$')) # $all$ Wo$ld! ```
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
If you want to truly invert the range, then take the indices *not* in that range: ``` ''.join(sentence[i] if i not in range(0, len(sentence), 3) else '-' for i in range(len(sentence))) ``` Output ``` '-en-en-e!' ``` Personally, I prefer the regex solutions.
Another attempt: ``` sentence = ("Sentence!") print(''.join(ch if i % 3 else '-' for i, ch in enumerate(sentence))) ``` Prints: ``` -en-en-e! ``` --- If `sentence='Hello, world!'`: ``` -el-o,-wo-ld- ```
59,075,243
html code ```js function getQuerystring() { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVa...
2019/11/27
[ "https://Stackoverflow.com/questions/59075243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12447356/" ]
If you want to truly invert the range, then take the indices *not* in that range: ``` ''.join(sentence[i] if i not in range(0, len(sentence), 3) else '-' for i in range(len(sentence))) ``` Output ``` '-en-en-e!' ``` Personally, I prefer the regex solutions.
You can use slice assignment: ``` def invert(string, step, sep): sentence = list(string) sentence[::step] = len(sentence[::step]) * [sep] return ''.join(sentence) print(invert('Sentence!', 3, '*')) # *en*en*e! print(invert('Hallo World!', 4, '$')) # $all$ Wo$ld! ```
34,667,409
Is it normal that a border color would be inherited from font's `color` property? I was surprised to find that: ```css div { border: 4px solid; color: red; height: 100px; width: 100px; } ``` ```html <div></div> ``` [JSBIN](http://jsbin.com/muzefigubi/edit?html,css,output) gives me a div with a red border....
2016/01/08
[ "https://Stackoverflow.com/questions/34667409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1252748/" ]
Based on [section 4.1](http://www.w3.org/TR/css3-background/#the-border-color) of the relevant [Backgrounds and Borders Module spec](http://www.w3.org/TR/css3-background), the initial `border-color` value is [`currentColor`](http://www.w3.org/TR/css3-color/#currentcolor): > > [**CSS Color Module - 4.4. `currentColor`...
In CSS, an element can have one of two "primary" colors: a foreground color, specified by the `color` property, and a background color, specified by the `background-color` property. Lots of other properties accept a color, but having black as the initial color value would be very arbitrary, so instead properties that a...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
What you're referring to as types are not types. The type `T` you mention in the title would be (in this case) a pointer to a char. You're correct that when it comes to structs, alignment is a factor that can lead to padding being added, which may mean that your struct takes up more bytes than meets the eye. Having s...
Strictly speaking a 2-D array is an array of pointers to 1-D arrays. In general you cannot assume more than that. I would take the view that if you *want* a contiguous block of of any type then *declare* a contiguous 1D block, rather than hoping for any particular layout from the compiler or runtime. Now a compiler p...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
An array of M elements of type A has all its elements in contiguous positions in memory, without padding bytes at all. This fact is not depending on the nature of A. Now, if A is the type "array of N elements having type T", then each element in the T-type array will have, again, N contiguous positions in memory. All ...
What you're referring to as types are not types. The type `T` you mention in the title would be (in this case) a pointer to a char. You're correct that when it comes to structs, alignment is a factor that can lead to padding being added, which may mean that your struct takes up more bytes than meets the eye. Having s...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
Let's consider ``` T array[size]; array[0]; // 1 ``` `1` is formally defined as: > > The definition of the subscript operator [] is that `E1[E2]` is > identical to `(*((E1)+(E2)))` > > > per §6.5.2.1, clause 2 taken from the standard C draft N1570. When applied to multi-dimensional arrays, «array whose ele...
What you're referring to as types are not types. The type `T` you mention in the title would be (in this case) a pointer to a char. You're correct that when it comes to structs, alignment is a factor that can lead to padding being added, which may mean that your struct takes up more bytes than meets the eye. Having s...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
An array of M elements of type A has all its elements in contiguous positions in memory, without padding bytes at all. This fact is not depending on the nature of A. Now, if A is the type "array of N elements having type T", then each element in the T-type array will have, again, N contiguous positions in memory. All ...
Strictly speaking a 2-D array is an array of pointers to 1-D arrays. In general you cannot assume more than that. I would take the view that if you *want* a contiguous block of of any type then *declare* a contiguous 1D block, rather than hoping for any particular layout from the compiler or runtime. Now a compiler p...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
Let's consider ``` T array[size]; array[0]; // 1 ``` `1` is formally defined as: > > The definition of the subscript operator [] is that `E1[E2]` is > identical to `(*((E1)+(E2)))` > > > per §6.5.2.1, clause 2 taken from the standard C draft N1570. When applied to multi-dimensional arrays, «array whose ele...
Strictly speaking a 2-D array is an array of pointers to 1-D arrays. In general you cannot assume more than that. I would take the view that if you *want* a contiguous block of of any type then *declare* a contiguous 1D block, rather than hoping for any particular layout from the compiler or runtime. Now a compiler p...
34,250,929
Hello Everyone! =============== I am somehow what new to coding and stumbled across a problem. I managed to find a solution myself but I am of certain there are better solutions for it! I will try to descripe my problem as good as my bad english skills allow me to and my solution right after. The point is, I would ...
2015/12/13
[ "https://Stackoverflow.com/questions/34250929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5671939/" ]
An array of M elements of type A has all its elements in contiguous positions in memory, without padding bytes at all. This fact is not depending on the nature of A. Now, if A is the type "array of N elements having type T", then each element in the T-type array will have, again, N contiguous positions in memory. All ...
Let's consider ``` T array[size]; array[0]; // 1 ``` `1` is formally defined as: > > The definition of the subscript operator [] is that `E1[E2]` is > identical to `(*((E1)+(E2)))` > > > per §6.5.2.1, clause 2 taken from the standard C draft N1570. When applied to multi-dimensional arrays, «array whose ele...
15,930,241
Introduction ------------ I currently have a list (with `ul` and `li`'s). It's made sortable using jQuery: ``` $( "#sortable1" ).sortable({ update : function () { var items = $('#sortable1').sortable('serialize'); alert(items); } }); $( "#sortable1" ).disableSelection(); ``` ...
2013/04/10
[ "https://Stackoverflow.com/questions/15930241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/659731/" ]
Change the css to target list elements based on index, and not class, and it will update automatically: ``` #sortable li:first-child { background-color: red; } #sortable li:nth-child(2) { background-color: green; } #sortable li:nth-child(3) { background-color: yellow; } #sortable li:last-child { background-color: blue...
Use the nth-child css pseudo-class... ``` #sortable li:nth-child(1) { background-color: red; } #sortable li:nth-child(2) { background-color: green; } #sortable li:nth-child(3) { background-color: yellow; } #sortable li:nth-child(4) { background-color: blue; } ```
15,930,241
Introduction ------------ I currently have a list (with `ul` and `li`'s). It's made sortable using jQuery: ``` $( "#sortable1" ).sortable({ update : function () { var items = $('#sortable1').sortable('serialize'); alert(items); } }); $( "#sortable1" ).disableSelection(); ``` ...
2013/04/10
[ "https://Stackoverflow.com/questions/15930241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/659731/" ]
Use the nth-child css pseudo-class... ``` #sortable li:nth-child(1) { background-color: red; } #sortable li:nth-child(2) { background-color: green; } #sortable li:nth-child(3) { background-color: yellow; } #sortable li:nth-child(4) { background-color: blue; } ```
jQuery UI's Sortable is based on the principle of moving entire DOM elements around. As you correctly notice, the whole DOM object is moved including all its contents and all its attributes and, hence, its classes. A couple of approaches occur to me: 1. change your CSS so that it doesn't require classes on the `<li>...
15,930,241
Introduction ------------ I currently have a list (with `ul` and `li`'s). It's made sortable using jQuery: ``` $( "#sortable1" ).sortable({ update : function () { var items = $('#sortable1').sortable('serialize'); alert(items); } }); $( "#sortable1" ).disableSelection(); ``` ...
2013/04/10
[ "https://Stackoverflow.com/questions/15930241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/659731/" ]
Change the css to target list elements based on index, and not class, and it will update automatically: ``` #sortable li:first-child { background-color: red; } #sortable li:nth-child(2) { background-color: green; } #sortable li:nth-child(3) { background-color: yellow; } #sortable li:last-child { background-color: blue...
jQuery UI's Sortable is based on the principle of moving entire DOM elements around. As you correctly notice, the whole DOM object is moved including all its contents and all its attributes and, hence, its classes. A couple of approaches occur to me: 1. change your CSS so that it doesn't require classes on the `<li>...
18,723,054
I am working on a hotel project and I need to check the availability of rooms. Here the logic is first need to check the room availability if it is not available then I need to check if checkout date entered by the customer is equal to the checkout date of any customer: ``` ALTER PROCEDURE [dbo].[customerdetails] (@Ch...
2013/09/10
[ "https://Stackoverflow.com/questions/18723054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2765331/" ]
The problem is actually here, where you just say `IF (get result)`: ``` ELSE IF(SELECT * FROM Customerdetail WHERE RoomType = @RoomType AND CheckOut = @CheckOut) ``` This should be, I think, either `IF (get result) = something` or `IF something (about result)`, e.g.: ...
Change: ``` IF ( (SELECT Available FROM rooms WHERE roomtype = @RoomType) > 0 ) ``` to: ``` IF ( exists(SELECT Available FROM rooms WHERE roomtype = @RoomType) ) ```
55,413,925
My goal is to automatically push files when edited with the help of gulp by executing "clasp push" on the terminal on my behalf. I got this error when I wrote the following in gulpfile.js ``` const gulp = require("gulp"); const exec = require("child_process"); gulp.task('push', function () { exec("clasp push") }...
2019/03/29
[ "https://Stackoverflow.com/questions/55413925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6563022/" ]
The quick fix to that particular error is that you have called `gulp.series` on an empty/non-existant task in your `push` task. `gulp.series` is expecting either a list of strings corresponding to tasks you've declared (such as `push`, `watch`, and `default`) or task functions. Getting rid of the the `''` task in the...
``` For re-write this gulpfile.js in gulp version 4.0 Please updated your gulpfile.js according to your requirement. this solution for assert.js:350 throw err; Bootstarp 4, SASS, gulp 4. ``` //////////////////////////////////////////////////////////////////////////////// ``` var gulp = require...
35,384,042
I am doing long polling in my app, checking for new data every 500ms then update my textview when there is a new change. It's doing fine but after a few minutes, my app just crashes and gives me this error: ``` java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again ...
2016/02/13
[ "https://Stackoverflow.com/questions/35384042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3812817/" ]
I'm not sure what is wrong with your code but I can give you few tips first of all, Read the android documentations on how to make a singleton class for volley, you are creating a new RequestQueue every time you send a request, I use one queue for my whole app, maybe in some cases you create more but I can't think of ...
Consider using Rxjava with Retrolambda for this ``` Observable.interval(500, TimeUnit.MILLISECONDS, Schedulers.io()).map(tick -> sendRequest()).doOnError(err -> //handle error).observeOn(AndroidSchedulers.mainThread()).subscribe(//handle subscription); ``` Update: For java7 and 6 use this ``` .map(new Func1<Long...
5,464
I'm skeptical about this actually working. I would appreciate if someone could provide a logical answer that will clear up my skepticism.
2014/11/12
[ "https://buddhism.stackexchange.com/questions/5464", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2229/" ]
Sometimes it doesn't work very well: there are examples of reincarnations who behave badly. And they must make it work: for example the current Dalai Lama wasn't keen to study, when he was young, his teacher had to make him study by threatening him with a whip. [At Home With the Dalai Lama](http://www.huffingtonpost....
If a monk has attained one of those supernatural powers that allows seeing peoples' previous lives, he would simply just know it and there'd be no need to "filter" out the wrong persons. Otherwise, there's no guarantee on finding the right guy.. > > "...With his mind thus concentrated, purified, and bright, unblemish...
3,638,192
Given a Gram matrix G 3x3 = {{25,-14,-9},{-14,12,14},{-9,14,25}} is there such a system of 3 vectors in R^3 whose gram matrix is ​​equal to G. I have a stupid idea to write down 6 equations (from Gram matrix rule), but I don't know what to do next. IS there any algorithm?
2020/04/22
[ "https://math.stackexchange.com/questions/3638192", "https://math.stackexchange.com", "https://math.stackexchange.com/users/772602/" ]
To prove this, you really just need to apply the definitions of a group and also you need to understand that a group is closed under its operation. [![enter image description here](https://i.stack.imgur.com/7LHfO.png)](https://i.stack.imgur.com/7LHfO.png)
We can prove a general one: > > Let $H$ be a subgroup of $G$, $a,\,b\in G$. Then $aH=bH$ if and only if $a^{-1}b\in H$. > > > If $a^{-1}b\in H$, then $b=ah\_0$ for some $h\_0\in H$; thus $bh=a(h\_0h)\in aH$ and $ah=b(h\_0^{-1}h)\in bH$ for any $h\in H$, which means $aH=bH$. If $aH=bH$, then $ah\_1=bh\_2$ for som...
3,638,192
Given a Gram matrix G 3x3 = {{25,-14,-9},{-14,12,14},{-9,14,25}} is there such a system of 3 vectors in R^3 whose gram matrix is ​​equal to G. I have a stupid idea to write down 6 equations (from Gram matrix rule), but I don't know what to do next. IS there any algorithm?
2020/04/22
[ "https://math.stackexchange.com/questions/3638192", "https://math.stackexchange.com", "https://math.stackexchange.com/users/772602/" ]
To prove this, you really just need to apply the definitions of a group and also you need to understand that a group is closed under its operation. [![enter image description here](https://i.stack.imgur.com/7LHfO.png)](https://i.stack.imgur.com/7LHfO.png)
Forward implication: \begin{alignat}{1} &H=Hx \Longrightarrow \\ &H\subseteq Hx \Longrightarrow \\ &\forall h \in H, \exists h'\in H \mid h=h'x \Longrightarrow \\ &\exists h'\in H \mid e=h'x \Longrightarrow \\ &H\ni h'=x^{-1}\Longrightarrow \\ &x\in H \\ \tag 1 \end{alignat} Reverse implication: \begin{alignat}{1} &...
356,029
I am a plugin developer for Magento. We recently got a mail that our marketplace submission will be delisted, because it is not compatible with the latest Adobe commerce release. When using composer to install this enterprise version we get (doesn't matter what stability is chosen, in this example dev): executing fro...
2022/05/20
[ "https://magento.stackexchange.com/questions/356029", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/105253/" ]
Make sure you remove all modules from the vendor folder before updating to a complete new Magento version. I suspect some files are hanging in IDE or Docker sync. So: rm -rf vendor/\* && composer update/install.
For me, it is because of the **Smile\_ElasticsuiteCore** extension issue with PHP 8. Seems not compatible with PHP 8. Cannot use 'match' as an identifier. It is a reserved keyword since PHP 8.0 See below class names: * app/code/Smile/ElasticsuiteCore/Search/Request/Query/Match.php * app/code/Smile/ElasticsuiteCore/S...
356,029
I am a plugin developer for Magento. We recently got a mail that our marketplace submission will be delisted, because it is not compatible with the latest Adobe commerce release. When using composer to install this enterprise version we get (doesn't matter what stability is chosen, in this example dev): executing fro...
2022/05/20
[ "https://magento.stackexchange.com/questions/356029", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/105253/" ]
Make sure you remove all modules from the vendor folder before updating to a complete new Magento version. I suspect some files are hanging in IDE or Docker sync. So: rm -rf vendor/\* && composer update/install.
You may face this issue if your files under following modules are not updated correctly. (I was trying to update from Adobe Commerce 2.3.5-p2 to 2.4.5-p1 version) ``` \vendor\magento\framework\Search\Request\Query \vendor\magento\framework\Search\Adapter\Mysql\Query\Builder \vendor\phpunit\phpunit-mock-objects\src\Bui...
356,029
I am a plugin developer for Magento. We recently got a mail that our marketplace submission will be delisted, because it is not compatible with the latest Adobe commerce release. When using composer to install this enterprise version we get (doesn't matter what stability is chosen, in this example dev): executing fro...
2022/05/20
[ "https://magento.stackexchange.com/questions/356029", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/105253/" ]
For me, it is because of the **Smile\_ElasticsuiteCore** extension issue with PHP 8. Seems not compatible with PHP 8. Cannot use 'match' as an identifier. It is a reserved keyword since PHP 8.0 See below class names: * app/code/Smile/ElasticsuiteCore/Search/Request/Query/Match.php * app/code/Smile/ElasticsuiteCore/S...
You may face this issue if your files under following modules are not updated correctly. (I was trying to update from Adobe Commerce 2.3.5-p2 to 2.4.5-p1 version) ``` \vendor\magento\framework\Search\Request\Query \vendor\magento\framework\Search\Adapter\Mysql\Query\Builder \vendor\phpunit\phpunit-mock-objects\src\Bui...
5,472
You've been known to your government to be an expert in decrypting messages for years so you're not really surprised when a man in a black suit knocks on your door one rainy afternoon. *“Good afternoon, your country needs you.”* Much later, somewhere you’ve never been and would never know how to get to – or get out ...
2014/11/23
[ "https://puzzling.stackexchange.com/questions/5472", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/5840/" ]
Ok, this is what happened. In the hotel room, > > the first suspect received a long stream of letters in Morse code, and the dimensions of the matrix: 17x23. He arranged the letters in the matrix in order, > > > and that's how the keynote came to be. The keyword can be obtained by > > looking at the position...
As the correct answer has been found, I finish up this puzzle by presenting some solution bitmaps for easier understanding. The solution is identical to the one accepted. **What the hints tell you:** > > The message was spelled in Morse-code with the numbers specifying the grid. The CASE of the letters can therefor...
41,688,414
I created a **CoreModule** that's imported in the **AppModule** after the **AppRoutingModule** where I specify the entry point to the app, but I'm having the problem that when the app launches it displays the wildcard route, here's my code: **CoreRoutingModule** ``` export const CoreRoutingModule = RouterModule.forRo...
2017/01/17
[ "https://Stackoverflow.com/questions/41688414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3809894/" ]
Did you import `ToolbarModule` inside your app.module.ts ? ``` import { ToolbarModule } from 'primeng/toolbar'; ```
The error message tells you what needs to be done. In the module which declares your component, add `CUSTOM_ELEMENTS_SCHEMA` to your imports, eg: ``` import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; ``` (You will already be importing `NgModule` from `@angular/core`, so just add the new import to thi...
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild detects build failures by exit codes. You should ensure that your test execution returns a non-zero exit code on failure. [`POST_BUILD` will always run as long as `BUILD` was also run](https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html#view-build-details-phases) (regardless of `BU...
I just wanted to point out that if you want the whole execution to stop when a command fails, you may specify the `-e` option: * When running a bash file ```sh - /bin/bash -e ./commands.sh ``` * Or when running a set of commands/bash file ```sh #!/bin/bash set -e # ... commands ```
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild detects build failures by exit codes. You should ensure that your test execution returns a non-zero exit code on failure. [`POST_BUILD` will always run as long as `BUILD` was also run](https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html#view-build-details-phases) (regardless of `BU...
CodeBuild uses the environment variable CODEBUILD\_BUILD\_SUCCEEDING to show if the build process seems to go right. the best way I found right now is to create a small script in the install secion and then alway use this like: ``` phases: install: commands: - echo '#!/bin/bash' > /usr/local/bin/ok; echo ...
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild uses the environment variable CODEBUILD\_BUILD\_SUCCEEDING to show if the build process seems to go right. the best way I found right now is to create a small script in the install secion and then alway use this like: ``` phases: install: commands: - echo '#!/bin/bash' > /usr/local/bin/ok; echo ...
add this in build section ``` build: on-failure: ABORT ```
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild detects build failures by exit codes. You should ensure that your test execution returns a non-zero exit code on failure. [`POST_BUILD` will always run as long as `BUILD` was also run](https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html#view-build-details-phases) (regardless of `BU...
The **post\_build** section is run even if the build section might fail. Expanding on the previous answers, you can use the variable `CODEBUILD_BUILD_SUCCEEDING` in the post\_build section of the `buildspec.yml` file. You can make the post\_build section to run *if and only if* the build section completed successfully....
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
I just wanted to point out that if you want the whole execution to stop when a command fails, you may specify the `-e` option: * When running a bash file ```sh - /bin/bash -e ./commands.sh ``` * Or when running a set of commands/bash file ```sh #!/bin/bash set -e # ... commands ```
The post\_build stage will be executed and the artifacts will be produced. The post\_build is good to properly shut down the build environment, if necessary, and the artifacts could be useful even if the build failed. E.g. extra logs, intermediate files, etc. I would suggest to use post\_build only for commands what a...
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild uses the environment variable CODEBUILD\_BUILD\_SUCCEEDING to show if the build process seems to go right. the best way I found right now is to create a small script in the install secion and then alway use this like: ``` phases: install: commands: - echo '#!/bin/bash' > /usr/local/bin/ok; echo ...
I just wanted to point out that if you want the whole execution to stop when a command fails, you may specify the `-e` option: * When running a bash file ```sh - /bin/bash -e ./commands.sh ``` * Or when running a set of commands/bash file ```sh #!/bin/bash set -e # ... commands ```
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
The **post\_build** section is run even if the build section might fail. Expanding on the previous answers, you can use the variable `CODEBUILD_BUILD_SUCCEEDING` in the post\_build section of the `buildspec.yml` file. You can make the post\_build section to run *if and only if* the build section completed successfully....
The post\_build stage will be executed and the artifacts will be produced. The post\_build is good to properly shut down the build environment, if necessary, and the artifacts could be useful even if the build failed. E.g. extra logs, intermediate files, etc. I would suggest to use post\_build only for commands what a...
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
The **post\_build** section is run even if the build section might fail. Expanding on the previous answers, you can use the variable `CODEBUILD_BUILD_SUCCEEDING` in the post\_build section of the `buildspec.yml` file. You can make the post\_build section to run *if and only if* the build section completed successfully....
add this in build section ``` build: on-failure: ABORT ```
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
The **post\_build** section is run even if the build section might fail. Expanding on the previous answers, you can use the variable `CODEBUILD_BUILD_SUCCEEDING` in the post\_build section of the `buildspec.yml` file. You can make the post\_build section to run *if and only if* the build section completed successfully....
I just wanted to point out that if you want the whole execution to stop when a command fails, you may specify the `-e` option: * When running a bash file ```sh - /bin/bash -e ./commands.sh ``` * Or when running a set of commands/bash file ```sh #!/bin/bash set -e # ... commands ```
46,584,324
I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My understanding was if the build fails, execution should stop. is this a corr...
2017/10/05
[ "https://Stackoverflow.com/questions/46584324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3791927/" ]
CodeBuild detects build failures by exit codes. You should ensure that your test execution returns a non-zero exit code on failure. [`POST_BUILD` will always run as long as `BUILD` was also run](https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html#view-build-details-phases) (regardless of `BU...
add this in build section ``` build: on-failure: ABORT ```
12,452
This Wednesday, October 28 2015 at 11:22 a.m. EDT (15:22 UTC), [Cassini spacecraft will flyby through the Enceladus plume](https://www.nasa.gov/press-release/nasa-teleconference-to-preview-historic-flyby-of-icy-saturn-moon) at only 30 miles (49 km) altitude to analyze plume chemistry with its ion and neutral mass spect...
2015/10/26
[ "https://space.stackexchange.com/questions/12452", "https://space.stackexchange.com", "https://space.stackexchange.com/users/49/" ]
I don't have the source for this latest flyby, but I do have one for the [50 km](http://saturn.jpl.nasa.gov/faq/FAQMission/#q1) pass that was previously executed in 2008, only slightly further than the 49 km pass this go-around. The two stated dangers were "The two threats to the spacecraft were identified to be an ina...
I wish NASA would make transcripts of their audio broadcasts, because this question was raised by someone in the media during the question & answer part of last Monday's teleconference. (I searched, couldn't find any transcripts -- can someone do better?) In short, and working from memory, there's apparently no risk at...
36,055,669
I think this creates arbitrary lists of length three, but how do I create lists of arbitrary length? ``` import Test.QuickCheck data List a = Nil | Cons a (List a) deriving (Eq, Show) instance Arbitrary a => Arbitrary (List a) where arbitrary = do a <- arbitrary a' <- arbitrary a'' <- arbitrary ...
2016/03/17
[ "https://Stackoverflow.com/questions/36055669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/992687/" ]
With [`sized`](https://hackage.haskell.org/package/QuickCheck-2.8.2/docs/Test-QuickCheck-Gen.html#v:sized). It enables you to manage the size of the generated `arbitrary`, although the semantics are up to the instance: ``` instance Arbitrary a => Arbitrary (List a) where arbitrary = sized go where go 0 = pure N...
you can use [`oneof`](https://hackage.haskell.org/package/QuickCheck-2.8.2/docs/Test-QuickCheck-Gen.html#oneof) to pick either an empty list or recursively generate longer lists: ``` instance Arbitrary a => Arbitrary (List a) where arbitrary = oneof [nil, cons] where nil = return Nil cons = do ...
667,059
Here is the code. The defult one is always in the middle. ``` \documentclass[12pt,letterpaper]{article} \usepackage[left=20mm,top=30mm,bottom=30mm,right=20mm]{geometry} \usepackage[siunitx]{circuitikz} % circuit package and include electrical units in our labels \begin{document} \begin{center} \begin{circuitik...
2022/11/30
[ "https://tex.stackexchange.com/questions/667059", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/206160/" ]
See section 3.5.1 of the Circuitikz manual. It shows how to use the wiper pos key to change the location of the wiper. ``` \documentclass[12pt,letterpaper]{article} \usepackage[left=20mm,top=30mm,bottom=30mm,right=20mm]{geometry} \usepackage[siunitx]{circuitikz} % circuit package and include electrical units in ...
You could use `resistor` instead of `pR` and then draw the arrow at the end of the path. (I used `Stealth[width=3pt, inset=1pt]` for the arrow. Note, I also changed your coordinates to relative coordinates using `++(x,y)` to specify the position relative to the previous coordinate. This makes adjustments easier. The c...
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
This was pretty interesting. My basic strategy was to fix up the associations during the processing of the file, rather than do searching after the fact. I haven't tested it, but it should work, typos notwithstanding. *EDIT: now I've tested it.* file `names.txt`: ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739...
This is a situation where eval could be more appropriate. eval() basically says take a string of text and treat it as if it's python code. So since your input file is in the format of a python list, it evaluates to a list. (Note that you can iterate through lines of a file as I have below). ``` def generateAssociation...
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
This is a situation where eval could be more appropriate. eval() basically says take a string of text and treat it as if it's python code. So since your input file is in the format of a python list, it evaluates to a list. (Note that you can iterate through lines of a file as I have below). ``` def generateAssociation...
You can create an endless loop by typing: ``` loop = "loop" while loop == "loop": ##your code here... ``` The program will loop anything below the while function forever.
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
This was pretty interesting. My basic strategy was to fix up the associations during the processing of the file, rather than do searching after the fact. I haven't tested it, but it should work, typos notwithstanding. *EDIT: now I've tested it.* file `names.txt`: ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739...
As far as parsing the file, you are doing a good job. As for the searching, you should probably consider to change how you approach the whole topic. Python or any language for that matter is good for implementing business logic however in most cases it is not very good in searching big data-stores. So if you will have...
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
As far as parsing the file, you are doing a good job. As for the searching, you should probably consider to change how you approach the whole topic. Python or any language for that matter is good for implementing business logic however in most cases it is not very good in searching big data-stores. So if you will have...
You can create an endless loop by typing: ``` loop = "loop" while loop == "loop": ##your code here... ``` The program will loop anything below the while function forever.
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
This was pretty interesting. My basic strategy was to fix up the associations during the processing of the file, rather than do searching after the fact. I haven't tested it, but it should work, typos notwithstanding. *EDIT: now I've tested it.* file `names.txt`: ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739...
Ok here's how I'd do : (code is also available as a gist here : <https://gist.github.com/ychaouche/6894532>) ``` data = [ ["81448068", "jimmy"], ["69711823", "bob"], ["92739493", "kyle, jimmy"], ["96399981", "kyle"], ["40112089", "john, kyle"], ["79784393", "matthew, chad"], ["749968" , "b...
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
This was pretty interesting. My basic strategy was to fix up the associations during the processing of the file, rather than do searching after the fact. I haven't tested it, but it should work, typos notwithstanding. *EDIT: now I've tested it.* file `names.txt`: ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739...
You can create an endless loop by typing: ``` loop = "loop" while loop == "loop": ##your code here... ``` The program will loop anything below the while function forever.
19,259,414
I'm creating this search like query in python that gathers ids and pars them with names like a whois database sort of. so lets say this is my data in a .txt file ``` ["81448068", "jimmy"] ["69711823", "bob"] ["92739493", "kyle, jimmy"] ["96399981", "kyle"] ["40112089", "john, peter"] ["79784393", "matthew, chad"] ["7...
2013/10/08
[ "https://Stackoverflow.com/questions/19259414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805788/" ]
Ok here's how I'd do : (code is also available as a gist here : <https://gist.github.com/ychaouche/6894532>) ``` data = [ ["81448068", "jimmy"], ["69711823", "bob"], ["92739493", "kyle, jimmy"], ["96399981", "kyle"], ["40112089", "john, kyle"], ["79784393", "matthew, chad"], ["749968" , "b...
You can create an endless loop by typing: ``` loop = "loop" while loop == "loop": ##your code here... ``` The program will loop anything below the while function forever.
2,852,657
> > $$\int\_{|z|=3}\frac{dz}{z^3(z^{10}-2)}$$ > > > There are singularities at $z=0$ and $z^{10}=2\iff z=\sqrt[10]{2}e^{\frac{i\pi k}{5}} \text{ where } k=0,1,...9$ so we need to find $10$ residues? or have I got it wrong?
2018/07/15
[ "https://math.stackexchange.com/questions/2852657", "https://math.stackexchange.com", "https://math.stackexchange.com/users/103441/" ]
**Hint :** Sum of the residues at all singularities including *infinity* is equal to zero. So it is sufficient to evaluate the singularity of $f$ at $z=\infty$, where $\displaystyle f(z)=\frac{1}{z^3(z^{10}-2)}$ and then apply Cauchy's Residue Theorem. --- First line says that, If $f$ has poles at $z=a\_i(i=1,2,\cdot...
Actually, that would mean $11$ residues, but since $\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},0\right)=0$… On the other hand, if $z\_k=\sqrt[10]2e^{\frac{k\pi i}5}$ ($k\in\{0,1,\ldots,9\}$), then\begin{align}\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},z\_k\right)&=\frac1{{z\_k}^310{z\_k}^9}\\&=\frac1{10{z\_k}^{1...
2,852,657
> > $$\int\_{|z|=3}\frac{dz}{z^3(z^{10}-2)}$$ > > > There are singularities at $z=0$ and $z^{10}=2\iff z=\sqrt[10]{2}e^{\frac{i\pi k}{5}} \text{ where } k=0,1,...9$ so we need to find $10$ residues? or have I got it wrong?
2018/07/15
[ "https://math.stackexchange.com/questions/2852657", "https://math.stackexchange.com", "https://math.stackexchange.com/users/103441/" ]
Since there are no singularities outside $|z|=2^{1/10}$, the [Cauchy Integral Theorem](https://en.wikipedia.org/wiki/Cauchy%27s_integral_theorem) says that $$ \int\_{|z|=3}\frac{\mathrm{d}z}{z^3(z^{10}-2)} =\int\_{|z|=r}\frac{\mathrm{d}z}{z^3(z^{10}-2)} $$ for all $r\gt2^{1/10}$. As $r\to\infty$, the integral on the ri...
Actually, that would mean $11$ residues, but since $\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},0\right)=0$… On the other hand, if $z\_k=\sqrt[10]2e^{\frac{k\pi i}5}$ ($k\in\{0,1,\ldots,9\}$), then\begin{align}\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},z\_k\right)&=\frac1{{z\_k}^310{z\_k}^9}\\&=\frac1{10{z\_k}^{1...
2,852,657
> > $$\int\_{|z|=3}\frac{dz}{z^3(z^{10}-2)}$$ > > > There are singularities at $z=0$ and $z^{10}=2\iff z=\sqrt[10]{2}e^{\frac{i\pi k}{5}} \text{ where } k=0,1,...9$ so we need to find $10$ residues? or have I got it wrong?
2018/07/15
[ "https://math.stackexchange.com/questions/2852657", "https://math.stackexchange.com", "https://math.stackexchange.com/users/103441/" ]
This is easy by symmetry, without calculating any residues. Say $f(z)=\frac1{z^3(z^{10}-2)}$ and let $\omega=e^{2\pi i/10}$. Note that $$f(\omega z)=\omega^{-3}f(z).$$It follows that the integral is $0$. **Hint** regarding the relevant calculations: Say the integral is $I$. Writing slightly informally, $$I=\int\_{|z|...
Actually, that would mean $11$ residues, but since $\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},0\right)=0$… On the other hand, if $z\_k=\sqrt[10]2e^{\frac{k\pi i}5}$ ($k\in\{0,1,\ldots,9\}$), then\begin{align}\operatorname{Res}\left(\frac1{z^3(z^{10}-2)},z\_k\right)&=\frac1{{z\_k}^310{z\_k}^9}\\&=\frac1{10{z\_k}^{1...
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
Using `reduce` you can basically do arbitrary aggregations, even multiples at once. The following calculates the sum and count at the same time: ``` import functools data = [1, 3, 5, 6, 2] s, c = functools.reduce(lambda a, b: [a[0] + b, a[1] + 1], data, [0,0]) # outputs 17, 5 ```
More direct comparison of more solutions, giving each a stream of 100,000 numbers without the backstory data, and somewhat unifying their code for better comparison. ``` with_list 900.16 KB 1.0 ms result = 49.66821 with_tuple 800.10 KB 1.1 ms result = 49.66821 with_loop 0....
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
I'd just use a simple loop *without* the generator expression. ``` total = count = 0 for e, s in zip(education, salary): if e == '0' and s > 0: total += s count += 1 mean = total / count ``` Though if you already only have the iterator of preprocessed values, then tzaman's would be my choice. The...
Here's how Python itself does it, for its [statistics.fmean](https://docs.python.org/3/library/statistics.html#statistics.fmean). See the part `Handle iterators that do not define __len__()`: ``` def fmean(data): """Convert data to floats and compute the arithmetic mean. This runs faster than the mean() functi...
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
I'd just use a simple loop *without* the generator expression. ``` total = count = 0 for e, s in zip(education, salary): if e == '0' and s > 0: total += s count += 1 mean = total / count ``` Though if you already only have the iterator of preprocessed values, then tzaman's would be my choice. The...
Similar to @luk2302's approach, but not using `reduce`, but simple back-n-forth transpositioning: ``` s, c = map(sum, zip(*((s, 1) for e, s in zip(education, salary) if e=='0' and s>0))) ```
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
I'd just use a simple loop *without* the generator expression. ``` total = count = 0 for e, s in zip(education, salary): if e == '0' and s > 0: total += s count += 1 mean = total / count ``` Though if you already only have the iterator of preprocessed values, then tzaman's would be my choice. The...
Four memory-efficient ways if you do already have a preprocessed "stream", not the two sources: Walrus: ``` def mean(stream): count = 0 total = sum(x for x in stream if (count := count + 1)) return total / count ``` Advancing an `itertools.count` in parallel: ``` def mean(stream): ctr = count() ...
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
I'd just use a simple loop *without* the generator expression. ``` total = count = 0 for e, s in zip(education, salary): if e == '0' and s > 0: total += s count += 1 mean = total / count ``` Though if you already only have the iterator of preprocessed values, then tzaman's would be my choice. The...
More direct comparison of more solutions, giving each a stream of 100,000 numbers without the backstory data, and somewhat unifying their code for better comparison. ``` with_list 900.16 KB 1.0 ms result = 49.66821 with_tuple 800.10 KB 1.1 ms result = 49.66821 with_loop 0....
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
Using `reduce` you can basically do arbitrary aggregations, even multiples at once. The following calculates the sum and count at the same time: ``` import functools data = [1, 3, 5, 6, 2] s, c = functools.reduce(lambda a, b: [a[0] + b, a[1] + 1], data, [0,0]) # outputs 17, 5 ```
Similar to @luk2302's approach, but not using `reduce`, but simple back-n-forth transpositioning: ``` s, c = map(sum, zip(*((s, 1) for e, s in zip(education, salary) if e=='0' and s>0))) ```
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
You can filter it with a generator expression instead of turning it into a list; all you need to do is use `()` instead of `[]` -- this will process it in a "streaming" fashion instead of creating the whole thing in memory: ``` low_edu = (s for e, s in zip(education, salary) if e=='0' and s>0) ``` Then just add up t...
Here's how Python itself does it, for its [statistics.fmean](https://docs.python.org/3/library/statistics.html#statistics.fmean). See the part `Handle iterators that do not define __len__()`: ``` def fmean(data): """Convert data to floats and compute the arithmetic mean. This runs faster than the mean() functi...
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
You can filter it with a generator expression instead of turning it into a list; all you need to do is use `()` instead of `[]` -- this will process it in a "streaming" fashion instead of creating the whole thing in memory: ``` low_edu = (s for e, s in zip(education, salary) if e=='0' and s>0) ``` Then just add up t...
More direct comparison of more solutions, giving each a stream of 100,000 numbers without the backstory data, and somewhat unifying their code for better comparison. ``` with_list 900.16 KB 1.0 ms result = 49.66821 with_tuple 800.10 KB 1.1 ms result = 49.66821 with_loop 0....
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
You can filter it with a generator expression instead of turning it into a list; all you need to do is use `()` instead of `[]` -- this will process it in a "streaming" fashion instead of creating the whole thing in memory: ``` low_edu = (s for e, s in zip(education, salary) if e=='0' and s>0) ``` Then just add up t...
Similar to @luk2302's approach, but not using `reduce`, but simple back-n-forth transpositioning: ``` s, c = map(sum, zip(*((s, 1) for e, s in zip(education, salary) if e=='0' and s>0))) ```
69,824,516
I can sum a stream of numbers coming from a generator expression ``` education = '0 1 0 0 0'.split() salary = [int(s) for s in '50 120 0 40 60'.split()] # 0 for missing data # compute the sum of known low education salaries, aka les total_les = sum(s for e, s in zip(education, salary) if e=='0' and s>0) ``` now I'd ...
2021/11/03
[ "https://Stackoverflow.com/questions/69824516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749397/" ]
Using `reduce` you can basically do arbitrary aggregations, even multiples at once. The following calculates the sum and count at the same time: ``` import functools data = [1, 3, 5, 6, 2] s, c = functools.reduce(lambda a, b: [a[0] + b, a[1] + 1], data, [0,0]) # outputs 17, 5 ```
Four memory-efficient ways if you do already have a preprocessed "stream", not the two sources: Walrus: ``` def mean(stream): count = 0 total = sum(x for x in stream if (count := count + 1)) return total / count ``` Advancing an `itertools.count` in parallel: ``` def mean(stream): ctr = count() ...
50,290,978
I have made a custom PHP/Sql cms with a dynamic post template called blog-post.php I am pulling in the content like so: <http://www.example.com/news/blog-post.php?slug=sample-slug-from-database> This allows me to pull in any number of posts using the same template, pulling info from the database. I have spent 4 hou...
2018/05/11
[ "https://Stackoverflow.com/questions/50290978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8102531/" ]
The Issue with the `StringBuilder` and your code is that it does not exactly what you think it does. A `StringBuilder` may take any `CharSequence` as a constructor argument but it will not alter the passed value directly. String in particular are immutable. Anyway `StringBuilder`s do **not** alter the Object directly....
you must put the value of your StringBuilder back to your string. ``` s = str.toString(); ```
50,290,978
I have made a custom PHP/Sql cms with a dynamic post template called blog-post.php I am pulling in the content like so: <http://www.example.com/news/blog-post.php?slug=sample-slug-from-database> This allows me to pull in any number of posts using the same template, pulling info from the database. I have spent 4 hou...
2018/05/11
[ "https://Stackoverflow.com/questions/50290978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8102531/" ]
The Issue with the `StringBuilder` and your code is that it does not exactly what you think it does. A `StringBuilder` may take any `CharSequence` as a constructor argument but it will not alter the passed value directly. String in particular are immutable. Anyway `StringBuilder`s do **not** alter the Object directly....
You are printing s, and s has not been changed. When you construct str using s, a copy of s is made. Told in a different way, the reference to each character in s and str is not the same, so even after your deletion in str, s stays the same.
50,290,978
I have made a custom PHP/Sql cms with a dynamic post template called blog-post.php I am pulling in the content like so: <http://www.example.com/news/blog-post.php?slug=sample-slug-from-database> This allows me to pull in any number of posts using the same template, pulling info from the database. I have spent 4 hou...
2018/05/11
[ "https://Stackoverflow.com/questions/50290978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8102531/" ]
The Issue with the `StringBuilder` and your code is that it does not exactly what you think it does. A `StringBuilder` may take any `CharSequence` as a constructor argument but it will not alter the passed value directly. String in particular are immutable. Anyway `StringBuilder`s do **not** alter the Object directly....
Modify ``` System.out.println(s); ``` to ``` System.out.println(str.toString()); ```
28,664,824
I've set up some tests of a React component that displays a table using Mocha. I can assert on its initial state but I have a click event which sorts the data that I'd like to test. If I use `React.addons.TestUtils.Simulate.click(theComponent)` to try to test the sort. * I can see that the event is handled, * that t...
2015/02/22
[ "https://Stackoverflow.com/questions/28664824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/222163/" ]
I had the same issue. The thing is, `TestUtils.Simulate.click(yearHeader.getDOMNode())` is making a click on the DOM, which brings about sorting data and DOM manipulation. Even if you use jsDom and not a real dom, this manipulation itself is an *async* event. So, just by checking the DOM state right after the click eve...
I've been spending a lot of time trying to find a clean way to work with the asynchronousity... Ended up making this for testing: <https://github.com/yormi/test-them-all> Under the hood, it uses `componentDidUpdate` lifecycle to listen on props/state/route changes. Hopefully, it'll help you guys. Anyhow your opinion...
10,758,289
`$addToSet` seems to add to arrays only, is it possible to add a hash to a hash? ``` { "a"=>"1", "b"=>"2", "c"=>{"d"=>"3"} } ``` to ``` { "a"=>"1", "b"=>"2", "c"=>{"d"=>"3","e"=>"4"} } ``` And in ruby would be pref. But I'm okay with anything atm that'll help me solve this.
2012/05/25
[ "https://Stackoverflow.com/questions/10758289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1182095/" ]
Yes, `$addToSet` was meant to be used on arrays. You need `$set` and dot notation ``` db.collection.update(query, {$set: {'c.e': '4'}}); ```
You don't need `$addToSet`, because a hash (i.e. a BSON object) can only have one of any given key -- they already have set semantics regarding keys (not values, however). To update sub-objects within BSON objects, you should use `$set` as Sergio suggests.
91,137
A page break appeared between `\author{}` and `\date{}` after I added the `\twocolumn[]` section. The `\twocolumn[]` section was added to achieve a single column abstract in the `twocolumn` document. How can I remove the page break or rewrite the single column abstract so that it doesn't cause a page break. ``` \title...
2013/01/10
[ "https://tex.stackexchange.com/questions/91137", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/24160/" ]
You only need the single `\maketitle` within `\twocolumn[...]`: ![enter image description here](https://i.stack.imgur.com/Pdf2q.png) ``` \documentclass[twocolumn]{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \title{TITLE} \author{NAMES} \date{} \begin{document} \twocolumn[{% \begin{@twocolumnfalse} ...
I struggled with this issue for quite some time and could not find a clean solution on the internet, until I found out about this: ``` \twocolumn[ <whatever input> ] ``` The `<whatever input>` will be the single column text preceding the double column text, **without** the annoying pagebreak! And I did not face any ...
42,187
On a CNN, what is use of using Activation function in convolution layer? Does single weight is used for full matrix or for every pixel or box it may vary?
2018/12/05
[ "https://datascience.stackexchange.com/questions/42187", "https://datascience.stackexchange.com", "https://datascience.stackexchange.com/users/63800/" ]
Like Ricardo mentioned in his comment on your question, the main step here is finding a distance metric between paths. Then you can experiment with different clustering algorithms and see what works. What comes to mind is [dynamic time warping](https://en.wikipedia.org/wiki/Dynamic_time_warping?oldformat=true) (DTW)....
Your questions indicates that you may want to rather **extract features** than use DTW. Nevertheless, you will have to carefully construct a dissimilarity matrix, as start point, end point vs. complexity need to be treated and weighted differently. Once you have a decent and *tested* measure of dissimilarity, you have...
38,510,667
Example, the EntityFramework Microsoft.EntityFrameworkCore.Relational project has the following text in the resource files: ``` ... <data name="FromSqlMissingColumn" xml:space="preserve"> <value>The required column '{column}' was not present in the results of a 'FromSql' operation.</value> </data> ... ``` which ge...
2016/07/21
[ "https://Stackoverflow.com/questions/38510667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/621366/" ]
> > How did they do it? > > > First it should be obvious that they don't use the standard `ResXFileCodeGenerator`, but some custom code generation tool. Currently there are 2 standard ways of generating code - the old school way using a `Custom Tool` similar to `ResXFileCodeGenerator`, or the modern way using a ...
I think, EF team uses own custom `Custom Tool` for that purposes. But visual studio uses `PublicResXFileCodeGenerator` as a default custom tool for `.resx` files and this tool have no such functionality as `PublicResXFileCodeGenerator` and it's base class `ResXFileCodeGenerator` (both can be found in `Microsoft.VisualS...
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The reason you are getting this is because of PyCharm's static analysis. Now, what Python does is use static skeletons (some are pre-generated and some are generated) to give you the analysis. Take a look at the pre-generated skeletons here -> <https://github.com/JetBrains/python-skeletons> This might be solved, by en...
In PyCharm's Project tool window, right-click on the directory and select Mark Directory As -> Sources Root.
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
PyCharm developer posted a workaround for one possible cause of inspection failure: <https://youtrack.jetbrains.com/issue/PY-32029> Gist of it - inspection may fail if you have a `venv` folder in the project directory. Right click it, mark directory as excluded.
You can disable inspections to specific libraries (such as numpy). I found this very helpful since my scrollbar was constantly lit up all over due to this issue. Go to Settings -> Editor -> Inspections -> Python -> Unresolved references (near the bottom) and go to the Ignore references section at the bottom right of th...
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The reason you are getting this is because of PyCharm's static analysis. Now, what Python does is use static skeletons (some are pre-generated and some are generated) to give you the analysis. Take a look at the pre-generated skeletons here -> <https://github.com/JetBrains/python-skeletons> This might be solved, by en...
The following often helps to solve *false-positive unresolved references* ``` File | Invalidate Caches ```
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
PyCharm developer posted a workaround for one possible cause of inspection failure: <https://youtrack.jetbrains.com/issue/PY-32029> Gist of it - inspection may fail if you have a `venv` folder in the project directory. Right click it, mark directory as excluded.
What worked for me was Settings > project > python interpreters > (cog wheel to the right of text bar) Show all > (on python venv) enable associate this virtual environment with (project path)
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The reason you are getting this is because of PyCharm's static analysis. Now, what Python does is use static skeletons (some are pre-generated and some are generated) to give you the analysis. Take a look at the pre-generated skeletons here -> <https://github.com/JetBrains/python-skeletons> This might be solved, by en...
I was able to resolve the issue simply using a virtualenv instead of the system interpreter. None of the other methods i found anywhere worked for me before. I am using Windows 7, PyCharm Community Edition 2018.2.4, Python 3.6.7, Numpy 1.15.4 1. Create a new project named my\_project and set it to use the system inte...
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The Python configuration is specified in (at least) two places: `Run | Edit Configurations | Python | Python Interpreter`, and `File | Settings | Project | Project Interpreter`. My mistake was I did not set the correct Python installation in the `File | Settings ...`. Hence, it was referring to a Python configuration t...
You may have to install the package using `pip install numpy`
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The Python configuration is specified in (at least) two places: `Run | Edit Configurations | Python | Python Interpreter`, and `File | Settings | Project | Project Interpreter`. My mistake was I did not set the correct Python installation in the `File | Settings ...`. Hence, it was referring to a Python configuration t...
What worked for me was Settings > project > python interpreters > (cog wheel to the right of text bar) Show all > (on python venv) enable associate this virtual environment with (project path)
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The following often helps to solve *false-positive unresolved references* ``` File | Invalidate Caches ```
In PyCharm's Project tool window, right-click on the directory and select Mark Directory As -> Sources Root.
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The following often helps to solve *false-positive unresolved references* ``` File | Invalidate Caches ```
You can disable inspections to specific libraries (such as numpy). I found this very helpful since my scrollbar was constantly lit up all over due to this issue. Go to Settings -> Editor -> Inspections -> Python -> Unresolved references (near the bottom) and go to the Ignore references section at the bottom right of th...
23,689,185
So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to `UITableViewController`. I then have a "barbuttonitem" that uses `[self dismissViewControllerAnimated:YES completion:nil]` to go back to the previous view controller with the data. The problem is that the...
2014/05/15
[ "https://Stackoverflow.com/questions/23689185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3140562/" ]
The following often helps to solve *false-positive unresolved references* ``` File | Invalidate Caches ```
You may have to install the package using `pip install numpy`
19,634,472
Currently I am in process of building an automation tool for testing webpages. Already aware of selenium tool but will not be using that currently as our framework has already been built and requires minor changes to make it reliable. While testing this framework with test pages (html and javascript only) I encounter i...
2013/10/28
[ "https://Stackoverflow.com/questions/19634472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1650470/" ]
look into [WebDriverWait](http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/ui/WebDriverWait.html) class. There is a respective binding for c# as well. Also, I have discussed the WebDriverWait [here](https://stackoverflow.com/questions/18843581/wait-for-elment-webdriver-pageobject-pattern/188...
You can try to use Implicit waits Read about it here <http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp> Basically you set it once per session. If you can't find an element, selenium waits the amount of time you set before throwing the exception.
269,658
I am using a FTDI cable and connected it with my mac. I can connect successfully with my serial terminal on my mac via the cable and can input text on my keyboard to be transmitted to the AVR. When the program starts I expect a "Hello World" message to appear on my serial terminal. But instead I receive this output on ...
2016/11/16
[ "https://electronics.stackexchange.com/questions/269658", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/114725/" ]
First step should be checking your clock configuration. You said, there is no external crystal, and you code definitely runs now so the CKSEL[3:0] fuse bits are certainly `0010`, internal RC oscillator is selected. Tables taken from [datasheet](http://www.atmel.com/Images/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328...
The solution will be anyone from the following 1. Check the AVR board Clock Frequency, it should be the value which is taken by you to calculate the baud rate 2. Check the baud rate register(UBRR) values, it should be 129(in decimal) for 9600 baud rate at 20MHz Clock Frequency. As well as check with formula available...
269,658
I am using a FTDI cable and connected it with my mac. I can connect successfully with my serial terminal on my mac via the cable and can input text on my keyboard to be transmitted to the AVR. When the program starts I expect a "Hello World" message to appear on my serial terminal. But instead I receive this output on ...
2016/11/16
[ "https://electronics.stackexchange.com/questions/269658", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/114725/" ]
I ran into this same problem, and the answer provided by @bence\_kaulics is what got me through it, with one additional point: I am in the same situation as @secs360: 1. atmega328p 2. working through chapter Chapter 5 (USART) in the book [Make AVR Programming](http://shop.oreilly.com/product/0636920028161.do) (the so...
The solution will be anyone from the following 1. Check the AVR board Clock Frequency, it should be the value which is taken by you to calculate the baud rate 2. Check the baud rate register(UBRR) values, it should be 129(in decimal) for 9600 baud rate at 20MHz Clock Frequency. As well as check with formula available...
269,658
I am using a FTDI cable and connected it with my mac. I can connect successfully with my serial terminal on my mac via the cable and can input text on my keyboard to be transmitted to the AVR. When the program starts I expect a "Hello World" message to appear on my serial terminal. But instead I receive this output on ...
2016/11/16
[ "https://electronics.stackexchange.com/questions/269658", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/114725/" ]
I ran into this same problem, and the answer provided by @bence\_kaulics is what got me through it, with one additional point: I am in the same situation as @secs360: 1. atmega328p 2. working through chapter Chapter 5 (USART) in the book [Make AVR Programming](http://shop.oreilly.com/product/0636920028161.do) (the so...
First step should be checking your clock configuration. You said, there is no external crystal, and you code definitely runs now so the CKSEL[3:0] fuse bits are certainly `0010`, internal RC oscillator is selected. Tables taken from [datasheet](http://www.atmel.com/Images/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328...
17,723,883
Calling the **discoverAndAddAccount** method via the **API Explorer** returns the following error: `HTTP Status 500 - message=General IO error while proxying request; errorCode=006003; statusCode=500`. Can anybody help me identify what I missed?
2013/07/18
[ "https://Stackoverflow.com/questions/17723883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2595557/" ]
You can get the bytes of the file this way: ``` var res = Application.GetResourceStream(new Uri("yourFile", UriKind.Relative)); var fileStream = res.Stream; byte[] buffer = new byte[fileStream.Length]; fileStream.Read(buffer, 0, (int)fileStream.Length); ```
Use This. ``` return File.ReadAllBytes( shapeFileZip.Name ); ``` Its use For C# code.
13,902,808
**Example HTML** (for the sake of clarity): ``` <nav> <ul> <li class="top-navbar-channels"> <a href="#"></a> <div class="dropdown-menu">BLAH, BLAH, BLAH!</div> </li> <li class="top-navbar-about"> <a href="#"></a> <div class="dropdown-menu-abo...
2012/12/16
[ "https://Stackoverflow.com/questions/13902808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1071413/" ]
Perhaps, this code: ``` jQuery(document).ready(function($){ var $menus = $('.dropdown-menu, .dropdown-menu-search, .dropdown-menu-about'); $menus.on('show', function () { $(this).siblings("a").addClass('selected'); // or alternatively, $(this).prev("a") }); $menus.on('hide', function () { ...
This is a little shorter then Matthias... not very much shorter ``` $(function(){ $('.dropdown-menu, .dropdown-menu-search, .dropdown-menu-about').on('show',function(){ $(this).siblings('a').addClass('selected'); }).on('hide',function(){ $(this).siblings('a').removeClass('selected'); }); }); ```
13,902,808
**Example HTML** (for the sake of clarity): ``` <nav> <ul> <li class="top-navbar-channels"> <a href="#"></a> <div class="dropdown-menu">BLAH, BLAH, BLAH!</div> </li> <li class="top-navbar-about"> <a href="#"></a> <div class="dropdown-menu-abo...
2012/12/16
[ "https://Stackoverflow.com/questions/13902808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1071413/" ]
Add a common class to common main elements so you can use that single class as the selector. You can also combine the events into one `on()` call and use `toggleClass()` on the link. `on()` allows for multiple space separated events Example ``` <div class="dropdown-menu menu_content"> ``` Then for jQuery: ``` $('....
Perhaps, this code: ``` jQuery(document).ready(function($){ var $menus = $('.dropdown-menu, .dropdown-menu-search, .dropdown-menu-about'); $menus.on('show', function () { $(this).siblings("a").addClass('selected'); // or alternatively, $(this).prev("a") }); $menus.on('hide', function () { ...
13,902,808
**Example HTML** (for the sake of clarity): ``` <nav> <ul> <li class="top-navbar-channels"> <a href="#"></a> <div class="dropdown-menu">BLAH, BLAH, BLAH!</div> </li> <li class="top-navbar-about"> <a href="#"></a> <div class="dropdown-menu-abo...
2012/12/16
[ "https://Stackoverflow.com/questions/13902808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1071413/" ]
Add a common class to common main elements so you can use that single class as the selector. You can also combine the events into one `on()` call and use `toggleClass()` on the link. `on()` allows for multiple space separated events Example ``` <div class="dropdown-menu menu_content"> ``` Then for jQuery: ``` $('....
This is a little shorter then Matthias... not very much shorter ``` $(function(){ $('.dropdown-menu, .dropdown-menu-search, .dropdown-menu-about').on('show',function(){ $(this).siblings('a').addClass('selected'); }).on('hide',function(){ $(this).siblings('a').removeClass('selected'); }); }); ```
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
There very few options for styling `select` elements. Here's a [support grid](http://www.electrictoolbox.com/style-select-optgroup-options-css/) that shows your available options (and limitations). You would probably be better off simulating the 'select' some other way ([example](http://cssglobe.com/custom-styling-of-...
You could get tricky and add a one pixel background to the text div. This would at least be future-proof and work on all browsers.
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
Generally, `option` elements have many limitations in styling, since their rendering is still largely based on built-in routines in systems, and those routines are often not controllable with CSS. Overstriking does not usually work, as you can test with a simple static example `<select><option style="text-decoration: l...
You could get tricky and add a one pixel background to the text div. This would at least be future-proof and work on all browsers.
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
Generally, `option` elements have many limitations in styling, since their rendering is still largely based on built-in routines in systems, and those routines are often not controllable with CSS. Overstriking does not usually work, as you can test with a simple static example `<select><option style="text-decoration: l...
Here, try this: ``` <p>Bla bla bla <span class="strike">RAAAAAA!</span></p> ``` and: ​ ``` span.strike{ position: relative; text-align: center; z-index: 1; } span.strike:before { border-top: 1px solid #000; content:""; width: 100%; position: absolute; top: 50%; z-index: -1...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
There very few options for styling `select` elements. Here's a [support grid](http://www.electrictoolbox.com/style-select-optgroup-options-css/) that shows your available options (and limitations). You would probably be better off simulating the 'select' some other way ([example](http://cssglobe.com/custom-styling-of-...
Here, try this: ``` <p>Bla bla bla <span class="strike">RAAAAAA!</span></p> ``` and: ​ ``` span.strike{ position: relative; text-align: center; z-index: 1; } span.strike:before { border-top: 1px solid #000; content:""; width: 100%; position: absolute; top: 50%; z-index: -1...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
My issue was text-decoration: line-through; not working in IE. I was using shorthand for setting one or more individual text-decoration values in a single declaration (e.g. text-decoration: line-through dashed blue).I found it is not supported yet. <https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration> If ...
Here, try this: ``` <p>Bla bla bla <span class="strike">RAAAAAA!</span></p> ``` and: ​ ``` span.strike{ position: relative; text-align: center; z-index: 1; } span.strike:before { border-top: 1px solid #000; content:""; width: 100%; position: absolute; top: 50%; z-index: -1...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
My issue was text-decoration: line-through; not working in IE. I was using shorthand for setting one or more individual text-decoration values in a single declaration (e.g. text-decoration: line-through dashed blue).I found it is not supported yet. <https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration> If ...
Here, Try this ``` <select> <option selected> Size - </option> <option class="disabledoption">Short Option</option> <option class="disabledoption">This Is </option> <option class="disabledoption">dssdsd Is </option> <option class="disabledoption">yes </option> <option class=>ertyu </option> ...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
You could get tricky and add a one pixel background to the text div. This would at least be future-proof and work on all browsers.
Here, try this: ``` <p>Bla bla bla <span class="strike">RAAAAAA!</span></p> ``` and: ​ ``` span.strike{ position: relative; text-align: center; z-index: 1; } span.strike:before { border-top: 1px solid #000; content:""; width: 100%; position: absolute; top: 50%; z-index: -1...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
Generally, `option` elements have many limitations in styling, since their rendering is still largely based on built-in routines in systems, and those routines are often not controllable with CSS. Overstriking does not usually work, as you can test with a simple static example `<select><option style="text-decoration: l...
Here, Try this ``` <select> <option selected> Size - </option> <option class="disabledoption">Short Option</option> <option class="disabledoption">This Is </option> <option class="disabledoption">dssdsd Is </option> <option class="disabledoption">yes </option> <option class=>ertyu </option> ...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
You could get tricky and add a one pixel background to the text div. This would at least be future-proof and work on all browsers.
Here, Try this ``` <select> <option selected> Size - </option> <option class="disabledoption">Short Option</option> <option class="disabledoption">This Is </option> <option class="disabledoption">dssdsd Is </option> <option class="disabledoption">yes </option> <option class=>ertyu </option> ...
12,847,993
I have this ``` .strike{ text-decoration: line-through; } ``` and every time my `disable()` is called, it will disable the `<option>`s from my `<select>` and add this class but it does not work on IE. Yes, my `<option>`s are disabled just fine but the text-decoration fails on IE. What is the workaround for this?...
2012/10/11
[ "https://Stackoverflow.com/questions/12847993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142190/" ]
My issue was text-decoration: line-through; not working in IE. I was using shorthand for setting one or more individual text-decoration values in a single declaration (e.g. text-decoration: line-through dashed blue).I found it is not supported yet. <https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration> If ...
You could get tricky and add a one pixel background to the text div. This would at least be future-proof and work on all browsers.