qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
2,970,248
This question is related but not the same as this: [How do you give a C# Auto-Property a default value?](https://stackoverflow.com/questions/40730/how-do-you-give-a-c-auto-property-a-default-value) I love auto-properties, but sometimes I have to do something like this: ``` private string someName; public string Some...
2010/06/03
[ "https://Stackoverflow.com/questions/2970248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231677/" ]
Your database is not normalized. You say it's all in one table, but you haven't given any information about the schema. The kinds of problems which non-normalized databases have include problems with consistency related to storing redundant information - if you have something like: Album, Track, Artist then to chang...
pretty screwed, indeed. it's hardly normalized. go for separate tables. if you've never heard of normalization or understood why it was important, perhaps you should read [this](http://www.phlonx.com/resources/nf3/). it's a succinct, simple explanation without a lot of jargon. or you could go straight to the source ...
2,970,248
This question is related but not the same as this: [How do you give a C# Auto-Property a default value?](https://stackoverflow.com/questions/40730/how-do-you-give-a-c-auto-property-a-default-value) I love auto-properties, but sometimes I have to do something like this: ``` private string someName; public string Some...
2010/06/03
[ "https://Stackoverflow.com/questions/2970248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231677/" ]
pretty screwed, indeed. it's hardly normalized. go for separate tables. if you've never heard of normalization or understood why it was important, perhaps you should read [this](http://www.phlonx.com/resources/nf3/). it's a succinct, simple explanation without a lot of jargon. or you could go straight to the source ...
So the subject you're asking about is called "Normalization" and while this is useful in many circumstances, it can't always be applied. Consider the artist Pink. Some of her albums have her name as `Pink` and others `P!nk` which we recognize as the same visually, because we know it's her. But a database would by forc...
2,970,248
This question is related but not the same as this: [How do you give a C# Auto-Property a default value?](https://stackoverflow.com/questions/40730/how-do-you-give-a-c-auto-property-a-default-value) I love auto-properties, but sometimes I have to do something like this: ``` private string someName; public string Some...
2010/06/03
[ "https://Stackoverflow.com/questions/2970248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231677/" ]
In regards to the Pink/P!nk situation, if that's a big deal to you, then yes, normalization would be useful. Your songs table would reference an artist\_id. You'd also have a table of artist aliases, which would map the various names that a particular artist has gone by to that artist\_id. But this can get pretty co...
pretty screwed, indeed. it's hardly normalized. go for separate tables. if you've never heard of normalization or understood why it was important, perhaps you should read [this](http://www.phlonx.com/resources/nf3/). it's a succinct, simple explanation without a lot of jargon. or you could go straight to the source ...
2,970,248
This question is related but not the same as this: [How do you give a C# Auto-Property a default value?](https://stackoverflow.com/questions/40730/how-do-you-give-a-c-auto-property-a-default-value) I love auto-properties, but sometimes I have to do something like this: ``` private string someName; public string Some...
2010/06/03
[ "https://Stackoverflow.com/questions/2970248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231677/" ]
Your database is not normalized. You say it's all in one table, but you haven't given any information about the schema. The kinds of problems which non-normalized databases have include problems with consistency related to storing redundant information - if you have something like: Album, Track, Artist then to chang...
So the subject you're asking about is called "Normalization" and while this is useful in many circumstances, it can't always be applied. Consider the artist Pink. Some of her albums have her name as `Pink` and others `P!nk` which we recognize as the same visually, because we know it's her. But a database would by forc...
2,970,248
This question is related but not the same as this: [How do you give a C# Auto-Property a default value?](https://stackoverflow.com/questions/40730/how-do-you-give-a-c-auto-property-a-default-value) I love auto-properties, but sometimes I have to do something like this: ``` private string someName; public string Some...
2010/06/03
[ "https://Stackoverflow.com/questions/2970248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231677/" ]
In regards to the Pink/P!nk situation, if that's a big deal to you, then yes, normalization would be useful. Your songs table would reference an artist\_id. You'd also have a table of artist aliases, which would map the various names that a particular artist has gone by to that artist\_id. But this can get pretty co...
So the subject you're asking about is called "Normalization" and while this is useful in many circumstances, it can't always be applied. Consider the artist Pink. Some of her albums have her name as `Pink` and others `P!nk` which we recognize as the same visually, because we know it's her. But a database would by forc...
39,573,568
How can I use result from a `LEFT JOIN` in an `IN` clause? This is my query so far: ``` SELECT n.id, n.title, n.public, CAST(GROUP_CONCAT(DISTINCT ngm.members_group_id) AS CHAR(1000)) AS `news_groups_text`, GROUP_CONCAT(DISTINCT ngm.members_group_id) AS `news_groups` FROM news n LEFT JOIN news_groups_map ngm ON ngm...
2016/09/19
[ "https://Stackoverflow.com/questions/39573568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3594299/" ]
I think you are looking for [**`FIND_IN_SET`**](http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_find-in-set): ``` FIND_IN_SET(4, news_groups_text) ``` **Note**: This can be used only by an outer query that uses the original query as a subquery. But it is more natural to place the condition in ...
The simplest way to do this in MySQL is to use a `HAVING` clause after the `GROUP BY`. The simplest such clause is: ``` HAVING MAX(ngm.members_group_id = 4) > 0 ```
5,716,123
Is it possible to declare `DataGrid` columns in a style or as a resource? I would like to do something like this: ``` <....Resources> <DataGridColumns x:Key="dgcDataGridColumns"> <DataGridTextColumn /> <DataGridTextColumn /> </DataGridColumns </....Resources> <DataGrid Columns="{StaticResource...
2011/04/19
[ "https://Stackoverflow.com/questions/5716123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/613320/" ]
Columns property of the DataGrid has no setter so it is not possibly. You can however do something like this: ``` <Window.Resources> <Controls:DataGrid x:Key="PersonDataGrid" AutoGenerateColumns="False" ItemsSource="{Binding .}" x:Shared="False"> <Controls:DataGrid.Columns> <Controls:DataGridT...
I don't think you can, as in that situation you aren't specifying a template or a style, but the actual Column object. I don't think the data grids play nicely when sharing like that; I think you'll get an exception to the extent of "This UIElement is already the child of another UIElement". So I tried the following.....
5,716,123
Is it possible to declare `DataGrid` columns in a style or as a resource? I would like to do something like this: ``` <....Resources> <DataGridColumns x:Key="dgcDataGridColumns"> <DataGridTextColumn /> <DataGridTextColumn /> </DataGridColumns </....Resources> <DataGrid Columns="{StaticResource...
2011/04/19
[ "https://Stackoverflow.com/questions/5716123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/613320/" ]
x:Shared helps to avoid the exception MattS423 has got. ``` <Window.Resources> <DataGridTextColumn x:Key="dgtcFirstName" x:Shared="False" Header="First Name" Binding="{Binding FirstName}"/> <DataGridTextColumn x:Key="dgtcSecondName" x:Shared="False" Header="Second Name" Binding="{Binding SecondName}"/> </Windo...
I don't think you can, as in that situation you aren't specifying a template or a style, but the actual Column object. I don't think the data grids play nicely when sharing like that; I think you'll get an exception to the extent of "This UIElement is already the child of another UIElement". So I tried the following.....
5,716,123
Is it possible to declare `DataGrid` columns in a style or as a resource? I would like to do something like this: ``` <....Resources> <DataGridColumns x:Key="dgcDataGridColumns"> <DataGridTextColumn /> <DataGridTextColumn /> </DataGridColumns </....Resources> <DataGrid Columns="{StaticResource...
2011/04/19
[ "https://Stackoverflow.com/questions/5716123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/613320/" ]
Columns property of the DataGrid has no setter so it is not possibly. You can however do something like this: ``` <Window.Resources> <Controls:DataGrid x:Key="PersonDataGrid" AutoGenerateColumns="False" ItemsSource="{Binding .}" x:Shared="False"> <Controls:DataGrid.Columns> <Controls:DataGridT...
x:Shared helps to avoid the exception MattS423 has got. ``` <Window.Resources> <DataGridTextColumn x:Key="dgtcFirstName" x:Shared="False" Header="First Name" Binding="{Binding FirstName}"/> <DataGridTextColumn x:Key="dgtcSecondName" x:Shared="False" Header="Second Name" Binding="{Binding SecondName}"/> </Windo...
2,863,189
Suppose that $C$ and $B$ are $n \times p$ and $p \times n$, respectively, and that $A + BC$ and $A$ are full rank. Then why is $(I + CA^{-1}B)$ also full rank? I've tried to manipulate things around, and I wanted to show that $(I + CA^{-1}B)x = 0$ implies $x =0$. So far, all I can see is that if $(I + CA^{-1}B)x = 0$...
2018/07/26
[ "https://math.stackexchange.com/questions/2863189", "https://math.stackexchange.com", "https://math.stackexchange.com/users/503984/" ]
If you consider using Newton method to find the zero of $$f(x)=x^3+x^2 (\text{Cb}+\text{Ka})-x (\text{Ca} \,\text{Ka}+\text{Kw})-\text{Ka} \, \text{Kw}$$ $$f'(x)=3 x^2+2 x (\text{Cb}+\text{Ka})-(\text{Ca} \text{Ka}+\text{Kw})$$ $$f''(x)=6 x+2 (\text{Cb}+\text{Ka})$$ you must not start at $x=0$ since $$f(0) \,f''(0)=-2...
According to the [computation on Wolfram Alpha](http://www.wolframalpha.com/input/?i=solve+x%5E3+%2B+(0.2%2B1e-4.75)*x%5E2++-(0.1*1e-4.75+%2B+1e-14)*x+%E2%88%921e-4.75*1e-14+%3D+0) linked in the question, the task is to find the roots of the cubic equation $x^{3} + (0.2 + 1 \times 10^{-4.75})x^{2}-(0.1 \times 10^{-4....
29,349,014
I have an array in PHP that I encode to json: ``` $jsonOutput = json_encode($output); ``` Then in my javascript, I use this to parse it: ``` var jsonOutput = JSON.parse('<?php echo $jsonOutput; ?>'); ``` My output looks like this in the Chrome console: ![enter image description here](https://i.stack.imgur.com...
2015/03/30
[ "https://Stackoverflow.com/questions/29349014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4316726/" ]
The problem is that your jsonOutput is an Object, so in order to access one member of the object you either have to user jsonOutput.red/jsonOutput.orange or jsonOutput["red"], jsonOutput["orange"] to access a member of the object. More info here [Access / process (nested) objects, arrays or JSON](https://stackoverflow...
``` jsonOutput.red[0] ``` You have an object with two keys. Not an array.
29,349,014
I have an array in PHP that I encode to json: ``` $jsonOutput = json_encode($output); ``` Then in my javascript, I use this to parse it: ``` var jsonOutput = JSON.parse('<?php echo $jsonOutput; ?>'); ``` My output looks like this in the Chrome console: ![enter image description here](https://i.stack.imgur.com...
2015/03/30
[ "https://Stackoverflow.com/questions/29349014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4316726/" ]
The problem is that your jsonOutput is an Object, so in order to access one member of the object you either have to user jsonOutput.red/jsonOutput.orange or jsonOutput["red"], jsonOutput["orange"] to access a member of the object. More info here [Access / process (nested) objects, arrays or JSON](https://stackoverflow...
You access those arrays using: ``` jsonOutput.red; jsonOutput.orange; ```
2,505,484
I saw in a lot of AjaxControlToolkit.resources.dll for different languages, even mine (Russian) in my bin folder so I guess that's real to change the language of my Ajax Calendar Extender. ``` <asp:TextBox ID="TextBox4" runat="server" oninit="TextBox4_Init" /> <ajaxToolkit:CalendarExtender ID="TextBox4_CalendarExtende...
2010/03/24
[ "https://Stackoverflow.com/questions/2505484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/238232/" ]
The components are going to work by default in the language defined in the page culture property in your page directive. This directive also fix the date format and all the culture relative parameters and preferences. This is an example to set them work for English-United Kingdom: ``` <%@ Page Language="C#" Culture=...
You must set EnableScriptGlobalization="true" in ToolkitScriptManager like this ``` <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"></asp:ToolkitScriptManager> ```
33,612,097
I have recently started to work with MySQL for my study job and now face following problem: My predecessor created a textmining table of the following structure: ``` +------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+-...
2015/11/09
[ "https://Stackoverflow.com/questions/33612097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5542712/" ]
You're missing a semi-colon after the following: ``` chomp $choice ``` Keep in mind that the following is a valid statement: ``` chomp $choice if ($choice = "Ruby") ``` --- By the way, ``` $choice = "Ruby" ``` should be ``` $choice eq "Ruby" ``` `=` is the scalar assignment or list assignment operator. `...
You are missing a `;` after the line `chomp $choice` Always include `use strict;` and `use warnings;` in your scripts.
100,195
Ahlfors says that once the existence of the quotient $\frac{a}{b}$ has been proven, its value can be found by calculating $\frac{a}{b} \cdot \frac{\bar b}{\bar b}$. Why doesn't this manipulation show the existence of the quotient? $\frac{a}{b} = \frac{a}{b} \cdot \frac{\bar b}{\bar b} = a\bar b \cdot b^{-1} \cdot\bar ...
2012/01/18
[ "https://math.stackexchange.com/questions/100195", "https://math.stackexchange.com", "https://math.stackexchange.com/users/19192/" ]
I will consider the case when $X\_1$ and $X\_2$ are *independent identically distributed* and integer-valued. The following properites hold: 1. Since $Y$ is discrete with finite support, its pmf is a polynomial in $z$ and $z^{-1}$ with non-negative coefficients. $$ Z\_Y(z) = \sum\_{k=m(Y)}^{n(Y)} \mathbb{P}(Y=k) z^...
No. If $X\_1$ and $X\_2$ are identically equal to any constant, then $Y$ is identically equal to zero.
100,195
Ahlfors says that once the existence of the quotient $\frac{a}{b}$ has been proven, its value can be found by calculating $\frac{a}{b} \cdot \frac{\bar b}{\bar b}$. Why doesn't this manipulation show the existence of the quotient? $\frac{a}{b} = \frac{a}{b} \cdot \frac{\bar b}{\bar b} = a\bar b \cdot b^{-1} \cdot\bar ...
2012/01/18
[ "https://math.stackexchange.com/questions/100195", "https://math.stackexchange.com", "https://math.stackexchange.com/users/19192/" ]
I will consider the case when $X\_1$ and $X\_2$ are *independent identically distributed* and integer-valued. The following properites hold: 1. Since $Y$ is discrete with finite support, its pmf is a polynomial in $z$ and $z^{-1}$ with non-negative coefficients. $$ Z\_Y(z) = \sum\_{k=m(Y)}^{n(Y)} \mathbb{P}(Y=k) z^...
**The answer below is no longer relevant since the OP now says that $X\_1$ and $X\_2$ take on strictly positive integer values and are also independent.** --- If you don't like Byron Schmuland's answer with degenerate random variables, here is an example with Bernoulli random variables showing that the information y...
46,255,248
I want to retrieve the value of an input using jQuery. Here's the HTML: ``` <input type="text" name="a" id="a" /> <input type="button" name="b" id="b" value="Click here"/> ``` Here's the jQuery: ``` $(document).ready(function() { var normal=$('#a').val(); $('#b').on("click", function() { alert...
2017/09/16
[ "https://Stackoverflow.com/questions/46255248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8312107/" ]
You're assigning `normal` upon `document.ready()` and not reassigning when you click, so normal will be whatever value you give to the input field when the page loads.
Try this code ``` $(document).ready(function() { $('#b').on("click", function() { var normal=$('#a').val(); alert(normal); }); }); ```
46,255,248
I want to retrieve the value of an input using jQuery. Here's the HTML: ``` <input type="text" name="a" id="a" /> <input type="button" name="b" id="b" value="Click here"/> ``` Here's the jQuery: ``` $(document).ready(function() { var normal=$('#a').val(); $('#b').on("click", function() { alert...
2017/09/16
[ "https://Stackoverflow.com/questions/46255248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8312107/" ]
if you declare `var normal` outside the click function handler then the initial value will be empty as there is no value in the text box once the DOM is ready . But if you declare it within the `click` event handler then the value will be assigned once you type something in the textbox and click the button. The below c...
You're assigning `normal` upon `document.ready()` and not reassigning when you click, so normal will be whatever value you give to the input field when the page loads.
46,255,248
I want to retrieve the value of an input using jQuery. Here's the HTML: ``` <input type="text" name="a" id="a" /> <input type="button" name="b" id="b" value="Click here"/> ``` Here's the jQuery: ``` $(document).ready(function() { var normal=$('#a').val(); $('#b').on("click", function() { alert...
2017/09/16
[ "https://Stackoverflow.com/questions/46255248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8312107/" ]
You're assigning `normal` upon `document.ready()` and not reassigning when you click, so normal will be whatever value you give to the input field when the page loads.
Yes, you are right, > > provided the text box with `id= a` had some text on load. > > > by that I mean something along the lines of ``` <input type="text" name="a" id="a" value= "foo"/> ``` Fiddle: <http://jsfiddle.net/Jayas/vhjm8v31/2/> Now if you hit `Clickhere` button it will display `foo`. **In your cas...
46,255,248
I want to retrieve the value of an input using jQuery. Here's the HTML: ``` <input type="text" name="a" id="a" /> <input type="button" name="b" id="b" value="Click here"/> ``` Here's the jQuery: ``` $(document).ready(function() { var normal=$('#a').val(); $('#b').on("click", function() { alert...
2017/09/16
[ "https://Stackoverflow.com/questions/46255248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8312107/" ]
if you declare `var normal` outside the click function handler then the initial value will be empty as there is no value in the text box once the DOM is ready . But if you declare it within the `click` event handler then the value will be assigned once you type something in the textbox and click the button. The below c...
Try this code ``` $(document).ready(function() { $('#b').on("click", function() { var normal=$('#a').val(); alert(normal); }); }); ```
46,255,248
I want to retrieve the value of an input using jQuery. Here's the HTML: ``` <input type="text" name="a" id="a" /> <input type="button" name="b" id="b" value="Click here"/> ``` Here's the jQuery: ``` $(document).ready(function() { var normal=$('#a').val(); $('#b').on("click", function() { alert...
2017/09/16
[ "https://Stackoverflow.com/questions/46255248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8312107/" ]
if you declare `var normal` outside the click function handler then the initial value will be empty as there is no value in the text box once the DOM is ready . But if you declare it within the `click` event handler then the value will be assigned once you type something in the textbox and click the button. The below c...
Yes, you are right, > > provided the text box with `id= a` had some text on load. > > > by that I mean something along the lines of ``` <input type="text" name="a" id="a" value= "foo"/> ``` Fiddle: <http://jsfiddle.net/Jayas/vhjm8v31/2/> Now if you hit `Clickhere` button it will display `foo`. **In your cas...
56,275
This question arose from considering for a connected smooth Hausdorff manifold the (possible) equivalence of the following properties: (1) paracompact, (2) metrizable, (3) second countable, (4) countable at infinity, (5) $\sigma$−compact, (6) Lindelöf, (7) separable. I know proofs for the equivalenc...
2011/02/22
[ "https://mathoverflow.net/questions/56275", "https://mathoverflow.net", "https://mathoverflow.net/users/12643/" ]
I answer my our question: *Separability of a connected locally euclidean Hausdorff topological space **does not** imply second countability*, or any of the equivalent conditions (1), ... (6) given in the question. A counterexample is given in Example 5 on page 15 in [David Gauld's preprint](http://arxiv.org/PS_cache/a...
Indeed, check [the paper by Gauld](http://arxiv.org/pdf/0910.0885v1). Your (4) implies his condition hemicompact. His example at p15, that you saw refutes the just separable condition (7). Note that (1)-(6) imply imply metrisability for just continuous manifolds, so it still might be that the situation vis à vis separa...
56,275
This question arose from considering for a connected smooth Hausdorff manifold the (possible) equivalence of the following properties: (1) paracompact, (2) metrizable, (3) second countable, (4) countable at infinity, (5) $\sigma$−compact, (6) Lindelöf, (7) separable. I know proofs for the equivalenc...
2011/02/22
[ "https://mathoverflow.net/questions/56275", "https://mathoverflow.net", "https://mathoverflow.net/users/12643/" ]
I answer my our question: *Separability of a connected locally euclidean Hausdorff topological space **does not** imply second countability*, or any of the equivalent conditions (1), ... (6) given in the question. A counterexample is given in Example 5 on page 15 in [David Gauld's preprint](http://arxiv.org/PS_cache/a...
See my article on nonmetrizable manifolds in the Handbook of Set-Theoretic Topology. Examples 3.7 and 3.9 include separable, nonmetrizable manifolds; neither is due to me and the second is due to R.L. Moore in a 1942 paper. After reading the descriptions, you might try going back to Gauld's smooth example.
46,213,500
I want to make a Back to top button like the page below <https://www.k-kosho.co.jp/> As the scroll button will be hidden, only show again when I stop the scroll. This is my start js, hope everyone helps. ``` $(window).scroll(function() { if ($(this).scrollTop() != 0) { $('.ev-scrolltop').fadeIn(); ...
2017/09/14
[ "https://Stackoverflow.com/questions/46213500", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6772972/" ]
You could use [*`get_level_values`*](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Index.get_level_values.html): ``` df[df.val >= 3].index.get_level_values(1).unique() Index(['var', 'rf', 'uf'], dtype='object') ```
You need [`remove_unused_levels`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.MultiIndex.remove_unused_levels.html), `new in version 0.20.0.`: ``` df1 = df[df.val >= 3] print (df1.index) MultiIndex(levels=[['Rad', 'Tan'], ['max', 'min', 'rf', 'uf', 'var']], labels=[[1, 1, 1, 0, 0, 0], [4, ...
98,320
Thunderwave, on a failed save, pushes a target 10 feet when it hits them in addition to doing damage. In the event that a party as a whole were falling, a creative Cleric could Ready his spell to be cast when they're about to hit the ground, by Thunderwaving the other member's of the party, directly, 10 feet in the opp...
2017/04/18
[ "https://rpg.stackexchange.com/questions/98320", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/23110/" ]
This method nets you more damage ================================ Falling damage is dealt *at the end of a fall*. > > **PHB 183, Falling** > > > At the end of a fall, a creature takes 1d6 bludgeoning damage for every 10 feet it fell, to a maximum of 20d6. The creature lands prone, unless it avoids taking damage fr...
This is mostly likely a DM Discretion issue, but what follows is some guidance: In order for Thunderwave to successfully push you 10' away from the ground, the Cleric would need to have done the following: 1. Depending on initiative order at the time of falling, there may not have been an opportunity to ready the act...
98,320
Thunderwave, on a failed save, pushes a target 10 feet when it hits them in addition to doing damage. In the event that a party as a whole were falling, a creative Cleric could Ready his spell to be cast when they're about to hit the ground, by Thunderwaving the other member's of the party, directly, 10 feet in the opp...
2017/04/18
[ "https://rpg.stackexchange.com/questions/98320", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/23110/" ]
This method nets you more damage ================================ Falling damage is dealt *at the end of a fall*. > > **PHB 183, Falling** > > > At the end of a fall, a creature takes 1d6 bludgeoning damage for every 10 feet it fell, to a maximum of 20d6. The creature lands prone, unless it avoids taking damage fr...
The combo is outside the rules, and by strict RAW provides no benefit. However, many DM's might still desire to encourage roleplaying and creative thinking, and PHB p.193 states: > > When you describe an action not detailed elsewhere in the rules, the DM tells you whether that action is possible and what kind of roll...
1,208,989
I have downloaded this file : ubuntu-18.04.3-desktop-amd64.iso to install Unbuntu on an old computer. After startup, I have had this message : This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. Is it related to my CPU capabilities ? May I i...
2020/02/08
[ "https://askubuntu.com/questions/1208989", "https://askubuntu.com", "https://askubuntu.com/users/1042250/" ]
The usual way is to sign up for a [DDNS service](https://en.wikipedia.org/wiki/Dynamic_DNS), with that service's application running on your home server. The DDNS service and application work together to update your public IP address (which means your *router's* IP address) to internet nameservers. So you use `ssh me...
Idk if this will help you or can solve the exact problem on your case, but maybe can help the others, because i was searching for the same problem and found this method somewhere so, i've tried **Teamviewer**, here is the details * The server is Ubuntu Server 22.04, i installed the **Teamviewer Host**, you can find i...
1,208,989
I have downloaded this file : ubuntu-18.04.3-desktop-amd64.iso to install Unbuntu on an old computer. After startup, I have had this message : This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. Is it related to my CPU capabilities ? May I i...
2020/02/08
[ "https://askubuntu.com/questions/1208989", "https://askubuntu.com", "https://askubuntu.com/users/1042250/" ]
The usual way is to sign up for a [DDNS service](https://en.wikipedia.org/wiki/Dynamic_DNS), with that service's application running on your home server. The DDNS service and application work together to update your public IP address (which means your *router's* IP address) to internet nameservers. So you use `ssh me...
There is a service called <https://ngrok.com/> which allows you to set up temporary tunnels for various protocols. Basically, you'd open an SSH tunnel to the local SSH server on the host you want to connect into; this then exposes the tunnel to the public network. You obviously have to do this when you are connected lo...
267,918
We are currently using Office 2002 on Windows XP but will be moving our users to Windows 7 in the next few months. Part of our business is writing research documents so there is heavy use of Word (including an in-house bespoke templating add-in). The Windows 7 test user group have found that Word 2002 documents which ...
2011/04/07
[ "https://superuser.com/questions/267918", "https://superuser.com", "https://superuser.com/users/59/" ]
According to the Windows 7 Compatibility Center, Office 2002 may not be compatible with Windows 7: <http://www.microsoft.com/windows/compatibility/windows-7/en-us/Details.aspx?type=Software&p=Microsoft%20Office%20XP%202002%20Standard&v=Microsoft&uid=10&l=en&pf=0&pi=0&s=office%202002&os=64-bit> You may have to upgrade ...
From skimming the web it seems there's a fair number of people out there using Office 2002 with minimal problems on Windows 7 (most issues seem related to Outlook). I think it's going to be fairly natural of Microsoft to mark the compatibility status of such an old version of Office with the latest Windows as ambiguous...
267,918
We are currently using Office 2002 on Windows XP but will be moving our users to Windows 7 in the next few months. Part of our business is writing research documents so there is heavy use of Word (including an in-house bespoke templating add-in). The Windows 7 test user group have found that Word 2002 documents which ...
2011/04/07
[ "https://superuser.com/questions/267918", "https://superuser.com", "https://superuser.com/users/59/" ]
I have seen a similar issue. We solved this by running Word in Compatibility mode, as also suggested by Randolph Potter in the comments above. What worked for us was to choose "Windows XP Service Pack 3". Here is an article from How To Geek on changing Compatibility mode: <http://www.howtogeek.com/howto/10436/using-pr...
According to the Windows 7 Compatibility Center, Office 2002 may not be compatible with Windows 7: <http://www.microsoft.com/windows/compatibility/windows-7/en-us/Details.aspx?type=Software&p=Microsoft%20Office%20XP%202002%20Standard&v=Microsoft&uid=10&l=en&pf=0&pi=0&s=office%202002&os=64-bit> You may have to upgrade ...
267,918
We are currently using Office 2002 on Windows XP but will be moving our users to Windows 7 in the next few months. Part of our business is writing research documents so there is heavy use of Word (including an in-house bespoke templating add-in). The Windows 7 test user group have found that Word 2002 documents which ...
2011/04/07
[ "https://superuser.com/questions/267918", "https://superuser.com", "https://superuser.com/users/59/" ]
I have seen a similar issue. We solved this by running Word in Compatibility mode, as also suggested by Randolph Potter in the comments above. What worked for us was to choose "Windows XP Service Pack 3". Here is an article from How To Geek on changing Compatibility mode: <http://www.howtogeek.com/howto/10436/using-pr...
From skimming the web it seems there's a fair number of people out there using Office 2002 with minimal problems on Windows 7 (most issues seem related to Outlook). I think it's going to be fairly natural of Microsoft to mark the compatibility status of such an old version of Office with the latest Windows as ambiguous...
267,918
We are currently using Office 2002 on Windows XP but will be moving our users to Windows 7 in the next few months. Part of our business is writing research documents so there is heavy use of Word (including an in-house bespoke templating add-in). The Windows 7 test user group have found that Word 2002 documents which ...
2011/04/07
[ "https://superuser.com/questions/267918", "https://superuser.com", "https://superuser.com/users/59/" ]
Run Microsoft Word in Compatibility Mode and choose an older version of Windows. This fixed the problem for me when running Office 2003 with Windows 8.
From skimming the web it seems there's a fair number of people out there using Office 2002 with minimal problems on Windows 7 (most issues seem related to Outlook). I think it's going to be fairly natural of Microsoft to mark the compatibility status of such an old version of Office with the latest Windows as ambiguous...
267,918
We are currently using Office 2002 on Windows XP but will be moving our users to Windows 7 in the next few months. Part of our business is writing research documents so there is heavy use of Word (including an in-house bespoke templating add-in). The Windows 7 test user group have found that Word 2002 documents which ...
2011/04/07
[ "https://superuser.com/questions/267918", "https://superuser.com", "https://superuser.com/users/59/" ]
I have seen a similar issue. We solved this by running Word in Compatibility mode, as also suggested by Randolph Potter in the comments above. What worked for us was to choose "Windows XP Service Pack 3". Here is an article from How To Geek on changing Compatibility mode: <http://www.howtogeek.com/howto/10436/using-pr...
Run Microsoft Word in Compatibility Mode and choose an older version of Windows. This fixed the problem for me when running Office 2003 with Windows 8.
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you are using python-mode.el you can try to change `py-which-shell`. In order to do this on a per-file basis you can put ``` # -*- py-which-shell: "python3"; -*- ``` at the first line of your file - or at the second line if the first line starts with `#!`. Another choice is to put ``` # Local Variables: # py-whi...
The answer is yes. If you can distinguish Python 2 from Python 3, then it is a Simple Matter Of Programming to get emacs to do what you want. ``` (define run-python (&optional buffer) (with-current-buffer (or buffer (current-buffer)) (if (is-python3-p) (run-python3) (run-python2))...
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The answer is yes. If you can distinguish Python 2 from Python 3, then it is a Simple Matter Of Programming to get emacs to do what you want. ``` (define run-python (&optional buffer) (with-current-buffer (or buffer (current-buffer)) (if (is-python3-p) (run-python3) (run-python2))...
With current `python-mode.el` shebang is honored. Interactively open a Python shell just with ``` M-x pythonVERSION M-x python ``` will call the installed default. <http://launchpad.net/python-mode>
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you are using python-mode.el you can try to change `py-which-shell`. In order to do this on a per-file basis you can put ``` # -*- py-which-shell: "python3"; -*- ``` at the first line of your file - or at the second line if the first line starts with `#!`. Another choice is to put ``` # Local Variables: # py-whi...
My comment on [this answer](https://stackoverflow.com/questions/501626/both-python-2-and-3-in-emacs/502422#502422). I wrote /t/min.py which will run fine in python3 but not in python2 (dictionary comprehension works in python3) Contents of /t/min.py ``` #!/usr/bin/python3 # -*- py-python-command: "/usr/bin/python3"...
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you are using python-mode.el you can try to change `py-which-shell`. In order to do this on a per-file basis you can put ``` # -*- py-which-shell: "python3"; -*- ``` at the first line of your file - or at the second line if the first line starts with `#!`. Another choice is to put ``` # Local Variables: # py-whi...
regarding jrockway's comment: ``` (defun is-python3-p () "Check whether we're running python 2 or 3." (setq mystr (first (split-string (buffer-string) "\n" t))) (with-temp-buffer (insert mystr) (goto-char 0) (search-forward "python3" nil t))) (defun run-python () "Call the python interpreter." (inter...
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you are using python-mode.el you can try to change `py-which-shell`. In order to do this on a per-file basis you can put ``` # -*- py-which-shell: "python3"; -*- ``` at the first line of your file - or at the second line if the first line starts with `#!`. Another choice is to put ``` # Local Variables: # py-whi...
With current `python-mode.el` shebang is honored. Interactively open a Python shell just with ``` M-x pythonVERSION M-x python ``` will call the installed default. <http://launchpad.net/python-mode>
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
My comment on [this answer](https://stackoverflow.com/questions/501626/both-python-2-and-3-in-emacs/502422#502422). I wrote /t/min.py which will run fine in python3 but not in python2 (dictionary comprehension works in python3) Contents of /t/min.py ``` #!/usr/bin/python3 # -*- py-python-command: "/usr/bin/python3"...
With current `python-mode.el` shebang is honored. Interactively open a Python shell just with ``` M-x pythonVERSION M-x python ``` will call the installed default. <http://launchpad.net/python-mode>
501,626
I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well. Here is how the different versions are set up in /usr/bin: ``` python -> python2.6* python2 -> python2.6* python2.6* python3 -> python3.0* python3.0* ``` Is there an...
2009/02/01
[ "https://Stackoverflow.com/questions/501626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
regarding jrockway's comment: ``` (defun is-python3-p () "Check whether we're running python 2 or 3." (setq mystr (first (split-string (buffer-string) "\n" t))) (with-temp-buffer (insert mystr) (goto-char 0) (search-forward "python3" nil t))) (defun run-python () "Call the python interpreter." (inter...
With current `python-mode.el` shebang is honored. Interactively open a Python shell just with ``` M-x pythonVERSION M-x python ``` will call the installed default. <http://launchpad.net/python-mode>
45,864,260
I have been stuck with this error since a week now, i have googled and tried every possible solution including the ones on Stackoverflow. This is my code: ``` <?php require("phpsqlsearch_dbinfo.php"); // Get parameters from URL $center_lat = $_GET["lat"]; $center_lng = $_GET["lng"]; $radius = $_GET["radius"]; // Start...
2017/08/24
[ "https://Stackoverflow.com/questions/45864260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5058637/" ]
There isn't enough to go on to actually solve your problem. You can use the following to ensure that you are getting the input you expect. ``` $required = ['lat', 'lng']; $missing = array_diff($required, $_GET); if ( ! empty($missing) ) { $missingString = implode(',', $missing); die("missing {$missingString}")...
That's a browser message, not a PHP error\_log message. Something has output before the XML. Most likely a PHP warning or notice. Suppress that rubbish! For the best error logging experience, set `error_reporting` to -1, turn `display_errors` off, and set a custom `error_log`. Then in the terminal, type `tail -f /p...
206,940
NOTE: I see many similar topics on this, but I've tried all their suggestions, and nothing has worked. ***THE MAIN DIFFERENCE SEEMS TO BE: I always get a black screen with a blinking cursor, while others seem to get through the boot-up and see distorted graphics or just their wallpaper.*** **ISSUE:** > > I do a cle...
2012/10/26
[ "https://askubuntu.com/questions/206940", "https://askubuntu.com", "https://askubuntu.com/users/101207/" ]
Install the linux sources and headers. These are required to build the driver. ``` sudo apt-get install linux-source linux-headers-3.5.0-17-generic ``` Then unistall any nvidia drivers you have installed. Then reinstall the nvidia driver ``` sudo apt-get install nvidia-current ``` Then restart the computer ``` s...
Note: This issue has been resolved by way of a hardware replacement, a solution (in regards to software) was not reached. This answer is intended to save people (with similar circumstances) time. On my system, and being fairly new to Linux...I could not get any NVIDIA drivers to work, after trying two different cards. ...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
You are playing well above your pay grade. Let your manager manage your colleague. An outcome like "the project got finished but wasn't great, one of the interns worked hard but the other was a nightmare" is common as dirt in this industry. Do the tasks your manager has assigned to you. When you're out of tasks, go a...
* Inform you manager about the Verbatim copies of code from the Internet, and tell that you see a potential legal liability there * Explicitly state in commit messages which of his commits you fixed * Your manager listened to you once, so the next time a huge and messy commit comes which breaks something working and co...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
Since you are using a versioning system: Fix one bug in his code and check the fix into the versioning system. Then fix another bug and check the fix into the versioning system. And so on. So when you need evidence you point your boss to the versioning system, which contains your name 99 times and his name once. (In a...
* Inform you manager about the Verbatim copies of code from the Internet, and tell that you see a potential legal liability there * Explicitly state in commit messages which of his commits you fixed * Your manager listened to you once, so the next time a huge and messy commit comes which breaks something working and co...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
* Inform you manager about the Verbatim copies of code from the Internet, and tell that you see a potential legal liability there * Explicitly state in commit messages which of his commits you fixed * Your manager listened to you once, so the next time a huge and messy commit comes which breaks something working and co...
As other recommend, I would ask somebody higher up if I could start CCing him in all your exchanges besides documenting everything in a source code system. Obviously, if you working for the two, your colleague does not need to do it. However, it seems a bit odd he taking such a relaxed stance of missing so many hours...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
You are playing well above your pay grade. Let your manager manage your colleague. An outcome like "the project got finished but wasn't great, one of the interns worked hard but the other was a nightmare" is common as dirt in this industry. Do the tasks your manager has assigned to you. When you're out of tasks, go a...
Since you are using a versioning system: Fix one bug in his code and check the fix into the versioning system. Then fix another bug and check the fix into the versioning system. And so on. So when you need evidence you point your boss to the versioning system, which contains your name 99 times and his name once. (In a...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
You are playing well above your pay grade. Let your manager manage your colleague. An outcome like "the project got finished but wasn't great, one of the interns worked hard but the other was a nightmare" is common as dirt in this industry. Do the tasks your manager has assigned to you. When you're out of tasks, go a...
As other recommend, I would ask somebody higher up if I could start CCing him in all your exchanges besides documenting everything in a source code system. Obviously, if you working for the two, your colleague does not need to do it. However, it seems a bit odd he taking such a relaxed stance of missing so many hours...
116,283
I am an editor for a trade publication with 40 years of experience in journalism. The company wants me to take a job on the events side, writing content, helping with organization, moderating panels, archiving video. They haven’t called it a promotion but it would clearly be more intense work and involve traveling to c...
2018/07/21
[ "https://workplace.stackexchange.com/questions/116283", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/90496/" ]
Since you are using a versioning system: Fix one bug in his code and check the fix into the versioning system. Then fix another bug and check the fix into the versioning system. And so on. So when you need evidence you point your boss to the versioning system, which contains your name 99 times and his name once. (In a...
As other recommend, I would ask somebody higher up if I could start CCing him in all your exchanges besides documenting everything in a source code system. Obviously, if you working for the two, your colleague does not need to do it. However, it seems a bit odd he taking such a relaxed stance of missing so many hours...
74,615,696
So i updated the values of a dictionary into percentage by multiplying by 100. Now i want to replace the initial decimal with the updated results, but instead, i am getting each value replaced by the whole new values. ``` job_role_overtime_att_rate = {'Healthcare Representative Overtime Rate' : 2/37, ' Human Resources...
2022/11/29
[ "https://Stackoverflow.com/questions/74615696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10289706/" ]
You can loop through the `dict.items()` function to loop through the key and the value. ``` job_role_overtime_att_rate = { 'Healthcare Representative Overtime Rate': 0.05405405405405406, 'Human Resources Overtime Rate': 0.38461538461538464, 'Laboratory Technician Total': 0.5, 'Manager Total': 0.148148148148148...
I'm not sure what your point is, but you loop over values and in the inner loop again over values. So for each value you loop over all values, thus it's expected that you will get **n^2** prints for dictionary with **n** values. If I guess right this code does what you need: ``` for key, value in job_role_overtime_at...
41,888,489
I am beginner to git and trying some hands on with it on Windows. I made a repository on Bitbucket. Added Three files ( SAY A , B , C ) to the master branch via Bitbucket online . Now i have folder on my local PC , where i used `git fetch` for getting those three file. Three files are now in local repository. Now , ...
2017/01/27
[ "https://Stackoverflow.com/questions/41888489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2218640/" ]
Use "git pull --rebase" to synchronize your changes to local from remote. Here is answer for git fetch git fetch really only downloads new data from a remote repository - but it doesn't integrate any of this new data into your working files. Fetch is great for getting a fresh view on all the things that happened in a ...
Make sure you add all files and commit. `git add . && git commit -m "<your_message>"` also check any setting at coc-setting.json
41,888,489
I am beginner to git and trying some hands on with it on Windows. I made a repository on Bitbucket. Added Three files ( SAY A , B , C ) to the master branch via Bitbucket online . Now i have folder on my local PC , where i used `git fetch` for getting those three file. Three files are now in local repository. Now , ...
2017/01/27
[ "https://Stackoverflow.com/questions/41888489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2218640/" ]
As you mentioned, [`git fetch`](https://git-scm.com/docs/git-fetch) simply fetches the changes from the remote to your local machine. It doesn't apply them. `git checkout MY_REMOTE/master` applies the fetched changes to your local copy of the files. **Warning**: If your local files have been modified (and not commited...
Make sure you add all files and commit. `git add . && git commit -m "<your_message>"` also check any setting at coc-setting.json
41,888,489
I am beginner to git and trying some hands on with it on Windows. I made a repository on Bitbucket. Added Three files ( SAY A , B , C ) to the master branch via Bitbucket online . Now i have folder on my local PC , where i used `git fetch` for getting those three file. Three files are now in local repository. Now , ...
2017/01/27
[ "https://Stackoverflow.com/questions/41888489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2218640/" ]
Git's `fetch` does not get files—well, not directly anyway. To some extent, Git doesn't care that much about files at all. What Git cares about are *commits*. Before we visit this idea any further, though, we should probably review some basic Git definitions. What's in a repository ====================== A *Git repo...
Make sure you add all files and commit. `git add . && git commit -m "<your_message>"` also check any setting at coc-setting.json
20,796,698
I have a table named "accounts" and it has two fields "month" and "amount". I like to get highest month records to display front page ``` eg: month amount 10/2013 -> 12 12/2013 -> 20 12/2013 -> 21 11/2013 -> 10 ``` how could i filter highest month all data , I used **time stamp format** to store date
2013/12/27
[ "https://Stackoverflow.com/questions/20796698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3099298/" ]
``` SELECT * FROM accounts WHERE month = (SELECT MAX(month) FROM accounts) ```
SELECT \* FROM accounts ORDER BY month DESC may work.
8,108,654
I am trying to find out maximum value in a hash and corresponding key to that maximum value. My hash looks like ``` %hash = ( bob => "4.9", gita => "3.9 , 6.8", diu => "3.0", ); ``` Now I want to find the maximum value in that hash with the key it belongs. Output needed is ``` gita 6.8 ``` I am ...
2011/11/13
[ "https://Stackoverflow.com/questions/8108654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009157/" ]
You need to first associate each key with the highest of the values corresponding to it in the original `%hash` and then find the key associated with the highest value. ``` #!/usr/bin/env perl use strict; use warnings; use List::Util qw( max ); my %hash = ( bob => [ 4.9 ], gita => [ 3.9, 6.8 ], diu => ...
``` #!/usr/bin/perl use warnings; use strict; my %hash = ( bob => [ 4.9 ], gita => [ 3.9, 6.8 ], diu => [ 3.0 ], ); my $max_key; my $max_val=0; foreach my $key (keys %hash) { foreach my $val ( @{$hash{$key}} ) { ($max_key, $max_val) = ($key, $val) if $val > $max_val; } } pr...
8,108,654
I am trying to find out maximum value in a hash and corresponding key to that maximum value. My hash looks like ``` %hash = ( bob => "4.9", gita => "3.9 , 6.8", diu => "3.0", ); ``` Now I want to find the maximum value in that hash with the key it belongs. Output needed is ``` gita 6.8 ``` I am ...
2011/11/13
[ "https://Stackoverflow.com/questions/8108654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009157/" ]
You need to first associate each key with the highest of the values corresponding to it in the original `%hash` and then find the key associated with the highest value. ``` #!/usr/bin/env perl use strict; use warnings; use List::Util qw( max ); my %hash = ( bob => [ 4.9 ], gita => [ 3.9, 6.8 ], diu => ...
You got several good answers. Now a bad one (assuming you fix the decimal separator in the hash): ``` my %hash = (bob => "4.9", gita =>"3.9 , 6.8", diu => "3.0", ); my $max = (map{join" ",@$_[0,1]}sort{$b->[1]-$a->[1]}map{[$_,sort{$b-$a}split(/ , /,$hash{$_})]}keys%hash)[0]; print...
8,108,654
I am trying to find out maximum value in a hash and corresponding key to that maximum value. My hash looks like ``` %hash = ( bob => "4.9", gita => "3.9 , 6.8", diu => "3.0", ); ``` Now I want to find the maximum value in that hash with the key it belongs. Output needed is ``` gita 6.8 ``` I am ...
2011/11/13
[ "https://Stackoverflow.com/questions/8108654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009157/" ]
A hash has only a single key and a single value, and each key must be unique. In your original problem you have this: ``` %hash = ( bob => "4.9", gita =>"3.9 , 6,8", diu => "3.0", ); ``` Well, `gita` can't have two values. Nor, can you have two keys in your hash equal to `gita`. Thus, you can't use a simple...
``` #!/usr/bin/perl use warnings; use strict; my %hash = ( bob => [ 4.9 ], gita => [ 3.9, 6.8 ], diu => [ 3.0 ], ); my $max_key; my $max_val=0; foreach my $key (keys %hash) { foreach my $val ( @{$hash{$key}} ) { ($max_key, $max_val) = ($key, $val) if $val > $max_val; } } pr...
8,108,654
I am trying to find out maximum value in a hash and corresponding key to that maximum value. My hash looks like ``` %hash = ( bob => "4.9", gita => "3.9 , 6.8", diu => "3.0", ); ``` Now I want to find the maximum value in that hash with the key it belongs. Output needed is ``` gita 6.8 ``` I am ...
2011/11/13
[ "https://Stackoverflow.com/questions/8108654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009157/" ]
A hash has only a single key and a single value, and each key must be unique. In your original problem you have this: ``` %hash = ( bob => "4.9", gita =>"3.9 , 6,8", diu => "3.0", ); ``` Well, `gita` can't have two values. Nor, can you have two keys in your hash equal to `gita`. Thus, you can't use a simple...
You got several good answers. Now a bad one (assuming you fix the decimal separator in the hash): ``` my %hash = (bob => "4.9", gita =>"3.9 , 6.8", diu => "3.0", ); my $max = (map{join" ",@$_[0,1]}sort{$b->[1]-$a->[1]}map{[$_,sort{$b-$a}split(/ , /,$hash{$_})]}keys%hash)[0]; print...
424,629
*Акакию Акакиевичу забралось уже за пятьдесят лет. Стало-быть, если бы он и мог назваться молодым человеком, то разве только относительно, то есть в отношении к тому, кому уже было семьдесят лет.* Не могли бы Вы проверить, я правильно понимаю: *если бы он и мог назваться молодым человеком* - придаточное условия *то...
2016/06/17
[ "https://rus.stackexchange.com/questions/424629", "https://rus.stackexchange.com", "https://rus.stackexchange.com/users/177434/" ]
Вы в целом понимаете правильно и с чисто грамматических позиций вполне достаточно. Но семантика, тут не совсем обычная для современного языка. Если можно так выразиться, то это абсолютно-условное предложение, т. е. условие придаточного необходимое и достаточное, абсолютно достаточное, оно реально и возможно, а все напо...
Акакию Акакиевичу забралось уже за пятьдесят лет. Стало-быть, если бы он и мог назваться молодым человеком, **то (мог бы называться) разве только относительно**, то есть в отношении к тому, кому уже было семьдесят лет. Да, главное предложение является неполным, содержание восстанавливается из предыдущего текста.
1,208,381
I am wiring a startup script JavaScript function on Page\_Load to fire like so: ``` ScriptManager.RegisterStartupScript(Me, GetType(Page), "page_init", "page_init();", True) ``` This function calls a couple of different functions to setup the page. One of those functions checks the `document.readyState` and makes su...
2009/07/30
[ "https://Stackoverflow.com/questions/1208381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37064/" ]
In order for the ReadyState to flip over to Complete, the server side has to terminate the connection. If you look at your code you probably aren't calling Response.End AFTER the BinaryWrite or WriteToStream method. This is required in order to flush the response and alert the client that everything has been transfer...
Have you tried calling `Response.Close()` instead of or before `Response.End()`? After comparing them in Reflector, it would appear the two are different.
1,208,381
I am wiring a startup script JavaScript function on Page\_Load to fire like so: ``` ScriptManager.RegisterStartupScript(Me, GetType(Page), "page_init", "page_init();", True) ``` This function calls a couple of different functions to setup the page. One of those functions checks the `document.readyState` and makes su...
2009/07/30
[ "https://Stackoverflow.com/questions/1208381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37064/" ]
In order for the ReadyState to flip over to Complete, the server side has to terminate the connection. If you look at your code you probably aren't calling Response.End AFTER the BinaryWrite or WriteToStream method. This is required in order to flush the response and alert the client that everything has been transfer...
when writing directly into the stream, you should set the content-length http header to the correct size of the binary data you are sending. It might also be a problem with the content-type (multipart/...) which might confuse the browser.
1,208,381
I am wiring a startup script JavaScript function on Page\_Load to fire like so: ``` ScriptManager.RegisterStartupScript(Me, GetType(Page), "page_init", "page_init();", True) ``` This function calls a couple of different functions to setup the page. One of those functions checks the `document.readyState` and makes su...
2009/07/30
[ "https://Stackoverflow.com/questions/1208381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37064/" ]
I just found out the issue is with an IFrame, which I apologize was a detail left out of the question. More information can be found [here](http://www.atalasoft.com/cs/blogs/jake/archive/2009/06/18/events-to-expect-when-dynamically-loading-iframes-in-javascript.aspx): > > IE (surprisingly gets my vote of > approva...
In order for the ReadyState to flip over to Complete, the server side has to terminate the connection. If you look at your code you probably aren't calling Response.End AFTER the BinaryWrite or WriteToStream method. This is required in order to flush the response and alert the client that everything has been transfer...
1,208,381
I am wiring a startup script JavaScript function on Page\_Load to fire like so: ``` ScriptManager.RegisterStartupScript(Me, GetType(Page), "page_init", "page_init();", True) ``` This function calls a couple of different functions to setup the page. One of those functions checks the `document.readyState` and makes su...
2009/07/30
[ "https://Stackoverflow.com/questions/1208381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37064/" ]
I just found out the issue is with an IFrame, which I apologize was a detail left out of the question. More information can be found [here](http://www.atalasoft.com/cs/blogs/jake/archive/2009/06/18/events-to-expect-when-dynamically-loading-iframes-in-javascript.aspx): > > IE (surprisingly gets my vote of > approva...
Have you tried calling `Response.Close()` instead of or before `Response.End()`? After comparing them in Reflector, it would appear the two are different.
1,208,381
I am wiring a startup script JavaScript function on Page\_Load to fire like so: ``` ScriptManager.RegisterStartupScript(Me, GetType(Page), "page_init", "page_init();", True) ``` This function calls a couple of different functions to setup the page. One of those functions checks the `document.readyState` and makes su...
2009/07/30
[ "https://Stackoverflow.com/questions/1208381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37064/" ]
I just found out the issue is with an IFrame, which I apologize was a detail left out of the question. More information can be found [here](http://www.atalasoft.com/cs/blogs/jake/archive/2009/06/18/events-to-expect-when-dynamically-loading-iframes-in-javascript.aspx): > > IE (surprisingly gets my vote of > approva...
when writing directly into the stream, you should set the content-length http header to the correct size of the binary data you are sending. It might also be a problem with the content-type (multipart/...) which might confuse the browser.
28,104,439
i have this code. and i have no idea why the while loop is not working. i can't retrieve the data from course db. please help **i tried everything but i cant figure out how.** ``` if(isset($_POST['enroll'])){ $n = 0; foreach($_POST['trainings'] as $textbox){ $strpicture = $_POST['strpicture'][$n]; $stridnu...
2015/01/23
[ "https://Stackoverflow.com/questions/28104439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348561/" ]
You have a typo in your Insert statement: ``` INSERT INTO tms_ml (strpicture,stridnumber,strfullname,strtraining) VALUES ('$strpicture','$stridnumber',$strfullname','$strtraining') ``` Missing quote at `$strfullname`. ``` INSERT INTO tms_ml (strpicture,stridnumber,strfullname,strtraining) VALUES ('$strpicture',...
First off; a foreach in php has an 'index'; which could be determined like so: ``` foreach ($items as $key => $item) { } ``` The key is your index (can be named whatever you like) thought that would be a trick worth knowing for you... i.e you don't need to use the $n variable and increment it. Secondly:...
28,104,439
i have this code. and i have no idea why the while loop is not working. i can't retrieve the data from course db. please help **i tried everything but i cant figure out how.** ``` if(isset($_POST['enroll'])){ $n = 0; foreach($_POST['trainings'] as $textbox){ $strpicture = $_POST['strpicture'][$n]; $stridnu...
2015/01/23
[ "https://Stackoverflow.com/questions/28104439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348561/" ]
You have a typo in your Insert statement: ``` INSERT INTO tms_ml (strpicture,stridnumber,strfullname,strtraining) VALUES ('$strpicture','$stridnumber',$strfullname','$strtraining') ``` Missing quote at `$strfullname`. ``` INSERT INTO tms_ml (strpicture,stridnumber,strfullname,strtraining) VALUES ('$strpicture',...
According to the documentation here. <http://php.net/manual/en/function.mysql-fetch-array.php> You need to add the result\_type: ``` while($record = mysql_fetch_array($resultcoursequery, MYSQL_BOTH)){ echo $sessionnum= $record['strsessnum']; }; ```
71,553,245
Is it possible to see other containers which are running in the same host from the intermediate containers which would be created by `Dockerfile`? I need to connect to my dockerized database, it is already up and running. From my `Dockerfile` How can I connect to it? is it possible or not? `postgres.docker-compose.ym...
2022/03/21
[ "https://Stackoverflow.com/questions/71553245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8784518/" ]
To elaborate on the comments in the previous answer: This is our Postgres docker-compose.yml: ```yaml version: '3.9' services: db: image: postgres:latest restart: "no" container_name: MyDb volumes: - ./database:/var/lib/postgresql/data ports: - "8002:5432" environment: POS...
In your first docker-compose you have the networks setup not as a external network. In the second docker-compose the network with the same name is setup as an external network. I don't know if that works. But you might make the first one also external. You could inspect the network to see of all containers (postgres a...
71,553,245
Is it possible to see other containers which are running in the same host from the intermediate containers which would be created by `Dockerfile`? I need to connect to my dockerized database, it is already up and running. From my `Dockerfile` How can I connect to it? is it possible or not? `postgres.docker-compose.ym...
2022/03/21
[ "https://Stackoverflow.com/questions/71553245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8784518/" ]
To elaborate on the comments in the previous answer: This is our Postgres docker-compose.yml: ```yaml version: '3.9' services: db: image: postgres:latest restart: "no" container_name: MyDb volumes: - ./database:/var/lib/postgresql/data ports: - "8002:5432" environment: POS...
> > Is it possible to see other containers which are running in the same host from the intermediate containers which would be created by Dockerfile? > > > No. (\*) The biggest technical challenge is that image builds run on the ["default bridge network"](https://docs.docker.com/network/bridge/#use-the-default-bri...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
An alternative would be to show clearly that particular answers were written **before** the original question was edited, for example: > > This answer is for a previous version of this question. *Click here* to > notify the user if their answer is no longer relevant. > > > Another option is to display an alert t...
This seems like a highly requested feature, and still doesn't have enough ROI. **Why?** 1. **We like notification, not spam**. which one of those two is more likely to happen? well it depends on the quality of the feature. Users with thousands of posts may have to either spend a lot of time to manage subscriptions,...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
An alternative would be to show clearly that particular answers were written **before** the original question was edited, for example: > > This answer is for a previous version of this question. *Click here* to > notify the user if their answer is no longer relevant. > > > Another option is to display an alert t...
Simply sending everyone a reminder each time a question is updated, will be a cure that is worse than the original problem. Most of the time I answer a question, it gets edited later (often several times). And of these edits, 9 out of 10 will not invalidate the existing answers. All in all I agree that it is annoying ...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
I've had similar [experiences to Cletus](https://meta.stackexchange.com/questions/2322/notify-us-when-the-question-has-been-edited-after-posting-an-answer/2324#2324) where the answer I posted was the first and correct, but over time the question changes and all of a sudden you can get hammered because you were unable t...
I currently have a large number of posts bookmarked so I can monitor them. In each case, I have posted an answer based on what I thought the OP wanted. However, the question was interpreted differently by other posters. Of course, I could have waited for the OP to clarify the question before answering. However, I have...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
An alternative would be to show clearly that particular answers were written **before** the original question was edited, for example: > > This answer is for a previous version of this question. *Click here* to > notify the user if their answer is no longer relevant. > > > Another option is to display an alert t...
Wrong solution because you are trying to address the wrong problem. Changing the question out from under good answers is simply **rude** and should be discouraged. I wrote an [expansive version of this argument](https://meta.stackexchange.com/questions/49821/when-editing-the-question-option-to-notify-all-answer-autho...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
This is a good suggestion. I've been downvoted before simply because the question was edited changing the validity of my answer. Most people tend to realize this is whats happened but some don't. It would be good if there were such a notification so you could modify or delete your answer, as appropriate.
I've had similar [experiences to Cletus](https://meta.stackexchange.com/questions/2322/notify-us-when-the-question-has-been-edited-after-posting-an-answer/2324#2324) where the answer I posted was the first and correct, but over time the question changes and all of a sudden you can get hammered because you were unable t...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
An alternative would be to show clearly that particular answers were written **before** the original question was edited, for example: > > This answer is for a previous version of this question. *Click here* to > notify the user if their answer is no longer relevant. > > > Another option is to display an alert t...
I currently have a large number of posts bookmarked so I can monitor them. In each case, I have posted an answer based on what I thought the OP wanted. However, the question was interpreted differently by other posters. Of course, I could have waited for the OP to clarify the question before answering. However, I have...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
I've had similar [experiences to Cletus](https://meta.stackexchange.com/questions/2322/notify-us-when-the-question-has-been-edited-after-posting-an-answer/2324#2324) where the answer I posted was the first and correct, but over time the question changes and all of a sudden you can get hammered because you were unable t...
This seems like a highly requested feature, and still doesn't have enough ROI. **Why?** 1. **We like notification, not spam**. which one of those two is more likely to happen? well it depends on the quality of the feature. Users with thousands of posts may have to either spend a lot of time to manage subscriptions,...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
Wrong solution because you are trying to address the wrong problem. Changing the question out from under good answers is simply **rude** and should be discouraged. I wrote an [expansive version of this argument](https://meta.stackexchange.com/questions/49821/when-editing-the-question-option-to-notify-all-answer-autho...
This seems like a highly requested feature, and still doesn't have enough ROI. **Why?** 1. **We like notification, not spam**. which one of those two is more likely to happen? well it depends on the quality of the feature. Users with thousands of posts may have to either spend a lot of time to manage subscriptions,...
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
An alternative would be to show clearly that particular answers were written **before** the original question was edited, for example: > > This answer is for a previous version of this question. *Click here* to > notify the user if their answer is no longer relevant. > > > Another option is to display an alert t...
We are not going to implement automatic notifications on edits after you post an answer. If you would like to opt-in to notifications for this, please use the [follow post](https://meta.stackexchange.com/q/345661/51) feature.
2,322
Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but *...
2009/07/04
[ "https://meta.stackexchange.com/questions/2322", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44853/" ]
This is a good suggestion. I've been downvoted before simply because the question was edited changing the validity of my answer. Most people tend to realize this is whats happened but some don't. It would be good if there were such a notification so you could modify or delete your answer, as appropriate.
We are not going to implement automatic notifications on edits after you post an answer. If you would like to opt-in to notifications for this, please use the [follow post](https://meta.stackexchange.com/q/345661/51) feature.
15,347,973
I have a list of length 30,000 with data frames in it that have a x and y column. The data frame is sparse, so not each value of x exists. All x values are between 1 and 200. I want to convert this list to a single data frame which has for each possible x value a column and each row should represent all y values of a ...
2013/03/11
[ "https://Stackoverflow.com/questions/15347973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55070/" ]
Here's an answer that takes reasonable amount of time: ``` # function to create dummy data my_sampler <- function(idx) { x <- sample(200, sample(50:100, 1)) y <- sample(length(x)) data.frame(x,y) } # create list of 30000 data.frames in.d <- lapply(1:30000, function(x) my_sampler(x)) ``` **Solution:** Us...
I would use a `data.table` solution , something like this : ``` whaledatas <- lapply(1:30000,function(x)data.frame(x=1:200,y=1:200)) library(data.table) dtt <- rbindlist(whaledatas) ```
15,347,973
I have a list of length 30,000 with data frames in it that have a x and y column. The data frame is sparse, so not each value of x exists. All x values are between 1 and 200. I want to convert this list to a single data frame which has for each possible x value a column and each row should represent all y values of a ...
2013/03/11
[ "https://Stackoverflow.com/questions/15347973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55070/" ]
Here's an answer that takes reasonable amount of time: ``` # function to create dummy data my_sampler <- function(idx) { x <- sample(200, sample(50:100, 1)) y <- sample(length(x)) data.frame(x,y) } # create list of 30000 data.frames in.d <- lapply(1:30000, function(x) my_sampler(x)) ``` **Solution:** Us...
First, here is a small example of a list of data frames: ``` # create some sample data whaledatas <- list( data.frame(x=1:3, y=11:13), data.frame(x=6:10, y=16:20) ) ``` I think this does the same thing as the `for` loop in the original question? ``` # combine into single data frame whaledatas.all <- do.call...
627
So how much reputation you need before you can create tags? How to discuss whether or not a `tag` is valid? Maybe I think it is but other members of this site will find it is not. In this particular case: I would like to create the tag `mercy` because mercy is one of the qualities of the Lord - He is very merciful ...
2016/09/22
[ "https://hinduism.meta.stackexchange.com/questions/627", "https://hinduism.meta.stackexchange.com", "https://hinduism.meta.stackexchange.com/users/3294/" ]
According to [this](https://hinduism.stackexchange.com/help/privileges) link in Help Center pages on this site i.e. Hinduism SE , One should have minimum of 150 reputation , to avail the privilege of creating and adding tags to the site. Also please check out rest the Help section to know more about other privileges an...
> > You need 1500 reputation now to create new tags. > > > Keep in mind that many seemingly obvious tags may be named different > than you expect, to avoid ambiguity. For example, access seems like it > should be an obvious tag. However, it is not used because it was often > attached to questions covering both se...
3,372,668
I want to declare a class c++ style in a objective-c header, but i get an error "error: expected '=', ',', ';', 'asm' or '\_\_ attribute \_\_' before 'CPPClass'" Here is code from the .h file. ``` class CPPClass; @interface OBJCClass : NSObject { CPPClass* m_pCPPObject; } @end ``` if i implement it ob...
2010/07/30
[ "https://Stackoverflow.com/questions/3372668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/406842/" ]
Declare the cpp class only when compiling C++. Use a typedef to void otherwise: ``` #ifdef __cplusplus class CPPClass; #else typedef void CPPClass; #endif ``` This way, non C++ compilation units see the instance variable as a void pointer. Since all pointers are of the same size, the type of the instance variable do...
Rename any files that include it as having .mm extensions. This will tell the compiler to compile with the `-ObjC++` flag.
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Actually, the *Hunter x Hunter* wiki [addresses this](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_confusion), and is quite accurate in its assessment, though the references cite the wrong volumes (but correct chapters). > > There is considerable confusion about Alluka's gender. Two of Alluka's brothers,...
He is physically a male, and mentally female. It is the reason why Killua referred to him as "she". This is stated in the databooks and also by the canon writers. So in other words, Alluka is transgendered. Though, I believe people have the right to think of him as whatever they like, male or female.
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Actually, the *Hunter x Hunter* wiki [addresses this](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_confusion), and is quite accurate in its assessment, though the references cite the wrong volumes (but correct chapters). > > There is considerable confusion about Alluka's gender. Two of Alluka's brothers,...
Alluka is male. He just dresses like a girl. From [Alluka](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_Ambiguity) article on Hunter x Hunter Wiki (emphasis mine): > > There is conflicting information regarding Alluka's gender. > > > **The official data book lists Alluka's gender as male**, and two of...
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Actually, the *Hunter x Hunter* wiki [addresses this](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_confusion), and is quite accurate in its assessment, though the references cite the wrong volumes (but correct chapters). > > There is considerable confusion about Alluka's gender. Two of Alluka's brothers,...
I've always played with two theories: 1. It could be the case that the family refer to Alluka as male to distance themselves from her, denying the fact that she's female to dehumanize her, or to further disassociate her from the family in some way. 2. Or it could very well be that, as Alluka's exact origin is unknown,...
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Actually, the *Hunter x Hunter* wiki [addresses this](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_confusion), and is quite accurate in its assessment, though the references cite the wrong volumes (but correct chapters). > > There is considerable confusion about Alluka's gender. Two of Alluka's brothers,...
Here is my assumption: When Alluka was born, her mother didn't take care of her, she let the butlers to take care of her (like bathing her, etc), and because their mother always thought that all her children must be male, so she thinks that Alluka is male too, especially because she is cold to her and never bathe her, ...
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Alluka is male. He just dresses like a girl. From [Alluka](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_Ambiguity) article on Hunter x Hunter Wiki (emphasis mine): > > There is conflicting information regarding Alluka's gender. > > > **The official data book lists Alluka's gender as male**, and two of...
He is physically a male, and mentally female. It is the reason why Killua referred to him as "she". This is stated in the databooks and also by the canon writers. So in other words, Alluka is transgendered. Though, I believe people have the right to think of him as whatever they like, male or female.
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
I've always played with two theories: 1. It could be the case that the family refer to Alluka as male to distance themselves from her, denying the fact that she's female to dehumanize her, or to further disassociate her from the family in some way. 2. Or it could very well be that, as Alluka's exact origin is unknown,...
He is physically a male, and mentally female. It is the reason why Killua referred to him as "she". This is stated in the databooks and also by the canon writers. So in other words, Alluka is transgendered. Though, I believe people have the right to think of him as whatever they like, male or female.
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
Alluka is male. He just dresses like a girl. From [Alluka](http://hunterxhunter.wikia.com/wiki/Alluka_Zoldyck#Gender_Ambiguity) article on Hunter x Hunter Wiki (emphasis mine): > > There is conflicting information regarding Alluka's gender. > > > **The official data book lists Alluka's gender as male**, and two of...
Here is my assumption: When Alluka was born, her mother didn't take care of her, she let the butlers to take care of her (like bathing her, etc), and because their mother always thought that all her children must be male, so she thinks that Alluka is male too, especially because she is cold to her and never bathe her, ...
14,334
In the anime *Hunter x Hunter*, Alluka Zoldyck is considered as a girl by Killua, shown when they leave their estate and were accompanied by four butlers. Killua shouted to Gotoh and said that he needs a female butler to join them because Alluka is a girl. However, I am confused because Milluki address Alluka as a bro...
2014/10/08
[ "https://anime.stackexchange.com/questions/14334", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/2309/" ]
I've always played with two theories: 1. It could be the case that the family refer to Alluka as male to distance themselves from her, denying the fact that she's female to dehumanize her, or to further disassociate her from the family in some way. 2. Or it could very well be that, as Alluka's exact origin is unknown,...
Here is my assumption: When Alluka was born, her mother didn't take care of her, she let the butlers to take care of her (like bathing her, etc), and because their mother always thought that all her children must be male, so she thinks that Alluka is male too, especially because she is cold to her and never bathe her, ...
39,004,540
I'm trying to make a simple test in python, but I'm not able to figure it out how to accomplish the mocking process. This is the class and def code: ``` class FileRemoveOp(...) @apply_defaults def __init__( self, source_conn_keys, source_conn_id='conn_default', ...
2016/08/17
[ "https://Stackoverflow.com/questions/39004540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5335185/" ]
First it is very important to understand that you always need to Mock where it the thing you are trying to mock out is used as stated in the `unittest.mock` documentation. > > The basic principle is that you patch where an object is looked up, > which is not necessarily the same place as where it is defined. > > >...
I found that this simple solution works in python3: you can substitute a whole class before it is being imported for the first time. Say I have to mock class 'Manager' from real.manager ``` class MockManager: ... import real.manager real.manager.Manager = MockManager ``` It is possible to do this substitution i...
6,703,491
I am working with servlets. When my user logs in, my application is setting his userId and deviceId in a session variable. Some other part of my application now needs the list of online people and their userId/ deviceId. Note that a user may have simultaneous logins with 2 devices, so we have 2 deviceIds for the same ...
2011/07/15
[ "https://Stackoverflow.com/questions/6703491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/629768/" ]
Store this information also in HttpServletContext's attribute. This context is global per servlet and can be accsessible by all sessions. You even can do more. Using HttpSessionAttributeListener you can be notified every time the attribure is added, so if you want to create some kind of monitor application it may be m...
In addition to Alex's response. The header attribute you are looking for is user-agent. Following is the code snippet of accessing browser type from request. ((javax.servlet.http.HttpServletRequest)pageContext.getRequest()).getHeader("user-agent")
6,703,491
I am working with servlets. When my user logs in, my application is setting his userId and deviceId in a session variable. Some other part of my application now needs the list of online people and their userId/ deviceId. Note that a user may have simultaneous logins with 2 devices, so we have 2 deviceIds for the same ...
2011/07/15
[ "https://Stackoverflow.com/questions/6703491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/629768/" ]
Store this information also in HttpServletContext's attribute. This context is global per servlet and can be accsessible by all sessions. You even can do more. Using HttpSessionAttributeListener you can be notified every time the attribure is added, so if you want to create some kind of monitor application it may be m...
In addition to Alex and Suken's responses, assuming the user has a single session you could store the deviceId's in a Map: ``` String userAgent = (see Suken's response) String deviceId = request.getParameter("REQUEST_PARAMETER_DEVICE_ID"); Map<String, String> devices = request.getSession().getAttribute("SESSION_ATTRIB...
6,703,491
I am working with servlets. When my user logs in, my application is setting his userId and deviceId in a session variable. Some other part of my application now needs the list of online people and their userId/ deviceId. Note that a user may have simultaneous logins with 2 devices, so we have 2 deviceIds for the same ...
2011/07/15
[ "https://Stackoverflow.com/questions/6703491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/629768/" ]
In addition to Alex's response. The header attribute you are looking for is user-agent. Following is the code snippet of accessing browser type from request. ((javax.servlet.http.HttpServletRequest)pageContext.getRequest()).getHeader("user-agent")
In addition to Alex and Suken's responses, assuming the user has a single session you could store the deviceId's in a Map: ``` String userAgent = (see Suken's response) String deviceId = request.getParameter("REQUEST_PARAMETER_DEVICE_ID"); Map<String, String> devices = request.getSession().getAttribute("SESSION_ATTRIB...
7,667,588
On os x Lion (10.7.1), DiskImageMounter is the program used to open dmg files so that the user can install new programs. When I try to open images on my system attached to my home network they do not open. When I connect to the tethered network from my cell phone I can open them using the mac utility. What is wrong wit...
2011/10/05
[ "https://Stackoverflow.com/questions/7667588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/629014/" ]
In this line here: ``` my $scrubbed_hash = map { defined $hash_ref->{$_} ? ($_ => $hash_ref->{$_}) : () } keys %{$hash_ref}; ``` You are assigning a list from `map` into the scalar `$scrubbed_hash`. `map` in scalar context will return the number of elements in the list (10). Rather than assigning to a scalar, as...
Try this: ``` my %scrubbed_hash = map { $_ => $hash_ref->{ $_ } } grep { defined $hash_ref->{$_} } keys %{$hash_ref}; ```
4,492,388
I was hoping someone can help me with this. I have been running myself crazy with this. I have a situation where I load the DataTables grid (awesome piece by the way!) and all is great. Then I go to search and I run into problems. The data being populated in the grid is coming from two different database tables (which...
2010/12/20
[ "https://Stackoverflow.com/questions/4492388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/483287/" ]
If you are getting data from the server for the DataTables plugin, you have to set bServerSide to true, set the sAjaxSource to the appropriate URL, and ideally configure fnServerData if you need to do any callbacks. If you use server-side processing, all sorting, filtering, and paging needs to be handled by you on the...
For the benefit of all who would refer this question, here is what I have implemented. **Client Side (JavaScript)** Execute fnFilter upon pressing Enter key. ``` $(tableId + " thead input").keypress( function () { if (event.which == 13) { event.preventDefault(); oTable.fnFilter( this.value, $("thead input"...
39,871
I've started to teach myself how to play the piano, and one of the difficulties I've found is trying to get both hands to do things at once. I either forget one hand entirely, or have one hand trying to mimic the other. This reminded me of many years ago when I was taught to play the viola. For many weeks, we did not...
2015/12/01
[ "https://music.stackexchange.com/questions/39871", "https://music.stackexchange.com", "https://music.stackexchange.com/users/24978/" ]
From my experience, beginning players (who start from not knowing how to read music at all) will play hands separately and then put them together. After you've gotten over some of the initial difficulty of just reading the music, I believe it's encouraged universally to learn/practice both at once. Of course, you can p...
There are some beginning piano books that help one get the hang of integrating the two hands. Here's what a piece in such a book might look like: A melody is presented that straddles middle C. (The hands are in the basic position where both thumbs play middle C.) As the melody goes above middle C, the right hand becom...
39,871
I've started to teach myself how to play the piano, and one of the difficulties I've found is trying to get both hands to do things at once. I either forget one hand entirely, or have one hand trying to mimic the other. This reminded me of many years ago when I was taught to play the viola. For many weeks, we did not...
2015/12/01
[ "https://music.stackexchange.com/questions/39871", "https://music.stackexchange.com", "https://music.stackexchange.com/users/24978/" ]
When I first started learning piano I also used to practice one hand at a time. I think it is important because then in the end it's all about coordination and if you want your hands to be well coordinated you first need each hand to know what it has to do. Putting it all together is then a completely different story, ...
I cannot gauge your piano level very well, but if you are having difficulties playing both hands at the same time, then the piece is may be too difficult for your level. For piano players that are beyond the elementary level, I believe most players usually start learning the song both hands at the same time. This doe...
39,871
I've started to teach myself how to play the piano, and one of the difficulties I've found is trying to get both hands to do things at once. I either forget one hand entirely, or have one hand trying to mimic the other. This reminded me of many years ago when I was taught to play the viola. For many weeks, we did not...
2015/12/01
[ "https://music.stackexchange.com/questions/39871", "https://music.stackexchange.com", "https://music.stackexchange.com/users/24978/" ]
It's very normal to have issues playing with both hands at first, but if you're finding yourself completely unable to do so at all, then maybe you're attempting to play music that's too hard for you. This is a common problem for people that have significant experience on one instrument and then start another. It feels ...
That depends on the piece sometimes. My old teacher used to say practice one separately until you've got it down then "see" them together. Honestly, I'd recommend practicing one measure at a time by repeating one until you've got it and then move on. Lastly, play from the beginning after a few measures to smooth over a...
39,871
I've started to teach myself how to play the piano, and one of the difficulties I've found is trying to get both hands to do things at once. I either forget one hand entirely, or have one hand trying to mimic the other. This reminded me of many years ago when I was taught to play the viola. For many weeks, we did not...
2015/12/01
[ "https://music.stackexchange.com/questions/39871", "https://music.stackexchange.com", "https://music.stackexchange.com/users/24978/" ]
When I was taking piano lessons I learned each piece three times: Once with the right hand, once with the left hand, and the third time putting both together. After a while, the third "learning" came a lot more quickly, and after a few years I would start to slowly sight read both parts together. Today I will still pr...
From my experience, beginning players (who start from not knowing how to read music at all) will play hands separately and then put them together. After you've gotten over some of the initial difficulty of just reading the music, I believe it's encouraged universally to learn/practice both at once. Of course, you can p...
39,871
I've started to teach myself how to play the piano, and one of the difficulties I've found is trying to get both hands to do things at once. I either forget one hand entirely, or have one hand trying to mimic the other. This reminded me of many years ago when I was taught to play the viola. For many weeks, we did not...
2015/12/01
[ "https://music.stackexchange.com/questions/39871", "https://music.stackexchange.com", "https://music.stackexchange.com/users/24978/" ]
When I was taking piano lessons I learned each piece three times: Once with the right hand, once with the left hand, and the third time putting both together. After a while, the third "learning" came a lot more quickly, and after a few years I would start to slowly sight read both parts together. Today I will still pr...
That depends on the piece sometimes. My old teacher used to say practice one separately until you've got it down then "see" them together. Honestly, I'd recommend practicing one measure at a time by repeating one until you've got it and then move on. Lastly, play from the beginning after a few measures to smooth over a...