In Windows File Explorer, you can highlight several files and then click the "Copy path" button from the menu. Show below is an example. I'd then like to process these files on the command line, preferably in a PowerShell terminal. I've tried enclosing them in more quotes, single quotes, and backticks, to no avail. Here's an example of the files copied to the clipboard:  "C:\Users\me\100_0909.jpg" "C:\Users\me\100_0521.jpg" "C:\Users\me\100_0519.jpg"  I'd like to be able to take the files above and include them in a command like:  magick "C:\Users\me\100_0909.jpg" "C:\Users\me\100_0521.jpg" "C:\Users\me\100_0519.jpg" +append new.jpg  command-line powershell


How do you log out of Stack Overflow? There isn't any logout button.

Since the new top bar has been rolled out - a number of different people, established and new users alike, have asked questions on where a specific link has disappeared to with the new top bar design. Where has the link to <X> gone?


Responding to mark as duplciate: See below. This is not the same question as the one I am saying did not have a working answer.  This question was asked , but the answer didn't work for either me or another person, so I figured I'd ask it again in case anyone has a solution.  I'd like to get a recordId from the URL on a standard record detail page in a community. As best I can tell from documentation, what I have should be correct:  .js file:  import { LightningElement, track, api } from 'lwc'; ....  @api recordId;   .xml file:  <targets>     <target>lightningCommunity__Default</target>     <target>lightningCommunity__Page</target>     <target>lightning__RecordPage</target> </targets> <targetConfigs>     <targetConfig targets="lightningCommunity__Default">         <property name="recordId" type="String label="Record Id"         description="Automatically bind the page's record id to the component variable"         default="{!recordId}"/>     </targetConfig> </targetConfigs>   Whenever recordId is referenced it throws a fatal error that the variable is undefined. Any guesses as to how to fix this?

I'm trying to make a component in my community be able to pull in the record Id.  I followed the information in this question:   And this documentation:   My config file looks like this:  <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">     <apiVersion>45.0</apiVersion>     <isExposed>true</isExposed>     <masterLabel>ContractorSearch</masterLabel>     <description>Searches for contractors for a given set of criteria</description>     <targets>         <target>lightning__RecordPage</target>         <target>lightningCommunity__Page</target>         <target>lightningCommunity__Default</target>     </targets>     <targetConfigs>         <targetConfig targets="lightning__RecordPage">             <objects>                 <object>Requisition__c</object>             </objects>         </targetConfig>         <targetConfig targets="lightningCommunity__Default">             <property name="recordId" default="{!recordId}" type="String"                  label="Record ID" description="Should not be changed from default value."/>         </targetConfig>     </targetConfigs> </LightningComponentBundle>   Any ideas?


I have watched many videos, but all seem to not have the issue I am having. I try to install Ubuntu for Virtual Box but every time it is requiring me to burn Ubuntu onto a disc, is there a way so that it is not necessary to burn it onto a physical disc? They call it an ISO image. Thanks.

I would like to know if anyone can help me with installing Ubuntu on VirtualBox


I'm comfortable with the idea that a vector space $V$ and its double-dual $V^{**}$ are naturally isomorphic, independent of bases: $$ \Phi:V \to V^{**}, \quad v \mapsto \hat{v} $$ $$ \quad \big( \Phi(v) \big)(f) = \hat{v}\,(f) = f(v) $$ $$ \forall f\in V^*, \forall v\in V $$  It is unclear to me, however, why $V$ and $V^*$ are not naturally isomorphic. It's clear that they can be made "unnaturally" isomorphic (if you will) by choosing a particular set of bases and cooking up the trivial isomorphism between these two sets. What is less clear is why there cannot be a natural isomorphism between them.  Is this some kind of category theoretic result? It seems proving that no natural isomorphism could ever exist is a much taller order than showing one particular isomorphism does exist. Any thoughts?

I've read in several places that one motivation for category theory was to be able to give precise meaning to statements like, "finite dimensional vector spaces are canonically isomorphic to their double duals; they are isomorphic to their duals as well, but not canonically."  I've finally sat down to work through this, and -  Okay, yes, it is easy to see that the "canonical isomorphism" from $V$ to $V^{**}$ is a functor that has a natural isomorphism (in the sense of category theory) to the identity functor.  Also, I see that there is no way that the functor $V\mapsto V^*$ could have a natural isomorphism to the identity functor, because it is contravariant whereas the identity functor is covariant. My question amounts to:     Is contravariance the whole problem?   To elaborate:   I was initially disappointed by the realization that the definition of natural isomorphism doesn't apply to a pair of functors one of which is covariant and the other contravariant, because I was hoping that the lack of a canonical isomorphism $V\rightarrow V^*$ would feel more like a theorem as opposed to an artifact of the inapplicability of a definition.  Then I tried to create a definition of a natural transformation from a covariant functor $F:\mathscr{A}\rightarrow\mathscr{B}$ to a contravariant functor $G:\mathscr{A}\rightarrow\mathscr{B}$. It seems to me that this definition should be that all objects $A\in\mathscr{A}$ get a morphism $m_A:F(A)\rightarrow G(A)$ such that for all morphisms $f:A\rightarrow A'$ of $\mathscr{A}$, the following diagram (in $\mathscr{B}$) commutes:  $$\require{AMScd}\begin{CD} F(A) @>m_A>> G(A)\\ @VF(f)VV @AAG(f)A\\ F(A') @>>m_{A'}> G(A') \end{CD}$$  This is much more stringent a demand on the $m_A$ than the typical definition of a natural transformation.  Indeed, it is asking that $m_A=G(f)\circ m_{A'}\circ F(f)$, regardless of how $f$ or $A'$ may vary. Taking $\mathscr{A}=\mathscr{B}=\text{f.d.Vec}_k$, $F$ the identity functor and $G$ the dualizing functor, it is clear that this definition can never be satisfied unless $m_V$ is the zero map for all $V\in\text{f.d.Vec}_k$ (because take $f$ to be the zero map). In particular, it cannot be satisfied if $m_V$ is required to be an isomorphism.     Is this the right way to understand (categorically) why there is no natural isomorphism $V\rightarrow V^*$?   As an aside, are there any interesting cases of some kind of analog (the above definition or another) of natural transformations from covariant to contravariant functors?  Note: I have read a number of math.SE answers regarding why $V^*$ is not naturally isomorphic to $V$. None that I have found are addressed to what I'm asking here, which is about how categories make the question and answer precise. ( was closest.) Hence my question here.


As the title, how to install ubuntu previously copied in windows7 by a usb booter. Thanks.

I would like to see a full how-to guide on how to install Ubuntu.


I'm trying to put a small box of text overtop of an image, with a header and paragraph following the image. Right now the floating box is disrupting the header, because the header is supposed to be centered but is getting pushed to the left.  Is this the best way to have a piece of text floating over an image?     .cell {   margin-top: 8px;   vertical-align: middle; }  .galleryPic {   width: 80%;   max-width: 388px;   height: 100%;   max-height: 220px; }  .imgDate {   top: -8vw;   right: 12vw;   color: white;   background-color: red;   width: 20vw;   position: relative;   z-index: 99;   text-transform: uppercase;   margin: 15px;   float: right;   padding: 1vw 2vw; }  .cell h3 {   position: relative;   text-align: center; }  .cell p {   position: relative; }

Jan 9, 2019

Header

Paragraph

Given the following HTML:

     Copyright Foo web designs

    I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning?


I'm developing a Delphi XE7 multi-platform application and want to use some hotkeys / shortcuts.  TActionList, TMainMenu and TMenuBar all have properties to assign ShortCuts.  I am using an shortcut to add a new TTabItem on a TTabControl. That ShortCut is Ctrl + T.  So if the user presses Ctrl + T a new tab is added on said TTabControl - working correctly.  However if the user keeps holding down those 2 keys multiple tabs are created as well.  The shortcut event is triggered as long as the user keeps holding down those keys.  Adding a new tab is only an example. I am using multiple shortcuts that I only want to trigger once.  Is there any way to only trigger a shortcut event once?  I tried timers / waiting a specific amount of time. But that causes problems if the user wants to quickly perform 2 hotkeys.  Thanks for reading and I appreciate all help.

I'm using a Delphi TActionList, with Shortcut Keys for some actions.  I want to prevent certain actions from being triggered multiple times by keyboard auto-repeat, but I do not want to affect auto-repeat operation globally. What's the best way of doing this?  Clarification: I still need to handle multiple fast keypresses - it's only the keypresses generated by auto-repeat that I want to ignore.


On the favorites tab of the , there is a 'rejoin all' button that I use frequently. There are a number of rooms I once favorited that have since been deleted and 'rejoin all' puts me in those too.  I'd like to 'unfavorite' those deleted rooms, but I can't work out how (short of undeleting them first). The star I'd usually click on is absent:   Is there some easy way to do this I'm missing or should I re-tag this ?

Several of chatrooms I have favorited have been . They still remain among my favorite rooms (which is good; but I think I should have a possibility to remove them if I decide to do so). Here is a screenshot:  In this screenshot the room called Testing feeds have been frozen and it still has a star which, when I hover above it, shows a tooltip Toggle as a favorite room. But there are also two rooms that have been deleted, where this star is not shown. And I have not found any other way how to remove them from my favorites. (The fourth room in this screenshot is still alive.) So my question is:   Is there any way how to remove a deleted chatroom from your favorites?    P.S. I was not sure whether to tag this post as  or ; but I thought that my first assumption should be that I simply didn't find way to do this rather than assume that the software does not allow this.


I'm involved in a project using GDAL via python.  We need to be able to calculate if, standing at point A it is possible to see point B, given a DEM. To clarify we do not need a viewshed algoritm, we would only like to know if there is a straight unbroken line from A to B.   Are there any well known algorithms for line-of-sight calculations? Is there a GDAL module or python script (using GDAL) that can do LOS calculation?

I am looking to perform a simple (one observer location) viewshed analysis on a standard DEM using GDAL (either python or .NET bindings).  I have searched, but haven't found any readily available implementation.  Can anyone point me in the right direction?


I've been looking for a comparator IC for a circuit I'm trying to build and I'm a little confused with what I've found. I've looked at some parts labeled as comparators but it looks like the parts are just Op-Amps with different ratings. I'm aware that comaprators can be built using Op-Amps, however, I assumed that any extra design that was needed, such as preventing hysterisis in the circuit, would be built into the IC. From what I've seen from the data sheets, however, it looks like they're just plain old op amps. So my question is, are comparator ICs just Op-Amps, or do they have the extra circuitry I'm thinking of? In other words, will I be able to just plug in the two voltages I want to compare or will I have to add some parts around the IC first? It might seem like a silly question but I'm new to PCB design and I wanted to make absolutely sure before I purchased my part. For reference, I've looked at TLV1702-Q1 and LMV7275-Q1 among other parts on TI's website, both of which came up when I searched for comparators.

What is the difference between a differential op amp and a comparator? I know a comparator can only give me two values (the supply values).  The differential op amp amplifies the difference between the inputs...but should a comparator not do the same then? What is the specific difference?


Here i have two questions regarding javascript functions   When to use function declaration and when to use function expression  This is an function expression   var run = function (){  // code stuff  }     This is an function declaration   function walk(){ // code stuff }   What do we call functions written inside below object(human) is it declaration or expression?   var human = {    think : function(){         }   roll : function(){       }   }

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


I know this is extremely basic, but I am using Ubuntu Linux and I have just typed in      sudo su   I entered my password and performed the actions that I had to get done. Now how do I stop being root and go back to being a normal user? I'm afraid I'll mess something up like rm -rf /.

I'm using sudo su to start mysql and do some homework with it.  When I finish with mysql (or any other command), then I'm still in sudo.   How do I "log out", so my prompt changes back from # to $?


I'm using Windows 10 64-bit. I have the latest Chrome version installed (57.0.2987.110 at the time of writing this post).  When I type chrome:pluginsin the address bar, I get an ERR_INVALID_URL error, meaning that Chrome cannot reach the requested site.  Why is this happening? What can I do to open Plugins in Chrome?

In the past, Google Chrome allowed toggling of plugins (like enabling/disabling Flash) from the chrome://plugins URL. This page no longer exists (as of Chrome 57.0.2987.98).   What is the way to access Chrome plugins from this point onwards?


For $n, r \in \mathbb{N}$,  $(X_1, ...,X_r)$ is an ordered partition of $[n]$ in $r$ non-empty sets, if $X_1,..., X_r$ are disjoint and non-empty subsets  of $[n]$ for which it holds that $X_1 \cup  ... \cup X_r = [n]$. How can one prove that $$S_{n,r} = \frac{1}{r!} \sum_{k=0}^r (-1)^{r-k} \binom{r}{k} k^n$$ In another  here, I found this  A function $f:X \to Y$ is called surjective when each of its preimages isn't empty. They form a partition of $Y$ into $k=|X|$ "blocks". On the other hand each partition from $Y$ into $k$ "blocks" lead to $n!$ surjective functions from $X$ to $Y$. Let denote $S_{n,k}$ they number of these partitions. They are basically the Stirling numbers of the second kind. You can calculate the Stirling numbers by the following recursion: $S_{n,k} = S_{n-1,k-1}+ k S_{n-1,k}$. This can be seen in the following way: The set of all partitions of the Set $Y:=[n]$ with $[n]=\{1,2,3,...,n\}$ decay in two disjoint subsets.  all partitions with $n \in Y$ is an own "block" of the partition all partitions with $n \in Y$ isn't an own "block" of the partition  ad 1) you can remove the the "block" {n} and this leads to a partition of $[n-1]$ into $k-1$ blocks and that is given by $S_{n-1,k-1}$. ad 2) you can remove $n$ from his corresponding "block" and this leads to a partition of $[n-1]$ into $k$ "blocks" but from each such partition you can make $k$ partitions of $[n]$ when u put the element $n$ back to one "block". Therefore we have $k S_{n-1,k}$. When you solve this recursion this leads to $S_{n,k} = \frac{1}{k!} \sum_{i=0}^{k} \binom{k}{i} (-1)^{k-i} i^n$  but I'm looking for an answer that uses the inclusion-exclusion principle.

I originally stumbled upon this beast whilst trying to find the number of surjective functions from $[n]=\{ 1,...,n\}$ to $[k]$. Here is my idea, denote this number $a(n,k)$ hence $a(n,k) =k^n- \#\{{f:[n]\to [k]\; | \; f \; isn't \; surjective}\}$. For every $1\leq m\leq k-1$ we have ${m\choose k}$ ways of choosing a set of $m$ elements from $[k]$ and $a(n,m)$ functions in $\{{f:[n]\to [k]\; | \; f \; isn't \; surjective}\}$ with $|im(f)|=m$ and so: $a(n,k+1)=(k+1)^n-\sum_{m=1}^k {k+1\choose m}a(n,m)$ From here I tried to use induction to get $a(n,k+1)$ to the form of a polynomial in $a(n,1)$ which is clearly $1$, but had no luck as to finding the polynomial itself. Solutions to the original problem or to the recurrence relation would by much appreciated. EDIT: from the inclusion-exclusion prinicple I got the follwing expression for $a(n,k)$ which is: $a(n,k) = \sum_{m=0}^k (-1)^m{k\choose m}(k-m)^n$ and plugging it into $a(n,k+1)=(k+1)^n-\sum_{m=1}^k {k+1\choose m}a(n,m)$ yeilds: $a(n,k+1)=(k+1)^n-\sum_{m=1}^k{\sum_{i=0}^m {k+1 \choose k+1-m,i,m-i}(m-i)^n}$ which, to be honest, looks terrible. My original question still stands, what is the closed-form expression (if there even is one) for this monster double sum?


I have a HP with Windows 7 installed. I want to do a clean installation of Windows 8 from a bootable DVD.   I purchased my Windows 8 32-bit core from the Microsoft store and I received my product key. I then burned the .ISO file to a blank DVD using imgburn. When I restart and change my BIOS to boot from internal CD/DVD and then boot from my internal DVD, I start the installation process.  After I pass the screen where I select the language and location, and click Install it stays there for a minute and then it says:     The product key entered does not match any of the Windows image   I did my research and learned that I need to add a PID.txt file to my source file containing the Windows 8 .ISO but the thing is: I do not know how to add files to the .ISO. The guide I researched is for a bootable USB and I am using a DVD.

I installed a new SSD in my PC laptop which came with an OEM version of Windows 8.  After trying unsuccesfully to get the OEM version of Windows onto the SSD drive I gave up and purchased and downloaded a NEW copy of Windows 8. After that I created an ISO image on my desktop machine and followed the instructions  to create a bootable USB flash drive.  However, after going through the boot install process with the USB flash drive on my laptop I get the following message 'The product key entered does not match any of the Windows images available for installation. Enter a different product key.' But I wasn't asked to enter any key!  Is this because the ISO image was created on a different machine? I really don't get why this should be so difficult.


I've been stuck on this question since last night and the problem I'm having is  I just don't know how to set out the answer or if I answered it correctly.  Question  Describe the following set, and prove your answer correct. (Here brackets denote intervals on $\mathbb{R}$.)  $\bigcap_{i=0}^{\infty}(\frac{-1}{i}, \frac{1}{i})$  Working  As I said I don't know how to set it out, so my answer is simply:  $() \cap (-1, 1) \cap (\frac{-1}{2}, \frac{1}{2}) \cap (\frac{-1}{3}, \frac{1}{3}) \cap ... \cap (\frac{-1}{k}, \frac{1}{k}) \cap ...$  and as for the actual working, I just kind of used my head and it seems like there isn't any working, and it says to prove my answer correct so I don't know what to do for it.  Thanks, any help is greatly appreciated! :)

I would like to know the intersection of $(-1/n ; 1/n), \forall n \in N$. I am in trouble thinking it could be $\{0\}$ or $\emptyset$. Can anyone help me?


I have the following problem which I do not know how to solve. I found the statement to be a bit confusing. Here's the problem:   If $B=((b_{ij})) \in M_{n\times n}$ where $b_{ij}=1 \, \forall i,j$ and $A=(a-b)i_n+bB$  Prove that $|A|=(a-b)^{n-1}[a+(n-1)b]$  I found the $i_n$ notation to be a bit cofusing, so I do not really understand how matrix A was declared. Can anybody help me?

This question aims to create an ""  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$?


I expect there is already an answer to this, but I can't find it. Feel free to point me to an existing solution.  A while ago I did a lot of fiddling about with a terminal on my Ubuntu Budgie 17.10 desktop to set up Nitroshare for copying files to my laptop and possibly Samba, via the wireless links from those computers through my wireless modem. Eventually I installed nautilus-share and managed to share a folder from Nautilus with my laptop which was much more useful. I also had to use a terminal to type:  service nmbd start   and/or  service smbd start   and do a restart between. I probably also had to do something to make this stay running for next time I started the desktop.  That setup got lost in an OS change/update, so I need to do it again. Unfortunately when I look at my notes I’m lost in all the detail of what I tried and abandoned.  Ubuntu Budgie uses Nemo, so I have enabled folder sharing with Budgie>Welcome/Recommendations>Nemo Share, right-clicked the folder and shared it, but the laptop doesn't see the share. Fiddling about with  service nmbd start   and/or  service smbd start   doesn’t work as I don't really know what I'm doing.  I can’t find a guide that doesn’t talk about servers and give loads of commands that don’t seem necessary. What do I need to do? No sarcy comments about making clearer notes next time please :)    Ubuntu Budgie 19.10

I have a desktop (Ubuntu 13.04 & Win 7 Home Premium) and a Laptop (Ubuntu 12.04), both having WiFi adapters. I also have a WiFi router connected to internet which both my computers can access.  I want to share files between my desktop and my laptop using WiFi (similar to Homegroup on Windows 7 but without using Ethernet cables).  How do I set-up that?  I want to share files using both OSs, if anyone have have information about sharing files with any of the OS please answer!


Let $a,b,c$ be positive rational numbers such that  $a+\frac{1}{b}, b+\frac{1}{c}, c+\frac{1}{a}$ are all integers. Find all the possible values of $a+b+c$.  it would be too complicate to solve by quadratic equation(the discriminant is 6 degree polynomial of 3 variables...).  Either, no thought at all…

Let $x,y,z\in\Bbb R$, and at least one is be a postive integer, and such that  $$x+\frac{1}{y},\;y+\frac{1}{z},\;z+\frac{1}{x}\in\Bbb Z$$ Find the value of $x,y,z$.  My try:  $$\left(x+\dfrac{1}{y}\right)\left(y+\dfrac{1}{z}\right)\left(z+\dfrac{1}{x}\right)=\dfrac{(xy+1)(yz+1)(xz+1)}{xyz}\in Z$$  Then I can't. Thank you.  I konw $(x,y,z)=(1,1,1),(-1,-1,1),(2,0.5,1)$ is such condition,But How prove it?


If I have two sentences "You need to start choosing to not do bad things" and "You need to start choosing not to do bad things", is there a difference between the two?  If so, what is it?

This is one thing that keeps bugging me, and maybe there's a direct answer. Grammatically, which one is more correct of these two?  Does it make a difference?  I tried not to do that. I tried to not do that.


For those who have 10k+ reps with ignored tags set. The "Review Edit Suggestion" feature should skip posts with those ignored tags.  In other words, if I have java in my ignored tags, please don't have me review edit suggestion for posts tagged java.  p.s. Not that I have anything against Java though :)

Steps to Recreate:   Have enough rep to use some of the review queues. Ignore a popular tag. Go to your profile-> prefs-> check 'hide ignored tags'. Open a review queue.   You will get questions from your ignored tag(s) in the review queue.  Personally, I ignored a tag on Movies.SE (and Scifi.SE) for a film that is out elsewhere in the world, but not locally.  It's a simple way to avoid being exposed to spoilers.  I then load up the First Posts review queue on Movies.SE, and I get an answer to a question about the end of the film.  Can the review queues be altered to skip posts on your ignored tags when you have the 'hide ignored tags' option enabled?


Using the following code  \documentclass[demo]{beamer}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{A01,     author = {Author, A. and Buthor, B. and Cuthor, C.},     year = {2001},     title = {First Article Title Apha AAAAAAAAAAAAA AAA AA AA AA A AAA A A A AAAA} } @misc{A02,     author = {Author, A. and Buthor, B. and Cuthor, C.},     year = {2002},     title = {Second Article Title  Beta BBB B B B BBBB BBBBBB BBBBB BBBBB B B B BBBBB BBB BB} } \end{filecontents}   \usepackage     [   style=numeric-comp,                             autocite=superscript, % apply options here.                             sortcites,                             backend=bibtex                         ]{biblatex} \usepackage{scalefnt,lmodern}  \addbibresource{\jobname.bib} \usetheme{Warsaw}   \begin{document}  \section{Introduction}   \begin{frame} \frametitle{Slide with references at the bottom} \begin{columns} \begin{column}{5cm}         \begin{figure}         \includegraphics[width=\textwidth, height=.5\textwidth]{mypicture}          \end{figure}         \end{column} \begin{column}{5cm} \begin{itemize} \item<1-> in A happens that aa aaaaa aa\footnotemark[1] \item<1-> and aslo that A aaa a aaa a a aaaa aaa aaaaa aaa\footnotemark [1] \item<1-> 5\textsuperscript{th} cause of bb bbbbb\footnotemark[2] \item<1-> 1\textsuperscript{th} cause of bbb bbb bb\footnotemark[2]  \end{itemize} \end{column} \end{columns} \footnotetext[1]{\fullcite{A01}} \footnotetext[2]{\fullcite{A02}} \end{frame}  \begin{frame} \frametitle{Slide with references at the bottom} \begin{columns} \begin{column}{5cm}         \begin{figure}         \includegraphics[width=\textwidth, height=.5\textwidth]{mypicture}          \end{figure}         \end{column} \begin{column}{5cm} \begin{minipage}[T]{\textwidth} \begin{itemize} \item<1-> in A happens that aa aaaaa aa\footnotemark[1] \item<1-> and aslo that A aaa a aaa a a aaaa aaa aaaaa aaa\footnotemark [1] \item<1-> 5\textsuperscript{th} cause of bb bbbbb\footnotemark[2] \item<1-> 1\textsuperscript{th} cause of bbb bbb bb\footnotemark[2]  \end{itemize} \footnotetext[1]{\fullcite{A01}} \footnotetext[2]{\fullcite{A02}} \end{minipage} \end{column} \end{columns}  \end{frame}  \end{document}   When placing the footnotes to the right column to let the left column free the references end up out of the slide as can be seen in the picture. Why is this happening isn't it supposed to be taken care by using minipage? Or is the problem that the footnote environment takes the margins from somewhere else? Is there any way to visualize which margins are the environments for a particular slide?

I have prepared a beamer presentation for a seminar. I already have presented, but in trying to change traditionally-cited references (with a number superscript and the reference typesetted at the end of the presentation), I used biblatex's \footcite. Consider this frame snippet:  \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb} \usepackage{colortbl} \usepackage[spanish,es-tabla]{babel}   \usepackage{wasysym} \usepackage[style=verbose,autocite=footnote,maxnames=10,babel=hyphen,hyperref=true,abbreviate=false,backend=biber,mcite]{biblatex} \addbibresource{references.bib}  \usepackage{pgf} \usepackage{booktabs} \usepackage{multirow}  \setlength{\columnsep}{.2cm} \def\newblock{\hskip .11em plus .33em minus .07em} \mode<presentation> {   \usetheme[width=4em]{PaloAlto}   \usecolortheme{crane} } \title{Title} \subtitle{Sub}  \author[me]{me} \date{\today}  \begin{document}  \begin{frame}   \titlepage \end{frame}      %%%%%%% MAIN CODE %%%%%% \begin{frame}{The FDTD Method}     \begin{columns}         \begin{column}{0.4\textwidth}           \begin{itemize}               \item Discretization of both space and time by central differences.                 \item Yee Cell %\footcite{Taflove2000}.              \end{itemize}         \end{column}      \begin{column}{0.5\textwidth}         \begin{figure}           \centering           \includegraphics[width=0.9\columnwidth]{some_figure}           \caption{Unit Yee Cell.}         \end{figure}     \end{column}      \end{columns} \end{frame}  \end{document}   Put any PDF, PNG or JPG file named some_figure together with this .tex file. The content of the references.bib file (just to enable compilation) are:  @Book{Taflove2000,     Day = {{30}},     Edition = {{2nd}},     Month = {{jun}},     Publisher = {{Artech House Publishers}},     author = {Taflove, Allen and Hagness, Susan C.},     title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},     year = {{2000}}, }   With the comment in place (that is, when not citing with \footcite) the second column containing the figure appears in the PDF output correctly. But, when the comment is removed, the citation appears at the footer of the frame, but the second column goes into oblivion along with the figure. Does anyone know how to solve this?


I know how to create my custom terminal commands and that would be really useful for me in compiling all my java classes in a folder. I also see that for doing this people usually creates a folder ~/bin and put files .sh with the lines they wish they run, but I could not understand it well, I create a compile.sh with some lines for example  -gcc file -o file -gcc file1 -o file1   but as I was reading I also need to add a line to a file called .bashrc that is hidden in my home folder and I don't know how to do that, is there any way easier of editing this file? After I do it, my custom command will be the name of the .sh file (compile)?

I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh


I have a register form with upload field and when the user registers i create a new post. I need to have the uploaded picture on the featured image of the post.  I have see something like this but i don't understand all :s   $upload_dir = wp_upload_dir(); $image_data = file_get_contents($image_url); $filename = basename($image_url); if(wp_mkdir_p($upload_dir['path']))     $file = $upload_dir['path'] . '/' . $filename; else     $file = $upload_dir['basedir'] . '/' . $filename;  file_put_contents($file, $image_data);  $wp_filetype = wp_check_filetype($filename, null ); $attachment = array(     'post_mime_type' => $wp_filetype['type'],     'post_title' => sanitize_file_name($filename),     'post_content' => '',     'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); require_once(ABSPATH . 'wp-admin/includes/image.php'); $attach_data = wp_generate_attachment_metadata( $attach_id, $file ); wp_update_attachment_metadata( $attach_id, $attach_data );  set_post_thumbnail( $post_id, $attach_id );   But how to get the image url because the image is not yet sent ...

While looking through the , I noticed that there's no parameter in the array it requires which will allow me to set the 'Featured Image' for a post, displayed as the  in my theme.   I have looked into functions like , as suggested by Mr. Bennett, but this seems to be a relatively new addition to WordPress itself and the WordPress codex. As such, there aren't any sources that I can find which explain how the $thumbnail_id parameter should be acquired and supplied. If this really is the function to use, in what way could I provide it with a valid $thumbnail_id parameter when all I have is an image URL?  Thanks in advance!


I want to install a startup item in OS X Big Sur which runs a shell script as a user on my machine and connects via ssh to a remote machine I maintain.  I use ssh keys so no password is required for this script to succeed.  It will linger in the background.  How would I accomplish this in Big Sur?  My understanding is that the old /Library/Startup Items/xxx.plist trick is deprecated.  What is used in its place? Thanks!

I currently use Valet to develop sites, and many of those sites need SQL databases.  To host SQL databases, I run a mariaDB server from the Terminal.  In order to start the MySQL server so that I can connect to the databases, I run the command:  sudo mysql.server start I want the server to start on login, so normally I would just have this command execute on login, but it requires the sudo command.  What do I change and how do I change it so that I do not need the sudo part of the command and I can just start the server on login?


In the box which appears after hovering a tag, if the "x followers, x questions" text is too long, the "subscribe" and "rss" links change their position.  Example: .  I think a solution to this would be to increase width of the box. It currently is 330px, I think that 350px would be enough.

Found this when subscribing to jQuery tag. "unsubscribe | rss" is not shown correctly.


The handsome young teacher fell into easy banter with his students, who were not much younger than he/him.   Should this use "he" or "him"?

It is a well known fact that Alex is more soft-spoken than (she/her).    Why would "her" be wrong? Why must the sentence end with "she"?


I lost my AirPods (original, wired) charging case recently. Since I use these a lot during the day for work calls I'm frequently hitting periods where they are dead or I'm continuing with only one in my ear while trying to charge the second one up and swapping like that back and forth. So it would be kind of ideal to have two pairs, but what I'm curious of is if I bought a 2nd full pair of AirPods (with case), could I then use the new case to keep both new and old headphones charged? Will this cause any issues in terms of connecting them to my devices/syncing?

Can I use one pair of AirPods with two or more Charging case units? Can I take turns charging the case, and deposit AirPods into either without any bother?    for USD $69.  Apple announced their  a  charging case upgrade for AirPods.


I am trying to stop the currently running database, because apparently EnterpriseDB on Mac OSX does not support Postgis. And the Postgis site tells me to use Postgres.app. But I cannot stop the currently running database with EnterpriseDB. I tried pg_ctl:  $ pg_ctl stop -D /Library/PostgreSQL/9.6/data pg_ctl: could not open PID file "/Library/PostgreSQL/9.6/data/postmaster.pid": Permission denied $ sudo pg_ctl stop -D /Library/PostgreSQL/9.6/data pg_ctl: cannot be run as root $ cd /Library/PostgreSQL/9.6 $ sudo chown -R $(whoami) . $  pg_ctl stop -D /Library/PostgreSQL/9.6/data pg_ctl: could not send stop signal (PID: 105): Operation not permitted   How am I supposed to do this?

I am having basic problems using PostgreSQL on my Mac OSX Yosemite, through the terminal. I tried google-ing but this is becoming increasingly difficult and info very scattered so I keep running into walls. I did the following:  installed PostgreSQL 9.5.2 via Homebrew modified my shell config file (.zshrc) to include PostgreSQL bin directory in $PATH variable I did the "initdb" routine and "told" Postgres that I want to store my databases in /usr/local/cellar/postgresql/9.5.2/data  Here I tried starting postgreSQL: $pg_ctl /usr/local/cellar/postgresql/9.5.2/data -l logfile start  first error:  pg_ctl: another server might be running; trying to start server anyway /bin/sh: logfile: Permission denied  As far as I understand, I am trying to start the PostgreSQL server and direct its output and errors into a log file, located in a location for which my user has no write privileges. How can I fix this? Here I tried stopping the server and try again: $pg_ctl -D /usr/local/cellar/postgresql/9.5.2/data stop   This worked ok. So,  How can I use other location to start the server and enable log How do I check if the server is running if I need to stop it (if errors appear)?


I wanted to get some space for my Ubuntu,  said it's fine to delete the recovery partition. So I deleted it, installed Ubuntu in its place.   Since the bootloader is not working (yet, I need to set it up - some clever guy came up with the idea to set up 32-bit UEFI there and it requires a little of tinkering) so the Windows Boot Manager is the device to boot from.  But Windows says that a medium is inaccessible and the computer needs to be repaired. The error code is 0xc0000225. I can only enter UEFI  Is there any way to tell the system to simple forget the missing recovery partition? I don't want to overwrite the MBR since I'll be setting up Grub soon.

When I boot my Windows 8 laptop (see details below), it displays this message:  Recovery  Your PC needs to be repaired  A required device isn't connected or can't be accessed.  Error code: 0xc0000225  [ A text saying I should use recovery tools on my installation media to fix the issue. ]  Press Enter to try again  Press F8 for Start-up Settings  Press Esc for UEFI Firmware Settings   If I press Enter or F8, the central part of the message changes to:  The application or operating system couldn't be loaded because a required file is missing or contains errors.  File: \Windows\system32\winload.efi  Error code: 0xc0000225   I don't have a recovery disk and I have owned this computer for a year with no problems. All I did prior to this error was unistall avast and restart. I can only access UEFI Firmware Settings and have no clue what to do from there. PLEASE HELP!


Good day! I have encountered this problem for my thesis and really hoping to get some answers.   I have 3 variables SP, SO, and OO -all positively correlated but when I used linear regression ( 3 variables as a predictor) for SE, SP and OO is not anymore significant.

In linear models we need to check if a relationship exists among the explanatory variables. If they correlate too much then there is collinearity (i.e., the variables partly explain each other). I am currently just looking at the pairwise correlation between each of the explanatory variables.  Question 1: What classifies as too much correlation? For example, is a Pearson correlation of 0.5 too much?  Question 2: Can we fully determine whether there is collinearity between two variables based on the correlation coefficient or does it depend on other factors?  Question 3: Does a graphical check of the scatterplot of the two variables add anything to what the correlation coefficient indicates?


I am trying to sort a list with dictionaries.  I have the following example:  test = [{'index':'22','text':'a'},{'index':'21','text':'b'},{'index':'28','text':'c'}]   I tried sorting this list in increasing order of the key "index" with the following code:  sorted(test,key = lambda k:k['index'])   But I get the error "builtin_function_or_method object is not iterable".   Can someone help me?

I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


I am searching for a package of openjdk but i can't find it, every time gives me this response " sudo apt-get install openjdk-7-jdk Reading package lists... Done Building dependency tree Reading state information... Done Package openjdk-7-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'openjdk-7-jdk' has no installation candidate" how to solve this ?

I would like to upgrade my main system to 16.04, but I work on projects that require OpenJDK 7.   Apparently it is not available from a trivial apt-get install openjdk-7-jdk. Only versions 8 and 9 are listed in the repository.  Can anyone point me to instructions on how to install it?


I just wanted to ask what would be a good number in my.cnf in MySQL for max_connections?  I have a shared server which has about 10 websites and 8GB RAM and a quad-core processor.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I have the following HTML code with the iframe:                   example 1
example 2

          test.html                <title>TODO supply a title</title>         <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">
TODO write content

div content
         Then I have written a jQuery code to find div tags and highlight       This is working in the divs outside the iframe. I need to highlight the divs which are in the inside the iframe.

Basically, I have an iframe embedded in a page and the iframe has some  routines I need to invoke from the parent page.  Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that.  Please note that my problem is not changing the source  of the iframe, but invoking a function defined in the iframe.


How to prove that for any $A$ is a $2\times2$ matrix with real elements exist $B$ and $C$ so that $A=B^2+C^2$? So far, I used Cayley-Hamilton theorem and I have: $A =$ $\frac{1}{Tr(A)}A^2 + \frac{det(A)}{Tr(A)}I_n$. I know that I need a positive trace, so I choose $A_1 = A + tI_n$ and $\lim_{t\to∞}(A + tI_n) = \infty$

I recently show that every polynomial with real coefficient and $P$ is always is a sum of two squares of polynomials, therefore positive. These questions also appear often in arithmetic.  What if we change polynomials by matrices?  I ask my professor and unfortunately he had no idea if this result is already shown or not. I tried, unsuccessfully, several tracks : First denote that $$\forall M\in M_n(\mathbb R) , M=1/2[(A+A{}^t)+(A-A{}^t)].$$ and perhaps used the following result :  Any symmetric positive matrix admits a square root  Proof. By spectral theorem, there exist $\Omega \in \mathbb O_n(\mathbb R)$ and $(\lambda_1,...\lambda_n)\in (\mathbb R^{+})^n$ such that $S=\Omega D \Omega^{-1}$ with $D$ the diagonal matrix formed by the positive eigenvalues. Let $D'$ the diagonal matrix formed of the roots of the eigenvalues. Then , $D'²=S$ and  $D'{}^t=D'$ thus she is a symmetric positive matrix.  Question : Is it possible to believe that all matrices (say in $M_2(\mathbb R)$) are the sum of two squares?


Why does the sizeof operator when used on structures always gives different number of bytes  than actually used by the structure to store the data(what i expect)?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


I understand that with words that indicate portions e.g. a lot, a majority, some, all, etc, I need to look at the noun after 'of' to decide if the verb is singular or plural. If the noun after 'of' is singular, I should use a singular verb. If it is plural, I should use a plural verb. For example:  All of the pie is gone. All of the pies are gone.  But what about the following statement:  Each of the children ____ (be) given a balloon on Children's Day.  Should the answer be 'is' or 'are'? Does the same rule apply? Thanks.

Relevant:  and   The answers in the linked question don't quite help me. Specifically, what happens with this case:  My three pens are green. Each of my three pens are green. Each of my three pens is green.  Part of the confusion seems to stem from the inclusion of "three":  My pens are green. Each of my pens are green. Each pen is green.  There doesn't seem to be a way to rewrite the last example with "three":  Each three pen is green.  The more common application would be:  All three pens are green.  But in the event that I want to say, "Each of my three pens are green" which is correct? And, in the event that the correct sentence is "each of my three pens is green" why does prepending "each of" to the beginning of "my three pens are green" change the verb?


Can we do measurements at this scale seeing that the length of the hypotenuse would have a value at a length that cant exist (1.4 Planck lengths)? Or is my interpretation of the  incorrect?

On a quantum scale the smallest unit is the , which is a discrete measure.  There several question that come to mind:   Does that mean that particles can only live in a discrete grid-like structure,  i.e. have to "magically" jump from one pocket to the next? But where are they in between? Does that even give rise to the old paradox that movement as such is impossible (e.g. )? Does the same hold true  for time (i.e. that it is discrete) - with all the ensuing paradoxes? Mathematically does it mean that you have to use difference equations instead of differential equations? (And sums instead of integrals?) From the point of view of the space metric do you have to use a discrete metric (e.g. the ) instead of good old Pythagoras?   Thank you for giving me some answers and/or references where I can turn to.  Update: I just saw this call for papers - it seems to be quite a topic after all: Is Reality Digital or Analog? FQXi Essay Contest, 2011. , , . One can find some pretty amazing papers over there.


Consider this beamer file:  \documentclass{beamer}  \begin{document}  \begin{frame}   \begin{tabular}{p{1cm}p{1cm}p{1cm}}     aaaaaa & \only<2>{aaaaaa} & \onslide+<2>{aaaaaa}   \end{tabular} \end{frame}  \end{document}   This input causes slide 2 to look like this:   Why are the cells not aligned, and what can I do to fix this?

When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided?  \documentclass{beamer} \begin{document} \begin{frame}   \begin{tabular}{|p{1cm}|p{1cm}|}     \hline     1 & Hello World \\     \hline     2 & \visible<2->{Hello World} \\     \hline   \end{tabular} \end{frame} \end{document}


A bullet of mass 20 g travelling horizontally with a speed of 500 m/s passes through the wooden block of mass 10 kg initially at rest . The bullet emerges with a speed 100 m/s and the block slides 20 cm before coming to rest. Find friction coefficient between block and surface      My teacher solved this question by conserving momentum between the bullet and the block. But how can he do that when there is external force (friction) acting on the system? I think impulse momentum theorem is used in such scenarios, but how can I apply it in this problem?

I'm a physics tutor for 11th and 12th grade students. I taught my students that momentum is conserved only when the net external force on the system is zero. But in the books we are following, momentum was conserved in the following cases in spite of presence of an external force:   A body (mass m1) is dropped from a tower (height h) and another body (mass m2) is projected vertically upward with initial velocity u. Find the velocities just after collision. (Gravitational force is the external force) Two bodies projected towards each other on a rough table surface, with all required parameters given asked to find the velocities after collision. (frictional force is the external force) Body explodes in mid air. Momentum is conserved before and after explosion. (Again gravitational force is the external force)   I explained to my students in all these cases though an external force is present it has negligible effect. But I'm not satisfied with my answer.  EDIT: Thank you for the comments and answer. It is clear that contribution of external force to change in momentum is negligible. Can someone do the calculation of taking change in momentum into consideration and showing that it is negligible?


I am a bit new LaTeX, so having some difficulties.  I am writing a paper using the IEEtran template. I use the graphicx package to insert the figures: \usepackage[pdftex]{graphicx}  I try to add the figure using the following code:  \begin{figure}[!t] \centering \includegraphics[width=2.5in]{testy.pdf} \caption{Simulation Results.} \label{fig_sim} \end{figure}   The figure is in the same directory with the *.tex file  But, after the tex file is complied, the borders of the figure show up in the resulting pdf, also the captions are there, but the picture itself in not rendered. There is a strange border with the name of the picture within it.  What am I doing wrong?

Firstly and fore-mostly I am a complete new comer to the world of LaTeX and so please do bear with me. I will try to be as accurate as I can but if you need any more info please let me know.  All I want is to figure out how to import a graphic into LaTeX (MacTeX).  I am using the following in my code:  \documentclass[10pt,a4paper,draft]{report} \usepackage{graphicx}   Then in my document section I'm using   \begin{figure} \includegraphics[width = 50mm]{Name.jpg} \caption{Label} \end{figure}   Once I compile the document, the area for the picture has been allocated but there is no image, I have tried .png and .pdf files also.  I know that this is a very simple question and I hope there is a simple solution but I cannot find anything on the net about this (which may mean I'm being dim).  Also I'm using Latexian but I have tried 4 different editors and it doesn't work in any.


I'm a bit of an untidy thief and often end up with a few things lying around the house. I've also left open a book next to my Alchemy lab in Whiterun for cosmetic and reference purposes. Obviously the proper way to keep all this stuff safe is to put it away in my chests etc which are safe containers.  My question is; is this stuff safe in my house without being stored in a container?  It so far for me seems to be so since a lot of random replaceable stuff hasn't disappeared however I have a few books that I'm pretty sure I can't replace (PS3 so no console :( ) and don't want to take the chance.

I know once you have purchased a home you can leave items in the chests inside for easy storage.  My question is regarding the surrounding tables and shelves - if I remember correctly from Oblivion you could leave items on the tables and shelves and they would remain. I'm planning on trying this with a not "super needed" item and seeing if it disappears but I just wanted to ask the community if they have tried this and what the results were.


ifconfig -a:  eth0: 192.168.0.11 eth1: <irrelevant...> lo: 127.0.0.1   On the same machine:  nmap -p 9866 localhost   Will show that state is open and detects what service that is running  But:  nmap -p 9866 192.168.0.11   Will show that state is closed, but still detects what service is running  Can i route traffic incoming from eth0 192.168.0.11:9866 to 127.0.0.1:9866? I tried with several iptables rules i found from a search on this issue, but it didn't work out.

I have two interfaces eth0 (192.168.1.2) and eth1 (192.168.3.2).  I receive data from 8080 at eth0. I want to forward it to eth1 port 80.  I'm using UFW, because i don't understand iptables and how to add it at the beggining of /etc/ufw/before.rules.  I've already edited DEFAULT_FORWARD_POLICY="ACCEPT" on /etc/default/ufw and already edited net.ipv4.ip_forward=1 on /etc/ufw/sysctl.conf


I am using ubuntu 14.04 , While trying to install the scanner canon Lide220 using the command sudo apt-get install xsane the following message appears:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   What can I do to succesfully install it?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


How to compute the integral $\int_0^1 \frac{x\ln x}{\ln (1-x)}dx$?   We can write  \begin{align*} \int_0^1 \frac{x\ln x}{\ln (1-x)}dx=\int_0^1\frac{(1-u)\ln (1-u)}{\ln u}du =-\int_0^1\frac{1-u}{\ln u}\sum_{n=1}^\infty \frac{u^n}{n}du \end{align*} Seeing \begin{align*} \int_0^1\frac{u^{a-1}-u^{b-1}}{\ln u}du=\ln\frac{a}{b},\forall a,b>0, \end{align*} we get  \begin{align*} \int_0^1 \frac{x\ln x}{\ln (1-x)}dx=\sum_{n=1}^\infty \frac{1}{n}\ln \frac{n+2}{n+1}. \end{align*} I have tried hard to compute the series above ,but without any progress.

Evaluate $$I=\int_{0}^{1}\frac{x\log x}{\log(1-x)}dx$$   I try to change it to:$$I=\int_{0}^{1}\frac{(1-x)\log(1-x)}{\log x}dx$$ but I can't do next steps,help me ,thank you very much.


I know the usage of verbatim prefix to avoid having to escape special characters all the time. For example:  string s = @"c:\myPath";   However I just realized it is possible having something similar for parameters names. Example:  public void aMethod(int i, DateTime @date){  }   I wonder why is that syntax correct and in which case can this be useful..

Possible Duplicate:          I understand that the @ symbol can be used before a string literal to change how the compiler parses the string.  But what does it mean when a variable name is prefixed with the @ symbol?


I have designed a simple workflow using workflow manager. It is a single stage workflow where only approval is required.  The problem that i'm facing is that when i'm running the workflow with the system account, its triggering but when i use any other account, it throws error.   The is mentioned below :  Activity in progress   Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP Unauthorized to '6c455ec3-7170-4986-93e5-0d7d27c73087') Correlation Id: 99371e71-4251-431a-8c52-ddef06b62b25 Instance Id: db265e60-a171-4337-8baf-0dc9ce99eca7  Kindly suggest what can be the issue

I created a site in SharePoint 2013 and some workflows in SharePoint Designer 2013. Now I am testing it and I can see that everything is working great when I am operating only on items, that I created.    When I try to start a workflow on item created by another user an error occurs and whole workflow is suspended.  When I try to run site workflow, which loops through all items in my list it will work well until it meets item created by another user.   I am the site owner, I have full control permissions. I gave other users access to my site by adding NT Authority\Authenticated Users to default Site Members group.  Do you know what is causing suspending my workflows?  Edit:  Error description:     RequestorId: 67c7e8af-caf5-10a9-0000-000000000000. Details: An   unhandled exception occurred during the execution of the workflow   instance. Exception details: System.ApplicationException: HTTP 401   {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["57"],"SPRequestGuid":["67c7e8af-caf5-10a9-a476-6227e56256d6"],"request-id":["67c7e8af-caf5-10a9-a476-6227e56256d6"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"Cache-Control":["max-age=0,   private"],"Server":["Microsoft-IIS/8.5"],"WWW-Authenticate":["Negotiate","NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4617"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;   RequireReadOnly"],"Date":["Fri, 07 Jul 2017 04:32:40 GMT"]} at   System.Activities.CodeActivity.InternalExecute(ActivityInstance   instance, ActivityExecutor executor, BookmarkManager bookmarkManager)   at   System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor   executor, BookmarkManager bookmarkManager, Location resultLocation)


I'm using ubuntu 13.04 and hibernate is disabled  Do I need a big swap file to enable hibernate ? How ?

In Ubuntu 12.04 and newer, . How can I enable this back?


In this code:  char ch; while(cin.get(ch)) {     std::cerr<<"got ch:"<<ch<<std::endl; }   Why do I have to hit enter before the "got ch:" is printed on screen ?  Is there a way to have characters echoed right after they are typed ?

I can never remember how I do this because it comes up so infrequently for me. But in C or C++, what is the best way to read a character from standard input without waiting for a newline (press enter).  Also ideally it wouldn't echo the input character to the screen. I just want to capture keystrokes with out effecting the console screen.


In the nearby list you can see sableye is a silhouette I have that one already and don't understand why these pokemon are  up like this.

When I loaded up Pokémon Go today, I noticed something that was out of the ordinary. At one of the pokéstops in the nearby list, there was the silhouette of a Turtwig, as if uncaught, despite having caught many Turtwig prior.  As shown in the screenshots below, the Turtwig's silhouette appeared even though my Pokédex shows I have caught 107 of them.     Two things came to mind:   This occurred right after the  of new shadow Pokémon, which Turtwig was in the list. However, the pokéstop was not being invaded by Team Rocket. It was potentially a gender I had not caught, which acts this way on the  if you do not own the gender of that evolution. However, I have both male and female Turtwigs.   So my question is: Why would a Pokémon's silhouette appear even though I've caught it before? No other Pokémon behaved this way, so it seems like something was happening with this Turtwig in particular.


In a (logistic?) regression paper related to credit scoring and involving psychometric data and credit scoring, there are 11 predictor variables used to estimate credit score. The sample size is 142. Intuitively, it doesn't seem enough, but what exactly is the rule of thumb involved for regressions? That involve psychometric data? That are logistic?  the paper:   ZUI slideshow summary:

I want to make a logistic model from my survey data. It is a small survey of four residential colonies in which only 154 respondents were interviewed. My dependent variable is "satisfactory transition to work". I found that, of the 154 respondents, 73 said that they have satisfactorily transitioned to work, while the rest did not. So the dependent variable is binary in nature and I decided to use logistic regression. I have seven independent variables (three continuous and four nominal). One guideline suggest that there should be 10 cases for each predictor / independent variable (Agresti, 2007). Based on this guideline I feel that it is OK to run logistic regression.    Am I right? If not please let me know how to decide the number of independent variables?


EDIT: Plenty of info out there I'll get to it before I bother anyone for more answers.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


The installation went perfectly but after restart I am brought back to the initial black screen that says:     Try Linux without installation, Check disk for defects, and Install Linux, ect.

I would like to see a full how-to guide on how to install Ubuntu.


I encountered a Debian machine that, when trying to update packages, threw the widely discussed "GPG error:  wheezy/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553". In oder to import the current keys, the package debian-keyring needs to be installed.  But since the keys on the machine are no longer valid, how can I be sure that the packet's contents have not been tampered with?

When performing apt-get update, I get the following error:   root@ADS3-Debian6:/home/aluno# apt-get update Atingido http://sft.if.usp.br squeeze Release.gpg Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-en Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt_BR   (...)  Obter:10 http://security.debian.org squeeze/updates/non-free i386 Packages [14 B] Baixados 612 kB em 4s (125 kB/s)                     Lendo listas de pacotes... Pronto There is no public key available for the following key IDs: 8B48AD6246925553


It is really useful the shortcut Super+Left/Right for moving windows to the left/right (technically "view split of left/right"). My version is gnome-debian (gnome 3.22.3) stretch (stable), but I want more custom shortcuts:  For example Super+Left+Down to move one window to the bottom right part (useful for terminals), similar to the other shortcut but in the bottom part.  I don't know if there is an easy way to do this trough shortcuts, or if you need to modify some files, any tip will be welcome :)  NOTE: I mention terminals as an example, but I would like to do it with any windows if it's possible.

I love the window snap feature of the Gnome 3 shell. However, it only allows you to maximize windows or to snap to the left or right half of the screen. Is there a way to snap to quarters of the screen? Maybe some shell extension I'm unaware of?


I'm not a native English speaker. From time to time I see the following structure when referring to a person: ... a(n) [adjective] [person's name] ... example:  "Meanwhile, an increasingly sadistic Henry begins focusing his attention..." / Wikipedia: It (novel) /  I'm pretty sure that the following is correct as well:  "Meanwhile, the increasingly sadistic Henry begins focusing his attention..."  What's the difference between these?

Sometimes, on the internet, particularly in online games, I see people using the  indefinite article before someone's name: "I see a Joey" or "I hug a Polly". I know some of these people and I'm positive that they are from English-speaking countries, which means it is not a mistake, they do it intentionally.  I was always taught that articles are not used in front of people's names. Maybe it is some sort of slang? What does it mean, when the indefinite article is put in front of someone's name?  Edit: There is a group of people standing somewhere. And somebody, named Joey, appears. They all know Joey. And someone in this group says "I see a Joey". So it is used when someone sees his or her friend. But I don't understand why they use the indefinite article here.


I have PC (Windows) and laptop (Ubuntu 19.04). Both of them connected through WiFi. When I type in google "what is my IP" it shows me IPv4 on windows and IPv6 on Ubuntu. What I have to change on Ubuntu to get IPv4?

How can we disable IPv6 system wide via terminal commands?  I've read editing /etc/modprobe.d/aliases  and replacing:  alias net-pf-10 ipv6   with:  alias net-pf-10 off alias ipv6 off   Is this safe to apply and does it permanently disable ipv6 across reboots?


I'm creating a flowchart in Tikz, and I would like to connect two shapes using an arrow. The thing is, the arrow needs to end not at the centre, but rather around 80% from the left. Consider the following minimal example:  \documentclass[a4paper, 12pt]{report} % a4paper option recommended \usepackage{tikz} \usepackage[latin1]{inputenc} \usetikzlibrary{shapes,arrows}  \tikzstyle{start} = [diamond, draw, fill=blue!20,      text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{block} = [rectangle, draw, fill=blue!20,      text width=5em, text centered, rounded corners, minimum height=4em] \tikzstyle{line} = [draw, -latex'] \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,     minimum height=2em]  \tikzstyle{arrow} = [thick,->,>=stealth]   \tikzstyle{assignment} = [trapezium, trapezium left angle=80, trapezium right angle=100, minimum height=1cm, text centered, draw=black, fill=blue!30, text width=4.5cm]  \begin{document}       \begin{center}         \begin{tikzpicture}[node distance = 1.75cm]             % Place nodes              \node [start] (somedecision) {Yes/No?};              \node [assignment, above of=somedecision,yshift=2cm, xshift=-2.25cm] (someblock) {Var $\gets$ \textit{something}};              \node [block, below of = someblock, yshift=-2cm, xshift=-1.5cm] (someaction) {Do something};              \draw [arrow] (somedecision.north) -- node {no} (someblock.south);              \draw [arrow] (someblock) -- (someaction);          \end{tikzpicture}     \end{center} \end{document}   The arrow from the decision box goes to the bottom center of the upper box, but I would like it to simply go up (shortest route). Similarly, I would like the left arrow (from the upper box to the left box) to start to the left so it can go down (shortest route) to the designated box.  Is there any way of getting this done? I tried looking for it but I cannot seem to find it.  Thanks.

I have the following tikz code  % compilation command: pdflatex --jobname=Diag-f1 Diag.tex \documentclass{book} \usepackage{tikz} \pgfrealjobname{Diag} \begin{document} \beginpgfgraphicnamed{Diag-f1} \begin{tikzpicture}[node distance=3em] \node(G)[rectangle,fill=red!5,draw=red,text width=5cm]{}; \node(H)[below of=G]{H}; \node(H1)[left of=H]{H1}; \node(H2)[right of=H]{H2}; \draw[->](G.south)-|(H1.north); \draw[->](G.south)--(H.north); \draw[->](G.south)-|(H2.north); \end{tikzpicture} \endpgfgraphicnamed \end{document}     but I am not happy with the two arrows going from G.south to H1.north and H2.north. Because of the -| command, there is a spurious horizontal line. How can I achieve the same result without this annoying horizontal line? \draw[->](G.south)--(H1.north); is not a solution. There are available tricks but I may have missed an obvious solution here.


The new top bar is very unintuitive. Sure it works for all of us, because we're used to SO, but new users will be extremely confused by this new, less featured design.   New additions should add features, or remove unwarranted/deprecated features. This addition has removed many useful features, does not match the site layout at all, and is absolutely sure to increase the number of confused new users.  IMHO it should have many many more features in all of the empty unused space, not less. Use the space you have to your advantage.   EDIT: This is not a duplicate, we were specifically told to start new questions with the  tag in the original Meta post. Which is what I have done.

EDIT Dec 4 -  We're doing it live! Please post bugs or concerns as questions tagged [top-bar]  We have rolled out our 95% completed top bar for feedback.  Note:   We are still adding a few final features, so if you have a request for a feature that is not there you might hold off on that for a day or two Yes, the bar is black1. Also give that a day or two to sink in.   I also want to specifically address the meta/main/chat links.  I'm very aware that many of you like having the links at the top of the page and that this new version is different.  The thought process behind moving these links is that the "site switcher" should be an automatic place to go when you are on a site and want to go to another one. If you haven't already developed the muscle memory for these links, getting between them required a bit of a cognitive load: You must first decide that you want to switch sites and then you have to decide which area to go to to switch.  Also, we find that less familiar users aren't entirely clear what a standalone link that says "main" or "meta" actually does... Not to mention that it hurts my UX sensibilities that we are dynamically changing links in an element that should be fixed.  It is true that we have added a click in the process, but we have also removed a lot of clicks for other common actions that are much more frequent than switching between main and meta.  All I ask is that you give it a few days and see if the new "switch sites at the top left" paradigm grows on you.  What do you think?  1.  points out that technically it's not quite black.


How can you change the font of MATH and Text of a section of your document?  Using the default packages (LaTeX) or system fonts (XeLaTex)?

The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text?   How do I find the right name of the font? How do I select the font? How do I restrict the scope of the font change?     There are separate answers for different flavors of TeX (quick links):


I recently installed terminator in Ubuntu 14.04 TLS but when using the keyboard shortcut Ctrl+Alt +T it launches the terminator instead of the terminal. I'd like to regress back to having the shortcut launching the terminal but not sure how. Note that on the keyboard/Shortcuts/Launchers, the shortcut seems to be correctly mapped to 'Launch terminal'.   Many thanks!

How can I set the default terminal used in Unity?  I would like to use the Ctrl+Alt+T hotkey to start a non-default terminal. The default terminal is gnome-terminal.   Where can I change the default terminal value?


I was tutoring today and came across a question that I was incapable of explaining sufficiently. It stems from the following false string of equalities... $$-12=(-12)^1=(-12)^\frac{6}{6} =((-12)^6)^\frac{1}{6} =((-1)^6 12^6)^\frac{1}{6}=(12^6)^\frac{1}{6}=12$$ If anyone can explain the false step (Im assuming the third “=“), why this string of equalities is wrong, and how to avoid making it that would be most helpful for when I need to explain it again.

Where is the mistake? $$-1=(-1)^{2/2}=\left(\left (-1\right)\displaystyle ^2\right)^{1/2}=1^{1/2}=\sqrt 1=1$$


Is it a scam ?   Talking to a female person in the army, she was deported to Africa (which of course red flags came up). She told me her mother can't because she doesn't feel good so her commander is going to send money to my empty account which she wanted username, password, routing number, checking account number, and security question/answers.   She tells me it's not a scam and she has been scammed in the past on Facebook for winning 100,000 and then she deleted her account. What makes it even more weird is that every time I talk to her she mentions if the debit card will come in the mail. I have not spoken to her on the phone yet and she isn't allowed to speak unless she gets permission to use the phone from her commander.    Note: Supposedly she is In the Air Force she just got deported to Africa about a week ago.

I was recently talking to someone online and she said that she was in the Army and then she went on to tell me that she had a lump sum of 45,000$ co.i g to her but she needed my bank account routing number, asked for my social security number, and then told me that she was going to have the Army wire me the money into my account now my question;     Is this a scam?


Let $C$ be a curve in $\mathbb{P}^2$ over a field $K$ defined by an equation of the form $f: y^2 - x^3 - ax^2$ with $a \in K$.  I want to show that the function field of $C$ is isomorphic to $K(t)$.  The function field $K(C)$ is the fraction field of $K[C] = K[x,y]/(f)$.   Since we're quotienting by $f$, I think that every $g \in K(C)$ can be written as $a(x) + b(x)y$, where $a,b \in K(x)$. Therefore $K(C) \cong K(x)[y]/(f)$. (This coincides so far with a comment on a similar question .)  However, I don't know how to get the last part.  Is there an obvious isomorphism I'm overlooking, or do I have to use the equation of the curve somewhere explicitly? (I've shown that there exists a singular point on $C$, but I don't see any use of this fact.)

This is a problem about finding the normalisation of a quotient polynomial ring. So I have to find the integral closure of the ring in its field of fractions. The problem statement is as follows:     Let $A=k[X,Y]/(Y^2-X^2-X^3)$. Prove that the normalisation of $A$ is $k[t]$ where $t=Y/X$.   Can I do this by showing that the field of fractions $\text{Frac} A$ of $A$ is equal to $k[t]$, and subsequently showing that the field of fractions is normal? (This could be done by showing that $k[t]$ is a UFD?)  I am lost at calculating/determining $\text{Frac}A$, or similarly proving that $k[t]=\text{Frac}A$. Also, how do I show that it is normal?  I hope you can help!


Which spacing is correct? I've seen both being used. Plus, there isn't really anything saying which is correct.

How are sites in the Stack Exchange network, including Stack Overflow, officially branded? How are their names abbreviated? What conventions should be used in the FAQ?


I am wondering how, when on login to my terminal (Ubuntu 16) I see information like:  10 updates are available   6 updates are security updates   Where is this information retrieved from?  How can I get the same information from command line manually?  If this is a script that is run, where is it?

I'm working on some system admin automation using fabric and I'd like to be able to monitor the number of packages that need upgrading on a given machine. This is the same information that I can see when I first log in to a machine, i.e. this part:  35 packages can be updated. 22 updates are security updates.   Is there a command that I can run (preferably without sudo) that gives just that information?  I've looked at the apt-python bindings, but they seem to have a high learning curve and they also appear to be changed around a lot -- I'd like something that will work at least as far back as lucid without needing to do different things on different Ubuntu versions.


I wrote a sentence:     Figure 6(top) shows that....... while figure 6(bottom) shows....    Does this sentence look grammatically clear with using parentheses? Do I have to leave a space after number 6, before ()?

I often get stuck when forming or formatting a sentence with one or more parentheses. For example, I wrote an answer on another Stack Exchange site, in which I wrote:     ...whereas, my phone(xperia x10 mini)   comes with several widgets...   which, afterwards, I thought should be:     ...whereas, my phone (xperia x10 mini)   comes with several widgets...   But in some cases I feel the former way is correct, like:     ... phones which have a camera include   IPhone(5MP), Nokia N8(12MP), Nokia X6(3MP)....   Is there any rule for the placement of space after and before parentheses?


I am not familiar with the term Link baitingwhat is it and how can I use it in seo.   Is it useful?   can anyone describe it for me?

I have been wandering around some SEO sites this evening and have been seeing this term linkbaiting. The word bait kind of makes it not sound so great.  What exactly is linkbaiting and how does it differ from article marketing? From the gist of some of these descriptions I'm seeing, this is something fairly new, but it seems almost identical to article marketing. What am I missing?


I downloaded some textures recently and they come with several other files, used to dictate height, normal, roughness, and ambient occlusion. I was wondering how to use all these so they produce a nice final texture. Do I do this with the node editor? I'm in Cycles.

I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful.


The whole feature is pretty dandy. Letting a user edit your post and you can see the before and after with highlights on the changes. What does Stack Exchange use for this feature? I'm hoping its some sort of open source plugin.

Where is the open source project for the WMD editor used on this site?


I want to prevent SQL injection in Question2Answer.  This is how I store data in MySQL via HTML form. I know it's a security risk.  Examples -   $price = $_POST['price'];    OR  $price = array_key_exists('price', $_POST) ? $_POST['price'] : "";   and SQL query is -  $insertqry = qa_db_query_sub("INSERT INTO test_table (title, price) VALUES ('$title','$price')");   How should I post data in the latest PHP 7 and above version?  I think escaping strings is deprecated or outdated.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have a rooted device Samsung SM-T590 (Galaxy Tab A, 2018, 10.5, Android 8.1.0)  I have Root Explorer app installed  When I try to move some app from "/data/app" to "/system/priv-app" (using Root Explorer) the device reboots and nothing is being saved at "/system/priv-app"  I want to make my app a system one  This method works ok on many other devices   But something wrong with this device  Any ideas how to solve this problem?  I think system apps Device Security and Device Maintenance prevent me to do it.  I tried to delete them using Titanium Backup but phone reboots and they are installed again  Also there is Samsung Knox security technology  It's not a duplicate because this question is about Magisk and not SuperSu

I used Link2SD and Titanium too. Both of them failed. I want to convert a GPS Spoofer to system app. I tried to move it manually,  but in all 3 cases, the app is completely removed from the drawer. Is there any method?  I am on Samsung J200G rooted with TWRP flashing.


I don’t know how these work. I want a iron shovel that can break dirt and grass and planks that can be placed on dirt. How would I do this. Are the commands different on pocket edition? Because I looked it up and tried but they didn’t work.  /give @p minecraft:stone_shovel 1 0 {CanDestroy:[minecraft:dirt, minecraft:gravel, minecraft:soulsand]}   /give @p minecraft:gravel 1 0 {CanPlaceOn:["minecraft:stone","minecraft:stonebrick"]}

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


The code :      template< typename... TemplateArguments >     class Tuple     {}      template< typename ExposedType, typename... TemplateArguments >     class Tuple< ExposedType, TemplateArguments... > : public Tuple< TemplateArguments... >     {     public:          template < uint64_t ArgumentNumber >         typename std::enable_if< ArgumentNumber != 1, typename TypeHolder< ArgumentNumber, Tuple< ExposedType, TemplateArguments... > >::m_type& >::m_type Entry();          template < uint64_t ArgumentNumber >         typename std::enable_if< ArgumentNumber == 1, typename TypeHolder< 1, Tuple< ExposedType > >::m_type& >::m_type Entry();          ExposedType m_data;      };      template< uint64_t ArgumentNumber, typename ExposedType >     class TypeHolder     {};      template< typename ExposedType, typename... TemplateArguments >     class TypeHolder< 1, Tuple< ExposedType, TemplateArguments... > >     {     public:          typedef ExposedType m_type;      };      template< uint64_t NumberOfArguments, typename ExposedType, typename... TemplateArguments >     class TypeHolder< NumberOfArguments, Tuple< ExposedType, TemplateArguments... > >     {     public:          typedef typename TypeHolder< NumberOfArguments - 1, Tuple< TemplateArguments... > >::m_type m_type;      };   And the implementation of the entry methods :      template< typename ExposedType, typename... TemplateArguments >     template < uint64_t ArgumentNumber >     typename std::enable_if< ArgumentNumber != 1, typename TypeHolder< ArgumentNumber, Tuple< ExposedType, TemplateArguments... > >::m_type& >::m_type Tuple< ExposedType, TemplateArguments... >::Entry()      {         Tuple< TemplateArguments... >& baseTuple = *this;          return ( baseTuple.EntryL< ArgumentNumber - 1 >() );     }      template< typename ExposedType, typename... TemplateArguments >     template < uint64_t ArgumentNumber >     typename std::enable_if< ArgumentNumber == 1, typename TypeHolder< 1, Tuple< ExposedType > >::m_type& >::m_type Tuple< ExposedType, TemplateArguments... >::Entry()      {         return ( m_data );     }   The point is to create a tuple object that has a method that returns a reference to the required element, when the use should be like this :  Tuple< int, int > tuple_1( 8, 10 );  tuple_1.Entry< 1 >() = 14;   When trying to compile this I get the error :  error: expected primary-expression before ‘)’ token  return ( baseTuple.Entry< ArgumentNumber - 1 >() );                                                 ^   Can anyone help with this problem? or to show the right way how to do this?  Thank you!!  Edit:  It works if I add true :  return ( baseTuple.EntryL< ArgumentNumber - 1 >( true ) );   Why??

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


This is a necessary step in a problem I am working on.

A little bird told me that if $2^n+1$ is prime, then $n$ is a power of $2$. I tend not to trust talking birds, so I'm trying to verify that statement independently.  Suppose $n$ is not a power of $2$. Then $n = a \cdot 2^m$ for some $a$ not a power of $2$ and some integer $m$. This gives $2^n+1 = 2^{a \cdot 2^m}+1$. Now I suspect there's a way to factor that, but I don't see how. Can someone give me a hint?


I'm using the babel package along with the greek language and I want to insert a List of Listings in my document.  I used  \addcontentsline{toc}{section}{\numberline{}Κατάλογος Αλγορίθμων} \lstlistoflistings \cleardoublepage   and the output is   I don't care about the listings caption not showing up correctly, but I want to change the title "Λιστινγς" to something else like "Κατάλογος Αλγορίθμων" (which translates to "Table of algorithms").  Is that possible?

I'd like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from "Figure" to "Fig.", and my \tableofcontents sectioning heading shouldn't read "Contents", but "Table of Contents". How can I do that?  \documentclass{article} % \usepackage[english]{babel} \begin{document} \tableofcontents \section{foo} \begin{figure}[h] \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure} \end{document}


Can an ArcGIS Tool have a drop down field with unique values derived from a list? For example, user selects a table, the tool will then find all of the values in field X and populate a drop based on this.   I've been playing with parameters but can't get anything to work. The closest I got was is creating a drop down with the field names.

I have a folder and it contains two feature classes, e.g., a.shp and b.shp. The script tool created has two parameters. The first one is the model location, and the second one needs a feature class (a.shp), as shown in the below picture.  What I really want is every time when I set up the model location for the first input, the second input will automatically find the a.shp as the input rather than the user needs to choose a.shp from that folder. I noticed that the dependency is probably what I really need, but there is no code example. Any suggestions?   I am using ArcGIS 10.3.1 Advanced License.


I'm new to machine learning and currently learning it, and I do not quite understand the topic of continuous data transformations for machine learning. If I have 6 pandas columns of continuous data, for instance: [age, weight, mean_blood_glucose, std_blood_glucose, skew_blood_glucose, kurt_blood_glucose], when I apply a Box-Cox Log Power Transform to mean_blood_glucose since it's heavily skewed, would I also have to apply the same transformation to all other continuous data, or is it alright to use different transformations based on the skewness and outliers of a specific column? Same with scaling, for instance, Normalization or using MinMax scaler, is it good to scale every feature between <0; 1>? Also, what about the columns X_blood_glucose?.. They're all related, is there a special approach to dealing with data that are strongly mathematically related in such way?

I assume it is OK to mix different data transformations in the same analysis. I've had to transform some variables to squared and some to cubed in order to meet normal distribution requirements. I'm assuming that it's OK to then use the transformed variables together for regression analysis?


I cant break blocks in survival mode in minecraft.  I know you hold the mouse button to break I have had minecraft for 6 yrs, and all the sudden I cant break blocks. It just reappears after I break it.   Also, I have optifine, but when I went into creative I could break and place blocks.    I have also tried, to change all the graphics settings and it still did not work!

I'm playing on a Survival world with cheats on, "easy" difficulty, and at night in-game. I didn't have a sword or anything to make a sword with, and I was starving, so I switched to Creative to give myself a stack of food and a bed to set my spawn point. When I switched back to Survival, I couldn't destroy or place blocks. I'm on single player, and my Internet is fine, and I can destroy blocks still if I switch to creative. I've tried resetting the button one, and reloading the map, and it still doesn't work. I've even tried deleting everything I gave myself in Creative. This happened before on a different world and I ended up deleting it.  This only happens on this world. How do I fix it?  If I know I'm in the correct game mode, what else can cause this?  Are there different causes in multiplayer?


I'm trying to copy a byte array to a struct:  Actual bytes:  00000000 | ff 53 4d 42 72 00 00 00 00 08 01 c8 00 00 00 00 | .SMBr...........   Destination structure:  typedef struct {     uint8_t protocol[4];     uint8_t command;     uint32_t status;     uint8_t flags;     uint16_t flags2;     uint16_t pidHigh;     uint16_t somethingElse; } MyStruct;   But for some reason, bytes in myStruct.status are not what they're supposed to be:  printf("%x", bytes[4]);   => 72          // Ok  printf("%x", myStruct.command);   => 72          // Ok  printf("%02x%02x%02x%02x", bytes[5], bytes[6], bytes[7], bytes[8]);   => 00000000    // Ok  printf("%"PRIX32, myStruct.status);   => C8010800    // What?! Why did it take the next 4 bytes... and reversed them?   Code used to copy those bytes:  MyStruct myStruct;  memcpy(&myStruct, bytes, 16);   This code is running on ARM (iPhone 5), which might explain the little-endianness of the output, but it doesn't explain why there's a +4 bytes offset in the bytes that've been copied.  What's going on here?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


Is there currently a generic command that will "pivot" input.  e.g.  #labeled.file name: bob title: code monkey  name: joe title: pointy haired   is converted to:  name title bob  code monkey joe  pointy haired   and vice-versa

I have a file with the lines like below.  title1:A1 title2:A2 title3:A3 title4:A4 title5:A5  title1:B1 title2:B2 title3:B3 title4:B4 title5:B5  title1:C1 title2:C2 title3:C3 title4:C4 title5:C5  title1:D1 title2:D2 title3:D3 title4:D4 title5:D5  How can I achieve this?   title1    title2     title3    title4 A1         A2         A3         A4 B1         B2         B3         B4 C1         C2         C3         C4 D1         D2         D3         D4


so I wont to access my Ubuntu 18 server in WinSCP becouse I need to upload some files, but I don't know how to enable this!  Can anybody help me out?

How can I SSH with a remote server so I can browse files and edit them? I have a username and password to use.


There is an error during install jre1.8.0.72. How should I remove it? I get an error during purge:  sudo apt-get purge jre1.8.0-72   Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED:   jre1.8.0-72 0 to upgrade, 0 to newly install, 1 to remove and 26 not to upgrade. 1 not fully installed or removed. After this operation, 126 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 454719 files and directories currently installed.) Removing jre1.8.0-72 ... /var/lib/dpkg/info/jre1.8.0-72.postrm: line 586: /usr/sbin/alternatives: No such file or directory dpkg: error processing jre1.8.0-72 (--remove):  subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing:  jre1.8.0-72 E: Sub-process /usr/bin/dpkg returned an error code (1)

When I try to remove Java with sudo apt-get remove jdk1.8.0-40 I get this:    Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   jdk1.8.0-40 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 245 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 231488 files and directories currently installed.) Removing jdk1.8.0-40 (1.8.040-1) ... find: `/usr/java/*': No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: No such file or directory dpkg: error processing package jdk1.8.0-40 (--remove):  subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing:  jdk1.8.0-40 E: Sub-process /usr/bin/dpkg returned an error code (1)   Output of  ls -1 /var/cache/apt/archives/*jdk*:  openjdk-7-jre_7u75-2.5.4-1~trusty1_amd64.deb openjdk-7-jre-headless_7u75-2.5.4-1~trusty1_amd64.deb   Output of sudo dpkg --purge --force-all jdk1.8.0-40:  (Reading database ... 231488 files and directories currently installed.) removing jdk1.8.0-40 (1.8.040-1) ... /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: No such file or directory dpkg: error processing package jdk1.8.0-40 (--purge): subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing:  jdk1.8.0-40   When trying the edit I get this:  (Reading database ... 231488 files and directories currently installed.) Removing jdk1.8.0-40 (1.8.040-1) ... /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: Permission denied /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: Permission denied dpkg: error processing package jdk1.8.0-40 (--remove):  subprocess installed post-removal script returned error exit status 126 Errors were encountered while processing:  jdk1.8.0-40 E: Sub-process /usr/bin/dpkg returned an error code (1)


I have a project setup like this (tell me if it's wrong):   project/      module_1/          __init__.py          foo.py      module_2/          __init__.py          bar.py   In foo.py:  from module_2 import bar   I get:  ImportError: No module named module_2   However, if I change my project setup to this:   project/      module_1/          __init__.py          foo.py          module_2/              __init__.py              bar.py   it works.  How do I fix this?  Thanks

Imagine this directory structure:  app/    __init__.py    sub1/       __init__.py       mod1.py    sub2/       __init__.py       mod2.py   I'm coding mod1, and I need to import something from mod2. How should I do it?    I tried from ..sub2 import mod2 but I'm getting an "Attempted relative import in non-package".  I googled around but found only "sys.path manipulation" hacks. Isn't there a clean way?      Edit: all my __init__.py's are currently empty    Edit2: I'm trying to do this because sub2 contains classes that are shared across sub packages (sub1, subX, etc.).  Edit3: The behaviour I'm looking for is the same as described in  (thanks John B)


I'm using Intellij Java 2016.2.2 and Maven to create a very simple Java console application.  I want to add an external library, so I add my dependency in Maven like this:  <dependency>     <groupId>jline</groupId>     <artifactId>jline</artifactId>     <version>2.12</version> </dependency>   It works fine when I run it in the IDE, but not in an external console (I have the following error: java.lang.NoClassDefFoundError).  I checked and for some reason, the external JAR is not added in the JAR I just generated. I also tried many things in "File -> Project Structure", but still not working...  I just want to build my JAR with my dependencies in it, so I can simply run my application in a console using:  java -jar myproject.jar   How can I do that? Thanks for your help!

I want to package my project in a single executable JAR for distribution.  How can I make a Maven project package all dependency JARs into my output JAR?


As I take it autoencoders are pretty much fully-connected multi-layer-perceptrons which try to reconstruct the input. So the aim should be to learn "an encoding", a distributed representation for some data set...but I don't really get the benefit?  I mean, if I have some MLP with an input layer of 5 neurons, a hidden layer of 3 neurons and an output layer of 5 neurons and e.g. an input like (1, 2, 3, 4, 5) the autoencoder should deliver the output (1, 2, 3, 4, 5)?! So why do I need the autoencoder at all?  For some "classic" MLP the objective maybe is to classify some data, so the MLP actually calculates "something"...but the autoencoder always tries to reconstruct its input, so what is the autoencoder calculating? Pretty much nothing?

Recently, I have been studying autoencoders. If I understood correctly, an autoencoder is a neural network where the input layer is identical to the output layer. So, the neural network tries to predict the output using the input as golden standard.  What is the usefulness of this model? What are the benefits of trying to reconstruct some output elements, making them as equal as possible to the input elements? Why should one use all this machinery to get to the same starting point?


I have an issue I'm not sure how to work out. On Ubuntu 14.04, after sleeping the keyboard will be non-responsive most of the time on the lightdm login screen. It's not completely non-responsive: I can still Ctrl+Alt+F1 into a virtual terminal to restart the lightdm service and everything is alright. However, obviously anything I left behind when I originally put the laptop to sleep has now been washed away, somewhat defeating the purpose.  Where do I look to figure out what the problem might be?  Edit:  As it turns out, the original solution I found does not solve the problem. It still recurs fairly frequently (without reinstalling the input package over and over again). In this case the mouse and keyboard work fine, except for typing a password into the box. This can be solved simply by highlighting some other GUI element, for example I click the power button in the top right. After that the text input works fine again. It's a bit bizarre...

I have a Toshiba Satellite S55-A5154 with 14.04 installed.  Every time it resumes from being suspended, neither the keyboard nor mouse work.   What can I do to fix this or provide you with more info?


I am getting a cell from excel sheet and then I have to set its value.  XSSFSheet sheet = workbook.getSheetAt(0);  XSSFCell resultCell=null;   if(   sheet.getRow(1).getCell('A')==null) { sheet.getRow(1).getCell('A').setCellValue("heh");}   But this gives a null pointer exception.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I just wanted to check because I've encountered various distinctly different assertions.  I was originally taught that focal length referred to the optimum distance from subject| ←→|lens, where sharpest focus is achieved.  More recently I'd come across information from macro photographers claiming that it's actually subject| ←→|sensor, but dependant on the lens.  Currently I'm reading about geometric optical engineering & the physics of light, reflection, refraction, etc. Material that seems to imply that the subject is not involved; it's simply the distance from the centre of the lens| ←→|sensor (or eye, or wherever the image is being cast).

What is focal-length?  Are focal-length and zoom synonymous?  How does the focal length of a photo affect it? Are there common uses for different focal lengths, and how can I decide what to use when?