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
52,276,473
We need to load test an web application using `SignalR` in few components with transport mode as long polling. My script gets hang in connect step. Connect step is `GET- /signalr/connect?transport=foreverFrame&clientProtocol=1.5&connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0Q...
2018/09/11
[ "https://Stackoverflow.com/questions/52276473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7773394/" ]
Use a for loop over [Map.entries](https://api.dartlang.org/stable/2.0.0/dart-core/Map/entries.html) instead of forEach. Provided you are in an async function, await-ing in the body of a for loop will pause the iteration. The entry object will also allow you to access both the key and value. ``` Future<void> myFunction...
entries used in extract Maplist from HashMap. ``` products.entries.forEach((e) { var key = e.key; var values = e.value; double sum = 0; values.forEach((value) => sum += value[PlanogramShelf.SHELF_FULL]); target.add(OrdinalSales( key, double.parse((sum / valueslength).toStringAsFixed(2)))); }...
52,276,473
We need to load test an web application using `SignalR` in few components with transport mode as long polling. My script gets hang in connect step. Connect step is `GET- /signalr/connect?transport=foreverFrame&clientProtocol=1.5&connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0Q...
2018/09/11
[ "https://Stackoverflow.com/questions/52276473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7773394/" ]
Use a for loop over [Map.entries](https://api.dartlang.org/stable/2.0.0/dart-core/Map/entries.html) instead of forEach. Provided you are in an async function, await-ing in the body of a for loop will pause the iteration. The entry object will also allow you to access both the key and value. ``` Future<void> myFunction...
You can also use Future.forEach with a map like this : ``` await Future.forEach(myMap.entries, (MapEntry entry) async { await myAsyncFunc(); }); callFunc(); ```
52,276,473
We need to load test an web application using `SignalR` in few components with transport mode as long polling. My script gets hang in connect step. Connect step is `GET- /signalr/connect?transport=foreverFrame&clientProtocol=1.5&connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0Q...
2018/09/11
[ "https://Stackoverflow.com/questions/52276473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7773394/" ]
You could also use `map` like: ``` const futures = myMap.map((a, b) => myAsyncFunc()); await Future.wait(futures); callFunc(); ```
entries used in extract Maplist from HashMap. ``` products.entries.forEach((e) { var key = e.key; var values = e.value; double sum = 0; values.forEach((value) => sum += value[PlanogramShelf.SHELF_FULL]); target.add(OrdinalSales( key, double.parse((sum / valueslength).toStringAsFixed(2)))); }...
52,276,473
We need to load test an web application using `SignalR` in few components with transport mode as long polling. My script gets hang in connect step. Connect step is `GET- /signalr/connect?transport=foreverFrame&clientProtocol=1.5&connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0Q...
2018/09/11
[ "https://Stackoverflow.com/questions/52276473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7773394/" ]
You can also use Future.forEach with a map like this : ``` await Future.forEach(myMap.entries, (MapEntry entry) async { await myAsyncFunc(); }); callFunc(); ```
You could also use `map` like: ``` const futures = myMap.map((a, b) => myAsyncFunc()); await Future.wait(futures); callFunc(); ```
52,276,473
We need to load test an web application using `SignalR` in few components with transport mode as long polling. My script gets hang in connect step. Connect step is `GET- /signalr/connect?transport=foreverFrame&clientProtocol=1.5&connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0Q...
2018/09/11
[ "https://Stackoverflow.com/questions/52276473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7773394/" ]
You can also use Future.forEach with a map like this : ``` await Future.forEach(myMap.entries, (MapEntry entry) async { await myAsyncFunc(); }); callFunc(); ```
entries used in extract Maplist from HashMap. ``` products.entries.forEach((e) { var key = e.key; var values = e.value; double sum = 0; values.forEach((value) => sum += value[PlanogramShelf.SHELF_FULL]); target.add(OrdinalSales( key, double.parse((sum / valueslength).toStringAsFixed(2)))); }...
8,374,598
I have a web page which was written on ASP.NET and C#. it outputs a HTML code. Want to output an image instead. How do i do it? Thanks
2011/12/04
[ "https://Stackoverflow.com/questions/8374598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/638865/" ]
you can use [http://iecapt.sourceforge.net/](http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export-webpage-as-image-in.html) to convert HTML to image. You can try it out. It is available for **FREE**. or you can use this one [web page save as a image](http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export...
Since the control in charge of dispalying the web page is like any other element, you might save its render to a file : [Convert XAML-Canvas to bitmap](https://stackoverflow.com/questions/1715543/convert-xaml-canvas-to-bitmap/8104089#8104089)
8,374,598
I have a web page which was written on ASP.NET and C#. it outputs a HTML code. Want to output an image instead. How do i do it? Thanks
2011/12/04
[ "https://Stackoverflow.com/questions/8374598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/638865/" ]
you can use [http://iecapt.sourceforge.net/](http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export-webpage-as-image-in.html) to convert HTML to image. You can try it out. It is available for **FREE**. or you can use this one [web page save as a image](http://aspdotnetcodebook.blogspot.com/2009/05/how-to-export...
If you want to use your web page as the href of an anchor and return a dynamic image based on some query string then you could use Response object to send your image stream using Response.BinaryWrite object and set Content Type to appropriate image.
33,734,133
I am new in kernel programming. For implementing my project work, I have downloaded the latest stable **kernel (v4.3)** from [kernel.org](https://www.kernel.org/). Just for checking I have copied a few files from the kernel directories into my project directory. Made changes to it and inserted a few more code to it. ...
2015/11/16
[ "https://Stackoverflow.com/questions/33734133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3243499/" ]
You need to build your kernel module against the same version kernel you are going to run. Thus if you have kernel 4.3 sources that you have downloaded you need to compile *that* version of the kernel and boot with that running before trying to load your kernel. You have two solutions then: 1. Download the kernel sou...
make -C /lib/modules/$(uname -r)/build M=$PWD modules, "$(uname -r)" shows that you are compiling against the kernel version you are running now so you should be able to insmod the module in the current kernel if you haven't changed the headers. From your text, "Just for checking I have copied a few files from the ker...
33,734,133
I am new in kernel programming. For implementing my project work, I have downloaded the latest stable **kernel (v4.3)** from [kernel.org](https://www.kernel.org/). Just for checking I have copied a few files from the kernel directories into my project directory. Made changes to it and inserted a few more code to it. ...
2015/11/16
[ "https://Stackoverflow.com/questions/33734133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3243499/" ]
You need to build your kernel module against the same version kernel you are going to run. Thus if you have kernel 4.3 sources that you have downloaded you need to compile *that* version of the kernel and boot with that running before trying to load your kernel. You have two solutions then: 1. Download the kernel sou...
Looks like you built agAinst right kernel.something to do with how your kernel is compiled. (See Config\_conversions). Try --force
33,734,133
I am new in kernel programming. For implementing my project work, I have downloaded the latest stable **kernel (v4.3)** from [kernel.org](https://www.kernel.org/). Just for checking I have copied a few files from the kernel directories into my project directory. Made changes to it and inserted a few more code to it. ...
2015/11/16
[ "https://Stackoverflow.com/questions/33734133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3243499/" ]
make -C /lib/modules/$(uname -r)/build M=$PWD modules, "$(uname -r)" shows that you are compiling against the kernel version you are running now so you should be able to insmod the module in the current kernel if you haven't changed the headers. From your text, "Just for checking I have copied a few files from the ker...
Looks like you built agAinst right kernel.something to do with how your kernel is compiled. (See Config\_conversions). Try --force
33,734,133
I am new in kernel programming. For implementing my project work, I have downloaded the latest stable **kernel (v4.3)** from [kernel.org](https://www.kernel.org/). Just for checking I have copied a few files from the kernel directories into my project directory. Made changes to it and inserted a few more code to it. ...
2015/11/16
[ "https://Stackoverflow.com/questions/33734133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3243499/" ]
The problem here is that your Kernel module is using the exported symbols of other kernel modules which in this case appears to be the linux InfiniBand RDMA stack's exported methods or symbols. To solve the symbol version problems, copy the **`Module.symvers`** file from the ``` /usr/src/ofa-kernel ``` directory a...
make -C /lib/modules/$(uname -r)/build M=$PWD modules, "$(uname -r)" shows that you are compiling against the kernel version you are running now so you should be able to insmod the module in the current kernel if you haven't changed the headers. From your text, "Just for checking I have copied a few files from the ker...
33,734,133
I am new in kernel programming. For implementing my project work, I have downloaded the latest stable **kernel (v4.3)** from [kernel.org](https://www.kernel.org/). Just for checking I have copied a few files from the kernel directories into my project directory. Made changes to it and inserted a few more code to it. ...
2015/11/16
[ "https://Stackoverflow.com/questions/33734133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3243499/" ]
The problem here is that your Kernel module is using the exported symbols of other kernel modules which in this case appears to be the linux InfiniBand RDMA stack's exported methods or symbols. To solve the symbol version problems, copy the **`Module.symvers`** file from the ``` /usr/src/ofa-kernel ``` directory a...
Looks like you built agAinst right kernel.something to do with how your kernel is compiled. (See Config\_conversions). Try --force
37,908,401
I'm trying to de-serialize a `List<string>` which is in fact a `List<myClass>` whose objects have been serialized. Example: ``` static void Main(string[] args) { List<MyThirdClass> myThirdClass = new List<MyThirdClass>(new[] { new MyThirdClass { RoleId = 123, RoleName = "123" }, new MyThirdClass { RoleId = 234, Ro...
2016/06/19
[ "https://Stackoverflow.com/questions/37908401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141621/" ]
I would suggest creating Utils class in which you can put all your methods that work with your data. Example of one Utils class: ``` public class StringUtils { public static boolean isEmpty(String text) { return text == null || text.isEmpty() || text.trim().isEmpty(); } } ``` Follow the sane pattern ...
You may use `abstract`. Your base activity. ``` public abstract class BaseActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); activityCreated(); } public abstrac...
37,908,401
I'm trying to de-serialize a `List<string>` which is in fact a `List<myClass>` whose objects have been serialized. Example: ``` static void Main(string[] args) { List<MyThirdClass> myThirdClass = new List<MyThirdClass>(new[] { new MyThirdClass { RoleId = 123, RoleName = "123" }, new MyThirdClass { RoleId = 234, Ro...
2016/06/19
[ "https://Stackoverflow.com/questions/37908401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141621/" ]
You can read some knowledge about MVC or MVP. In short, try to separate your UI Module from Logic Module.There was some common ways you can refer: 1. write your common api to a `***Util.java`(with static functions), for example:`FileUtil.java` is a tool class which handle file manage, you can write * public static vo...
You may use `abstract`. Your base activity. ``` public abstract class BaseActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); activityCreated(); } public abstrac...
37,908,401
I'm trying to de-serialize a `List<string>` which is in fact a `List<myClass>` whose objects have been serialized. Example: ``` static void Main(string[] args) { List<MyThirdClass> myThirdClass = new List<MyThirdClass>(new[] { new MyThirdClass { RoleId = 123, RoleName = "123" }, new MyThirdClass { RoleId = 234, Ro...
2016/06/19
[ "https://Stackoverflow.com/questions/37908401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141621/" ]
You can read some knowledge about MVC or MVP. In short, try to separate your UI Module from Logic Module.There was some common ways you can refer: 1. write your common api to a `***Util.java`(with static functions), for example:`FileUtil.java` is a tool class which handle file manage, you can write * public static vo...
I would suggest creating Utils class in which you can put all your methods that work with your data. Example of one Utils class: ``` public class StringUtils { public static boolean isEmpty(String text) { return text == null || text.isEmpty() || text.trim().isEmpty(); } } ``` Follow the sane pattern ...
6,461,739
I have a JQUERY AJAX post function that will work if there is one function, but if I try and include another function in addition, the second function does not post through to the .PHP script. I am a beginner in JQUERY but have tried every variation, but it will process the first function, but if I add any other functi...
2011/06/23
[ "https://Stackoverflow.com/questions/6461739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/795186/" ]
You are only defining the URL in the first function, and it's var'ed so the other functions don't have access and have an undefined url
Depending on which browser you are using the trailing comma in your ajax options object may be causing a problem: ``` // this little guy // | // v $.post(URL,{request:"request",mem1:a,mem2:b,},function(data...
29,148,188
I'm trying to install the latest version of capybara-webkit(1.4.1) followed their wiki, and installed qt5: ``` sudo apt-get install qt5-default libqt5webkit5-dev ``` But `gem install capybara-webkit` will always get the following compilation errors from g++: ``` ERROR: Error installing capybara-webkit: ...
2015/03/19
[ "https://Stackoverflow.com/questions/29148188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/617857/" ]
I had to remove `qt5-default libqt5webkit5-dev` and only install qt4. Not sure why the docs tell you to use qt5 for 14.04. He's my commands I used to fix it: ``` sudo apt-get remove qt5-default libqt5webkit5-dev sudo apt-get purge sudo apt-get autoremove sudo apt-get install libqt4-dev libqtwebkit-dev ...
This worked for me: `apt-get install g++-4.7 GCC=g++-4.7 gem install capybara-webkit -v '1.11.1'` Might be a bug with GCC 4.8
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
The function ${\rm abs}$ is continuous on all of ${\mathbb R}$, hence should have primitives $F$ defined on all of ${\mathbb R}$. Given that ${\rm abs}$ is "special" at $x=0$ we should look for the primitive obtained by integrating from $0$ to $x$. In this way we obtain $$F(x)=\int\_0^x |t|\>dt=\int\_0^x t\>dt={x^2\ove...
$\int\_{-4}^{-1}|x|~dx$ $=[x|x|]\_{-4}^{-1}-\int\_{-4}^{-1}x~d(|x|)$ $=15-\int\_{-4}^{-1}x\times\dfrac{|x|}{x}dx$ $=15-\int\_{-4}^{-1}|x|~dx$ $\therefore2\int\_{-4}^{-1}|x|~dx=15$ $\int\_{-4}^{-1}|x|~dx=\dfrac{15}{2}$
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
[enter image description here](https://i.stack.imgur.com/ZpGiG.jpg) ∫|x|dx=∫〖√(x^2 ) dx〗= =x√(x^2 )-∫〖x/√(x^2 ) dx〗 Then: ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 Then: 2∫〖√(x^2 ) dx〗=x√(x^2 )=x|x| Finally we will have: ``` ∫〖√(x^2 ) dx〗=x|x|/2 ``` I can not put the formula...
$\int\_{-4}^{-1}|x|~dx$ $=[x|x|]\_{-4}^{-1}-\int\_{-4}^{-1}x~d(|x|)$ $=15-\int\_{-4}^{-1}x\times\dfrac{|x|}{x}dx$ $=15-\int\_{-4}^{-1}|x|~dx$ $\therefore2\int\_{-4}^{-1}|x|~dx=15$ $\int\_{-4}^{-1}|x|~dx=\dfrac{15}{2}$
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
Here is my derivation for this, $$\int |x|dx= \int \sqrt {x^2} dx = I$$ By integration by parts we know that, $$ \int u(x)v(x)\,dx=u(x)\int v(x) \ dx-\int u'(x) \left [ \int v(x) \ dx \right ]dx$$ This is just a extension of the [product rule](https://en.wikipedia.org/wiki/Product_rule) in diffrentiation. Check out...
$\int\_{-4}^{-1}|x|~dx$ $=[x|x|]\_{-4}^{-1}-\int\_{-4}^{-1}x~d(|x|)$ $=15-\int\_{-4}^{-1}x\times\dfrac{|x|}{x}dx$ $=15-\int\_{-4}^{-1}|x|~dx$ $\therefore2\int\_{-4}^{-1}|x|~dx=15$ $\int\_{-4}^{-1}|x|~dx=\dfrac{15}{2}$
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
The function ${\rm abs}$ is continuous on all of ${\mathbb R}$, hence should have primitives $F$ defined on all of ${\mathbb R}$. Given that ${\rm abs}$ is "special" at $x=0$ we should look for the primitive obtained by integrating from $0$ to $x$. In this way we obtain $$F(x)=\int\_0^x |t|\>dt=\int\_0^x t\>dt={x^2\ove...
[enter image description here](https://i.stack.imgur.com/ZpGiG.jpg) ∫|x|dx=∫〖√(x^2 ) dx〗= =x√(x^2 )-∫〖x/√(x^2 ) dx〗 Then: ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 Then: 2∫〖√(x^2 ) dx〗=x√(x^2 )=x|x| Finally we will have: ``` ∫〖√(x^2 ) dx〗=x|x|/2 ``` I can not put the formula...
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
The function ${\rm abs}$ is continuous on all of ${\mathbb R}$, hence should have primitives $F$ defined on all of ${\mathbb R}$. Given that ${\rm abs}$ is "special" at $x=0$ we should look for the primitive obtained by integrating from $0$ to $x$. In this way we obtain $$F(x)=\int\_0^x |t|\>dt=\int\_0^x t\>dt={x^2\ove...
Here is my derivation for this, $$\int |x|dx= \int \sqrt {x^2} dx = I$$ By integration by parts we know that, $$ \int u(x)v(x)\,dx=u(x)\int v(x) \ dx-\int u'(x) \left [ \int v(x) \ dx \right ]dx$$ This is just a extension of the [product rule](https://en.wikipedia.org/wiki/Product_rule) in diffrentiation. Check out...
1,051,055
When I looked up about absolute value on Wikipedia, I found that the antiderivative of $|x|$ is $\frac12 x|x|+C$. I am able to find the derivative of $|x|$ by treating the function as $\sqrt{x^2}$, but I am not able to integrate it. When I put $\int\_{-4}^{-1}|x|\,dx$ into Symbolab, the online calculator did not break...
2014/12/04
[ "https://math.stackexchange.com/questions/1051055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197495/" ]
Here is my derivation for this, $$\int |x|dx= \int \sqrt {x^2} dx = I$$ By integration by parts we know that, $$ \int u(x)v(x)\,dx=u(x)\int v(x) \ dx-\int u'(x) \left [ \int v(x) \ dx \right ]dx$$ This is just a extension of the [product rule](https://en.wikipedia.org/wiki/Product_rule) in diffrentiation. Check out...
[enter image description here](https://i.stack.imgur.com/ZpGiG.jpg) ∫|x|dx=∫〖√(x^2 ) dx〗= =x√(x^2 )-∫〖x/√(x^2 ) dx〗 Then: ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 ∫〖√(x^2 ) dx〗=x√(x^2 )-∫〖√(x^2 ) dx〗 Then: 2∫〖√(x^2 ) dx〗=x√(x^2 )=x|x| Finally we will have: ``` ∫〖√(x^2 ) dx〗=x|x|/2 ``` I can not put the formula...
41,978,033
I'm looking into using Identity Server 4 for authentication within a C# based MVC application. I'd like to use accounts stored in Azure AD as a source of valid users but the documentation only seems to refer to Google and OpenID & only mentions Azure in passing. Does anybody know of any good documentation and/or tutor...
2017/02/01
[ "https://Stackoverflow.com/questions/41978033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7440281/" ]
You can use signin to Azure AD from IdentityServer just as you would use signin to IdentityServer from e.g. a Javascript or MVC app. I have done this recently, and all you need to do is register OpenIdConnect options to Azure Ad like this: ``` public void ConfigureAuth(IAppBuilder app) { app.SetDefaultSignInAsA...
There is a [sample with Azure AD on github](https://github.com/mclark1129/IdentityServer4.Samples/tree/master/AzureAd_CustomStateDataFormat) , forked from External Login sample provided in [IdentityServer samples](https://github.com/IdentityServer/IdentityServer4.Samples/). The sample also fixed a known issue ["State...
41,978,033
I'm looking into using Identity Server 4 for authentication within a C# based MVC application. I'd like to use accounts stored in Azure AD as a source of valid users but the documentation only seems to refer to Google and OpenID & only mentions Azure in passing. Does anybody know of any good documentation and/or tutor...
2017/02/01
[ "https://Stackoverflow.com/questions/41978033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7440281/" ]
You can use signin to Azure AD from IdentityServer just as you would use signin to IdentityServer from e.g. a Javascript or MVC app. I have done this recently, and all you need to do is register OpenIdConnect options to Azure Ad like this: ``` public void ConfigureAuth(IAppBuilder app) { app.SetDefaultSignInAsA...
IdentityServer4 has documentation with "Sign-in with External Identity Providers" <http://docs.identityserver.io/en/latest/topics/signin_external_providers.html#state-url-length-and-isecuredataformat> Unfortunately it is not complete but this is what I did: `Startup.cs` for .NET 5, `Program.cs` for .NET 6: ``` serv...
41,978,033
I'm looking into using Identity Server 4 for authentication within a C# based MVC application. I'd like to use accounts stored in Azure AD as a source of valid users but the documentation only seems to refer to Google and OpenID & only mentions Azure in passing. Does anybody know of any good documentation and/or tutor...
2017/02/01
[ "https://Stackoverflow.com/questions/41978033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7440281/" ]
There is a [sample with Azure AD on github](https://github.com/mclark1129/IdentityServer4.Samples/tree/master/AzureAd_CustomStateDataFormat) , forked from External Login sample provided in [IdentityServer samples](https://github.com/IdentityServer/IdentityServer4.Samples/). The sample also fixed a known issue ["State...
IdentityServer4 has documentation with "Sign-in with External Identity Providers" <http://docs.identityserver.io/en/latest/topics/signin_external_providers.html#state-url-length-and-isecuredataformat> Unfortunately it is not complete but this is what I did: `Startup.cs` for .NET 5, `Program.cs` for .NET 6: ``` serv...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Finite fields have finte non-zero characterisctic. And characteristic of a field is a prime number. Also characteristic of a field divides the order of the field. Here order of the field is $4$, and the only prime that divides it is $2$, hence characteristic of this field is $2$, hence $1+1=0$ !!! **Alternative way:...
Trying to exclude $1+1=a$ and $1+1=b$ is very hard if you don't understand the following. All I am using here are field axioms, the fact that $0 \cdot x = 0$, and the notion of "order of an element in a group". $(F , + )$ is a group of order 4, so there exists some element of order 2. Let $x \in F$ be such element. $x...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Finite fields have finte non-zero characterisctic. And characteristic of a field is a prime number. Also characteristic of a field divides the order of the field. Here order of the field is $4$, and the only prime that divides it is $2$, hence characteristic of this field is $2$, hence $1+1=0$ !!! **Alternative way:...
Consider {1,a,b} which is a group under multiplication. 1 is the identity under multiplication. ab is 1 under multiplication as argued in the above answer. Now, consider {0,1,a,b} . Try to find the additive inverse of 1. 0 is not the additive inverse obviously. Suppose a or b is additive inverse. Say a is the inverse ...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Finite fields have finte non-zero characterisctic. And characteristic of a field is a prime number. Also characteristic of a field divides the order of the field. Here order of the field is $4$, and the only prime that divides it is $2$, hence characteristic of this field is $2$, hence $1+1=0$ !!! **Alternative way:...
The elements $0,1,a,b $ form an additive group. Either it is equivalent to $\mathbb Z\_4$ and it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$. If it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$ then $1+1=0$ So we can assume it is equivalent to $Z\_4$ and we can relable $0,1,a,b$ as $0,1,2,3$ and $1+1=2,2+1...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Finite fields have finte non-zero characterisctic. And characteristic of a field is a prime number. Also characteristic of a field divides the order of the field. Here order of the field is $4$, and the only prime that divides it is $2$, hence characteristic of this field is $2$, hence $1+1=0$ !!! **Alternative way:...
By Lagrange's theorem applied to the additive group of the field we have $$ 1+1+1+1=0. $$ Therefore, by distributivity, $$ 0=(1+1+1+1)=(1+1)(1+1)=(1+1)^2. $$ So if $1+1\neq0$ we have found a zero divisor $1+1$. Fields don't have zero divisors, so this is a contradiction and we are left with $1+1=0$.
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Trying to exclude $1+1=a$ and $1+1=b$ is very hard if you don't understand the following. All I am using here are field axioms, the fact that $0 \cdot x = 0$, and the notion of "order of an element in a group". $(F , + )$ is a group of order 4, so there exists some element of order 2. Let $x \in F$ be such element. $x...
Consider {1,a,b} which is a group under multiplication. 1 is the identity under multiplication. ab is 1 under multiplication as argued in the above answer. Now, consider {0,1,a,b} . Try to find the additive inverse of 1. 0 is not the additive inverse obviously. Suppose a or b is additive inverse. Say a is the inverse ...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Trying to exclude $1+1=a$ and $1+1=b$ is very hard if you don't understand the following. All I am using here are field axioms, the fact that $0 \cdot x = 0$, and the notion of "order of an element in a group". $(F , + )$ is a group of order 4, so there exists some element of order 2. Let $x \in F$ be such element. $x...
The elements $0,1,a,b $ form an additive group. Either it is equivalent to $\mathbb Z\_4$ and it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$. If it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$ then $1+1=0$ So we can assume it is equivalent to $Z\_4$ and we can relable $0,1,a,b$ as $0,1,2,3$ and $1+1=2,2+1...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
By Lagrange's theorem applied to the additive group of the field we have $$ 1+1+1+1=0. $$ Therefore, by distributivity, $$ 0=(1+1+1+1)=(1+1)(1+1)=(1+1)^2. $$ So if $1+1\neq0$ we have found a zero divisor $1+1$. Fields don't have zero divisors, so this is a contradiction and we are left with $1+1=0$.
Consider {1,a,b} which is a group under multiplication. 1 is the identity under multiplication. ab is 1 under multiplication as argued in the above answer. Now, consider {0,1,a,b} . Try to find the additive inverse of 1. 0 is not the additive inverse obviously. Suppose a or b is additive inverse. Say a is the inverse ...
2,298,441
My thinking: Due to the axiom describing closure of a field we know that there are four possibilities for the result. Thanks
2017/05/27
[ "https://math.stackexchange.com/questions/2298441", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
By Lagrange's theorem applied to the additive group of the field we have $$ 1+1+1+1=0. $$ Therefore, by distributivity, $$ 0=(1+1+1+1)=(1+1)(1+1)=(1+1)^2. $$ So if $1+1\neq0$ we have found a zero divisor $1+1$. Fields don't have zero divisors, so this is a contradiction and we are left with $1+1=0$.
The elements $0,1,a,b $ form an additive group. Either it is equivalent to $\mathbb Z\_4$ and it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$. If it is equivalent to $\mathbb Z\_2\times \mathbb Z\_2$ then $1+1=0$ So we can assume it is equivalent to $Z\_4$ and we can relable $0,1,a,b$ as $0,1,2,3$ and $1+1=2,2+1...
336,966
[I asked a question](https://stackoverflow.com/questions/35136918/objective-c-fabsf-wrong-result-type) some time ago now. I was trying to understand what I was not understanding of an interface, and in the comments came out it was (likely) a bug in the interface itself. I opened a ticket in their (Apple in this case) ...
2016/10/26
[ "https://meta.stackoverflow.com/questions/336966", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/691977/" ]
I think it would be okay to add a self answer stating that the issue in the question appears to be a bug and then link to the bug report so future visitors can see it. This way people who hit this same issue at least see that there is a problem, it is just not solved as it is a bug. I really dislike having that as just...
I have deleted my own question because it not only became useless for me, it was a bug, was properly fixed by the maker *and* was getting in the way of people looking for information about the error but that didn't have the same causes. So, yeah, if you find that your question is no longer useful, you can delete it.
37,139,395
I'm currently working on a school project, but I've ran into a problem I don't know how to solve. Me and my group are working on a recipe bank where users are able to upload their own recipes. I want the user to upload the recipe itself in stages. Something like 1. Boil some water. 2. Put eggs in the boiling water ...
2016/05/10
[ "https://Stackoverflow.com/questions/37139395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6315233/" ]
I use [validator](https://www.npmjs.com/package/validator). It has many functions like isEmail, isAlphaNumeric etc... It also supports sanitization. Samples and tests in the repo. To check if key exists, you can use standard hasOwnProperty [Check if a key exists inside a json object](https://stackoverflow.com/questi...
If you esthete please try this solution <https://github.com/askucher/ftjs>. `npm install ftjs` You can define type definition file (example) ```js #SimpleTypes String : /.?/ Integer : Global.Integer Int : Integer Boolean : Global.Boolean Bool : Boolean Double ...
61,165,153
I began to learn JavaScript and React these days, I tried to draw some grids in a website and met a problem like this: Everything works fine when I code like this: ```js export default class PathfindingVisualizer extends Component { constructor(props) { super(props); this.state = { nodes: [], }; ...
2020/04/11
[ "https://Stackoverflow.com/questions/61165153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13157285/" ]
For this you need to call `children` in`props` ```js export default class NodeContainer extends Component { render() { return <div className="node-container">{this.props.children}</div>; } } ```
I don't see where the Node class is being referenced so I'm not sure that's relevant. Your issue is that the your passing the `nodes` component to the `NodeContainer` component, but not *rendering* it in `NodeContainer`. You should look into how `props` are passed to components - they appear as `this.props.children` o...
61,165,153
I began to learn JavaScript and React these days, I tried to draw some grids in a website and met a problem like this: Everything works fine when I code like this: ```js export default class PathfindingVisualizer extends Component { constructor(props) { super(props); this.state = { nodes: [], }; ...
2020/04/11
[ "https://Stackoverflow.com/questions/61165153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13157285/" ]
For this you need to call `children` in`props` ```js export default class NodeContainer extends Component { render() { return <div className="node-container">{this.props.children}</div>; } } ```
Dude, in reactJS, there's should be data to be pass from your Parent element to your Children element. In your case to be able to show the data you want, 1. you need to pass your state from the `<PathFindingVisualizer />` to your `<NodeContainer />`, which you have done it by using node as a children between `<NodeCon...
39,912,946
I am trying to clear all the stale old renamed clients from my `uchiwa` dashboard. I am unable to clear them. Basically I renamed the clients with a new name, but the old clients keep showing up on the dashboard. I restarted `sensu-server`, `uchiwa` dashboard, and `redis-server`. Still I keep seeing the stale entrie...
2016/10/07
[ "https://Stackoverflow.com/questions/39912946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/548526/" ]
I had to get into `redis-cli` prompt, and run `flushall`. This cleared all the old events. Ideally redis-server restart should have cleared it. Well, now its all neat. I also restarted rabbitmq-server.
In Uchiwa, under clients, you can select a client and delete it. The client will then disapear.
39,912,946
I am trying to clear all the stale old renamed clients from my `uchiwa` dashboard. I am unable to clear them. Basically I renamed the clients with a new name, but the old clients keep showing up on the dashboard. I restarted `sensu-server`, `uchiwa` dashboard, and `redis-server`. Still I keep seeing the stale entrie...
2016/10/07
[ "https://Stackoverflow.com/questions/39912946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/548526/" ]
I had to get into `redis-cli` prompt, and run `flushall`. This cleared all the old events. Ideally redis-server restart should have cleared it. Well, now its all neat. I also restarted rabbitmq-server.
I saw you found A solution but maybe not the one and only. So what’s happening is that, the clients will not automatically deregister which is an intended behaviour since otherwise you’d not get any sort of “keep alive’ alerts. Moreover you might at some point just be willing to check if a check has not be running fo...
39,912,946
I am trying to clear all the stale old renamed clients from my `uchiwa` dashboard. I am unable to clear them. Basically I renamed the clients with a new name, but the old clients keep showing up on the dashboard. I restarted `sensu-server`, `uchiwa` dashboard, and `redis-server`. Still I keep seeing the stale entrie...
2016/10/07
[ "https://Stackoverflow.com/questions/39912946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/548526/" ]
I saw you found A solution but maybe not the one and only. So what’s happening is that, the clients will not automatically deregister which is an intended behaviour since otherwise you’d not get any sort of “keep alive’ alerts. Moreover you might at some point just be willing to check if a check has not be running fo...
In Uchiwa, under clients, you can select a client and delete it. The client will then disapear.
36,538,907
So, I have some data that needs to be count with RIGHT JOIN. The query look like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products GROUP BY sellers ORDER BY sellers ``` The result ends up perfectly like this one: [![enter image description here...
2016/04/11
[ "https://Stackoverflow.com/questions/36538907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5474067/" ]
I find it much easier to follow `left join` rather than `right join`. But your problem is that the `where` conditions should go in the `on` clause -- otherwise they turn the outer join in to an inner join: ``` SELECT COUNT(trans_id) FROM database1..sellers s LEFT JOIN database2..transaction t ON s.products =...
Your `WHERE` clause is applied after your `JOIN`. If you want the 0 counts to still show up, you should add it to your `JOIN` instead. ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products AND trans_status = 'success' GROUP BY sellers ...
36,538,907
So, I have some data that needs to be count with RIGHT JOIN. The query look like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products GROUP BY sellers ORDER BY sellers ``` The result ends up perfectly like this one: [![enter image description here...
2016/04/11
[ "https://Stackoverflow.com/questions/36538907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5474067/" ]
Your `WHERE` clause is applied after your `JOIN`. If you want the 0 counts to still show up, you should add it to your `JOIN` instead. ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products AND trans_status = 'success' GROUP BY sellers ...
They were likely dropped by this condition: "WHERE trans\_status = 'success'". Instead of WHERE clause, try this condition in the ON clause of the JOIN. Something like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products AND trans_status = '...
36,538,907
So, I have some data that needs to be count with RIGHT JOIN. The query look like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products GROUP BY sellers ORDER BY sellers ``` The result ends up perfectly like this one: [![enter image description here...
2016/04/11
[ "https://Stackoverflow.com/questions/36538907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5474067/" ]
Your `WHERE` clause is applied after your `JOIN`. If you want the 0 counts to still show up, you should add it to your `JOIN` instead. ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products AND trans_status = 'success' GROUP BY sellers ...
``` SELECT COUNT(t2.trans_id) FROM table1 t1 RIGHT OUTER JOIN table2 t2 ON t2.products = t1.products WHERE t1.id IS NOT NULL OR t2.trans_status = 'success' GROUP BY sellers ORDER BY sellers ; ```
36,538,907
So, I have some data that needs to be count with RIGHT JOIN. The query look like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products GROUP BY sellers ORDER BY sellers ``` The result ends up perfectly like this one: [![enter image description here...
2016/04/11
[ "https://Stackoverflow.com/questions/36538907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5474067/" ]
I find it much easier to follow `left join` rather than `right join`. But your problem is that the `where` conditions should go in the `on` clause -- otherwise they turn the outer join in to an inner join: ``` SELECT COUNT(trans_id) FROM database1..sellers s LEFT JOIN database2..transaction t ON s.products =...
They were likely dropped by this condition: "WHERE trans\_status = 'success'". Instead of WHERE clause, try this condition in the ON clause of the JOIN. Something like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products AND trans_status = '...
36,538,907
So, I have some data that needs to be count with RIGHT JOIN. The query look like this: ``` SELECT COUNT(trans_id) FROM database2..transaction a RIGHT JOIN database1..sellers b ON a.products = b.products GROUP BY sellers ORDER BY sellers ``` The result ends up perfectly like this one: [![enter image description here...
2016/04/11
[ "https://Stackoverflow.com/questions/36538907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5474067/" ]
I find it much easier to follow `left join` rather than `right join`. But your problem is that the `where` conditions should go in the `on` clause -- otherwise they turn the outer join in to an inner join: ``` SELECT COUNT(trans_id) FROM database1..sellers s LEFT JOIN database2..transaction t ON s.products =...
``` SELECT COUNT(t2.trans_id) FROM table1 t1 RIGHT OUTER JOIN table2 t2 ON t2.products = t1.products WHERE t1.id IS NOT NULL OR t2.trans_status = 'success' GROUP BY sellers ORDER BY sellers ; ```
10,266
I am especially interested in data input ergonomics: keyboards, mice, and chairs, but would also like to hear about other ergonomic improvements that changed project performance. References to specific research, case studies, or best-practice sheets would be greatly appreciated. The question is: Do ergonomic keyboards...
2013/11/25
[ "https://pm.stackexchange.com/questions/10266", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/4551/" ]
This question is applicable to project management as it is in all other types of operations, whether it is knowledge type work or labor. The application of the science is through generalization of the findings versus a study that shows a direct correlation between a project optimized ergonomically and one that is not. ...
TL;DR ----- This question is only indirectly related to project management, and isn't answerable in the way that you're asking it. In addition, requests for off-site resources or search-engine type questions are always off-topic. That said, perhaps a valid answer is to simply point out where your question tangentiall...
10,266
I am especially interested in data input ergonomics: keyboards, mice, and chairs, but would also like to hear about other ergonomic improvements that changed project performance. References to specific research, case studies, or best-practice sheets would be greatly appreciated. The question is: Do ergonomic keyboards...
2013/11/25
[ "https://pm.stackexchange.com/questions/10266", "https://pm.stackexchange.com", "https://pm.stackexchange.com/users/4551/" ]
I've enjoyed studying this topic of input devices and ergonomics at the Institute of Perception Research in Eindhoven (too bad it no longer exists separately as part of Philips NatLab; it was a cool place to acquire the MSc.). The question for a project manager can be rephrased as "How do I get more output squeezed ou...
TL;DR ----- This question is only indirectly related to project management, and isn't answerable in the way that you're asking it. In addition, requests for off-site resources or search-engine type questions are always off-topic. That said, perhaps a valid answer is to simply point out where your question tangentiall...
94,852
What exactly makes modal logic intensional? In what follows, for illustration, I will focus on propositional modal logic (MPL). I know that the modal operators in MPL are intensional since the truth values of modal formulas depends not only on the actual world but on *all relevant possible worlds*. Formulas whose main...
2022/11/18
[ "https://philosophy.stackexchange.com/questions/94852", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/9044/" ]
Lets say that intensional roughly means something along the lines of Frege's sense/reference. In particular, we have that the sense of a proposition is intensional, it varies across possible worlds. Meanwhile, its reference is a truth value. Given a model M = <worlds, accessibility, valuation>, we can associate with e...
One way to approach the issue of intensionality in modal logic is to observe that modal expressions are considered to be intensional because they introduce referentially opaque contexts. These are contexts within which co-referring terms and coextensive concepts cannot be substituted while guaranteeing truth preservati...
31,526,147
In sencha touch documentation and forums, I could not find the list of names of 96 pictos font icons that I should pass in icon() mixin in order to import an icon. Like in following example: @include icon('search');
2015/07/20
[ "https://Stackoverflow.com/questions/31526147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/657437/" ]
Full list of all those token you can find out, if you open touch distribution file *touch/resources/themes/stylesheets/sencha-touch/base/mixins/\_Class.scss*, line 393 (last distro), function **@function icon-character-for-name($name)** Here is a reference to the pictos site: <http://pictos.cc/classic/font>
@olegtaranenko answer is pretty helpful for people. If you want you can use this Gist I made. Maybe you already know, but if you want to use a custom icon... ``` @include icon('name', 'a', 'icon-font-name'); ``` <https://gist.github.com/Trozdol/e1239391e06cce4fd767.js>
31,526,147
In sencha touch documentation and forums, I could not find the list of names of 96 pictos font icons that I should pass in icon() mixin in order to import an icon. Like in following example: @include icon('search');
2015/07/20
[ "https://Stackoverflow.com/questions/31526147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/657437/" ]
Full list of all those token you can find out, if you open touch distribution file *touch/resources/themes/stylesheets/sencha-touch/base/mixins/\_Class.scss*, line 393 (last distro), function **@function icon-character-for-name($name)** Here is a reference to the pictos site: <http://pictos.cc/classic/font>
For 2.4.2 Look for the @function icon-character-for-name($name) here: <http://docs.sencha.com/touch/2.4/2.4.2-apidocs/source/_Class.scss2.html#Global_CSS-css_mixin-icon> Icons are at <http://pictos.cc/font/> Remember to @include icon('icon name') in your scss;
31,526,147
In sencha touch documentation and forums, I could not find the list of names of 96 pictos font icons that I should pass in icon() mixin in order to import an icon. Like in following example: @include icon('search');
2015/07/20
[ "https://Stackoverflow.com/questions/31526147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/657437/" ]
For 2.4.2 Look for the @function icon-character-for-name($name) here: <http://docs.sencha.com/touch/2.4/2.4.2-apidocs/source/_Class.scss2.html#Global_CSS-css_mixin-icon> Icons are at <http://pictos.cc/font/> Remember to @include icon('icon name') in your scss;
@olegtaranenko answer is pretty helpful for people. If you want you can use this Gist I made. Maybe you already know, but if you want to use a custom icon... ``` @include icon('name', 'a', 'icon-font-name'); ``` <https://gist.github.com/Trozdol/e1239391e06cce4fd767.js>
68,297,446
I'm using helm charts to deploy several REST services with into k8s with spring boot inside deployed container. However, to be able to do final stage testing I need to introduce some sort of smart liveness probe - i.e. that the target application is actually running properly inside given container. This can be easily...
2021/07/08
[ "https://Stackoverflow.com/questions/68297446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3441253/" ]
You can shorten this code by omitting the flag and directly returning the result of the checks for emptiness: ```java public static boolean isEmpty(Object value) { if (value instanceof String) { return ((String) value).isEmpty(); } else if (value instanceof List) { return ((List<?>) value).isEm...
Java native utils gives you the abaility to check if `Objects.isNull(value)` which is **not** equivalent to empty. If you want to stick with native Java you are doing it right just beautify your code and that's it. However this method exists in springFramework `ObjectUtils` class regardless of the type of object : ```...
68,297,446
I'm using helm charts to deploy several REST services with into k8s with spring boot inside deployed container. However, to be able to do final stage testing I need to introduce some sort of smart liveness probe - i.e. that the target application is actually running properly inside given container. This can be easily...
2021/07/08
[ "https://Stackoverflow.com/questions/68297446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3441253/" ]
As mentioned in [deHaar's answer](https://stackoverflow.com/a/68297607/5221149), the code can be improved by using `if-return` combinations. You should however generalize your code a bit more, e.g. support all array types, not just string arrays, and support all collection types, not just lists. Similarly, `String` i...
You can shorten this code by omitting the flag and directly returning the result of the checks for emptiness: ```java public static boolean isEmpty(Object value) { if (value instanceof String) { return ((String) value).isEmpty(); } else if (value instanceof List) { return ((List<?>) value).isEm...
68,297,446
I'm using helm charts to deploy several REST services with into k8s with spring boot inside deployed container. However, to be able to do final stage testing I need to introduce some sort of smart liveness probe - i.e. that the target application is actually running properly inside given container. This can be easily...
2021/07/08
[ "https://Stackoverflow.com/questions/68297446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3441253/" ]
In Java 17, you will be able to write this using a `switch` expression. According [issue 8213076](https://bugs.openjdk.java.net/browse/JDK-8213076), the syntax will be: ``` public static boolean isEmpty(Object value) { return switch(value) { case String s -> s.isEmpty(); case List l -> l.isEmpty(); ...
You can shorten this code by omitting the flag and directly returning the result of the checks for emptiness: ```java public static boolean isEmpty(Object value) { if (value instanceof String) { return ((String) value).isEmpty(); } else if (value instanceof List) { return ((List<?>) value).isEm...
68,297,446
I'm using helm charts to deploy several REST services with into k8s with spring boot inside deployed container. However, to be able to do final stage testing I need to introduce some sort of smart liveness probe - i.e. that the target application is actually running properly inside given container. This can be easily...
2021/07/08
[ "https://Stackoverflow.com/questions/68297446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3441253/" ]
As mentioned in [deHaar's answer](https://stackoverflow.com/a/68297607/5221149), the code can be improved by using `if-return` combinations. You should however generalize your code a bit more, e.g. support all array types, not just string arrays, and support all collection types, not just lists. Similarly, `String` i...
Java native utils gives you the abaility to check if `Objects.isNull(value)` which is **not** equivalent to empty. If you want to stick with native Java you are doing it right just beautify your code and that's it. However this method exists in springFramework `ObjectUtils` class regardless of the type of object : ```...
68,297,446
I'm using helm charts to deploy several REST services with into k8s with spring boot inside deployed container. However, to be able to do final stage testing I need to introduce some sort of smart liveness probe - i.e. that the target application is actually running properly inside given container. This can be easily...
2021/07/08
[ "https://Stackoverflow.com/questions/68297446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3441253/" ]
In Java 17, you will be able to write this using a `switch` expression. According [issue 8213076](https://bugs.openjdk.java.net/browse/JDK-8213076), the syntax will be: ``` public static boolean isEmpty(Object value) { return switch(value) { case String s -> s.isEmpty(); case List l -> l.isEmpty(); ...
Java native utils gives you the abaility to check if `Objects.isNull(value)` which is **not** equivalent to empty. If you want to stick with native Java you are doing it right just beautify your code and that's it. However this method exists in springFramework `ObjectUtils` class regardless of the type of object : ```...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
[Unison](https://www.cis.upenn.edu/%7Ebcpierce/unison/ "Unison Homepage") ------------------------------------------------------------------------- > > Unison is a GUI and terminal-based tool which allows files and directories to be kept in sync with each other, between different local directories and drives or on a ...
I would recommend the `synkron` tool. This is an open-source application available for linux(and other OS's). More recent copy of the file is updated over folders based on the time stamp. The frequency of the sync is user defined. To install you have to build it which requires Qt 4.3 or recent version. Check the so...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
For a long time I used rsync to sync my laptops(2) and a 3rd machine, then I tried with [syncthing](https://syncthing.net/) but this morning a famous search engine offered me this project: [Mirror](https://github.com/stephenh/mirror) -------------------------------------------- > > Mirror is built to support a two-m...
I would recommend the `synkron` tool. This is an open-source application available for linux(and other OS's). More recent copy of the file is updated over folders based on the time stamp. The frequency of the sync is user defined. To install you have to build it which requires Qt 4.3 or recent version. Check the so...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
I would recommend the `synkron` tool. This is an open-source application available for linux(and other OS's). More recent copy of the file is updated over folders based on the time stamp. The frequency of the sync is user defined. To install you have to build it which requires Qt 4.3 or recent version. Check the so...
I come late on that question : to do that task often on the same folders, there is [Synchrorep](https://small-iceberg.dev/synchrorep).
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
I would recommend the `synkron` tool. This is an open-source application available for linux(and other OS's). More recent copy of the file is updated over folders based on the time stamp. The frequency of the sync is user defined. To install you have to build it which requires Qt 4.3 or recent version. Check the so...
I wrote Poni after getting frustrated with lsyncd, lsyncd wasnt syncing correctly and I had to restart service constantly to pick up inotif changes, this is a binary written in Crystal that uses inotify lib and rsync to do the actual file/dir sync between 2 hosts, using it in production now, no issues <https://github...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
[Unison](https://www.cis.upenn.edu/%7Ebcpierce/unison/ "Unison Homepage") ------------------------------------------------------------------------- > > Unison is a GUI and terminal-based tool which allows files and directories to be kept in sync with each other, between different local directories and drives or on a ...
For a long time I used rsync to sync my laptops(2) and a 3rd machine, then I tried with [syncthing](https://syncthing.net/) but this morning a famous search engine offered me this project: [Mirror](https://github.com/stephenh/mirror) -------------------------------------------- > > Mirror is built to support a two-m...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
[Unison](https://www.cis.upenn.edu/%7Ebcpierce/unison/ "Unison Homepage") ------------------------------------------------------------------------- > > Unison is a GUI and terminal-based tool which allows files and directories to be kept in sync with each other, between different local directories and drives or on a ...
I come late on that question : to do that task often on the same folders, there is [Synchrorep](https://small-iceberg.dev/synchrorep).
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
[Unison](https://www.cis.upenn.edu/%7Ebcpierce/unison/ "Unison Homepage") ------------------------------------------------------------------------- > > Unison is a GUI and terminal-based tool which allows files and directories to be kept in sync with each other, between different local directories and drives or on a ...
I wrote Poni after getting frustrated with lsyncd, lsyncd wasnt syncing correctly and I had to restart service constantly to pick up inotif changes, this is a binary written in Crystal that uses inotify lib and rsync to do the actual file/dir sync between 2 hosts, using it in production now, no issues <https://github...
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
For a long time I used rsync to sync my laptops(2) and a 3rd machine, then I tried with [syncthing](https://syncthing.net/) but this morning a famous search engine offered me this project: [Mirror](https://github.com/stephenh/mirror) -------------------------------------------- > > Mirror is built to support a two-m...
I come late on that question : to do that task often on the same folders, there is [Synchrorep](https://small-iceberg.dev/synchrorep).
727,304
I would like to do a two-way automatic sync between folders `Directory A` and`Directory B`. This means that whenever a file in `Directory A` or one of its sub-directories is changed, that change is immediately applied to `Directory B`, and whenever a file in `Directory B` or one of its sub-directories is changed, that ...
2016/01/29
[ "https://askubuntu.com/questions/727304", "https://askubuntu.com", "https://askubuntu.com/users/391312/" ]
For a long time I used rsync to sync my laptops(2) and a 3rd machine, then I tried with [syncthing](https://syncthing.net/) but this morning a famous search engine offered me this project: [Mirror](https://github.com/stephenh/mirror) -------------------------------------------- > > Mirror is built to support a two-m...
I wrote Poni after getting frustrated with lsyncd, lsyncd wasnt syncing correctly and I had to restart service constantly to pick up inotif changes, this is a binary written in Crystal that uses inotify lib and rsync to do the actual file/dir sync between 2 hosts, using it in production now, no issues <https://github...
27,383,412
I have a project what I developed with Asp.Net MVC.I use view engine both forms and razor but razor pages (.cshtml) not working on IIS (IIS 7).While I check all settings (such as handler mapping, runAllManagedModulesForAllRequests,webpages:Enabled, webpages:Version) everything seems properly.Returning **"500 Internal S...
2014/12/09
[ "https://Stackoverflow.com/questions/27383412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/905487/" ]
The [Lists](https://github.com/seven-phases-max/less-plugin-lists#less-plugin-lists) Less plugin has [`at`](https://github.com/seven-phases-max/less-plugin-lists/blob/master/docs/ref.md#at) function, so your code may be as simple as: ```css @colors: red #f00, green #0f0, blue #00f; div { color: at(@colors, green)...
I dont believe you can extract by a text value, only an index. You need to run `extract` twice, first to split the inherant key value pairs in your starting array to just get an array of the values, then extract the required value: ``` property: extract(extract(@array, @item),2); ``` Where `@array` is your array, a...
52,648
Reading the One Punch Man wikia I've read that when a younger Saitama, before being a hero, was able to defeat a monster. How was this possible? Did Saitama have some power before becoming a hero?
2019/04/24
[ "https://anime.stackexchange.com/questions/52648", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/3028/" ]
In the anime and manga, Saitama starts off as a reasonably fit, unemployed salaryman (he's notably more non-descript in the original webcomic). He's not as cut as he is portrayed in the present time, but certainly not doughy or without definition. Saitama's fight with Crabante, his first monster fight, is indicative o...
I believe if you follow the story, we can see that Saitama was not bald headed. He was a normal salary man. Then one day he met with a crab monster, where he was beaten so badly. With some luck and brain, he managed to defeat the crab monster. Later on he fight with monster and train a lot. Just like what anime season ...
43,844,033
I wrote a program that lets the user type words and it saves them to a char array until the user types "\*end".How can i make the program stop when the user presses Ctr+Z instead of typing "\*end"? Here is the code ``` char text[1000][100]; char end[100] = "*end"; int count =-1; do { count++; scanf("%s",&te...
2017/05/08
[ "https://Stackoverflow.com/questions/43844033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7153982/" ]
It could be [operating system](https://en.wikipedia.org/wiki/Operating_system) specific. The C11 (or C++14) standard does not know about [terminals](https://en.wikipedia.org/wiki/Computer_terminal) (or [terminal emulators](https://en.wikipedia.org/wiki/Terminal_emulator)) or keyboards, only about [standard output](http...
Use the return value of `scanf` ``` do { count++; if (scanf("%s", &text[count]) != 1) break; } while (strcmp(text[count], end) != 0); ```
43,844,033
I wrote a program that lets the user type words and it saves them to a char array until the user types "\*end".How can i make the program stop when the user presses Ctr+Z instead of typing "\*end"? Here is the code ``` char text[1000][100]; char end[100] = "*end"; int count =-1; do { count++; scanf("%s",&te...
2017/05/08
[ "https://Stackoverflow.com/questions/43844033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7153982/" ]
It could be [operating system](https://en.wikipedia.org/wiki/Operating_system) specific. The C11 (or C++14) standard does not know about [terminals](https://en.wikipedia.org/wiki/Computer_terminal) (or [terminal emulators](https://en.wikipedia.org/wiki/Terminal_emulator)) or keyboards, only about [standard output](http...
here is what the `man` page for `scanf()`says about the returned value (not the parameter values) ``` RETURN VALUE On success, these functions return the number of input items success‐ fully matched and assigned; this can be fewer than provided for, or even zero, in the event of an early matching failur...
11,104,561
I have a an application with interns who can apply to internships. We have a script that automatically qualifies the interns. I would like to fetch all interns who aren't qualified to any internship. The database is like this : ``` Intern (Id,...) Application (Id, status, intern_id, internship_id,...) Internship (...
2012/06/19
[ "https://Stackoverflow.com/questions/11104561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183904/" ]
Include the status in a `LEFT JOIN`, and filter for non-matches like so: ``` SELECT .... FROM Intern i LEFT JOIN Application a ON i.Id = a.intern_id AND a.status = 'qualified' WHERE a.Id IS NULL ``` Substitute your list of columns, obviously!
``` SELECT * FROM Intern i WHERE NOT EXISTS (SELECT * FROM Intern j , Application a WHERE j.id = a.intern_id AND i.id = j.id AND a.status = 'qualified') ```
11,104,561
I have a an application with interns who can apply to internships. We have a script that automatically qualifies the interns. I would like to fetch all interns who aren't qualified to any internship. The database is like this : ``` Intern (Id,...) Application (Id, status, intern_id, internship_id,...) Internship (...
2012/06/19
[ "https://Stackoverflow.com/questions/11104561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183904/" ]
``` SELECT * FROM Intern i WHERE NOT EXISTS (SELECT * FROM Intern j , Application a WHERE j.id = a.intern_id AND i.id = j.id AND a.status = 'qualified') ```
``` SELECT * FROM Intern WHERE Id IN ( SELECT Intern_id FROM Application WHERE status <> 'qualified' ); ```
11,104,561
I have a an application with interns who can apply to internships. We have a script that automatically qualifies the interns. I would like to fetch all interns who aren't qualified to any internship. The database is like this : ``` Intern (Id,...) Application (Id, status, intern_id, internship_id,...) Internship (...
2012/06/19
[ "https://Stackoverflow.com/questions/11104561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183904/" ]
``` SELECT * FROM Intern i WHERE NOT EXISTS (SELECT * FROM Intern j , Application a WHERE j.id = a.intern_id AND i.id = j.id AND a.status = 'qualified') ```
This query should return what you're looking for: ``` SELECT * FROM Intern i INNER JOIN Application a ON i.Id = a.intern_id WHERE a.status <> 'qualified' ``` Obviously, you could replace the \* with just the fields you were looking for. If you're looking for the interns that DIDN'T qualify, I wouldn't think you woul...
11,104,561
I have a an application with interns who can apply to internships. We have a script that automatically qualifies the interns. I would like to fetch all interns who aren't qualified to any internship. The database is like this : ``` Intern (Id,...) Application (Id, status, intern_id, internship_id,...) Internship (...
2012/06/19
[ "https://Stackoverflow.com/questions/11104561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183904/" ]
Include the status in a `LEFT JOIN`, and filter for non-matches like so: ``` SELECT .... FROM Intern i LEFT JOIN Application a ON i.Id = a.intern_id AND a.status = 'qualified' WHERE a.Id IS NULL ``` Substitute your list of columns, obviously!
``` SELECT * FROM Intern WHERE Id IN ( SELECT Intern_id FROM Application WHERE status <> 'qualified' ); ```
11,104,561
I have a an application with interns who can apply to internships. We have a script that automatically qualifies the interns. I would like to fetch all interns who aren't qualified to any internship. The database is like this : ``` Intern (Id,...) Application (Id, status, intern_id, internship_id,...) Internship (...
2012/06/19
[ "https://Stackoverflow.com/questions/11104561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183904/" ]
Include the status in a `LEFT JOIN`, and filter for non-matches like so: ``` SELECT .... FROM Intern i LEFT JOIN Application a ON i.Id = a.intern_id AND a.status = 'qualified' WHERE a.Id IS NULL ``` Substitute your list of columns, obviously!
This query should return what you're looking for: ``` SELECT * FROM Intern i INNER JOIN Application a ON i.Id = a.intern_id WHERE a.status <> 'qualified' ``` Obviously, you could replace the \* with just the fields you were looking for. If you're looking for the interns that DIDN'T qualify, I wouldn't think you woul...
8,582,994
> > **Possible Duplicate:** > > [How to return multiple objects from a Java method?](https://stackoverflow.com/questions/457629/how-to-return-multiple-objects-from-a-java-method) > > > Is there any way to return multiple defferent objects from a Java method for example i want return string ,int ,object ,.. et...
2011/12/20
[ "https://Stackoverflow.com/questions/8582994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078756/" ]
Make a new class and return that class. ``` //Give this a more descriptive name reflecting what it REALLY is. public static class ReturnData{ protected String foo protected int bar public ReturnData(String foo, int Bar) { ... } String getFoo() { ... } int getBar() { ... } ``` Then in your method instantiate t...
Not explicitly. You can make your own class that contains eveything, and return that, or you can return some form of `Object` array (`Object[]`) or list (like an `ArrayList`) that contains everything, but that is not recommended. EDIT: Also you can use generics as mentioned above, this falls under the category of maki...
8,582,994
> > **Possible Duplicate:** > > [How to return multiple objects from a Java method?](https://stackoverflow.com/questions/457629/how-to-return-multiple-objects-from-a-java-method) > > > Is there any way to return multiple defferent objects from a Java method for example i want return string ,int ,object ,.. et...
2011/12/20
[ "https://Stackoverflow.com/questions/8582994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078756/" ]
You can return a `Map<Class, Object>` containing the resulting objects' types mapped with their values. ``` public Map<Class, Object> doSomeStuff(){ Map<Class, Object> map = HashMap<Class, Object>(); map.put(String.getClass(), "This is an example"); map.put(Object.getClass(), new Object()); //... return map;...
Not explicitly. You can make your own class that contains eveything, and return that, or you can return some form of `Object` array (`Object[]`) or list (like an `ArrayList`) that contains everything, but that is not recommended. EDIT: Also you can use generics as mentioned above, this falls under the category of maki...
8,582,994
> > **Possible Duplicate:** > > [How to return multiple objects from a Java method?](https://stackoverflow.com/questions/457629/how-to-return-multiple-objects-from-a-java-method) > > > Is there any way to return multiple defferent objects from a Java method for example i want return string ,int ,object ,.. et...
2011/12/20
[ "https://Stackoverflow.com/questions/8582994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078756/" ]
You can return a `Map<Class, Object>` containing the resulting objects' types mapped with their values. ``` public Map<Class, Object> doSomeStuff(){ Map<Class, Object> map = HashMap<Class, Object>(); map.put(String.getClass(), "This is an example"); map.put(Object.getClass(), new Object()); //... return map;...
Make a new class and return that class. ``` //Give this a more descriptive name reflecting what it REALLY is. public static class ReturnData{ protected String foo protected int bar public ReturnData(String foo, int Bar) { ... } String getFoo() { ... } int getBar() { ... } ``` Then in your method instantiate t...
14,492,040
Im trying to write a login service in the android by sending JSON to the web service i have in PHP after its processed in the web service JSON is returned back. My problem is sending JSON and then reading JSON in the android app. I have figured out basic posting in the app using ASyncTask but im not sure where to go fr...
2013/01/24
[ "https://Stackoverflow.com/questions/14492040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1998603/" ]
you can send username and password as jsonobject as to server : ``` //your code here.... JSONObject json = new JSONObject(); json.put("username", username); json.put("password", password); HttpPost post = new HttpPost(); post.setURI(absolute); List params = new ArrayList(); params.add(new BasicNameValuePair("tag", "l...
well in our application we send json to our service using php. i do not send it in json format directly instead i send it in string array format and let the php encode the json as for receiving back the data when i get the response from the server i just put it in string and then using JSONObject in java i convert it t...
64,657
I'm using the JFrame plugin with jquery 1.2.6. It works fine in FF3, however it won't display the requested pages in IE 7. The jQuery library and the JFrame plugin are called in the included header.cfm. Page code is here (note: ignore the ColdFusion calls, I don't think they're generating the problem): <http://cfm.p...
2008/09/15
[ "https://Stackoverflow.com/questions/64657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
When you have a problem like this, the best way of tracking down the problem is to reduce the page to the minimum necessary to reproduce the problem. *"Ignore the [x] because I don't think that's the problem"* is no good, if you don't think that's the problem, save it to a temporary static page, delete the things you ...
I would suggest updating to the newest release of jquery (v 1.3.2). This might be the simplest way to attempt to fix the bug. <http://jquery.com/>
64,657
I'm using the JFrame plugin with jquery 1.2.6. It works fine in FF3, however it won't display the requested pages in IE 7. The jQuery library and the JFrame plugin are called in the included header.cfm. Page code is here (note: ignore the ColdFusion calls, I don't think they're generating the problem): <http://cfm.p...
2008/09/15
[ "https://Stackoverflow.com/questions/64657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
When you have a problem like this, the best way of tracking down the problem is to reduce the page to the minimum necessary to reproduce the problem. *"Ignore the [x] because I don't think that's the problem"* is no good, if you don't think that's the problem, save it to a temporary static page, delete the things you ...
Being new to JQuery myself, I have found the Developer tools in IE8 indispensible. In the script console I was able to find error messages that gave me the info I needed. Are you getting any error messages? There is a "Developer Toolbar" available for IE7. I do not know what it provides for script debugging: <http:/...
67,709,564
I'm trying to create a search function but not able to make it work properly. No results are displayed. I see that the input is being processed "onkeyup" but instead of showing the results, it just shows me an empty screen. I believe it's because the depth level of Div's but I don't know for sure. ![enter image descri...
2021/05/26
[ "https://Stackoverflow.com/questions/67709564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15910854/" ]
As per the [docs](https://reactjs.org/docs/strict-mode.html), **Strict mode** can’t automatically detect side effects for you, but it can help you spot them by making them a little more deterministic. This is done by intentionally double-invoking the following functions: * Class component constructor, render, and sho...
The [`<React.StrictMode>`](https://reactjs.org/docs/strict-mode.html#gatsby-focus-wrapper) exists to detect precisely what you're doing in your code which is an anti-pattern (side-effect in the render function). This mode executes the lifecycle methods of the components twice on purpose (in your case it's a functional...
30,549,938
I am working on a product shortlist feature. I have grid view for each product & I have provided a shortlist link for each of the grid cell. Now I want to hide all these links in each cell initially on page load & show a specific link within the cell when a user hovers on that particular cell and again hide that link w...
2015/05/30
[ "https://Stackoverflow.com/questions/30549938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4910548/" ]
Try to add a css for the div-s to show or hide the links using the `hover css selector` - <http://www.w3schools.com/cssref/sel_hover.asp> I still think that even if you can't solve this by adding `css hover selector` for your `product-grid-item div` to show `shortlist` div, then use `jQuery` only to add htat `css` ins...
Make sure you have included jQuery if yes then try this code ```js <script> $(document).ready(function() { $(".product-grid-item").hover(function() { $(".shortlist").toggle(); } ); }); </script> ```
30,549,938
I am working on a product shortlist feature. I have grid view for each product & I have provided a shortlist link for each of the grid cell. Now I want to hide all these links in each cell initially on page load & show a specific link within the cell when a user hovers on that particular cell and again hide that link w...
2015/05/30
[ "https://Stackoverflow.com/questions/30549938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4910548/" ]
Try to add a css for the div-s to show or hide the links using the `hover css selector` - <http://www.w3schools.com/cssref/sel_hover.asp> I still think that even if you can't solve this by adding `css hover selector` for your `product-grid-item div` to show `shortlist` div, then use `jQuery` only to add htat `css` ins...
Now with all your information available to us, we can finally answer your question ```js $(function () { $(".product-grid-item").hover(function () { $(this).find(".shortlist").toggle(); }); }); ``` ```css .shortlist {display: none; float:right;} ``` ```html <script src="https://ajax.googleapis.co...
30,549,938
I am working on a product shortlist feature. I have grid view for each product & I have provided a shortlist link for each of the grid cell. Now I want to hide all these links in each cell initially on page load & show a specific link within the cell when a user hovers on that particular cell and again hide that link w...
2015/05/30
[ "https://Stackoverflow.com/questions/30549938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4910548/" ]
Now with all your information available to us, we can finally answer your question ```js $(function () { $(".product-grid-item").hover(function () { $(this).find(".shortlist").toggle(); }); }); ``` ```css .shortlist {display: none; float:right;} ``` ```html <script src="https://ajax.googleapis.co...
Make sure you have included jQuery if yes then try this code ```js <script> $(document).ready(function() { $(".product-grid-item").hover(function() { $(".shortlist").toggle(); } ); }); </script> ```
24,954,902
I went througha few Google Api docs for Windows Phone eg `https://developers.google.com/api-client-library/dotnet/apis/` but did not get the clear idea on how to implement the same. I want to find all the restaurants ina specified area. Any ideas on how it is supposed to be done on Windows Phone. And if not using Googl...
2014/07/25
[ "https://Stackoverflow.com/questions/24954902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1979836/" ]
I suggest you to go with Here Maps API since I have implemented in one of my application. Its very easy to use Here Maps in your case. First go through [Windows Phone API - HereMaps](http://developer.nokia.com/resources/library/Lumia/change-history/archived-content/maps-and-navigation/guide-to-the-wp8-maps-api.html) ...
You could go with the [Bing Maps REST Services](http://msdn.microsoft.com/en-us/library/ff701713.aspx) to search specifically what you want to. Have a look at this for more details : <http://alastaira.wordpress.com/2011/01/09/the-bing-maps-soap-search-service/> Hope it helps!
24,954,902
I went througha few Google Api docs for Windows Phone eg `https://developers.google.com/api-client-library/dotnet/apis/` but did not get the clear idea on how to implement the same. I want to find all the restaurants ina specified area. Any ideas on how it is supposed to be done on Windows Phone. And if not using Googl...
2014/07/25
[ "https://Stackoverflow.com/questions/24954902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1979836/" ]
You can using places near search : url request: <https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=[lat,lon]&radius=5000&types=restaurants&sensor=false&key=[KEY]> - get Key : <https://code.google.com/apis/console/?noredirect&pli=1#project:131033727158>
You could go with the [Bing Maps REST Services](http://msdn.microsoft.com/en-us/library/ff701713.aspx) to search specifically what you want to. Have a look at this for more details : <http://alastaira.wordpress.com/2011/01/09/the-bing-maps-soap-search-service/> Hope it helps!
64,814,065
I am trying to establish a rails environment. I can't use the latest version (6) because my computer needs admin rights to install NodeJS and Yarn. So I have to use an older version (say rails v4.2.2). Trouble is, when I install this, the Bundle doesn't allow me to create a demo (using 'rails new demo'). I have tried ...
2020/11/13
[ "https://Stackoverflow.com/questions/64814065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14629478/" ]
The most important question is not which bundler version to use but which Ruby version. Ruby 2.4 unified `Fixnum` and `Bignum` to `Integer` and that change is not supported by old Ruby on Rails versions. At the same time, Ruby on Rails usually requires a minimum Ruby version – for Ruby on Rails 4.2 that was >= 1.9.3. ...
Looking at my Gemfile.lock, we can safely assume rails (4.2.8) insists on bundler version to be less than 2.x: ``` rails (4.2.8) actionmailer (= 4.2.8) actionpack (= 4.2.8) actionview (= 4.2.8) activejob (= 4.2.8) activemodel (= 4.2.8) activerecord (= 4.2.8) activesupport (= 4.2.8) bundler (>= 1.3.0, <...
185,682
I wrote: > > Hydrochloric ions can influence the mutual solubility of IL and water **and hence** affect the extraction mechanism. > > > For several conclusions, I may use this construction. I would like to know how idiomatic is this structure, and what are other alternatives to use for such short conclusions in a...
2018/11/15
[ "https://ell.stackexchange.com/questions/185682", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/11569/" ]
If you want to talk about the status of the toilet and you want to use word “use”, then the expression I would use is “in use”, meaning that the toilet is being used. Then the opposite would be “not in use”. I’m guessing that you’re looking for one word though. We often say that the restroom (and by extension, the toi...
I would use the following two cases: > > 1. In use > 2. Available > > >
185,682
I wrote: > > Hydrochloric ions can influence the mutual solubility of IL and water **and hence** affect the extraction mechanism. > > > For several conclusions, I may use this construction. I would like to know how idiomatic is this structure, and what are other alternatives to use for such short conclusions in a...
2018/11/15
[ "https://ell.stackexchange.com/questions/185682", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/11569/" ]
I would use the following two cases: > > 1. In use > 2. Available > > >
The words on the toilet door "dial" are: 1. **Vacant** (i.e. available, free, unoccupied) 2. **Engaged** (i.e. unavailable, in use, occupied)
185,682
I wrote: > > Hydrochloric ions can influence the mutual solubility of IL and water **and hence** affect the extraction mechanism. > > > For several conclusions, I may use this construction. I would like to know how idiomatic is this structure, and what are other alternatives to use for such short conclusions in a...
2018/11/15
[ "https://ell.stackexchange.com/questions/185682", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/11569/" ]
If you want to talk about the status of the toilet and you want to use word “use”, then the expression I would use is “in use”, meaning that the toilet is being used. Then the opposite would be “not in use”. I’m guessing that you’re looking for one word though. We often say that the restroom (and by extension, the toi...
The words on the toilet door "dial" are: 1. **Vacant** (i.e. available, free, unoccupied) 2. **Engaged** (i.e. unavailable, in use, occupied)
15,554,061
This is a Mysql/sql query question but allow me to explain the context: I would like to equip my PHP calendar with a '< PREV' and 'NEXT >' button allowing a user to easily go to the previous or next available month **that has DATABASE ENTRIES AVAILABLE**. If there are no database entries available, I want to disable th...
2013/03/21
[ "https://Stackoverflow.com/questions/15554061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/830390/" ]
Modify the start date to the beginning and end of the month: For prev, you modify to the first day of the month, by subtracting 1 less than the current day of the month. For next, you do the same, then add 1 month: ``` SELECT (SELECT dayId FROM LogbookDay WHERE logDate < ADDDDATE('2013-03-20', 1-DAY('2013-03-20'...
``` SELECT if(min(logDate) < '2013-03-20', 1, 0) 'NEXT', if(max(logDate) > '2013-03-20', 1, 0) 'PAST' FROM LogbookDay WHERE logDate < '2013-03-20' AND logDate > '2013-03-02' AND userId = 2 ```
15,554,061
This is a Mysql/sql query question but allow me to explain the context: I would like to equip my PHP calendar with a '< PREV' and 'NEXT >' button allowing a user to easily go to the previous or next available month **that has DATABASE ENTRIES AVAILABLE**. If there are no database entries available, I want to disable th...
2013/03/21
[ "https://Stackoverflow.com/questions/15554061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/830390/" ]
With my own query and a pointer from one of the posted answers I have been able to come up with a simple query that checks whether or not entries exist with months prior and after to the month currently in view. Assuming month in view is March 2013: ``` SELECT IF( EXISTS(SELECT dayId FROM LogBookDay WHERE logDate < ...
``` SELECT if(min(logDate) < '2013-03-20', 1, 0) 'NEXT', if(max(logDate) > '2013-03-20', 1, 0) 'PAST' FROM LogbookDay WHERE logDate < '2013-03-20' AND logDate > '2013-03-02' AND userId = 2 ```
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
There is no [documented method](http://developer.android.com/reference/android/media/MediaPlayer.html) for getting info on the currently playing file from a MediaPlayer instance, you'll need to make your app store that information itself in another way. If you're using a Service to keep track of your MediaPlayer instan...
I think you need to have your own model classes from wherein you can set and get your song title. For this and other information, see Stack Overflow question: [How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)](https://stackoverflow.com/questions/2780295/how-to-set-the-playlist-index-f...
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
Just for reference, this works: ``` import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; public class MediaPlayer extends Activity { public static f...
There is no [documented method](http://developer.android.com/reference/android/media/MediaPlayer.html) for getting info on the currently playing file from a MediaPlayer instance, you'll need to make your app store that information itself in another way. If you're using a Service to keep track of your MediaPlayer instan...
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
There is no [documented method](http://developer.android.com/reference/android/media/MediaPlayer.html) for getting info on the currently playing file from a MediaPlayer instance, you'll need to make your app store that information itself in another way. If you're using a Service to keep track of your MediaPlayer instan...
I learned how to do it just now, so I don't know if it works on all versions of android yet. ``` private void getTrackInfo(Uri audioFileUri) { MediaMetadataRetriever metaRetriever= new MediaMetadataRetriever(); metaRetriever.setDataSource(getRealPathFromURI(audioFileUri)); String artist = metaRetriever.ex...
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
Just for reference, this works: ``` import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; public class MediaPlayer extends Activity { public static f...
I think you need to have your own model classes from wherein you can set and get your song title. For this and other information, see Stack Overflow question: [How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)](https://stackoverflow.com/questions/2780295/how-to-set-the-playlist-index-f...
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
I think you need to have your own model classes from wherein you can set and get your song title. For this and other information, see Stack Overflow question: [How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)](https://stackoverflow.com/questions/2780295/how-to-set-the-playlist-index-f...
I learned how to do it just now, so I don't know if it works on all versions of android yet. ``` private void getTrackInfo(Uri audioFileUri) { MediaMetadataRetriever metaRetriever= new MediaMetadataRetriever(); metaRetriever.setDataSource(getRealPathFromURI(audioFileUri)); String artist = metaRetriever.ex...
3,616,964
When executing: ``` path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') ``` I get: ``` log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: inval...
2010/09/01
[ "https://Stackoverflow.com/questions/3616964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/375348/" ]
Just for reference, this works: ``` import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; public class MediaPlayer extends Activity { public static f...
I learned how to do it just now, so I don't know if it works on all versions of android yet. ``` private void getTrackInfo(Uri audioFileUri) { MediaMetadataRetriever metaRetriever= new MediaMetadataRetriever(); metaRetriever.setDataSource(getRealPathFromURI(audioFileUri)); String artist = metaRetriever.ex...
24,831,630
I'm stumbling upon weird case while using angularJs and input type="number". Basically, if I have input with type number and initial value falls outside range defined by min and max, my initial value is simply destroyed. I've made fiddle to illustrate the problem - <http://jsfiddle.net/PK3QH/2/> HTML: ``` <div ng-co...
2014/07/18
[ "https://Stackoverflow.com/questions/24831630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237858/" ]
I agree this is a bug. This happens because the formatters are applied first before validators. The formatter in the case of 'number' ``` if (attr.min) { var minValidator = function(value) { var min = parseFloat(attr.min); return validate(ctrl, 'min', ctrl.$isEmpty(value) || value >= min, value); ...
IMHO, this is a bug. If you remove ng-model attribute, you see the initial value. If this is NOT a bug, when we type invalid value such as 40, we must not see the entered text as it happend as when initialized. See, it's not consistent. It only happens for the first time when input directive is initialized. IMO, Ev...