qid int64 1 74.6M | question stringlengths 45 24.2k | date stringlengths 10 10 | metadata stringlengths 101 178 | response_j stringlengths 32 23.2k | response_k stringlengths 21 13.2k |
|---|---|---|---|---|---|
13,383,647 | I have Google Translate on my page. It looks like a drop-down list, but all other drop-down lists on my page have another style. So I created jQuery function which change Google Translator drop down list styles. This function adds or deletes some style parameters. I'd like to know when I should call this function? In c... | 2012/11/14 | ['https://Stackoverflow.com/questions/13383647', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1753077/'] | I recently wanted to change "Select Language" to simply "Language", so I also had to run code after Google's code had been executed. Here's how I did it:
**HTML**
It's important to set Google's `div` to `display:none` -- we'll fade it in with JavaScript so that the user doesn't see the text switching from "Select La... | I had a similar situation where i had to change "Select Language" to just display "Language". Here is my CSS solution:
```
div#google_translate_element{
display: inline-block;
vertical-align: top!important;
}
div#google_translate_element *{
margin: 0px;
padding: 0px;
border: none!important;
display: inlin... |
16,445,791 | I'm developing a system to manage in a very simple way some tables in the database.
The system first loads with Ajax the databases the user can see and manage. Then load the tables in that database and then load the data for that table.
I have something like this:
```
$.ajax({
url : "myUrl.php",
data : {
... | 2013/05/08 | ['https://Stackoverflow.com/questions/16445791', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1339973/'] | The color format of the console cant accept these HEX color value: `#XXXXXX` you need to check these file:
<https://github.com/Marak/colors.js/blob/master/colors.js> and pass a [ANSI color format value](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors).
As the developer describes:
```
'bold' : ['\x1B[1m', ... | You can only override the existing theme properties and set pre-defined colors to specific keys
From the readme:
```
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
```
... |
16,445,791 | I'm developing a system to manage in a very simple way some tables in the database.
The system first loads with Ajax the databases the user can see and manage. Then load the tables in that database and then load the data for that table.
I have something like this:
```
$.ajax({
url : "myUrl.php",
data : {
... | 2013/05/08 | ['https://Stackoverflow.com/questions/16445791', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1339973/'] | The color format of the console cant accept these HEX color value: `#XXXXXX` you need to check these file:
<https://github.com/Marak/colors.js/blob/master/colors.js> and pass a [ANSI color format value](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors).
As the developer describes:
```
'bold' : ['\x1B[1m', ... | Yes, you can use hex colors in console! This example was done in Node on OSX.
```
let hex = 'AA4296'; // magenta-ish
let red = parseInt(hex.substr(0, 2), 16);
let green = parseInt(hex.substr(2, 2), 16);
let blue = parseInt(hex.substr(4,2), 16);
let fgColorString = `\x1b[38;2;${red};${green};${blue}m`;
let bgColorStr... |
42,680,054 | I'm running a query against an Azure SQL DB...
```
select Id
from Table1
WHERE ([Table1].[CustomFieldString2] IS NULL) AND
(N'New' = [Table1].[CustomFieldString7]) AND (0 = [Table1].[Deleted])
```
This query runs fast roughly 300ms...
As soon as I add another column to my select (bool) as in
```
Select I... | 2017/03/08 | ['https://Stackoverflow.com/questions/42680054', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1706578/'] | In Summary, when you add columns which are not part of index to the `select` then SQL can't choose the same execution plan.
If SQL estimates there are fewer rows, then it will opt to use nested lookups in the execution plan. This can take more time, if estimates are wrong.
If there are more rows or key lookup cost cr... | You query constructure is important of course but Azure is naturally slow. Is is using cloud systems so it is not so fast (I supposed using free version.) ı have not seen anyone pleasure about azure velocity. (in low prices) |
45,694 | Suppose I have the following lower and upper bound for the Gaussian Q Function:
$$ \frac{x}{x^2 + 1} \varphi(x) < Q(x) < \frac{1}{x} \varphi(x), $$
where $Q(x) = \int\_x^\infty \frac{1}{\sqrt{2\pi}} e^{-\frac{u^2}{2}} \, \mathrm{d}u$ and $\varphi(x) = \frac{1}{\sqrt{2 \pi}} e^{-x^2 / 2}$.
How do I show $Q(x) \sim \v... | 2011/06/16 | ['https://math.stackexchange.com/questions/45694', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/8140/'] | You are supposed to show that $\frac{Q(x)}{\varphi(x)/x}$ converges to $1$. (That is the meaning of the curly line.)
To do this divide by $\varphi(x)/x$ everywhere in your inequality and use the squeeze rule. | The fact that the limit is $1$ can be simply obtained from the given bounds, as explained by Johan. And the bounds are more important than the limit stuff, since the bounds give practical estimates.
Let us look at your attempt through L'Hospital's Rule. The idea was good, but there were some problems in execution.
T... |
45,694 | Suppose I have the following lower and upper bound for the Gaussian Q Function:
$$ \frac{x}{x^2 + 1} \varphi(x) < Q(x) < \frac{1}{x} \varphi(x), $$
where $Q(x) = \int\_x^\infty \frac{1}{\sqrt{2\pi}} e^{-\frac{u^2}{2}} \, \mathrm{d}u$ and $\varphi(x) = \frac{1}{\sqrt{2 \pi}} e^{-x^2 / 2}$.
How do I show $Q(x) \sim \v... | 2011/06/16 | ['https://math.stackexchange.com/questions/45694', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/8140/'] | You are supposed to show that $\frac{Q(x)}{\varphi(x)/x}$ converges to $1$. (That is the meaning of the curly line.)
To do this divide by $\varphi(x)/x$ everywhere in your inequality and use the squeeze rule. | First, as Johan mentioned in his answer,
$$
Q(x)\sim \frac{{\varphi (x)}}{x} \;\; {\rm as} \; x \to \infty
$$
means that
$$
\frac{{Q(x)}}{{\varphi (x)/x}} \to 1 \;\; {\rm as} \; x \to \infty.
$$
Concerning the last paragraph of your question, it is certainly wrong to write $\lim \_{x \to \infty } \frac{{Q(x)}}{{\varp... |
45,694 | Suppose I have the following lower and upper bound for the Gaussian Q Function:
$$ \frac{x}{x^2 + 1} \varphi(x) < Q(x) < \frac{1}{x} \varphi(x), $$
where $Q(x) = \int\_x^\infty \frac{1}{\sqrt{2\pi}} e^{-\frac{u^2}{2}} \, \mathrm{d}u$ and $\varphi(x) = \frac{1}{\sqrt{2 \pi}} e^{-x^2 / 2}$.
How do I show $Q(x) \sim \v... | 2011/06/16 | ['https://math.stackexchange.com/questions/45694', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/8140/'] | First, as Johan mentioned in his answer,
$$
Q(x)\sim \frac{{\varphi (x)}}{x} \;\; {\rm as} \; x \to \infty
$$
means that
$$
\frac{{Q(x)}}{{\varphi (x)/x}} \to 1 \;\; {\rm as} \; x \to \infty.
$$
Concerning the last paragraph of your question, it is certainly wrong to write $\lim \_{x \to \infty } \frac{{Q(x)}}{{\varp... | The fact that the limit is $1$ can be simply obtained from the given bounds, as explained by Johan. And the bounds are more important than the limit stuff, since the bounds give practical estimates.
Let us look at your attempt through L'Hospital's Rule. The idea was good, but there were some problems in execution.
T... |
34,365,395 | I have re-done it a few times but I can't get it to work... It detects collisions when button1 is in the lower and/or right-most part of button2, but not if it's in the upper and/or left-most part... Would be nice to know what the problem is cuz I suck at debugging...
```
if (
(
(button1.Top >= button2.Top... | 2015/12/18 | ['https://Stackoverflow.com/questions/34365395', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5696900/'] | In general, I think that question is more suited for Code Review not Stack Overflow.
Maybe you should rethink your class completely. For me it looks a lot like you wanted to model the student and not the classroom. Something like following might fit your needs better:
```
class Student(object):
"""A class to mod... | The central problem is that james\_all is a local variable of the method **Classroom.James**. It is not an attribute of the class. Unless you're within the **James** method, it has no useful value.
In **print\_student**, you made it a parameter, but when you called **print\_student** from the main program, you didn't ... |
34,365,395 | I have re-done it a few times but I can't get it to work... It detects collisions when button1 is in the lower and/or right-most part of button2, but not if it's in the upper and/or left-most part... Would be nice to know what the problem is cuz I suck at debugging...
```
if (
(
(button1.Top >= button2.Top... | 2015/12/18 | ['https://Stackoverflow.com/questions/34365395', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5696900/'] | Your problem boils down to a fundamental misunderstanding about how classes work. A class is just a template (think of a cookie cutter shape). By calling the class you are creating an instance of the class. An instance is to a class what a cookie is to a cookie cutter. The function that tells your class how to make an ... | The central problem is that james\_all is a local variable of the method **Classroom.James**. It is not an attribute of the class. Unless you're within the **James** method, it has no useful value.
In **print\_student**, you made it a parameter, but when you called **print\_student** from the main program, you didn't ... |
34,365,395 | I have re-done it a few times but I can't get it to work... It detects collisions when button1 is in the lower and/or right-most part of button2, but not if it's in the upper and/or left-most part... Would be nice to know what the problem is cuz I suck at debugging...
```
if (
(
(button1.Top >= button2.Top... | 2015/12/18 | ['https://Stackoverflow.com/questions/34365395', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5696900/'] | In general, I think that question is more suited for Code Review not Stack Overflow.
Maybe you should rethink your class completely. For me it looks a lot like you wanted to model the student and not the classroom. Something like following might fit your needs better:
```
class Student(object):
"""A class to mod... | Your problem boils down to a fundamental misunderstanding about how classes work. A class is just a template (think of a cookie cutter shape). By calling the class you are creating an instance of the class. An instance is to a class what a cookie is to a cookie cutter. The function that tells your class how to make an ... |
59,651,531 | I am having a problem with accessing data in different parts of my server() function. The basic structure is something like this:
```
server <- shinyServer(function(input, output) {
# get the data from a file obtained from a textInput in the ui
data <- reactive({
req(input$file)
file <- input$file$datapat... | 2020/01/08 | ['https://Stackoverflow.com/questions/59651531', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1461667/'] | As @KentJohnson points out, `reactive` already achieves your goal. The expression that makes up data...
```
req(input$file)
file <- input$file$datapath
# process the file and return a new dataframe
```
...only runs when `input$file$datapath` changes. It does not rerun each time `data()` is called. | Putting your two tables into an `observe` environment makes it possible to call `data()` only twice, but I don't know if it will fit with what you want to do. Notice that here, I didn't put a `textInput` or things like that because my point was to show the `observe` environment. I'll let you adapt it to your situation ... |
2,205,739 | In my search I used autosuggest. The problem now is I have to search the value in multiple fields such as firstname,middlename,lastname,caption etc. How to identify that the match string will belong on specific field name.
let say i have table
```
firstname middlename lastname caption
james kel... | 2010/02/05 | ['https://Stackoverflow.com/questions/2205739', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/175313/'] | You could do something like:
```
SELECT IF(first LIKE 'j%',
first,
IF(middle LIKE 'j%',
middle,
IF(last LIKE 'j%',
last,
''))) AS name
FROM mytable
HAVING name <> '';
``` | Just OR them together like so:
```
SELECT * FROM yourTable WHERE firstname LIKE '%j%' OR lastname LIKE '%j%' -- ...
``` |
2,205,739 | In my search I used autosuggest. The problem now is I have to search the value in multiple fields such as firstname,middlename,lastname,caption etc. How to identify that the match string will belong on specific field name.
let say i have table
```
firstname middlename lastname caption
james kel... | 2010/02/05 | ['https://Stackoverflow.com/questions/2205739', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/175313/'] | You could do something like:
```
SELECT IF(first LIKE 'j%',
first,
IF(middle LIKE 'j%',
middle,
IF(last LIKE 'j%',
last,
''))) AS name
FROM mytable
HAVING name <> '';
``` | This shouts for a fulltext search.
Check out [the mysql entries about that](http://dev.mysql.com/doc/refman/5.1/en/fulltext-search.html)! |
6,122,837 | I have this string: £0,00
Which i want to replace with float 3.95 for instance. But i want to keep the £ and the ","
So result -> £3,95
How would i do it?
--
Added some details:
Will the currency symbol always be a £?
The currency symbol might be before and sometimes behind the numbers. ie 0,00 kr
Will the se... | 2011/05/25 | ['https://Stackoverflow.com/questions/6122837', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/218372/'] | ```
function convert (proto, value) {
return proto.replace (/0(.)00/, function (m, dp) {
return value.toFixed (2).replace ('.', dp);
});
}
```
the proto parameter specifies the format, it must have a sub-string consisting of a single 0 digit followed by any character followed by two 0 digits, this entire sub-... | ```
<script type="text/javascript">
function Convert(Value) {
return '£' + Value.toString().replace('.', ',');
}
alert(Convert(3.95));
</script>
``` |
6,122,837 | I have this string: £0,00
Which i want to replace with float 3.95 for instance. But i want to keep the £ and the ","
So result -> £3,95
How would i do it?
--
Added some details:
Will the currency symbol always be a £?
The currency symbol might be before and sometimes behind the numbers. ie 0,00 kr
Will the se... | 2011/05/25 | ['https://Stackoverflow.com/questions/6122837', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/218372/'] | ```
function convert (proto, value) {
return proto.replace (/0(.)00/, function (m, dp) {
return value.toFixed (2).replace ('.', dp);
});
}
```
the proto parameter specifies the format, it must have a sub-string consisting of a single 0 digit followed by any character followed by two 0 digits, this entire sub-... | Regular expression `/(\D*)\s?([\d|.|,]+)\s?(\D*)/` will return an array with following values:
* [0] = whole string (eg "£4.30"
* [1] = prefix (eg. "£")
* [2] = numerical value (eg. "4.30")
* [3] = suffix (eg. "kr")
Usage: `var parts = /(\D*)\s?([\d|.|,]+)\s?(\D*)/.exec(myValue);`
It also handles cases where either ... |
47,546,007 | I am trying to create my first web page. The style part of the code was suposed to change the background color, but it dont.
I think the code works so why dont it show up when I use it?
By mistake I changed the default way to open css files to "skype" and this created a problem. I changed it to notepad, but that di... | 2017/11/29 | ['https://Stackoverflow.com/questions/47546007', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9023862/'] | Use `sortBy`
```
val rdd : RDD[((String,Int),Int)] = ???
rdd.sortBy{case ((name,age),_) => name}
```
Sort by age:
```
rdd.sortBy{case ((name,age),_) => age}
``` | `sparkContext.parallelize(Array( ("Sam", 23),("Ram", 32),("Dan", 25) )).sortBy(_._1)//If it's inverted order,input false ,If you pass the age _1 to _2
.foreach(println)`
[enter image description here](https://i.stack.imgur.com/wuDXK.png) |
16,643,391 | I have read lots of posts on sending SMS and multipart SMS messages such as:
[Sending SMS in Android](https://stackoverflow.com/questions/5944345/sending-sms-in-android),
[Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)](https://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and... | 2013/05/20 | ['https://Stackoverflow.com/questions/16643391', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2400538/'] | Here is the code I have ended up using, it is a mix of my original and that of Bolton (thanks Bolton :-)).
The new code *may* detect a failure of a part better, a bit hard to test, the code above sets anyError to false for each message part, so if part 1 failed and part 2 succeeded it might think that the whole thing ... | I'm using the code below to sent multipart message to multiple contact, and it works fine:
```
// Send the SMS message
SmsManager sms = SmsManager.getDefault();
ArrayList<String> parts = sms.divideMessage(content);
final int numParts = parts.size();
ArrayList<PendingIntent> sentIntents = new A... |
8,937,162 | I wanted to measure the battery consumption of various colors in the range of 0-255 in android. Wanted to do it through an application. Currently I am using the PowerManager to measure the initial level of Battery and then keeping the screen bright for say 10-20 mins and check the final battery level, the difference gi... | 2012/01/20 | ['https://Stackoverflow.com/questions/8937162', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/872506/'] | I dont know what device you are using, but usually what really consumes the battery is the backlight, while the color is disposable in terms of power consumption. | (disclaimer: I co-founded the company that built the below product)
Try [Little Eye](http://www.littleeye.co) from Little Eye Labs, which lets you track an individual apps power consumption and breaks it down into its various hardware usage, including display, CPU and wifi (and shortly GPS). Based on the pixel color a... |
8,937,162 | I wanted to measure the battery consumption of various colors in the range of 0-255 in android. Wanted to do it through an application. Currently I am using the PowerManager to measure the initial level of Battery and then keeping the screen bright for say 10-20 mins and check the final battery level, the difference gi... | 2012/01/20 | ['https://Stackoverflow.com/questions/8937162', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/872506/'] | I dont know what device you are using, but usually what really consumes the battery is the backlight, while the color is disposable in terms of power consumption. | There's an official power estimation tool called [Battery Historian](https://developer.android.com/studio/profile/battery-historian.html).It will create a text file which will show the power consumption of each component of the device in mAh.
I also suggest you to run you App for a longer time like 1 hour because the... |
8,937,162 | I wanted to measure the battery consumption of various colors in the range of 0-255 in android. Wanted to do it through an application. Currently I am using the PowerManager to measure the initial level of Battery and then keeping the screen bright for say 10-20 mins and check the final battery level, the difference gi... | 2012/01/20 | ['https://Stackoverflow.com/questions/8937162', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/872506/'] | (disclaimer: I co-founded the company that built the below product)
Try [Little Eye](http://www.littleeye.co) from Little Eye Labs, which lets you track an individual apps power consumption and breaks it down into its various hardware usage, including display, CPU and wifi (and shortly GPS). Based on the pixel color a... | There's an official power estimation tool called [Battery Historian](https://developer.android.com/studio/profile/battery-historian.html).It will create a text file which will show the power consumption of each component of the device in mAh.
I also suggest you to run you App for a longer time like 1 hour because the... |
27,152 | Would it be possible to create a (non-toxic) alcoholic drink that, when zapped with a 0.5mW laser pointer, changes color?
This would be mainly for the visual effects (bartender show) so it should not require aiming the laser at the drink for more than a few seconds. The reason for choosing a 0.5mW laser is to minimize... | 2015/03/10 | ['https://chemistry.stackexchange.com/questions/27152', 'https://chemistry.stackexchange.com', 'https://chemistry.stackexchange.com/users/-1/'] | I see a couple of problems here:
### Beam diameter vs volume of the beverage
The volume of the sample that is actually hit by a narrow laser beam is very small, as compared to the total volume of the sample (= the drink). As a consequence, only a very small amount of the dye in drink will undergo a transformation. A ... | Klaus has provided an excellent answer. Basically your desired approach is possible, but fraught with difficulty.
Perhaps there is another way to attack the problem. Still, I suspect considerable testing will be required.
For reasons mentioned by Klaus, it is necessary to use a food dye that is already approved. Man... |
19,238,564 | I trying to find way to change table data to one sentence
For example
If i have a table
```
Data
1
2
3
4
5
```
and i want it to change as '1 2 3 4 5'
:D
ok to make it clear.
I declare a vairable @k1 nvarchar(200)
select @k1 = keyword from keyword where concept\_id = (select Concept\_ID from conc... | 2013/10/08 | ['https://Stackoverflow.com/questions/19238564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2740486/'] | you can use stuff function to make it
```
SELECT STUFF((SELECT ' '+CONVERT(NVARCHAR(MAX),DATA) FROM SAMPLE
FOR XML PATH('')),1,1,(''))
```
Sample below
<http://sqlfiddle.com/#!3/f4c05/3> | Use that code:
```
declare @result nvarchar(max) = ''
select @result = @result + [data] + ' ' from tble1
print rtrim(@result)
``` |
19,238,564 | I trying to find way to change table data to one sentence
For example
If i have a table
```
Data
1
2
3
4
5
```
and i want it to change as '1 2 3 4 5'
:D
ok to make it clear.
I declare a vairable @k1 nvarchar(200)
select @k1 = keyword from keyword where concept\_id = (select Concept\_ID from conc... | 2013/10/08 | ['https://Stackoverflow.com/questions/19238564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2740486/'] | you can use stuff function to make it
```
SELECT STUFF((SELECT ' '+CONVERT(NVARCHAR(MAX),DATA) FROM SAMPLE
FOR XML PATH('')),1,1,(''))
```
Sample below
<http://sqlfiddle.com/#!3/f4c05/3> | Store the resultset in a table like you have shown and use `COALESCE` [function](http://msdn.microsoft.com/en-us/library/ms190349.aspx) .
```
DECLARE @List varchar(max)
SELECT @List = COALESCE(@List + ' ', '') + Data
FROM <yourTable>
``` |
1,737,500 | I have an asp:Label inside an update panel that I need to update from both the server application and client side Javascript. I can update the label fine before the first UpdatePanel refresh by setting label.innerHTML. The server changes the label correctly during a panel update. After the update, setting label.innerHT... | 2009/11/15 | ['https://Stackoverflow.com/questions/1737500', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1743/'] | The reference to the DOM element you obtained presumably with `document.getElementById` before the UpdatePanel refresh is no longer valid after the refresh because the label is replaced with a new DOM element. So you need to obtain a new reference to this element and set innerHTML to this new reference.
The events mig... | The DOM element is being replaced when the UpdatePanel refreshes. Any references that you have to the previous DOM element are no longer usable, they reference the DOM element that was removed and no longer exists. You'll need to find the replacement DOM element before you'll be able to access its properties. You can d... |
9,131,483 | I am using coldfusion's imageGetIPTCMetadata() function to get the iptc keywords.
I used Photomechanics to insert some keywords in a hierarchical fashion like this
```
Personnel | Appointments | Assistant Chief of General Staff (ACGS), Personnel | Ranks | Royal Marine | Colour Sergeant (CSgt), Personn... | 2012/02/03 | ['https://Stackoverflow.com/questions/9131483', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/418366/'] | If I understand your question correctly, you can use one of the [List functions](http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec1a60c-7ffc.html#WSc3ff6d0ea77859461172e0811cbec22c24-6a42) like [ListGetAt](http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbe... | I use CFX\_OpenImage to read and write IPTC\_ data in .jpg files in CF8 thru CF11. I also use this for image resize and rotation.
More CFX\_OPENIMAGE INFO go to <http://www.kolumbus.fi/jukka.manner/cfx_openimage/>
It GraphicsMagick 1.3.17.
GraphicsMagick (www.graphicsmagick.org) maintains a stable release branch, ... |
9,131,483 | I am using coldfusion's imageGetIPTCMetadata() function to get the iptc keywords.
I used Photomechanics to insert some keywords in a hierarchical fashion like this
```
Personnel | Appointments | Assistant Chief of General Staff (ACGS), Personnel | Ranks | Royal Marine | Colour Sergeant (CSgt), Personn... | 2012/02/03 | ['https://Stackoverflow.com/questions/9131483', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/418366/'] | I found the solution [here](http://www.genuinejd.com/blog/index.cfm/2009/2/20/Reading-Embedded-XMP-Packets-using-ColdFusion):
```xml
<cfparam name="URL.source" default="xmp-asset.jpg">
<cffile action="readbinary" file="#ExpandPath(URL.source)#" variable="data">
<!-- encode the binary data to hex -->
<cfset hex_data =... | I use CFX\_OpenImage to read and write IPTC\_ data in .jpg files in CF8 thru CF11. I also use this for image resize and rotation.
More CFX\_OPENIMAGE INFO go to <http://www.kolumbus.fi/jukka.manner/cfx_openimage/>
It GraphicsMagick 1.3.17.
GraphicsMagick (www.graphicsmagick.org) maintains a stable release branch, ... |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | The only reason that it wouldn't be recommended is consistency. Most developers prefer to deal with a single language when working on an application. Having a single language also means that your developers only need to know a single language rather than knowing both VB.NET and C# (even though the two are extremely sim... | It's a matter of "use the best tools available to you for what you're building". Mixing C# and VB *within* a project isn't recommended (for obvious "it won't compile" reasons), but there's no point in continuing to write old code in VB if you feel your development team can operate faster and in a more maintainable fash... |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | There is no real reason to avoid this, other than adding complexity from having two languages in one "solution".
Your scenario (working with a legacy product, but adding new features) is a valid reason to have both languages used in a single solution, in my opinion. | Why would you want to do that? If you have legacy code what you want to use, you keep that code in its own components, you don't mix it with the new code. It is not recommended because it does not promote "Clean Code". It can lead you to have a solution that is difficult to read and maintain. |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | It's a matter of "use the best tools available to you for what you're building". Mixing C# and VB *within* a project isn't recommended (for obvious "it won't compile" reasons), but there's no point in continuing to write old code in VB if you feel your development team can operate faster and in a more maintainable fash... | Its just a matter of person choice. if you are comfortable with both the languages, You surely can use them in same solution.
Using a single language in a solution seems easily maintainable. hence it is preferred. |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | The only reason that it wouldn't be recommended is consistency. Most developers prefer to deal with a single language when working on an application. Having a single language also means that your developers only need to know a single language rather than knowing both VB.NET and C# (even though the two are extremely sim... | Mixing code in solutions can get real messy real quickly, its never clear what method you are calling from where, to keep it nice. Develop in separate Solutions, it will keep your projects easier to track and make sure you are not confusing languages inside projects |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | The only reason that it wouldn't be recommended is consistency. Most developers prefer to deal with a single language when working on an application. Having a single language also means that your developers only need to know a single language rather than knowing both VB.NET and C# (even though the two are extremely sim... | Its just a matter of person choice. if you are comfortable with both the languages, You surely can use them in same solution.
Using a single language in a solution seems easily maintainable. hence it is preferred. |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | It's a matter of "use the best tools available to you for what you're building". Mixing C# and VB *within* a project isn't recommended (for obvious "it won't compile" reasons), but there's no point in continuing to write old code in VB if you feel your development team can operate faster and in a more maintainable fash... | Mixing code in solutions can get real messy real quickly, its never clear what method you are calling from where, to keep it nice. Develop in separate Solutions, it will keep your projects easier to track and make sure you are not confusing languages inside projects |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | There is no real reason to avoid this, other than adding complexity from having two languages in one "solution".
Your scenario (working with a legacy product, but adding new features) is a valid reason to have both languages used in a single solution, in my opinion. | Mixing code in solutions can get real messy real quickly, its never clear what method you are calling from where, to keep it nice. Develop in separate Solutions, it will keep your projects easier to track and make sure you are not confusing languages inside projects |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | It's a matter of "use the best tools available to you for what you're building". Mixing C# and VB *within* a project isn't recommended (for obvious "it won't compile" reasons), but there's no point in continuing to write old code in VB if you feel your development team can operate faster and in a more maintainable fash... | Why would you want to do that? If you have legacy code what you want to use, you keep that code in its own components, you don't mix it with the new code. It is not recommended because it does not promote "Clean Code". It can lead you to have a solution that is difficult to read and maintain. |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | There is no real reason to avoid this, other than adding complexity from having two languages in one "solution".
Your scenario (working with a legacy product, but adding new features) is a valid reason to have both languages used in a single solution, in my opinion. | The only reason that it wouldn't be recommended is consistency. Most developers prefer to deal with a single language when working on an application. Having a single language also means that your developers only need to know a single language rather than knowing both VB.NET and C# (even though the two are extremely sim... |
15,706,564 | I was reading [this question](https://stackoverflow.com/q/2903430/1882077) when I noticed a curious comment underneath:
>
> not sure what the question is: you can use VB.NET and C# projects in one solution (though I wouldn't recommend doing so).
>
>
>
I do this quite a bit, as we have legacy VB.Net code, and new ... | 2013/03/29 | ['https://Stackoverflow.com/questions/15706564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/969613/'] | The only reason that it wouldn't be recommended is consistency. Most developers prefer to deal with a single language when working on an application. Having a single language also means that your developers only need to know a single language rather than knowing both VB.NET and C# (even though the two are extremely sim... | Why would you want to do that? If you have legacy code what you want to use, you keep that code in its own components, you don't mix it with the new code. It is not recommended because it does not promote "Clean Code". It can lead you to have a solution that is difficult to read and maintain. |
5,058 | I have been running for almost 2 years now, after pretty much never running before in my life. I have had the usual injuries (shin splints, sprained ankle, etc.), but nothing serious. I've always thought I was doing everything right, until I saw this video about the day after the marathon:
<http://www.youtube.com/watc... | 2012/01/07 | ['https://fitness.stackexchange.com/questions/5058', 'https://fitness.stackexchange.com', 'https://fitness.stackexchange.com/users/2471/'] | The main differences between the two is the philosophies behind it, and how they are designed to work. First and foremost, it is important to realize that Paleo does allow carbs, just not grains and legumes (or anything that grows underground).
**Atkins**
* Is a ketogenic diet. It puts your body in a safe version of ... | Berin Loritsch is mistaken in that Atkins would be meant only for weight loss. It is meant for prolonged use as well as any reasonable diet.
In Atkins you drop the carbohydrate intake to max of 20 grams per day for two weeks. After that you start gradually adding carbohydrates to your diet until you reach the point wh... |
5,058 | I have been running for almost 2 years now, after pretty much never running before in my life. I have had the usual injuries (shin splints, sprained ankle, etc.), but nothing serious. I've always thought I was doing everything right, until I saw this video about the day after the marathon:
<http://www.youtube.com/watc... | 2012/01/07 | ['https://fitness.stackexchange.com/questions/5058', 'https://fitness.stackexchange.com', 'https://fitness.stackexchange.com/users/2471/'] | The main differences between the two is the philosophies behind it, and how they are designed to work. First and foremost, it is important to realize that Paleo does allow carbs, just not grains and legumes (or anything that grows underground).
**Atkins**
* Is a ketogenic diet. It puts your body in a safe version of ... | There are many differences between the two diets but I think one of most defining is the kind of animal foods you are encouraged to eat.
The Paleo Diet emphasizes lean game meat. You're not going to be eating a marbled steak or bacon on the Paleo Diet. You're going to be eating things like salmon, halibut, venison, b... |
5,058 | I have been running for almost 2 years now, after pretty much never running before in my life. I have had the usual injuries (shin splints, sprained ankle, etc.), but nothing serious. I've always thought I was doing everything right, until I saw this video about the day after the marathon:
<http://www.youtube.com/watc... | 2012/01/07 | ['https://fitness.stackexchange.com/questions/5058', 'https://fitness.stackexchange.com', 'https://fitness.stackexchange.com/users/2471/'] | Berin Loritsch is mistaken in that Atkins would be meant only for weight loss. It is meant for prolonged use as well as any reasonable diet.
In Atkins you drop the carbohydrate intake to max of 20 grams per day for two weeks. After that you start gradually adding carbohydrates to your diet until you reach the point wh... | There are many differences between the two diets but I think one of most defining is the kind of animal foods you are encouraged to eat.
The Paleo Diet emphasizes lean game meat. You're not going to be eating a marbled steak or bacon on the Paleo Diet. You're going to be eating things like salmon, halibut, venison, b... |
61,929,649 | code.gs
```
var runSelect = true
function onSelectionChange(e) {
var sheet = SpreadsheetApp.getActiveSheet()
var range = e.range;
var column = range.getColumn();
var lastRow = sheet.getLastRow();
var ui = SpreadsheetApp.getUi();
if (runSelect == true) {
sheet.getRange(5, column, lastRow-4).activate();
... | 2020/05/21 | ['https://Stackoverflow.com/questions/61929649', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13578315/'] | This works pretty good and it can also be used for people that have wanted to trigger an event when clicking on a cell in past questions.
```
function onSelectionChange(e) {
var sh=e.range.getSheet();
e.source.toast('Sheet: ' + sh.getName() + ' Range: ' + e.range.getA1Notation());
}
``` | According to <https://developers.google.com/apps-script/reference/base/ui.html> alert(prompt) does not require authorization. Probably the onSelectionChange trigger is not executed and you are using the new V8 runtime. Use the legacy runtime, not the V8 runtime. With V8 runtime in my case sometimes it is triggered, som... |
61,929,649 | code.gs
```
var runSelect = true
function onSelectionChange(e) {
var sheet = SpreadsheetApp.getActiveSheet()
var range = e.range;
var column = range.getColumn();
var lastRow = sheet.getLastRow();
var ui = SpreadsheetApp.getUi();
if (runSelect == true) {
sheet.getRange(5, column, lastRow-4).activate();
... | 2020/05/21 | ['https://Stackoverflow.com/questions/61929649', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13578315/'] | This works pretty good and it can also be used for people that have wanted to trigger an event when clicking on a cell in past questions.
```
function onSelectionChange(e) {
var sh=e.range.getSheet();
e.source.toast('Sheet: ' + sh.getName() + ' Range: ' + e.range.getA1Notation());
}
``` | Same issue happened to me. I run the code manually from the editor and it asked for authorization. I authorized it and viola! Now the onSelectionChange trigger works! I hope it may be helpful for someone passing by... |
61,929,649 | code.gs
```
var runSelect = true
function onSelectionChange(e) {
var sheet = SpreadsheetApp.getActiveSheet()
var range = e.range;
var column = range.getColumn();
var lastRow = sheet.getLastRow();
var ui = SpreadsheetApp.getUi();
if (runSelect == true) {
sheet.getRange(5, column, lastRow-4).activate();
... | 2020/05/21 | ['https://Stackoverflow.com/questions/61929649', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13578315/'] | This works pretty good and it can also be used for people that have wanted to trigger an event when clicking on a cell in past questions.
```
function onSelectionChange(e) {
var sh=e.range.getSheet();
e.source.toast('Sheet: ' + sh.getName() + ' Range: ' + e.range.getA1Notation());
}
``` | I just faced the same issue on a new spreadsheet with a new project having only a very simple `onSelectionChange`:
```
function onSelectionChange(e) {
console.log(JSON.stringify(e));
}
```
After reopening the spreadsheet (refreshing the web browser tab), the `onSelectionChange` worked fine. |
61,929,649 | code.gs
```
var runSelect = true
function onSelectionChange(e) {
var sheet = SpreadsheetApp.getActiveSheet()
var range = e.range;
var column = range.getColumn();
var lastRow = sheet.getLastRow();
var ui = SpreadsheetApp.getUi();
if (runSelect == true) {
sheet.getRange(5, column, lastRow-4).activate();
... | 2020/05/21 | ['https://Stackoverflow.com/questions/61929649', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13578315/'] | I just faced the same issue on a new spreadsheet with a new project having only a very simple `onSelectionChange`:
```
function onSelectionChange(e) {
console.log(JSON.stringify(e));
}
```
After reopening the spreadsheet (refreshing the web browser tab), the `onSelectionChange` worked fine. | According to <https://developers.google.com/apps-script/reference/base/ui.html> alert(prompt) does not require authorization. Probably the onSelectionChange trigger is not executed and you are using the new V8 runtime. Use the legacy runtime, not the V8 runtime. With V8 runtime in my case sometimes it is triggered, som... |
61,929,649 | code.gs
```
var runSelect = true
function onSelectionChange(e) {
var sheet = SpreadsheetApp.getActiveSheet()
var range = e.range;
var column = range.getColumn();
var lastRow = sheet.getLastRow();
var ui = SpreadsheetApp.getUi();
if (runSelect == true) {
sheet.getRange(5, column, lastRow-4).activate();
... | 2020/05/21 | ['https://Stackoverflow.com/questions/61929649', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13578315/'] | I just faced the same issue on a new spreadsheet with a new project having only a very simple `onSelectionChange`:
```
function onSelectionChange(e) {
console.log(JSON.stringify(e));
}
```
After reopening the spreadsheet (refreshing the web browser tab), the `onSelectionChange` worked fine. | Same issue happened to me. I run the code manually from the editor and it asked for authorization. I authorized it and viola! Now the onSelectionChange trigger works! I hope it may be helpful for someone passing by... |
5,779,479 | When you are installing VS 2008 and VS 2010, will VS 2008 install its own framwork 3.5 or will it use VS 2010's framwork 4? That would be also with VS 2010.
My request is that VS 2008 use framework 3.5 and VS 2010 use framework 4 only. | 2011/04/25 | ['https://Stackoverflow.com/questions/5779479', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/484390/'] | When installing Visual Studio 2008, it will install version 3.5 of the .NET Framework. It will not use version 4.0, as installed with VS 2010.
However, both VS 2008 and VS 2010 have multiple-targeting support, meaning that you can choose which version of the framework to target per-project. So, you can create a projec... | You can select the target framework when creating the project both in visual studio 2008 and 2010 >
<http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx> |
5,779,479 | When you are installing VS 2008 and VS 2010, will VS 2008 install its own framwork 3.5 or will it use VS 2010's framwork 4? That would be also with VS 2010.
My request is that VS 2008 use framework 3.5 and VS 2010 use framework 4 only. | 2011/04/25 | ['https://Stackoverflow.com/questions/5779479', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/484390/'] | When installing Visual Studio 2008, it will install version 3.5 of the .NET Framework. It will not use version 4.0, as installed with VS 2010.
However, both VS 2008 and VS 2010 have multiple-targeting support, meaning that you can choose which version of the framework to target per-project. So, you can create a projec... | VS 2008 cannot use framework 4.0. See [Can I develop for .NET Framework 4 in Visual Studio 2008?](https://stackoverflow.com/questions/1836410/can-i-develop-for-net-framework-4-in-visual-studio-2008) for details.
So to answer your question, VS 2008 will use 3.5 and you can choose between 3.5 or 4.0 in VS 2010. |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | By Cauchy-Schwartz:
$a=x-144,b=722-x$
$\sqrt{a}+\sqrt{b}\le \sqrt{(a+b)(1+1)}=\sqrt{1156}$
(You can read <https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality>)
Alternbatively
${(\sqrt{a}+\sqrt{b})}^2=a+b+2\sqrt{ab}$
recall by AM-Gm
$2\sqrt{ab}\le a+b$
thus
${(\sqrt{a}+\sqrt{b})}^2\le 2(a+b)$
So fi... | We have that $P^2=578+2\sqrt{(x-144)(722-x)}$
To maximize $P^2$ is to maximize $(x-144)(722-x)$, which is a downward parabola. By symmetry, it is maximized right between the two roots, i.e. at $x=\frac{(722+144)}{2}=433$
This also maximizes $P$ since it is always positive, so the maximum is $P$ evaluated at $433$, wh... |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | By Cauchy-Schwartz:
$a=x-144,b=722-x$
$\sqrt{a}+\sqrt{b}\le \sqrt{(a+b)(1+1)}=\sqrt{1156}$
(You can read <https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality>)
Alternbatively
${(\sqrt{a}+\sqrt{b})}^2=a+b+2\sqrt{ab}$
recall by AM-Gm
$2\sqrt{ab}\le a+b$
thus
${(\sqrt{a}+\sqrt{b})}^2\le 2(a+b)$
So fi... | Use
$$2(p^2+q^2)-(p+q)^2=\cdots\ge0$$
$$\implies p+q\le\sqrt{2(p^2+q^2)}$$
Here $p^2=x-144,q^2=722-x$ |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | By Cauchy-Schwartz:
$a=x-144,b=722-x$
$\sqrt{a}+\sqrt{b}\le \sqrt{(a+b)(1+1)}=\sqrt{1156}$
(You can read <https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality>)
Alternbatively
${(\sqrt{a}+\sqrt{b})}^2=a+b+2\sqrt{ab}$
recall by AM-Gm
$2\sqrt{ab}\le a+b$
thus
${(\sqrt{a}+\sqrt{b})}^2\le 2(a+b)$
So fi... | By C-S $$\sqrt{x-144}+\sqrt{722-x}\leq\sqrt{(1+1)(x-144+722-x)}=34.$$
The equality occurs for $(1,1)||(x-144,722-x),$ which says that we got a maximal value. |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | By Cauchy-Schwartz:
$a=x-144,b=722-x$
$\sqrt{a}+\sqrt{b}\le \sqrt{(a+b)(1+1)}=\sqrt{1156}$
(You can read <https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality>)
Alternbatively
${(\sqrt{a}+\sqrt{b})}^2=a+b+2\sqrt{ab}$
recall by AM-Gm
$2\sqrt{ab}\le a+b$
thus
${(\sqrt{a}+\sqrt{b})}^2\le 2(a+b)$
So fi... | I agree with Evariste's answer, but would like to offer an alternative approach. My approach **begins** with Evariste's conclusion that it is desired to maximize
$(x - 144)(722 - x) = -x^2 + x(866) - (144 \times 722).$
This is equivalent to trying to maximize
$-x^2 + x(866)$, where (presumably) $x$ is required to be... |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | We have that $P^2=578+2\sqrt{(x-144)(722-x)}$
To maximize $P^2$ is to maximize $(x-144)(722-x)$, which is a downward parabola. By symmetry, it is maximized right between the two roots, i.e. at $x=\frac{(722+144)}{2}=433$
This also maximizes $P$ since it is always positive, so the maximum is $P$ evaluated at $433$, wh... | Use
$$2(p^2+q^2)-(p+q)^2=\cdots\ge0$$
$$\implies p+q\le\sqrt{2(p^2+q^2)}$$
Here $p^2=x-144,q^2=722-x$ |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | We have that $P^2=578+2\sqrt{(x-144)(722-x)}$
To maximize $P^2$ is to maximize $(x-144)(722-x)$, which is a downward parabola. By symmetry, it is maximized right between the two roots, i.e. at $x=\frac{(722+144)}{2}=433$
This also maximizes $P$ since it is always positive, so the maximum is $P$ evaluated at $433$, wh... | By C-S $$\sqrt{x-144}+\sqrt{722-x}\leq\sqrt{(1+1)(x-144+722-x)}=34.$$
The equality occurs for $(1,1)||(x-144,722-x),$ which says that we got a maximal value. |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | We have that $P^2=578+2\sqrt{(x-144)(722-x)}$
To maximize $P^2$ is to maximize $(x-144)(722-x)$, which is a downward parabola. By symmetry, it is maximized right between the two roots, i.e. at $x=\frac{(722+144)}{2}=433$
This also maximizes $P$ since it is always positive, so the maximum is $P$ evaluated at $433$, wh... | I agree with Evariste's answer, but would like to offer an alternative approach. My approach **begins** with Evariste's conclusion that it is desired to maximize
$(x - 144)(722 - x) = -x^2 + x(866) - (144 \times 722).$
This is equivalent to trying to maximize
$-x^2 + x(866)$, where (presumably) $x$ is required to be... |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | Use
$$2(p^2+q^2)-(p+q)^2=\cdots\ge0$$
$$\implies p+q\le\sqrt{2(p^2+q^2)}$$
Here $p^2=x-144,q^2=722-x$ | By C-S $$\sqrt{x-144}+\sqrt{722-x}\leq\sqrt{(1+1)(x-144+722-x)}=34.$$
The equality occurs for $(1,1)||(x-144,722-x),$ which says that we got a maximal value. |
3,814,894 | >
> Find the maximum value of $\sqrt{x - 144} + \sqrt{722 - x} .$
>
>
>
**What I Tried** :- Let me tell you first . What I Tried is absolutely silly , but you may check for it .
I thought AM-GM would do the trick and got :-
$\sqrt{x - 144} + \sqrt{722 - x} \geq 2 \sqrt{\sqrt{(x - 144)(722 - x)}}$
$\rightarrow \... | 2020/09/05 | ['https://math.stackexchange.com/questions/3814894', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/772237/'] | I agree with Evariste's answer, but would like to offer an alternative approach. My approach **begins** with Evariste's conclusion that it is desired to maximize
$(x - 144)(722 - x) = -x^2 + x(866) - (144 \times 722).$
This is equivalent to trying to maximize
$-x^2 + x(866)$, where (presumably) $x$ is required to be... | By C-S $$\sqrt{x-144}+\sqrt{722-x}\leq\sqrt{(1+1)(x-144+722-x)}=34.$$
The equality occurs for $(1,1)||(x-144,722-x),$ which says that we got a maximal value. |
23,230 | I apologize for the title of this question. I did not know how to summarize my question into the title.
Anyway ......
We have here a old program that we call "Who is where" (its a translation from my language).
This is a program we use to show what employees are doing. It does not monitor them what they are doing at... | 2009/06/10 | ['https://serverfault.com/questions/23230', 'https://serverfault.com', 'https://serverfault.com/users/2792/'] | I take it from the fact you mention public folders, that you are using Exchange?
If so you can use the free/busy features of Exchange to do this. It does have some problems, in that it will only show that a user is free or busy, not what they are busy doing. You can read more about it [here](http://www.msexchange.org/t... | Without writing custom code, I don't think you're going to get the kind of "presence" information you're looking for with a stock Outlook 2007 installation. Microsoft's answer to "presence" is the "Office Communications Server" product, and though I can't tell you a lot about the feature set (because I haven't gotten i... |
23,230 | I apologize for the title of this question. I did not know how to summarize my question into the title.
Anyway ......
We have here a old program that we call "Who is where" (its a translation from my language).
This is a program we use to show what employees are doing. It does not monitor them what they are doing at... | 2009/06/10 | ['https://serverfault.com/questions/23230', 'https://serverfault.com', 'https://serverfault.com/users/2792/'] | I take it from the fact you mention public folders, that you are using Exchange?
If so you can use the free/busy features of Exchange to do this. It does have some problems, in that it will only show that a user is free or busy, not what they are busy doing. You can read more about it [here](http://www.msexchange.org/t... | Don't know what your budget is but you could look at the Microsoft Communications server, can't remember what they call it these days.
Anyway basicly everyone gets the IM client and that ties into exchange and you then use the status to show what people are doing, it ties into their Outlook calendar so if they are in ... |
69,274,024 | Documentation page <https://docs.snowflake.com/en/sql-reference/sql/create-table.html>
What could [ ... ] near the end of the following diagrams stand for?
```
CREATE [ OR REPLACE ] TABLE <table_name> [ ( <col_name> [ <col_type> ] , <col_name> [ <col_type> ] , ... ) ]
[ CLUSTER BY ( <expr> [ , <expr> , ... ] ) ]
... | 2021/09/21 | ['https://Stackoverflow.com/questions/69274024', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/854533/'] | That's an ellipsis. It is standard English for "and so on", here meaning "more clauses / statements could go here". It's like *etcetera*. | IIRC, [ COPY GRANTS ] is called out specifically in each of the syntax "variations" because these keywords must be ordered as presented; whereas, the ordering of other keywords or properties for the CREATE TABLE command does not matter. |
49,756,059 | I am trying to reduce a group in Scala.
Below is my code:
```
val record = file.map(rec => (rec.state,rec.gender,rec.aadharGenerated.toInt)).groupByKey(_._1)
.reduceGroups((a,b)=>{
var total = a._3 + b._3
var mTotal = if(a._2.trim().equalsIgnoreCase("m")) {(a._3.toInt + b._3.toInt)}
(a._1,total.toStri... | 2018/04/10 | ['https://Stackoverflow.com/questions/49756059', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9323888/'] | You're using `if` as an expression without an `else` for your `mTotal` variable. The return type of an `if` is the nearest common super type of both the *success* block and the *else* block.
If you don't provide an `else` block, Scala will **assume**:
```
else ()
```
`()` is the value of `Unit`. So, for `mTotal` to... | I don't know your data, but your assertion:
>
> The third parameter is supposed to be int.
>
>
>
doesn't hold. What if `a._2.trim().equalsIgnoreCase ("m")` evaluates to false?
```
scala> var mTotal = if ("a".equalsIgnoreCase("m")) {7}
mTotal: AnyVal = ()
``` |
1,415,700 | I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins.
Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometim... | 2009/09/12 | ['https://Stackoverflow.com/questions/1415700', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/105224/'] | Take a look at the Eclipse "Activities" API. It allows you to hide contributions based on ID.
A few links:
* <http://wiki.eclipse.org/FAQ_How_do_I_add_activities_to_my_plug-in%3F>
* <http://blog.vogella.com/2009/07/13/eclipse-activities/>
* <http://random-eclipse-tips.blogspot.com/2009/02/eclipse-rcp-removing-unwante... | The only method which comes close to do that would be:
[`IMenuService::removeContributionFactory()`](http://kickjava.com/src/org/eclipse/ui/menus/IMenuService.java.htm)
Paul Webster has been calling for a [`IMenuService::addOverride()`](http://wiki.eclipse.org/Menu_Contributions/RCP_removes_the_Project_menu) to chang... |
1,415,700 | I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins.
Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometim... | 2009/09/12 | ['https://Stackoverflow.com/questions/1415700', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/105224/'] | The only method which comes close to do that would be:
[`IMenuService::removeContributionFactory()`](http://kickjava.com/src/org/eclipse/ui/menus/IMenuService.java.htm)
Paul Webster has been calling for a [`IMenuService::addOverride()`](http://wiki.eclipse.org/Menu_Contributions/RCP_removes_the_Project_menu) to chang... | Equinox transformations can also be used to supply XLST transformations that remove unwanted UI contributions. |
1,415,700 | I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins.
Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometim... | 2009/09/12 | ['https://Stackoverflow.com/questions/1415700', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/105224/'] | Take a look at the Eclipse "Activities" API. It allows you to hide contributions based on ID.
A few links:
* <http://wiki.eclipse.org/FAQ_How_do_I_add_activities_to_my_plug-in%3F>
* <http://blog.vogella.com/2009/07/13/eclipse-activities/>
* <http://random-eclipse-tips.blogspot.com/2009/02/eclipse-rcp-removing-unwante... | Equinox transformations can also be used to supply XLST transformations that remove unwanted UI contributions. |
31,656 | I am not a developer- but I want to upload my favicon to my EE site. Which file folder (Content, Base Images, General Content, Gallery Images) should I upload it to?
Is this the proper way to upload the favicon? | 2015/05/27 | ['https://expressionengine.stackexchange.com/questions/31656', 'https://expressionengine.stackexchange.com', 'https://expressionengine.stackexchange.com/users/6346/'] | I would upload it to the root of the site and then link to it in the head of your document like this
```
<!--favicon-->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
``` | You need to upload the file to the root of your site, as CreateSean said. To do this, you generally need to access your web server via FTP, File Transfer Protocol. I would recommend FileZilla for ease of use.
<https://filezilla-project.org/>
To log in to your web server via FTP, you'll need to know a username, passwo... |
26,755 | In 1 Timothy there is a passage that talks about widows receiving a pension from the church:
1 Timothy 5:9-16
>
> A widow is to be put on the list only if she is not less than sixty
> years old, having been the wife of one man, 10 having a reputation for
> good works; and if she has brought up children, if she has... | 2014/03/24 | ['https://christianity.stackexchange.com/questions/26755', 'https://christianity.stackexchange.com', 'https://christianity.stackexchange.com/users/6506/'] | Let's start by remembering that we are living in very different times from those of the New Testament. 1 Timothy is a letter written by one pastor to another, and not all of it is intended as commandments to the entire church in all places down the millenia. Some of it is Paul giving Timothy good advice for the present... | It appears that the answer to the question you actually asked is, "No, there are no churches today that maintain a Widow's List in accordance with I Timothy 5." Yes, there are all sorts of other programs but nothing like that described in I Timothy 5. |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | Did you already go through the debugging steps here: <https://developer.apple.com/library/content/qa/qa1916/_index.html>
I found the validation tool linked to in step one of the diagnostic section of the above reference to be quite helpful. It will verify that you set the app association file up correctly, and often g... | Usually universal links end with `://`, so try using this URL for your example:
`applinks://stage.domain.com`. |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | Did you already go through the debugging steps here: <https://developer.apple.com/library/content/qa/qa1916/_index.html>
I found the validation tool linked to in step one of the diagnostic section of the above reference to be quite helpful. It will verify that you set the app association file up correctly, and often g... | Have you tried below code in your app : ***info.plist***
```
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>stage</string>
</array>
</dict>
</array>
```
Then open ... |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | Did you already go through the debugging steps here: <https://developer.apple.com/library/content/qa/qa1916/_index.html>
I found the validation tool linked to in step one of the diagnostic section of the above reference to be quite helpful. It will verify that you set the app association file up correctly, and often g... | If, when you access your site, it shows the universal links banner on top of the page, like this: <https://i.stack.imgur.com/ZSQGK.jpg>, you are doing it right.
If you click on Open, it should open the app. Then, if you try to click on a link to your website AFTER you opened your app through the banner, iOS should sav... |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | Have you tried below code in your app : ***info.plist***
```
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>stage</string>
</array>
</dict>
</array>
```
Then open ... | Usually universal links end with `://`, so try using this URL for your example:
`applinks://stage.domain.com`. |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | If, when you access your site, it shows the universal links banner on top of the page, like this: <https://i.stack.imgur.com/ZSQGK.jpg>, you are doing it right.
If you click on Open, it should open the app. Then, if you try to click on a link to your website AFTER you opened your app through the banner, iOS should sav... | Usually universal links end with `://`, so try using this URL for your example:
`applinks://stage.domain.com`. |
49,951,419 | So I have the following apple-app-site-association on my site, located at `stage.domain.com/apple-app-site-association`:
```
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.application.id.goes.here",
"paths": ["*"]
}
]
}
}
```
I've set my Associated Domains as ... | 2018/04/21 | ['https://Stackoverflow.com/questions/49951419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/756566/'] | If, when you access your site, it shows the universal links banner on top of the page, like this: <https://i.stack.imgur.com/ZSQGK.jpg>, you are doing it right.
If you click on Open, it should open the app. Then, if you try to click on a link to your website AFTER you opened your app through the banner, iOS should sav... | Have you tried below code in your app : ***info.plist***
```
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>stage</string>
</array>
</dict>
</array>
```
Then open ... |
3,715 | If, based on encountering new information, or simply based on a re-thinking of the problem, or based on an actual change in circumstances (e.g. new regulations passed), I wish to completely replace an answer (written by me) with entirely different content, is it better to delete the old one and add the new one, or to p... | 2018/11/08 | ['https://aviation.meta.stackexchange.com/questions/3715', 'https://aviation.meta.stackexchange.com', 'https://aviation.meta.stackexchange.com/users/34686/'] | If the answer is substantially different, it'd be better to post a new answer so that the content can be judged freshly regardless of existing score (yes, SE allows users to post multiple answers on the same question, as long as each has its own merit). Might be a good idea too to update the old answer and state that i... | What I've personally done on a couple of occasions is delete + new answer.
---
**RE:** *One issue is that if I've linked to the answer in other answers...*
The old links will still take the visitor to the question, but not the new answer. A small price to pay for less noise. |
48,859,005 | This compiles with no errors:
```
Function<T, List<R>> f = T::getRs;
Function<List<R>, Stream<R>> g = List::stream;
Function<T, Stream<R>> h = f.andThen(g);
List<T> ts = ...;
ts.stream().flatMap(h);
```
But this produces errors:
```
List<T> ts = ...;
ts.stream().flatMap(T::getRs.andThen(List::stream));
```
The er... | 2018/02/19 | ['https://Stackoverflow.com/questions/48859005', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/31379/'] | I found workaround for this...
from <https://issuetracker.google.com/issues/63814741>
adding
```
android.enableExperimentalFeatureDatabinding = true
android.databinding.enableV2=true
```
in `gradle.properties` files kinda solve the issue... but I doubt that this is a solution... but for now... this is how the probl... | I also encountered this issue recently. Adding kapt plugin to app level build.gradle file solved my issue. The problem is that you already have that plugin in your gradle file. Maybe issue is resolved after some time but I want to leave this answer because this question comes up first in Google search.
`apply plugin: ... |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | A working example.
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YourTableName'
EXECUTE ('SELECT * INTO #TEMP FROM ' + @TableName +'; SELECT * FROM #TEMP;')
```
Second solution with accessible temp table
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YOUR_TABLE_NAME'
EXECUTE ('CREATE ... | Take a look at [`OPENROWSET`](http://msdn.microsoft.com/en-us/library/ms190312.aspx), and do something like:
```
SELECT * INTO #TEMPTABLE FROM OPENROWSET('SQLNCLI'
, 'Server=(local)\SQL2008;Trusted_Connection=yes;',
'SELECT * FROM ' + @tableName)
``` |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | ```
declare @sql varchar(100);
declare @tablename as varchar(100);
select @tablename = 'your_table_name';
create table #tmp
(col1 int, col2 int, col3 int);
set @sql = 'select aa, bb, cc from ' + @tablename;
insert into #tmp(col1, col2, col3) exec( @sql );
select * from #tmp;
``` | Take a look at [`OPENROWSET`](http://msdn.microsoft.com/en-us/library/ms190312.aspx), and do something like:
```
SELECT * INTO #TEMPTABLE FROM OPENROWSET('SQLNCLI'
, 'Server=(local)\SQL2008;Trusted_Connection=yes;',
'SELECT * FROM ' + @tableName)
``` |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | How I did it with a pivot in dynamic sql (#AccPurch was created prior to this)
```
DECLARE @sql AS nvarchar(MAX)
declare @Month Nvarchar(1000)
--DROP TABLE #temp
select distinct YYYYMM into #temp from #AccPurch AS ap
SELECT @Month = COALESCE(@Month, '') + '[' + CAST(YYYYMM AS VarChar(8)) + '],' FROM #temp
SELECT... | Take a look at [`OPENROWSET`](http://msdn.microsoft.com/en-us/library/ms190312.aspx), and do something like:
```
SELECT * INTO #TEMPTABLE FROM OPENROWSET('SQLNCLI'
, 'Server=(local)\SQL2008;Trusted_Connection=yes;',
'SELECT * FROM ' + @tableName)
``` |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | ```
DECLARE @count_ser_temp int;
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'TableTemporal'
EXECUTE ('CREATE VIEW vTemp AS
SELECT *
FROM ' + @TableTemporal)
SELECT TOP 1 * INTO #servicios_temp FROM vTemp
DROP VIEW vTemp
-- Contar la cantidad de registros de la tabla temporal
SELECT @count_ser_te... | Take a look at [`OPENROWSET`](http://msdn.microsoft.com/en-us/library/ms190312.aspx), and do something like:
```
SELECT * INTO #TEMPTABLE FROM OPENROWSET('SQLNCLI'
, 'Server=(local)\SQL2008;Trusted_Connection=yes;',
'SELECT * FROM ' + @tableName)
``` |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | A working example.
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YourTableName'
EXECUTE ('SELECT * INTO #TEMP FROM ' + @TableName +'; SELECT * FROM #TEMP;')
```
Second solution with accessible temp table
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YOUR_TABLE_NAME'
EXECUTE ('CREATE ... | ```
declare @sql varchar(100);
declare @tablename as varchar(100);
select @tablename = 'your_table_name';
create table #tmp
(col1 int, col2 int, col3 int);
set @sql = 'select aa, bb, cc from ' + @tablename;
insert into #tmp(col1, col2, col3) exec( @sql );
select * from #tmp;
``` |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | A working example.
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YourTableName'
EXECUTE ('SELECT * INTO #TEMP FROM ' + @TableName +'; SELECT * FROM #TEMP;')
```
Second solution with accessible temp table
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YOUR_TABLE_NAME'
EXECUTE ('CREATE ... | How I did it with a pivot in dynamic sql (#AccPurch was created prior to this)
```
DECLARE @sql AS nvarchar(MAX)
declare @Month Nvarchar(1000)
--DROP TABLE #temp
select distinct YYYYMM into #temp from #AccPurch AS ap
SELECT @Month = COALESCE(@Month, '') + '[' + CAST(YYYYMM AS VarChar(8)) + '],' FROM #temp
SELECT... |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | A working example.
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YourTableName'
EXECUTE ('SELECT * INTO #TEMP FROM ' + @TableName +'; SELECT * FROM #TEMP;')
```
Second solution with accessible temp table
```
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'YOUR_TABLE_NAME'
EXECUTE ('CREATE ... | ```
DECLARE @count_ser_temp int;
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'TableTemporal'
EXECUTE ('CREATE VIEW vTemp AS
SELECT *
FROM ' + @TableTemporal)
SELECT TOP 1 * INTO #servicios_temp FROM vTemp
DROP VIEW vTemp
-- Contar la cantidad de registros de la tabla temporal
SELECT @count_ser_te... |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | ```
declare @sql varchar(100);
declare @tablename as varchar(100);
select @tablename = 'your_table_name';
create table #tmp
(col1 int, col2 int, col3 int);
set @sql = 'select aa, bb, cc from ' + @tablename;
insert into #tmp(col1, col2, col3) exec( @sql );
select * from #tmp;
``` | How I did it with a pivot in dynamic sql (#AccPurch was created prior to this)
```
DECLARE @sql AS nvarchar(MAX)
declare @Month Nvarchar(1000)
--DROP TABLE #temp
select distinct YYYYMM into #temp from #AccPurch AS ap
SELECT @Month = COALESCE(@Month, '') + '[' + CAST(YYYYMM AS VarChar(8)) + '],' FROM #temp
SELECT... |
9,534,990 | This seems relatively simple, but apparently it's not.
I need to create a temp table based on an existing table via the select into syntax:
```
SELECT * INTO #TEMPTABLE FROM EXISTING_TABLE
```
The problem is, the existing table name is accepted via a parameter...
I can get the table's data via:
```
execute ('SELE... | 2012/03/02 | ['https://Stackoverflow.com/questions/9534990', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/112550/'] | ```
declare @sql varchar(100);
declare @tablename as varchar(100);
select @tablename = 'your_table_name';
create table #tmp
(col1 int, col2 int, col3 int);
set @sql = 'select aa, bb, cc from ' + @tablename;
insert into #tmp(col1, col2, col3) exec( @sql );
select * from #tmp;
``` | ```
DECLARE @count_ser_temp int;
DECLARE @TableName AS VARCHAR(100)
SELECT @TableName = 'TableTemporal'
EXECUTE ('CREATE VIEW vTemp AS
SELECT *
FROM ' + @TableTemporal)
SELECT TOP 1 * INTO #servicios_temp FROM vTemp
DROP VIEW vTemp
-- Contar la cantidad de registros de la tabla temporal
SELECT @count_ser_te... |
36,896,345 | I am having some troubles with Xcode login with account created through iTunes connect. I have no experience with developer program whatsoever so please help me if you can.
We have company account and the app on app store. External company is developing it for us. But we wanted to create another app, so my boss, admi... | 2016/04/27 | ['https://Stackoverflow.com/questions/36896345', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2683119/'] | In `setTimeout` this is timeout object's this. Thats why it is not working
```
$('.switch').hover(function() {
$(this).find('.avg_words').hide();
$(this).find('.avg_num').show();
}, function() {
var hoverObj = this;
setTimeout(function() {
$(hoverObj ).find('.avg_num').h... | Try using [setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout):
```
$('.switch').hover(function() {
$(this).find('.avg_words').hide();
$(this).find('.avg_num').show();
}, function() {
var _this = this;
setTimeout(function() {
$(_this).find('.avg_num').hide();
... |
36,896,345 | I am having some troubles with Xcode login with account created through iTunes connect. I have no experience with developer program whatsoever so please help me if you can.
We have company account and the app on app store. External company is developing it for us. But we wanted to create another app, so my boss, admi... | 2016/04/27 | ['https://Stackoverflow.com/questions/36896345', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2683119/'] | You can use setTimeout to run a function delayed. Don't forget to store the interval so that you won't get any weird jittering with hovering.
```
var i;
$('.switch').hover(function() {
clearInterval(i);
$(this).find('.avg_words').hide();
$(this).find('.avg_num').show();
}, function() {
... | Try using [setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout):
```
$('.switch').hover(function() {
$(this).find('.avg_words').hide();
$(this).find('.avg_num').show();
}, function() {
var _this = this;
setTimeout(function() {
$(_this).find('.avg_num').hide();
... |
35,294,871 | I want to scroll the line (uiview - Hieght=1) between the button And i had put the button in container view of pageviewcontroller.Pageviewcontroller is starting from bottom of the buttons .I want the line to move when i scroll pageviewcontrollers subviews.
The Image as shown below...
[scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
- (void)scrollViewDidScroll:(UIScro... | This project will let you integrate this need
<https://github.com/hightower/HTHorizontalSelectionList> |
100,326 | I'm trying to typeset `$\frac{x^*}{2}$`, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following:
```
\documentclass{article}
\begin{document}
\begin{equation}
\frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}}
\end{equation}
\end{document}
```
With the following output:
![... | 2013/02/28 | ['https://tex.stackexchange.com/questions/100326', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/223/'] | ```
\begin{equation*}
\frac{x^*}{2} \quad \frac{x^*}{2\phantom{{}^*}} \quad
\frac{x\rlap{$^*$}}{\,2\,}
\end{equation*}
```
The correct one is the first one, as the ugly syntax of the other two demonstrates :-) However, I have to admit that the third one is the best looking one:
-package?
```
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}} \qquad \frac{x^{\mathrlap{*}}}{2}
\end{equation}
\end{document}
```
This inserts the a... |
100,326 | I'm trying to typeset `$\frac{x^*}{2}$`, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following:
```
\documentclass{article}
\begin{document}
\begin{equation}
\frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}}
\end{equation}
\end{document}
```
With the following output:
![... | 2013/02/28 | ['https://tex.stackexchange.com/questions/100326', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/223/'] | ```
\begin{equation*}
\frac{x^*}{2} \quad \frac{x^*}{2\phantom{{}^*}} \quad
\frac{x\rlap{$^*$}}{\,2\,}
\end{equation*}
```
The correct one is the first one, as the ugly syntax of the other two demonstrates :-) However, I have to admit that the third one is the best looking one:
 way to make the alignment look nice. So far, I've tried the following:
```
\documentclass{article}
\begin{document}
\begin{equation}
\frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}}
\end{equation}
\end{document}
```
With the following output:
![... | 2013/02/28 | ['https://tex.stackexchange.com/questions/100326', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/223/'] | How about using `\mathrlap` from the [`mathtools`](http://www.ctan.org/pkg/mathtools)-package?
```
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}} \qquad \frac{x^{\mathrlap{*}}}{2}
\end{equation}
\end{document}
```
This inserts the a... | Aligning things that should not be aligned is a bad idea. Very similar example to yours is adding `\phantom{-}` in front of `0` and `1` in matricis comprising only `0`, `1` and `-1`. You align the numbers, but you lose the visual distinction between `1` and `-1`.
Here, it is a bit different but still valid: I, as a re... |
37,250,573 | I try to deploy my Django project to apache. But I getting an error 500response. And in logs I getting information that Django is missing. I'm using `virtualenv`to run this project. It's the first time when I try to deploy Django project. And from my experience, I know that I probably missing some simple thing. I was l... | 2016/05/16 | ['https://Stackoverflow.com/questions/37250573', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5004814/'] | The problem is that you probably changed permissions to the directory `/usr/bin`.
To resolve that :
1) First be sure that **root** is owner of this directory `/usr/bin` :
```
chown root:root /usr/bin
```
2) and change permission for this directory :
```
chmod u+s /usr/bin/sudo
``` | Issue:
sudo: effective uid is not 0, is sudo installed setuid root?
Noticed:
---s--x--x. 1 dev root 123832 Aug 13 2015 /usr/bin/sudo
user and group should be root and the sudo file should have setuid
Should be
---s--x--x. 1 root root 123832 Aug 13 2015 /usr/bin/sudo
and also double |
37,250,573 | I try to deploy my Django project to apache. But I getting an error 500response. And in logs I getting information that Django is missing. I'm using `virtualenv`to run this project. It's the first time when I try to deploy Django project. And from my experience, I know that I probably missing some simple thing. I was l... | 2016/05/16 | ['https://Stackoverflow.com/questions/37250573', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5004814/'] | If anyone is still experiencing problems with sudo, I was able t solve it by checking the shell access of the account in WHM. I received the same error because the account had Jailed Shell restrictions. I set it to normal shell and the error was gone. | Issue:
sudo: effective uid is not 0, is sudo installed setuid root?
Noticed:
---s--x--x. 1 dev root 123832 Aug 13 2015 /usr/bin/sudo
user and group should be root and the sudo file should have setuid
Should be
---s--x--x. 1 root root 123832 Aug 13 2015 /usr/bin/sudo
and also double |
37,250,573 | I try to deploy my Django project to apache. But I getting an error 500response. And in logs I getting information that Django is missing. I'm using `virtualenv`to run this project. It's the first time when I try to deploy Django project. And from my experience, I know that I probably missing some simple thing. I was l... | 2016/05/16 | ['https://Stackoverflow.com/questions/37250573', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5004814/'] | The problem is that you probably changed permissions to the directory `/usr/bin`.
To resolve that :
1) First be sure that **root** is owner of this directory `/usr/bin` :
```
chown root:root /usr/bin
```
2) and change permission for this directory :
```
chmod u+s /usr/bin/sudo
``` | If anyone is still experiencing problems with sudo, I was able t solve it by checking the shell access of the account in WHM. I received the same error because the account had Jailed Shell restrictions. I set it to normal shell and the error was gone. |
19,786,191 | I need to do this with jQuery.
Let's say that I have simple div element in HTML like that:
```
<div class="grow"></div>
```
**CSS:**
```
body, html {
width: 100%;
height:100%;
min-height:100%
}
.grow {
height:20px;
width:100%;
}
```
I need to write script where DIV `grow` will be growing according to the sc... | 2013/11/05 | ['https://Stackoverflow.com/questions/19786191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1587500/'] | Try this
```
$(window).resize(function() {
var bodyheight = $(document).height();
var divHeight = (bodyheight-10)/2;
$('.grow').css("height", divHeight+"px");;
});
``` | Try this
```
var width = (+$(window).width());
var divHeight = (width-10)/2;
$(".grow").height(divHeight);
``` |
19,786,191 | I need to do this with jQuery.
Let's say that I have simple div element in HTML like that:
```
<div class="grow"></div>
```
**CSS:**
```
body, html {
width: 100%;
height:100%;
min-height:100%
}
.grow {
height:20px;
width:100%;
}
```
I need to write script where DIV `grow` will be growing according to the sc... | 2013/11/05 | ['https://Stackoverflow.com/questions/19786191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1587500/'] | here you go [http://jsfiddle.net/6KfHy/1/]
```
var baseWidth = 90;
var stepWidth = 4;
var baseHeight = 20;
var growHeightPerStep = 1;
function changeHeight() {
var windowW = $(window).width();
var diffWidth = windowW - baseWidth;
var diffHeight = parseInt(diffWidth / 4, 10);
$('.grow').css('height', ... | Try this
```
var width = (+$(window).width());
var divHeight = (width-10)/2;
$(".grow").height(divHeight);
``` |
19,786,191 | I need to do this with jQuery.
Let's say that I have simple div element in HTML like that:
```
<div class="grow"></div>
```
**CSS:**
```
body, html {
width: 100%;
height:100%;
min-height:100%
}
.grow {
height:20px;
width:100%;
}
```
I need to write script where DIV `grow` will be growing according to the sc... | 2013/11/05 | ['https://Stackoverflow.com/questions/19786191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1587500/'] | Try this
```
$(window).resize(function() {
var bodyheight = $(document).height();
var divHeight = (bodyheight-10)/2;
$('.grow').css("height", divHeight+"px");;
});
``` | ```
var $grow = $('.grow'),
$window = $(window);
$(window)
.resize(function () {
var windowWidth = $window.width();
if (windowWidth > 90) {
$grow.height(~~ (windowWidth / 4));
}
})
.resize();
```
Trigger it the first time on dom ready.
<http://jsfiddle.net/techunte... |
19,786,191 | I need to do this with jQuery.
Let's say that I have simple div element in HTML like that:
```
<div class="grow"></div>
```
**CSS:**
```
body, html {
width: 100%;
height:100%;
min-height:100%
}
.grow {
height:20px;
width:100%;
}
```
I need to write script where DIV `grow` will be growing according to the sc... | 2013/11/05 | ['https://Stackoverflow.com/questions/19786191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1587500/'] | here you go [http://jsfiddle.net/6KfHy/1/]
```
var baseWidth = 90;
var stepWidth = 4;
var baseHeight = 20;
var growHeightPerStep = 1;
function changeHeight() {
var windowW = $(window).width();
var diffWidth = windowW - baseWidth;
var diffHeight = parseInt(diffWidth / 4, 10);
$('.grow').css('height', ... | Try this
```
$(window).resize(function() {
var bodyheight = $(document).height();
var divHeight = (bodyheight-10)/2;
$('.grow').css("height", divHeight+"px");;
});
``` |
19,786,191 | I need to do this with jQuery.
Let's say that I have simple div element in HTML like that:
```
<div class="grow"></div>
```
**CSS:**
```
body, html {
width: 100%;
height:100%;
min-height:100%
}
.grow {
height:20px;
width:100%;
}
```
I need to write script where DIV `grow` will be growing according to the sc... | 2013/11/05 | ['https://Stackoverflow.com/questions/19786191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1587500/'] | here you go [http://jsfiddle.net/6KfHy/1/]
```
var baseWidth = 90;
var stepWidth = 4;
var baseHeight = 20;
var growHeightPerStep = 1;
function changeHeight() {
var windowW = $(window).width();
var diffWidth = windowW - baseWidth;
var diffHeight = parseInt(diffWidth / 4, 10);
$('.grow').css('height', ... | ```
var $grow = $('.grow'),
$window = $(window);
$(window)
.resize(function () {
var windowWidth = $window.width();
if (windowWidth > 90) {
$grow.height(~~ (windowWidth / 4));
}
})
.resize();
```
Trigger it the first time on dom ready.
<http://jsfiddle.net/techunte... |
173,408 | My brother jumped into the voice of the doom in my Hardcore Creative map.
I didn't press the ΄΄**Delete This World**΄΄ button yet. | 2014/06/22 | ['https://gaming.stackexchange.com/questions/173408', 'https://gaming.stackexchange.com', 'https://gaming.stackexchange.com/users/80112/'] | As you probably know, hardcore mode is the same as hard mode but when you die your world is deleted.
When you die in hardcore mode you are given this game over screen.

If you clicked the `Delete world` button your world is gone, kapoosh. But you might be ... | Don't click the "Delete World" button instead close out Minecraft and write down the seed before you make your world. |
173,408 | My brother jumped into the voice of the doom in my Hardcore Creative map.
I didn't press the ΄΄**Delete This World**΄΄ button yet. | 2014/06/22 | ['https://gaming.stackexchange.com/questions/173408', 'https://gaming.stackexchange.com', 'https://gaming.stackexchange.com/users/80112/'] | As you probably know, hardcore mode is the same as hard mode but when you die your world is deleted.
When you die in hardcore mode you are given this game over screen.

If you clicked the `Delete world` button your world is gone, kapoosh. But you might be ... | After dieing, choose to go into spectator mode instead of deleting the world (for obvious reasons). Then open the world to LAN and set `cheats enabled` to `ON`.
Run the command `/gamemode survival`.
Save and exit.
You should now be able to load your world again and you will be in survival mode, cheats will be disa... |
173,408 | My brother jumped into the voice of the doom in my Hardcore Creative map.
I didn't press the ΄΄**Delete This World**΄΄ button yet. | 2014/06/22 | ['https://gaming.stackexchange.com/questions/173408', 'https://gaming.stackexchange.com', 'https://gaming.stackexchange.com/users/80112/'] | After dieing, choose to go into spectator mode instead of deleting the world (for obvious reasons). Then open the world to LAN and set `cheats enabled` to `ON`.
Run the command `/gamemode survival`.
Save and exit.
You should now be able to load your world again and you will be in survival mode, cheats will be disa... | Don't click the "Delete World" button instead close out Minecraft and write down the seed before you make your world. |
57,477,658 | I have an application which needs the full path of the file when clicking on choose file button. Now I want to get the full path of that file. For e.g. D:\MyNodeApp\project\text.doc
How do I get the file location in node.js? | 2019/08/13 | ['https://Stackoverflow.com/questions/57477658', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10709726/'] | async/await doesn't really matter here because it will essentially wrap/unwrap promises (which you arent using)
I dont really see a problem here. Your `console.log(__email__info)` and your `__email__info.push(__vs_status__)` both need to be within the callback of `transporter.sendMail`
so, the below:
```
_send_to_.f... | Its better to use for of loop then for each loop, as for each loop contains callbacks. Here using request-promise module as it returns promise. ANd promisify object of the util library. So that the method which accepts callbacks are converted into promises.
```
const rp = require('request-promise'),
{promisify} = ... |
2,057,227 | In order to comply with [HIPAA](http://en.wikipedia.org/wiki/Health_Insurance_Portability_and_Accountability_Act) regulations, we need to send email from an external site (outside the firewall) to an internal Exchange server (inside the firewall). Our Exchange admins tell us we need to use TLS encryption to send mail f... | 2010/01/13 | ['https://Stackoverflow.com/questions/2057227', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/249861/'] | TLS (Transport Level Security) is the slightly broader term that has replaced SSL (Secure Sockets Layer) in securing HTTP communications. So what you are being asked to do is enable SSL. | On SmtpClient there is an EnableSsl property that you would set.
i.e.
```
SmtpClient client = new SmtpClient(exchangeServer);
client.EnableSsl = true;
client.Send(msg);
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.