qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
33,657,172 | I had [ember-cli](http://www.ember-cli.com/) installed on my computer and my app was running perfectly, but yesterday I formatted my computer and upgraded to windows 10 and tried to install [ember-cli](http://www.ember-cli.com/) exactly the same way it was before but now when I try to build or run my application I get ... | 2015/11/11 | [
"https://Stackoverflow.com/questions/33657172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4453976/"
] | I had the same problem today. It seems there's a bug in a dependency module:
```
"name": "fast-sourcemap-concat",
"version": "0.2.6"
```
it does not handle properly Windows paths starting with drive letters, like `C:/`.
For now, I fixed it manually in `fast-sourcemap-concat/lib/source-map.js`, function `_resolveFil... | Try to reinstall Ember CLI in your project directory (local version). You can follow the steps from [Ember CLI GitHub releases page](https://github.com/ember-cli/ember-cli/releases) - start with `rm -rf node_modules bower_components dist tmp` and continue following **Project Update** guide. |
33,657,172 | I had [ember-cli](http://www.ember-cli.com/) installed on my computer and my app was running perfectly, but yesterday I formatted my computer and upgraded to windows 10 and tried to install [ember-cli](http://www.ember-cli.com/) exactly the same way it was before but now when I try to build or run my application I get ... | 2015/11/11 | [
"https://Stackoverflow.com/questions/33657172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4453976/"
] | This was fixed in <https://github.com/ember-cli/ember-cli/issues/5055>
You will need to reinstall your node modules:
```
rm -rf node_modules
npm cache clear
npm install
``` | Try to reinstall Ember CLI in your project directory (local version). You can follow the steps from [Ember CLI GitHub releases page](https://github.com/ember-cli/ember-cli/releases) - start with `rm -rf node_modules bower_components dist tmp` and continue following **Project Update** guide. |
33,657,172 | I had [ember-cli](http://www.ember-cli.com/) installed on my computer and my app was running perfectly, but yesterday I formatted my computer and upgraded to windows 10 and tried to install [ember-cli](http://www.ember-cli.com/) exactly the same way it was before but now when I try to build or run my application I get ... | 2015/11/11 | [
"https://Stackoverflow.com/questions/33657172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4453976/"
] | I had the same problem today. It seems there's a bug in a dependency module:
```
"name": "fast-sourcemap-concat",
"version": "0.2.6"
```
it does not handle properly Windows paths starting with drive letters, like `C:/`.
For now, I fixed it manually in `fast-sourcemap-concat/lib/source-map.js`, function `_resolveFil... | This was fixed in <https://github.com/ember-cli/ember-cli/issues/5055>
You will need to reinstall your node modules:
```
rm -rf node_modules
npm cache clear
npm install
``` |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | With `awk`:
```
$ awk 'NR%4==2' a
NTCCCCC
NTCCCCC
```
`NR` stands for number or record, in this case being number of line. Then, if we divide it by 4, we get all lines whose modulus is 2.
---
### Update on your comment
>
> And wat if I want the output to be > "nextline" NTCCCCC > "nextline"
> NTCCCCC i.e. I wan... | ```
awk '/^\@/{getline;print}' your_file
``` |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | With `awk`:
```
$ awk 'NR%4==2' a
NTCCCCC
NTCCCCC
```
`NR` stands for number or record, in this case being number of line. Then, if we divide it by 4, we get all lines whose modulus is 2.
---
### Update on your comment
>
> And wat if I want the output to be > "nextline" NTCCCCC > "nextline"
> NTCCCCC i.e. I wan... | You could have a variable like `$printNextLine` and loop over all your Input, Setting it to `1` whenever you see a line with @ and printing the current line while Setting the variable back to `0` if it is `1`.
Not as effective and short as the other answers but maybe more intuitive for someone new to perl. |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | With `awk`:
```
$ awk 'NR%4==2' a
NTCCCCC
NTCCCCC
```
`NR` stands for number or record, in this case being number of line. Then, if we divide it by 4, we get all lines whose modulus is 2.
---
### Update on your comment
>
> And wat if I want the output to be > "nextline" NTCCCCC > "nextline"
> NTCCCCC i.e. I wan... | ```
awk '/^\@/{getline;print}' file
``` |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | ```
perl -ne 'print if $b and !/^@/; $b=/^@/' file
``` | ```
awk '/^\@/{getline;print}' your_file
``` |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | ```
perl -ne 'print if $b and !/^@/; $b=/^@/' file
``` | You could have a variable like `$printNextLine` and loop over all your Input, Setting it to `1` whenever you see a line with @ and printing the current line while Setting the variable back to `0` if it is `1`.
Not as effective and short as the other answers but maybe more intuitive for someone new to perl. |
19,490,607 | Suppose I have a text file with the following format
```
@ATDGGSGDTSG
NTCCCCC
+
@nddhdhnadn
@ATDGGSGDTSG
NTCCCCC
+
nddhdhnadn
```
Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the line after the line starting with "@" i.e 2nd line..6th line..etc.
How can I do it? | 2013/10/21 | [
"https://Stackoverflow.com/questions/19490607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972365/"
] | ```
perl -ne 'print if $b and !/^@/; $b=/^@/' file
``` | ```
awk '/^\@/{getline;print}' file
``` |
38,603,214 | when i try to execute a command to list all the dead or dangling docker in volume and delete it directly :
**docker volume rm $(docker volume ls -qf dangling=true)**
and it will throw an exception which is :
**Unable to remove a directory of out the Docker root /var/lib/docker: /home/docker/volumes/ffdffa840a2fb547... | 2016/07/27 | [
"https://Stackoverflow.com/questions/38603214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047741/"
] | Same issue, below work for me
```
cd /home/docker/volumes/
rm -rf $(docker volume ls -qf dangling=true)
``` | Might be a known issue. I have this little helper for some time now:
```
#!/bin/bash
imgs=$(docker images | awk '/<none>/ { print $3 }')
if [ "${imgs}" != "" ]; then
echo docker rmi ${imgs}
docker rmi ${imgs}
else
echo "No images to remove"
fi
procs=$(docker ps -a -q --no-trunc)
if [ "${procs}" != "" ]; the... |
1,983,891 | I got a weird problem here like I got a site that users can post comments on a friend profile page.Everytime a user post a comment my application sends e-mail to that page owner, you know to inform for a new posted comment on his/her profile page.The problem is I want to stop the application from sending email if that ... | 2009/12/31 | [
"https://Stackoverflow.com/questions/1983891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/200099/"
] | I think it will be clearer if you write your condition as
```
mytable.PostedDate <= DateTime.Now.AddHours(-5)
```
as the right hand side now reads as "Five Hours Ago."
So the entire condition now reads as *My posted date is earlier than (or equal to) five hours ago.* | You should be checking to see if mytable.PostedDate.AddHours(5) <= DateTime.Now. I think you just got it backwards.
```
mytable.PostedDate.AddHours(5) <= DateTime.Now
``` |
1,287,786 | I know that it is probably more expensive because they're officially tested and supported, but I'm wondering if model-specific memory is "special" apart from that fact. | 2018/01/22 | [
"https://superuser.com/questions/1287786",
"https://superuser.com",
"https://superuser.com/users/96594/"
] | It sounds like a bad idea to be parsing a date that could be in various formats which format you don't know. Better to get the date in a specific format, even if that means not pure batch but invoking powershell.
```
C:\Users\tod>for /f %a in ('C:\Windows\System32\WindowsPowershell\v1.0\powershell -Command "Get-Date -... | ### How can I get the date in a batch file in a locale independent format?
>
> I need to be displayed with this format dd/mm/yyyy
>
>
>
First, what not to do:
* Using `%date%` to provide a solution is, as used in the other answer, dependent on the OS Locale, Regional, and Language settings and may provide wrong ... |
12,509,050 | I'm trying to use Google protocol buffer for Java(I'm a newbie about Java, just trying).
First of all, I'm using OSX and I've installed protocol buffer with `brew install protobuf` command.
protoc command works okay.
I've generated `MyProtocol.java` by protoc.
I've installed protocol buffer for Java as its instruct... | 2012/09/20 | [
"https://Stackoverflow.com/questions/12509050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1145208/"
] | The [Maven Dependency Plugin](http://maven.apache.org/plugins/maven-dependency-plugin/) has a goal called [`build-classpath`](http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html) which does what you need. You can get usage hints [on the Usage page](http://maven.apache.org/plugins/maven-dep... | Maven doesn't change your setup, so it's up to you to set your CLASSPATH according to your need.
However there are at least two ways in which Maven can halp you:
* You can use the [Maven Assembly plugin](http://maven.apache.org/plugins/maven-assembly-plugin/) to collect all your dependencies in a directory or an arch... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | A USB UART, such as FTDI, isn't really expensive. All your other options sound like they will cost you more in parts and time than the ~$13 it might cost you, and be unreliable or slow. Just go for the fast and trouble-free option, such as:
<http://www.dfrobot.com/index.php?route=product/product&product_id=147#.UOamLG... | For any projects in which USB UART is not an option, additional UARTs must be implemented through the GPIO pins, and using a lower-powered Raspberry Pi (e.g., Pi Zero) other than the version 4, which is now equipped with 4 serials, adding extra serial interfaces could be done by using [soft\_uart](https://github.com/ad... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | I found what you are looking for: an I2C/SPI slave to UART/IrDA/GPIO bridge.
They come in single and dual version (so 1 or 2 extra UARTs). They (NXP) also (for the other side in case needed) have I2C/SPI master to UART/IrDA/GPIO bridges.
More information can be found about these chips [here](http://ics.nxp.com/produc... | For any projects in which USB UART is not an option, additional UARTs must be implemented through the GPIO pins, and using a lower-powered Raspberry Pi (e.g., Pi Zero) other than the version 4, which is now equipped with 4 serials, adding extra serial interfaces could be done by using [soft\_uart](https://github.com/ad... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | If you decide to skip adding extra hardware and just go the bit-banging route, this isn't as difficult as some picture it.
First off, your communication thread must go realtime:
```
#include<sched.h>
struct sched_param param;
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
if( sched_setsche... | If the communication to the several UART slave devices does not need to occur in parallel, you could share the one available UART port between them.
You could use transistors to enable only the RxD/TxD connections to the device you currently wish to talk to. These transistors can be controlled by other Raspberry Pi GPI... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | I had the same problem. I need connect to 2-4 GSM modules and I found hardware solution: <http://www.instructables.com/id/SPI-to-4-x-UART-Bridge-MULTIUART/>
This solution are base on PIC24FJ64GA306. You can replace PIC with Atmel mcu, but You must create new PCB :) | Another solution is to move up to a PI4 apparently you can enable multiple uart pins on that one (did it myself)
You can google the info up, it is mostly a config setting to enable the additional uart pins.
<https://www.raspberrypi.org/forums/viewtopic.php?t=244827>
This explains it.
Apparently the new gpio pins in t... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | I found what you are looking for: an I2C/SPI slave to UART/IrDA/GPIO bridge.
They come in single and dual version (so 1 or 2 extra UARTs). They (NXP) also (for the other side in case needed) have I2C/SPI master to UART/IrDA/GPIO bridges.
More information can be found about these chips [here](http://ics.nxp.com/produc... | USB to UART bridges are cheap and readily available, but have really lousy timing characteristics. Newark sells an "Embedded Pi" board which has an STM32F ARM processor that you can write bare-metal code on. That chip has three UARTs on it, and I think they can go pretty fast; if you were to use one to communicate with... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | USB to UART bridges are cheap and readily available, but have really lousy timing characteristics. Newark sells an "Embedded Pi" board which has an STM32F ARM processor that you can write bare-metal code on. That chip has three UARTs on it, and I think they can go pretty fast; if you were to use one to communicate with... | A microcontroller like a Picaxe could take serial data in on one pin and output serial data on a certain pin appropriately. This would effectively give you more serial outputs if you were prepared to have to tell the Picaxe which pin to output on. It could also do the same, but in reverse, so it could receive serial da... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | The Raspberry Pi 4 supports up to 4 UART interfaces now that need to be enabled by means of an device tree overlay. You can find how to do this and which Pins are used here for now:
<https://www.raspberrypi.org/forums/viewtopic.php?t=244827>
The RPi foundation is still preparing the documentation for this. | USB to UART bridges are cheap and readily available, but have really lousy timing characteristics. Newark sells an "Embedded Pi" board which has an STM32F ARM processor that you can write bare-metal code on. That chip has three UARTs on it, and I think they can go pretty fast; if you were to use one to communicate with... |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | A USB UART, such as FTDI, isn't really expensive. All your other options sound like they will cost you more in parts and time than the ~$13 it might cost you, and be unreliable or slow. Just go for the fast and trouble-free option, such as:
<http://www.dfrobot.com/index.php?route=product/product&product_id=147#.UOamLG... | The Raspberry Pi 4 supports up to 4 UART interfaces now that need to be enabled by means of an device tree overlay. You can find how to do this and which Pins are used here for now:
<https://www.raspberrypi.org/forums/viewtopic.php?t=244827>
The RPi foundation is still preparing the documentation for this. |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | A USB UART, such as FTDI, isn't really expensive. All your other options sound like they will cost you more in parts and time than the ~$13 it might cost you, and be unreliable or slow. Just go for the fast and trouble-free option, such as:
<http://www.dfrobot.com/index.php?route=product/product&product_id=147#.UOamLG... | I'm using SC16IS752 IC which is SPI to 2xUART converter. It works well with Raspbian Stretch.
It is a bit more expensive than FTDI chip, but there are two uarts and I don't have to use precious USB port. |
3,475 | Ok, I have one uart interface (TXD GPIO 14, RXD GPIO 15). I want at least one more uart interface.
Possible solutions:
* Bit banging:
Use two unrelated spare GPIOs. I understand that timing is a problem on a standard linux. Would it be reliable with very low baudrate?
* Switching:
RPI decides when to talk to which de... | 2012/11/04 | [
"https://raspberrypi.stackexchange.com/questions/3475",
"https://raspberrypi.stackexchange.com",
"https://raspberrypi.stackexchange.com/users/3109/"
] | If you decide to skip adding extra hardware and just go the bit-banging route, this isn't as difficult as some picture it.
First off, your communication thread must go realtime:
```
#include<sched.h>
struct sched_param param;
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
if( sched_setsche... | I'm using SC16IS752 IC which is SPI to 2xUART converter. It works well with Raspbian Stretch.
It is a bit more expensive than FTDI chip, but there are two uarts and I don't have to use precious USB port. |
50,262 | What is the latest procedure of BS IV (Euro IV) petrol-engined cars in PUC Centres?
As far as I know in Petrol Cars the car is kept idling without the Accelerator pressed, while in Diesel Cars the Accelerator is fully pressed.
But recently PUC Centres wanted to raise the engine speed for measuring petrol cars to 2500... | 2017/12/12 | [
"https://mechanics.stackexchange.com/questions/50262",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/34255/"
] | I can only give an answer for the part of the world where I live, which is Finland.
As default, in all cars with three-way catalyst, the vehicle is measured at idle and at >2000 RPM. Lambda value however is not measured at idle, only at >2000 RPM.
However, for Euro3 and Euro4 cars and newer, and also for cars sold af... | **NB:** From the mention of PUC Centres I'm guessing you are located in India?
"Lambda" is, in simple terms a measure of how efficiently the engine is burning based on the air/fuel ratio in the exhaust gases emitted by the engine. How it's calculated is a bit more complicated than is appropriate to cover in a post her... |
9,005,423 | I have the problem with shareing facebook content on my website. It's implemented the 'Like' button but when you 'like' the picture on your facebook profile is shown old picture (obiously cached picture). The things on that website works like this... every day there is a new picture of a girl of the day, but the url is... | 2012/01/25 | [
"https://Stackoverflow.com/questions/9005423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169495/"
] | I stumbled across this because a similar script I had in working condition all of a sudden wasn't doing its job anymore. I figured Facebook prohibited this because a lot of people were using it and causing a heavy load.
Anyway, the next best thing I could do to save time was making a script that outputs ALL the links ... | Please see the link to a previous answer of mine below for more information on facebook caching :
<http://facebook.stackoverflow.com/a/9019926/558021> |
9,005,423 | I have the problem with shareing facebook content on my website. It's implemented the 'Like' button but when you 'like' the picture on your facebook profile is shown old picture (obiously cached picture). The things on that website works like this... every day there is a new picture of a girl of the day, but the url is... | 2012/01/25 | [
"https://Stackoverflow.com/questions/9005423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169495/"
] | I stumbled across this because a similar script I had in working condition all of a sudden wasn't doing its job anymore. I figured Facebook prohibited this because a lot of people were using it and causing a heavy load.
Anyway, the next best thing I could do to save time was making a script that outputs ALL the links ... | You need to add the following line:
```
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
```
(Credit to Sidnicious: [URL linter not working from cURL](https://stackoverflow.com/questions/8730682/url-linter-not-working-from-curl)) |
18,298,937 | Apparently I have too many apache poi jars which return too many methods and go above the limit when I try to read and write an xlsx file. Below is the error I get
```
trouble writing output: Too many methods: 66024; max is 65536. By package:
13 java.lang
1 java.lang.reflect
5 java.util
1 javax.xml.... | 2013/08/18 | [
"https://Stackoverflow.com/questions/18298937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2230151/"
] | Found the issue!
It's Apache POI's XSSF incompatibility with Android! Actually Apache is pretty okay but when Android converts your Java code into Dalvik Executable files it has a method limit of 65536 which the libraries of Apache POI when they handle XSSF exceed. Hence the error. It has nothing to do with lines. :) ... | short answer:
just remove the unnecessary jar files. e.g. from the list you gave, I saw there are '8767' methods from `org.openxmlformats.schemas.drawingml.x2006.main` , if it's not necessary, just remove this jar file and you life will be easier.
Detailed answer:
On titanium official Jira , this bug is still "reo... |
904,655 | I can't seem to find a solution to this.
$$\lim\_{x\to0} \left(\frac{(1+2x)^{1/x}}{e^2}\right)^{1/x}$$
i tried to manipulate to apply Lhopitals rule but i can't see to do it | 2014/08/21 | [
"https://math.stackexchange.com/questions/904655",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/170847/"
] | Whenever you see an exponent, use logs.
$$\require{cancel}\begin{align}y&=\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)^\frac1{x} \\ \ln y &=\frac1{x} \ln\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)=\frac1{x} \left(\underbrace{\ln(1+2x)^{\frac1{x}}}\_{\frac1{x}\ln(1+2x)}- \cancelto{2}{\ln (e^2)}\right)\\&=\frac1{x} \left(... | Once you wrote, as Shavar answered, $$\log(y)=\frac{\log(1+2x)-2x}{x^2}$$ you can also use Taylor series around $x=0$. This gives $$\log(1+2x)=2 x-2 x^2+\frac{8 x^3}{3}+O\left(x^4\right)$$ and then $$\log(y)=-2+\frac{8 x}{3}+O\left(x^2\right)$$ which again approximate $y$ as $$y=\frac{1}{e^2}+\frac{8 x}{3 e^2}+O\left(x... |
904,655 | I can't seem to find a solution to this.
$$\lim\_{x\to0} \left(\frac{(1+2x)^{1/x}}{e^2}\right)^{1/x}$$
i tried to manipulate to apply Lhopitals rule but i can't see to do it | 2014/08/21 | [
"https://math.stackexchange.com/questions/904655",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/170847/"
] | Whenever you see an exponent, use logs.
$$\require{cancel}\begin{align}y&=\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)^\frac1{x} \\ \ln y &=\frac1{x} \ln\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)=\frac1{x} \left(\underbrace{\ln(1+2x)^{\frac1{x}}}\_{\frac1{x}\ln(1+2x)}- \cancelto{2}{\ln (e^2)}\right)\\&=\frac1{x} \left(... | $$\lim\_{x\to0} \left(\frac{(1+2x)^{1/x}}{e^2}\right)^{1/x}\\
=\lim\_{x\to0} \exp\left[(1/x)\ln\left(\frac{(1+2x)^{1/x}}{e^2}\right)\right]\\
=\lim\_{x\to0} \exp\left[\frac1x\{(1/x)\ln(1+2x)-\ln(e^2)\}\right]\\
I=\lim\_{x\to0} \exp\left\{\frac{\ln(1+2x)}{x^2}-\frac2{x}\right\}\\
I=\lim\_{x\to0} \exp\left(4\left\{\frac{... |
904,655 | I can't seem to find a solution to this.
$$\lim\_{x\to0} \left(\frac{(1+2x)^{1/x}}{e^2}\right)^{1/x}$$
i tried to manipulate to apply Lhopitals rule but i can't see to do it | 2014/08/21 | [
"https://math.stackexchange.com/questions/904655",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/170847/"
] | Whenever you see an exponent, use logs.
$$\require{cancel}\begin{align}y&=\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)^\frac1{x} \\ \ln y &=\frac1{x} \ln\left(\frac{(1+2x)^{\frac1{x}}}{e^2}\right)=\frac1{x} \left(\underbrace{\ln(1+2x)^{\frac1{x}}}\_{\frac1{x}\ln(1+2x)}- \cancelto{2}{\ln (e^2)}\right)\\&=\frac1{x} \left(... | There have been many nice solutions provided by others earlier.
This is an alternative approach, without using logs or l'Hopital:
$$\begin{align}
\dfrac {\left(1+\dfrac kn \right) ^n}{e^k}
&= {\left(1+\dfrac kn \right) ^n}e^{-k}\\
&={\left(1+\dfrac kn \right) ^n}\left(1-k+\frac{k^2}{2!}-\frac{k^3}{3!}+... \right)\\
... |
40,642,545 | I want to get count of 3 columns values combination by each combination in SQL Server. How do I get this?
Ex.
```css
Row P1 P2 P3
1 3 10 20
2 4 15 29
3 8 10 16
4 15 4 29
5 10 20 3
Output Should be:
3 10 20 - 2
4 15 29 - 2
8 10 16 - 1
```
Tha... | 2016/11/16 | [
"https://Stackoverflow.com/questions/40642545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/659469/"
] | ### option 1 -
### cross apply, for xml path, group by.
```
select vals,count (*) as cnt
from t cross apply (select ' ' + cast (p as varchar(10)) from (values (p1),(p2),(p3)) as t(p) order by p for xml path('')) v (vals)
group by vals
```
---
```
vals cnt
3 10 20 2
4 15 29 2
8 10 16 ... | Oh, this is a pain.
```
select p_1, p_2, p_3, count(*) as cnt
from t cross apply
(select max(case when seqnum = 1 then p end) as p_1,
max(case when seqnum = 2 then p end) as p_2,
max(case when seqnum = 3 then p end) as p_3
from (select p, row_number() over (order by p) as seqnum
... |
40,642,545 | I want to get count of 3 columns values combination by each combination in SQL Server. How do I get this?
Ex.
```css
Row P1 P2 P3
1 3 10 20
2 4 15 29
3 8 10 16
4 15 4 29
5 10 20 3
Output Should be:
3 10 20 - 2
4 15 29 - 2
8 10 16 - 1
```
Tha... | 2016/11/16 | [
"https://Stackoverflow.com/questions/40642545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/659469/"
] | ### option 1 -
### cross apply, for xml path, group by.
```
select vals,count (*) as cnt
from t cross apply (select ' ' + cast (p as varchar(10)) from (values (p1),(p2),(p3)) as t(p) order by p for xml path('')) v (vals)
group by vals
```
---
```
vals cnt
3 10 20 2
4 15 29 2
8 10 16 ... | This is another approach where in using a `case` expression the least of the 3 values is assigned c1, the second least c2 and the greatest c3. Thereafter,it is just a grouping operation.
```
select c1,c2,c3,count(*)
from (
select case when p1<=p2 and p1<=p3 then p1
when p2<=p1 and p2<=p3 then p2
when ... |
34,412,220 | I know we can create a [HashMap](https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html) in Java. But I want to create a HashMap in C# for my ASP.NET MVC project.
Is this possible to do? If yes, how?
In Java we can create a HashMap like this:
```
import java.util.HashMap;
//...
HashMap<Name, Value> myDicti... | 2015/12/22 | [
"https://Stackoverflow.com/questions/34412220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4172460/"
] | Look at `Dictionary<key,value>` in the `System.Collections.Generic`. It is the C# "parallel" (albeit having some differences, it is the closest to) of `HashMap` in Java. | ```
var myHashMap = new Dictionary<string,object>();
```
Change the types `string` and `object` to whatever you need. |
489,816 | I am trying to parse the ECO dataset, which includes 1-second electric data collected from residential houses.
Link to dataset: <http://vs.inf.ethz.ch/res/show.html?what=eco-data>
But the relationship between the power angle and the real and reactive power do not always make sense to me. Here is an example of 3 rows, ... | 2020/03/29 | [
"https://electronics.stackexchange.com/questions/489816",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/247503/"
] | In the case with distorted currents and voltages:
$$V\_{rms}^2I\_{rms}^2 = S^2 = D^2 +\sum\_h P\_h^2+\sum\_h Q\_h^2$$.
Most likely the phase angle reported between \$V\_h\$ and \$I\_h\$ is that of the fundamental (\$h=1\$) component. There is also the active- and reactive- power for each harmonic \$h\$ for all \$h>1\... | >
> *Hi, my question is mostly about the mathematical relation between
> power angle, apparent power and real power, I believe the kind of
> device is irrelevant*
>
>
>
Real devices and loads can take highly non-sinusoidal currents and hence phase angle measurements are irrelevant. The power triangle of apparent... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | Try this.
```
QTabWidget::pane {
background: red;
}
```
You can read [this](http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar) for details. And one more thing to comment. You can use QObject::objectName() as style sheet's id selector. for example,
```
QTabWidget#myTa... | It is possible simply by:
```
* {background: green;}
```
This style set background for **this widget and all their childs** so you need to know one important thing. The area you think is `QTabWidget` in fact is `QWidget` which is set **inside** of `QTabWidget`. You can easly check where `QTabWidget` is and where is ... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | I had the same problem. I could get it to work with this:
```
QTabWidget::pane > QWidget {
background-color: #262626;
}
``` | Refer this:
<http://doc.qt.digia.com/qt/stylesheet-syntax.html>
Read ID Selector under Selector Types. You can instruct a certain style to be applied only for a given object name. So you can use whatever the name you have given to your tabWidget. |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | It is possible simply by:
```
* {background: green;}
```
This style set background for **this widget and all their childs** so you need to know one important thing. The area you think is `QTabWidget` in fact is `QWidget` which is set **inside** of `QTabWidget`. You can easly check where `QTabWidget` is and where is ... | Try enabling document mode with
`myTab->setDocumentMode(true);`
This has worked for me when everything else has failed. You can do it in code, or by twiddling the property in qtcreator.
You still might have to apply some styles to the pane like so:
```
QTabWidget:pane{
background: red;
}
```
Read more about this ... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | I had the same problem. I could get it to work with this:
```
QTabWidget::pane > QWidget {
background-color: #262626;
}
``` | It is possible simply by:
```
* {background: green;}
```
This style set background for **this widget and all their childs** so you need to know one important thing. The area you think is `QTabWidget` in fact is `QWidget` which is set **inside** of `QTabWidget`. You can easly check where `QTabWidget` is and where is ... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | Try this.
```
QTabWidget::pane {
background: red;
}
```
You can read [this](http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar) for details. And one more thing to comment. You can use QObject::objectName() as style sheet's id selector. for example,
```
QTabWidget#myTa... | add style
```
"background-color:rgb(255,255,255)"
```
to each tab. |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | It is possible simply by:
```
* {background: green;}
```
This style set background for **this widget and all their childs** so you need to know one important thing. The area you think is `QTabWidget` in fact is `QWidget` which is set **inside** of `QTabWidget`. You can easly check where `QTabWidget` is and where is ... | Refer this:
<http://doc.qt.digia.com/qt/stylesheet-syntax.html>
Read ID Selector under Selector Types. You can instruct a certain style to be applied only for a given object name. So you can use whatever the name you have given to your tabWidget. |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | Try this.
```
QTabWidget::pane {
background: red;
}
```
You can read [this](http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar) for details. And one more thing to comment. You can use QObject::objectName() as style sheet's id selector. for example,
```
QTabWidget#myTa... | Try enabling document mode with
`myTab->setDocumentMode(true);`
This has worked for me when everything else has failed. You can do it in code, or by twiddling the property in qtcreator.
You still might have to apply some styles to the pane like so:
```
QTabWidget:pane{
background: red;
}
```
Read more about this ... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | I had the same problem. I could get it to work with this:
```
QTabWidget::pane > QWidget {
background-color: #262626;
}
``` | Try enabling document mode with
`myTab->setDocumentMode(true);`
This has worked for me when everything else has failed. You can do it in code, or by twiddling the property in qtcreator.
You still might have to apply some styles to the pane like so:
```
QTabWidget:pane{
background: red;
}
```
Read more about this ... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | I had the same problem. I could get it to work with this:
```
QTabWidget::pane > QWidget {
background-color: #262626;
}
``` | Try this.
```
QTabWidget::pane {
background: red;
}
```
You can read [this](http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar) for details. And one more thing to comment. You can use QObject::objectName() as style sheet's id selector. for example,
```
QTabWidget#myTa... |
12,993,268 | I want to make a very basic GUI: tabs, text area.
But I want to color my tabs and make them always looking the same on MAC, Windows and Linux.
So, I tryed to use a stylesheet:
```
QTabWidget::pane
{
border-top: 2px solid #1B1B1B;
background-color: #262626;
}
QTabWidget::tab-bar
{
left: 5px;
alignmen... | 2012/10/20 | [
"https://Stackoverflow.com/questions/12993268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364316/"
] | I had the same problem. I could get it to work with this:
```
QTabWidget::pane > QWidget {
background-color: #262626;
}
``` | add style
```
"background-color:rgb(255,255,255)"
```
to each tab. |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | I tried contacting Microsoft for the same requirement but I found this question is already answered by Microsoft support team.
The reply from Microsoft Team was like
>
> Currently, the sub site limit is 2,000 for Office 365 subscriptions.
> We can see the limit here: [SharePoint Online software boundaries and
> li... | I think 2000 subsite per site collection is just a threshold value.
There will be impact on performance if your subsite count is more than 2000.
Thats why Microsoft recommends upto 2000 subsites per site collection.
<https://support.office.com/en-us/article/SharePoint-Online-software-boundaries-and-limits-8f34ff47-b... |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | I think 2000 subsite per site collection is just a threshold value.
There will be impact on performance if your subsite count is more than 2000.
Thats why Microsoft recommends upto 2000 subsites per site collection.
<https://support.office.com/en-us/article/SharePoint-Online-software-boundaries-and-limits-8f34ff47-b... | There is no exact number. These are the relevant figures:
2000 - recommended maximum, after which there may be a performance decrease (Both [On-Premise](https://technet.microsoft.com/en-GB/library/cc262787.aspx?f=255&MSPPError=-2147217396#SiteCollection) and [SPOnline](https://support.office.com/en-gb/article/SharePoi... |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | I think 2000 subsite per site collection is just a threshold value.
There will be impact on performance if your subsite count is more than 2000.
Thats why Microsoft recommends upto 2000 subsites per site collection.
<https://support.office.com/en-us/article/SharePoint-Online-software-boundaries-and-limits-8f34ff47-b... | I think that the official source is <https://support.office.com/en-us/article/sharepoint-online-limits-8f34ff47-b749-408b-abc0-b605e1f6d498>
and the last updates (August 2018) confirming that the Subsites limit for a single SPO Site Collection is 2000. |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | I tried contacting Microsoft for the same requirement but I found this question is already answered by Microsoft support team.
The reply from Microsoft Team was like
>
> Currently, the sub site limit is 2,000 for Office 365 subscriptions.
> We can see the limit here: [SharePoint Online software boundaries and
> li... | There is no exact number. These are the relevant figures:
2000 - recommended maximum, after which there may be a performance decrease (Both [On-Premise](https://technet.microsoft.com/en-GB/library/cc262787.aspx?f=255&MSPPError=-2147217396#SiteCollection) and [SPOnline](https://support.office.com/en-gb/article/SharePoi... |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | I tried contacting Microsoft for the same requirement but I found this question is already answered by Microsoft support team.
The reply from Microsoft Team was like
>
> Currently, the sub site limit is 2,000 for Office 365 subscriptions.
> We can see the limit here: [SharePoint Online software boundaries and
> li... | I think that the official source is <https://support.office.com/en-us/article/sharepoint-online-limits-8f34ff47-b749-408b-abc0-b605e1f6d498>
and the last updates (August 2018) confirming that the Subsites limit for a single SPO Site Collection is 2000. |
187,157 | I'm trying to figure out continuous "Unable to write SPDistributedCache call usage entry." error in ULS and some instructions like [this](http://www.sharepointfire.com/2013/11/the-specified-user-or-domain-group-was-not-found/) suggests that issue might be with super accounts having incorrect username.
The user account... | 2016/07/20 | [
"https://sharepoint.stackexchange.com/questions/187157",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/52396/"
] | There is no exact number. These are the relevant figures:
2000 - recommended maximum, after which there may be a performance decrease (Both [On-Premise](https://technet.microsoft.com/en-GB/library/cc262787.aspx?f=255&MSPPError=-2147217396#SiteCollection) and [SPOnline](https://support.office.com/en-gb/article/SharePoi... | I think that the official source is <https://support.office.com/en-us/article/sharepoint-online-limits-8f34ff47-b749-408b-abc0-b605e1f6d498>
and the last updates (August 2018) confirming that the Subsites limit for a single SPO Site Collection is 2000. |
48,183,616 | I've been trying to figure out how to add a new user,
but I haven't managed to figure it out so the new user will have access to only a specific database without being able to see the whole server / users / databases.
Any help will be apperciated
thank you! | 2018/01/10 | [
"https://Stackoverflow.com/questions/48183616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7507740/"
] | AoT compiler is not very clever. Turns out that it can't handle default imports for some reason...
Not working:
```
import CustomHttp from './services/custom-http.service';
```
Working:
```
import { CustomHttp } from './services/custom-http.service';
``` | For me, I have included duplicate export statements for some services in service's index.ts file. Finally it works after removing one.
(you can use Excel to find out duplicates. :-) )
got from this [link](https://stackoverflow.com/a/42366630/2315972)
```
.....
export * from './custom-message.service';
export * from ... |
288,651 | *I'll be using homological grading throughout this question.*
Let $G$ be a compact connected lie group. The following isomorphisms are classical and can be proven using several methods:
$$H^{\bullet}(BG;\mathbb{R}) \cong Sym^{\bullet}(\mathfrak{g}^\*[2])^G$$
$$H^{\bullet}(G; \mathbb{R}) \cong Sym^{\bullet}(\mathfrak... | 2017/12/17 | [
"https://mathoverflow.net/questions/288651",
"https://mathoverflow.net",
"https://mathoverflow.net/users/22810/"
] | I don't know of a DAG mechanism that implies these statements, any more formally than the standard proofs -- i.e., we reduce to a maximal torus, where the statement follows from the shape of the cohomology of the circle.
There are higher mechanisms though of which this statement is a hint. On one side you have topolog... | I believe you can pass from one statement to the other through Koszul duality and formality. More precisely, the cochains of the classifying space and the chains of the group are Koszul dual. So once you know that the cochains are quasisomorphic to the $G$ invariants of a polynomial ring, you get that the chains are qu... |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | It depends on what version of the Unicode standard you are talking about. From [Wikipedia](http://en.wikipedia.org/wiki/Unicode#Architecture_and_terminology):
>
> Older versions of the standard used
> similar notations, but with slightly
> different rules. For example, Unicode
> 3.0 used "U-" followed by eight dig... | It is just a convention to show that the value is Unicode. A bit like '0x' or 'h' for hex values (`0xB9` or `B9h`). Why `0xB9` and not `0hB9` (or `&hB9` or `$B9`)? Just because that's how the coin flipped :-) |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | The characters “U+” are an ASCIIfied version of the MULTISET UNION “⊎” U+228E character (the U-like union symbol with a plus sign inside it), which was meant to symbolize Unicode as the union of character sets. See [Kenneth Whistler’s explanation in the Unicode mailing list](http://unicode.org/mail-arch/unicode-ml/y200... | It depends on what version of the Unicode standard you are talking about. From [Wikipedia](http://en.wikipedia.org/wiki/Unicode#Architecture_and_terminology):
>
> Older versions of the standard used
> similar notations, but with slightly
> different rules. For example, Unicode
> 3.0 used "U-" followed by eight dig... |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | The Unicode Standard needs some notation for talking about code points and character names. It adopted the convention of "U+" followed by four or more hexadecimal digits at least as far back as [*The Unicode Standard*, version 2.0.0](http://www.unicode.org/versions/Unicode2.0.0/), published in 1996 (source: archived PD... | It depends on what version of the Unicode standard you are talking about. From [Wikipedia](http://en.wikipedia.org/wiki/Unicode#Architecture_and_terminology):
>
> Older versions of the standard used
> similar notations, but with slightly
> different rules. For example, Unicode
> 3.0 used "U-" followed by eight dig... |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | The characters “U+” are an ASCIIfied version of the MULTISET UNION “⊎” U+228E character (the U-like union symbol with a plus sign inside it), which was meant to symbolize Unicode as the union of character sets. See [Kenneth Whistler’s explanation in the Unicode mailing list](http://unicode.org/mail-arch/unicode-ml/y200... | It is just a convention to show that the value is Unicode. A bit like '0x' or 'h' for hex values (`0xB9` or `B9h`). Why `0xB9` and not `0hB9` (or `&hB9` or `$B9`)? Just because that's how the coin flipped :-) |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | The Unicode Standard needs some notation for talking about code points and character names. It adopted the convention of "U+" followed by four or more hexadecimal digits at least as far back as [*The Unicode Standard*, version 2.0.0](http://www.unicode.org/versions/Unicode2.0.0/), published in 1996 (source: archived PD... | It is just a convention to show that the value is Unicode. A bit like '0x' or 'h' for hex values (`0xB9` or `B9h`). Why `0xB9` and not `0hB9` (or `&hB9` or `$B9`)? Just because that's how the coin flipped :-) |
1,273,693 | Why do Unicode code points appear as **`U+`**`<codepoint>`?
For example, `U+2202` represents the character **∂**.
Why not `U-` (dash or hyphen character) or anything else? | 2009/08/13 | [
"https://Stackoverflow.com/questions/1273693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18852/"
] | The characters “U+” are an ASCIIfied version of the MULTISET UNION “⊎” U+228E character (the U-like union symbol with a plus sign inside it), which was meant to symbolize Unicode as the union of character sets. See [Kenneth Whistler’s explanation in the Unicode mailing list](http://unicode.org/mail-arch/unicode-ml/y200... | The Unicode Standard needs some notation for talking about code points and character names. It adopted the convention of "U+" followed by four or more hexadecimal digits at least as far back as [*The Unicode Standard*, version 2.0.0](http://www.unicode.org/versions/Unicode2.0.0/), published in 1996 (source: archived PD... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | With R2015a, this question finally has a simple answer (see [my other answer to this question](https://stackoverflow.com/a/27428109/2778484) for details). For releases prior to R2015a, there is such a built-in (undocumented) function: `_mergesimpts`. A safe guess at the composition of the name is "merge similar points"... | This is hard to define well, assume you have a tolerance of 1.
Then what would be the outcome of `[1; 2; 3; 4]`?
When you have multiple columns a definition could become even more challenging.
However, if you are mostly worried about rounding issues, you can solve most of it by one of these two approaches:
1. Round... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | This is a difficult problem. I'd even claim it to be impossible to solve in general, because of what I'd call the transitivity problem. Suppose that we have three elements in a set, {A,B,C}. I'll define a simple function isSimilarTo, such that isSimilarTo(A,B) will return a true result if the two inputs are within a sp... | There is no such function that I know of. One tricky aspect is that if your tolerance is, say, 1e-10, and you have a vector with values that are equally spaced at 9e-11, the first and the third entry are not the same, but the first is the same as the second, and the second is the same as the third - so how many "unique... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | There is no such function that I know of. One tricky aspect is that if your tolerance is, say, 1e-10, and you have a vector with values that are equally spaced at 9e-11, the first and the third entry are not the same, but the first is the same as the second, and the second is the same as the third - so how many "unique... | I was stuck the other day with a **MatLab 2010**, so, no round(X,n), no \_mergesimpts (At least I couldn't get it to work) so, a simple solution that works (at least for my data):
Using `rat` default tolerance:
```
unique(cellstr(rat(x)))
```
Other tolerance:
```
unique(cellstr(rat(x,tol)))
``` |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | **As of R2015a**, there is finally a function to do this, [`uniquetol`](http://www.mathworks.com/help/matlab/ref/uniquetol.html) (**before R2015a**, see [my other answer](https://stackoverflow.com/a/20850949/2778484)):
>
> `uniquetol` Set unique within a tolerance.
>
>
> `uniquetol` is similar to `unique`.... | This is hard to define well, assume you have a tolerance of 1.
Then what would be the outcome of `[1; 2; 3; 4]`?
When you have multiple columns a definition could become even more challenging.
However, if you are mostly worried about rounding issues, you can solve most of it by one of these two approaches:
1. Round... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | **As of R2015a**, there is finally a function to do this, [`uniquetol`](http://www.mathworks.com/help/matlab/ref/uniquetol.html) (**before R2015a**, see [my other answer](https://stackoverflow.com/a/20850949/2778484)):
>
> `uniquetol` Set unique within a tolerance.
>
>
> `uniquetol` is similar to `unique`.... | I've come across this problem before. The trick is to first sort the data and then use the diff function to find the difference between each item. Then compare when that difference is less then your tolerance.
This is the code that I use:
```
tol = 0.001
[Y I] = sort(items(:));
uni_mask = diff([0; Y]) > tol;
%if you j... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | **As of R2015a**, there is finally a function to do this, [`uniquetol`](http://www.mathworks.com/help/matlab/ref/uniquetol.html) (**before R2015a**, see [my other answer](https://stackoverflow.com/a/20850949/2778484)):
>
> `uniquetol` Set unique within a tolerance.
>
>
> `uniquetol` is similar to `unique`.... | I was stuck the other day with a **MatLab 2010**, so, no round(X,n), no \_mergesimpts (At least I couldn't get it to work) so, a simple solution that works (at least for my data):
Using `rat` default tolerance:
```
unique(cellstr(rat(x)))
```
Other tolerance:
```
unique(cellstr(rat(x,tol)))
``` |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | There is no such function that I know of. One tricky aspect is that if your tolerance is, say, 1e-10, and you have a vector with values that are equally spaced at 9e-11, the first and the third entry are not the same, but the first is the same as the second, and the second is the same as the third - so how many "unique... | This is hard to define well, assume you have a tolerance of 1.
Then what would be the outcome of `[1; 2; 3; 4]`?
When you have multiple columns a definition could become even more challenging.
However, if you are mostly worried about rounding issues, you can solve most of it by one of these two approaches:
1. Round... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | With R2015a, this question finally has a simple answer (see [my other answer to this question](https://stackoverflow.com/a/27428109/2778484) for details). For releases prior to R2015a, there is such a built-in (undocumented) function: `_mergesimpts`. A safe guess at the composition of the name is "merge similar points"... | I was stuck the other day with a **MatLab 2010**, so, no round(X,n), no \_mergesimpts (At least I couldn't get it to work) so, a simple solution that works (at least for my data):
Using `rat` default tolerance:
```
unique(cellstr(rat(x)))
```
Other tolerance:
```
unique(cellstr(rat(x,tol)))
``` |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | This is a difficult problem. I'd even claim it to be impossible to solve in general, because of what I'd call the transitivity problem. Suppose that we have three elements in a set, {A,B,C}. I'll define a simple function isSimilarTo, such that isSimilarTo(A,B) will return a true result if the two inputs are within a sp... | I've come across this problem before. The trick is to first sort the data and then use the diff function to find the difference between each item. Then compare when that difference is less then your tolerance.
This is the code that I use:
```
tol = 0.001
[Y I] = sort(items(:));
uni_mask = diff([0; Y]) > tol;
%if you j... |
1,988,535 | In Matlab, there is this [`unique` command](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unique.html) that returns thew unique rows in an array. This is a very handy command.
But the problem is that I can't assign tolerance to it-- in double precision, we always have to compare two elements within a preci... | 2010/01/01 | [
"https://Stackoverflow.com/questions/1988535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] | With R2015a, this question finally has a simple answer (see [my other answer to this question](https://stackoverflow.com/a/27428109/2778484) for details). For releases prior to R2015a, there is such a built-in (undocumented) function: `_mergesimpts`. A safe guess at the composition of the name is "merge similar points"... | There is no such function that I know of. One tricky aspect is that if your tolerance is, say, 1e-10, and you have a vector with values that are equally spaced at 9e-11, the first and the third entry are not the same, but the first is the same as the second, and the second is the same as the third - so how many "unique... |
43,928,537 | In a text file full of numbers separated by spaces, and with every single one having decimals (even whole integers, e.g. not just "50" but "50.000000", how can Powershell be used to round all numbers to the nearest integer? They are off the mark exclusively by less than 1, so literally just rounding to the nearest whol... | 2017/05/12 | [
"https://Stackoverflow.com/questions/43928537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7995445/"
] | You can use the `[math]` namespace to access mathematical functions.
Here we use the `Round` function to round a number
```
[math]::Round("-2499.999756") # returns -2500
```
Then we can format the number to 6 decimal places using the `ToString` method:
```
[math]::Round("-2499.999756").ToString("#.000000") # retur... | If the file has a header line you've to remove the `-Header` parameter and change the column names following `$Row.`
```
$InFile = '.\Dungeon_Q.obj'
$CSV = Import-Csv $InFile -Delimiter ' ' -Header C1,C2,C3,C4
ForEach ($Row in $CSV){
"{0} {1:N6} {2:N6} {3:N6}" -f $Row.C1,[math]::floor($Row.C2),[math]::floor($Row.C3)... |
780,951 | I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label.
The component with the List has a 'select all' checkbox.
When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox.
The eventlistener is added on creati... | 2009/04/23 | [
"https://Stackoverflow.com/questions/780951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94870/"
] | Your custom ItemRenderers should not register an event listener with their parent, but with your "select all" checkbox, i.e.
```
theCheckbox.addEventListener(YourEvent.YOUR_EVENT, itemRendererSelectAllHandler);
```
Failing that, can you post your code which adds the event listener and which dispatches the event form... | Doing select all in flex is little complex but I will tell you the way we did it and it works great.
We created a List derived control called "ExList" which has a property "selectAllCB" which we bind it to existing check box which will work for select all logic. Please note, when we set selectAllCB property, we make E... |
780,951 | I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label.
The component with the List has a 'select all' checkbox.
When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox.
The eventlistener is added on creati... | 2009/04/23 | [
"https://Stackoverflow.com/questions/780951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94870/"
] | Your custom ItemRenderers should not register an event listener with their parent, but with your "select all" checkbox, i.e.
```
theCheckbox.addEventListener(YourEvent.YOUR_EVENT, itemRendererSelectAllHandler);
```
Failing that, can you post your code which adds the event listener and which dispatches the event form... | This is how I achieved the solution:
```
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="150" verticalGap="0">
<mx:Script>
<![CDATA[
import mx.events.ListEvent;
import mx.controls.CheckBox;
import mx.collections.ArrayCollection;
public var list... |
780,951 | I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label.
The component with the List has a 'select all' checkbox.
When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox.
The eventlistener is added on creati... | 2009/04/23 | [
"https://Stackoverflow.com/questions/780951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94870/"
] | Your custom ItemRenderers should not register an event listener with their parent, but with your "select all" checkbox, i.e.
```
theCheckbox.addEventListener(YourEvent.YOUR_EVENT, itemRendererSelectAllHandler);
```
Failing that, can you post your code which adds the event listener and which dispatches the event form... | The simple solution is to use typed objects in the list of data you are presenting and then take advantage of databinding and the binding utils to capture changes to the underlying data property on the item renderer. Override the 'set data' function in the item renderer to do whatever you need when some property in the... |
780,951 | I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label.
The component with the List has a 'select all' checkbox.
When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox.
The eventlistener is added on creati... | 2009/04/23 | [
"https://Stackoverflow.com/questions/780951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94870/"
] | Doing select all in flex is little complex but I will tell you the way we did it and it works great.
We created a List derived control called "ExList" which has a property "selectAllCB" which we bind it to existing check box which will work for select all logic. Please note, when we set selectAllCB property, we make E... | This is how I achieved the solution:
```
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="150" verticalGap="0">
<mx:Script>
<![CDATA[
import mx.events.ListEvent;
import mx.controls.CheckBox;
import mx.collections.ArrayCollection;
public var list... |
780,951 | I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label.
The component with the List has a 'select all' checkbox.
When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox.
The eventlistener is added on creati... | 2009/04/23 | [
"https://Stackoverflow.com/questions/780951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94870/"
] | Doing select all in flex is little complex but I will tell you the way we did it and it works great.
We created a List derived control called "ExList" which has a property "selectAllCB" which we bind it to existing check box which will work for select all logic. Please note, when we set selectAllCB property, we make E... | The simple solution is to use typed objects in the list of data you are presenting and then take advantage of databinding and the binding utils to capture changes to the underlying data property on the item renderer. Override the 'set data' function in the item renderer to do whatever you need when some property in the... |
36,924,097 | I want to limit the size of memory cache and disk cache for SDImageCache.
Below is the code I have used for downloading the images. By default it saves the images in the cache and it is present In the sandbox's Library folder.
>
> my Application
> ID/Library/Caches/com.hackemist.SDWebImageCache.default/
>
>
>
`... | 2016/04/28 | [
"https://Stackoverflow.com/questions/36924097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5184064/"
] | **Objective-C**
```
// Setting disk cache
[[[SDImageCache sharedImageCache] config] setMaxCacheSize:1000000 * 20]; // 20 MB
// Setting memory cache
[[SDImageCache sharedImageCache] setMaxMemoryCost:15 * 1024 * 1024]; // aprox 15 images (1024 x 1024)
```
**Swift 4**
```
// Setting disk cache
SDImageCache.sha... | If you're looking to limit the maximum size of the cache, you can manually do that in **SDImageCache.m** and set `maxCacheSize` to a limited number of bytes. You can take a look at how the cache age is being to one week using
`static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week`
and do ... |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | When i did this. It worked fine.
Go to this directroy in command prompt C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Run this command
Aspnet\_regiis -I
this will install aspnet | For me, the problem was in the serialization that responded to client.
My problem was in the xml tags spaces:
```
- < tag > text < / tag > ---> wrong
- <tag> text </tag> ----> good.
``` |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | For me, the problem was that I was viewing the .svc file using my local file path mapped to a server in my browser when I meant to be using the verbatim path to my server. | For me, the problem was in the serialization that responded to client.
My problem was in the xml tags spaces:
```
- < tag > text < / tag > ---> wrong
- <tag> text </tag> ----> good.
``` |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | When I went into the ASP.NET tab for the virtual directory I noticed the ASP.NET version was not selected (it was an empty combo box). Choosing the .NET framework version did the trick. Thanks. | For me, the problem was that I was viewing the .svc file using my local file path mapped to a server in my browser when I meant to be using the verbatim path to my server. |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | It appears as if the browser tries to display what it thinks is an XML file, since it gives an error on the second character of the first line. So I think the file is not parsed, but simply returned as is immediately. Check if your IIS server is configured correctly and that it actually parses your ASP tags before retu... | When I went into the ASP.NET tab for the virtual directory I noticed the ASP.NET version was not selected (it was an empty combo box). Choosing the .NET framework version did the trick. Thanks. |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | When I went into the ASP.NET tab for the virtual directory I noticed the ASP.NET version was not selected (it was an empty combo box). Choosing the .NET framework version did the trick. Thanks. | For me, the problem was in the serialization that responded to client.
My problem was in the xml tags spaces:
```
- < tag > text < / tag > ---> wrong
- <tag> text </tag> ----> good.
``` |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | Similar to the previous comment, in my setup too the ASP.NET version was not selected. But after selecting the version i got the following error while accessing the aspx file.
Windows XP, IIS 5.1.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
Executed the following ... | For me, the problem was that I was viewing the .svc file using my local file path mapped to a server in my browser when I meant to be using the verbatim path to my server. |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | When i did this. It worked fine.
Go to this directroy in command prompt C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Run this command
Aspnet\_regiis -I
this will install aspnet | For me, the problem was that I was viewing the .svc file using my local file path mapped to a server in my browser when I meant to be using the verbatim path to my server. |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | When i did this. It worked fine.
Go to this directroy in command prompt C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Run this command
Aspnet\_regiis -I
this will install aspnet | Try this :
To install and enable ASP.NET:
Click Start, and then click Control Panel.
Click Add or Remove Programs.
Click Add/Remove Windows components.
Double-click Application Server, and then click Details.
Click to select the ASP.NET check box, and then click OK.
Click Next.
Click Finish. |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | Try this :
To install and enable ASP.NET:
Click Start, and then click Control Panel.
Click Add or Remove Programs.
Click Add/Remove Windows components.
Double-click Application Server, and then click Details.
Click to select the ASP.NET check box, and then click OK.
Click Next.
Click Finish. | For me, the problem was in the serialization that responded to client.
My problem was in the xml tags spaces:
```
- < tag > text < / tag > ---> wrong
- <tag> text </tag> ----> good.
``` |
281,017 | (Warning - asp newbie) I have an aspx file with the tag
```
<%@ Page Language=VB ... %>
```
right at the beginning of the file.
When calling this from my IIS server (<http://localhost/myservice/default.aspx>), this gives me the error
>
> This page contains the following
> errors:
>
>
> error on line 1 a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] | It appears as if the browser tries to display what it thinks is an XML file, since it gives an error on the second character of the first line. So I think the file is not parsed, but simply returned as is immediately. Check if your IIS server is configured correctly and that it actually parses your ASP tags before retu... | Similar to the previous comment, in my setup too the ASP.NET version was not selected. But after selecting the version i got the following error while accessing the aspx file.
Windows XP, IIS 5.1.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
Executed the following ... |
52,380,751 | I tried to start the server from MySQL application that is startup/shutdown
there iam getting an error MySQL cannot connect to localhost(10061) code 2003
After that I tried to connect it from cmd line ,but that is also not working
```none
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld"
mysqld: Can't ch... | 2018/09/18 | [
"https://Stackoverflow.com/questions/52380751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10299001/"
] | No such file or directory
It's good hint. Check this path 'C:\Program Files\MySQL\MySQL Server 8.0\data\'
Maybe it not exists. If it's true - just create folder.
If folder already created - check datadir in your my.ini
Maybe you need quotes ("")
For example - check my my.ini [ as a guide for content type specification, it's qu... | I'll preface this by mentioning that I don't know anything about Spring MVC. But, if you have a Java object you want to serialize as RDF, a library like [Empire](https://github.com/mhgrove/Empire) (I'm the author), might help you. You can annotate the object to specify what things should be turned into RDF and then use... |
17,313,801 | How can I serve an RDF representation of a Java model via Spring MVC?
I have JSON and XML representations working using Spring's content negotiation mechanisms and would like to do the same for RDF. | 2013/06/26 | [
"https://Stackoverflow.com/questions/17313801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2267717/"
] | I'll preface this by mentioning that I don't know anything about Spring MVC. But, if you have a Java object you want to serialize as RDF, a library like [Empire](https://github.com/mhgrove/Empire) (I'm the author), might help you. You can annotate the object to specify what things should be turned into RDF and then use... | In addition, you must add the `charset` parameter. [StringHttpMessageConverter](https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java) uses as default character encoding ISO-8859-1 unless you change it. When the output... |
17,313,801 | How can I serve an RDF representation of a Java model via Spring MVC?
I have JSON and XML representations working using Spring's content negotiation mechanisms and would like to do the same for RDF. | 2013/06/26 | [
"https://Stackoverflow.com/questions/17313801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2267717/"
] | Assuming that you are using annotation driven configuration for your MVC application, this actually could be quite simple. Using the W3C's [Media Types Issues for Text RDF Formats](http://www.w3.org/2008/01/rdf-media-types "W3C Media Types Issues for Text RDF Formats") as a guide for content type specification, it's qu... | In addition, you must add the `charset` parameter. [StringHttpMessageConverter](https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java) uses as default character encoding ISO-8859-1 unless you change it. When the output... |
63,679,827 | Is there a way to remove one of the types from type expansion?
Let's use tuple as an example,
```
void foo() {
tuple<int, double, string> t;
// some facility to expand except the i-th type:
expand_except_ith<0>(t); // returns tuple<double, string>
expand_except_ith<1>(t); // returns tuple<int,... | 2020/09/01 | [
"https://Stackoverflow.com/questions/63679827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/264140/"
] | Here is a short [c++14](/questions/tagged/c%2b%2b14 "show questions tagged 'c++14'") version:
```
template<std::size_t...Is>
auto indexer( std::index_sequence<Is...> ) {
return [](auto && f) {
return f( std::integral_constant<std::size_t, Is>{}... );
};
}
template<std::size_t N>
auto indexer() {
return index... | ```cpp
#include <iostream>
#include <string>
#include <tuple>
#include <cassert>
#include <utility>
namespace details
{
template <std::size_t N, std::size_t Except, std::size_t... Next>
struct index_sequence_helper : public index_sequence_helper<N - 1U, Except, N - 1U, Next...>
{
};
template <std:... |
63,679,827 | Is there a way to remove one of the types from type expansion?
Let's use tuple as an example,
```
void foo() {
tuple<int, double, string> t;
// some facility to expand except the i-th type:
expand_except_ith<0>(t); // returns tuple<double, string>
expand_except_ith<1>(t); // returns tuple<int,... | 2020/09/01 | [
"https://Stackoverflow.com/questions/63679827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/264140/"
] | Here is a short [c++14](/questions/tagged/c%2b%2b14 "show questions tagged 'c++14'") version:
```
template<std::size_t...Is>
auto indexer( std::index_sequence<Is...> ) {
return [](auto && f) {
return f( std::integral_constant<std::size_t, Is>{}... );
};
}
template<std::size_t N>
auto indexer() {
return index... | Here is a short solution using [Boost.MP11](https://www.boost.org/doc/libs/develop/libs/mp11/doc/html/mp11.html) to erase the single type denoted by an index in the type holder class (e.g. `std::tuple`, `boost::mp11::mp_list`, etc.).
```cpp
#include <tuple>
#include <string>
#include <boost/mp11/algorithm.hpp>
templ... |
74,275,639 | I'm trying to ask for students' IDs and save it to a file, and if a student inputs an ID number that already exists in the file, it will print an invalid message.
I tried doing this by reading the file first and used if-else statement to check if the student ID is in the file or not. If it is, it will print the messag... | 2022/11/01 | [
"https://Stackoverflow.com/questions/74275639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20059702/"
] | The open file handle `file` is an iterable, but when you iterate over it (which is what the `in` operator does) you receive a line at a time. Your code is thus checking whether the file contains a line which is equal to `student_id`, not whether the string contained in that variable is contained anywhere in the file. T... | You opened the file but you haven't read the file,
Hence the if student\_id in file reads the object but not the file contents
Use this line
```py
#correct way to read file contents
file = open('testfile.txt', 'r').read()
```
Insted of this line
```py
#incorrect way
file = open('testfile.text', 'r')
```
Using .r... |
74,275,639 | I'm trying to ask for students' IDs and save it to a file, and if a student inputs an ID number that already exists in the file, it will print an invalid message.
I tried doing this by reading the file first and used if-else statement to check if the student ID is in the file or not. If it is, it will print the messag... | 2022/11/01 | [
"https://Stackoverflow.com/questions/74275639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20059702/"
] | After asking the input for `student_id`, I suggest to iterate the `file` first to check for existed `student_id` in each `line` using list comprehension as flag.
```
with open('testfile.txt', 'r+') as file:
found = [line for line in file if student_id in line]
if found: print("There is already a student with t... | You opened the file but you haven't read the file,
Hence the if student\_id in file reads the object but not the file contents
Use this line
```py
#correct way to read file contents
file = open('testfile.txt', 'r').read()
```
Insted of this line
```py
#incorrect way
file = open('testfile.text', 'r')
```
Using .r... |
74,275,639 | I'm trying to ask for students' IDs and save it to a file, and if a student inputs an ID number that already exists in the file, it will print an invalid message.
I tried doing this by reading the file first and used if-else statement to check if the student ID is in the file or not. If it is, it will print the messag... | 2022/11/01 | [
"https://Stackoverflow.com/questions/74275639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20059702/"
] | The open file handle `file` is an iterable, but when you iterate over it (which is what the `in` operator does) you receive a line at a time. Your code is thus checking whether the file contains a line which is equal to `student_id`, not whether the string contained in that variable is contained anywhere in the file. T... | After asking the input for `student_id`, I suggest to iterate the `file` first to check for existed `student_id` in each `line` using list comprehension as flag.
```
with open('testfile.txt', 'r+') as file:
found = [line for line in file if student_id in line]
if found: print("There is already a student with t... |
46,767,396 | I'm creating a Javascript program where the user will be asked how much pounds (£) they'd like to convert into Euros. The program should check if the number of pounds is greater than 0 and a number. If the input is 0 or a negative number or the input is not a number then an error message should be displayed – “input er... | 2017/10/16 | [
"https://Stackoverflow.com/questions/46767396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5397158/"
] | Everything what you get from the `prompt` is `string`.
You can parse your `pound` into the number with `parseInt` or `parseFloat` functions.
```js
const exchange = 1.19;
var euros = 0.0;
var text = prompt("Enter the amount of pounds you wish to convert: ");
const pounds = parseFloat(text);
if (pounds <= 0) {
... | The prompt is a string, as it returns a string (even though ou desire a number)
To convert it, use the `Number` constructor (or function)
try this:
```
pounds = prompt("Enter the amount of pounds you wish to convert");
pounds = Number(pounds);
```
or, you could cast it using the `+` sign
```
pounds = +pounds;
``... |
1,025,656 | I have a bunch of live ISO files like [GParted](https://gparted.org/livecd.php), [CloneZilla](https://clonezilla.org/downloads.php), [Boot-Repair](https://sourceforge.net/projects/boot-repair-cd/files/), [Ubuntu 14.04 32 bit](http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-i386.iso), ... downloaded in `/opt` an... | 2018/04/16 | [
"https://askubuntu.com/questions/1025656",
"https://askubuntu.com",
"https://askubuntu.com/users/344926/"
] | An alternative is to just add a configfile to 40\_custom like this:
```
menuentry 'Live ISOs on SSD' {
configfile (hd0,3)/ISO/livecdimage.cfg
}
menuentry 'Live ISOs on HDD (boot on SSD)' {
configfile (hd1,3)/ISO/livecdimage.cfg
}
```
I do this as when I update an ISO, I invariably forget to run `sudo update-grub`... | **MultiBootUSB - QEMU**
If you want to boot ISO files with the least hassle and don't need persistence, MultiBootUSB includes a QEMU option:
* Start MultiBootUSB and select the Boot ISO/USB tab.
* Drag and drop the ISO on the Select image space.
* Select RAM size and hit the Boot ISO button.
You don't need to edit g... |
1,025,656 | I have a bunch of live ISO files like [GParted](https://gparted.org/livecd.php), [CloneZilla](https://clonezilla.org/downloads.php), [Boot-Repair](https://sourceforge.net/projects/boot-repair-cd/files/), [Ubuntu 14.04 32 bit](http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-i386.iso), ... downloaded in `/opt` an... | 2018/04/16 | [
"https://askubuntu.com/questions/1025656",
"https://askubuntu.com",
"https://askubuntu.com/users/344926/"
] | **mkusb MULTIBOOT HACK**
Mkusb makes a great base for custom boot drive projects because of its abilities with both BIOS and UEFI.
This hack boots multiple ISO files including the Windows installer, and has a grub2 menu.
Grub2 menuentries for most OS are available using Google Search and are beyond the scope of thi... | **MultiBootUSB - QEMU**
If you want to boot ISO files with the least hassle and don't need persistence, MultiBootUSB includes a QEMU option:
* Start MultiBootUSB and select the Boot ISO/USB tab.
* Drag and drop the ISO on the Select image space.
* Select RAM size and hit the Boot ISO button.
You don't need to edit g... |
1,025,656 | I have a bunch of live ISO files like [GParted](https://gparted.org/livecd.php), [CloneZilla](https://clonezilla.org/downloads.php), [Boot-Repair](https://sourceforge.net/projects/boot-repair-cd/files/), [Ubuntu 14.04 32 bit](http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-i386.iso), ... downloaded in `/opt` an... | 2018/04/16 | [
"https://askubuntu.com/questions/1025656",
"https://askubuntu.com",
"https://askubuntu.com/users/344926/"
] | ### There is a [bug in grub 2.04](https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1851311) so ensure you have a prior or later version.
Well, the basics for adding an ISO file to grub are the same for an UEFI as for a BIOS machine: edit `/etc/grub.d/40_custom` and add a `menuentry` item (GParted is used in this e... | **MultiBootUSB - QEMU**
If you want to boot ISO files with the least hassle and don't need persistence, MultiBootUSB includes a QEMU option:
* Start MultiBootUSB and select the Boot ISO/USB tab.
* Drag and drop the ISO on the Select image space.
* Select RAM size and hit the Boot ISO button.
You don't need to edit g... |
1,025,656 | I have a bunch of live ISO files like [GParted](https://gparted.org/livecd.php), [CloneZilla](https://clonezilla.org/downloads.php), [Boot-Repair](https://sourceforge.net/projects/boot-repair-cd/files/), [Ubuntu 14.04 32 bit](http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-i386.iso), ... downloaded in `/opt` an... | 2018/04/16 | [
"https://askubuntu.com/questions/1025656",
"https://askubuntu.com",
"https://askubuntu.com/users/344926/"
] | **mkusb MULTIBOOT HACK**
Mkusb makes a great base for custom boot drive projects because of its abilities with both BIOS and UEFI.
This hack boots multiple ISO files including the Windows installer, and has a grub2 menu.
Grub2 menuentries for most OS are available using Google Search and are beyond the scope of thi... | Three easy steps
================
to add ISO to the grub menu and boot from it.
First, install `grml-rescueboot`
================================
Open a terminal and enter:
```
sudo apt install grml-rescueboot
```
Second, move the iso files to `/boot/grml/`
===========================================
In the same... |
1,025,656 | I have a bunch of live ISO files like [GParted](https://gparted.org/livecd.php), [CloneZilla](https://clonezilla.org/downloads.php), [Boot-Repair](https://sourceforge.net/projects/boot-repair-cd/files/), [Ubuntu 14.04 32 bit](http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-i386.iso), ... downloaded in `/opt` an... | 2018/04/16 | [
"https://askubuntu.com/questions/1025656",
"https://askubuntu.com",
"https://askubuntu.com/users/344926/"
] | An alternative is to just add a configfile to 40\_custom like this:
```
menuentry 'Live ISOs on SSD' {
configfile (hd0,3)/ISO/livecdimage.cfg
}
menuentry 'Live ISOs on HDD (boot on SSD)' {
configfile (hd1,3)/ISO/livecdimage.cfg
}
```
I do this as when I update an ISO, I invariably forget to run `sudo update-grub`... | This may be the multiboot solution that you need.
<https://www.ventoy.net/en/index.html>
This bootable USB maker creates two partitions in a USB drive. One is 32MB FAT 32 EFI partition. Another one is exfat partition that is equal in size to the rest of the USB drive. You can copy any number of ISOs including Windows... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.