qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
31,682,544
How do I get the value of an object when I click on it from a list? HTML Here: ``` <table class="ui table"> <thead> <th class="header small">Operator:</th> <th>Employee ID:</th> <th>Category:</th> <th>Number:</th> <th>Team Group</th> <th>Delete</th> <th...
2015/07/28
[ "https://Stackoverflow.com/questions/31682544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2694637/" ]
If your function is declared at root level and you are inside a foreach statement, you need to use `$root` keyword to reference it. Like this: **Note:** the click function should be declared in a `TR` not a `TBODY` ``` <tbody data-bind="foreach: Operators"> <tr data-bind="click: $root.getopid"> <td data-b...
This should give an onclick function to each of the cells in your table. If the cell is clicked it will output the value to the console. Hope this helps. ``` var table = document.getElementById('yourTable'), cells = table.getElementsByTagName('td'); for (var i=0,len=cells.length; i<len; i++){ cells[i].onclick...
31,682,544
How do I get the value of an object when I click on it from a list? HTML Here: ``` <table class="ui table"> <thead> <th class="header small">Operator:</th> <th>Employee ID:</th> <th>Category:</th> <th>Number:</th> <th>Team Group</th> <th>Delete</th> <th...
2015/07/28
[ "https://Stackoverflow.com/questions/31682544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2694637/" ]
You just need to put your click binding inside the `foreach` (at the row) and the first parameter to the click handler will be the row data. ```js function AppViewModel() { self.editop = ko.observableArray([]); self.Operators = ko.observableArray([]); //fn Gets JSON data this.GetData = function() { /...
If your function is declared at root level and you are inside a foreach statement, you need to use `$root` keyword to reference it. Like this: **Note:** the click function should be declared in a `TR` not a `TBODY` ``` <tbody data-bind="foreach: Operators"> <tr data-bind="click: $root.getopid"> <td data-b...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
> > Relentless > ---------- > > > Only by this word do we begin to approach the true being and essence of the glacier. ### Perception of Time Human perception grasps relations between things before a thing itself: to know what a thing *is*, we must first ask what it *does*. This question, put to a glacier, init...
* Gradually but surely we shall change the world. * The gradual pace of the glacier took place over millions of years, to carve the canyon. [gradual](http://www.thefreedictionary.com/gradual) [ˈgrædjʊəl] > > adj. > > > 1. taking place, changing, moving, etc., by small degrees or little by little: gradual improvem...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
You should have stated what register you were writing in. Journalistic (columnistic or newsy?), literary, academic etc. Helpful would've been a specification whether the adjective within your context should denote exclusively the rate of movement, or it can be multihued. Depending on how much you're allowed or inclined...
* Gradually but surely we shall change the world. * The gradual pace of the glacier took place over millions of years, to carve the canyon. [gradual](http://www.thefreedictionary.com/gradual) [ˈgrædjʊəl] > > adj. > > > 1. taking place, changing, moving, etc., by small degrees or little by little: gradual improvem...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
I have encountered ***creeping*** in the context of glaciers before. [***creeping***](http://www.merriam-webster.com/dictionary/creeping) > > advancing or developing gradually. > > > moving very slowly at a steady pace. > > > Another suitable adjective is ***sluggish***.
thanks to this question I was able to discover a new word! Try **[testudineous](https://en.wiktionary.org/wiki/testudineous)**: > > **Alternative forms** [testudinous](https://en.wiktionary.org/wiki/testudinous#English) > > > *Adjective* (comparative more ***testudineous***, superlative most ***testudineous***) > ...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
You should have stated what register you were writing in. Journalistic (columnistic or newsy?), literary, academic etc. Helpful would've been a specification whether the adjective within your context should denote exclusively the rate of movement, or it can be multihued. Depending on how much you're allowed or inclined...
Perhaps **[snail-like](http://www.collinsdictionary.com/dictionary/english/snail-like)**? > > resembling a snail, esp in moving very slowly > > > Also consider **[inexorable](http://www.merriam-webster.com/dictionary/inexorable)** > > not able to be stopped or changed > > > while it does not, in itself, con...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
> > Relentless > ---------- > > > Only by this word do we begin to approach the true being and essence of the glacier. ### Perception of Time Human perception grasps relations between things before a thing itself: to know what a thing *is*, we must first ask what it *does*. This question, put to a glacier, init...
thanks to this question I was able to discover a new word! Try **[testudineous](https://en.wiktionary.org/wiki/testudineous)**: > > **Alternative forms** [testudinous](https://en.wiktionary.org/wiki/testudinous#English) > > > *Adjective* (comparative more ***testudineous***, superlative most ***testudineous***) > ...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
I have encountered ***creeping*** in the context of glaciers before. [***creeping***](http://www.merriam-webster.com/dictionary/creeping) > > advancing or developing gradually. > > > moving very slowly at a steady pace. > > > Another suitable adjective is ***sluggish***.
May I submit ***relentless*** which dodges the question slightly; but, in my defence, I feel glaciers are not known for their startling pace, quite yet, anyway. Closer to your request is ***restless*** to suggest movement, unrelieved.
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
You should have stated what register you were writing in. Journalistic (columnistic or newsy?), literary, academic etc. Helpful would've been a specification whether the adjective within your context should denote exclusively the rate of movement, or it can be multihued. Depending on how much you're allowed or inclined...
May I submit ***relentless*** which dodges the question slightly; but, in my defence, I feel glaciers are not known for their startling pace, quite yet, anyway. Closer to your request is ***restless*** to suggest movement, unrelieved.
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
Perhaps **[snail-like](http://www.collinsdictionary.com/dictionary/english/snail-like)**? > > resembling a snail, esp in moving very slowly > > > Also consider **[inexorable](http://www.merriam-webster.com/dictionary/inexorable)** > > not able to be stopped or changed > > > while it does not, in itself, con...
* Gradually but surely we shall change the world. * The gradual pace of the glacier took place over millions of years, to carve the canyon. [gradual](http://www.thefreedictionary.com/gradual) [ˈgrædjʊəl] > > adj. > > > 1. taking place, changing, moving, etc., by small degrees or little by little: gradual improvem...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
thanks to this question I was able to discover a new word! Try **[testudineous](https://en.wiktionary.org/wiki/testudineous)**: > > **Alternative forms** [testudinous](https://en.wiktionary.org/wiki/testudinous#English) > > > *Adjective* (comparative more ***testudineous***, superlative most ***testudineous***) > ...
* Gradually but surely we shall change the world. * The gradual pace of the glacier took place over millions of years, to carve the canyon. [gradual](http://www.thefreedictionary.com/gradual) [ˈgrædjʊəl] > > adj. > > > 1. taking place, changing, moving, etc., by small degrees or little by little: gradual improvem...
127,773
I usually use "glacial" to denote something as very slow-moving, but this time I am actually talking about a glacier so it can't be "the glacial glacier". [These](http://thesaurus.com/browse/glacial) are the synonyms of "glacial" (They all mean cold) [These](http://thesaurus.com/browse/slow-moving) are for "slow-movi...
2013/09/18
[ "https://english.stackexchange.com/questions/127773", "https://english.stackexchange.com", "https://english.stackexchange.com/users/50025/" ]
You should have stated what register you were writing in. Journalistic (columnistic or newsy?), literary, academic etc. Helpful would've been a specification whether the adjective within your context should denote exclusively the rate of movement, or it can be multihued. Depending on how much you're allowed or inclined...
*Creeping* is great since it also implies forward motion which glacial does not. Another option might be simply *slow*, nothing wrong with the common words. If you want something that implies a large mass moving slowly, go for [*ponderous*](http://www.thefreedictionary.com/ponderous). Finally, another word for movi...
40,879,904
This is not duplicated a question. I tried using ksoap2-android. its working without any issue. It happens only on code generated by WSDL2Code @ <http://www.wsdl2code.com>. I tried many WSDLs: * <http://www.w3schools.com/xml/tempconvert.asmx?WSDL> * <http://www.webservicex.net/geoipservice.asmx?WSDL> All WSDLs from d...
2016/11/30
[ "https://Stackoverflow.com/questions/40879904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2267723/" ]
I noted that Code2WSDL generates empty url. Here is Snippet of generated code from `http://www.w3schools.com/xml/tempconvert.asmx?WSDL` : ``` public class TempConvert { public String NAMESPACE ="http://www.w3schools.com/xml/"; public String url=""; public int timeOut = 5000; public...
The tool Code2WSDL generates empty url. So put the url in the empty String url="" resolve the problem.
79,930
I removed engine oil cap and noticed the paint is peeling off the thread and will probably fall into the driv train/may already have. If you zoom into the pic you can see paint peel is quite bad. This is a b16a2 rocker cover which I think someone painted - it’s not the original paint. Anyway if this falls in could it...
2020/09/28
[ "https://mechanics.stackexchange.com/questions/79930", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/26792/" ]
I wouldn't worry. The engine has a filter to catch this type of debris. It will be caught and removed at your next service.
Small paint flecks aren't going to destroy your engine, but there is a small possibility they could do damage or a large fleck could block oil flow. I wouldn't ring alarm bells because of this, but I wouldn't leave it either. There's 2 ways you can get rid of the paint on the threads. 1. The best way is to remove tha...
79,930
I removed engine oil cap and noticed the paint is peeling off the thread and will probably fall into the driv train/may already have. If you zoom into the pic you can see paint peel is quite bad. This is a b16a2 rocker cover which I think someone painted - it’s not the original paint. Anyway if this falls in could it...
2020/09/28
[ "https://mechanics.stackexchange.com/questions/79930", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/26792/" ]
I wouldn't worry. The engine has a filter to catch this type of debris. It will be caught and removed at your next service.
This might take some time but what I would do is use a vacuum with small adapter like crevice tool and slowly pick away at the threads to remove the paint sucking up all that you pick at. Unless you remove the item completely. I would pour a quart or so of oil through it maybe picking up paint and taking it to the oil ...
79,930
I removed engine oil cap and noticed the paint is peeling off the thread and will probably fall into the driv train/may already have. If you zoom into the pic you can see paint peel is quite bad. This is a b16a2 rocker cover which I think someone painted - it’s not the original paint. Anyway if this falls in could it...
2020/09/28
[ "https://mechanics.stackexchange.com/questions/79930", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/26792/" ]
Small paint flecks aren't going to destroy your engine, but there is a small possibility they could do damage or a large fleck could block oil flow. I wouldn't ring alarm bells because of this, but I wouldn't leave it either. There's 2 ways you can get rid of the paint on the threads. 1. The best way is to remove tha...
This might take some time but what I would do is use a vacuum with small adapter like crevice tool and slowly pick away at the threads to remove the paint sucking up all that you pick at. Unless you remove the item completely. I would pour a quart or so of oil through it maybe picking up paint and taking it to the oil ...
716,324
I want to find the first 6 terms for the series expansion of this integral: $$\int x^x~dx$$ My idea was to let: $$x^x=e^{x\ln x}$$ From that we have: $$\int e^{x\ln x}~dx$$ The series expansion of $e^x$ is: $$\sum\limits\_{n=0}^\infty\frac{x^n}{n!}$$ Then we have: $$\int e^{x\ln x}~dx=\int\sum\limits\_{n=0}^\inft...
2014/03/18
[ "https://math.stackexchange.com/questions/716324", "https://math.stackexchange.com", "https://math.stackexchange.com/users/136155/" ]
You are in the right approach. Then you have to face $\int x^n(\ln x)^n~dx$ for non-negative integers $n$ : $\int x^n(\ln x)^n~dx$ $=\int(\ln x)^n~d\left(\dfrac{x^{n+1}}{n+1}\right)$ $=\dfrac{x^{n+1}(\ln x)^n}{n+1}-\int\dfrac{x^{n+1}}{n+1}d((\ln x)^n)$ $=\dfrac{x^{n+1}(\ln x)^n}{n+1}-\int\dfrac{nx^{n+1}(\ln x)^{n-1...
Try taking a Taylor series for $\log x$, multiplying it by $x$, and plugging the result into the Taylor series for $e^x$. You can easily compute the first few terms. Your choice of series for $\log x$ will affect where the result converges, so nothing will be valid everywhere. If this were a definite integral, it migh...
716,324
I want to find the first 6 terms for the series expansion of this integral: $$\int x^x~dx$$ My idea was to let: $$x^x=e^{x\ln x}$$ From that we have: $$\int e^{x\ln x}~dx$$ The series expansion of $e^x$ is: $$\sum\limits\_{n=0}^\infty\frac{x^n}{n!}$$ Then we have: $$\int e^{x\ln x}~dx=\int\sum\limits\_{n=0}^\inft...
2014/03/18
[ "https://math.stackexchange.com/questions/716324", "https://math.stackexchange.com", "https://math.stackexchange.com/users/136155/" ]
You are in the right approach. Then you have to face $\int x^n(\ln x)^n~dx$ for non-negative integers $n$ : $\int x^n(\ln x)^n~dx$ $=\int(\ln x)^n~d\left(\dfrac{x^{n+1}}{n+1}\right)$ $=\dfrac{x^{n+1}(\ln x)^n}{n+1}-\int\dfrac{x^{n+1}}{n+1}d((\ln x)^n)$ $=\dfrac{x^{n+1}(\ln x)^n}{n+1}-\int\dfrac{nx^{n+1}(\ln x)^{n-1...
<http://en.wikipedia.org/wiki/Exponential_formula> \begin{align} f(x) & = a\_1 x + \frac{a\_2}{2} x^2 + \frac{a\_3}{6} x^3 + \frac{a\_4}{24} x^4 + \frac{a\_5}{120} x^5 + \frac{a\_6}{720} x^6 + \cdots \\[10pt] e^{f(x)} & = 1 + a\_1 x + \frac{a\_2+a\_1^2}{2} x^2 + \frac{a\_3+3a\_2a\_1+ a\_1^3}{6} x^3 + \frac{a\_4 + 4a\_...
38,726,820
I have got a table with the following syntax: ``` ID, VALUE, TIMESTAMP ``` `(ID,TIMESTAMP)` is primary key, so there might be more than one row for each ID. There are 5000 unique ids. I want to retrieve the most recent entry for each ID. My naive way to do was: `SELECT * FROM table ORDER BY TIMESTAMP DESC LIMIT 5...
2016/08/02
[ "https://Stackoverflow.com/questions/38726820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3809334/" ]
TRY THIS ``` SELECT ID, VALUE, TIMESTAMP FROM table GROUP BY ID HAVING MAX(TIMESTAMP) ORDER BY TIMESTAMP DESC ; ``` OR ``` SELECT ID, VALUE, TIMESTAMP FROM table GROUP BY ID ORDER BY TIMESTAMP DESC ; ```
You would find the latest date for each ID entry, try this ``` SELECT * FROM table AS a WHERE TIMESTAMP = ( SELECT MAX(TIMESTAMP) FROM table AS b WHERE a.ID = b.ID ) ```
38,726,820
I have got a table with the following syntax: ``` ID, VALUE, TIMESTAMP ``` `(ID,TIMESTAMP)` is primary key, so there might be more than one row for each ID. There are 5000 unique ids. I want to retrieve the most recent entry for each ID. My naive way to do was: `SELECT * FROM table ORDER BY TIMESTAMP DESC LIMIT 5...
2016/08/02
[ "https://Stackoverflow.com/questions/38726820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3809334/" ]
TRY THIS ``` SELECT ID, VALUE, TIMESTAMP FROM table GROUP BY ID HAVING MAX(TIMESTAMP) ORDER BY TIMESTAMP DESC ; ``` OR ``` SELECT ID, VALUE, TIMESTAMP FROM table GROUP BY ID ORDER BY TIMESTAMP DESC ; ```
``` Please try this : SELECT * FROM (SELECT ID, VALUE, ROW_NUMBER() OVER(PARTITION BY ID ORDER BY TIMESTAMP DESC) AS TIMESTAMP FROM TABLE ) WHERE TIMESTAMP=1 ; If your DB supports QUALIFY statement you can try below also : SELECT * FROM TABLE QUALIFY ROW_NUMBER() OVER(PARTITION BY...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
Some examples of [`bpftrace`](https://github.com/iovisor/bpftrace) usage to achieve the goal. 1. The simplest one is tracing all `exec` calls in the system: ``` sudo bpftrace -e 'tracepoint:syscalls:sys_enter_exec*{ printf("pid: %d, comm: %s, args: ", pid, comm); join(args->argv); }' ``` There are at least two trac...
**`CONFIG_PROC_EVENTS=y`** Sample session: ``` $ su # ./proc_events.out & set mcast listen ok # sleep 2 & sleep 1 & fork: parent tid=48 pid=48 -> child tid=56 pid=56 fork: parent tid=48 pid=48 -> child tid=57 pid=57 exec: tid=57 pid=57 exec: tid=56 pid=56 exit: tid=57 pid=57 exit_code=0 exit: tid=56 pid=56 exit_code=...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
If kprobes are enabled in the kernel you can use `execsnoop` from [perf-tools](https://github.com/brendangregg/perf-tools): In first terminal: ```sh % while true; do uptime; sleep 1; done ``` In another terminal: ```sh % git clone https://github.com/brendangregg/perf-tools.git % cd perf-tools % sudo ./execsnoop Tr...
Some examples of [`bpftrace`](https://github.com/iovisor/bpftrace) usage to achieve the goal. 1. The simplest one is tracing all `exec` calls in the system: ``` sudo bpftrace -e 'tracepoint:syscalls:sys_enter_exec*{ printf("pid: %d, comm: %s, args: ", pid, comm); join(args->argv); }' ``` There are at least two trac...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
Some examples of [`bpftrace`](https://github.com/iovisor/bpftrace) usage to achieve the goal. 1. The simplest one is tracing all `exec` calls in the system: ``` sudo bpftrace -e 'tracepoint:syscalls:sys_enter_exec*{ printf("pid: %d, comm: %s, args: ", pid, comm); join(args->argv); }' ``` There are at least two trac...
**TL;DR**: use `execnsoop`. --- * Check that KPROBES are enabled in the Kernel ``` $ zgrep CONFIG_KPROBES= /boot/config-$(uname -r) /proc/config* 2> /dev/null /boot/config-4.15.0-64-generic:CONFIG_KPROBES=y ``` * Install [BPF Compiler Collection (BCC)](https://github.com/iovisor/bcc) + For Debian/Ubuntu the packa...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
If kprobes are enabled in the kernel you can use `execsnoop` from [perf-tools](https://github.com/brendangregg/perf-tools): In first terminal: ```sh % while true; do uptime; sleep 1; done ``` In another terminal: ```sh % git clone https://github.com/brendangregg/perf-tools.git % cd perf-tools % sudo ./execsnoop Tr...
The easiest way is to enable system call auditing See the following link for details, [Does anyone know a simple way to monitor root process spawn | Server Fault](https://serverfault.com/questions/199654/does-anyone-know-a-simple-way-to-monitor-root-process-spawn) If you're monitoring all processes, just remove the ...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
The easiest way is to enable system call auditing See the following link for details, [Does anyone know a simple way to monitor root process spawn | Server Fault](https://serverfault.com/questions/199654/does-anyone-know-a-simple-way-to-monitor-root-process-spawn) If you're monitoring all processes, just remove the ...
**TL;DR**: use `execnsoop`. --- * Check that KPROBES are enabled in the Kernel ``` $ zgrep CONFIG_KPROBES= /boot/config-$(uname -r) /proc/config* 2> /dev/null /boot/config-4.15.0-64-generic:CONFIG_KPROBES=y ``` * Install [BPF Compiler Collection (BCC)](https://github.com/iovisor/bcc) + For Debian/Ubuntu the packa...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
Some examples of [`bpftrace`](https://github.com/iovisor/bpftrace) usage to achieve the goal. 1. The simplest one is tracing all `exec` calls in the system: ``` sudo bpftrace -e 'tracepoint:syscalls:sys_enter_exec*{ printf("pid: %d, comm: %s, args: ", pid, comm); join(args->argv); }' ``` There are at least two trac...
There are multiple Linux APIs that you can use to do this and multiple usermode tools that use the various APIs. Here are some of the APIs: * Netlink process connector - this an API to do precisely what you want but there are issues tracking detailed information short-lived processes * audit API - a kernel API enabled...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
There are multiple Linux APIs that you can use to do this and multiple usermode tools that use the various APIs. Here are some of the APIs: * Netlink process connector - this an API to do precisely what you want but there are issues tracking detailed information short-lived processes * audit API - a kernel API enabled...
you can use <https://github.com/radiopushka/pmmanager> (Written by me) and simply run "pmmanager watchdog" it will list processes that just got launched and ran for longer that 1 second(that being the only downside). The program should compile and run pretty much anywhere and doesn't need anything. Also it doesn't re...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
You can apparently *follow* a process using `strace`. If you know the PID of the process then you can do: ``` strace -o strace-<pid>.out -f -p <pid> ``` Notice the `-f` switch. It will help you to follow newly created processes that are descendants of the process whose PID was used in the command, above. For informa...
you can use <https://github.com/radiopushka/pmmanager> (Written by me) and simply run "pmmanager watchdog" it will list processes that just got launched and ran for longer that 1 second(that being the only downside). The program should compile and run pretty much anywhere and doesn't need anything. Also it doesn't re...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
The easiest way is to enable system call auditing See the following link for details, [Does anyone know a simple way to monitor root process spawn | Server Fault](https://serverfault.com/questions/199654/does-anyone-know-a-simple-way-to-monitor-root-process-spawn) If you're monitoring all processes, just remove the ...
There are multiple Linux APIs that you can use to do this and multiple usermode tools that use the various APIs. Here are some of the APIs: * Netlink process connector - this an API to do precisely what you want but there are issues tracking detailed information short-lived processes * audit API - a kernel API enabled...
260,162
I know that with `ps` I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use `tail -f` to follow the new contents appended to a file or to any input, then I want to keep a ...
2016/02/05
[ "https://unix.stackexchange.com/questions/260162", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/102926/" ]
**`CONFIG_PROC_EVENTS=y`** Sample session: ``` $ su # ./proc_events.out & set mcast listen ok # sleep 2 & sleep 1 & fork: parent tid=48 pid=48 -> child tid=56 pid=56 fork: parent tid=48 pid=48 -> child tid=57 pid=57 exec: tid=57 pid=57 exec: tid=56 pid=56 exit: tid=57 pid=57 exit_code=0 exit: tid=56 pid=56 exit_code=...
There are multiple Linux APIs that you can use to do this and multiple usermode tools that use the various APIs. Here are some of the APIs: * Netlink process connector - this an API to do precisely what you want but there are issues tracking detailed information short-lived processes * audit API - a kernel API enabled...
1,058,374
I installed the ppa:ondrej/php repository for php and performed an apt-get upgrade. Little did I know it had a lot of libraries packages installed that I have no idea about, so I was wondering if they are safe to stay on the system or not?
2021/03/26
[ "https://serverfault.com/questions/1058374", "https://serverfault.com", "https://serverfault.com/users/540785/" ]
The PPA is maintained by [Ondřej Surý](https://deb.sury.org/), a Debian developer who has been packaging PHP for Debian since PHP 5. It's up to you whether that fits your own definition of "safe", whatever that is.
Sadly, you'll never know. When using Personal Package Archive (PPA) you're by your own. There's a post which explains with more detailed caveats : <https://askubuntu.com/questions/35629/are-ppas-safe-to-add-to-my-system-and-what-are-some-red-flags-to-watch-out-for>
45,292,568
I'm working with Retrosheet baseball data in R and am trying to create a separate column (using the mutate function in dplyr) that alerts me whether or not a single string from an existing column began with either "two strikes" or "three balls." For example: ``` PITCH_SEQ_TX <- c('SSSC', 'FFBB', 'BBSSC', 'BBBSB', 'CBS...
2017/07/25
[ "https://Stackoverflow.com/questions/45292568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8045231/" ]
You can use a set of characters in regex for your strikes identifier by specifying them within square brackets like `[ABC]`, which will match any character `A`, `B`, or `C`. This will mean you don't have to write out each category separately. E.g.: ``` grepl("^[CFLMST]{2,}", PITCH_SEQ_TX) #[1] TRUE TRUE FALSE FALSE ...
Building on [@thelatemail's](https://stackoverflow.com/a/45292835/5269252) answer, combined with [@mt1022's](https://stackoverflow.com/users/3926543/mt1022) comment to use `case_when` and `mutate`, here is a fully worked example, using functions from `stringr` for the text work. ``` library(dplyr) library(stringr) # ...
21,379,023
I am trying to load modules dynamically as described at the beginning of this post: [Reference link](https://vickev.com/#!/article/grunt-the-perfect-tool-for-require-js) Here is my `scripts/main.js` ```js require.config({ baseUrl: 'scripts', paths: { jquery: 'lib/jquery-2.0.3' }, config: { 'main': { ...
2014/01/27
[ "https://Stackoverflow.com/questions/21379023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2566214/" ]
You should use the **define** instruction: ``` define(function(require, exports, module) { console.log("Loading modules"); require(module.config().modules); }); ``` By *config* property of RequireJS configuration you define configurations for each of your modules. Then, in module definition you may access th...
Why are you loading your modules in this way? You're trying to make a async call inside a loop, basically you are rewriting your "mod" variable every time with another require even without the async call of require return something. ``` // some_module.js define(function(require, exports, module) { var mods = module....
100,264
I recently had the bilges of my narrowboat painted. They used a paint with two components that needed to be mixed, and warned me that it contained 'isocyanates', and to avoid sleeping on the boat until the fumes had cleared. They said it was aircraft paint they had left over from another job, and that it would be ver...
2016/10/01
[ "https://diy.stackexchange.com/questions/100264", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/60766/" ]
I'll start by saying that I'm a big fan of following instructions. However, there are exceptions to rules sometimes. Let's assume for the sake of argument that you don't spend an inordinate amount of time in the closet with the boiler and the door closed. So risk of CO poisoning in there is pretty slim. Let's also as...
I'd say put it inside the closet. If you get false alarms, consider moving it. Else, it's the best place to alert you. Chances are if the boiler is working well, you'll never hear a peep from the detector. Hopefully you did get the type that shows you the CO level, so you can check if you're getting zero or something ...
100,264
I recently had the bilges of my narrowboat painted. They used a paint with two components that needed to be mixed, and warned me that it contained 'isocyanates', and to avoid sleeping on the boat until the fumes had cleared. They said it was aircraft paint they had left over from another job, and that it would be ver...
2016/10/01
[ "https://diy.stackexchange.com/questions/100264", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/60766/" ]
I'll start by saying that I'm a big fan of following instructions. However, there are exceptions to rules sometimes. Let's assume for the sake of argument that you don't spend an inordinate amount of time in the closet with the boiler and the door closed. So risk of CO poisoning in there is pretty slim. Let's also as...
The detector is there to protect people not the furnace. It should be in the living space not the utility space. And you should have one on each level
100,264
I recently had the bilges of my narrowboat painted. They used a paint with two components that needed to be mixed, and warned me that it contained 'isocyanates', and to avoid sleeping on the boat until the fumes had cleared. They said it was aircraft paint they had left over from another job, and that it would be ver...
2016/10/01
[ "https://diy.stackexchange.com/questions/100264", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/60766/" ]
I'd say put it inside the closet. If you get false alarms, consider moving it. Else, it's the best place to alert you. Chances are if the boiler is working well, you'll never hear a peep from the detector. Hopefully you did get the type that shows you the CO level, so you can check if you're getting zero or something ...
The detector is there to protect people not the furnace. It should be in the living space not the utility space. And you should have one on each level
63,949,290
Looking through the source code of a 90s Doom source port (Retrodoom in this case), I found this: ``` void A_Detonate(mobj_t *actor, player_t *player, pspdef_t *psp) { P_RadiusAttack(actor, actor->target, actor->info->damage, false); } ``` This A\_Detonate function only serves as a caller to the P\_RadiusAttack ...
2020/09/18
[ "https://Stackoverflow.com/questions/63949290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11270143/" ]
Functions are sometimes used to increase the readability for developers, it may be doing something in a slightly slower way, but it makes the code a lot easier to maintain. The function P\_RadiusAttack may be used by multiple other functions, imagine a place in the code which calls 10 different "actions" aside from de...
Judging by arguments, it's a handler. A\_Detonate isn't even using its player object and psp. Existence of such function suggests that somewhere is code that works with such signature, either for unification purposes, as adapter or as a handler.
63,949,290
Looking through the source code of a 90s Doom source port (Retrodoom in this case), I found this: ``` void A_Detonate(mobj_t *actor, player_t *player, pspdef_t *psp) { P_RadiusAttack(actor, actor->target, actor->info->damage, false); } ``` This A\_Detonate function only serves as a caller to the P\_RadiusAttack ...
2020/09/18
[ "https://Stackoverflow.com/questions/63949290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11270143/" ]
This is an example of separating the interface from the implementation. So the users of ``` void A_Detonate(mobj_t *actor, player_t *player, pspdef_t *psp) ``` such as yourself can continue to use the same function signature in their code when maybe in the future the maintainers of `A_Detonate` might decide to do so...
Judging by arguments, it's a handler. A\_Detonate isn't even using its player object and psp. Existence of such function suggests that somewhere is code that works with such signature, either for unification purposes, as adapter or as a handler.
775,781
How can I use the mean value theorem to prove that the inequality $$1 + \frac{x}{2\sqrt{1+x}} < \sqrt{1 + x} < 1 + \frac{x}{2}$$ holds for all $x\in (-1,0)$?
2014/04/30
[ "https://math.stackexchange.com/questions/775781", "https://math.stackexchange.com", "https://math.stackexchange.com/users/131212/" ]
Hint: Write the inequalities as $$ \frac{1}{2\sqrt{1+x}}>\frac{\sqrt{1+x}-1}{x}>\frac{1}{2}.\quad \text{Warning $x<0$} $$ Let $f(x)=\sqrt{1+x}$. Mean value theorem implies that $\frac{\sqrt{1+x}-1}{x}=f'(\theta)$ for $\theta\in (x,0)$. I will left the rest as your work.
Let \begin{align\*} f(x)= \sqrt{1 + x} -1 - \frac{x}{2\sqrt{1+x}} \\ g(x)= 1 + \frac{x}{2} - \sqrt{1 + x} \end{align\*} We want to show $f(x)>0$ and $g(x)>0$ when $x \in (-1,0)$. Let's focus on $g(x)$. $g(0)=0$ and $$ g'(x)=\frac{1}{2}-\frac{1}{2\sqrt{1+x}}< 0 $$ so $g(x)$ is decreasing from -1 to 0 so increasing fr...
56,899,425
I am building an app using flutter where I want to scan an image(that includes QR image). I am using packages available to read QR codes, but not working for me. Is there any package/solution to read a QR code from an image? I Tried package: qr\_code\_tools: ^0.0.6` ``` Future _getPhotoByGallery() async { var i...
2019/07/05
[ "https://Stackoverflow.com/questions/56899425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9432819/" ]
`Filter` the `data.table` and `rbind` ``` library(data.table) rbindlist(Filter(is.data.table, list_df)) # ID a # 1: b 1 # 2: b 2 # 3: b 3 # 4: a 4 # 5: a 5 # 6: c 6 # 7: b 11 # 8: b 12 # 9: b 13 #10: a 14 #11: a 15 #12: c 16 ``` **data** ``` list_df <- list(DT1,DT2,"string") ```
Using `sapply()` to generate a logical vector to subset your `list` ``` rbindlist(list[sapply(list, is.data.table)]) ```
56,899,425
I am building an app using flutter where I want to scan an image(that includes QR image). I am using packages available to read QR codes, but not working for me. Is there any package/solution to read a QR code from an image? I Tried package: qr\_code\_tools: ^0.0.6` ``` Future _getPhotoByGallery() async { var i...
2019/07/05
[ "https://Stackoverflow.com/questions/56899425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9432819/" ]
`Filter` the `data.table` and `rbind` ``` library(data.table) rbindlist(Filter(is.data.table, list_df)) # ID a # 1: b 1 # 2: b 2 # 3: b 3 # 4: a 4 # 5: a 5 # 6: c 6 # 7: b 11 # 8: b 12 # 9: b 13 #10: a 14 #11: a 15 #12: c 16 ``` **data** ``` list_df <- list(DT1,DT2,"string") ```
We can use `keep` from `purrr` with `bind_rows` ``` library(tidyverse) keep(list, is.data.table) %>% bind_rows # ID a # 1: b 1 # 2: b 2 # 3: b 3 # 4: a 4 # 5: a 5 # 6: c 6 # 7: b 11 # 8: b 12 # 9: b 13 #10: a 14 #11: a 15 #12: c 16 ``` --- Or using `rbindlist` with `keep` ``` rbindlist(kee...
30,669,491
My objective is to save "textbox" input to a text file and then being able to load that saved text from the same text file back to a textbox. I think that one of my mistakes is reading on Console. ``` namespace aaa { public partial class MainPage : PhoneApplicationPage { public MainPage() { ...
2015/06/05
[ "https://Stackoverflow.com/questions/30669491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4964773/" ]
Use Windows.Storage.StorageFile in both Windows Phone Runtime and Windows Phone Silverlight apps. There are examples in the MSDN documentation in the [Working with data and files](https://msdn.microsoft.com/en-us/library/windows/apps/xaml/br229562.aspx) section. In particular see [Quickstart: Local app data](https://m...
in windows phone you don't have such a direct access to the file system. you can use the isolated file storage to read and write files. here you find a broad overview of the features: <https://msdn.microsoft.com/library/system.io.isolatedstorage.isolatedstoragefile> (Caution: This is for windows phone 7, for windo...
400,392
I have an endpoint `/api/properties` which returns a dynamic list of properties, e.g. ``` { userId: 1, groupId: 2, ... } ``` The difficult part is that most of the properties are integers (ids) and I would like to display these properties in a human readable format, e.g. instead of user id and group id I woul...
2019/10/31
[ "https://softwareengineering.stackexchange.com/questions/400392", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/151337/" ]
If I understand well your intent: * you would like your backend to tell about the properties that its API provides * you would like your frontend to tell the user what it’s about, without having itself any knowledge about the data model * otherwise said, instead of userid and group id, your backend might as well offe...
Neither. Request the user and group objects or lists of them seperately so that you can reuse them.
400,392
I have an endpoint `/api/properties` which returns a dynamic list of properties, e.g. ``` { userId: 1, groupId: 2, ... } ``` The difficult part is that most of the properties are integers (ids) and I would like to display these properties in a human readable format, e.g. instead of user id and group id I woul...
2019/10/31
[ "https://softwareengineering.stackexchange.com/questions/400392", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/151337/" ]
If I understand well your intent: * you would like your backend to tell about the properties that its API provides * you would like your frontend to tell the user what it’s about, without having itself any knowledge about the data model * otherwise said, instead of userid and group id, your backend might as well offe...
Depending on the semantics of your interface, i'd suggest a third option. Your original idea suggests that there can be only one user and one group field. Your Option 2 on the other hand allows for this: ``` [ { name: "userId", value: 1, ...}, { name: "userId", value: 2, ...}, ... ] ``` which you may or may no...
39,835
When laying hardie backer I was told to make my joints as tight as possible, so I imagine I'll run into this often. Currently I have a standard 6' board that just barely doesn't fit inside the lip of the tub (I'm leaving a 1/4" gap below per hardie board's instructions). What is the best way to shave off a piece of h...
2014/03/10
[ "https://diy.stackexchange.com/questions/39835", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/18575/" ]
I am not saying this is the cleanest or the most practical but I will just tell you what I do... Angle grinder with diamond blade. I cut these pieces only outside and I wear proper goggles and mask. It is one of the only times that I overdo safety. This is the only way I can get a clean small cut in HB. If I use a kn...
You can use one of those cheese grater looking rasps most people use for drywall. They're called serrated contour planes. Something like the [Stanley Surform Pocket Plane](http://www.stanleytools.com/default.asp?CATEGORY=SURFORM%20TOOLS%20AND%20BLADES&TYPE=PRODUCT&PARTNUMBER=21-399&SDesc=6"%20Surform®%20Pocket%20Plane...
39,835
When laying hardie backer I was told to make my joints as tight as possible, so I imagine I'll run into this often. Currently I have a standard 6' board that just barely doesn't fit inside the lip of the tub (I'm leaving a 1/4" gap below per hardie board's instructions). What is the best way to shave off a piece of h...
2014/03/10
[ "https://diy.stackexchange.com/questions/39835", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/18575/" ]
You can use one of those cheese grater looking rasps most people use for drywall. They're called serrated contour planes. Something like the [Stanley Surform Pocket Plane](http://www.stanleytools.com/default.asp?CATEGORY=SURFORM%20TOOLS%20AND%20BLADES&TYPE=PRODUCT&PARTNUMBER=21-399&SDesc=6"%20Surform®%20Pocket%20Plane...
we used a tub saw with an old blade.(NO WATER) cut out doors. use face mask and eye protection as it makes clouds of dust. draw size and cut free hand a the guide seemed to bind. cuts like butter!! even a perfect bevel.
39,835
When laying hardie backer I was told to make my joints as tight as possible, so I imagine I'll run into this often. Currently I have a standard 6' board that just barely doesn't fit inside the lip of the tub (I'm leaving a 1/4" gap below per hardie board's instructions). What is the best way to shave off a piece of h...
2014/03/10
[ "https://diy.stackexchange.com/questions/39835", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/18575/" ]
I am not saying this is the cleanest or the most practical but I will just tell you what I do... Angle grinder with diamond blade. I cut these pieces only outside and I wear proper goggles and mask. It is one of the only times that I overdo safety. This is the only way I can get a clean small cut in HB. If I use a kn...
we used a tub saw with an old blade.(NO WATER) cut out doors. use face mask and eye protection as it makes clouds of dust. draw size and cut free hand a the guide seemed to bind. cuts like butter!! even a perfect bevel.
84,385
Can anyone tell me how I can use 2 Views exposed filters to filter nodes published between the two selected dates?
2013/09/02
[ "https://drupal.stackexchange.com/questions/84385", "https://drupal.stackexchange.com", "https://drupal.stackexchange.com/users/1471/" ]
Use the Date Views module that comes shipped with [Date](http://drupal.org/project/date). Add a filter to your view using the Date: Date option. ![Date:Date](https://i.stack.imgur.com/ko7Lv.png) Now you can use the "In Between" option to either select between two specific dates, or relative dates (within the past 30 ...
You can add 'Content revision: Updated date' filter and another filter (not exposed) which is 'published' - true. ![Screenshot](https://i.stack.imgur.com/FDtKj.png)
651
I have a motto, "My class is not an Olympic swimming pool! It is a museum full of the masterwork paintings! Relax and enjoy all of this mathematical beauty which I am drawing on the blackboard!" By this sentence I mean that in my point of view *the best mathematicians are those who enjoy beauty of math more not those ...
2014/03/21
[ "https://matheducators.stackexchange.com/questions/651", "https://matheducators.stackexchange.com", "https://matheducators.stackexchange.com/users/-1/" ]
Well, the method of [Randy Pausch](http://en.wikipedia.org/wiki/Randy_Pausch) (or perhaps of [Disney Imagineering](http://en.wikipedia.org/wiki/Walt_Disney_Imagineering)) seems to be a perfect answer to your questions. It is worth noting that his course was practical, hence the approach might not work for more theoreti...
Getting people to really work together is hard. Encourage them to form study groups, so they start working together on small projects (solve individual problems), learn how to organize themselves (where, when to meet, what to prepare). Make them organize a short seminar on some topic (contact invited speakers, but have...
651
I have a motto, "My class is not an Olympic swimming pool! It is a museum full of the masterwork paintings! Relax and enjoy all of this mathematical beauty which I am drawing on the blackboard!" By this sentence I mean that in my point of view *the best mathematicians are those who enjoy beauty of math more not those ...
2014/03/21
[ "https://matheducators.stackexchange.com/questions/651", "https://matheducators.stackexchange.com", "https://matheducators.stackexchange.com/users/-1/" ]
Well, the method of [Randy Pausch](http://en.wikipedia.org/wiki/Randy_Pausch) (or perhaps of [Disney Imagineering](http://en.wikipedia.org/wiki/Walt_Disney_Imagineering)) seems to be a perfect answer to your questions. It is worth noting that his course was practical, hence the approach might not work for more theoreti...
Elizabeth Cohen and Rachel Lotan of Stanford University have written about an approach called [Complex Instruction](http://cgi.stanford.edu/group/pci/cgi-bin/site.cgi) that supports students [working together and learning from each other](http://www.uvm.edu/complexinstruction/about%5fci.html). Some of the principles i...
651
I have a motto, "My class is not an Olympic swimming pool! It is a museum full of the masterwork paintings! Relax and enjoy all of this mathematical beauty which I am drawing on the blackboard!" By this sentence I mean that in my point of view *the best mathematicians are those who enjoy beauty of math more not those ...
2014/03/21
[ "https://matheducators.stackexchange.com/questions/651", "https://matheducators.stackexchange.com", "https://matheducators.stackexchange.com/users/-1/" ]
Well, the method of [Randy Pausch](http://en.wikipedia.org/wiki/Randy_Pausch) (or perhaps of [Disney Imagineering](http://en.wikipedia.org/wiki/Walt_Disney_Imagineering)) seems to be a perfect answer to your questions. It is worth noting that his course was practical, hence the approach might not work for more theoreti...
Groupwork sucks. In any field groupwork is used because it is necessary - you need to row in sync to make the boat go faster, or you need four people to carry a coffin - not because people actually enjoy it. Do not introduce groupwork where it is not needed. Comparison is good. Competition is good. As long as you don't...
651
I have a motto, "My class is not an Olympic swimming pool! It is a museum full of the masterwork paintings! Relax and enjoy all of this mathematical beauty which I am drawing on the blackboard!" By this sentence I mean that in my point of view *the best mathematicians are those who enjoy beauty of math more not those ...
2014/03/21
[ "https://matheducators.stackexchange.com/questions/651", "https://matheducators.stackexchange.com", "https://matheducators.stackexchange.com/users/-1/" ]
Getting people to really work together is hard. Encourage them to form study groups, so they start working together on small projects (solve individual problems), learn how to organize themselves (where, when to meet, what to prepare). Make them organize a short seminar on some topic (contact invited speakers, but have...
Groupwork sucks. In any field groupwork is used because it is necessary - you need to row in sync to make the boat go faster, or you need four people to carry a coffin - not because people actually enjoy it. Do not introduce groupwork where it is not needed. Comparison is good. Competition is good. As long as you don't...
651
I have a motto, "My class is not an Olympic swimming pool! It is a museum full of the masterwork paintings! Relax and enjoy all of this mathematical beauty which I am drawing on the blackboard!" By this sentence I mean that in my point of view *the best mathematicians are those who enjoy beauty of math more not those ...
2014/03/21
[ "https://matheducators.stackexchange.com/questions/651", "https://matheducators.stackexchange.com", "https://matheducators.stackexchange.com/users/-1/" ]
Elizabeth Cohen and Rachel Lotan of Stanford University have written about an approach called [Complex Instruction](http://cgi.stanford.edu/group/pci/cgi-bin/site.cgi) that supports students [working together and learning from each other](http://www.uvm.edu/complexinstruction/about%5fci.html). Some of the principles i...
Groupwork sucks. In any field groupwork is used because it is necessary - you need to row in sync to make the boat go faster, or you need four people to carry a coffin - not because people actually enjoy it. Do not introduce groupwork where it is not needed. Comparison is good. Competition is good. As long as you don't...
1,422,825
I am unable to set the refresh rate above 60Hz, but my display's native refresh rate is 144Hz. The mouse and windows have a delay and a ghost effect when I move them around. It's hard to use the mouse accurately. Even the typing experience is slow. I am not sure if drivers are even installed. I have a Ryzen 5 3600, a ...
2022/08/10
[ "https://askubuntu.com/questions/1422825", "https://askubuntu.com", "https://askubuntu.com/users/1621859/" ]
Finally solved it! The problem was related to the FreeSync technology. After reading the manual, I realized that depending if you have FreeSync enabled or not, the color profile and refresh rate are actually different. I found this information on [the user manual](https://esupportdownload.benq.com/esupport/LCD%20MONIT...
The BenQ EX3203R, according to the [official documentation](https://esupportdownload.benq.com/esupport/LCD%20MONITOR/UserManual/EX3203R/EX3203R_RF_EN_210104180503.pdf), p. 3 table, and confirmed by the manufacturer's Customer Service does indeed support **2560x1440 @ 144Hz** but for **consoles only**. When used with a...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
The solution I added is to unzip my packaged war, delete the file application.properties and create a new war named ROOT.war using maven-antrun-plugin and run some ant tasks. this is what i added to my plugins in pom.xml : ``` <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artif...
Try to using this solution: ``` <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.version}</version> <configuration> <addResources>false</addResources> </configuration> </plugin> ``` **<addResources>false</addResources...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
Try using the solution below. This will work: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.properties</exclude> </excludes> </resource> </resourc...
The solution I added is to unzip my packaged war, delete the file application.properties and create a new war named ROOT.war using maven-antrun-plugin and run some ant tasks. this is what i added to my plugins in pom.xml : ``` <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artif...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
What I understand from your question is, you want to use application.properties for your development. But you dont want to use it for production. I would suggest using **Spring profiles** to achieve this. In your properties file 1. Create a profile for development. Put all your development properties under it. 2. Do...
Try to using this solution: ``` <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.version}</version> <configuration> <addResources>false</addResources> </configuration> </plugin> ``` **<addResources>false</addResources...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
Try using the solution below. This will work: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.properties</exclude> </excludes> </resource> </resourc...
What I understand from your question is, you want to use application.properties for your development. But you dont want to use it for production. I would suggest using **Spring profiles** to achieve this. In your properties file 1. Create a profile for development. Put all your development properties under it. 2. Do...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
Try using the solution below. This will work: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.properties</exclude> </excludes> </resource> </resourc...
Try to using this solution: ``` <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.version}</version> <configuration> <addResources>false</addResources> </configuration> </plugin> ``` **<addResources>false</addResources...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
When running in Eclipse, at your Run Configuration, you need to specify the path of the propeties to Spring Boot: ``` --spring.config.location=${workspace_loc:/YOURPROYECTNAME}/src/main/resources/ ```
Try to using this solution: ``` <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.version}</version> <configuration> <addResources>false</addResources> </configuration> </plugin> ``` **<addResources>false</addResources...
26,744,060
I am developing a web application using Spring Boot, and want to generate war instead of jar. It works very fine using the conversion from jar to war described here : <http://spring.io/guides/gs/convert-jar-to-war/> But I want to exclude the application.properties from the war, because I use `@PropertySource(value = ...
2014/11/04
[ "https://Stackoverflow.com/questions/26744060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3247198/" ]
Try using the solution below. This will work: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.properties</exclude> </excludes> </resource> </resourc...
When running in Eclipse, at your Run Configuration, you need to specify the path of the propeties to Spring Boot: ``` --spring.config.location=${workspace_loc:/YOURPROYECTNAME}/src/main/resources/ ```
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
A simple solution which worked for me in Vista: Save As.....PDF or XPS.... then within the Save window there is an Options button... Tick the box next to "Bitmap test where fonts may not be embedded"
The answer for these problems are: Decrease (reduce) the quality of pictures (not only change the size of picture in the Word file. I mean move the corner of picture) in your page which include missing equations by using any photo software. I think because of RAM not enough.
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
Today I have the same problem with exporting Word 2007 equations in PDF using save as -> PDF. Recently I was using [doPDF](http://www.dopdf.com/) to export Cyrillic texts and I decided to try it with the word equations. It worked perfectly! Referencing another forum discussion in [acrobat users blog](http://acrobatuse...
Looking at the Metadata of your files it seems that... * ... the `.docx` files were created with MS Office 2007 (or later) * ... the `.pdf` files were created with Adobe Acrobat Distiller 8.0.0 AFAIR, Acrobat 8.1 (released in June 2007) was the first Acrobat version to support MS Office 2007. So my guess is that the ...
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
I've managed to find a **working solution to this problem**. I don't know really why it behaves like this, but I've come across a similar topic ([Acrobat v8 doesn't like Cambria](http://forums.adobe.com/thread/510096?tstart=1)) on the Adobe Forums. The fix suggested by *jallisy* in the original topic: > > Do you hav...
The answer for these problems are: Decrease (reduce) the quality of pictures (not only change the size of picture in the Word file. I mean move the corner of picture) in your page which include missing equations by using any photo software. I think because of RAM not enough.
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
I had the same problem with a page that contained an image, all other pages printed well. My solution was to put the image into a New Drawing Canvas (Word -> Insert -> Shapes -> New Drawing Canvas). After that, all equations printed fine Dimitris
A simple solution which worked for me in Vista: Save As.....PDF or XPS.... then within the Save window there is an Options button... Tick the box next to "Bitmap test where fonts may not be embedded"
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
This problem may occur for a paragraph which contains only equation and has text direction of Right-to-Left. The solution for such case is either: * Change text direction of the paragraph (which contains only equation) from Right-To-Left to Left-to-Right. * Add some text to Right-to-Left paragraphs that contain equat...
Save file as open text document (odt), open saved file with OpenOffice. This worked for me while the other answers here weren't applicable (because I'm using windows 7 and not XP).
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
Today I have the same problem with exporting Word 2007 equations in PDF using save as -> PDF. Recently I was using [doPDF](http://www.dopdf.com/) to export Cyrillic texts and I decided to try it with the word equations. It worked perfectly! Referencing another forum discussion in [acrobat users blog](http://acrobatuse...
The answer for these problems are: Decrease (reduce) the quality of pictures (not only change the size of picture in the Word file. I mean move the corner of picture) in your page which include missing equations by using any photo software. I think because of RAM not enough.
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
Today I have the same problem with exporting Word 2007 equations in PDF using save as -> PDF. Recently I was using [doPDF](http://www.dopdf.com/) to export Cyrillic texts and I decided to try it with the word equations. It worked perfectly! Referencing another forum discussion in [acrobat users blog](http://acrobatuse...
A simple solution which worked for me in Vista: Save As.....PDF or XPS.... then within the Save window there is an Options button... Tick the box next to "Bitmap test where fonts may not be embedded"
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
This problem may occur for a paragraph which contains only equation and has text direction of Right-to-Left. The solution for such case is either: * Change text direction of the paragraph (which contains only equation) from Right-To-Left to Left-to-Right. * Add some text to Right-to-Left paragraphs that contain equat...
I had the same problem with a page that contained an image, all other pages printed well. My solution was to put the image into a New Drawing Canvas (Word -> Insert -> Shapes -> New Drawing Canvas). After that, all equations printed fine Dimitris
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
This problem may occur for a paragraph which contains only equation and has text direction of Right-to-Left. The solution for such case is either: * Change text direction of the paragraph (which contains only equation) from Right-To-Left to Left-to-Right. * Add some text to Right-to-Left paragraphs that contain equat...
The answer for these problems are: Decrease (reduce) the quality of pictures (not only change the size of picture in the Word file. I mean move the corner of picture) in your page which include missing equations by using any photo software. I think because of RAM not enough.
288,508
I don't know why, but some of the equations in my **Word 2007** document just won't print. They are left blank in the actual print, despite being correctly shown in the *Print Preview*. The same happens if I try to convert the document to a **PDF** file using the virtual *Adobe Acrobat* printer. In both cases missing...
2011/05/25
[ "https://superuser.com/questions/288508", "https://superuser.com", "https://superuser.com/users/33222/" ]
I've managed to find a **working solution to this problem**. I don't know really why it behaves like this, but I've come across a similar topic ([Acrobat v8 doesn't like Cambria](http://forums.adobe.com/thread/510096?tstart=1)) on the Adobe Forums. The fix suggested by *jallisy* in the original topic: > > Do you hav...
A simple solution which worked for me in Vista: Save As.....PDF or XPS.... then within the Save window there is an Options button... Tick the box next to "Bitmap test where fonts may not be embedded"
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
**Two nested loops** should do the trick in this case: ``` $input = /* your input array */; $grouped = array(); foreach ($input as $elements) { foreach ($elements as $key => $element) { $grouped[$key][] = $element; } } ``` This produces an array that looks like the following: ``` array( 1 => ar...
the below code will produce string as you wanted ``` $arr=Array ( "1" => Array ( "1" => "c1", "2" => "c1", "3" => "c1", "4" => "c1", "5" => "c1", "6" => "c1", "7" => "c1", "8" => "c1", "9" => "c1", ...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
**Two nested loops** should do the trick in this case: ``` $input = /* your input array */; $grouped = array(); foreach ($input as $elements) { foreach ($elements as $key => $element) { $grouped[$key][] = $element; } } ``` This produces an array that looks like the following: ``` array( 1 => ar...
For output as strings inside array: ``` <?php $myArr = array(1 => array( 1 => 'c1', 2 => 'c1', 3 => 'c1', 4 => 'c1', 5 => 'c1', 6 => 'c1', 7 => 'c1', 8 => 'c1', 9 => 'c1', 10 => 'c1', 11 ...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
**Two nested loops** should do the trick in this case: ``` $input = /* your input array */; $grouped = array(); foreach ($input as $elements) { foreach ($elements as $key => $element) { $grouped[$key][] = $element; } } ``` This produces an array that looks like the following: ``` array( 1 => ar...
Here is an example that will work with any number of arrays: ``` $array = call_user_func_array( 'array_map', array_merge( array( function() { return func_get_args(); }, array_keys( $array[1] ) ), $array ) ); ``` Since the expected output looks like JSON string i will use [json\_encode](h...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
**Two nested loops** should do the trick in this case: ``` $input = /* your input array */; $grouped = array(); foreach ($input as $elements) { foreach ($elements as $key => $element) { $grouped[$key][] = $element; } } ``` This produces an array that looks like the following: ``` array( 1 => ar...
You merely need to include the keys from the first row in your [array transposition](https://stackoverflow.com/q/797251/2943403). Also, it is crucial that you never manually generate json string by string concatenation (or any other manual method). The surest way to generate a valid json string is to call `json_encode...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
the below code will produce string as you wanted ``` $arr=Array ( "1" => Array ( "1" => "c1", "2" => "c1", "3" => "c1", "4" => "c1", "5" => "c1", "6" => "c1", "7" => "c1", "8" => "c1", "9" => "c1", ...
You merely need to include the keys from the first row in your [array transposition](https://stackoverflow.com/q/797251/2943403). Also, it is crucial that you never manually generate json string by string concatenation (or any other manual method). The surest way to generate a valid json string is to call `json_encode...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
For output as strings inside array: ``` <?php $myArr = array(1 => array( 1 => 'c1', 2 => 'c1', 3 => 'c1', 4 => 'c1', 5 => 'c1', 6 => 'c1', 7 => 'c1', 8 => 'c1', 9 => 'c1', 10 => 'c1', 11 ...
You merely need to include the keys from the first row in your [array transposition](https://stackoverflow.com/q/797251/2943403). Also, it is crucial that you never manually generate json string by string concatenation (or any other manual method). The surest way to generate a valid json string is to call `json_encode...
24,339,781
I need to restructure some array data then pass it as a json string to generate a Google line chart. In the result array, I need to create rows of three elements. 1. the original element keys which are shared among all rows. 2. the values from the first row. 3. the values from the second row. Input array: ``` [ ...
2014/06/21
[ "https://Stackoverflow.com/questions/24339781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2653198/" ]
Here is an example that will work with any number of arrays: ``` $array = call_user_func_array( 'array_map', array_merge( array( function() { return func_get_args(); }, array_keys( $array[1] ) ), $array ) ); ``` Since the expected output looks like JSON string i will use [json\_encode](h...
You merely need to include the keys from the first row in your [array transposition](https://stackoverflow.com/q/797251/2943403). Also, it is crucial that you never manually generate json string by string concatenation (or any other manual method). The surest way to generate a valid json string is to call `json_encode...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
A simple way is to just check in the handler to see whether it's the chosen language. ``` var chosen_language = 'English'; // This can be updated by some other code $("#English, #Spanish, #German").click(function() { if (this.id != chosen_language) { blah blah blah; } }); ```
You could pass who was selected to a variable and then use it as a filter to the main target: ``` var filter = $('#english'); $('#german, #english, #spanish').not(filter).on('click',function(){ //... ``` Also, avoid using `.click()`, use `.on()` instead (if you are not using older jQuery versions). [FIDDLE](http://...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
A simple way is to just check in the handler to see whether it's the chosen language. ``` var chosen_language = 'English'; // This can be updated by some other code $("#English, #Spanish, #German").click(function() { if (this.id != chosen_language) { blah blah blah; } }); ```
First of all, I don't think it's a proper/good way to bind `event handler` using `ID`s for `71` elements (you mentioned in your question) like ``` $( "#English, #Spanish, #German").click(...); ``` Instead, you can use a `class` for all of your elements like this ``` <a class='language' id="English" href="whatever">...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
Looks like you want to trigger the handler for an element only once, in that case use [.one()](http://api.jquery.com/one/) ``` $( "#English, #Spanish, #German").one('click', function(){ }) ```
You could pass who was selected to a variable and then use it as a filter to the main target: ``` var filter = $('#english'); $('#german, #english, #spanish').not(filter).on('click',function(){ //... ``` Also, avoid using `.click()`, use `.on()` instead (if you are not using older jQuery versions). [FIDDLE](http://...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
Looks like you want to trigger the handler for an element only once, in that case use [.one()](http://api.jquery.com/one/) ``` $( "#English, #Spanish, #German").one('click', function(){ }) ```
First of all, I don't think it's a proper/good way to bind `event handler` using `ID`s for `71` elements (you mentioned in your question) like ``` $( "#English, #Spanish, #German").click(...); ``` Instead, you can use a `class` for all of your elements like this ``` <a class='language' id="English" href="whatever">...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
Unbind the id click event ``` $("#English, #Spanish, #German").click( function(){ $(this).unbind('click'); }); ```
You could pass who was selected to a variable and then use it as a filter to the main target: ``` var filter = $('#english'); $('#german, #english, #spanish').not(filter).on('click',function(){ //... ``` Also, avoid using `.click()`, use `.on()` instead (if you are not using older jQuery versions). [FIDDLE](http://...
19,911,404
I am trying to make a macro for creating a pivot table. I need the Macro to select all of the data on the sheet; a friend of mine has helped me create the code above, however the macro only selects the first two columns of data instead of all 48 columns. Does anyone see any mistake we may have made? Any response would ...
2013/11/11
[ "https://Stackoverflow.com/questions/19911404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2970164/" ]
Unbind the id click event ``` $("#English, #Spanish, #German").click( function(){ $(this).unbind('click'); }); ```
First of all, I don't think it's a proper/good way to bind `event handler` using `ID`s for `71` elements (you mentioned in your question) like ``` $( "#English, #Spanish, #German").click(...); ``` Instead, you can use a `class` for all of your elements like this ``` <a class='language' id="English" href="whatever">...
363,429
I'm currently stuck in the process of trying to finalize a modded world in Minecraft. I need to repopulate ALREADY CREATED chunks with ores from mods. For more context: * We're trying to use a 1.7.10 **Earth** map. We found a couple, all of which look fine and okay. * We're also trying to use a 1.7.10 modpack that is...
2020/02/01
[ "https://gaming.stackexchange.com/questions/363429", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/243437/" ]
Assuming that, for example, the Earth map has nothing relevant below level 65 (or however far down you need to go). Start any old map with all the relevant mods and allow it to generate sufficient chunks so that it is the same size as your earth map. Copy everything from the generated world at say, level 60 and lower ...
I, off the top of my head, recommend selecting a large area of the modded ores in WorldEdit, going over to the already loaded chunks, and manually pasting the ores around everywhere. I'm sure there's a more efficient way of doing this, but this is probably the easiest way I can think of that doesn't require any other p...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
You could improve it by a constant factor if you use `i = mainstr.find(mainstr[0], i+1)` instead of checking all `i`. Special case for i==0 also could help. Put the code inside a function. It also might speed up things by a constant factor. Use `for ... else: j += 1` to avoid incrementing `j` at each step. Try to fi...
You can skip the memory allocation inside the loop. `substr = mainstr[i:]` allocates a new string unnecessarily. You only use it in `substr[j] != mainstr[j]`, which is equivalent to `mainstr[i + j] != mainstr[j]`, so you don't need to build `substr`. Memory allocations are expensive, so you'll want to avoid them in ti...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
You can skip the memory allocation inside the loop. `substr = mainstr[i:]` allocates a new string unnecessarily. You only use it in `substr[j] != mainstr[j]`, which is equivalent to `mainstr[i + j] != mainstr[j]`, so you don't need to build `substr`. Memory allocations are expensive, so you'll want to avoid them in ti...
Here's mine. It passes the test case, but may not be the absolute fastest. ``` import sys def simstring(string, other): val = 0 for l, r in zip(string, other): if l != r: return val val += 1 return val dsize = sys.stdin.readline() for i in range(int(dsize)): ss = 0 s...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
You can skip the memory allocation inside the loop. `substr = mainstr[i:]` allocates a new string unnecessarily. You only use it in `substr[j] != mainstr[j]`, which is equivalent to `mainstr[i + j] != mainstr[j]`, so you don't need to build `substr`. Memory allocations are expensive, so you'll want to avoid them in ti...
For such simple numeric scripts there are just two things you have to do: * Use PyPy (it does not have complex dependencies and will be massively faster) * Put most of the code in a function. That speeds up stuff for both CPython and PyPy quite drastically. Instead of: some\_code do: ``` def main(): some_code ...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
You could improve it by a constant factor if you use `i = mainstr.find(mainstr[0], i+1)` instead of checking all `i`. Special case for i==0 also could help. Put the code inside a function. It also might speed up things by a constant factor. Use `for ... else: j += 1` to avoid incrementing `j` at each step. Try to fi...
Here's mine. It passes the test case, but may not be the absolute fastest. ``` import sys def simstring(string, other): val = 0 for l, r in zip(string, other): if l != r: return val val += 1 return val dsize = sys.stdin.readline() for i in range(int(dsize)): ss = 0 s...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
You could improve it by a constant factor if you use `i = mainstr.find(mainstr[0], i+1)` instead of checking all `i`. Special case for i==0 also could help. Put the code inside a function. It also might speed up things by a constant factor. Use `for ... else: j += 1` to avoid incrementing `j` at each step. Try to fi...
For such simple numeric scripts there are just two things you have to do: * Use PyPy (it does not have complex dependencies and will be massively faster) * Put most of the code in a function. That speeds up stuff for both CPython and PyPy quite drastically. Instead of: some\_code do: ``` def main(): some_code ...
11,577,505
I've created this script to compute the [string similarity](https://www.interviewstreet.com/challenges/dashboard/#problem/4edb8abd7cacd) in python. Is there any way I can make it run any faster? ``` tries = input() while tries > 0: mainstr = raw_input() tot = 0 ml = len(mainstr) for i in xrange(ml): ...
2012/07/20
[ "https://Stackoverflow.com/questions/11577505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370073/" ]
For such simple numeric scripts there are just two things you have to do: * Use PyPy (it does not have complex dependencies and will be massively faster) * Put most of the code in a function. That speeds up stuff for both CPython and PyPy quite drastically. Instead of: some\_code do: ``` def main(): some_code ...
Here's mine. It passes the test case, but may not be the absolute fastest. ``` import sys def simstring(string, other): val = 0 for l, r in zip(string, other): if l != r: return val val += 1 return val dsize = sys.stdin.readline() for i in range(int(dsize)): ss = 0 s...
1,618,170
I have a java problem. I am trying to read a txt file which has a variable number of integers per line, and for each line I need to sum every second integer! I am using scanner to read integers, but can't work out when a line is done. Can anyone help pls?
2009/10/24
[ "https://Stackoverflow.com/questions/1618170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/195882/" ]
have a look at the [BufferedReader](http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html) class for reading a textfile and at the [StringTokenizer](http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html) class for splitting each line into strings. ``` String input; BufferedReader br = new Bu...
If I were you, I'd probably use [FileUtils](http://commons.apache.org/io/api-release/org/apache/commons/io/FileUtils.html) class from [Apache Commons IO](http://commons.apache.org/io/). The method [`readLines(File file)`](http://commons.apache.org/io/api-release/org/apache/commons/io/FileUtils.html#readLines%28java.io....
1,618,170
I have a java problem. I am trying to read a txt file which has a variable number of integers per line, and for each line I need to sum every second integer! I am using scanner to read integers, but can't work out when a line is done. Can anyone help pls?
2009/10/24
[ "https://Stackoverflow.com/questions/1618170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/195882/" ]
have a look at the [BufferedReader](http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html) class for reading a textfile and at the [StringTokenizer](http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html) class for splitting each line into strings. ``` String input; BufferedReader br = new Bu...
or scrape from commons the essentials to both learn good technique and skip the jar: ``` import java.io.*; import java.util.*; class Test { public static void main(final String[] args) { File file = new File("Test.java"); BufferedReader buffreader = null; String line = ""; Ar...
1,618,170
I have a java problem. I am trying to read a txt file which has a variable number of integers per line, and for each line I need to sum every second integer! I am using scanner to read integers, but can't work out when a line is done. Can anyone help pls?
2009/10/24
[ "https://Stackoverflow.com/questions/1618170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/195882/" ]
have a look at the [BufferedReader](http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html) class for reading a textfile and at the [StringTokenizer](http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html) class for splitting each line into strings. ``` String input; BufferedReader br = new Bu...
**This is the solution that I would use.** ``` import java.util.ArrayList; import java.util.Scanner; public class Solution1 { public static void main(String[] args) throws IOException{ String nameFile; File file; Scanner keyboard = new Scanner(System.in); int total = 0; S...
42,247
How long can [century eggs](http://en.wikipedia.org/wiki/Century_egg) last for refrigerated and unrefrigerated? I have some slightly cracked eggs from a friend who has stored it for months in his refrigerator. [A few comments from this blog](http://nookandpantry.blogspot.com/2007/05/century-eggs.html) have suggested p...
2014/02/22
[ "https://cooking.stackexchange.com/questions/42247", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/10842/" ]
Was the limestone and hay wrapper cracked or the egg shells? Century eggs are really only a few weeks-months old, actually. Though they do keep for long periods at room temperature. They're also damn tasty and have a lot of ammonia i.e. Very high PH (basic) so unlikely to spoil.
My friend in Taiwan says they will keep refrigerated for up to 5 months - possibly longer but why risk it?
42,247
How long can [century eggs](http://en.wikipedia.org/wiki/Century_egg) last for refrigerated and unrefrigerated? I have some slightly cracked eggs from a friend who has stored it for months in his refrigerator. [A few comments from this blog](http://nookandpantry.blogspot.com/2007/05/century-eggs.html) have suggested p...
2014/02/22
[ "https://cooking.stackexchange.com/questions/42247", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/10842/" ]
Century eggs are a preserved food. Unopened, they can last for a very long time, possibly years, without refrigeration. They are sold at my "local" Asian supermarket in the dry stock aisles. Once opened you can keep them in the refrigerator for a few days. Or make chok or congee and have the left overs for breakfast.
My friend in Taiwan says they will keep refrigerated for up to 5 months - possibly longer but why risk it?
166,387
I am trying to familiarize myself with Pathfinder 2e, which is also my first role-playing game in which I will be actively participating in live sessions. I am interested in creating a 1st level human Warpriest of Sarenrae, but I am having trouble figuring out the advantages and disadvantages of melee combat, since a c...
2020/03/15
[ "https://rpg.stackexchange.com/questions/166387", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/62564/" ]
Divine lance deals aligned damage ================================= The spell's damage is effective only against certain enemies, those that have an alignment that conflicts with your deity's (see Core 452 on damage types). For example most beasts (likely foes at low levels) are neutral in terms of alignment and thus ...
While cantrips where designed to allow spellcasters to reliably contribute every turn, they are not necessarily a complete replacement for a standby weapon. Divine Lance deals Alignment damage ----------------------------------- As presented in [this answer](https://rpg.stackexchange.com/a/166390/28326), [Divine Lanc...
67,806,839
image not display in react native image tag with url: [http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61~tplv-noop.image?x-expires=1622659795&x-signature=CA4o%2BuzVVSTyUdH7T08a2%2FPgFpY%3D](http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61%7Etplv-noop.image?x-expires=16226597...
2021/06/02
[ "https://Stackoverflow.com/questions/67806839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7020388/" ]
you can use the component like this: ``` <quill-editor v-model:content="modelname" contentType="html" theme="snow"></quill-editor> ``` For more info check: <https://vueup.github.io/vue-quill/api/#v-model-content>
You can use this editor. I am using this editor and it's work's. ================================================================ Visit - <https://www.npmjs.com/package/vue3-editor> Instruction - ------------- 1. npm i vue3-editor (install it) 2. import { VueEditor } from "vue3-editor"; (use on specific component) 3...
67,806,839
image not display in react native image tag with url: [http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61~tplv-noop.image?x-expires=1622659795&x-signature=CA4o%2BuzVVSTyUdH7T08a2%2FPgFpY%3D](http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61%7Etplv-noop.image?x-expires=16226597...
2021/06/02
[ "https://Stackoverflow.com/questions/67806839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7020388/" ]
just sharing my finding as below: because of quill-editor component default content Type is "delta", but if you want to assign value ( string type ), then you need to change the content type from delta to text or html by API props "content" or "v-model:content" set the string value on quill-editor component 1. set t...
You can use this editor. I am using this editor and it's work's. ================================================================ Visit - <https://www.npmjs.com/package/vue3-editor> Instruction - ------------- 1. npm i vue3-editor (install it) 2. import { VueEditor } from "vue3-editor"; (use on specific component) 3...
67,806,839
image not display in react native image tag with url: [http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61~tplv-noop.image?x-expires=1622659795&x-signature=CA4o%2BuzVVSTyUdH7T08a2%2FPgFpY%3D](http://p16-sign-sg.tiktokcdn.com/v0201/242656049b324dff81b45d22479a1a61%7Etplv-noop.image?x-expires=16226597...
2021/06/02
[ "https://Stackoverflow.com/questions/67806839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7020388/" ]
here's how you should fix it : ``` <quill-editor v-model:content="modelname" contentType="html" /> ```
You can use this editor. I am using this editor and it's work's. ================================================================ Visit - <https://www.npmjs.com/package/vue3-editor> Instruction - ------------- 1. npm i vue3-editor (install it) 2. import { VueEditor } from "vue3-editor"; (use on specific component) 3...