qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
10,142,235
If you have a read-only table that will be updated via ajax, is it better to have the markup generated on the server or just return the JSON and render the table on the client? They're both fairly simple to do, so I'm wondering which is preferable assuming the table markup is relatively simple. At 1st I thought retur...
2012/04/13
[ "https://Stackoverflow.com/questions/10142235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/869412/" ]
As a trick, I used css zoom property with overflow:hidden on container. But it should be executed after chart.draw(), on google chart ready event. And if you need to redraw (I'm redrawing on window resize to guarantee responsiveness), you should force zoom to 1 or 100% again before draw it again. HTML: ``` <div id=...
It looks like Google Charts now has an expiremental option called 'explorer' that works for some chart types. See: <https://developers.google.com/chart/interactive/docs/gallery/linechart#Configuration_Options>
10,142,235
If you have a read-only table that will be updated via ajax, is it better to have the markup generated on the server or just return the JSON and render the table on the client? They're both fairly simple to do, so I'm wondering which is preferable assuming the table markup is relatively simple. At 1st I thought retur...
2012/04/13
[ "https://Stackoverflow.com/questions/10142235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/869412/" ]
As a trick, I used css zoom property with overflow:hidden on container. But it should be executed after chart.draw(), on google chart ready event. And if you need to redraw (I'm redrawing on window resize to guarantee responsiveness), you should force zoom to 1 or 100% again before draw it again. HTML: ``` <div id=...
You could try to generate a select event on marker click and in the event function you could change the region of the chart by changing chartOptions as follows: ``` google.visualization.events.addListener(chart, 'select', () => { // console.log(this.continents); if (continents.includes( continentData.getValue(cha...
40,472,700
Why does this array return a length of 3 when it's clearly 4 elements? ``` 'matt'.split('').sort(); ``` [![enter image description here](https://i.stack.imgur.com/7d9et.png)](https://i.stack.imgur.com/7d9et.png)
2016/11/07
[ "https://Stackoverflow.com/questions/40472700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1342395/" ]
It looks like you've run into the classic "the console doesn't log at runtime, it logs when you inspect the data structure" error. Check out [Weird behavior with objects & console.log](https://stackoverflow.com/questions/23429203/weird-behavior-with-objects-console-log) Basically, the value of the array is calculated ...
The following shows a length of 4. ```js console.log('matt'.split('').sort().length); ```
24,982,642
say, I want the user to input an integer only but not something like "bacon", is there a way to restrict user input to integers(or other data types) so I don't get any errors and or inputs other than an integer?
2014/07/27
[ "https://Stackoverflow.com/questions/24982642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3879690/" ]
Assuming your Scanner has the name myScanner: ``` public static int checkMyInput () { try { return myScanner.nextInt(); } catch (InputMismatchException e ) { myScanner.next(); System.out.println("bacon luff"); return 0 ; } } ``` and then you can call that method.
Here is a fully functional example: ``` import java.util.Scanner; public class Temp { public static void main(String[] args) { Scanner inp = new Scanner(System.in); int num = 0; String input = ""; String exit = "exit"; boolean isStringNumber = true;//If the String is not N...
70,690,661
I have vsc version 1.63.2. I'm getting the following notification: "File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes." [![notification](https://i.stack.imgur.com/yWBqA.png)](https://i.stack.imgur.com/yWBqA.png) Wh...
2022/01/13
[ "https://Stackoverflow.com/questions/70690661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15843133/" ]
I just ran into this issue today and found my solution by viewing the "Window" logs using the "Developer: Open Log File..." command from the Command Palette. In my case, the problem was that I had added a folder to my workspace that I had since deleted on the file system. The log in question looked something like: ``...
**TLDR** : on Windows 10, if you have Cygwin64 installed and you got a Git For Windows update, check Git for Windows path comes before Git from Cygwin path in environment variables. **Long version** : Just got into the same error today. The Git Lens extension was not working anymore. I'm on Win 10, so there is no way ...
70,690,661
I have vsc version 1.63.2. I'm getting the following notification: "File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes." [![notification](https://i.stack.imgur.com/yWBqA.png)](https://i.stack.imgur.com/yWBqA.png) Wh...
2022/01/13
[ "https://Stackoverflow.com/questions/70690661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15843133/" ]
I just ran into this issue today and found my solution by viewing the "Window" logs using the "Developer: Open Log File..." command from the Command Palette. In my case, the problem was that I had added a folder to my workspace that I had since deleted on the file system. The log in question looked something like: ``...
I also encountered this problem. I was using VSCode and opening a folder in it on WSL Ubuntu 20.04. The solution for me was to install the **VS Code Remote - WSL** extension. I hope this will be useful for someone.
70,690,661
I have vsc version 1.63.2. I'm getting the following notification: "File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes." [![notification](https://i.stack.imgur.com/yWBqA.png)](https://i.stack.imgur.com/yWBqA.png) Wh...
2022/01/13
[ "https://Stackoverflow.com/questions/70690661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15843133/" ]
I also encountered this problem. I was using VSCode and opening a folder in it on WSL Ubuntu 20.04. The solution for me was to install the **VS Code Remote - WSL** extension. I hope this will be useful for someone.
**TLDR** : on Windows 10, if you have Cygwin64 installed and you got a Git For Windows update, check Git for Windows path comes before Git from Cygwin path in environment variables. **Long version** : Just got into the same error today. The Git Lens extension was not working anymore. I'm on Win 10, so there is no way ...
311,096
Let $f: X\rightarrow Y$ be a map and let $A,B$ be subsets of $X$. Prove that $$f(A\setminus B) =f(A)\setminus f(B) \iff f(A\setminus B)\cap(B)=\emptyset.$$ Deduce that if $f$ is injective, then $f(A\setminus B) = f(A)\setminus f(B)$.
2013/02/22
[ "https://math.stackexchange.com/questions/311096", "https://math.stackexchange.com", "https://math.stackexchange.com/users/42887/" ]
HINT: You appear to have misstated the first result: it should be $$f[A\setminus B]=f[A]\setminus f[B]\iff f[A\setminus B]\cap f[B]=\varnothing\;.\tag{1}$$ You have two things to prove: 1. If $f[A\setminus B]=f[A]\setminus f[B]$, then $f[A\setminus B]\cap f[B]=\varnothing$, and 2. if $f[A\setminus B]\cap f[B]=\varno...
You didn't describe any context, nor had shown your own work, so the only thing I can give you, are some **hints:** * $A \backslash B = A \cap B^c$. * $A \cap B = \varnothing \iff A \subset B^c$. * $A \subset B \iff A \cap B = A$. Good luck!
27,926,428
This is my code ``` <ul> <% foreach (string str in more()) {%> <li><% $str %> </li> <% } %> </ul> ``` when i run the code there is an error <% $ str %> are not allowed how can place str inside list tag? thanks in advance
2015/01/13
[ "https://Stackoverflow.com/questions/27926428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4448635/" ]
You can make the property public and put it in the page load event using code behind. You can reference the property like this `<%= str %>` [using variables in asp.net](http://websummaries.blogspot.com/2010/12/pass-and-use-variables-in-aspnet-server.html?m=1)
You actually cant write it PHP style. ASP WebForms has a another stucture where code behind(logic) and view(aspx) are two separate files. The binding of the data to the view happens by actually binding your dataset to a servercontrol. An example Add a new server control to your aspx page: ``` <asp:label runat="server...
27,926,428
This is my code ``` <ul> <% foreach (string str in more()) {%> <li><% $str %> </li> <% } %> </ul> ``` when i run the code there is an error <% $ str %> are not allowed how can place str inside list tag? thanks in advance
2015/01/13
[ "https://Stackoverflow.com/questions/27926428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4448635/" ]
You can make the property public and put it in the page load event using code behind. You can reference the property like this `<%= str %>` [using variables in asp.net](http://websummaries.blogspot.com/2010/12/pass-and-use-variables-in-aspnet-server.html?m=1)
Creating a single page aspx file with the code embedded can be very useful if you need to provide clients with some way of debugging their webserver/application configuration. All that is required is to bracket your code with... ``` <script runat="server"> protected void Page_PreInit(object sender, EventArgs e) {...
27,926,428
This is my code ``` <ul> <% foreach (string str in more()) {%> <li><% $str %> </li> <% } %> </ul> ``` when i run the code there is an error <% $ str %> are not allowed how can place str inside list tag? thanks in advance
2015/01/13
[ "https://Stackoverflow.com/questions/27926428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4448635/" ]
Creating a single page aspx file with the code embedded can be very useful if you need to provide clients with some way of debugging their webserver/application configuration. All that is required is to bracket your code with... ``` <script runat="server"> protected void Page_PreInit(object sender, EventArgs e) {...
You actually cant write it PHP style. ASP WebForms has a another stucture where code behind(logic) and view(aspx) are two separate files. The binding of the data to the view happens by actually binding your dataset to a servercontrol. An example Add a new server control to your aspx page: ``` <asp:label runat="server...
66,231,837
Is there a way to do something like this in Css/Scss (no Js): ``` #div1 { width: height + 20px; } ``` Or ``` #div2 { width: #div1.height + 50px;} ``` Or ``` $variable : #div1.height; ```
2021/02/16
[ "https://Stackoverflow.com/questions/66231837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11321137/" ]
You can almost achieve this using CSS variables together with `calc()`: ``` :root { --height: 40px; } #div1 { width: calc(var(--height) + 20px); } #div2 { width: calc(var(--height) + 70px); } ```
Sadly, no you cannot do that, but I think it would be better to do it with javascript anyway because in css you wouldn't really need to do +50 you could just set it to 50.
15,614,440
I have an app which plays music from a `local server` and opens `music player` in the `web browser` but when the user goes back to the `Home activity` and launches `Another activity` which plays a video on the browser, The video opens in a different tab of the browser, while music tab does not get closed. Can I close ...
2013/03/25
[ "https://Stackoverflow.com/questions/15614440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2006345/" ]
After lots of struglling ,i reached on conclusion,we cant handle the operation of other application without permission by owner of application,so i have found alternet solution using webview now its working.
You can't control another applications life-cycle . so you can't close tabs that are running in the browser. what you can do on the other hand is to use [WebView](http://developer.android.com/reference/android/webkit/WebView.html) to open the audio/video then you have full control over it (what and when) to load/close...
15,614,440
I have an app which plays music from a `local server` and opens `music player` in the `web browser` but when the user goes back to the `Home activity` and launches `Another activity` which plays a video on the browser, The video opens in a different tab of the browser, while music tab does not get closed. Can I close ...
2013/03/25
[ "https://Stackoverflow.com/questions/15614440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2006345/" ]
You can't control another applications life-cycle . so you can't close tabs that are running in the browser. what you can do on the other hand is to use [WebView](http://developer.android.com/reference/android/webkit/WebView.html) to open the audio/video then you have full control over it (what and when) to load/close...
it isn;t the good way to do so, if you are interested in this then the code would be like this ``` List<ActivityManager.RunningAppProcessInfo> list = servMng.getRunningAppProcesses(); if(list != null){ for(int i=0;i<list.size();++i){ if("com.android.browser".matches(list.get(i).processName)){ int pid = android....
15,614,440
I have an app which plays music from a `local server` and opens `music player` in the `web browser` but when the user goes back to the `Home activity` and launches `Another activity` which plays a video on the browser, The video opens in a different tab of the browser, while music tab does not get closed. Can I close ...
2013/03/25
[ "https://Stackoverflow.com/questions/15614440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2006345/" ]
After lots of struglling ,i reached on conclusion,we cant handle the operation of other application without permission by owner of application,so i have found alternet solution using webview now its working.
it isn;t the good way to do so, if you are interested in this then the code would be like this ``` List<ActivityManager.RunningAppProcessInfo> list = servMng.getRunningAppProcesses(); if(list != null){ for(int i=0;i<list.size();++i){ if("com.android.browser".matches(list.get(i).processName)){ int pid = android....
32,421
This statement is Theorem 1.1 (page 39) of *Computability, Complexity and languages* by Martin Davis: > > If function $h$ is obtained from the (partially) computable functions $f$, $g\_1$, $g\_2$, ..., $g\_k$ by composition then $h$ is (partially) computable. > > > What I understand from this theorem is if there ...
2014/10/28
[ "https://cs.stackexchange.com/questions/32421", "https://cs.stackexchange.com", "https://cs.stackexchange.com/users/12532/" ]
The theorem should be read as "If you compose computable functions, you get a computable function; if you compose partial computable functions, you get a partial computable function." Note that, perhaps confusingly, partial computable is a larger class of functions: every computable function is partial computable. One...
This is a confusion about terminology: * A function $f : A \to B$ is **total** if it is defined everywhere on $A$. * A function $g : A \to B$ is **partial** if it is defined on a subset $A' \subseteq A$, called the **domain** of $g$. Cruicially, there is **no requirement** that $A'$ be a proper subset of $A$. Thus, *...
10,165,674
*short: I am Newbie, but I try the best to ask straight forward, but please try to be forgiving with me ;)* I was searching for a solution to my problem for a while and two topics: 1. [Prevent browser caching of jQuery AJAX call result](https://stackoverflow.com/questions/367786/prevent-caching-of-ajax-call) 2. [Can ...
2012/04/15
[ "https://Stackoverflow.com/questions/10165674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1334971/" ]
You need to use the `-d` option to get enough information to diagnose this; but take a look at <https://trac.macports.org/wiki/FAQ#selfupdatefails> for common problems and solutions.
Seems Apple no longer installs Xcode's command line tools. See here: <http://ericwilson.erics.ws/ericsblog/2012/8/26/macports-port-selfupdate-fail> for solution.
10,165,674
*short: I am Newbie, but I try the best to ask straight forward, but please try to be forgiving with me ;)* I was searching for a solution to my problem for a while and two topics: 1. [Prevent browser caching of jQuery AJAX call result](https://stackoverflow.com/questions/367786/prevent-caching-of-ajax-call) 2. [Can ...
2012/04/15
[ "https://Stackoverflow.com/questions/10165674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1334971/" ]
You need to use the `-d` option to get enough information to diagnose this; but take a look at <https://trac.macports.org/wiki/FAQ#selfupdatefails> for common problems and solutions.
Just wanted to add that on Mac OS 10.12 Sierra i was getting the `WARNING: GNUSTEP_SYSTEM_ROOT is not defined` error on `selfupdate` and i did already have the Xcode command line tools installed, licensed and working. But my copy of Xcode had become out of date, even though that was not showing up on the automatic soft...
10,165,674
*short: I am Newbie, but I try the best to ask straight forward, but please try to be forgiving with me ;)* I was searching for a solution to my problem for a while and two topics: 1. [Prevent browser caching of jQuery AJAX call result](https://stackoverflow.com/questions/367786/prevent-caching-of-ajax-call) 2. [Can ...
2012/04/15
[ "https://Stackoverflow.com/questions/10165674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1334971/" ]
Seems Apple no longer installs Xcode's command line tools. See here: <http://ericwilson.erics.ws/ericsblog/2012/8/26/macports-port-selfupdate-fail> for solution.
Just wanted to add that on Mac OS 10.12 Sierra i was getting the `WARNING: GNUSTEP_SYSTEM_ROOT is not defined` error on `selfupdate` and i did already have the Xcode command line tools installed, licensed and working. But my copy of Xcode had become out of date, even though that was not showing up on the automatic soft...
78,604
For example, a street this wide to have enough blood run down the length shown in this photo? Assume that the blood isn't going down storm-drains for whatever reason and assume the stretch of road is 100 feet long. There need not be literal 'rivers' of blood, just enough that the entire street is coated enough to obscu...
2017/04/19
[ "https://worldbuilding.stackexchange.com/questions/78604", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/35520/" ]
[![enter image description here](https://i.stack.imgur.com/cSG5f.jpg)](https://i.stack.imgur.com/cSG5f.jpg) This is the city of Dhaka, Bangladesh last year. Streets running red with blood. There is a lot of rainwater too which hopefully is not cheating. Still pretty bloody looking. I read that 100,000 animals are sac...
First....Ewww. Bellerophon probably has a more precise method, but here is an alternative method: We could use the coverage of paint as a baseline. Typical household paint will cover about 400 sq feet per gallon $(9.8 \frac{m^2}l)$. It's less when the paint has a lower amount of 'solids', and blood doesn't contain ti...
78,604
For example, a street this wide to have enough blood run down the length shown in this photo? Assume that the blood isn't going down storm-drains for whatever reason and assume the stretch of road is 100 feet long. There need not be literal 'rivers' of blood, just enough that the entire street is coated enough to obscu...
2017/04/19
[ "https://worldbuilding.stackexchange.com/questions/78604", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/35520/" ]
[![enter image description here](https://i.stack.imgur.com/cSG5f.jpg)](https://i.stack.imgur.com/cSG5f.jpg) This is the city of Dhaka, Bangladesh last year. Streets running red with blood. There is a lot of rainwater too which hopefully is not cheating. Still pretty bloody looking. I read that 100,000 animals are sac...
There are already some excellent answers here. Let me try it from a historical perspective. The streets run red with blood. ------------------------------- Is mostly used for [massacres](https://en.wikipedia.org/wiki/List_of_events_named_massacres). And to get the *Rivers of Blood* claim you need lots of dead people....
78,604
For example, a street this wide to have enough blood run down the length shown in this photo? Assume that the blood isn't going down storm-drains for whatever reason and assume the stretch of road is 100 feet long. There need not be literal 'rivers' of blood, just enough that the entire street is coated enough to obscu...
2017/04/19
[ "https://worldbuilding.stackexchange.com/questions/78604", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/35520/" ]
River method (most deaths) ========================== **Width** - Pretty simple, 12$\times$4=48 so 48' (~15m for anyone not familiar with imperial.) **Length** - Apparently it is a 100' (30.5m) long road. All work in the section below is based on old, incorrect numbers. Left in to provide context for comments below...
First....Ewww. Bellerophon probably has a more precise method, but here is an alternative method: We could use the coverage of paint as a baseline. Typical household paint will cover about 400 sq feet per gallon $(9.8 \frac{m^2}l)$. It's less when the paint has a lower amount of 'solids', and blood doesn't contain ti...
78,604
For example, a street this wide to have enough blood run down the length shown in this photo? Assume that the blood isn't going down storm-drains for whatever reason and assume the stretch of road is 100 feet long. There need not be literal 'rivers' of blood, just enough that the entire street is coated enough to obscu...
2017/04/19
[ "https://worldbuilding.stackexchange.com/questions/78604", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/35520/" ]
River method (most deaths) ========================== **Width** - Pretty simple, 12$\times$4=48 so 48' (~15m for anyone not familiar with imperial.) **Length** - Apparently it is a 100' (30.5m) long road. All work in the section below is based on old, incorrect numbers. Left in to provide context for comments below...
There are already some excellent answers here. Let me try it from a historical perspective. The streets run red with blood. ------------------------------- Is mostly used for [massacres](https://en.wikipedia.org/wiki/List_of_events_named_massacres). And to get the *Rivers of Blood* claim you need lots of dead people....
78,604
For example, a street this wide to have enough blood run down the length shown in this photo? Assume that the blood isn't going down storm-drains for whatever reason and assume the stretch of road is 100 feet long. There need not be literal 'rivers' of blood, just enough that the entire street is coated enough to obscu...
2017/04/19
[ "https://worldbuilding.stackexchange.com/questions/78604", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/35520/" ]
First....Ewww. Bellerophon probably has a more precise method, but here is an alternative method: We could use the coverage of paint as a baseline. Typical household paint will cover about 400 sq feet per gallon $(9.8 \frac{m^2}l)$. It's less when the paint has a lower amount of 'solids', and blood doesn't contain ti...
There are already some excellent answers here. Let me try it from a historical perspective. The streets run red with blood. ------------------------------- Is mostly used for [massacres](https://en.wikipedia.org/wiki/List_of_events_named_massacres). And to get the *Rivers of Blood* claim you need lots of dead people....
73,225,272
In my dataset there is the variable "cigarettes per day" (CPD) for 21 days and several subjects (ID). I want to know how many and which subjects never smoked (e.g. have only 0 in CPD) across the 21 days. Here is a example dataset for 3 subjects and 5 days ``` day <- c(1,2,3,4,5,1,2,3,4,5,1,2,3,4,5) ID <- c(1,1,1,1,1,...
2022/08/03
[ "https://Stackoverflow.com/questions/73225272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19296853/" ]
You need to use `innerText` instead to get the all `text` content even with whitespaces. ```js var textWithoutWhiteSpaces = document.getElementById("test").textContent; var wordsWithoutWhiteSpaces = textWithoutWhiteSpaces.match(/\S+/g).length; var textWithWhiteSpaces = document.getElementById("test").innerText; var w...
I will add another option to count the number of words among the tags: ```js const str = '<p><p><p>One<br></p><p>Two</p><p>Three</p><p></p></p><h1>four</h1><b>five</b><H1>123</H1>'; const result = str .replace(/(<.*?>)/g, '|') .split('|') .filter((el) => el !== '').length; console.log(result); ```
73,225,272
In my dataset there is the variable "cigarettes per day" (CPD) for 21 days and several subjects (ID). I want to know how many and which subjects never smoked (e.g. have only 0 in CPD) across the 21 days. Here is a example dataset for 3 subjects and 5 days ``` day <- c(1,2,3,4,5,1,2,3,4,5,1,2,3,4,5) ID <- c(1,1,1,1,1,...
2022/08/03
[ "https://Stackoverflow.com/questions/73225272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19296853/" ]
Maybe this could work for you: 1. Replace all tags with spaces, so `<p>One</p><p>Two</p>` would become `One Two` . 2. Trim the middle spaces, and make them one space, so our string should just have an extra space on the left and right. 3. Remove that extra space. ```js let html = "your html"; let tmp = html.replace(...
I will add another option to count the number of words among the tags: ```js const str = '<p><p><p>One<br></p><p>Two</p><p>Three</p><p></p></p><h1>four</h1><b>five</b><H1>123</H1>'; const result = str .replace(/(<.*?>)/g, '|') .split('|') .filter((el) => el !== '').length; console.log(result); ```
53,098,967
This is my PHP code for json output: ``` $sql="SELECT id,name FROM languages ORDER BY id"; $result=mysqli_query($conn,$sql); // Fetch all $result = mysqli_fetch_all($result,MYSQLI_ASSOC); $out_put = json_encode($result); echo $out_put; ``` This is the json output of the above php code: ```...
2018/11/01
[ "https://Stackoverflow.com/questions/53098967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10590318/" ]
Just write ``` $out_put = json_encode([ "Responsecode" => 200, "Message" => "Sucess", "languagelist" => $result ]); ```
You can do it by this way: ``` $output['Responsecode'] = 200; $output['Message'] = "Sucess"; $output['languagelist'] = $result; $out_put = json_encode($output); ```
18,264,683
I am writing an R script in Rstudio, and I would like some way to get the name of the file the code is written in. The reason why I want to do this is I want a piece of code I can stick at the bottom of all my scripts so that my results are automatically emailed to me using the sendmailR package. I'd like my attachmen...
2013/08/16
[ "https://Stackoverflow.com/questions/18264683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1544793/" ]
Another workaround would be to source your scripts from a master script, ``` script <- "mycode.R" source(script) ... doOtherThings(script) ``` and you could loop through all scripts you have, send emails about them, whatever.
I don't know of a way to have R give you the script name. But you could include it at the top of the script - like so: ``` Script.Name<-c("current name") ``` Then using the Sys.time() and paste() commands you could make the object you want: ``` Final.Name<-paste(Script.Name, Sys.time(), sep="_") ``` If you just w...
40,871,697
I've got two tables: **emailLog** table: ``` email sendTime sourceTag ------------------------------------------------------- yadda@aol.com 2016-11-17 09:14:37.213 WelcomeEmail badda@aol.com 2016-11-16 09:14:37.213 WelcomeEmail test@aol.com 2016-11-15 09:12:33.213 WelcomeEm...
2016/11/29
[ "https://Stackoverflow.com/questions/40871697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1339687/" ]
To keep things simple and clear, i think, you can create 2 temporary tables. The first one will contain the list of the emails sent with a specific sourceTag, grouped by the date, as you already did. And the second table will do the same thing for the registrations. You can than inner join the 2 temporary tables.
You can use a `full join` (to get rows from the other table when are no rows for a specific date in either of the tables) with the two tables and then use conditional aggregation. ``` SELECT COALESCE(CONVERT(varchar(10), e.sendTime, 120),CONVERT(varchar(10), r.dateRegistered, 120)) as date, COUNT(e.email) as n...
6,163,111
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included key/secret & callback url. I read up on twitter OAuth API and registered a Browser type app for my Android code and set the callback url to www.mysite.com, read & write general access and got my key/secret. However when i r...
2011/05/28
[ "https://Stackoverflow.com/questions/6163111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/452889/" ]
It seems the problem was that I had my app configured as Client and it had to be Browser type even though its a native client app on android.
callback to another site must be specified at the time registering your twitter application( in callback (Browser Type) ) , and callback in your code must me same as u specified in the manifest file, under tag..
6,163,111
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included key/secret & callback url. I read up on twitter OAuth API and registered a Browser type app for my Android code and set the callback url to www.mysite.com, read & write general access and got my key/secret. However when i r...
2011/05/28
[ "https://Stackoverflow.com/questions/6163111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/452889/" ]
It seems the problem was that I had my app configured as Client and it had to be Browser type even though its a native client app on android.
even i had the same problem but i solved it by adding "https://www.google.com" to the CALLBACK\_URL field while registering my application with twitter. Actually i think that providing a valid-url makes the application browser-app else it remains a desktop-app...
6,163,111
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included key/secret & callback url. I read up on twitter OAuth API and registered a Browser type app for my Android code and set the callback url to www.mysite.com, read & write general access and got my key/secret. However when i r...
2011/05/28
[ "https://Stackoverflow.com/questions/6163111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/452889/" ]
I had this same problem. I did a packet capture since I knew the URL was good. The response from the server was: ``` <?xml version="1.0" encoding="UTF-8"?> <hash> <error>Desktop applications only support the oauth_callback value 'oob'</error> <request>/oauth/request_token</request> </hash> ``` For me the problem...
callback to another site must be specified at the time registering your twitter application( in callback (Browser Type) ) , and callback in your code must me same as u specified in the manifest file, under tag..
6,163,111
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included key/secret & callback url. I read up on twitter OAuth API and registered a Browser type app for my Android code and set the callback url to www.mysite.com, read & write general access and got my key/secret. However when i r...
2011/05/28
[ "https://Stackoverflow.com/questions/6163111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/452889/" ]
even i had the same problem but i solved it by adding "https://www.google.com" to the CALLBACK\_URL field while registering my application with twitter. Actually i think that providing a valid-url makes the application browser-app else it remains a desktop-app...
callback to another site must be specified at the time registering your twitter application( in callback (Browser Type) ) , and callback in your code must me same as u specified in the manifest file, under tag..
6,163,111
I downloaded the OAuthDemo Android App from www.marakana.com. It works fine with their included key/secret & callback url. I read up on twitter OAuth API and registered a Browser type app for my Android code and set the callback url to www.mysite.com, read & write general access and got my key/secret. However when i r...
2011/05/28
[ "https://Stackoverflow.com/questions/6163111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/452889/" ]
I had this same problem. I did a packet capture since I knew the URL was good. The response from the server was: ``` <?xml version="1.0" encoding="UTF-8"?> <hash> <error>Desktop applications only support the oauth_callback value 'oob'</error> <request>/oauth/request_token</request> </hash> ``` For me the problem...
even i had the same problem but i solved it by adding "https://www.google.com" to the CALLBACK\_URL field while registering my application with twitter. Actually i think that providing a valid-url makes the application browser-app else it remains a desktop-app...
71,553,721
> > Typically, processes aren't expected to do any work when cached, but some apps might have custom features supported by processes that are expected to run while cached. > > > This quote comes from [Android Source Code Document](https://source.android.com/devices/tech/perf/cached-apps-freezer#handling-custom-fea...
2022/03/21
[ "https://Stackoverflow.com/questions/71553721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18397859/" ]
As per flutter [null-safety](https://dart.dev/null-safety/understanding-null-safety) try to add ? ``` Future? userFuture; ``` Or ``` late Future userFuture; ```
Well from sdk 2.12 onwards, dart supports null-safety there are two ways to fix this error, since you haven't mentioned the use of userFuture. 1. add late keyboard before the initialisation `late Future userFuture` 2. add null safety operator `Future? userFuture`
21,958,157
I am changing the colour of action bar using the following code. ``` actionBar= getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(backgroundColor)); ``` This works perfectly fine in `onCreate()` method(i.e when my activity starts). But when I am using the same code in ...
2014/02/22
[ "https://Stackoverflow.com/questions/21958157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2054624/" ]
It seems like for **Android 4.0** up to **Android 4.1** (4.2 is ok) you cannot change the action bar background once the activity has started. So I guess a solution in those cases is to restart the activity with a different background color. Not very elegant but thats the best I can come up with. Something like this...
A workaround I used to solve this problem was to maintain a reference to the ColorDrawable that was used to set the background initially. Then, to change its colour, modify the colour of the Drawable, and then tell the activity to invalidate its options, which causes the ActionBar to be redrawn. Here's my code to set t...
21,958,157
I am changing the colour of action bar using the following code. ``` actionBar= getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(backgroundColor)); ``` This works perfectly fine in `onCreate()` method(i.e when my activity starts). But when I am using the same code in ...
2014/02/22
[ "https://Stackoverflow.com/questions/21958157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2054624/" ]
It seems like for **Android 4.0** up to **Android 4.1** (4.2 is ok) you cannot change the action bar background once the activity has started. So I guess a solution in those cases is to restart the activity with a different background color. Not very elegant but thats the best I can come up with. Something like this...
Based off of what [steve\_the\_kid](https://stackoverflow.com/users/2395376/steve-the-kid) mentioned I was able to solve this by saving the color drawable. ``` ColorDrawable actionBarBackground = new ColorDrawable(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
21,958,157
I am changing the colour of action bar using the following code. ``` actionBar= getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(backgroundColor)); ``` This works perfectly fine in `onCreate()` method(i.e when my activity starts). But when I am using the same code in ...
2014/02/22
[ "https://Stackoverflow.com/questions/21958157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2054624/" ]
It seems like for **Android 4.0** up to **Android 4.1** (4.2 is ok) you cannot change the action bar background once the activity has started. So I guess a solution in those cases is to restart the activity with a different background color. Not very elegant but thats the best I can come up with. Something like this...
Sorry for such a late reply,But to help others I am replying to this question after so long. Just set the Title of the action bar or make change in the icons or menu along with changing the colorDrawables.A simple change will recreate the action bar with new color.Even if you need same title or icon every time set sam...
21,958,157
I am changing the colour of action bar using the following code. ``` actionBar= getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(backgroundColor)); ``` This works perfectly fine in `onCreate()` method(i.e when my activity starts). But when I am using the same code in ...
2014/02/22
[ "https://Stackoverflow.com/questions/21958157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2054624/" ]
A workaround I used to solve this problem was to maintain a reference to the ColorDrawable that was used to set the background initially. Then, to change its colour, modify the colour of the Drawable, and then tell the activity to invalidate its options, which causes the ActionBar to be redrawn. Here's my code to set t...
Based off of what [steve\_the\_kid](https://stackoverflow.com/users/2395376/steve-the-kid) mentioned I was able to solve this by saving the color drawable. ``` ColorDrawable actionBarBackground = new ColorDrawable(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
21,958,157
I am changing the colour of action bar using the following code. ``` actionBar= getSupportActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(backgroundColor)); ``` This works perfectly fine in `onCreate()` method(i.e when my activity starts). But when I am using the same code in ...
2014/02/22
[ "https://Stackoverflow.com/questions/21958157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2054624/" ]
A workaround I used to solve this problem was to maintain a reference to the ColorDrawable that was used to set the background initially. Then, to change its colour, modify the colour of the Drawable, and then tell the activity to invalidate its options, which causes the ActionBar to be redrawn. Here's my code to set t...
Sorry for such a late reply,But to help others I am replying to this question after so long. Just set the Title of the action bar or make change in the icons or menu along with changing the colorDrawables.A simple change will recreate the action bar with new color.Even if you need same title or icon every time set sam...
63,945,150
I am trying to create a function like the function of jQuery which changes the style of an HTMLElement, probably you have seen it somewhere: ``` $("button").css("color", "red"); ``` which is pretty handy, so here is what I've tried: ``` function $(selector, parent=document){ return parent.querySelector(selector); }...
2020/09/17
[ "https://Stackoverflow.com/questions/63945150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14236202/" ]
To modify styles, you need to set a CSS property of the style declaration object of an element. For example: ``` elm.style.color = 'red'; ``` You need to modify your `$.css` to access the current element(s) in the collection, and access their `.style[propertyName]` property. You can put the collection onto a proper...
Not sure if this is what you're after, but you could just apply the style inline? ``` var elem = document.querySelector('#some-element'); //set color to red elem.style.color = 'red'; //set the background color to a light gray elem.style.backgroundColor = '#e5e5e5'; //set the height to 225px elem.style.height = '225...
1,248,272
I have setup a UFW to allow all incoming and outgoing traffic by default. I wish to limit a few ports (in this case, 9200 and 5601). When I have the following configuration: ``` > sudo ufw status verbose Status: active Logging: on (low) Default: allow (incoming), allow (outgoing), deny (routed) New profiles: skip To ...
2020/06/08
[ "https://askubuntu.com/questions/1248272", "https://askubuntu.com", "https://askubuntu.com/users/612872/" ]
This might be helpful for you. Follow the instruction Start and enable UFWs `systemd` unit: ``` sudo systemctl start ufw sudo systemctl enable ufw ``` Deny Incoming in 9200 and 5601 ``` sudo ufw deny in 9200 | sudo ufw deny in 9200/tcp | sudo ufw deny in 9200/udp sudo ufw deny in 5601 | sudo ufw deny in 5601/tcp |...
Check the config file with `nano` or `vi` ``` sudo nano /etc/default/ufw ``` make sure IPV6 is set to yes ``` IPV6=yes ``` restart `ufw` ``` sudo ufw disable sudo ufw enable ``` I hope that helps.
14,717,915
``` public boolean searchSummaryData(String textToFind) { int fromRow, fromCol; fromRow = summaryTable.getSelectedRow(); fromCol = summaryTable.getSelectedColumn(); if (fromRow < 0) { fromRow = 0; //set to start point, first row } if (fromCol < 0) { fromCol = 0; } else { ...
2013/02/05
[ "https://Stackoverflow.com/questions/14717915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992762/" ]
With flyway 3.0 the situation has changed and there are now callback scripts possible. In this situation an afterMigration.sql file could be used to do the cleanups. See <https://flywaydb.org/documentation/concepts/callbacks> and <https://flywaydb.org/documentation/tutorials/callbacks> for more information.
This has not changed. Use any of the suggested workarounds for now.
14,717,915
``` public boolean searchSummaryData(String textToFind) { int fromRow, fromCol; fromRow = summaryTable.getSelectedRow(); fromCol = summaryTable.getSelectedColumn(); if (fromRow < 0) { fromRow = 0; //set to start point, first row } if (fromCol < 0) { fromCol = 0; } else { ...
2013/02/05
[ "https://Stackoverflow.com/questions/14717915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992762/" ]
This has not changed. Use any of the suggested workarounds for now.
We had the same problem. I.e., call a bunch of scripts always before and after every migration. E.g., deleting and creating materialized view, granting permissions to tables. These scripts do not change from migration to migration, but they need to be executed. So I took the `org.flywaydb.core.internal.callback.SqlScr...
14,717,915
``` public boolean searchSummaryData(String textToFind) { int fromRow, fromCol; fromRow = summaryTable.getSelectedRow(); fromCol = summaryTable.getSelectedColumn(); if (fromRow < 0) { fromRow = 0; //set to start point, first row } if (fromCol < 0) { fromCol = 0; } else { ...
2013/02/05
[ "https://Stackoverflow.com/questions/14717915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992762/" ]
With flyway 3.0 the situation has changed and there are now callback scripts possible. In this situation an afterMigration.sql file could be used to do the cleanups. See <https://flywaydb.org/documentation/concepts/callbacks> and <https://flywaydb.org/documentation/tutorials/callbacks> for more information.
I've looked at the suggestions here and [Pre- and Post-migration scripts for Flyway](https://stackoverflow.com/questions/7219584/pre-and-post-migration-scripts-for-flyway) and would like to point out a use case that I can't see which workaround (if any) would be most applicable. The use case is to have a dba create a r...
14,717,915
``` public boolean searchSummaryData(String textToFind) { int fromRow, fromCol; fromRow = summaryTable.getSelectedRow(); fromCol = summaryTable.getSelectedColumn(); if (fromRow < 0) { fromRow = 0; //set to start point, first row } if (fromCol < 0) { fromCol = 0; } else { ...
2013/02/05
[ "https://Stackoverflow.com/questions/14717915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992762/" ]
I've looked at the suggestions here and [Pre- and Post-migration scripts for Flyway](https://stackoverflow.com/questions/7219584/pre-and-post-migration-scripts-for-flyway) and would like to point out a use case that I can't see which workaround (if any) would be most applicable. The use case is to have a dba create a r...
We had the same problem. I.e., call a bunch of scripts always before and after every migration. E.g., deleting and creating materialized view, granting permissions to tables. These scripts do not change from migration to migration, but they need to be executed. So I took the `org.flywaydb.core.internal.callback.SqlScr...
14,717,915
``` public boolean searchSummaryData(String textToFind) { int fromRow, fromCol; fromRow = summaryTable.getSelectedRow(); fromCol = summaryTable.getSelectedColumn(); if (fromRow < 0) { fromRow = 0; //set to start point, first row } if (fromCol < 0) { fromCol = 0; } else { ...
2013/02/05
[ "https://Stackoverflow.com/questions/14717915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992762/" ]
With flyway 3.0 the situation has changed and there are now callback scripts possible. In this situation an afterMigration.sql file could be used to do the cleanups. See <https://flywaydb.org/documentation/concepts/callbacks> and <https://flywaydb.org/documentation/tutorials/callbacks> for more information.
We had the same problem. I.e., call a bunch of scripts always before and after every migration. E.g., deleting and creating materialized view, granting permissions to tables. These scripts do not change from migration to migration, but they need to be executed. So I took the `org.flywaydb.core.internal.callback.SqlScr...
6,526,779
I'm doing a loop and on each iteration i'm setting a string var called content, this var i'm using to create some infoWindows of google map markers. But on each iteration that change the value of the var instead that make a new instance, this modifed the value and always sets the infoWindows of the markers with the las...
2011/06/29
[ "https://Stackoverflow.com/questions/6526779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/382307/" ]
``` google.maps.event.addListener(marker, 'click', function () { infoWindow.open(map, this); currentMarker = this; }); ``` Is creating a closure and `infoWindow` points to the the outer function variable so all your handlers open the same `infoWindow`. There is only function scope in javascript(no one for eve...
This is indeed weird. Did you try to make the content building inline? ``` var infoWindow = new google.maps.InfoWindow({ content: '<p>Central: ' + info[i].split(',')[1] + '</p>' }); ```
53,483,998
I've used code splitting to seprate restricted parts of my app into different chunks. This is working great so far, now I would like to ensure that the files themselves don't get served unless authenticated. I was thinking of using **ngx\_http\_auth\_request\_module** <http://nginx.org/en/docs/http/ngx_http_auth_requ...
2018/11/26
[ "https://Stackoverflow.com/questions/53483998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1336532/" ]
There are two possible reasons for immediate `NotAllowedError` at the moment: 1. getUserMedia requries https ------------------------------ Safari seems to require `https` for camera and mic access, both in iOS and OSX. With [an https link](https://jsfiddle.net/jib1/r60bzmrs/), iOS Safari 12 works for me; [same link...
Turns out my particular issue was a bug in 12.01. Every device with that version had the issue, and as soon as I updated them to a newer version it went away.
53,483,998
I've used code splitting to seprate restricted parts of my app into different chunks. This is working great so far, now I would like to ensure that the files themselves don't get served unless authenticated. I was thinking of using **ngx\_http\_auth\_request\_module** <http://nginx.org/en/docs/http/ngx_http_auth_requ...
2018/11/26
[ "https://Stackoverflow.com/questions/53483998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1336532/" ]
Setting these three attributes before calling `getUserMedia` solved the problem for me: ``` video.setAttribute('autoplay', ''); video.setAttribute('muted', ''); video.setAttribute('playsinline', ''); ``` For some reason `video.setAttribute()` works but trying to assign the value directly to the video obj...
Turns out my particular issue was a bug in 12.01. Every device with that version had the issue, and as soon as I updated them to a newer version it went away.
22,743,170
I have a legacy product in financial domain.Using tomcat 6. We get millions of request 10k of request in hour. I am wondering at high level should i go for ditributed application where my mvc component is on one system and service/dao on another box(can use spring remote/EJB). The reason i am planning to go in this dir...
2014/03/30
[ "https://Stackoverflow.com/questions/22743170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3198603/" ]
This apporach should work too, using `MKCircleRenderer` : ``` MKCircleRenderer *circleRenderer = (MKCircleRenderer *)[mapview rendererForOverlay:circleOverlay]; [circleRenderer invalidatePath]; MKMapPoint mapPoint = MKMapPointForCoordinate(tapPoint); CGPoint circlePoint = [circleRenderer pointForMapPo...
If you know the centre of the circle and the radius then you could do something like... ``` -(BOOL)isPoint:(CGPoint)point insideCircleCentre:(CGPoint)centre radius:(CGFloat)radius { CGFloat dx = point.x - centre.x; CGFloat dy = point.y - centre.y; CGFloat distance = sqrtf(dx * dx + dy * dy); return d...
22,743,170
I have a legacy product in financial domain.Using tomcat 6. We get millions of request 10k of request in hour. I am wondering at high level should i go for ditributed application where my mvc component is on one system and service/dao on another box(can use spring remote/EJB). The reason i am planning to go in this dir...
2014/03/30
[ "https://Stackoverflow.com/questions/22743170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3198603/" ]
This apporach should work too, using `MKCircleRenderer` : ``` MKCircleRenderer *circleRenderer = (MKCircleRenderer *)[mapview rendererForOverlay:circleOverlay]; [circleRenderer invalidatePath]; MKMapPoint mapPoint = MKMapPointForCoordinate(tapPoint); CGPoint circlePoint = [circleRenderer pointForMapPo...
Fogmeisters answer is incorrect because the unit system for expressing the point and radius are different. The point is expressed as degrees and a radius is typically expressed in meters. Aminovic09's answer is correct and is the advisable answer because it levers iOS' own method of distance calculation.
99,236
I was wondering what state is stored in an OpenGL VAO. I've understood that a VAO contains state related to the vertex specifications of buffered vertices (what attributes are in the buffers, and what buffers are bound, ... ). To better understand the correct usage of VAO's, I'd like to know exactly what state they hol...
2015/04/30
[ "https://gamedev.stackexchange.com/questions/99236", "https://gamedev.stackexchange.com", "https://gamedev.stackexchange.com/users/46008/" ]
VAO stores data about vertex attribute locations. (And some other data related to them.) `"VBO bindings, active shader program, texture bindings, texture sampling/wrapping settings, uniforms"` are completely unrelated to it. You may ask why it doesn't remember VBO binding. Because you don't need to bind VBO to draw...
It only stores the vertex binding and the index buffer binding That is all the parameters of `glVertexAttribPointer` plus the buffer bound to Vertex\_Array\_buffer at the time of the call to `glVertexAttribPointer` and the bound Element\_Array\_buffer. Uniforms are part of the current program. Everything else is gl...
99,236
I was wondering what state is stored in an OpenGL VAO. I've understood that a VAO contains state related to the vertex specifications of buffered vertices (what attributes are in the buffers, and what buffers are bound, ... ). To better understand the correct usage of VAO's, I'd like to know exactly what state they hol...
2015/04/30
[ "https://gamedev.stackexchange.com/questions/99236", "https://gamedev.stackexchange.com", "https://gamedev.stackexchange.com/users/46008/" ]
VAO stores data about vertex attribute locations. (And some other data related to them.) `"VBO bindings, active shader program, texture bindings, texture sampling/wrapping settings, uniforms"` are completely unrelated to it. You may ask why it doesn't remember VBO binding. Because you don't need to bind VBO to draw...
Here is a simple but effective explanation , basically a buffer object has information which can be interpreted as just simply bits of raw data, which on its own mean nothing, so it is PURELY the data which can be looked at any way really ``` i.e float vbo[]={1.0,2.0,34.0...} ``` and the way OpenGL was designed to ...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
Since `0xce91` is in the UTF-8 format and `%C` expects it to be in UTF-16 a simple solution like the one above won't work. For `stringWithFormat:@"%C"` to work you need to input `0x391` which is the UTF-16 unicode. In order to create a string from the UTF-8 encoded unichar you need to first split the unicode into it's...
The above answer is great but doesn't account for UTF-8 characters longer than 16 bits, e.g. the ellipsis symbol - 0xE2,0x80,0xA6. Here's a tweak to the code: ``` if (utf8char > 65535) { chars[0] = (utf8char >> 16) & 255; chars[1] = (utf8char >> 8) & 255; chars[2] = utf8char & 255; chars[3] = 0x00; } else...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
Since `0xce91` is in the UTF-8 format and `%C` expects it to be in UTF-16 a simple solution like the one above won't work. For `stringWithFormat:@"%C"` to work you need to input `0x391` which is the UTF-16 unicode. In order to create a string from the UTF-8 encoded unichar you need to first split the unicode into it's...
Here is an algorithm for UTF-8 encoding on a single character: ``` if (utf8char<0x80){ chars[0] = (utf8char>>0) & (0x7F | 0x00); chars[1] = 0x00; chars[2] = 0x00; chars[3] = 0x00; } else if (utf8char<0x0800){ chars[0] = (utf8char>>6) & (0x1F | 0xC0); chars[1] = (utf8char>>0) & (0x3F | 0x80)...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
``` unichar greekAlpha = 0x0391; NSString* s = [NSString stringWithCharacters:&greekAlpha length:1]; ``` And now you can incorporate that NSString into another in any way you like. Do note, however, that it is now legal to type a Greek alpha directly into an NSString literal.
Since `0xce91` is in the UTF-8 format and `%C` expects it to be in UTF-16 a simple solution like the one above won't work. For `stringWithFormat:@"%C"` to work you need to input `0x391` which is the UTF-16 unicode. In order to create a string from the UTF-8 encoded unichar you need to first split the unicode into it's...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
Since `0xce91` is in the UTF-8 format and `%C` expects it to be in UTF-16 a simple solution like the one above won't work. For `stringWithFormat:@"%C"` to work you need to input `0x391` which is the UTF-16 unicode. In order to create a string from the UTF-8 encoded unichar you need to first split the unicode into it's...
The code above is the moral equivalent of `unichar foo = 'abc';`. The problem is that `'Α'` doesn't map to a single byte in the "execution character set" (I'm assuming UTF-8) which is "implementation-defined" in [C99](http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf) §6.4.4.4 10: > > The value of an integer...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
The above answer is great but doesn't account for UTF-8 characters longer than 16 bits, e.g. the ellipsis symbol - 0xE2,0x80,0xA6. Here's a tweak to the code: ``` if (utf8char > 65535) { chars[0] = (utf8char >> 16) & 255; chars[1] = (utf8char >> 8) & 255; chars[2] = utf8char & 255; chars[3] = 0x00; } else...
Here is an algorithm for UTF-8 encoding on a single character: ``` if (utf8char<0x80){ chars[0] = (utf8char>>0) & (0x7F | 0x00); chars[1] = 0x00; chars[2] = 0x00; chars[3] = 0x00; } else if (utf8char<0x0800){ chars[0] = (utf8char>>6) & (0x1F | 0xC0); chars[1] = (utf8char>>0) & (0x3F | 0x80)...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
``` unichar greekAlpha = 0x0391; NSString* s = [NSString stringWithCharacters:&greekAlpha length:1]; ``` And now you can incorporate that NSString into another in any way you like. Do note, however, that it is now legal to type a Greek alpha directly into an NSString literal.
The above answer is great but doesn't account for UTF-8 characters longer than 16 bits, e.g. the ellipsis symbol - 0xE2,0x80,0xA6. Here's a tweak to the code: ``` if (utf8char > 65535) { chars[0] = (utf8char >> 16) & 255; chars[1] = (utf8char >> 8) & 255; chars[2] = utf8char & 255; chars[3] = 0x00; } else...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
The above answer is great but doesn't account for UTF-8 characters longer than 16 bits, e.g. the ellipsis symbol - 0xE2,0x80,0xA6. Here's a tweak to the code: ``` if (utf8char > 65535) { chars[0] = (utf8char >> 16) & 255; chars[1] = (utf8char >> 8) & 255; chars[2] = utf8char & 255; chars[3] = 0x00; } else...
The code above is the moral equivalent of `unichar foo = 'abc';`. The problem is that `'Α'` doesn't map to a single byte in the "execution character set" (I'm assuming UTF-8) which is "implementation-defined" in [C99](http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf) §6.4.4.4 10: > > The value of an integer...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
``` unichar greekAlpha = 0x0391; NSString* s = [NSString stringWithCharacters:&greekAlpha length:1]; ``` And now you can incorporate that NSString into another in any way you like. Do note, however, that it is now legal to type a Greek alpha directly into an NSString literal.
Here is an algorithm for UTF-8 encoding on a single character: ``` if (utf8char<0x80){ chars[0] = (utf8char>>0) & (0x7F | 0x00); chars[1] = 0x00; chars[2] = 0x00; chars[3] = 0x00; } else if (utf8char<0x0800){ chars[0] = (utf8char>>6) & (0x1F | 0xC0); chars[1] = (utf8char>>0) & (0x3F | 0x80)...
1,775,859
I've got an international character stored in a unichar variable. This character does not come from a file or url. The variable itself only stores an unsigned short(0xce91) which is in UTF-8 format and translates to the greek capital letter 'A'. I'm trying to put that character into an NSString variable but i fail mise...
2009/11/21
[ "https://Stackoverflow.com/questions/1775859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431067/" ]
``` unichar greekAlpha = 0x0391; NSString* s = [NSString stringWithCharacters:&greekAlpha length:1]; ``` And now you can incorporate that NSString into another in any way you like. Do note, however, that it is now legal to type a Greek alpha directly into an NSString literal.
The code above is the moral equivalent of `unichar foo = 'abc';`. The problem is that `'Α'` doesn't map to a single byte in the "execution character set" (I'm assuming UTF-8) which is "implementation-defined" in [C99](http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf) §6.4.4.4 10: > > The value of an integer...
43,995,559
I am with L5.4 working on notification system. I have created events & listeners. I do have a test route for firing this event. Event is fired successfully and I can even recieve it using `Pusher` in my blade views. But for some reason I have to stop within `handle(NewUser $event)` method of my `listener`. I tried `dd...
2017/05/16
[ "https://Stackoverflow.com/questions/43995559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5452620/" ]
Your class `clsAttendance` has to override `Equals` or implement `IEquatable<clsAttendance>`. Otherwise it's only found if it's the same reference. Always override also `GethashCode`. This example shows both which is recommended anyway: ``` public class clsAttendance : IEquatable<clsAttendance> { public string Ta...
You can use ``` bool rfidExists = dicAttendance.Values.Any(a => a.TagId.Equals("123456AANN")); ```
103,860
Related to [Jon's question](https://mathoverflow.net/questions/103306/strong-monotone-limits-and-dense-subalgebras-of-von-neumann-algebras-again), I have two questions. Let $\mathcal{A}$ be a concrete $C^\*$-algebra on a Hilbert space $\mathcal{H}$. For any selfadjoint subset $S$ of $\mathbb{B}(\mathcal{H})$, let $S^m$...
2012/08/03
[ "https://mathoverflow.net/questions/103860", "https://mathoverflow.net", "https://mathoverflow.net/users/25499/" ]
Edited. As Masayoshi points out, my reading of Hamana's paper was incorrect. I'm quite sure question 1 is false in general but I don't have a reference. (Masayoshi, did you look in Pedersen's book? I feel the answer may be there but I don't have access to it right now.) I guess I'd better be more explicit about questi...
I can give you a partial answer to question 1, which you may already be aware of if you're familiar with Pedersen's "C\*-algebras and their automorphism groups". Specifically, if $A\subseteq A^{\*\*}$, i.e. if we are considering the universal representation of $A$, and if $A$ is either unital or separable then you do i...
3,696,351
I recently took all my code a manually imported it into an eclipse project from BlueJ, I then got use to the settings up "Run Configurations", finally thinking I was home free. Then I ran the code, and I got this error ``` java.lang.NoSuchMethodError: main Exception in thread "main" ``` so I figured I had to add a ...
2010/09/12
[ "https://Stackoverflow.com/questions/3696351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/410368/" ]
You forgot `static`: ``` public static void main(String[] args) ``` But in order to really start your application, you should launch it from that method, not merely have it. Here is how to start it: ``` public static void main(String[] args) { javax.swing.SwingUtilities.invokeLater(new Runnable() { @Over...
Make main static.
5,668,275
This script is supposed to run a jQuery Ajax script every second, it is supposed to fetch all newer posts then put them on top of the original ones. But at the moment nothing is happening, it loads the initial posts but nothing else. Firebug console is reporting no errors, or no Ajax requests being sent at all. Can you...
2011/04/14
[ "https://Stackoverflow.com/questions/5668275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/663049/" ]
1. `Paint` objects can affect the rendering of the Bitmap. For example, they be used to mask the drawing of the Bitmap. 2. Save your circle as a PNG or GIF, and set the background as transparent (I do not know if MS Paint can do this).
i suggest gimp for image editing with transparency. start a new image, delete the default layer, add a transparent layer, then paste your image over that. you can use the fuzzy select tool to trim any white space, then save as .png and you have a transparent image!
153,080
I am searching a word for describing cars stuck in traffic. When I googled the phrase "stuck cars", I found out that stuck cars imply cars stuck in ditches rather than traffic.
2018/01/10
[ "https://ell.stackexchange.com/questions/153080", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/46924/" ]
I don't know what exactly you mean by an abbreviation, but in English, a situation when there are just too many cars on the road where little to no movement is possible is traditionally called [**a traffic jam**](https://www.collinsdictionary.com/dictionary/english/traffic-jam) or [**a traffic congestion**](https://en....
I would use *bumper-to-bumper traffic*. > > Due to a truck collision, cars on the freeway were stuck in **bumper-to-bumper** traffic. > > >
153,080
I am searching a word for describing cars stuck in traffic. When I googled the phrase "stuck cars", I found out that stuck cars imply cars stuck in ditches rather than traffic.
2018/01/10
[ "https://ell.stackexchange.com/questions/153080", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/46924/" ]
I don't know what exactly you mean by an abbreviation, but in English, a situation when there are just too many cars on the road where little to no movement is possible is traditionally called [**a traffic jam**](https://www.collinsdictionary.com/dictionary/english/traffic-jam) or [**a traffic congestion**](https://en....
You could say, "Heavy Traffic", "Congestion", "Clogged Roads", "Heavy Delays", or, even depending on the cause, you could say, "Gaper's Delay" or "Rubbernecking" if the cause is because people are staring at an accident. You could also say, "Traffic was at a standstill", or call the highway "A parking lot".
153,080
I am searching a word for describing cars stuck in traffic. When I googled the phrase "stuck cars", I found out that stuck cars imply cars stuck in ditches rather than traffic.
2018/01/10
[ "https://ell.stackexchange.com/questions/153080", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/46924/" ]
I don't know what exactly you mean by an abbreviation, but in English, a situation when there are just too many cars on the road where little to no movement is possible is traditionally called [**a traffic jam**](https://www.collinsdictionary.com/dictionary/english/traffic-jam) or [**a traffic congestion**](https://en....
You can use [gridlock](https://en.oxforddictionaries.com/definition/gridlock) or deadlock. It is defined by Oxford Dictionaries as follows: > > A situation of very severe traffic congestion. > > > ‘the city reaches gridlock during peak hours’ > > >
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
I believe that you need to use getSelected instead ``` <html> <head> <script> chrome.tabs.getSelected(null, function(tab) { var tabId = tab.id; var tabUrl = tab.url; alert(tabUrl); }); </script> </head> ```
the final code was like this, and it worked just fine.. : ``` var tabUrl; chrome.browserAction.onClicked.addListener(function(activeTab) { var x=activeTab.url; var newURL = "https://www.google.com"; if (x!= newURL) { //to open a page in a new tab chrome.tabs.create({url: newURL,"selected":t...
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
I believe that you need to use getSelected instead ``` <html> <head> <script> chrome.tabs.getSelected(null, function(tab) { var tabId = tab.id; var tabUrl = tab.url; alert(tabUrl); }); </script> </head> ```
Ensure to set the correct permissions in manifest.json to access tab information: ``` "permissions": [ "tabs", "http://*/*" ], ``` After that, you can determine the URL by using ``` chrome.tabs.getSelected(null, function (tab) { alert(tab.url); }); ```
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
I believe that you need to use getSelected instead ``` <html> <head> <script> chrome.tabs.getSelected(null, function(tab) { var tabId = tab.id; var tabUrl = tab.url; alert(tabUrl); }); </script> </head> ```
The current accepted answer is out of date. According to [MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/getSelected), `tabs.getSelected()` is depricated Use this instead: `tabs.query({active: true})`
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
the final code was like this, and it worked just fine.. : ``` var tabUrl; chrome.browserAction.onClicked.addListener(function(activeTab) { var x=activeTab.url; var newURL = "https://www.google.com"; if (x!= newURL) { //to open a page in a new tab chrome.tabs.create({url: newURL,"selected":t...
Ensure to set the correct permissions in manifest.json to access tab information: ``` "permissions": [ "tabs", "http://*/*" ], ``` After that, you can determine the URL by using ``` chrome.tabs.getSelected(null, function (tab) { alert(tab.url); }); ```
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
the final code was like this, and it worked just fine.. : ``` var tabUrl; chrome.browserAction.onClicked.addListener(function(activeTab) { var x=activeTab.url; var newURL = "https://www.google.com"; if (x!= newURL) { //to open a page in a new tab chrome.tabs.create({url: newURL,"selected":t...
The current accepted answer is out of date. According to [MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/getSelected), `tabs.getSelected()` is depricated Use this instead: `tabs.query({active: true})`
17,761,423
i'm making a chrome extension that opens a web-site if the current tab is not the same web-site, so i managed to get all of the tabs like this: ``` chrome.tabs.getAllInWindow(null, allTabs); ``` and i wrote a function to display it: ``` function allTabs(tabs) { var tabsURLS = ''; for (var i = 0; ...
2013/07/20
[ "https://Stackoverflow.com/questions/17761423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948000/" ]
The current accepted answer is out of date. According to [MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/getSelected), `tabs.getSelected()` is depricated Use this instead: `tabs.query({active: true})`
Ensure to set the correct permissions in manifest.json to access tab information: ``` "permissions": [ "tabs", "http://*/*" ], ``` After that, you can determine the URL by using ``` chrome.tabs.getSelected(null, function (tab) { alert(tab.url); }); ```
48,034,525
I'm a beginner with Android and have written a simple retrofit example: ``` LOGININTERFACE mAPISERVICE; mAPISERVICE= LOGINGENERATOR.getAPIServices(); mAPISERVICE.savePost("0016642902","0016642902","password").enqueue(new Callback<LGOINMODEL>() { @Override public void onResponse(Call<LGOINMO...
2017/12/30
[ "https://Stackoverflow.com/questions/48034525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8961890/" ]
you need a callback so whenever you make a call to this function to get the values from the server you can pass the callback and when results are there it can give you back. *Callback interface* **MyResultsListener**.java ``` public interface MyResultsListener{ public void onData(LGOINMODEL loginModel); public...
With retrofit2 is possible make synchronous call: ``` mAPISERVICE = LOGINGENERATOR.getAPIServices(); Callback<LOGINMODEL> mLOGINMODEL = mAPISERVICE.savePost("0016642902","0016642902","password"); Response<LOGINMODEL> response = mLOGINMODEL.execute(); ... ``` however, synchronous requests trigger app crashes on Andro...
65,986,037
I'm attempting to extract a single value from each file contained in folder A. The code runs without throwing an error but returns an empty array for Mfinal. Does anyone see where things might be going wrong? ``` Mfinal=[] path = r'C:Desktop/thesis/hrfiles/A' all_files = glob.glob(path + '/*.csv') for filename in a...
2021/02/01
[ "https://Stackoverflow.com/questions/65986037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15119508/" ]
Even if `m == None`, `Mfinal` cannot be empty if `for` loops without any errors. So, the reasonable suspicion here is that `all_files` is empty. Thus, nothing is found by `glob.glob`. If you are on Window, try ``` path = r'C:\Desktop\thesis\hrfiles\A' all_files = glob.glob(path + '\*.csv') ```
I agree with ghchoi on the initial path here. Fairly sure there needs to be `\` following `C:`.
62,672
I am trying to create a new home page component that will display a scrolling message on the home page. The use case is to provide end users with tips and hints around general usage. This used to be possible by creating a html component but now that salesforce has changed the editor for this component and added a new V...
2015/01/07
[ "https://salesforce.stackexchange.com/questions/62672", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/9997/" ]
Here are steps for you: 1) Create new VF page with following code ``` <apex:page > <!-- Begin Default Content REMOVE THIS --> <marquee bgcolor="orange" width="100%" height="200" direction="UP"> 1) THis is item 1111 <br/> 2) THis is item 2222 <br/> 3) THis is item 3333 <br/> 4) THis is ite...
Take a look at [*jQuery webticker*](http://jonmifsud.com/open-source/jquery/jquery-webticker/). You can then add plain HTML to your VF page: ``` <ul id="webticker"> <li> Some text one </li> <li> Some text two </li> <li> Some text three </li> </ul> ``` Then you can ac...
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
You might be talking about a "recurrence", "flare-up", or "recrudescence" (though those words wouldn't work well with "recession"). If you put those into a thesaurus you'll get other synonyms, too.
Tick-tock Swung back Doubled back Resiled Bobbed-up Recommenced Restarted Rekindled Reignited Renewed Regained Reinstituted (generally used in 3rd person) Restituted (generally used in 3rd person, also is a monetary term) Reanimated
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
To rebound or bounce back would be a good fit in a business context. <https://hbr.org/2010/03/are-you-ready-to-rebound>
Very irreverent and colloquial, but "second wind" is one used frequently in the UK. <https://www.urbandictionary.com/define.php?term=second+wind>
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
The opposite of a ***comedown***? [merriam-webster.com](https://www.merriam-webster.com/thesaurus/come%20down) says: | **Antonyms for comedown** | **Near Antonyms for comedown** | | --- | --- | | aggrandizementascentexaltationrise upshape upspring up | advanceheadwayprogressflowerheydayprime | ...but the first word ...
Very irreverent and colloquial, but "second wind" is one used frequently in the UK. <https://www.urbandictionary.com/define.php?term=second+wind>
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
[Lexico](https://www.lexico.com/definition/resurgence) has > > **resurgence** > > NOUN > > > An increase or revival after a period of little activity, popularity, or occurrence. > > > Some examples given are > > *It is also used as a mosquito repellant, a significant contribution in a region where the resu...
You might be talking about a "recurrence", "flare-up", or "recrudescence" (though those words wouldn't work well with "recession"). If you put those into a thesaurus you'll get other synonyms, too.
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
[Lexico](https://www.lexico.com/definition/resurgence) has > > **resurgence** > > NOUN > > > An increase or revival after a period of little activity, popularity, or occurrence. > > > Some examples given are > > *It is also used as a mosquito repellant, a significant contribution in a region where the resu...
The opposite of a ***comedown***? [merriam-webster.com](https://www.merriam-webster.com/thesaurus/come%20down) says: | **Antonyms for comedown** | **Near Antonyms for comedown** | | --- | --- | | aggrandizementascentexaltationrise upshape upspring up | advanceheadwayprogressflowerheydayprime | ...but the first word ...
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
You might be talking about a "recurrence", "flare-up", or "recrudescence" (though those words wouldn't work well with "recession"). If you put those into a thesaurus you'll get other synonyms, too.
Very irreverent and colloquial, but "second wind" is one used frequently in the UK. <https://www.urbandictionary.com/define.php?term=second+wind>
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
To rebound or bounce back would be a good fit in a business context. <https://hbr.org/2010/03/are-you-ready-to-rebound>
You might be talking about a "recurrence", "flare-up", or "recrudescence" (though those words wouldn't work well with "recession"). If you put those into a thesaurus you'll get other synonyms, too.
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
**Relapse** from [Oxford Languages](https://languages.oup.com/google-dictionary-en) *verb* (of someone suffering from a disease) suffer deterioration after a period of improvement. *noun* a deterioration in someone's state of health after a temporary improvement.
Very irreverent and colloquial, but "second wind" is one used frequently in the UK. <https://www.urbandictionary.com/define.php?term=second+wind>
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
[Lexico](https://www.lexico.com/definition/resurgence) has > > **resurgence** > > NOUN > > > An increase or revival after a period of little activity, popularity, or occurrence. > > > Some examples given are > > *It is also used as a mosquito repellant, a significant contribution in a region where the resu...
Tick-tock Swung back Doubled back Resiled Bobbed-up Recommenced Restarted Rekindled Reignited Renewed Regained Reinstituted (generally used in 3rd person) Restituted (generally used in 3rd person, also is a monetary term) Reanimated
593,310
How can one idiomatically or by using a phrase refer to a situation of something rising (e.g. a disease, pandemic, recession) after a temporary comedown?
2022/08/10
[ "https://english.stackexchange.com/questions/593310", "https://english.stackexchange.com", "https://english.stackexchange.com/users/103809/" ]
[Lexico](https://www.lexico.com/definition/resurgence) has > > **resurgence** > > NOUN > > > An increase or revival after a period of little activity, popularity, or occurrence. > > > Some examples given are > > *It is also used as a mosquito repellant, a significant contribution in a region where the resu...
Very irreverent and colloquial, but "second wind" is one used frequently in the UK. <https://www.urbandictionary.com/define.php?term=second+wind>
27,555,684
I have been using Bootstrap 3 to develop a project im working on and so far it has worked wonders and cant really fault it. However I have now run into a problem that I cant seem to get my head around. **Problem:** A basic input submit button not doing anything - but when run on its own page i.e. without bootstrap it...
2014/12/18
[ "https://Stackoverflow.com/questions/27555684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2115793/" ]
You have this code in your contact\_me.js that's causing the issue: ``` 8. submitSuccess: function($form, event) { 9. event.preventDefault(); // prevent default submit behaviour 10. // get values from FORM 11. var name = $("input#name").val(); ... 15. var firstName = name; // For Success/Failure Message...
What I would suggest you do is in your form leave get **rid of the action=""** then in the PHP code before all the variable cleansing and displaying takes place add the following code: ``` if (isset($_POST['submit'])) { // Clean input, validate input. Then below output the form data. } ``` Basically what this co...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
The GPL (GNU General Public License) states that you can use the software free of charge, but you cannot modify and sell it unless you release the source code. This means you can use it in your closed-source project. MySQL was originally under the GPL, but has some different licensing issues since it was bought up by ...
I might be wrong, but i don't think that is going to be possible: MariaDB is a branch from MySQL GPLed version. Only MySQL (i.e: Oracle) holds the copyright, and hence is allowed to license the code under a different license. MariaDB does not (up to my knowledge) holds any copyright to the original MySQL source, and he...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
I might be wrong, but i don't think that is going to be possible: MariaDB is a branch from MySQL GPLed version. Only MySQL (i.e: Oracle) holds the copyright, and hence is allowed to license the code under a different license. MariaDB does not (up to my knowledge) holds any copyright to the original MySQL source, and he...
I do not think the provided answer is fully correct. The key issue here is how you use the DB, i.e. how you make DB requests, if you in any way link your code to the client library then you are required to release your project under a license compatible with GPL (i.e. the license compatible with the library you link to...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
There is a couple of ways to use MariaDB with your commercial closed source software: * You can buy a license from Oracle to MySQL and then ask Monty Program Ab to give you the right to use all the changes MariaDB have done to MySQL with your project. * You can use a connector to MySQL that is not GPL and which provid...
I might be wrong, but i don't think that is going to be possible: MariaDB is a branch from MySQL GPLed version. Only MySQL (i.e: Oracle) holds the copyright, and hence is allowed to license the code under a different license. MariaDB does not (up to my knowledge) holds any copyright to the original MySQL source, and he...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
The GPL (GNU General Public License) states that you can use the software free of charge, but you cannot modify and sell it unless you release the source code. This means you can use it in your closed-source project. MySQL was originally under the GPL, but has some different licensing issues since it was bought up by ...
I do not think the provided answer is fully correct. The key issue here is how you use the DB, i.e. how you make DB requests, if you in any way link your code to the client library then you are required to release your project under a license compatible with GPL (i.e. the license compatible with the library you link to...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
The GPL (GNU General Public License) states that you can use the software free of charge, but you cannot modify and sell it unless you release the source code. This means you can use it in your closed-source project. MySQL was originally under the GPL, but has some different licensing issues since it was bought up by ...
There is a couple of ways to use MariaDB with your commercial closed source software: * You can buy a license from Oracle to MySQL and then ask Monty Program Ab to give you the right to use all the changes MariaDB have done to MySQL with your project. * You can use a connector to MySQL that is not GPL and which provid...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
The GPL (GNU General Public License) states that you can use the software free of charge, but you cannot modify and sell it unless you release the source code. This means you can use it in your closed-source project. MySQL was originally under the GPL, but has some different licensing issues since it was bought up by ...
MariaDB is only distributed with the GNU GPLv2 license. There is not a commercial license, and there will never be for legal reasons. However, why do you think you need a commercial license? You need it only in 2 cases: * Your application uses some plugins that are commercial, or use a license which is not compatible...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
There is a couple of ways to use MariaDB with your commercial closed source software: * You can buy a license from Oracle to MySQL and then ask Monty Program Ab to give you the right to use all the changes MariaDB have done to MySQL with your project. * You can use a connector to MySQL that is not GPL and which provid...
I do not think the provided answer is fully correct. The key issue here is how you use the DB, i.e. how you make DB requests, if you in any way link your code to the client library then you are required to release your project under a license compatible with GPL (i.e. the license compatible with the library you link to...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
MariaDB is only distributed with the GNU GPLv2 license. There is not a commercial license, and there will never be for legal reasons. However, why do you think you need a commercial license? You need it only in 2 cases: * Your application uses some plugins that are commercial, or use a license which is not compatible...
I do not think the provided answer is fully correct. The key issue here is how you use the DB, i.e. how you make DB requests, if you in any way link your code to the client library then you are required to release your project under a license compatible with GPL (i.e. the license compatible with the library you link to...
3,978,963
I'm currently working on a closed-source commercial web-project which uses [MariaDB](http://en.wikipedia.org/wiki/MariaDB) as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2"...
2010/10/20
[ "https://Stackoverflow.com/questions/3978963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481823/" ]
There is a couple of ways to use MariaDB with your commercial closed source software: * You can buy a license from Oracle to MySQL and then ask Monty Program Ab to give you the right to use all the changes MariaDB have done to MySQL with your project. * You can use a connector to MySQL that is not GPL and which provid...
MariaDB is only distributed with the GNU GPLv2 license. There is not a commercial license, and there will never be for legal reasons. However, why do you think you need a commercial license? You need it only in 2 cases: * Your application uses some plugins that are commercial, or use a license which is not compatible...
2,191,058
> > Prove that > $\sin\frac{\pi}{7}\sin\frac{2\pi}{7}\sin\frac{3\pi}{7}=\frac{\sqrt{7}}{8}$. > > > What I've tried doing : If $\theta=\frac{\pi}{7}:$ $$ 3\theta+4\theta=\pi $$ This allowed me to prove that : $$ \tan^2\frac{\pi}{7}+\tan^2\frac{2\pi}{7}+\tan^2\frac{3\pi}{7}=21 \\ \cot^2\frac{\pi}{7}+\cot^2\frac{2\p...
2017/03/17
[ "https://math.stackexchange.com/questions/2191058", "https://math.stackexchange.com", "https://math.stackexchange.com/users/397349/" ]
$$a\sin^2\theta+b\cos^2\theta=m\to a\tan^2 \theta+b=m\sec^2\theta\\ a\tan^2\theta +b=m(1+\tan^2\theta)\to \tan^2\theta=\frac{m-b}{a-m}$$ so, using the same idea $$\tan^2\phi=\frac{n-a}{b-n}$$ we also have that $$\frac{\tan^2 \theta}{\tan^2 \phi}=\frac{b^2}{a^2}$$ Can you finish?
$a\tan\theta=b\tan\phi=c,\;$ say. Then, $\tan\theta=c/a, \; \tan\phi=c/b\;$ so that $\;\sin\theta=c/\sqrt{c^2+a^2},\; \cos\theta=a/\sqrt{c^2+a^2},\; \sin\phi=c/\sqrt{c^2+b^2}, \; \cos\phi=b/\sqrt{c^2+b^2}$. From the first two equations, we get $m=\dfrac{ac^2}{c^2+a^2}+\dfrac{ba^2}{c^2+b^2}, \; n=\dfrac{ab^2}{c^2+b^...