qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
11,966
I have always wondered what is the difference between 'coche' and 'carro'. I have done some googling on it but still can't understand. Can anyone explain it and give me some examples please!! :)
2015/02/04
[ "https://spanish.stackexchange.com/questions/11966", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/7172/" ]
In Spain we favor `coche` for a car, while a `carro` is more like a four wheeled cart (similar to the word `carreta`, which is a smaller, two wheeled cart), the one that would use horses or mules to pull it. ![enter image description here](https://i.stack.imgur.com/oJUeJ.jpg) In most Latin American countries the word...
En mi sitio, el estado de California, la palabra "carro" tiene dos significados: coche y otro es carro de compras. Algunos dicen "carrito"
11,966
I have always wondered what is the difference between 'coche' and 'carro'. I have done some googling on it but still can't understand. Can anyone explain it and give me some examples please!! :)
2015/02/04
[ "https://spanish.stackexchange.com/questions/11966", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/7172/" ]
If you come to **Chile**, you will notice that these words have very specific uses: > > **Coche**: the one used for carry babies. > > > **Carro**: which is used to buy in the supermarket (or Internet). > > > Both words can be used to refer to the train *wagons*. None of them means *car*, like in other countries...
En mi sitio, el estado de California, la palabra "carro" tiene dos significados: coche y otro es carro de compras. Algunos dicen "carrito"
61,390,891
Basic structure of ***Identity*** looks ``` using Microsoft.AspNetCore.Identity; using System; namespace Microsoft.AspNetCore.Identity { // Represents a user in the identity system // TKey: // The type used for the primary key for the user. public class IdentityUser<TKey> where TKey : IEqu...
2020/04/23
[ "https://Stackoverflow.com/questions/61390891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3723108/" ]
You cannot remove any of the built-in properties. They're there to support Identity functionality. Whether or not you're actually requiring email confirmation, it's valuable to know whether the email has been confirmed or not. Adding additional properties works just like any other entity would. Create a class, if you ...
You can't delete fields on IdentityUser, but you can still add your own - just derive your user class from IdentityUser and then use overload that takes your user class as a type parameter (`services.AddIdentity<MyApplicationUser, IdentityRole>(...)`). Your custom properties will be present whenever you get the user in...
27,721,074
I currently working on a .NET project and several .NET libraries which have the following interdependencies (simplified version): **Core (library)**: no dependencies **Testing (library)**: dependencies to Core **Serialization (library)**: dependencies to Core, Testing **Client solution**: dependencies to Core, Test...
2014/12/31
[ "https://Stackoverflow.com/questions/27721074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1560623/" ]
> > Are Git submodules the right thing I'm looking for? > > > If you want to "Work seemlessly on client and library code that actually resides in different repositories within one solution" then submodules may not be the way to go. Also, "Provide easy build and deployment for the client solutions, i.e. you just ...
I have run into a similar problem (which oddly seems to not be common). Another tool that you may want to consider is Google's [repo](https://source.android.com/source/using-repo). You can use this tool to reproduce flat the flat structure you require via a configuration file. Some of the pros and cons are covered in...
189,234
Let's allow that there is a matrix of approachibilities of the N*N size (N >= 500), a matrix of costs of N*M and K of points with coordinates (x1, y1), (x2, y2)..., (xk, yk) In a matrix of costs movement cost from a point of I (by xi, yi) in J point (xj, yj) is described. Thus cost is a tupple of two elements: tij - t...
2012/07/29
[ "https://math.stackexchange.com/questions/189234", "https://math.stackexchange.com", "https://math.stackexchange.com/users/53882/" ]
My first idea would be some kind of parallel [Dijkstra](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm): A node in the priority queue would be a tuple denoting a point and the identity of one of the *k* target points. So you'd visit each point up to *k* times. The priority queue would expand nodes ordered by cost ...
I think this can be solved in $O(\max(N,M))$ time and $O(\max(N,M))$ space. We have to find the median of $x$ coordinates and median of all $y$ coordinates in the $k$ points and the answer will be $(x\_{median},y\_{median})$; Let the input of the coordinates be an array of coordinates. ``` coord_t c[k] struct coord_t...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
You can set up equations. If we use $x$, $y$, $z$ boxes of size $1$, $3$, $5$ respectively, then $x+3y+5z=25$ and $x+y+z=10$. Subtract. You get $2y+4z=15$. This is impossible in integers, since $2y+4z$ is always even, and $15$ is odd. So we cannot solve the problem using **exactly** $10$ boxes. **Remark:** If we use ...
You correctly identified that your equations are $$\begin{align\*} x+3y+5z &= 25 \\ x+y+z &= 10 \end{align\*}$$ And indeed, you only have two equations. However, you have the following constraints: $x,y,z$ are integers. Subtract the second from the first and you can eliminate $x$ -- can integers $y$ and $z$ solve th...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x$ is the number of 1kg boxes, $y$ the number of 3kg boxes and $z$ the number of 5kg boxes, you want to solve $x+y+z = 10$ so that 10 boxes are used $x+3y+5z = 25$ so that 25kg of apples are used. Additionally, you have the constraints that $x,y,z$ are non-negative integers. There is no third equation involved, ...
You can set up equations. If we use $x$, $y$, $z$ boxes of size $1$, $3$, $5$ respectively, then $x+3y+5z=25$ and $x+y+z=10$. Subtract. You get $2y+4z=15$. This is impossible in integers, since $2y+4z$ is always even, and $15$ is odd. So we cannot solve the problem using **exactly** $10$ boxes. **Remark:** If we use ...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
You can set up equations. If we use $x$, $y$, $z$ boxes of size $1$, $3$, $5$ respectively, then $x+3y+5z=25$ and $x+y+z=10$. Subtract. You get $2y+4z=15$. This is impossible in integers, since $2y+4z$ is always even, and $15$ is odd. So we cannot solve the problem using **exactly** $10$ boxes. **Remark:** If we use ...
If $x,y,z$ are integers such that $x+y+z=10$, then there are two possibilities: $\hskip1cm$ (i) All of $x,y,z$ are even numbers. $\hskip1cm$ (ii) One of $x,y,z$ is even and the two other numbers are odd. In both cases, $x+3y+5z$ will be an even number, so it cannot be equal to $25$.
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
You can set up equations. If we use $x$, $y$, $z$ boxes of size $1$, $3$, $5$ respectively, then $x+3y+5z=25$ and $x+y+z=10$. Subtract. You get $2y+4z=15$. This is impossible in integers, since $2y+4z$ is always even, and $15$ is odd. So we cannot solve the problem using **exactly** $10$ boxes. **Remark:** If we use ...
so there are 3 types of boxes, 1kg, 3kg and 5kg. two conditions are there: 1) not all types boxes are used 2) atleast one of each type box is used. considering condition 1 observation: salesman cant use six boxes of 5kg (total exceeds 25kg). so total no of 5kg box is less than or equal to five. case 1: five boxes...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x$ is the number of 1kg boxes, $y$ the number of 3kg boxes and $z$ the number of 5kg boxes, you want to solve $x+y+z = 10$ so that 10 boxes are used $x+3y+5z = 25$ so that 25kg of apples are used. Additionally, you have the constraints that $x,y,z$ are non-negative integers. There is no third equation involved, ...
You correctly identified that your equations are $$\begin{align\*} x+3y+5z &= 25 \\ x+y+z &= 10 \end{align\*}$$ And indeed, you only have two equations. However, you have the following constraints: $x,y,z$ are integers. Subtract the second from the first and you can eliminate $x$ -- can integers $y$ and $z$ solve th...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x,y,z$ are integers such that $x+y+z=10$, then there are two possibilities: $\hskip1cm$ (i) All of $x,y,z$ are even numbers. $\hskip1cm$ (ii) One of $x,y,z$ is even and the two other numbers are odd. In both cases, $x+3y+5z$ will be an even number, so it cannot be equal to $25$.
You correctly identified that your equations are $$\begin{align\*} x+3y+5z &= 25 \\ x+y+z &= 10 \end{align\*}$$ And indeed, you only have two equations. However, you have the following constraints: $x,y,z$ are integers. Subtract the second from the first and you can eliminate $x$ -- can integers $y$ and $z$ solve th...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x$ is the number of 1kg boxes, $y$ the number of 3kg boxes and $z$ the number of 5kg boxes, you want to solve $x+y+z = 10$ so that 10 boxes are used $x+3y+5z = 25$ so that 25kg of apples are used. Additionally, you have the constraints that $x,y,z$ are non-negative integers. There is no third equation involved, ...
If $x,y,z$ are integers such that $x+y+z=10$, then there are two possibilities: $\hskip1cm$ (i) All of $x,y,z$ are even numbers. $\hskip1cm$ (ii) One of $x,y,z$ is even and the two other numbers are odd. In both cases, $x+3y+5z$ will be an even number, so it cannot be equal to $25$.
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x$ is the number of 1kg boxes, $y$ the number of 3kg boxes and $z$ the number of 5kg boxes, you want to solve $x+y+z = 10$ so that 10 boxes are used $x+3y+5z = 25$ so that 25kg of apples are used. Additionally, you have the constraints that $x,y,z$ are non-negative integers. There is no third equation involved, ...
so there are 3 types of boxes, 1kg, 3kg and 5kg. two conditions are there: 1) not all types boxes are used 2) atleast one of each type box is used. considering condition 1 observation: salesman cant use six boxes of 5kg (total exceeds 25kg). so total no of 5kg box is less than or equal to five. case 1: five boxes...
191,497
A salesman had 25kg apple. For convenience, he put some apples in 3 types of boxes, boxes of 1kg, 3kg and 5kg. He has a total of 10 cases of various kinds. Can he put 25kg apple to fit into 10 boxes? I'm thinking about creating $x,y,z \in \mathbb{N}$ and makes 3 equations to solve $x,y,z$ But I'm lack 1 equation to ...
2012/09/05
[ "https://math.stackexchange.com/questions/191497", "https://math.stackexchange.com", "https://math.stackexchange.com/users/39456/" ]
If $x,y,z$ are integers such that $x+y+z=10$, then there are two possibilities: $\hskip1cm$ (i) All of $x,y,z$ are even numbers. $\hskip1cm$ (ii) One of $x,y,z$ is even and the two other numbers are odd. In both cases, $x+3y+5z$ will be an even number, so it cannot be equal to $25$.
so there are 3 types of boxes, 1kg, 3kg and 5kg. two conditions are there: 1) not all types boxes are used 2) atleast one of each type box is used. considering condition 1 observation: salesman cant use six boxes of 5kg (total exceeds 25kg). so total no of 5kg box is less than or equal to five. case 1: five boxes...
50,678
My next step in implementing my algorithm in Java is following. It is quite difficult to explain, but I know what I need. I have this equation: --- Given: d Asked: $\alpha$ $$(1-\cos\alpha)^2 + \sin^2\alpha = d^2 $$ --- Which I "simplified" to this, using [this formula's](http://en.wikipedia.org/wiki/List_of_t...
2011/07/10
[ "https://math.stackexchange.com/questions/50678", "https://math.stackexchange.com", "https://math.stackexchange.com/users/7250/" ]
Make the following manipulations: $$(1-\cos(\alpha))^2+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+\cos^2(\alpha)+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+1=d^2$$ $$2-2\cos(\alpha)=d^2$$ $$\cos(\alpha)=1-\frac{d^2}{2}$$ $$\alpha=\cos^{-1}\left(1-\frac{d^2}{2}\right)$$
You could just expand the square... Hint : $\left( 1-\cos \alpha \right)^2 + \sin ^2 \alpha = 1 - 2 \cos \alpha + \cos^2 \alpha + \sin^2 \alpha$, then recall that $\cos^2 \alpha + \sin^2 \alpha = 1$.
50,678
My next step in implementing my algorithm in Java is following. It is quite difficult to explain, but I know what I need. I have this equation: --- Given: d Asked: $\alpha$ $$(1-\cos\alpha)^2 + \sin^2\alpha = d^2 $$ --- Which I "simplified" to this, using [this formula's](http://en.wikipedia.org/wiki/List_of_t...
2011/07/10
[ "https://math.stackexchange.com/questions/50678", "https://math.stackexchange.com", "https://math.stackexchange.com/users/7250/" ]
Make the following manipulations: $$(1-\cos(\alpha))^2+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+\cos^2(\alpha)+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+1=d^2$$ $$2-2\cos(\alpha)=d^2$$ $$\cos(\alpha)=1-\frac{d^2}{2}$$ $$\alpha=\cos^{-1}\left(1-\frac{d^2}{2}\right)$$
Write $\sin^{2}x = 1-\cos^{2}{x}$. Then you have \begin{align\*} (1-\cos{x})^{2} + \sin^{2}{x} &= (1-\cos{x})^{2} + (1+\cos{x})\cdot (1-\cos{x}) \\ &= (1-\cos{x}) \cdot \Bigl[ 1- \cos{x} + 1 + \cos{x} \Bigr] \\ &= 2\: \sin^{2}\frac{x}{2} \cdot 2 = 4\:\sin^{2} \frac{x}{2} \end{align\*} Now $$ \frac{d^{2}}{4} =\sin^{2...
50,678
My next step in implementing my algorithm in Java is following. It is quite difficult to explain, but I know what I need. I have this equation: --- Given: d Asked: $\alpha$ $$(1-\cos\alpha)^2 + \sin^2\alpha = d^2 $$ --- Which I "simplified" to this, using [this formula's](http://en.wikipedia.org/wiki/List_of_t...
2011/07/10
[ "https://math.stackexchange.com/questions/50678", "https://math.stackexchange.com", "https://math.stackexchange.com/users/7250/" ]
Make the following manipulations: $$(1-\cos(\alpha))^2+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+\cos^2(\alpha)+\sin^2(\alpha)=d^2$$ $$1-2\cos(\alpha)+1=d^2$$ $$2-2\cos(\alpha)=d^2$$ $$\cos(\alpha)=1-\frac{d^2}{2}$$ $$\alpha=\cos^{-1}\left(1-\frac{d^2}{2}\right)$$
A slightly more general tip that I sometimes tell my students: If an equation contains more than one trig function, it might be nice if there were a way to rewrite it using only one trig function. Sometimes that's easy and sometimes that's hard. But if you see precisely $\sin^2 \alpha$ or $\cos^2 \alpha$, those are v...
50,678
My next step in implementing my algorithm in Java is following. It is quite difficult to explain, but I know what I need. I have this equation: --- Given: d Asked: $\alpha$ $$(1-\cos\alpha)^2 + \sin^2\alpha = d^2 $$ --- Which I "simplified" to this, using [this formula's](http://en.wikipedia.org/wiki/List_of_t...
2011/07/10
[ "https://math.stackexchange.com/questions/50678", "https://math.stackexchange.com", "https://math.stackexchange.com/users/7250/" ]
A slightly more general tip that I sometimes tell my students: If an equation contains more than one trig function, it might be nice if there were a way to rewrite it using only one trig function. Sometimes that's easy and sometimes that's hard. But if you see precisely $\sin^2 \alpha$ or $\cos^2 \alpha$, those are v...
You could just expand the square... Hint : $\left( 1-\cos \alpha \right)^2 + \sin ^2 \alpha = 1 - 2 \cos \alpha + \cos^2 \alpha + \sin^2 \alpha$, then recall that $\cos^2 \alpha + \sin^2 \alpha = 1$.
50,678
My next step in implementing my algorithm in Java is following. It is quite difficult to explain, but I know what I need. I have this equation: --- Given: d Asked: $\alpha$ $$(1-\cos\alpha)^2 + \sin^2\alpha = d^2 $$ --- Which I "simplified" to this, using [this formula's](http://en.wikipedia.org/wiki/List_of_t...
2011/07/10
[ "https://math.stackexchange.com/questions/50678", "https://math.stackexchange.com", "https://math.stackexchange.com/users/7250/" ]
A slightly more general tip that I sometimes tell my students: If an equation contains more than one trig function, it might be nice if there were a way to rewrite it using only one trig function. Sometimes that's easy and sometimes that's hard. But if you see precisely $\sin^2 \alpha$ or $\cos^2 \alpha$, those are v...
Write $\sin^{2}x = 1-\cos^{2}{x}$. Then you have \begin{align\*} (1-\cos{x})^{2} + \sin^{2}{x} &= (1-\cos{x})^{2} + (1+\cos{x})\cdot (1-\cos{x}) \\ &= (1-\cos{x}) \cdot \Bigl[ 1- \cos{x} + 1 + \cos{x} \Bigr] \\ &= 2\: \sin^{2}\frac{x}{2} \cdot 2 = 4\:\sin^{2} \frac{x}{2} \end{align\*} Now $$ \frac{d^{2}}{4} =\sin^{2...
62,856,619
I am using `json-rule-engine` . <https://www.npmjs.com/package/json-rules-engine> I am having a student list which have name and their percentage, Also I have `business rule` the percentage should be greater thank or equal to than `70` . **so I want to print all students name those have percentage more than 70** here ...
2020/07/12
[ "https://Stackoverflow.com/questions/62856619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3701974/" ]
The [json-rules-engine](https://www.npmjs.com/package/json-rules-engine) module takes data in a different format. In your Repl.it you have not defined any facts. Facts should be: ``` let facts = [ { name:"naveen", percentage:70 }, [...] ``` Also, the module itself doesn't seem to process an array of f...
I might have submitted a completely unrelated answer, but here goes. Since the `students` object is an array, you could just loop through it and then use an if else statement. ``` for (let i = 0; i < students.length; i++) { if (students[i].percentage >= 70) { console.log(students[i].name); } } ``` So...
62,856,619
I am using `json-rule-engine` . <https://www.npmjs.com/package/json-rules-engine> I am having a student list which have name and their percentage, Also I have `business rule` the percentage should be greater thank or equal to than `70` . **so I want to print all students name those have percentage more than 70** here ...
2020/07/12
[ "https://Stackoverflow.com/questions/62856619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3701974/" ]
The [json-rules-engine](https://www.npmjs.com/package/json-rules-engine) module takes data in a different format. In your Repl.it you have not defined any facts. Facts should be: ``` let facts = [ { name:"naveen", percentage:70 }, [...] ``` Also, the module itself doesn't seem to process an array of f...
Here is a working example. Counting `success` and `failed` cases ``` const { Engine } = require("json-rules-engine"); let engine = new Engine(); const students = [ { name:"naveen", percentage:70 }, { name:"rajat", percentage:50 }, { name:"ravi", percentage:75 }, { name:"kau...
3,087
I am a mathematician by training. Category theory has become a major subfield of mathematics --- major enough that some have tried to recast the logical foundations of mathematics in terms of categories. A category consists of a collection of objects, and then for each pair of objects, a set of morphisms between the pa...
2012/06/20
[ "https://philosophy.stackexchange.com/questions/3087", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/2007/" ]
I just stumbled across an approach to mathematical foundations that seems to do what I want in a mathematical setting. SEAR (sets, elements, and relations) is a structural set theory that posits both that elements and sets are different and that relations themselves are a whole separate type, described here: <http://n...
One person who has created an ontology with an alternate conception of genus/differentia is Gilles Deleuze. A great introduction to determine whether this may be what you are after can be found [here](http://www.situation.ru/app/j_art_1078.htm)
45,891,242
According to docs <https://nodejs.org/api/fs.html#fs_fs_createreadstream_path_options> fs.createReadStream() can accept Buffer as first argument my node code: ``` var _ = require('lodash') var faker = require('faker') var http = require('http') var fs = require('fs') var xlsx = require('node-xlsx') var gg = _.rang...
2017/08/26
[ "https://Stackoverflow.com/questions/45891242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983650/" ]
The first argument to `fs.createReadStream()` must be the file path. You can apparently pass the path in a Buffer object, but it still must be an acceptable OS path when the Buffer is converted to a string. It appears you are trying to pass the file content to `fs.createReadStream()`. That is not how that API works. I...
@jfriend00 has already provided a very clear explanation on this issue. If a Buffer object is passed as argument to fs.createReadStream(), it should indicate the file path, not file content. As @Littlee asked in comment, here is an example code: ``` var express = require('express'); var router = express.Router(); var ...
45,891,242
According to docs <https://nodejs.org/api/fs.html#fs_fs_createreadstream_path_options> fs.createReadStream() can accept Buffer as first argument my node code: ``` var _ = require('lodash') var faker = require('faker') var http = require('http') var fs = require('fs') var xlsx = require('node-xlsx') var gg = _.rang...
2017/08/26
[ "https://Stackoverflow.com/questions/45891242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983650/" ]
The first argument to `fs.createReadStream()` must be the file path. You can apparently pass the path in a Buffer object, but it still must be an acceptable OS path when the Buffer is converted to a string. It appears you are trying to pass the file content to `fs.createReadStream()`. That is not how that API works. I...
**Creating a Readable Stream From Buffer.** You can easily create a Readable Stream from a Buffer, however using fs.createReadStream() does indeed require first writing it to a file path. **Using stream.Duplex()** * No need to write a local file in order to get a readable stream * Saves I/O and speeds things up. * W...
45,891,242
According to docs <https://nodejs.org/api/fs.html#fs_fs_createreadstream_path_options> fs.createReadStream() can accept Buffer as first argument my node code: ``` var _ = require('lodash') var faker = require('faker') var http = require('http') var fs = require('fs') var xlsx = require('node-xlsx') var gg = _.rang...
2017/08/26
[ "https://Stackoverflow.com/questions/45891242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983650/" ]
**Creating a Readable Stream From Buffer.** You can easily create a Readable Stream from a Buffer, however using fs.createReadStream() does indeed require first writing it to a file path. **Using stream.Duplex()** * No need to write a local file in order to get a readable stream * Saves I/O and speeds things up. * W...
@jfriend00 has already provided a very clear explanation on this issue. If a Buffer object is passed as argument to fs.createReadStream(), it should indicate the file path, not file content. As @Littlee asked in comment, here is an example code: ``` var express = require('express'); var router = express.Router(); var ...
51,678,524
I am reading the tutorial at: <https://www.datacamp.com/community/tutorials/generative-adversarial-networks> Where there is a network called `generator` with the following architecture: ``` generator = Sequential() generator.add(Dense(256, input_dim=64, kernel_initializer=initializers.RandomNormal(stddev=0.02))) gen...
2018/08/03
[ "https://Stackoverflow.com/questions/51678524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3993270/" ]
Keras models expect the first dimension of your data to be the batch dimension. You can have a look at the docs on the [Input layers](https://keras.io/layers/core/#input) from the functional API. This layer has a `shape` argument as well as an `batch_shape` argument. Both work, but the latters allow to explicitly defin...
You are confused about input data and batch size. * Input data contain many data samples, each sample is a row in the input matrix. Number of samples is input size. * Batch is a subset of input data that is computed in a pass. Number of samples in a batch in batch size. In your example, 128 is input size. If you do ...
42,099,120
VS Code is stacking element attributes when I format HTML files. Is there any way to disable this?
2017/02/07
[ "https://Stackoverflow.com/questions/42099120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4659255/" ]
The default setting for this is: ```json "html.format.wrapAttributes": "auto" ``` With `"auto"` meaning: > > Wrap attributes only when line length is exceeded. > > > The line length is defined in a different setting and defaults to `120`: ```js // Maximum amount of characters per line (0 = disable). "html.for...
This worked for me. In your "Settings.json" file add the line ``` "prettier.printWidth": 300 ```
42,099,120
VS Code is stacking element attributes when I format HTML files. Is there any way to disable this?
2017/02/07
[ "https://Stackoverflow.com/questions/42099120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4659255/" ]
The default setting for this is: ```json "html.format.wrapAttributes": "auto" ``` With `"auto"` meaning: > > Wrap attributes only when line length is exceeded. > > > The line length is defined in a different setting and defaults to `120`: ```js // Maximum amount of characters per line (0 = disable). "html.for...
How to debug this issue: [![open settings](https://i.stack.imgur.com/sFtkS.png)](https://i.stack.imgur.com/sFtkS.png) Click on HTML [![html settings](https://i.stack.imgur.com/OHx2I.png)](https://i.stack.imgur.com/OHx2I.png) Notice the force option, but also take a look a Wrap Line Length. Test there to achieve de...
42,099,120
VS Code is stacking element attributes when I format HTML files. Is there any way to disable this?
2017/02/07
[ "https://Stackoverflow.com/questions/42099120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4659255/" ]
This worked for me. In your "Settings.json" file add the line ``` "prettier.printWidth": 300 ```
How to debug this issue: [![open settings](https://i.stack.imgur.com/sFtkS.png)](https://i.stack.imgur.com/sFtkS.png) Click on HTML [![html settings](https://i.stack.imgur.com/OHx2I.png)](https://i.stack.imgur.com/OHx2I.png) Notice the force option, but also take a look a Wrap Line Length. Test there to achieve de...
40,822,239
I recently implemented a collection view in a app, the only problem I'm experiencing is that the collection view goes from 2 column to 1 column on smaller devices with a lot of padding on both sides heres on a display smaller then a iPhone 6: [![enter image description here](https://i.stack.imgur.com/RnOGO.png)](https...
2016/11/26
[ "https://Stackoverflow.com/questions/40822239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5487135/" ]
Please take a look at the following [github](https://github.com/kgeorge/kgeorge_dpl/blob/master/notebooks/tf_cifar.ipynb) page, where I have done this. If the above link fails, please follow the lead on [kgeorge.github.io](http://kgeorge.github.io/2016/11/26/ongoing-deep-learning-projects) and look at the notebook tf\_...
Note that there is now a [built-in function](https://www.tensorflow.org/api_docs/python/tf/keras/datasets/cifar10/load_data) to load this dataset.
55,016,765
I added `tooltip` in my table's 2nd column but it is pushiing my last column away. ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table...
2019/03/06
[ "https://Stackoverflow.com/questions/55016765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478982/" ]
```html <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.goo...
edit `<tbody>` like ``` <tbody> <tr data-toggle="tooltip"> <td>Default</td> <td data-placement="top" title="Hooray!">Defaultson</td> <td>def@somemail.com</td> </tr> <tr class="success" data-toggle="tooltip"> <td>Success</td> <td data-placement="top" title="Hooray!">Doe</td> <...
55,016,765
I added `tooltip` in my table's 2nd column but it is pushiing my last column away. ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table...
2019/03/06
[ "https://Stackoverflow.com/questions/55016765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478982/" ]
You can just add `data-container="body"` in your *HTML* in this way: ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table class="table"> ...
```html <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.goo...
55,016,765
I added `tooltip` in my table's 2nd column but it is pushiing my last column away. ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table...
2019/03/06
[ "https://Stackoverflow.com/questions/55016765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478982/" ]
try this way : ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table class="table"> <thead> <tr> <th>Firstname</th...
edit `<tbody>` like ``` <tbody> <tr data-toggle="tooltip"> <td>Default</td> <td data-placement="top" title="Hooray!">Defaultson</td> <td>def@somemail.com</td> </tr> <tr class="success" data-toggle="tooltip"> <td>Success</td> <td data-placement="top" title="Hooray!">Doe</td> <...
55,016,765
I added `tooltip` in my table's 2nd column but it is pushiing my last column away. ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table...
2019/03/06
[ "https://Stackoverflow.com/questions/55016765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478982/" ]
You can just add `data-container="body"` in your *HTML* in this way: ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table class="table"> ...
try this way : ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table class="table"> <thead> <tr> <th>Firstname</th...
55,016,765
I added `tooltip` in my table's 2nd column but it is pushiing my last column away. ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table...
2019/03/06
[ "https://Stackoverflow.com/questions/55016765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478982/" ]
You can just add `data-container="body"` in your *HTML* in this way: ```js $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); ``` ```html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <div class="container"> <table class="table"> ...
edit `<tbody>` like ``` <tbody> <tr data-toggle="tooltip"> <td>Default</td> <td data-placement="top" title="Hooray!">Defaultson</td> <td>def@somemail.com</td> </tr> <tr class="success" data-toggle="tooltip"> <td>Success</td> <td data-placement="top" title="Hooray!">Doe</td> <...
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
Loop the chars and add to the list ``` Dim s As String = "tafata" Dim count As New Dictionary(Of Char, Integer)() For i As Integer = 0 To s.Length - 1 count(s(i)) = (If(count.ContainsKey(s(i)), count(s(i)) + 1, 1)) Next ``` Havent worked with linq that mutch, but i think you can try ``` Dim s As String = "tafat...
The quick and dirty way: ``` Public Function CountInStr(ByVal value As String, ByVal find As String, Optional compare As VbCompareMethod = VbCompareMethod.vbBinaryCompare) As Long CountInStr = (LenB(value) - LenB(Replace(value, find, vbNullString, 1&, -1&, compare))) \ LenB(find) End Function ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
Loop the chars and add to the list ``` Dim s As String = "tafata" Dim count As New Dictionary(Of Char, Integer)() For i As Integer = 0 To s.Length - 1 count(s(i)) = (If(count.ContainsKey(s(i)), count(s(i)) + 1, 1)) Next ``` Havent worked with linq that mutch, but i think you can try ``` Dim s As String = "tafat...
``` from itertools import groupby sentence = raw_input("Your sentence:") for char,group in groupby(sorted(sentence.lower())): print(char+": "+`len(list(group))`) ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
The quick and dirty way: ``` Public Function CountInStr(ByVal value As String, ByVal find As String, Optional compare As VbCompareMethod = VbCompareMethod.vbBinaryCompare) As Long CountInStr = (LenB(value) - LenB(Replace(value, find, vbNullString, 1&, -1&, compare))) \ LenB(find) End Function ```
I would count and remove every instance of the first character, and repeat until there are no characters left. Then display the count for each character detected. Much better than looping through once for every possible character, unless you know the possible range of characters is smaller than the length of the senten...
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
Loop the chars and add to the list ``` Dim s As String = "tafata" Dim count As New Dictionary(Of Char, Integer)() For i As Integer = 0 To s.Length - 1 count(s(i)) = (If(count.ContainsKey(s(i)), count(s(i)) + 1, 1)) Next ``` Havent worked with linq that mutch, but i think you can try ``` Dim s As String = "tafat...
I would count and remove every instance of the first character, and repeat until there are no characters left. Then display the count for each character detected. Much better than looping through once for every possible character, unless you know the possible range of characters is smaller than the length of the senten...
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
The quick and dirty way: ``` Public Function CountInStr(ByVal value As String, ByVal find As String, Optional compare As VbCompareMethod = VbCompareMethod.vbBinaryCompare) As Long CountInStr = (LenB(value) - LenB(Replace(value, find, vbNullString, 1&, -1&, compare))) \ LenB(find) End Function ```
``` Imports System.Linq Dim CharCounts = From c In "The quick brown fox jumped over the lazy dog." _ Group c By c Into Count() _ Select c, Count ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
As Dave said, the easiest solution would be to have an array of length 26 (for English), and loop through each character in the string, incrementing the correct array element. You can use the ASCII value of each character to identify which letter it is, then translate the ASCII number of the letter into the correspondi...
``` from itertools import groupby sentence = raw_input("Your sentence:") for char,group in groupby(sorted(sentence.lower())): print(char+": "+`len(list(group))`) ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
As Dave said, the easiest solution would be to have an array of length 26 (for English), and loop through each character in the string, incrementing the correct array element. You can use the ASCII value of each character to identify which letter it is, then translate the ASCII number of the letter into the correspondi...
I would count and remove every instance of the first character, and repeat until there are no characters left. Then display the count for each character detected. Much better than looping through once for every possible character, unless you know the possible range of characters is smaller than the length of the senten...
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
The quick and dirty way: ``` Public Function CountInStr(ByVal value As String, ByVal find As String, Optional compare As VbCompareMethod = VbCompareMethod.vbBinaryCompare) As Long CountInStr = (LenB(value) - LenB(Replace(value, find, vbNullString, 1&, -1&, compare))) \ LenB(find) End Function ```
``` from itertools import groupby sentence = raw_input("Your sentence:") for char,group in groupby(sorted(sentence.lower())): print(char+": "+`len(list(group))`) ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
Loop the chars and add to the list ``` Dim s As String = "tafata" Dim count As New Dictionary(Of Char, Integer)() For i As Integer = 0 To s.Length - 1 count(s(i)) = (If(count.ContainsKey(s(i)), count(s(i)) + 1, 1)) Next ``` Havent worked with linq that mutch, but i think you can try ``` Dim s As String = "tafat...
``` Imports System.Linq Dim CharCounts = From c In "The quick brown fox jumped over the lazy dog." _ Group c By c Into Count() _ Select c, Count ```
1,862,854
I have been using tinyMce\_hammer plugin to use tinymce in my rails app... but right now I also want a way for my users to upload photos and insert them into their wysiwyg editor.... is there a simple way to get this done??.. is there any other wysiwyg editor that works with rails and comes with this feature built in??...
2009/12/07
[ "https://Stackoverflow.com/questions/1862854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167519/" ]
As Dave said, the easiest solution would be to have an array of length 26 (for English), and loop through each character in the string, incrementing the correct array element. You can use the ASCII value of each character to identify which letter it is, then translate the ASCII number of the letter into the correspondi...
The quick and dirty way: ``` Public Function CountInStr(ByVal value As String, ByVal find As String, Optional compare As VbCompareMethod = VbCompareMethod.vbBinaryCompare) As Long CountInStr = (LenB(value) - LenB(Replace(value, find, vbNullString, 1&, -1&, compare))) \ LenB(find) End Function ```
8,970,415
I am a beginner of Android and i need a bit hints and help. I am using following code ``` public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
2012/01/23
[ "https://Stackoverflow.com/questions/8970415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736036/" ]
put this to AndroidManifest.xml ``` <activity android:name=".WifiHotSpotActivity"/> ```
It looks like you've not defined the [Activity Element](http://developer.android.com/guide/topics/manifest/activity-element.html) in the manifest xml for WifiHotSpotActivity. Without this you will be unable to launch this activity.
8,970,415
I am a beginner of Android and i need a bit hints and help. I am using following code ``` public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
2012/01/23
[ "https://Stackoverflow.com/questions/8970415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736036/" ]
You should define your activity in the manifest file. Here's an example how your manifest should look after the addition of that activity: ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.foo.test" android:versionCode="1" android:v...
It looks like you've not defined the [Activity Element](http://developer.android.com/guide/topics/manifest/activity-element.html) in the manifest xml for WifiHotSpotActivity. Without this you will be unable to launch this activity.
8,970,415
I am a beginner of Android and i need a bit hints and help. I am using following code ``` public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
2012/01/23
[ "https://Stackoverflow.com/questions/8970415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736036/" ]
You should define your activity in the manifest file. Here's an example how your manifest should look after the addition of that activity: ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.foo.test" android:versionCode="1" android:v...
put this to AndroidManifest.xml ``` <activity android:name=".WifiHotSpotActivity"/> ```
8,970,415
I am a beginner of Android and i need a bit hints and help. I am using following code ``` public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
2012/01/23
[ "https://Stackoverflow.com/questions/8970415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736036/" ]
put this to AndroidManifest.xml ``` <activity android:name=".WifiHotSpotActivity"/> ```
go to manifest the application tag.. add activity "addNew" which you are calling in button click..
8,970,415
I am a beginner of Android and i need a bit hints and help. I am using following code ``` public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
2012/01/23
[ "https://Stackoverflow.com/questions/8970415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736036/" ]
You should define your activity in the manifest file. Here's an example how your manifest should look after the addition of that activity: ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.foo.test" android:versionCode="1" android:v...
go to manifest the application tag.. add activity "addNew" which you are calling in button click..
73,318,387
[![enter image description here](https://i.stack.imgur.com/BFish.png)](https://i.stack.imgur.com/BFish.png) In A7, I would like to return the number at the beginning of the cell in which I find a certain piece of text. So, for example, if I search for the word "question" I would like to return the number 4. I have tr...
2022/08/11
[ "https://Stackoverflow.com/questions/73318387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19425684/" ]
This formula is not perfect because it cannot handle if there is more than one match or if the number to extract is over 9 but could be a starting point: [![enter image description here](https://i.stack.imgur.com/NT3PS.png)](https://i.stack.imgur.com/NT3PS.png) Formula in B9: ``` =LEFT(INDEX($A$1:$A$5,MATCH("*"&B8&"...
For ***Microsoft-365*** user can utilize `FILTER()` function. ``` =LEFT(FILTER(A1:A5,ISNUMBER(SEARCH(C2,A1:A5))),1) ``` [![enter image description here](https://i.stack.imgur.com/e22SE.png)](https://i.stack.imgur.com/e22SE.png)
32,616,919
I have an HTML table which is dynamically populated from data fetched from a server. Since I don't know the schema or the number of rows before hand, I have its, and its row's & cell's position defined as relative. Now once the table is populated, I want to delete a set of rows from it(specified by an array of row inde...
2015/09/16
[ "https://Stackoverflow.com/questions/32616919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343755/" ]
***[jsBin demo](http://jsbin.com/roniqe/2/edit?html,css,js,output)*** Don't animate table elements. Ever. Instead animate DIV elements inside your row cells. Once they faded out and animated to height `0`, than you're free to remove the parent `TR` Example: ```js $("button").on("click", function(){ // Table ...
you should add/remove a class and use CSS to animate. here an example (only css for test ONLY) to see how it would/could work ```css table { width:600px; border:solid; } td { border:solid; } /* demo purpose , instead js */ td { pointer-events:none; font-size:1.2em; opacity:1; } tr:focus td { ...
28,486,172
I am using SQL Server 2008 R2 and I have data in a format `AA-BB-CCCCCCCC-DDDDDDDD-EEEE` stored in one column. I need to separate this into 5 separate columns with T-SQL inline (*I don't want to create a function for this purpose, though I may look into it if there is a serious performance gain, there are permissions i...
2015/02/12
[ "https://Stackoverflow.com/questions/28486172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2570957/" ]
Try this: ``` CREATE TABLE Test ( LongText VARCHAR(400) ) INSERT INTO Test (LongText) VALUES('AA-BB-CCCCCCCC-DDDDDDDD-EEEE'), ('BB-CC-DDDDDDDD-EEEEEEEE-FFFF') ;WITH CTE AS ( --initial part SELECT LongText, 1 AS ColNo, LEFT(LongText, CHARINDEX('-', LongText)-1) AS Part, RIGHT(LongText, LEN(LongText) -...
If you know that your data has a set length, you can use something like: ``` Declare @value as Varchar(50); Set @value = 'AA-BB-CCCCCCCC-DDDDDDDD-EEEE' Select left(@value, 2) as col1, SUBSTRING(@value, 4, 2) as col2, SUBSTRING (@value, 7, 8) as col3 ``` Etc. Elsewise you could use a similar pattern using res...
28,486,172
I am using SQL Server 2008 R2 and I have data in a format `AA-BB-CCCCCCCC-DDDDDDDD-EEEE` stored in one column. I need to separate this into 5 separate columns with T-SQL inline (*I don't want to create a function for this purpose, though I may look into it if there is a serious performance gain, there are permissions i...
2015/02/12
[ "https://Stackoverflow.com/questions/28486172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2570957/" ]
Try this: ``` CREATE TABLE Test ( LongText VARCHAR(400) ) INSERT INTO Test (LongText) VALUES('AA-BB-CCCCCCCC-DDDDDDDD-EEEE'), ('BB-CC-DDDDDDDD-EEEEEEEE-FFFF') ;WITH CTE AS ( --initial part SELECT LongText, 1 AS ColNo, LEFT(LongText, CHARINDEX('-', LongText)-1) AS Part, RIGHT(LongText, LEN(LongText) -...
If you always have 5 parts, this kind of approach might be faster than XML handling: ``` select left(MY_COLUMN, P1.P1-1) as PART1, substring(MY_COLUMN, P1.P1+1,P2.P2-P1.P1-1) as PART2, substring(MY_COLUMN, P2.P2+1,P3.P3-P2.P2-1) as PART3, substring(MY_COLUMN, P3.P3+1,P4.P4-P3.P3-1) as PART4, substring(MY_CO...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
Have a look at [tree](http://linux.die.net/man/1/tree), you may have to install it first. Per default tree does not show permissions, to show permissions next to the filename run ``` tree -p ``` which will recursively list all folders and directories within the current directory including permissions.
You want `find` for this. ``` find some/dir -ls > output.txt ``` From the [`find` man page](https://man7.org/linux/man-pages/man1/find.1.html): > > **`-ls`** > True; list current file in **`ls -dils`** format on standard output. > > > From the [`ls` man page](https://man7.org/linux/man-pages/man1/ls.1.html): ...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
You want `find` for this. ``` find some/dir -ls > output.txt ``` From the [`find` man page](https://man7.org/linux/man-pages/man1/find.1.html): > > **`-ls`** > True; list current file in **`ls -dils`** format on standard output. > > > From the [`ls` man page](https://man7.org/linux/man-pages/man1/ls.1.html): ...
`ls` is a command to list computer files in Unix `ls -l` list items in directory `ls -R` recursively list file ``` ls -lR ```
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
You want `find` for this. ``` find some/dir -ls > output.txt ``` From the [`find` man page](https://man7.org/linux/man-pages/man1/find.1.html): > > **`-ls`** > True; list current file in **`ls -dils`** format on standard output. > > > From the [`ls` man page](https://man7.org/linux/man-pages/man1/ls.1.html): ...
The `stat` command executed by the `find` command will give you permissions and a whole lot more: ```bash $ find . -exec stat {} + File: '.' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 10306h/66310d Inode: 1326677 Links: 3 Access: (0775/drwxrwxr-x) Uid: ( 1000/ rick) Gid: (...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
Have a look at [tree](http://linux.die.net/man/1/tree), you may have to install it first. Per default tree does not show permissions, to show permissions next to the filename run ``` tree -p ``` which will recursively list all folders and directories within the current directory including permissions.
`ls -lR` lists the contents of directories recursively. The output is hard to process automatically, but for manual browsing it may be good because it's what you're familiar with. The `find` command lists files recursively. You can customize its output, for example the following command prints permissions like `ls -l`...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
Have a look at [tree](http://linux.die.net/man/1/tree), you may have to install it first. Per default tree does not show permissions, to show permissions next to the filename run ``` tree -p ``` which will recursively list all folders and directories within the current directory including permissions.
`ls` is a command to list computer files in Unix `ls -l` list items in directory `ls -R` recursively list file ``` ls -lR ```
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
Have a look at [tree](http://linux.die.net/man/1/tree), you may have to install it first. Per default tree does not show permissions, to show permissions next to the filename run ``` tree -p ``` which will recursively list all folders and directories within the current directory including permissions.
The `stat` command executed by the `find` command will give you permissions and a whole lot more: ```bash $ find . -exec stat {} + File: '.' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 10306h/66310d Inode: 1326677 Links: 3 Access: (0775/drwxrwxr-x) Uid: ( 1000/ rick) Gid: (...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
`ls -lR` lists the contents of directories recursively. The output is hard to process automatically, but for manual browsing it may be good because it's what you're familiar with. The `find` command lists files recursively. You can customize its output, for example the following command prints permissions like `ls -l`...
`ls` is a command to list computer files in Unix `ls -l` list items in directory `ls -R` recursively list file ``` ls -lR ```
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
`ls -lR` lists the contents of directories recursively. The output is hard to process automatically, but for manual browsing it may be good because it's what you're familiar with. The `find` command lists files recursively. You can customize its output, for example the following command prints permissions like `ls -l`...
The `stat` command executed by the `find` command will give you permissions and a whole lot more: ```bash $ find . -exec stat {} + File: '.' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 10306h/66310d Inode: 1326677 Links: 3 Access: (0775/drwxrwxr-x) Uid: ( 1000/ rick) Gid: (...
39,692
Is there anyway I can list files by typing a command in the shell which lists all the file names, folder names and their permissions in CentOS?
2012/05/30
[ "https://unix.stackexchange.com/questions/39692", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19371/" ]
The `stat` command executed by the `find` command will give you permissions and a whole lot more: ```bash $ find . -exec stat {} + File: '.' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 10306h/66310d Inode: 1326677 Links: 3 Access: (0775/drwxrwxr-x) Uid: ( 1000/ rick) Gid: (...
`ls` is a command to list computer files in Unix `ls -l` list items in directory `ls -R` recursively list file ``` ls -lR ```
44,845
Let $X$ and $Y$ be projective varieties. I am assuming that there is some construction of a "moduli space" parametrizing the morphisms $X \to Y$. For instance, if one identifies such morphisms with their graphs in $X \times Y$, one can at least hope that these graphs would correspond to a locally closed subscheme of th...
2010/11/04
[ "https://mathoverflow.net/questions/44845", "https://mathoverflow.net", "https://mathoverflow.net/users/5094/" ]
It is called the Hom scheme, and I think it's defined in Grothendieck's [Bourbaki 221 paper](http://www.numdam.org/item?id=SB_1960-1961__6__249_0), where he constructs the Hilbert and Quot schemes. For any $S$-schemes $X$ and $Y$, $\underline{Hom}\_S(X,Y)$ assigns to any $S$-scheme $T$ the set $Hom\_T(X\_T,Y\_T)$. Osse...
There is a good non-stacky intro to this in the first chapter of [Rational curves on algebraic varieties](http://books.google.com/books?id=oqW3GabJLjgC&printsec=frontcover&dq=rational+curves+on+algebraic+varieties&source=bl&ots=_9g9ialfeP&sig=UtO_riBs-jfgZnC_f3Pj2Rlm_tA&hl=en&ei=L_DSTK7rK4zWtQO2obCkDg&sa=X&oi=book_resu...
24,899,404
I have a `login.php`, `register.php` page. The `register` page is working fine, but I have a problem with my `login` page. When I log in successfully, it is supposed to redirect me to a page called `member.php` but instead just stays on the same page and goes no where. Here is my code for the `login.php` page whe...
2014/07/22
[ "https://Stackoverflow.com/questions/24899404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3863660/" ]
You can't set headers with `header(...)` after any html. You can work around this problem with output buffering. Try adding the following to the top of login.php (that is before your doctype declaration) ``` <?php ob_start(); ?> ``` <http://php.net/manual/en/function.ob-start.php>
You have to send the `header("Location: member.php")` before any other output. So *first* check if the user has to be redirected (and do so if yes) and *then* output everything from `<!doctype html>` on.
24,899,404
I have a `login.php`, `register.php` page. The `register` page is working fine, but I have a problem with my `login` page. When I log in successfully, it is supposed to redirect me to a page called `member.php` but instead just stays on the same page and goes no where. Here is my code for the `login.php` page whe...
2014/07/22
[ "https://Stackoverflow.com/questions/24899404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3863660/" ]
You can't set headers with `header(...)` after any html. You can work around this problem with output buffering. Try adding the following to the top of login.php (that is before your doctype declaration) ``` <?php ob_start(); ?> ``` <http://php.net/manual/en/function.ob-start.php>
You can try this. ``` if($user == $dbusername && $pass == $dbpassword) { session_start(); $_SESSION['sess_user']=$user; echo "<script language='javascript'> window.location='member.php'; </script>"; } ``` member.php ---------- ``` if(!isset($_SESSION["sess_user"])) { echo "<script language='javasc...
51
There are a few tags that are duplicate (and so I think should be made into synonyms): 1. [theory](https://cseducators.stackexchange.com/tags/theory/info) and [cs-theory](https://cseducators.stackexchange.com/tags/cs-theory/info) 2. [design](https://cseducators.stackexchange.com/tags/design/info) and [design-thinking]...
2017/05/28
[ "https://cseducators.meta.stackexchange.com/questions/51", "https://cseducators.meta.stackexchange.com", "https://cseducators.meta.stackexchange.com/users/150/" ]
The best solution would be to just remove [cs-theory](https://cseducators.stackexchange.com/questions/tagged/cs-theory "show questions tagged 'cs-theory'") and [design-thinking](https://cseducators.stackexchange.com/questions/tagged/design-thinking "show questions tagged 'design-thinking'") by editing. "CS" theory is r...
[cs-theory](https://cseducators.stackexchange.com/questions/tagged/cs-theory "show questions tagged 'cs-theory'") would be different from [education-theory](https://cseducators.stackexchange.com/questions/tagged/education-theory "show questions tagged 'education-theory'"), or any other kind of theory. I agree that we d...
51
There are a few tags that are duplicate (and so I think should be made into synonyms): 1. [theory](https://cseducators.stackexchange.com/tags/theory/info) and [cs-theory](https://cseducators.stackexchange.com/tags/cs-theory/info) 2. [design](https://cseducators.stackexchange.com/tags/design/info) and [design-thinking]...
2017/05/28
[ "https://cseducators.meta.stackexchange.com/questions/51", "https://cseducators.meta.stackexchange.com", "https://cseducators.meta.stackexchange.com/users/150/" ]
The tag [design-thinking](https://cseducators.stackexchange.com/questions/tagged/design-thinking "show questions tagged 'design-thinking'") could reference the school of thought that comes from [Stanford's d.school](https://dschool.stanford.edu/). (Read more about design thinking [here](https://www.edutopia.org/blog/de...
[cs-theory](https://cseducators.stackexchange.com/questions/tagged/cs-theory "show questions tagged 'cs-theory'") would be different from [education-theory](https://cseducators.stackexchange.com/questions/tagged/education-theory "show questions tagged 'education-theory'"), or any other kind of theory. I agree that we d...
37,593,820
I have one master workbook with all the raw data. Column B of this is either empty or contains the text "Yes". I have another workbook which has to contain all rows of the master workbook which contain "Yes" in the B column. Each time the macro runs, I need to empty my second filtered workbook and check the master wo...
2016/06/02
[ "https://Stackoverflow.com/questions/37593820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5548437/" ]
You can also try out the 'Append streams' step. Again, all of the Excel inputs would have to have matching metadata for this to work. [![Append Streams](https://i.stack.imgur.com/cXunm.png)](https://i.stack.imgur.com/cXunm.png)
All steps in Pentaho can take multiple inputs as long as stream metadata matches exactly. So, make sure that all three Excel inputs have exactly matching metadata, meaning field names, data types, and field order must be exactly the same, then just flow the outputs into the same step like this: [![Merging Streams](htt...
978,341
I am seeing too much ARP 60 packets from one IP in wireshark. Our LAN is getting too slow, But the internet is working fine without any issues. But cant access local printers, file share etc Am attaching the image with this. Is it normal to have like this ? or what else be the cause of network problem. How to find ? ...
2019/08/07
[ "https://serverfault.com/questions/978341", "https://serverfault.com", "https://serverfault.com/users/357195/" ]
ARP broadcasts alone - even in somewhat significant quantity - aren't necessarily indicative of a problem. Without timestamps we don't even know if this is genuinely a high rate. If you are exceeding say 20 broadcasts a second from a specific origin you might have a problem. All that being said, just taking the sam...
I agree with Tim, but one other thing that needs to be considered is how do you quantify that your LAN is "slow"? If you have old computers or 10/100 switches and network adapters, those will be your bottleneck. Upgrade to all gigabit and don't daisy chain unmanaged switches all over the place and you should be fine. R...
21,284,550
I have a problem to getting the last month in a query : This is my query: ``` SELECT i_chelt_pub_val.`agent_id`, i_chelt_pub_val.`date`, i_chelt_pub_val.`form_val` FROM i_chelt_pub_val WHERE ( MONTH(i_chelt_pub_val.`date`) = (MONTH(CURRENT_TIMESTAMP) - 1) ) AND i_chelt_pub_val.`agent_id` = '253' ...
2014/01/22
[ "https://Stackoverflow.com/questions/21284550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3084005/" ]
try DATE\_SUB(): ``` ... = MONTH(DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 MONTH)); ```
``` SELECT i_chelt_pub_val.`agent_id`, i_chelt_pub_val.`date`, i_chelt_pub_val.`form_val` FROM i_chelt_pub_val WHERE ( ( MONTH(i_chelt_pub_val.`date`) = (MONTH(CURRENT_TIMESTAMP) - 1) AND YEAR(i_chelt_pub_val.`date`) = (YEAR(CURRENT_TIMESTAMP)) ) OR (MONTH(i_chelt_pub_val.`da...
21,284,550
I have a problem to getting the last month in a query : This is my query: ``` SELECT i_chelt_pub_val.`agent_id`, i_chelt_pub_val.`date`, i_chelt_pub_val.`form_val` FROM i_chelt_pub_val WHERE ( MONTH(i_chelt_pub_val.`date`) = (MONTH(CURRENT_TIMESTAMP) - 1) ) AND i_chelt_pub_val.`agent_id` = '253' ...
2014/01/22
[ "https://Stackoverflow.com/questions/21284550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3084005/" ]
try DATE\_SUB(): ``` ... = MONTH(DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 MONTH)); ```
Assuming, that you want all data from the beginning of the last month to the end of the last month, your query has three issues: * you will get for example all januaries of all years * depending on when you execute the query, you will miss the data from the very beginning of a month to the time when you execute it, fo...
21,284,550
I have a problem to getting the last month in a query : This is my query: ``` SELECT i_chelt_pub_val.`agent_id`, i_chelt_pub_val.`date`, i_chelt_pub_val.`form_val` FROM i_chelt_pub_val WHERE ( MONTH(i_chelt_pub_val.`date`) = (MONTH(CURRENT_TIMESTAMP) - 1) ) AND i_chelt_pub_val.`agent_id` = '253' ...
2014/01/22
[ "https://Stackoverflow.com/questions/21284550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3084005/" ]
Assuming, that you want all data from the beginning of the last month to the end of the last month, your query has three issues: * you will get for example all januaries of all years * depending on when you execute the query, you will miss the data from the very beginning of a month to the time when you execute it, fo...
``` SELECT i_chelt_pub_val.`agent_id`, i_chelt_pub_val.`date`, i_chelt_pub_val.`form_val` FROM i_chelt_pub_val WHERE ( ( MONTH(i_chelt_pub_val.`date`) = (MONTH(CURRENT_TIMESTAMP) - 1) AND YEAR(i_chelt_pub_val.`date`) = (YEAR(CURRENT_TIMESTAMP)) ) OR (MONTH(i_chelt_pub_val.`da...
64,060,290
Im develop a project on Cordova CLI and compile the APP on physical iPhone but in the console have a error with Access Control Origin. This is the message: ``` [Error] Origin null is not allowed by Access-Control-Allow-Origin. [Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin....
2020/09/25
[ "https://Stackoverflow.com/questions/64060290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2208725/" ]
It's because there is no origin from WKWebView, so you cannot use CORS as it is. You need a plugin to allow XHR with no origin. Check out [cordova-plugin-ios-xhr](https://github.com/globules-io/cordova-plugin-ios-xhr)
The solution: The problem only is a attribute on the link of the stylesheet of bootstrap :P ``` <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" /> ``` The problem is: ``` crossorigin="anonymous" ``` Only need this: ``` <link href="bootstrap/css/bootstrap.min.css" rel="s...
64,060,290
Im develop a project on Cordova CLI and compile the APP on physical iPhone but in the console have a error with Access Control Origin. This is the message: ``` [Error] Origin null is not allowed by Access-Control-Allow-Origin. [Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin....
2020/09/25
[ "https://Stackoverflow.com/questions/64060290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2208725/" ]
With Cordova-ios@6, you need to specify the `scheme` and the `hostname` as per the docs [here](https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html): > > Additionaly, WKURLSchemeHandler support has been introduced with this release. Using a custom scheme to serve your app content through...
The solution: The problem only is a attribute on the link of the stylesheet of bootstrap :P ``` <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" /> ``` The problem is: ``` crossorigin="anonymous" ``` Only need this: ``` <link href="bootstrap/css/bootstrap.min.css" rel="s...
64,060,290
Im develop a project on Cordova CLI and compile the APP on physical iPhone but in the console have a error with Access Control Origin. This is the message: ``` [Error] Origin null is not allowed by Access-Control-Allow-Origin. [Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin....
2020/09/25
[ "https://Stackoverflow.com/questions/64060290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2208725/" ]
With Cordova-ios@6, you need to specify the `scheme` and the `hostname` as per the docs [here](https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html): > > Additionaly, WKURLSchemeHandler support has been introduced with this release. Using a custom scheme to serve your app content through...
It's because there is no origin from WKWebView, so you cannot use CORS as it is. You need a plugin to allow XHR with no origin. Check out [cordova-plugin-ios-xhr](https://github.com/globules-io/cordova-plugin-ios-xhr)
11,207,857
On Google chrome, if I have a `div` within an anchor, randomly the border will change to the text colour. If I inspect the element, the colour switches back instantly to the proper colour. Is there a way I can get around this error? This is the html: (it doesn't happen every time, spontaneously it will be the wrong c...
2012/06/26
[ "https://Stackoverflow.com/questions/11207857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1187891/" ]
Only took me 3 hours to solve this bug (on days like this I feel like Webkit is just as bad as Trident)... but here's the answer: It only occurs when you have an inline elements inside an anchor `(<a>)` with a "href" value that has been visited. Such as: ``` <a href="http://www.google.com"><span>Button</span></a> ``...
I found a solution, if I use a `span` instead of a `div`, the issue doesnt seem to occur. edit - it occurred once since its been a span, refreshed and it hasn't occurred since.
11,207,857
On Google chrome, if I have a `div` within an anchor, randomly the border will change to the text colour. If I inspect the element, the colour switches back instantly to the proper colour. Is there a way I can get around this error? This is the html: (it doesn't happen every time, spontaneously it will be the wrong c...
2012/06/26
[ "https://Stackoverflow.com/questions/11207857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1187891/" ]
Only took me 3 hours to solve this bug (on days like this I feel like Webkit is just as bad as Trident)... but here's the answer: It only occurs when you have an inline elements inside an anchor `(<a>)` with a "href" value that has been visited. Such as: ``` <a href="http://www.google.com"><span>Button</span></a> ``...
I just ran into this with some markup like this: ``` <a href="http://www.google.com" class="outer-link"> <img src="http://google.com/gif.png" /> </a> ``` My styles looked like this: ``` img { border: 2px solid gray; } ``` The gray border was getting turned into the blue link color, here is how I fixed it: ``...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
You can use PrimeFaces' [`<p:remoteCommand>`](http://www.primefaces.org/showcase/ui/ajax/remoteCommand.xhtml) for this. ```html <p:remoteCommand name="updateGrowl" update="showmessage" /> ``` which is to be invoked as ```html <p:commandButton ... oncomplete="addMemberDlg.hide(); updateGrowl();" /> ``` --- In *th...
you can always do something like this (remove the showmessage id from your save button update attribute) ``` <h:commandButton style="display:none" id="myBtn" > <f:ajax render=":showmessage"/> </h:commandButton> function handleSaveNewMember(xhr, status, args) { ... jQuery("#myBtn").click(); } ``` **EDIT*...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
you can always do something like this (remove the showmessage id from your save button update attribute) ``` <h:commandButton style="display:none" id="myBtn" > <f:ajax render=":showmessage"/> </h:commandButton> function handleSaveNewMember(xhr, status, args) { ... jQuery("#myBtn").click(); } ``` **EDIT*...
My advice: 1. Use `<p:remoteCommand>` with an `actionListener` attribute. This attribute invokes a backing bean method that contains `FacesContext.addMessage` code, this way: `<p:remoteCommand actionListener="myBean.testMethod()" />` 2. Next, in your `handleSaveNewMember` script, invoke the `remoteCommand` `name` attr...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
you can always do something like this (remove the showmessage id from your save button update attribute) ``` <h:commandButton style="display:none" id="myBtn" > <f:ajax render=":showmessage"/> </h:commandButton> function handleSaveNewMember(xhr, status, args) { ... jQuery("#myBtn").click(); } ``` **EDIT*...
You can use an PrimeFaces element called p: remotecommand. This element will execute an action (to call a bean method, for example) and to execute an update after that action. There is an example in this post <http://devdublog.blogspot.com/2015/04/best-way-for-calling-method-of.html>.
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
My advice: 1. Use `<p:remoteCommand>` with an `actionListener` attribute. This attribute invokes a backing bean method that contains `FacesContext.addMessage` code, this way: `<p:remoteCommand actionListener="myBean.testMethod()" />` 2. Next, in your `handleSaveNewMember` script, invoke the `remoteCommand` `name` attr...
PrimeFaces has an [Ajax API](https://primefaces.github.io/primefaces/10_0_0/#/core/ajaxJavascriptApi). You can use `PrimeFaces.ajax.Request.handle(cfg)`, or the shorter version `PrimeFaces.ab(cfg)` to trigger an update by using the `update` propery of the config object. You probably want to set the `process` propery t...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
you can always do something like this (remove the showmessage id from your save button update attribute) ``` <h:commandButton style="display:none" id="myBtn" > <f:ajax render=":showmessage"/> </h:commandButton> function handleSaveNewMember(xhr, status, args) { ... jQuery("#myBtn").click(); } ``` **EDIT*...
PrimeFaces has an [Ajax API](https://primefaces.github.io/primefaces/10_0_0/#/core/ajaxJavascriptApi). You can use `PrimeFaces.ajax.Request.handle(cfg)`, or the shorter version `PrimeFaces.ab(cfg)` to trigger an update by using the `update` propery of the config object. You probably want to set the `process` propery t...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
My advice: 1. Use `<p:remoteCommand>` with an `actionListener` attribute. This attribute invokes a backing bean method that contains `FacesContext.addMessage` code, this way: `<p:remoteCommand actionListener="myBean.testMethod()" />` 2. Next, in your `handleSaveNewMember` script, invoke the `remoteCommand` `name` attr...
Why can't you put p:Dialog inside of < h:panelGroup >. like ``` < h:panelGroup id="addUser" rendered = "boolean value " > < p:dialog id="addMemberDialog" widgetVar="addMemberDlg" > <!-- More Code --> < p:commandButton value="Save" actionListener="#{memberManagedBean.createOrUpdate}" ...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
you can always do something like this (remove the showmessage id from your save button update attribute) ``` <h:commandButton style="display:none" id="myBtn" > <f:ajax render=":showmessage"/> </h:commandButton> function handleSaveNewMember(xhr, status, args) { ... jQuery("#myBtn").click(); } ``` **EDIT*...
Why can't you put p:Dialog inside of < h:panelGroup >. like ``` < h:panelGroup id="addUser" rendered = "boolean value " > < p:dialog id="addMemberDialog" widgetVar="addMemberDlg" > <!-- More Code --> < p:commandButton value="Save" actionListener="#{memberManagedBean.createOrUpdate}" ...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
You can use PrimeFaces' [`<p:remoteCommand>`](http://www.primefaces.org/showcase/ui/ajax/remoteCommand.xhtml) for this. ```html <p:remoteCommand name="updateGrowl" update="showmessage" /> ``` which is to be invoked as ```html <p:commandButton ... oncomplete="addMemberDlg.hide(); updateGrowl();" /> ``` --- In *th...
My advice: 1. Use `<p:remoteCommand>` with an `actionListener` attribute. This attribute invokes a backing bean method that contains `FacesContext.addMessage` code, this way: `<p:remoteCommand actionListener="myBean.testMethod()" />` 2. Next, in your `handleSaveNewMember` script, invoke the `remoteCommand` `name` attr...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
You can use PrimeFaces' [`<p:remoteCommand>`](http://www.primefaces.org/showcase/ui/ajax/remoteCommand.xhtml) for this. ```html <p:remoteCommand name="updateGrowl" update="showmessage" /> ``` which is to be invoked as ```html <p:commandButton ... oncomplete="addMemberDlg.hide(); updateGrowl();" /> ``` --- In *th...
Why can't you put p:Dialog inside of < h:panelGroup >. like ``` < h:panelGroup id="addUser" rendered = "boolean value " > < p:dialog id="addMemberDialog" widgetVar="addMemberDlg" > <!-- More Code --> < p:commandButton value="Save" actionListener="#{memberManagedBean.createOrUpdate}" ...
10,632,830
Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh? I am making an ajax save call using this button in a dialog. I have attached my custom javascript on the oncomplete event. ``` <p:growl life="1500" id="showmessage"/> <p:dialog id="addMemberDialog" widgetVar="addMemb...
2012/05/17
[ "https://Stackoverflow.com/questions/10632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373784/" ]
My advice: 1. Use `<p:remoteCommand>` with an `actionListener` attribute. This attribute invokes a backing bean method that contains `FacesContext.addMessage` code, this way: `<p:remoteCommand actionListener="myBean.testMethod()" />` 2. Next, in your `handleSaveNewMember` script, invoke the `remoteCommand` `name` attr...
You can use an PrimeFaces element called p: remotecommand. This element will execute an action (to call a bean method, for example) and to execute an update after that action. There is an example in this post <http://devdublog.blogspot.com/2015/04/best-way-for-calling-method-of.html>.
4,946,445
I get a strange behaviour in visual studio Vs executing msbuild in command line. a solution (s1) contains 3 project (p1,p2,pB). p1 and p2 are "normal" VS project while pb is an xml msbuild file I wrote myself. The purpose of the task pB contains is modifying some part of the source code. I did configure dependencies ...
2011/02/09
[ "https://Stackoverflow.com/questions/4946445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/516000/" ]
If you define the width and height in the html element, this should work. In css, IE6 isn't standards compliant and results may vary. For best practices, you shouldn't re-size images in the browser, it slows everything down and causes pixelation. Make a copy of the images that's the size you want, and then link these ...
You shouldn't be having the browser scale down images anyways. For performance reasons, this is going to bog down your site for your users. If you are forcing your user's browser to scale down "huge" images, then they have to download said images fully first and then the browser can scale them, which slows down their w...
44,860,678
I need to use the windows credentials to allow my users to log in an intranet application. I am planning to create a table with usernames and roles and compare the username from `Environment.UserName` with my table. How safe is to relay on this? Is there a better way to achieve this task? Thank you in advance.
2017/07/01
[ "https://Stackoverflow.com/questions/44860678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8240996/" ]
Starting from the `Selector` (including `Selector` element itself),it will traveling up the DOM tree and check whether is there any element with `.class`. if northing found, it will execute the code. The following is a example code in the official documentation. I use it to explain your question ``` <ul id="one" class...
In simple language... $(selector) find the element .closest find the closest element to the above element for eg - `$(selector).closest('form').submit();` will submit the closest form to the selector element and ' === ' operator matches data-type and the value unlike == that only matches value
44,860,678
I need to use the windows credentials to allow my users to log in an intranet application. I am planning to create a table with usernames and roles and compare the username from `Environment.UserName` with my table. How safe is to relay on this? Is there a better way to achieve this task? Thank you in advance.
2017/07/01
[ "https://Stackoverflow.com/questions/44860678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8240996/" ]
A jQuery selector or function used for traversing (ie. `children()`, `closest()` or `find()`) always returns a jQuery object, so it's never `null` or `undefined`. This object then contains a set of elements that match your selector and/or traversal functions and it also has a `length` property which indicates the siz...
In simple language... $(selector) find the element .closest find the closest element to the above element for eg - `$(selector).closest('form').submit();` will submit the closest form to the selector element and ' === ' operator matches data-type and the value unlike == that only matches value
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You can't reference just-created expressions by later referencing their column aliases. Think of the entire select list as being materialized at the same time or in random order - A doesn't exist yet when you're trying to make an expression to create B. You need to repeat the expressions - I don't think you'll be able ...
Do you want calculated results out of your table? In that case you can put the relevant calculations in scalar valued user defined function and use that inside your `select` statement. Or do you want the calculated results to appear as columns in the table, then use a computed column: ``` CREATE TABLE Test( ID IN...
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You can create [computed columns](http://msdn.microsoft.com/en-us/library/ms191250.aspx) to represent the values you want. Also, you can use a [view](http://msdn.microsoft.com/en-us/library/ms187956.aspx) if your calculations are dependent on data in a separate table.
Do you want calculated results out of your table? In that case you can put the relevant calculations in scalar valued user defined function and use that inside your `select` statement. Or do you want the calculated results to appear as columns in the table, then use a computed column: ``` CREATE TABLE Test( ID IN...
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
Another option if someone is still interested: ``` with aa(a) as ( select 1+2 ) , bb(b) as ( select a+3 from aa ) ,cc(c) as ( select b*7 from bb) SELECT aa.a, bb.b, cc.c from aa,bb,cc ```
The only way to "save" the results of your calculations would be using them in a subquery, that way you can use `A, B and C`. Unfortunately it cannot be done any other way.
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You could try something like this. ``` SELECT A.Val AS A, B.Val AS B, C.Val AS C FROM MYTABLE cross apply(select 1 + 2) as A(Val) cross apply(select A.Val + 3) as B(Val) cross apply(select B.Val * 7) as C(Val) ```
Do you want calculated results out of your table? In that case you can put the relevant calculations in scalar valued user defined function and use that inside your `select` statement. Or do you want the calculated results to appear as columns in the table, then use a computed column: ``` CREATE TABLE Test( ID IN...
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You can't reference just-created expressions by later referencing their column aliases. Think of the entire select list as being materialized at the same time or in random order - A doesn't exist yet when you're trying to make an expression to create B. You need to repeat the expressions - I don't think you'll be able ...
You can create [computed columns](http://msdn.microsoft.com/en-us/library/ms191250.aspx) to represent the values you want. Also, you can use a [view](http://msdn.microsoft.com/en-us/library/ms187956.aspx) if your calculations are dependent on data in a separate table.
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You could try something like this. ``` SELECT A.Val AS A, B.Val AS B, C.Val AS C FROM MYTABLE cross apply(select 1 + 2) as A(Val) cross apply(select A.Val + 3) as B(Val) cross apply(select B.Val * 7) as C(Val) ```
The only way to "save" the results of your calculations would be using them in a subquery, that way you can use `A, B and C`. Unfortunately it cannot be done any other way.
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
The only way to "save" the results of your calculations would be using them in a subquery, that way you can use `A, B and C`. Unfortunately it cannot be done any other way.
Do you want calculated results out of your table? In that case you can put the relevant calculations in scalar valued user defined function and use that inside your `select` statement. Or do you want the calculated results to appear as columns in the table, then use a computed column: ``` CREATE TABLE Test( ID IN...
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You could try something like this. ``` SELECT A.Val AS A, B.Val AS B, C.Val AS C FROM MYTABLE cross apply(select 1 + 2) as A(Val) cross apply(select A.Val + 3) as B(Val) cross apply(select B.Val * 7) as C(Val) ```
Another option if someone is still interested: ``` with aa(a) as ( select 1+2 ) , bb(b) as ( select a+3 from aa ) ,cc(c) as ( select b*7 from bb) SELECT aa.a, bb.b, cc.c from aa,bb,cc ```
6,864,799
I have a lots of calculated columns and they keep repeating themselves, one inside of the others, including nested cases statements. There is a really simplified version of something that I've searching a way to do. ``` SELECT (1+2) AS A, A + 3 AS B, B * 7 AS C FROM MYTABLE ```
2011/07/28
[ "https://Stackoverflow.com/questions/6864799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825693/" ]
You could try something like this. ``` SELECT A.Val AS A, B.Val AS B, C.Val AS C FROM MYTABLE cross apply(select 1 + 2) as A(Val) cross apply(select A.Val + 3) as B(Val) cross apply(select B.Val * 7) as C(Val) ```
You can create [computed columns](http://msdn.microsoft.com/en-us/library/ms191250.aspx) to represent the values you want. Also, you can use a [view](http://msdn.microsoft.com/en-us/library/ms187956.aspx) if your calculations are dependent on data in a separate table.