text:
Q: What do the stable homotopy groups of spheres say about the combinatorics of finite sets? The Barratt-Priddy-Quillen(-Segal) theorem says that the following spaces are homotopy equivalent in an (essentially) canonical way:

*

*$\Omega^\infty S^\infty:=\varinjlim~ \Omega^nS^n$

*$\mathbb{Z}\times ({B\Sigma_\infty})_+$, where $\Sigma_\infty$ is the group of automorphisms of a countable set which have finite support, and $+$ is the Quillen plus-construction.

*The group completion of $B\left(\bigsqcup_n \Sigma_n\right)$, where $\Sigma_n$ is the symmetric group on $n$ letters, and $B(\sqcup_n \Sigma_n)$ is given the structure of a topological monoid via the block addition map $\Sigma_n\times \Sigma_m\to \Sigma_{n+m}$.

*$\Omega|S^\bullet.\operatorname{FinSet}|$, where $S^\bullet$ is the Waldhausen $S$-construction, and $\operatorname{FinSet}$ is the category of pointed finite sets, given the structure of a Waldhausen category by declaring cofibrations to be injections and weak equivalences to be isomorphisms.  I don't want to define this since it's complicated (for a reference, see Chapter IV of Weibel's K Book), but it should be thought as a homotopical version of the Grothendieck ring of finite sets, where addition is given by disjoint union and multiplication is given by the cartesian product.  Clark Barwick's answer here makes this more precise.
Now, the homotopy groups of the first space are manifestly the stable homotopy groups of spheres; on the other hand, the last two spaces clearly encode some information about the combinatorics of finite sets.  So my question is:

Is there a concrete combinatorial interpretation of the higher stable homotopy groups of spheres in terms of the combinatorics of finite sets or symmetric groups?

For example it is easy to see via (3) or (4) that $\pi_{0+k}(S^k)=\mathbb{Z}$ corresponds to the Grothendieck ring of finite sets.  Similarly, (2), or with some theory (4), make it clear that $\pi_{1+k}(S^k)=\mathbb{Z}/2\mathbb{Z}$ corresponds to the abelianization of $\Sigma_n$ (via the sign homomorphism). I am interested in concrete interpretations of the higher stable homotopy groups in this style.
A good answer would be, for example, a direct combinatorial interpretation of $\pi_{2+k}(S^k)=\mathbb{Z}/2\mathbb{Z}$ and $\pi_{3+k}(S^k)=\mathbb{Z}/24\mathbb{Z}$; a not-so-good answer would be a statement like "the sphere spectrum is a categorification of the integers," which is not the sort of concrete thing I'm looking for.
EDIT:  So with the exception of Jacob Lurie's comment on $\pi_{2+k}(S^k)$ below (interpreting it as the Schur multiplier $H_2(\Sigma_\infty, \mathbb{Z})$ of $\Sigma_\infty$), it seems like it might be too much to hope for any reasonably complete combinatorial interpretation of the stable homotopy groups.  So I'd settle for something like the following:  namely, a sequence of groups $G_n$ defined in some combinatorial way, and maps $f_n: G_n\to \pi_{n+k}(S^k)$ or $g_n: \pi_{n+k}(S^k)\to G_n$ such that

*

*$f_n$ or $g_n$ are nontrivial for infinitely many $n$,

*The maps are related in some way to the constructions 2-4 above, and

*The $G_n$ are combinatorially interesting.
One such example is $G_n:=H_n(\Sigma_\infty, \mathbb{Z})$ with $g_n$ the Hurewicz map (whence the interpretation of $\pi_{2+k}(S^k)$).  But even in this case, the combinatorial meaning is sort of mysterious (to me at least) for large $n$.

A: There are papers by Eccles, Freedman, Koschorke, and Koschorke and Sanderson that date circa 1978-1982 which discuss the $n$th-stable stem as the bordism group of oriented codimension 1 immersions of closed $n$-manifolds in $(n+1)$-space. For example the generator of $\pi_1^s$ is represented by an immersed circle in the plane that forms the figure-$8$. The mod-2 number of double points is the invariant. The $2$nd stabe stem is represented by a fully twisted torus that is formed from the figure-$8$ times $[0,1]$, fully twisting one end and attaching to form a torus. This is the Lie framed torus (perturbed from $\mathbb{C}^2$) and projected into space.
The generator of ${\mathbb Z}/(24)$ can be given by the sphere eversion. (Shameless self-promotion) My upcoming book gives this explicitly, not as a generator, but you can compute the self-intersection invariants from the diagrams that I give. In general the Kahn-Priddy maps are the invariants constructed from the self-intersection sets. I have not done it, but it would be a nice exercise to understand your $3$rd point of view from these immersions.

A: The following construction is due to Jones and Westbury, in a paper titled "Algebraic $K$-Theory, homology spheres and the $\eta$-invariant" (it is a very nice paper).
Let $M$ be a homology $3$-sphere and $\rho:\pi_1 (M) \to GL_N(\mathbb{C})$ a representation. Then the Quillen plus construction gives a map $S^3 = M^+ \to (BGL_N(\mathbb{C}))^+$, in other words, an element $[M,\rho] \in K_3 (\mathbb{C})$. On this group, there is the $e$-invariant $e:K_3 (\mathbb{C})\to \mathbb{C}/\mathbb{Z}$. Jones and Westbury give a formula for $e([M,\rho])$ in terms of the eigenvalues of $\rho$. If $M$ is the Poincare sphere, you get a complicated, but manageable formula.
Now replace $\rho$ by an action of $\pi_1 (M)$ on a finite set $X$. This then gives, by Barratt–Priddy–Quillen, an element of $\pi_{3}^{st}$.  The Jones–Westbury formula tells you how to compute the e-invariant of the image of this element in $K_3 (\mathbb{C})$ under the map induced by $\Sigma_N \to GL_N(\mathbb{C})$. As the homomorphism $\pi_{3}^{st} \to K_3 (\mathbb{C})$ is injective, you do not lose information.
As a grad student, I played with these formulae in the similar situation of mapping class groups (instead of general linear or symmetric group). This gives elements in the homotopy of the plus-construction of the classifying space of the mapping class group and I was able to find a generator of $\pi_3 (B\Gamma^{+})=\mathbb{Z}/24$ in this way (by an acion of the tgroup of the Poincare sphere on a surface of rather small genus, see http://wwwmath.uni-muenster.de/mjm/vol3.html. I guess it is possible to get a generator of $\pi_{3}^{st}=\mathbb{Z}/24$ by an action of the fundamental group of the Poincaré sphere on a finite set.

A: Write $S = \bigsqcup_n BS_n$ for the symmetric monoidal category of finite sets and bijections under disjoint union, and write $\mathbb{S}$ for the sphere spectrum, thought of as a symmetric monoidal $\infty$-groupoid. There is a natural map
$$S \to \mathbb{S}$$
of symmetric monoidal $\infty$-categories. I'll interpret "combinatorics of finite sets or symmetric groups" to mean $S$, and so I'll interpret the question to mean "what does this map tell us about $S$?" The guiding principle for everything that follows is the following pair of universal properties, which in particular tell us where the above map comes from:

$S$ is the free symmetric monoidal $\infty$-category on a point, while $\mathbb{S}$ is the free symmetric monoidal $\infty$-groupoid with inverses on a point.

The punchline is the following:

$S$ naturally acts on all symmetric monoidal $n$-categories, and on symmetric monoidal $n$-groupoids with inverses, this action naturally factors through the $n^{th}$ truncation $\mathbb{S}_{\le n}$ of the sphere spectrum.

$n$ is, of course, allowed to take the value $\infty$. The $n$-truncated map $S \to \mathbb{S}_{\le n}$ can be thought of as a "higher sign character" following e.g. Ganter-Kapranov.
I apologize in advance for the extreme length of this answer, but I'm making some very formal statements and they won't count for much if I can't make them at least a little concrete.

Let's start with the case $n = 1$. (The case $n = 0$ is an exercise.) Any symmetric monoidal category $(C, \otimes)$ admits a natural family of endofunctors
$$k : V \mapsto V^{\otimes k}$$
which themselves admit a natural family of natural automorphisms given by the symmetric groups
$$S_k \ni \sigma : V^{\otimes k} \to V^{\otimes k}.$$
A concise way of summarizing the compatibilities these things satisfy is that any symmetric monoidal category $C$ is naturally a right module category over the free symmetric monoidal category $S$ on a point (with a second monoidal structure). This is because, by the universal property, there is a natural identification
$$[S, C] \cong C$$
(where here $[S, C]$ denotes the category of symmetric monoidal functors $S \to C$), and so $[S, S]$ naturally acts on $C$ by precomposition. But by the universal property we have $[S, S] \cong S$, with composition giving us a second monoidal structure on $S$ naturally making it a monoid object in symmetric monoidal categories (with respect to a suitable tensor product).
If $C$ is a symmetric monoidal category, let $C^{\times}$ denote the subcategory of invertible objects in $C$ and isomorphisms between these, and let's restrict our attention to this subcategory. For invertible $V$, the endofunctors $k : V \mapsto V^{\otimes k}$ have natural pointwise inverses
$$-k : V \mapsto (V^{-1})^{\otimes k}$$
and so the natural action of $\pi_0(S) \cong \mathbb{Z}_{\ge 0}$ naturally extends to an action of $\mathbb{Z}$. This $\mathbb{Z}$ is, of course, $\pi_0(\mathbb{S})$.
By invertibility, the natural map $\text{Aut}(1) \to \text{Aut}(V^{\otimes k})$ is an isomorphism. By the Eckmann-Hilton argument, $\text{Aut}(1)$ is an abelian group, and so the natural action of $S_k$ on $V^{\otimes k}$ must factor through its abelianization, and hence through the sign character $S_k \to \mathbb{Z}_2$. Moreover, these sign actions on $V^{\otimes k}$ determine and are determined by a sign action on $1$, and naturally give rise to sign actions on $(V^{-1})^{\otimes k}$ by dualizing.
This $\mathbb{Z}_2$ is, of course, $\pi_1(\mathbb{S})$, and a concise summary of the above pair of observations, together with all of the compatibilities relating them, is that the action of $S$ on symmetric monoidal groupoids with inverses factors through the natural map to the $1$-truncation $\mathbb{S}_{\le 1}$ of the sphere spectrum. This says a bit more than just that the natural actions of $S_k$ factor through their abelianizations: it also says that the sign character is compatible with the natural maps $S_k \times S_{k'} \to S_{k + k'}$, as well as that the data of the sign actions on $V^{\otimes k}$ can be packaged into the data of an operation
$$\pi_0(C^{\times}) \ni V \mapsto \sigma \in \text{Aut}(V^{\otimes 2}) \cong \text{Aut}(1) \cong \pi_1(C^{\times})$$
where $\sigma$ is the nontrivial element of $S_2$ acting on $\text{Aut}(V^{\otimes 2})$. This operation can be thought of as assigning every invertible object in $C$ its dimension, and the fact that $\pi_1(\mathbb{S}) \cong \mathbb{Z}_2$ implies in particular that the dimension of an invertible object is always $2$-torsion.
Example. Let $C$ be the symmetric monoidal category of super vector spaces over a field $k$ equipped with the tensor product. This operation assigns to the even invertible super vector space $1 \in \text{Aut}(1) \cong k^{\times}$ and assigns to the odd invertible super vector space $-1$.

The story for general $n$ (including $n = \infty$) is formally identical but takes more work to unpack. Again any symmetric monoidal $n$-category admits a natural action of $S$, and for the same reason. If $(C, \otimes)$ is a symmetric monoidal $n$-category, let $C^{\times}$ denote the subcategory of invertible objects in $C$, isomorphisms between these, isomorphisms between isomorphisms, etc.
Now let's try to run the above arguments again for the action of $S$ on $C^{\times}$. It is again true that for invertible $V$, the natural map $\text{Aut}(1) \to \text{Aut}(V^{\otimes k})$ (now a map of $n$-groups) is an isomorphism. The analogue of Eckmann-Hilton here asserts that the group operation on $\text{Aut}(1)$ is symmetric monoidal, so the natural action of $S_k$ on $V^{\otimes k}$ factors through a map
$$S_k \to \text{Aut}(V^{\otimes k}) \cong \text{Aut}(1)$$
to a symmetric monoidal $n$-group. The "symmetric monoidal $n$-abelianization" of $S_k$ is determined by taking the $n$-truncation of the answer for $n = \infty$, which is the loop space of the free connective spectrum on $BS_k$, or $\Omega \Sigma^{\infty} BS_k$.
I don't know much about that space, but fortunately we don't have to deal with it because we haven't used all of the available structure: we're talking about the individual symmetric groups instead of talking about $S$, so let's talk about $S$. The identification $[S, C] \cong C$ says that symmetric monoidal functors $S \to C$ can be identified with objects of $C$. If we restrict our attention to $C^{\times}$, then symmetric monoidal functors $S \to C^{\times}$ naturally factor through the "group completion" of $S$ (by which I mean the left adjoint to the inclusion of symmetric monoidal $\infty$-groupoids with inverses into symmetric monoidal $\infty$-categories), which Barratt-Priddy-Quillen-Segal tells us is the sphere spectrum $\mathbb{S}$. If $C$ is an $n$-groupoid then we can further factor through the $n$-truncation $\mathbb{S}_{\le n}$. Note that if you believe that $S$ and $\mathbb{S}$ have the universal properties that I said they did, then BPQS is a formal consequence of those universal properties. On the other hand, while it's not hard to show that $S$ is the free symmetric monoidal category on a point, it's less clear why $S$ is the free symmetric monoidal $\infty$-category on a point.

Okay, but that was a lot of formal junk. What am I actually saying for $n = 2$? Here $C$ is a symmetric monoidal $2$-category and we're considering the action of the symmetric groups $S_k$ on the tensor powers $V^{\otimes k}$ of some invertible object in $C^{\times}$. Write
$$\varphi : S_k \to \text{Aut}(V^{\otimes k})$$
for the corresponding morphism of $2$-groups. The starting observation is that part of what it means to be a morphism of $2$-groups is that $\varphi$ does not in any sense just "strictly preserve" the group operation on both sides, in the sense that we don't just have
$$\varphi(\sigma_1 \sigma_2) = \varphi(\sigma_1) \varphi(\sigma_2).$$
What we have instead is a family of $2$-morphisms
$$\eta_{\sigma_1, \sigma_2} : \varphi(\sigma_1 \sigma_2) \to \varphi(\sigma_1) \varphi(\sigma_2)$$
satisfying the coherence condition that the two ways of going from $\varphi(\sigma_1 \sigma_2 \sigma_3)$ to $\varphi(\sigma_1) \varphi(\sigma_2) \varphi(\sigma_3)$ coincide. As previously explained here, in the special case that the only element of $\text{Aut}(V^{\otimes k})$ is $\text{id}_{V^{\otimes k}}$ (this is an evil condition but it's easier to say things this way) this family of $2$-morphisms is precisely a $2$-cocycle on $S_k$ with values in $\text{Aut}(\text{id}_{V^{\otimes k}})$, and the coherence condition is precisely the $2$-cocycle condition.
$\pi_2(\mathbb{S})$ describes how nontrivial these cocycles can be subject to the condition that the natural action of $S_k$ on $\text{Aut}(V^{\otimes k}) \cong \text{Aut}(1)$ is coherently compatible with the symmetric monoidal structure $S_k \times S_{k'} \to S_{k + k'}$. These compatibilities imply, in particular, that we can package all of the morphisms $S_k \to \text{Aut}(V^{\otimes k})$ into a single morphism
$$S_{\infty} \to \text{Aut}(1)$$
of $2$-groups. We can trivialize this map on $\pi_0$ by passing from $S_{\infty}$ to the infinite alternating subgroup $A_{\infty}$, which has the effect of letting us ignore the non-identity elements of $\text{Aut}(1)$. We then get a natural map
$$A_{\infty} \to B \text{Aut}(\text{id}_1) \cong B \pi_2(C^{\times})$$
of $2$-groups, and the fact that $\pi_2(\mathbb{S}) \cong \mathbb{Z}_2$ says that the universal map from $A_{\infty}$ to a connected $2$-group (a $2$-group of the form $BA$, for $A$ an abelian group) is a map
$$A_{\infty} \to B \mathbb{Z}_2.$$
By universal coefficients, this is in turn equivalent to Lurie's assertion in the comments that
$$\pi_2(\mathbb{S}) \cong H_2(BA_{\infty}, \mathbb{Z}) \cong \mathbb{Z}_2$$
is the Schur multiplier of $A_{\infty}$. In the same way that passing from $S_{\infty}$ to $A_{\infty}$ universally trivializes the action of $S_{\infty}$ at the level of $\pi_0$, passing from $S_{\infty}$ to $A_{\infty}$ to the universal central extension $\widetilde{A}_{\infty}$ universally trivializes the action of $S_{\infty}$ at the level of $\pi_0$ and $\pi_1$.

The generator of $\pi_2(\mathbb{S})$ can also be thought of as describing an operation
$$\pi_0(C^{\times}) \to \pi_2(C^{\times})$$
which assigns to every invertible object of $C$ its "$2$-dimension." This is, in a very precise sense, the dimension of the dimension: the ring spectrum structure on $\mathbb{S}$ induces in particular a multiplication
$$\pi_1(\mathbb{S}) \times \pi_1(\mathbb{S}) \to \pi_2(\mathbb{S})$$
and it's known that the generator of $\pi_2(\mathbb{S})$ is the square of the generator of $\pi_1(\mathbb{S})$. This means the above operation factors as a composite
$$\pi_0(C^{\times}) \to \pi_1(C^{\times}) \to \pi_2(C^{\times})$$
where in the first step we take the dimension of an invertible object $V$, which is itself an invertible object in $\text{Aut}(1)$, and then take the dimension again.
Example. Let $C$ be the symmetric monoidal $2$-category of $k$-algebras, $k$-bimodules, and $k$-bimodule homomorphisms, where $k$ is a commutative ring. It turns out to be possible to describe the dimension of any object of $C$, not just the invertible ones, and it turns out to be the zeroth Hochschild homology
$$H_0(A) = A / [A, A].$$
$H_0$ respects the tensor product of $k$-algebras in the sense that $H_0(A \otimes_k B) \cong H_0(A) \otimes_k H_0(B)$, so in order for a $k$-algebra to be invertible (which here means Morita invertible) it must in particular have invertible $H_0$. The sequence of abelian groups given by taking $H_0$ and then taking the dimension
$$\pi_0(C^{\times}) \to \pi_1(C^{\times}) \to \pi_2(C^{\times})$$
can in fact be identified with a natural sequence of abelian groups
$$\text{Br}(k) \to \text{Pic}(k) \to k^{\times}.$$
Subexample. To see a case where the composite of the two maps above is nontrivial, let $k = \mathbb{R}$, but now consider super $k$-algebras, super $k$-bimodules, and super $k$-bimodule homomorphisms. Then
$$\pi_0(C^{\times}) \cong \text{SBr}(\mathbb{R}) \cong \mathbb{Z}_8$$
$$\pi_1(C^{\times}) \cong \text{SPic}(\mathbb{R}) \cong \mathbb{Z}_2$$
$$\pi_2(C^{\times}) \cong \mathbb{R}^{\times}.$$
where the $S$ stands for "super." The super Brauer group is generated by a Clifford algebra
$$\text{Cl}(1) \cong \mathbb{R}[e]/(e^2 = -1)$$
where $e$ has degree $1$. The zeroth Hochschild homology of this Clifford algebra is
$$H_0(\text{Cl}(1)) \cong \mathbb{R}[e]/(e^2 = -1, [e, e] = 2 e^2 = 0) \cong \mathbb{R} e;$$
that is, it's a $1$-dimensional odd vector space, and hence its image in both $\text{SPic}(\mathbb{R})$ and $\mathbb{R}^{\times}$ is $-1$ as above.

Okay, but so far I've more or less repackaged things that other people have already said. To really justify having written all of that let's do $n = 3$.
As far as combinatorics goes, we could talk about coherence data for compatible families of maps from the symmetric groups $S_k$ to symmetric monoidal $3$-groups, and we'd eventually learn (I think) that $\pi_3(\mathbb{S}) \cong \mathbb{Z}_{24}$ can be identified with the third homology
$$H_3(B \widetilde{A}_{\infty}, \mathbb{Z})$$
of the universal central extension of $A_{\infty}$, but at this point it seems prudent to introduce a better language for extracting something understandable from all of the structure available here. I'll use the language of framed cobordism. The natural map $S \to \mathbb{S}$ naturally factors through a third object
$$S \to \text{Bord} \to \mathbb{S}$$
where $\text{Bord}$ is the symmetric monoidal $\infty$-category of framed cobordisms. That is, it has objects framed points, morphisms framed $1$-cobordisms between points, etc. Like $S$ and $\mathbb{S}$, it has a universal property explaining where the above maps come from, which is a variant of the cobordism hypothesis:

$\text{Bord}$ is the free symmetric monoidal $\infty$-category with duals on a point.

The point is that a symmetric monoidal $\infty$-groupoid with inverses is in particular a symmetric monoidal $\infty$-category with duals.
The natural map $\text{Bord} \to \mathbb{S}$ induces a map
$$\pi_n(\text{Bord}) \to \pi_n(\mathbb{S})$$
which is precisely the Pontryagin-Thom isomorphism from the group of cobordism classes of closed framed $n$-manifolds to the $n^{th}$ stable homotopy group of spheres. A generalization of the claims I made about dimensions and "$2$-dimensions" above is that if $C$ is any symmetric monoidal $\infty$-category, then there is a natural map
$$\pi_n(\mathbb{S}) \times \pi_0(C^{\times}) \to \pi_n(C^{\times})$$
but since the generator of $\pi_1(\mathbb{S})$ does not cube to a generator of $\pi_3(\mathbb{S})$ and its higher powers vanish, it is not possible to interpret these operations as arising from iterating the construction of the dimension, and we need something new. That something new is the observation that the same argument that shows that every symmetric monoidal $\infty$-groupoid with duals is naturally a module over $\mathbb{S}$ shows that every symmetric monoidal $\infty$-category with duals is naturally a module over $\text{Bord}$. Hence if $C$ is any symmetric monoidal $\infty$-category, then the above map refines to a natural map
$$\pi_n(\text{Bord}) \times \pi_0(C^{fd}) \to \pi_n(C^{fd})$$
where $C^{fd}$ denotes the subcategory of fully dualizable objects, isomorphisms between these, etc. In terms of the usual cobordism hypothesis, this map comes from taking a fully dualizable object $V$, making it the value at a point of an $n$-dimensional fully extended topological field theory, and then evaluating the TFT on a framed $n$-manifold $M$ representing an element of $\pi_n(\text{Bord})$. If $C$ is chosen to be a suitable Morita category of $E_n$ algebras then this operation recovers factorization homology. For lack of a better term I'll call it factorization homology in general and use factorization homology notation for it:
$$\pi_n(\text{Bord}) \times \pi_0(C^{fd}) \ni (M, V) \mapsto \int_M V \in \pi_n(C^{fd}).$$
Hence (with the appropriate framings) $\int_{S^1} V$ is the dimension / Hochschild homology and $\int_{S^1 \times S^1} V$ is the $2$-dimension. This is all we get when $n = 1, 2$ because $\pi_1(\mathbb{S}) \cong \mathbb{Z}_2$ is generated by $S^1$ with the Lie group framing and $\pi_2(\mathbb{S}) \cong \mathbb{Z}_2$ is generated by $S^1 \times S^1$. But $\pi_3(\mathbb{S})$ is not generated by $(S^1)^3$: instead it's generated by $S^3 \cong \text{SU}(2)$ with the Lie group framing, and so the operation we get from a generator of $\pi_3(\mathbb{S})$ is taking factorization homology on $S^3$:
$$\pi_0(C^{fd}) \ni V \mapsto \int_{S^3} V \in \pi_3(C^{fd}).$$
Since $\pi_3(\mathbb{S}) \cong \mathbb{Z}_{24}$ and the cube of the generator of $\pi_1(\mathbb{S})$ represents the class $12 \in \mathbb{Z}_{24}$, factorization homology of a fully dualizable object on $S^3$ is $24$-torsion and moreover represents a distinguished $12^{th}$ root of the $3$-dimension $\int_{S^1 \times S^1 \times S^1} V$, which is $2$-torsion.
Warning. "Fully dualizable" above is an incredibly strong condition, and in particular it implies being $n$-dualizable for all $n$. Aside from invertible objects, the only examples I can cook up even heuristically are $E_{\infty}$ algebras in a suitable Morita $\infty$-category.
On the other hand, the upshot of the above digression into the cobordism hypothesis is that the operations induced by elements of $\pi_n(\mathbb{S})$, thought of as closed framed $n$-manifolds, make sense on a much more general class of objects than just invertible objects, but in fact on $n$-dualizable objects. So to understand how these operations work we can relax our hypotheses substantially: for example, dimension $\int_{S^1} (-)$ makes sense on $1$-dualizable objects, and these are much easier to find.
Example. Let $C$ be the symmetric monoidal $3$-category of conformal nets in the sense of Bartels-Douglas-Henriques. Then $\pi_3(C^{\times}) \cong U(1)$, and so factorization homology on $S^3$ defines an invariant
$$\pi_0(C^{\times}) \ni V \mapsto \int_{S^3} V \in \pi_3(C^{\times}) \cong U(1).$$
of invertible conformal nets taking values in the $24^{th}$ roots of unity. There is an invertible conformal net called the free fermion $\text{Fer}(1)$, which (conjecturally) is to tmf what the Clifford algebra $\text{Cl}(1)$ is to K-theory, and in Topological modular forms and conformal nets, Douglas and Henriques show that $\int_{S^3} \text{Fer}(1)$ is in fact a primitive $24^{th}$ root of unity.

One last comment on in what sense we can connect the above back to combinatorics, or $S$. Roughly speaking, I want to argue that this question doesn't respect the symmetries of the situation. What I mean is that starting from the action of $S$, we can at best write down some $0$-morphisms, some $1$-morphisms, and some coherence data, and out of this data we can try to say something about $\pi_n(\mathbb{S})$ if we can use this data to put together a closed framed $n$-manifold $M$. But the invariant $\int_M V$ itself doesn't depend on a choice of presentation of $M$, and presenting special cases of it this way blinds us to that: for example, it blinds us to a potentially very rich action of the framed diffeomorphisms of $M$ on $\int_M V$.

A: Combinatorial descriptions of homotopy groups of spheres have been studied in the unstable world rather than the stable world.
Jie Wu found a description of homotopy groups of $S^2$ in his thesis and published here. He described $\pi_n(S^2)$ as the center of a combinatorially defined group.
As is well known, there is an analogue of Barratt-Priddy-Quillen theorem for braid groups. By replacing symmetric groups by braid groups, we obtain $\Omega^2 S^2$. And it is natural to expect to have a combinatorial description of $\pi_*(S^2)$ in terms of braid groups. Such a description was obtained by Berrick, Cohen, Wong, and Wu in this paper. They described $\pi_*(S^2)$ as the homotopy groups of a $\Delta$-group (simplicial group without degeneracies) constructed from braid groups.
Recently a papaer by Mikhailov and Wu appeared, in which they extended Wu's description of $\pi_*(S^2)$ in his thesis.


text:
Q: Ruby on Rails mime type for mobile error I'm trying to detect mobile devices with Rails. I'm getting this error : uninitialized constant Mime::MOBILE when I try to access the index page.
mime_types.rb :
Mime::Type.register_alias "text/html", :mobile

application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery

private

  def mobile_device?
    if request.user_agent =~ /Mobile|webOS/
      request.format = :mobile
      return true
    end
  end
  helper_method :mobile_device?
end

I also created a index.mobile.erb file so the user could be redirected to this format.

A: You must be sure the rails server was launched before the alias added to mime_types.rb. Usualy one is used to see immediately the changes on development enviroment, but in this case, the change was on initializer process.

redpajama_set_name: RedPajamaStackExchange


text:
Q: Laptop crashes all time Ever since I got my laptop, it crashes all the time:

*

*The screen starts to become 'colourful' (small colourful squares instead of of the normal screen);

*The speakers start to buzz;

*I have no control over the mouse/keyboard.
Originally I had Windows 10. Then I set it up to dual boot with Ubuntu 16.04, because I thought the system was the problem, but both on Win10 and Ubuntu 16.04 have the problem.
Today I did ran Memtest86+ and it didn't detected anything.
At the mem-test the temperature of CPU was from 40 to 50 Celcius degrees. The fans are working well so I think everything is all-right in this aspect. The problem is the PC does not crash at some hard things - BF1, Fifa18 (all at max settings), but on some primitive things as Chrome (one card of YouTube), etc
When I bought a laptop he had 4GB of RAM, so I added next 8GB. They didn't working (system even not starting). It was non-sense for me, 'cause they got all parameters to work well at co-operation (DDR4, MHz etc).
So I removed original 4GB and now have only this 'newer' 8.
I thought that if memtest didn't show anything, the RAM is good.
What can the problem be?
Specificaton of laptop:
Lenovo Legion Y520
GPU: GTX 1050
CPU: i7 7700HQ
RAM: 8GB (don't remember the brand)
System: dual boot - Windows 10 and Ubuntu 16.04

A: As you seem to have guessed, it looks like a hardware problem. Try looking at hardware monitoring tools, like openhardwaremonitor, and gsmartcontrol. Also additional hardware stress tests besides memtest86+, like prime95, and various benchmark software to stress cpu, video, and hdd as well, while monitoring the health with the monitoring tools mentioned earlier.
Check for dust buildup inside the laptop, particularly on the fans and cooling fins. What are you putting the laptop on? how is the airflow through the laptop when it is on that? what are the temperatures like? Many people are surprised to learn that a lap is not the best surface to run a laptop on, or a bed, or a couch. Just because the fans are turning does not mean your cooling is working properly. They may not be moving enough air due to blockages in the flow path, or that air flow is effective on dust covered cooling fins.
If the laptop is under warranty, I would be talking to the people you purchased it from to have them troubleshoot and fix it.


text:
Q: I need to save all pandas rows data to a specific field in JSON I have a done some processing on data with pandas. Now I have it in the pandas dataFrame object. I need to save in in JSON. But my requirement say each row should be in the field called 'item'.
eg.
[{
  'item': row_1
},
{
  'item': row_2
},{
  'item': row_2
}]

row_1 is {'column1':'data11', 'column2':'data12'}

A: You can use the to_dict('records') method on your dataframe in order to get a list of records. Assuming you have two columns and three rows (as shown above), the resultant record list will look like
[{'column1': 'data11', 'column2': 'data12'},
 {'column1': 'data21', 'column2': 'data22'},
 {'column1': 'data31', 'column2': 'data32'}]

Then you can iterate through this list of dicts to create a list with the required format. Altogether this looks like
# get the list of records from the original dataframe df
record_list = df.to_dict('records')

# use a list comprehension to get the record list in the desired format
formatted_list = [{'item': record} for record in record_list]

A: Use to_json():
df.to_json('data.json', orient='records', lines=True)


text:
Q: How to output Bibliography on separate page in 2-column layout (LyX) I'm using LyX with the default document class & settings, except with 2-column layout. How do I get the Bibliography to output on a separate page? I tried inserting a New Page, but that just bumps it up to the top of the next column. Thanks!

A: Try adding a \clearpage, i.e. Insert --> Formatting --> Clear Page instead of a New page.
If you want the bibliography to be printed in one column rather than two, add an ERT (Ctrl + L) just before the bibliography, and write \onecolumn in it.


text:
Q: Getting Hourly(Every 3 Hours in a day) Forecast using NOAA (National Weather Service) I am getting weather forecast data for 12 hours Using NOAA Weather API The URL is:
http://forecast.weather.gov/MapClick.php?textField1=40.714269&textField2=-74.005968&unit=2&FcstType=json ,
Now i want to get Hourly forecast data every 3 hours.Does NOAA API provides this kind of forecast.If yes then what is URL for that.I don't want to use any other weather APIS.

A: Using Following url we can get hourly(3 hours)temperature forecast data from NOAA.
http://graphical.weather.gov/xml/sample_products/browser_interface/ndfdXMLclient.php?lat=38.99&lon=-77.01&product=time-series&begin=2014-08-09T00:00:00&end=2014-08-15T00:00:00&temp=temp
Detail documentation of what kind of data API provides can be found here:http://graphical.weather.gov/xml/rest.php
And list on parameters that can be got on hourly basis can be found here:
http://graphical.weather.gov/xml/docs/elementInputNames.php


text:
Q: Java en netbeans 2 cosas. La primera:
yo no sé programar en Java y estoy siguiendo como una especie de guía pero el que hizo esa guía escribió el código con muchos errores y me ha tocado arreglarlo buscando en foros y cosas así. El detalle es que se creó un JFrame y explicó el código a colocar pero el JFrame tiene tantas funciones que no especificó en que parte exactamente va el código. Es este
persona p;

    private void formWindowOpened(java.awt.event.WindowEvent evt)    {
                //Obejeto para almacenar datos
                Object[][] dtPer;
                String[] columNames = {"id", "Nombre", "Ap. Paterno", "Ap. Materno", "E-Mail"};
                //se utiliza la función
                dtPer = p.getDatos();
                //Se colocan los datos en la tabla
                DefaultTableModel datos = new DefaultTableModel(dtPer, columNames);
                tabla.setModel(datos);
    }

En qué parte exactamente va? y está pasando parámetros y tampoco especificó para que son ya que "evt" no se está usando.
La segunda: Este JFrame lo tengo en otro paquete diferente a donde tengo la clase Main. Cómo llamo ese JFrame desde el Main para que se ejecute?

A: Según puedo ver en el código que compartes, estas accediendo a un evento del JFrame que se ejecuta únicamente cuando este se inicia, para acceder a este evento debes: Click derecho en Jframe >> Events >> Window >> WindowOpened (Añado imagen)

Para mostrar una vista desde el main debes importar el paquete y la clase de la vista:import paquete.clase;
Para mostrarlo debes crear un objeto de la vista y hacer uso de la funcion setVisible(), o simplemente definirla como vista principal.


text:
Q: rJava installation in R on debian After updating to R 3.0.1 on a Debian 64-bit machine, the rJava package does not want to install.
configuration failed, so sudo R CMD javareconf [this worked on another debian machine]. however it does not work here, has anybody else had this problem? [see terminal output below]
henk@crunchbang:~$ sudo R CMD javareconf
Java interpreter : /usr/bin/java
Java version     : 1.6.0_18
Java home path   : /usr/lib/jvm/java-6-openjdk/jre
Java compiler    : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar

trying to compile and link a JNI progam
detected JNI cpp flags    :
detected JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -ljvm
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic  -O3 -pipe  -g  -c conftest.c -o conftest.o
conftest.c:1:17: error: jni.h: No such file or directory
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'JNI_CreateJavaVM'
make: *** [conftest.o] Error 1
Unable to compile a JNI program

Java library path:
JNI cpp flags    :
JNI linker flags :
Updating Java configuration in /usr/lib64/R
Done.

# check java
henk@crunchbang:~$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

java environment:
henk@crunchbang:~$ aptitude search "?provides(java-runtime)"
i A default-jre                            - Standard Java or Java compatible Runtime
i A default-jre-headless                   - Standard Java or Java compatible Runtime (headle
p   gcj-4.4-jre                            - Java runtime environment using GIJ/classpath
p   gcj-4.4-jre-headless                   - Java runtime environment using GIJ/classpath (he
p   gcj-jre                                - Java runtime environment using GIJ/classpath
p   gcj-jre-headless                       - Java runtime environment using GIJ/classpath (he
i A openjdk-6-jre                          - OpenJDK Java runtime, using Hotspot JIT
i A openjdk-6-jre-headless                 - OpenJDK Java runtime, using Hotspot JIT (headles
i   sun-java6-jre                          - Sun Java(TM) Runtime Environment (JRE) 6 (archit

A: I took these steps (on an EC2 with Ubuntu 14.04 and RStudio-Server) to install the R package qdap which requires rJava:
(I'm probably quoting other sources here and there and I don't remember from where, but thanks.)
Install these repositories from http://sites.psu.edu/theubunturblog/cran2deb4ubuntu/
(debian: http://r-forge.r-project.org/projects/cran2deb/)
sudo add-apt-repository ppa:marutter/rrutter
sudo add-apt-repository ppa:marutter/c2d4u
sudo apt-get update

Install Java:
sudo apt-get install openjdk-7-jdk
ls /usr/lib/jvm

Set a system-wide environment variable for Java:
sudo joe /etc/profile.d/javaenvvar.sh

which contains:
# JAVA environment variable
# for openjdk-7-jdk in order to use the R package `qdap`.
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre
export PATH=$PATH:$JAVA_HOME/bin

Then exit BASH and sign in again. Check your path changes:
echo $PATH
echo $JAVA_HOME

Then:
sudo R CMD javareconf

Should return:
Java interpreter : /usr/bin/java
Java version     : 1.7.0_65
Java home path   : /usr/lib/jvm/java-7-openjdk-amd64/jre
Java compiler    : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar

Create the file /etc/ld.so.conf.d/java.conf with the following entries:
/usr/lib/jvm//usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
/usr/lib/jvm//usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server

Then install rJava from those new repositories:
sudo apt-get install r-cran-rjava

That just installed rJava to /usr/lib/R/site-library which is accessible to all users of RStudio-Server, hopefully.
sudo update-alternatives --config java

Hopefully, there's only one java installed.
Update R packages:
sudo R
> packageStatus()
> update.packages()

Install R packages system wide (still within sudo R):
> install.packages("qdap", lib="/usr/lib/R/site-library")

Reset RStudio-Server:
Sign out of RStudio-Server first.
sudo rstudio-server stop
sudo rstudio-server start

Sign back in to RStudio-Server.
If you get a memory error, try detaching some packages.
The EC2 t2-micro has only 1 GB of RAM.

A: I had the same problem, the solution was updating to openjdk-7-*  and use update-alternatives --config java    to set the java-7-openjdk path.


text:
Q: C# 2013 Default certificate could not be created. Publish aborting When I try to run a .exe that I built in Visual Studio 2013 with C# it will run just fine on the machine I compiled it in. When I try to run the program on different machines I get exception errors.
So I tried to publish the program and I get this error:

Default certificate could not be created. Publish aborting

If I run the executable from a machine that has Visual Studio on it it works fine.
When I try to create a certificate I get the error

The Profile for the user is a temporary profile. (exception from
  HRESULT:0x80090024)

I would like this executable to run at start-up on all Windows 7 student computers in our school.

A: You need to tell the publisher where to get the certificate from:

*

*Go to Project → Properties

*Go to the tab named "Signing"

*Check the checkbox labeled "Sign the ClickOnce manifests". This enables the section where you can point to a certificate.

*Click on the button labeled "Select From File...". In the directory listing, choose a key file (.pfx) and Open....

*From the step 3, click the button labeled "More Details...". This will display the certificate you've just selected.

*Click "Install Certificate" and follow the prompts.

*Save and Publish your solution.

A: Run as administrator. It worked for me (Visual Studio 2017).

A: Run Visual Studio with administrative rights (Run as administrator).

A: The below solution works for me using Visual Studio 2017 Community Edition in Windows 10.
Make sure that your account has write access to folder 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys'.
Also make sure your account has write access to the folder where you are creating the key.


text:
Q: Wordpress parse plugin error I downloaded this theme from themeforest :
https://themeforest.net/item/hata-real-estate/16828651
There are couple of plugins I need to install with this theme in order to load demo content and make it work.
One of the plugin is called "HATA Plugin". When I try to activate it, it gives me this error.

Parse error: syntax error, unexpected '[' in /home/content/99/10169899/html/chaitanya/wp-content/plugins/pixar-hata/includes/shortcodes.php
  on line 22

This is the line 22 :
  $output .= ( !empty( $photo ) ? '

' : '' );

A: The syntax where you can use an array accessor (ie []) directly on the function return value without using an intermediary variable is new to PHP 5.4 (see http://php.net/manual/en/migration54.new-features.php).
I imagine you are hosting the website on an older PHP version.
If this is the case, you can modify the code as such :
$src = wp_get_attachment_image_src( $photo, 'full' );
$output .= ( !empty( $photo ) ? '

' : '' );

By the way, if I am correct about your PHP version, I strongly recommend you to upgrade to at least PHP 5.6 because you will run in such issues more and more as people upgrade their plugins. Also, all previous PHP version are end of life and doesn't receive security fixes anymore. See http://php.net/supported-versions.php.


text:
Q: How to set height of row in ListView DataTemplate Question
How can I increase the height of each row in my DataTemplate. I've set the height multiple times in different elements, however the row height doesn't change from the seemingly default height.
What am I missing?
Xaml
 <ListView x:Name="ListViewItems">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell Tapped="TapGestureRecognizer_Tapped" Height="400">
                            <Grid Padding="5" Margin="5" HeightRequest="400">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="400"/>
                                </Grid.RowDefinitions>
                                <Label Text="{Binding Title}" Grid.Row="0" Grid.Column="1" FontSize="15"/>
                                <Image Source="@drawable/cereals.png" Aspect="AspectFill" HeightRequest="400" Grid.Row="0" Grid.Column="0" />
                            </Grid>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

Screenshot

A: If you want to allow a ListView row to set its own height, you need to set the ListView HasUnevenRows property to true.

A: Just put HasUnevenRows="True"
on the ListView. This should do the trick.


text:
Q: Vim syntax colouring for gcov not working as inteded I'm new to Vim, and am a little puzzled.
I'm using gcov (through clang), and installed a .gcov vim syntax file from here by placing it in my vim syntax folder - but the highlighting doesn't appear.
What am I missing? Thanks!

A: You need these two lines in your ~/.vimrc for syntax highlighting to work properly:
filetype on
syntax on

Because it's generally what people want, you should probably use:
filetype plugin indent on
syntax on

The first line ensures that Vim recognizes the filetype, loads any filetype-specific options/mappings/autocmds and applies the filetype's built-in indent rules.
The second line activates synatx highlighting.


text:
Q: How to open a file from explorer onto specific monitors at max window size? This is what I have so far, but it only opens on the primary monitor.  My goal specifically is to open the file on the monitor associated with the button that I click.
    private void Form1_Load(object sender, EventArgs e)
    {
        Point btnTopLeft = new Point(15, 15);
        foreach (var screen in Screen.AllScreens)
        {
            Button btn = new Button();
            btn.Text = screen.DeviceName;
            btn.Size = new Size(100, 23);
            btn.Location = btnTopLeft;

            btn.Tag = screen;
            btn.Click += Btn_Click;

            this.Controls.Add(btn);
            btnTopLeft.Offset(0, btn.Height + 7);
        }
    }

    private void Btn_Click(object sender, EventArgs e)
    {
        if (sender == null || !(sender is Button))
            return;
        var btn = (Button)sender;

        if (btn.Tag == null || !(btn.Tag is Screen))
            return;
        var screen = (Screen)btn.Tag;

        System.Diagnostics.Process.Start("explorer.exe", @"c:\");

    }

A: Try using the Screen.GetBoundsmethod.
I believe this would give you which monitor your button mostly-is on
https://msdn.microsoft.com/en-us/library/h6dba0zt%28v=vs.110%29.aspx
And this will give you which monitor a Rectangle is mostly-on
https://msdn.microsoft.com/en-us/library/5z2btd02%28v=vs.110%29.aspx
You can also give it a Point, and it will return which monitor the point is on.
Once you figure out which monitor it is on, you could then use the Screen class again to get the bounds of the monitor and set your application's bounds to that.
Ex.
   this.Bounds = Screens.AllScreens[1].Bounds;

This is how I'd approach it first, though there may be a better way. Hope this helps.


text:
Q: Apache Wicket - Implementing AbstractToolbar with DefaultDataTable I am trying to add an AbstractToolBar to a DefaultDataTable.
The toolbar has a button on click of which the selected rows should get deleted.
My table has a checkbox column, to select the rows.
AbstractToolBar  implementation looks like this -
public class GridToolBar extends AbstractToolbar {

/**
 *
 */
private static final long serialVersionUID = -2126515338632353253L;
Button btnDelete;
List<Contact> selected;

public GridToolBar(final DataTable<?> table) {
    super(table);
    // TODO Auto-generated constructor stub

    btnDelete = new Button("delete",new Model("Delete"));
    btnDelete.setOutputMarkupId(true);
    btnDelete.add(new AjaxEventBehavior("onclick") {

        private static final long serialVersionUID = 6720512493017210281L;

        @Override
        protected void onEvent(AjaxRequestTarget target) {
            System.out.println(selected);
            ((UserProvider)table.getDataProvider()).remove(selected);
            target.add(table);
        }
    });

    add(btnDelete);

}

public void setSelected(List inList){
    selected = inList;
}

}
The toolbar has been added to table as follows -
GridToolBar tb = new GridToolBar(table);
tb.setOutputMarkupId(true);
table.addTopToolbar(tb);

The code works fine, except on click of delete button it adds an additional delete button below the table. On inspecting it with firebug, the ids of both the buttons match exactly. On sorting the table though, the extra button is removed from the view.
Could someone help me how can I avoid creation of extra button on every click?
Why is it being created in the first place?
Any help is appreciated.
Thanks,
Sonam

A: You add the button directly to the table. This is incorrect, as you cannot have a button in a table. You need a <td> element. You can create one using a WebMarkupContainer. See also the source of for example NoRecordsToolbar


text:
Q: Weak enrichment and bicategories I'm trying to find examples where the following perspective on bicategories is developed.
We can define a 2-category as being enriched in Cat, where Cat is treated as a monoidal category using the Cartesian product. It seems like you can treat a bicategory as a weak enrichment, where the necessary associativity diagrams are weakened and replaced with the associator and unitor 2-cells.
This seems to make certain things much simpler, particularly if you wanted to work with a bicategory whose hom-categories were categories with structure and the composition and coherent 2-cells were to respect that structure. That also makes me think that something goes wrong when you take this approach, because I can't seem to find any references where this is developed.

A: It is difficult to axiomatize a "weak enrichment" in general. You have an enrichment base $\mathcal V$, hom-objects $C(a,b)\in \mathcal V$, a composition morphism $C(b,c)\otimes C(a,b)\to C(a,c)$ in $\mathcal V$, then an associator isomorphism in $\mathcal V$...So $\mathcal V$ must be a 2-category! In fact this line of thought can be pushed through, see here. But such a $C$ is certainly no easier to define than a plain bicategory, any more than an enriched category is easier to define than a category. The weakness of the enrichment forces us to abandon the dimensional drop, in which an $n$-category is a category enriched in $n-1$-categories, and in particular makes this approach unmanageably complex for higher dimensions.


text:
Q: raspberry pi cross compiler (linaro) cannot find includes I'm following the answer in this question (Installing Raspberry Pi Cross-Compiler) to set up a a toolchain to compile from linux (Mint 18.1) to a raspberry pi 3.
I set everything up but when I make my project, it cannot find headers that I see are indeed copied in my local machine.
For example,
My cmake cross compile toolchain file for the project looks like this:
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER $ENV{HOME}/workspace/pi/xtools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER $ENV{HOME}/workspace/pi/xtools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++)
SET(CMAKE_FIND_ROOT_PATH $ENV{HOME}/workspace/pi/pilibs/)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

*

*$HOME/workspace/pi/xtools is the git://github.com/raspberrypi/tools.git repo.

*$HOME/workspace/pi/pilibs contains my pi's /lib and /usr dirs. And I can confirm if I 'make' the program directly on the pi, it compiles fine.

But when I 'make' on my Linux box, after generating the makefiles with cmake (using cmake-qt-gui; selecting the above toolchain file), it can't find headers:
fede@fede-mbp ~/workspace/mt/mt-build-pi $ make
Scanning dependencies of target cguittfont
[  0%] Building CXX object src/cguittfont/CMakeFiles/cguittfont.dir/xCGUITTFont.cpp.o
In file included from /home/fede/workspace/pi/xtools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/cstdlib:72:0,
                from /home/fede/workspace/pi/xtools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/bits/stl_algo.h:59,
                from /home/fede/workspace/pi/xtools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/algorithm:62,
                from /home/fede/workspace/mt/minetest/src/cguittfont/xCGUITTFont.h:4,
                from /home/fede/workspace/mt/minetest/src/cguittfont/xCGUITTFont.cpp:4:
/home/fede/workspace/pi/pilibs/usr/include/stdlib.h:760:34: fatal error: bits/stdlib-bsearch.h: No such file or directory
# include <bits/stdlib-bsearch.h>
                                ^
compilation terminated.

Although I do have /home/fede/workspace/pi/pilibs/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h

A: Apparently, I had to also set CMAKE_SYSROOT to the same path as CMAKE_FIND_ROOT_PATH.


text:
Q: Function not found in current context I'm trying to call a function but keep getting an error saying it doesn't exist in this current context. It's for a class assignment. I'm not sure why it's not recognizing the function.
using System;
public class Program
{

    public int W(int a, int b)
    {
        return 0;
    }

    public static void Main()
    {
        int j= W(1,1);
    }
}

A: What you are seeing is:
Compiler Error CS0120

An object reference is required for the nonstatic field, method, or
property 'member'
In order to use a non-static field, method, or property, you must
first create an object instance.

Solution
Change:
public int W(int a, int b)

to:
public static int W(int a, int b)

Basically, you can't call instance members from a static method without an instance.

Further reading:
static (C# Reference)
Static Classes and Static Class Members (C# Programming Guide)
Instance Constructors (C# Programming Guide)

A: in static method you must use static member otherwise not found in current context
so you must type static before your type(int) and then call it


text:
Q: Php radio button select I am having trouble with getting the radio buttons to work with my select statement the issue lies somewhere in the buttons i think but i am unsure of this any and all help is appreciated
here is the code that i have currently. what i need to happen is for the page to refresh and sort the table to what has been selected by the button
    <?php require_once('dbadmin.php');?>
    <?php
      session_start();
      $user = $_SESSION['user'];
      if(!isset($user)){
        header("Location:admin_login.php");
      }
    ?>

Reports

    First Name
    Last Name
    Email
    Distance

   <?php
    include('dbadmin.php');
    $select = "SELECT `fname`, `lname`, `email`, `distance` FROM runner ORDER BY `lname`";
    $result = mysql_query($select) or die ('Oops! '.mysql_error($connect));

    if(isset($_POST['submit_sort'])){
        $radio = $_POST['radiosort'];
        if($radio =='fname'){
          $select = "SELECT `fname`, `lname`, `email`, `distance` FROM runner ORDER BY `fname`";}
        else if($radio =='lname'){
        $select = "SELECT `fname`, `lname`, `email`, `distance` FROM runner ORDER BY `lname`";}
        else if($radio =='distance'){
          $select = "SELECT `fname`, `lname`, `email`, `distance` FROM runner ORDER BY `distance`";}
          $result = mysql_query($select) or die("Invalid query: ".mysql_error($connect));
        }
        if (mysql_num_rows($result) > 0) {
        while($row = mysql_fetch_assoc($result)) {
        echo '
'.$row['fname'].'	';
        echo ''.$row['lname'].'	';
        echo ''.$row['email'].'	';
        echo ''.$row['distance'].'
';
      }
      }
    ?>
    <form name="reports" id="reports" action="reports.php">
          Sort By:

          <input name="radiosort" type="radio" title="sort" id="lname" value="lname">
          Last Name

          <input name="radiosort" type="radio" title="sort" id="fname" value="fname">
          First Name

          <input name="radiosort" type="radio" title="sort" id="distance" value="distance">
          Distance

          <input type="submit" name="submit_sort" title="submit_sort" id="submit" value="Submit">
      </form>

A: $radio = $_POST['sort'];

should be
$radio = $_POST['submit_sort'];

A: In your code, you are checking for if(isset($_POST['submit_sort'])){, but
you did not specify the method attribute on the <form> element to be "POST".
Change this line:
<form name="reports" id="reports" action="reports.php">

to this:
<form name="reports" id="reports" action="reports.php" method="POST">


text:
Q: Appending external PHP file in jQuery I'm referring a question answered here.
Trying to append an external PHP file in to jQuery and tried load.
$(".chatbox").load("./one.php");

This gives me the output;

Your success message!

However the concern is this removes all HTML in the body and does not really 'append' the success message.
I tried the following instead.
$(".chatbox").append("./one.php");

which merely prints this!

./one.php

Am I missing something here?

A: The .load() load data from the server and place the returned HTML into the matched element. But you need to use $.ajax() or $.get() that get data and return it into callback function.
$.get("./one.php", function(data) {
   $(".chatbox").append(data);
});

A: in case if the page you're trying to load is failing due to some reason, you also need to handle the error block to inform you about the issue. Here is a more comprehensive way to do it. Here I have called a wiki page but you will know, all the php pages are in fact interpreted as valid html by PHP engine :)

$.ajaxPrefilter( function (options) {
  if (options.crossDomain && jQuery.support.cors) {
    var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
    options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
  }
});

$.ajax({
  type: "GET",
  url: "https://en.wikipedia.org/wiki/PHP",
  data: { },
  success: function(data){
    $('#demo').html(data);
  },
  error: function(XMLHttpRequest, textStatus, errorThrown) {
    $('#demo').html("Status: " + textStatus + "
Error: " + errorThrown);
  }
});


text:
Q: Rounding off with zero at the end We can round off a number say 23 or 74 to 20 and 70 by seeing the numbers lsb(right most bit) and 26 or 78 to 30 and 80.. My doubt is if this is possible in verilog codes... I want to know after converting into digital will this concept be possible..

A: In general to round off integers of base n you add n/2 and the divide by n (discarding the remainder) and then multiply by n. So your examples above:
(23+5)/10 * 10 = 20
(28+5)/10 * 10 = 30

Doing this with binary logic is a bit expensive since you need to divide and multiply. However, if you are working with base 2 numbers then those operations are free since it is just a bit shift.
For an example in binary, let's say you want to round 61 to the nearest multiple of 8, which would be 64. In binary, 61 is 6'b011101. Add 8/2 (6'b000100) to this and you get 6'b100001 which is 65. Now divide by 8 and multiply by 8. Since that is just shift right by 3 and then shift left by three we can simply zero out the 3 lsbs to get 6'b100000 which is 64.

A: In case you just want to make the LSB of any register zero you can always do something like this
reg [7:0] a;
reg [7:0] b = 23;

a = {b[7:1], 1'b0};


text:
Q: Compute the double sum with binomial coefficients: $ \sum_{1\leq i,j\leq n, \ i+j\leq n }\binom{i+j}{i} x^i y^j $ I'm trying to compute the double sum :

$$ \sum_{1\leq i, j\leq n, \ i+j\leq n }\binom{i+j}{i} x^i y^j $$

Here $(x,y) \in \mathbb{R}^2$, although it is not mentioned in the source.
Note: a typo in the original question was to evaluate the sum for $1 \le i \le j \le n$ instead of $1 \le i,j \le n$.
I've thought about Newton's theorem, about rewriting it as : $$ \sum_{j=1}^{n} \sum_{i=1, i+j \leq n}^j \begin{pmatrix}i+j\\ j \end{pmatrix} x^iy^j $$
But it was in vain, the derivatives either do not lead to something helpful.

A: I know how to answer the question if
the $i\leq j$ condition is dropped (perhaps that's a typo in your question ?). If
one denotes the sum by $S$, one can write
$$
\begin{array}{lcl}
S&=&\sum_{t=2}^{n} \sum_{1\leq i,j\leq n, i+j=t  }\binom{i+j}{i}x^iy^{j}=
\sum_{t=2}^{n} \sum_{i=1}^{t-1}\binom{t}{i}x^iy^{t-i} \\
&=&
\sum_{t=2}^{n} (x+y)^t-(x^t)-(y^t)=\frac{(x+y)^2-(x+y)^{n+1}}{1-(x+y)}-
\frac{x^2-x^{n+1}}{1-x}-\frac{y^2-y^{n+1}}{1-y}
\end{array}
$$
Hope this helps.


text:
Q: Generate highchart instance on floating div from mouseOver on axis label or from series point I've been looking for it on older forum posts or API but couldn't find any solution. I'm trying to show a new chart on mouseOver/click event from series point or axis labels, like a tooltip.
First I found some references to highslide, but I couldn't make it work on my project dependencies.
Than I tried using mouseOver from series points, but e listener don't return screenX or screenY, only click event listener does. So I found custom-events.js from black label, also no succes on mouseOver events. So I'm using click for now, now I'm also struggling to define diferent charts height. I'm setting it via chart.height but it seems to ignore it, I'm creating multiples charts on a page, calling the constructor from another js file.
Another idea was to plot a chart inside tooltip, but I couldn't find any demo or related topic.

A: Please take a look at this example which shows how to render the chart as the outstanding HTML element in the tooltip.
Demo: https://jsfiddle.net/BlackLabel/p0mb65ef/
  tooltip: {
    useHTML: true,
    pointFormatter: function() {
      var data = [this.x, this.y, this.z];
      setTimeout(function() {
        Highcharts.chart('chart', {
          title: {
            text: ''
          },
          legend: {
            enabled: false
          },
          credits: {
            enabled: false
          },
          series: [{
            animation: false,
            data: data
          }],
          yAxis: {
            title: ''
          },
          xAxis: {
            categories: ['x', 'y', 'z']
          }
        })
      }, 10);
      return '

';
    }
  }


text:
Q: throw an exception from org.apache.cxf.jaxrs.ext.RequestHandler handleRequest method I have this problem using cxf dispatching behavior.
I have developed an Interceptor that implements the org.apache.cxf.jaxrs.ext.RequestHandler interface.
In its "public Response handleRequest(Message m, ClassResourceInfo resourceClass)" method I throw an exception (e.g. a WebServiceException) or a Fault. I have not apparent problems but, on the client side, the client receives a different exception (a ServerWebApplicationException) with the error message empty.
Here the code:
Server side:
    public class RestInterceptor implements RequestHandler {
       ......
       @Override
       public Response handleRequest(Message m, ClassResourceInfo resourceClass){
          .....
          throw new WebServiceException("Failure in the dispatching ws invocation!");
          .....
       }
    }

ServerWebApplicationException received on client side:
Status : 500
Headers :
Content-Length : 0
Connection : close
Server : Jetty(7.x.y-SNAPSHOT)

cause=null
detailMessage=null
errorMessage=""
.....

I received the same exception also if I throw a Fault.
What is the problem? I have to use another exception? Why?
Thanks a lot,
Andrea

A: OK, I've found the solution.I've registered an ExceptionMapper on the dispatcher and use it to encapsulate the exception inside the Response sent to the client.
To do this the interceptor is registered as provider at the web service publication and it implements the "ExceptionMapper" interface. In its "toResponse" method it encapsulates the exception in the Response.
Look at code:
    public static<T extends Throwable>  Response convertFaultToResponse(T ex, Message inMessage) {
        ExceptionMapper<T>  mapper = ProviderFactory.getInstance(inMessage).createExceptionMapper(ex.getClass(), inMessage);
        if (mapper != null) {
            try {
                return mapper.toResponse(ex);
            } catch (Exception mapperEx) {
                mapperEx.printStackTrace();
                return Response.serverError().build();
            }
        }
        return null;
    }

    @Override
    public Response toResponse(Exception arg0) {
        ResponseBuilder builder = Response.status(Response.Status.INTERNAL_SERVER_ERROR).type("application/xml");
        String message = arg0.toString();
        return builder.entity(message).build();
    }

Andrea

A: Annotate your exception with @WebFault
example :
@WebFault(name = "oauthFault")
public class OAuthException extends RuntimeException {
  ...
}


text:
Q: Как сделать выбор нескольких файлов за раз для загрузки со смартфона через форму Сделал html форму с input multiple, на компе работает выбор нескольких файлов, а на андроиде только по 1 файлу.
Как сделать чтобы в 1 инпут можно было несколько файлов выбрать?
Вижу что не поддерживает андроид аттрибут multiple, как быть тогда, делать несколько полей?
http://caniuse.com/#feat=input-file-multiple

A: <input type="file" multiple> не поддерживается на Android-устройстве.
Имейте в виду, что  предназначен только для html5. Он просто вернется к одному файлу в старых браузерах.
Вы можете попробовать указать имя в виде массива: name = "file[]". Он не нужен по спецификации, но может помочь ...
Попробуйте также сделать считывание на консоли переменной «file []».
пример некого рабочего кода:
<form enctype='multipart/form-data' method='POST' action='submitForm.php'>
    <input type='file' name='files[]' ng-model='attachFiles' onchange='angular.element(this).scope().onFileSystemChange(this)' accept='image/*,video/*' multiple />
    <button type='submit'>Submit</button>
</form>


text:
Q: Name of $a*b=c$ and $b*a=-c$ $A_+=(A,+,0,-)$ is a noncommutative group where inverse elements are $-a$
$A_*=(A,*)$ is not associative and is not commutative
$\mathbf A=(A,+,*)$ is a structure where
1) if $a*b=c$ then $b*a=-c$ holds and
2) $(a*b)+a=b+(a*b)$

A-How is called the structure $\mathbf A$?
B-What is the name of 1) and 2) in abstract algebra (even not in the same structure)?
C-and what is this structure? It Has been already studied and does it have other intresting (or obvious) properties that I don't see?

Thanks in advance and I apologize for errors in my english.
Update
As Lord_Farin explained to me, $\mathbf A=(A,+,*)$ can't be a structure (closed) since the property 2) imply that $a*0$ and $0*a$ are assorbing elements of $(A,+)$ and that is impossible because $A_+$ is a non-trivial group (in the definition).
Anyways I notice that my questions B (about property 2) ) and C are still open in the case of a "generic" $A_+$ .

A: From 2) we have $(a*0)+a = 0+(a*0) = a*0 = (a*0)+0$ which contradicts the fact that $(A,+)$ is a group (which implies "left-multiplication" by $(a*0)$, i.e. $x \mapsto (a*0)+x$, is injective). Thus the structure $(A,+,*)$ cannot exist.


text:
Q: How would I create a table control similar to the one shown? I've got a table from an existing LabView VI (ewww!) that I need to replicate in C#.  The table is shown in the image below.  Each field will be populated with data returned by status queries to an external device, likely from within a dedicated status thread (when I implement it...).  Is there any control, or direction I should take when extending an existing control for the table-like display of my query results?  DataGridView seems like overkill for this, but the table layout container populated with TextBox controls seems inelegant.  I'd like some insight, if anyone can offer it.  Also, please feel free to shut me down if this has been asked already (though my search turned up nothing I could relate to...).  Thanks.

A: DataGridView is the only suitable control here.  Anything else either doesn't have enough grid editing capabilities (like ListView) or is fugly-slow like individual controls in a TLP.


text:
Q: How to find which amazon login matches a specific ec2 instance I have multiple amazon accounts.  I have an ec2 instance I've created and am able to RDP into it...
I logged into all of my amazon accounts (that i can remember) and all of them say "0 instances running"... which is bizarre.
How can I know for sure which aws login is for that specific instance?

A: As @datasage pointed out. It looks like the aws control panel only shows by region.
I had to go through each region to find it.
(menu in upper right corner)


text:
Q: Can Occlumency be used upon Dementors? Dementors suck feelings of happiness out of the person. And well all the memories are stored inside the brain. So what would have happened if we tried Occlumency whenever a dementor approached (only approached, as in the train incident in POA, or the Quidditch match, not moving in for a kiss)? If it worked, there  would be coldness and all, but it couldn't force dreadful memories into the mind or suck out happiness.
Will Occlumency work to repel the mental effects of a dementor?

A: Occlumency is generally intended to guard against Legilimency--the penetration of the mind by an outside source. The dementors are not performing Legilimency as such. They are not reading anyone's mind, trying to identify their emotions, or attempting to force a particular thought on them. Yes, they force people to relive their negative emotions, but this is a side effect of their overall desire to feed on positive emotion. The dementors want food, not a way inside someone else's mind, which is the goal of a Legilimens. A Patronus Charm succeeds by providing the dementors with something else to feed on.
If they dementors do not recognize human emotion in something, they know that it cannot offer them a food source, and so they will generally leave it alone. Sirius took advantage of this tendency by using his Animagus form in Azkaban. The only way Occlumency might succeed in warding off a dementor is if an Occlumens manages to block all his human emotions to the point that the dementor cannot sense any of them. But I am inclined to think that such a total block would be difficult, if not impossible. Patronus Charms are complicated enough, considering that Hogwarts does not teach them until students are at the N.E.W.T. level. And few students bother to become Anamagi, as the national register reflects: only the most advanced Hogwarts pupils seem to be offered this opportunity to learn how (i.e., Professor McGonagall). Occlumency is not taught at Hogwarts at all. For most wizards, Patronus Charms are the only familiar option.
So I would answer this question with a very qualified yes. If a given Occlumens can block his or her emotions to the point that his or her emotions are not recognizable as human, then Occlumency could work against dementors. Whether anyone, even Snape, is skilled enough to manage this feat is another matter. And again, Occlumency was invented as a counter to Legilimency, not as a protection against dementors. Bellatrix Lestrange was skilled enough at Occlumency to instruct Draco, but the books imply that she was affected by the Dementors in Azkaban, just like all the other prisoners. Although Occlumency might be able to ward off dementors in theory, as a practical matter, using it in this non-traditional way would require an impossibly high level of skill.


text:
Q: GWT listen to external custom Javascript event I'm working on a GWT application and I would like to make that app listen for external custom Javascript events. Those events would be triggered  from outside my module.
Basically, just like what you would do in a basic web app with some jQuery :
$('#foo').bind('customEvent', function() {
    ...
});
...
$('#foo').trigger('customEvent');

I tried to achieve this with GWTQuery by overriding the onAttach method in my Composite:
@Override
protected void onAttach() {
    super.onAttach();
    $("#mainView").bind("refreshSheet", new Function() {
        public boolean f(Event e) {
            refreshSheet();
            return true;
        }
    });
}

This is not working, the callback function is being called while I haven't triggered the event on the other side.
What would you suggest to achieve this goal ?

A: I had the same problem. In the solution below, I send the event from JS by calling a Java method (from my Javascript code) who generates a GWT event. So here is my suggestion:
in JS:
window.parent.sendEvent(evendID, eventBody)

(I had to call the window.parent as the GWT and the JS were in 2 separate frames)
but before I registred the method in GWT (see below) as explained in https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI#calling
in GWT:
package com.mypackage.client;
class myclass {
public static int generateEvent(int eventID, String eventBody) { ...... }

public static native void exportStaticMethod() /*-{
$wnd.sendEvent=
     $entry(@com.mypackage.client.myclass::generateEvent(ILjava/lang/String;));
}-*/;
}

where I is evendID (Integer in JNI) and Ljava/lang/String; is the eventBody string.
You have to call this method exportStaticMethod() from your onModuleLoad() method.
the generateEvent() method from myclass then generates a GWT custom event (as explain in the link from Abhijith). So I don't broadcast an event from JS to GWT through the JS stack this way, but I keep a clean architecture on the java/GWT side.
The main advantage I see is that it minimize the size of JS code, and is easy to update with any future bridge between GWT.event and JS events.
The main issue is that you must be able to have access to your JS code.


text:
Q: Errors building mysql2 gem on Mac Lion w/ rvm & ruby 1.9.3 In order to build ruby 1.9 on mac I had to install gcc 4.6.  Rails and a bunch of other gems built fine.  installing mysql or mysql2 is giving me all sorts of heartache.

rubygems> env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.

        /Users/ff/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing.  please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/ff/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
    --with-mysql-config

Gem files will remain installed in /Users/ff/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.11 for inspection.
Results logged to /Users/ff/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.11/ext/mysql2/gem_make.out

When I look at the mkmf.log file I see:

have_header: checking for mysql.h... -------------------- no

"/opt/local/bin/gcc-mp-4.6 -E -I/Users/ff/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/x86_64-darwin11.2.0 -I/Users/ff/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby/backward -I/Users/ff/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1 -I. -I/Users/ff/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I/usr/local/mysql/include -Os -arch i386 -fno-common  -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fno-common -pipe  conftest.c -o conftest.i"
gcc-mp-4.6: error: i386: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <mysql.h>
/* end */

So basically it seems that the -arch flag is not supported.  Anyone have an idea as to where these compile options are provided so I can remove this flag?  Or any other solution.... Thanks

A: Install MySQL separate from when installing rails. I tried installing it with rvm and it did not work.
Check out this article it should help you with installing mysql
If that fails here's another solution. Both have worked for me.

A: well, since you're living on the edge... -arch flags should be -m64 instead now... so you'll need to probably update your mysql_config to reflect that change e.g. in mine it's on line 128 replace:
-arch x86_64

with
-m64

then,
gem install mysql2

A: I tried all the solutions posted here, but was not lucky. I reinstalled mysql through homebrew a couple of times and still no luck. Then I came across a blog post with a solution.
I edited the mysql_config file in /usr/local/Cellar/mysql/5.6.12/bin and removed the W-compiler options -Wno-null-conversion and -Wno-unused-private-field for cflags and cxxflags.
This solved the problem with gem install mysql2.
Reference: randomactsofsentience.com/2013/05/gem-install-mysql2-missing-mysqlh-on-os

A: Failed to build gem native extension is not about gem dependencies but its rather about the application not being installed completely.
I faced the same problem, this should do the trick:
sudo apt-get install libmysql-ruby libmysqlclient-dev


text: Q: Ubuntu is not able to detect the cagrger Whenever I turn my laptop on with charging on, the charging does not show. No issue in charger. Replugging the charger is also not working. But when I am changing the charger's position (opposite plug), the charging restarts.


text:
Q: Use same variable name in htaccess for rewriting PHP page I have two pages index.php and page_detail.php, I'm using the following code in .htaccess for rewriting:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$ /page_detail.php?cat=$1&title=$2&pageId=$3&id=$4 [L]
RewriteBase /
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /page_detail.php?countryname=$1&country=$2&id=$3 [L]

URL rewriting is working good when I am on the index.php page. When as I move to detail_page.php then every href shows after page URL the following:
First page URL (good working): example.com/country/586/3.html
Trouble in: example.com/country/586/country/586/3.html
HTML link code:
<a href="<?=country_name($con,$row['country'])?>/<?=$row['country']?>/<?=$row['id']?>.html">

A: You either need to make the links look like this:
<a href="/<?=country_name($con,$row['country'])?>/<?=$row['country']?>/<?=$row['id']?>.html">

(note the leading /)
or add this to the header of your pages:
<base href="/" />


text:
Q: Как убрать заголовки при скачивании файла После выполнение данного кода
WebClient client = new WebClient();
 File.WriteAllBytes("logo1.png",Convert.FromBase64String(client.DownloadString(URL")));

я получаю base64 строку,но она неверна потому,что еще и приписывается
<head>
<meta charset="utf-8">
</head>

Подскажите как убрать после получения base64

A: Замените DownloadString на DownloadFile - заголовки не будут скачиваться => проблема "как убрать из текста заголовок" пропадёт сама собой не появившись.
var url = "https://i.stack.imgur.com/zVeie.jpg?s=328&g=1";
var filename = @"c:\downloads\logo1.png";
WebClient client = new WebClient();
client.DownloadFile(url, filename);


text:
Q: Question on Tensorflow Dense Layer Implementation From https://www.tensorflow.org/api_docs/python/tf/keras/layers/Dense (*Note Section)
For an input of (batch_size, d0, d1) why is the same (d1, units) kernel used for every sub-tensor (1, 1, d1)?
Additionally, why is the higher dimension dense layer operation broken down to work on subsets of input nodes, instead of having a weight from all d0xd1 inputs to an output node?
I apologize if I am missing something obvious and thank you for any help!

A: So I dug through the source code and found Tensorflow made a change in how they implement the dense operation and I asked my boss at uni why they made this change.
In tf1 for input > rank 2 they flattened the input and just did a regular 1-D dense operation.
https://github.com/tensorflow/tensorflow/blob/r1.15/tensorflow/python/keras/layers/core.py
In tf2 for input > rank 2 they use the tensordot operation. This uses a smaller kernel and shares it for all input sub-tensors. This has the effect of sharing the learned channel-wise information.
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/layers/ops/core.py


text:
Q: What better way is to PHP template What better way is to PHP template ? ( fast, cacheable (Gzip, Php Cache) , optimized(server) )
Method One :

<?PHP echo $row['data']; ?>

<?PHP echo $row['data1']; ?>

<?PHP echo $row['data2']; ?>

<?PHP echo $row['data3']; ?>

.....

Mehod Two : using any template systems ( smarty, raintpl, DWoo , ... ).
Considering that the separation of content from design is essential in large projects but Which way is better otherwise?
in found this site for php template benchmark: www.phpcomparison.net (site has changed and does not offer benchmarks anymore)
Result : php faster than all templates systems. It's True ?
I've been in some doubt.

A: PHP is a templating language, the others you mention (and I would add Twig to that least) are templating systems or frameworks. There is a difference; PHP itself just gives you the tools to build a templating system. It tells you nothing about how you might deal with issues like output-escaping, internationalisation etc. Of course there is plenty of information about how to deal with these on the web so if you know what the issues are you can solve them. Most templating systems have dealt with some or all of these issues already and will have documented functions to deal with them. This is why PHP runs much faster, as it is not "encumbered" with the extra functionality. Personally, if you know what you are doing, you can probably use PHP directly to create your templates. Otherwise, I would suggest you use on of the systems out there already. I'm not a huge fan of Smarty as it reinvents the wheel with its own syntax. From what I've seen of Twig, it's much better (and anecdotally faster) as the templates are native PHP.

A: Please have a look at the source of phpcomparison.com - you'll see that you can't take those tests seriously. You can already see this when looking at the results for dwoo - 50 runs are faster than 20?! Obviously flawed!
Maybe my answer to Pure PHP/HTML views VS template engines views helps.

A: There are lots of template systems out there, but I just use simple includes.

<?php include('path/to/template/file.php'); ?>

In this way, you can put whatever type of content you want in your template file. For example, in path/to/template/file.php, you can put
<?php echo $row['data']; ?>

A: The PHP itself is a template engine besides it's other capabilities. I think PHP is pure and easy to use enough to use it as template engine, no need 3rd party engines.
And yes pure PHP is much more faster.


text:
Q: Drupal 7 how can I print a current date in page.tpl.php Please Help, I want to print a current date on the top of my web page, I am using drupal 7.please let me know how can I print a current date in my page.tpl.php file

A: Just add this line wherever you want to in page.tpl.php:
echo date('d/m/Y');

That will put the date out in dd/mm/yyyy format, see PHP's Date function for a list of all the possible formats.

A: hai also use time() function for getting the time stamp
and format the date with drupal function format_date();
format date

A: There is also the constant REQUEST_TIME - https://api.drupal.org/api/drupal/includes!bootstrap.inc/constant/REQUEST_TIME/7


text:
Q: Anchor element always coming blue, How to change it to red in aspx page Anchor element always coming blue, How to change it to red in aspx page.
I am trying this :

  Internal Job Openings

But NO LUCK, it is always showing BLUE

A: Your style needs to be on the anchor tag not the li tag.

  Internal Job Openings

Also you should not have "color" in all caps. Everything in styles should be lowercase.

A: try to style the anchor states:
a:link - a normal, unvisited link
a:visited - a link the user has visited
a:hover - a link when the user mouses over it
a:active - a link the moment it is clicked
for example:
a:link {
    color: red;
}


text:
Q: How to simultaneously access all elements in an array of objects with changing values in Javascript? My program is constantly collecting data into an array of five objects with two values each: "label" which is a string and "confidence" which is a float:
[{"label": vocals, "confidence": 0.98373},{"label": snare, "confidence": 0.32738}...]

This is how teachable machine audio model stores the data.
I'm trying to change the height of 5 rectangles with the same label names according to the confidence value of each item in the array but I'm having a hard time trying to read and display this data simultaneously, as the order of each label and it's confidence value will change every second or so.
The program is supposed to be an audio visualizer that is supposed to display the loudness(confidence value) of each instrument at the same time.
I can only think of iterative implementations that would only display one value at a time.

A: *

*Map the data into an object

const values = [{
  "label": 'vocals',
  "confidence": 0.98373
}, {
  "label": 'snare',
  "confidence": 0.32738
}]

const object = values.reduce((obj, val) => ({ ...obj,
  [val.label]: val.confidence
}), {})

console.log(object)

*Sort values by label and use indexes for values.

const values = [{
  "label": 'vocals',
  "confidence": 0.98373
}, {
  "label": 'snare',
  "confidence": 0.32738
}].sort((a, b) => a.label.localeCompare(b.label))

console.log(values)

*Use .find to find the value you are interested in

const values = [{"label": 'vocals', "confidence": 0.98373},{"label": 'snare', "confidence": 0.32738}]

const vocals = values.find(val => val.label === 'vocals')

console.log(vocals)


text:
Q: Better podcast transcriptions How can we encourage more people to transcribe portions of the Stack Overflow Podcasts?  Would a reCAPTCHA-like system be appropriate for this?  Better yet, how can we encourage people to create a computer program that is capable of generating the transcriptions with no manual human effort?  This seems like it could be a fun and challenging project.

A: We've tried the automated transcriptions before (machine voice detection) and they are horrible.
Require so much editing to be readable that you're better off transcribing manually.

A: Having taken a shot at transcribing, I would say that something that could aid my efforts would encourage me to do it more.  What ends up happening is that I hear a segment I think is really good, and I want to transcribe it (because with other material I appreciate being able to locate it later, maybe quote it and send it to someone, etc).  So I take 5 or 10 minutes to do the segment, and suddenly it just took 30 minutes!  Why? It's tedious.
What would be nice is some kind of tool that is like the transcription machines from days gone by.  I never used one but I know that the right features would make this faster.  Some ideas:

*

*Have the text entry and the controls in the same place

*Make it controllable from the keyboard--mousing is time consuming

*Easy way to back up some number of seconds

*Set a bookmark during playing that I can return to

*Set marks around a snippet so it can play repeatedly

*Adjust the play speed; maybe pitch correct it.

A: Jeff/Joel,
Would you be interested in a community podcast transcription service that utilizes the power of your site's tribe/users/community. It would all be driven by a ridiculously simple-to-use UI and API. The goal would be for your users to stay on your site, but hit a little button/link on the side of the page that says something along the lines of "Contribute 10 seconds of your time to help transcribe Podcast #65" (or whatever you want it to say... it's an API, you have the power!!)

Feature Notes:
It would allow a user to transcribe a 1 to 3 second clip. In the end, it would auto-stitch each "transcriptlet" into the final transcript, then post it. The main goal is an unbeleiveabley simple to use interface that takes the user 15 seconds or less to transcribe a 1 to 3 second clip. If 1,800 (of your 1 mil users) transcribe 2 seconds then your 60 minute podcast is transcribed (potentially in an insanely short period of time).
There will of course be options: like must have 3 (or X) copies/matches of each "transcriptlet" ~roughly match before it is "auto-approved/stitched". And many more, I am not going to get into all of the details here...
Other features: Point-base sub-system, achievement sub-system, ...

Questions for Joel and Jeff:
Anyways, what I wanted to know is, would you guys (Jeff and Joel) be interested in a using a service like this. I need a good beta site to try this out on. You could empower your community and get your podcasts transcribed. And be part of building a (another) great service.
And of course, I want to know: Do you think other sites with podcasts and a community would pay for something like this. I am talking like $5, $10 or $15/hr for transcription (rather than the $200+/hr that some people charge). There will also be a free service (X minutes/month or whatever) too, but the premium service would cost a very small amount. Or possibly it will be ad supported. But I know I just listened to you guys talk about the dissapointment with Google AdSense... Anyways, it's starting out as free for sure (during beta). And most likely free for you guys always :) Because I want StackOverFlow to be transcribed (I will pay the $5 per podcast :)

What inspired this project:

*

*The end of every single one of your podcasts (wiki comments)

*The fact that I would like to search and replay segments of the podcast for someone, but can never remember which is which, due to the lack of podcast transcribing

*I like your idea of the wiki, but that requires people to listen to the mp3 with a player, keep track of timing and stop/replay/pause the track, and update the wiki properly. It is a bit time consuming.

*After listening to "Tribes" by Seth Godin, it really made me think that this would work no problem with a community like yours.

*It would be a fun little app/service/site to write with my development team.

*We would be solving a problem that exists for a lot of podcast/communities. (Hanselminutes, twit, ...) Anyone with a Tribe really.

*And yes, money. Money is good side-effect of providing an elegant solution to a problem.

Current Project Status:
I had my first meeting with the development team, we have initial database design, very rough Balsamiq Mockups, FogBugz Wiki/Tasks created and a bunch of other planning done. They asked me:

"Well how do you know Jeff and Joel
  would even want to use something like
  this if we spent the 6 to 8 weeks (ok
  4-6 months) to developed it?"

I said, I don't know, but I have very strong feelings that they would. So that is why I am asking. It would be GREAT if one of you or both of you could respond.
We can make this happen. I am ready to pull the trigger, we might do it anyways. But if I saw a reply from you guys that said "Heck yes we would use that". Then it would be a no-brainer for us to make it happen. If you said "You are a frikin' IDIOT"", then maybe I might back-off and think of another idea

Quick background:
I own/run a small development company in Grand Rapids, MI. We have run and successfully delivered many software products from the very big to the very small. We can rock it out.

Thanks!
Thanks for your time. I apologize for the very long message and the loose grammar. It happens when I get excited about something.

A: Revisit the idea of making teh Googles work in transcripting these with their rolling out feature of auto-captioning on Youtube.
You'd have to clean it up some later with all those dings and dongs that distract them so from forming proper words in the stream of things.
Bulk of the work would be done for you.
The hard part is actually listening to them talk for clarifications in the transcript.

A: I've tried some community transcriptions for another podcast, and some thoughts:

*

*It takes forever.  My time estimate is 10-15 minutes for a 3 minute chunk.

*It's not that fun, so people tend to drift away.

*If you can't hear the whole sentence, it's very hard to transcribe it.  Context is very important to make sense of garbled words or overtalking.  This is a barrier to "chunking" it like ReCaptcha does.

*Attribution is another thing that could be difficult if you split up the audio.  Although it might not be a problem with two speakers.

A: It seems to me that the earlier shows were fairly well-transcribed, but after Stack Overflow went public transcription rates went down.  If that's an accurate assessment, it might have something to do with the fact that Jeff was allowing people who helped write down what was said in the podcasts to get into the SO beta.
Why not reward people who transcribe shows with reputation?


text:
Q: mysql show databases; doesnt work it gives -> again and again after script I have a script that I run to create my database.
I run this with
source <file>

when it finishes it shows
mysql>

I then type
show databases;

and it goes to next line and puts
->

as if I have missed the ;, but I haven't.
it does the same for
show tables;

I dont know what i have missed.
the script is
DROP DATABASE IF EXISTS app;
CREATE DATABASE app;
USE app;

CREATE TABLE `user`
(
    id INT PRIMARY KEY AUTO_INCREMENT,
    forename VARCHAR(20) NOT NULL,
    surname VARCHAR(20) NOT NULL,
    `status` VARCHAR(15),
    deleted BOOLEAN
);

CREATE TABLE login
(
    id INT PRIMARY KEY AUTO_INCREMENT,
    user_id INT,
    email VARCHAR(50) NOT NULL UNIQUE,
    `password` VARCHAR(65),
    FOREIGN KEY(user_id) REFERENCES `user`(id)
);

DELIMITER //
CREATE PROCEDURE sp_Create_User
(
    in_forename VARCHAR(20),
    in_surname VARCHAR(20),
    in_status VARCHAR(15),
    in_deleted BOOLEAN,
    in_email VARCHAR(50),
    in_password VARCHAR(65)
)
BEGIN
DECLARE found_user_id INT;
INSERT INTO `user`
(
    forename,
    surname,
    `status`,
    deleted
)
VALUES
(
    in_forename,
    in_surname,
    in_status,
    in_deleted
);
SET found_user_id =
(
    SELECT id
    FROM app.`user`
    WHERE
    forename = in_forename
    AND
    surname = in_surname
    AND
    id
    NOT IN
    (
        SELECT user_id FROM app.login
    )
);
INSERT INTO app.login
(
    user_id,
    email,
    `password`
)
VALUES
(
    found_user_id,
    in_email,
    in_password
);
END //

CREATE PROCEDURE sp_Get_All_Users()
BEGIN
SELECT u.forename, u.surname, u.`status`, u.deleted, l.user_id, l.email, l.password
FROM `user` u
INNER JOIN login l
ON
u.id = l.user_id;
END //

CREATE PROCEDURE sp_Update_User_Status(in_id INT, in_status VARCHAR(15))
BEGIN
UPDATE app.`user`
SET `status` = in_status
WHERE id = in_id;
END //

CREATE PROCEDURE sp_Delete_User(in_id INT, in_deleted BOOLEAN)
BEGIN
UPDATE app.`user`
SET deleted = in_deleted
WHERE id = in_id;
END //

CREATE PROCEDURE sp_Get_Login(in_email VARCHAR(50), in_password VARCHAR(65))
BEGIN
SELECT l.user_id, l.email, l.`password`, u.deleted, u.status
FROM login l
INNER JOIN `user` u
ON l.user_id = u.id
WHERE l.email = in_email AND l.`password` = in_password;
END //

CREATE PROCEDURE sp_Update_Password(in_user_id INT, in_old_password VARCHAR(65), in_new_password VARCHAR(65))
BEGIN
UPDATE app.login
SET `password` = in_new_password
WHERE user_id = in_user_id AND `password` = in_old_password;
END //

A: It's because you have
DELIMITER //

in your query.
Either add this in the script or run it manually after the script finishes running:
DELIMITER ;


text:
Q: Compileing my blank console application with a setup Microsoft visual studio 2015 so i have a console application that stitches a pdf into one big long tif however when i go to make a setup project it all seems to work fine until i move the installer to another commutator and run it it installs fine however whenever i run the application it gives an error
The program can't start because ucrtbassed.dll is missing from your computer

i have seen videos where when they add the primary output some msm file is added depending on the library's used in he code however no such file appears when i add my output in the application folder section in the main setup file
edit::
i feel that i cant explain this correctly and thus will upload it as and image this is the main application file inside of the setup project it looks like its only copying  the source code when it should also include some dlls
application folder on the setup wizard

A: You are shipping a debug version of your app, and it is failing because it is asking for the debug version of the Universal CRT (that's why there is a "d" on the end, and it's actually ucrtbased.dll). In general the debug versions of these are available for debugging on developer's machines, not for client machines. So build a release version of your app and see what it does. If it fails looking for ucrtbase.dll, then clients can use this to install it:
https://www.microsoft.com/en-us/download/details.aspx?id=48234


text:
Q: Что бы блоки закрывали один одного, снизу вверх при сужении окна браузера Есть вот такая разметка:

* {
  margin: 0;
  padding: 0;
  font-family: Tahoma;
}

html,
body,
.wrapper {
  height: 100%;
}

.wrapper {
  position: relative;
  width: 960px;
  margin: 0 auto 0 auto;
}

header {
  width: 100%;
  height: 45px;
  text-align: center;
  background: yellow;
}

.footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 207px;
  background: green;
}

.centered-middle {
  width: 100%;
  height: 100%;
}

.wrap-border-center {
  width: 100%;
  height: 200px;
}

.center {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 280px);
  padding-bottom: 230px;
  background: red;
}

Заголовок

Когда я потихоньку суживаю окно браузера, то расстояние красного блока между футером и шапкой уменьшается. Потом красный блок упирается в шапку (желтый блок), футер (зеленый блок) начинает налазить сверху красного до тех пор пока не закроет его полностью. Красный блок уже только в конце начинает закрывать желтый блок.
Мне надо, что бы при сужении окна браузера красный начинал закрывать желтый блок еще до того, как его закроет зеленый. Т.е., что бы при очень узком окне браузера на экране отображался красный блок и зеленый, т.к. желтый будет закрыт красным.

A: Используйте медиа-запросы. Например, при высоте меньше 500px, закроем верхний элемент:
@media (max-height: 500px) {
    .center {
        height: calc(100% - 230px);
    }
}


text:
Q: I want to get Origin from my input with the id "input_search". How can i do it it? So i tried to solve this problem by doing
document.getElementbyId('seach_input') but it doesnt work
here my code:

var autocomplete = new google.maps.places.Autocomplete(document.getElementById("search_input"),
{
    componentRestrictions: {'country' : ['AT']},
    fields: ['geometry', 'name'],
    types: ['establishment', 'geocode']
})

var directionsService = new google.maps.DirectionsService();

var request = {
  origin      : 'Imst, Österreich', // a city, full address, landmark etc
  destination : 'Innsbruck, Österreich',
  travelMode  : google.maps.DirectionsTravelMode.DRIVING
};

function getRoute(){
    directionsService.route(request, function(response, status) {
  if ( status == google.maps.DirectionsStatus.OK ) {

document.getElementById('preis').value = Math.round(response.routes[0].legs[0].distance.value / 1000 * 2) // the distance in metres
  }
  else {
    // oops, there's no route between these two locations
    // every time this happens, a kitten dies
    // so please, ensure your address is formatted properly
  }
});

}
<input type="text" required="" class="inputText" id="search_input" name="o" placeholder="Abholort">

<input type="text" name="preis" readonly="" class="inputText" id="preis" placeholder="preis">

        <button id="preisA" onclick="getRoute()" class="toggle-btn">Preis ausrechnen!</button>

i want in var request the origin text to be de value of the input text with the id "search_input" how can i do it?