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 |
|---|---|---|---|---|---|
63,249,381 | I have five buttons in a Relative layout, if I try to change their height dynamically, some buttons disappear.
[How buttons are looking before clicking](https://i.stack.imgur.com/ijbab.jpg)
[Buttons after clicking](https://i.stack.imgur.com/cUtcS.jpg)
```
val w = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP... | 2020/08/04 | [
"https://Stackoverflow.com/questions/63249381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13516834/"
] | One common way to do this is to use [Cost Allocation Tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html).
You can define these tags and enforce them, e.g. [using AWS Config](https://docs.aws.amazon.com/config/latest/developerguide/required-tags.html) and/or [tag policies](https://d... | You can monitor every IAM user action through cloud trails logs. So you could imagine a solution based on those logs to calculate the cost of all actions from one IAM user |
63,249,381 | I have five buttons in a Relative layout, if I try to change their height dynamically, some buttons disappear.
[How buttons are looking before clicking](https://i.stack.imgur.com/ijbab.jpg)
[Buttons after clicking](https://i.stack.imgur.com/cUtcS.jpg)
```
val w = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP... | 2020/08/04 | [
"https://Stackoverflow.com/questions/63249381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13516834/"
] | AWS **does not track costs by user**.
When an IAM User makes a request to AWS to create resources (eg an EC2 instance or an RDS database), the user's permissions are checked to confirm that they are permitted to make that API call. If they are permitted, then the API call is allowed and the resources are created.
Res... | You can monitor every IAM user action through cloud trails logs. So you could imagine a solution based on those logs to calculate the cost of all actions from one IAM user |
64,919,843 | I'm trying to use a horizontal slider to change the xlim of my plot. But first, I can't figure out how to get the slider to update using the on\_changed() method. I don't have a strong understanding of how classes, and objects interact with each other.
I'm using this slider example as a template:
```
import numpy as ... | 2020/11/19 | [
"https://Stackoverflow.com/questions/64919843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1664557/"
] | The problem with your code is the method `update` is never called... You need to put the part `if graph_exists` into the `run` method. Besides, as suggested in the post @acw1668 shared, you also need to add the figure into canvas before plotting.
Try the code below
```
import numpy as np
import matplotlib.pyplot as p... | As said in the link in my comment, you need to add the figure to canvas before plotting, otherwise the Sliders don't work. Also you should call `on_changed(...)` after creating the Sliders.
```
def run(self):
self.fig, self.ax = plt.subplots()
canvas = FigureCanvasTkAgg(self.fig, root) # add the f... |
73,349,913 | I have a sentence like this:
```pyhon
sentence = "it is a stupid book and a stupid hat and a stupid computer"
```
and I want to replace the word "stupid" with the word "silly". And create a sentence for each replacement.
The result is something like this:
* "it is a silly book and a stupid hat and a stupid compute... | 2022/08/14 | [
"https://Stackoverflow.com/questions/73349913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19189069/"
] | Change your code to the following:-
```
char *cap_string(char *str)
{
int i;
for (i = 0; str[i] != '\0'; i++)
{
if (i == 0 || str[i - 1] == ' ' || str[i - 1] == '.' || str[i-1] == '\n')
{
if (str[i] >= 'a' && str[i] <= 'z')
str[i] -= 32;
}
}
... | The main idea is look at the previous letter to see if the current letter has to upper case. Introduced a constant UPCASE\_AFTER so it's easy to add other punctuation marks (say, '!', '?'). Added test case. Refactored for readability.
```
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#define UPCASE_AFTER ... |
73,349,913 | I have a sentence like this:
```pyhon
sentence = "it is a stupid book and a stupid hat and a stupid computer"
```
and I want to replace the word "stupid" with the word "silly". And create a sentence for each replacement.
The result is something like this:
* "it is a silly book and a stupid hat and a stupid compute... | 2022/08/14 | [
"https://Stackoverflow.com/questions/73349913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19189069/"
] | Change your code to the following:-
```
char *cap_string(char *str)
{
int i;
for (i = 0; str[i] != '\0'; i++)
{
if (i == 0 || str[i - 1] == ' ' || str[i - 1] == '.' || str[i-1] == '\n')
{
if (str[i] >= 'a' && str[i] <= 'z')
str[i] -= 32;
}
}
... | Here's another alternative:
```
#include <stdio.h>
// Use standard library routines
// like 'isalpha()', 'toupper'...
// Not all character sets have ASCII's contiguous alphabets.
#include <ctype.h>
char *cap_string( char *str ) {
bool flag = true; // 'state flag' indicating "hunting for lowercase letter"
for... |
1,524 | I've been learning how to write Chinese (by hand), but I'm not sure how to go about using this site to help me with that (if at all). One particular issue I encounter is that I can't tell the difference between when something is an acceptable writing style, or when something is simply an error.
**Question**: Are "crit... | 2017/10/01 | [
"https://chinese.meta.stackexchange.com/questions/1524",
"https://chinese.meta.stackexchange.com",
"https://chinese.meta.stackexchange.com/users/8099/"
] | I assume you mean penmanship and not grammar or word choice. I think you're right to be worried about making the question too narrow if it's just "is this writing sample legible?"
However, if you had a more general question about stroke formation, I think that might be a reasonable question. Think about asking concret... | If you only want to know whether what you writing is right or wrong,you just writing as the printed in the book,however,you mentioned criticize your writing,because there are 行书and草书。usually,you just writing 行书is ok.as for 行书,the little mistake will be ok,because it can be as a writing art .of course ,you can also sent... |
47,912,367 | I have a JSON object with user information, its a large array of thousand of users an example of one is:
```
[ {
"FirstName" : "Joe",
"LastName" : "Doe",
"Address" : "123 Main Street"
}
]
```
I want to be able to search in this json array based on first and last name and return the object that matche... | 2017/12/20 | [
"https://Stackoverflow.com/questions/47912367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/202294/"
] | Take a look at [es6-feature](http://es6-features.org/#ArrayElementFinding)
There're 2 method in array:
* find: `array.find(x => x.firstName === 'Joe' && x.LastName === 'Doe' )`: returns single matche which means exactly 1 object or null.
* filter: `array.filter(x => x.firstName === 'Joe' && x.LastName === 'Doe' )` re... | you can use the filter function on array
```
var result = largeJsonArray.filter(function(item){
return item.FirstName === 'Jhon' && item.LastName === 'Doe'
});
```
result is a list of element that match the criteria
take a look to the documentation
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refere... |
47,912,367 | I have a JSON object with user information, its a large array of thousand of users an example of one is:
```
[ {
"FirstName" : "Joe",
"LastName" : "Doe",
"Address" : "123 Main Street"
}
]
```
I want to be able to search in this json array based on first and last name and return the object that matche... | 2017/12/20 | [
"https://Stackoverflow.com/questions/47912367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/202294/"
] | Take a look at [es6-feature](http://es6-features.org/#ArrayElementFinding)
There're 2 method in array:
* find: `array.find(x => x.firstName === 'Joe' && x.LastName === 'Doe' )`: returns single matche which means exactly 1 object or null.
* filter: `array.filter(x => x.firstName === 'Joe' && x.LastName === 'Doe' )` re... | You can parse json and use Array.prototype.find:
```
const arr = JSON.parse("your json")
const result = arr.find(elem => elem.FirstName === "Joe")
``` |
47,912,367 | I have a JSON object with user information, its a large array of thousand of users an example of one is:
```
[ {
"FirstName" : "Joe",
"LastName" : "Doe",
"Address" : "123 Main Street"
}
]
```
I want to be able to search in this json array based on first and last name and return the object that matche... | 2017/12/20 | [
"https://Stackoverflow.com/questions/47912367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/202294/"
] | You can parse json and use Array.prototype.find:
```
const arr = JSON.parse("your json")
const result = arr.find(elem => elem.FirstName === "Joe")
``` | you can use the filter function on array
```
var result = largeJsonArray.filter(function(item){
return item.FirstName === 'Jhon' && item.LastName === 'Doe'
});
```
result is a list of element that match the criteria
take a look to the documentation
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refere... |
30,579,639 | I seem to be getting an error on this, and I do not understand why, I know I can just use Range with letters but I want to learn how to do it in this format.
```
ThisWorkbook.Sheets("t").Range(Cells(1, 1), Cells(2, 2)).Value = ThisWorkbook.Sheets("1").Range(Cells(1, 1), Cells(2, 2)).Value
``` | 2015/06/01 | [
"https://Stackoverflow.com/questions/30579639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2446698/"
] | Here's my test code, I added some worksheet objects to make it a read a little easier. You have to qualify the `Range` too if working from a worksheet module, if you're in a plain module you can leave it out.
```
sub test()
dim t as worksheet
dim one as worksheet
set t = ThisWorkbook.Sheets("t")
set o... | The answer by @Sobigen gives a good way to qualify your references to avoid the error.
You can also avoid `Cells` altogether by using `Resize`.
```
Sub UseResizeInsteadOfCells()
ThisWorkbook.Sheets("t").Range("A1").Resize(2, 2).Value = _
ThisWorkbook.Sheets("1").Range("A1").Resize(2, 2).Value
End Sub
`... |
8,548,658 | I remember a fellow programmer had a name for the kind if statement that returns out of the method it's in if it evaluates to true.
What's that called, again? Like, a "conditional shield," or something?
It's very helpful for reducing conditional nesting. | 2011/12/17 | [
"https://Stackoverflow.com/questions/8548658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242933/"
] | I've heard "guard condition" to describe the check and "bail out [early]" to describe the action of returning before the main action. | I've heard it get called an *early return*. Compilers have been known to generate suboptimal code for early returns in some cases, such as when returning object types. |
666,651 | I updated my 2007 non-unibody Macbook Pro with 4gb RAM and 2.2ghz Core 2 Duo. It successfully installed, then the spinner froze on boot and the computer wouldn't start. I ended up just reinstalling Mavericks from scratch and starting over. But now, a few days later, I was just doing random stuff and the computer froze.... | 2013/10/29 | [
"https://superuser.com/questions/666651",
"https://superuser.com",
"https://superuser.com/users/267696/"
] | After four days of testing, I found out that it was when I turned off the wireless (Airport). My laptop would totally freeze within seconds and every time I would try to reboot. When it still froze even after I rolled back to 10.8 I knew it wasn't a hardware issue.
I found a fix on day 5: **Do not turn off your Airpor... | If you are in school, and have it running I would say keep it the way it is until you have some time to look at it. In my experience when you are having your specific issue with boots to spinning gear, then shuts down after a while it is an issue with the hard drive in specific. By the time that it gets to that gear in... |
35,624,095 | i used this code to call web service from xamarin :
```
void OnWebserviceRetrievedInformation1 (object sender, EventArgs e)
{
MyService.MonoDataService ms = new MyService.MonoDataService ();
ms.Url = "http://10.0.2.2:11339/MonoDataService.asmx";
TextView tx=FindViewById<TextView> (Resource.Id.textView1);
... | 2016/02/25 | [
"https://Stackoverflow.com/questions/35624095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5979632/"
] | As per my understanding from Apple docs, The size of App will be reduce when you compile it for specific architecture and it's the correct way of doing it.
**Apple docs :**
>
> Target Fewer CPUs
>
>
> By default, Xcode projects are configured to generate optimized copies
> of your app in CPU-specific "slices" o... | [](https://i.stack.imgur.com/Pkpnm.png)
You need to build the app for both of these |
35,624,095 | i used this code to call web service from xamarin :
```
void OnWebserviceRetrievedInformation1 (object sender, EventArgs e)
{
MyService.MonoDataService ms = new MyService.MonoDataService ();
ms.Url = "http://10.0.2.2:11339/MonoDataService.asmx";
TextView tx=FindViewById<TextView> (Resource.Id.textView1);
... | 2016/02/25 | [
"https://Stackoverflow.com/questions/35624095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5979632/"
] | [Here](https://docs.elementscompiler.com/Platforms/Cocoa/CpuArchitectures/) you can find very easy to understand explanation of all iPhone and also Mac CPU architectures.
It helped me a lot when I decided to remove armv7 architecture from my supported architectures:
>
> Choose carefully when excluding architectures.... | [](https://i.stack.imgur.com/Pkpnm.png)
You need to build the app for both of these |
35,624,095 | i used this code to call web service from xamarin :
```
void OnWebserviceRetrievedInformation1 (object sender, EventArgs e)
{
MyService.MonoDataService ms = new MyService.MonoDataService ();
ms.Url = "http://10.0.2.2:11339/MonoDataService.asmx";
TextView tx=FindViewById<TextView> (Resource.Id.textView1);
... | 2016/02/25 | [
"https://Stackoverflow.com/questions/35624095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5979632/"
] | [Here](https://docs.elementscompiler.com/Platforms/Cocoa/CpuArchitectures/) you can find very easy to understand explanation of all iPhone and also Mac CPU architectures.
It helped me a lot when I decided to remove armv7 architecture from my supported architectures:
>
> Choose carefully when excluding architectures.... | As per my understanding from Apple docs, The size of App will be reduce when you compile it for specific architecture and it's the correct way of doing it.
**Apple docs :**
>
> Target Fewer CPUs
>
>
> By default, Xcode projects are configured to generate optimized copies
> of your app in CPU-specific "slices" o... |
59,040,545 | Why does `parcel start` throw a no entries found error? I looked online and found that parcel can't find the index.html, but I don't understand why. I have a index.html file in the root folder. Is there anything I'm missing?
**package.json**
```
{
"name": "meep.io",
"version": "1.0.0",
"description"... | 2019/11/25 | [
"https://Stackoverflow.com/questions/59040545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4214922/"
] | I was using `parcel start` instead of `npm run start` | In my case put source via package.json makes things work.
```
{
..
"source": "index.html",
..
}
```
[Official docs with more params](https://parceljs.org/features/targets/#entries) |
1,043,021 | I have been facing a weird issue since a month. I couldn't find any solution on the internet which makes me think that the problem is unique to me. The text and labels for the options have disappeared. Only the icons can be seen in the control panel. Although when I place the mouse in the areas where the text is usuall... | 2016/02/19 | [
"https://superuser.com/questions/1043021",
"https://superuser.com",
"https://superuser.com/users/536711/"
] | I didn't expect it to, but the advice from <http://forums.toshiba.com/t5/Keyboards-Touchpads/Toshiba-Satellite-L500-Keyboard-not-working/td-p/160306> namely:
Here is the fix for the keyboard malfunction:
1. Turn off computer, disconnect the power cord, remove the battery.
2. Press the Power On button for 10 seconds
... | Most probably this is temporary problem related to battery.
**Shutdown, remove battery, boot up**.
If all is fine try to put battery back.
Again... shutdown, put battery back, boot up.
If all still works than you are fine.
If problems with keyboard/mouse are back, replace the battery with the new one.
This issue is... |
1,043,021 | I have been facing a weird issue since a month. I couldn't find any solution on the internet which makes me think that the problem is unique to me. The text and labels for the options have disappeared. Only the icons can be seen in the control panel. Although when I place the mouse in the areas where the text is usuall... | 2016/02/19 | [
"https://superuser.com/questions/1043021",
"https://superuser.com",
"https://superuser.com/users/536711/"
] | I didn't expect it to, but the advice from <http://forums.toshiba.com/t5/Keyboards-Touchpads/Toshiba-Satellite-L500-Keyboard-not-working/td-p/160306> namely:
Here is the fix for the keyboard malfunction:
1. Turn off computer, disconnect the power cord, remove the battery.
2. Press the Power On button for 10 seconds
... | Try a static discharge of the computer. This will solve general hardware problems. If that won't solve your problem, you might try to update all packages from software manager again, if that won't solve too, you should try to download a different distro and burn it to an USB and then try to boot that USB up, check this... |
1,043,021 | I have been facing a weird issue since a month. I couldn't find any solution on the internet which makes me think that the problem is unique to me. The text and labels for the options have disappeared. Only the icons can be seen in the control panel. Although when I place the mouse in the areas where the text is usuall... | 2016/02/19 | [
"https://superuser.com/questions/1043021",
"https://superuser.com",
"https://superuser.com/users/536711/"
] | I didn't expect it to, but the advice from <http://forums.toshiba.com/t5/Keyboards-Touchpads/Toshiba-Satellite-L500-Keyboard-not-working/td-p/160306> namely:
Here is the fix for the keyboard malfunction:
1. Turn off computer, disconnect the power cord, remove the battery.
2. Press the Power On button for 10 seconds
... | Our Tosh Satellite L755D kept lagging on entering text, sluggish running, cursor jumping around. I tried the battery out trick here described, but no improvement. Another site suggested updating the BIOS, so I went to Toshiba.com and downloaded their BIOS, which was in fact the same version as installed. I installed th... |
47,050,111 | I am unable to find SimpleConsumer Support in latest version of kafka 0.10 and 0.11. Is it good to use high level consumer for below use case:
Use case: I want to manually control offsets for each topic and saving in external source.
The problem with High level consumer is for above use case is:
When I do poll,
1... | 2017/11/01 | [
"https://Stackoverflow.com/questions/47050111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4301241/"
] | You can try count function for that:
```
<xsl:template match="listing">
<xsl:copy>
<xsl:attribute name="id">
<xsl:text>p</xsl:text>
<xsl:number format="00" level="any"/>
</xsl:attribute>
<xsl:apply-templates select="@*"/>
<xsl:attr... | The value of `position()` at the top level of an xsl:template rule is the position of the matching node in the list of nodes selected by xsl:apply-templates. You haven't shown us the call on xsl:apply-templates, which is crucial in this case. If you aren't stripping whitespace text nodes, and if the `xsl:apply-template... |
5,889,901 | I'm using the client-side javascript version of LESS to compile out less code, and would like to continue using this even on the final live site (I know... bad form, but it gives me the ability to allow users to customize a few less variables and have that "theme" their whole app on the fly, seeing as it's a webapp tha... | 2011/05/04 | [
"https://Stackoverflow.com/questions/5889901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/586181/"
] | I have used the [text loader plugin](http://requirejs.org/docs/download.html#text) for RequireJS to load the .less file as text, then create a new less.Parser instance to parse the text, then add the style text myself:
```
(new less.Parser()).parse(lessText, function (err, css) {
if (err) {
if (typeof console !=... | @jrburke: I've put together a quick requirejs plugin based on your code:
```
define({
version: '0.1',
load: function(name, req, onLoad, config) {
req(['text!' + name, 'base/less'], function(lessText) {
var styleElem;
(new less.Parser()).parse(lessText, function (err, css) {... |
5,889,901 | I'm using the client-side javascript version of LESS to compile out less code, and would like to continue using this even on the final live site (I know... bad form, but it gives me the ability to allow users to customize a few less variables and have that "theme" their whole app on the fly, seeing as it's a webapp tha... | 2011/05/04 | [
"https://Stackoverflow.com/questions/5889901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/586181/"
] | I have used the [text loader plugin](http://requirejs.org/docs/download.html#text) for RequireJS to load the .less file as text, then create a new less.Parser instance to parse the text, then add the style text myself:
```
(new less.Parser()).parse(lessText, function (err, css) {
if (err) {
if (typeof console !=... | I was having trouble with @nicholas plugin with imports. I fixed it by adding the path of the file to the search path, and set filename for better error messages:
```
// http://stackoverflow.com/questions/5889901/requirejs-and-less
// enables require(['share/less!whatever.less'], function(elem) {});
define({
versi... |
5,889,901 | I'm using the client-side javascript version of LESS to compile out less code, and would like to continue using this even on the final live site (I know... bad form, but it gives me the ability to allow users to customize a few less variables and have that "theme" their whole app on the fly, seeing as it's a webapp tha... | 2011/05/04 | [
"https://Stackoverflow.com/questions/5889901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/586181/"
] | @jrburke: I've put together a quick requirejs plugin based on your code:
```
define({
version: '0.1',
load: function(name, req, onLoad, config) {
req(['text!' + name, 'base/less'], function(lessText) {
var styleElem;
(new less.Parser()).parse(lessText, function (err, css) {... | I was having trouble with @nicholas plugin with imports. I fixed it by adding the path of the file to the search path, and set filename for better error messages:
```
// http://stackoverflow.com/questions/5889901/requirejs-and-less
// enables require(['share/less!whatever.less'], function(elem) {});
define({
versi... |
32,968,856 | I have two input filed and those are given below.
```
<input type="text" name="itemname" id="contactno" class="form-control" placeholder="short name" ng-model="dept_short_name" >
<input type="text" name="itemname" id="contactno" class="form-control" ng-model="loginname" readonly="readonly" value="{{dept_short_name}}" ... | 2015/10/06 | [
"https://Stackoverflow.com/questions/32968856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790217/"
] | ```
<input type="text" ng-model="dept_short_name" />
<input type="text" readonly="readonly" ng-model="dept_short_name"></input>
``` | **It is simplest one task using angularjs.
Check the fiddle link.**
```
LINK:
```
[FIDDLE](http://jsfiddle.net/U3pVM/19129/) |
32,968,856 | I have two input filed and those are given below.
```
<input type="text" name="itemname" id="contactno" class="form-control" placeholder="short name" ng-model="dept_short_name" >
<input type="text" name="itemname" id="contactno" class="form-control" ng-model="loginname" readonly="readonly" value="{{dept_short_name}}" ... | 2015/10/06 | [
"https://Stackoverflow.com/questions/32968856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790217/"
] | ```
<input type="text" ng-model="dept_short_name" />
<input type="text" readonly="readonly" ng-model="dept_short_name"></input>
``` | In controller watch `dept_short_name` and change `loginname` as you want inside watch. |
32,968,856 | I have two input filed and those are given below.
```
<input type="text" name="itemname" id="contactno" class="form-control" placeholder="short name" ng-model="dept_short_name" >
<input type="text" name="itemname" id="contactno" class="form-control" ng-model="loginname" readonly="readonly" value="{{dept_short_name}}" ... | 2015/10/06 | [
"https://Stackoverflow.com/questions/32968856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790217/"
] | **It is simplest one task using angularjs.
Check the fiddle link.**
```
LINK:
```
[FIDDLE](http://jsfiddle.net/U3pVM/19129/) | In controller watch `dept_short_name` and change `loginname` as you want inside watch. |
161,864 | Dungeonscape has an alternative class feature for bards called "Lore Song" (page 8).
The key text is:
>
> Bardic music serves many purposes, aiding your allies or manipulating
> your enemies. You have refined your performance of another group of
> bardic songs, full of lost knowledge, obscure lore, and relevant
> an... | 2019/12/24 | [
"https://rpg.stackexchange.com/questions/161864",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/23007/"
] | I think there are no audible/physical manifestations for this ability
=====================================================================
as [Leezard's answer](https://rpg.stackexchange.com/a/161873/51979) points out, it is an insight bonus wich is ''almost precognitive knowledge of what might occur''
I believe the... | >
> If a bard with Perform (Voice) uses this ability to improve a
> diplomacy check,
>
>
> 1. Is the opponent (and other people around) aware of that?
> 2. If so, can the bard use Sleight of Hand to hide the activation?
>
>
>
As a DM, I would start by asking myself, do they know what a bard can do? Much of that... |
43,246,773 | I have three columns column 1, column 2, column 3(total). i want to put the sum of column 1 and column 2 into column 3 after every update query..... note i am using code igniter.. how can i do it if i update col 1 then total column automatically update itself. | 2017/04/06 | [
"https://Stackoverflow.com/questions/43246773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277304/"
] | Try like this:
```
DELIMITER $$
CREATE TRIGGER updtrigger AFTER UPDATE ON mytable
FOR EACH ROW
BEGIN
IF NEW.col1 <> OLD.col1 OR NEW.col2 <> OLD.col2 THEN
SET NEW.col3 = NEW.col1 + New.col2;
END IF;
END $$
```
Here is a very good [tutorial](https://www.techonthenet.com/mysql/triggers/after_updat... | why dont you just update the db instead of creating a trigger. plus youve created the trigger after the insert, it should go before. but really you shouldn't be doing it that way |
43,246,773 | I have three columns column 1, column 2, column 3(total). i want to put the sum of column 1 and column 2 into column 3 after every update query..... note i am using code igniter.. how can i do it if i update col 1 then total column automatically update itself. | 2017/04/06 | [
"https://Stackoverflow.com/questions/43246773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277304/"
] | Try like this:
```
DELIMITER $$
CREATE TRIGGER updtrigger AFTER UPDATE ON mytable
FOR EACH ROW
BEGIN
IF NEW.col1 <> OLD.col1 OR NEW.col2 <> OLD.col2 THEN
SET NEW.col3 = NEW.col1 + New.col2;
END IF;
END $$
```
Here is a very good [tutorial](https://www.techonthenet.com/mysql/triggers/after_updat... | try this code:
```
DELIMITER $$
CREATE
TRIGGER `db_name`.`trigger_name` AFTER UPDATE
ON `db_name`.`table_name`
FOR EACH ROW BEGIN
UPDATE
`table_name`
SET
`column3` = `column1` + `column2`;
END$$
DELIMITER ;
``` |
36,611,990 | I want to enable the gated check-in trigger for my `TFS` Build but also want to have a way to specify users who can commit their code directly without waiting to `TFS` to verify their code changes.
[](https://i.stack.imgur.com/rYRJB.png) | 2016/04/14 | [
"https://Stackoverflow.com/questions/36611990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1779039/"
] | If you edit the "Security" of the build definition:
[](https://i.stack.imgur.com/Lixbx.png)
There is a permission you can control called "Override check-in validation by build" (or similar, I don't have TFS 2012 to hand, I'm using VSTS for the screen shots).
[!... | For TFS 2015 Right click on the build definition, select security.Then change **Override check-in validation by build** to Allow
[](https://i.stack.imgur.com/usUjU.png) |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | Well, the OED dates *withershins* from 1513 in the sense of "against the usual direction", and from 1545 in the sense of "against the sun's direction; but it does mark it as "*dial*, chiefly *Sc.*", i.e. dialect, chiefly Scottish. It seems unlikely that it was in general use before the 20th century.
And the only syno... | *Deosil* and *widdershins*, for one instance. (For clarity: *deosil* is clockwise, *widdershins* is counterclockwise.) |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | [Etymonline](http://www.etymonline.com/index.php?search=Clockwise) says that the word *clockwise* arose in 1870, much later than clocks. Before that, the word *sunwise* was used, but it appears to have been fairly rare.
There were words (e.g. *deiseil* and *tuathail*) for these concepts in the Celtic languages, since... | *Deosil* and *widdershins*, for one instance. (For clarity: *deosil* is clockwise, *widdershins* is counterclockwise.) |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | Most often, *right*, with *left* being the most common term for the opposite.
In some specific contexts, these can seem abiguous, but only when actually trying to consider the turning without a bias to either part of the clockwise- or counterclockwise-turning object. This doesn't actually come up all that often.
In o... | *Deosil* and *widdershins*, for one instance. (For clarity: *deosil* is clockwise, *widdershins* is counterclockwise.) |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | Well, the OED dates *withershins* from 1513 in the sense of "against the usual direction", and from 1545 in the sense of "against the sun's direction; but it does mark it as "*dial*, chiefly *Sc.*", i.e. dialect, chiefly Scottish. It seems unlikely that it was in general use before the 20th century.
And the only syno... | As per @Nieszka link, "sunwise" would have been the most common, but also "widdershins" and "deasil". This seemed to serve them well enough, where most of their needs could be described with reference to the ground.
The problems of trying to work out which way is which when, for example, you are upside down were not m... |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | [Etymonline](http://www.etymonline.com/index.php?search=Clockwise) says that the word *clockwise* arose in 1870, much later than clocks. Before that, the word *sunwise* was used, but it appears to have been fairly rare.
There were words (e.g. *deiseil* and *tuathail*) for these concepts in the Celtic languages, since... | As per @Nieszka link, "sunwise" would have been the most common, but also "widdershins" and "deasil". This seemed to serve them well enough, where most of their needs could be described with reference to the ground.
The problems of trying to work out which way is which when, for example, you are upside down were not m... |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | Most often, *right*, with *left* being the most common term for the opposite.
In some specific contexts, these can seem abiguous, but only when actually trying to consider the turning without a bias to either part of the clockwise- or counterclockwise-turning object. This doesn't actually come up all that often.
In o... | As per @Nieszka link, "sunwise" would have been the most common, but also "widdershins" and "deasil". This seemed to serve them well enough, where most of their needs could be described with reference to the ground.
The problems of trying to work out which way is which when, for example, you are upside down were not m... |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | [Etymonline](http://www.etymonline.com/index.php?search=Clockwise) says that the word *clockwise* arose in 1870, much later than clocks. Before that, the word *sunwise* was used, but it appears to have been fairly rare.
There were words (e.g. *deiseil* and *tuathail*) for these concepts in the Celtic languages, since... | Well, the OED dates *withershins* from 1513 in the sense of "against the usual direction", and from 1545 in the sense of "against the sun's direction; but it does mark it as "*dial*, chiefly *Sc.*", i.e. dialect, chiefly Scottish. It seems unlikely that it was in general use before the 20th century.
And the only syno... |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | Well, the OED dates *withershins* from 1513 in the sense of "against the usual direction", and from 1545 in the sense of "against the sun's direction; but it does mark it as "*dial*, chiefly *Sc.*", i.e. dialect, chiefly Scottish. It seems unlikely that it was in general use before the 20th century.
And the only syno... | Most often, *right*, with *left* being the most common term for the opposite.
In some specific contexts, these can seem abiguous, but only when actually trying to consider the turning without a bias to either part of the clockwise- or counterclockwise-turning object. This doesn't actually come up all that often.
In o... |
72,054 | Before there were clocks, what did people say to describe the clockwise and anti/counter-clockwise directions?
Whilst we're on the subject, when was the word "clockwise" first used? | 2012/06/21 | [
"https://english.stackexchange.com/questions/72054",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/20739/"
] | [Etymonline](http://www.etymonline.com/index.php?search=Clockwise) says that the word *clockwise* arose in 1870, much later than clocks. Before that, the word *sunwise* was used, but it appears to have been fairly rare.
There were words (e.g. *deiseil* and *tuathail*) for these concepts in the Celtic languages, since... | Most often, *right*, with *left* being the most common term for the opposite.
In some specific contexts, these can seem abiguous, but only when actually trying to consider the turning without a bias to either part of the clockwise- or counterclockwise-turning object. This doesn't actually come up all that often.
In o... |
12,650,504 | I want to upload big file in my admin panel but not in every where and public users access to upload big file ,
I use ini\_set in my core.php , bootstrap , controller , ... but its not working for me ,
My ini\_set is :
```
ini_set("memory_limit","300M");
ini_set('upload_max_filesize','200M');
ini_set('post_max_... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1274067/"
] | Your problem has nothing to do with CakePHP. Values like "upload\_max\_filesize" cannot be changed using ini\_set(). Your question is already answered [here](https://stackoverflow.com/questions/1122418/changing-upload-max-filesize-on-php#1122443). | Are you/cakephp setting the ini values inside of a .htaccess file as well? Could be some sort of overriding happening. |
1,082,706 | [Hall–Littlewood polynomials](http://en.wikipedia.org/wiki/Hall%E2%80%93Littlewood_polynomials) $P\_\lambda(x;t)$ is an important deformation of Schur polynomials
forming a basis in the ring of symmetric polynomials over $\mathbb Z[t]$.
There are various definitions, including quite explicit
$$
P\_\lambda(x;t)=
\sum\_{... | 2014/12/27 | [
"https://math.stackexchange.com/questions/1082706",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/152/"
] | I'm not sure if this is exactly what you're looking for, but I recently worked on a paper regarding just this question (<http://arxiv.org/abs/1403.8139>). We were generalizing Tokuyama's deformation formula (<http://projecteuclid.org/euclid.jmsj/1230129805>) for the Schur polynomial, so we used Gelfand-Tsetlin patterns... | It is also possible to get a combinatorial description using semi-standard augmented fillings, by specializing the combinatorial formula for Macdonald polynomials (see wikipedia on the Macdonald polynomials).
It is also possible to get a formula as sum over SSYT's and the cocharge statistic. This gives the expansion o... |
199,239 | I create programmatically a layer in PostGIS and Geoserver. I give the option to the user to choose the geometry and the attributes and then I create the table in PostGIS and add it in an **existing** store in Geoserver.
The layer, as initialized, it gets a global Bounding Box.
Then the user is able to add specific da... | 2016/06/21 | [
"https://gis.stackexchange.com/questions/199239",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/40618/"
] | I have tested the basemap you have shared within the CartoDB Editor and it works at zoom level 19, but as you pointed out **it does not work at zoom 20 ([there are not tiles](https://blogs.esri.com/esri/arcgis/2009/03/19/how-can-you-tell-what-map-scales-are-shown-for-online-maps/))**. | In C# you can examine each pixel of the resulting map (which comes in as a byte array), count the number of pixels of each colour and check if there's an abundance of grey. The principle probably applies in other programming languages, providing you have the right image analysis capabilities.
A valid satellite image w... |
73,782,837 | Here I have a r list of dataframes, all dataframes are in the same format and have the same dimensionality, the first 2 columns are strings,like IDs and names(identical for all dataframes), and the rest are numeric values. Here I want to sum numeric parts of all the dataframes in matrix way, i.e. output at index (1,3) ... | 2022/09/20 | [
"https://Stackoverflow.com/questions/73782837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15383071/"
] | If the order of the two first columns is always the same, you can do:
```r
#Get all numeric columns
num <- sapply(L[[1]], is.numeric)
#Sum them across elements of the list
df_num <- Reduce(`+`, lapply(L, `[`, num))
#Get the non-numeric columns and bind them with sum of numeric columns
cbind(L[[1]][!num], df_num)
``... | using dplyr and purrr (which has a bit nicer map functions), you could do something like this:
```
library(purrr)
library(dplyr)
result <- reduce(L, function(x,y){
xVals <- x |> select(-ID, -name)
yVals <- y |> select(-ID, -name)
totalVals <- xVals |> map2(yVals, function(x,y) {
rowSums(cbind(x,y))
... |
73,782,837 | Here I have a r list of dataframes, all dataframes are in the same format and have the same dimensionality, the first 2 columns are strings,like IDs and names(identical for all dataframes), and the rest are numeric values. Here I want to sum numeric parts of all the dataframes in matrix way, i.e. output at index (1,3) ... | 2022/09/20 | [
"https://Stackoverflow.com/questions/73782837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15383071/"
] | If the order of the two first columns is always the same, you can do:
```r
#Get all numeric columns
num <- sapply(L[[1]], is.numeric)
#Sum them across elements of the list
df_num <- Reduce(`+`, lapply(L, `[`, num))
#Get the non-numeric columns and bind them with sum of numeric columns
cbind(L[[1]][!num], df_num)
``... | Similar logic to Maël's answer, but squishing it all into a `Map` call:
```
data.frame(do.call(Map,
c(\(...) if(is.numeric(..1)) Reduce(`+`, list(...)) else ..1, L)
))
# ID name v1 v2
#1 aa cc 6 10
#2 bb dd 8 12
```
If the first `..1` chunk of the column is numeric, sum `+` all the values in all the list... |
51,259,961 | I was watching and trying to add model with Entity Framework (using a SQL Server database). In this step, I couldn't select the third one. I searched this problem but I didn't find a solution. I removed SQL Server and tried again but never changed (my connection is successful).
How can I fix it?
[ probably means you either have none in your database or not the proper right... | if any one has this problem: The problem was only with the table. You have to use primary key in your database table. |
48,333,646 | I am using the Places autocomplete on a checkout form in a cart. See Example: <https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform>
Works great, but the issue is PO Boxes! How do you guys handle them? I am surprised they do not pop in with a zip code. I have my fields ... | 2018/01/19 | [
"https://Stackoverflow.com/questions/48333646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1305228/"
] | Google places is designed for getting directions to a physical location. A PO Box is not considered a physical location that anyone (except the PO Box user) would need to visit. You may want to look at SmartyStreets' [US Autocomplete Pro API](https://smartystreets.com/products/apis/us-autocomplete-pro-api) which includ... | The google places API doesn’t have PO boxes… or private bag, community mailboxes, rural district addresses or apartment numbers. It also uses extrapolation to guest the nearest address, which may not even exist. Here is an article with examples and screenshots describing the limitations of the Google Places API <https:... |
30,545,031 | I am using table view using custom coding with tag method to save memory.
I was successful to show data in the view but the problem is if 10 cells are showing and then if I scroll down like for one cell then it should show 2-11 cell data but it switches to 1-10 again.
```
- (UITableViewCell *)tableView:(UITableView ... | 2015/05/30 | [
"https://Stackoverflow.com/questions/30545031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4955401/"
] | You are not assigning new content to subviews, if they have been already created. After the case `if(cell == nil)`, these you have just got references.
```
cellNAMElabl = (UILabel *)[cell viewWithTag:1];
cellDetaillabl = (UILabel*)[cell viewWithTag:2];
imgView = (UIImageView*)[cell viewWithTag:3];
```
Here when cell... | What you want to do is..
add/setup the tableViewCell UI if the cell is nil..
```
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellIdentifier = @"cellID";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdent... |
30,545,031 | I am using table view using custom coding with tag method to save memory.
I was successful to show data in the view but the problem is if 10 cells are showing and then if I scroll down like for one cell then it should show 2-11 cell data but it switches to 1-10 again.
```
- (UITableViewCell *)tableView:(UITableView ... | 2015/05/30 | [
"https://Stackoverflow.com/questions/30545031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4955401/"
] | You are not assigning new content to subviews, if they have been already created. After the case `if(cell == nil)`, these you have just got references.
```
cellNAMElabl = (UILabel *)[cell viewWithTag:1];
cellDetaillabl = (UILabel*)[cell viewWithTag:2];
imgView = (UIImageView*)[cell viewWithTag:3];
```
Here when cell... | If you set a breakpoint in the if cell == nil block its probably only being hit for the first set if your reuseID is correct. Thats why its never getting a chance to set any new data into the cell.
You should not look for a nil cell, rather use a correct reuseID and a prototype cell in IB that is set to a custom UITa... |
30,545,031 | I am using table view using custom coding with tag method to save memory.
I was successful to show data in the view but the problem is if 10 cells are showing and then if I scroll down like for one cell then it should show 2-11 cell data but it switches to 1-10 again.
```
- (UITableViewCell *)tableView:(UITableView ... | 2015/05/30 | [
"https://Stackoverflow.com/questions/30545031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4955401/"
] | The way this `dequeueReusableCellWithIdentifier` works: If iOS detects that a cell is not displayed anymore, then `dequeueReusableCellWithIdentifier` will return that cell. If there is no unused cell, it returns nil. So what you need to do:
If `dequeueReusableCellWithIdentifier` returns nil, then you create a new cel... | What you want to do is..
add/setup the tableViewCell UI if the cell is nil..
```
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellIdentifier = @"cellID";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdent... |
30,545,031 | I am using table view using custom coding with tag method to save memory.
I was successful to show data in the view but the problem is if 10 cells are showing and then if I scroll down like for one cell then it should show 2-11 cell data but it switches to 1-10 again.
```
- (UITableViewCell *)tableView:(UITableView ... | 2015/05/30 | [
"https://Stackoverflow.com/questions/30545031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4955401/"
] | The way this `dequeueReusableCellWithIdentifier` works: If iOS detects that a cell is not displayed anymore, then `dequeueReusableCellWithIdentifier` will return that cell. If there is no unused cell, it returns nil. So what you need to do:
If `dequeueReusableCellWithIdentifier` returns nil, then you create a new cel... | If you set a breakpoint in the if cell == nil block its probably only being hit for the first set if your reuseID is correct. Thats why its never getting a chance to set any new data into the cell.
You should not look for a nil cell, rather use a correct reuseID and a prototype cell in IB that is set to a custom UITa... |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | In SQL Server, you can query [`sys.columns`](http://technet.microsoft.com/en-us/library/ms176106.aspx).
Something like:
```
SELECT
t.name
FROM
sys.columns c
inner join
sys.tables t
on
c.object_id = t.object_id
WHERE
c.name = 'NameID'
```
You might want an additional... | you can run this query
```
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%Column%' -- write the column you search here
ORDER BY schema_name, table_name;
``` |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | In SQL Server, you can query [`sys.columns`](http://technet.microsoft.com/en-us/library/ms176106.aspx).
Something like:
```
SELECT
t.name
FROM
sys.columns c
inner join
sys.tables t
on
c.object_id = t.object_id
WHERE
c.name = 'NameID'
```
You might want an additional... | For Oracle Database. Use the below query:
```
select table_name from all_tab_columns where column_name = 'NameID';
```
If you’ve got DBA privileges, you can try this command instead:
```
select table_name from dba_tab_columns where column_name = 'NameID';
``` |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | In SQL Server, you can query [`sys.columns`](http://technet.microsoft.com/en-us/library/ms176106.aspx).
Something like:
```
SELECT
t.name
FROM
sys.columns c
inner join
sys.tables t
on
c.object_id = t.object_id
WHERE
c.name = 'NameID'
```
You might want an additional... | ```
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME,
ORDINAL_POSITION as org_pos, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH as CML
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME like '%Here Column Name%'
ORDER BY TABLE_NAME
``` |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | you can run this query
```
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%Column%' -- write the column you search here
ORDER BY schema_name, table_name;
``` | For Oracle Database. Use the below query:
```
select table_name from all_tab_columns where column_name = 'NameID';
```
If you’ve got DBA privileges, you can try this command instead:
```
select table_name from dba_tab_columns where column_name = 'NameID';
``` |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | you can run this query
```
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%Column%' -- write the column you search here
ORDER BY schema_name, table_name;
``` | ```
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME,
ORDINAL_POSITION as org_pos, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH as CML
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME like '%Here Column Name%'
ORDER BY TABLE_NAME
``` |
18,211,645 | Is their any other way or `sql` query to find the database table names with a particular column than shown below,
```
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'NameID'
``` | 2013/08/13 | [
"https://Stackoverflow.com/questions/18211645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2553267/"
] | For Oracle Database. Use the below query:
```
select table_name from all_tab_columns where column_name = 'NameID';
```
If you’ve got DBA privileges, you can try this command instead:
```
select table_name from dba_tab_columns where column_name = 'NameID';
``` | ```
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME,
ORDINAL_POSITION as org_pos, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH as CML
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME like '%Here Column Name%'
ORDER BY TABLE_NAME
``` |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | You are missing the () which capture the contents for use with the groups() (and other) function(s).
```
number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
print number.groups()
```
This however won't work because python does not support the [[:number:]] notation
```
number = re.search(" ([[:digit:]]) ", "te... | Is this what you're looking for?
```
>>> re.findall(r'([0-9])', "test test2 test_ 2 333")
['2', '2', '3', '3', '3']
``` |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | Is this what you're looking for?
```
>>> re.findall(r'([0-9])', "test test2 test_ 2 333")
['2', '2', '3', '3', '3']
``` | .groups() returns values inside of matched parentheses. This regex doesn't have any regions defined by parens so groups returns nothing. You want:
>
>
> >
> >
> > >
> > > m = re.search(" ([0-9]) ", "test test2 test\_ 2 333")
> > > m.groups()
> > > ('2',)
> > >
> > >
> > >
> >
> >
> >
>
>
> |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | The groups() method returns the capture groups. It does *not* return group 0, in case that's what you were expecting. Use parens to indicate capture groups. eg:
```
>>> number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
>>> print number.groups()
('2',)
```
For your second example, Python's re module doesn't r... | Is this what you're looking for?
```
>>> re.findall(r'([0-9])', "test test2 test_ 2 333")
['2', '2', '3', '3', '3']
``` |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | You are missing the () which capture the contents for use with the groups() (and other) function(s).
```
number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
print number.groups()
```
This however won't work because python does not support the [[:number:]] notation
```
number = re.search(" ([[:digit:]]) ", "te... | ```
number = re.search(" [0-9] ", "test test2 test_ 2 333")
print number.group(0)
```
groups() only returns groups 1 and up (a bit odd if you're used to other languages). |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | You are missing the () which capture the contents for use with the groups() (and other) function(s).
```
number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
print number.groups()
```
This however won't work because python does not support the [[:number:]] notation
```
number = re.search(" ([[:digit:]]) ", "te... | .groups() returns values inside of matched parentheses. This regex doesn't have any regions defined by parens so groups returns nothing. You want:
>
>
> >
> >
> > >
> > > m = re.search(" ([0-9]) ", "test test2 test\_ 2 333")
> > > m.groups()
> > > ('2',)
> > >
> > >
> > >
> >
> >
> >
>
>
> |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | The groups() method returns the capture groups. It does *not* return group 0, in case that's what you were expecting. Use parens to indicate capture groups. eg:
```
>>> number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
>>> print number.groups()
('2',)
```
For your second example, Python's re module doesn't r... | You are missing the () which capture the contents for use with the groups() (and other) function(s).
```
number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
print number.groups()
```
This however won't work because python does not support the [[:number:]] notation
```
number = re.search(" ([[:digit:]]) ", "te... |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | ```
number = re.search(" [0-9] ", "test test2 test_ 2 333")
print number.group(0)
```
groups() only returns groups 1 and up (a bit odd if you're used to other languages). | .groups() returns values inside of matched parentheses. This regex doesn't have any regions defined by parens so groups returns nothing. You want:
>
>
> >
> >
> > >
> > > m = re.search(" ([0-9]) ", "test test2 test\_ 2 333")
> > > m.groups()
> > > ('2',)
> > >
> > >
> > >
> >
> >
> >
>
>
> |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | The groups() method returns the capture groups. It does *not* return group 0, in case that's what you were expecting. Use parens to indicate capture groups. eg:
```
>>> number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
>>> print number.groups()
('2',)
```
For your second example, Python's re module doesn't r... | ```
number = re.search(" [0-9] ", "test test2 test_ 2 333")
print number.group(0)
```
groups() only returns groups 1 and up (a bit odd if you're used to other languages). |
994,180 | I am trying to load views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the modules, or any column from the database.
```
load->view($name . '_view');
```
I can't seem to figure a way to load the data for the view based on the 'module' name though.
```
/... | 2009/06/15 | [
"https://Stackoverflow.com/questions/994180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117006/"
] | The groups() method returns the capture groups. It does *not* return group 0, in case that's what you were expecting. Use parens to indicate capture groups. eg:
```
>>> number = re.search(" ([0-9]) ", "test test2 test_ 2 333")
>>> print number.groups()
('2',)
```
For your second example, Python's re module doesn't r... | .groups() returns values inside of matched parentheses. This regex doesn't have any regions defined by parens so groups returns nothing. You want:
>
>
> >
> >
> > >
> > > m = re.search(" ([0-9]) ", "test test2 test\_ 2 333")
> > > m.groups()
> > > ('2',)
> > >
> > >
> > >
> >
> >
> >
>
>
> |
13,918,713 | I have the following View in my program. It has more than one FloorNum, however when it displays it is only displaying first FloorNum. How can I loop it so that it displays values for all FloorNum where LocID=xx
```
<table>
<tr>
<th>
@Html.DisplayNameFor(model => model.LocID)
</th>
... | 2012/12/17 | [
"https://Stackoverflow.com/questions/13918713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1764254/"
] | Have you tried using the [Duration](http://joda-time.sourceforge.net/apidocs/org/joda/time/Duration.html) class?
As an example:
```
Duration myDuration=new Duration(localDateTime.toDateTime(), dateTime);
return Math.abs(myDuration.getMillis())<=30*60*1000;
``` | You could try
```
return Math.abs(localDateTime.getLocalMillis()
- dateTime.toLocalDateTime().getLocalMillis()) < 30 * 60 * 1000;
``` |
57,401,183 | I have a DataFrame and I need to turn one column into multiple columns, and then create another column that index/labels values of the new/multiple columns
```py
import pandas as pd
df = pd.DataFrame({'state':['AK','AK','AK','AK','AL','AL','AL','AL'], 'county':['Cnty1','Cnty1','Cnty2','Cnty2','Cnty3','Cnty3','Cnty4',... | 2019/08/07 | [
"https://Stackoverflow.com/questions/57401183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7901563/"
] | the kind of simple approach here is just to do this:
```
hasOneValue(fg: FormGroup) {
return Object.values(fg.controls).some(fc => !!fc.value);
}
{{ hasValue(form.controls[group]) }}
```
but this is kind of a low performance approach given the function call in template that will evaluate on everychange detection ... | i am using array values so i am did like that..
```
hasFormValue(fg: FormGroup) {
return Object.values(fg.controls).some(fc => Array.isArray(fc.value) ? fc.value.length > 0 : !!fc.value);
}
``` |
37,100 | I'm having my car inspected (VT); its a 2014 BMW 328xi. The dealer is inspecting it and said there is a "heavy amount of rust on the inside of the rear brake rotors," and that they would have to turn them to pass inspection. The car brakes fine, there's no unusual noise or vibration or anything. This seems a bit suspic... | 2016/10/06 | [
"https://mechanics.stackexchange.com/questions/37100",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/3115/"
] | It would suggest to me that the rear brakes aren't contacting the faces of the inside of the rear rotors efficiently. The car is approaching three years old and bear in mind that brake rotors are usually just mild steel. Being under the car they are subjected to all kinds of road salt, water, mud, slush and grime. If y... | im a nys inspector and i fail for rusted contact surfaces all the time. in your case from the pics i would not fail that rotor. BUT i haven't seen the inside of the rotor either. 99% of the time the outside looks alright its not until take a look at the inside you find they are hammered. my rule of thumb is if 50% of 1... |
37,100 | I'm having my car inspected (VT); its a 2014 BMW 328xi. The dealer is inspecting it and said there is a "heavy amount of rust on the inside of the rear brake rotors," and that they would have to turn them to pass inspection. The car brakes fine, there's no unusual noise or vibration or anything. This seems a bit suspic... | 2016/10/06 | [
"https://mechanics.stackexchange.com/questions/37100",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/3115/"
] | It would suggest to me that the rear brakes aren't contacting the faces of the inside of the rear rotors efficiently. The car is approaching three years old and bear in mind that brake rotors are usually just mild steel. Being under the car they are subjected to all kinds of road salt, water, mud, slush and grime. If y... | All brake rotors always rusting because they must be made from high carbon steel. Some coating or painted help but only cosmetic matters. The main point is hardness, and deformation resistance to heat and pressure. Nothing else matters. Brake pads should wear the rotors evenly, no deep scorrings, 1 or 3 thin scoring li... |
37,100 | I'm having my car inspected (VT); its a 2014 BMW 328xi. The dealer is inspecting it and said there is a "heavy amount of rust on the inside of the rear brake rotors," and that they would have to turn them to pass inspection. The car brakes fine, there's no unusual noise or vibration or anything. This seems a bit suspic... | 2016/10/06 | [
"https://mechanics.stackexchange.com/questions/37100",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/3115/"
] | im a nys inspector and i fail for rusted contact surfaces all the time. in your case from the pics i would not fail that rotor. BUT i haven't seen the inside of the rotor either. 99% of the time the outside looks alright its not until take a look at the inside you find they are hammered. my rule of thumb is if 50% of 1... | All brake rotors always rusting because they must be made from high carbon steel. Some coating or painted help but only cosmetic matters. The main point is hardness, and deformation resistance to heat and pressure. Nothing else matters. Brake pads should wear the rotors evenly, no deep scorrings, 1 or 3 thin scoring li... |
53,819 | I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather than have them move the control points of the curves in order to change the curve, I'd like them to be able to move a p... | 2011/07/26 | [
"https://math.stackexchange.com/questions/53819",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/13765/"
] | I think the simplest thing that would work in your application is to show the user 4 special points on the parametric cubic curve, and allow the user to manipulate those 4 special points.
(Allowing the user to pick *any* point on the curve, and move it, makes things more complicated).
I think this is the same as what ... | If your only problem is to find the point at which the tangent line is perpendicular to the direction to the control point and to find the control point that has this property for a given waypoint on the curve, you can try the following. Let's do quadratic curves. If A is the beginning, B is the end (both fixed), C is ... |
53,819 | I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather than have them move the control points of the curves in order to change the curve, I'd like them to be able to move a p... | 2011/07/26 | [
"https://math.stackexchange.com/questions/53819",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/13765/"
] | If your only problem is to find the point at which the tangent line is perpendicular to the direction to the control point and to find the control point that has this property for a given waypoint on the curve, you can try the following. Let's do quadratic curves. If A is the beginning, B is the end (both fixed), C is ... | Ego surfing, I happend by and saw this. Though I see this is quite old. An algorithm for "grabbing a curve" that has off the curve control points is quite simple. I guess I didn't include it in my book. Bummer, but I got it from David Forsey in 2000 on UseNet comp.graphics.algorithms. It pairs the cursor with, IIR the ... |
53,819 | I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather than have them move the control points of the curves in order to change the curve, I'd like them to be able to move a p... | 2011/07/26 | [
"https://math.stackexchange.com/questions/53819",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/13765/"
] | I think the simplest thing that would work in your application is to show the user 4 special points on the parametric cubic curve, and allow the user to manipulate those 4 special points.
(Allowing the user to pick *any* point on the curve, and move it, makes things more complicated).
I think this is the same as what ... | This site: <http://pomax.github.io/bezierinfo/>
describes a way of using de Casteljau's algorithm 'in reverse' to do something like this, they call it 'curve moulding'. It has javascript source code as well.
(de Casteljau uses points on lines (linear interpolation) to draw beziers, not higher degree equations) |
53,819 | I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather than have them move the control points of the curves in order to change the curve, I'd like them to be able to move a p... | 2011/07/26 | [
"https://math.stackexchange.com/questions/53819",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/13765/"
] | I think the simplest thing that would work in your application is to show the user 4 special points on the parametric cubic curve, and allow the user to manipulate those 4 special points.
(Allowing the user to pick *any* point on the curve, and move it, makes things more complicated).
I think this is the same as what ... | Ego surfing, I happend by and saw this. Though I see this is quite old. An algorithm for "grabbing a curve" that has off the curve control points is quite simple. I guess I didn't include it in my book. Bummer, but I got it from David Forsey in 2000 on UseNet comp.graphics.algorithms. It pairs the cursor with, IIR the ... |
53,819 | I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather than have them move the control points of the curves in order to change the curve, I'd like them to be able to move a p... | 2011/07/26 | [
"https://math.stackexchange.com/questions/53819",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/13765/"
] | This site: <http://pomax.github.io/bezierinfo/>
describes a way of using de Casteljau's algorithm 'in reverse' to do something like this, they call it 'curve moulding'. It has javascript source code as well.
(de Casteljau uses points on lines (linear interpolation) to draw beziers, not higher degree equations) | Ego surfing, I happend by and saw this. Though I see this is quite old. An algorithm for "grabbing a curve" that has off the curve control points is quite simple. I guess I didn't include it in my book. Bummer, but I got it from David Forsey in 2000 on UseNet comp.graphics.algorithms. It pairs the cursor with, IIR the ... |
7,846,526 | This is a follow-up question to [my previous question.](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks)
As suggested in [this answer to my previous question](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks/7846289#7846289), I used *ProcessExplorer* to analyze a list of hand... | 2011/10/21 | [
"https://Stackoverflow.com/questions/7846526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62391/"
] | Quoting Mark Russinovich's Inside Windows 2000 (what is now called Windows Internals),
>
> The *section object*, which the Win32 subsystem calls a *file mapping object*, represents a block of memory that two or more processes can share.
>
>
>
So, it's a memory mapped file. They'd leak if you created a memory mapp... | A memory mapped file not associated with a file handle can be used for IPC (communication between process). If you do not use them directly, perhaps one of your unit or component is doing some IPC communication. It is very likely that you use a component to connect to another process, and do not release it as requested... |
7,846,526 | This is a follow-up question to [my previous question.](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks)
As suggested in [this answer to my previous question](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks/7846289#7846289), I used *ProcessExplorer* to analyze a list of hand... | 2011/10/21 | [
"https://Stackoverflow.com/questions/7846526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62391/"
] | Quoting Mark Russinovich's Inside Windows 2000 (what is now called Windows Internals),
>
> The *section object*, which the Win32 subsystem calls a *file mapping object*, represents a block of memory that two or more processes can share.
>
>
>
So, it's a memory mapped file. They'd leak if you created a memory mapp... | It turns out that the problem was in a low-level function that counts the number of threads of the current process. This function used the
```
CreateToolhelp32Snapshot
```
API function which returns a handle, which was not closed properly. I am not sure why this produces a section handle leak though. |
7,846,526 | This is a follow-up question to [my previous question.](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks)
As suggested in [this answer to my previous question](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks/7846289#7846289), I used *ProcessExplorer* to analyze a list of hand... | 2011/10/21 | [
"https://Stackoverflow.com/questions/7846526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62391/"
] | Quoting Mark Russinovich's Inside Windows 2000 (what is now called Windows Internals),
>
> The *section object*, which the Win32 subsystem calls a *file mapping object*, represents a block of memory that two or more processes can share.
>
>
>
So, it's a memory mapped file. They'd leak if you created a memory mapp... | The section handle leak in .net is due to the Microsoft Hotfix KB2670838.
Uninstall this update and the section handle leak issue (Out of Memory) will be fixed.
```
Parameter is not valid. at System.Drawing.Image.get_Width()
at System.Drawing.Image.get_Size()
``` |
7,846,526 | This is a follow-up question to [my previous question.](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks)
As suggested in [this answer to my previous question](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks/7846289#7846289), I used *ProcessExplorer* to analyze a list of hand... | 2011/10/21 | [
"https://Stackoverflow.com/questions/7846526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62391/"
] | A memory mapped file not associated with a file handle can be used for IPC (communication between process). If you do not use them directly, perhaps one of your unit or component is doing some IPC communication. It is very likely that you use a component to connect to another process, and do not release it as requested... | The section handle leak in .net is due to the Microsoft Hotfix KB2670838.
Uninstall this update and the section handle leak issue (Out of Memory) will be fixed.
```
Parameter is not valid. at System.Drawing.Image.get_Width()
at System.Drawing.Image.get_Size()
``` |
7,846,526 | This is a follow-up question to [my previous question.](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks)
As suggested in [this answer to my previous question](https://stackoverflow.com/questions/7846115/how-to-trace-handle-leaks/7846289#7846289), I used *ProcessExplorer* to analyze a list of hand... | 2011/10/21 | [
"https://Stackoverflow.com/questions/7846526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62391/"
] | It turns out that the problem was in a low-level function that counts the number of threads of the current process. This function used the
```
CreateToolhelp32Snapshot
```
API function which returns a handle, which was not closed properly. I am not sure why this produces a section handle leak though. | The section handle leak in .net is due to the Microsoft Hotfix KB2670838.
Uninstall this update and the section handle leak issue (Out of Memory) will be fixed.
```
Parameter is not valid. at System.Drawing.Image.get_Width()
at System.Drawing.Image.get_Size()
``` |
13,499,037 | Its my second day with MS Access, i am trying to update an existing application.
And this includes updating some queries. I never knew it was going to be so complex. the parenthesis issue in Access is really disturbing and i hit the wall, i get the "syntax error" error. My SQL query is something like this :
```
Selec... | 2012/11/21 | [
"https://Stackoverflow.com/questions/13499037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/720793/"
] | The concept of leading zeros is a display concept, not a numerical one. You can put an infinite number of leading zeros on a number without changing its value. Since it's not a numeric concept, it's not stored with the number.
You have to decide how many zeros you want when you convert the number to a string. You coul... | I was getting date strings like `hhmmss` coming across the serial line from my Arduino.
so suppose I got `s = "122041"`; this would be `12:20:41`, however `9am` would be `090000`.
The statement `print "%d" % (s)` provokes a run time error because the 9 is not an octal number and is hence an illegal character.
To fix... |
13,499,037 | Its my second day with MS Access, i am trying to update an existing application.
And this includes updating some queries. I never knew it was going to be so complex. the parenthesis issue in Access is really disturbing and i hit the wall, i get the "syntax error" error. My SQL query is something like this :
```
Selec... | 2012/11/21 | [
"https://Stackoverflow.com/questions/13499037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/720793/"
] | Though the comments above are true regarding 1, 01, and 001, are all the same as an `int`, it can be very helpful in temporal modeling, or sequential movie making to maintain the leading zeros. I do it often to ensure movie clips are in proper order. The easy way to do that is using `zfill()` to ensure the `str` versio... | I was getting date strings like `hhmmss` coming across the serial line from my Arduino.
so suppose I got `s = "122041"`; this would be `12:20:41`, however `9am` would be `090000`.
The statement `print "%d" % (s)` provokes a run time error because the 9 is not an octal number and is hence an illegal character.
To fix... |
28,874,487 | Hi I send a form in my contact.blade.php. I read in order to use the PUT method you have to create a hidden input field which contains the method.
```
@if($do == 'edit')
{{ Form::model($contact, array('method' => 'PUT', 'route' => array('contact.update', $contact->id), 'id' => $do=='edit' ? $do.$contact-... | 2015/03/05 | [
"https://Stackoverflow.com/questions/28874487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2876990/"
] | **Q1**: dd() terminates the script, hence why you are not getting redirected. It's used as a tool to essentially break and examine what is going on.
<http://laravel.com/docs/4.2/helpers>
**Q2**: You will still need a model to feed the `Input::all` data into. Input::all simply fetches the submitted data, it doesn't do... | **Question 1**
when you use DD, it will show the data and stop at that line.
DD
>
> Dump the given variable and end execution of the script.
>
>
>
more information you can read it here [DD](http://laravel.com/docs/4.2/helpers) in DD session.
**Question 2**
I'am not sure about 2nd question but if you want to g... |
25,299,364 | Here is my code:
```
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Main extends JFrame implements ActionListener {
private JPopupMenu popup;
private JMenuItem red, green, blue, resetBtn;
private JButton btn = new JButton("Button");
private Container c;
public Main... | 2014/08/14 | [
"https://Stackoverflow.com/questions/25299364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3585169/"
] | Start by having a read through [Laying Out Components Within a Container](http://docs.oracle.com/javase/tutorial/uiswing/layout/index.html) to understand how Swing controls the size and positioning of your components
The main problem you have is `JFrame` by default uses a `BorderLayout`, which allows the `CENTER` comp... | Swing uses layout managers to position UI elements. By default most swing components use a BorderLayout layout manager. Different layout managers use different heuristics and properties of UI Elements to work out how they should be sized and positioned. The BorderLayout, for example, has 5 distinct regions that corresp... |
20,322,543 | I want my Scala code to take a Scala class as input, compile and execute that class. How can I programmatically invoke a Scala compiler? I will be using the latest Scala version, i.e. 2.10. | 2013/12/02 | [
"https://Stackoverflow.com/questions/20322543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479020/"
] | ToolBox
-------
I think the proper way of invoking the Scala compiler is doing it via Reflection API documented in [Overview](http://docs.scala-lang.org/overviews/reflection/overview.html). Specifically, [Tree Creation via parse on ToolBoxes](http://docs.scala-lang.org/overviews/reflection/symbols-trees-types.html#tre... | The class to be compiled and run (in file test.scala)
```
class Test {
println ("Hello World!")
}
```
// compileAndRun.scala (in same directory)
```
import scala.tools.nsc._
import java.io._
val g = new Global(new Settings())
val run = new g.Run
run.compile(List("test.scala")) // invoke compiler. it cre... |
63,024,278 | I like to pass id then get number of all descendant items. e.g. if pass `10` it will return `2` because there's 2 items `{ id: 7, report: 10 }` and `{ id: 4, report: 7 }`.
```
let Data = [
{ id: 10, report: -1 },
{ id: 7, report: 10 },
{ id: 3, report: -1 },
{ id: 4, report: 7 }
];
```
This code only works f... | 2020/07/21 | [
"https://Stackoverflow.com/questions/63024278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7724980/"
] | Treat each each object finding as a separate task. If one object is found then check if the next object is available or not untill no object is available with that id.
```
// Using recursion
function countItems(id, data){
for (const item of data){
if(item.report == id){
return 1 + countItems(it... | A more declarative approach:
```js
const countItems = (id, data) => {
const datum = data.find(({ report }) => report == id);
return datum ? 1 + countItems(datum.id, data) : 0;
}
``` |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | 2 issues here: **Case sensitivity in table/column names** and **Naming strategy**.
Be careful with what the table name is in your error message, and pay attention to upper and lower case letters. When I faced this problem , my assumption was that table names were case insensitive. At least that's the case when I write... | Finally I solved the problem. I replaced
```
@Table(name = "Artikel")
public class Article {
```
against
```
@Table(name = "Artikel", schema="dbo")
public class Article {
```
But dbo is the default schema for the user so this should work without schema="dbo". Maybe this is some kind of bug? I someone has more inf... |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | Finally I solved the problem. I replaced
```
@Table(name = "Artikel")
public class Article {
```
against
```
@Table(name = "Artikel", schema="dbo")
public class Article {
```
But dbo is the default schema for the user so this should work without schema="dbo". Maybe this is some kind of bug? I someone has more inf... | In case of SQLServer is recomended to map the user to the dedault database to avoid problems with the schema , check this:
<https://stackoverflow.com/a/65601637/7159247> |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | Finally I solved the problem. I replaced
```
@Table(name = "Artikel")
public class Article {
```
against
```
@Table(name = "Artikel", schema="dbo")
public class Article {
```
But dbo is the default schema for the user so this should work without schema="dbo". Maybe this is some kind of bug? I someone has more inf... | For those who use `org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy` as `spring.jpa.hibernate.naming.physical-strategy`: this implementation lowers the case of every identifier, even from `@Table(name="")`!
You can disable this behavior by:
```java
public class CustomCamelCaseToUnderscoresNamingSt... |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | 2 issues here: **Case sensitivity in table/column names** and **Naming strategy**.
Be careful with what the table name is in your error message, and pay attention to upper and lower case letters. When I faced this problem , my assumption was that table names were case insensitive. At least that's the case when I write... | I added this in my properties and it's working:
```
spring.jpa.properties.hibernate.default_schema=dbo
``` |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | I added this in my properties and it's working:
```
spring.jpa.properties.hibernate.default_schema=dbo
``` | In case of SQLServer is recomended to map the user to the dedault database to avoid problems with the schema , check this:
<https://stackoverflow.com/a/65601637/7159247> |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | I added this in my properties and it's working:
```
spring.jpa.properties.hibernate.default_schema=dbo
``` | For those who use `org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy` as `spring.jpa.hibernate.naming.physical-strategy`: this implementation lowers the case of every identifier, even from `@Table(name="")`!
You can disable this behavior by:
```java
public class CustomCamelCaseToUnderscoresNamingSt... |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | 2 issues here: **Case sensitivity in table/column names** and **Naming strategy**.
Be careful with what the table name is in your error message, and pay attention to upper and lower case letters. When I faced this problem , my assumption was that table names were case insensitive. At least that's the case when I write... | In case of SQLServer is recomended to map the user to the dedault database to avoid problems with the schema , check this:
<https://stackoverflow.com/a/65601637/7159247> |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | 2 issues here: **Case sensitivity in table/column names** and **Naming strategy**.
Be careful with what the table name is in your error message, and pay attention to upper and lower case letters. When I faced this problem , my assumption was that table names were case insensitive. At least that's the case when I write... | For those who use `org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy` as `spring.jpa.hibernate.naming.physical-strategy`: this implementation lowers the case of every identifier, even from `@Table(name="")`!
You can disable this behavior by:
```java
public class CustomCamelCaseToUnderscoresNamingSt... |
51,835,828 | I try to read from an existing table in a MSSQL Server 2016 Database. If I validate (hbm2ddl.auto --> validate) I get an Exception "Schema-validation: missing table".
I compared the generated Hibernate SQL Code (if I switch from validate to update with the SQL Code which I can generate in MSSQL Server itself. It looks... | 2018/08/14 | [
"https://Stackoverflow.com/questions/51835828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990094/"
] | For those who use `org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy` as `spring.jpa.hibernate.naming.physical-strategy`: this implementation lowers the case of every identifier, even from `@Table(name="")`!
You can disable this behavior by:
```java
public class CustomCamelCaseToUnderscoresNamingSt... | In case of SQLServer is recomended to map the user to the dedault database to avoid problems with the schema , check this:
<https://stackoverflow.com/a/65601637/7159247> |
28,458,933 | I have been knocking my head to the walls today trying to get the field result from **jQuery Geocomplete** to display **street\_address** but it looks the plugin is not rendering it as a **data-geo=""** onto my form field or anything else!.
Bellow on my HTML i have the fields to pick up the *street name* and another ... | 2015/02/11 | [
"https://Stackoverflow.com/questions/28458933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3417206/"
] | fillDetails: function(result){
"result" object doesn't have "street\_address" in "address\_components", it is set as a separate property of result - "name".
If you just typed in search term and submitted, "name" is being returned. If you click "find" again, "name" is not being returned.
I made a quick "fix" to replace... | As you probably already know, modifying the plugin isn't a great thing to do. There's a simpler way to join elements of the results object. Just bind to the result.
```
$('#geocomplete').geocomplete({
details: '#geo_details',
detailsAttribute: 'data-geo',
types: ['geocode', 'establishment']
}).bind("geocode:resu... |
41,892,006 | Is there a way to make the background of an ionic 2 `<ion-item>` be transparent?
I have tried this CSS but it doesn't make the item transparent:
```
.list .item, .item-content .item-inner .item-block .item-ios
{
background: transparent !important;
}
```
**ADDED CODE**
My HTML looks like this:
```html
<ion-conte... | 2017/01/27 | [
"https://Stackoverflow.com/questions/41892006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726579/"
] | For the ionic 2 item sliding background color you can change the main sass variable
```
$item-ios-sliding-content-background(transprent);
$item-md-sliding-content-background(transprent);
```
In your src -> theme -> variables.scss file
you can find all the variables [here](https://ionicframework.com/docs/v2/themin... | You are using sliding item. Try using the below code
```
.pu-item-list ion-item-sliding{
background: transparent !important;
}
``` |
41,892,006 | Is there a way to make the background of an ionic 2 `<ion-item>` be transparent?
I have tried this CSS but it doesn't make the item transparent:
```
.list .item, .item-content .item-inner .item-block .item-ios
{
background: transparent !important;
}
```
**ADDED CODE**
My HTML looks like this:
```html
<ion-conte... | 2017/01/27 | [
"https://Stackoverflow.com/questions/41892006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726579/"
] | Try this in **Ionic 5** using CSS Custom Properties.
For `ion-item`
```css
ion-item {
--ion-item-background: transparent;
}
```
For `ion-list`
```css
ion-list {
--ion-item-background: transparent;
}
``` | Try this:
`<ion-item color="transparent">
</ion-item>` |
41,892,006 | Is there a way to make the background of an ionic 2 `<ion-item>` be transparent?
I have tried this CSS but it doesn't make the item transparent:
```
.list .item, .item-content .item-inner .item-block .item-ios
{
background: transparent !important;
}
```
**ADDED CODE**
My HTML looks like this:
```html
<ion-conte... | 2017/01/27 | [
"https://Stackoverflow.com/questions/41892006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726579/"
] | Here is a solution in Ionic 4:
**HTML:**
```
<ion-list class="bg-transparent">
<ion-item color="none" lines="none">
Some random text
</ion-item>
<ion-item color="none" lines="none">
Some random text
</ion-item>
</ion-list>
```
**CSS:**
```
.bg-transparent {
background: transparent... | This worked for me.
```
ion-item {
--ion-item-background: transparent;
box-shadow: none !important;
}
ion-list {
--ion-item-background: transparent;
box-shadow: none !important;
}
``` |
41,892,006 | Is there a way to make the background of an ionic 2 `<ion-item>` be transparent?
I have tried this CSS but it doesn't make the item transparent:
```
.list .item, .item-content .item-inner .item-block .item-ios
{
background: transparent !important;
}
```
**ADDED CODE**
My HTML looks like this:
```html
<ion-conte... | 2017/01/27 | [
"https://Stackoverflow.com/questions/41892006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726579/"
] | For the ionic 2 item sliding background color you can change the main sass variable
```
$item-ios-sliding-content-background(transprent);
$item-md-sliding-content-background(transprent);
```
In your src -> theme -> variables.scss file
you can find all the variables [here](https://ionicframework.com/docs/v2/themin... | This worked for me.
```
ion-item {
--ion-item-background: transparent;
box-shadow: none !important;
}
ion-list {
--ion-item-background: transparent;
box-shadow: none !important;
}
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.