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
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Here's an attempt at solving the problem with Javascript: <http://jsfiddle.net/eGDP7/> I'm using a data attribute on the html to list the classes with transforms that we want to apply: ``` <div class="compoundtransform" data-transformations="scaletrans2, rotatetrans1">Test subject</div> ``` I iterate through the c...
Hmm...as far as I know, you would have to create new class and combine them this way (separated by a space): ``` -webkit-transform: rotate(90deg) scale(0.25, 0.25); ```
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Here's an attempt at solving the problem with Javascript: <http://jsfiddle.net/eGDP7/> I'm using a data attribute on the html to list the classes with transforms that we want to apply: ``` <div class="compoundtransform" data-transformations="scaletrans2, rotatetrans1">Test subject</div> ``` I iterate through the c...
Instead of rotate and scale you could use the matrix function. ``` transform: matrix(a, b, c, d, tx, ty); ``` In the example given, I believe the following would produce the desired result: ``` transform: matrix(0,-0.25,0.25,0,0,0); ``` For an explanation of matrix calculations: * <http://en.wikipedia.org/wiki/L...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
The way I get around this issue is to add a wrapper class around the one I want. For example, I have the wrapper which has its position set via javascript, and then the internal which is is affected by css animations - both on the transform property. I know adding DOM nodes isn't ideal but it circumvents the script-he...
One thing you could do is get the computed transform style in JS and concatenate your secondary transform value: **HTML** ``` <div class="rotate-scale"></div> ``` **CSS** ``` .rotate-scale { transform: rotate(90deg); } ``` **JS** ``` var el = document.querySelector('.rotate-scale'), // rotation will get ...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Here's an attempt at solving the problem with Javascript: <http://jsfiddle.net/eGDP7/> I'm using a data attribute on the html to list the classes with transforms that we want to apply: ``` <div class="compoundtransform" data-transformations="scaletrans2, rotatetrans1">Test subject</div> ``` I iterate through the c...
Currently there is no way to do this, it only accepts one command for `transform` at a time and cannot add or subtract like you'd like. Thus you'll have to add or remove a class depending on what the first and second type is and write a custom `transform` for that element Using a CSS preprocessor language like SASS or...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
The way I get around this issue is to add a wrapper class around the one I want. For example, I have the wrapper which has its position set via javascript, and then the internal which is is affected by css animations - both on the transform property. I know adding DOM nodes isn't ideal but it circumvents the script-he...
Currently there is no way to do this, it only accepts one command for `transform` at a time and cannot add or subtract like you'd like. Thus you'll have to add or remove a class depending on what the first and second type is and write a custom `transform` for that element Using a CSS preprocessor language like SASS or...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Here's an attempt at solving the problem with Javascript: <http://jsfiddle.net/eGDP7/> I'm using a data attribute on the html to list the classes with transforms that we want to apply: ``` <div class="compoundtransform" data-transformations="scaletrans2, rotatetrans1">Test subject</div> ``` I iterate through the c...
One thing you could do is get the computed transform style in JS and concatenate your secondary transform value: **HTML** ``` <div class="rotate-scale"></div> ``` **CSS** ``` .rotate-scale { transform: rotate(90deg); } ``` **JS** ``` var el = document.querySelector('.rotate-scale'), // rotation will get ...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
The way I get around this issue is to add a wrapper class around the one I want. For example, I have the wrapper which has its position set via javascript, and then the internal which is is affected by css animations - both on the transform property. I know adding DOM nodes isn't ideal but it circumvents the script-he...
Instead of rotate and scale you could use the matrix function. ``` transform: matrix(a, b, c, d, tx, ty); ``` In the example given, I believe the following would produce the desired result: ``` transform: matrix(0,-0.25,0.25,0,0,0); ``` For an explanation of matrix calculations: * <http://en.wikipedia.org/wiki/L...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Here's an attempt at solving the problem with Javascript: <http://jsfiddle.net/eGDP7/> I'm using a data attribute on the html to list the classes with transforms that we want to apply: ``` <div class="compoundtransform" data-transformations="scaletrans2, rotatetrans1">Test subject</div> ``` I iterate through the c...
The way I get around this issue is to add a wrapper class around the one I want. For example, I have the wrapper which has its position set via javascript, and then the internal which is is affected by css animations - both on the transform property. I know adding DOM nodes isn't ideal but it circumvents the script-he...
20,167,244
Shell output: ``` Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git branch --l * forAnyOption forRawgithub master myMatser Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co master 切换到分支 'master' Wener@Wener-PC /web/learn/angular/learn/angularjs-book $ git co myMaster error: pathspec 'm...
2013/11/23
[ "https://Stackoverflow.com/questions/20167244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870054/" ]
Currently there is no way to do this, it only accepts one command for `transform` at a time and cannot add or subtract like you'd like. Thus you'll have to add or remove a class depending on what the first and second type is and write a custom `transform` for that element Using a CSS preprocessor language like SASS or...
One thing you could do is get the computed transform style in JS and concatenate your secondary transform value: **HTML** ``` <div class="rotate-scale"></div> ``` **CSS** ``` .rotate-scale { transform: rotate(90deg); } ``` **JS** ``` var el = document.querySelector('.rotate-scale'), // rotation will get ...
35,817,477
There is WinForms application. Its functionality (for example) - Ping machines in the corporate domain. Let's imagine, that a user has created two objects in the application for the ping - Comp1 and Comp2. Most main feature - the program should give the user a choice - intverval through what kind of computer you need t...
2016/03/05
[ "https://Stackoverflow.com/questions/35817477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5907550/" ]
If you want to see if Comp2 is accessible (network-wise) from Comp1, you could run the following code on Comp1 ``` Ping ping = new Ping(); PingReply reply = new Ping().Send(Comp1IP); return reply.Status == IPStatus.Success ```
Another idea - to create only one universal timer tmrTimer, it will be running once a minute. Application will keep in database / memory for each Comp [number] refresh interval and time of last ping. During every minute trip tmrTimer\_Tick will be check on all the data for each of the Comp [number]. And if the differen...
35,817,477
There is WinForms application. Its functionality (for example) - Ping machines in the corporate domain. Let's imagine, that a user has created two objects in the application for the ping - Comp1 and Comp2. Most main feature - the program should give the user a choice - intverval through what kind of computer you need t...
2016/03/05
[ "https://Stackoverflow.com/questions/35817477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5907550/" ]
If you want to see if Comp2 is accessible (network-wise) from Comp1, you could run the following code on Comp1 ``` Ping ping = new Ping(); PingReply reply = new Ping().Send(Comp1IP); return reply.Status == IPStatus.Success ```
You have to use 2 timers. Make a winform, allow the user to choose the time interval by using NumericUpDown controls, or find a better way. Set the interval at the specified milliseconds (60000 = 1 minute, 900000 = 15 mins) Tick event will launch the ping through **- Ping class:** [Ping class on MSDN](https://msdn....
16,851
It looks to be a double boiler of some sort, but we're not sure what it is. ![strange pan](https://i.stack.imgur.com/p6ymM.jpg)
2011/08/13
[ "https://cooking.stackexchange.com/questions/16851", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/7037/" ]
It's an egg poacher. Looks like [this exact model](http://rads.stackoverflow.com/amzn/click/B002CGSYBM). ![Egg Poacher](https://i.stack.imgur.com/z9P81.png) Note that these don't really actually "poach" eggs, the result is more like a coddled egg. They do essentially work like double boilers.
If you put a dab of butter in the bottom of the cup and and a raw egg over it, then steam it, you'll have coddled or shired eggs.
15,764,948
``` #include <stdio.h> #include <jni.h> JNIEnv* create_vm() { JavaVM* jvm; JNIEnv* env; JavaVMInitArgs args; JavaVMOption options[1]; /* There is a new JNI_VERSION_1_4, but it doesn't add anything for the purposes of our example. */ args.version = JNI_VERSION_1_2; args.nOptions = 1; o...
2013/04/02
[ "https://Stackoverflow.com/questions/15764948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/919415/" ]
> > I noticed the different ways of implementing in C and C++ but I think I am writing it correctly. > > > You are using the `C` variant, but are compiling with `g++`, which invokes the `C++` compiler (even if your source file has a `.c` extension). Either change the `C` variants like ``` (*env)->FindClass(env, ...
I am putting the work around found on other SO posts.. I used straight forwardly this - " `gcc -g -I /usr/lib/jvm/java-6-sun-1.6.0.26/include -I /usr/lib/jvm/java-6-sun-1.6.0.26/include/linux -L /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server -ljvm CallJVM.c` and a.out was created. Then I need to link it with libj...
3,858,454
Is it possible to host microsoft access 2010 in WPF or Windows Forms as ActiveX or anything? I've seen DsoFramer examples but it's not supported from Microsoft and not to mention buggy. Some articles suggest using webBrowser but it's coupled with registry settings that I would not like to overwrite. Interobility at th...
2010/10/04
[ "https://Stackoverflow.com/questions/3858454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/132690/" ]
Probably not the answer you want to hear but there are no really good solutions available for embedding Office apps/documents in WPF/Winforms anymore. DSOFramer was about the only real choice, but it's dead and the KB has been removed. A web browser control is also plagued with problems. Although not confirmed to supp...
You can try to use Microsoft Sharepoint, and serve the access functionality remotely through an embedded browser frame. Check this video about it <http://www.youtube.com/watch?v=Dq-tDuPfgZc>
3,858,454
Is it possible to host microsoft access 2010 in WPF or Windows Forms as ActiveX or anything? I've seen DsoFramer examples but it's not supported from Microsoft and not to mention buggy. Some articles suggest using webBrowser but it's coupled with registry settings that I would not like to overwrite. Interobility at th...
2010/10/04
[ "https://Stackoverflow.com/questions/3858454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/132690/" ]
Probably not the answer you want to hear but there are no really good solutions available for embedding Office apps/documents in WPF/Winforms anymore. DSOFramer was about the only real choice, but it's dead and the KB has been removed. A web browser control is also plagued with problems. Although not confirmed to supp...
There is a way. [Amazon Web Services have a service called WorkSpaces.](http://aws.amazon.com/workspaces/) I've managed to host applications that give clients remote connection to their software that is not traditionally for the web. One of them was an accounting system. The other is an MS Access application. I would ...
3,858,454
Is it possible to host microsoft access 2010 in WPF or Windows Forms as ActiveX or anything? I've seen DsoFramer examples but it's not supported from Microsoft and not to mention buggy. Some articles suggest using webBrowser but it's coupled with registry settings that I would not like to overwrite. Interobility at th...
2010/10/04
[ "https://Stackoverflow.com/questions/3858454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/132690/" ]
You can try to use Microsoft Sharepoint, and serve the access functionality remotely through an embedded browser frame. Check this video about it <http://www.youtube.com/watch?v=Dq-tDuPfgZc>
There is a way. [Amazon Web Services have a service called WorkSpaces.](http://aws.amazon.com/workspaces/) I've managed to host applications that give clients remote connection to their software that is not traditionally for the web. One of them was an accounting system. The other is an MS Access application. I would ...
29,473,562
I have a long text file. Now I will remove duplicates from the file. The problem is that the search parameter is the first word in the list, split by ":" For example: The file lines: ``` 11234567:229283:29833204:2394803 11234567:4577546765:655776:564456456 43523:455543:54335434:53445 11234567:43455:544354:5443 ``...
2015/04/06
[ "https://Stackoverflow.com/questions/29473562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4409126/" ]
Your code works fine... as long as it is ran before the DOM is created. [JSFiddle](http://jsfiddle.net/n7k63smf/) --- If your script is getting ran after the DOM is created and you can't change that for whatever reason... you could remove the onclick in the DOM, add an ID on the link and do it this way instead: [JS...
On clicking the link you page will be reloaded and also the html. So all the dom changes will be lost. You need to stop your page from loading by returning false. ``` <script type="text/javascript"> function myfunction() { var select = document.getElementById('ipd'); var items = select.getElementsByTagName('option'); ...
82,494
In Ken Graham's answer to [a separate question](https://christianity.stackexchange.com/a/81426), he cites a prayer to Saint Michael used in the Catholic rite of exorcism. The Latin text of the prayer includes the passage: > > tibi trádidit Dóminus ánimas redemptórum in supérna felicitáte locándas > > > whi...
2021/03/27
[ "https://christianity.stackexchange.com/questions/82494", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/12563/" ]
Has the Lord handed over the souls of the redeemed to St Michael? > > Tibi trádidit Dóminus ánimas redemptórum in supérna felicitáte locamdas. > > > Here follows the Church’s translation taken from the [Exorcismus in Satanam et Angelos Apostaticos](http://laudatedominum.net/files/exor.pdf) (page 40) of ***R...
No, your translation is correct. While I know of no tradition about this specifically (nor can find one), there is a possible Biblical basis for the concept (the Bible is technically a part of, and not separate from, tradition). We read in Revelation 12 of the spiritual war in heaven between the devil and "his angels,...
29,218,369
I have a huge list of strings that have an arbitrary length. I know want to obfuscate the strings in a way that guarantees certain criteria: * The obfuscated strings have to be unique * There should be no easy way to undo the obfuscation Is there any framework that does this for me?
2015/03/23
[ "https://Stackoverflow.com/questions/29218369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3836561/" ]
While it's possible to do what you're asking with a lambda, the resulting lambda will be an unholy abomination that kills kittens, too. In all seriousness, this isn't a good place for a lambda because, barring some incredibly awful code, variable assignment isn't possible in a lambda, and variable assignment would make...
This isn't actually as bad as it's made out to be, if your only goal is to read the file once and get that line. ``` max_col2 = -float('inf') min_col3 = float('inf') targetline = None for line in f: idx, col2, col3 = line.split() if col2 > max_col2: targetline = line.strip() max_col2 = col2 ...
29,218,369
I have a huge list of strings that have an arbitrary length. I know want to obfuscate the strings in a way that guarantees certain criteria: * The obfuscated strings have to be unique * There should be no easy way to undo the obfuscation Is there any framework that does this for me?
2015/03/23
[ "https://Stackoverflow.com/questions/29218369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3836561/" ]
While it's possible to do what you're asking with a lambda, the resulting lambda will be an unholy abomination that kills kittens, too. In all seriousness, this isn't a good place for a lambda because, barring some incredibly awful code, variable assignment isn't possible in a lambda, and variable assignment would make...
``` def key(line): x,y = line.split()[1:] return (float(x),-float(y)) with open(fn) as f: max((l for l in f if l.strip()),key=key) ``` Or with lambda, ``` with open(fn) as f: max((l for l in f if l.strip()),key=lambda x: (float(x.split()[1]),-float(x.split()[2]))) ```
29,218,369
I have a huge list of strings that have an arbitrary length. I know want to obfuscate the strings in a way that guarantees certain criteria: * The obfuscated strings have to be unique * There should be no easy way to undo the obfuscation Is there any framework that does this for me?
2015/03/23
[ "https://Stackoverflow.com/questions/29218369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3836561/" ]
``` def key(line): x,y = line.split()[1:] return (float(x),-float(y)) with open(fn) as f: max((l for l in f if l.strip()),key=key) ``` Or with lambda, ``` with open(fn) as f: max((l for l in f if l.strip()),key=lambda x: (float(x.split()[1]),-float(x.split()[2]))) ```
This isn't actually as bad as it's made out to be, if your only goal is to read the file once and get that line. ``` max_col2 = -float('inf') min_col3 = float('inf') targetline = None for line in f: idx, col2, col3 = line.split() if col2 > max_col2: targetline = line.strip() max_col2 = col2 ...
1,202,007
I have some text in Word: [![enter image description here](https://i.stack.imgur.com/3tQgL.png)](https://i.stack.imgur.com/3tQgL.png) And i want some portion to have a bottom border: [![enter image description here](https://i.stack.imgur.com/lvPY7.png)](https://i.stack.imgur.com/lvPY7.png) So performing the obvious...
2017/04/21
[ "https://superuser.com/questions/1202007", "https://superuser.com", "https://superuser.com/users/8169/" ]
Have you tried just using the underline? [![enter image description here](https://i.stack.imgur.com/zFjTS.jpg)](https://i.stack.imgur.com/zFjTS.jpg)
You cannot add a bottom (or any single edge) border to text in Microsoft Word. Instead, use underline. Regular text has only one border. The following macro confirms. ``` MsgBox Selection.Font.Borders.Count ``` As stated below, a Paragraph has four borders (left, right, top, bottom). ``` MsgBox Selection.Sections(...
1,202,007
I have some text in Word: [![enter image description here](https://i.stack.imgur.com/3tQgL.png)](https://i.stack.imgur.com/3tQgL.png) And i want some portion to have a bottom border: [![enter image description here](https://i.stack.imgur.com/lvPY7.png)](https://i.stack.imgur.com/lvPY7.png) So performing the obvious...
2017/04/21
[ "https://superuser.com/questions/1202007", "https://superuser.com", "https://superuser.com/users/8169/" ]
Have you tried just using the underline? [![enter image description here](https://i.stack.imgur.com/zFjTS.jpg)](https://i.stack.imgur.com/zFjTS.jpg)
You can add just a top border or bottom border to a paragraph in MS word; but most annoyingly this feature does not work unless you first select a whole paragraph. then you can select the "top border" or whatever from the menu options. If you've just selected a line of the paragraph, or a word or two, you'll get a full...
1,202,007
I have some text in Word: [![enter image description here](https://i.stack.imgur.com/3tQgL.png)](https://i.stack.imgur.com/3tQgL.png) And i want some portion to have a bottom border: [![enter image description here](https://i.stack.imgur.com/lvPY7.png)](https://i.stack.imgur.com/lvPY7.png) So performing the obvious...
2017/04/21
[ "https://superuser.com/questions/1202007", "https://superuser.com", "https://superuser.com/users/8169/" ]
Have you tried just using the underline? [![enter image description here](https://i.stack.imgur.com/zFjTS.jpg)](https://i.stack.imgur.com/zFjTS.jpg)
If you highlight the word(s) and then go to Font you can change 'underline style',so you can adjust the style and the colour. Simples!
1,202,007
I have some text in Word: [![enter image description here](https://i.stack.imgur.com/3tQgL.png)](https://i.stack.imgur.com/3tQgL.png) And i want some portion to have a bottom border: [![enter image description here](https://i.stack.imgur.com/lvPY7.png)](https://i.stack.imgur.com/lvPY7.png) So performing the obvious...
2017/04/21
[ "https://superuser.com/questions/1202007", "https://superuser.com", "https://superuser.com/users/8169/" ]
You cannot add a bottom (or any single edge) border to text in Microsoft Word. Instead, use underline. Regular text has only one border. The following macro confirms. ``` MsgBox Selection.Font.Borders.Count ``` As stated below, a Paragraph has four borders (left, right, top, bottom). ``` MsgBox Selection.Sections(...
If you highlight the word(s) and then go to Font you can change 'underline style',so you can adjust the style and the colour. Simples!
1,202,007
I have some text in Word: [![enter image description here](https://i.stack.imgur.com/3tQgL.png)](https://i.stack.imgur.com/3tQgL.png) And i want some portion to have a bottom border: [![enter image description here](https://i.stack.imgur.com/lvPY7.png)](https://i.stack.imgur.com/lvPY7.png) So performing the obvious...
2017/04/21
[ "https://superuser.com/questions/1202007", "https://superuser.com", "https://superuser.com/users/8169/" ]
You can add just a top border or bottom border to a paragraph in MS word; but most annoyingly this feature does not work unless you first select a whole paragraph. then you can select the "top border" or whatever from the menu options. If you've just selected a line of the paragraph, or a word or two, you'll get a full...
If you highlight the word(s) and then go to Font you can change 'underline style',so you can adjust the style and the colour. Simples!
235,830
I am trying to switch on a circuit using PIR motion detection. I have a PIR module which outputs 3.3v 1A DC when it detects a motion. I want to switch on a circuit rated at 12v 1A DC. I read some articles that we can use NPN transistor to switch on the load. But I am not able to figure out the value of transistor to ...
2016/05/23
[ "https://electronics.stackexchange.com/questions/235830", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/89588/" ]
[![enter image description here](https://i.stack.imgur.com/NIPT1.png)](https://i.stack.imgur.com/NIPT1.png) The circuits show two different ways of switching the load. The first uses NPN transistors connected as a Darlington pair as a low side switch. This simple circuit has the advantage of high current gain and hig...
You could use two transistor, one npn and one pnp. A circuit like this should work (from the venerable "Horowitz"). [![enter image description here](https://i.stack.imgur.com/73XaW.png)](https://i.stack.imgur.com/73XaW.png) Don't worry about voltages, work also with your 12V and 3.3. I used \$Q\_2=\$2SC4604 and \$Q\...
7,766,964
I'm creating a dynamic dll to hold custom objects created from my database. I can create the field the way I want, however I don't understand how to call the constructor. For a final generated result, I want: ``` public class Countries { public Countries() { } public static readonly ReferenceObject USA = new R...
2011/10/14
[ "https://Stackoverflow.com/questions/7766964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/974907/" ]
Bit of a copy-pasta from my [answer](https://stackoverflow.com/questions/7766068/c-sharp-output-a-defined-class-to-a-dynamic-module-using-reflection-emit/7766889#7766889) to your other (very similar) question, but: ``` AppDomain domain = AppDomain.CurrentDomain; AssemblyName aName = new AssemblyName("DynamicEnums"); ...
When one writes a C# class where fields are initialized like in your example, what the compiler does is generate initialization code in the constructor. This is what I think you should do: use `TypeBuilder.DefineConstructor` to generate a constructor and, inside, create code to set the fields.
37,588,019
i am trying to modify the underline color of a EditText by applying a theme. Style: ``` <style name="MyTheme.EditText" parent="Widget.AppCompat.EditText"> <item name="colorControlActivated">@color/green</item> </style> ``` EditText: ``` <EditText android:id="@+id/editText_amount" android:layout_width=...
2016/06/02
[ "https://Stackoverflow.com/questions/37588019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1589889/" ]
You can use this style as a ``` <EditText style="@style/MyTheme.EditText"/> ``` Or, you can separate your theme for referencing the editTextStyle attribute. ``` <style name="MyEditTextStyle" parent="Widget.AppCompat.EditText"> <item name="colorControlActivated">@color/green</item> </style> <style name="MyT...
You should remove parent attribute. This is caused only API 23 device. ``` <style name="MyTheme.EditText"> <item name="colorControlActivated">@color/green</item> </style> ```
37,588,019
i am trying to modify the underline color of a EditText by applying a theme. Style: ``` <style name="MyTheme.EditText" parent="Widget.AppCompat.EditText"> <item name="colorControlActivated">@color/green</item> </style> ``` EditText: ``` <EditText android:id="@+id/editText_amount" android:layout_width=...
2016/06/02
[ "https://Stackoverflow.com/questions/37588019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1589889/" ]
You should remove parent attribute. This is caused only API 23 device. ``` <style name="MyTheme.EditText"> <item name="colorControlActivated">@color/green</item> </style> ```
I had the same issue. My layout shows a Edittext inside a blue box. There i wanted to have a white text and a white underline and a white selection control. I've set all in my AppTheme. All fine! But i also had a Recyclerview blow the blue box. The RecyclerView has white cards that contains Edittext. White text, unde...
37,588,019
i am trying to modify the underline color of a EditText by applying a theme. Style: ``` <style name="MyTheme.EditText" parent="Widget.AppCompat.EditText"> <item name="colorControlActivated">@color/green</item> </style> ``` EditText: ``` <EditText android:id="@+id/editText_amount" android:layout_width=...
2016/06/02
[ "https://Stackoverflow.com/questions/37588019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1589889/" ]
You can use this style as a ``` <EditText style="@style/MyTheme.EditText"/> ``` Or, you can separate your theme for referencing the editTextStyle attribute. ``` <style name="MyEditTextStyle" parent="Widget.AppCompat.EditText"> <item name="colorControlActivated">@color/green</item> </style> <style name="MyT...
I had the same issue. My layout shows a Edittext inside a blue box. There i wanted to have a white text and a white underline and a white selection control. I've set all in my AppTheme. All fine! But i also had a Recyclerview blow the blue box. The RecyclerView has white cards that contains Edittext. White text, unde...
46,644,122
I'm new to deploy React.js Web Application on Window Server. How can I host react.js web application on IIS? Your advise is most welcomed. Thanks
2017/10/09
[ "https://Stackoverflow.com/questions/46644122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2623711/" ]
This probably has to do with with the hash fragment. Although not Angular 4, in my case (old Angular JS - 1.6 app) I had to change the `$locationProvider` and set the hash to an empty string because the `#` fragment was interfering with the `#id_token` returned by Azure B2C AD. If using Angular JS, make sure you’re u...
Recommend using the angular MSAL library example implementation on GitHub: ``` npm install @azure/msal-angular --save ```
12,025,647
I get a list of objects from database, meanwhile it's two parameters - title and datetime. I've created a listView in main.xml and item.xml for each row in the list. I get all list, place it to ArrayList (Map (String, Object)) and array list has all data when is placed into the adapter. ``` private void getAllNotesL...
2012/08/19
[ "https://Stackoverflow.com/questions/12025647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1559624/" ]
Try ``` <script type="text/javascript"> $(document).ready(function() { $(".modal_link").fancybox({ closeClick : true, // closes fancybox when clicking INSIDE of it afterClose : function(){ // redirect to a new page after closing fancybox window.location = 'http://newsite.com/'; // parent.location = 'http...
``` <script type="text/javascript"> jQuery(document).ready(function(){ if (document.cookie.indexOf('visited=true') == -1) { var fifteenDays = 1000*60*60*24*15; var expires = new Date((new Date()).valueOf() + fifteenDays); document.cookie = "visited=true;expires=" + expires.toUTCString();...
1,516,332
I want to build a list of User-Url How can I do that ?
2009/10/04
[ "https://Stackoverflow.com/questions/1516332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/138627/" ]
By default, IIS creates log files in the system32\LogFiles directory of your Windows folder. Each website has its own folder beginning in “W3SVC” then incrementing sequentially from there (i.e. “W3SVC1”, “W3SVC2” etc). In there you’ll find a series of log files containing details of each request to your website. To an...
if you have any means of identifying your users via web server logs (e.g. username in the cookie) then you can do it by parsing your web logs and getting info from csUriquery and csCookie fields. Alternatively you can rely on external tracking systems (e.g Omniture)
1,516,332
I want to build a list of User-Url How can I do that ?
2009/10/04
[ "https://Stackoverflow.com/questions/1516332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/138627/" ]
By default, IIS creates log files in the system32\LogFiles directory of your Windows folder. Each website has its own folder beginning in “W3SVC” then incrementing sequentially from there (i.e. “W3SVC1”, “W3SVC2” etc). In there you’ll find a series of log files containing details of each request to your website. To an...
I ended up finding the log files in `C:\inetpub\logs\LogFiles`. I used [Log Parser Studio](https://techcommunity.microsoft.com/t5/exchange-team-blog/introducing-log-parser-studio/ba-p/601131) from Microsoft to parse the data. It has lots of documentation on how to query iis log files, including sample querys.
25,393,975
Here is an idiom I find myself writing. ``` def chooseName(nameFinder: NameFinder) = { if(nameFinder.getReliableName.isEmpty) nameFinder.getReliableName else nameFinder.secondBestChoice } ``` In order to avoid calling `getReliableName()` twice on `nameFinder`, I add code that makes my method look less elegant. ...
2014/08/19
[ "https://Stackoverflow.com/questions/25393975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446554/" ]
Here's a way using `Option`. It's not that much prettier, but everything is called only once. This assumes you want a `String` as a result, and don't care if the second string is empty. ``` Some(nameFinder.getReliableName) .filter(_.nonEmpty) .getOrElse(nameFinder.secondBestChoice) ```
Using the following pattern matching may deliver a neater scalish code, ``` def chooseName(nameFinder: NameFinder) = { nameFinder.getReliableName match { case r if r.isEmpty => r case _ => nameFinder.secondBestChoice } } ```
25,393,975
Here is an idiom I find myself writing. ``` def chooseName(nameFinder: NameFinder) = { if(nameFinder.getReliableName.isEmpty) nameFinder.getReliableName else nameFinder.secondBestChoice } ``` In order to avoid calling `getReliableName()` twice on `nameFinder`, I add code that makes my method look less elegant. ...
2014/08/19
[ "https://Stackoverflow.com/questions/25393975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446554/" ]
``` Option(namefinder.getReliableName) // transforms a potential null into None .filter(_.trim.nonEmpty) // "" is None, but also " " .getOrElse(nameFinder.secondBestChoice) ``` Or better, if you can modify `getReliableName` to return an `Option[String]`: ``` def chooseName(nameFinder: NameFinder): String = namef...
Using the following pattern matching may deliver a neater scalish code, ``` def chooseName(nameFinder: NameFinder) = { nameFinder.getReliableName match { case r if r.isEmpty => r case _ => nameFinder.secondBestChoice } } ```
25,393,975
Here is an idiom I find myself writing. ``` def chooseName(nameFinder: NameFinder) = { if(nameFinder.getReliableName.isEmpty) nameFinder.getReliableName else nameFinder.secondBestChoice } ``` In order to avoid calling `getReliableName()` twice on `nameFinder`, I add code that makes my method look less elegant. ...
2014/08/19
[ "https://Stackoverflow.com/questions/25393975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446554/" ]
If you need it more than once: ``` scala> implicit class `nonempty or else`(val s: String) extends AnyVal { | def nonEmptyOrElse(other: => String) = if (s.isEmpty) other else s } defined class nonempty scala> "abc" nonEmptyOrElse "def" res2: String = abc scala> "" nonEmptyOrElse "def" res3: String = def ```
Using the following pattern matching may deliver a neater scalish code, ``` def chooseName(nameFinder: NameFinder) = { nameFinder.getReliableName match { case r if r.isEmpty => r case _ => nameFinder.secondBestChoice } } ```
25,393,975
Here is an idiom I find myself writing. ``` def chooseName(nameFinder: NameFinder) = { if(nameFinder.getReliableName.isEmpty) nameFinder.getReliableName else nameFinder.secondBestChoice } ``` In order to avoid calling `getReliableName()` twice on `nameFinder`, I add code that makes my method look less elegant. ...
2014/08/19
[ "https://Stackoverflow.com/questions/25393975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446554/" ]
There's no need to always call `getSecondBestChoice`, of course. Personally, I find nothing inelegant about the code after changing that - it's clear what it does, has no mutable state. The other answers just seem overcomplicated just to avoid using a `val` ``` def chooseName(nameFinder: NameFinder) = { val reliable...
Using the following pattern matching may deliver a neater scalish code, ``` def chooseName(nameFinder: NameFinder) = { nameFinder.getReliableName match { case r if r.isEmpty => r case _ => nameFinder.secondBestChoice } } ```
65,177,733
I am working in Iron python in pyRevit environment and my code is as follows: ``` element_types = \ DB.FilteredElementCollector(doc)\ .OfCategory(DB.BuiltInCategory.OST_Walls)\ .WhereElementIsElementType()\ # getting family types not elements .ToElements() for ele in element_type...
2020/12/07
[ "https://Stackoverflow.com/questions/65177733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8740571/" ]
This is normally one of the earliest quirks that you come across with RPS - but not to worry, its an easy fix. Try: ``` for ele in element_Types: print Element.Name.__get__(ele) ```
Please try this code ``` from rpw import db collector = db.Collector(of_class='WallType') element_types = collector.get_elements() for ele in element_types: print(ele.name) ```
30,748,683
I am applying css cursor:copy for a given div. In case of FF and Chrome browser it's working fine, but when I am opening it in IE(version 9+) its not working . Please suggest Below is code - ``` <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> .editable{ color: #428...
2015/06/10
[ "https://Stackoverflow.com/questions/30748683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859100/" ]
Yes, `cursor: copy` is not supported until IE 10. Reference: <https://developer.mozilla.org/en-US/docs/Web/CSS/cursor>
You can also use an workaround using a cursor png image and change your css like below ``` .editable{ color: #428bca; cursor: url(cursor.png), auto; } ```
30,748,683
I am applying css cursor:copy for a given div. In case of FF and Chrome browser it's working fine, but when I am opening it in IE(version 9+) its not working . Please suggest Below is code - ``` <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> .editable{ color: #428...
2015/06/10
[ "https://Stackoverflow.com/questions/30748683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859100/" ]
Yes, `cursor: copy` is not supported until IE 10. Reference: <https://developer.mozilla.org/en-US/docs/Web/CSS/cursor>
well after lots of research and workaround finally I have implemented a workaround.By default I make contenteditable = false and at run time on click I am making it true.Which full fill my requirement.
30,748,683
I am applying css cursor:copy for a given div. In case of FF and Chrome browser it's working fine, but when I am opening it in IE(version 9+) its not working . Please suggest Below is code - ``` <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> .editable{ color: #428...
2015/06/10
[ "https://Stackoverflow.com/questions/30748683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859100/" ]
well after lots of research and workaround finally I have implemented a workaround.By default I make contenteditable = false and at run time on click I am making it true.Which full fill my requirement.
You can also use an workaround using a cursor png image and change your css like below ``` .editable{ color: #428bca; cursor: url(cursor.png), auto; } ```
18,353
Who was the father of Mom's children? We know the answer to one of these, but have the others been given a father in canon?
2012/06/14
[ "https://scifi.stackexchange.com/questions/18353", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/51/" ]
Since [Dr. Ogden Wernstrom](http://theinfosphere.org/Dr._Ogden_Wernstrom) is Mom's ex-husband, and they appear to have been together around the time when Walt and Larry could have been conceived (i.e. [prior to when Dr. Farnsworth fathered Igner](http://theinfosphere.org/Mom%27s_sons#Age)), he is the most likely father...
mom dumped the professor for her ex husband worndstrom which would presumably be shortly after Igner would have been conceived. But the professor and mom seemed to have been "shacking" for quite some time so I would imagine that her and Worndstrom were still seeing each other
18,353
Who was the father of Mom's children? We know the answer to one of these, but have the others been given a father in canon?
2012/06/14
[ "https://scifi.stackexchange.com/questions/18353", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/51/" ]
Since [Dr. Ogden Wernstrom](http://theinfosphere.org/Dr._Ogden_Wernstrom) is Mom's ex-husband, and they appear to have been together around the time when Walt and Larry could have been conceived (i.e. [prior to when Dr. Farnsworth fathered Igner](http://theinfosphere.org/Mom%27s_sons#Age)), he is the most likely father...
Walt and Larry were probably fathered by Wurnsturm, who is Mom's on again off again ex-husband. Walt probably has Mom's characteristics (black hair, heart shaped face) while Larry looks like his father (brown hair, slender face). SPOILER ALERT: DO NOT READ FURTHER IF YOU HAVE NOT WATCHED 'BENDER'S GAME'. Ignor's father...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
The addons/extensions are stored under Linux in: `$HOME/.mozilla/firefox/profile.default/extensions`. The `profile` part of the path will be different.
You will want to find your profile folder ([instructions](http://support.mozilla.com/en-US/kb/Profiles)) and then find the folder called "extensions". In there, there will be a folder for each add-on you have installed. Note that each time an add-on is updated, your changes will be overwritten.
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
It is possible to edit the files. Its simple to find the folder path. * Open the Help menu from the browser top menu * select Troubleshooting Information option. The Troubleshooting Information tab will open. * Under the Application Basics section, click on Show Folder. A window with your profile files will open. * O...
Firefox extensions reside on : ``` %USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles\{profile}.default\extensions ``` Each extension will have its ID as a filename along with a `.xpi` extension. To find out which ID belongs to an installed extension name visit [`about:support`](https://www.wikiwand.com/en/Abou...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
The addons/extensions are stored under Linux in: `$HOME/.mozilla/firefox/profile.default/extensions`. The `profile` part of the path will be different.
Firefox extensions reside on : ``` %USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles\{profile}.default\extensions ``` Each extension will have its ID as a filename along with a `.xpi` extension. To find out which ID belongs to an installed extension name visit [`about:support`](https://www.wikiwand.com/en/Abou...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
The addons/extensions are stored under Linux in: `$HOME/.mozilla/firefox/profile.default/extensions`. The `profile` part of the path will be different.
It is possible to modify them if you find the path where it is installed. You would have to restart Firefox everytime you make a change to these source files though. The uninstall function cleanly deletes the addon from your extensions directory and you can view and delete preferences you have set for the extension in ...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
For me (Windows) they are now stored in `C:\Users\YOUR_USER\AppData\Roaming\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\extensions\` And there you copy your add-on with the id found in install.rdf inside of your .xpi zip file as the name. Such as: `jid0-UNAwlo81XedDjh0Suj64AGkhDaj@jetpack.xpi` But on Firefox restar...
You will want to find your profile folder ([instructions](http://support.mozilla.com/en-US/kb/Profiles)) and then find the folder called "extensions". In there, there will be a folder for each add-on you have installed. Note that each time an add-on is updated, your changes will be overwritten.
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
It is possible to edit the files. Its simple to find the folder path. * Open the Help menu from the browser top menu * select Troubleshooting Information option. The Troubleshooting Information tab will open. * Under the Application Basics section, click on Show Folder. A window with your profile files will open. * O...
It is possible to modify them if you find the path where it is installed. You would have to restart Firefox everytime you make a change to these source files though. The uninstall function cleanly deletes the addon from your extensions directory and you can view and delete preferences you have set for the extension in ...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
The addons/extensions are stored under Linux in: `$HOME/.mozilla/firefox/profile.default/extensions`. The `profile` part of the path will be different.
For me (Windows) they are now stored in `C:\Users\YOUR_USER\AppData\Roaming\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\extensions\` And there you copy your add-on with the id found in install.rdf inside of your .xpi zip file as the name. Such as: `jid0-UNAwlo81XedDjh0Suj64AGkhDaj@jetpack.xpi` But on Firefox restar...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
For me (Windows) they are now stored in `C:\Users\YOUR_USER\AppData\Roaming\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\extensions\` And there you copy your add-on with the id found in install.rdf inside of your .xpi zip file as the name. Such as: `jid0-UNAwlo81XedDjh0Suj64AGkhDaj@jetpack.xpi` But on Firefox restar...
Firefox extensions reside on : ``` %USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles\{profile}.default\extensions ``` Each extension will have its ID as a filename along with a `.xpi` extension. To find out which ID belongs to an installed extension name visit [`about:support`](https://www.wikiwand.com/en/Abou...
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
It is possible to modify them if you find the path where it is installed. You would have to restart Firefox everytime you make a change to these source files though. The uninstall function cleanly deletes the addon from your extensions directory and you can view and delete preferences you have set for the extension in ...
You will want to find your profile folder ([instructions](http://support.mozilla.com/en-US/kb/Profiles)) and then find the folder called "extensions". In there, there will be a folder for each add-on you have installed. Note that each time an add-on is updated, your changes will be overwritten.
1,054,570
Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
2009/06/28
[ "https://Stackoverflow.com/questions/1054570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/69310/" ]
It is possible to edit the files. Its simple to find the folder path. * Open the Help menu from the browser top menu * select Troubleshooting Information option. The Troubleshooting Information tab will open. * Under the Application Basics section, click on Show Folder. A window with your profile files will open. * O...
For me (Windows) they are now stored in `C:\Users\YOUR_USER\AppData\Roaming\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\extensions\` And there you copy your add-on with the id found in install.rdf inside of your .xpi zip file as the name. Such as: `jid0-UNAwlo81XedDjh0Suj64AGkhDaj@jetpack.xpi` But on Firefox restar...
33,613,041
I'm trying to set active link when user clik on it but i cant figureout how to remove last clicked. This is my fiddle: <http://jsfiddle.net/9ff79/222/> ``` $(function() { $( 'nav ul li a' ).on( 'click', function() { $(this).parent().find( 'nav ul li a .active' ).removeClass('active'); $(this).addCl...
2015/11/09
[ "https://Stackoverflow.com/questions/33613041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4511325/" ]
Your DOM traversal from the clicked `a` element isn't correct. Use `closest()` then `find()` to get the current `.active` element: ``` $('nav ul li a').on('click', function () { $(this).closest('nav ul').find('a.active').removeClass('active'); $(this).addClass('active'); }); ``` [**Updated fiddle**](http://j...
Unless you have more nav-elements you a and .active. That is implying you have a child element with the class active. Try this: ``` $( 'nav ul li a.active' ).removeClass('active'); ```
33,613,041
I'm trying to set active link when user clik on it but i cant figureout how to remove last clicked. This is my fiddle: <http://jsfiddle.net/9ff79/222/> ``` $(function() { $( 'nav ul li a' ).on( 'click', function() { $(this).parent().find( 'nav ul li a .active' ).removeClass('active'); $(this).addCl...
2015/11/09
[ "https://Stackoverflow.com/questions/33613041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4511325/" ]
This is how I got there: ``` $(function() { $('nav ul li a').on('click', function() { $('nav ul li a').removeClass('active'); // remove active class from ALL href's $(this).addClass('active'); // add active class for the element clicked }); }); ``` <http://jsfiddle.net/lharby/9ff7...
Unless you have more nav-elements you a and .active. That is implying you have a child element with the class active. Try this: ``` $( 'nav ul li a.active' ).removeClass('active'); ```
28,036,994
I want to know why the following line is not behaving correctly. as I use the IIF, although when the condition is True, the function returns getMessage ```vb Return CType(IIf(Object.Equals(_newValue, _oldValue), msg, GetMessage(msg)), PooMessage) ``` But the following lines behaves just fine: ```vb If...
2015/01/20
[ "https://Stackoverflow.com/questions/28036994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1526433/" ]
You should change from IIf() to [If()](http://msdn.microsoft.com/en-us/library/Bb513985(v=vs.120).aspx), as the latter uses short-circuiting while the former does not. With the IIf() version, GetMessage() is being called even when the boolean evaluates to true, which might be causing side effects. When using If(), only...
To clairify @Idle\_Mind reason it is as follows... ``` r=IIF(x,y,z) ``` is a **function call**. In order to call it all the parameters (x, y AND z) must be evaluated BEFORE it enters the function body for evaluation. ``` r=IF(x,y,z) ``` is a **Compiler directive**. the components in your code that create "y" an...
131,786
The material component of the *[summon lesser demons](https://www.dndbeyond.com/spells/summon-lesser-demons)* spell is > > a vial of blood from a humanoid killed within the past 24 hours > > > If a creature is killed and brought back to life, could their blood (if collected before their resurrection) still be use...
2018/09/16
[ "https://rpg.stackexchange.com/questions/131786", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/35173/" ]
Yes === Summon Lesser Demon: > > a vial of blood from a humanoid killed within the past 24 hours > > > It does not say it has to be dead at the time of casting. It does not even say it has to be dead at the time of collection, but I *think* that was the intent. Balance Considerations ====================== Th...
### Yes It doesn't require the blood to be of a humanoid who is *currently dead*, only one who was *killed in the past 24 hours*.
131,786
The material component of the *[summon lesser demons](https://www.dndbeyond.com/spells/summon-lesser-demons)* spell is > > a vial of blood from a humanoid killed within the past 24 hours > > > If a creature is killed and brought back to life, could their blood (if collected before their resurrection) still be use...
2018/09/16
[ "https://rpg.stackexchange.com/questions/131786", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/35173/" ]
By the letter of the rules, it would work. ========================================== The material component is: > > a vial of blood from a humanoid killed within the past 24 hours > > > The blood has to meet the condition of being from a humanoid who was killed within the past 24 hours, regardless of the curren...
### Yes It doesn't require the blood to be of a humanoid who is *currently dead*, only one who was *killed in the past 24 hours*.
131,786
The material component of the *[summon lesser demons](https://www.dndbeyond.com/spells/summon-lesser-demons)* spell is > > a vial of blood from a humanoid killed within the past 24 hours > > > If a creature is killed and brought back to life, could their blood (if collected before their resurrection) still be use...
2018/09/16
[ "https://rpg.stackexchange.com/questions/131786", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/35173/" ]
### Yes It doesn't require the blood to be of a humanoid who is *currently dead*, only one who was *killed in the past 24 hours*.
Someone asked a question about this on Twitter, and [Jeremy Crawford responded](https://twitter.com/JeremyECrawford/status/1060593419230294018): > > *The spell Summon Demon's material component is blood from a recently killed [humanoid]. If that [humanoid] is revived would the spell end, a circle of the blood no long...
131,786
The material component of the *[summon lesser demons](https://www.dndbeyond.com/spells/summon-lesser-demons)* spell is > > a vial of blood from a humanoid killed within the past 24 hours > > > If a creature is killed and brought back to life, could their blood (if collected before their resurrection) still be use...
2018/09/16
[ "https://rpg.stackexchange.com/questions/131786", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/35173/" ]
Yes === Summon Lesser Demon: > > a vial of blood from a humanoid killed within the past 24 hours > > > It does not say it has to be dead at the time of casting. It does not even say it has to be dead at the time of collection, but I *think* that was the intent. Balance Considerations ====================== Th...
Someone asked a question about this on Twitter, and [Jeremy Crawford responded](https://twitter.com/JeremyECrawford/status/1060593419230294018): > > *The spell Summon Demon's material component is blood from a recently killed [humanoid]. If that [humanoid] is revived would the spell end, a circle of the blood no long...
131,786
The material component of the *[summon lesser demons](https://www.dndbeyond.com/spells/summon-lesser-demons)* spell is > > a vial of blood from a humanoid killed within the past 24 hours > > > If a creature is killed and brought back to life, could their blood (if collected before their resurrection) still be use...
2018/09/16
[ "https://rpg.stackexchange.com/questions/131786", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/35173/" ]
By the letter of the rules, it would work. ========================================== The material component is: > > a vial of blood from a humanoid killed within the past 24 hours > > > The blood has to meet the condition of being from a humanoid who was killed within the past 24 hours, regardless of the curren...
Someone asked a question about this on Twitter, and [Jeremy Crawford responded](https://twitter.com/JeremyECrawford/status/1060593419230294018): > > *The spell Summon Demon's material component is blood from a recently killed [humanoid]. If that [humanoid] is revived would the spell end, a circle of the blood no long...
19,853,552
So after I learnt C completely I'll make a program which save the password of the user in their computer(local), but saving password in local is dangerous since the people who know where is the password saved can get the password easily I am tying to code a encoder that replace every letter with a specific letter. (Exa...
2013/11/08
[ "https://Stackoverflow.com/questions/19853552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2668370/" ]
Your approach has two big issues. 1. donot use 'void' use 'int' as 'encode' return type. Pass all the values entered by the user as characters using a for loop and save the returning 'int' values in an 'int' array. After that you can display that array to the user that the password has been encoded or encrypted. 2. yo...
Your `encode` method has no effect at all. Passed by value. That never affects the variable input. It'll display the input that you are given. You have to send the Address of the character variable. Read [Pass by reference](http://clc-wiki.net/wiki/C_language%3aTerms%3aPass_by_reference)
19,853,552
So after I learnt C completely I'll make a program which save the password of the user in their computer(local), but saving password in local is dangerous since the people who know where is the password saved can get the password easily I am tying to code a encoder that replace every letter with a specific letter. (Exa...
2013/11/08
[ "https://Stackoverflow.com/questions/19853552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2668370/" ]
You need to scan in an array of characters (using %s and a char array), and then loop through replacing charcters according to your mappings. Like this: ``` #include <stdio.h> /* Note we pass a pointer here, which gives access to the array... */ void encode(char *input) { int i; /* Loop through until we hit...
Your `encode` method has no effect at all. Passed by value. That never affects the variable input. It'll display the input that you are given. You have to send the Address of the character variable. Read [Pass by reference](http://clc-wiki.net/wiki/C_language%3aTerms%3aPass_by_reference)
7,718,757
Is it possible to remove the annoying black border that IE 9 puts around submit buttons? This only occurs when the form is in focus. IE 9: [IE 9 http://olokoo.com/sandbox/ie.jpg](http://olokoo.com/sandbox/ie.jpg) FireFox [Firefox http://olokoo.com/sandbox/firefox.jpg](http://olokoo.com/sandbox/firefox.jpg)
2011/10/10
[ "https://Stackoverflow.com/questions/7718757", "https://Stackoverflow.com", "https://Stackoverflow.com/users/974584/" ]
You can use jQuery if you want, but adding the following to your CSS should fix it ``` input[type=submit] { border:none !important; } ``` **//edit per your comment** Depending on if you want to use HTML5 or not, you need to make sure you've set up the DOCTYPE and meta tags correctly: *HTML5 setup:* ``` <!doctype...
If you want to remove the border from the buttons with jQuery, something like this should work: ``` $(":button").css({border-width:"0px"}); ```
15,078
I've got page with metabox called "something". It can have two values "value" and "value2". I'm using a shortcode at this page and want it to display something's value. The problem is I don't know how to access global variable in a shortcode? Example, I have this in page.php: ``` if($something == "value") { ...
2011/04/18
[ "https://wordpress.stackexchange.com/questions/15078", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/1869/" ]
Meta data is save in postmeta table and to get them you can use `get_post_meta($post_id,'meta_key_name',true);` so in your shortcode function globilaize $post object and get you value like that ``` if($something == "value") { global $post; $one = get_post_meta($post->ID,'value_name'true); $two = ge...
Unless you're firing those echos from within a function through page.php, functions wont get anything from those globals because they are set up after functions.php runs. Try this: in functions.php: ``` function show_me_that_stuff() { global $one, $two; echo $one; echo $two; } ``` then in page.php: ``...
15,078
I've got page with metabox called "something". It can have two values "value" and "value2". I'm using a shortcode at this page and want it to display something's value. The problem is I don't know how to access global variable in a shortcode? Example, I have this in page.php: ``` if($something == "value") { ...
2011/04/18
[ "https://wordpress.stackexchange.com/questions/15078", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/1869/" ]
Unless you're firing those echos from within a function through page.php, functions wont get anything from those globals because they are set up after functions.php runs. Try this: in functions.php: ``` function show_me_that_stuff() { global $one, $two; echo $one; echo $two; } ``` then in page.php: ``...
Post specific values like you're demonstrated should be post\_meta as demonstrated by Bainternet. No question. However, if it isn't page specific and is truly global, you also have the wp\_options table with a specific API for dealing with that.
15,078
I've got page with metabox called "something". It can have two values "value" and "value2". I'm using a shortcode at this page and want it to display something's value. The problem is I don't know how to access global variable in a shortcode? Example, I have this in page.php: ``` if($something == "value") { ...
2011/04/18
[ "https://wordpress.stackexchange.com/questions/15078", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/1869/" ]
Meta data is save in postmeta table and to get them you can use `get_post_meta($post_id,'meta_key_name',true);` so in your shortcode function globilaize $post object and get you value like that ``` if($something == "value") { global $post; $one = get_post_meta($post->ID,'value_name'true); $two = ge...
Post specific values like you're demonstrated should be post\_meta as demonstrated by Bainternet. No question. However, if it isn't page specific and is truly global, you also have the wp\_options table with a specific API for dealing with that.
22,329,846
I use signals for things that should always be done when an object is deleted, saved, updated, etc. However, there are times when I don't want to call my save signals, so I use `Model.objects.filter(id=instance.id).update(field=value)` instead of the instance's save method: `instance.save()` In the case of deleting...
2014/03/11
[ "https://Stackoverflow.com/questions/22329846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580632/" ]
There is **unsafe** and **undocumented** way which probably can change between versions and also **can lead to unexpected consequences which will be hard to debug**. This is a hack that probably you don't want to use but.... it's possible. ``` qs = Model.objects.filter(id=instance.id) qs.order_by().select_related(Non...
You can do this. ``` Model.objects.filter(id=instance.id).delete() ```
22,329,846
I use signals for things that should always be done when an object is deleted, saved, updated, etc. However, there are times when I don't want to call my save signals, so I use `Model.objects.filter(id=instance.id).update(field=value)` instead of the instance's save method: `instance.save()` In the case of deleting...
2014/03/11
[ "https://Stackoverflow.com/questions/22329846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580632/" ]
In the place where you don't want signals to be called, you have to disconnect them, run you code and then reconnect them again. You can take a look on how [mute\_signal](https://github.com/FactoryBoy/factory_boy/blob/master/factory/django.py#L254) decorator is implemented in FactoryBoy or just use (but it's basically ...
You can do this. ``` Model.objects.filter(id=instance.id).delete() ```
22,329,846
I use signals for things that should always be done when an object is deleted, saved, updated, etc. However, there are times when I don't want to call my save signals, so I use `Model.objects.filter(id=instance.id).update(field=value)` instead of the instance's save method: `instance.save()` In the case of deleting...
2014/03/11
[ "https://Stackoverflow.com/questions/22329846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580632/" ]
There is **unsafe** and **undocumented** way which probably can change between versions and also **can lead to unexpected consequences which will be hard to debug**. This is a hack that probably you don't want to use but.... it's possible. ``` qs = Model.objects.filter(id=instance.id) qs.order_by().select_related(Non...
In the place where you don't want signals to be called, you have to disconnect them, run you code and then reconnect them again. You can take a look on how [mute\_signal](https://github.com/FactoryBoy/factory_boy/blob/master/factory/django.py#L254) decorator is implemented in FactoryBoy or just use (but it's basically ...
22,329,846
I use signals for things that should always be done when an object is deleted, saved, updated, etc. However, there are times when I don't want to call my save signals, so I use `Model.objects.filter(id=instance.id).update(field=value)` instead of the instance's save method: `instance.save()` In the case of deleting...
2014/03/11
[ "https://Stackoverflow.com/questions/22329846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580632/" ]
There is **unsafe** and **undocumented** way which probably can change between versions and also **can lead to unexpected consequences which will be hard to debug**. This is a hack that probably you don't want to use but.... it's possible. ``` qs = Model.objects.filter(id=instance.id) qs.order_by().select_related(Non...
Try using raw SQL and don't resist it. It is always a powerful ultimate weapon you could use. ```py from django.db import connection with connection.cursor() as cursor: cursor.execute(f'DELETE from tbl_model where id={instance.id}') ```
22,329,846
I use signals for things that should always be done when an object is deleted, saved, updated, etc. However, there are times when I don't want to call my save signals, so I use `Model.objects.filter(id=instance.id).update(field=value)` instead of the instance's save method: `instance.save()` In the case of deleting...
2014/03/11
[ "https://Stackoverflow.com/questions/22329846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580632/" ]
In the place where you don't want signals to be called, you have to disconnect them, run you code and then reconnect them again. You can take a look on how [mute\_signal](https://github.com/FactoryBoy/factory_boy/blob/master/factory/django.py#L254) decorator is implemented in FactoryBoy or just use (but it's basically ...
Try using raw SQL and don't resist it. It is always a powerful ultimate weapon you could use. ```py from django.db import connection with connection.cursor() as cursor: cursor.execute(f'DELETE from tbl_model where id={instance.id}') ```
175,905
EViews has an add-in which apparently outputs latex, but I can't install it on my faculty computers. I can save the output as a csv. Is there any way of me creating nicer looking tables in my document without having to input the numbers in manually?
2014/05/07
[ "https://tex.stackexchange.com/questions/175905", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/50829/" ]
I'd take [`pgfplotstable`](http://pgfplots.sourceforge.net/) to typeset csvdata as a table. It is a highly configurable package. I cannot compare it to [`datatool`](http://www.ctan.org/tex-archive/macros/latex/contrib/datatool) or [`csvsimple`](http://www.ctan.org/tex-archive/macros/latex/contrib/csvsimple) (see commen...
On Windows, I usually use [Excel2LaTeX](https://launchpad.net/excel2latex), on OSx I use [csv2LaTeX](http://www.ctan.org/pkg/csv2latex). The latter integrates really nicely to `TeXShop` via a Perl plugin that allows on-the-fly copy pasting of table code to latex code. The former integrates into `MS Excel` via VBA. It t...
175,905
EViews has an add-in which apparently outputs latex, but I can't install it on my faculty computers. I can save the output as a csv. Is there any way of me creating nicer looking tables in my document without having to input the numbers in manually?
2014/05/07
[ "https://tex.stackexchange.com/questions/175905", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/50829/" ]
This is a CSV example using the `csvsimple` package for reading the data and the `siunitx` package for formatting the numbers. I'm taking the example data from @quinmars who showed `pgfplotstable`. `datatool` would be the third candidate. ``` \documentclass{article} \usepackage{filecontents} \usepackage{csvsimple} \u...
On Windows, I usually use [Excel2LaTeX](https://launchpad.net/excel2latex), on OSx I use [csv2LaTeX](http://www.ctan.org/pkg/csv2latex). The latter integrates really nicely to `TeXShop` via a Perl plugin that allows on-the-fly copy pasting of table code to latex code. The former integrates into `MS Excel` via VBA. It t...
2,350,370
I'm using `$lang=$_SERVER['HTTP_ACCEPT_LANGUAGE'];` to detect the language of the browser. At first, I thought something was wrong with my code. But then I tried [this demo](http://urbanoalvarez.es/lang/test.php), and even if I had my 'display preferred language' as Spanish (es), it displayed the content in English (en...
2010/02/28
[ "https://Stackoverflow.com/questions/2350370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/122536/" ]
If the browser doesn't send an `Accept-Language:` request header, the PHP default is `en`. Fix for Firefox: Type `about:config` in the address bar. Then change the following entries: ``` general.useragent.locale intl.accept_languages ```
Try the [Quick Locale Switcher](https://addons.mozilla.org/en-US/firefox/addon/1333) Firefox add-on to see if it helps you change your locale in your test environment.
3,879,332
I'm planning on building two applications using Zend Framework that are very similar but serve two different purposes that can't be part of the same application or be combined into one. However, modules are something I'm considering. The issue I'm running into is if a user registers for the first application I want th...
2010/10/07
[ "https://Stackoverflow.com/questions/3879332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/210698/" ]
Why have multiple databases? Use just one database and prefix the tables that differ for the two applications. For example: `users` `app1_otherdata` `app2_otherdata` This way users' data will be easily accessible to both apps and you could still have a relatively independent database structures.
Question 2 is something you really should discuss with your client. Once you know your clients' preference you could eg. suggest using a single sign-on approach for the sites, but I would certainly keep both DBs apart. So either your 2 DB (with separate user DB per app) or your 3 DB solution (with separate user DB/si...
36,325,894
Have a stored procedure which process records from certain tables. To store some result generated by join operation there is a temporary table. Table A ``` +----+------+--------+ | id | name | number | +----+------+--------+ | 1 | John | 123 | | 2 | Tim | 567 | | 3 | Bill | 789 | | 4 | Jim | 345 | ...
2016/03/31
[ "https://Stackoverflow.com/questions/36325894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8694610/" ]
Because you are specifying different [`names`](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html#name--) of `RequestMapping` and not [`values`](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.h...
Try This: ``` @Controller public class ProgramController { @RequestMapping(value = "/editProgram", method = RequestMethod.GET) public String editProgram(HttpServletRequest request, HttpServletResponse response) { if (request.getSession().getAttribute(Constants.LOGGED_IN_USER) != null) { ProgramEntity pro...
59,562,969
I am creating a React Application. I ran the following command in cmd: ``` npx create-react-app . ``` Thereafter I tried to start the server using `npm start` as instructed in the tutorial: <https://github.com/facebook/create-react-app>. However, I keep getting the following error: `Error: spawn cmd ENOENT`. The lo...
2020/01/02
[ "https://Stackoverflow.com/questions/59562969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9116114/" ]
I resolved the issue by following these steps if anyone needs it in future: `Goto > Control Panel\System and Security\System\Advance system setting\Enviroment variable and set system variables path C:\Windows\System32\ variable and restart your System.` This comment really helped me out: <https://github.com/facebook/...
You should install `create-react-app` globally with `-g`. ``` npm install -g create-react-app ``` Alternatively, you could skip the installation of `create-react-app`. For that you need firstly to update to a newer version of nodejs and npm and then you can run. ``` npx create-react-app yourappname ```
30,938,379
I am using SSIS to insert data from flat file to database. I have created Data Flow Task for that. I am using Flat File as Source and ADO NET Destination to insert data. Below is how my setting looks like for Flat File Source. ![Flat File Settings](https://i.stack.imgur.com/SG118.png) Below is how my "Columns" tab ...
2015/06/19
[ "https://Stackoverflow.com/questions/30938379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1619719/" ]
So I found a solution for this problem. Thanks to **LukeBI** answer [here](https://social.technet.microsoft.com/Forums/fr-FR/4c90aa26-a897-4c34-850c-279801c54872/ssis-none-text-qualifier-results-in-text-file-containing-x003cnonex003e?forum=sqlintegrationservices) Create a string variable called **TextQualifier** and a...
In the flat file source, click "Columns". Make sure that when you preview the data there are no quotes in the preview. Otherwise you may have to look back at your file and make sure that BOTH the text qualifier and delimiter are correct. If this does not work, then please take a screenshot of the "Columns" screen as w...
30,938,379
I am using SSIS to insert data from flat file to database. I have created Data Flow Task for that. I am using Flat File as Source and ADO NET Destination to insert data. Below is how my setting looks like for Flat File Source. ![Flat File Settings](https://i.stack.imgur.com/SG118.png) Below is how my "Columns" tab ...
2015/06/19
[ "https://Stackoverflow.com/questions/30938379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1619719/" ]
So I found a solution for this problem. Thanks to **LukeBI** answer [here](https://social.technet.microsoft.com/Forums/fr-FR/4c90aa26-a897-4c34-850c-279801c54872/ssis-none-text-qualifier-results-in-text-file-containing-x003cnonex003e?forum=sqlintegrationservices) Create a string variable called **TextQualifier** and a...
Within your **flat file connection Manager**, within the "Advanced" option, you should be given a view of different parameters for each field. You will see for each field it will have a Name, ColumnDelimiter, a bunch of faded out fields and the DataType and a choice if it is text qualified or not. In there, you should...
332,112
Can the following verbs be used in this passive-voice structure? The meaning I want this sentence to have is *Onions were cooked/fried/roasted/boiled for me*. 1. I was cooked/fried/roasted/boiled onions.
2023/02/01
[ "https://ell.stackexchange.com/questions/332112", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/167809/" ]
All of those sound odd to me, with the possible exception of "cooked". They're all acceptable in the active ditransitive construction: > > He cooked/fried/roasted/boiled me some onions. > > > but not in the passive. I think it is partly because of the lack of determiner. In my example above, I wrote "some onion...
Hi its tricky to understand what you need to know but all of these verbs can be used in passive form. You say 'I was'...Do you mean to say, 'I was cooking onions? ' ACTIVE The onions were being cooked or even, the onions were cooked. (PASSIVE) The onions were cooked/fried/roasted/boiled...is correct in passive tense t...
56,899,750
I have classes in my .net core Web API (which are used in multiple actions). I have typescript interfaces defined in my angular frontend application (of these classes). What is the preferred way of adhering to DRY principles and "keeping these together" so I can share the models between multiple WebAPI/frotends?
2019/07/05
[ "https://Stackoverflow.com/questions/56899750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1019908/" ]
I'm not aware of a good way to keep the mixed code together. I would go with something like: * Create a Nuget package for the c# classes * Create an NPM package for the typescript interfaces * Have a strict versioning policy to keep the two packages in sync This way, you can utilize the native ecosystems for both you...
you can create end points for this api and backend like with endpoints, my recommendation, other framework, lang, or lang, in angular you can create a service for this end points.
10,882,723
My question has to do with the role and purpose of a XACML context handler. If I understand the OASIS XACML3.0 spec properly, the PEP intercepts a request for some resource or access from a client app which then uses a context handler to create a native XACML context object suitable for the PDP to process. In my design...
2012/06/04
[ "https://Stackoverflow.com/questions/10882723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746816/" ]
I consider the context handler to be part of the PDP. The PEP intercepts a SOAP call, extracts parameter values, composes a standardized request using those values, and sends the request to the PDP. The PDP extracts the parameter values from that request, looks up additional values by querying some PIPs, matches the re...
Yes. I also hope that context handler to be part of the PDP. PEP can be with your application where it intercepts your requests and ask authorization decision from the PDP. You can find open source XACML 3.0. implementation called "Balana" (improvement of sun-xacml) from [here](https://svn.wso2.org/repos/wso2/trunk/com...
10,882,723
My question has to do with the role and purpose of a XACML context handler. If I understand the OASIS XACML3.0 spec properly, the PEP intercepts a request for some resource or access from a client app which then uses a context handler to create a native XACML context object suitable for the PDP to process. In my design...
2012/06/04
[ "https://Stackoverflow.com/questions/10882723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746816/" ]
In a complete XACML 2.0/3.0 implementation, the real central node or bottle-neck of all the authorization process is the Context Handler component, neither the PEP nor the PDP. The suggested dataf-flow in the [official documentation](http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html#_Toc325047089) cle...
I consider the context handler to be part of the PDP. The PEP intercepts a SOAP call, extracts parameter values, composes a standardized request using those values, and sends the request to the PDP. The PDP extracts the parameter values from that request, looks up additional values by querying some PIPs, matches the re...
10,882,723
My question has to do with the role and purpose of a XACML context handler. If I understand the OASIS XACML3.0 spec properly, the PEP intercepts a request for some resource or access from a client app which then uses a context handler to create a native XACML context object suitable for the PDP to process. In my design...
2012/06/04
[ "https://Stackoverflow.com/questions/10882723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746816/" ]
In a complete XACML 2.0/3.0 implementation, the real central node or bottle-neck of all the authorization process is the Context Handler component, neither the PEP nor the PDP. The suggested dataf-flow in the [official documentation](http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html#_Toc325047089) cle...
Yes. I also hope that context handler to be part of the PDP. PEP can be with your application where it intercepts your requests and ask authorization decision from the PDP. You can find open source XACML 3.0. implementation called "Balana" (improvement of sun-xacml) from [here](https://svn.wso2.org/repos/wso2/trunk/com...
12,048,965
I have an array that looks like this ``` array( 1 => array( 'id' => 1, 'name' => 'first', 'parent' => null ), 2 => array( 'id' => 2, 'name' => 'second', 'parent' => null ), 3 => array( 'id' => 3, 'name' => 'third', ...
2012/08/21
[ "https://Stackoverflow.com/questions/12048965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383759/" ]
You had the right idea with the foreach loop. What you want to do, however, requires the 'magic' of references. ``` foreach($oldArray as $key => &$item) { if($item["parent"] == null) $newArray[$key] = &$item; else $oldArray[$item["parent"]]["children"][$key] = &$item; } unset($item); ``` This will output fo...
You could convert them from arrays into objects. This would be easy enough to do, you pretty much have an object strucutre there already. The difference would be that you could set up a `__construct()` function within each object that is passed it's `ID` number as a param and inside the `__construct()` function you lo...
7,271
In Hinduism, there is a concept of [past life karma](http://www.himalayanacademy.com/resources/pamphlets/KarmaReincarnation.html). Meaning if someone is born into an unfortunate situation (in a slum, for example) it is because they are paying for sin from a past life. Does Christianity or the Bible give any insight ...
2012/04/22
[ "https://christianity.stackexchange.com/questions/7271", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/1400/" ]
So, if I understand you correctly, your question could be alternately summarized as "Does the Bible offer explanations for why certain things happen to certain people?", which is related to (but different from) the age-old question "Why does God let bad things happen to good people?" To my knowledge, there isn't much ...
Yes, but it's completely unlike "karma." Jewish culture had a sort of assumption that misfortune was a punishment for sin. This came from the obvious explicit warnings of God that "break covenant => misfortune." However, those warnings applied to the covenant people as a whole, not the individual. Apparently somewhere...
7,271
In Hinduism, there is a concept of [past life karma](http://www.himalayanacademy.com/resources/pamphlets/KarmaReincarnation.html). Meaning if someone is born into an unfortunate situation (in a slum, for example) it is because they are paying for sin from a past life. Does Christianity or the Bible give any insight ...
2012/04/22
[ "https://christianity.stackexchange.com/questions/7271", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/1400/" ]
It might be nice to believe that anyone who suffers must deserve it because of some evil thing he did, that everyone always gets exactly what he deserves, good or bad. But Christianity does not teach that. As Asfallows and Thomas point out, in John 9 Jesus was specifically asked if a particular case of suffering was p...
Yes, but it's completely unlike "karma." Jewish culture had a sort of assumption that misfortune was a punishment for sin. This came from the obvious explicit warnings of God that "break covenant => misfortune." However, those warnings applied to the covenant people as a whole, not the individual. Apparently somewhere...
7,271
In Hinduism, there is a concept of [past life karma](http://www.himalayanacademy.com/resources/pamphlets/KarmaReincarnation.html). Meaning if someone is born into an unfortunate situation (in a slum, for example) it is because they are paying for sin from a past life. Does Christianity or the Bible give any insight ...
2012/04/22
[ "https://christianity.stackexchange.com/questions/7271", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/1400/" ]
It might be nice to believe that anyone who suffers must deserve it because of some evil thing he did, that everyone always gets exactly what he deserves, good or bad. But Christianity does not teach that. As Asfallows and Thomas point out, in John 9 Jesus was specifically asked if a particular case of suffering was p...
So, if I understand you correctly, your question could be alternately summarized as "Does the Bible offer explanations for why certain things happen to certain people?", which is related to (but different from) the age-old question "Why does God let bad things happen to good people?" To my knowledge, there isn't much ...
384,412
There are `"Code"` and `"Color"` fields in my layer like this: (Sample 6 rows) | Code | Color | | --- | --- | | A | Red | | B | Blue | | A | Red | | A | Red | | B | Blue | | C | Green | All `A`s are `Red`, all `B`s are `Blue` and so on. I can get the unique values for each field: ```py layer = iface.activeLayer() ...
2021/01/15
[ "https://gis.stackexchange.com/questions/384412", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/29431/" ]
You can use `set()` which is a Python built-in function. ```py layer = iface.activeLayer() pairs = list(set([(f["Code"], f["Color"]) for f in layer.getFeatures()])) print(pairs) # [('A', 'Red'), ('C', 'Green'), ('B', 'Blue')] ``` A [`set()`](https://docs.python.org/library/stdtypes.html#set-types-set-frozenset...
You can use the class `Counter()` from the [`collections`](https://docs.python.org/fr/3/library/collections.html#collections.Counter) module. ```py from collections import Counter layer = iface.activeLayer() c = Counter([(feat['Code'],feat['Color']) for feat in layer.getFeatures()]) print(c) # Counter({('A', 'Red'):...
29,430,922
I have a very simple timer working within the DIV ID "clear", and I would like the font color of the div to change at exactly the one minute mark and again at the 2 minute mark. It seems possible, but I can't figure it out. ``` var ho1 = document.getElementsByTagName('ho1')[0], clear = document.getElementById('clear')...
2015/04/03
[ "https://Stackoverflow.com/questions/29430922", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3283304/" ]
HoeInside your if condition where you check for `seconds` ``` if (seconds >= 60) { seconds = 0; // check for minutes minutes++; if(minutes===1) ho1.style.color = "red"; if(minutes===2) ho1.style.color = "green"; } ```
With jQuery and Switch-case: ``` window.scount = 0; function changeColor() { switch (window.scount) { case 0: timer('white') break case 1: timer('red') timer() break case 2: timer('green') break default: console.log('end') break } }...
15,815,041
I know that I have to call ``` - (BOOL)disablesAutomaticKeyboardDismissal { return NO; } //this dismiss keyboard on ios - (BOOL) textViewShouldBeginEditing:(UITextView *)textView { [self.comments resignFirstResponder]; return YES; } ``` In order to dismiss keyboard on a form sheet, I also know that I ha...
2013/04/04
[ "https://Stackoverflow.com/questions/15815041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/977466/" ]
Can you try the following code; ``` - (void)viewDidLoad { [super viewDidLoad]; UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideKeyboard)]; gestureRecognizer.cancelsTouchesInView = NO; [self.view addGestureRecognizer:gestureRecognizer...
Below code worked for me: ``` @interface UINavigationController (dismissKeyBoard) @end @implementation UINavigationController (dismissKeyBoard) - (BOOL)disablesAutomaticKeyboardDismissal { return NO; } @end ```
24,304,545
I'm using the Morris Bar Chart plugin. [You can see an example here](http://jsbin.com/uzosiq/258/embed?javascript,live). The correct data format to insert into the chart is the following: ``` data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009',...
2014/06/19
[ "https://Stackoverflow.com/questions/24304545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3355243/" ]
The main problem is that your PHP return values (your JSON that you will send) is not on the same structure as needed by the Bar chart. You need to flatten it first. From there you code should work fine. [**Sample Fiddle**](http://codepad.viper-7.com/coeEem) Consider this example: ``` <?php if(isset($_POST['get_value...
You control the data sent from the server, so make sure its in the correct format before sending it - simply merge the php arrays into one, and set the correct header: ``` $final = array_merge($AN, $AC); header('Content-Type: application/json'); echo json_encode($final); ``` Now you have the exact format you require...
24,304,545
I'm using the Morris Bar Chart plugin. [You can see an example here](http://jsbin.com/uzosiq/258/embed?javascript,live). The correct data format to insert into the chart is the following: ``` data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009',...
2014/06/19
[ "https://Stackoverflow.com/questions/24304545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3355243/" ]
You control the data sent from the server, so make sure its in the correct format before sending it - simply merge the php arrays into one, and set the correct header: ``` $final = array_merge($AN, $AC); header('Content-Type: application/json'); echo json_encode($final); ``` Now you have the exact format you require...
``` <?php session_start(); include("../phpfiles/include/Config.php"); //db connect $dbc = @mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE); if(!$dbc) { trigger_error('Could not connect to MySql:'. mysqli_connect_error()); } $query = "SELECT dateandtime,sum(grandtotal) FROM bb_pos.bb_bill group by MONTH(d...
24,304,545
I'm using the Morris Bar Chart plugin. [You can see an example here](http://jsbin.com/uzosiq/258/embed?javascript,live). The correct data format to insert into the chart is the following: ``` data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009',...
2014/06/19
[ "https://Stackoverflow.com/questions/24304545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3355243/" ]
The main problem is that your PHP return values (your JSON that you will send) is not on the same structure as needed by the Bar chart. You need to flatten it first. From there you code should work fine. [**Sample Fiddle**](http://codepad.viper-7.com/coeEem) Consider this example: ``` <?php if(isset($_POST['get_value...
``` <?php session_start(); include("../phpfiles/include/Config.php"); //db connect $dbc = @mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE); if(!$dbc) { trigger_error('Could not connect to MySql:'. mysqli_connect_error()); } $query = "SELECT dateandtime,sum(grandtotal) FROM bb_pos.bb_bill group by MONTH(d...
23,374,838
How do i hide all queries/Modules from left hand side of the Access objects in order to prevent user to access them.
2014/04/29
[ "https://Stackoverflow.com/questions/23374838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3233507/" ]
Use Laravel Log to debug it in Laravel: ``` Log::info('Whatever you need to send to your log'); ``` And check your log for your messages and all error messages: ``` php artisan tail ```
Another way, and, to have more specificity of the error (like 500 Internal Server Error), surround your code into a try/catch block and send the error/exception message as a JSON object for instance. ``` $.post('http://localhost/post_request, { '_token': $('meta[name=csrf-token]').attr('content'), ...
23,374,838
How do i hide all queries/Modules from left hand side of the Access objects in order to prevent user to access them.
2014/04/29
[ "https://Stackoverflow.com/questions/23374838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3233507/" ]
Another easier answer is: In Chrome, 1. go to Network menu 2. Click the path/error 3. Go to Preview tab The full error message is visible there. [Laravel 4.2 and AJAX POST - 500 Internal Server Error](https://stackoverflow.com/questions/26229608/laravel-4-2-and-ajax-post-500-internal-server-error)
Another way, and, to have more specificity of the error (like 500 Internal Server Error), surround your code into a try/catch block and send the error/exception message as a JSON object for instance. ``` $.post('http://localhost/post_request, { '_token': $('meta[name=csrf-token]').attr('content'), ...
18,090,479
Hello i have one stupid question. But maybe is not. In database i have table **categories** and i have 4 cols Id, parent\_id, title and description. Parent\_id is child of current category. ``` Id | parent_id | title | description ___________________________________________________ 1 | 1 | Main Catego...
2013/08/06
[ "https://Stackoverflow.com/questions/18090479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2550938/" ]
Read about this <http://www.sitepoint.com/hierarchical-data-database-2/>. Should solve your issue.
I do this. Am working on Codeigniter framework. If any need this i will post how i fix this like on screenshot. Just simple make model : Model ``` /* * Get all children categories * * Get Hierarchical Data from Categories * * @ikac */ public function fetchChildren($parent, $level) { ...