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 |
|---|---|---|---|---|---|
12,829 | [Some](https://space.stackexchange.com/questions/10230/what-is-so-hard-about-making-a-throttleable-large-rocket-engine) [questions](https://space.stackexchange.com/questions/12823/what-makes-the-merlin-vacuum-engine-so-deeply-throttleable) popped up about difficulties of creating throttleable liquid fuel engines.
I wo... | 2015/11/30 | [
"https://space.stackexchange.com/questions/12829",
"https://space.stackexchange.com",
"https://space.stackexchange.com/users/103/"
] | Having a large range of thrust settings is important for landings, not so much for launches. During a launch, you want some throttlability to reduce loads around max-Q, but otherwise a launch is most efficient when it's done as quickly as possible. So in non-reusable launchers, there's no point in being able to shut do... | [As discussed in this other thread](https://space.stackexchange.com/a/14679/23891), the biggest problem with having lots of little engines is that lots of little engines means lots of small fuel and oxidiser lines (whereas, if you use a few big engines, you can get away with using a few big fuel and oxidiser lines). Wh... |
899,630 | Yesterday, for around 10 minutes, my haproxy served a lot of 503 pages (directly from `errorfile 503 /etc/haproxy/errors/503.http`) and I don't know why. I have no health checks to my backends, so for sure these were not marked as disabled. The stats page doesn't show that a limit was reached (in the marked red areas).... | 2018/03/02 | [
"https://serverfault.com/questions/899630",
"https://serverfault.com",
"https://serverfault.com/users/1816/"
] | The netmask on the alias IP 23.30.51.CCC is too large. Should be 255.255.255.255. | The 23.30.51.CCC IP's netmask shoud be the same as 23.30.51.BB: **255.255.255.248** |
9,371,622 | I am encountering issues with aligning a CSS Search Input Box like the Google style one found on this [tutorial page](http://www.queness.com/post/8434/re-create-googles-search-input-field-and-submit-button).
I have edited the code to suit my design but for some reason I am unable to get this to align properly within t... | 2012/02/21 | [
"https://Stackoverflow.com/questions/9371622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1222406/"
] | I think what you may be looking for is the GridView which uses a ListAdapter to get its data from. See <http://developer.android.com/reference/android/widget/GridView.html> for more details. Also see [Android SDK Directory]/samples/ApiDemos/src/com/example/android/apis/view/Grid1.java for a demo of a simple launcher us... | In API 12 and earlier, you want:
```
public static final int BUTTON_WIDTH = 80;
public static final int BUTTON_HEIGHT = 80;
public static final int SPACING = 8;
Display display = getWindowManager().getDefaultDisplay();
public int screenWidth = display.getWidth();
public int screenHeight = display.getHeight();
//... |
10,971,161 | I am working with over 29 million elements, so thought a database would make more sense than an array.
Previously I was passing elements one at a time to the `execute` function, but I believe passing an array of 100,000 elements at a time to the `executemany` function would be more efficient.
I have shortened my 180 ... | 2012/06/10 | [
"https://Stackoverflow.com/questions/10971161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438003/"
] | When using `.executemany()` you must provide a sequence of tuples (or lists).
So all you need to do is wrap each word into a tuple (or list).
Example:
```
cursor.executemany("insert into array values (?)",
[(u'usa',), (u'sharp',), (u'rise',)])
```
(In case the above is not clear, the 2nd ar... | Ahh, they need to be in their own elements:
```
import sqlite3
if __name__ == '__main__':
connection = sqlite3.connect('array.db')
cursor = connection.cursor()
cursor.execute("create table array (word text);")
cursor.executemany("insert into array values (?)", [[u'nabisco'],[u'usa'], [u'sharp'], [u'ri... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | The bash variable $PWD contains the path directory of your terminal window. you might only want to pipe the command pwd into the clipboard so:
```
echo $PWD | pbcopy
```
also:
you can pipe the output of a command to a file.
like `pwd > file.txt`
so if you save a variable to your bash file you can :
```ps
pwd > $v... | I made a small tool providing similar functionality, without using xclip or xsel. Std out is copied to a clipboard and can be pasted again in the terminal, see:
<https://sourceforge.net/projects/commandlinecopypaste/>
Note, that this tool does not need an x-session. The clipboard can just be used within terminal and... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | You can get and use the `xclip` and `xsel` commands. Instructions for obtaining and using them are [here](http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/).
Without any arguments, `xclip` copies into the primary (middle-click-paste) clipboard instead of the `Ctrl`-`C`/`Ctrl`-`V`/righ... | I made a small tool providing similar functionality, without using xclip or xsel. Std out is copied to a clipboard and can be pasted again in the terminal, see:
<https://sourceforge.net/projects/commandlinecopypaste/>
Note, that this tool does not need an x-session. The clipboard can just be used within terminal and... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | You can get and use the `xclip` and `xsel` commands. Instructions for obtaining and using them are [here](http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/).
Without any arguments, `xclip` copies into the primary (middle-click-paste) clipboard instead of the `Ctrl`-`C`/`Ctrl`-`V`/righ... | If you run the shell within a **screen** or **byobu** session, you can do this:
1. Enter scrollback mode: `Ctrl`+`A`, `[` or `F7` in **byobu**.
2. Move the cursor to the start of the text you want to copy, hit `space`.
3. Move the cursor to the end of the text you want to copy and hit `Enter`.
4. To paste text, hit `C... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | The bash variable $PWD contains the path directory of your terminal window. you might only want to pipe the command pwd into the clipboard so:
```
echo $PWD | pbcopy
```
also:
you can pipe the output of a command to a file.
like `pwd > file.txt`
so if you save a variable to your bash file you can :
```ps
pwd > $v... | If you run the shell within a **screen** or **byobu** session, you can do this:
1. Enter scrollback mode: `Ctrl`+`A`, `[` or `F7` in **byobu**.
2. Move the cursor to the start of the text you want to copy, hit `space`.
3. Move the cursor to the end of the text you want to copy and hit `Enter`.
4. To paste text, hit `C... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | If you are on a MAC you can use [pbcopy](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pbcopy.1.html) like this:
```
pbcopy < thing_to_write_to_clipboard
``` | In addition to the answers above I would add that MSYS2 and Cygwin have neither `xclip` nor `xsel` by default, but implement `/dev/clipboard`:
```bash
$ pwd >> /dev/clipboard
``` |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | You can get and use the `xclip` and `xsel` commands. Instructions for obtaining and using them are [here](http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/).
Without any arguments, `xclip` copies into the primary (middle-click-paste) clipboard instead of the `Ctrl`-`C`/`Ctrl`-`V`/righ... | on Wayland xcopy doesn't seem to work, use [wl-clipboard](https://github.com/bugaevc/wl-clipboard) instead.
e.g. on fedora
```
sudo dnf install wl-clipboard
tree | wl-copy
wl-paste > file
``` |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | You can get and use the `xclip` and `xsel` commands. Instructions for obtaining and using them are [here](http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/).
Without any arguments, `xclip` copies into the primary (middle-click-paste) clipboard instead of the `Ctrl`-`C`/`Ctrl`-`V`/righ... | And an ugly way, for cases when you want to copy terminal output to clipboard but don't have a mouse connected to your machine — using "mouse keys" feature of X.
Press `Shift`+`NumLock`, and your numpad keys will work to control cursor movement. You can then press `Num 0` to simulate press & hold LMB, and move the cur... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | You can get and use the `xclip` and `xsel` commands. Instructions for obtaining and using them are [here](http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/).
Without any arguments, `xclip` copies into the primary (middle-click-paste) clipboard instead of the `Ctrl`-`C`/`Ctrl`-`V`/righ... | In addition to the answers above I would add that MSYS2 and Cygwin have neither `xclip` nor `xsel` by default, but implement `/dev/clipboard`:
```bash
$ pwd >> /dev/clipboard
``` |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | I'm afraid there is no such thing as "clipboard" in most linux shells, at least none I know of. There's a clipboard in the X server (if your system has X11, you may access it using `xclip` command). If you connect to your shell account using some ssh/terminal emulator software, like PuTTy, you can use the clipboard of ... | If you run the shell within a **screen** or **byobu** session, you can do this:
1. Enter scrollback mode: `Ctrl`+`A`, `[` or `F7` in **byobu**.
2. Move the cursor to the start of the text you want to copy, hit `space`.
3. Move the cursor to the end of the text you want to copy and hit `Enter`.
4. To paste text, hit `C... |
104,981 | Is it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard | 2010/02/05 | [
"https://superuser.com/questions/104981",
"https://superuser.com",
"https://superuser.com/users/23365/"
] | on Wayland xcopy doesn't seem to work, use [wl-clipboard](https://github.com/bugaevc/wl-clipboard) instead.
e.g. on fedora
```
sudo dnf install wl-clipboard
tree | wl-copy
wl-paste > file
``` | I made a small tool providing similar functionality, without using xclip or xsel. Std out is copied to a clipboard and can be pasted again in the terminal, see:
<https://sourceforge.net/projects/commandlinecopypaste/>
Note, that this tool does not need an x-session. The clipboard can just be used within terminal and... |
30,262,914 | Is there a way to detect html5 audio player when finished?
I'd like to submit a form after the audio is finished.
```
<audio controls>
<source src="horse.ogg" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
$( document ).ready(function() {
// when audio fini... | 2015/05/15 | [
"https://Stackoverflow.com/questions/30262914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3498491/"
] | I ended up solving the problem by changing my AppleScript build system in Sublime Text.
```
{
"cmd": ["/usr/bin/osascript", "$file"],
"variants": [
{
"name": "Script Library",
"cmd": ["/usr/bin/osacompile", "-o", "/Volumes/harddisk/Users/username/Library/Script Libraries/$file_... | If hard links breaks, then Script Editor like many apps and programs, writes contents to a new file. But, symbolic links should work. So, the solution is to use symbolic links. The disadvantage, is that the symbolic link, breaks if you move the file. (The symbolic link, really uses the name/path of the file, and not th... |
7,248,301 | My site has descriptions of the products we sell and I am currently trying to get those descriptions to pop up inside a modal popupextender. I can get them to popup with a textbox where I have enabled="false" so that it can't be edited, but it shows all the tags along with the text such as the `<p>`, `<li>`, etc. Is th... | 2011/08/30 | [
"https://Stackoverflow.com/questions/7248301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/880688/"
] | If the text wont be editable, why don't you use a asp:label instead?
Does the MarketingData field include html tags? Please provide an example of the value for MarketingData.
**Edit:**
If you know wich tags can be present on your text, you can simply create a property on the class that hold the propoerty called Marke... | I think a Literal would be the most appropriate control for this type of content, as it will preserve the HTML in the content. You could probably also use a Label.
If you would prefer to stick with a TextBox though, I would try setting the ReadOnly property to false (instead of Enabled). If you want to achieve the di... |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | We call them ***[Oven Mitts](https://en.wikipedia.org/wiki/Oven_glove)***.
At least online shopping seems to confirm!
It's interesting to see that '***oven glove***' is used too, it's obvious, but around here (NZ and Australia, and apparently the States) they are 'mitts'.
However, looking up the definition of ***[mi... | In order to identify the object the OP is describing, I posted this answer with the term I use. At first I didn't think about alternative expressions based on geographical location. Other users did that after mine. I think the OP can enjoy a lively and useful discussion on the theme.
***[Oven glove](http://dictionary... |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | In order to identify the object the OP is describing, I posted this answer with the term I use. At first I didn't think about alternative expressions based on geographical location. Other users did that after mine. I think the OP can enjoy a lively and useful discussion on the theme.
***[Oven glove](http://dictionary... | While oven mitts work, my family usually used rectangular pieces of cloth that were often also purposed as placemats to stop the tablecloth from melting/catching on fire. These are called [***Pot holders***](http://www.merriam-webster.com/dictionary/pot%20holder), though the single word "potholders" is also used on sho... |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | In order to identify the object the OP is describing, I posted this answer with the term I use. At first I didn't think about alternative expressions based on geographical location. Other users did that after mine. I think the OP can enjoy a lively and useful discussion on the theme.
***[Oven glove](http://dictionary... | As an alternative to Oven Mitts, Oven Glove and Pot Holders, I often hear them referred to as **Hot Mitts**.
[](https://i.stack.imgur.com/LVE2tm.jpg) |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | We call them ***[Oven Mitts](https://en.wikipedia.org/wiki/Oven_glove)***.
At least online shopping seems to confirm!
It's interesting to see that '***oven glove***' is used too, it's obvious, but around here (NZ and Australia, and apparently the States) they are 'mitts'.
However, looking up the definition of ***[mi... | While oven mitts work, my family usually used rectangular pieces of cloth that were often also purposed as placemats to stop the tablecloth from melting/catching on fire. These are called [***Pot holders***](http://www.merriam-webster.com/dictionary/pot%20holder), though the single word "potholders" is also used on sho... |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | We call them ***[Oven Mitts](https://en.wikipedia.org/wiki/Oven_glove)***.
At least online shopping seems to confirm!
It's interesting to see that '***oven glove***' is used too, it's obvious, but around here (NZ and Australia, and apparently the States) they are 'mitts'.
However, looking up the definition of ***[mi... | As an alternative to Oven Mitts, Oven Glove and Pot Holders, I often hear them referred to as **Hot Mitts**.
[](https://i.stack.imgur.com/LVE2tm.jpg) |
277,168 | Is there a specific name for the thick glove worn (or may be any cloth used) to touch hot dishes in the oven?
For example, we wear a glove and take the dish containing baked food from the oven.
It's use is to save our hand from being burnt by touching the hot dish. | 2015/10/01 | [
"https://english.stackexchange.com/questions/277168",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/95746/"
] | While oven mitts work, my family usually used rectangular pieces of cloth that were often also purposed as placemats to stop the tablecloth from melting/catching on fire. These are called [***Pot holders***](http://www.merriam-webster.com/dictionary/pot%20holder), though the single word "potholders" is also used on sho... | As an alternative to Oven Mitts, Oven Glove and Pot Holders, I often hear them referred to as **Hot Mitts**.
[](https://i.stack.imgur.com/LVE2tm.jpg) |
29,936 | Is there a term that covers both wasei eigo ("Japanese-made English") and gairaigo (words from foreign languages)? Can you call them カタカナ語? | 2015/12/19 | [
"https://japanese.stackexchange.com/questions/29936",
"https://japanese.stackexchange.com",
"https://japanese.stackexchange.com/users/91/"
] | [Wikipedia「外来語」](https://ja.wikipedia.org/wiki/%E5%A4%96%E6%9D%A5%E8%AA%9E)によると、
>
> 外来語とは、日本語における借用語のうち、漢語とそれ以前の借用語を除いたものである。おもに西洋諸言語からの借用であり、 洋語とも呼ばれる。また、カタカナで表記することが多いことからカタカナ語 、横書きで表記する言葉として日本に入ってきたことから横文字とも呼ばれる。
>
>
>
とあるので、「外来語」は「洋語」「カタカナ語」「横文字」とも呼ばれるようです。「和製英語」もこのように呼ばれるかどうかは書かれていませんが、少なくとも「カタカナ語」「横文字」は、「外... | First, *wasei eigo* should be viewed as a subcategory of *eigo-gairaigo*, i.e. *gairaigo* derived from English.
So, the pattern should look as follows
* *wasei eigo* ⊂ *eigo-gairaigo* ⊂ *gairaigo*
*Gairaigo* are words taken from foreign languages in general, and *eigo-gairaigo* are words derived from English; lastly... |
53,099,718 | I've created a bash file that queries my database and then updates some tables.
When I run it manually everything goes smoothly but when I run it with a cronjob it runs the first query and then stops before it goes into a loop.
After looking into it on the net I found a few things that may be the issue but from my side... | 2018/11/01 | [
"https://Stackoverflow.com/questions/53099718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2290882/"
] | The URL you're trying to download is invalid. URLs can't contain spaces. You need to URL encode it:
```
https://dl.dropboxusercontent.com/1/view/79q8i6f9zqx7y2w/Paragliding%20in%20Himalayas.avi
```
Have a look at: [how do I encode a complete http url String correctly?](https://stackoverflow.com/questions/3292579/h... | You can hand this task over to Os itself by using DownloadManager
```
private fun startDownload(url: String) {
val request = DownloadManager.Request(Uri.parse(url))
request.allowScanningByMediaScanner()
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
req... |
34,943,087 | i create a model class for my database user table. My database table hasn't got a confirmPassword field. But my class has it.
```
public class User
{
[Key]
public int id { get; set; }
[Required]
public string password{ get; set; }
[Compare("password", ErrorMessage = "Re-Type password!")]
[No... | 2016/01/22 | [
"https://Stackoverflow.com/questions/34943087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2098517/"
] | You should be using different `ViewModels` for Insert and Update operation. So that you can have (and validate) your own insert/update properties at the time of post operations.
Or else you can remove specific properties from Model Validation using `ModelState.Remove("confirmPassword");` (in your update post action),... | If you've got a different form that effectively needs a different
`ViewModel` (different data validation requirements, required fields, etc), then you could create a different view model class for that view.
so for example, create a class called UserUpdate (that doesn't include the confirm password field), and map it... |
61,017,379 | In this example I am subsetting a dataframe within an lapply by all the possible levels in `column`. This works fine but how could I expand this example if columns had 2 columns for example `columns = c("am","cyl")`? I haven't been able to come up with anything that works, Thanks
```
columns = ("am")
out <-
lapply(u... | 2020/04/03 | [
"https://Stackoverflow.com/questions/61017379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1658170/"
] | Here's an approach using `dplyr` and `rlang`. I don't know if it's better than @Taufi's, particularly since it needs to retain the rownames in a new column.
To better understand the `rlang` part, `group_split` would typically be used as `group_split(am,cyl)`. So we ask `parse_exprs` to transform the text held in `col... | You can use the `map` function like this
```
columns = c("am", "cyl")
map(columns, function(a) lapply(unique(mtcars[, a]), function(x) {
tempDf <- head(mtcars[mtcars[, a] %in% x, ])
return(tempDf)
}))
```
with the output
```
[[1]]
[[1]][[1]]
mpg cyl disp hp drat wt qsec vs am gear ca... |
440,295 | I'm after a word that best describes a person that works under someone else.
For example, I had a joke with my manager saying that I have to do his bidding because I'm his **subordinate**. We laughed, then later thought what is the actual word for this relationship with a manager? Subordinate seems a little harsh for ... | 2018/04/06 | [
"https://english.stackexchange.com/questions/440295",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/291804/"
] | a **subordinate** [TFD](https://www.thefreedictionary.com/subordinate)
>
> Subject to the authority or control of another
>
>
>
And likely in this org you have those *superior* to you. | A little less formally, you could describe yourself as a **'member of his team'**. He is the team leader, so the team belongs to *him*. It’s a little tongue-in-cheek when there are only two members of the team in total.
Other alternatives (ranging in colloquialism).
You are his
* sidekick (like Batman and Robin)
* la... |
47,261,569 | I have a view in which I have a `detailview` and a `gridview`. In my `gridview` I have a checkbox. And on clicking on any check box I am able to get the `id` of the column(s) selected. Below is my view
```
//my DetailView
?= GridView::widget([
'dataProvider' => $dataProvider,
/*'filterModel' => $se... | 2017/11/13 | [
"https://Stackoverflow.com/questions/47261569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6854117/"
] | I think $url is not available into js code,
for example you can get the url via jquery when you click on #myid link like this way :
```
var url;
$('#myid').click(function() {
var strValue = "";
url = $(this).attr("href");
$('input[name="selection[]"]:checked').each(function() {
if(strValue!="")
{... | you should avoid the quote aroun php var
```
$.ajax({
url: $url,
.....
``` |
43,129,394 | How can I grab a count of each unique value from a table's column, plus the actual value, into another cell.
Table 1's status column
```
**status**
------
itemA
itemA
itemB
itemC
```
desired results into a single cell:
```
Table 1 Status summary |2 itemA, 1 itemB, 1 itemC
```
I would settle for a simple comm... | 2017/03/30 | [
"https://Stackoverflow.com/questions/43129394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7412315/"
] | The first example throws an exception because you modify the map while you are iterating over it. That is expected.
In the second example, you create an ArrayList containing all the strings in the map. Here you iterate over that newly created ArrayList, so your second example don't throw an example because you iterate... | This
```
for(String key : map.keySet()){
if(map.get(key) < 50){
map.remove(key);
}
}
```
will always throw a `ConcurrentModificationException` because you remove items while you iterate. What you need is an `Iterator` which has the `remove` operation:
```
for(Iterator<Map.Entry<String, Integer>> it ... |
43,129,394 | How can I grab a count of each unique value from a table's column, plus the actual value, into another cell.
Table 1's status column
```
**status**
------
itemA
itemA
itemB
itemC
```
desired results into a single cell:
```
Table 1 Status summary |2 itemA, 1 itemB, 1 itemC
```
I would settle for a simple comm... | 2017/03/30 | [
"https://Stackoverflow.com/questions/43129394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7412315/"
] | The first example throws an exception because you modify the map while you are iterating over it. That is expected.
In the second example, you create an ArrayList containing all the strings in the map. Here you iterate over that newly created ArrayList, so your second example don't throw an example because you iterate... | In the first case you get a concurrentModificationException because there's a modification count associated with iteration in terms of internal implementation. If the modification count changes during iteration a concurrentModificaitonException is thrown.
The solution is to use iterator.remove() instead of removing a... |
1,614,331 | I have two laptop PCs:
1. HP EliteBook 840 G4 (for personal use)
2. Lenovo T480 (for work use)
My Lenovo is connected to a ThinkPad USB-C Dock Gen 2 (Type 40AS) so it can project to 2 monitors. I would like to use this dock on my HP EliteBook when I'm not using my Lenovo since based on the [Product Page of the Dock](... | 2021/01/01 | [
"https://superuser.com/questions/1614331",
"https://superuser.com",
"https://superuser.com/users/-1/"
] | Finally I got the answer it is the `INDIRECT` function, in the above case if user enter the value on cell B2 of sheet1 then the formula is `=INDIRECT("Sheet2!A"&B2)` | You can use a reference to the cell in another sheet.
In a blank cell, type a `=` sign, then click on the sheet and then on the cell. Confirm with the Enter key.
That will create the reference like `=Sheet1!$A$`
Whenever the value in cell A1 on Sheet1 changes, the cell with the formula reference will also change.
E... |
66,484,575 | I am new in SwiftUI and also iOS development.
I tried to create 2 buttons, but I can't change the color of background or size.
it looks like this:
[](https://i.stack.imgur.com/8Hu4J.png)
below is the code:
```
HStack {
Button( ... | 2021/03/04 | [
"https://Stackoverflow.com/questions/66484575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4033050/"
] | You can create your own `ButtonStyle` which you can fully customise and *reuse*:
```
struct CustomButtonStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
configuration.label
.padding(10) // *make it thinner*
.frame(maxWidth: .infinity) // expand horizon... | Most **important** thing that we can remember for us is when we are facing with situation that we are not sure about size, then use shapes to fill all available space and then limit them as you want, like I did in code, you can change the numbers to your design.
```
import SwiftUI
struct ContentView: View {
var b... |
66,484,575 | I am new in SwiftUI and also iOS development.
I tried to create 2 buttons, but I can't change the color of background or size.
it looks like this:
[](https://i.stack.imgur.com/8Hu4J.png)
below is the code:
```
HStack {
Button( ... | 2021/03/04 | [
"https://Stackoverflow.com/questions/66484575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4033050/"
] | => Long story in short
May someone found it handy.
```
struct test: View {
let roundRect = RoundedRectangle(cornerRadius: 25.0)
var body: some View {
HStack {
Button( action: {
print("click")
}){
Text("Login")
.frame(width: UIScreen.main.bounds.width*0.4, he... | You can create your own `ButtonStyle` which you can fully customise and *reuse*:
```
struct CustomButtonStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
configuration.label
.padding(10) // *make it thinner*
.frame(maxWidth: .infinity) // expand horizon... |
66,484,575 | I am new in SwiftUI and also iOS development.
I tried to create 2 buttons, but I can't change the color of background or size.
it looks like this:
[](https://i.stack.imgur.com/8Hu4J.png)
below is the code:
```
HStack {
Button( ... | 2021/03/04 | [
"https://Stackoverflow.com/questions/66484575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4033050/"
] | => Long story in short
May someone found it handy.
```
struct test: View {
let roundRect = RoundedRectangle(cornerRadius: 25.0)
var body: some View {
HStack {
Button( action: {
print("click")
}){
Text("Login")
.frame(width: UIScreen.main.bounds.width*0.4, he... | Most **important** thing that we can remember for us is when we are facing with situation that we are not sure about size, then use shapes to fill all available space and then limit them as you want, like I did in code, you can change the numbers to your design.
```
import SwiftUI
struct ContentView: View {
var b... |
4,315,529 | I have a custom table view cell that is intended to draw a circle like the iPhone’s Mail.app does:

Instead, it draws like this:

Here’s my code:
```
CGContextRef context = UIGraphicsGetCurrentCo... | 2010/11/30 | [
"https://Stackoverflow.com/questions/4315529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78877/"
] | I was able to solve this by changing the `UIColor` to the same color Apple uses, `#E5E5E5`:
```
[UIColor colorWithRed: 0.8980392157 green: 0.8980392157 blue: 0.8980392157 alpha: 1.0]
```
And changing the line width from the default `1.0` to `2.0`:
```
CGContextSetLineWidth(context, 2.0);
```
Tweaking the size was... | Try setting its alpha to 0.5 and making the borders thicker, for example, like this:
```
CGContextSetAlpha(context, 0.5);
``` |
69,977,612 | New to learning Python and trying to test a few things out to better understand a better way to code within Python. For this question what I'm trying to do is, have the user input an answer from a list of options to then move onto the next function. So e.g.,
```
dnd_weapons = ["club", "great axe", "longbow", "hand cro... | 2021/11/15 | [
"https://Stackoverflow.com/questions/69977612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7132222/"
] | You could aggregate using a `CASE` expression which places `InfoSec` and `IT` into the same bucket:
```sql
SELECT
date,
CASE WHEN flag IN (2, 3) THEN 2 ELSE flag END AS flag,
CASE WHEN bu IN ('InfoSec', 'IT') THEN 'InformationTechnology'
ELSE bu END AS bu,
SUM(volume) AS volume,
SUM(calls)... | You need a `CASE` expression that merges the 2 values of `bu`:
```
SELECT date,
MIN(flag) flag,
CASE
WHEN bu IN ('InfoSec', 'IT') THEN 'InformationTechnology'
ELSE bu
END bu,
SUM(volume) volume,
SUM(calls) calls
FROM tablename
GROUP BY date,
CASE
... |
49,595,618 | [](https://i.stack.imgur.com/nfYTS.png)
```
declare @Sampledate table (SampleDate datetime)
insert into @Sampledate
select
'04/07/2018 18:18:29'
```
I get an error:
>
> Conversion failed when converting date and/or time from characte... | 2018/04/01 | [
"https://Stackoverflow.com/questions/49595618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9557563/"
] | Null pointer try to say that the textview is null. That can happen beacause the findviewbyid is not matching with the right one on your xml. Be sure your id matches on your xml and java file | Possibly there are two situation..
If u are using older version of Android studio then u should use this `TextView txtName = (TextView)findViewById(R.id.nameText);`
Another possibility is that may be the layout is different where the textview is declared. |
49,595,618 | [](https://i.stack.imgur.com/nfYTS.png)
```
declare @Sampledate table (SampleDate datetime)
insert into @Sampledate
select
'04/07/2018 18:18:29'
```
I get an error:
>
> Conversion failed when converting date and/or time from characte... | 2018/04/01 | [
"https://Stackoverflow.com/questions/49595618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9557563/"
] | Possibly there are two situation..
If u are using older version of Android studio then u should use this `TextView txtName = (TextView)findViewById(R.id.nameText);`
Another possibility is that may be the layout is different where the textview is declared. | This actually fixed my problem:
[How to change text of a TextView in navigation drawer header?](https://stackoverflow.com/questions/34973456/how-to-change-text-of-a-textview-in-navigation-drawer-header)
I was trying to set the navigation headers text from my Main Class. |
49,595,618 | [](https://i.stack.imgur.com/nfYTS.png)
```
declare @Sampledate table (SampleDate datetime)
insert into @Sampledate
select
'04/07/2018 18:18:29'
```
I get an error:
>
> Conversion failed when converting date and/or time from characte... | 2018/04/01 | [
"https://Stackoverflow.com/questions/49595618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9557563/"
] | Null pointer try to say that the textview is null. That can happen beacause the findviewbyid is not matching with the right one on your xml. Be sure your id matches on your xml and java file | This actually fixed my problem:
[How to change text of a TextView in navigation drawer header?](https://stackoverflow.com/questions/34973456/how-to-change-text-of-a-textview-in-navigation-drawer-header)
I was trying to set the navigation headers text from my Main Class. |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | I don't know for
```
June 14th, 2010
```
But if you want
```
June 14, 2010
```
Ref [how do i get name of the month in ruby on Rails?](https://stackoverflow.com/questions/3022163/how-do-i-get-name-of-the-month-in-ruby-on-rails/3022169#3022169) or [this](http://apidock.com/ruby/Time/strftime)
Just do
```
@date ... | You don't need to save it in a variable.
```
Time.now.strftime("%Y-%m-%d") # 2013-01-08
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | For future reference: [Rails date time formats](http://onrails.org/2008/08/20/what-are-all-the-rails-date-formats.html) | Needs the Time module for `Time.parse` and ActiveSupport for `Integer#ordinalize`:
```
require 'time'
require 'active_support'
input = '2010-06-14 19:01:00 UTC'
t = Time.parse(input)
date = "%s %s, %d" % [t.strftime("%B"), t.day.ordinalize, t.year]
# => "June 14th, 2010"
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | Time and date formats in rails:
Date
====
```
db:‘%Y-%m-%d’ 2008-08-20
long_ordinal:‘&proc’ August 20th, 2008
long:‘%B %e, %Y’ August 20, 2008
rfc822:‘%e %b %Y’ 20 Aug 2008
number:‘%Y%m%d’ 20080820
short:‘%e %b’ 20 Aug
```
DateTime
====
```
db:‘%Y-%m-%d’ 2008-08-20 16:56:21
long_ordina... | You don't need to save it in a variable.
```
Time.now.strftime("%Y-%m-%d") # 2013-01-08
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | I don't know for
```
June 14th, 2010
```
But if you want
```
June 14, 2010
```
Ref [how do i get name of the month in ruby on Rails?](https://stackoverflow.com/questions/3022163/how-do-i-get-name-of-the-month-in-ruby-on-rails/3022169#3022169) or [this](http://apidock.com/ruby/Time/strftime)
Just do
```
@date ... | Needs the Time module for `Time.parse` and ActiveSupport for `Integer#ordinalize`:
```
require 'time'
require 'active_support'
input = '2010-06-14 19:01:00 UTC'
t = Time.parse(input)
date = "%s %s, %d" % [t.strftime("%B"), t.day.ordinalize, t.year]
# => "June 14th, 2010"
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | For future reference: [Rails date time formats](http://onrails.org/2008/08/20/what-are-all-the-rails-date-formats.html) | Just the other day there was a similar question. In my answer [how do I get name of the month in ruby on Rails?](https://stackoverflow.com/questions/3022163/how-do-i-get-name-of-the-month-in-ruby-on-rails/3022466#3022466) I showed how you can add a custom `to_s` definition in your `config/environment.rb` file.
```
Act... |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | For future reference: [Rails date time formats](http://onrails.org/2008/08/20/what-are-all-the-rails-date-formats.html) | You don't need to save it in a variable.
```
Time.now.strftime("%Y-%m-%d") # 2013-01-08
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | Time and date formats in rails:
Date
====
```
db:‘%Y-%m-%d’ 2008-08-20
long_ordinal:‘&proc’ August 20th, 2008
long:‘%B %e, %Y’ August 20, 2008
rfc822:‘%e %b %Y’ 20 Aug 2008
number:‘%Y%m%d’ 20080820
short:‘%e %b’ 20 Aug
```
DateTime
====
```
db:‘%Y-%m-%d’ 2008-08-20 16:56:21
long_ordina... | Update that is working in Rails 5 :
```
<%= l @user.created_at, format: :short %>
```
Internationalize :
```
<%= I18n.l( @user.created_at, format: :short) %>
```
You can use :long instead of :short |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | For future reference: [Rails date time formats](http://onrails.org/2008/08/20/what-are-all-the-rails-date-formats.html) | Update that is working in Rails 5 :
```
<%= l @user.created_at, format: :short %>
```
Internationalize :
```
<%= I18n.l( @user.created_at, format: :short) %>
```
You can use :long instead of :short |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | Time and date formats in rails:
Date
====
```
db:‘%Y-%m-%d’ 2008-08-20
long_ordinal:‘&proc’ August 20th, 2008
long:‘%B %e, %Y’ August 20, 2008
rfc822:‘%e %b %Y’ 20 Aug 2008
number:‘%Y%m%d’ 20080820
short:‘%e %b’ 20 Aug
```
DateTime
====
```
db:‘%Y-%m-%d’ 2008-08-20 16:56:21
long_ordina... | Needs the Time module for `Time.parse` and ActiveSupport for `Integer#ordinalize`:
```
require 'time'
require 'active_support'
input = '2010-06-14 19:01:00 UTC'
t = Time.parse(input)
date = "%s %s, %d" % [t.strftime("%B"), t.day.ordinalize, t.year]
# => "June 14th, 2010"
``` |
3,042,804 | I am trying to display my data in datagridview. I created a class with different property and used its list as the datasource. it worked fine. but I got confused how to do that in case we have nested class.
My Classes are as follows:
```
class Category
property UIN as integer
property Name as string
end class
... | 2010/06/15 | [
"https://Stackoverflow.com/questions/3042804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178301/"
] | You don't need to save it in a variable.
```
Time.now.strftime("%Y-%m-%d") # 2013-01-08
``` | Update that is working in Rails 5 :
```
<%= l @user.created_at, format: :short %>
```
Internationalize :
```
<%= I18n.l( @user.created_at, format: :short) %>
```
You can use :long instead of :short |
62,854,996 | ```
students = LOAD 'hdfs://localhost:9000/pig_data/students.txt' USING PigStorage(',')
as (id:int, firstname:chararray, lastname:chararray, phone:chararray, city:chararray, cgpa:int);
group_all = Group students All;
student_count = foreach group_all Generate COUNT(students.cgpa);
Dump student_count;
```
This is ... | 2020/07/11 | [
"https://Stackoverflow.com/questions/62854996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12726769/"
] | Try to set [`ManyToManyField.symmetrical`](https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.ManyToManyField.symmetrical) to `False` | `ManyToMany` relation is wrong for your case. Cause a user can't be an employee of several employers, can only be an employee of a single employer.
So, you should simply create a many-to-one relationship:
```py
class CustomUser(AbstractBaseUser):
...
employer = models.ForeignKey('self', related_name='employee... |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | Read the [manual](http://pl.php.net/manual/en/function.substr.php).
```
substr($foto_filename, 11);
``` | ```
<?php $str = "The quick brown fox jumps over the lazy dog.";
echo $str2 = substr($str,11);
?>
``` |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | Read the [manual](http://pl.php.net/manual/en/function.substr.php).
```
substr($foto_filename, 11);
``` | ```
$srt = substr(trim($string), 11);
``` |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | Read the [manual](http://pl.php.net/manual/en/function.substr.php).
```
substr($foto_filename, 11);
``` | $name = '0123456789A\_Image.png';
echo substr ( $name, 0 , 11 ); // 0123456789A
echo substr ( $name, 11 ); // \_Image.png
echo substr ( $name, 12 ); //Image.png
[substr() PHP.NET](http://php.net/manual/ru/function.substr.php "PHP.NET") |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | Read the [manual](http://pl.php.net/manual/en/function.substr.php).
```
substr($foto_filename, 11);
``` | Try this,
```
$string = "How can i cut the first 11 characters from a string?";
echo substr($string , 11, strlen($string));
```
11 : indicate start position
strlen($string) : last position of the string
Reference : [PHP - Substr](http://php.net/substr) |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | Read the [manual](http://pl.php.net/manual/en/function.substr.php).
```
substr($foto_filename, 11);
``` | Try this
```
$str = "thisisasamplestring";
$count = strlen($str);
echo substr($str, (11-$count), ($count-11));
```
<http://sandbox.onlinephpfunctions.com/code/5e8796f9b1dfb2394bbd37e6638dff3fdd4f5e1d> |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | ```
<?php $str = "The quick brown fox jumps over the lazy dog.";
echo $str2 = substr($str,11);
?>
``` | ```
$srt = substr(trim($string), 11);
``` |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | ```
<?php $str = "The quick brown fox jumps over the lazy dog.";
echo $str2 = substr($str,11);
?>
``` | $name = '0123456789A\_Image.png';
echo substr ( $name, 0 , 11 ); // 0123456789A
echo substr ( $name, 11 ); // \_Image.png
echo substr ( $name, 12 ); //Image.png
[substr() PHP.NET](http://php.net/manual/ru/function.substr.php "PHP.NET") |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | ```
<?php $str = "The quick brown fox jumps over the lazy dog.";
echo $str2 = substr($str,11);
?>
``` | Try this,
```
$string = "How can i cut the first 11 characters from a string?";
echo substr($string , 11, strlen($string));
```
11 : indicate start position
strlen($string) : last position of the string
Reference : [PHP - Substr](http://php.net/substr) |
29,296,594 | Last week I started a Magento eCommerce. After downloading and installing a Magento theme I was wondering how to disable the 'shop by categories' block on the left side of my products page?
Who can help me? I did a lot to find my answer but I can't find it anywhere.
Kind regards,
Dion | 2015/03/27 | [
"https://Stackoverflow.com/questions/29296594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718679/"
] | ```
<?php $str = "The quick brown fox jumps over the lazy dog.";
echo $str2 = substr($str,11);
?>
``` | Try this
```
$str = "thisisasamplestring";
$count = strlen($str);
echo substr($str, (11-$count), ($count-11));
```
<http://sandbox.onlinephpfunctions.com/code/5e8796f9b1dfb2394bbd37e6638dff3fdd4f5e1d> |
17,358,554 | I have two calls this "tipo\_hh" and "tipo\_hh\_historial".
I need to make a join between the two tables, where "id" is the same in both tables.
But I need that for each "id" in the table "tipo\_hh" select the "valor" on the table "tipo\_hh\_historial" with the condition that is the record with "fecha\_cambio" and "ho... | 2013/06/28 | [
"https://Stackoverflow.com/questions/17358554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2115399/"
] | First of all you should use proper data types for your columns like for date there should a column of type data same as for the time column in you sample data set you have date formatted as `'%d/%m/%Y'` id this could be change to standard format `'%Y-%m-%d'` this will be good to so the below query is for proper types f... | ```
SELECT tipo_hh.id, tipo_hh.nombre, tipo_hh_historial.valor
FROM tipo_hh INNER JOIN tipo_hh_historial
ON tipo.id = tipo_hh_historial.id AS
group by tipo_hh_historial.id
Having max(tipo_hh_historial.hora_cambio);
``` |
17,358,554 | I have two calls this "tipo\_hh" and "tipo\_hh\_historial".
I need to make a join between the two tables, where "id" is the same in both tables.
But I need that for each "id" in the table "tipo\_hh" select the "valor" on the table "tipo\_hh\_historial" with the condition that is the record with "fecha\_cambio" and "ho... | 2013/06/28 | [
"https://Stackoverflow.com/questions/17358554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2115399/"
] | Using a sub query to get the max date / time for the historical record for each id, and using that to get the rest of the latest historical record:-
```
SELECT tipo_hh.id, tipo_hh.nombre, tipo_hh_historial.valor
FROM tipo_hh
INNER JOIN
(
SELECT id, MAX(STR_TO_DATE(CONCAT(fecha_cambio, hora_cambio), '%d/%m/%Y%k:%i... | ```
SELECT tipo_hh.id, tipo_hh.nombre, tipo_hh_historial.valor
FROM tipo_hh INNER JOIN tipo_hh_historial
ON tipo.id = tipo_hh_historial.id AS
group by tipo_hh_historial.id
Having max(tipo_hh_historial.hora_cambio);
``` |
17,358,554 | I have two calls this "tipo\_hh" and "tipo\_hh\_historial".
I need to make a join between the two tables, where "id" is the same in both tables.
But I need that for each "id" in the table "tipo\_hh" select the "valor" on the table "tipo\_hh\_historial" with the condition that is the record with "fecha\_cambio" and "ho... | 2013/06/28 | [
"https://Stackoverflow.com/questions/17358554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2115399/"
] | First of all you should use proper data types for your columns like for date there should a column of type data same as for the time column in you sample data set you have date formatted as `'%d/%m/%Y'` id this could be change to standard format `'%Y-%m-%d'` this will be good to so the below query is for proper types f... | try this:
```
SELECT A.id, B.nombre, A.valor, MAX(A.hora_cambio) AS hora_cambio_time
FROM tipo_hh_historial AS A
INNER JOIN tipo_hh AS B
ON(A.id = B.id)
GROUP BY A.id
``` |
17,358,554 | I have two calls this "tipo\_hh" and "tipo\_hh\_historial".
I need to make a join between the two tables, where "id" is the same in both tables.
But I need that for each "id" in the table "tipo\_hh" select the "valor" on the table "tipo\_hh\_historial" with the condition that is the record with "fecha\_cambio" and "ho... | 2013/06/28 | [
"https://Stackoverflow.com/questions/17358554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2115399/"
] | Using a sub query to get the max date / time for the historical record for each id, and using that to get the rest of the latest historical record:-
```
SELECT tipo_hh.id, tipo_hh.nombre, tipo_hh_historial.valor
FROM tipo_hh
INNER JOIN
(
SELECT id, MAX(STR_TO_DATE(CONCAT(fecha_cambio, hora_cambio), '%d/%m/%Y%k:%i... | try this:
```
SELECT A.id, B.nombre, A.valor, MAX(A.hora_cambio) AS hora_cambio_time
FROM tipo_hh_historial AS A
INNER JOIN tipo_hh AS B
ON(A.id = B.id)
GROUP BY A.id
``` |
58,609,907 | I have a spring service class where I'm loading a JPA object (target) via CRUD. This target class has a one-to-may mapping that is set to lazy loading.
I would like to query this object inside a spring service method that is annotated with `@Transactional` and avoid that the childs are being loaded.
When I execute ... | 2019/10/29 | [
"https://Stackoverflow.com/questions/58609907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3805467/"
] | My first assumption that the root cause had been the wrongly implemented repository function was wrong. The real issue was the @ToString annotation. This added the one-to-many event collection to toString(). While being inside the transaction and accessing the object, toString got invoked and the the collection was loa... | I figured it out. The problem was ins the Repository code. The findBy method is expecting a List instead of a single object.
My original repository looked like this
```
@Repository
public interface TargetRepository extends CrudRepository<Target, UUID> {
Target findEventsByUserIdAndTenantIdAndTargetDeviceId(String... |
16,530,686 | **Problem:**
I need to dump the contents of my DataGridView into a SQL Server Database Table. I've got the datagridview loading fine, no problems there. I'm just not familiar enough with VB.NET to understand how to get that data into a DB table.
**Code: (so far)**
```
Dim connection As New Data.SqlClient.SqlConn... | 2013/05/13 | [
"https://Stackoverflow.com/questions/16530686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2328398/"
] | Well, you need to execute the command, not simply add to the DataAdapter
Also, as it coded now, you don't need the DataAdapter at all.
```
Dim connection As New Data.SqlClient.SqlConnection
Dim command As New Data.SqlClient.SqlCommand
connection.ConnectionString = "Server= server; Database= DB; integrated security... | You can call: `command.ExecuteNonQuery` to insert data to the DB.
More info [here](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executenonquery.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) |
16,530,686 | **Problem:**
I need to dump the contents of my DataGridView into a SQL Server Database Table. I've got the datagridview loading fine, no problems there. I'm just not familiar enough with VB.NET to understand how to get that data into a DB table.
**Code: (so far)**
```
Dim connection As New Data.SqlClient.SqlConn... | 2013/05/13 | [
"https://Stackoverflow.com/questions/16530686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2328398/"
] | Well, you need to execute the command, not simply add to the DataAdapter
Also, as it coded now, you don't need the DataAdapter at all.
```
Dim connection As New Data.SqlClient.SqlConnection
Dim command As New Data.SqlClient.SqlCommand
connection.ConnectionString = "Server= server; Database= DB; integrated security... | For each object in your GridView, you need to find it and determine its value. So for example,
```
DropDownList ddlToLoc = (DropDownList)gvMovesMod.Rows[0].FindControl("ddlToLoc");
```
Then, determine ddlToLoc's SelectedValue and insert to database |
16,530,686 | **Problem:**
I need to dump the contents of my DataGridView into a SQL Server Database Table. I've got the datagridview loading fine, no problems there. I'm just not familiar enough with VB.NET to understand how to get that data into a DB table.
**Code: (so far)**
```
Dim connection As New Data.SqlClient.SqlConn... | 2013/05/13 | [
"https://Stackoverflow.com/questions/16530686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2328398/"
] | Well, you need to execute the command, not simply add to the DataAdapter
Also, as it coded now, you don't need the DataAdapter at all.
```
Dim connection As New Data.SqlClient.SqlConnection
Dim command As New Data.SqlClient.SqlCommand
connection.ConnectionString = "Server= server; Database= DB; integrated security... | **TRY THIS METHOD**
```
For index As Integer = 0 To DataGridView1.RowCount - 1
Dim connectionString = "Data Source=localhost;port=3306;Initial Catalog=hasna;User Id=root;password=''; Convert Zero Datetime=True"
Dim query0 = "insert into itemledgerfinal(Date,BillDate,BillNo,ItemName,GST,Rate,M... |
6,205 | I've pieced together this algorithm (if it can be called that) from various bits of code I've seen online, and I'm wondering how cryptographically secure it is. It's used to generate passwords:
```
function seed_random() {
$seed = crc32(uniqid(sha1(microtime(true) . getmypid()), true));
mt_srand($seed);
$n... | 2011/08/12 | [
"https://security.stackexchange.com/questions/6205",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/4217/"
] | In your code, you *have* to fill `$legal_characters` with the list of characters that you accept as part of a password. E.g.:
```
$legal_characters = "abcdefghijklmnopqrstuvwxyz";
```
if you want passwords consisting of lowercase letters (all lowercase latin letters, but no other characters and no accents).
This co... | **Analysis.** Your code has some shortcomings:
1. **Buggy use of system().** I suspect your shell command isn't going to do what you want it to, because you haven't quoted various shell metacharacters. Instead of `tr -dc %s`, you need `tr -dc '%s'`, and then you need to escape the single-quote in $legal\_characters.
2... |
14,589,354 | I was using a function that requires input as integers.
So I have been trying to [read up on making things integers](http://www.r-tutor.com/r-introduction/basic-data-types/integer):
```
y <- 3.14
as.integer(y)
[1] 3 # all cool
```
All good, but if I have
```
x <- 1639195531833
as.integer(x)
[1] NA
... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14589354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320502/"
] | The largest integer R can hold is
```
.Machine$integer.max
# [1] 2147483647
```
This has nothing to do with scientific notation and everything to do with how the computer actually stores the numbers. The current version of R stores integers still as 32bit, regardless of the architecture. This might change in the fut... | There are classes that can handle large integers. I use int64, its vignette is here:
<http://cran.r-project.org/web/packages/int64/vignettes/int64.pdf>
To use this you just place some normal number into that class then you can add or multiply it across the threshold of what the normal 32bit integer max. Good luck. |
14,589,354 | I was using a function that requires input as integers.
So I have been trying to [read up on making things integers](http://www.r-tutor.com/r-introduction/basic-data-types/integer):
```
y <- 3.14
as.integer(y)
[1] 3 # all cool
```
All good, but if I have
```
x <- 1639195531833
as.integer(x)
[1] NA
... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14589354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320502/"
] | The largest integer R can hold is
```
.Machine$integer.max
# [1] 2147483647
```
This has nothing to do with scientific notation and everything to do with how the computer actually stores the numbers. The current version of R stores integers still as 32bit, regardless of the architecture. This might change in the fut... | seems int64 is already deprecated. I use package bit64, method `as.integer64()` and solve the problem. details are referred to [here](https://cran.r-project.org/web/packages/bit64/bit64.pdf). |
14,589,354 | I was using a function that requires input as integers.
So I have been trying to [read up on making things integers](http://www.r-tutor.com/r-introduction/basic-data-types/integer):
```
y <- 3.14
as.integer(y)
[1] 3 # all cool
```
All good, but if I have
```
x <- 1639195531833
as.integer(x)
[1] NA
... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14589354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320502/"
] | The largest integer R can hold is
```
.Machine$integer.max
# [1] 2147483647
```
This has nothing to do with scientific notation and everything to do with how the computer actually stores the numbers. The current version of R stores integers still as 32bit, regardless of the architecture. This might change in the fut... | Update to Dason's answer (don't have enough reputation to make a comment):
The int64 package has now been deprecated, however there is now a package called bit64. I was able to achieve the same result using it. The syntax changed only slightly from "as.int64" to "as.integer64".
I.e.
```
library(bit64)
as.integer6... |
14,589,354 | I was using a function that requires input as integers.
So I have been trying to [read up on making things integers](http://www.r-tutor.com/r-introduction/basic-data-types/integer):
```
y <- 3.14
as.integer(y)
[1] 3 # all cool
```
All good, but if I have
```
x <- 1639195531833
as.integer(x)
[1] NA
... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14589354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320502/"
] | Update to Dason's answer (don't have enough reputation to make a comment):
The int64 package has now been deprecated, however there is now a package called bit64. I was able to achieve the same result using it. The syntax changed only slightly from "as.int64" to "as.integer64".
I.e.
```
library(bit64)
as.integer6... | There are classes that can handle large integers. I use int64, its vignette is here:
<http://cran.r-project.org/web/packages/int64/vignettes/int64.pdf>
To use this you just place some normal number into that class then you can add or multiply it across the threshold of what the normal 32bit integer max. Good luck. |
14,589,354 | I was using a function that requires input as integers.
So I have been trying to [read up on making things integers](http://www.r-tutor.com/r-introduction/basic-data-types/integer):
```
y <- 3.14
as.integer(y)
[1] 3 # all cool
```
All good, but if I have
```
x <- 1639195531833
as.integer(x)
[1] NA
... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14589354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320502/"
] | Update to Dason's answer (don't have enough reputation to make a comment):
The int64 package has now been deprecated, however there is now a package called bit64. I was able to achieve the same result using it. The syntax changed only slightly from "as.int64" to "as.integer64".
I.e.
```
library(bit64)
as.integer6... | seems int64 is already deprecated. I use package bit64, method `as.integer64()` and solve the problem. details are referred to [here](https://cran.r-project.org/web/packages/bit64/bit64.pdf). |
29,176,908 | Hello RoR + Mongo(Mongoid) application here
What is the immediate error msg?
```
Faraday::ConnectionFailed: connection refused: localhost:9200
```
When does this happen? When I try to save the User instance in console
```
User.create!(email:"kevin@gmail.com",password:"helloWorld123",password_confirmation:"helloWo... | 2015/03/20 | [
"https://Stackoverflow.com/questions/29176908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4643192/"
] | Please make sure your Elasticsearch is running | whenever user is created updates the indexes in elasticsearch
this was an elasticsearch error and not configuring the port correctly |
4,527,123 | Assume I know that the following statement is true:
For some $b,c \in \mathbb R$: $\forall x \in \mathbb R:x^2+bx+c \geq 0 \quad (\dagger\_1)$.
Now, suppose I want to show that some claim about these particular $b$ and $c$ is true under all possible conditions described by $(\dagger\_1)$. How exactly do I go about di... | 2022/09/08 | [
"https://math.stackexchange.com/questions/4527123",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/544640/"
] | Yes, the two are equivalent. Since the coefficient of $x^2$ is positive, the limit of your function is $+\infty$ in the positive and negative direction. Hence, if there exists an $x$ for which your $f(x) \le 0$, there must be a $k>x$ where $f(k) = 0$. The opposite direction of the if and only if is trivial. | Yes, 2 and 2' are equivalent, since (under your assumption that $\forall x \in \mathbb R:x^2+bx+c \ge2$)
$$\forall x\in\mathbb R\quad\left(x^2+bx+c\le0\Leftrightarrow x^2+bx+c=0\right).$$ |
51,060,610 | I am trying out angular, I have a home component that displays a list of countries, I want to display more information about the country in a detail view.
I can actually see the data when I pipe it to json in the template but can't access properties of the object.
in the home.html I have
```
<ion-list>
<ion-item *... | 2018/06/27 | [
"https://Stackoverflow.com/questions/51060610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6228166/"
] | Try to use safe navigation operator or ngif to verify the object is present , or you can initialize the country object as well.
```
<ion-content>
{{country?.name}}
</ion-content>
```
or
```
constructor() { public const country = {name:'',... etc}};
``` | I had the same issue. I had an object(*home*) that has two properties *id* and *name*
When I tried to access them in the HTML, the console logged me following error
>
> ERROR TypeError: Cannot read properties of undefined (reading 'id')
>
>
>
So I had to add \**ngIf* element to verify the object is present.
```
... |
711,917 | Sabine Hossenfelder recently posted a YouTube video titled, [The Closest we have to a Theory of Everything](https://youtu.be/A0da8TEeaeE).
At [9:15](https://youtu.be/A0da8TEeaeE?t=555), she shows the action $S$ for electrodynamics and, immediately after, the Einstein-Hilbert action for general relativity (with also th... | 2022/06/03 | [
"https://physics.stackexchange.com/questions/711917",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/182409/"
] | The action for QED in flat spacetime is
$$
S = \int d^4 x \left( - \frac{1}{4e^2} F\_{\mu\nu} F^{\mu\nu} + i {\bar \psi} \gamma^\mu D\_\mu \psi + m {\bar \psi} \psi\right) , \quad D\_\mu = \partial\_\mu + i A\_\mu , \quad F\_{\mu\nu} = \partial\_\mu A\_\nu - \partial\_\nu A\_\mu .
$$
Here $\gamma\_\mu$ is a $4\times 4... | As hinted in the comments and in the other answer, it is not the same action, but it is related. Let me be more specific. The action you're used to is probably
$$S = \int \left(- \frac{1}{4} F\_{\mu\nu}F^{\mu\nu} + j\_\mu A^{\mu}\right) \mathrm{d}^4x. \tag{1}$$
Sabine's version is
$$S = \int \left(- \frac{1}{4} F\_{\m... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | You've mentioned some ML techniques, so two quite nice books (quite because unfortunately my favorite is in Polish):
[http://www.amazon.com/Machine-Learning-Algorithmic-Perspective-Recognition/dp/1420067184](http://rads.stackoverflow.com/amzn/click/1420067184)
<http://ai.stanford.edu/~nilsson/mlbook.html>
For nu... | [Statistical Computing with R - Maria L. Rizzo](http://rads.stackoverflow.com/amzn/click/1584885459) covers a lot of the topics in Probability and Statistics for Computer Scientists - basic probability and statistics, random variables, Bayesian statistics, Markov chains, visualization of multivariate data, Monte Carlo ... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | I'd suggest Christopher Bishop's "Pattern Recognition and Machine Learning". You can see some of it, including a sample chapter, at <https://www.microsoft.com/en-us/research/people/cmbishop/#!prml-book> | As a computer engineer coming to data analysis myself, a really readable book that covers things from a pretty unintimidating & readable perspective (at the cost of not covering as much as any of the other books suggested here) was Programming Collective Intelligence by Toby Segaran. I found it a lot more approachable ... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | I'd suggest Christopher Bishop's "Pattern Recognition and Machine Learning". You can see some of it, including a sample chapter, at <https://www.microsoft.com/en-us/research/people/cmbishop/#!prml-book> | CRAN has several good examples of books pertaining to statistical programming. Some of them will not pertain to machine learning and MCMC, but each entry is annotated, so you should have a rough idea of what each book contains to dive a bit further.
<http://www.r-project.org/doc/bib/R-books.html> |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | I'd suggest Christopher Bishop's "Pattern Recognition and Machine Learning". You can see some of it, including a sample chapter, at <https://www.microsoft.com/en-us/research/people/cmbishop/#!prml-book> | I picked up a copy of [Probability and Statistics for Computer Scientists - Michael Baron](http://rads.stackoverflow.com/amzn/click/1584886412) on sale with another statistics book (I honestly bought it because of the name - I wanted a book that would take some kind of look at statistics from a computer science perspec... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | You've mentioned some ML techniques, so two quite nice books (quite because unfortunately my favorite is in Polish):
[http://www.amazon.com/Machine-Learning-Algorithmic-Perspective-Recognition/dp/1420067184](http://rads.stackoverflow.com/amzn/click/1420067184)
<http://ai.stanford.edu/~nilsson/mlbook.html>
For nu... | Although it's not specifically computational statistics, [A Handbook of Statistical Analyses Using R - Brian S. Everitt and Torsten Hothorn](http://rads.stackoverflow.com/amzn/click/1584885394) covers a lot of topics that I've seen covered in basic and intermediate statistics books - inference, ANOVA, linear regression... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | You might want to read the extremely popular question on Stack Overflow on
[what statistics a programmer or computer scientist should know](https://stackoverflow.com/questions/2039904/what-statistics-should-a-programmer-or-computer-scientist-know). | CRAN has several good examples of books pertaining to statistical programming. Some of them will not pertain to machine learning and MCMC, but each entry is annotated, so you should have a rough idea of what each book contains to dive a bit further.
<http://www.r-project.org/doc/bib/R-books.html> |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | You might want to read the extremely popular question on Stack Overflow on
[what statistics a programmer or computer scientist should know](https://stackoverflow.com/questions/2039904/what-statistics-should-a-programmer-or-computer-scientist-know). | Although it's not specifically computational statistics, [A Handbook of Statistical Analyses Using R - Brian S. Everitt and Torsten Hothorn](http://rads.stackoverflow.com/amzn/click/1584885394) covers a lot of topics that I've seen covered in basic and intermediate statistics books - inference, ANOVA, linear regression... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | Here is a very nice book from James E. Gentle, [Computational Statistics](http://www.springer.com/statistics/computanional+statistics/book/978-0-387-98143-7) (Springer, 2009), which covers both computational and statistical aspects of data analysis. Gentle also authored other great books, check his publications.
Anoth... | CRAN has several good examples of books pertaining to statistical programming. Some of them will not pertain to machine learning and MCMC, but each entry is annotated, so you should have a rough idea of what each book contains to dive a bit further.
<http://www.r-project.org/doc/bib/R-books.html> |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | You might want to read the extremely popular question on Stack Overflow on
[what statistics a programmer or computer scientist should know](https://stackoverflow.com/questions/2039904/what-statistics-should-a-programmer-or-computer-scientist-know). | I picked up a copy of [Probability and Statistics for Computer Scientists - Michael Baron](http://rads.stackoverflow.com/amzn/click/1584886412) on sale with another statistics book (I honestly bought it because of the name - I wanted a book that would take some kind of look at statistics from a computer science perspec... |
1,668 | As a software engineer, I'm interested in topics such as statistical algorithms, data mining, machine learning, Bayesian networks, classification algorithms, neural networks, Markov chains, Monte Carlo methods, and random number generation.
I personally haven't had the pleasure of working hands-on with any of these te... | 2010/08/13 | [
"https://stats.stackexchange.com/questions/1668",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/110/"
] | I'd suggest Christopher Bishop's "Pattern Recognition and Machine Learning". You can see some of it, including a sample chapter, at <https://www.microsoft.com/en-us/research/people/cmbishop/#!prml-book> | Although it's not specifically computational statistics, [A Handbook of Statistical Analyses Using R - Brian S. Everitt and Torsten Hothorn](http://rads.stackoverflow.com/amzn/click/1584885394) covers a lot of topics that I've seen covered in basic and intermediate statistics books - inference, ANOVA, linear regression... |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever takes command line options for output:
```
-l LOGFILE Logs the forever output to LOGFILE
-o OUTFILE Logs stdout from child script to OUTFILE
-e ERRFILE Logs stderr from child script to ERRFILE
```
For example:
```
forever start -o out.log -e err.log my-script.js
```
See [here](https://g... | Help is your best saviour, there is a logs action that you can call to check logs for all running processes.
```
forever --help
```
Shows the commands
```
logs Lists log files for all forever processes
logs <script|index> Tails the logs for <script|index>
```
Sample output of the above command, for... |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever takes command line options for output:
```
-l LOGFILE Logs the forever output to LOGFILE
-o OUTFILE Logs stdout from child script to OUTFILE
-e ERRFILE Logs stderr from child script to ERRFILE
```
For example:
```
forever start -o out.log -e err.log my-script.js
```
See [here](https://g... | By default forever places all of the files it needs into /$HOME/.forever. If you would like to change that location just set the FOREVER\_ROOT environment variable when you are running forever:
```
FOREVER_ROOT=/etc/forever forever start index.js
``` |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever, by default, will put logs into a random file in `~/.forever/` folder.
You should run `forever list` to see the running processes and their corresponding log file.
Sample output
```
>>> forever list
info: Forever processes running
data: uid command script forever pid logfile ... | You need to add the log destination specifiers before the filename to run. So
forever -e /path/error.txt -o /path/output.txt start index.js |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Need to do normal
`forever start script.js`
to start, and to check console/error logs use
`forever logs`
this will print list of all logs being stored by forever
and then you can use `tail -f /path/to/logs/file.log` and this will print live logs to your window. hit ctrl+z to stop logs print. | You need to add the log destination specifiers before the filename to run. So
forever -e /path/error.txt -o /path/output.txt start index.js |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | if you run the command "forever logs", you can see where are the logs files.
Source: <https://github.com/foreverjs/forever> | By default forever places all of the files it needs into /$HOME/.forever. If you would like to change that location just set the FOREVER\_ROOT environment variable when you are running forever:
```
FOREVER_ROOT=/etc/forever forever start index.js
``` |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever, by default, will put logs into a random file in `~/.forever/` folder.
You should run `forever list` to see the running processes and their corresponding log file.
Sample output
```
>>> forever list
info: Forever processes running
data: uid command script forever pid logfile ... | This worked for me :
```
forever -a -o out.log -e err.log app.js
``` |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever takes command line options for output:
```
-l LOGFILE Logs the forever output to LOGFILE
-o OUTFILE Logs stdout from child script to OUTFILE
-e ERRFILE Logs stderr from child script to ERRFILE
```
For example:
```
forever start -o out.log -e err.log my-script.js
```
See [here](https://g... | Forever, by default, will put logs into a random file in `~/.forever/` folder.
You should run `forever list` to see the running processes and their corresponding log file.
Sample output
```
>>> forever list
info: Forever processes running
data: uid command script forever pid logfile ... |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | It is a old question but i ran across the same issues. If you wanna see live output you can run
```
forever logs
```
This would show the path of the logs file as well as the number of the script. You can then use
```
forever logs 0 -f
```
0 should be replaced by the number of the script you wanna see the output... | Help is your best saviour, there is a logs action that you can call to check logs for all running processes.
```
forever --help
```
Shows the commands
```
logs Lists log files for all forever processes
logs <script|index> Tails the logs for <script|index>
```
Sample output of the above command, for... |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | if you run the command "forever logs", you can see where are the logs files.
Source: <https://github.com/foreverjs/forever> | Help is your best saviour, there is a logs action that you can call to check logs for all running processes.
```
forever --help
```
Shows the commands
```
logs Lists log files for all forever processes
logs <script|index> Tails the logs for <script|index>
```
Sample output of the above command, for... |
21,021,186 | I installed forever and am using it, finding it quite funny.
But I realized that the logs are placed to somewhere else. Is there any tips? | 2014/01/09 | [
"https://Stackoverflow.com/questions/21021186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1661640/"
] | Forever takes command line options for output:
```
-l LOGFILE Logs the forever output to LOGFILE
-o OUTFILE Logs stdout from child script to OUTFILE
-e ERRFILE Logs stderr from child script to ERRFILE
```
For example:
```
forever start -o out.log -e err.log my-script.js
```
See [here](https://g... | It is a old question but i ran across the same issues. If you wanna see live output you can run
```
forever logs
```
This would show the path of the logs file as well as the number of the script. You can then use
```
forever logs 0 -f
```
0 should be replaced by the number of the script you wanna see the output... |
80,182 | Are there any types of aircraft that I am forbidden from photographing aircraft. (Australian aircraft, primarily) in Australia? Are there regulations on what I do with the photographs I take? I assume there is some sort of thing published by the government but I couldn't find any. | 2020/08/09 | [
"https://aviation.stackexchange.com/questions/80182",
"https://aviation.stackexchange.com",
"https://aviation.stackexchange.com/users/50500/"
] | There is no law in Australia prohibiting the photography of aircraft. I have been approached by police while doing it just to see what I was up to, but after a polite exchange they were happy and moved on.
Potentially, if you're on private property (eg an airport terminal), the conditions of entry are allowed to prohi... | I haven't heard of problems when taking photographs on land. Note that if you are flying and you stray into an "Air Defense Identification Zone" anything that takes a photo may be confiscated after landing; assuming you aren't shot down!
<https://vfrg.casa.gov.au/operations/air-defence-identification-zone/general-2/> |
3,016,314 | I'm using SVNANT for checking out my project directory on my Windows XP machine. The first time I've used tortoiseSVN for the check out.. as result I obtained an error message relative to the incompatible versions so I had to fix it using a downgrade script. Now,I can't use tortoiseSVN for any operation on my project f... | 2010/06/10 | [
"https://Stackoverflow.com/questions/3016314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/360553/"
] | right click on your project --> Team --> Cleanup, this will remove the empty ".lock" files automatically created by subclipse. | Now change path of cleanup(for macOS)
select project -> Modify -> cleanup |
18,550,255 | I'm familiar with the WinDBG paradigm. Been reviewing a lot of dump files using WinDBG x64 version. For the most part dump files were .NET 2.0 applications and psscor2.dll. Current WinDBG version I am using is 6.12.0002.633. Recently, I've been trying to open x64 dump IIS dump files generated from a .NET 4.0 applicatio... | 2013/08/31 | [
"https://Stackoverflow.com/questions/18550255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/107435/"
] | The build number 4.0.30319.17929 is a .NET 4.5 build number. PSSCOR4 will not debug 4.5. You need to use a 4.0 SOS and/or SOSEX, which works for all version of .NET 2.0-4.5. | I have found in the past that there are 3 dlls you need to have the correct version of for debugging .Net.
sos.dll
mscorwks.dll
mscordacwks.dll
here's how I usually go about getting these dll's <http://sjbdeveloper.blogspot.com.au/>, although it sounds as though you are using a server based application which means yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.