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 |
|---|---|---|---|---|---|
24,682,070 | Hello I have been constructing a program that will allow me to parse a text file and return a string of char values corresponding to each word in the file. However, I have not been able to extract the chars from a list of type: const char\*. Here is my .cpp and .h files:
.cpp file
```
list<char> GetTickers::getTicker... | 2014/07/10 | [
"https://Stackoverflow.com/questions/24682070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3451026/"
] | >
> What implicit object does EL come with?
>
>
>
all attributes set in request, page context, session, servlet context are impliticly available
plus request parameter map available via `${param.paramName}` | I will edit my answer and add some better explanations:
There are 11 implicit objects. 10 of them are simply Maps and of those 10, 4 of them are sessions:
```
pageScope
requestScope
sessionScope
applicationScope
```
Then there comes parameters:
```
param
paramValues
```
These provide access to the request param... |
63,623,207 | I am looking for a way to have two separate operations / functions in the same time
a button ON and OFF
and a button who affect the volume of my video (turn on and off)
I have two scripts but don't know how to make the both in one.
this is the 2 scripts:
```
<button onclick="toggleMute();">Volume</button>
<input ... | 2020/08/27 | [
"https://Stackoverflow.com/questions/63623207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13969124/"
] | You can use python one-line list comprehension with condition. In your case you can have something like this.
```
[line for line in self.order_line if condition]
``` | i changed the search on sale.order.line object with filter
```
for line in self.order_line.filtered(lambda l: not l.no_discount_field):
```
then its worked well |
90,556 | The question I have in mind is: **If we place a conductor (arbitrary shape) of total charge zero in a uniform external electric field $\textbf{E}\_0$, does it experience any net force? Why (not)?**
Now I will discuss the context of the question. I am working on Griffiths *Introduction to Electrodynamics, Fourth Editio... | 2013/12/17 | [
"https://physics.stackexchange.com/questions/90556",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/35948/"
] | I don't think it is that tough to analyse. If a conductor is present in a uniform electric field then there will be redistribution of charges to counter Electric Field inside the conductor (so that the net field inside the conductor is zero). However in uniform electric field this redistribution of charges will not cau... | The force on the conductor must be zero. We will solve the problem in two steps. First, we will write down the external force $d\mathbf{F}$ on each infinitessimal charge $dq$ in terms of the external field $\mathbf{E}\_{ext}$ and then we will integrate $d\mathbf{F}$ to get the total force.
Note we need only consider ... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | I was actually trying to solve this problem for myself today and found this nice little Github gist:
<https://gist.github.com/dergachev/4627207>
Uses Quicktime to save a video, ffmpeg to convert the video, and gifsicle to compress/clean the final gif.
It uses the command line, so it might not be great for your use c... | Since this question got a lot of attention, I feel that I should share my favorite screen recording software which isn't free but fulfill all other requirements and has many other useful features: [TechSmith Camtasia](http://www.techsmith.com/camtasia.html)
* [Mac](http://www.techsmith.com/camtasia-mac-features.html) ... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | You can use [Quickcast](http://Quickcast.io):
* free and [open-source](https://github.com/QuickCast/QuickCast)
* up to 10 seconds and under 300px height/width
* as of now Mac only
* can publish .gif on QuickCast website directly | I recommend [Kap](https://getkap.co/), an open-source screen recorder built with "web technology."
It seems it only supports macOS as of now, but you might be able to add Windows support by a simple PR, as it is using JS.
Kap supports exporting to a variety of file formats, trimming the video before export, optionall... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | You can use [Recordit](http://recordit.co/):
* free (but not open-source)
* make a gif that lasts for about 10 seconds (up to 5 minutes for free)
* 'on-the-spot' video maker and converter
* Needs at least Mac OS X 10.8, Windows 7
 | I recommend [Kap](https://getkap.co/), an open-source screen recorder built with "web technology."
It seems it only supports macOS as of now, but you might be able to add Windows support by a simple PR, as it is using JS.
Kap supports exporting to a variety of file formats, trimming the video before export, optionall... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | [ScreenToGif](https://screentogif.codeplex.com/)
================================================
### General
* Free & [Source code available](https://screentogif.codeplex.com/SourceControl/latest)
* Simple to use
* Portable
* 9 MB small
* No limitations such as time or file size limit
[
* [Mac](http://www.techsmith.com/camtasia-mac-features.html) ... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | I was actually trying to solve this problem for myself today and found this nice little Github gist:
<https://gist.github.com/dergachev/4627207>
Uses Quicktime to save a video, ffmpeg to convert the video, and gifsicle to compress/clean the final gif.
It uses the command line, so it might not be great for your use c... | [ScreenToGif](https://screentogif.codeplex.com/)
================================================
### General
* Free & [Source code available](https://screentogif.codeplex.com/SourceControl/latest)
* Simple to use
* Portable
* 9 MB small
* No limitations such as time or file size limit
[![enter image description her... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | Since this question got a lot of attention, I feel that I should share my favorite screen recording software which isn't free but fulfill all other requirements and has many other useful features: [TechSmith Camtasia](http://www.techsmith.com/camtasia.html)
* [Mac](http://www.techsmith.com/camtasia-mac-features.html) ... | Quite weird that no one has mentioned [Giphy Capture](https://giphy.com/apps/giphycapture)
It is really cool and you can do both, record video or create gif. |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | [ScreenToGif](https://screentogif.codeplex.com/)
================================================
### General
* Free & [Source code available](https://screentogif.codeplex.com/SourceControl/latest)
* Simple to use
* Portable
* 9 MB small
* No limitations such as time or file size limit
[, an open-source screen recorder built with "web technology."
It seems it only supports macOS as of now, but you might be able to add Windows support by a simple PR, as it is using JS.
Kap supports exporting to a variety of file formats, trimming the video before export, optionall... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | I was actually trying to solve this problem for myself today and found this nice little Github gist:
<https://gist.github.com/dergachev/4627207>
Uses Quicktime to save a video, ffmpeg to convert the video, and gifsicle to compress/clean the final gif.
It uses the command line, so it might not be great for your use c... | You can use [Quickcast](http://Quickcast.io):
* free and [open-source](https://github.com/QuickCast/QuickCast)
* up to 10 seconds and under 300px height/width
* as of now Mac only
* can publish .gif on QuickCast website directly |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | I personally use and recommend [**LICEcap**](http://www.cockos.com/licecap/).

* Great interface: select a region of the screen and set the frame rate and destination for the gif.
* No time limit on length of gif.
* OS X and Windows (can use Wine ... | Since I don't prefer any of the other solutions since they don't have the specific features I want, [I made my own](https://github.com/Azeirah/screencap) (currently command-line only) program specifically for quickly capturing .gifs and .webm files for the web.
Features
--------
* Follows the mouse or captures fullsc... |
7,019 | I'm looking for a *free* program that allows me to record my screen and save the 'video' as an animated GIF.
This will be useful when making instructions / steps to do something.
Requirements:
* free (preferably open-source)
* make a GIF that lasts for about 10 seconds
* runs on Snow Leopard - 10.6.8 (if possible, ... | 2014/06/17 | [
"https://softwarerecs.stackexchange.com/questions/7019",
"https://softwarerecs.stackexchange.com",
"https://softwarerecs.stackexchange.com/users/2675/"
] | Since I don't prefer any of the other solutions since they don't have the specific features I want, [I made my own](https://github.com/Azeirah/screencap) (currently command-line only) program specifically for quickly capturing .gifs and .webm files for the web.
Features
--------
* Follows the mouse or captures fullsc... | Quite weird that no one has mentioned [Giphy Capture](https://giphy.com/apps/giphycapture)
It is really cool and you can do both, record video or create gif. |
624,436 | Without getting into the discussion of the merits or otherwise of the EntLib logging block, is there any way that I can change it's configuration at runtime?
For example, I have the block configured to log General events to a flat file, and Critical events to the event log.
Is there any way to change it to log Gene... | 2009/03/08 | [
"https://Stackoverflow.com/questions/624436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] | It’s actually pretty easy to achieve, just follow these steps:
Place the Enterprise Library configuration in a separate file
```
<configuration>
<configSections>
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Mic... | I know you can open the ConfigurationFileMap and change configuration for the logger. I am not sure, however, if this will solve the problem in a way that you would desire, as saving the configuration file resets the application and you would have to set it back to default. This is a lot of work to simply hook up a con... |
21,639,441 | I have this code in my Web API app to write to a CSV file:
```
private void SaveToCSV(InventoryItem invItem, string dbContext)
{
string csvHeader = "id,pack_size,description,vendor_id,department,subdepartment,unit_cost,unit_list,open_qty,UPC_code,UPC_pack_size,vendor_item,crv_id";
int dbContextAsInt = 0;
... | 2014/02/07 | [
"https://Stackoverflow.com/questions/21639441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/875317/"
] | In the case of the IIS folder the application has rights to write in there. I suggest to write files to the App\_Data folder.
When you want to save files outside the IIS application folder you have to give the service account of the IIS application pool (I think it by default is NETWORKSERVICE) the appropriate rights ... | Thanks to Patrick Hofman; this is the exact code I am using, and it is saved to the project's App\_Data folder:
```
public static string appDataFolder = HttpContext.Current.Server.MapPath("~/App_Data/");
. . .
string csvFilename = string.Format("Platypus{0}.csv", dbContextAsInt);
string fullSavePath = string.Format("{... |
9,571,953 | I am using google API to autocomplete feature of user address. and its working fine.
But now I want to use Nokia OVI Map for address autocomplete feature.
Please help me how to implement the same.
I am using below code
```
<div id="customSearchBox" class="main-search">
<span class ="caption">Search For Place... | 2012/03/05 | [
"https://Stackoverflow.com/questions/9571953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/482058/"
] | `getchar()` returns an `int`.
You assign that `int` to a variable of type `char` thereby losing information. **Don't do that.**
Declare `temp` as int, and go get rid of the cast. | make the following corrections:
```
- outfile = fopen(argv[1], "w");
+ outfile = fopen(argv[1], "wb");
- c = (unsigned char) temp;
+ c = (unsigned char) (char) temp;
``` |
9,571,953 | I am using google API to autocomplete feature of user address. and its working fine.
But now I want to use Nokia OVI Map for address autocomplete feature.
Please help me how to implement the same.
I am using below code
```
<div id="customSearchBox" class="main-search">
<span class ="caption">Search For Place... | 2012/03/05 | [
"https://Stackoverflow.com/questions/9571953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/482058/"
] | There are several things that need to get fixed:
1) Reopen STDIN as binary. `freopen(NULL, "rb", stdin);`
2) Open the outfile as: fopen(argv[1], "wb");
3) temp needs to be of type *int*. | make the following corrections:
```
- outfile = fopen(argv[1], "w");
+ outfile = fopen(argv[1], "wb");
- c = (unsigned char) temp;
+ c = (unsigned char) (char) temp;
``` |
9,571,953 | I am using google API to autocomplete feature of user address. and its working fine.
But now I want to use Nokia OVI Map for address autocomplete feature.
Please help me how to implement the same.
I am using below code
```
<div id="customSearchBox" class="main-search">
<span class ="caption">Search For Place... | 2012/03/05 | [
"https://Stackoverflow.com/questions/9571953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/482058/"
] | `getchar()` returns an `int`.
You assign that `int` to a variable of type `char` thereby losing information. **Don't do that.**
Declare `temp` as int, and go get rid of the cast. | There are several things that need to get fixed:
1) Reopen STDIN as binary. `freopen(NULL, "rb", stdin);`
2) Open the outfile as: fopen(argv[1], "wb");
3) temp needs to be of type *int*. |
73,937 | My company has a suite of mature (roots go back 15+ years), computationally intensive applications (simulations) which we use to do consulting work. I work on the simulation/consulting side of the house, not the software development side. I recently learned about a particular feature of the architecture which concerns ... | 2011/05/05 | [
"https://softwareengineering.stackexchange.com/questions/73937",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/23880/"
] | A database in memory has the potential to be faster than one on a hard disk. There is also options to do a mixture.
Regardless, there are many more factors that could be eliminating the hard disk option. I would suggest letting the chief architect deal with the architecture, (he is going to be hard headed if you try t... | The problem is that you need to work with datasets greater than 1GB. To do this you are going to have to break the data down into smaller, more manageable chunks. Then your main problem is going to be whether the algorithms can work on partial data or not.
If they require all the data to be read into memory then it wi... |
73,937 | My company has a suite of mature (roots go back 15+ years), computationally intensive applications (simulations) which we use to do consulting work. I work on the simulation/consulting side of the house, not the software development side. I recently learned about a particular feature of the architecture which concerns ... | 2011/05/05 | [
"https://softwareengineering.stackexchange.com/questions/73937",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/23880/"
] | I'm not an expert in this particular area but I can't see anything beating the "in memory approach". Yes you have the slow start of loading all that data but once it's there your data retrieval time is basically 0. If you are running the database on anything other than the same machine as the simulation then you introd... | The problem is that you need to work with datasets greater than 1GB. To do this you are going to have to break the data down into smaller, more manageable chunks. Then your main problem is going to be whether the algorithms can work on partial data or not.
If they require all the data to be read into memory then it wi... |
73,937 | My company has a suite of mature (roots go back 15+ years), computationally intensive applications (simulations) which we use to do consulting work. I work on the simulation/consulting side of the house, not the software development side. I recently learned about a particular feature of the architecture which concerns ... | 2011/05/05 | [
"https://softwareengineering.stackexchange.com/questions/73937",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/23880/"
] | >
> Is our architecture hurting us?
>
>
>
No.
>
> Are there any papers/work/test on the subject-- tradeoffs between database reading as-you-go and a database copy in memory?
>
>
>
Yes. Hundreds.
This is why databases cache things. The more of the database that's in memory the faster the database works.
... | The problem is that you need to work with datasets greater than 1GB. To do this you are going to have to break the data down into smaller, more manageable chunks. Then your main problem is going to be whether the algorithms can work on partial data or not.
If they require all the data to be read into memory then it wi... |
398,869 | Dear fellow Administrators,
I have a very burning issue I am still hunting an answer for. We had a maintenance involving the IT infrastructure (new computers, cabling, etc.), but we have found that software-side improvements are needed too.
I have a small, central server, which is a very bull computer, two big (1 TB)... | 2012/06/14 | [
"https://serverfault.com/questions/398869",
"https://serverfault.com",
"https://serverfault.com/users/123275/"
] | Install the `samba-doc` package. It includes the Samba3-By Example document which covers most of what you want to do. For now you may want to use Samba3, but Samba4 is developing rapidly and should be able to provide AD (Active Directory) services. I found the shell version of `ldapscripts` easier to work with than the... | Simple answers:
1. Install bind9, set it up as either a recursive (independent) or forwarding (relies on Google/ISP/whatever) resolver. I believe tha bind9 comes out of the box with recursion enabled, but the manual is easy enough to read for configuration changes.
2. Buy a Windows Server license. Run it in a VM if yo... |
2,587 | What file formats of ebooks does iBooks support? | 2010/09/25 | [
"https://apple.stackexchange.com/questions/2587",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/1098/"
] | It supports `ePub` and `PDF` formats.
To import those formats you will need to add the ebook to iTunes and then either select automatic synchronization or drag them across manually and they will be added to your iBooks on the next sync.
If you have Dropbox for iOS you can also add files directly to iBooks from there. | iBooks supports the ePub file format, iBooks Author books, PDFs, MP3 audiobooks, AAC audiobooks, and Audible.com audiobooks. |
36,364,707 | So I am running a bridge plugin that hooks Xenforo forum into Wordpress, with single sign-on (User authentication is entirely handled by Xenforo, and all WP login/registrations etc are redirected to matching Xenforo links).
However in wp-admin, upon cookie expiration a popup iframe appears with a login form, though wi... | 2016/04/01 | [
"https://Stackoverflow.com/questions/36364707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6031491/"
] | The [jstack command reference](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstack.html) offers these three invocation forms:
>
>
> ```
> jstack [ options ] pid
>
> jstack [ options ] executable core
>
> jstack [ options ] [ server-id@ ] remote-hostname-or-IP
>
> ```
>
>
Of those, only the first ... | You could run the following in your terminal:
```
ps -e | grep [j]ava | awk '{print $1}' | xargs -n 1 jstack
``` |
7,258,847 | Good day!
Very grateful for any help!
How to write a script (php or javascript) which will work as a constructor of charts, where input values are the values from the table, which is derived from the database to the page?
1. The input data in the chart will be data from MS SQL tables.
(Displayed on the html pa... | 2011/08/31 | [
"https://Stackoverflow.com/questions/7258847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/921874/"
] | We use [HighCharts](http://www.highcharts.com/). It's a jQuery based charting application. Very powerful and works from the html tables you already have displayed. | You may want to take a look at [graphviz](http://www.graphviz.org/). This is a graph generator. |
7,258,847 | Good day!
Very grateful for any help!
How to write a script (php or javascript) which will work as a constructor of charts, where input values are the values from the table, which is derived from the database to the page?
1. The input data in the chart will be data from MS SQL tables.
(Displayed on the html pa... | 2011/08/31 | [
"https://Stackoverflow.com/questions/7258847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/921874/"
] | There is also [Raphael.js](http://raphaeljs.com/) which I haven't used but looks REALLY good. With it's charting library [gRaphael](http://g.raphaeljs.com/) | You may want to take a look at [graphviz](http://www.graphviz.org/). This is a graph generator. |
45,509,005 | currently in c# i have a list of strings for each line in a text file.
In this file, there are fields separated by a comma.
```
string[] logFile = File.ReadAllLines(path);
List<string> logList = new List<string>(logFile);
```
I don't really know what i have to do to obtain each field separately keeping in mind that ... | 2017/08/04 | [
"https://Stackoverflow.com/questions/45509005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8417769/"
] | you can loop through the lines and use [String.Split](https://msdn.microsoft.com/en-us/library/b873y76a(v=vs.110).aspx) to split each line in the separate fields
```
foreach(var field in logList)
{
string [] allFieldsInLine = field.Split(',');
}
```
the order in `allFieldsInLine` will be the same as in your line... | Instead of having a List(String) I would create an Object class that accepts 12 different parameters (of type string) then add them to a List(Input) inputList. Here is some example code that includes only 2 parameters. Try and implement this in your own program.
Creating your object class:
```
class Input
{
priv... |
31,873,682 | I've implemented a simple single approval Kaleo Workflow in Liferay 6.2.
My requirement is that a Notification be sent to the User who created the Asset, when the Asset has been Approved.
The notification "*Your Request has been Approved*" is not being sent to the User who created the Asset. Below is my Workflow XML.... | 2015/08/07 | [
"https://Stackoverflow.com/questions/31873682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1345954/"
] | **MySQL**
```
$query = "SELECT DISTINCT TITLE, PID, TYPE, SUM(DAYCOUNT) AS tot, ROUND(SUM(DAYCOUNT)/(
SELECT SUM(DAYCOUNT) FROM REPORT_LIST_VIEW), 4) AS per
FROM REPORT_LIST_VIEW
WHERE DAYCOUNT > '0'
GROUP BY TITLE, PID, TYPE
ORDER BY TITLE ASC
LIMIT $start, 10
";
```
now set $start to `10 * $pageNo`
---
Example:
... | **Oracle Pre-12c release**
You could use `ROWNUM` inside **subquery** as **[pagination query](https://stackoverflow.com/a/30321788/3989608)**.
For example,
```
SQL> SELECT empno, sal
2 FROM (SELECT empno, sal, ROWNUM AS rnum
3 FROM (SELECT empno, sal
4 FROM emp
5 ... |
43,643 | I have three groups of users $-$ $G1$, $G2$ and $Control$. The users in each of these three groups are different but are carefully selected and have similar properties. I treat each group with a unique treatment. $G1$ is treated by $T1$, $G2$ is treated by $T2$ and the $Control$ group is not treated at all. For each of... | 2012/11/15 | [
"https://stats.stackexchange.com/questions/43643",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2706/"
] | For the first problem, you can start with an ANOVA/regression and check the distributional assumptions (which are not about the data but about error as estimated by the residuals). If they are violoated you can then do a nonparametric test or robust test.
For the second problem, since your goal is to compare T1 to T2,... | I went for Fisher's Exact Test and Chi-Square Contingency Test to answer my question. It looked more elegant and intuitive [0,1].
[0] <http://en.wikipedia.org/wiki/Fisher>'s\_exact\_test
[1] <http://math.hws.edu/javamath/ryan/ChiSquare.html> |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | Too many goodbyes this month.
❤
This was one of the folks I have to thank for me being who I am now - and I'd say as one of the mods before me, I learnt a lot from Nathan. And a few Hijinks.
Good Luck out there. | Sad to see you go, but know you can always hang out with us in Root Access anytime :)
Live long, and prosper, my friend |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | Too many goodbyes this month.
❤
This was one of the folks I have to thank for me being who I am now - and I'd say as one of the mods before me, I learnt a lot from Nathan. And a few Hijinks.
Good Luck out there. | Nathan was instrumental in the earlier days of SU, especially as we continued to find our footing in enforcing quality, tag cleanups, and trying to help the community mature overall. He was always laid back and willing to answer questions and mentor others. I found nhinkle a pleasure to work with and one of the best!
... |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | I totally get why you’re doing this. Thank you Nathan for your work and help here at SU. I’ll never forget how much time and effort we spent on different matters- the jokes, the camaraderie, the brainstorming on the blog posts and all the chat room madness. I wish you the best. | Sad to see you go, but know you can always hang out with us in Root Access anytime :)
Live long, and prosper, my friend |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | We apparently found this home away from home one single day apart some 10 years ago. Those were heady days of answering, chatting and working to make the site a better place for users old and new. It was fun and, amongst a few other users, you were a crucial part of the Super User family.
It has been a long ride toget... | Sad to see you go, but know you can always hang out with us in Root Access anytime :)
Live long, and prosper, my friend |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | We apparently found this home away from home one single day apart some 10 years ago. Those were heady days of answering, chatting and working to make the site a better place for users old and new. It was fun and, amongst a few other users, you were a crucial part of the Super User family.
It has been a long ride toget... | Nathan Hinkle, though, I have only read three of your posts, including this one, you sure seem like a very intelligent being, and through this post you have made it clear you are a very intelligent person indeed, and very thoughtful.
Farewell nhinkle, peace and happiness to you. |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | Too many goodbyes this month.
❤
This was one of the folks I have to thank for me being who I am now - and I'd say as one of the mods before me, I learnt a lot from Nathan. And a few Hijinks.
Good Luck out there. | Nathan Hinkle, though, I have only read three of your posts, including this one, you sure seem like a very intelligent being, and through this post you have made it clear you are a very intelligent person indeed, and very thoughtful.
Farewell nhinkle, peace and happiness to you. |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | Sad to see you go, but know you can always hang out with us in Root Access anytime :)
Live long, and prosper, my friend | Nathan was instrumental in the earlier days of SU, especially as we continued to find our footing in enforcing quality, tag cleanups, and trying to help the community mature overall. He was always laid back and willing to answer questions and mentor others. I found nhinkle a pleasure to work with and one of the best!
... |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | I totally get why you’re doing this. Thank you Nathan for your work and help here at SU. I’ll never forget how much time and effort we spent on different matters- the jokes, the camaraderie, the brainstorming on the blog posts and all the chat room madness. I wish you the best. | Nathan Hinkle, though, I have only read three of your posts, including this one, you sure seem like a very intelligent being, and through this post you have made it clear you are a very intelligent person indeed, and very thoughtful.
Farewell nhinkle, peace and happiness to you. |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | We apparently found this home away from home one single day apart some 10 years ago. Those were heady days of answering, chatting and working to make the site a better place for users old and new. It was fun and, amongst a few other users, you were a crucial part of the Super User family.
It has been a long ride toget... | Nathan was instrumental in the earlier days of SU, especially as we continued to find our footing in enforcing quality, tag cleanups, and trying to help the community mature overall. He was always laid back and willing to answer questions and mentor others. I found nhinkle a pleasure to work with and one of the best!
... |
13,946 | To the superuser community,
I have officially submitted my resignation as a superuser moderator to the community team. I would like to thank everyone who I have collaborated with over the years – my fellow dedicated moderators; all my fellow computer lovers who have contributed their knowledge, passion, and expertise... | 2020/01/14 | [
"https://meta.superuser.com/questions/13946",
"https://meta.superuser.com",
"https://meta.superuser.com/users/20088/"
] | Nathan Hinkle, though, I have only read three of your posts, including this one, you sure seem like a very intelligent being, and through this post you have made it clear you are a very intelligent person indeed, and very thoughtful.
Farewell nhinkle, peace and happiness to you. | Nathan was instrumental in the earlier days of SU, especially as we continued to find our footing in enforcing quality, tag cleanups, and trying to help the community mature overall. He was always laid back and willing to answer questions and mentor others. I found nhinkle a pleasure to work with and one of the best!
... |
46,708,670 | Users who are used to working with another software package would like to type just the numbers of dates, without slashes: `0 9 1 8 2 0 1 7`. They have developed "muscle-memory" for dates and are pretty grumpy about having to enter the slashes.
This is a "heads down" data-entry scenario where they have to enter hundre... | 2017/10/12 | [
"https://Stackoverflow.com/questions/46708670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/311343/"
] | Try to [specify a mask](https://documentation.devexpress.com/WindowsForms/1497/Controls-and-Libraries/Editors-and-Simple-Controls/Simple-Editors/Concepts/Masks/Mask-Type-Date-time), I think it should work. | Set mask property, as you need.. but you must be clear what type of date format user will enter |
72,751,754 | I have an AI Thinker A9G module connected to an ESP8266 D1 mini. I have the following script to send and receive AT commands to/from the module. The idea is to get a SMS with the Google maps GPS location of the module onto my mobile phone.
```
// GPS tracker with AI Thinker A9G module and AZ Delivery D1 Mini ESP8266 m... | 2022/06/25 | [
"https://Stackoverflow.com/questions/72751754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19372946/"
] | As described here: <https://en.cppreference.com/w/cpp/language/sizeof>
sizeof - Queries size of the object or type.
Therefore you have received correctly the size of your table. | `sizeOf()` always returns the total number of bytes occupied in memory.
>
> When the sizeof operator is applied to an array, it yields the total
> number of bytes in that array, not the size of the pointer represented
> by the array identifier.
> [read more](https://learn.microsoft.com/en-us/cpp/cpp/sizeof-operator?v... |
127,359 | Consider the following example:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[
linecolor = red,
fillstyle = solid,
fillcolor = blue!50
](#1,0)(!#1 \bredde add #2 4 div)
}
\psset{unit=0.75}
\begin{document}
\def\bredde{1.5 }
\begin{pspicture}(-0.9,-0.5)(14.... | 2013/08/08 | [
"https://tex.stackexchange.com/questions/127359",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/15874/"
] | You've got conflicting directives going on for the x-axis. Try something like:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[
linecolor=red,
fillstyle=solid,
fillcolor=blue!50
](#1,0)(!#1 \bredde add #2 4 div)
}
\psset{unit=0.75}
\begin{document}
\def\bred... | the offset was not working for special label setting. Try `pst-plot.tex` from <http://texnik.dante.de/tex/generic/pst-plot/> Then use something like:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[linecolor=red,fillstyle=solid,
fillcolor=blue!50](#1,0)(!#1 \bre... |
127,359 | Consider the following example:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[
linecolor = red,
fillstyle = solid,
fillcolor = blue!50
](#1,0)(!#1 \bredde add #2 4 div)
}
\psset{unit=0.75}
\begin{document}
\def\bredde{1.5 }
\begin{pspicture}(-0.9,-0.5)(14.... | 2013/08/08 | [
"https://tex.stackexchange.com/questions/127359",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/15874/"
] | You've got conflicting directives going on for the x-axis. Try something like:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[
linecolor=red,
fillstyle=solid,
fillcolor=blue!50
](#1,0)(!#1 \bredde add #2 4 div)
}
\psset{unit=0.75}
\begin{document}
\def\bred... | Here is what I ended up with; besides from incorporating the improvements of the labels in `pst-plot`, it is also possible to scale both axes (the width of the x-axis by changing the value of `\xUnit` and the units on the y-axis by changing the value of `\yUnit`):
```
\documentclass{article}
\usepackage{pst-plot}
\us... |
127,359 | Consider the following example:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[
linecolor = red,
fillstyle = solid,
fillcolor = blue!50
](#1,0)(!#1 \bredde add #2 4 div)
}
\psset{unit=0.75}
\begin{document}
\def\bredde{1.5 }
\begin{pspicture}(-0.9,-0.5)(14.... | 2013/08/08 | [
"https://tex.stackexchange.com/questions/127359",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/15874/"
] | the offset was not working for special label setting. Try `pst-plot.tex` from <http://texnik.dante.de/tex/generic/pst-plot/> Then use something like:
```
\documentclass{article}
\usepackage{pstricks-add}
\def\sandsynlighed#1#2{%
\psframe[linecolor=red,fillstyle=solid,
fillcolor=blue!50](#1,0)(!#1 \bre... | Here is what I ended up with; besides from incorporating the improvements of the labels in `pst-plot`, it is also possible to scale both axes (the width of the x-axis by changing the value of `\xUnit` and the units on the y-axis by changing the value of `\yUnit`):
```
\documentclass{article}
\usepackage{pst-plot}
\us... |
39,600,239 | I'm using AngularJS to create a site.
There's my array:
```
$scope.replyList = [
{
"id": "85485",
"reply_content": "aaaaaaa",
"reply_gender": "1",
"reply_author": "John"
},
{
"id": "85487",
"reply_content": "bbbbbbb",
"reply_gender": "1",
"reply_author": "Ben"
},
{
"id": ... | 2016/09/20 | [
"https://Stackoverflow.com/questions/39600239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6019592/"
] | Use **[`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find)** method to get the array element.
```
$scope.replyList.find(function(v) {
return v.id == 85475;
}).reply_content = 'dddddd';
// or with ES6 arrow function
$scope.replyList.find(v => v.id == 85475).reply... | Use the `.filter` method of array and get the first position of the result
```
$scope.replyList.filter(function(item){
return item.id === '85475';
})[0].reply_content = 'dddddd';
```
If exists more than one result with the given value of key, process them all using the `.map` method.
```
$scope.replyList
.filte... |
39,600,239 | I'm using AngularJS to create a site.
There's my array:
```
$scope.replyList = [
{
"id": "85485",
"reply_content": "aaaaaaa",
"reply_gender": "1",
"reply_author": "John"
},
{
"id": "85487",
"reply_content": "bbbbbbb",
"reply_gender": "1",
"reply_author": "Ben"
},
{
"id": ... | 2016/09/20 | [
"https://Stackoverflow.com/questions/39600239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6019592/"
] | Use **[`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find)** method to get the array element.
```
$scope.replyList.find(function(v) {
return v.id == 85475;
}).reply_content = 'dddddd';
// or with ES6 arrow function
$scope.replyList.find(v => v.id == 85475).reply... | Use a simple for loop to iterate over the array and find the object with the matching id and replace the content.This will work in all browsers.
```
function replace(array, id, content) {
var len = array.length,
i;
for (i = 0; i < len; i++) {
if (array[i].id === id) {
array[i].repl... |
39,600,239 | I'm using AngularJS to create a site.
There's my array:
```
$scope.replyList = [
{
"id": "85485",
"reply_content": "aaaaaaa",
"reply_gender": "1",
"reply_author": "John"
},
{
"id": "85487",
"reply_content": "bbbbbbb",
"reply_gender": "1",
"reply_author": "Ben"
},
{
"id": ... | 2016/09/20 | [
"https://Stackoverflow.com/questions/39600239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6019592/"
] | Use the `.filter` method of array and get the first position of the result
```
$scope.replyList.filter(function(item){
return item.id === '85475';
})[0].reply_content = 'dddddd';
```
If exists more than one result with the given value of key, process them all using the `.map` method.
```
$scope.replyList
.filte... | Use a simple for loop to iterate over the array and find the object with the matching id and replace the content.This will work in all browsers.
```
function replace(array, id, content) {
var len = array.length,
i;
for (i = 0; i < len; i++) {
if (array[i].id === id) {
array[i].repl... |
24,110,128 | In Jekyll 1.5.1 my layouts are being parsed, but markdown is being ignored.
Is there a way to work around this?
Here is my `post.md` layout
```
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta"></p>
<div class="post">
{{ content }}
</div>
* first
* second
* third
# hi
```
The page.title, content... | 2014/06/08 | [
"https://Stackoverflow.com/questions/24110128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46076/"
] | You have two totally separate questions here. If you set a value as `self.a`, you need to access it as `self.a`, not using `[]`. Just have your `__str__` do something like:
```
return '<foo({0}, {1}, {2})>'.format(self.a, self.b, self.c)
```
If you want to be able to access those variables using `[]`, then you need ... | Not sure if this is exactly what you want. Setting the values as self.a would be accessed with `print bar.a`. However, slight workaround, when you set all the self values, a dictionary is formed. You can get an array by pulling the values from all the self attributes.
```
>>> bar = Foo()
>>> print bar
<foo(3, 4, 5)>
>... |
24,110,128 | In Jekyll 1.5.1 my layouts are being parsed, but markdown is being ignored.
Is there a way to work around this?
Here is my `post.md` layout
```
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta"></p>
<div class="post">
{{ content }}
</div>
* first
* second
* third
# hi
```
The page.title, content... | 2014/06/08 | [
"https://Stackoverflow.com/questions/24110128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46076/"
] | As the `AttributeError` says, you need to define a `__getitem__` method for your class:
```
class Foo:
def __init__(self):
self.a = 3
self.b = 4
self.c = 5
def __getitem__(self, index):
if index == 0:
return self.a
elif index == 1:
return self.b
... | Not sure if this is exactly what you want. Setting the values as self.a would be accessed with `print bar.a`. However, slight workaround, when you set all the self values, a dictionary is formed. You can get an array by pulling the values from all the self attributes.
```
>>> bar = Foo()
>>> print bar
<foo(3, 4, 5)>
>... |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | ***Scolecophagous*** is someone who eats worms.
It is listed in *[The Grandiloquent Dictionary](https://books.google.ca/books?id=H1dRAgAAQBAJ&pg=PA116&dq=scolecophagous&hl=en&sa=X&redir_esc=y#v=onepage&q=scolecophagous&f=false) (by Christopher Bird)* along with *scoleciphobia* which means the fear of worms.
[ is an animal that eats worms. It may also be the best word to describe a person that eats worms, as I very much doubt there is a different word for this. |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | A [vermivore](https://en.wikipedia.org/wiki/Vermivore) is an animal that eats worms. It may also be the best word to describe a person that eats worms, as I very much doubt there is a different word for this. | No need to go all Greek and Latin for this answer:
>
> **worm-eater**, *n.*
>
> 1. A bird or other creature that feeds on worms; spec. the Worm-eating Warbler (see below).
>
> 1760 G. Edwards Gleanings Nat. Hist. II. 200 The Worm-eater [of Pennsylvania].
>
> 1831 W. Swainson & J. Richardson Fauna Boreali... |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | A [vermivore](https://en.wikipedia.org/wiki/Vermivore) is an animal that eats worms. It may also be the best word to describe a person that eats worms, as I very much doubt there is a different word for this. | ***Lumbricophagy***, a word derived from [Latin *lumbricus*](https://en.wiktionary.org/wiki/lumbricus) “earthworm” + *‑phagy* from [Greek ‑ϕαγία](https://en.wiktionary.org/wiki/-phagy) “eating”, is certainly a term used zoologically. This may be uncommon behaviour in humans, but it is, of course, a common thing for ani... |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | ***Scolecophagous*** is someone who eats worms.
It is listed in *[The Grandiloquent Dictionary](https://books.google.ca/books?id=H1dRAgAAQBAJ&pg=PA116&dq=scolecophagous&hl=en&sa=X&redir_esc=y#v=onepage&q=scolecophagous&f=false) (by Christopher Bird)* along with *scoleciphobia* which means the fear of worms.
[![enter ... | No need to go all Greek and Latin for this answer:
>
> **worm-eater**, *n.*
>
> 1. A bird or other creature that feeds on worms; spec. the Worm-eating Warbler (see below).
>
> 1760 G. Edwards Gleanings Nat. Hist. II. 200 The Worm-eater [of Pennsylvania].
>
> 1831 W. Swainson & J. Richardson Fauna Boreali... |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | ***Scolecophagous*** is someone who eats worms.
It is listed in *[The Grandiloquent Dictionary](https://books.google.ca/books?id=H1dRAgAAQBAJ&pg=PA116&dq=scolecophagous&hl=en&sa=X&redir_esc=y#v=onepage&q=scolecophagous&f=false) (by Christopher Bird)* along with *scoleciphobia* which means the fear of worms.
[ “earthworm” + *‑phagy* from [Greek ‑ϕαγία](https://en.wiktionary.org/wiki/-phagy) “eating”, is certainly a term used zoologically. This may be uncommon behaviour in humans, but it is, of course, a common thing for ani... |
288,878 | Odd question, but I wonder if there is a word for someone who eats earthworms. I tried hard to find if there is such a word, and I found none. Thank you. | 2015/11/22 | [
"https://english.stackexchange.com/questions/288878",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/60619/"
] | No need to go all Greek and Latin for this answer:
>
> **worm-eater**, *n.*
>
> 1. A bird or other creature that feeds on worms; spec. the Worm-eating Warbler (see below).
>
> 1760 G. Edwards Gleanings Nat. Hist. II. 200 The Worm-eater [of Pennsylvania].
>
> 1831 W. Swainson & J. Richardson Fauna Boreali... | ***Lumbricophagy***, a word derived from [Latin *lumbricus*](https://en.wiktionary.org/wiki/lumbricus) “earthworm” + *‑phagy* from [Greek ‑ϕαγία](https://en.wiktionary.org/wiki/-phagy) “eating”, is certainly a term used zoologically. This may be uncommon behaviour in humans, but it is, of course, a common thing for ani... |
47,265 | There is a significant 3-way interaction in a data-set I'm working with.
The interaction involves both categorical and quantitative variables.
I have been pointed towards simple slopes and this [website](http://www.jeremydawson.co.uk/slopes.htm) but I find the explanations lacking. I only have a basic background in s... | 2013/01/08 | [
"https://stats.stackexchange.com/questions/47265",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/18479/"
] | I was afraid this was going to be a continuous $\times$ continuous $\times$ categorical interaction... OK, here goes - first, we create some toy data (`foo` is a binary predictor, `bar` and `baz` are continuous, `dv` is the dependent variable):
```
set.seed(1)
obs <- data.frame(foo=sample(c("A","B"),size=100,replace=T... | +1 to comments above about graphing interaction.
An initial approach to thinking about a three-way interaction is that it is saying that the pattern of results contained in the interaction between A and B depends upon the level/value of C. The following is framed in a linear regression kind of framework, but conceptua... |
47,265 | There is a significant 3-way interaction in a data-set I'm working with.
The interaction involves both categorical and quantitative variables.
I have been pointed towards simple slopes and this [website](http://www.jeremydawson.co.uk/slopes.htm) but I find the explanations lacking. I only have a basic background in s... | 2013/01/08 | [
"https://stats.stackexchange.com/questions/47265",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/18479/"
] | +1 to comments above about graphing interaction.
An initial approach to thinking about a three-way interaction is that it is saying that the pattern of results contained in the interaction between A and B depends upon the level/value of C. The following is framed in a linear regression kind of framework, but conceptua... | Often it helps to plot the relationships and see how things change when you change one of the variables. A couple of tools in R that help with these plots are `Predict.Plot` and `TkPredict` functions in the TeachingDemos package. |
47,265 | There is a significant 3-way interaction in a data-set I'm working with.
The interaction involves both categorical and quantitative variables.
I have been pointed towards simple slopes and this [website](http://www.jeremydawson.co.uk/slopes.htm) but I find the explanations lacking. I only have a basic background in s... | 2013/01/08 | [
"https://stats.stackexchange.com/questions/47265",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/18479/"
] | I was afraid this was going to be a continuous $\times$ continuous $\times$ categorical interaction... OK, here goes - first, we create some toy data (`foo` is a binary predictor, `bar` and `baz` are continuous, `dv` is the dependent variable):
```
set.seed(1)
obs <- data.frame(foo=sample(c("A","B"),size=100,replace=T... | Often it helps to plot the relationships and see how things change when you change one of the variables. A couple of tools in R that help with these plots are `Predict.Plot` and `TkPredict` functions in the TeachingDemos package. |
19,611,899 | I have a simple `:item` factory with a nested attachment that is working fine.
```
FactoryGirl.define do
factory :item do
before_create do |item|
item.attachments << FactoryGirl.build(:attachment, attachable: item)
end
end
end
```
I want to check for the following
```
it "is invalid without a ph... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19611899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/471313/"
] | ```
c = [(a[x][0], a[x+1][0], a[x+2][0])
for x, _ in enumerate(a)
if a[x][1] == b[0] and
a[x+1][1] == b[1] and
a[x+2][1] == b[2]]
``` | Given:
```
a = [
('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('an', 'o'), ('an', 'o'),
('an', 'o'), ('an', 'r'), ('car', 'k'), ('rock', 'h'), ('pig', 'p')
]
b = ('k','h','p')
```
If your goal is to gather groups of tuples from list `a` based the second element occurring in the same order as the sequence in ... |
19,611,899 | I have a simple `:item` factory with a nested attachment that is working fine.
```
FactoryGirl.define do
factory :item do
before_create do |item|
item.attachments << FactoryGirl.build(:attachment, attachable: item)
end
end
end
```
I want to check for the following
```
it "is invalid without a ph... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19611899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/471313/"
] | Assuming that the length of `b` is 3, the following code will work even if `a` contains `'k','h','p'` such that they do not always follow each other properly, as in:
```
a=[('test', 'k'), ('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('car', 'k'),
('an', 'r'),('rock', 'h'), ('see','k'), ('it','h'),('an', 'o'),('works',... | Given:
```
a = [
('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('an', 'o'), ('an', 'o'),
('an', 'o'), ('an', 'r'), ('car', 'k'), ('rock', 'h'), ('pig', 'p')
]
b = ('k','h','p')
```
If your goal is to gather groups of tuples from list `a` based the second element occurring in the same order as the sequence in ... |
19,611,899 | I have a simple `:item` factory with a nested attachment that is working fine.
```
FactoryGirl.define do
factory :item do
before_create do |item|
item.attachments << FactoryGirl.build(:attachment, attachable: item)
end
end
end
```
I want to check for the following
```
it "is invalid without a ph... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19611899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/471313/"
] | Try this snippet.
```
list_of_values = [
('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('an', 'o'), ('an', 'o'),
('an', 'o'), ('an', 'r'), ('car', 'k'), ('rock', 'h'), ('pig', 'p')
]
pattern = ('k','h','p')
# Important part
matches = [
values for values, keys in (
zip(*list_of_values[i:i + len(patt... | Given:
```
a = [
('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('an', 'o'), ('an', 'o'),
('an', 'o'), ('an', 'r'), ('car', 'k'), ('rock', 'h'), ('pig', 'p')
]
b = ('k','h','p')
```
If your goal is to gather groups of tuples from list `a` based the second element occurring in the same order as the sequence in ... |
19,611,899 | I have a simple `:item` factory with a nested attachment that is working fine.
```
FactoryGirl.define do
factory :item do
before_create do |item|
item.attachments << FactoryGirl.build(:attachment, attachable: item)
end
end
end
```
I want to check for the following
```
it "is invalid without a ph... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19611899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/471313/"
] | ```
a = [('jamy', 'k'), ('Park', 'h'), ('kick', 'p'),
('an', 'o'), ('an', 'o'), ('an', 'o'), ('an', 'r'),
('car', 'k'), ('rock', 'h'), ('pig', 'p')]
b = ['k', 'h', 'p']
filtered = [ele for ele in a if ele[1] in b]
def split_list(_list, idx_range):
_t = []
_temp = []
_d = {idx + 1: ele for idx, ... | Given:
```
a = [
('jamy', 'k'), ('Park', 'h'), ('kick', 'p'), ('an', 'o'), ('an', 'o'),
('an', 'o'), ('an', 'r'), ('car', 'k'), ('rock', 'h'), ('pig', 'p')
]
b = ('k','h','p')
```
If your goal is to gather groups of tuples from list `a` based the second element occurring in the same order as the sequence in ... |
66,588,813 | Is it possible to make an element effectively inherit its background color from its nearest ancestor that has one, without making it transparent? (I realize `background-color` isn't an inherited property, I'm using the term loosely.)
My specific issue is with sticky table headers: When the table scrolls, the cells sli... | 2021/03/11 | [
"https://Stackoverflow.com/questions/66588813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/157247/"
] | This will do to get `<REPO>` as the result. Not python equivalent code, but will work
```js
const url = 'https://github.com/<USERNAME>/<REPO>';
const repoName = url.split('/').pop();
console.log(repoName);
``` | The `URL` class that's built into the browser can do most of the basic url parsing for you and would help make sure the repo string doesn't contain any query parameters and the like.
```js
const url = new window.URL("https://github.com/username/repo.git");
// Split the path by '/' and remove any empty array items
// ... |
24,700,986 | I have a custom class that inherits from List(of T). How can I find an object from the List with a custom property?
Sample code:
```
Public class baseClass
Property ID
End class
Public class Member
Inherits BaseClass
Property UserID As Integer
End Class
Public Class LCMSCollection(Of T As BaseClass)
... | 2014/07/11 | [
"https://Stackoverflow.com/questions/24700986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/909260/"
] | You are doing it wrong. Also, binding is more useful if you have `ViewModel`.
The reason why it didn't work the first time is because you were trying to set the **entire view** as the `DataContext`. Therefore, the binding was trying to look for a property of `UserViewModels` inside the `UserViewModels`.
Change
```... | Change `ItemsSource` binding to
```
ItemsSource="{Binding}"
```
`DataContext`, for whole `UserControl`, is already set to your collection when you do
```
this.DataContext = _userViewModels
```
so all you need to do is bind `ItemsSource` to current `DataContext` |
24,700,986 | I have a custom class that inherits from List(of T). How can I find an object from the List with a custom property?
Sample code:
```
Public class baseClass
Property ID
End class
Public class Member
Inherits BaseClass
Property UserID As Integer
End Class
Public Class LCMSCollection(Of T As BaseClass)
... | 2014/07/11 | [
"https://Stackoverflow.com/questions/24700986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/909260/"
] | You are doing it wrong. Also, binding is more useful if you have `ViewModel`.
The reason why it didn't work the first time is because you were trying to set the **entire view** as the `DataContext`. Therefore, the binding was trying to look for a property of `UserViewModels` inside the `UserViewModels`.
Change
```... | You need to update your bindings and set the DataContext of the UserControl. This can be done strictly in xaml as shown below.
**xaml:**
```
<UserControl x:Class="Users.Views.Users"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/... |
65,004,866 | I am using `helm charts` to deploy my kubernetes application in local cluster `minikube`. I was able to mount `/home/$USER/log` directory and verified by creating and modifying file in the mounted directory using shell command.
```
#touch /log/a
# ls
a delete.cpp dm
```
But when I am using python to create symlink... | 2020/11/25 | [
"https://Stackoverflow.com/questions/65004866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8595891/"
] | The isolates in Flutter are completely, well, *isolated*. Think of it a little bit like processes (in the sense that two isolates *share (almost) no memory*), instead of the traditional threads in Java or C in the sense of memory sharing.
Therefore, if you init your Firebase in your main isolate (as what you did in `m... | I had the same problem and wasn't able to run Firestore within an isolate.
I ended up using a Timer to handle it:
```
_MyAppState() {
_timer = new Timer.periodic(Duration(seconds: 2), (timer) async {
//Call function that handles firestore
var upload = await fireUpload();
//Returns value to despose timer if ... |
65,004,866 | I am using `helm charts` to deploy my kubernetes application in local cluster `minikube`. I was able to mount `/home/$USER/log` directory and verified by creating and modifying file in the mounted directory using shell command.
```
#touch /log/a
# ls
a delete.cpp dm
```
But when I am using python to create symlink... | 2020/11/25 | [
"https://Stackoverflow.com/questions/65004866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8595891/"
] | The isolates in Flutter are completely, well, *isolated*. Think of it a little bit like processes (in the sense that two isolates *share (almost) no memory*), instead of the traditional threads in Java or C in the sense of memory sharing.
Therefore, if you init your Firebase in your main isolate (as what you did in `m... | ```
flutter_isolate: ^2.0.2
onPressed: () {
FlutterIsolate.spawn(_isolateEntrypoint, "foo");
}
// A "top level" function (i.e. not inside a class or make it static)
_isolateEntrypoint(String foo) {
WidgetsFlutterBinding.ensureInitialized();
...
}
```
Make sure that authorization and initialization were ma... |
65,004,866 | I am using `helm charts` to deploy my kubernetes application in local cluster `minikube`. I was able to mount `/home/$USER/log` directory and verified by creating and modifying file in the mounted directory using shell command.
```
#touch /log/a
# ls
a delete.cpp dm
```
But when I am using python to create symlink... | 2020/11/25 | [
"https://Stackoverflow.com/questions/65004866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8595891/"
] | ```
flutter_isolate: ^2.0.2
onPressed: () {
FlutterIsolate.spawn(_isolateEntrypoint, "foo");
}
// A "top level" function (i.e. not inside a class or make it static)
_isolateEntrypoint(String foo) {
WidgetsFlutterBinding.ensureInitialized();
...
}
```
Make sure that authorization and initialization were ma... | I had the same problem and wasn't able to run Firestore within an isolate.
I ended up using a Timer to handle it:
```
_MyAppState() {
_timer = new Timer.periodic(Duration(seconds: 2), (timer) async {
//Call function that handles firestore
var upload = await fireUpload();
//Returns value to despose timer if ... |
15,580 | I have a kitten whom we found as a stray and have since taken her in. She has lived with us for a little over a month now and has always been excellent about using her box. Within the last few weeks, she has this new habit where she gets her litter and scoops it with her front two paws and throws it outside of her box ... | 2016/10/25 | [
"https://pets.stackexchange.com/questions/15580",
"https://pets.stackexchange.com",
"https://pets.stackexchange.com/users/8237/"
] | First, stop letting him into your bed if your long term goal isn't to have him sleep there every night. He will quickly learn that barking or fussing = getting to sleep in bed with you.
Ideally you could have had a few days to transition from the old crate to the new, but that ship has sailed since the old crate is go... | I assume by a "crate" you mean a cage. Keeping a large dog, like a golden retriever, cooped up in a cage for hours on end is not going to result in a psychologically stable animal and you are likely to see all kinds of neurotic behaviors result, not just whimpering at night. |
29,431,225 | I know there's plenty of questions related to this error and I've checked most of them and none help me solve my issue. (Which seems so easy to debug...)
I have an array (which is empty aat first):
```
var words = [];
```
And my function hasLetter, checks if we find a letter (object) in the array (that I call here:... | 2015/04/03 | [
"https://Stackoverflow.com/questions/29431225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4746011/"
] | The error is here:
```
hasLetter("a",words[]);
```
You are passing the first item of `words`, instead of the array.
Instead, pass the array to the function:
```
hasLetter("a",words);
```
Problem solved!
---
Here's a breakdown of what the problem was:
I'm guessing in your browser (chrome throws a different err... | There is no error when I use your code,
but I am calling the `hasLetter` method like this:
```
hasLetter("a",words);
``` |
5,415,027 | I had Visual Studio 2008 Professional Edition installed in my computer. When i installed this VS 2008 version, SQL Server 2005 was also automatically installed. I just had to install SQL Management Studio
Because i want to install SQL Server 2008. I un-installed SQL Server 2005 and tried to install SQL Server 2008. Bu... | 2011/03/24 | [
"https://Stackoverflow.com/questions/5415027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340046/"
] | How do I find the Service Pack Version of VS 2008?
There are service packs for Visual Studio 2008 express that are different to the VS2008 standard / prof etc service packs.
How do I find if the version is a release or a beta one? No idea.
I recently installed VS 2010 C# Express and Web Developer 2010 Express. Witho... | See this <http://support.microsoft.com/kb/956139> and for a more detailed answer see this
<http://blogs.msdn.com/b/psssql/archive/2008/08/11/sql-server-2008-visual-studio-2008-sp1-and-net-framework-3-5-sp1-explained.aspx>.
I also had this issue and when I visited Microsoft site, then I found this solution and it work... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | Try
```
function listFilter(list, input) {
var $lbs = list.find('.css-label');
function filter(){
var regex = new RegExp('\\b' + this.value);
var $els = $lbs.filter(function(){
return regex.test($(this).text());
});
$lbs.not($els).hide().prev().hide();
$els.... | You can use `:contains()` selector for filtering:
```
var input = $('.search-filter');
input.change( function () {
var filter = input.val();
if(filter.length == 0) { // show all if filter is empty
$('.css-label').each(function() {
$(this).show();
$(this).prev().s... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | You can use `:contains()` selector for filtering:
```
var input = $('.search-filter');
input.change( function () {
var filter = input.val();
if(filter.length == 0) { // show all if filter is empty
$('.css-label').each(function() {
$(this).show();
$(this).prev().s... | i have a code below to get the label name
```
<!DOCTYPE html>
<html>
<head>
<SCRIPT src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</SCRIPT>
<SCRIPT>
$(document).ready(function(){
alert($(".css-label").text());
});
</SCRIPT>
</head>
<body>
<div id="list" class="multiselect">
<input id="cit... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | You can use `:contains()` selector for filtering:
```
var input = $('.search-filter');
input.change( function () {
var filter = input.val();
if(filter.length == 0) { // show all if filter is empty
$('.css-label').each(function() {
$(this).show();
$(this).prev().s... | Too late to be accepted as correct but here is an attempt that I was working on before my job got in the way. Thought I may as well post it.
It is case insensitive and supports multiple words (thanks to Arun P Johny for that).
[demo](http://jsfiddle.net/gAPKg/7/)
```
$('.search-filter').keyup(function (e) {
var ... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | Try
```
function listFilter(list, input) {
var $lbs = list.find('.css-label');
function filter(){
var regex = new RegExp('\\b' + this.value);
var $els = $lbs.filter(function(){
return regex.test($(this).text());
});
$lbs.not($els).hide().prev().hide();
$els.... | i have a code below to get the label name
```
<!DOCTYPE html>
<html>
<head>
<SCRIPT src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</SCRIPT>
<SCRIPT>
$(document).ready(function(){
alert($(".css-label").text());
});
</SCRIPT>
</head>
<body>
<div id="list" class="multiselect">
<input id="cit... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | Try
```
function listFilter(list, input) {
var $lbs = list.find('.css-label');
function filter(){
var regex = new RegExp('\\b' + this.value);
var $els = $lbs.filter(function(){
return regex.test($(this).text());
});
$lbs.not($els).hide().prev().hide();
$els.... | Too late to be accepted as correct but here is an attempt that I was working on before my job got in the way. Thought I may as well post it.
It is case insensitive and supports multiple words (thanks to Arun P Johny for that).
[demo](http://jsfiddle.net/gAPKg/7/)
```
$('.search-filter').keyup(function (e) {
var ... |
17,939,265 | i have this list of cities(checkbox and label) and an input field:
```
<input class="search-filter" type="text"/>
<form autocomplete="off" id="city-search-form" name="city-search-form" action="" method="">
<div id="list" class="multiselect">
<input id="city-id-1" class="css-checkbox" type="checkbox" />
... | 2013/07/30 | [
"https://Stackoverflow.com/questions/17939265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2406735/"
] | Too late to be accepted as correct but here is an attempt that I was working on before my job got in the way. Thought I may as well post it.
It is case insensitive and supports multiple words (thanks to Arun P Johny for that).
[demo](http://jsfiddle.net/gAPKg/7/)
```
$('.search-filter').keyup(function (e) {
var ... | i have a code below to get the label name
```
<!DOCTYPE html>
<html>
<head>
<SCRIPT src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</SCRIPT>
<SCRIPT>
$(document).ready(function(){
alert($(".css-label").text());
});
</SCRIPT>
</head>
<body>
<div id="list" class="multiselect">
<input id="cit... |
443,447 | Since today at noon, there's a number of Linux CentOS servers which are going to Halt whenever i type exit or use Control-D to close the putty window.
Did anyone encounter this weird behavior before?
I've checked the aliases list on the servers and there is no alias regarding halt command.
After the server came online ... | 2012/10/29 | [
"https://serverfault.com/questions/443447",
"https://serverfault.com",
"https://serverfault.com/users/109833/"
] | Remove the `shutdown` or `halt` commands from the `.bash_logout` file, and then find the prankster that added the command and inform him that That's Not Cool, Bro. | Is it possible that someone had messed around with `/usr/bin/clear` to make it call halt ?
The first thing to try is editing the root `/root/.bash_logout` and remove the `clear` command. Logout and see what happens.
If this fixes the problem then you can reinstall `/usr/bin/clear` with
```
yum reinstall ncurses
```... |
3,297,542 | I want to show that $\lim\_{x\to\infty}\int\_0^{x} e^{t^2} dt=\infty$. Taylor expansion can help for sure. But I wanted to know if someone knows a nice way of showing the statement without using Taylor? | 2019/07/19 | [
"https://math.stackexchange.com/questions/3297542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | $e^{t^{2}} >1$ for $t>0$. So the integral is greater than $x$. | If $x>1$, then\begin{align}\int\_0^xe^{t^2}\,\mathrm dt&=\int\_0^1e^{t^2}\,\mathrm dt+\int\_1^xe^{t^2}\,\mathrm dt\\&\geqslant\int\_0^1e^{t^2}\,\mathrm dt+\int\_1^xe^t\,\mathrm dt\\&=\int\_0^1e^{t^2}\,\mathrm dt+e^x-1\end{align}and $\lim\_{x\to\infty}\int\_0^1e^{t^2}\,\mathrm dt+e^x-1=\infty$. |
3,297,542 | I want to show that $\lim\_{x\to\infty}\int\_0^{x} e^{t^2} dt=\infty$. Taylor expansion can help for sure. But I wanted to know if someone knows a nice way of showing the statement without using Taylor? | 2019/07/19 | [
"https://math.stackexchange.com/questions/3297542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | $e^{t^{2}} >1$ for $t>0$. So the integral is greater than $x$. | Using Taylor expansion and monotone convergence theorem we get
$$\int\_0^x e^{t^2}\,dt = \int\_0^x \left(\sum\_{n=0}^\infty \frac{t^{2n}}{n!}\right)\,dt = \sum\_{n=0}^\infty \int\_0^x\frac{t^{2n}}{n!}\,dt = \sum\_{n=0}^\infty \frac{x^{2n+1}}{n!(2n+1)} \ge x$$ |
3,297,542 | I want to show that $\lim\_{x\to\infty}\int\_0^{x} e^{t^2} dt=\infty$. Taylor expansion can help for sure. But I wanted to know if someone knows a nice way of showing the statement without using Taylor? | 2019/07/19 | [
"https://math.stackexchange.com/questions/3297542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | If $x>1$, then\begin{align}\int\_0^xe^{t^2}\,\mathrm dt&=\int\_0^1e^{t^2}\,\mathrm dt+\int\_1^xe^{t^2}\,\mathrm dt\\&\geqslant\int\_0^1e^{t^2}\,\mathrm dt+\int\_1^xe^t\,\mathrm dt\\&=\int\_0^1e^{t^2}\,\mathrm dt+e^x-1\end{align}and $\lim\_{x\to\infty}\int\_0^1e^{t^2}\,\mathrm dt+e^x-1=\infty$. | Using Taylor expansion and monotone convergence theorem we get
$$\int\_0^x e^{t^2}\,dt = \int\_0^x \left(\sum\_{n=0}^\infty \frac{t^{2n}}{n!}\right)\,dt = \sum\_{n=0}^\infty \int\_0^x\frac{t^{2n}}{n!}\,dt = \sum\_{n=0}^\infty \frac{x^{2n+1}}{n!(2n+1)} \ge x$$ |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Declare custom style in your styles.xml file.
```
<style name="MyRadioButton" parent="Theme.AppCompat.Light">
<item name="colorControlNormal">@color/indigo</item>
<item name="colorControlActivated">@color/pink</item>
</style>
```
Apply this style to your RadioButton via android:theme attribute.
```
<RadioBu... | Sure you can do it in the parent AppTheme just do the following:
First you will Use the `MaterialTheme` as your parent theme:
```
<style name="AppTheme" parent="Theme.MaterialComponents.*">
```
Then create your `RadioButton` style in `res/values/styles`
```
<style name="Widget.App.RadioButton" parent="Widget.Materi... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Finally, i found answer by myself
I just create custom layout and add to ListAdapter object
radiobuttonlayout.xml
```
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/checkedTextView"
android:layout_width="match_parent"
android:layout... | Need to apply individual style to radio button
```
<RadioButton
android:layout_width="wrap_content"
style="@style/radiobutton_drawable"
android:layout_height="wrap_content"/>
``` |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Finally, i found answer by myself
I just create custom layout and add to ListAdapter object
radiobuttonlayout.xml
```
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/checkedTextView"
android:layout_width="match_parent"
android:layout... | Sure you can do it in the parent AppTheme just do the following:
First you will Use the `MaterialTheme` as your parent theme:
```
<style name="AppTheme" parent="Theme.MaterialComponents.*">
```
Then create your `RadioButton` style in `res/values/styles`
```
<style name="Widget.App.RadioButton" parent="Widget.Materi... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Declare custom style in your styles.xml file.
```
<style name="MyRadioButton" parent="Theme.AppCompat.Light">
<item name="colorControlNormal">@color/indigo</item>
<item name="colorControlActivated">@color/pink</item>
</style>
```
Apply this style to your RadioButton via android:theme attribute.
```
<RadioBu... | Need to apply individual style to radio button
```
<RadioButton
android:layout_width="wrap_content"
style="@style/radiobutton_drawable"
android:layout_height="wrap_content"/>
``` |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Declare custom style in your styles.xml file.
```
<style name="MyRadioButton" parent="Theme.AppCompat.Light">
<item name="colorControlNormal">@color/indigo</item>
<item name="colorControlActivated">@color/pink</item>
</style>
```
Apply this style to your RadioButton via android:theme attribute.
```
<RadioBu... | You could add this to your styles.xml
```
<style name="Widget.Styles.Radio.RadioButton"
<item name="android:textAppearance">@style/ANY_TYPOGRAPHY_STYLE</item>
</style>
```
**ANY\_TYPOGRAPHY\_STYLE** is for example:
* *TextAppearance.MaterialComponents.Caption* if you are using the Material theme
* *TextAppeara... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | The **radiobutton\_drawable.xml** has a missing `</selector>` tag in the end.
Plus you should do this to your radio button-
```
<RadioButton android:layout_width="wrap_content"
android:layout_marginTop="20dp"
android:id="@+id/radio"
style="@style/radionbutton"
android:layout... | Need to apply individual style to radio button
```
<RadioButton
android:layout_width="wrap_content"
style="@style/radiobutton_drawable"
android:layout_height="wrap_content"/>
``` |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Finally, i found answer by myself
I just create custom layout and add to ListAdapter object
radiobuttonlayout.xml
```
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/checkedTextView"
android:layout_width="match_parent"
android:layout... | You could add this to your styles.xml
```
<style name="Widget.Styles.Radio.RadioButton"
<item name="android:textAppearance">@style/ANY_TYPOGRAPHY_STYLE</item>
</style>
```
**ANY\_TYPOGRAPHY\_STYLE** is for example:
* *TextAppearance.MaterialComponents.Caption* if you are using the Material theme
* *TextAppeara... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | The **radiobutton\_drawable.xml** has a missing `</selector>` tag in the end.
Plus you should do this to your radio button-
```
<RadioButton android:layout_width="wrap_content"
android:layout_marginTop="20dp"
android:id="@+id/radio"
style="@style/radionbutton"
android:layout... | You could add this to your styles.xml
```
<style name="Widget.Styles.Radio.RadioButton"
<item name="android:textAppearance">@style/ANY_TYPOGRAPHY_STYLE</item>
</style>
```
**ANY\_TYPOGRAPHY\_STYLE** is for example:
* *TextAppearance.MaterialComponents.Caption* if you are using the Material theme
* *TextAppeara... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Sure you can do it in the parent AppTheme just do the following:
First you will Use the `MaterialTheme` as your parent theme:
```
<style name="AppTheme" parent="Theme.MaterialComponents.*">
```
Then create your `RadioButton` style in `res/values/styles`
```
<style name="Widget.App.RadioButton" parent="Widget.Materi... | You could add this to your styles.xml
```
<style name="Widget.Styles.Radio.RadioButton"
<item name="android:textAppearance">@style/ANY_TYPOGRAPHY_STYLE</item>
</style>
```
**ANY\_TYPOGRAPHY\_STYLE** is for example:
* *TextAppearance.MaterialComponents.Caption* if you are using the Material theme
* *TextAppeara... |
35,150,890 | i want to change default theme of radio button to custom but it's not changing the theme. please help me out
styles.xml
```
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</i... | 2016/02/02 | [
"https://Stackoverflow.com/questions/35150890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5856639/"
] | Finally, i found answer by myself
I just create custom layout and add to ListAdapter object
radiobuttonlayout.xml
```
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/checkedTextView"
android:layout_width="match_parent"
android:layout... | The **radiobutton\_drawable.xml** has a missing `</selector>` tag in the end.
Plus you should do this to your radio button-
```
<RadioButton android:layout_width="wrap_content"
android:layout_marginTop="20dp"
android:id="@+id/radio"
style="@style/radionbutton"
android:layout... |
67,180,016 | I use Visual Studio Code and the [CMake extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) to work on a big project. The project consists of some libraries and executables which all are available as separate cmake build targets.
I configured VSCode / *tasks.json* to build the selecte... | 2021/04/20 | [
"https://Stackoverflow.com/questions/67180016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9072458/"
] | Couple of options here:
* Floored to 15 minutes:
```
=IFERROR(1/INT(A1)^-1&" hour(s) ")
&IFERROR(1/(MOD(INT(4*A1)/4*60,60))^-1&" minute(s)")
```
* Rounded to 15 minutes:
```
=IFERROR(1/INT(ROUND(4*A1)/4)^-1&" hour(s) ")
&IFERROR(1/(MOD(ROUND(4*A1)/4*60,60))^-1&" minute(s)")
```
| Number of hours | Floored to 15-... | This is an array formula version of Calculuswhiz's ROUND formula, controlling for the "s" or lack thereof. Place it in the first cell of an otherwise empty column (e.g., B1):
`=ArrayFormula({"Human Readable";IFERROR(1/INT(ROUND(4*A2:A)/4)^-1&" hour"&IF(INT(ROUND(4*A2:A)/4)^-1=1,,"s")&" ") &IFERROR(1/(MOD(ROUND(4*A2:A)... |
555,922 | I used the gamlss to fit the model.
Bottom right panel: Normal QQPlot of the quantile residuals. The plots suggest a slight left skewness of the quantile residuals. My questions is should this be consider als a issue or this can be taken als ok?
[](htt... | 2021/12/13 | [
"https://stats.stackexchange.com/questions/555922",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/338303/"
] | The normalised quantile residuals are positively skewed,
i.e skewed to the right, (i.e. a heavier right tail).
Whether this is an important issue depends on the purpose of your analysis.
For example if you are estimating centiles (especially in the tails)
then it is an important issue. | A possible adjustment to the model would be to
change to a response distribution which is more flexible,
(allowing for a higher positive skewness).
I don't know what distribution you are currently using.
However, since the disease counts is discrete,
possible discrete flexible distributions include:
NBI and NBII, di... |
555,922 | I used the gamlss to fit the model.
Bottom right panel: Normal QQPlot of the quantile residuals. The plots suggest a slight left skewness of the quantile residuals. My questions is should this be consider als a issue or this can be taken als ok?
[](htt... | 2021/12/13 | [
"https://stats.stackexchange.com/questions/555922",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/338303/"
] | I prefer a negative binomial (NBI or NBII in gamlss)
to a quasi-Poisson.
The negative binomial is a proper distribution
and NBI and NBII have 2 different variance-mean relationships.
For NBI the variance = mu + sigma\*(mu^2)
For NBII the variance = mu + sigma\*mu
The mu and sigma parameters of NBI (or NBII) can each ... | The normalised quantile residuals are positively skewed,
i.e skewed to the right, (i.e. a heavier right tail).
Whether this is an important issue depends on the purpose of your analysis.
For example if you are estimating centiles (especially in the tails)
then it is an important issue. |
555,922 | I used the gamlss to fit the model.
Bottom right panel: Normal QQPlot of the quantile residuals. The plots suggest a slight left skewness of the quantile residuals. My questions is should this be consider als a issue or this can be taken als ok?
[](htt... | 2021/12/13 | [
"https://stats.stackexchange.com/questions/555922",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/338303/"
] | I prefer a negative binomial (NBI or NBII in gamlss)
to a quasi-Poisson.
The negative binomial is a proper distribution
and NBI and NBII have 2 different variance-mean relationships.
For NBI the variance = mu + sigma\*(mu^2)
For NBII the variance = mu + sigma\*mu
The mu and sigma parameters of NBI (or NBII) can each ... | A possible adjustment to the model would be to
change to a response distribution which is more flexible,
(allowing for a higher positive skewness).
I don't know what distribution you are currently using.
However, since the disease counts is discrete,
possible discrete flexible distributions include:
NBI and NBII, di... |
25,602 | I am a beginner in game development. I want to create a parallax background that merges at the front and expands at the bottom. I'm sure there is a way to do this, but I'm missing something. My parallax background is working fine but didn't merge from start to bottom.
Any guidance? Thanks!
Code for my parallax:
```
... | 2012/03/15 | [
"https://gamedev.stackexchange.com/questions/25602",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/7143/"
] | Your question is a bit rough but if I'm following correctly, you want to make it so the background is stretched horizontally as it moves towards the bottom of the screen, giving it a somewhat isometric view and a more angled perspective.
Just as a warning, I've no direct android development experience myself so this i... | I use that for full screen
```
autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(0.0f, new Sprite(0, 0, camera.getWidth() ,camera.getHeight() ,this.mParallaxLayerBack, vertexBufferObjectManager)));
autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(-5.0f, new Sprite(0, 80, this.mParallaxLayerM... |
31,247,758 | i am working on action bar . i want to add searchview option on the action bar but app crash here.
this is crash

this is my code of option menu xml
```
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/se... | 2015/07/06 | [
"https://Stackoverflow.com/questions/31247758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5018000/"
] | Using jQuery (which is included in the Zendesk Help Center), you can do this:
```
$('#launcher').contents().find('.Button--launcher').click();
```
I tested it out on your site in the Chrome console, and it activates the widget.
I found info relating to this answer here: [IFrame button click event](https://stackover... | THIS:
```
$zopim(function() {
$zopim.livechat.window.show();
});
```
If you wanna call it from HTML:
```
<a href="javascript:$zopim.livechat.window.show();">
```
You can also check their API docs: <https://api.zopim.com/files/meshim/widget/controllers/liveChatAPI/Window-js.html> |
31,247,758 | i am working on action bar . i want to add searchview option on the action bar but app crash here.
this is crash

this is my code of option menu xml
```
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/se... | 2015/07/06 | [
"https://Stackoverflow.com/questions/31247758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5018000/"
] | Using jQuery (which is included in the Zendesk Help Center), you can do this:
```
$('#launcher').contents().find('.Button--launcher').click();
```
I tested it out on your site in the Chrome console, and it activates the widget.
I found info relating to this answer here: [IFrame button click event](https://stackover... | `zE.activate();` Worked for me when used jQuery |
31,247,758 | i am working on action bar . i want to add searchview option on the action bar but app crash here.
this is crash

this is my code of option menu xml
```
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/se... | 2015/07/06 | [
"https://Stackoverflow.com/questions/31247758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5018000/"
] | THIS:
```
$zopim(function() {
$zopim.livechat.window.show();
});
```
If you wanna call it from HTML:
```
<a href="javascript:$zopim.livechat.window.show();">
```
You can also check their API docs: <https://api.zopim.com/files/meshim/widget/controllers/liveChatAPI/Window-js.html> | `zE.activate();` Worked for me when used jQuery |
62,682,536 | I have two tables that look like this:
Table 1:
```
name | event | country
```
Table 2:
```
name | event
```
There are no overlapping rows between Table 1 and Table 2, because of the 'event' column. I wanted to union Table 1 with Table 2 since there are no overlaps, but I also want to fill in 'country' for Table... | 2020/07/01 | [
"https://Stackoverflow.com/questions/62682536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10812410/"
] | Use:
```
public static void main (String [] args) {
int i;
int sum = 3;
for (i = 0; i < 2500; i++) {
if(i%2==0) System.out.println(sum);
else System.out.println(-1*sum);
sum += 3;
}
}
``` | By making sum = sum + 3 and sum is -6 it will make -6 + 3 = -3 and then \*-1
U will have to make a condition to make +3 or -3 in those cases |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.