qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
In a literal string, a `\` must be escaped. See all escapes: [Escape notation in the MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Escape_notation)
You can try with escaping this slash as follow ``` var str = "your\requirement"; str.split("\\"); ```
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
You should just split on a String here because you need to escape the `\` (String -> double quotes). So `.split("\\"`) it is.
You can try with escaping this slash as follow ``` var str = "your\requirement"; str.split("\\"); ```
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
Use below syntax for escape the slash : ``` var str = "your string"; str = str.split("\\"); ```
You can try with escaping this slash as follow ``` var str = "your\requirement"; str.split("\\"); ```
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
You should just split on a String here because you need to escape the `\` (String -> double quotes). So `.split("\\"`) it is.
In a literal string, a `\` must be escaped. See all escapes: [Escape notation in the MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Escape_notation)
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
In a literal string, a `\` must be escaped. See all escapes: [Escape notation in the MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Escape_notation)
The backslash is one character that needs to be escaped when using a string literal. Try calling `.split('\\')` on your string.
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
You should just split on a String here because you need to escape the `\` (String -> double quotes). So `.split("\\"`) it is.
Use below syntax for escape the slash : ``` var str = "your string"; str = str.split("\\"); ```
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
You should just split on a String here because you need to escape the `\` (String -> double quotes). So `.split("\\"`) it is.
The backslash is one character that needs to be escaped when using a string literal. Try calling `.split('\\')` on your string.
41,277,783
i am trying to split my data using `.split('\')`, but its not working an error occurs "Uncaught SyntaxError: Invalid or unexpected token". can we split with '\'?
2016/12/22
[ "https://Stackoverflow.com/questions/41277783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904171/" ]
Use below syntax for escape the slash : ``` var str = "your string"; str = str.split("\\"); ```
The backslash is one character that needs to be escaped when using a string literal. Try calling `.split('\\')` on your string.
44,065,949
The IAR Embedded C compiler is happy with this, and I assumed it was correct C code: ``` struct incomplete; typedef struct incomplete (*why_not)[2]; struct incomplete {struct incomplete *known_to_work;} array[2]; why_not ok = &array; ``` However, gcc and clang choke on the definition of `why_not`: ``` incomplete.c:...
2017/05/19
[ "https://Stackoverflow.com/questions/44065949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2965738/" ]
The code uses an array declarator where the element type is incomplete. This a constraint violation in ISO C, according to 6.7.6.2/1 **Array declarators**: > > **Constraints** > > > In addition to optional type qualifiers and the keyword static, the `[` and `]` may delimit an expression or `*`. If they delimit an e...
The following statement ``` typedef struct incomplete (*why_not)[2]; ``` is a pointer to an array of two `struct incomplete`. The compiler does not know the size of `struct incomplete` yet, since it is not yet defined. The following will however work: ``` typedef struct incomplete *why_not[2]; ``` i.e.: an array...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
Sounds like your realization of Emptiness is not complete. Evidently, there are still some leftover attachments in you, specifically attachment to Dharma. Have you read Choguyam Trungpa's work? "Cutting Through Spiritual Materialism" comes to mind. Have you worked with live Zen teachers or with higher levels of Tantra...
"but my specific question is, what to do when Dharma is (un)intentionally violent like this?" Practice the Five Faculties during and outside of meditation. The Five Faculties are Mindfulness, Concentration, Faith, Energy, and **Understanding**. These are in no particular order and are like the wheels on a cart: if an...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
> > I've been told by someone close to me that **my** meditation and desire to let go are very **threatening to her**. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. > > > If you mind your own business, and you ...
The best option would be to keep following the noble eightfold path and observe the different path factors and the 5 precepts. This way you have your side of the coin clean and you are not pushing or preaching to her in any way. If she get's angry when seeing you meditate then that is her own doing. The untrained mind...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
> > I've been told by someone close to me that **my** meditation and desire to let go are very **threatening to her**. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. > > > If you mind your own business, and you ...
*"**How can I help or at least not hurt these people in my life?**"* > > "Don't ask me that" > > > ... said the Buddha to people asking him questions that would torn them. Following his example, we should not be careless towards others -- "right speech bullet lists" is just not enough. For example, it's not wise...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
*"**How can I help or at least not hurt these people in my life?**"* > > "Don't ask me that" > > > ... said the Buddha to people asking him questions that would torn them. Following his example, we should not be careless towards others -- "right speech bullet lists" is just not enough. For example, it's not wise...
"but my specific question is, what to do when Dharma is (un)intentionally violent like this?" Practice the Five Faculties during and outside of meditation. The Five Faculties are Mindfulness, Concentration, Faith, Energy, and **Understanding**. These are in no particular order and are like the wheels on a cart: if an...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
*"How can you smile?"* -- I'm smiling simply because I'm happy! Perhaps this is a case where it's best to simply say, "This works for me, and is important to me, and I mean no harm to you by my practice," and walk away. I don't know if "walk away" is an option in this relationship, but if this person is having this ho...
"but my specific question is, what to do when Dharma is (un)intentionally violent like this?" Practice the Five Faculties during and outside of meditation. The Five Faculties are Mindfulness, Concentration, Faith, Energy, and **Understanding**. These are in no particular order and are like the wheels on a cart: if an...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
Sounds like your realization of Emptiness is not complete. Evidently, there are still some leftover attachments in you, specifically attachment to Dharma. Have you read Choguyam Trungpa's work? "Cutting Through Spiritual Materialism" comes to mind. Have you worked with live Zen teachers or with higher levels of Tantra...
The best option would be to keep following the noble eightfold path and observe the different path factors and the 5 precepts. This way you have your side of the coin clean and you are not pushing or preaching to her in any way. If she get's angry when seeing you meditate then that is her own doing. The untrained mind...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
> > I've been told by someone close to me that **my** meditation and desire to let go are very **threatening to her**. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. > > > If you mind your own business, and you ...
"but my specific question is, what to do when Dharma is (un)intentionally violent like this?" Practice the Five Faculties during and outside of meditation. The Five Faculties are Mindfulness, Concentration, Faith, Energy, and **Understanding**. These are in no particular order and are like the wheels on a cart: if an...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
Sounds like your realization of Emptiness is not complete. Evidently, there are still some leftover attachments in you, specifically attachment to Dharma. Have you read Choguyam Trungpa's work? "Cutting Through Spiritual Materialism" comes to mind. Have you worked with live Zen teachers or with higher levels of Tantra...
*"**How can I help or at least not hurt these people in my life?**"* > > "Don't ask me that" > > > ... said the Buddha to people asking him questions that would torn them. Following his example, we should not be careless towards others -- "right speech bullet lists" is just not enough. For example, it's not wise...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
The best option would be to keep following the noble eightfold path and observe the different path factors and the 5 precepts. This way you have your side of the coin clean and you are not pushing or preaching to her in any way. If she get's angry when seeing you meditate then that is her own doing. The untrained mind...
"but my specific question is, what to do when Dharma is (un)intentionally violent like this?" Practice the Five Faculties during and outside of meditation. The Five Faculties are Mindfulness, Concentration, Faith, Energy, and **Understanding**. These are in no particular order and are like the wheels on a cart: if an...
10,450
I've been told by someone close to me that my meditation and desire to let go are very threatening to her. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. She's aware of Buddhism and renunciate ideals, but thinks the B...
2015/07/28
[ "https://buddhism.stackexchange.com/questions/10450", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/715/" ]
Sounds like your realization of Emptiness is not complete. Evidently, there are still some leftover attachments in you, specifically attachment to Dharma. Have you read Choguyam Trungpa's work? "Cutting Through Spiritual Materialism" comes to mind. Have you worked with live Zen teachers or with higher levels of Tantra...
> > I've been told by someone close to me that **my** meditation and desire to let go are very **threatening to her**. She sees sense desires, ego and attachments as very natural and wholesome, and my way of life as a threat or a questionable choice at the very least. > > > If you mind your own business, and you ...
69,784,156
I need to place a border from an image to a semicircle but I can't get the image to be placed in the rounded shape controlling the number of appearances of the image. In a second instance I should be able to click on the image or some other mechanism to take me to another page. My code: ```css .box { width: 500px; ...
2021/10/31
[ "https://Stackoverflow.com/questions/69784156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17290817/" ]
Please try and use the full file path and see if the issue persists. In my experience VS code runs the python script in a different location than where it is saved. So it might be looking for the file in a different directory than where it is saved.
You must use the python virtualenv model for your projects. This provides an environment for the program to understand the connection of your files. 1. Create a directory and put your files in it. 2. Open terminal and install virtualenv : > > `pip install virtualenv` > > > 3. In terminal, Get in the project dire...
10,872,568
I'm having problem saving an image after rotating it. I mean, when I call the function save after rotating the image, nothing happens. The old image stays the same, and the same problem occurs with my save as function. I guess the problem lies in my rotate function: ``` def right90 (root, image, panel, filemenu): ...
2012/06/03
[ "https://Stackoverflow.com/questions/10872568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1094878/" ]
I suspect that when you call `save`, you pass a variable that references the original image. Just guessing, because `right90` does not `return image`.
Is is necessary to have both variable names, `image` and `image1`? I think that could be potentially a source of problems and I agree with @janne Karila, you are most likely not returning the changed image. Can you do a `image.show()`/`image1.show()` inside your `right90` function and see what it shows?
46,450,658
I'm trying to do a `.map` function into a state array in Redux with Typescript, the problem is that it's throwing an error > > [ts] Property 'id' does not exist on type 'never' > > > in the `landing.id` if statement, since its an array of objects the code makes sense for me but seems that I'm missing something t...
2017/09/27
[ "https://Stackoverflow.com/questions/46450658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7971991/" ]
It's probably due to types missing for the `state` and/or `action` arguments. Try this code that should work with TypeScript 2.4+, inspired by this [article](https://spin.atomicobject.com/2017/07/24/redux-action-pattern-typescript/): ```js interface Landing { id: any; } enum ActionTypes { ADD_LANDING = "ADD_...
Your code is missing brackets and other necessary imports, which makes it difficult for someone else to quickly [reproduce and diagnose](https://stackoverflow.com/help/mcve). That being said, TypeScript infers the `state` parameter as the type of an empty array literal `[]`, which is considered to be `never[]`, meanin...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Yes, pointer is a data type and a pointer variable store that *pointer data type*.
See a pointer variable stores the address of another variable. And when we access this pointer variable it points to the address of variable which eventually directs us to the data stored inside that variable. Now depending upon the type of data stored inside the original variable we can specify the data type of that p...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Yes, a pointer is a data type. The purest form of which (mainly talking about C here) is `void *`. A `void *` can be used to pass a memory address around (which is what a pointer is), but it can't be dereferenced. Dereferencing a pointer is what you do to get at the data contained at the memory location the pointer is ...
Pointer is a data-type. So we can create pointer variables which can hold the address of memory location.
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Pointer types are data types; they store pointer values. There is no one single pointer type; a pointer to `int` is a different type from a pointer to `char`, which is a different type from a pointer to `double`, which is a different type from a pointer to a 10-element array of `int`, which is a different type from a...
> > I just need to know is pointer is a data type or not. > > > All pointer types are data types, but plain "pointer" is not a data type. More precisely, "pointer" is a type *modifier* that you can apply to absolutely any type. So you can have pointer-to-`char`, and pointer-to-`long`, and pointer-to-`double`, not ...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
You've asked two different questions. Your title asks "What is the data type of pointer variables?". The answer is simple: a pointer variable is of some pointer type. For example, given: ``` int *ptr; ``` `ptr` is a pointer object, and its type is `int*`, which is a pointer type. The body of your question asks whe...
The thing is Pointer itself is a data type of it's own. It basically store a memory address. Now it can be used to store a memory address of any variable too.
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Yes, a pointer is a data type. The purest form of which (mainly talking about C here) is `void *`. A `void *` can be used to pass a memory address around (which is what a pointer is), but it can't be dereferenced. Dereferencing a pointer is what you do to get at the data contained at the memory location the pointer is ...
Your question probably refers to the "data type of a pointer", in contrast to the data type of the pointed-to data, which is what one would understand in the first place. Based on this assumption, then please look at type [uintptr\_t](https://stackoverflow.com/questions/1845482/what-is-uintptr-t-data-type) or [void\*]...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
You've asked two different questions. Your title asks "What is the data type of pointer variables?". The answer is simple: a pointer variable is of some pointer type. For example, given: ``` int *ptr; ``` `ptr` is a pointer object, and its type is `int*`, which is a pointer type. The body of your question asks whe...
Pointer is a data-type. So we can create pointer variables which can hold the address of memory location.
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Your question probably refers to the "data type of a pointer", in contrast to the data type of the pointed-to data, which is what one would understand in the first place. Based on this assumption, then please look at type [uintptr\_t](https://stackoverflow.com/questions/1845482/what-is-uintptr-t-data-type) or [void\*]...
The thing is Pointer itself is a data type of it's own. It basically store a memory address. Now it can be used to store a memory address of any variable too.
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
You've asked two different questions. Your title asks "What is the data type of pointer variables?". The answer is simple: a pointer variable is of some pointer type. For example, given: ``` int *ptr; ``` `ptr` is a pointer object, and its type is `int*`, which is a pointer type. The body of your question asks whe...
> > I just need to know is pointer is a data type or not. > > > All pointer types are data types, but plain "pointer" is not a data type. More precisely, "pointer" is a type *modifier* that you can apply to absolutely any type. So you can have pointer-to-`char`, and pointer-to-`long`, and pointer-to-`double`, not ...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Yes, pointer is a data type and a pointer variable store that *pointer data type*.
Pointer types are data types; they store pointer values. There is no one single pointer type; a pointer to `int` is a different type from a pointer to `char`, which is a different type from a pointer to `double`, which is a different type from a pointer to a 10-element array of `int`, which is a different type from a...
26,976,516
I want to add a pinterest button to joomla articles, and I achieved it by adding the code: ``` <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js" data-pin-hover="true"></script> ``` But this code adds the button to all images in the page. How can I add it only to the main article image? Thank Y...
2014/11/17
[ "https://Stackoverflow.com/questions/26976516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4158940/" ]
Pointer types are data types; they store pointer values. There is no one single pointer type; a pointer to `int` is a different type from a pointer to `char`, which is a different type from a pointer to `double`, which is a different type from a pointer to a 10-element array of `int`, which is a different type from a...
The thing is Pointer itself is a data type of it's own. It basically store a memory address. Now it can be used to store a memory address of any variable too.
7,163
I read that TikZ, PSTricks and MetaPost are 2D vector graphics packages while Asymptote is considered 3D. However I also know that you can specify 3D coordinates in say TikZ so that drawing a 3D diagram in TikZ is not merely drawing its projection onto 2D. Given these considerations, what really is meant by 2D or 3D gr...
2010/12/15
[ "https://tex.stackexchange.com/questions/7163", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/-1/" ]
TikZ is not really a 3D package. It provides a third dimension but in the plane of the other two. You can give drawings some perspective to make it look like they're 3D, but that's really up to the user. I wouldn't call something truly 3D unless I can change the viewing point in one place and have the diagram render fr...
[pst-solides3d](http://ctan.org/pkg/pst-solides3d) can handle hidden lines and surfaces.
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
I did not see this answer: 3 swabs moved: > > LX - LIII = VII (60 - 53 = 7) > > > Explanation: > > Move the top swab from C after the V. Move one of the swabs from the equal sign after the first moved swab - i.e. now we have VII. Move the vertical swab of the plus sign to make an equal sign in its place. > ...
One I came up with **CX = LIII + V** **LX = C/II + X ( 60 = 100/2 + 10)** Move top swab from left hand side C to the right hand side L. Left hand side C becomes L and right hand side L becomes C. Then make the first I into divided sign on the RHS. Turn V into X. Total 3 moves
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
**Solution 1.** Moving 1 and slightly skewing 2. > > CX = CV + V. Equivalent to 110 = 105 + 5. > > > Explanation. > > Leave the part before the equal sign as it it. > > From `LIII` take the 3 swabs/matches/toothpicks after the L (the 3 I's). > > Put one above L to make it a C. > > Make a V f...
Two swabs moved > > CX > LIII + V > > > Swabs moved > > The two swabs in the equal are angled to form a greater than sign. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
Moving two swabs: > > LX = LIV + VI: > > > > > [![LX = LIV + VI](https://i.stack.imgur.com/d85io.png)](https://i.stack.imgur.com/d85io.png) > > >
Boring answer. Moving and rotating one swab: > > CX ≠ LII + V > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
**Solution 1.** Moving 1 and slightly skewing 2. > > CX = CV + V. Equivalent to 110 = 105 + 5. > > > Explanation. > > Leave the part before the equal sign as it it. > > From `LIII` take the 3 swabs/matches/toothpicks after the L (the 3 I's). > > Put one above L to make it a C. > > Make a V f...
1 match moved: > > > > > > LX≠LIII+V > > > > > > > > > Explained: > > > > > > > LX=60 and LIII+V=LVIII=58. > > > > > > 60≠58. > > > > > > > > > Who made the challenge said all modern math signs, and inequalities work. > > > Or... > > CX=DL/V. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
I did not see this answer: 3 swabs moved: > > LX - LIII = VII (60 - 53 = 7) > > > Explanation: > > Move the top swab from C after the V. Move one of the swabs from the equal sign after the first moved swab - i.e. now we have VII. Move the vertical swab of the plus sign to make an equal sign in its place. > ...
Two swabs moved > > CX > LIII + V > > > Swabs moved > > The two swabs in the equal are angled to form a greater than sign. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
Boring answer. Moving and rotating one swab: > > CX ≠ LII + V > > >
Two swabs moved > > CX > LIII + V > > > Swabs moved > > The two swabs in the equal are angled to form a greater than sign. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
I have a new one: > > **LIX - LIII = VI** > > or > > 59 - 53 = 6 > > > > Method: > > 1) Take the top swab of the C and place it vertically before the subsequent X, turning the number into LIX. > > 2) Take the top swab from the equals sign and place it vertically after the V, turning the equals i...
If moving includes REmoving... > > IX = IIII + V ; Remove 2 swabs from the C to create I, 1 from the L to create another I. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
**Solution 1.** Moving 1 and slightly skewing 2. > > CX = CV + V. Equivalent to 110 = 105 + 5. > > > Explanation. > > Leave the part before the equal sign as it it. > > From `LIII` take the 3 swabs/matches/toothpicks after the L (the 3 I's). > > Put one above L to make it a C. > > Make a V f...
Boring answer. Moving and rotating one swab: > > CX ≠ LII + V > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
Moving two swabs: > > LX = LIV + VI: > > > > > [![LX = LIV + VI](https://i.stack.imgur.com/d85io.png)](https://i.stack.imgur.com/d85io.png) > > >
1 match moved: > > > > > > LX≠LIII+V > > > > > > > > > Explained: > > > > > > > LX=60 and LIII+V=LVIII=58. > > > > > > 60≠58. > > > > > > > > > Who made the challenge said all modern math signs, and inequalities work. > > > Or... > > CX=DL/V. > > >
50,004
A Matchstick puzzle with a twist. Make the following equation right by **moving 3 or less** cotton swabs. [![Image for puzzle](https://i.stack.imgur.com/PY91O.jpg)](https://i.stack.imgur.com/PY91O.jpg) --- **CX = LIII + V** ----------------- It is in Roman Numerals. * Final equation must be in Roman Numerals. ...
2017/03/14
[ "https://puzzling.stackexchange.com/questions/50004", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/34419/" ]
Moving two swabs: > > LX = LIV + VI: > > > > > [![LX = LIV + VI](https://i.stack.imgur.com/d85io.png)](https://i.stack.imgur.com/d85io.png) > > >
If moving includes REmoving... > > IX = IIII + V ; Remove 2 swabs from the C to create I, 1 from the L to create another I. > > >
94,470
How to handle error messages in Infopath form, when a List item add event is cancelled by a Sharepoint Event Receiver? I receive an error which isn't user friendly, I would like to display a user friendly message which provides the reason why the user action was cancelled (this information is provided by the event rece...
2014/03/27
[ "https://sharepoint.stackexchange.com/questions/94470", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/24712/" ]
It's not possible to send message from event receiver to InfoPath. But you can send email to user.
Instead of using SharePoint Event Receiver, write a Custom Web Service.. Call that service from InfoPath form, you will have the option to communicate between InfoPath form and Service (SharePoint in short)..
67,120,798
``` <div role="button" tabIndex="0" className="nav-link pad-0-r" aria-current={'${selectedTab === item ? 'page' : 'false'}'} onClick={()=> onClick(item)} onKeyDown={()=> onClick()} > {item} </div> ``` \*\* for the security purpose i am not able to share the full code.... in this ...
2021/04/16
[ "https://Stackoverflow.com/questions/67120798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11830983/" ]
If you are trying to fetch data using API, then using ListView.builder is right, but `ListView.builder` does not have property named `child`. It uses `itemBuilder` property to populate data. But if you are trying to use it to design your page, then I suggest using `Column`.
ListView.builder doesn't take child as parameter. List items are supposed to be return from itemBuilder function. And numbers list items will be determined by integer you passed on itemCount parameter.
934
In Taiwan, what is the penalty for overstaying a tourist visa with legitimate reasons (for example, a flight was cancelled or delayed, or a transportation closure made someone miss getting to the airport in time)? What fines or barriers to future travel would someone face?
2011/07/11
[ "https://travel.stackexchange.com/questions/934", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/396/" ]
Penalties are levied via a fine. The fine ranges from around 1000 NTD (if you overstay by an hour) up to 10000 NTD. Source (page 5) <http://iff.immigration.gov.tw/public/Data/11714474471.pdf>
As mentioned by Michael Pryor, there is a fine. Any natural force is still your responsibility, including typhoons. From my understanding, the only way you can overstay your visa is by government mandate (quarantine, jail, etc). That being said, I have overstayed a visa by 2 days and didn't have to pay anything becau...
934
In Taiwan, what is the penalty for overstaying a tourist visa with legitimate reasons (for example, a flight was cancelled or delayed, or a transportation closure made someone miss getting to the airport in time)? What fines or barriers to future travel would someone face?
2011/07/11
[ "https://travel.stackexchange.com/questions/934", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/396/" ]
Penalties are levied via a fine. The fine ranges from around 1000 NTD (if you overstay by an hour) up to 10000 NTD. Source (page 5) <http://iff.immigration.gov.tw/public/Data/11714474471.pdf>
I was charged "Over Stay" even though my visa waiver had run out less than 24 Hours. All because I had missed my flight by a few hours! That was because I checked in on the same day as flight but I should have checked in the night before as my flight was just past midnight. (Slight oversight on my part, not checking t...
934
In Taiwan, what is the penalty for overstaying a tourist visa with legitimate reasons (for example, a flight was cancelled or delayed, or a transportation closure made someone miss getting to the airport in time)? What fines or barriers to future travel would someone face?
2011/07/11
[ "https://travel.stackexchange.com/questions/934", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/396/" ]
As mentioned by Michael Pryor, there is a fine. Any natural force is still your responsibility, including typhoons. From my understanding, the only way you can overstay your visa is by government mandate (quarantine, jail, etc). That being said, I have overstayed a visa by 2 days and didn't have to pay anything becau...
I was charged "Over Stay" even though my visa waiver had run out less than 24 Hours. All because I had missed my flight by a few hours! That was because I checked in on the same day as flight but I should have checked in the night before as my flight was just past midnight. (Slight oversight on my part, not checking t...
3,227,735
I don't get the intuition when my introductory statistics textbooks mentions this, can someone please explain it to me?: P(D and B`) = P(D) - P(D and B)
2019/05/15
[ "https://math.stackexchange.com/questions/3227735", "https://math.stackexchange.com", "https://math.stackexchange.com/users/669022/" ]
Case $i = K$ is trivial, so we can assume $S\_i < 1$. $P\_K = P\_i \cdot \prod\_{j=i+1}^K (1 - a\_j)$ and $\sum\_{j=1+1}^K a\_j = 1 - S\_i$, we have $P\_K \geqslant P\_i \cdot (1 - a\_{i + 1} - a\_{i + 2}) \cdot \prod\_{j=i+3}^K \ldots \geqslant P\_i \cdot(1 - a\_{i + 1} - \ldots - a\_K) = P\_i \cdot S\_i$ and so $1 -...
One can in fact show that $$ \frac{1-P\_1}{S\_1} > \frac{1-P\_2}{S\_2} > \ldots > \frac{1-P\_K}{S\_K} \, . $$ if all $a\_i \in (0, 1)$. If, in addition, $\sum\_{i=1}^{K} a\_i = 1$ then the last term is equal to $1-P\_K$, and the desired conclusion follows. *Proof:* For $1 \le i \le K-1$ $$ \begin{align} \frac{1-P\_i...
64,048
Emacs 26.1. To work with Git I use package **magit**. It's very nice package. But I also need package to work with SVN. Has analog of magit but to work with SVN ?
2021/03/22
[ "https://emacs.stackexchange.com/questions/64048", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/16006/" ]
It's unclear just what you want - *return a list* with elements `abc_suffix` and `def_suffix`? Print each of those? Show them in the echo area (`message`)? Return a string of those separated by a space? ```lisp ;; Return a list with the suffix appended to each element. (mapcar (lambda (ss) (format "%s_suffix" ss)) sam...
An idiomatic way to achieve this via recursion: ```lisp (defun print-list-with-suffix (lst) (cl-labels ((rec (x) (unless (null x) (message "%s_suffix" (car x)) (rec (cdr x))))) (rec lst))) (setq sample-list (list 'abc 'def)) (print-list-with-suffix s...
101,064
Following my last question ([Attitude to take following reported user complains](https://workplace.stackexchange.com/questions/92811/attitude-to-take-following-reported-user-complains)), 6 months have passed and I’ve done a lot to improve the situation. According. To my manager I did, but she didn’t help in any way; no...
2017/10/19
[ "https://workplace.stackexchange.com/questions/101064", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/71416/" ]
Start looking for another job right now, but adhere to the terms of your PIP plan in the meantime. It does sounds as though things have gone sour in your current workplace, so you really need to start from fresh someplace else.
HR is not your friend here. I'm not trying to be harsh but I assume from this and the previous question that they can indeed rustle up some "user complaints" to "justify" the PIP if they needed to. I don't mean to imply that you are bad at your job here - just that *anyone* in a customer facing role is going to encount...
7,109,047
I'm trying to add an image to a `JPanel` in IntelliJ's GUI editor. I can't find anywhere that lets me do this. Anyone have any idea?
2011/08/18
[ "https://Stackoverflow.com/questions/7109047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/900789/" ]
if you want to add [Image/ImageIcon](http://download.oracle.com/javase/tutorial/uiswing/components/icon.html) to the GUI, then better way is put picture(s) to the [JLabel](http://download.oracle.com/javase/tutorial/uiswing/components/label.html), links to the tutorials contains examples for that, with for correct usage...
You haven't defined what "adding an image" means. Is this a background image and other components will be added on top. Do you want the image to fill the entire panel or should the image be painted at its actual size? The approach will be different depending on the answer. Maybe you can use an existing component or may...
25,145,931
I have created an ellipse using matplotlib.patches.ellipse as shown below: ``` patch = mpatches.Ellipse(center, major_ax, minor_ax, angle_deg, fc='none', ls='solid', ec='g', lw='3.') ``` What I want is a list of all the integer coordinates enclosed inside this patch. I.e. If I was to plot this ellipse along with e...
2014/08/05
[ "https://Stackoverflow.com/questions/25145931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3911452/" ]
`Ellipse` objects have a method `contains_point` which will return 1 if the point is in the ellipse, 0 other wise. Stealing from @DrV 's answer: ``` import matplotlib.pyplot as plt import matplotlib.patches import numpy as np # create an ellipse el = matplotlib.patches.Ellipse((50,-23), 10, 13.7, 30, facecolor=(1,0,...
If you really want to use the methods offered by `matplotlib`, then: ``` import matplotlib.pyplot as plt import matplotlib.patches import numpy as np # create an ellipse el = matplotlib.patches.Ellipse((50,-23), 10, 13.7, 30, facecolor=(1,0,0,.2), edgecolor='none') # find the bounding box of the ellipse bb = el.get_...
25,145,931
I have created an ellipse using matplotlib.patches.ellipse as shown below: ``` patch = mpatches.Ellipse(center, major_ax, minor_ax, angle_deg, fc='none', ls='solid', ec='g', lw='3.') ``` What I want is a list of all the integer coordinates enclosed inside this patch. I.e. If I was to plot this ellipse along with e...
2014/08/05
[ "https://Stackoverflow.com/questions/25145931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3911452/" ]
If you really want to use the methods offered by `matplotlib`, then: ``` import matplotlib.pyplot as plt import matplotlib.patches import numpy as np # create an ellipse el = matplotlib.patches.Ellipse((50,-23), 10, 13.7, 30, facecolor=(1,0,0,.2), edgecolor='none') # find the bounding box of the ellipse bb = el.get_...
I'd like to offer another solution that uses the `Path` object's `contains_points()` method instead of `contains_point()`: First get the coordinates of the ellipse and make it into a `Path` object: ``` elpath=Path(el.get_verts()) ``` (NOTE that `el.get_paths()` won't work for some reason.) Then call the path's `co...
25,145,931
I have created an ellipse using matplotlib.patches.ellipse as shown below: ``` patch = mpatches.Ellipse(center, major_ax, minor_ax, angle_deg, fc='none', ls='solid', ec='g', lw='3.') ``` What I want is a list of all the integer coordinates enclosed inside this patch. I.e. If I was to plot this ellipse along with e...
2014/08/05
[ "https://Stackoverflow.com/questions/25145931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3911452/" ]
`Ellipse` objects have a method `contains_point` which will return 1 if the point is in the ellipse, 0 other wise. Stealing from @DrV 's answer: ``` import matplotlib.pyplot as plt import matplotlib.patches import numpy as np # create an ellipse el = matplotlib.patches.Ellipse((50,-23), 10, 13.7, 30, facecolor=(1,0,...
I'd like to offer another solution that uses the `Path` object's `contains_points()` method instead of `contains_point()`: First get the coordinates of the ellipse and make it into a `Path` object: ``` elpath=Path(el.get_verts()) ``` (NOTE that `el.get_paths()` won't work for some reason.) Then call the path's `co...
68,854,131
I'm currently trying to find a way to save an image from `AsyncImage` so I can cache it right away (without using a separate image retrieval process). This is my code for `AsyncImage` and the Extension on `View` I'm using to try to save it. ```swift AsyncImage(url: asyncUrl) { phase in switch phase { case .e...
2021/08/19
[ "https://Stackoverflow.com/questions/68854131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16587939/" ]
The `content` closure you're passing to `AsyncImage` is a `@ViewBuilder`. That means that every statement that isn't a declaration (like `let x = ...`) or control flow (like `if blah { ... }`) needs to be an expression that evaluates to some `View`. The problem is with this statement: ``` urlImageModel.image = image.s...
you could simply use this, works well for me: ``` image .resizable() .scaledToFit() .onAppear { urlImageModel.image = image.snapshot() } ```
23,923,299
I am using adobe-brackets sprint39 to build the front end of websites. I am a heavy user of Angularjs. <https://angularjs.org/> Is it possible to activate angularjs code completion on the adobe-brackets ide? Tern has been integrated with adobe-brackets and it has an angular plugin. <http://ternjs.net/doc/manual.html#p...
2014/05/28
[ "https://Stackoverflow.com/questions/23923299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3236199/" ]
Very easy. Put the cursor in the place you want to code-completion and press **ctrl+e**. If is an angular attribute (directive, controller or service) and you have the angularUI extension, you will be able to edit the 'backend code'. In a standard html tag, you will be able to edit the css for this tag. enjoy with bra...
I think it is only working when coding the javascript, it does not work with angular html attributes, I was googling for a while and didn`t find any traces of plugins/extensions to add this feature. Without this functionality Bracket is not useful for developing angular apps IMO, I'll have to wait until it will be imp...
23,923,299
I am using adobe-brackets sprint39 to build the front end of websites. I am a heavy user of Angularjs. <https://angularjs.org/> Is it possible to activate angularjs code completion on the adobe-brackets ide? Tern has been integrated with adobe-brackets and it has an angular plugin. <http://ternjs.net/doc/manual.html#p...
2014/05/28
[ "https://Stackoverflow.com/questions/23923299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3236199/" ]
I just found [a plugin](https://github.com/sirajc/Brackets-AngularJS-CodeHints/)! It does suggest/autocomplete html attributes for *many* Angular directives and attributes. I just played for 15 Minutes with it. ng-form seems to be missing. To say it explicitly: If you want to activate code completion for angularJs in h...
Very easy. Put the cursor in the place you want to code-completion and press **ctrl+e**. If is an angular attribute (directive, controller or service) and you have the angularUI extension, you will be able to edit the 'backend code'. In a standard html tag, you will be able to edit the css for this tag. enjoy with bra...
23,923,299
I am using adobe-brackets sprint39 to build the front end of websites. I am a heavy user of Angularjs. <https://angularjs.org/> Is it possible to activate angularjs code completion on the adobe-brackets ide? Tern has been integrated with adobe-brackets and it has an angular plugin. <http://ternjs.net/doc/manual.html#p...
2014/05/28
[ "https://Stackoverflow.com/questions/23923299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3236199/" ]
I just found [a plugin](https://github.com/sirajc/Brackets-AngularJS-CodeHints/)! It does suggest/autocomplete html attributes for *many* Angular directives and attributes. I just played for 15 Minutes with it. ng-form seems to be missing. To say it explicitly: If you want to activate code completion for angularJs in h...
I think it is only working when coding the javascript, it does not work with angular html attributes, I was googling for a while and didn`t find any traces of plugins/extensions to add this feature. Without this functionality Bracket is not useful for developing angular apps IMO, I'll have to wait until it will be imp...
13,287,011
Maybe not the correct platform for a question such as this, but does anyone know where (or if) you can find out detailed information regarding the current Java 7 SE security issues, like [these ones](http://www.security-explorations.com/en/SE-2012-01-poc.html)? I presume these are not published, as this would essentia...
2012/11/08
[ "https://Stackoverflow.com/questions/13287011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/575596/" ]
``` NSString *textToShare = @"your text"; UIImage *imageToShare = [UIImage imageNamed:@"yourImage.png"]; NSArray *itemsToShare = @[textToShare, imageToShare]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil]; activ...
It is actually a custom action sheet that you can easily create as well. In addition to this, you might want to look at this share kit framework. <https://github.com/ShareKit/ShareKit>
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
**Preliminary** I think there a couple of preliminary points that need to be addressed. This is marked as system agnostic, and that is probably a good call in the sense that neither the question nor this answer are tied to any particular setting, but it does not apply to all settings. Some settings make it very easy t...
The **short** answer: those with magical abilities are able to use their finite sense of the environment to manipulate pre-existing materials according to their will. Failure to achieve this is simply due to a) lack of necessary materials or b) a competing force. The **long** answer would be to do some reading on chao...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
In my experience, creating the *feel* that magic is scientific is pretty simple: show people talking about it as if it is. Depending on your setting, there may be wizards' guilds, academies, alchemical societies, etc. where people gather to discuss the finer points of spell creation, maintenance, modification, etc. Wal...
The **short** answer: those with magical abilities are able to use their finite sense of the environment to manipulate pre-existing materials according to their will. Failure to achieve this is simply due to a) lack of necessary materials or b) a competing force. The **long** answer would be to do some reading on chao...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
First of all, remember what scientific means: > > Science (from [Latin](https://en.wikipedia.org/wiki/Latin_language) scientia, meaning "knowledge") is a systematic enterprise that builds and organizes [knowledge](https://en.wikipedia.org/wiki/Knowledge) in the form of testable [explanations](https://en.wikipedia.or...
The **short** answer: those with magical abilities are able to use their finite sense of the environment to manipulate pre-existing materials according to their will. Failure to achieve this is simply due to a) lack of necessary materials or b) a competing force. The **long** answer would be to do some reading on chao...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
The **short** answer: those with magical abilities are able to use their finite sense of the environment to manipulate pre-existing materials according to their will. Failure to achieve this is simply due to a) lack of necessary materials or b) a competing force. The **long** answer would be to do some reading on chao...
Something that will go a long way towards making magic feel scientific is providing some kind of logical structure for the magic that PCs and NPCs can do. Examples would be the basic system in the various editions of WoD's ***Mage***, the verb-noun systems of ***GURPS Thaumatology***, or even ***Chivalry and Sorcery**...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
**Preliminary** I think there a couple of preliminary points that need to be addressed. This is marked as system agnostic, and that is probably a good call in the sense that neither the question nor this answer are tied to any particular setting, but it does not apply to all settings. Some settings make it very easy t...
In my experience, creating the *feel* that magic is scientific is pretty simple: show people talking about it as if it is. Depending on your setting, there may be wizards' guilds, academies, alchemical societies, etc. where people gather to discuss the finer points of spell creation, maintenance, modification, etc. Wal...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
**Preliminary** I think there a couple of preliminary points that need to be addressed. This is marked as system agnostic, and that is probably a good call in the sense that neither the question nor this answer are tied to any particular setting, but it does not apply to all settings. Some settings make it very easy t...
First of all, remember what scientific means: > > Science (from [Latin](https://en.wikipedia.org/wiki/Latin_language) scientia, meaning "knowledge") is a systematic enterprise that builds and organizes [knowledge](https://en.wikipedia.org/wiki/Knowledge) in the form of testable [explanations](https://en.wikipedia.or...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
**Preliminary** I think there a couple of preliminary points that need to be addressed. This is marked as system agnostic, and that is probably a good call in the sense that neither the question nor this answer are tied to any particular setting, but it does not apply to all settings. Some settings make it very easy t...
Something that will go a long way towards making magic feel scientific is providing some kind of logical structure for the magic that PCs and NPCs can do. Examples would be the basic system in the various editions of WoD's ***Mage***, the verb-noun systems of ***GURPS Thaumatology***, or even ***Chivalry and Sorcery**...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
In my experience, creating the *feel* that magic is scientific is pretty simple: show people talking about it as if it is. Depending on your setting, there may be wizards' guilds, academies, alchemical societies, etc. where people gather to discuss the finer points of spell creation, maintenance, modification, etc. Wal...
First of all, remember what scientific means: > > Science (from [Latin](https://en.wikipedia.org/wiki/Latin_language) scientia, meaning "knowledge") is a systematic enterprise that builds and organizes [knowledge](https://en.wikipedia.org/wiki/Knowledge) in the form of testable [explanations](https://en.wikipedia.or...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
In my experience, creating the *feel* that magic is scientific is pretty simple: show people talking about it as if it is. Depending on your setting, there may be wizards' guilds, academies, alchemical societies, etc. where people gather to discuss the finer points of spell creation, maintenance, modification, etc. Wal...
Something that will go a long way towards making magic feel scientific is providing some kind of logical structure for the magic that PCs and NPCs can do. Examples would be the basic system in the various editions of WoD's ***Mage***, the verb-noun systems of ***GURPS Thaumatology***, or even ***Chivalry and Sorcery**...
103,872
Based off of [this question](https://rpg.stackexchange.com/questions/10421/how-do-i-create-a-sense-of-mystery-about-magic). Magic in many games is considered well-understood, but ill explained (hence 'magic'). Assuming that I control the environment and have a mild will to bend mechanics, how do I make Magic that seem...
2017/07/19
[ "https://rpg.stackexchange.com/questions/103872", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/29904/" ]
First of all, remember what scientific means: > > Science (from [Latin](https://en.wikipedia.org/wiki/Latin_language) scientia, meaning "knowledge") is a systematic enterprise that builds and organizes [knowledge](https://en.wikipedia.org/wiki/Knowledge) in the form of testable [explanations](https://en.wikipedia.or...
Something that will go a long way towards making magic feel scientific is providing some kind of logical structure for the magic that PCs and NPCs can do. Examples would be the basic system in the various editions of WoD's ***Mage***, the verb-noun systems of ***GURPS Thaumatology***, or even ***Chivalry and Sorcery**...
52,303
Wie sagt ihr das, Muttersprachler? > > Ich hole mein Kind von der Kita ab. > > > oder > > Ich hole mein Kind aus der Kita ab. > > > Das gleiche würde ich noch für die Schule fragen für die Zukunft :) > > Aus der Schule abholen > > > vs. > > Von der Schule abholen > > >
2019/05/21
[ "https://german.stackexchange.com/questions/52303", "https://german.stackexchange.com", "https://german.stackexchange.com/users/20107/" ]
Beides ist möglich, der Sinn ist jedoch ein bisschen verschieden: Mit *aus der Schule* referiert man auf das Schulgebäude, mit *von der Schule* referiert man auf die Institution Schule. Ganz analog gilt das für die Kita. Was man sagt, kann situativ verschieden sein: Wenn man ausdrücken will, dass man das Kind "in die ...
Wenn das Kind beim Abholen noch in der Schule ist, im Unterricht etwa, dann holst Du es aus der Schule ab, etwa wenn sich bei seinem Geschwister eine hochinfektiöse Krankheit gezeigt hat und zu befürchten ist, dass das andere Kind schon angesteckt ist. Normalerweise holst Du das Kind von der Schule ab, weil Du sie ni...
32,622,034
If you simply set the value of Text property in a TextBlock as "**Example**" (Note that there 3 whitespaces at the **end** of this string),what TextBlock shows in UI is just "**Example**". And after searching for solutions on the Internet, I found that there is a way to solve this issue: ``` <Border BorderThickness="...
2015/09/17
[ "https://Stackoverflow.com/questions/32622034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3577664/" ]
First, `Run.Text` *does* support data binding. The reason that `&#160;` doesn't print correctly inside data binding is because it's using XML escape characters. Try using `(char)160` instead - ``` public string TestString { get; set; } = "Example" + (char)160 + (char)160 + (char)160; <TextBlock> <Run Text="{x:...
You can try setting the `xml:space` property to preserve in your XAML ``` <TextBox Name="t1" xml:space="preserve" Text="Example " /> ```
32,622,034
If you simply set the value of Text property in a TextBlock as "**Example**" (Note that there 3 whitespaces at the **end** of this string),what TextBlock shows in UI is just "**Example**". And after searching for solutions on the Internet, I found that there is a way to solve this issue: ``` <Border BorderThickness="...
2015/09/17
[ "https://Stackoverflow.com/questions/32622034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3577664/" ]
You can try setting the `xml:space` property to preserve in your XAML ``` <TextBox Name="t1" xml:space="preserve" Text="Example " /> ```
I have a solution for a Listview.ItemTemplate in UWP. ``` <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock xml:space="preserve"><Run Text="{Binding ID}"></Run><Run> </Run><Run Text="{Binding name}"></Run><Run> </Run><Run Text="{Binding ipAdress}"></Ru...
32,622,034
If you simply set the value of Text property in a TextBlock as "**Example**" (Note that there 3 whitespaces at the **end** of this string),what TextBlock shows in UI is just "**Example**". And after searching for solutions on the Internet, I found that there is a way to solve this issue: ``` <Border BorderThickness="...
2015/09/17
[ "https://Stackoverflow.com/questions/32622034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3577664/" ]
First, `Run.Text` *does* support data binding. The reason that `&#160;` doesn't print correctly inside data binding is because it's using XML escape characters. Try using `(char)160` instead - ``` public string TestString { get; set; } = "Example" + (char)160 + (char)160 + (char)160; <TextBlock> <Run Text="{x:...
I have a solution for a Listview.ItemTemplate in UWP. ``` <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock xml:space="preserve"><Run Text="{Binding ID}"></Run><Run> </Run><Run Text="{Binding name}"></Run><Run> </Run><Run Text="{Binding ipAdress}"></Ru...
32,622,034
If you simply set the value of Text property in a TextBlock as "**Example**" (Note that there 3 whitespaces at the **end** of this string),what TextBlock shows in UI is just "**Example**". And after searching for solutions on the Internet, I found that there is a way to solve this issue: ``` <Border BorderThickness="...
2015/09/17
[ "https://Stackoverflow.com/questions/32622034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3577664/" ]
First, `Run.Text` *does* support data binding. The reason that `&#160;` doesn't print correctly inside data binding is because it's using XML escape characters. Try using `(char)160` instead - ``` public string TestString { get; set; } = "Example" + (char)160 + (char)160 + (char)160; <TextBlock> <Run Text="{x:...
The [zero width no-break space](https://en.wikipedia.org/wiki/Zero-width_space) is treated as a non-printing character instead of whitespace, so adding `&#xfeff;` to the end of your value in XAML will preserve trailing spaces: ```xml <Run Text="Example&#160;&#160;&#160;&#xfeff;"/> ```
32,622,034
If you simply set the value of Text property in a TextBlock as "**Example**" (Note that there 3 whitespaces at the **end** of this string),what TextBlock shows in UI is just "**Example**". And after searching for solutions on the Internet, I found that there is a way to solve this issue: ``` <Border BorderThickness="...
2015/09/17
[ "https://Stackoverflow.com/questions/32622034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3577664/" ]
The [zero width no-break space](https://en.wikipedia.org/wiki/Zero-width_space) is treated as a non-printing character instead of whitespace, so adding `&#xfeff;` to the end of your value in XAML will preserve trailing spaces: ```xml <Run Text="Example&#160;&#160;&#160;&#xfeff;"/> ```
I have a solution for a Listview.ItemTemplate in UWP. ``` <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock xml:space="preserve"><Run Text="{Binding ID}"></Run><Run> </Run><Run Text="{Binding name}"></Run><Run> </Run><Run Text="{Binding ipAdress}"></Ru...
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
The result set only sees the returned data/column names, not the underlying table. Change your query to something like ``` SELECT TableA.Name as Name_TA, TableB.Name as Name_TB from ... ``` Then you can refer to the fields like this: ``` data_reader["Name_TA"]; ```
Ideally, you should never have duplicate column names, across a database schema. So if you can rename your schema to not have conflicting names. That rule is for this very situation. Once you've done your join, it is just a new recordset, and generally the table names do go with it.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
To those posting that it is wrong to use "SELECT \*", I strongly disagree with you. There are many real world cases where a SELECT \* is necessary. Your absolute statements about its "wrong" use may be leading someone astray from what is a legitimate solution. The problem here does not lie with the use of SELECT \*, b...
You could try reading the values by index (a number) rather than by key. ``` name = data_reader[4]; ``` You will have to experiment to see how the numbers correspond.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
To those posting that it is wrong to use "SELECT \*", I strongly disagree with you. There are many real world cases where a SELECT \* is necessary. Your absolute statements about its "wrong" use may be leading someone astray from what is a legitimate solution. The problem here does not lie with the use of SELECT \*, b...
Welcome to the real world. In the real world, we don't use "SELECT \*". Specify which columns you want, from which tables, and with which alias, if required.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
The result set only sees the returned data/column names, not the underlying table. Change your query to something like ``` SELECT TableA.Name as Name_TA, TableB.Name as Name_TB from ... ``` Then you can refer to the fields like this: ``` data_reader["Name_TA"]; ```
You could try reading the values by index (a number) rather than by key. ``` name = data_reader[4]; ``` You will have to experiment to see how the numbers correspond.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
You could try reading the values by index (a number) rather than by key. ``` name = data_reader[4]; ``` You will have to experiment to see how the numbers correspond.
Welcome to the real world. In the real world, we don't use "SELECT \*". Specify which columns you want, from which tables, and with which alias, if required.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
The result set only sees the returned data/column names, not the underlying table. Change your query to something like ``` SELECT TableA.Name as Name_TA, TableB.Name as Name_TB from ... ``` Then you can refer to the fields like this: ``` data_reader["Name_TA"]; ```
Although it is better to use a column list to remove duplicate columns, if for any reason you want \*\*\*\*\*, then just use ``` rdr.item("duplicate_column_name") ``` This will return the first column value, since the inner join will have the same values in both identical columns, so this will accomplish the task.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
Although it is better to use a column list to remove duplicate columns, if for any reason you want \*\*\*\*\*, then just use ``` rdr.item("duplicate_column_name") ``` This will return the first column value, since the inner join will have the same values in both identical columns, so this will accomplish the task.
Ideally, you should never have duplicate column names, across a database schema. So if you can rename your schema to not have conflicting names. That rule is for this very situation. Once you've done your join, it is just a new recordset, and generally the table names do go with it.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
The result set only sees the returned data/column names, not the underlying table. Change your query to something like ``` SELECT TableA.Name as Name_TA, TableB.Name as Name_TB from ... ``` Then you can refer to the fields like this: ``` data_reader["Name_TA"]; ```
Welcome to the real world. In the real world, we don't use "SELECT \*". Specify which columns you want, from which tables, and with which alias, if required.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
You could try reading the values by index (a number) rather than by key. ``` name = data_reader[4]; ``` You will have to experiment to see how the numbers correspond.
Although it is better to use a column list to remove duplicate columns, if for any reason you want \*\*\*\*\*, then just use ``` rdr.item("duplicate_column_name") ``` This will return the first column value, since the inner join will have the same values in both identical columns, so this will accomplish the task.
1,008,920
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and I am having a problem in C# when it comes to reading an SQL Server query that joins two tables. Given the two tables: TableA: ``` int:id VARCHAR(50):name int:b_id ``` TableB: ``` int:id VARCHAR(50):name ``` And given the query ```...
2009/06/17
[ "https://Stackoverflow.com/questions/1008920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/124568/" ]
Welcome to the real world. In the real world, we don't use "SELECT \*". Specify which columns you want, from which tables, and with which alias, if required.
Ideally, you should never have duplicate column names, across a database schema. So if you can rename your schema to not have conflicting names. That rule is for this very situation. Once you've done your join, it is just a new recordset, and generally the table names do go with it.
5,861,501
I'm working an a layout which I will have a bitmap centered, and I'd like the left & right margin bitmaps to scale (horizontally) to fill the screen, such that my center item can be a decorated titlebar, and the left & right are filler bitmaps that match the center bitmaps background, and thus stretching horizontally. ...
2011/05/02
[ "https://Stackoverflow.com/questions/5861501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/553746/" ]
Have you thought about creating a 9-patch with your single title bar image? If you have your "stretched" parts on either side of the actual title it will stretch to fit whatever you want without resorting to layout trickery.
Try creating two images, one as a background and scaleType to FIT\_CENTER, then set the other one to lay on top and just move to the center.
5,861,501
I'm working an a layout which I will have a bitmap centered, and I'd like the left & right margin bitmaps to scale (horizontally) to fill the screen, such that my center item can be a decorated titlebar, and the left & right are filler bitmaps that match the center bitmaps background, and thus stretching horizontally. ...
2011/05/02
[ "https://Stackoverflow.com/questions/5861501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/553746/" ]
Have you thought about creating a 9-patch with your single title bar image? If you have your "stretched" parts on either side of the actual title it will stretch to fit whatever you want without resorting to layout trickery.
Here's a nice clean way of doing this, that is pretty much exactly what Lucas was talking about, but in xml: ``` <FrameLayout android:id="@+id/navbar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/titlebar_repeat"> <ImageView android:layout_width="w...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
There are several reasons, actually, including everything you mentioned: There is only so much current ----------------------------- In the US, the average outlet is a 120V, 15A circuit. That means it can provide at most 1800W (P = V \* I) (that is, power equals voltage times current). For a 12v circuit, that means t...
the answer is very simple just the internal resistor of the adaptor i give you an exemple 1-open circuit (no current) only the voltahe of your adaptor![enter image description here](https://i.stack.imgur.com/4jYP2.jpg) 2-the 5A case: theoriticly you get 5A if you have a load of 2.4ohm I=V/R I=12/2.4=5A with my simula...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
The components that make up DC adaptors (inductors, transistors, capacitors, diodes, ect) are all rated for a certain current and/or power dissipation. Components that can handle 1000A vs. components that can handle 5A are orders of magnitude apart in cost, size, and availability. For an example let's look at an indu...
Just like anything else more power is larger, more costly and the components more expensive to build. Another element of 12 V is the amount of ripple (ac component) of the dc supply. So like anything else there are a number of elements that make a power supply decision and choices more complex.
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
There are several reasons, actually, including everything you mentioned: There is only so much current ----------------------------- In the US, the average outlet is a 120V, 15A circuit. That means it can provide at most 1800W (P = V \* I) (that is, power equals voltage times current). For a 12v circuit, that means t...
All of that. The most simple example is that the cable has to handle 5000 Amp. That's going to be a **massive** cable. I don't mean as thick as your arm or leg, it's worse than that.
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
A 12V adapter that can source 1000A would need to be connected to at least a 120V 100A supply or a 240V 50A supply, in either case **much** larger than your wall outlet can deliver.
the answer is very simple just the internal resistor of the adaptor i give you an exemple 1-open circuit (no current) only the voltahe of your adaptor![enter image description here](https://i.stack.imgur.com/4jYP2.jpg) 2-the 5A case: theoriticly you get 5A if you have a load of 2.4ohm I=V/R I=12/2.4=5A with my simula...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
A 12V adapter that can source 1000A would need to be connected to at least a 120V 100A supply or a 240V 50A supply, in either case **much** larger than your wall outlet can deliver.
Just like anything else more power is larger, more costly and the components more expensive to build. Another element of 12 V is the amount of ripple (ac component) of the dc supply. So like anything else there are a number of elements that make a power supply decision and choices more complex.
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
Just like anything else more power is larger, more costly and the components more expensive to build. Another element of 12 V is the amount of ripple (ac component) of the dc supply. So like anything else there are a number of elements that make a power supply decision and choices more complex.
the answer is very simple just the internal resistor of the adaptor i give you an exemple 1-open circuit (no current) only the voltahe of your adaptor![enter image description here](https://i.stack.imgur.com/4jYP2.jpg) 2-the 5A case: theoriticly you get 5A if you have a load of 2.4ohm I=V/R I=12/2.4=5A with my simula...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
All of that. The most simple example is that the cable has to handle 5000 Amp. That's going to be a **massive** cable. I don't mean as thick as your arm or leg, it's worse than that.
the answer is very simple just the internal resistor of the adaptor i give you an exemple 1-open circuit (no current) only the voltahe of your adaptor![enter image description here](https://i.stack.imgur.com/4jYP2.jpg) 2-the 5A case: theoriticly you get 5A if you have a load of 2.4ohm I=V/R I=12/2.4=5A with my simula...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
The components that make up DC adaptors (inductors, transistors, capacitors, diodes, ect) are all rated for a certain current and/or power dissipation. Components that can handle 1000A vs. components that can handle 5A are orders of magnitude apart in cost, size, and availability. For an example let's look at an indu...
All of that. The most simple example is that the cable has to handle 5000 Amp. That's going to be a **massive** cable. I don't mean as thick as your arm or leg, it's worse than that.
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
The components that make up DC adaptors (inductors, transistors, capacitors, diodes, ect) are all rated for a certain current and/or power dissipation. Components that can handle 1000A vs. components that can handle 5A are orders of magnitude apart in cost, size, and availability. For an example let's look at an indu...
There are several reasons, actually, including everything you mentioned: There is only so much current ----------------------------- In the US, the average outlet is a 120V, 15A circuit. That means it can provide at most 1800W (P = V \* I) (that is, power equals voltage times current). For a 12v circuit, that means t...
126,797
If I have a device that draws 5 amps at 12 volts, I can use any 12 volt DC adapter that can provide at least 5 amps. Why don't all DC adapters have the capacity to provide loads of amps!? If all DC adapters provided e.g. 1000 amps, we would only need to care about the voltage value. Do too many amps make DC adapters...
2014/08/27
[ "https://electronics.stackexchange.com/questions/126797", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/52124/" ]
There are several reasons, actually, including everything you mentioned: There is only so much current ----------------------------- In the US, the average outlet is a 120V, 15A circuit. That means it can provide at most 1800W (P = V \* I) (that is, power equals voltage times current). For a 12v circuit, that means t...
Just like anything else more power is larger, more costly and the components more expensive to build. Another element of 12 V is the amount of ripple (ac component) of the dc supply. So like anything else there are a number of elements that make a power supply decision and choices more complex.
37,667,064
I'm looking for a way to store boolean data in SQL. I couldn't find a boolean type in MySQL. I looked at the table on w3schools ([SQL Data Types](http://www.w3schools.com/sql/sql_datatypes.asp)) and didn't find a boolean type. But I get the information that `TINYINT(1)` is used for boolean types. Is it true, or is t...
2016/06/06
[ "https://Stackoverflow.com/questions/37667064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5883610/" ]
You can use [`BIT`](https://dev.mysql.com/doc/refman/8.0/en/bit-type.html) data type to store boolean data ([like on T-SQL / SQL Server](https://learn.microsoft.com/en-us/sql/t-sql/data-types/bit-transact-sql)): ``` CREATE TABLE `table_name` ( `column_name` BIT(1) ); ``` On MySQL the data types [`BOOL` and `BOOL...
There is a data type `BOOL` or `BOOLEAN` in MySQL: > > BOOL, BOOLEAN > > > These types are synonyms for TINYINT(1). A value of zero is considered > false. Nonzero values are considered true: > > > ... > > > Source: <http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html>
13,792,752
I've been searching the net for a while trying to find out how to simply read only lines longer than 0 characters from a .txt file into a listbox in VB. I am using VS 2010 and want to read only lines that contain content into the list box. For example I want to only read the lines labeled 1. ``` 1 1 1 1 1 ```
2012/12/09
[ "https://Stackoverflow.com/questions/13792752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1834355/" ]
You can use a combination of [ReadAllLines](http://msdn.microsoft.com/en-us/library/system.io.file.readalllines.aspx) and LINQ: ``` ListBox1.DataSource = IO.File.ReadAllLines("file.txt").Where(Function(x) x.Length > 0).ToList ``` To start at the 3rd line, use `Skip`: ``` IO.File.ReadAllLines("file.txt").Skip(2).Whe...
So you just want to add lines with text: ``` Dim notEmptyLines = From line In IO.File.ReadLines(path) Where Not String.IsNullOrWhiteSpace(line) For Each line In notEmptyLines ListBox1.Items.Add(line) Next ``` Replace `Not String.IsNullOrWhiteSpace(line)` with `line.Length <> 0` if you also w...