qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
465,848 | I want a single word that can be used to describe a situation/course of action which currently causes no problems but may cause issues in the future. | 2018/09/27 | [
"https://english.stackexchange.com/questions/465848",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/317810/"
] | **Risk / risky**, from [Oxford Living Dictionaries](https://en.oxforddictionaries.com/definition/risk):
>
> **1** A situation involving exposure to danger.
>
> **1.1** *[in singular]* The possibility that something unpleasant or unwelcome will happen.
>
>
> | Liability. Both in the financial sense and in the metaphorical sense. A person may be referred to as a liability if they pose a potential risk in the future.
>
> 2.usually in singular A person or thing whose presence or behaviour is likely to put one at a disadvantage.
> [Oxford Living Dictionaries](https://en.oxf... |
262,441 | I want to reuse my old computer processor heatsinks for LED heatsinking. I think I can calculate their K/W value approximately by dividing the temperature difference vs TDP at their maximum load.
I ignore the CPU packaging thermal resistance and take it as an additional safety margin.
This way I get about 60/100 = 0.6... | 2016/10/08 | [
"https://electronics.stackexchange.com/questions/262441",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/39136/"
] | It is a challenging problem to de-rate a heat sink. The problem is that if a heat sink is designed for forced air cooling (using a fan), the spacing between fins is optimized for forced air, and usually is fairly dense, 1.5-2mm apart. For cooling with free convection however, the fin spacing must be at least 1/4" (6mm)... | CPU heatsink ought to be in the 0.2 to <0.1 'K/W range with silver thermal paste if using same surface area used, otherwise derate according to useage.
Then derate further if ALumClad substrate is not coplanar to within a few microns ... or just measure case rise. I have used 100W LED on a CPU heatsink with a small fa... |
262,441 | I want to reuse my old computer processor heatsinks for LED heatsinking. I think I can calculate their K/W value approximately by dividing the temperature difference vs TDP at their maximum load.
I ignore the CPU packaging thermal resistance and take it as an additional safety margin.
This way I get about 60/100 = 0.6... | 2016/10/08 | [
"https://electronics.stackexchange.com/questions/262441",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/39136/"
] | CPU heatsink ought to be in the 0.2 to <0.1 'K/W range with silver thermal paste if using same surface area used, otherwise derate according to useage.
Then derate further if ALumClad substrate is not coplanar to within a few microns ... or just measure case rise. I have used 100W LED on a CPU heatsink with a small fa... | After following IgnacioVazquez-Abrahams recommendation, I found a way to approximate the thermal resistance of the heatsink.
Some manufacturers of heatsinks specify both the forced-air and free-convection rates of their heatsinks. By searching for similar heatsinks, and checking their free-convection rates I get from ... |
262,441 | I want to reuse my old computer processor heatsinks for LED heatsinking. I think I can calculate their K/W value approximately by dividing the temperature difference vs TDP at their maximum load.
I ignore the CPU packaging thermal resistance and take it as an additional safety margin.
This way I get about 60/100 = 0.6... | 2016/10/08 | [
"https://electronics.stackexchange.com/questions/262441",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/39136/"
] | It is a challenging problem to de-rate a heat sink. The problem is that if a heat sink is designed for forced air cooling (using a fan), the spacing between fins is optimized for forced air, and usually is fairly dense, 1.5-2mm apart. For cooling with free convection however, the fin spacing must be at least 1/4" (6mm)... | After following IgnacioVazquez-Abrahams recommendation, I found a way to approximate the thermal resistance of the heatsink.
Some manufacturers of heatsinks specify both the forced-air and free-convection rates of their heatsinks. By searching for similar heatsinks, and checking their free-convection rates I get from ... |
39,094,434 | I have following Query:
```
SELECT REL_NR, ERR_CODE, COUNT (ERR_CODE)
FROM ZDL_ERR
WHERE ERR_CODE > 0
GROUP BY ROLLUP (REL_NR, ERR_CODE)
ORDER BY REL_NR DESC, ERR_CODE;
```
with following Output:
```
196 1148 16
196 1180 2288
196 1181 177
196 2481
```
Is there a way to give a ROLLUP a text so it... | 2016/08/23 | [
"https://Stackoverflow.com/questions/39094434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5723412/"
] | You could replace the `null` value you get that label in the second column:
```
SELECT REL_NR,
COALESCE(TO_CHAR(ERR_CODE),
CASE WHEN REL_NR IS NULL THEN 'Grand Total'
ELSE 'Sub Total'
END) AS ERR_CODE,
COUNT (ERR_CODE)
FROM ZDL_ERR
WHE... | You should use GROUPING clause. Code will look like:
```
SELECT DECODE(GROUPING(REL_NR),0,TO_CHAR(REL_NR),'Subtotal') REL_NR ...
``` |
2,700,338 | I have three columns. The last two I want to make as narrow as the their contained data and the first column can take the rest of the width (table has 100% width).
How can you do this using CSS? Right now the columns on the right look silly with extra space. Ideas? | 2010/04/23 | [
"https://Stackoverflow.com/questions/2700338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/299216/"
] | Just give the first column a `width` of `100%` and if necessary give the cells in all other columns a `white-space: nowrap` to avoid their content being wrapped (again, only if necessary).
E.g.
```
<table>
<tr><td class="first">first</td><td>second</td><td>third</td></tr>
<tr><td class="first">first</td><td>s... | I just answered this with a little different approach with [this more detailsed answer in a similar question](https://stackoverflow.com/questions/8230777/how-do-i-set-the-table-cell-widths-to-minimum-except-last-column/33648895#33648895), basically:
Add the class `shrink` to columns you want to have as narrow as possi... |
4,802,360 | I use drop down extender in tab container and it is always expand at page load. It only collapse after clicking at text box. It is working fine at outside of the tab container and it is happening only with latest browsers.
How can I make to collapse the drop down extender at every page load?
I need to collapse it man... | 2011/01/26 | [
"https://Stackoverflow.com/questions/4802360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/590241/"
] | I had a similar problem and fixed it by setting visibility:hidden in the CSS for the control that corresponds to your listbox. | I had the same problem with a panel as DropDownControlID. I tried "visibility:hidden" but the space was still used (blank space instead of my panel).
I switched to the style "display:none" (on my panel) and it was perfect. Really invisible at load. |
4,802,360 | I use drop down extender in tab container and it is always expand at page load. It only collapse after clicking at text box. It is working fine at outside of the tab container and it is happening only with latest browsers.
How can I make to collapse the drop down extender at every page load?
I need to collapse it man... | 2011/01/26 | [
"https://Stackoverflow.com/questions/4802360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/590241/"
] | I had a similar problem and fixed it by setting visibility:hidden in the CSS for the control that corresponds to your listbox. | i set **visibility hidden** in asp:Pane and it works fine for me
```
<asp:TextBox runat="server" ID="txtCustomerLookupShipRecieving" Width="350px" OnTextChanged="OnTextChanged" autocomplete="off" Height="20px"></asp:TextBox>
<ajaxToolkit:DropDownExtender runat="server" TargetControlID="txtCustomerLookupShipRecieving... |
51,478,922 | I am getting error "Error while performing search ERR\_04149 Not a valid escaped value" when running the following search query against Red Hat Directory Server:
cn=cn\3DnsPwPolicyEntry\,ou\3Dinternal\,o\3Dcompany\,c\3Dgr,cn=nsPwPolicyContainer,ou=internal,o=company,c=gr
Any ideas on how to escape characters properl... | 2018/07/23 | [
"https://Stackoverflow.com/questions/51478922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6380109/"
] | The package [liftr](https://github.com/road2stat/liftr) was designed specifically for this purpose. It uses Docker to containerize an Rmarkdown document together with all of its dependencies (which includes a specific version of R), ensuring that it always renders the same way on any new system. As described in their [... | In your case, it seems that you should always use `blogdown::serve_site()`, which will only render new posts to html if necessary and leave old posts untouched. In this way you will not lose information from old R packages.
Do not use `blogdown::build_site()` because this will render all Rmd files with your current in... |
51,478,922 | I am getting error "Error while performing search ERR\_04149 Not a valid escaped value" when running the following search query against Red Hat Directory Server:
cn=cn\3DnsPwPolicyEntry\,ou\3Dinternal\,o\3Dcompany\,c\3Dgr,cn=nsPwPolicyContainer,ou=internal,o=company,c=gr
Any ideas on how to escape characters properl... | 2018/07/23 | [
"https://Stackoverflow.com/questions/51478922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6380109/"
] | The package [liftr](https://github.com/road2stat/liftr) was designed specifically for this purpose. It uses Docker to containerize an Rmarkdown document together with all of its dependencies (which includes a specific version of R), ensuring that it always renders the same way on any new system. As described in their [... | Our approach below. It does not use blogdown but it gives full freedom as far as packages and R versions are concerned. We use R Suite ([http://rsuite.io](http://rsuite.io "R Suite"))
Development workspace:
1. `post` directory with all posts. It is not necessary and one can have posts anywhere. Using R Suite templati... |
10,580,605 | 1. I want to create a CellTable. But Columns of the celltable should be based on the response from the server. I'm getting the server response as List.
```
No of Columns = Size of the list.
```
2. CellTable column header should be the value from the server.
For ex. Server response: `List<Contacts> contacts`
Header... | 2012/05/14 | [
"https://Stackoverflow.com/questions/10580605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1142530/"
] | I achieved it by the following code.
```
for (Contacts contact : contacts) {
final String city = contact.getCity();
final TextColumn<String> addressColumn = new TextColumn<String>() {
@Override
public String getValue(Contacts object) {
... | Use `CellList` with an [AsyncDataProvider](http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/view/client/AsyncDataProvider.html):
```
//Create a cellList
@UiField
CellList<Contact> cellList;
//Creating dataProvider and completion of the cellList
@UiFactory
CellList<Contact> makeCellList() {
priv... |
68,340,151 | Currently I'm running Superset in Docker mode. No native installation. The metadata database is an external(non-docker) Postgres DB which has lots of Dashboards, Charts etc.
Current installation is running on `git tag 1.0.0`. I want to upgrade to `v1.1.0`. I can do this by switching the repo to `git tag 1.1.0` and res... | 2021/07/11 | [
"https://Stackoverflow.com/questions/68340151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295813/"
] | Set the sprite renderer's transform z value to 0 instead of 100
If that does not solve, please specify camera properties also, so I can try to recreate the exact setup. | I had the same problem and I fixed it by attaching the camera to the canvas which is screen space and finally changing the sorting layer of my object to -1. |
68,340,151 | Currently I'm running Superset in Docker mode. No native installation. The metadata database is an external(non-docker) Postgres DB which has lots of Dashboards, Charts etc.
Current installation is running on `git tag 1.0.0`. I want to upgrade to `v1.1.0`. I can do this by switching the repo to `git tag 1.1.0` and res... | 2021/07/11 | [
"https://Stackoverflow.com/questions/68340151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295813/"
] | Try clicking on `Layers -> edit layers`, inside sorting layers you can change the order grabbing layer, everything upper appears behind in the camera. | I had the same problem and I fixed it by attaching the camera to the canvas which is screen space and finally changing the sorting layer of my object to -1. |
68,340,151 | Currently I'm running Superset in Docker mode. No native installation. The metadata database is an external(non-docker) Postgres DB which has lots of Dashboards, Charts etc.
Current installation is running on `git tag 1.0.0`. I want to upgrade to `v1.1.0`. I can do this by switching the repo to `git tag 1.1.0` and res... | 2021/07/11 | [
"https://Stackoverflow.com/questions/68340151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295813/"
] | You could create a layer called Object
Assign it to the game objects.
Create an object camera
culling mask -> object layer
depth bigger than you current main camera.
Set it to Projection -> Orthographic
Clear flags -> solid colors.
canvas Render Mode -> Screen Space - Camera and assign the Render Camera to be the Objec... | I had the same problem and I fixed it by attaching the camera to the canvas which is screen space and finally changing the sorting layer of my object to -1. |
68,340,151 | Currently I'm running Superset in Docker mode. No native installation. The metadata database is an external(non-docker) Postgres DB which has lots of Dashboards, Charts etc.
Current installation is running on `git tag 1.0.0`. I want to upgrade to `v1.1.0`. I can do this by switching the repo to `git tag 1.1.0` and res... | 2021/07/11 | [
"https://Stackoverflow.com/questions/68340151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295813/"
] | 1. Inspector tab of the object or background.
2. Sprite Renderer.
3. Additional Settings.
4. Sorting Layer.
5. change it to a different layer. | I had the same problem and I fixed it by attaching the camera to the canvas which is screen space and finally changing the sorting layer of my object to -1. |
68,340,151 | Currently I'm running Superset in Docker mode. No native installation. The metadata database is an external(non-docker) Postgres DB which has lots of Dashboards, Charts etc.
Current installation is running on `git tag 1.0.0`. I want to upgrade to `v1.1.0`. I can do this by switching the repo to `git tag 1.1.0` and res... | 2021/07/11 | [
"https://Stackoverflow.com/questions/68340151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295813/"
] | Had this same issue and was able to fix it with these steps:
1. In canvas settings change Screen Space Overlay to Screen Space Camera
2. Set the camera variable to the one you are using for your scene. | I had the same problem and I fixed it by attaching the camera to the canvas which is screen space and finally changing the sorting layer of my object to -1. |
55,335,561 | I want to make some dynamic buttons with tags names on -
add\_tag "name" should make a little button with
a cross at the right to remove the button - the interaction should be rather like the way tags in this posting are added
Has anybody made such a thing?
This is for TCL/TK 8.6 | 2019/03/25 | [
"https://Stackoverflow.com/questions/55335561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/217075/"
] | you could try:
```
dfc = pd.merge(dfa, dfb, on=['From', 'To', 'T_Type', 'T_Length', 'T_Weight'], how='inner')
dfc.drop(['From', 'To', 'M_Type', 'T_Weight', 'T_Length', 'Loading_Time', 'T_Type'], axis = 1,inplace=True)
dfc = dfc[dfc['#Trucks_y'] >= dfc['#Trucks_x']].drop(['#Trucks_y', '#Trucks_x'], axis=1)
dfc.rename(... | If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:
```
mergedStuff = pd.merge(df1, df2, on=['Name'], how='inner')
mergedStuff.head()
```
I think this is more efficient and faster then `where`if you have a big data set
and if you want to get the differe... |
19,739,717 | What is the practical application of graph coloring. In other words, why do we need to optimise number of colors(some important feature of a problem) using such algorithms. | 2013/11/02 | [
"https://Stackoverflow.com/questions/19739717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2943912/"
] | It seems that you have some misunderstanding of what is [graph coloring](http://en.wikipedia.org/wiki/Graph_coloring), possibly also of what is a [graph](http://en.wikipedia.org/wiki/Graph_%28mathematics%29).
Actual colors have nothing at all to do with this, graph coloring is used to solve problems where you have a... | A [Sudoku solver](http://blogs.msdn.com/b/ericlippert/archive/2010/07/29/graph-colouring-part-five.aspx) is a classic example of where graph colouring comes in handy.
Note that the number of colours here is restricted by the rules of the game. 'Colours' in graph colouring algorithms are often figurative rather than li... |
19,739,717 | What is the practical application of graph coloring. In other words, why do we need to optimise number of colors(some important feature of a problem) using such algorithms. | 2013/11/02 | [
"https://Stackoverflow.com/questions/19739717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2943912/"
] | A [Sudoku solver](http://blogs.msdn.com/b/ericlippert/archive/2010/07/29/graph-colouring-part-five.aspx) is a classic example of where graph colouring comes in handy.
Note that the number of colours here is restricted by the rules of the game. 'Colours' in graph colouring algorithms are often figurative rather than li... | There are plenty of practical applications that depend on graph coloring. For example, *Frequency assignment to cellular antennas* is a famous problem. In this problem, one can only use small number of frequencies(colors), and assign them to the antennas such that clients always connect to one of the antennas. Problem ... |
19,739,717 | What is the practical application of graph coloring. In other words, why do we need to optimise number of colors(some important feature of a problem) using such algorithms. | 2013/11/02 | [
"https://Stackoverflow.com/questions/19739717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2943912/"
] | It seems that you have some misunderstanding of what is [graph coloring](http://en.wikipedia.org/wiki/Graph_coloring), possibly also of what is a [graph](http://en.wikipedia.org/wiki/Graph_%28mathematics%29).
Actual colors have nothing at all to do with this, graph coloring is used to solve problems where you have a... | There are plenty of practical applications that depend on graph coloring. For example, *Frequency assignment to cellular antennas* is a famous problem. In this problem, one can only use small number of frequencies(colors), and assign them to the antennas such that clients always connect to one of the antennas. Problem ... |
25,936 | I would like to convert the *tree inventory* shape files of London (Canada) into a **GPX** file and if possible into a **JSON** file. You can download the [archive](http://www.london.ca/OpenData/ShapeFiles_Zipped/Tree_Inventory_Public.zip) from their Open Data website. It contains the following files.
```
READ_ME.txt
... | 2012/05/22 | [
"https://gis.stackexchange.com/questions/25936",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/7690/"
] | To answer my own question on **how to combine both the .dbx (properties) and the .shp (geometries) into a single JSON file**:
The problem I did not see is that **all file names must be lower case to enable ogr2ogr to do the conversion**. That should not be neccessary if your file system is case-insensitive but mine is... | i think there is a projection problem in this file . make a new file under the same dir as name of trees.prj and then past the following definition in it. then run your ogr2ogr command...
>
> PROJCS["NAD\_1983\_UTM\_Zone\_17N",GEOGCS["GCS\_North\_American\_1983",DATUM["D\_North\_American\_1983",SPHEROID["GRS\_1980",6... |
25,936 | I would like to convert the *tree inventory* shape files of London (Canada) into a **GPX** file and if possible into a **JSON** file. You can download the [archive](http://www.london.ca/OpenData/ShapeFiles_Zipped/Tree_Inventory_Public.zip) from their Open Data website. It contains the following files.
```
READ_ME.txt
... | 2012/05/22 | [
"https://gis.stackexchange.com/questions/25936",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/7690/"
] | i think there is a projection problem in this file . make a new file under the same dir as name of trees.prj and then past the following definition in it. then run your ogr2ogr command...
>
> PROJCS["NAD\_1983\_UTM\_Zone\_17N",GEOGCS["GCS\_North\_American\_1983",DATUM["D\_North\_American\_1983",SPHEROID["GRS\_1980",6... | If you can't be bothered with Esri's licensing, here is a free option using GDAL/Python:
```python
from osgeo import ogr
ds_fname = r'C:\Temp\countries.shp' # update this to your Shapefile
ds = ogr.Open(ds_fname)
if not ds:
raise IOError('Could not open ' + ds_fname)
layer = ds.GetLayer()
for fid in range(layer.Ge... |
25,936 | I would like to convert the *tree inventory* shape files of London (Canada) into a **GPX** file and if possible into a **JSON** file. You can download the [archive](http://www.london.ca/OpenData/ShapeFiles_Zipped/Tree_Inventory_Public.zip) from their Open Data website. It contains the following files.
```
READ_ME.txt
... | 2012/05/22 | [
"https://gis.stackexchange.com/questions/25936",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/7690/"
] | To answer my own question on **how to combine both the .dbx (properties) and the .shp (geometries) into a single JSON file**:
The problem I did not see is that **all file names must be lower case to enable ogr2ogr to do the conversion**. That should not be neccessary if your file system is case-insensitive but mine is... | The GPX format assumes WGS84 datum (EPSG:4326). The shapefile in question has no defined projection (\*.prj file). The ogr2ogr command thus assumes that your file is already in WGS84 and then calls an error when it comes across coordinates outside the valid range for WGS84.
To solve this problem, you need to find out ... |
25,936 | I would like to convert the *tree inventory* shape files of London (Canada) into a **GPX** file and if possible into a **JSON** file. You can download the [archive](http://www.london.ca/OpenData/ShapeFiles_Zipped/Tree_Inventory_Public.zip) from their Open Data website. It contains the following files.
```
READ_ME.txt
... | 2012/05/22 | [
"https://gis.stackexchange.com/questions/25936",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/7690/"
] | The GPX format assumes WGS84 datum (EPSG:4326). The shapefile in question has no defined projection (\*.prj file). The ogr2ogr command thus assumes that your file is already in WGS84 and then calls an error when it comes across coordinates outside the valid range for WGS84.
To solve this problem, you need to find out ... | If you can't be bothered with Esri's licensing, here is a free option using GDAL/Python:
```python
from osgeo import ogr
ds_fname = r'C:\Temp\countries.shp' # update this to your Shapefile
ds = ogr.Open(ds_fname)
if not ds:
raise IOError('Could not open ' + ds_fname)
layer = ds.GetLayer()
for fid in range(layer.Ge... |
25,936 | I would like to convert the *tree inventory* shape files of London (Canada) into a **GPX** file and if possible into a **JSON** file. You can download the [archive](http://www.london.ca/OpenData/ShapeFiles_Zipped/Tree_Inventory_Public.zip) from their Open Data website. It contains the following files.
```
READ_ME.txt
... | 2012/05/22 | [
"https://gis.stackexchange.com/questions/25936",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/7690/"
] | To answer my own question on **how to combine both the .dbx (properties) and the .shp (geometries) into a single JSON file**:
The problem I did not see is that **all file names must be lower case to enable ogr2ogr to do the conversion**. That should not be neccessary if your file system is case-insensitive but mine is... | If you can't be bothered with Esri's licensing, here is a free option using GDAL/Python:
```python
from osgeo import ogr
ds_fname = r'C:\Temp\countries.shp' # update this to your Shapefile
ds = ogr.Open(ds_fname)
if not ds:
raise IOError('Could not open ' + ds_fname)
layer = ds.GetLayer()
for fid in range(layer.Ge... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | I would also suggest the "caveman" variation. Below is a nice article on this opening:
<http://www.kenilworthchessclub.org/games/java/2013/complete-caveman.htm>
I am a FM, and have played this opening successfully at the tournament level. | The hardest for black to meet is the Advance Variation. You might want to look at the latest games of Fabiano Caruana. He won with the Advance Variation against Maxime Vachier-Lagrave very recently.
Otherwise I would recommend playing 3.Nc3 dxe4 4.Nxe4. This variation gives white a slight edge where you can go for h2-... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | The hardest for black to meet is the Advance Variation. You might want to look at the latest games of Fabiano Caruana. He won with the Advance Variation against Maxime Vachier-Lagrave very recently.
Otherwise I would recommend playing 3.Nc3 dxe4 4.Nxe4. This variation gives white a slight edge where you can go for h2-... | Well a fun tactical line to try against caro-kann (more for blitz) would be a variation in the advanced, it goes like:
```
[FEN ""]
1.e4 c6, 2.d4 d5, 3.e5 Bf5 4.g4?! Be4, 5.f3 Bg6, 6.h4 h6, 7.h5 Bh7, 8.e6!? fxe6 9.Bd3
```
So with precise play, black should certainly be fine if not better; but your opponent needs... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | The hardest for black to meet is the Advance Variation. You might want to look at the latest games of Fabiano Caruana. He won with the Advance Variation against Maxime Vachier-Lagrave very recently.
Otherwise I would recommend playing 3.Nc3 dxe4 4.Nxe4. This variation gives white a slight edge where you can go for h2-... | One aggressive idea against the Caro-Kann is to basically play the Blackmar-Diemer-Gambit, while ruling out a lot of defences (because black has already played c6).
```
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.f3
```
There are some nice immediate tricks, like 4…ef 5.Nf3 ... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | I would also suggest the "caveman" variation. Below is a nice article on this opening:
<http://www.kenilworthchessclub.org/games/java/2013/complete-caveman.htm>
I am a FM, and have played this opening successfully at the tournament level. | The exchange variation, provided you continue with the Panov attack, is actually very tactical and aggressive. If you are looking for something quite different, I suggest what I play: the advance variation with an early h4 push.
That would be:
```
[StartPly "7"]
[FEN ""]
1. e4 c6 2. d4 d5 3. e5 Bf5 4. h4
```
on [t... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | The exchange variation, provided you continue with the Panov attack, is actually very tactical and aggressive. If you are looking for something quite different, I suggest what I play: the advance variation with an early h4 push.
That would be:
```
[StartPly "7"]
[FEN ""]
1. e4 c6 2. d4 d5 3. e5 Bf5 4. h4
```
on [t... | Well a fun tactical line to try against caro-kann (more for blitz) would be a variation in the advanced, it goes like:
```
[FEN ""]
1.e4 c6, 2.d4 d5, 3.e5 Bf5 4.g4?! Be4, 5.f3 Bg6, 6.h4 h6, 7.h5 Bh7, 8.e6!? fxe6 9.Bd3
```
So with precise play, black should certainly be fine if not better; but your opponent needs... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | The exchange variation, provided you continue with the Panov attack, is actually very tactical and aggressive. If you are looking for something quite different, I suggest what I play: the advance variation with an early h4 push.
That would be:
```
[StartPly "7"]
[FEN ""]
1. e4 c6 2. d4 d5 3. e5 Bf5 4. h4
```
on [t... | One aggressive idea against the Caro-Kann is to basically play the Blackmar-Diemer-Gambit, while ruling out a lot of defences (because black has already played c6).
```
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.f3
```
There are some nice immediate tricks, like 4…ef 5.Nf3 ... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | I would also suggest the "caveman" variation. Below is a nice article on this opening:
<http://www.kenilworthchessclub.org/games/java/2013/complete-caveman.htm>
I am a FM, and have played this opening successfully at the tournament level. | Well a fun tactical line to try against caro-kann (more for blitz) would be a variation in the advanced, it goes like:
```
[FEN ""]
1.e4 c6, 2.d4 d5, 3.e5 Bf5 4.g4?! Be4, 5.f3 Bg6, 6.h4 h6, 7.h5 Bh7, 8.e6!? fxe6 9.Bd3
```
So with precise play, black should certainly be fine if not better; but your opponent needs... |
6,313 | I am currently using the exchange variation of the Caro-Kann, so the:
```
[Title "Caro-Kann refutation"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
1.e4 c6 2.d4 d5 3.exd5
```
I am looking for a more tactical approach. Is the fantasy variation worth it? Or are there more tactical variations? | 2014/09/15 | [
"https://chess.stackexchange.com/questions/6313",
"https://chess.stackexchange.com",
"https://chess.stackexchange.com/users/3405/"
] | I would also suggest the "caveman" variation. Below is a nice article on this opening:
<http://www.kenilworthchessclub.org/games/java/2013/complete-caveman.htm>
I am a FM, and have played this opening successfully at the tournament level. | One aggressive idea against the Caro-Kann is to basically play the Blackmar-Diemer-Gambit, while ruling out a lot of defences (because black has already played c6).
```
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.f3
```
There are some nice immediate tricks, like 4…ef 5.Nf3 ... |
50,979,536 | I keep getting the error "TypeError: Cannot read property 'run' of null" when trying to run this code. Everything else in the program runs fine until it reaches the sql.run part.
(Note: there is other code in the program that handles all of the Discord.js part of things, only the part that is causing an issue is here... | 2018/06/22 | [
"https://Stackoverflow.com/questions/50979536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9853160/"
] | You are getting this error because in java [`if-statements`](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/if.html), the `if` isn't capitalized. So change:
```
If(temp == 32){
```
to:
```
if(temp == 32) {
``` | Your syntax incorrect, Fix:
```
if (temp == 32) {
System.out.print(temp);
continue;
}
``` |
448,893 | >
> ...Он резко и по-стариковски пронзительно вскрикнул: "Я никогда не
> бывал в Риме!" Это прозвучало как горькое признание и ощущалось как-то
> невыносимо несправедливо. Конечно, именно ему и необходим был весь
> этот Рим... Мы помолчали. Словно почтили памятью несбывшееся.
>
>
>
***Словно почтили память о не... | 2019/02/26 | [
"https://rus.stackexchange.com/questions/448893",
"https://rus.stackexchange.com",
"https://rus.stackexchange.com/users/177616/"
] | ***Словно почтили память несбывшегося.*** Почтить память (*чью?*)
Исправить нужно и это: *и ощущалось как-то невыносимо несправедливо*. - Вариант: ***Это прозвучало как горькое признание и ощущалось как что-то невыносимо несправедливое.*** | Вот несколько опций:
"Мы помолчали, почтив память о несбывшемся."
"Мы помолчали, словно провожая в последний путь его несостоявшуюся мечту."
"Мы помолчали, разделяя его тоску о несбывшемся."
/Последний вариант кажется мне менее удачным, чем первые два./ |
448,893 | >
> ...Он резко и по-стариковски пронзительно вскрикнул: "Я никогда не
> бывал в Риме!" Это прозвучало как горькое признание и ощущалось как-то
> невыносимо несправедливо. Конечно, именно ему и необходим был весь
> этот Рим... Мы помолчали. Словно почтили памятью несбывшееся.
>
>
>
***Словно почтили память о не... | 2019/02/26 | [
"https://rus.stackexchange.com/questions/448893",
"https://rus.stackexchange.com",
"https://rus.stackexchange.com/users/177616/"
] | Я думаю, что здесь правильны следующие варианты:
Мы помолчали. Словно **почтили память о несбывшемся.**
Мы помолчали. Словно **почтили памятью несбывшееся.**
**Пояснение**
1) **Мы помолчали. Словно почтили память о несбывшемся.**
Чтить (почтить) память – это **вспомнить с почтением**. Возможные варианты:
Наш до... | ***Словно почтили память несбывшегося.*** Почтить память (*чью?*)
Исправить нужно и это: *и ощущалось как-то невыносимо несправедливо*. - Вариант: ***Это прозвучало как горькое признание и ощущалось как что-то невыносимо несправедливое.*** |
448,893 | >
> ...Он резко и по-стариковски пронзительно вскрикнул: "Я никогда не
> бывал в Риме!" Это прозвучало как горькое признание и ощущалось как-то
> невыносимо несправедливо. Конечно, именно ему и необходим был весь
> этот Рим... Мы помолчали. Словно почтили памятью несбывшееся.
>
>
>
***Словно почтили память о не... | 2019/02/26 | [
"https://rus.stackexchange.com/questions/448893",
"https://rus.stackexchange.com",
"https://rus.stackexchange.com/users/177616/"
] | Я думаю, что здесь правильны следующие варианты:
Мы помолчали. Словно **почтили память о несбывшемся.**
Мы помолчали. Словно **почтили памятью несбывшееся.**
**Пояснение**
1) **Мы помолчали. Словно почтили память о несбывшемся.**
Чтить (почтить) память – это **вспомнить с почтением**. Возможные варианты:
Наш до... | Вот несколько опций:
"Мы помолчали, почтив память о несбывшемся."
"Мы помолчали, словно провожая в последний путь его несостоявшуюся мечту."
"Мы помолчали, разделяя его тоску о несбывшемся."
/Последний вариант кажется мне менее удачным, чем первые два./ |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | And He Built a Crooked House is a light fanciful short story based on an unfolded tesseract. Not a great work of literature, but semi-famous. Has a Wiki article.
<https://en.wikipedia.org/wiki/%22%E2%80%94And_He_Built_a_Crooked_House%E2%80%94%22>
It is in the anthology, Dave mentioned, but has its own notability. Als... | I've just thought of another candidate: *Anathem* by Neil Stephenson came along at exactly the point in my life where I needed the confidence of my convictions that I needed to model the sales structure of the company I worked for as a directed acyclic graph. |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | And He Built a Crooked House is a light fanciful short story based on an unfolded tesseract. Not a great work of literature, but semi-famous. Has a Wiki article.
<https://en.wikipedia.org/wiki/%22%E2%80%94And_He_Built_a_Crooked_House%E2%80%94%22>
It is in the anthology, Dave mentioned, but has its own notability. Als... | I'm fond of a volume called *Mathenauts: Tales of Mathematical Wonder*, edited by (mathematician and sci-fi author) Rudy Rucker, dated 1987. It includes Asimov's *The Feeling of Power*, among other stories. |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | [Flatland](https://en.wikipedia.org/wiki/Flatland) is a classic and very short/readable. | If your students are at university level, then "White Light" by Rudy Rucker is a banger.
It explores infinity. It is perhaps the only novel which features a practical application of the Banach-Tarski paradox.
Mind, if your prospective readers are at all prudish or sensitive, then perhaps not. Whatever you do, do *not... |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | On the off-chance you don't know about it, I recommend looking through entries at Alex Kasman's website [*Mathematical Fiction*](https://kasmana.people.cofc.edu/MATHFICT/). This has been around quite a while. I don't know when I first learned about it, but definitely by the time of his [31 January 2000 announcement in ... | I just came across [Solar Lottery](https://en.wikipedia.org/wiki/Solar_Lottery) by Philip Dick. I'll try to remember to update this answer with details after I read it. :) |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | [Flatland](https://en.wikipedia.org/wiki/Flatland) is a classic and very short/readable. | I love a series of 4 books by Rosemary Kirstein. The first is titled The Steerswoman.
Steerswomen journey around the known lands, drawing maps and documenting what they see in their logbooks. Rowan, a steerswoman, finds an odd gem and starts asking people questions about it. Everyone must answer a steerswoman's questi... |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | I just came across [Solar Lottery](https://en.wikipedia.org/wiki/Solar_Lottery) by Philip Dick. I'll try to remember to update this answer with details after I read it. :) | I'm fond of a volume called *Mathenauts: Tales of Mathematical Wonder*, edited by (mathematician and sci-fi author) Rudy Rucker, dated 1987. It includes Asimov's *The Feeling of Power*, among other stories. |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | [Flatland](https://en.wikipedia.org/wiki/Flatland) is a classic and very short/readable. | I just came across [Solar Lottery](https://en.wikipedia.org/wiki/Solar_Lottery) by Philip Dick. I'll try to remember to update this answer with details after I read it. :) |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | I just came across [Solar Lottery](https://en.wikipedia.org/wiki/Solar_Lottery) by Philip Dick. I'll try to remember to update this answer with details after I read it. :) | I've just thought of another candidate: *Anathem* by Neil Stephenson came along at exactly the point in my life where I needed the confidence of my convictions that I needed to model the sales structure of the company I worked for as a directed acyclic graph. |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | [Flatland](https://en.wikipedia.org/wiki/Flatland) is a classic and very short/readable. | I'm fond of a volume called *Mathenauts: Tales of Mathematical Wonder*, edited by (mathematician and sci-fi author) Rudy Rucker, dated 1987. It includes Asimov's *The Feeling of Power*, among other stories. |
25,085 | What are examples of sci-fi books or short stories that have a mathematics theme? I'd like to have a pool of examples in mind that I could refer students to. The only example I've got in mind right now is [The Feeling of Power](https://urbigenous.net/library/power.html) by Asimov, which I sometimes show students when d... | 2022/03/24 | [
"https://matheducators.stackexchange.com/questions/25085",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/5220/"
] | On the off-chance you don't know about it, I recommend looking through entries at Alex Kasman's website [*Mathematical Fiction*](https://kasmana.people.cofc.edu/MATHFICT/). This has been around quite a while. I don't know when I first learned about it, but definitely by the time of his [31 January 2000 announcement in ... | [Flatland](https://en.wikipedia.org/wiki/Flatland) is a classic and very short/readable. |
23,246,711 | i'm trying to set up an Openstreetmap server on my ubuntu server, which is on a virtual machine.
According to this: <http://tuts.syrinxoon.net/tuts/installer-un-serveur-cartographique-avec-openstreetmap>, i've done everything. still it doesn't work.
I checked the rendered log.
Here is what comes from the ouput of `re... | 2014/04/23 | [
"https://Stackoverflow.com/questions/23246711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912741/"
] | You need [`Server.MapPath`](http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath.aspx) like:
```
File.Exists(Server.MapPath("~/Content/img/" + item.name + ".jpg"))
``` | First, I would suggest to move this code into a Controller or external class to make it more readable.
Use [`Server.MapPath`](http://msdn.microsoft.com/en-us/library/ms524632%28v=vs.90%29.aspx) to get the real file name of the url.
That file path can be checked with `File.Exists`. |
36,013,118 | I want to add space between *spans* so that the leftmost and rightmost spans will be close to the edges of the *inner div*. I've tried to add the following rule, but it had no effect.
```css
span.icon-square {
margin: 0 auto;
}
span.icon-square:first-child {
margin-left: 0;
}
span.icon-square:last-child {
... | 2016/03/15 | [
"https://Stackoverflow.com/questions/36013118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4241959/"
] | You can do this with `Flexbox` and `justify-content: space-between`.
```css
.content {
display: flex;
justify-content: space-between;
max-width: 400px;
margin: 0 auto;
background: #A0C5E8;
padding: 10px 0;
}
span {
width: 50px;
height: 50px;
background: black;
}
```
```html
<div class="... | For Infos and older browser, `text-align:justify` + a pseudo element to generate an extra line can still be usefull. For really old browser (IE5) , turn the pseudo into a tag (span), technic is quiet old but still efficient **where `flex` is not avalaible or unwanted**.
**edit** : *there is nothing here about `text-ju... |
45,571,996 | It should be very easy, but I have used days to figure out, how to change a dynamic created JSON string of objects to an array. What I want is this in javascript:
```
var col_model =[ { 'label': 'Name', 'name': 'Name', 'key': 'true', 'width': '75', 'hidden': 'false' }, { 'label': 'FirstName', 'name': 'FirstName' }];
... | 2017/08/08 | [
"https://Stackoverflow.com/questions/45571996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6100664/"
] | I am not very clear what you are trying to achieve here. Assuming you want to convert an object array, available as a string, to actual array of objects, try the below.
Your object array as string
```
var col_model ="[ { 'label': 'Name', 'name': 'Name', 'key': 'true', 'width': '75', 'hidden': 'false' }, { 'label': 'F... | Take a look at your console browser, surely you are getting an error like unexpected string.
That's because :
```
var col_model = { 'label': 'Name', 'name': 'Name', 'key': 'true', 'width': '75', 'hidden': 'false' }, { 'label': 'FirstName', 'name': 'FirstName' };
```
You cannot store two objects separated by a ... |
22,075 | In my Review problems and solutions reports I have the following Security Warning:

Both of the offending services use my "farm" managed account (I named it SP\_Farm on my domain, it's the one you have to enter during the SP configuration wizard when you're read... | 2011/10/26 | [
"https://sharepoint.stackexchange.com/questions/22075",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/2766/"
] | The farm account does not need to be a member of the local Administrator group. For a farm it should be a domain user, when you run the configuration wizard it will be granted the required user rights, file permissions, registry permissions, DCOM permissions, and DB permissions.
When you do your initial Sync with UPS,... | A great article that might help [Link](http://www.harbar.net/archive/2007/06/19/NO-Your-SharePoint-Farm-Account-does-NOT-need-local-admin.aspx) |
45,051,466 | I am beginner in UI design using Qt. My project now is doing comparison. For example: if I have 2 text file.
[](https://i.stack.imgur.com/Pd6Ow.png)
How can I compare the number line by line? Because I have so many text file like this, and I need com... | 2017/07/12 | [
"https://Stackoverflow.com/questions/45051466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7890298/"
] | The procedure is simple
1. Read both files (always make sure they are opened successfully)
2. Read files line by line and convert strings to numbers for comparison.
3. Quit if there is no data left.
Moreover, you need to make sure that the format of files is consistent otherwise, you need to make sure what you manipu... | Basic approach would be something like this:
```
QString filename1("C:/Users/UserName/Downloads/t1.txt");
QString filename2("C:/Users/UserName/Downloads/t2.txt");
QFile file(filename1);
file.open(QIODevice::ReadOnly);
QTextStream in(&file);
QStringList textOfFile1;
while (!in.atEnd()) {
QString line... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | RabbitMQ is an implementation of [AMQP](http://www.amqp.org/), which defines an interoperable protocol for message oriented middleware. As such, it defines semantics for message creation, publication, routing and consumption that can be implemented on any platform.
Conceptually, it could be considered as a specializat... | RabbitMQ works on message queueing technologies like AMQP which helps keep things clean and latency-free.
And the best scenario to make use of RabbitMQ is for background processing of data which can take more time to be processed and cannot be served over HTTP. For example, if you want to download a report from your w... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Let me tell you a few reasons that makes using MOM (Message Oriented Middleware) probably the best choice.
Decoupling:
-----------
It can decouple/separate the core components of the application. There is no need to bring all the benefits of the decoupled architecture here. I just want to point it out that this is on... | RabbitMQ is a bit more than mere messaging... It's a common platform that has ability to inter-connect applications. Using RabbitMQ a Java application can speak to a Linux server and/or a .NET app, to a Ruby & rails + almost anything that finds its place in the corporate web development. And most importantly it impleme... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Let me tell you a few reasons that makes using MOM (Message Oriented Middleware) probably the best choice.
Decoupling:
-----------
It can decouple/separate the core components of the application. There is no need to bring all the benefits of the decoupled architecture here. I just want to point it out that this is on... | I use RabbitMQ as message broker for [Celery](http://celeryproject.org/).
Also, I have worked with Twisted. It is *different*.
See here for more on **AMQP**: <http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol> |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Twisted is a networking library that implements a number of network protocols as well as allowing you to create your own. One of the protocols that you can use with Twisted is AMQP <https://launchpad.net/txamqp>
RabbitMQ is an AMQP broker, i.e. a services that runs outside of your application, probably on a separate c... | RabbitMQ is an implementation of [AMQP](http://www.amqp.org/), which defines an interoperable protocol for message oriented middleware. As such, it defines semantics for message creation, publication, routing and consumption that can be implemented on any platform.
Conceptually, it could be considered as a specializat... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Twisted is not a queue implementation. Apart from that RabbitMQ offers enterprise-level queuing features and implements the AMQP protocol which is often needed in an enterprise world. | RabbitMQ is an implementation of [AMQP](http://www.amqp.org/), which defines an interoperable protocol for message oriented middleware. As such, it defines semantics for message creation, publication, routing and consumption that can be implemented on any platform.
Conceptually, it could be considered as a specializat... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Twisted is not a queue implementation. Apart from that RabbitMQ offers enterprise-level queuing features and implements the AMQP protocol which is often needed in an enterprise world. | RabbitMQ is a bit more than mere messaging... It's a common platform that has ability to inter-connect applications. Using RabbitMQ a Java application can speak to a Linux server and/or a .NET app, to a Ruby & rails + almost anything that finds its place in the corporate web development. And most importantly it impleme... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Let me tell you a few reasons that makes using MOM (Message Oriented Middleware) probably the best choice.
Decoupling:
-----------
It can decouple/separate the core components of the application. There is no need to bring all the benefits of the decoupled architecture here. I just want to point it out that this is on... | Twisted is a networking library that implements a number of network protocols as well as allowing you to create your own. One of the protocols that you can use with Twisted is AMQP <https://launchpad.net/txamqp>
RabbitMQ is an AMQP broker, i.e. a services that runs outside of your application, probably on a separate c... |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Let me tell you a few reasons that makes using MOM (Message Oriented Middleware) probably the best choice.
Decoupling:
-----------
It can decouple/separate the core components of the application. There is no need to bring all the benefits of the decoupled architecture here. I just want to point it out that this is on... | Twisted is not a queue implementation. Apart from that RabbitMQ offers enterprise-level queuing features and implements the AMQP protocol which is often needed in an enterprise world. |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | Twisted is not a queue implementation. Apart from that RabbitMQ offers enterprise-level queuing features and implements the AMQP protocol which is often needed in an enterprise world. | I use RabbitMQ as message broker for [Celery](http://celeryproject.org/).
Also, I have worked with Twisted. It is *different*.
See here for more on **AMQP**: <http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol> |
5,132,648 | Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.
Could you please provide a scenario or an example using RabbitMQ?
Also, where can I find a tutorial on how to use RabbitMQ? | 2011/02/27 | [
"https://Stackoverflow.com/questions/5132648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/280100/"
] | RabbitMQ is a bit more than mere messaging... It's a common platform that has ability to inter-connect applications. Using RabbitMQ a Java application can speak to a Linux server and/or a .NET app, to a Ruby & rails + almost anything that finds its place in the corporate web development. And most importantly it impleme... | RabbitMQ works on message queueing technologies like AMQP which helps keep things clean and latency-free.
And the best scenario to make use of RabbitMQ is for background processing of data which can take more time to be processed and cannot be served over HTTP. For example, if you want to download a report from your w... |
78,946 | Throughout all the episodes where the army of the dead and the White Walkers are shown in *Game of Thrones*, the only thing that we can understand is that the White Walkers and their army want to get beyond the wall.
They are going to kill whoever comes in their way, but what is the thing that the Night King seeks? W... | 2017/08/17 | [
"https://movies.stackexchange.com/questions/78946",
"https://movies.stackexchange.com",
"https://movies.stackexchange.com/users/20877/"
] | It's not clear yet what is his purpose beyond the wall but we know some things and therefore we can speculate.
First and most important: the White Walkers were created centuries ago before the long night by the Children of the Forest as a weapon to fight back the first men as can be seen in the TV show.
Second: after... | It's simple. Night King lived in [Lands of Always Winter](http://awoiaf.westeros.org/index.php/Land_of_Always_Winter) for 8000 years. One day he walked out of his Ice citadel, turned around and looked at the area and said: "Oh f..k, look where I live... this place s..ks". So he decided to move to the warmer areas but e... |
78,946 | Throughout all the episodes where the army of the dead and the White Walkers are shown in *Game of Thrones*, the only thing that we can understand is that the White Walkers and their army want to get beyond the wall.
They are going to kill whoever comes in their way, but what is the thing that the Night King seeks? W... | 2017/08/17 | [
"https://movies.stackexchange.com/questions/78946",
"https://movies.stackexchange.com",
"https://movies.stackexchange.com/users/20877/"
] | It's not clear yet what is his purpose beyond the wall but we know some things and therefore we can speculate.
First and most important: the White Walkers were created centuries ago before the long night by the Children of the Forest as a weapon to fight back the first men as can be seen in the TV show.
Second: after... | It is not clear yet what the White Walkers really want but there are many theories.
The most logical for me is explained in this video:
Summary: In the long night the first Men and the white walkers made a deal to end the war. The white walkers built the wall (it's unlogical that a big wall of ice was built by human... |
78,946 | Throughout all the episodes where the army of the dead and the White Walkers are shown in *Game of Thrones*, the only thing that we can understand is that the White Walkers and their army want to get beyond the wall.
They are going to kill whoever comes in their way, but what is the thing that the Night King seeks? W... | 2017/08/17 | [
"https://movies.stackexchange.com/questions/78946",
"https://movies.stackexchange.com",
"https://movies.stackexchange.com/users/20877/"
] | It's not clear yet what is his purpose beyond the wall but we know some things and therefore we can speculate.
First and most important: the White Walkers were created centuries ago before the long night by the Children of the Forest as a weapon to fight back the first men as can be seen in the TV show.
Second: after... | Deadline recently interviewed showrunners Benioff and Weiss, and they explained that the Night King is basically a metaphor for Death itself. He is doing what he was created to do: Kill men. He doesn’t take sides. He doesn’t care about kings or commoners. He is Death.
WEISS: I don’t think of the Night King as a villai... |
78,946 | Throughout all the episodes where the army of the dead and the White Walkers are shown in *Game of Thrones*, the only thing that we can understand is that the White Walkers and their army want to get beyond the wall.
They are going to kill whoever comes in their way, but what is the thing that the Night King seeks? W... | 2017/08/17 | [
"https://movies.stackexchange.com/questions/78946",
"https://movies.stackexchange.com",
"https://movies.stackexchange.com/users/20877/"
] | It's simple. Night King lived in [Lands of Always Winter](http://awoiaf.westeros.org/index.php/Land_of_Always_Winter) for 8000 years. One day he walked out of his Ice citadel, turned around and looked at the area and said: "Oh f..k, look where I live... this place s..ks". So he decided to move to the warmer areas but e... | It is not clear yet what the White Walkers really want but there are many theories.
The most logical for me is explained in this video:
Summary: In the long night the first Men and the white walkers made a deal to end the war. The white walkers built the wall (it's unlogical that a big wall of ice was built by human... |
78,946 | Throughout all the episodes where the army of the dead and the White Walkers are shown in *Game of Thrones*, the only thing that we can understand is that the White Walkers and their army want to get beyond the wall.
They are going to kill whoever comes in their way, but what is the thing that the Night King seeks? W... | 2017/08/17 | [
"https://movies.stackexchange.com/questions/78946",
"https://movies.stackexchange.com",
"https://movies.stackexchange.com/users/20877/"
] | Deadline recently interviewed showrunners Benioff and Weiss, and they explained that the Night King is basically a metaphor for Death itself. He is doing what he was created to do: Kill men. He doesn’t take sides. He doesn’t care about kings or commoners. He is Death.
WEISS: I don’t think of the Night King as a villai... | It is not clear yet what the White Walkers really want but there are many theories.
The most logical for me is explained in this video:
Summary: In the long night the first Men and the white walkers made a deal to end the war. The white walkers built the wall (it's unlogical that a big wall of ice was built by human... |
21,071,611 | ```
main()
{
int a[2][3][2]={{1,2},{9,8},{3,7}},{{2,2},{1,4},{5,4}};
printf("%d %d %d",a[1]-a[0],a[1][0]-a[0][0],a[1][0][0]-a[0][0][0]);
}
```
The output given in the book is 3 6 1. I am unsure about the working of 3-d array. Could someone please explain to me the entire process of the above code? | 2014/01/12 | [
"https://Stackoverflow.com/questions/21071611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3186668/"
] | Diagrammatically, the array initialized as:
```
int a[2][3][2] = { {{1,2},{9,8},{3,7}}, {{2,2},{1,4},{5,4}} };
```
(note the extra pair of braces that are necessary compared with the code in the question) looks like this in memory:
```
| a |
| ... | An array can be of any other type, including other arrays. So what you have is an array of two arrays of three arrays of two integers. |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | use homebrew to install nvm
1. `brew install nvm`
2. edit your system configuration
```
vim ~/.zshrc # or vim ~/.bashrc
export NVM_DIR=~/.nvm
```
esc > :wq
save file
3. reload the configuration
`source $(brew --prefix nvm)/nvm.sh`
4. view nvm version
```
$ nvm --version
# 0.36.0
```
enjoy it. | Add this code to .zshrc on your user directory
```
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
```
Then ... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | This worked for me on Ubuntu 20.04.
Install or update nvm
```
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
```
Add in your ~/.zshrc
```
echo 'export NVM_DIR=~/.nvm' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> ~/.zshrc
```
Load in the current shell env... | I discovered that there is a nvm plug-in shipping with oh-my-zsh (that's different from lukechilds plugin). After short inspection, I think it adds the necessary modifications to `.zshrc` when loading, so simply adding `nvm` to the plugins list in `.zshrc` should work as well (and it does for me).
I did not find any m... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | **Switching from Bash to Oh-My-Zsh**
If you already have `nvm` installed and you're switching from `bash` to `oh-my-zsh` you can simply open up your `.zshrc` file and add the `nvm` plugin that is included with `oh-my-zsh`:
1. Open your zsh config file`.zshrc` in nano with this command: `nano ~/.zshrc`
2. Scroll down ... | With Linux (Ubuntu 20.04 - 22.04)
With your favorite editor, you edit ~/.zshrc
```
nano or vi ~/.zshrc
```
At the end of the file your add:
```
# NVM
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
```
And then you run:
```
source ~/.zshrc
``` |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | **Switching from Bash to Oh-My-Zsh**
If you already have `nvm` installed and you're switching from `bash` to `oh-my-zsh` you can simply open up your `.zshrc` file and add the `nvm` plugin that is included with `oh-my-zsh`:
1. Open your zsh config file`.zshrc` in nano with this command: `nano ~/.zshrc`
2. Scroll down ... | I strongly suggest using [christophemarois' approach to lazy loading nvm (node, npm and global packages)](https://gist.github.com/fl0w/07ce79bd44788f647deab307c94d6922#gistcomment-2650045) in order to avoid slow shell starting times:
```
# Add every binary that requires nvm, npm or node to run to an array of node glob... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | I discovered that there is a nvm plug-in shipping with oh-my-zsh (that's different from lukechilds plugin). After short inspection, I think it adds the necessary modifications to `.zshrc` when loading, so simply adding `nvm` to the plugins list in `.zshrc` should work as well (and it does for me).
I did not find any m... | Add this code to .zshrc on your user directory
```
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
```
Then ... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | A much easier solution is to use the [nvm plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/nvm) that is shipped by default:
>
> It also automatically sources nvm, so you don't need to do it manually
> in your .zshrc
>
>
>
1. `git clone https://github.com/nvm-sh/nvm.git ~/.nvm`
2. `cd ~/.nvm && git ... | I strongly suggest using [christophemarois' approach to lazy loading nvm (node, npm and global packages)](https://gist.github.com/fl0w/07ce79bd44788f647deab307c94d6922#gistcomment-2650045) in order to avoid slow shell starting times:
```
# Add every binary that requires nvm, npm or node to run to an array of node glob... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | **Switching from Bash to Oh-My-Zsh**
If you already have `nvm` installed and you're switching from `bash` to `oh-my-zsh` you can simply open up your `.zshrc` file and add the `nvm` plugin that is included with `oh-my-zsh`:
1. Open your zsh config file`.zshrc` in nano with this command: `nano ~/.zshrc`
2. Scroll down ... | This worked for me on Ubuntu 20.04.
Install or update nvm
```
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
```
Add in your ~/.zshrc
```
echo 'export NVM_DIR=~/.nvm' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> ~/.zshrc
```
Load in the current shell env... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | Add this code to .zshrc on your user directory
```
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
```
Then ... | I strongly suggest using [christophemarois' approach to lazy loading nvm (node, npm and global packages)](https://gist.github.com/fl0w/07ce79bd44788f647deab307c94d6922#gistcomment-2650045) in order to avoid slow shell starting times:
```
# Add every binary that requires nvm, npm or node to run to an array of node glob... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | This worked for me on Ubuntu 20.04.
Install or update nvm
```
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
```
Add in your ~/.zshrc
```
echo 'export NVM_DIR=~/.nvm' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> ~/.zshrc
```
Load in the current shell env... | I strongly suggest using [christophemarois' approach to lazy loading nvm (node, npm and global packages)](https://gist.github.com/fl0w/07ce79bd44788f647deab307c94d6922#gistcomment-2650045) in order to avoid slow shell starting times:
```
# Add every binary that requires nvm, npm or node to run to an array of node glob... |
47,009,776 | In the system there is a `nodejs`, installed through `nvm`. The command is not running `npm`.
Console is `Oh my zsh` | 2017/10/30 | [
"https://Stackoverflow.com/questions/47009776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5222141/"
] | **Switching from Bash to Oh-My-Zsh**
If you already have `nvm` installed and you're switching from `bash` to `oh-my-zsh` you can simply open up your `.zshrc` file and add the `nvm` plugin that is included with `oh-my-zsh`:
1. Open your zsh config file`.zshrc` in nano with this command: `nano ~/.zshrc`
2. Scroll down ... | A much easier solution is to use the [nvm plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/nvm) that is shipped by default:
>
> It also automatically sources nvm, so you don't need to do it manually
> in your .zshrc
>
>
>
1. `git clone https://github.com/nvm-sh/nvm.git ~/.nvm`
2. `cd ~/.nvm && git ... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | See here: [What does the "yield" keyword do in Python?](https://stackoverflow.com/questions/231767/the-python-yield-keyword-explained)
This describes your issue in detail.
In short, because the way Python will interprate the function (either as an generating object or a returning object, everything in Python is object... | What you want is indeed possible:
```
def func(lis):
if len(lis) == 1:
return lis[0] * 2
else:
return (item * 2 for item in lis)
```
This returns a value in the one case and a generator in the other case.
But be aware that this will lead to problems: On every call, you will have to make the ... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Python has to decide whether a function is a generator at bytecode compilation time. This is because the semantics of generators say that none of the code in a generator function runs before the first `next` call; the generator function returns a generator iterator that, when `next` is called, runs the generator code. ... | See here: [What does the "yield" keyword do in Python?](https://stackoverflow.com/questions/231767/the-python-yield-keyword-explained)
This describes your issue in detail.
In short, because the way Python will interprate the function (either as an generating object or a returning object, everything in Python is object... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | See here: [What does the "yield" keyword do in Python?](https://stackoverflow.com/questions/231767/the-python-yield-keyword-explained)
This describes your issue in detail.
In short, because the way Python will interprate the function (either as an generating object or a returning object, everything in Python is object... | The other answers already explained the yield/return issue. You can just use `map` to make this much simpler:
```
def func(lis):
return map(lambda item: item * 2, lis)
# similar to: return [item * 2 for item in lis]
```
Of course, this will always return a list, because `lis` is a list, even if it only has on... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Is not that, you cannot use a return with yield, but rather, you cannot use return with argument, when your function has a yield making it a generator
You might want to change your implementation to
```
def func(lis):
for item in lis:
yield item * 2
``` | What you want is indeed possible:
```
def func(lis):
if len(lis) == 1:
return lis[0] * 2
else:
return (item * 2 for item in lis)
```
This returns a value in the one case and a generator in the other case.
But be aware that this will lead to problems: On every call, you will have to make the ... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Python has to decide whether a function is a generator at bytecode compilation time. This is because the semantics of generators say that none of the code in a generator function runs before the first `next` call; the generator function returns a generator iterator that, when `next` is called, runs the generator code. ... | Is not that, you cannot use a return with yield, but rather, you cannot use return with argument, when your function has a yield making it a generator
You might want to change your implementation to
```
def func(lis):
for item in lis:
yield item * 2
``` |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Is not that, you cannot use a return with yield, but rather, you cannot use return with argument, when your function has a yield making it a generator
You might want to change your implementation to
```
def func(lis):
for item in lis:
yield item * 2
``` | The other answers already explained the yield/return issue. You can just use `map` to make this much simpler:
```
def func(lis):
return map(lambda item: item * 2, lis)
# similar to: return [item * 2 for item in lis]
```
Of course, this will always return a list, because `lis` is a list, even if it only has on... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Python has to decide whether a function is a generator at bytecode compilation time. This is because the semantics of generators say that none of the code in a generator function runs before the first `next` call; the generator function returns a generator iterator that, when `next` is called, runs the generator code. ... | What you want is indeed possible:
```
def func(lis):
if len(lis) == 1:
return lis[0] * 2
else:
return (item * 2 for item in lis)
```
This returns a value in the one case and a generator in the other case.
But be aware that this will lead to problems: On every call, you will have to make the ... |
18,215,828 | I would like you to consider the following code:
```
def func(alist):
if len(alist) == 1:
return arg * 2
for item in alist:
yield item * 2
```
When I run it, I get this error:
```
SyntaxError: 'return' with argument inside generator
```
Now, I realize that I cannot do this. However, I woul... | 2013/08/13 | [
"https://Stackoverflow.com/questions/18215828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Python has to decide whether a function is a generator at bytecode compilation time. This is because the semantics of generators say that none of the code in a generator function runs before the first `next` call; the generator function returns a generator iterator that, when `next` is called, runs the generator code. ... | The other answers already explained the yield/return issue. You can just use `map` to make this much simpler:
```
def func(lis):
return map(lambda item: item * 2, lis)
# similar to: return [item * 2 for item in lis]
```
Of course, this will always return a list, because `lis` is a list, even if it only has on... |
253,067 | I was wondering how to implement a directed (or one-sided) Hausdorff distance function in PostGIS?
I looked into the [PostGIS 2.3.3 source code](https://github.com/postgis/postgis/blob/9ca34e6790224fd00c65aff1c82cd91ca396455f/postgis/lwgeom_geos.c#L164), and it seems that [ST\_HausdorffDistance](https://postgis.net/do... | 2017/08/23 | [
"https://gis.stackexchange.com/questions/253067",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/34474/"
] | The [Esri documentation](http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-postgresql/connect-postgresql.htm) now specifies this exact case, with an inset box that states:
>
> Note:
> If your PostgreSQL database cluster is listening on a port other than
> the default (5432), include the port number in... | what I had to do is
1.edit the pg\_hba.conf add a row (may not be necessary)
```
host all all 0.0.0.0/0 trust
```
2.
when connecting to arc using the add database connection. in the instance box
I typed "computer name,port" so in my case `arcserver,5433` |
1,847 | I've [said before](https://linguistics.meta.stackexchange.com/a/1756/2555) that etymology has a tricky relationship with linguistics:
>
> Linguistics is the study of language systems. Etymology questions belong here when they're asking about systematic issues. This could involve sound system changes. It could be abou... | 2019/05/06 | [
"https://linguistics.meta.stackexchange.com/questions/1847",
"https://linguistics.meta.stackexchange.com",
"https://linguistics.meta.stackexchange.com/users/2555/"
] | Here are mine. I'll add to it as I come across more.
* [Relations between 'knee' and 'generation'](https://linguistics.stackexchange.com/q/31345/2555)
* [Are any of the Old Chinese reconstructions for「能」plausible descendants of Proto-Sino-Tibetan /\*dɣwjəm/?](https://linguistics.stackexchange.com/q/31120/2555) | This is my list of okay etymology questions:
* [Which of 可爱/可愛い was exported to the other between Chinese and Japanese?](https://linguistics.stackexchange.com/questions/20049/which-of-%E5%8F%AF%E7%88%B1-%E5%8F%AF%E6%84%9B%E3%81%84-was-exported-to-the-other-between-chinese-and-japanese)
* [How did Norwegian "huske" der... |
251,359 | I have a wired network and my neigbhors offered to share wireless internet. How do I connect my ethernet networks to wireless. I don't understand There is ethernet port, wire and where d o I plugin other wire? Because wirless has no port, it's wireless, how is this even possible?
Ok so then We go to the beach and ther... | 2011/02/28 | [
"https://superuser.com/questions/251359",
"https://superuser.com",
"https://superuser.com/users/69515/"
] | To link your wired network to your neighbour's wireless, you will need to connect a **Wireless Bridge** to your network and associate it with their wireless access point - or do something less ideal like drill a hole in the wall and connect a network cable to their equipment, if they have any spare data ports - even th... | You need a wireless bridge or a wireless gaming adapter, which is a device that connects to a wireless network and provides one or more wired Ethernet ports. These devices are often used to connect gaming consoles and other devices to a wireless network when the devices themselves don't have wi-fi connectivity, hence t... |
49,943,116 | I'm asking this question on the back of a [previous question](https://stackoverflow.com/questions/49763453/how-to-query-an-on-premise-dynamics-crm-from-a-web-app-node-express) I raised, as the scope of the question has changed somewhat but that might be worth reading first for background info.
I'm trying to programati... | 2018/04/20 | [
"https://Stackoverflow.com/questions/49943116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3923521/"
] | Based on my following understanding:
* You are using CRM on premises with claims authentication (ADFS). This means that when an user accesses CRM, the user is redirected to ADFS for authentication (if the user is in the internal network, by default ADFS uses integrated Windows authentication) and then the user is redi... | that is a redirect to an ADFS server for claims based authentication. That page, or the next redirect, will ask you to authenticate with either cert, forms, or windows integrated (NTLM or Kerberos). If you pass auth, your browser will be given a token to send to <https://my.crm.endpoint>. The URL suggest the claims wil... |
55,230,594 | I've been working through a LinuxAcademy lab for terraform using docker containers, which has all been going fine. I've been putting all my code into a private repo so I can refer to it and pull it down onto my home workstation off the linuxacademy lab servers.
I've run into an issue after creating an S3 bucket using ... | 2019/03/18 | [
"https://Stackoverflow.com/questions/55230594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9705884/"
] | I've always used the .gitignore file generated by [gitignore.io/api/terraform](https://www.gitignore.io/api/terraform) - give that a shot and see if it helps.
Make sure you commit and push your updated `.gitignore` file first before trying `git status` and making a separate commit for the rest of your files. | Use the below command to fix this issue.
```
git filter-branch -f --index-filter 'git rm --cached -r --ignore-unmatch .terraform/'
```
This command works for me. |
55,230,594 | I've been working through a LinuxAcademy lab for terraform using docker containers, which has all been going fine. I've been putting all my code into a private repo so I can refer to it and pull it down onto my home workstation off the linuxacademy lab servers.
I've run into an issue after creating an S3 bucket using ... | 2019/03/18 | [
"https://Stackoverflow.com/questions/55230594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9705884/"
] | I've always used the .gitignore file generated by [gitignore.io/api/terraform](https://www.gitignore.io/api/terraform) - give that a shot and see if it helps.
Make sure you commit and push your updated `.gitignore` file first before trying `git status` and making a separate commit for the rest of your files. | 1. Make sure your .gitignore file is like this
```
# Local .terraform directories
/.terraform/
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
crash.*.log
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not... |
32,132,623 | I am using navigation drawer in my app,I have fragments like F1,F2 and so on..and in every `fragment` I am parsing data and display in `listview`,everything is works fine if I go through my app like F1>F2>F3 and so on..but the issue is if I go from F3 to F2,the data which I had in my F2 fragments is not showing,and dis... | 2015/08/21 | [
"https://Stackoverflow.com/questions/32132623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4407266/"
] | Please call `addToBackStack(null)` when you perform fragment transaction.
```
fragmentManager.beginTransaction()
.replace(R.id.mainContent, fragment)
.addToBackStack(null)
.commit();
``` | Please update your OnCreateView() as below:
```
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (view != null) {
if (view.getParent() != null) {
((ViewGroup)view.getParent()).removeView(view);
}
return view;
... |
26,140,433 | I have a date that looks like this: `2014-10-01 12:35:29.440`
the table looks like this:
```
ORDER 1 | 2014-07-31 00:00:00.000
ORDER 2 | 2015-07-31 00:00:00.000
```
sorry i wanted ORDER 2 to show up.. As my get date returns todays date and that is GREATER than 2014-07-31 00:00:00.000
Here is what i have tried:
... | 2014/10/01 | [
"https://Stackoverflow.com/questions/26140433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2123120/"
] | Your question still isn't quite worded in a way that is conducive to what you need... but I think I understand what you want now based on the comments.
Based on the comment:
>
> IF it doesnt match the date then it needs to return the next row.
> Which is ORDER 2
>
>
>
Something like this should work:
```
SELEC... | [DATEDIFF](http://msdn.microsoft.com/en-us/library/ms189794.aspx) will come handy, also you have to order by `ORDER_DATE`:
```
SELECT TOP 1 NAME
FROM ORDER_DATES
WHERE DATEDIFF(DAY,ORDER_DATE,GETDATE())>0
ORDER BY ORDER_DATE DESC
``` |
26,140,433 | I have a date that looks like this: `2014-10-01 12:35:29.440`
the table looks like this:
```
ORDER 1 | 2014-07-31 00:00:00.000
ORDER 2 | 2015-07-31 00:00:00.000
```
sorry i wanted ORDER 2 to show up.. As my get date returns todays date and that is GREATER than 2014-07-31 00:00:00.000
Here is what i have tried:
... | 2014/10/01 | [
"https://Stackoverflow.com/questions/26140433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2123120/"
] | Your question still isn't quite worded in a way that is conducive to what you need... but I think I understand what you want now based on the comments.
Based on the comment:
>
> IF it doesnt match the date then it needs to return the next row.
> Which is ORDER 2
>
>
>
Something like this should work:
```
SELEC... | Check if you are querying against right table
```
declare @dt datetime = cast('2014-10-01 12:35:29.440' as datetime), @dt2 datetime= cast('2014-07-31 00:00:00.000' as datetime);
print(case when @dt > @dt2 then 1 else 0 end);
```
This piece of script shows output 1 i.e. condition should match for ORDER 1.
Verify... |
26,140,433 | I have a date that looks like this: `2014-10-01 12:35:29.440`
the table looks like this:
```
ORDER 1 | 2014-07-31 00:00:00.000
ORDER 2 | 2015-07-31 00:00:00.000
```
sorry i wanted ORDER 2 to show up.. As my get date returns todays date and that is GREATER than 2014-07-31 00:00:00.000
Here is what i have tried:
... | 2014/10/01 | [
"https://Stackoverflow.com/questions/26140433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2123120/"
] | Your question still isn't quite worded in a way that is conducive to what you need... but I think I understand what you want now based on the comments.
Based on the comment:
>
> IF it doesnt match the date then it needs to return the next row.
> Which is ORDER 2
>
>
>
Something like this should work:
```
SELEC... | You can write as:
```
SELECT NAME
FROM ORDER_DATES
WHERE cast(GETDATE()as date) > cast (ORDER_DATE as date)
ORDER BY NAME DESC
```
`[Demo](http://rextester.com/KHPX8378)` |
58,964,792 | I did a smart contract to vote, but I a, having troubles with one of my functions ("results"). Here comes the smart contract:
```
pragma solidity ^0.5.7;
contract Voting{
struct Option{
string name;
uint256 votes;
}
Option[] private options;
address[] private alreadyVote;
address... | 2019/11/20 | [
"https://Stackoverflow.com/questions/58964792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9683062/"
] | The brief answer is that GADTs make the type system too expressive to be fully inferred.
For instance, in your case, the following functions are both total (aka they handle all possible values of their input
```
let one = (One) => None
let two = (Two) => None
```
You can check that they are total by adding an explic... | Someone will probably come around soon to give a proper explanation, but the short answer is that you need to use a locally abstract type in place of the type variable.
```
let x: type a. t(a) => option(a) =
fun
| One => None
| Two => None;
```
Why? Well that's still a mystery to me, especially in this case wh... |
115,794 | Everytime Dota 2 crashes steam makes memory dumps and they're placed in the *C:\Program Files\Steam\dumps*.
Now my problem is that my HDD space is pretty low now, and each "dump" file is a bit over 1 GB. And i really don't have any use for them either, i don't plan on reporting the crashes because I'm pretty sure it w... | 2013/05/01 | [
"https://gaming.stackexchange.com/questions/115794",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/19932/"
] | For what it's worth, it will only be performing a full dump during the beta phase. After that, they will switch to regular minidumps, which are much much smaller... <http://dev.dota2.com/showthread.php?t=1533&p=4910&viewfull=1#post4910>
Obviously, that could be going on for a long period to come though. In the meantim... | No, there is no way to stop that since that is a hard coded function in Dota 2. Those minidumps are generated by the program itself.
You should report it though if you get that many crashes... |
115,794 | Everytime Dota 2 crashes steam makes memory dumps and they're placed in the *C:\Program Files\Steam\dumps*.
Now my problem is that my HDD space is pretty low now, and each "dump" file is a bit over 1 GB. And i really don't have any use for them either, i don't plan on reporting the crashes because I'm pretty sure it w... | 2013/05/01 | [
"https://gaming.stackexchange.com/questions/115794",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/19932/"
] | As of **May 3rd, 2013** (when main DotA 2 client gets patched) DotA 2 crashes **won't create** such large .dmp files.
[Quote](http://dev.dota2.com/showthread.php?t=85087) from the official DotA 2 test client patch notes:
* Update 2 - "Dota 2 will no longer generate full crash dumps"
---
If the problem persists you ... | No, there is no way to stop that since that is a hard coded function in Dota 2. Those minidumps are generated by the program itself.
You should report it though if you get that many crashes... |
20,167,244 | Shell output:
```
Wener@Wener-PC /web/learn/angular/learn/angularjs-book
$ git branch --l
* forAnyOption
forRawgithub
master
myMatser
Wener@Wener-PC /web/learn/angular/learn/angularjs-book
$ git co master
切换到分支 'master'
Wener@Wener-PC /web/learn/angular/learn/angularjs-book
$ git co myMaster
error: pathspec 'm... | 2013/11/23 | [
"https://Stackoverflow.com/questions/20167244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870054/"
] | Hmm...as far as I know, you would have to create new class and combine them this way (separated by a space):
```
-webkit-transform: rotate(90deg) scale(0.25, 0.25);
``` | One thing you could do is get the computed transform style in JS and concatenate your secondary transform value:
**HTML**
```
<div class="rotate-scale"></div>
```
**CSS**
```
.rotate-scale {
transform: rotate(90deg);
}
```
**JS**
```
var el = document.querySelector('.rotate-scale'),
// rotation will get ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.