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 |
|---|---|---|---|---|---|
25,309,284 | I am making an app where i want to alter the user's input string
Suppose user presses any button and i dont want to display that character in the edittext and it is just saved in variable and the characters entered afterwards are displayed.
Is there any way to hide and save the character pressed by user?? | 2014/08/14 | [
"https://Stackoverflow.com/questions/25309284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3873484/"
] | Your looking for a `TextWatcher#afterTextChanged`
Psuedo code. Be aware,
>
> This method is called to notify you that, somewhere within s, the text has been changed. It is legitimate to make further changes to s from this callback, but be careful not to get yourself into an infinite loop, because any changes you ma... | You can use TextWatcher on edittext.
```
edtText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
// TODO Auto-generated method stub
//find character and replace over here
}
@... |
36,204,075 | I've almost finished my first C# project apart from this last little *'bug*'; when I run my C# *Winforms* application and close it, the process doesn't end in task manager, it becomes a background task.
Here is how I navigate between forms:
```
Settings form = new Settings();
form.Tag = this;
form.Show(this);
Hide(... | 2016/03/24 | [
"https://Stackoverflow.com/questions/36204075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5946390/"
] | The keyword is Operator Precedence .. which defines in what order the operators are evaluated. In the SQL dialects (and actually in every programming language) I know, the AND operator has higher priority than the OR operator. However, order in which the operators are evaluated can be controlled by using parenthesises:... | I'm guessing that the intent of your query is to find records that have a SalesDate greater than or equal to '2015-01-01' AND have a Productname in the set listed AND have one of the productCode fields' values match the sets you've specified. In that case, you need to group all the productCode filters together using pa... |
13,276,298 | If I type:
```
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
```
I am getting:
```
PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configu... | 2012/11/07 | [
"https://Stackoverflow.com/questions/13276298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1292810/"
] | You need to make sure that the `openssl` PHP extension is enabled.
Open your `php.ini` and search for `php_openssl`. You should have something like this.
```
;extension=php_openssl.dll
```
Remove the `;` from the start and then restart Apache. You should now be able to install bundles.
---
Oops, sorry, just notic... | I had that problem, Are you sure about the permissions of the "bundles" folder, my solution was change the permissions. |
13,276,298 | If I type:
```
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
```
I am getting:
```
PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configu... | 2012/11/07 | [
"https://Stackoverflow.com/questions/13276298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1292810/"
] | The output of phpinfo() in Wamp is not the same config that PHP running from commandline is using.
To find the .ini file that PHP in CMD is running type `php --ini`.
Be sure to enable the `extension=php_openssl.dll` in that file. (just remove the semicolon in front). | I had that problem, Are you sure about the permissions of the "bundles" folder, my solution was change the permissions. |
13,276,298 | If I type:
```
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
```
I am getting:
```
PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configu... | 2012/11/07 | [
"https://Stackoverflow.com/questions/13276298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1292810/"
] | This happend to me too. You need enable the extension in two php.ini files in:
1. C:\wamp\bin\php\php5.3.13\php.ini
2. C:\wamp\bin\apache\apache2.2.22\bin\php.ini | I had that problem, Are you sure about the permissions of the "bundles" folder, my solution was change the permissions. |
13,276,298 | If I type:
```
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
```
I am getting:
```
PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configu... | 2012/11/07 | [
"https://Stackoverflow.com/questions/13276298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1292810/"
] | The output of phpinfo() in Wamp is not the same config that PHP running from commandline is using.
To find the .ini file that PHP in CMD is running type `php --ini`.
Be sure to enable the `extension=php_openssl.dll` in that file. (just remove the semicolon in front). | You need to make sure that the `openssl` PHP extension is enabled.
Open your `php.ini` and search for `php_openssl`. You should have something like this.
```
;extension=php_openssl.dll
```
Remove the `;` from the start and then restart Apache. You should now be able to install bundles.
---
Oops, sorry, just notic... |
13,276,298 | If I type:
```
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
```
I am getting:
```
PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configu... | 2012/11/07 | [
"https://Stackoverflow.com/questions/13276298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1292810/"
] | The output of phpinfo() in Wamp is not the same config that PHP running from commandline is using.
To find the .ini file that PHP in CMD is running type `php --ini`.
Be sure to enable the `extension=php_openssl.dll` in that file. (just remove the semicolon in front). | This happend to me too. You need enable the extension in two php.ini files in:
1. C:\wamp\bin\php\php5.3.13\php.ini
2. C:\wamp\bin\apache\apache2.2.22\bin\php.ini |
66,038,334 | VS Code has decided to start adding `^M` characters to the end of any
line I edit.
They're not visible in the editor but `git diff` picks them up.
[](https://i.stack.imgur.com/Do6NT.png)
It wasn't doing this before, so I'm guessing I accidentally bumped so... | 2021/02/04 | [
"https://Stackoverflow.com/questions/66038334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1705378/"
] | That's caused by the different standards used in line endings ("LineFeed" in linux and "CarriageReturn + LineFeed" in Windows).
You can set the encoding you want either by using the command palette (shift+crtl+p) and typing "end of line" *(that's the mnemonic I use)* until you find the command Change End of Line Seque... | Go to Preferences and click on Settings. Than write LF in the search area. Next, click on "Files" under "Text Editor". You will see "Files: Eol". Eol means "End of line". In my case it was "auto", which means VSCode would use either LF or CRLF depending on the files.
The last step: change "auto" to "\n".
[. i' learning spring too and wanted to do certain things to discover the flexibility of spring by letting you implement you own session.yes i don't want to use the hibernateTemplate(for experiment). and i... | 2009/07/30 | [
"https://Stackoverflow.com/questions/1205820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/92213/"
] | Greetings... I think you are making it more complicated than it is. :)
If you are using Spring and Hibernate (which you are), you don't really need to create your own HibernateUtils to manage the session. HibernateUtils is almost required if you don't use Spring, or else it seems redundant. It is tedious, it is one ex... | It seems to be failing to invoke the **MessageDAOImplTest** constructor, but since it is empty, I'm guessing the problem actually lies in the initialization of the member variables. Which line is line 28? You can try moving the initialization logic to the constructor body and step through it with a debugger to pinpoint... |
1,205,820 | in my journey of learning hibernate i came across an article on [hibernate site](https://www.hibernate.org/328.html). i' learning spring too and wanted to do certain things to discover the flexibility of spring by letting you implement you own session.yes i don't want to use the hibernateTemplate(for experiment). and i... | 2009/07/30 | [
"https://Stackoverflow.com/questions/1205820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/92213/"
] | Greetings... I think you are making it more complicated than it is. :)
If you are using Spring and Hibernate (which you are), you don't really need to create your own HibernateUtils to manage the session. HibernateUtils is almost required if you don't use Spring, or else it seems redundant. It is tedious, it is one ex... | The first problem I can see, is that class GenericDaoImpl is supposed to be abstract (according to the hibernate link you provided), and you try to instantiate it in your spring config (by declaring bean 'genericDAOImpl').
You can set the session property directly on the 'messageDao' bean (obviously because MessageDAO... |
22,471,677 | I have a server side function
```
protected void SearchButton_Click(object sender, EventArgs e)
{
}
```
I need to call the same from a client side script
```
function calSearch()
{
// here I need to call the client side script
}
``` | 2014/03/18 | [
"https://Stackoverflow.com/questions/22471677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3404966/"
] | You cant do this, your option is to simulate Click of a button using javascript.
```
<asp:Button ID="savebtn" runat="server" OnClick="savebtn_Click" style="display:none" />
```
HTML markup will look like this:
```
<button id="btnsave" onclick="fncsave()">Save</button>
```
now simulate a Click using JS
```
<scrip... | Assuming Id of your button is **SearchButton** , you can do this
```
function calSearch(){
__doPostBack('SearchButton','');
}
```
Note: There are two underscores before doPostBack() function
[**A better way to do this here**](http://www.aaronkjackson.com/2009/05/calling-a-button-click-from-javascript-in-aspnet/) |
22,471,677 | I have a server side function
```
protected void SearchButton_Click(object sender, EventArgs e)
{
}
```
I need to call the same from a client side script
```
function calSearch()
{
// here I need to call the client side script
}
``` | 2014/03/18 | [
"https://Stackoverflow.com/questions/22471677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3404966/"
] | you can use \_\_doPostBack method
```
function functionName()
{
__doPostBack('ButtonId','OnClick');
}
```
or you can try this....
```
<button id="btnsave" onclick="callfunction()">Save</button>// to all javascript
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" style="display:none" />
<script typ... | Assuming Id of your button is **SearchButton** , you can do this
```
function calSearch(){
__doPostBack('SearchButton','');
}
```
Note: There are two underscores before doPostBack() function
[**A better way to do this here**](http://www.aaronkjackson.com/2009/05/calling-a-button-click-from-javascript-in-aspnet/) |
22,471,677 | I have a server side function
```
protected void SearchButton_Click(object sender, EventArgs e)
{
}
```
I need to call the same from a client side script
```
function calSearch()
{
// here I need to call the client side script
}
``` | 2014/03/18 | [
"https://Stackoverflow.com/questions/22471677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3404966/"
] | You cant do this, your option is to simulate Click of a button using javascript.
```
<asp:Button ID="savebtn" runat="server" OnClick="savebtn_Click" style="display:none" />
```
HTML markup will look like this:
```
<button id="btnsave" onclick="fncsave()">Save</button>
```
now simulate a Click using JS
```
<scrip... | you can use \_\_doPostBack method
```
function functionName()
{
__doPostBack('ButtonId','OnClick');
}
```
or you can try this....
```
<button id="btnsave" onclick="callfunction()">Save</button>// to all javascript
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" style="display:none" />
<script typ... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | One thing which is invariably true is that at this time, the device would be suffocating for some memory (which is usually the reason for GC to most likely get triggered).
As mentioned by almost all authors earlier, this issue surfaces when Android tries to run GC while the app is in background. In most of the cases ... | ```
try {
Class<?> c = Class.forName("java.lang.Daemons");
Field maxField = c.getDeclaredField("MAX_FINALIZE_NANOS");
maxField.setAccessible(true);
maxField.set(null, Long.MAX_VALUE);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace()... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | Broadcast Receivers timeout after 10 seconds. Possibly your doing an asynchronous call (wrong) from a broadcast receiver and 4.3 actually detects it. | It seems like a Android Runtime bug. There seems to be finalizer that runs in its separate thread and calls finalize() method on objects if they are not in the current frame of the stacktrace.
For example following code(created to verify this issue) ended with the crash.
Let's have some cursor that do something in fin... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | I found some slides about this issue.
<http://de.slideshare.net/DroidConTLV/android-crash-analysis-and-the-dalvik-garbage-collector-tools-and-tips>
In this slides the author tells that it seems to be a problem with GC, if there are a lot of objects or huge objects in heap. The slide also include a reference to a sa... | Broadcast Receivers timeout after 10 seconds. Possibly your doing an asynchronous call (wrong) from a broadcast receiver and 4.3 actually detects it. |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | Here is an effective solution from didi to solve this problem, Since this bug is very common and difficult to find the cause, It looks more like a system problem, Why can't we ignore it directly?Of course we can ignore it, Here is the sample code:
```java
final Thread.UncaughtExceptionHandler defaultUncaughtExceptionH... | ```
try {
Class<?> c = Class.forName("java.lang.Daemons");
Field maxField = c.getDeclaredField("MAX_FINALIZE_NANOS");
maxField.setAccessible(true);
maxField.set(null, Long.MAX_VALUE);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace()... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | **Full disclosure** - I'm the author of the previously mentioned talk in TLV DroidCon.
I had a chance to examine this issue across many Android applications, and discuss it with other developers who encountered it - and we all got to the same point: this issue cannot be avoided, only minimized.
I took a closer look a... | I found some slides about this issue.
<http://de.slideshare.net/DroidConTLV/android-crash-analysis-and-the-dalvik-garbage-collector-tools-and-tips>
In this slides the author tells that it seems to be a problem with GC, if there are a lot of objects or huge objects in heap. The slide also include a reference to a sa... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | I found some slides about this issue.
<http://de.slideshare.net/DroidConTLV/android-crash-analysis-and-the-dalvik-garbage-collector-tools-and-tips>
In this slides the author tells that it seems to be a problem with GC, if there are a lot of objects or huge objects in heap. The slide also include a reference to a sa... | We solved the problem by stopping the `FinalizerWatchdogDaemon`.
```
public static void fix() {
try {
Class clazz = Class.forName("java.lang.Daemons$FinalizerWatchdogDaemon");
Method method = clazz.getSuperclass().getDeclaredMethod("stop");
method.setAccessible(true);
Field field ... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | I found some slides about this issue.
<http://de.slideshare.net/DroidConTLV/android-crash-analysis-and-the-dalvik-garbage-collector-tools-and-tips>
In this slides the author tells that it seems to be a problem with GC, if there are a lot of objects or huge objects in heap. The slide also include a reference to a sa... | One thing which is invariably true is that at this time, the device would be suffocating for some memory (which is usually the reason for GC to most likely get triggered).
As mentioned by almost all authors earlier, this issue surfaces when Android tries to run GC while the app is in background. In most of the cases ... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | ```
try {
Class<?> c = Class.forName("java.lang.Daemons");
Field maxField = c.getDeclaredField("MAX_FINALIZE_NANOS");
maxField.setAccessible(true);
maxField.set(null, Long.MAX_VALUE);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace()... | It seems like a Android Runtime bug. There seems to be finalizer that runs in its separate thread and calls finalize() method on objects if they are not in the current frame of the stacktrace.
For example following code(created to verify this issue) ended with the crash.
Let's have some cursor that do something in fin... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | I found some slides about this issue.
<http://de.slideshare.net/DroidConTLV/android-crash-analysis-and-the-dalvik-garbage-collector-tools-and-tips>
In this slides the author tells that it seems to be a problem with GC, if there are a lot of objects or huge objects in heap. The slide also include a reference to a sa... | Here is an effective solution from didi to solve this problem, Since this bug is very common and difficult to find the cause, It looks more like a system problem, Why can't we ignore it directly?Of course we can ignore it, Here is the sample code:
```java
final Thread.UncaughtExceptionHandler defaultUncaughtExceptionH... |
24,021,609 | We're seeing a number of `TimeoutExceptions` in `GcWatcher.finalize, BinderProxy.finalize`, and `PlainSocketImpl.finalize`. 90+% of them happen on Android 4.3. We're getting reports of this from Crittercism from users out in the field.

The error is ... | 2014/06/03 | [
"https://Stackoverflow.com/questions/24021609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82156/"
] | **Full disclosure** - I'm the author of the previously mentioned talk in TLV DroidCon.
I had a chance to examine this issue across many Android applications, and discuss it with other developers who encountered it - and we all got to the same point: this issue cannot be avoided, only minimized.
I took a closer look a... | One thing which is invariably true is that at this time, the device would be suffocating for some memory (which is usually the reason for GC to most likely get triggered).
As mentioned by almost all authors earlier, this issue surfaces when Android tries to run GC while the app is in background. In most of the cases ... |
33,932,605 | I am using a toggling of divs when clicking on links . Each div is having their own form which gets submitted to new page and there i use go back link to go to previous page . But it does not open that particular div which was active on form submitting time. Here's the code i am using
```
<style>
.selected{
color... | 2015/11/26 | [
"https://Stackoverflow.com/questions/33932605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5081992/"
] | I Guess you need to use session or localStorage. I dont think its a best solution but this will work...
In your jquery add this
```
$(document).ready(function(){
var a = localStorage.getItem("active_section");
if(a=='1')
$("#div"+a).show(500).siblings(".itargetDiv").hide(500);
... | You can add specific `classes` to divs so when you click back you will be able to know which divs where clicked |
34,553,910 | I'm having problem in fetching the data using groupBy, I don't where I'm wrong, I have done it many times before, but today I'm wrong some where and I don't know where. Following is the Table from which I want to select the Data:
Table Name: **user\_questions**
```
id | user_id | message | read_status_user | read_sta... | 2016/01/01 | [
"https://Stackoverflow.com/questions/34553910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3892606/"
] | The issue here is that you are calling the `groupBy` function of the query builder object, which is what generates the query for your database. When you call the `->get()` method, the query is executed and a `Collection` object containing the results is returned. What you are looking to use is the `groupBy` method of L... | Try like this
```
$users = DB::table('table_name')
->groupBy('user_id')
->get();
```
after that push that to foreach loop
```
foreach ($users as $user)
{
var_dump($user->name);
}
```
[ordering-grouping-limit-and-offset in Laravel](https://laravel.com/docs/5.1/queries#ordering-grouping-limit-an... |
34,553,910 | I'm having problem in fetching the data using groupBy, I don't where I'm wrong, I have done it many times before, but today I'm wrong some where and I don't know where. Following is the Table from which I want to select the Data:
Table Name: **user\_questions**
```
id | user_id | message | read_status_user | read_sta... | 2016/01/01 | [
"https://Stackoverflow.com/questions/34553910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3892606/"
] | The issue here is that you are calling the `groupBy` function of the query builder object, which is what generates the query for your database. When you call the `->get()` method, the query is executed and a `Collection` object containing the results is returned. What you are looking to use is the `groupBy` method of L... | You've probably found the solution to your problem by now but otherwise, I would suggest to use the relationships. In the User model, I would do:
```
public function questions()
{
return $this->hasMany('App\UserQuestion');
}
```
Then I would get all the users and loop through them to get their messages.
```
$us... |
15,216,640 | I'm getting an error in my heroku logs, but everything is working fine locally. Any ideas?
```
The error: ActionView::Template::Error (undefined method `+' for nil:NilClass)
```
I just have this little method in my user.rb.
```
def full_name
return first_name + " " + last_name
end
```
And here's the herok... | 2013/03/05 | [
"https://Stackoverflow.com/questions/15216640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1535944/"
] | Try to bind the `mouseleave` event to the wrapper div and not to the single element, since it's not hovered on `.controls` `show()` trigger.
Is [**this sample**](http://jsfiddle.net/7rFb6/3/) working for you?
I suggest to add `z-index: 2;` to the `.controls` elements, as well. | I RAPIDLY as hell moved my laser mouse over all of them and they INSTANTLY responded. Seems the issue is related to the limitations of your hardware rather than some specific issue with the software I'm sorry to say. |
31,227,086 | Here is my code:
```
template<typename B>
class cvector{
public:
cvector(){
allocatedSize =0;
actualSize = 0;
buffer = 0;
}
cvector(int k):allocatedSize(k){
}
cvector(int k, const B& initial ):allocatedSize(k), actualSize(k){
buffer = new B[allocatedSize];
for(int... | 2015/07/05 | [
"https://Stackoverflow.com/questions/31227086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2910144/"
] | "Pointer collapsing" doesn´t exist.
No stars will be added or removed or anything else.
```
B* buffer;
buffer = new B[allocatedSize];
```
with B being `int` results in
```
int* buffer;
buffer = new int[allocatedSize];
```
ie. an array of `int`, and you can do whatever you want with the `int`´s.
With B ... | >
> how are these B expressions evaluated if i will put int or int\* ?
>
>
>
For `int`, the `B` will be `int*` and for `int*`, the `B` will be `int**`.
>
> So if i wil use int\* then B\* buffer; will be int\* ? what about buffer
> = new B[allocatedSize]; and `const B& initial` from my code?
>
>
>
No. `B*` w... |
103,608 | I am trying to emulate this plot using Mathematica.
[](https://i.stack.imgur.com/xYbWT.png)
Using the following command, I cannot get the grid points correct.
```
Plot[{x, x^2, x^3}, {x, -4, 4}, Frame -> True, FrameTicks -> All,
FrameTicksSty... | 2016/01/08 | [
"https://mathematica.stackexchange.com/questions/103608",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/36141/"
] | If all you need to do is make the gridlines look better, just change your plot command to have these options `GridLines -> {Range[-4, 4, .5], Range[-32, 32, 4]},GridLinesStyle -> LightGray`. But if you want to fully reproduce that plot, see below.
Something like this is not an exact reproduction
```
Plot[{x, x^2, x^3... | maybe this is a start. Putting the ticks inside is kind'a hard. (ps. the yellow background, is from Mathematica itself. I have to accept yellow color in place of pausing when opening any new notebook or window. So I took the yellow color. Mathematica graphic card bug on windows)
 :
>
> To prevent use... | No, you cannot use `openURL` to programmatically dial USSD codes. Doing so returns `NO`. |
42,038,407 | I have this table in my SQL Server database.
```
CREATE TABLE [dbo].[CODIFICHE_FARMACI]
(
[Principio_Attivo] [nvarchar](250) NULL,
[LanguageID] [nvarchar](50) NOT NULL,
[Codice] [nvarchar](50) NOT NULL,
[Confezione_rif] [nvarchar](1000) NULL,
[ATC] [nvarchar](100) NULL,
[Farmaco] [nvarchar](100... | 2017/02/04 | [
"https://Stackoverflow.com/questions/42038407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2405663/"
] | If you want to select the first 60 `Farmaco` values while showing only distinct values, you can try using `SELECT DISTINCT`:
```
SELECT DISTINCT TOP 60 Farmaco
FROM [dbo].[CODIFICHE_FARMACI]
ORDER BY Farmaco
```
Note that if you really have records that are duplicate then it implies your data is not normalized. Pos... | Try this:
```
SELECT Top 60
a.Farmaco
FROM [dbo].[CODIFICHE_FARMACI] A
GROUP BY A.Farmaco
``` |
42,038,407 | I have this table in my SQL Server database.
```
CREATE TABLE [dbo].[CODIFICHE_FARMACI]
(
[Principio_Attivo] [nvarchar](250) NULL,
[LanguageID] [nvarchar](50) NOT NULL,
[Codice] [nvarchar](50) NOT NULL,
[Confezione_rif] [nvarchar](1000) NULL,
[ATC] [nvarchar](100) NULL,
[Farmaco] [nvarchar](100... | 2017/02/04 | [
"https://Stackoverflow.com/questions/42038407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2405663/"
] | If you want to select the first 60 `Farmaco` values while showing only distinct values, you can try using `SELECT DISTINCT`:
```
SELECT DISTINCT TOP 60 Farmaco
FROM [dbo].[CODIFICHE_FARMACI]
ORDER BY Farmaco
```
Note that if you really have records that are duplicate then it implies your data is not normalized. Pos... | ```
SELECT TOP 60 cf.Farmaco
FROM CODIFICHE_FARMACI AS cf
GROUP BY cf.Farmaco
ORDER BY cf.Farmaco
```
When you use GROUP BY, you'll get a distinct values from the column/s followed by GROUP BY (in your case Farmaco).
First the FROM statement is going be executed, then the retrieved data set now with alias cf from CO... |
37,054,505 | That's right. Unlike most questions, I am not trying to write a regular expression myself. I am trying to *generate* a regular expression (JavaScript flavoured, to be used in `HTML5`'s [`pattern` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-pattern)).
Given an array of numbers, give ... | 2016/05/05 | [
"https://Stackoverflow.com/questions/37054505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1150683/"
] | A proposal with a tree.
Basically it has two parts
1. build tree with an object, where the length of the stringed numbers are the first key, and the rest are properties with one digit and an object.
2. build the regular expression string with iterating over the first key (the length) and start `iter` with the content... | As was pointed out [in the comments](https://stackoverflow.com/questions/37054505/converting-an-array-of-numbers-into-a-suitable-regular-expression?noredirect=1#comment61656803_37054505), I should have had some fun with it -- and I followed your advice and here we are! My solution is probably not as efficient as Nina S... |
37,054,505 | That's right. Unlike most questions, I am not trying to write a regular expression myself. I am trying to *generate* a regular expression (JavaScript flavoured, to be used in `HTML5`'s [`pattern` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-pattern)).
Given an array of numbers, give ... | 2016/05/05 | [
"https://Stackoverflow.com/questions/37054505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1150683/"
] | As an alternative approach, consider using HTML5 `<datalist>`. This can be generated in JavaScript too.
```
var arr = [.......];
var datalist = document.createElement('datalist');
arr.forEach(function(num) {
var option = document.createElement('option');
option.value = num;
datalist.appendChild(option);
}... | As was pointed out [in the comments](https://stackoverflow.com/questions/37054505/converting-an-array-of-numbers-into-a-suitable-regular-expression?noredirect=1#comment61656803_37054505), I should have had some fun with it -- and I followed your advice and here we are! My solution is probably not as efficient as Nina S... |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | The only difference between virtual and abstract, is that an abstract method or propery has no implementation in the class where it has been defined (the abstract class), and that it **must** be overriden in a subclass; whereas a virtual method or property has an implementation in the class where it has been defined, a... | Can you explain what's confusing about it? Properties can be overridden like any other method.
```
public class Base {
public virtual int Prop1 { get { ... } set { ... } }
}
public class Derived : Base {
public override int Prop1 { get { ... } set { ... } }
``` |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | I can understand the confusion. I have been there before, so I'll share how I keep the basic differences straight...
`virtual` vs. `abstract`:
* If a class method (or property) is
marked `virtual`, then it **may be**
overridden using the `override`
keyword, if you choose to *inherit*
(aka *derive*) from that class. ... | Can you explain what's confusing about it? Properties can be overridden like any other method.
```
public class Base {
public virtual int Prop1 { get { ... } set { ... } }
}
public class Derived : Base {
public override int Prop1 { get { ... } set { ... } }
``` |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | The only difference between virtual and abstract, is that an abstract method or propery has no implementation in the class where it has been defined (the abstract class), and that it **must** be overriden in a subclass; whereas a virtual method or property has an implementation in the class where it has been defined, a... | If you declare a method virtual in your base class you can override it in your derived class.
Example
```
class MyBaseClass
{
public virtual void MyOverridableMethod()
{
...
}
}
class MyDerivedClass : MyBaseClass
{
public override void MyOverridableMethod()
{
...
}
}
```
Notic... |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | I can understand the confusion. I have been there before, so I'll share how I keep the basic differences straight...
`virtual` vs. `abstract`:
* If a class method (or property) is
marked `virtual`, then it **may be**
overridden using the `override`
keyword, if you choose to *inherit*
(aka *derive*) from that class. ... | If you declare a method virtual in your base class you can override it in your derived class.
Example
```
class MyBaseClass
{
public virtual void MyOverridableMethod()
{
...
}
}
class MyDerivedClass : MyBaseClass
{
public override void MyOverridableMethod()
{
...
}
}
```
Notic... |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | The only difference between virtual and abstract, is that an abstract method or propery has no implementation in the class where it has been defined (the abstract class), and that it **must** be overriden in a subclass; whereas a virtual method or property has an implementation in the class where it has been defined, a... | Okay, let's say you have a base class, and that that base class is, itself, derived from another class.
```
public class Bar : Foo
{
virtual public int SomeProperty { get; set; }
}
```
What the virtual keyword means is that in a class derived from Bar, you can override SomeProperty to change its behavior:
```
pu... |
606,321 | In MSDN, it is mentioned,
<http://msdn.microsoft.com/en-us/library/9fkccyh4(VS.80).aspx>
I am confused what does this item mean "A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier."?
(this is the 2nd differences between virtual and ab... | 2009/03/03 | [
"https://Stackoverflow.com/questions/606321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/63235/"
] | I can understand the confusion. I have been there before, so I'll share how I keep the basic differences straight...
`virtual` vs. `abstract`:
* If a class method (or property) is
marked `virtual`, then it **may be**
overridden using the `override`
keyword, if you choose to *inherit*
(aka *derive*) from that class. ... | Okay, let's say you have a base class, and that that base class is, itself, derived from another class.
```
public class Bar : Foo
{
virtual public int SomeProperty { get; set; }
}
```
What the virtual keyword means is that in a class derived from Bar, you can override SomeProperty to change its behavior:
```
pu... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | My plan with the server I'm currently playing on, was to do quite a lot of mining using the tinkers construct tools, then use those resources to make magmatic engines, then set up a pump in the nether using phased piping to pump it into a tank in my house, the lava then went from this tank to the magmatic engine which ... | I generally start with wind turbines because their pretty cheap and produce an efficient amount of eletricity to power a few machines |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | To be honest, there are a lot of solutions to this particular one. I'd advise skipping stirling engines altogether, as the amount of energy that they produce is pretty lacking. They're OK for the beginning stages, but past that they're just a nuisance.
For someone who's already got a steel casing, I'd recommend a coup... | My plan with the server I'm currently playing on, was to do quite a lot of mining using the tinkers construct tools, then use those resources to make magmatic engines, then set up a pump in the nether using phased piping to pump it into a tank in my house, the lava then went from this tank to the magmatic engine which ... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | My plan with the server I'm currently playing on, was to do quite a lot of mining using the tinkers construct tools, then use those resources to make magmatic engines, then set up a pump in the nether using phased piping to pump it into a tank in my house, the lava then went from this tank to the magmatic engine which ... | I agree with EU thing but don't agree with it completely. First I am pretty new and i have to use the recipe mode lot but as far as i know Big dig is digging so just keep mining for iron red stone and stuff and then place about 4-8 pumps in the nether at least 4 blocks far away from each other then place 4 or 3 red sto... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | I generally start with wind turbines because their pretty cheap and produce an efficient amount of eletricity to power a few machines | I agree with EU thing but don't agree with it completely. First I am pretty new and i have to use the recipe mode lot but as far as i know Big dig is digging so just keep mining for iron red stone and stuff and then place about 4-8 pumps in the nether at least 4 blocks far away from each other then place 4 or 3 red sto... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | I generally start with wind turbines because their pretty cheap and produce an efficient amount of eletricity to power a few machines | What you're looking for is actually EU, not MJ. Which might cause some confusion with people trying to answer your question.
That said, the Solar Generator and subsequent Advanced Solar Generators are probably where you want to start since Big Dig doesn't have a standard coal powered generator. You can get other gener... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | Stirling engines require a constant source of coal whilst solar generators need a large resource investment as well as energy cubes. But if you have enough for a tinker table & a glove, this should not be too great a problem.
However, another solution that has been overlooked is the use of heat generators. These requ... | What you're looking for is actually EU, not MJ. Which might cause some confusion with people trying to answer your question.
That said, the Solar Generator and subsequent Advanced Solar Generators are probably where you want to start since Big Dig doesn't have a standard coal powered generator. You can get other gener... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | The method i usually use for beginning big-dig is to do a quick mining stint and get some iron and redstone.
From here I build a few Stirling engines and hook these up to a few of the pipes that allow a current to be carried and then this can be hooked up to any other devices you want fairly easily, by just extending ... | What you're looking for is actually EU, not MJ. Which might cause some confusion with people trying to answer your question.
That said, the Solar Generator and subsequent Advanced Solar Generators are probably where you want to start since Big Dig doesn't have a standard coal powered generator. You can get other gener... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | My plan with the server I'm currently playing on, was to do quite a lot of mining using the tinkers construct tools, then use those resources to make magmatic engines, then set up a pump in the nether using phased piping to pump it into a tank in my house, the lava then went from this tank to the magmatic engine which ... | What you're looking for is actually EU, not MJ. Which might cause some confusion with people trying to answer your question.
That said, the Solar Generator and subsequent Advanced Solar Generators are probably where you want to start since Big Dig doesn't have a standard coal powered generator. You can get other gener... |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | Stirling engines require a constant source of coal whilst solar generators need a large resource investment as well as energy cubes. But if you have enough for a tinker table & a glove, this should not be too great a problem.
However, another solution that has been overlooked is the use of heat generators. These requ... | I generally start with wind turbines because their pretty cheap and produce an efficient amount of eletricity to power a few machines |
119,383 | What is the best way to produce energy in the big dig pack considering I have only just started. I have built a Tinker Table and a power gauntlet and I'm looking to produce enough energy to power the glove and what not. I am looking at solar generators, but is this the best method? Also, if you'd like, may you please s... | 2013/06/05 | [
"https://gaming.stackexchange.com/questions/119383",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/47440/"
] | The method i usually use for beginning big-dig is to do a quick mining stint and get some iron and redstone.
From here I build a few Stirling engines and hook these up to a few of the pipes that allow a current to be carried and then this can be hooked up to any other devices you want fairly easily, by just extending ... | I generally start with wind turbines because their pretty cheap and produce an efficient amount of eletricity to power a few machines |
65,219,597 | Assume I have a class `C` that holds resources that need to be closed as member variables.
```
public class C {
private ClosableResource1 closableResource1;
private ClosableResource2 closableResource2;
.....
public C(){
closableResource1 = new ClosableResource1();
closableResource2 = ... | 2020/12/09 | [
"https://Stackoverflow.com/questions/65219597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/677295/"
] | You could use .join() method from pandas.
```
delete = dates.csv (pd.DataFrame)
data1 = mydata.csv (pd.DataFrame)
result = delete.join(data1)
``` | If your two dataframes respect the same order, you can use the join method mentionned by Nik, by default it joins on the index.
Otherwise, if you have a key that you can join your dataframes on, you can specify it like this:
```
joined_data = first_df.join(second_df, on=key)
```
Your first\_df and second\_df should... |
21,294,735 | I'm creating an automatic network configuration script and in it i have
```
#!/bin/bash
sudo rm /etc/default/ifplugd
sudo echo "INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"" > /etc/default/ifplugd
```
however on viewing /etc/default/ifplugd some of the quotes are ... | 2014/01/22 | [
"https://Stackoverflow.com/questions/21294735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1999958/"
] | You need to escape the `"` marks with a `\` prefix, like this:
```
#!/bin/bash
sudo rm /etc/default/ifplugd
sudo echo "INTERFACES=\"\"
HOTPLUG_INTERFACES=\"wlan0 eth0\"
ARGS=\"-q -f -u0 -d10 -w -I\"
SUSPEND_ACTION=\"stop\"" > /etc/default/ifplugd
``` | How about:
```
sudo sh -c 'cat <<END >/etc/default/ifplugd
INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
END
'
```
You don't need to explicitly `rm`, the `>` redirection will truncate the file before writing the new content. |
21,294,735 | I'm creating an automatic network configuration script and in it i have
```
#!/bin/bash
sudo rm /etc/default/ifplugd
sudo echo "INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"" > /etc/default/ifplugd
```
however on viewing /etc/default/ifplugd some of the quotes are ... | 2014/01/22 | [
"https://Stackoverflow.com/questions/21294735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1999958/"
] | You need to escape the `"` marks with a `\` prefix, like this:
```
#!/bin/bash
sudo rm /etc/default/ifplugd
sudo echo "INTERFACES=\"\"
HOTPLUG_INTERFACES=\"wlan0 eth0\"
ARGS=\"-q -f -u0 -d10 -w -I\"
SUSPEND_ACTION=\"stop\"" > /etc/default/ifplugd
``` | A *heredoc* provides an elegant solution:
```
sudo tee << EOF /etc/default/ifplugd
INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
EOF
```
This way, you don't have to manually quote each and every `""` around, and you are not removing the `ifplugd` file, so you won't ... |
21,294,735 | I'm creating an automatic network configuration script and in it i have
```
#!/bin/bash
sudo rm /etc/default/ifplugd
sudo echo "INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"" > /etc/default/ifplugd
```
however on viewing /etc/default/ifplugd some of the quotes are ... | 2014/01/22 | [
"https://Stackoverflow.com/questions/21294735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1999958/"
] | How about:
```
sudo sh -c 'cat <<END >/etc/default/ifplugd
INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
END
'
```
You don't need to explicitly `rm`, the `>` redirection will truncate the file before writing the new content. | A *heredoc* provides an elegant solution:
```
sudo tee << EOF /etc/default/ifplugd
INTERFACES=""
HOTPLUG_INTERFACES="wlan0 eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
EOF
```
This way, you don't have to manually quote each and every `""` around, and you are not removing the `ifplugd` file, so you won't ... |
13,912 | The BBC News article [Isolated lakes found beneath Canadian ice sheet](http://www.bbc.com/news/science-environment-43701375) links to the *open access* Science Advances article [Discovery of a hypersaline subglacial lake complex beneath Devon Ice Cap, Canadian Arctic](http://advances.sciencemag.org/content/4/4/eaar4353... | 2018/04/15 | [
"https://earthscience.stackexchange.com/questions/13912",
"https://earthscience.stackexchange.com",
"https://earthscience.stackexchange.com/users/6031/"
] | Water molecules do interact with microwaves and in microwave ovens that operate at 900MHZ- 2.5GHz. This Radar instrument operates using Very High Freq Radio Waves at 193MHz [[1]](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=5649518).
At lower-than-microwave frequencies, the loss factor is much lower, and as a ... | When electromagnetic waves travel through a medium, it can interact with the medium in question. But that interaction depends on the electric properties of the medium.
Ice, being a dielectric medium, do interact with the incident e.m. wave from the sensor.
The penetration depth is directly proportional to the waveleng... |
18,369,374 | I have a CSV file that is delimited by comma. I want to select by the second column that has the exact `"stringPattern"`
I tried:
```
grep -w "stringPattern"
```
but it still gets any string that contains the string Pattern.
What's the awk way to do this? | 2013/08/21 | [
"https://Stackoverflow.com/questions/18369374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228325/"
] | ```
awk '$2=="stringPattern"' FS=,
```
Note that this is an exact match, not a regex. If you want a regex, you can do:
```
$2 ~ /stringPattern/
``` | ```
grep -E '^[^,]+,stringPattern,' file
``` |
18,369,374 | I have a CSV file that is delimited by comma. I want to select by the second column that has the exact `"stringPattern"`
I tried:
```
grep -w "stringPattern"
```
but it still gets any string that contains the string Pattern.
What's the awk way to do this? | 2013/08/21 | [
"https://Stackoverflow.com/questions/18369374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228325/"
] | ```
awk '$2=="stringPattern"' FS=,
```
Note that this is an exact match, not a regex. If you want a regex, you can do:
```
$2 ~ /stringPattern/
``` | A little late to the party, but there is an additional option to **grep** that could be helpful... :-)
From the **grep** manpage:
>
>
> ```
> -o, --only-matching
> Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
>
> ```
>
>
Lets make a small ... |
18,369,374 | I have a CSV file that is delimited by comma. I want to select by the second column that has the exact `"stringPattern"`
I tried:
```
grep -w "stringPattern"
```
but it still gets any string that contains the string Pattern.
What's the awk way to do this? | 2013/08/21 | [
"https://Stackoverflow.com/questions/18369374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228325/"
] | ```
awk -F, '$2 == "stringPattern" < filename
``` | ```
grep -E '^[^,]+,stringPattern,' file
``` |
18,369,374 | I have a CSV file that is delimited by comma. I want to select by the second column that has the exact `"stringPattern"`
I tried:
```
grep -w "stringPattern"
```
but it still gets any string that contains the string Pattern.
What's the awk way to do this? | 2013/08/21 | [
"https://Stackoverflow.com/questions/18369374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228325/"
] | ```
awk -F, '$2 == "stringPattern" < filename
``` | A little late to the party, but there is an additional option to **grep** that could be helpful... :-)
From the **grep** manpage:
>
>
> ```
> -o, --only-matching
> Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
>
> ```
>
>
Lets make a small ... |
18,369,374 | I have a CSV file that is delimited by comma. I want to select by the second column that has the exact `"stringPattern"`
I tried:
```
grep -w "stringPattern"
```
but it still gets any string that contains the string Pattern.
What's the awk way to do this? | 2013/08/21 | [
"https://Stackoverflow.com/questions/18369374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228325/"
] | A little late to the party, but there is an additional option to **grep** that could be helpful... :-)
From the **grep** manpage:
>
>
> ```
> -o, --only-matching
> Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
>
> ```
>
>
Lets make a small ... | ```
grep -E '^[^,]+,stringPattern,' file
``` |
3,632,645 | Ok so i have the json object returned back from my script and I have all the data but how do I put it on the page. Here is what i have so far
I have a php page which has a loop like this
```
<div class="main-blue">
<div class="blue-items">
<?php foreach ($related as $row_r) { ?>
<div class="item-blue">
<div class="i... | 2010/09/03 | [
"https://Stackoverflow.com/questions/3632645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/223367/"
] | What I think you're talking about is client side templating. Rick Strahl has a good write up on the concept: <http://www.west-wind.com/weblog/posts/509108.aspx> | Your JS.
$.getJSON('function.php?type=piz&count=5', function(data) {
$(data).each(function(key, value) {
$('#contentHere').html(value);
});
});
your html
```
<div id="contentHere"></div>
``` |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | I use alcohol based napkins (aka wet-naps/handy-wipes). They are individually packaged, light in a cinch, come free with a lot of fast food (fried chicken, ribs, etc.) and the packaging is usually pretty robust a protecting the contents from being compromised. I also use them for cleaning my hands, face and pits in the... | I use waxed paper rolled around my dryer lint, I make the lint into a long roll and then wrap it in wax paper twice. Twist it until it is twisted along the full length -about 4 inches or however wide you lint comes out of your dryer trap. They burn with a medium flame and last about 5-8 minutes, sometimes longer if you... |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | I use alcohol based napkins (aka wet-naps/handy-wipes). They are individually packaged, light in a cinch, come free with a lot of fast food (fried chicken, ribs, etc.) and the packaging is usually pretty robust a protecting the contents from being compromised. I also use them for cleaning my hands, face and pits in the... | I have a woodstove. I melt candle stubs and soak small squares of cardboard in the melted wax, then fish them out and cool. It works best to use triple-ply cardboard. They don't take up much room in a baggie, burn well and a couple will do the job. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | I use waxed paper rolled around my dryer lint, I make the lint into a long roll and then wrap it in wax paper twice. Twist it until it is twisted along the full length -about 4 inches or however wide you lint comes out of your dryer trap. They burn with a medium flame and last about 5-8 minutes, sometimes longer if you... | Personally, im rather fond of literal paper with wax. Common paper towel really, but covered in candle wax. Why candle wax? Fond of candles and that little bit left over ended up useful. Stays dry...but smudges everything else. Kept in a pocket I care nothing for. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | I use waxed paper rolled around my dryer lint, I make the lint into a long roll and then wrap it in wax paper twice. Twist it until it is twisted along the full length -about 4 inches or however wide you lint comes out of your dryer trap. They burn with a medium flame and last about 5-8 minutes, sometimes longer if you... | I have a woodstove. I melt candle stubs and soak small squares of cardboard in the melted wax, then fish them out and cool. It works best to use triple-ply cardboard. They don't take up much room in a baggie, burn well and a couple will do the job. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | I used the wax paper on the salt water taffies. I compacted one into a small ball, as small as I could get it, then wrapped others until I got about 10 on in total then lit it and it stayed burning for quite awhile. | Personally, im rather fond of literal paper with wax. Common paper towel really, but covered in candle wax. Why candle wax? Fond of candles and that little bit left over ended up useful. Stays dry...but smudges everything else. Kept in a pocket I care nothing for. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | Just got around to trying out some experiments, and so far it seems to be pretty robust. In most of the things I've tried, it lit immediately and was consumed entirely, no need to re-light (except for the wet test, I'll mention below). I used a lighter, so I can't be certain other methods (flint, bow, etc.) will ignite... | I used the wax paper on the salt water taffies. I compacted one into a small ball, as small as I could get it, then wrapped others until I got about 10 on in total then lit it and it stayed burning for quite awhile. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | Just got around to trying out some experiments, and so far it seems to be pretty robust. In most of the things I've tried, it lit immediately and was consumed entirely, no need to re-light (except for the wet test, I'll mention below). I used a lighter, so I can't be certain other methods (flint, bow, etc.) will ignite... | I use waxed paper rolled around my dryer lint, I make the lint into a long roll and then wrap it in wax paper twice. Twist it until it is twisted along the full length -about 4 inches or however wide you lint comes out of your dryer trap. They burn with a medium flame and last about 5-8 minutes, sometimes longer if you... |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | Just got around to trying out some experiments, and so far it seems to be pretty robust. In most of the things I've tried, it lit immediately and was consumed entirely, no need to re-light (except for the wet test, I'll mention below). I used a lighter, so I can't be certain other methods (flint, bow, etc.) will ignite... | I use alcohol based napkins (aka wet-naps/handy-wipes). They are individually packaged, light in a cinch, come free with a lot of fast food (fried chicken, ribs, etc.) and the packaging is usually pretty robust a protecting the contents from being compromised. I also use them for cleaning my hands, face and pits in the... |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | Just got around to trying out some experiments, and so far it seems to be pretty robust. In most of the things I've tried, it lit immediately and was consumed entirely, no need to re-light (except for the wet test, I'll mention below). I used a lighter, so I can't be certain other methods (flint, bow, etc.) will ignite... | Personally, im rather fond of literal paper with wax. Common paper towel really, but covered in candle wax. Why candle wax? Fond of candles and that little bit left over ended up useful. Stays dry...but smudges everything else. Kept in a pocket I care nothing for. |
1,733 | One thought led to another and I started wondering how effective wax paper would be to bring along as tinder to start a fire. I've seen suggestions of using paraffin in conjunction with other materials as a firestarter, so it seems like paraffin-coated paper could be really useful, as well as really easy and cheap to a... | 2012/06/30 | [
"https://outdoors.stackexchange.com/questions/1733",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/632/"
] | Just got around to trying out some experiments, and so far it seems to be pretty robust. In most of the things I've tried, it lit immediately and was consumed entirely, no need to re-light (except for the wet test, I'll mention below). I used a lighter, so I can't be certain other methods (flint, bow, etc.) will ignite... | I have a woodstove. I melt candle stubs and soak small squares of cardboard in the melted wax, then fish them out and cool. It works best to use triple-ply cardboard. They don't take up much room in a baggie, burn well and a couple will do the job. |
62,460,468 | I'm trying to clean the temp files, but I want skip some files that cointain a certain name. No matter the extension it is.
Tried this way:
```
@echo off
setlocal EnableDelayedExpansion
for /f "eol=: delims=" %F in ('dir "%windir%/temp" /b /a-d * ') do find "TESTE" %F > nul || del "%F"
pause
```
Wanted all files t... | 2020/06/18 | [
"https://Stackoverflow.com/questions/62460468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10000255/"
] | In Discord.js V12 things changed a bit. You can read more about it [here](https://discordjs.guide/additional-info/changes-in-v12.html).
```js
const OnlineMembers = message.guild.members.cache.filter(member => member.presence.status !== "offline").map(member => member.user.username).join(", ");
message.channel.send(Onl... | Are you using discord.js v12?
If so, then replace `message.guild.members.filter` with `message.guild.members.cache.filter`.
Things have changed in version 12. Read more [here](https://discordjs.guide/additional-info/changes-in-v12.html). |
21,716,223 | What is the usage of keys in the appengine datastore: I am new to Appengine, any info on it would be great. | 2014/02/12 | [
"https://Stackoverflow.com/questions/21716223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/524533/"
] | Comparison
==========
To keep things simple, let's assume MySQL stores all the rows of a table in a single file. That way, it can find all the rows by scanning that file.
App Engine's datastore (BigTable) does not have a concept of tables. Each entity (~row in MySQL) is stored separately. *[It can also have a individ... | Please read <https://developers.google.com/appengine/docs/java/datastore/#Java_Entities> ... you may want to delete your question and ask again after you have studied this documentation section.
(This is meant to help you, not complain.) |
32,989,276 | I have a table with 2157 records, let's say with 3 columns (A,B,C) and I know that in column A there are 2154 different values.
Using Tableau Desktop (and its own fenctions) connected to BigQuery, I get these results:
* Count(A) --> 2157
* CountD(A) --> 2180 (more than Count!!!)
If i run the same calculations using ... | 2015/10/07 | [
"https://Stackoverflow.com/questions/32989276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4689391/"
] | If you use the DISTINCT keyword, the function returns the number of distinct values for the specified field. **Note that the returned value for DISTINCT is a statistical approximation and is not guaranteed to be exact - the documentation is also clear about this.**
If you require greater accuracy from COUNT(DISTINCT),... | Try using a calculated field with this formula - RAWSQLAGG\_INT("count(unique(%1))",['Your column'])
Slows down performance, so only use when you really need it. |
13,151,430 | I have web log files and I was having a lot of trouble, being new with perl. I just need a script to find a count of each of the images that were found. I was able to list them but I'm unsure of how to just get a count, say something like "There were x jpgs and x gifs viewed".
My code so far looks like this:
```
use ... | 2012/10/31 | [
"https://Stackoverflow.com/questions/13151430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1787465/"
] | ```
use strict;
use warnings;
use feature qw( say );
use URI qw( );
my $jpegs = 0;
my $gifs = 0;
while (<>) {
chomp;
my ($req, $code) = /^(?:\S+\s+){3}\[[^\]]*\] "([^"]*)"\s*(\S+)/
or next;
$code >= 200 && $code < 300
or next;
my ($meth, $url) = split(' ', $req);
$url = URI->new($url, 'ht... | Try doing this (in a shell) :
```
perl -wane '
END{
print "there\047s was $hash{$_} items for $_\n" for sort keys %hash;
}
$key = $1 if m!.*\.(jpe?g|gif|ico)\b!i;
$hash{$key}++
' filename.txt
```
If you want a real script with the same logic, the `Deparse` module will helps :
```
$ perl -MO... |
13,151,430 | I have web log files and I was having a lot of trouble, being new with perl. I just need a script to find a count of each of the images that were found. I was able to list them but I'm unsure of how to just get a count, say something like "There were x jpgs and x gifs viewed".
My code so far looks like this:
```
use ... | 2012/10/31 | [
"https://Stackoverflow.com/questions/13151430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1787465/"
] | ```
use strict;
use warnings;
use feature qw( say );
use URI qw( );
my $jpegs = 0;
my $gifs = 0;
while (<>) {
chomp;
my ($req, $code) = /^(?:\S+\s+){3}\[[^\]]*\] "([^"]*)"\s*(\S+)/
or next;
$code >= 200 && $code < 300
or next;
my ($meth, $url) = split(' ', $req);
$url = URI->new($url, 'ht... | This is a basic example, but there is probably some Log Parser module in CPAN.
```
use File::Open::OOP qw(oopen);
use Data::Dump qw(dump);
my $fh = oopen 'log';
my %hash;
while ( my $row = $fh->readline ) {
$row =~ s/.*\"GET\ \/.*\.(\w+)\ .*\n$/$1/;
$ext = $row;
$hash{$ext} += 1;
}
dump(%hash);
```
Output for... |
18,283,095 | Writing some code, and when creating an instance of a class, something strange happens with an integer variable I have:
```
function Mat(x, y, spawner) {
this.x = x;
this.y = y;
this.val = 1;
this._spawner = spawner;
this.newborn = true;
this.bornTime = 0;
this.spawnTimer = setInterval("thi... | 2013/08/16 | [
"https://Stackoverflow.com/questions/18283095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426553/"
] | Assuming the most recent version of VB.Net, the modern way to write that is like this:
```
For Each line As String In File.ReadLines(CurrDataPath).Take(14)
MessageBox.Show(line)
Next
``` | I'm not 100% clear on what you're saying. There's nothing in this code that outputs to a file, so what you have to be saying is that when you open the file referenced by "DFile" on line 3 above, that file doesn't have the lines containing "parameter1, 0" and "parameter2, 7.5" in it?
Since we know that's not technicall... |
12,577,728 | I have a small application for which I need to implement tomcat authentication. After digging the internet, I found out Realm is the solution. Also I got how to configure my tomcat-users.xml, server.xml and web.xml.
but it is still not working.
I added this code in my web.xml
```
<security-constraint>
<web-resour... | 2012/09/25 | [
"https://Stackoverflow.com/questions/12577728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/628116/"
] | This question has probably been answered somewhere else on this very website. But here is some help.
1. Don't use BASIC (nor DIGEST) authentication, use FORM authentication. This is why: [How to force Jetty to ask for credentials with BASIC authentication after invalidating the session?](https://stackoverflow.com/ques... | Your XML is invalid - you have two ">" chars
Correct the end of the data from
```
<login-config>
<auth-method>BASIC</auth-method>>
<realm-name>default</realm-name>>
</login-config>
```
to
```
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>default</realm-name>
</login-config>
`... |
12,577,728 | I have a small application for which I need to implement tomcat authentication. After digging the internet, I found out Realm is the solution. Also I got how to configure my tomcat-users.xml, server.xml and web.xml.
but it is still not working.
I added this code in my web.xml
```
<security-constraint>
<web-resour... | 2012/09/25 | [
"https://Stackoverflow.com/questions/12577728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/628116/"
] | This question has probably been answered somewhere else on this very website. But here is some help.
1. Don't use BASIC (nor DIGEST) authentication, use FORM authentication. This is why: [How to force Jetty to ask for credentials with BASIC authentication after invalidating the session?](https://stackoverflow.com/ques... | I happened to stumble on this old question, you have probably solved the problem a long time ago but I thought I could provide an answer anyway.
You have extra `>` characters after `</auth-method>` and `</realm-name>`. Removing those should solve the problem. |
12,577,728 | I have a small application for which I need to implement tomcat authentication. After digging the internet, I found out Realm is the solution. Also I got how to configure my tomcat-users.xml, server.xml and web.xml.
but it is still not working.
I added this code in my web.xml
```
<security-constraint>
<web-resour... | 2012/09/25 | [
"https://Stackoverflow.com/questions/12577728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/628116/"
] | Your XML is invalid - you have two ">" chars
Correct the end of the data from
```
<login-config>
<auth-method>BASIC</auth-method>>
<realm-name>default</realm-name>>
</login-config>
```
to
```
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>default</realm-name>
</login-config>
`... | I happened to stumble on this old question, you have probably solved the problem a long time ago but I thought I could provide an answer anyway.
You have extra `>` characters after `</auth-method>` and `</realm-name>`. Removing those should solve the problem. |
111 | I hope I am not beating a dead horse here, but I wanted to bring this topic up with a different tact ([see other question on climate science](https://sustainability.meta.stackexchange.com/questions/88/climate-change-establishing-a-neutral-scientific-tone)).
A number of articles, notable scientists, and studies have no... | 2013/04/15 | [
"https://sustainability.meta.stackexchange.com/questions/111",
"https://sustainability.meta.stackexchange.com",
"https://sustainability.meta.stackexchange.com/users/404/"
] | Being new to the site I don't really know the boundaries of this SE site but your example question (as it is formulated), for my feeling, belongs more to GeoSciences.SE or Biology.SE.
I don't see the obvious link between the question and living in a sustainable way which may be more focused on a practical approach. Ho... | As your question illustrates, it's very hard for lay people to ask deep meaningful questions on the subject, particularly if their knowledge is based on anti-science blogs; and in the absence of lots of climatologists around here, it will be difficult to gather awesome answers.
The papers you've quoted do not support ... |
111 | I hope I am not beating a dead horse here, but I wanted to bring this topic up with a different tact ([see other question on climate science](https://sustainability.meta.stackexchange.com/questions/88/climate-change-establishing-a-neutral-scientific-tone)).
A number of articles, notable scientists, and studies have no... | 2013/04/15 | [
"https://sustainability.meta.stackexchange.com/questions/111",
"https://sustainability.meta.stackexchange.com",
"https://sustainability.meta.stackexchange.com/users/404/"
] | Being new to the site I don't really know the boundaries of this SE site but your example question (as it is formulated), for my feeling, belongs more to GeoSciences.SE or Biology.SE.
I don't see the obvious link between the question and living in a sustainable way which may be more focused on a practical approach. Ho... | The description of this site as of the writing of this answer is, "For folks dedicated to a lifestyle that can be maintained indefinitely without depleting available resources."
>
> Where does climate science fit in within the site?
>
>
>
Climate science should inform such individuals that would join this site ho... |
111 | I hope I am not beating a dead horse here, but I wanted to bring this topic up with a different tact ([see other question on climate science](https://sustainability.meta.stackexchange.com/questions/88/climate-change-establishing-a-neutral-scientific-tone)).
A number of articles, notable scientists, and studies have no... | 2013/04/15 | [
"https://sustainability.meta.stackexchange.com/questions/111",
"https://sustainability.meta.stackexchange.com",
"https://sustainability.meta.stackexchange.com/users/404/"
] | The description of this site as of the writing of this answer is, "For folks dedicated to a lifestyle that can be maintained indefinitely without depleting available resources."
>
> Where does climate science fit in within the site?
>
>
>
Climate science should inform such individuals that would join this site ho... | As your question illustrates, it's very hard for lay people to ask deep meaningful questions on the subject, particularly if their knowledge is based on anti-science blogs; and in the absence of lots of climatologists around here, it will be difficult to gather awesome answers.
The papers you've quoted do not support ... |
746,424 | Two days ago, I asked why free presentations? and frankly I did not get a convincing answer.
I am trying here to ask the question in a different way :
We know that a group can be defined by a permutation or matrix representation.
What is the point of a presentation (I mean here free presentations) for which all the pro... | 2014/04/09 | [
"https://math.stackexchange.com/questions/746424",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/135186/"
] | Here are two reasons why group presentations are important. Firstly, they often provide the most compact and precise definition of the group. For example, when classifying groups of small order, they provide a uniform and concise method of description. For example, one of the groups of order $12$ has presentation $\lan... | **Note:** The following answer was written before the second point was added to the question. Therefore, it only answers the question in the first paragraph.
As I said in [my answer](https://math.stackexchange.com/questions/742543/why-free-presentations/743275#743275) to that question, the presentation is, in a certai... |
27,353,008 | I have designed a website like this:
```
<section>
<div class="container-fluid container-full">
<div class="row"> <!-- Row 1-->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
<div class="first-row">Content</div>
</div>
</div>
</div>
</section>
<section>
<div class="container-fluid">
<di... | 2014/12/08 | [
"https://Stackoverflow.com/questions/27353008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1034701/"
] | The issue is with the 2 rows inside your Row 2 and Row 3, not with the "main" rows, actually.
Have a look at this:
```
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">Content</div>
<div class="col-xs-12 col-sm-12 col-md-8">Content</div>
```
This tells twitter bootstrap to put the 2nd Content row on its own line if... | The problem was with height of rows.
I modified CSS
```
.first-row{
background:url(../images/top-bg.jpg) no-repeat center top ;
max-height: 420px !important;
margin: 0 auto;
width: 100%
box-shadow: 1;
}
.second-row{
width: 80%;
min-height: 130px;
}
@media only screen and (min-width: 701px... |
24,096 | In Adi Shankaracharya's Advaita Vedanta, Nirguna Brahman (Brahman without form or qualities) is the Para Brahman (Supreme Brahman) according to [this Wikipedia article](https://en.wikipedia.org/wiki/Para_Brahman#Advaita_Vedanta_-_Nirguna_Brahman). This is the Ultimate Reality of Advaita.
Meanwhile in Buddhist philosop... | 2018/02/06 | [
"https://hinduism.stackexchange.com/questions/24096",
"https://hinduism.stackexchange.com",
"https://hinduism.stackexchange.com/users/4596/"
] | If sunyata is absolutism, then it can be argued that Sankara’s Nirguna Brahman is identical to sunyata. Numerous Buddologists, both past and contemporary would agree. David Loy states that the Mahayana sunyata corresponds to the Vedantic Brahman. (Loy, David 1997. *Non-Duality: A Study in Comparative Philosophy*, p. 21... | First: What did Adi Shankaracharya teach?
-----------------------------------------
We can see this from Adi Shankaracharya's own compositions:
>
> ब्रह्म सत्यं जगन्मिथ्या जीवो ब्रह्मैव नापरः
>
> brahma satyam jaganmithyA jIvo brahmaiva nAparah
>
> Brahman is real, the universe is an illusion. The jiva is Br... |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | Models and Controllers are compiled source files. They get compiled into a DLL, and as such, they can literally be put anywhere in the project and it won't make a difference. These classes are have no concept of their location in the filesystem because they don't exist in the filesystem once compiled.
Views, on the ot... | View's named is According to name of Controller, you should follow the rule.
If you wanna it create `Views/Admin/Create`, then your `CustomerController.cs` should be named `AdminController.cs`. |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | following steps worked for me,
1. Create sub-folders as you want in `Views` (root folder). in my case it was Finance & Production.
2. Simply drag automatically created folders in `Views` in to appropriate Sub-folders. in my case `Bank` & `Budget` in to `Finance` and `Process` in to `Production`
3. While you return a v... | Models and Controllers are compiled source files. They get compiled into a DLL, and as such, they can literally be put anywhere in the project and it won't make a difference. These classes are have no concept of their location in the filesystem because they don't exist in the filesystem once compiled.
Views, on the ot... |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | Models and Controllers are compiled source files. They get compiled into a DLL, and as such, they can literally be put anywhere in the project and it won't make a difference. These classes are have no concept of their location in the filesystem because they don't exist in the filesystem once compiled.
Views, on the ot... | For future visitors: use areas.
[Walkthrough: Organizing an ASP.NET MVC Application using Areas](https://msdn.microsoft.com/en-us/library/ee671793%28v=vs.100%29.aspx) |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | following steps worked for me,
1. Create sub-folders as you want in `Views` (root folder). in my case it was Finance & Production.
2. Simply drag automatically created folders in `Views` in to appropriate Sub-folders. in my case `Bank` & `Budget` in to `Finance` and `Process` in to `Production`
3. While you return a v... | View's named is According to name of Controller, you should follow the rule.
If you wanna it create `Views/Admin/Create`, then your `CustomerController.cs` should be named `AdminController.cs`. |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | For future visitors: use areas.
[Walkthrough: Organizing an ASP.NET MVC Application using Areas](https://msdn.microsoft.com/en-us/library/ee671793%28v=vs.100%29.aspx) | View's named is According to name of Controller, you should follow the rule.
If you wanna it create `Views/Admin/Create`, then your `CustomerController.cs` should be named `AdminController.cs`. |
13,062,235 | I am working on ASP.NET MVC 3 project. I want to divide controllers, models, and views in sub-folders for the sake of simplicity. I able to do it with controllers and models but when i create a view it creates automatically to root folder `Views`, Is there any way to solve this problem?
eg. I can create
model class ... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13062235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752437/"
] | following steps worked for me,
1. Create sub-folders as you want in `Views` (root folder). in my case it was Finance & Production.
2. Simply drag automatically created folders in `Views` in to appropriate Sub-folders. in my case `Bank` & `Budget` in to `Finance` and `Process` in to `Production`
3. While you return a v... | For future visitors: use areas.
[Walkthrough: Organizing an ASP.NET MVC Application using Areas](https://msdn.microsoft.com/en-us/library/ee671793%28v=vs.100%29.aspx) |
20,672,198 | I've set up JMockit for use with some JUnit tests also using Robolectric, but I am getting errors. I'm primarily using maven to run the tests.
When I run the test with **mvn test** and the javaagent configured as specified [here](http://jmockit.googlecode.com/svn/trunk/www/tutorial/RunningTests.html) I get the usual e... | 2013/12/19 | [
"https://Stackoverflow.com/questions/20672198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16487/"
] | I have run into the same issue, and the problem seems to be that the Robolectric test runner interferes with the JMockit-JUnit integration. See [this](https://groups.google.com/forum/#!topic/jmockit-users/OL3Zx3qw91U). | SYMPTOM:
Error when run maven with Jmockit and junit into java project.
MESSAGE:
JMockit wasn't properly initialized; check that jmockit.jar precedes junit.jar in the classpath (if using JUnit; if not, check the documentation)
CAUSES:
Wrong configured in POM.xml file. Jmockit dependencyis is after of junit.
SOLUTIO... |
32,899,609 | Is there anyway to use the Django shell to modify a field value? I can create, delete, and query models, but I don't know how to alter existing field values.
```
class Game(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerFiel... | 2015/10/02 | [
"https://Stackoverflow.com/questions/32899609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5131575/"
] | You should save the changes,
```
game = Game.objects.get(name="testb")
game.likes = 5
game.save()
``` | Calling `Game.objects.get()` retrieves the data from the database.
When you execute the statement `Game.objects.get(name='test').likes = 5`, you are retrieving the data from the database, creating a python object, and then setting a field on that object in memory.
Then, when you run `Game.objects.get(name='test')` ag... |
32,899,609 | Is there anyway to use the Django shell to modify a field value? I can create, delete, and query models, but I don't know how to alter existing field values.
```
class Game(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerFiel... | 2015/10/02 | [
"https://Stackoverflow.com/questions/32899609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5131575/"
] | You should save the changes,
```
game = Game.objects.get(name="testb")
game.likes = 5
game.save()
``` | If u need change all fields for all items, just try this:
```
from shop.models import Product
Product.objects.filter(recommend=True).update(recommend=False)
```
U can use this in Django Shell. Have a nice time :) |
32,899,609 | Is there anyway to use the Django shell to modify a field value? I can create, delete, and query models, but I don't know how to alter existing field values.
```
class Game(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerFiel... | 2015/10/02 | [
"https://Stackoverflow.com/questions/32899609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5131575/"
] | Calling `Game.objects.get()` retrieves the data from the database.
When you execute the statement `Game.objects.get(name='test').likes = 5`, you are retrieving the data from the database, creating a python object, and then setting a field on that object in memory.
Then, when you run `Game.objects.get(name='test')` ag... | If u need change all fields for all items, just try this:
```
from shop.models import Product
Product.objects.filter(recommend=True).update(recommend=False)
```
U can use this in Django Shell. Have a nice time :) |
17,067,849 | I've created a method that makes a black bar appear on the side of an image on mouseover. It's all well and good when it's only one image but when applied to multiple images the black bar appears on both images in the event of mouse over.
Is it possible to to get each image to act independently from each other so tha... | 2013/06/12 | [
"https://Stackoverflow.com/questions/17067849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225755/"
] | The scope of the mouseenter/leave is the current element so you can use `$(this)`. You can than use find, to get element you are trying to show/hide.
```
imgEl.hover(function() {
$(this).find(".img_menu").css("visibility", "visible");
}, function() {
$(this).find(".img_menu").css("visibility",... | Not sure why you're doing this all in js, can you use CSS? Just remove
```
imgEl.hover(function() {
$(menuEl).css("visibility", "visible");
}, function() {
$(menuEl).css("visibility", "hidden");
});
```
and you can add
```
.img_wrapper:hover .img_menu {
visibility: visible;
}
```
... |
17,067,849 | I've created a method that makes a black bar appear on the side of an image on mouseover. It's all well and good when it's only one image but when applied to multiple images the black bar appears on both images in the event of mouse over.
Is it possible to to get each image to act independently from each other so tha... | 2013/06/12 | [
"https://Stackoverflow.com/questions/17067849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225755/"
] | you can do
```
$.fn.panzoom = function() {
return this.each(function(){
var $this = $(this);
$this.imagesLoaded(function(){
$this.wrap('<div class="img_wrapper" />');
var imgEl = $this.parent(".img_wrapper");
imgEl.width($this.width());
imgEl.height($this.height());
... | The scope of the mouseenter/leave is the current element so you can use `$(this)`. You can than use find, to get element you are trying to show/hide.
```
imgEl.hover(function() {
$(this).find(".img_menu").css("visibility", "visible");
}, function() {
$(this).find(".img_menu").css("visibility",... |
17,067,849 | I've created a method that makes a black bar appear on the side of an image on mouseover. It's all well and good when it's only one image but when applied to multiple images the black bar appears on both images in the event of mouse over.
Is it possible to to get each image to act independently from each other so tha... | 2013/06/12 | [
"https://Stackoverflow.com/questions/17067849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225755/"
] | The scope of the mouseenter/leave is the current element so you can use `$(this)`. You can than use find, to get element you are trying to show/hide.
```
imgEl.hover(function() {
$(this).find(".img_menu").css("visibility", "visible");
}, function() {
$(this).find(".img_menu").css("visibility",... | People beat me to it but heres my answer, creating a plugin here is the ideal way to go!
```
$.fn.panelize = function (initState) {
// set a default show state
var show = initState || false;
var animation = {
duration: 300,
easing: 'linear',
};
return this.each(function() {
_this = $(this);
... |
17,067,849 | I've created a method that makes a black bar appear on the side of an image on mouseover. It's all well and good when it's only one image but when applied to multiple images the black bar appears on both images in the event of mouse over.
Is it possible to to get each image to act independently from each other so tha... | 2013/06/12 | [
"https://Stackoverflow.com/questions/17067849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225755/"
] | you can do
```
$.fn.panzoom = function() {
return this.each(function(){
var $this = $(this);
$this.imagesLoaded(function(){
$this.wrap('<div class="img_wrapper" />');
var imgEl = $this.parent(".img_wrapper");
imgEl.width($this.width());
imgEl.height($this.height());
... | Not sure why you're doing this all in js, can you use CSS? Just remove
```
imgEl.hover(function() {
$(menuEl).css("visibility", "visible");
}, function() {
$(menuEl).css("visibility", "hidden");
});
```
and you can add
```
.img_wrapper:hover .img_menu {
visibility: visible;
}
```
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.