qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
27,609,074
**i used devexpress component** i set data for **ItemSource** property of **GridControl** in code behhind like this : ``` grid.ItemsSource = query ; ``` query is List when i filtered or searched in gridcontrol , display rows changed now i want to get the changed itemsource like this : ``` DataSource = ((IEnumera...
2014/12/22
[ "https://Stackoverflow.com/questions/27609074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1386406/" ]
The core idea is that `mapM` maps an "action" (ie function of type `a -> m b`) over a list and gives you all the results as a `m [b]`. `mapM_` does the same thing, but never collects the results, returning a `m ()`. If you care about the results of your `a -> m b` function (ie the `b`s), use `mapM`. If you only care a...
mapM\_ ignores the result. This means, that no return value will be returned. You can see this in interactive mode: ``` Prelude> mapM (putStrLn . show) [1,2] 1 2 [(),()] Prelude> mapM_ (putStrLn . show) [1,2] 1 2 ```
27,609,074
**i used devexpress component** i set data for **ItemSource** property of **GridControl** in code behhind like this : ``` grid.ItemsSource = query ; ``` query is List when i filtered or searched in gridcontrol , display rows changed now i want to get the changed itemsource like this : ``` DataSource = ((IEnumera...
2014/12/22
[ "https://Stackoverflow.com/questions/27609074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1386406/" ]
In more general terms, the difference is that `mapM_` only needs to ["consume"](http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Foldable.html#t:Foldable) all elements of the input, whereas `mapM` also needs to "re-build" the data structure, with new values. That's pretty much trivial for lists: you only need ...
mapM\_ ignores the result. This means, that no return value will be returned. You can see this in interactive mode: ``` Prelude> mapM (putStrLn . show) [1,2] 1 2 [(),()] Prelude> mapM_ (putStrLn . show) [1,2] 1 2 ```
27,609,074
**i used devexpress component** i set data for **ItemSource** property of **GridControl** in code behhind like this : ``` grid.ItemsSource = query ; ``` query is List when i filtered or searched in gridcontrol , display rows changed now i want to get the changed itemsource like this : ``` DataSource = ((IEnumera...
2014/12/22
[ "https://Stackoverflow.com/questions/27609074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1386406/" ]
The core idea is that `mapM` maps an "action" (ie function of type `a -> m b`) over a list and gives you all the results as a `m [b]`. `mapM_` does the same thing, but never collects the results, returning a `m ()`. If you care about the results of your `a -> m b` function (ie the `b`s), use `mapM`. If you only care a...
In more general terms, the difference is that `mapM_` only needs to ["consume"](http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Foldable.html#t:Foldable) all elements of the input, whereas `mapM` also needs to "re-build" the data structure, with new values. That's pretty much trivial for lists: you only need ...
40,353,801
I have two email address. The first is `address1@domain.com.vn` and the second is `address2@domain.com.vn`. I want to copy email subject in microsoft outlook with second address `address2@domain.com.vn` to excel using vba. I use bellow code but it do not work. ``` Sub GetFromInbox() Dim olapp As Outlook.Application ...
2016/11/01
[ "https://Stackoverflow.com/questions/40353801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6526319/" ]
The [getopt](https://linux.die.net/man/3/getopt) man page says (emphasis mine): > > The variable optind is the index of the next element to be processed **in argv**. > > > Your invocation options `-aru` are all contained as a single string in `argv[1]`.
Put this at the start of your program to see what is going on: ``` for (int i = 0; i < argc; ++i) printf("Param %d: %s\n", i, argv[i]); ```
40,353,801
I have two email address. The first is `address1@domain.com.vn` and the second is `address2@domain.com.vn`. I want to copy email subject in microsoft outlook with second address `address2@domain.com.vn` to excel using vba. I use bellow code but it do not work. ``` Sub GetFromInbox() Dim olapp As Outlook.Application ...
2016/11/01
[ "https://Stackoverflow.com/questions/40353801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6526319/" ]
The [getopt](https://linux.die.net/man/3/getopt) man page says (emphasis mine): > > The variable optind is the index of the next element to be processed **in argv**. > > > Your invocation options `-aru` are all contained as a single string in `argv[1]`.
``` #include <stdio.h> #include <unistd.h> extern char *optarg; extern int optind; int main (int argc, char** argv) { int c; printf("--------- options: ---------\n"); while ((c = getopt (argc,argv,"abcd:")) != -1) { printf("opt: %c arg %s\n", (char)c, optarg); } ...
40,353,801
I have two email address. The first is `address1@domain.com.vn` and the second is `address2@domain.com.vn`. I want to copy email subject in microsoft outlook with second address `address2@domain.com.vn` to excel using vba. I use bellow code but it do not work. ``` Sub GetFromInbox() Dim olapp As Outlook.Application ...
2016/11/01
[ "https://Stackoverflow.com/questions/40353801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6526319/" ]
That output looks right to me. `optind` is the index of the next argument to be processed. When you have all the options together, they're all in `argv[1]`, so `optind` remains at 1 until you've processed the `u` option. At that point, since everything in `argv[1]` has been consumed, `optind` is set to 2. When the op...
Put this at the start of your program to see what is going on: ``` for (int i = 0; i < argc; ++i) printf("Param %d: %s\n", i, argv[i]); ```
40,353,801
I have two email address. The first is `address1@domain.com.vn` and the second is `address2@domain.com.vn`. I want to copy email subject in microsoft outlook with second address `address2@domain.com.vn` to excel using vba. I use bellow code but it do not work. ``` Sub GetFromInbox() Dim olapp As Outlook.Application ...
2016/11/01
[ "https://Stackoverflow.com/questions/40353801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6526319/" ]
That output looks right to me. `optind` is the index of the next argument to be processed. When you have all the options together, they're all in `argv[1]`, so `optind` remains at 1 until you've processed the `u` option. At that point, since everything in `argv[1]` has been consumed, `optind` is set to 2. When the op...
``` #include <stdio.h> #include <unistd.h> extern char *optarg; extern int optind; int main (int argc, char** argv) { int c; printf("--------- options: ---------\n"); while ((c = getopt (argc,argv,"abcd:")) != -1) { printf("opt: %c arg %s\n", (char)c, optarg); } ...
22,178,110
When running the following script ``` dictlist = [ {'a': 'hello world', 'b': 'my name is Bond'}, {'a': 'bonjour monde'} ] for d in dictlist: if 'Bond' not in d.get('b'): print d ``` I expected the output to be empty (the first dict does no match, the second one is missing the key `'b'`) but I ge...
2014/03/04
[ "https://Stackoverflow.com/questions/22178110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903011/" ]
In the second iteration, `d` will be `{'a': 'bonjour monde'}`, which doesn't have the key `b`. `d.get('b')` will return `None` as `dict.get` will return `None` if the key is not found. And `in` operator treats the RHS as an iterable. That is why you are getting this error. You can simply avoid that, like this ``` fo...
You are indeed *iterating* since that's the way operator `in` works. When you do: `if 'Bond' not in d.get('b'):` Python will look for `'Bond'` inside the left operand (`d.get('b')`). `d.get('b') == None` in the second entry hence the exception. You can pass a second argument to [`get`](http://docs.python.org/2/library...
22,178,110
When running the following script ``` dictlist = [ {'a': 'hello world', 'b': 'my name is Bond'}, {'a': 'bonjour monde'} ] for d in dictlist: if 'Bond' not in d.get('b'): print d ``` I expected the output to be empty (the first dict does no match, the second one is missing the key `'b'`) but I ge...
2014/03/04
[ "https://Stackoverflow.com/questions/22178110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903011/" ]
In the second iteration, `d` will be `{'a': 'bonjour monde'}`, which doesn't have the key `b`. `d.get('b')` will return `None` as `dict.get` will return `None` if the key is not found. And `in` operator treats the RHS as an iterable. That is why you are getting this error. You can simply avoid that, like this ``` fo...
Use `d.get('b', '')` instead of `d.get('b')`. By default [`dict.get`](http://docs.python.org/2/library/stdtypes.html#dict.get) returns `None` if the key you provide does not exist, which is not an iterable or has any method to call. So simply pass an extra argument to `get` to avoid the default return value `None`. Se...
9,943,748
I would appreciate some help on creating the proper SQL to retrieve only one value for matching records in my 3rd table "table C" as shown below. Table A lists customers ID, name and state. Table B lists foreign key customers ID and member card number. Table C lists sales for member card number. ``` select A.cifno, A...
2012/03/30
[ "https://Stackoverflow.com/questions/9943748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1303309/" ]
You should use the keyword `distinct` in your select. I.e., something like: ``` select distinct .... ```
You could use the DISTINCT operator ``` SELECT DISTINCT * FROM YOURTABLE ```
9,943,748
I would appreciate some help on creating the proper SQL to retrieve only one value for matching records in my 3rd table "table C" as shown below. Table A lists customers ID, name and state. Table B lists foreign key customers ID and member card number. Table C lists sales for member card number. ``` select A.cifno, A...
2012/03/30
[ "https://Stackoverflow.com/questions/9943748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1303309/" ]
Voilá... ``` select DISTINCT A.cifno, A.cfna1, A.cfstate, B.hbmast.cifno, B.hbmast.hbcid, C.cast(ewmast.ewcid as dec(12,0)) as "eWire ID" from library.cfmast cfmast join library.hbmast hbmast on cfmast.cfcif# = hbmast.cifno left join library.ewmast ewmast on hbmast.hbcid = cast(ewmast.ewcid as dec (12,0)) ``...
You could use the DISTINCT operator ``` SELECT DISTINCT * FROM YOURTABLE ```
9,943,748
I would appreciate some help on creating the proper SQL to retrieve only one value for matching records in my 3rd table "table C" as shown below. Table A lists customers ID, name and state. Table B lists foreign key customers ID and member card number. Table C lists sales for member card number. ``` select A.cifno, A...
2012/03/30
[ "https://Stackoverflow.com/questions/9943748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1303309/" ]
You should use the keyword `distinct` in your select. I.e., something like: ``` select distinct .... ```
On your left join to Table C, you would want to put a "not null" clause. This would ensure that only the matching rows are displayed, otherwise they are ignored. Just saying.
9,943,748
I would appreciate some help on creating the proper SQL to retrieve only one value for matching records in my 3rd table "table C" as shown below. Table A lists customers ID, name and state. Table B lists foreign key customers ID and member card number. Table C lists sales for member card number. ``` select A.cifno, A...
2012/03/30
[ "https://Stackoverflow.com/questions/9943748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1303309/" ]
You should use the keyword `distinct` in your select. I.e., something like: ``` select distinct .... ```
Voilá... ``` select DISTINCT A.cifno, A.cfna1, A.cfstate, B.hbmast.cifno, B.hbmast.hbcid, C.cast(ewmast.ewcid as dec(12,0)) as "eWire ID" from library.cfmast cfmast join library.hbmast hbmast on cfmast.cfcif# = hbmast.cifno left join library.ewmast ewmast on hbmast.hbcid = cast(ewmast.ewcid as dec (12,0)) ``...
9,943,748
I would appreciate some help on creating the proper SQL to retrieve only one value for matching records in my 3rd table "table C" as shown below. Table A lists customers ID, name and state. Table B lists foreign key customers ID and member card number. Table C lists sales for member card number. ``` select A.cifno, A...
2012/03/30
[ "https://Stackoverflow.com/questions/9943748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1303309/" ]
Voilá... ``` select DISTINCT A.cifno, A.cfna1, A.cfstate, B.hbmast.cifno, B.hbmast.hbcid, C.cast(ewmast.ewcid as dec(12,0)) as "eWire ID" from library.cfmast cfmast join library.hbmast hbmast on cfmast.cfcif# = hbmast.cifno left join library.ewmast ewmast on hbmast.hbcid = cast(ewmast.ewcid as dec (12,0)) ``...
On your left join to Table C, you would want to put a "not null" clause. This would ensure that only the matching rows are displayed, otherwise they are ignored. Just saying.
14,484,168
I am setting a `TextBox` controls value via an ajax post. ``` $('#txtSite').val(msg.d.SiteName); ``` This is working and the value of the `TextBox` is altered correctly. But, when I come to posting the information to the database, the `txtSite.Text` value is empty!! Any ideas? Am I going mad? Code to populate the ...
2013/01/23
[ "https://Stackoverflow.com/questions/14484168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/410636/" ]
You have your textbox set to `Enabled="false"` which renders in the browser with a `disabled="disabled"`. **[Disabled form inputs are not submitted.](http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontrol.disabled.aspx)** The solution is either to make the textbox enabled and read-only: ``` tx...
Yes, I definitely think, your text box should have a name attribute in html code, check for it. Without a 'name' attribute browser won't post this input box's data to server and thus you won't get it in server side c# code. Hope, this make sense..
47,790,190
I build my Rest Apis on PHP 5.5.9, in which json\_encode() was returning numeric values as a string, but now I am setting up same Rest Apis on different server with PHP 5.6 and here json\_encode() is returning numeric values as numeric, But I need the same behavior as PHP 5.5.9, because my client apps are way huge and...
2017/12/13
[ "https://Stackoverflow.com/questions/47790190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3924832/" ]
You can simply typecast the `int` into `string`, like: ``` array("id" => (string)1); ``` This will force `json_encode` to parse `1` as `"1"`. [Demo](https://eval.in/918270) **Edit:** you can use the following function to typecast your multidimensional array([DEMO](https://eval.in/918441)): ``` function intToString...
Apparently there was a proposal similar to what you're asking, and it was rejected: <https://why-cant-we-have-nice-things.mwl.be/requests/json-numeric-as-string> So there is way to do this on the output end, as far as I know. You will have to do the casting on the input end, like others suggested. Iterate through your...
47,790,190
I build my Rest Apis on PHP 5.5.9, in which json\_encode() was returning numeric values as a string, but now I am setting up same Rest Apis on different server with PHP 5.6 and here json\_encode() is returning numeric values as numeric, But I need the same behavior as PHP 5.5.9, because my client apps are way huge and...
2017/12/13
[ "https://Stackoverflow.com/questions/47790190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3924832/" ]
You can simply typecast the `int` into `string`, like: ``` array("id" => (string)1); ``` This will force `json_encode` to parse `1` as `"1"`. [Demo](https://eval.in/918270) **Edit:** you can use the following function to typecast your multidimensional array([DEMO](https://eval.in/918441)): ``` function intToString...
You can iterate to change in string as @mega6382 said with **recursive manner** ``` $jsonObj = json_decode($arr); function changeToStr(&$obj){ foreach($obj as &$elem){ if(gettype($elem)!= "object"){ $elem = (string)$elem; }else{ changeToStr($elem); } } }; changeToStr($jsonObj); echo json_e...
1,530,739
I have dataGridView which contain column have checkbox I need to read these rows who was checked How can I do that
2009/10/07
[ "https://Stackoverflow.com/questions/1530739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/178691/" ]
Update: Why not just use the gdb `printf` command? ``` (gdb) printf "%s", x asd qwe ... (gdb) ``` --- Old answer: From within the debugger you can execute commands. Just call `printf` ``` (gdb) call printf("%s", x) asd qwe ... (gdb) ```
Use the string specifier: ``` print /s x ```
45,532,118
How to get page views on JavaScript? I want to get and display how many times a page is viewed, just like Stack Overflow. How to do it by JavaScript? Thx!
2017/08/06
[ "https://Stackoverflow.com/questions/45532118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7907661/" ]
This can be done in javascript. You've to use browsers local storage to store the page view count to use it. You can use either [window.localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) or [window.sessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). `...
Using client-side JavaScript will not get the job done. However, if you still want to use JavaScript then you should take a look at Node.js. Ideally, you would want to record the number of unique sessions, although, you can still record a page refresh as a page view. This can be done with the following piece of code ...
45,532,118
How to get page views on JavaScript? I want to get and display how many times a page is viewed, just like Stack Overflow. How to do it by JavaScript? Thx!
2017/08/06
[ "https://Stackoverflow.com/questions/45532118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7907661/" ]
This can be done in javascript. You've to use browsers local storage to store the page view count to use it. You can use either [window.localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) or [window.sessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). `...
With nodejs (serverside javascript) and express ( a library) you could do the following: ``` var counter = 0; var app = require("express"); app.get("/",function(req,res){ counter++; res.render("main.ejs",{counter}); }); app.listen(80); ``` *main.ejs* should look like this: ``` The page was visited <%= coun...
45,532,118
How to get page views on JavaScript? I want to get and display how many times a page is viewed, just like Stack Overflow. How to do it by JavaScript? Thx!
2017/08/06
[ "https://Stackoverflow.com/questions/45532118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7907661/" ]
This can be done in javascript. You've to use browsers local storage to store the page view count to use it. You can use either [window.localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) or [window.sessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). `...
You might want to store that in Database.
61,307,661
So I'm building a simple API in Spring Boot that retrieves specific books and their authors form a database. The book has an id, name, year that it was published and a foreign key for the Author of that book. Here is the model: ``` @Entity @Table(name="book", schema = "book_store") public class Book { @Id pri...
2020/04/19
[ "https://Stackoverflow.com/questions/61307661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10235801/" ]
1. You can change the font size of the title using <https://api.highcharts.com/highcharts/title.style> 2. You can remove the first series from legend by setting **series.showInLegend: false** <https://api.highcharts.com/highcharts/series.line.showInLegend> 3. You can position your series in legend using **series.legend...
For the title you can do this, ``` `style: { fontSize: "14px" }` ``` For removing 'series 1' you can insert `showInLegend: false`. API: <https://api.highcharts.com/highcharts/plotOptions.series.showInLegend> ``` `series: [ { type: "line", data: data, ...
2,175,119
I have a jsp page in which i pass information to 2nd page where i display info in 2nd page using the info passed from the ist page.The problem arises when i use the browser back button.How can i make my browser back button to have updated and refreshed data
2010/02/01
[ "https://Stackoverflow.com/questions/2175119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/390543/" ]
The only way is to use `HttpSession` for this -so that the data is available during the entire session-, in combination with post-redirect-get pattern and disabling of the client side cache -so that the back button doesn't request the page from the browser history/cache, but instead requests a brand new one from the se...
I m not sure, but you can try following options. 1)store the form data in session variable and keep upading in next page. So that when the user hits back (the page loading will happend) button the page will load with the session variables new data. 2)<http://www.servletsuite.com/servlets/backtag.htm> 3)<http://www.t...
2,175,119
I have a jsp page in which i pass information to 2nd page where i display info in 2nd page using the info passed from the ist page.The problem arises when i use the browser back button.How can i make my browser back button to have updated and refreshed data
2010/02/01
[ "https://Stackoverflow.com/questions/2175119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/390543/" ]
The only way is to use `HttpSession` for this -so that the data is available during the entire session-, in combination with post-redirect-get pattern and disabling of the client side cache -so that the back button doesn't request the page from the browser history/cache, but instead requests a brand new one from the se...
I think the essence of the question is: how can I make the browser re-request the first page after the user presses 'Back' rather than display the old, temporarily-cached version of the page? The answer would be to make the result of fetching page 1 uncacheable. This is done with HTTP response headers, and a quick and...
150,720
Let $N,n$ be natural numbers. Let us define $a\_n=m$ when $N!$ **can** be divided by $(n!)^m$ and it **cannot** be divided by $(n!)^{m+1}$. For a given $N(\ge 2)$, let $\min(N)$ be the min of $na\_n\ (2\le n\le N)$. Then, here is my question. > > **Question** : What is $\min(N)$? > > > **Example** : $$\min(2...
2013/12/03
[ "https://mathoverflow.net/questions/150720", "https://mathoverflow.net", "https://mathoverflow.net/users/34490/" ]
Lemma: Let $n,a$, be positive integers with $r = n \bmod a$, the remainder after dividing $n$ by $a$. Using Iverson notation [statement] is $1$ if true, $0$ otherwise, $\lfloor 2n/a \rfloor = 2\lfloor n/a \rfloor + [2r \geq a]$. From this, one shows that the exponent of a prime $p$ in a prime factorization of $C\_n={n...
I've just found that we can easily get $\min(N)$ in the following way, but a more direct answer is welcome. Thanks to The Masked Avenger's comment above, I've just got the following : $\min(N)=M$ where $M$ is the **minimum** number which satisfies $$a\_M=1,\ \ \left\lfloor\frac{N}{2}\right\rfloor +1\le M\le N^{\prime...
10,316,055
I'm about to write a tool with which our developers can checkout sources for an artifact given its maven coordinates. The tool should be able to optionally checkout sources recursively for all SNAPSHOT dependencies as well. My first question would be: Do I need to write this tool at all? One would imagine that this is...
2012/04/25
[ "https://Stackoverflow.com/questions/10316055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1353043/" ]
For each project you want to checkout this way, you could add a profile containing plugin configuration for the scm plugin's bootstrap goal. The plugin config would be in the same POM as the scm URL, so that handles #2 & 3; you wouldn't need a separate bootstrap-pom. For getting the initial POM, you could use `depende...
The solution of user944849 doesn't work for me, but here is an example that works ``` mvn dependency:get -Dartifact=ar.com.hjg:pngj:2.1.0:pom -Ddest=pom.xml mvn scm:bootstrap -Dgoals=validate mv target/checkout ~/projects/pngj ```
53,888,100
I have game level data hardcoded in onCreate method of Activity Class, but b I want to access them from other classes to. The data itself doesn't change. Where should I keep the data, what is the most efficient way? ``` override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) set...
2018/12/21
[ "https://Stackoverflow.com/questions/53888100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10728072/" ]
For data that does not change I suggest you use a [`TypedArray`-Resource](https://developer.android.com/guide/topics/resources/string-resource#StringArray) XML file saved at res/values/arrays.xml: ``` <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="words"> <item>"aris"</item> ...
You can have a static class DataHandler that has the data and access it from this class in all activities. Update(2022): Don't use static classes :) You can just use a file.
53,888,100
I have game level data hardcoded in onCreate method of Activity Class, but b I want to access them from other classes to. The data itself doesn't change. Where should I keep the data, what is the most efficient way? ``` override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) set...
2018/12/21
[ "https://Stackoverflow.com/questions/53888100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10728072/" ]
For data that does not change I suggest you use a [`TypedArray`-Resource](https://developer.android.com/guide/topics/resources/string-resource#StringArray) XML file saved at res/values/arrays.xml: ``` <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="words"> <item>"aris"</item> ...
The fastest way to save and change data in game play for your need (saving string array) is to use shared preferences: <https://developer.android.com/training/data-storage/shared-preferences>
111,296
It took 5-6 months to hear from the referee in both of my accepted papers. In my one rejection it was only a couple of weeks. I do not think it could possibly take 5-6 months to read and understand my papers. Should I conclude that my referee's wait a few months to even begin reading my papers? Are they trying to a...
2018/06/16
[ "https://academia.stackexchange.com/questions/111296", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/54843/" ]
Reading your paper is not the only obligation your referee has. They are active researchers who, besides their own research, have teaching, administration, thesis defenses, other papers to review etc. They are also normal people, who have to make their personal life function. 5-6 months is a long time, but depending o...
It’s unlikely they’re all sitting on the paper, although as has been mentioned it’s very field-dependent. A six-month delay in my field without any feedback would be approaching a four- to five-sigma event, but in math or some humanities fields, for instance, it might be more common. What is possible is that the edit...
111,296
It took 5-6 months to hear from the referee in both of my accepted papers. In my one rejection it was only a couple of weeks. I do not think it could possibly take 5-6 months to read and understand my papers. Should I conclude that my referee's wait a few months to even begin reading my papers? Are they trying to a...
2018/06/16
[ "https://academia.stackexchange.com/questions/111296", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/54843/" ]
Reading your paper is not the only obligation your referee has. They are active researchers who, besides their own research, have teaching, administration, thesis defenses, other papers to review etc. They are also normal people, who have to make their personal life function. 5-6 months is a long time, but depending o...
Reviewing a paper takes me 4 hours upto 2 days. I only accept review invitations when I have time to read those papers. I have not yet declined any serious invitation. I try to submit my (naturally constructive) review within two weeks after being invited by an editor, no matter the time being given. In contrast, I h...
111,296
It took 5-6 months to hear from the referee in both of my accepted papers. In my one rejection it was only a couple of weeks. I do not think it could possibly take 5-6 months to read and understand my papers. Should I conclude that my referee's wait a few months to even begin reading my papers? Are they trying to a...
2018/06/16
[ "https://academia.stackexchange.com/questions/111296", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/54843/" ]
Reading your paper is not the only obligation your referee has. They are active researchers who, besides their own research, have teaching, administration, thesis defenses, other papers to review etc. They are also normal people, who have to make their personal life function. 5-6 months is a long time, but depending o...
A personal experience as editor (which might help understand why this happens): An interesting paper finds its way to me via the editorial office. I usually try to use one of the suggested reviewers and another one - so those are invited and have about 3 weeks to reply. Both reviewers fail to reply within 21 days and ...
111,296
It took 5-6 months to hear from the referee in both of my accepted papers. In my one rejection it was only a couple of weeks. I do not think it could possibly take 5-6 months to read and understand my papers. Should I conclude that my referee's wait a few months to even begin reading my papers? Are they trying to a...
2018/06/16
[ "https://academia.stackexchange.com/questions/111296", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/54843/" ]
It’s unlikely they’re all sitting on the paper, although as has been mentioned it’s very field-dependent. A six-month delay in my field without any feedback would be approaching a four- to five-sigma event, but in math or some humanities fields, for instance, it might be more common. What is possible is that the edit...
A personal experience as editor (which might help understand why this happens): An interesting paper finds its way to me via the editorial office. I usually try to use one of the suggested reviewers and another one - so those are invited and have about 3 weeks to reply. Both reviewers fail to reply within 21 days and ...
111,296
It took 5-6 months to hear from the referee in both of my accepted papers. In my one rejection it was only a couple of weeks. I do not think it could possibly take 5-6 months to read and understand my papers. Should I conclude that my referee's wait a few months to even begin reading my papers? Are they trying to a...
2018/06/16
[ "https://academia.stackexchange.com/questions/111296", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/54843/" ]
Reviewing a paper takes me 4 hours upto 2 days. I only accept review invitations when I have time to read those papers. I have not yet declined any serious invitation. I try to submit my (naturally constructive) review within two weeks after being invited by an editor, no matter the time being given. In contrast, I h...
A personal experience as editor (which might help understand why this happens): An interesting paper finds its way to me via the editorial office. I usually try to use one of the suggested reviewers and another one - so those are invited and have about 3 weeks to reply. Both reviewers fail to reply within 21 days and ...
12,555,213
The problem can be seen at <http://dev.breinwijzer.be/agenda-2012>. I have a range of divs that share the drupal- generated class `.views-row`. These divs need to grow vertically. Most of them do, but the recent ones that are added on top, overlap. Here’s what I’ve tried so far: I’ve tried `min-height`, but that on...
2012/09/23
[ "https://Stackoverflow.com/questions/12555213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/561237/" ]
The problem is your HTML, not your CSS. ![Screenshot of HTML via inspect element](https://i.stack.imgur.com/MBuUP.png) Your first "views-row" is containing the rest of the rows, these should be outside of it. As you can see, the selected block and the blocks below that should not be contained with that parent, they s...
I'm not sure if that's intended, but all `.views-row` are inside the first one. <http://cl.ly/image/1X1x2b170O0m> First try to validate your website and fix the html issues: especially these related to omitted end tags - open elements without close tag.
7,780,521
I'm doing a homework assignment for my theory of computation class and am a bit confused how to combine 2 DFAs. The book says it uses the "intersection construction" to do so, but I'm not sure what that is. Here are 2 examples: ![enter image description here](https://i.stack.imgur.com/AD6WJ.png) ![enter image descrip...
2011/10/15
[ "https://Stackoverflow.com/questions/7780521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/385051/" ]
The idea is pretty straightforward, although I can see where the confusion comes in. I will give a text/symbolic description of the process for making the intersection (union, difference) machines via the Cartesian Product Machine construction (same thing as you are talking about). A DFA is a 5-tuple (E, Q, q0, A, f) ...
These are: {s∈{a,b,c}∗:every a in s is immediately followed by a b} {s∈{a,b,c}∗:every a in s is immediately followed by a b} and {s∈{a,b,c}∗: every c in s is immediately preceded by a b} [![enter image description here](https://i.stack.imgur.com/fCT4M.jpg)](https://i.stack.imgur.com/fCT4M.jpg) In front and another aut...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Take the following idealized situation: * the person of interest is standing perfectly still, and is of a fixed homogeneous color * the background (grass) is of a fixed homogeneous color (significantly different from the person). * Legolas knows the proprotions of people, and the colors of the person of interest and t...
Legolas probably only needs *one* eye if he has enough time and can make sufficiently accurate spectral measurements. First, note that Legolas was watching on a sunny day; we'll assume that between incident intensity and albedo that object were reflecting on the order of $ 100 \mathrm{W}/\mathrm{m}^2$ light, which is ...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Legolas probably only needs *one* eye if he has enough time and can make sufficiently accurate spectral measurements. First, note that Legolas was watching on a sunny day; we'll assume that between incident intensity and albedo that object were reflecting on the order of $ 100 \mathrm{W}/\mathrm{m}^2$ light, which is ...
In the spirit of your question, having two eyes and assuming you can use them as an array (which requires measuring the phase of the light-something eyes don't do) allows you to use the distance between them for $D$ in the resolution equation. I don't know the spacing of an elf's eyes, so will use $6 cm$ for convenienc...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Fun question! As you pointed out, $$\theta \approx 1.22\frac{\lambda}{D}$$ For a human-like eye, which has a [maximum pupil diameter](http://en.wikipedia.org/wiki/Pupil) of about $9\ \mathrm{mm}$ and choosing the shortest wavelength in the visible spectrum of about $390\ \mathrm{nm}$, the angular resolution works ou...
One thing that you failed to take into account. The curve of the planet (Middle Earth is similar in size and curvature to Earth). You can only see 3 miles to the horizon of the ocean at 6 feet tall. To see 24 km, you would need to be almost 100m above the objects being viewed. So unless Legolas was atop a very (very) t...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Let's first substitute the numbers to see what is the required diameter of the pupil according to the simple formula: $$ \theta = 1.22 \frac{0.4\,\mu{\rm m}}{D} = \frac{2\,{\rm m}}{24\,{\rm km}} $$ I've substituted the minimal (violet...) wavelength because that color allowed me a better resolution i.e. smaller $\theta...
There is also a geometric limitation for seeing that far. I have [Q&A'ed](https://math.stackexchange.com/questions/902017/how-far-can-one-see-over-the-ocean) it on mathematics.SE. If standing on level ground, Legolas would have been able to see only 4.8km far due to the planet's curvature (assuming that Middle Earth is...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Legolas probably only needs *one* eye if he has enough time and can make sufficiently accurate spectral measurements. First, note that Legolas was watching on a sunny day; we'll assume that between incident intensity and albedo that object were reflecting on the order of $ 100 \mathrm{W}/\mathrm{m}^2$ light, which is ...
There is also a geometric limitation for seeing that far. I have [Q&A'ed](https://math.stackexchange.com/questions/902017/how-far-can-one-see-over-the-ocean) it on mathematics.SE. If standing on level ground, Legolas would have been able to see only 4.8km far due to the planet's curvature (assuming that Middle Earth is...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Fun question! As you pointed out, $$\theta \approx 1.22\frac{\lambda}{D}$$ For a human-like eye, which has a [maximum pupil diameter](http://en.wikipedia.org/wiki/Pupil) of about $9\ \mathrm{mm}$ and choosing the shortest wavelength in the visible spectrum of about $390\ \mathrm{nm}$, the angular resolution works ou...
Let's first substitute the numbers to see what is the required diameter of the pupil according to the simple formula: $$ \theta = 1.22 \frac{0.4\,\mu{\rm m}}{D} = \frac{2\,{\rm m}}{24\,{\rm km}} $$ I've substituted the minimal (violet...) wavelength because that color allowed me a better resolution i.e. smaller $\theta...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Deconvolution can work but it only works well in case of point sources [as e.g. pointed out here](http://www.goedoc.uni-goettingen.de/goescholar/bitstream/handle/1/9858/aa2320-04.pdf?sequence=1). The principle is simple; the blurring due to the finite aperture is a known mathematical mapping that maps a hypothetically ...
There is also a geometric limitation for seeing that far. I have [Q&A'ed](https://math.stackexchange.com/questions/902017/how-far-can-one-see-over-the-ocean) it on mathematics.SE. If standing on level ground, Legolas would have been able to see only 4.8km far due to the planet's curvature (assuming that Middle Earth is...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Let's first substitute the numbers to see what is the required diameter of the pupil according to the simple formula: $$ \theta = 1.22 \frac{0.4\,\mu{\rm m}}{D} = \frac{2\,{\rm m}}{24\,{\rm km}} $$ I've substituted the minimal (violet...) wavelength because that color allowed me a better resolution i.e. smaller $\theta...
Here is another possibility which hasn't been mentioned yet. If an object A can be completely hidden behind another object of similar shape B, then B must be larger than A. Conversely, A passes behind B and remains partly visible the whole time, this is evidence that A is larger than B (or that A is not passing directl...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Take the following idealized situation: * the person of interest is standing perfectly still, and is of a fixed homogeneous color * the background (grass) is of a fixed homogeneous color (significantly different from the person). * Legolas knows the proprotions of people, and the colors of the person of interest and t...
Deconvolution can work but it only works well in case of point sources [as e.g. pointed out here](http://www.goedoc.uni-goettingen.de/goescholar/bitstream/handle/1/9858/aa2320-04.pdf?sequence=1). The principle is simple; the blurring due to the finite aperture is a known mathematical mapping that maps a hypothetically ...
122,785
The video [“How Far Can Legolas See?”](https://www.youtube.com/watch?v=Rk2izv-c_ts) by MinutePhysics recently went viral. The video states that although Legolas would in principle be able to count $105$ horsemen $24\text{ km}$ away, he shouldn't have been able to tell that their leader was very tall. ![enter image des...
2014/07/02
[ "https://physics.stackexchange.com/questions/122785", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24791/" ]
Let's first substitute the numbers to see what is the required diameter of the pupil according to the simple formula: $$ \theta = 1.22 \frac{0.4\,\mu{\rm m}}{D} = \frac{2\,{\rm m}}{24\,{\rm km}} $$ I've substituted the minimal (violet...) wavelength because that color allowed me a better resolution i.e. smaller $\theta...
Deconvolution can work but it only works well in case of point sources [as e.g. pointed out here](http://www.goedoc.uni-goettingen.de/goescholar/bitstream/handle/1/9858/aa2320-04.pdf?sequence=1). The principle is simple; the blurring due to the finite aperture is a known mathematical mapping that maps a hypothetically ...
59,754,899
If we delete the part starting with `if (indexMax != i)` from the code below (the last part) the Algoritm shatters, why? ``` public static void selectionSort(int[] array) { for (int i = 0; i < array.length; i++) { int indexMax = i; for (int j = i + 1; j < array.length; j++) { if (array...
2020/01/15
[ "https://Stackoverflow.com/questions/59754899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12695244/" ]
Your code would do the following: ``` arr[] = 1, 5, 2, 4, 3 // find the max from arr[0..4] // substitute it with the index 0, if it is not of that index already arr[] = 5, 1, 2, 4, 3 // find the max from arr[1..4] // substitute it with the index 1, if it is not of that index already arr[] = 5, 4, 2, 1, 3 // find t...
From the code you posted with my comments: ``` int indexMax = i; // initial value of indexMax for (int j = i + 1; j < array.length; j++) { // please note that j starts with (i+1) if (array[indexMax] < array[j]) { indexMax = j; // index of Max candidate } } if (...
59,754,899
If we delete the part starting with `if (indexMax != i)` from the code below (the last part) the Algoritm shatters, why? ``` public static void selectionSort(int[] array) { for (int i = 0; i < array.length; i++) { int indexMax = i; for (int j = i + 1; j < array.length; j++) { if (array...
2020/01/15
[ "https://Stackoverflow.com/questions/59754899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12695244/" ]
From the code you posted with my comments: ``` int indexMax = i; // initial value of indexMax for (int j = i + 1; j < array.length; j++) { // please note that j starts with (i+1) if (array[indexMax] < array[j]) { indexMax = j; // index of Max candidate } } if (...
In the picture you can see how duplicate items move their relative position.This introduce instability. For three duplicate items: [![3 duplicate item](https://i.stack.imgur.com/cKwma.png)](https://i.stack.imgur.com/cKwma.png) For two duplicate items: [![2 duplicate item](https://i.stack.imgur.com/dFSdt.png)](http...
59,754,899
If we delete the part starting with `if (indexMax != i)` from the code below (the last part) the Algoritm shatters, why? ``` public static void selectionSort(int[] array) { for (int i = 0; i < array.length; i++) { int indexMax = i; for (int j = i + 1; j < array.length; j++) { if (array...
2020/01/15
[ "https://Stackoverflow.com/questions/59754899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12695244/" ]
Your code would do the following: ``` arr[] = 1, 5, 2, 4, 3 // find the max from arr[0..4] // substitute it with the index 0, if it is not of that index already arr[] = 5, 1, 2, 4, 3 // find the max from arr[1..4] // substitute it with the index 1, if it is not of that index already arr[] = 5, 4, 2, 1, 3 // find t...
In the picture you can see how duplicate items move their relative position.This introduce instability. For three duplicate items: [![3 duplicate item](https://i.stack.imgur.com/cKwma.png)](https://i.stack.imgur.com/cKwma.png) For two duplicate items: [![2 duplicate item](https://i.stack.imgur.com/dFSdt.png)](http...
5,588,259
I have a app where people can delete stuff. I am wanting to disable all my buttons so the user has to wait till the action is done. I have the setHidesBackButton working, but it looks tacky. I would rather have it just become inactive where if the user taps it, they can't go anywhere. I have looked into a few things...
2011/04/07
[ "https://Stackoverflow.com/questions/5588259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/613860/" ]
Here's what I did: when it was loading, I set the user interaction like this: ``` self.view.userInteractionEnabled = NO; ``` Then when it was done, I did this: ``` self.view.userInteractionEnabled = YES; ``` Hope I helped some people.
One approach is to put a modal view with user interaction disabled over the whole screen. The view can use transparency to 'dim' the screen and you could add a UIActivityView to this view so the user knows they need to wait for a moment. If you just want to make the buttons inactive, I've done this before with a tran...
4,125
**What subset of Hegel should a person know to understand Marxist philosophy?** In political alignment i'm a Marxist, and mostly subscribe to social and political positions of the kinds like Slavoj Žižek or István Mészáros. However in philosophy i was always a logical positivist and was never interested in continental...
2012/11/02
[ "https://philosophy.stackexchange.com/questions/4125", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/945/" ]
You might be interested in Alexandre Kojève's *Introduction to the Reading of Hegel*. The first chapter is available on the site DBK recommended (www.marxists.org). Kojève has a few other works of note (though only the *Introduction* and *Outline of a Phenomenology of Right* have been translated into English--though *T...
The site you link to (marxism.org) has lots of freely available material: * [Index of Marxists.org Hegel Archives](http://www.marxists.org/reference/archive/hegel/index.htm) * [Some Helpful Reference Materials from Marxists.org](http://www.marxists.org/reference/archive/hegel/li_help.htm) In particular you might want...
4,125
**What subset of Hegel should a person know to understand Marxist philosophy?** In political alignment i'm a Marxist, and mostly subscribe to social and political positions of the kinds like Slavoj Žižek or István Mészáros. However in philosophy i was always a logical positivist and was never interested in continental...
2012/11/02
[ "https://philosophy.stackexchange.com/questions/4125", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/945/" ]
The site you link to (marxism.org) has lots of freely available material: * [Index of Marxists.org Hegel Archives](http://www.marxists.org/reference/archive/hegel/index.htm) * [Some Helpful Reference Materials from Marxists.org](http://www.marxists.org/reference/archive/hegel/li_help.htm) In particular you might want...
I liked *Reason and Revolution: Hegel and the Rise of Social Theory* by Herbert Marcuse. <https://en.wikipedia.org/wiki/Reason_and_Revolution>
4,125
**What subset of Hegel should a person know to understand Marxist philosophy?** In political alignment i'm a Marxist, and mostly subscribe to social and political positions of the kinds like Slavoj Žižek or István Mészáros. However in philosophy i was always a logical positivist and was never interested in continental...
2012/11/02
[ "https://philosophy.stackexchange.com/questions/4125", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/945/" ]
You might be interested in Alexandre Kojève's *Introduction to the Reading of Hegel*. The first chapter is available on the site DBK recommended (www.marxists.org). Kojève has a few other works of note (though only the *Introduction* and *Outline of a Phenomenology of Right* have been translated into English--though *T...
I liked *Reason and Revolution: Hegel and the Rise of Social Theory* by Herbert Marcuse. <https://en.wikipedia.org/wiki/Reason_and_Revolution>
134,960
Someone says we can derive the [GL equations](http://en.wikipedia.org/wiki/Ginzburg%E2%80%93Landau_theory) from [BCS theory](http://en.wikipedia.org/wiki/BCS_theory), which can explain [Meissner effect](http://en.wikipedia.org/wiki/Meissner_effect), but I want a more clear physical picture of this phenomena.
2014/09/11
[ "https://physics.stackexchange.com/questions/134960", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24452/" ]
*The bottom line is the spontaneous symmetry breakdown from **global** $U(1)$ to $\mathbb{Z}\_2$ and the concomitant rigidity of the omnipresent coherent phase down to which the system breaks. However, both the microscopic action and the BCS ground state (3) of a superconductor possess **local** $U(1)$ gauge symmetry.*...
In all theories (London, Ginzburg-Landau, Bardeen-Cooper-Schrieffer, Bogoliubov-Gennes) the Meissner effect is accounted for as the constitutive relation $j\propto A$ : the current is proportional to the vector-potential. (The proportionality factor depends on the system of units, so let us forget about that here.) Fo...
134,960
Someone says we can derive the [GL equations](http://en.wikipedia.org/wiki/Ginzburg%E2%80%93Landau_theory) from [BCS theory](http://en.wikipedia.org/wiki/BCS_theory), which can explain [Meissner effect](http://en.wikipedia.org/wiki/Meissner_effect), but I want a more clear physical picture of this phenomena.
2014/09/11
[ "https://physics.stackexchange.com/questions/134960", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24452/" ]
In all theories (London, Ginzburg-Landau, Bardeen-Cooper-Schrieffer, Bogoliubov-Gennes) the Meissner effect is accounted for as the constitutive relation $j\propto A$ : the current is proportional to the vector-potential. (The proportionality factor depends on the system of units, so let us forget about that here.) Fo...
@FraSchelle I think I understand(somewhat) the fundamentals of massive photon creation in SC (thru Higgs mech. ) as you presented...However, I would like to ask... is there a possibility that since a laser beam is a bosonic condensate, does it break symmetry (similarly) and more importantly is there some possibility fo...
134,960
Someone says we can derive the [GL equations](http://en.wikipedia.org/wiki/Ginzburg%E2%80%93Landau_theory) from [BCS theory](http://en.wikipedia.org/wiki/BCS_theory), which can explain [Meissner effect](http://en.wikipedia.org/wiki/Meissner_effect), but I want a more clear physical picture of this phenomena.
2014/09/11
[ "https://physics.stackexchange.com/questions/134960", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24452/" ]
In all theories (London, Ginzburg-Landau, Bardeen-Cooper-Schrieffer, Bogoliubov-Gennes) the Meissner effect is accounted for as the constitutive relation $j\propto A$ : the current is proportional to the vector-potential. (The proportionality factor depends on the system of units, so let us forget about that here.) Fo...
I doubt any explanation of the Meissner effect within todays formulation of the s.c. BCS -theory. 1. The old `proof'' just shows in bulk, that if there is an`attractive'' potential correlating electrons of opposite spin and momentum, then in a stable symmetry breaking equilbrium phase, with anomalous averages $<a\_{k,...
134,960
Someone says we can derive the [GL equations](http://en.wikipedia.org/wiki/Ginzburg%E2%80%93Landau_theory) from [BCS theory](http://en.wikipedia.org/wiki/BCS_theory), which can explain [Meissner effect](http://en.wikipedia.org/wiki/Meissner_effect), but I want a more clear physical picture of this phenomena.
2014/09/11
[ "https://physics.stackexchange.com/questions/134960", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24452/" ]
*The bottom line is the spontaneous symmetry breakdown from **global** $U(1)$ to $\mathbb{Z}\_2$ and the concomitant rigidity of the omnipresent coherent phase down to which the system breaks. However, both the microscopic action and the BCS ground state (3) of a superconductor possess **local** $U(1)$ gauge symmetry.*...
@FraSchelle I think I understand(somewhat) the fundamentals of massive photon creation in SC (thru Higgs mech. ) as you presented...However, I would like to ask... is there a possibility that since a laser beam is a bosonic condensate, does it break symmetry (similarly) and more importantly is there some possibility fo...
134,960
Someone says we can derive the [GL equations](http://en.wikipedia.org/wiki/Ginzburg%E2%80%93Landau_theory) from [BCS theory](http://en.wikipedia.org/wiki/BCS_theory), which can explain [Meissner effect](http://en.wikipedia.org/wiki/Meissner_effect), but I want a more clear physical picture of this phenomena.
2014/09/11
[ "https://physics.stackexchange.com/questions/134960", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/24452/" ]
*The bottom line is the spontaneous symmetry breakdown from **global** $U(1)$ to $\mathbb{Z}\_2$ and the concomitant rigidity of the omnipresent coherent phase down to which the system breaks. However, both the microscopic action and the BCS ground state (3) of a superconductor possess **local** $U(1)$ gauge symmetry.*...
I doubt any explanation of the Meissner effect within todays formulation of the s.c. BCS -theory. 1. The old `proof'' just shows in bulk, that if there is an`attractive'' potential correlating electrons of opposite spin and momentum, then in a stable symmetry breaking equilbrium phase, with anomalous averages $<a\_{k,...
51,142,783
I'm trying to drive the columnMapping property from a database configuration table. My first activity in the pipeline pulls in the rows from the config table. My copy activity source is a Json file in Azure blob storage and my sink is an Azure SQL database. In copy activity I'm setting the mapping using the dynamic co...
2018/07/02
[ "https://Stackoverflow.com/questions/51142783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6680011/" ]
The issue is due to the dot (.) sign in your column name. 1. To use column mapping, you should also specify structure in your source and sink dataset. 2. For your source dataset, you need specify your format correctly. And since your column name has dot, you need specify the json path as following. [![enter image des...
There seems to be a disconnect between the question and the answer, so I'll hopefully provide a more straightforward answer. When setting this up, you should have a source dataset with dynamic mapping. The sink doesn't require one, as we're going to specify it in the mapping. Within the copy activity, format the dyna...
51,142,783
I'm trying to drive the columnMapping property from a database configuration table. My first activity in the pipeline pulls in the rows from the config table. My copy activity source is a Json file in Azure blob storage and my sink is an Azure SQL database. In copy activity I'm setting the mapping using the dynamic co...
2018/07/02
[ "https://Stackoverflow.com/questions/51142783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6680011/" ]
The issue is due to the dot (.) sign in your column name. 1. To use column mapping, you should also specify structure in your source and sink dataset. 2. For your source dataset, you need specify your format correctly. And since your column name has dot, you need specify the json path as following. [![enter image des...
VladDrak - You could skip the source dynamic definition by building dynamic mapping like this: ``` { "translator": { "type": "TabularTranslator", "mappings": [ { "source": { "type": "String", "ordinal": "1" }, "sink": { "name": "dateOfActivity", ...
51,142,783
I'm trying to drive the columnMapping property from a database configuration table. My first activity in the pipeline pulls in the rows from the config table. My copy activity source is a Json file in Azure blob storage and my sink is an Azure SQL database. In copy activity I'm setting the mapping using the dynamic co...
2018/07/02
[ "https://Stackoverflow.com/questions/51142783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6680011/" ]
There seems to be a disconnect between the question and the answer, so I'll hopefully provide a more straightforward answer. When setting this up, you should have a source dataset with dynamic mapping. The sink doesn't require one, as we're going to specify it in the mapping. Within the copy activity, format the dyna...
VladDrak - You could skip the source dynamic definition by building dynamic mapping like this: ``` { "translator": { "type": "TabularTranslator", "mappings": [ { "source": { "type": "String", "ordinal": "1" }, "sink": { "name": "dateOfActivity", ...
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A typical sigmoid curve is the tanh(x) curve. By definition, ``` tanh(x) = sinh(x) / cosh(x) = = [(1/2) (e^x - e^-x)] / [(1/2) (e^x + e^-x)] = = (e^x - e^-x) / (e^x + e^-x) = = (e^(2x) - 1) / (e^(2x) + 1) ``` ![](https://privat.rejbrand.se/tanh.png) [(High-res)](https://privat.rej...
All this is wonderful, but there's another thought: Assume a third order polynomial: [![alt text](https://i.stack.imgur.com/C4nHj.gif)](https://i.stack.imgur.com/C4nHj.gif) (source: [equationsheet.com](http://www.equationsheet.com/latexrender/pictures/8d042b424361b16bfd1c090dd1fc79a8.gif)) You have four boundary...
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
If you want a single, analytic function, then ArcTangent and Hyperbolic Tangent both have that shape, you just need to shift it over a bit. If you want it to only start at the origin and be flat, look at Exp[-1/x^n], for n>=1. This produces a curve that is exceedingly flat at the origin.
All this is wonderful, but there's another thought: Assume a third order polynomial: [![alt text](https://i.stack.imgur.com/C4nHj.gif)](https://i.stack.imgur.com/C4nHj.gif) (source: [equationsheet.com](http://www.equationsheet.com/latexrender/pictures/8d042b424361b16bfd1c090dd1fc79a8.gif)) You have four boundary...
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A typical sigmoid curve is the tanh(x) curve. By definition, ``` tanh(x) = sinh(x) / cosh(x) = = [(1/2) (e^x - e^-x)] / [(1/2) (e^x + e^-x)] = = (e^x - e^-x) / (e^x + e^-x) = = (e^(2x) - 1) / (e^(2x) + 1) ``` ![](https://privat.rejbrand.se/tanh.png) [(High-res)](https://privat.rej...
A [Bézier curve](http://en.wikipedia.org/wiki/B%C3%A9zier_curve)? The corresponding algorithm to draw it would be [de Casteljau's algorithm](http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm).
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
If you want a single, analytic function, then ArcTangent and Hyperbolic Tangent both have that shape, you just need to shift it over a bit. If you want it to only start at the origin and be flat, look at Exp[-1/x^n], for n>=1. This produces a curve that is exceedingly flat at the origin.
Might I sugggest: * The error function (`erf(x)` in C) * The normal cumulative distribution function (`0.5 * erfc(-x/sqrt(2))`) * The logistic function (`1.0 / (1.0 + exp(-x))`) * Any other sigmoid function
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A typical sigmoid curve is the tanh(x) curve. By definition, ``` tanh(x) = sinh(x) / cosh(x) = = [(1/2) (e^x - e^-x)] / [(1/2) (e^x + e^-x)] = = (e^x - e^-x) / (e^x + e^-x) = = (e^(2x) - 1) / (e^(2x) + 1) ``` ![](https://privat.rejbrand.se/tanh.png) [(High-res)](https://privat.rej...
Try to lookup sigmoid function, it looks a lot like it. [![alt text](https://i.stack.imgur.com/foU2Q.gif)](https://i.stack.imgur.com/foU2Q.gif) (source: [iag at ulcar.uml.edu](http://ulcar.uml.edu/~iag/CS/Sigmoid-function.GIF))
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
If you want a single, analytic function, then ArcTangent and Hyperbolic Tangent both have that shape, you just need to shift it over a bit. If you want it to only start at the origin and be flat, look at Exp[-1/x^n], for n>=1. This produces a curve that is exceedingly flat at the origin.
What you are looking for is called Sigmoid function. You can look it up in Wikipedia. Some function that are used for this are error function or logistic function. These are most commonly use for neural networks.
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A [Bézier curve](http://en.wikipedia.org/wiki/B%C3%A9zier_curve)? The corresponding algorithm to draw it would be [de Casteljau's algorithm](http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm).
What you are looking for is called Sigmoid function. You can look it up in Wikipedia. Some function that are used for this are error function or logistic function. These are most commonly use for neural networks.
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
Try to lookup sigmoid function, it looks a lot like it. [![alt text](https://i.stack.imgur.com/foU2Q.gif)](https://i.stack.imgur.com/foU2Q.gif) (source: [iag at ulcar.uml.edu](http://ulcar.uml.edu/~iag/CS/Sigmoid-function.GIF))
A [Bézier curve](http://en.wikipedia.org/wiki/B%C3%A9zier_curve)? The corresponding algorithm to draw it would be [de Casteljau's algorithm](http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm).
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A typical sigmoid curve is the tanh(x) curve. By definition, ``` tanh(x) = sinh(x) / cosh(x) = = [(1/2) (e^x - e^-x)] / [(1/2) (e^x + e^-x)] = = (e^x - e^-x) / (e^x + e^-x) = = (e^(2x) - 1) / (e^(2x) + 1) ``` ![](https://privat.rejbrand.se/tanh.png) [(High-res)](https://privat.rej...
If you want a single, analytic function, then ArcTangent and Hyperbolic Tangent both have that shape, you just need to shift it over a bit. If you want it to only start at the origin and be flat, look at Exp[-1/x^n], for n>=1. This produces a curve that is exceedingly flat at the origin.
3,479,842
And can you give me an example of an algorithm? [alt text http://ryancalderoni.com/archive/ideal\_curve.jpg](http://ryancalderoni.com/archive/ideal_curve.jpg) EDIT: And then how would I calculate the math using Javascript? Can someone add that? Sorry to not include that context originally.. NOTE: I am using 'flot' to...
2010/08/13
[ "https://Stackoverflow.com/questions/3479842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
A typical sigmoid curve is the tanh(x) curve. By definition, ``` tanh(x) = sinh(x) / cosh(x) = = [(1/2) (e^x - e^-x)] / [(1/2) (e^x + e^-x)] = = (e^x - e^-x) / (e^x + e^-x) = = (e^(2x) - 1) / (e^(2x) + 1) ``` ![](https://privat.rejbrand.se/tanh.png) [(High-res)](https://privat.rej...
Might I sugggest: * The error function (`erf(x)` in C) * The normal cumulative distribution function (`0.5 * erfc(-x/sqrt(2))`) * The logistic function (`1.0 / (1.0 + exp(-x))`) * Any other sigmoid function
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* 1. Run `ng init --routing` 2. And answer **no** every question from CLI. By this way you will get *app-routing.module.ts*. 3. Add `import { AppRoutingModule } from './app-routing.module';` and `imports: [AppRoutingMod...
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution. But yo...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* 1. Run `ng init --routing` 2. And answer **no** every question from CLI. By this way you will get *app-routing.module.ts*. 3. Add `import { AppRoutingModule } from './app-routing.module';` and `imports: [AppRoutingMod...
**update on the accepted answer** make sure to follow below points: **1>** make sure that `<base href="/">` is added inside index.html ``` <html> <head> <base href="/" /> <title>Angular Demo</title> ``` **2>** Add router outlet in ur app.component.html file `<router-outlet></router-outlet>` ``` ...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution. But yo...
**update on the accepted answer** make sure to follow below points: **1>** make sure that `<base href="/">` is added inside index.html ``` <html> <head> <base href="/" /> <title>Angular Demo</title> ``` **2>** Add router outlet in ur app.component.html file `<router-outlet></router-outlet>` ``` ...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
I found the simplest way so far. I know this is already answered and accepted also but it is not working in the current scenarios because `ng init` is [removed](https://github.com/angular/angular-cli/blob/ed5f47dc22d5eb4a5d4b4ae2c8f7cb0ec1a999f3/CHANGELOG.md) so if you have forgotten to add routing while creating new p...
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* It depends but if you want to add routings to existing module then add folowing to your module. ``` import { Routes, RouterModule } from '@angular/router'; const routes: Routes = []; //in array you should have your r...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
I found the simplest way so far. I know this is already answered and accepted also but it is not working in the current scenarios because `ng init` is [removed](https://github.com/angular/angular-cli/blob/ed5f47dc22d5eb4a5d4b4ae2c8f7cb0ec1a999f3/CHANGELOG.md) so if you have forgotten to add routing while creating new p...
In Angular 5/6 you can use these commands to add routing to an existing project. 1. `ng generate module app-routing --flat --module=app` --flat puts the file in src/app instead of its own folder. --module=app tells the CLI to register it in the imports array of the AppModule. This will generate the file `src/app/app...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* It depends but if you want to add routings to existing module then add folowing to your module. ``` import { Routes, RouterModule } from '@angular/router'; const routes: Routes = []; //in array you should have your r...
**update on the accepted answer** make sure to follow below points: **1>** make sure that `<base href="/">` is added inside index.html ``` <html> <head> <base href="/" /> <title>Angular Demo</title> ``` **2>** Add router outlet in ur app.component.html file `<router-outlet></router-outlet>` ``` ...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
In Angular 5/6 you can use these commands to add routing to an existing project. 1. `ng generate module app-routing --flat --module=app` --flat puts the file in src/app instead of its own folder. --module=app tells the CLI to register it in the imports array of the AppModule. This will generate the file `src/app/app...
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution. But yo...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
I found the simplest way so far. I know this is already answered and accepted also but it is not working in the current scenarios because `ng init` is [removed](https://github.com/angular/angular-cli/blob/ed5f47dc22d5eb4a5d4b4ae2c8f7cb0ec1a999f3/CHANGELOG.md) so if you have forgotten to add routing while creating new p...
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution. But yo...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* It depends but if you want to add routings to existing module then add folowing to your module. ``` import { Routes, RouterModule } from '@angular/router'; const routes: Routes = []; //in array you should have your r...
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution. But yo...
42,039,989
How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android. [![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)
2017/02/04
[ "https://Stackoverflow.com/questions/42039989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7338172/" ]
I found the simplest way so far. I know this is already answered and accepted also but it is not working in the current scenarios because `ng init` is [removed](https://github.com/angular/angular-cli/blob/ed5f47dc22d5eb4a5d4b4ae2c8f7cb0ec1a999f3/CHANGELOG.md) so if you have forgotten to add routing while creating new p...
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!* 1. Run `ng init --routing` 2. And answer **no** every question from CLI. By this way you will get *app-routing.module.ts*. 3. Add `import { AppRoutingModule } from './app-routing.module';` and `imports: [AppRoutingMod...
62,588,372
I'm trying to copy a slice from a raw pointer into a new slice `ss`: ``` pub fn receive(&mut self, data: *const u8, len: usize) { let s = unsafe{slice::from_raw_parts(data, len)}; let mut ss = [0, len]; ss.copy_from_slice(s); self.received.lock().unwrap().push_back(ss); } ``` but I'm ...
2020/06/26
[ "https://Stackoverflow.com/questions/62588372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10116440/" ]
> > I'm trying to copy a slice from a raw pointer into a new slice `ss`: > > > There is no such thing as a "new slice", a slice always points to memory from something else. If you want to copy an existing slice to a new location, you will need to allocate the data for that location, e.g. using a `Vec`: ```rust le...
Providing error messages is usually helpful to help diagnose issues. Providing an immediately usable reproduction of the issue (e.g. something on the playground) is also useful. Anyway cutting down on the things we can't know and don't care about in your function we get this: ```rust use std::slice; fn receive(data:...
51,740,608
I have the below cassandra-compose.yml file which I am trying to deploy on a docker swarm with the below command. ``` docker stack deploy --compose-file=cassandra-compose.yml cassandra-service ``` Issue:- The Service is getting created but no replicas are running.When I inspected the issue, I found that because t...
2018/08/08
[ "https://Stackoverflow.com/questions/51740608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10138985/" ]
try using this command :- ``` docker stack deploy --compose-file=cassandra-compose.yml -f cassandra-compose.yml cassandra-service ``` It will get your issue resolved
From this answer <https://stackoverflow.com/a/48972713/2138959>: [Docker Swarm BIND MOUNTS](https://docs.docker.com/engine/swarm/services/#bind-mounts) > > If you bind mount a host path into your service’s containers, the path must exist on every swarm node. The Docker swarm mode scheduler can schedule containers on...
16,771,748
I have a link, where I use Javascript to animate a changing of text. The behaviour I'd like to create is the following 1) User hovers over text, a different text fades in 2) When user moves the cursor away, the text goes back to normal. I've managed to create the changing of text by looking at another's code, but I'...
2013/05/27
[ "https://Stackoverflow.com/questions/16771748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1292663/" ]
Use callback function of `hover` instead of `mouseleave`. You don't need another event. Callback of hover will do exactly what you want. ``` $("#stepan_says").hover(function(){ $(this).find("span").animate({opacity:0},function(){ $(this).text("I have no idea! But here's the philosoph...
there is no `onmouseout` in jQuery, that's a native event, try: ``` $(this).on('mouseout', function(){ // do stuff }); ``` however, `hover()` already has callbacks for both mouseenter and mouseleave, so use those : ``` $("#stepan_says").hover(function () { $(this).find("span").animate({ opacity: 0 }, functio...
16,771,748
I have a link, where I use Javascript to animate a changing of text. The behaviour I'd like to create is the following 1) User hovers over text, a different text fades in 2) When user moves the cursor away, the text goes back to normal. I've managed to create the changing of text by looking at another's code, but I'...
2013/05/27
[ "https://Stackoverflow.com/questions/16771748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1292663/" ]
Use callback function of `hover` instead of `mouseleave`. You don't need another event. Callback of hover will do exactly what you want. ``` $("#stepan_says").hover(function(){ $(this).find("span").animate({opacity:0},function(){ $(this).text("I have no idea! But here's the philosoph...
There is no such method `onmouseout` Try ``` $(this).mouseleave(function(){ $(this).find("span").animate({opacity:0},function(){ $(this).text("This is the third text!") .animate({opacity:1}); }) }); ``` [**FIDDLE**](http://jsfiddle.net/3WMyQ/1/)
16,771,748
I have a link, where I use Javascript to animate a changing of text. The behaviour I'd like to create is the following 1) User hovers over text, a different text fades in 2) When user moves the cursor away, the text goes back to normal. I've managed to create the changing of text by looking at another's code, but I'...
2013/05/27
[ "https://Stackoverflow.com/questions/16771748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1292663/" ]
Use callback function of `hover` instead of `mouseleave`. You don't need another event. Callback of hover will do exactly what you want. ``` $("#stepan_says").hover(function(){ $(this).find("span").animate({opacity:0},function(){ $(this).text("I have no idea! But here's the philosoph...
Since you are using hover you can continue it like ``` $("#stepan_says").hover(function(){ $(this).find("span").stop().animate({opacity:0},function(){ $(this).text("I have no idea! But here's the philosophy!").animate({opacity:1}); }); }, function(){ $(this).find("span").stop().animate({opacity:...
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
You can take a rotation matrix that rotates $\phi=2\pi/n$ around some axis, for example in 3 dimensions: $$R\_\phi=\begin{pmatrix} \cos \phi & \sin\phi & 0 \\ -\sin\phi & \cos\phi &0 \\ 0 & 0 & 1\\ \end{pmatrix}$$ This won't work for $n=2$ though, because $R\_\phi$ is diagonal in that case like $R\_\phi=\operatorname...
We want to solve $A^n = I $ where $A$ and $I$ are $m \times m$ Let $ A = P \Lambda P^{-1} $ where $\Lambda = \text{diag}(\omega\_1, \omega\_2, \dots , \omega\_m) $ where the $\omega\_k$'s are $n$-roots of unity. That is, $\omega\_k = \exp\big(\dfrac{i 2 \pi j}{n} \big)$ ,$ k = 1,2,\dots,m $ and $ j \in \{ 0, 1, 2, ....
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
You can take a rotation matrix that rotates $\phi=2\pi/n$ around some axis, for example in 3 dimensions: $$R\_\phi=\begin{pmatrix} \cos \phi & \sin\phi & 0 \\ -\sin\phi & \cos\phi &0 \\ 0 & 0 & 1\\ \end{pmatrix}$$ This won't work for $n=2$ though, because $R\_\phi$ is diagonal in that case like $R\_\phi=\operatorname...
If $A^n = I$, i.e., $A^n - I = 0$, then the minimal polynomial $m\_A$ of $A$ divides $p(x) := x^n - 1$. (For $n > 1$) one nondiagonal solution is the companion matrix of $p$ itself, namely, $$C\_p := \pmatrix{\cdot & 1 \\ I\_{n - 1} & \cdot}$$ (indeed, $p = m\_{C\_p}$). Notice that $C\_p$ is the permutation matrix for...
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
You can take a rotation matrix that rotates $\phi=2\pi/n$ around some axis, for example in 3 dimensions: $$R\_\phi=\begin{pmatrix} \cos \phi & \sin\phi & 0 \\ -\sin\phi & \cos\phi &0 \\ 0 & 0 & 1\\ \end{pmatrix}$$ This won't work for $n=2$ though, because $R\_\phi$ is diagonal in that case like $R\_\phi=\operatorname...
The most general solution of the equation $A^n=1$ among $m\times m$ complex matrices is $$ A=SDS^{-1}, $$ where $S$ is an invertible matrix and $D$ is a diagonal matrix whose diagonal entries are $n^{th}$ roots of unity. The reason is that the minimal polynomial of such a matrix $A$ divides the polynomial $x^n-1$, and...
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
We want to solve $A^n = I $ where $A$ and $I$ are $m \times m$ Let $ A = P \Lambda P^{-1} $ where $\Lambda = \text{diag}(\omega\_1, \omega\_2, \dots , \omega\_m) $ where the $\omega\_k$'s are $n$-roots of unity. That is, $\omega\_k = \exp\big(\dfrac{i 2 \pi j}{n} \big)$ ,$ k = 1,2,\dots,m $ and $ j \in \{ 0, 1, 2, ....
If $A^n = I$, i.e., $A^n - I = 0$, then the minimal polynomial $m\_A$ of $A$ divides $p(x) := x^n - 1$. (For $n > 1$) one nondiagonal solution is the companion matrix of $p$ itself, namely, $$C\_p := \pmatrix{\cdot & 1 \\ I\_{n - 1} & \cdot}$$ (indeed, $p = m\_{C\_p}$). Notice that $C\_p$ is the permutation matrix for...
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
We want to solve $A^n = I $ where $A$ and $I$ are $m \times m$ Let $ A = P \Lambda P^{-1} $ where $\Lambda = \text{diag}(\omega\_1, \omega\_2, \dots , \omega\_m) $ where the $\omega\_k$'s are $n$-roots of unity. That is, $\omega\_k = \exp\big(\dfrac{i 2 \pi j}{n} \big)$ ,$ k = 1,2,\dots,m $ and $ j \in \{ 0, 1, 2, ....
The most general solution of the equation $A^n=1$ among $m\times m$ complex matrices is $$ A=SDS^{-1}, $$ where $S$ is an invertible matrix and $D$ is a diagonal matrix whose diagonal entries are $n^{th}$ roots of unity. The reason is that the minimal polynomial of such a matrix $A$ divides the polynomial $x^n-1$, and...
4,484,433
> > ***Q***. Are there $n$-th root analogs of this non-diagonal cube-root of the $3 \times 3$ > identity matrix? > > > \begin{align\*} \left( \begin{array}{ccc} 0 & 0 & -i \\ i & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right)^3 = \left( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \end{array} \right)...
2022/07/01
[ "https://math.stackexchange.com/questions/4484433", "https://math.stackexchange.com", "https://math.stackexchange.com/users/237/" ]
If $A^n = I$, i.e., $A^n - I = 0$, then the minimal polynomial $m\_A$ of $A$ divides $p(x) := x^n - 1$. (For $n > 1$) one nondiagonal solution is the companion matrix of $p$ itself, namely, $$C\_p := \pmatrix{\cdot & 1 \\ I\_{n - 1} & \cdot}$$ (indeed, $p = m\_{C\_p}$). Notice that $C\_p$ is the permutation matrix for...
The most general solution of the equation $A^n=1$ among $m\times m$ complex matrices is $$ A=SDS^{-1}, $$ where $S$ is an invertible matrix and $D$ is a diagonal matrix whose diagonal entries are $n^{th}$ roots of unity. The reason is that the minimal polynomial of such a matrix $A$ divides the polynomial $x^n-1$, and...
58,371,468
I have one list ``` a = ['find old', 'find old mails', 'finding', 'find your pc', 'find your pc s ip', 'find your pc s ip address'] ``` i want to remove SUBSET STRING from list which will give me result as ``` ['find old mails', 'finding', 'find your pc s ip address'] ``` Test Code ``` a = ['find old', 'find ol...
2019/10/14
[ "https://Stackoverflow.com/questions/58371468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11872831/" ]
By making a few alterations to your substring checking function (specifically using `in` to check for substrings) and using a list comprehension, you can achieve the desired result: ``` def is_sub(item, lst): """Check whether an item is a substring of other items in a list.""" return any([item in i for i in [i...
Why not use `in` keyword? ``` a = ['find old', 'find old mails', 'finding', 'find your pc', 'find your pc s ip', 'find your pc s ip address'] new = [] f = 0 for i in range(0,len(a)): f=0 for j in range(0, len(a)): if a[i] in a[j] and not i==j: f=1 break; if f==0: new.append(...
569,455
I want to change something in `/etc/group` - namely, to add some user to some group. But something - I don't know what or who - has created an `/etc/group.lock` file. `fuser /etc/group.lock` gives nothing, but that doesn't tell me much. How can I tell who's the "culprit"? And whether I can safely delete the lock file ...
2020/02/24
[ "https://unix.stackexchange.com/questions/569455", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/34868/" ]
Try ``` lslocks ``` will show files locked with flock manually or by apps. Try using lsof to get the user who locked the file. ``` lsof /etc/.group.swp ``` Should show similar too. ``` ~]# lsof /etc/.group.swp COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME vim 27611 root 4u REG 253,1...
You could be in Luck! There was a bug sometime back about .lock files not unlocking after issuing a useradd, though I recall it being REHL 9 or something of the sort. If you read the files they may contain a PID corresponding to the last known actor on the file. Additionally you may be able to add a user and it will ...
15,517,236
Maybe I am initializing it incorrectly? Preety sure this is how our teacher showed us how to do it.. but im stumped. I am trying to use the function as an accessor and get the data and display what is already stored in the struct "coordinate" under the member "Entrance" Header file: ``` #include <iostream> #include ...
2013/03/20
[ "https://Stackoverflow.com/questions/15517236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2189647/" ]
> > However, most example I encounter is, they update their UI indirectly > through an ArrayAdapter. > > > Using a `Loader` doesn't require that you must use a `ListView`, you can update whatever view you target in your application. > > What I know what is the correct way to update Fragment UI dynamically, > a...
For a while I was also trying to achieve the same. Based on the above answer, what worked for me was this: ``` @Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { adapter.swapCursor(cursor); ViewGroup container = (ViewGroup) getView().findViewById(R.id.fragment_oam); if (containe...
13,545,546
I want to change the background color of a link with jQuery, the orginal CSS for the link is ``` #container ul li:hover ul li a{ background: #FF0000 } ``` I'm trying the following jQuery code, but it does not seem to work. ``` jQuery('#container ul li:hover ul li a').css('background', '#FF0000'); ``` I can se...
2012/11/24
[ "https://Stackoverflow.com/questions/13545546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1355300/" ]
try this: ``` jQuery('#container ul li ul li a').hover(function(){ $(this).css('background', '#FF0000'); }) ``` or this : ``` jQuery('#container ul li').hover(function(){ $(this).find("ul li a").css('background', '#FF0000'); }) ```
You could try it with the jquery hover function. <http://api.jquery.com/hover/> And re-set the color.
50,423,340
Hi I want to set filter on field `date` where the value of date field should within 24 hours. `<filter name="date" string="Scheduled Date" domain="[('date', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date', '&lt;=', datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>` I tried this one, b...
2018/05/19
[ "https://Stackoverflow.com/questions/50423340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9610978/" ]
You don't necessarily need to use a `Class` for that. You could just have the function defined in one file and then import it into the file that you are working in. It will be easiest if the two files are in the same folder. File containing function, e.g. called **func.py**: ``` # File called 'func.py' saved in a fol...
> > is there a way to turn this into a class saved on a separate file and > call for it on each of my other files? > > > For example: ``` # bar.py class TopUserCounter(object): def __init__(self, top_users): self._top_users = top_users def count(self, user_names): for name in user_names...
21,667,389
Is there anyway to set the global/default timezone in JS on the browsers side? E.g. if I have some date that are `+1300` and the user is `-0800` it converts the times. But I always want to show the times as `+1300`. My application is already very large so I'm hoping I can just set it in one place, otherwise it will i...
2014/02/10
[ "https://Stackoverflow.com/questions/21667389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/268074/" ]
No. There is only one global timezone: UTC - unfortunately it's not the default in JS, you have to use the [`…UTC…` methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) explicitly to get away from the user's local timezone. You cannot set a timezone in JavaScript. Start with ...
JavaScript has a built in method to retrieve the timezone offset of the current machine: ``` var d = new Data(); var offset = d.getTimezoneOffset(); ``` In the above example, offset would be the minutes offset from UTC to Local Time. If you know your own offset, you can write a global method to take theirs and run a...
5,163,332
When creating an array, such as int[], does this inherit from anything? I thought it might inherit from System.Array, but after looking at the compiled CIL it does't appear so. I thought it might inherit from System.Array or somehting similair, considering you can call methods and access properties on an array. I.e. ...
2011/03/02
[ "https://Stackoverflow.com/questions/5163332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/175057/" ]
All arrays derive from [`System.Array`](http://msdn.microsoft.com/en-us/library/system.array.aspx). From an (admittedly ancient) [edition of MSDN magazine](http://msdn.microsoft.com/en-us/magazine/cc301755.aspx): > > All array types are implicitly derived from System.Array, which itself is derived from System.Object....
An array does inherit from `System.Array`. It's a specialisation of a generic type, kind of like `System.Array<int>`, except that the runtime treats arrays as "special" - they are a special case of generics that existed in .NET 1.0 before the "general" generics were introduced in .NET 2.0. **Edit:** Just checked my an...
5,163,332
When creating an array, such as int[], does this inherit from anything? I thought it might inherit from System.Array, but after looking at the compiled CIL it does't appear so. I thought it might inherit from System.Array or somehting similair, considering you can call methods and access properties on an array. I.e. ...
2011/03/02
[ "https://Stackoverflow.com/questions/5163332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/175057/" ]
All arrays derive from [`System.Array`](http://msdn.microsoft.com/en-us/library/system.array.aspx). From an (admittedly ancient) [edition of MSDN magazine](http://msdn.microsoft.com/en-us/magazine/cc301755.aspx): > > All array types are implicitly derived from System.Array, which itself is derived from System.Object....
One thing I found interesting is that arrays also implements `ICollection<>` ``` int[] foo = new int[]{ }; ICollection<int> bar = foo; // So, arrays would have type infered to use ICollection<> overload IEnumerable<T> Foo<T>(Func<IEnumerable<T>> bar); // .Count() ICollection<T> Foo<T>(Func<ICollection<T>> bar); // .C...
5,163,332
When creating an array, such as int[], does this inherit from anything? I thought it might inherit from System.Array, but after looking at the compiled CIL it does't appear so. I thought it might inherit from System.Array or somehting similair, considering you can call methods and access properties on an array. I.e. ...
2011/03/02
[ "https://Stackoverflow.com/questions/5163332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/175057/" ]
An array does inherit from `System.Array`. It's a specialisation of a generic type, kind of like `System.Array<int>`, except that the runtime treats arrays as "special" - they are a special case of generics that existed in .NET 1.0 before the "general" generics were introduced in .NET 2.0. **Edit:** Just checked my an...
One thing I found interesting is that arrays also implements `ICollection<>` ``` int[] foo = new int[]{ }; ICollection<int> bar = foo; // So, arrays would have type infered to use ICollection<> overload IEnumerable<T> Foo<T>(Func<IEnumerable<T>> bar); // .Count() ICollection<T> Foo<T>(Func<ICollection<T>> bar); // .C...