Build rowSums in dplyr based on columns containing pattern in their names

My data frame looks something like this  USER OBSERVATION COUNT.1 COUNT.2 COUNT.3 A    1           0       1       1 A    2           1       1       2 A    3           3       0       0   With dplyr I want to build a columns that sums the values of the count-variables for each row, selecting the count-variables based on their name.  USER OBSERVATION COUNT.1 COUNT.2 COUNT.3 SUM A    1           0       1       1       2 A    2           1       1       2       4 A    3           3       0       0       3   How do I do that?


Can I run CAT5/6 cables parallel to electrical cables?

I am building a new house and am planning to hardwire network cables into each room.   Can I run CAT5/6 cables parallel to electrical wires without introducing any general safety issues or losing much in connection quality?  Wiring runs for up to 25 metres from patch panel and distribution board in garage to rooms.   My research indicates that is should be fine if they are in separate conduits or if the CAT cables are shielded.


What is a non-vanishing tangent vector field?

I’m trying to solve some exercises from Munkres’ Topology book.   In section 58, exercise 10-(d) asks to prove the following     If $S^n$ has a non-vanishing tangent vector field $v$, then $n$ is odd. (Hint : If $v$ exists, show that the identity map is homotopic to the antipodal map)    I know what ‘non-vanishing’ and ‘vector field on $S^n$’ are.  A vector field on $S^n$ is a continuous map $S^n \to R^{n+1}$.  A non-vanishing vector field is a vector field which has no zeros.   But I’m not familiar with ‘tangent’.  I think Munkres didn’t write what it is.   Maybe $v$ is a non-vanishing tangent vector field on $S^n$ means $v(x)$ and $x$ are orthogonal? So $v$ has a tangent vector as its function value continuously?   If it is right, how can I find a homotopy between the identity map and the antipodal map?  Thanks!


What do all the ways to express past events mean, and when is one better than the others?

I’d like to clear convey that the documents were all “sent on this day, the twenty-third of August”, which is today as of this writing. When would you use each of these constructions?   I sent all the documents 23 August. I have sent all the documents 23 August. I had sent all the documents 23 August.   Or is there a better way to write it so that it reads more clearly and will be better understood?  What about:   I did send all the documents 23 August.


Why is $\frac{\log 8}{\log 3} = \frac{\ln8}{\ln3}$

Need help clarifying why:   $$\frac{\log 8}{\log 3} = \frac{\ln8}{\ln3}$$  To my understanding $\ln$ implies $\log$ base e and $\log 8$ implies $\log$ base $10$ of $8$. Kind of confused how that is equivalent.  Thanks


I use acronym package in my Latex file. Strangely, some of its commands, like \Ac are not defined when I compile my file. The \ac command works fine though.  \documentclass[12pt]{extarticle} \usepackage[printonlyused]{acronym} \usepackage{multicol}  \title{Physical Layer Security}  \begin{document} \maketitle \Ac{BER} is a metric.   \section{Acronyms} \begin{multicols}{2}     \begin{acronym}              \acro{BER}{bit-error rate}     \end{acronym} \end{multicols}  \end{document}   And here is the error I see:  ! Undefined control sequence. \Ac


git how to remove untracked files from the pack file

I removed a folder\files from my Git repo by running  git rm -r --cached Application01   to untrack all the files in that folder and reduce the size of the Git repo.  The problem is that the pack file .git/objects/pack/*.pack is still holding the files I removed\untracked.  How can I completely remove all untracked files and lose all their history and make the pack file smaller?  Thanks


I don't understand clearly what is meant by Noetherian and Artinian modules.  I tried explaining it to myself using the definitions but it is still not clear. Can someone please help explain it to me using examples etc.  Thank you!


Suppose $\mu_n$ is a sequence of measures on $(X, \mathcal{A})$ such that $\mu_n(X) = 1$ for all $n$ and $\mu_n(A)$ converges as $n \to \infty$ for each $A \in \mathcal{A}$. Cal the limit $\mu(A)$. Does it follow that $\mu$ is a measure?


Ubuntu 13.04 apt-get and software center crashes after trying to install google-talkplugin

For some reasons, the installation of Google talk failed and now I cannot install anything. First when I tried apt-get, I was asked to run this command:  sudo dpkg --configure -a   which went well, but still I get the following error when I try to install anything:  sudo apt-get install r-base Reading package lists... Done Building dependency tree        Reading state information... Done E: The package google-talkplugin needs to be reinstalled, but I can't find an archive for it.   If I try to reinstall google-talkplugin, Ubuntu Software Center cannot even start! how can I fix this bug?


The least count of a stop watch is 0.1s. The time of 20 oscillations of the pendulum is found to be 20s. The percentage error in the time period is?

I don't know how to start.  L.C=0.1 s n=20  T=20  then for 20 oscillation=20 seconds time period for 20/20*1/10=0.1 time period (1-0.1)/0.1*100=90% (wrong)


How to extract a string regular expression using java?

I wanted to extract what ever is within the below tokens   ${FNAME} ${LNAME} ${123}      FNAME LNAME 123.     I tried the below.  public static void main(String[] args) {      String input = "{FNAME} ${LNAME} ${123}";      Pattern p = Pattern.compile("\\$\\{");     Matcher m = p.matcher(input);       while (m.find()) {         System.out.println("Found a " + m.group() + ".");      }  }   Ended up wrongly. Beginner to reg expressions.


What kind of bike do I have? Serial number is VF-8S3-20.5-9

BMX frame has two holes on front tube for forks.


Is there any way to spawn the Enderdragon in Minecraft without mods of any kind?

I need a way to spawn the Enderdragon boss mob in Minecraft without mods. I cannot get mods, heck, I can't even get texture packs, and I wan't to have an epic battle between Withers and Enderdragons in Vanilla Minecraft. I don't play in a snapshot and I don't have the Horse update.


This is main.html                       And this is frame.html
0123456798
            Error: Uncaught TypeError: Cannot set property 'innerHTML' of null   Why did not work , AND how can I change id="test" text


Why aren't logarithms defined for negative $x$?

Given a logarithm is true, if and only if, $y = \log_b{x}$ and $b^y = x$ (and $x$ and $b$ are positive, and $b$ is not equal to $1$), are true, why aren't logarithms defined for negative numbers?  Why can't $b$ be negative? Take $(-2)^3 = -8$ for example. Turning that into a logarithm, we get $3 = \log_{(-2)}{(-8)}$ which is an invalid equation as $b$ and $x$ are not positive! Why is this?


Prove that the following statements are equivalent:   If $A$ is a non empty set, there exists a function $f:\mathcal{P}(A) \setminus \{\emptyset\} \rightarrow A$ such that $f(X) \in X$ for every $X \in \text{dom}(f)$. Every non empty family $\mathfrak{F}$ of sets such that any two distinct sets of the family are disjoint has a set $X$ such that $|X \cap F|=1$ for every $F \in \mathfrak{F}$.   Now, this is how I've done $1 \Rightarrow 2$:  We notice that for every non empty family $\mathfrak{F}$ of disjoint sets we have that: $$\mathfrak{F} \subseteq \mathcal{P} \left(\bigsqcup _{F \in \mathfrak{F}} F \right) \setminus \{\emptyset\}$$ If we set $A=\bigsqcup _{F \in \mathfrak{F}} F$, we have (for hypotesis) a function $f$ such that $f(Y) \in Y$ for every $Y \subseteq A$. So, in particular, we have that $f(F) \in F$ for every $F \in \mathfrak{F}$, and also that $f(F) \notin F'$ for every $F' \in \mathfrak{F}$ such that $F' \neq F$. So, if we consider the set $X=\{f(F) \mid F \in \mathfrak{F}\}$, we obtain the thesis.  For $2 \Rightarrow 1$ I really don't know what to do. Any suggestions?


The screen goes blank and shows logs me out immediately a while after using multiple monitors.   dmesg shows:  [33786.908877] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting [33786.908901] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 6DD2 (len 254, WS 0, PS 4) @ 0x6DE0 [33786.908910] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 673E (len 78, WS 12, PS 8) @ 0x6777   lspci | grep -E 'VGA|Display' shows:  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun  XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] (rev 83)    explains exactly my situation. But I don't have /etc/modprobe.d/radeon.conf file.


How closely can a game legally resemble another?

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


In ZFC, is there a set of objects that satisfy x=x

Is there a set of objects that are equal to themselves? In other words, is this true: $$\exists y \forall x (x\in y \iff x=x)$$  Intuitively, It seems to be the set of all sets and hence false. How can I prove this?


I have a problem  with this code in terminal:   sudo apt-get install gnome-shell   It's not working  Look at this error  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 should i do to install gnome3?    Thank you for that link.   I typed this code in terminal:  sudo rm /var/lib/apt/lists/lock   And this:  sudo rm /var/cache/apt/archives/lock   And my previous problem has solved.  But when I type this in terminal again:  sudo apt-get install gnome-shell   It's doesn't work again!  Look at this error:  Reading package lists... Done Building dependency tree     Reading state information... Done gnome-shell is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 219 not upgraded.   How can I use gnome3 interface?


Question regarding the 90/180 days Schengen rule and national (type D) visas

I am a citizen of the Republic of Macedonia.  This summer, I spent 7 days in Croatia and a little bit over 3 months in Switzerland.  I had a Swiss national visa (type D) valid for 3 months, as I performed an internship during that period.  The "little bit over" (just a few days) period I stayed there as a tourist.  In other words, I spent around 10 days as a tourist in the Schengen area, and 3 months on a type D visa.  My question now is: do the days spent on a type D visa count towards the 90/180 days rule?  I would like to travel to the Schengen area soon (as a tourist), but I'm afraid that wouldn't be possible if those 3 months counted toward the 90/180 days rule.


I need to rename files like   filename-367519.mp4  otherfilename-367515.mp4 andotherfilename-377530.mp4   to   367519-filename.mp4 ...


How to prove that $\left(1+\frac 1 n\right)^n < \left(1+\frac 1 {n+1}\right)^{n+1}$?

How would one prove the following:$$\left(1+\frac 1 n\right)^n < \left(1+\frac 1 {n+1}\right)^{n+1}$$  This is taken from the book challenge and thrill of precollege mathematics.


How do I connect to an .mdf (Microsoft SQL Server Database File) in a simple web project?

Specifically, in VS 2008, I want to connect to a data source that you can have by right-clicking on the automatically-generated App_Data folder (an .mdf "database"). Seems easy, and it is once you know how.


I have a MacBook Air 13 inch laptop since 2011.  Quite recently the screen had problems.  It start flickering, changing colors, and vertical lines appeared in the middle of the screen.  All these are starting when I move the screen backwards, forward or when I am lightly pressing with the fingers the top of the screen.  This is also the only way to re-adjust to normal operations. Any recommendations?


PNG animation render, saving images without a file type

So this is probably a simple solve and most likely due to me adding a setting that I shouldn't have.  So for all of my other animations I have done, I render each step as a PNG image and then use the Image Sequencer to render the final animation, and it works well. But this time around, all of the rendered images are not saved as PNGs but rather saved without a file type but can still be opened via Chrome.  Any ideas how I can get Blender to save these renders as a PNG?  Specs: GeForce GTX 1060 3GB, Windows 10, intel i7, 8GB RAM, Blender 2.79


--Setup, actual queries after the space --create table fltrind (a integer,b integer) truncate table fltrind DROP INDEX fltrind.nf DROP INDEX fltrind.f DECLARE @i integer SET @i=0 while @i<100 BEGIN INSERT INTO fltrind(a) values(@i) SET @i=@i+1 END INSERT INTO fltrind(a,b) values(9000,0900)  insert into fltrind(a,b) select top 100000 f1.a,f1.b from fltrind f1 , fltrind f2  create nonclustered index nf on fltrind(b) INCLUDE(a) create nonclustered index f on fltrind(b) INCLUDE(a) where b is not null  UPDATE STATISTICS fltrind WITH FULLSCAN  select a from fltrind where b is not null  DROP INDEX fltrind.nf  UPDATE STATISTICS fltrind WITH FULLSCAN  select a from fltrind where b is not null   Looking at the query plan, the filtered index is not used as long as the non-filtered index is present.  Any idea why, and how can I get it to use the filtered index?  Dropping the non filtered index nf makes the optimizer use the filtered index f.  In fact, increasing the rowcount so that >10% of the rows qualify results in a table scan when the non filtered index is dropped.


Load admin bar without wp_head or wp_footer

Is there any possible way to load admin bar without wp_head or wp_footer? If no, so maybe there is a way to load wp_head() or wp_footer() to catch only admin bar functions, styles and scripts? Is this even possible in worpdress?  For example: wp_head(load_admin_bar()); or something like that.  Thanks for any answers.


Interpretation of LASSO regression coefficients

I'm currently working on building a predictive model for a binary outcome on a dataset with ~300 variables and 800 observations. I've read much on this site about the problems associated with stepwise regression and why not to use it.  I've been reading into LASSO regression and its ability for feature selection and have been successful in implementing it with the use of the "caret" package and "glmnet".   I am able to extract the coefficient of the model with the optimal lambda and alpha from "caret"; however, I'm unfamiliar with how to interpret the coefficients.    Are the LASSO coefficients interpreted in the same method as logistic regression? Would it be appropriate to use the features selected from LASSO in logistic regression?   EDIT  Interpretation of the coefficients, as in the exponentiated coefficients from the LASSO regression as the log odds for a 1 unit change in the coefficient while holding all other coefficients constant.


Chinese Remainder Theorem solvability for non-coprime moduli

I'm trying to learn how to use the Chinese Remainder Theorem (CRT), and in order to give some context:  We search for all $x ∈ Z$, where $Z$ is the set of integers.  $x≡a_1\pmod{m_1}$  $x≡a_2\pmod{m_2}$  ...  $x≡a_k\pmod{m_k}$  The easy case (which I can solve) is if all $m_i$, where $i=1,2,...,k$ are pairwise coprime.  Example:  $x≡4\pmod 5$  $x≡5\pmod 6 $  $x≡3\pmod 7$  Then the first equation is satisfied iff $x=4+5s$, for some $s ∈ Z$.  These $x$ also satisfy the second equation iff $4+5s≡_6 5 ↔ -s≡_6 1 ↔ s=-1+6t$, for some $t ∈ Z$. Thus $x=4+5(-1+6t)=-1+30t$.  Lastly, these $x$ also satisfy the third equation iff $-1+30t ≡_7 3 ↔ 2t ≡_7 4 ↔ t ≡_7 2 ↔ t = 2+7n$, for some $n ∈ Z$. Thus $x=59+210n$.  Now to my issue, I have the problem:  $x≡2\pmod 4$  $x≡3\pmod 5$  $x≡5\pmod 6$  Here $\gcd(4,6)=2$, so they are not coprime and I don't know how to solve this. Can someone please solve it and explain why the problem becomes more difficult to solve when $m_i$ are not pairwise coprime.


Qn: If the product of two integers is  $2^7 \cdot 3^8 \cdot 5^2 \cdot 7^{11}$ and their greatest common divisor is $2^3 \cdot 3^4 \cdot 5$, what is their least common multiple?  I have issue with this question please help me solve it.  I tried assuming that lcm is $x$ =. Then,        Gcd $\cdot x = 2^3  \cdot 3^4 \cdot 5x$. And, product factors /Gcd $x$


So it's given this indefinite integral $$\int \frac{1}{\sin ^{\frac{1}{2}}x \cos^{\frac{7}{2}}x}dx$$  Is there anyone could solve this integral? Thanks in advance.


Dynamically find Chrome on end-user's Windows machine

So, I have searched everywhere I can think of for this, and can't figure it out. I'm hoping the answer is very simple. Here is the situation:  I am creating a shortcut link for an end-user. We will call it "shortcut.lnk". We can assume that they do have Chrome installed and that "myFolder" is on their Desktop. The key is that this app needs to open up in Chrome, not the user's default browser. Currently, I have the following as the "Target" of shortcut.lnk:  %ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe --app=%USERPROFILE%\Desktop\myFolder\path\to\app.html   This works on the 3 machines I have tested it on. However, I have noticed from research that Chrome sometimes installs in AppData or other locations instead of Program Files.  My question is this, is there a way to dynamically determine where Chrome is installed on their Windows machine in a way that I can attach it to the "Target" of shortcut.lnk?


So, I've been rewatching Star Trek:TNG, and  is there occasionally.  He's a Chief in TNG, and he's a Chief in DS9.  Now, I was in the Navy, and I've always assumed that rankings in the Star Trek universe were based on the Navy.  But I find it difficult to think that in the 14 years (7 for TNG and 7 for DS9) that Miles would never have been promoted.  Is there any in universe reason given for this?


Is there a time limit to cover an open short position?

Let's say there exists a stock X that I believe will soon embark on a general downward trend. I am interested in shorting X and decide to sell some quantity of X.  I see my short position as being a long term view of the stock. This is not generally the case where one holds a short position in a stock.  I understand that if my view of the stock also become the general market view of the same stock that there may be many people wanting to hold short positions of X. How would this affect me?  To summarize:   Is there a time limit by which I need to cover a short position? If the answer to the above is no, what are the downsides to holding a short position for a longer time frame?


I just read online that, not too long ago,      Jane Foster    was shown worthy to wield Thor's hammer and is now being called Thor as a result. What events led to this? Did the original Thor urge her to attempt lifting the hammer, or did she just want to see if it was possible?


Homemade Marinara Sauce: Shelf-Life and Reheating Question

I just made marinara sauce yesterday, sauced some pasta with some and put the rest in a mason jar. How long can I expected this to stay fresh? It's completely sealed-off in a mason jar, I used canned tomatoes and fresh ingredients to make it.  Also, was just making some fresh pasta and accidentally pre-heated all of the marinara in the microwave enough that it began steaming: can I seal-off any that I don't use and save for a later date?  For reference, Marinara and/or Tomato Sauce is not listed in the "storage guide."


Prove that $\int_a^bf(x)dx+ \int_{f(a)}^{f(b)} f^{-1}(y)dy=bf(b)-af(a)$

Let f' be continuous and positive on [a,b].  Prove that: $\int_a^bf(x)dx+ \int_{f(a)}^{f(b)} f^{-1}(y)dy=bf(b)-af(a)$  I've got the later steps of this covered using integration by parts, and I know that I need to use substitution on the integral containing the inverse.  My question is: how do I set up the substitution on $\int_{f(a)}^{f(b)} f^{-1}(y)dy$ to get it in terms of f(x)?


Does the the UK rule, to apply for a visa up to 3 months before travel, start from the date of the online application or from the date of the appointment?


equivalence, equality and pronumerals, are we just lazy?

I was thinking about how we should interpreting a simple mathematical expression and the concept of congruence and equality. When working with algebra, we don't really make a distinction between the two and that is a huge source of confusion for people who are first learning mathematics.  Would you say that there is a logical distinction between equivalence and equality,  and should we make it clear to learners? I'd define the two as:   equality: If $A = B$, then the left is the same as the right equivalence: if $A\equiv B$ then expression A always produces the same output as expression B   Equivalence  Consider the expression:  $$ \left|{1\over x- 2}\right| $$  I'd say it's equivalent to:  $$ {1\over\sqrt{x^2-4x+4}} $$  Because no matter what I decide to choose as the input value for $x$, I'd always get the same output for each expression. So I'd write this as (this is a non-standard use, I'm just using this as another symbol):  $$ \left|{1\over x- 2}\right| \equiv {1\over\sqrt{x^2-4x+4}} $$     Naively, the use of equals here suggests that you can solve for $x$ in this expression.    Equality  If I replaced the equivalence above for an equality and asked somebody to solve for $x$, they'd quickly end up reducing the expression to $0=0$, because they are equivalent. If however, I told them to find $x$ in the following expression over the real numbers:  $$ \left|{1\over x- 2}\right| = {x\over 3} $$  We can actually make progress towards this by working with the left hand side and the right hand side separately, we can say:  $$\left|{1\over x- 2}\right| \equiv {1\over \sqrt{(x- 2)^2}} $$  Because these are equivalent, we can replace the left for the equivalent expression.  $$ {1\over \sqrt{(x- 2)^2}} = {x\over 3} $$  We can substitute an expression for any equivalent expression. In the case of a simultaneous equation for example, we can also substitute an equal expression too.  Equality as an Operator  I also consider equality to be similar to operators like $+, -$, etc. The = operator says "this statement is true" (similar to the programmers ==). So writing something like this becomes valid too (I've just put the brackets in to make this explicit):  $$ \left(\left|{1\over x- 2}\right| = {x\over 3}\right) \equiv \left({1\over \sqrt{(x- 2)^2}} = {x\over 3}\right)  $$  Then it could be explained that instead of writing the equivalence sign, we alternatively just put things on a new line. This would force learners to use equivalence when they mean equivalence, and equality when they mean equality.   Summary   Is there a good reason why we don't make a distinction between $=$ and $\equiv$, or does it just come down to laziness?  In a first course on algebra, how would you reconcile the two different uses of the = sign that I've outlined above?


I want the "apache" user to own a dir but other users are adding via WinSCP

This is a fairly simple problem to explain but it is really annoying me and I could do with some advice. How to I ensure that apache is user : group owner of a dir no matter who uploads to it..   the reason is that WinSCP is used to upload files to /usr/local/bin/builder and this sets the user to root and the group to root. Don't cry I am logging in as root on WinSCP because it is fine for my purposes. I am happy with it. I understand what I am doing by using it and it's my choice to use it. I have 100+ servers and I don't want to introduce too much complexity so I keep it to this: root logs in on WinSCP if you don't think/want/agree that's great but this question is not for you.   I then have to manually login on putty as root and # chown -R apache:apache /usr/local/bin/builder in order for apache to have the permissions it needs to this dir. Which apache must or it will cause great evil to befall the server, which will make me have to stop going out or get back into the car at the cinema when I get customers saying the message of doom has reappeared (and I don't go out enough).  Now.   How do I make it so that at all times chown -R apache:apache /usr/local/bin/builder is true? the only way I feel I can do it is using  to imediately run a script but my heart says there must be a better way - I have also thought of maybe adding some sort of script within WinSCP but I have no idea how to do this and seems rather eventful. One last little addendum:   (PS: crontab-as-a-solution is a joke beyond epic proportions and I won't countenance it, it makes me cringe you considered it! shame on you!)


This also came up on either a BBC or CBC science program, but not as a linguistically-oriented discussion.  Over the last two or three years I've noticed a lot more people starting a sentence with "so": "so when we take the ...", "so I have this ...", "so the basic idea ..." and (uh) so on.  What is "so" when a sentence begins with it? When did it start? Is it just a "pause" word (and is there a word for that)? Is it grammatically correct? Am I the only one that finds it annoying?  Edit: Much of its usage in scientific discussions is as a "therefore".


Prove that there exists a polynomial p(x) with coefficients belonging to the set {-1, 0, 1} such that p(3) = n, for some positive integer n.   I started off my proof by noticing that n = either 3k or 3k±1 and that  $p(x) = a_0+a_1x+a_2x^2+\cdots+a_nx^n$. It follows that $p(3) = a_0+3a_1+3^2a_2+\cdots+3^na_n$. Thus $p(3) = a_0+3(a_1+3a_2+\cdots+3^{n-1}a_n)$. We know that $a_0= -1,0 \text{ or }1$. Thus there exists a polynomial p(x) such that p(3)=3k, or 3k±1 = n. q.e.d.  Any help would be greatly appreciated. This is also my first time asking a question on this website so I apologize for my sloppy MathJAX skills.


How can I control the name of generic WCF return types?

I've got a WCF Web Service method whose prototype is:  [OperationContract] Response<List<Customer>> GetCustomers();   When I add the service reference to a client, Visual Studio (2005) creates a type called "ResponseOfArrayOfCustomerrleXg3IC" that is a wrapper for "Response<List<Customer>>".  Is there any way I can control the wrapper name?  ResponseOfArrayOfCustomerrleXg3IC doesn't sound very appealing...


Is there an easy way to log all commands executed, including command line arguments?

I am trying to find how to log a specific instantiation of rrdtool to see whether the path it is receiving is incorrect.  I know I could wrap the executable in a shell script that would log the parameters, but I was wondering if there was a more kernel-specific way to monitor for that, perhaps a filesystem callback that sees when a particular /proc/pid/exe matches a given binary?


C++ value returned even without a return statement

Consider the following program:  int b(int in) {     return in + 1; }  int a(int in) {     b(in); // return statement forgotten }  int main() {     std::cout << "returned: " << a(5) << "\n";  }   VC++ gives an error about the missing 'return'. Intel Compiler only issues a warning (missing return statement at end of non-void function "a") but most surprisingly at runtime the code does return the correct value and the printout is:  returned: 6   How come?  Using Intel C++ compiler 19.0


How can I see my active flags with no prior helpful flags?

If I am new to a site and I raise a flag I can't tell how many I have raised or if I have an active flag.  Without any helpful flags on a site there is no link to that page to inform me of the statistics of my flagging habits.    How do I find this information without the link there?


How to replace Ubuntu with Windows 10 without cloud backup or losing any data

I have a laptop with Ubuntu 18.04 in it. I want to use Unity 3D, so I would need to install windows. I think of replacing ubuntu with Windows but don't want to lose any data. I don't want to use a cloud platform. Is there any way I can backup my ubuntu data.  I have made a partition for windows also


Is there a source for historical shapefiles of Europe in the modern era?

Is there a source for historical shapefiles of Europe in the modern era, i.e. starting ca. 1400?  I know that "where can I find historic border data" questions were asked multiple times but I couldn't find an answer to my specific question.


Why I can't format 500 GB drive as FAT32 under Windows 7?

What can cause Windows 7 to prevent me from formatting 500 GB (actually 465 GB) external USB disk as FAT32? No matter, what I did (Windows Explorer, Disk Management), the only options I was presented were: exFAT and NTFS. Why? 465 GB is far lower than FAT32 partition size limit, right?  I had to install and use 3rd party program. And using it there was absolutely no problems (no errors, no objections) in finishing this task. Formatting it as 465 GB FAT32 disk took less than 30 seconds.  What am I missing here? Why Windows 7 prevented me to format this disk as FAT32 using native system tools?


Getting Transaction Support enabled in WFS on GeoServer (Boundless OpenGeoSuite)?

I am trying to publish my feature service using the Boundless GeoServer. It appears that in order to have edit capabilities (I want to be able to add new points to an existing point layer tied to my PostGIS db and edit attributes in existing points if necessary), I have to use the WFS (Web Features Service) in the dashboard. I followed the instructions and set it up with transaction level capabilities connected to my workspace.     However, when I go to preview the layers in GeoExplorer, I get the "transaction support not enabled" error when I use edit to create or edit. I then tried checking in Demos (as directed by this link: ) to test and see if my transaction support was enabled. It came back that for my user and password it was not enabled.   Is this somehow tied to a role or password?


Every separable Banach space is isomorphic to $\ell_1/A$ for some closed $A\subset \ell_1$

How to prove the following mind-blowing fact?     Let $X$ be a separable Banach space and let $\ell_1$ be the space of all absolutely summable scalar sequences. Then there exists such closed subspace $A\subset \ell_1$ that factor space $\ell_1/A$ and $X$ are isomorphic as normed spaces.   Edit: So what, this is like a classification up to isomorphism of all separable Banach spaces? Each separable Banach space corresponds to some closed subspace of $\ell_1$?


Reliability sending and receiving email (mainly about receiving)

I currently have a ‘forwards to’ set up in my godaddy account, so email sent to richard@richardclunan.com goes to my gmail.  And I send email from my gmail so it looks like it’s sent from richard@richardclunan.com  My godaddy account is using a POP server.  I’m wondering about the reliability. It’s not an issue for me if some emails are delayed sometimes. But it is an issue if I don’t receive emails or if emails I send out don’t get to their destinations.  Is this an issue with a POP server?  I’m guessing any issue would be with me receiving email, rather than sending – since they’re sent from gmail, but received via a godaddy POP server.  – I have my domains registered with godaddy, hosting on hostgator, and using POP email server on godaddy. I could use the hostgator email server if that might be a better set up; though I don’t want to change it unnecessarily.  – Or I guess another option would be to use a Google Apps for business account, instead of my free gmail – would this mean better reliability? Would doing this mean I’d then not be using the godaddy POP server, or would I still be using a mail server at godaddy, since my domain is registered with godaddy?  Thanks.


Capturing the output from re.findall as a dictionary

So I am writing a small script which needs to capture only the RX/TX packets/errors/bytes from "ifconfig" and translate it into dictionary/json format It should look something like this: {          'rx_packets': 'value',          'tx_packets': 'value',          'rx_bytes': 'value',          'tx_bytes': 'value',          'rx_errors': 'value',          'tx_errors': 'value',              }  I am not sure how to extract the output off the regex so it becomes a dictionary. This is the script: ifconfig=subprocess.Popen('ifconfig', shell=True, stdout=subprocess.PIPE,).communicate()[0]      pattern = re.compile(br'\s+(?P<type>RX|TX)\s(packets|errors)\s+(\d+)\s+(bytes|dropped)\s+(\d+)', re.MULTILINE)  prnt=(re.findall(pattern, ifconfig))  for match in prnt:     print (match)  The current output is: (b'RX', b'packets', b'2197707', b'bytes', b'2500953222') (b'RX', b'errors', b'0', b'dropped', b'74419') (b'TX', b'packets', b'700405', b'bytes', b'148862473') (b'TX', b'errors', b'0', b'dropped', b'0') (b'RX', b'packets', b'61522', b'bytes', b'10087739') (b'RX', b'errors', b'0', b'dropped', b'0') (b'TX', b'packets', b'61522', b'bytes', b'10087739') (b'TX', b'errors', b'0', b'dropped', b'0') (b'RX', b'packets', b'0', b'bytes', b'0') (b'RX', b'errors', b'0', b'dropped', b'0') (b'TX', b'packets', b'0', b'bytes', b'0') (b'TX', b'errors', b'0', b'dropped', b'0'


Calculate infinite summation of sin(x)/x

How do you calculate the infinite sum $\sum_{i=1}^{\infty} \frac{\sin(i)}{i}$? According to Wolfram Alpha, the value of the sum is $\frac{\pi - 1}{2}$, but it does not tell me the method by which it gets this result.


my function returns the selected date of a calendar in this format:  var returnValue = "6.7.2017"; //day.month.year   When i try to use it for a new Date, it does not work:  var weekdays = ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']; var wkdayname = new Date(returnValue); //Error: returnValue ist NaN var dayName = weekdays[wkdayname.getDay()];   All I want is just the name of the weekday of this date.  Do you have any suggestions ?


Filter csv file with AWK passing a variable in the regex

I need to filter a very large csv file in the most efficient way. I already tried csvgrep but is not efficient timewise, so I'm now trying to use AWK for this task. The csv file has a ; separator, and I need to filter all rows that have in the 48th column a certain string that starts with a certain pattern, that I will pass through a script. So it will be something along the lines of:  pattern='59350'  awk -F ";" '$48 ~ /^59350/ input.csv > output.csv # This works   However, I need to pass $pattern inside the regex statement, rather than explicitly write the pattern. I have tried several combinations but all give me an empty output.csv file. Here are some of my failed attempts:  awk -F ";" -v var="$pattern" '$48 ~ /^var/' input.csv > output.csv  awk -F ";" -v var="$pattern" '$48 ~ /^$var/ {print}' input.csv > output.csv  awk -F ";" -v var="$pattern" '$48 ~ /^${var}/ {print}' input.csv > output.csv   How do I do this? Please, also, if you have a more efficient way that won't load the whole csv file in memory or just faster (I was thinking of grep but not sure if it is suitable and how to implement it) Thank you in advance


Thank you for reviewing 20 close votes today!

So I did what I thought was my 40 reviews in the Close Vote Review Queue today. However, when I went to see about reviewing other queues, I noticed the message for the Close Votes said, "Thank you for reviewing 20 close votes today" instead of saying the normal 40. I went and counted my close vote reviews, and it turns out it is only showing 37.   Does this have to do with  ? Did they lessen/throttle the number of reviews or something, since we were getting close to 0 for the fuzzy queue?   Shouldn't it say Thank you for reviewing 37 close votes today though, instead of 20 anyways? Or possibly the default 40?  BTW, great job cleaning up that queue people!


How do I mix rounded and squared caps in a single path in Illustrator?

How could I mix rounded and square caps in one single path in Illustrator? For example, I need to make a rounded cap on the starting point and a square one on  its end? See the screen capture underneath.


Hello I have a question about possible equivalence relations.  I know that a relation can be Reflexive, Symmetric , Transitive.  But my question is, is there any strict limitations one has on the other.  For example if we had a relation then there are eight possible combinations of the above, for example we could have R S T and not R , S, T, or Not R, Not S, T, for example.  To me they all seem possible except for a relation that is not reflexive but symmetric and transitive.  Any insight?


I try to print a .csv file using csvsimple. The column headers of that CSV file contain underscores.   Within the csvsimple documentation, I found the option respect underscore=true option that is supposed to make LaTeX handle the underscores correctly.   So far, my code can be compiled, but the underscores are rendered in the pdf as an unknown character:    Here is a minimal working example:  \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage{csvsimple} \usepackage{array,booktabs}  \begin{document}      \csvautobooktabular[respect underscore=true]{data.csv}  \end{document}   And here the respective CSV file:  test_col,col_test 1824,4 1892,3 1948,3 1968,3


How to find all .zip and .rar files recursively and sort them by size

I am looking for all .zip and .rar files in comp_tuts folder and I am intersted in showing their file sizes and sorting them from biggest to smallest.  I have tried  ls -R *.zip  ls: cannot access *.zip: No such file or directory   What??  I have tried this:  find / size +50M */comp_tuts/*.zip   For some reasong it's completely ignoring my path and starts at /usr/lib or whereever.  I have also tried  du -sh *.zip du: cannot access ‘*.zip’: No such file or directory


Does $\exp(2ir\pi)$ equal $1$? What's wrong?

Since $e^{ix}=\cos x+i\sin x$, thus  $e^{2\pi i}=\cos2\pi+i\sin2\pi=1$     Now I take arbitrary real number $r$ then $e^{i2\pi r}=(e^{i2\pi})^r=1^r=1?$    But this cannot be true since $\cos2\pi r+i\sin2\pi r$  isn't necessarily $1$ for arbitrary $r$. Where did it go wrong?


How to turn off the odd blank page beside my page in Word office?

I have a weird problem. I don’t know what I have done.  It have a blank page next to my page which like a extend but O cant insert any text. It look like a margin but it not. Just see my demo image, you will see the ruler in my office.     When you print it, it also have it too.   I try to copy and pasted it in new document by all of type paste. But it still have this.  It doesn’t have it when you have a new document or other file.  When I try to open this document from a zip file, it still occur.  Any idea?


How to tell is a damaged iPad Air is repairable

I was given an iPad Air (model A1474) which seems to had a tough life. The screen and LCD matrix are broken and I would like to know if it is still alive before replacing these broken parts.  How should I proceed? I connected the iPad to a PC with iTunes via USB connection but got no response.  Is there any other way to tell if the iPad is salvageable and can be repaired?


$f:\mathbb{R} \to \mathbb{R}$ st $f(\frac{1}{2^n})=0 \forall n \in \mathbb{N}$ , show $f'(0)=f''(0)=0$

Let$f:\mathbb{R} \to \mathbb{R}$ be twice differentiable function such that $f(\frac{1}{2^n})=0 \forall n \in \mathbb{N}$. Show that $f'(0)=f''(0)=0$ Applying mean value theorem on $(\frac{1}{2^n},\frac{1}{2^{n-1}})$ we see that $\exists c_n$ st $f'(c_n)=\frac{f(\frac{1}{2^{n-1}})-f(\frac{1}{2^{n}})}{\frac{1}{2^{n-1}}-\frac{1}{2^{n}}}$ , thus $f'(c_n) =0$ $\implies$ $\lim_{n\to \infty}f'(c_n)=0 \implies f'(0)=0$  But I can't use similar argument for $f''$ since it is not known whether it is continuous or not!


Proof that $\suṃ̣_{k=1}^{n}k {n \choose k}$ for $n \in \mathbb N$ is equal to $n2^{n-1}$.  As a hint I got that $k {n \choose k} = n {n-1\choose k-1} $.  I tried solving this by induction but, in the inductive step I'm not arriving to the correct result.


Too many objects need random emission values

I'm new to blender, and am working on a large "cyberpunk" skyscraper that needs a ton of windows. I applied some basic materials nodes that randomized the emission values to each window as a separate object, which works great.    However, the problem is that the picture shown is only a small fraction of the building, and when I'm putting the parts of the building together, the object count is reaching the thousands, and my computer slows to a crawl. Is there possibly an alternative to randomize whether each window is on or off that will remain once I combine them into a single object, or at least in bigger pieces? Maybe have each window be randomly assigned one of two materials? Any help would be greatly appreciated!


Will a fire pit damage my patio's ceiling?

I just got a portable fire pit and some new furniture for my back porch. The fire pit is 3' in diameter, and the porch is 10'×10', with a 9' ceiling.  It would be nice to be able to have a small fire with the fire pit sitting at the far edge of the patio without having to move it to the yard every time I'd like to use it. My only concern would be that the heat from it might cause damage to the paint on the ceiling of the patio. Certainly, after time, I might be able to see some residue from the smoke, but as long as it's not causing damage, I'm okay with that.  Would this cause damage to the paint, or should this setup be fine?    Additional details   The patio ceiling is painted with the same exterior paint as the rest of the house. The house was built earlier this year. The area I live in almost always has at least a slight breeze. There are no obstructions near the patio that would block wind. I'm not interested in creating any gigantic bonfires in this fire pit—just a few logs at a time.


Let $S$ be a simple closed curve in ${\Bbb R}^2$ enclosing a convex region $I$.  Must there exist a straight line which cuts $S$ into two pieces of equal length and also cuts $I$ into two regions of equal area?  If so, how can such a line be found?  [If the answer is, "no, because the sandwich might have a pathological boundary", then please also consider the case of non-pathological sandwiches.]


file_put_contents: failed to open stream: Permission denied

I am currently working on a project that writes to a file based on your input. This works perfectly fine on my localhost, but when I try this project on my college server - it just doesn't work.  $ret = file_put_contents('paameldinger.dat', $data, FILE_APPEND | LOCK_EX);   This line is supposted to return true, but returns false on the college server.     Warning: file_put_contents(paameldinger.dat): failed to open stream: Permission denied   This is the message I am getting through my browser.


The king underwrote the journey of Spain's prince.  The king underwrote the journey of Spain's prince's.    We have a double possessive here, we are referring to the journey of the prince of Spain. How do we express that in a sentence? If I were refer, say, to a house that belongs to may uncle I would say "the house of my uncle's". For this reason I think the second sentence is correct but it sounds a bit odd. Can you help me?


Having absolute path in Manifest.mf Class-Path

I'm trying to use an absolute path in the Class-Path portion of a MANIFEST.MF file, but it doesn't seem to work.    The reason I'm using an absolute path is that the library in question is a proprietary library that I'm not at liberty to redistribute. It is installed on corporate machines on a constant path (/opt/...), so it makes sense for me to use this absolute path.    My manifest file is as follows:    Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Built-By: Me Class-Path: /opt/path/to/library.jar Created-By: Apache Maven 3.3.9 Build-Jdk: 1.8.0_102 Main-Class: com.me.Main   The program runs fine (so the main class etc. is set correctly), but as soon as I try to load a class from library.jar I get a NoClassDefFoundError.    I have tried adding the following code the beginning of my main method:    ClassLoader cl = ClassLoader.getSystemClassLoader();  URL[] urls = ((URLClassLoader)cl).getURLs();  for(URL url: urls){     System.out.println(url.getFile()); }   but it only prints out the name of my jar file.    Apparently, running with "java -jar" also ignores the $CLASSPATH system variable, so even that does not seem to be an option.    Is there a solution besides copying (or sym-linking) the library to the location of my own jar?


Can you use Twinned Spell on Fireball and target the same creature with both attacks?

Can a sorcerer use the Twinned Spell metamagic on the fireball spell and target the same creature with both attacks?  Also, if you can target one with both, would it be double damage?


Official ESTA application website and are the others scams?

A quick search for ESTA application returned many results. According to , the official site to apply for an ESTA is .  Are the others scams, legitimate third party resellers or "added value" services?    (defunct - domain is for sale circa 2020)     Can anyone confirm either way?  Updated 2020: The above have better "not affiliated with the U.S. Government" warnings now, but beware there are newer more sneaky sites starting all the time:        And fortunately more official guidance about this issue:


Prime Factorization of very big factorials

Is there a quick way to prime factorize 50!.  I wrote down all the numbers and then factorized, but that takes way too long.


I am an American who studied at a Latvian university in the previous fall semester.  I had planned to stay almost an academic year, so the company that organized my trip and partnered with the university in Latvia told me that I needn't worry about the 90 day limit, that they would register me for a temporary residence permit so that I could stay in Latvia longer than 90 days.  Despite the fact that I gave them all the documentation they requested for this, they apparently forgot to do it.  Anyway, I left Latvia to spend time in Moscow during the winter holiday and, naturally, was denied re-entry on the basis that I had already significantly overstayed.  I wasn't fined at the Latvian border.  The border guard simply told me I would be able to return if I stayed away for 90 days, no penalty, just a warning and a document explaining the 90/180 day rule.  I currently have tickets to fly back to America on May 3rd from Moscow to Riga and then Frankfurt.  I entered Schengen August 28th and left for Russia January 12th.  I was denied re-entry February 7th.  Does the entry refusal affect the 180 day period in some way?  Am I at risk of a fine for the overstay if someone notices in, say, Frankfurt?


MySQL join statement with PHP mysqli prepare

I have this join in a prepare statement  //validate slug $pro = $mysqli->prepare("SELECT       profiles.Image,       members.URLName,       members.DisplayName,       profiles.Pieces,       profiles.AboutMe,       profiles.DA,       profiles.TB,       profiles.SK     FROM `profiles`     INNER JOIN `members`       ON profiles.userID = members.ID     WHERE members.URLName = ?"); $pro->bind_param('s',$_GET['urlslug']); $pro->execute(); $pro->store_result();   It returns nothing, even when an expected input is provided. I believe this is because I can't put apostrophes around the input (unless I wanted to search for the URLSlug "?").  The query itself is fine I believe. If I run the SQL with the input 'user1' WITHOUT apostrophe's in PHPMyAdmin it tells me:   #1054 - Unknown column 'user1' in 'where clause'   And with apostrophe's, it works  Showing rows 0 - 0 ( 1 total, Query took 0.0030 sec)   How do I get my prepare statement to include the necessary apostrophe's around the input and work?  Edit1: Output of:  var_dump($_GET['urlslug']) = string(5) "user1"   Working query straight from PHPMyAdmin:     SELECT profiles.Image,          members.URLName,          members.DisplayName,          profiles.Pieces,          profiles.AboutMe,          profiles.DA,          profiles.TB,          profiles.SK    FROM `profiles`    INNER JOIN `members` ON profiles.userID = members.ID    WHERE members.URLName = 'user1'   Edit2: This is not a duplicate. I'm not asking how to protect against SQL injections with prepare statements I'm saying that the following statement doesn't work without apostrophe's around 'user1' and how do I achieve that without putting apostrophe's around the "?" in my prepare statement:  SELECT profiles.Image,         members.URLName,         members.DisplayName,         profiles.Pieces,         profiles.AboutMe,         profiles.DA,         profiles.TB,         profiles.SK   FROM `profiles`   INNER JOIN `members` ON profiles.userID = members.ID   WHERE members.URLName = user1


Renaming files works, but soft links point to the old names. How can I fix that?

For example, I'm renaming many files inside a tree like this:  [bash]$ for file in `find . -name "*gsf*"`; do `mv $file ${file/gsf/msf}`; done   That renames all the instances of "gsf" in file names matching gsf to "msf", but softlinks continue to point to now-non-existent files containing "gsf".  For example, this is what happens after the rename:  lrwxrwxrwx 1 trusktr users     20 Apr 25 14:39 libmsf-1.so -> libgsf-1.so.114.0.23 lrwxrwxrwx 1 trusktr users     20 Apr 25 14:39 libmsf-1.so.114 -> libgsf-1.so.114.0.23 -rwxr-xr-x 1 trusktr users 265584 Apr 21 04:41 libmsf-1.so.114.0.23   As you can see, the soft links point to libgsf-1.so.114.0.23 which doesn't exist anymore because it was renamed to libmsf-1.so.114.0.23.  What can I do so that the rename also happens to the soft link pointers?


batch script to zip a folder without using external softwares

I have folder with the following structure  folder    subfolder(empty)    subfolder    file1.bat    file2.bat    file3.bat  How do I go about writing a batch file to zip the contents of the above folder without using external softwares like winrar or 7zip?  I tried the below code. But it would copy the contents to the specified temp folder without the empty folder and when attempting to zip the folder it would only zip file1 and file2 and ignore rest of the contents.  I would like to be able to zip the folder as it is without affecting the structure.  I could not find the reason for the issue. Any help is appreciated.  set FILETOZIP=D:\OutputZipFiles\TestWorkDemo   set TEMPDIR=D:\OutputZipFiles\TempDir rmdir %TEMPDIR% mkdir %TEMPDIR% xcopy /s %FILETOZIP% %TEMPDIR%  echo Set objArgs = WScript.Arguments > _zipIt.vbs echo InputFolder = objArgs(0) >> _zipIt.vbs echo ZipFile = objArgs(1) >> _zipIt.vbs echo CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar) >> _zipIt.vbs echo Set objShell = CreateObject("Shell.Application") >> _zipIt.vbs echo Set source = objShell.NameSpace(InputFolder).Items >> _zipIt.vbs echo objShell.NameSpace(ZipFile).CopyHere(source) >> _zipIt.vbs echo wScript.Sleep 2000 >> _zipIt.vbs  CScript  _zipIt.vbs  %TEMPDIR%  D:\OutputZipFiles\someArchive.zip  pause


Two loading symbols when refreshing a feed

In relation to , I found out it's possible to have two loading symbols when refreshing the page.  What I did was:    Click the Feed menu from the left bar, and  Quickly pull down to refresh


Should I use $ notation to deal with math expressions in latex?

I guess I saw a suggestion somewhere that standard latex does not use $$ notation for math equation, but I am not sure. This is the default template provided by the online compiler. \documentclass{article} \usepackage[utf8]{inputenc}  \title{insert_dollar} \author{mhaonlp } \date{September 2019}  \begin{document}  \maketitle  \section{Introduction}  \end{document}  and got this error  Missing $ inserted. Check that your $'s match around math expressions. If they do, then you've probably used a symbol in normal text that needs to be in math mode. Symbols such as subscripts ( _ ), integrals ( \int ), Greek letters ( \alpha, \beta, \delta ), and modifiers (\vec{x}, \tilde{x} ) must be written in math mode. See the full list here.If you intended to use mathematics mode, then use $ … $ for 'inline math mode', $$ … $$ for 'display math mode' or alternatively \begin{math} … \end{math}.  The whole thing above  So, should I use $ notation to deal with math expressions in latex?


I think it's worth saying that I'm a beginner, I have only completed the donut tutorial before starting this project. So, I modeled this fall guy with the intention of rigging it and animating it afterwards. However, I was getting this error message when trying to apply the rig to my mesh: Bone Heat Weighting: failed to find solution for one or more bones. After some googling I found out it's most likely caused by my mesh being conformed by more than one separate objects, since I modeled the arms and legs separately from the body. I tried joining them with ctrl+J but that was not enough, apparently. I've also been playing with the Merge tool, but I don't think I'm doing it right. I also tried deleting the intersecting faces and then filling them by selecting the corresponding edges, but that ended up looking very wrong. I'm leaving some pictures for reference.


I don’t understand my British Passport Expry date

I’m not sure how to read the expiry date on my British Passport, it states as follows; Date of expiry 26 Mar/Mars 23 The date of issue states; 27 Dec/Dec 12 It doesn’t appear to state either the issue or expiry year. Can anyone advise me on this. Thank you.


I need a program to remote control my (new) Apple TV from my macbook.  I know I can control it from my iPhone using Remote. Does exists a similar software for mac osx?  I want to be able to watch youtube videos in Apple TV, and make searches in youtube using my macbook keyboard.


I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I would like to be able to align the two statements, but the commented version in my example fails to even compile. I could always manually add some space to make things line up (see the last version below), but this is obviously not a good way to go about doing things for a number of reasons. Does anyone have a good way of making the assignment statements to line up?  \documentclass{article}     \usepackage{algorithm}     \usepackage{algorithmicx}     \usepackage{amsmath}  \begin{document}  \begin{algorithm}     \caption{Compute some stuff}     \begin{algorithmic}         \State \( x \gets 1 \)         \State \( m \gets 2 \)     \end{algorithmic} \end{algorithm}  %\begin{algorithm} %   \caption{Compute some stuff} %   \begin{algorithmic} %       \begin{align*} %           x & \gets 1 \\ %           m & \gets 2 %       \end{align*} %   \end{algorithmic} %\end{algorithm}  \begin{algorithm}     \caption{Compute some stuff}     \begin{algorithmic}         \State \( \hspace{3pt} x \gets 1 \)         \State \( m \gets 2 \)     \end{algorithmic} \end{algorithm}  \end{document}


How do I block my server from performing port scans?

I have recently started renting a server from Hetzner..  I get continuous emails telling me that my server is performing scans on other servers:   "Your server with the above-mentioned IP address has performed scans on other servers on the Internet.  This has placed a considerable strain on network resources and, as a result, a segment of our network has been adversely affected"   I have run clamscan and rhkit, nothing is found or detected even with updates.   Do you have any advice on how I can solve this issue? Is there a way of installing a firewall???    Nmap shows:  PORT      STATE SERVICE 22/tcp    open  ssh 80/tcp    open  http 31337/tcp open  Elite


No Application found in Ubuntu Software Center 20.04

I've recently noticed an issue with Ubuntu Software Center which I have tried to resolve following the answers provided in  without result and  which partially worked but didn't persist. The Issue After installing 20.04 I opened Ubuntu Software Center and installed a number of apps without any problem - one of which was Stacer which I will use as an example.  In Show Applications the app is clearly present and right clicking on the icon selecting Show Details provides the image above and it works perfectly well. However, if I open Ubuntu Software Center and type in the search bar stacer it reports that no application is found:  Nor is it listed when selecting the Installed tab. This is the setup for for Software and Updates.  There are other applications I have previously installed which are also now reported as No Application found such as gLabels, gscan2pdf and others. Has something changed since I initially installed 20.04.1 and more importantly, how can I restore good order to the Ubuntu Software Center?


Please update syntax coloring to support underscores in JavaScript number literals

1000000 1_000_000  Both these literals are modern ways to represent the same number, but the syntax coloring stops at the underscore. I hope this can be fixed. Turns out the answer is:  Stack Exchange does not have its own syntax highlighting engine. It uses , and is not necessarily using the latest release of that library. Therefore, any bugs and feature requests regarding syntax highlighting cannot be handled by Stack Exchange.


Can't edit questions on meta posts; unable to gain reputation on them

I wanted to edit 's title which is on Mathematics Meta Stack Exchange because it did not have anything to do with the question itself. However, I could not edit it. When I tried to edit it, it brought me this message:  Suggested edits are not allowed on non-tag-wiki posts on meta sites.  Then, someone else came to edit the question's title. He was not a moderator, he just had way more reputation than me (I had 159, and he had 10k+). You also cannot gain privileges in Meta. At least that was what I saw in the Activity tab. So do I have to get 2k reputation on the main site to edit it, or is there something wrong? I'm relatively new to the site, and I rarely use Meta.


I want to run the basename command on a certain awk field.   echo "1 /this/is/a/path" | awk '{print $1" "system("/usr/bin/basename " $2)}'   but the output always produces a 0 from the system command. How do I print the real output?


I have just seen this written down;  $ some-command >| /tmp/output.txt   Vertical pipes are used in standard redirects "piping" the output of one command to another, is >| in fact completely useless as it would be the same as just > in this scenario?


About the solvability of a system of congruence

I am asking if there is any method to decide if the following system of congruence is solvable or not: $x_{1}$≡$a_{1}$ $mod (y_{1})$ $x_{2}$≡$a_{2}$$mod (y_{2})$ $x_{3}$≡$(a_{1}+a_{2})$$mod (y_{3})$ Here $y_{1},y_{2},y_{3}$ are not necessarily coprime integers


Reason for LCM of all numbers from 1 .. n equals roughly $e^n$

I computed the LCM for all natural numbers from 1 up to a limit $n$ and plotted the result over $n$.  Due to the fast-raising numbers, I plotted the logarithm of the result and was surprised to find a (more or less) identity curve ($x=y$).  In other words, $LCM(1, 2, 3, ..., n)$ appears to be roughly the value $e^n$.  Is a there a simple explanation on why this is so?  $LCM(a, b, c, …)$ shall be defined as the least common multiple of all arguments $a, b, c, …$


Bash. How to assign random line from text file to a variable?

I have text file which contains numerous lines. I need to do:   shuf txt.txt From shuf output read first line to a variable $line   How to represent it in one line for bash script?  Now it is like this:  shuf txt.txt -o aaa.txt n=$(head -n 1 aaa.txt) rm -rf aaa.txt   As you may notice, it is not very nice


Running Ubuntu on a Dell XPS, dual-booting with Windows that I hardly use. I encrypted my home folder when installing 16.04, and now Dropbox won't sync anymore as they no longer support .ecryptfs.   What's the simplest solution so that I can keep using Dropbox? (I would consider switching but I share folders with other people who use it so it's more convenient to stick with it.)  I came across this solution:   , but I'm worried that I might erase the dropbox folder I already have.   I'm still a bit of a newbie and get a bit nervous when messing around with filesystems, so I'd appreciate any detailed tips. Thanks in advance.


How does Apple calculate the energy consumption of a process in OS X Mavericks

In OS X Mavericks you can monitor the energy consumption of different processes in Activity Monitor. Here we can see 'Energy Impact' and Avg Energy Impact' and that the values can exceed 100.   Also there will be a menu bar icon which lists the most energy consuming applications running right now.  Is there any documentation how apple calculates the current energy consumption? Is there a mapping between CPU utilization and energy consumption?  Hopefully there are some experts here who can give me a hint.


Null object refrences in android studio?

I want to created a chat app project with android studio and when I want to run my project my app crashed please help me?  My code is below:  private void readUser() {     final FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();     DatabaseReference reference = FirebaseDatabase.getInstance().getReference("Users");      reference.addValueEventListener(new ValueEventListener()     {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {             if (search.getText().toString().equals("")) {                 mUsers.clear();                  for (DataSnapshot snapshot : dataSnapshot.getChildren()) {                     User user = snapshot.getValue(User.class);                      assert user != null;                     assert firebaseUser != null;                      if (!user.getId().equalsIgnoreCase(firebaseUser.getUid())) {                         mUsers.add(user);                     }                 }                 userAdapter = new UserAdapter(getContext(), mUsers, false);                 recyclerView.setAdapter(userAdapter);             }         }         @Override         public void onCancelled(@NonNull DatabaseError databaseError)         {         }     }); }   and this is my error:  java.lang.NullPointerException     at com.example.mahdi.chatapp.Fragments.UsersFragment$3.onDataChange(UsersFragment.java:132)   and error from this line:  if (!user.getId().equalsIgnoreCase(firebaseUser.getUid())) {


US Salary Transfered to Indian Acc and Tax Relation

I am on an H1b visa working and receiving a salary in the US. I have transferred approximately $15-20k to my account in India Account (not an NRE account).    How would this transfer affect my taxes in US and India. How can I avoid tax on the money that I have transferred. Would any investments help save taxes? Do I need to declare anything? If so, where ?


How to wipe a partition quickly with value zero?

I want to wipe a partition quickly.I search the answer in website. such as:   dd if=/dev/zero of=/dev/sda1 bs=16M count=96  shred -v -z -n 1 /dev/sda1  But:  All the commandline,will overwrite with value zero though there is zero.   I think in the partition somewhere have value,but somewhere also have zero.  Want:    Just use commandline but not GUN.Because ddrescue Need to compile and install  dd or shred or other command just overwrite zero to where that there's value is not zero in a partition in Linux.    Update:  My understand is in below   Now:   ddrescue -b 1572864 --generate-mode /dev/zero /dev/sda1 flash.map  // This will create a flash.map   ddrescue -b 1572864 --force --fill-mode=+ /dev/zero /dev/sda1 flash.map //will to fill the patition by flash.map  //1572864byte =16M*96    It's right?What about my understand？


Evernote is a cool site for capturing note, tagging it and retrieving it from everywhere. The Web application is nice but I was wondering if anyone knows about a standalone version such as for Windows, Android,... but for Ubuntu ?  Thanks !


How does working on a moisture farm work?

In Star Wars: A New Hope Owen talks about how he needs Luke for the next harvest and stuff, but it's not like they're tilling crops or anything. Don't machines just suck water out of the atmosphere, then you just haul in barrels into town?


What happens if we clamp a string at both it's ends and pluck it at different distances from one of the ends? Will the frequency of oscillation be the same or will it differ based on the place from where it was plucked?


I'm trying to show that $\mathbb{Z}[\sqrt{11}]$ is Euclidean with respect to the function $a+b\sqrt{11} \mapsto|N(a+b\sqrt{11})| = | a^2 -11b^2|$  By multiplicativity, it suffices to show that $\forall x \in \mathbb{Q}(\sqrt{11}) \exists n \in \mathbb{Z}(\sqrt{11}):|N(n-x)| < 1$  For the analogous statement for $\mathbb Z [\sqrt6]$, it worked by considering different cases, so I tried to do the same thing here. Here is what I did so far:  Let $x+y\sqrt{11} \in \mathbb Q (\sqrt{11})$  Case 1: Suppose there exists a $b \in \mathbb Z$ s.t. $|y-b| < \frac{1}{\sqrt{11}}$, then we can choose such a $b$ and a $a \in \mathbb Z$ s.t. $|x-a| \leq \frac{1}{2}$, then we have $|N(x+y\sqrt{11}-(a+b\sqrt{11}))| < 1$  From now on suppose $\forall b \in \mathbb Z: |y-b| > \frac{1}{\sqrt{11}}$  Case 2: Suppose there exists a $b \in \mathbb Z$ s.t. $|y-b| < \sqrt{\frac{5}{44}}$ Then we have $1 < 11 (y-b)^2 < \frac{5}{4}$, so we can choose $a \in \mathbb Z$ such that $\frac{1}{2} \leq |x-a| \leq 1$, then we have $|N(x+y\sqrt{11}-(a+b\sqrt{11}))| < 1$  From now on suppose $\forall b \in \mathbb Z: |y-b| > \sqrt{\frac{5}{44}}$  Case 3: Suppose there exists a $b \in \mathbb Z$ s.t. $|y-b| < \sqrt{\frac{2}{11}}$ Then we can choose $a \in \mathbb Z $ s.t. $1 \leq |x-a| \leq \frac{3}{2}$, then we have $|N(x+y\sqrt{11}-(a+b\sqrt{11}))| < 1$  From now on, we may suppose that $|y-b| > \sqrt{\frac{2}{11}}$.  This is where I'm stuck. I tried choosing $b \in \mathbb Z$ s.t. $\frac{1}{2} \geq |y-b| > \sqrt{\frac{2}{11}}$, but then I run into problems, whether I choose $a \in \mathbb Z$ s.t. $1 \leq |x-a| \leq \frac{3}{2}$ or s.t. $ \frac{3}{2} \leq |x-a| \leq 2$


RevText and Overleaf - Could Not Recognise Document Class

I am using the RevTex 4.2 template from Overleaf, found here.   When I try and do a Word Count, I get an error message saying "Could not identify document class"  Here is the (unedited) documentclass declaration.   \documentclass[% reprint, %superscriptaddress, %groupedaddress, %unsortedaddress, %runinaddress, %frontmatterverbose,  %preprint, %preprintnumbers, %nofootinbib, %nobibnotes, %bibnotes,  amsmath,amssymb,  aps, %pra, %prb, %rmp, %prstab, %prstper, %floatfix, ]{revtex4-2}   This error occurs with the basic template files, even before I changed anything. Any ideas?


Bit manipulation: compute sum over all bits (aka number of 1's) in a uint64_t

In C++, I would like to compute the number of bits that is 1 in a uint64_t  # A few examples in uint8_t: 0b00000000  ==> 0 0b01000001  ==> 2 0b00110101  ==> 4 0b11111111  ==> 8   I need to perform a lot  (say millions) of such operations, is there a fast way to do so (maybe with some pre-processing)?  One possibility I can think of is to create a lookup table for every N bit (say N=8), and perform 64/N lookups for a uint64_t. Is there a better solution for this? If I decide to go for the above approach, how should I set N? (To my understanding even ignoring all pre-processing computation, it is not the case that the larger N is, the better, Because the look-up speed actually depends on whether the look-up table can fit in cache?)  Thanks a lot!


Use a wildcard with the "IN" operator in a SOQL query

Essentially what I want to do is this:  SELECT Id, Email FROM User WHERE Email in ('first.last1%','first.last2%')   I am using this in a trigger and would like to come up with a query to match users based on the email prefix. Ideally, I like to avoid using a loop since I'm trying to avoid governor limits.  Anyone have a solution to this?


Stealing and reattaching a running process

It's sunday and I left an instance of R running in the office. The script finished running, and I would like to save my workspace without going to the office. I can ssh to the computer, but I have not run the program into screen.  Is there a way, over ssh, to disown the process (I don't have access to jobsid of the terminal the program is running on!) and reattach it with say, reptyr? Reptyr and reptyr -T don't work without previously disowning the process  28845 3diag       20   0  139.3m  10.4m   0.0  0.1   0:12.06 S  `- urxvtd                                                                                5327 3diag       20   0   16.4m   4.6m   0.0  0.1   0:00.02 S      `- bash                                                                                5335 3diag       20   0 3499.3m 3.244g   0.0 43.3 171:57.89 S          `- R    The unique part of my question is that I explicitly require to detach a program without having access to the terminal in which it was created.


I have reached level 5, but all of a sudden I don't seem to see any pokestops or gyms or pokemons its like just the map is there and nothing else no matter which place I go.


Here is my Latex file:  \documentclass[10pt, a4paper]{amsart} \usepackage{amsmath, amssymb,amsthm} \usepackage{lettrine} \usepackage[Sonny]{fncychap} \usepackage{url} \usepackage[english]{babel} \usepackage{amsmath, amssymb,amsthm} \usepackage[all]{xy} \usepackage{tabularx}\renewcommand {\theenumi}{\roman{enumi}} \usepackage[applemac]{inputenc} \usepackage{graphicx}  \usepackage[dvipsnames]{xcolor} \usepackage{geometry} \usepackage{hyperref} \usepackage{url} \usepackage[applemac]{inputenc} \usepackage{enumitem}   \begin{document} This is my latex file. I want to cite \cite{stackexchange}. \bibliography{biblio} \bibliographystyle{alpha} \newpage   \end{document}   Here is biblio.bib:  @misc{stackexchange,   title = {{R}eal units of the cyclotomic number fields of an odd prime order},   howpublished = "\url{https://math.stackexchange.com/questions/175063/real-units-of-the-cyclotomic-number-fields-of-an-odd-prime-order}",     author={{S}tack Exchange user {M}att {E}} }   As a result, the reference is printed out wrongly, with large spaces between each word. You can see the result on the following screenshot.   Thanks for your help


Samsung Galaxy S4 not getting software updates of 4.3 or 4.4

I have a galaxy s4 device running on 4.2.2. I am not getting any updates for the same. When I do check for updates it says "You already have the latest version". I know 4.3 has officially released for galaxy s4.  I don't want to root my phone and update it. Since it is officially released why i am not getting the updates ?  Please suggest any solution so that i can get my phone on latest OS version.  Thanks


If a set is linearly independent, a finite subset of that set is also linearly independent

Is the above statement true? If I have already proven that the set is linearly independent, is it automatically given that the subset is also linearly independent? If so, how would I go about showing that as a proof.


Incorrect plot using pgfplots (trigonometric functions like cos, sin and tan)

I'm trying to plot a function with pgfplots for LaTeX. Unfortunately, pgfplots plots the function incorrectly.  Here is the LaTeX code I use:  \begin{figure}[H] \centering \begin{tikzpicture}     \begin{axis}[xlabel=Gameplays,ylabel=Rating]         \addplot+[gray,domain=1:30]         {0.5 + 0.5 * ((atan(x) * 2 / pi)^11.79)};     \end{axis} \end{tikzpicture} \caption{Omzetten van aantal gameplays tot impliciete rating} \label{fig:omzetten_impliciete_ratings} \end{figure}   Here is how the function should look like:     This is how it is plotted:    Does anyone know what I do wrong?  Thanks in advance!


$ a_n = (1+ \frac{1} {n}) ^n  $ where n is a natural number then which one is greater $ a_{2013} $ or $ a_{2014} ?$  I tried using binomial expansion but could not solve it. I also tried using monotonicity but expression is complicated.


How to write a matrix as a product of elementary matrices?

\begin{pmatrix}3&-1&3\\ -2&3&2\\ 1&-3&1\end{pmatrix}  Any help would be greatly appreciated!  I have done this before with other matrices, yet this one is bringing me trouble. I have spent too long on this as I believe it should be easy and yet my answers are always wrong.  What I am doing: So I first row reduce it to the identity matrix: I first switch R1 and R3 Then R3-3R1 then R2-2R1 then -1/3R2 then R3-8R1 then R2-2R1 then 3/32R3 then R1+3R3 and finally R2+4/3R3  I know there is many possible ways to get this too the identity matrix but this worked for me. I then apply all of the above steps to identity matrices and multiply them together to check my work but it never works out to be the original matrix so I am forced to believe something is wrong


Which version of UBUNTU is suitable for my system config?

Following is my system configuration    Intel Dual Core processor 1 GB RAM 160 GB hard disk   Which version of UBUNTU will be suitable for me. I tried with Ubuntu 14.10 which completely slow in my system.  Sorry am not sure about the tags either. Please correct me if am wrong


What is the difference between NLM vs Open image denoise? also what is the "denoising data" in view layer properties?


Convergence of $\left( \frac{1}{n!}\right)^\frac{1}{n}$

I read that $\left(\frac{1}{n!}\right)^\frac{1}{n}$ goes to $0$ as $n$ goes to infinity.  I tried to solve this myself by expanding the factorial:  $$\left( \frac{1}{n!}\right)^\frac{1}{n}=\left( \frac{1}{n}\cdot \frac{1}{n-1}\cdot ... \cdot\frac{1}{1}\right)^\frac{1}{n}=\left( \frac{1}{n}\right)^\frac{1}{n}\cdot \left( \frac{1}{n-1}\right)^\frac{1}{n}\cdot ... \cdot\left( \frac{1}{1}\right)^\frac{1}{n}$$  The leftmost factor in the very right side converges to one, as does the rightmost, and the other factors should lie in between, hence also converge to one.  Then if I apply the limit rule stating that $\lim a\cdot b$ = $\lim a\cdot\lim b$ (with $a$ and $b$ being convergent sequences), I get that the whole thing converges to $1$, which I know it doesn't. My guess is that I cannot apply that limit rule for a product with an unbounded number of factors.  Can someone please give me a simple proof of convergence to $0$ and perhaps some insight on my mistake(s)? That would be lovely.


Prove that if $A,B$ are closed and disjoint in a metric space, then they are contained in disjoint neighborhoods

Yesterday, I asked the question: .   Here is the correct question: prove that if $A,B$ are closed sets in a metric space such that $A\cap B= \emptyset$, there exists $U,V$ open sets such that $A\subset U$, $B\subset V$, and $U\cap V= \emptyset$.   I am thinking of going by contradiction, that is: $\forall\; U,V$ open sets such that $A\subset U$, $B\subset V$, and $U\cap V\neq  \emptyset$.   Let $ U,V$ open. Then, $\exists\;r_1,r_2$ such that $B(x,r_1)\subset U$ and $B(x,r_2)\subset V.$ I got stuck here!  I'm thinking of using the properties of $T^4-$space but I can't find out a proof! Any solution or reference related to metric spaces?


How can I fix a logo in the head-right of a page

I am writing a scientific report for my internship, and I would like to know if there is any easy command to put a logo in the page headers , for  example in my case I would like it in the head-right.  PS: I am searching also to put two minipages in the same line and control their position (space them each other or approach them like in CV's header with names , email address and photos).


Is it safe to cancel CHKDSK when it has been started without any parameters?

I know that it is not a good idea to forcibly stop a chkdsk process that has been executed with parameters like /f and /r.   But is it safe to stop the process when it has been started simply by the chkdskcommand? Chkdsk prints out a lot of errors and is continuing very slowly.  I suppose it to should be safe to cancel the process since there should be only in read mode, correct?


In Noetherian ring $R$, ideal $I\subset R$, $P\in\mathrm{Ass}(I),P=I:a$ for some $a\in R$.

Maybe this question is too obvious to everyone.      In Noetherian ring $R$, ideal $I\subset R$, $P\in\mathrm{Ass}(I)$, then $P=I:a$ for some $a\in R$ where $\mathrm{Ass}(I)$ denotes associated primes of $I$.   This is an exercise 8.29 in Gathmann's Commutative Algebra notes. I am supposed to find this statement obvious. However, up to now, I still did not find this statement obvious. Can someone explain intuitively why noetherianness here allows me removing radical $\sqrt{I:a}$ without going into details?  If $Q$ is a primary ideal of $I$, then certainly $\sqrt{Q:a}=P$ for $a\not\in P$. It seems taking $(p_1,\dots, p_n)=P$, $p_i^{n_i}a\in Q$. Since $Q$ primary, I must have $p_i\in Q$ and $p_i^{n_i}\in Q$. (This argument seems very wrong as this deduces the same conclusion without noetherian property.)


Is my logic straight? Logistic regressions in R

I'm doing an experiment on people's ability to read facial expressions on faces with and without covid-19 face masks. It's a between-subject design with repeated measures. One participant either saw 36 images with masks or 36 images without masks and their task was to tell which facial expression the face was showing. The 36 images were of 6 different people showing 6 different emotions. Condition 1 was with masks, 2 was without masks I have a dataframe like this: id = participant id baseFace = id for image person faceSex = gender of image person faceEmotion = the facial expression of the image person response = the participants response of which facial expression they think they saw accuracy = well, accuracy condition = if they saw condition 1 stimuli or condition 2 stimuli id | baseFace | faceAgeGroup | faceSex | faceEmotion | response | accuracy | condition 1    001        young          male       angry        sad        0          1 1    002        medium         female     happy        happy      1          1 1    003        old            female     sad          sad        1          1 1    004        young          male       neutral      sad        0          1 2    001        medium         female     happy        happy      1          2 2    002        old            female     sad          sad        1          2 2    003        young          male       angry        sad        0          2 2    004        medium         female     happy        happy      1          2 3    001        old            female     sad          sad        1          2 3    002        young          male       neutral      sad        0          2 3    003        medium         female     happy        happy      1          2 3    004        old            female     sad          sad        1          2 4    001        young          male       angry        sad        0          1 4    002        medium         female     happy        happy      1          1 4    003        old            female     sad          sad        1          1 4    004        young          male       angry        sad        0          1 5    001        medium         female     happy        happy      1          2 5    002        old            female     sad          sad        1          2 5    003        medium         female     happy        happy      1          2 5    004        old            female     sad          sad        1          2    My hypothesis is 1 People are better at reading facial expressions in faces without face masks 2 People will report higher levels of confidence in decisions when evaluating faces without masks AND NOW TO MY QUESTION Since my outcome is binary (accuracy), I use a logistic regression model: lme4::glmer(accuracy ~ condition + (1|id), df, family = binomial)  This is to me the most logical way to build the model since I'm using condition as predictor for accuracy. The question is: Would I violate any rules or my own hypothesis if I included more predictors or random intercepts? Thank you for any help.


Past participle vs being+past participle

What is the difference in the meaning between the following sentences:      Being beaten by snow, he died.     Beaten by snow, he died.    Or:      Being taken to the hospital, he survived.     Taken to the hospital, he survived.    Here are my opinions about them:  When we use Being+past participle as a participle clause, it refers to the reason for the action of the main clause and it replaces 'Because'.  when we use past participle clause as a subordinate clause it also refers to the reason for the action in the main clause. Thus, both(being+p.p and p.p) work the same and their meanings also same in sentences. They convey the same meangs but only their construction is different. I'm not sure,so I'm confused here.  If i understand the usage and meaning of them, my confusion will certainly be eliminated.


Make it possible (more easily discoverable?) to view jobs in iOS app

I get "suggested jobs" in the iOS app, but I don't see an easy way to fully access StackOverflow Jobs with full search, etc. There's not an option in the other sites' entries either, at least not under careers.


I have two programs progA and progB  ./progA outputs a list like this :  a1 a2 a3 a4   and ./progB take the result of progA as an argument and also outputs a list :  b1 b2 b3 b4   I can pipe them like this : ./progA | ./progB  Now I want to paste the two lists, something like this :   a1  b1 a2  b2 a3  b3 a4  b4   With a temporary file I can do  ./progA > tmpA ./progB tmpA | paste tmpA /dev/stdin  but I don't want to write in a file or call progA twice.  How can i do this ?


Specific heat capacity at constant volume VS constant pressure

For an ideal gas, why is the specific heat capacity at constant volume lower than the specific heat capacity at constant pressure?


How to solve NullPointerException when I press back Button Press

I am facing problem is when i press button back , my app is crash. My ScanActivity: public class ScanActivity extends AppCompatActivity implements BarcodeReader.BarcodeReaderListener {         BarcodeReader barcodeReader;         @Override         protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_scan);             barcodeReader = (BarcodeReader) getSupportFragmentManager().findFragmentById(R.id.barcode_scanner);         }  My function to scaning my Qrcode. @Override         public void onScanned(Barcode barcode) {             Intent intent = new Intent(ScanActivity.this,TicketActivity.class);             intent.putExtra("code",barcode.displayValue.toString() );             startActivity(intent);         }            Scaning multiple barcodes @Override         public void onScannedMultiple(List<Barcode> barcodes) {              }              @Override         public void onBitmapScanned(SparseArray<Barcode> sparseArray) {              }  Return error. @Override         public void onScanError(String errorMessage) {             Toast.makeText(ScanActivity.this,"Error " +errorMessage ,Toast.LENGTH_LONG).show();         }         @Override         public void onCameraPermissionDenied() {             finish();         }          }  And Logcat i read it but i cannot found the problem. 04-06 12:17:25.871 30393-30393/com.example.mobilevision E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.mobilevision,     java.lang.RuntimeException: Unable to destroy activity {com.example.mobilevision/com.example.mobilevision.ScanActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference         at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3831)         at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)         at android.app.ActivityThread.-wrap5(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1398)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:148)         at android.app.ActivityThread.main(ActivityThread.java:5417)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference  Should i need add function onDestroy ?


I'm trying to run an Ubuntu 16.04 VM in an oracle virtualbox but when I boot Ubuntu the display is extremely zoomed in.  (the picture depicts the full screen view). Virtualbox display settings only give the option to zoom in further so I'm not sure what to do! Please help!  Thanks!


Create a python programm standalone on windows 7

I'm beginner on python,  I'm developing a Python 3 application on my own computer (LINUX) and  I have to give a final standalone version on Windows 64 to my teacher.  My question is how to compile a python program on Windows, what's tools are generally used to programming python on windows and how to handle dependencies module (Sklearn, OpenCV  ...etc).  Thanks in advance !


My Windows 7 system automatically logs into the Administrator account without user input. Why does it do this?


I am trying to perform a landscaping job for someone. However, they are telling me that the ex-owner of the house he is trying to buy does not accept credit cards. He is asking me to pay for the closing fee by sending me his credit card information and sending the ex-owner a certain amount to pay for it while giving me the downpayment for the landscaping work that is needed to be done. Should I be cautious of this?


style.display = "block" won't work on ie and chrome

I need to hide the form on submit  <form id="details_form" class="form-horizontal" role="form">   and show the game "pacman"

   I'm using style.display property to hide and show the div and the form  $(document).ready(function() {  _("pacman").style.display = "none";  $("form").submit(function(e) {     _("details_form").style.display = "none";     if(_("details_form").style.display === "none"){         _("pacman").style.display = "block";     }     return false; // prevents page refresh! :) yay!! }); });   On Chrome and IE:   but, on Firefox:   I've also hosted it on a server and checked. But with the same result. What's happening? Check my code on


Why are the eigenvalues of $X'X$ equal to that of $XX'$ when $X$ is a design matrix?

The title says it all. If $X$ is a design matrix (columns containing variables, rows containing observations), I have observed that eigs($X'X$)=eigs($XX'$). I actually found this by accident when I was trying to compute eigenvalues of a covariance matrix in Matlab. Why is this the case? Can someone provide me some intuition, proofs, and/or reading materials?


Let $a$, $b$ an element of $\mathbb{Z}$ with $a$ and $b$ not both zero and let $c$ be a nonzero integer. Prove that $$(ca,cb) = |c|(a,b)$$


$X,Y\sim U(0,1)$  are independent, $W=\max (X,Y)$.      How do I find the PDF of $W$? How do I find the expectation of $W$ at two ways: 1. with the PDF of $W$ and without the PDF of $W$.   I'd like to get any idea how to solve it... Thank you!!!


Framing a question on "results" of a malarial infection ("Enlargement of the spleen and liver and blockage of capillaries in the brain")

What are the results of the infection of malaria?      In the question sentence, is the use of "the results" correct? Can I use "the effects" instead of "the results"? If the answer to the question is :      Enlargement of the spleen and liver and blockage of capillaries in the brain.   I would like to know how to ask the question.


Why do I have two OS X Catalina volumes?

This:    And this:    Should I be concerned?  Should I remove one?


Is it same number of candies for any stage of evolution while transferring pokemon to professor?

I was just wondering if the number of candies we get while transferring the pokemon to professor is same for any stage of evolution ?   For example, you would get a pidgey candy for transferring a pidgey. Is it same number of candies for transferring pidgey, pidgeotto or pidgeot ?


Why can't polynomials have negative exponents or division by a variable

Why can't:  $$2x^{-3} - 3x$$  or  $$\frac{1}{2x}$$  be polynomials too?  Why have a definition that excludes these algebraic forms?


What is an ideal current source in real life?

In page-8 to 9 in Art of Electronics by Horowitz and Hill, the concept of current sources and voltage sources are discussed. Batteries are given as example of ideal voltage source but there seem to be no examples given of an 'ideal' current source, so what is an ideal current source? My question is different from  as here I ask about ideal sources, not real sources.


Divide a matrix into two regions in latex by line and color

I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure:   Any tutorial or instruction?


When can you build up all representations from the fundamental and antifundamental ones?

Under what conditions can you determine all representations of a Lie algebra from the fundamental and antifundamental ones using just the tensor product, direct sum and Clebsch-Gordan decomposition? I think this is true for $\mathfrak{su}(2)$ and $\mathfrak{sl}(2,\mathbb{C})$, or at least that's what physics books lead me to believe!   Is it true in general for semisimple Lie algebras?


Is it possible to spend some reputation for a particularly good answer? Sometimes I would like to say thank you by not just commenting. :-)  A workaround is to create a bounty, but that's not exactly what I'm after.


Can the relative pronoun "where" be omitted in a relative clause with the preposition "in"?

Can the following sentences:  It's the church where the painting burned./It's the church in which the painting burned.  be transformed so that they do not contain the pronoun which/where in the following way:  It's the church the painting burnt in.


Unity "File" button opening a separate window when automounting USB

I installed Ubuntu 14.04 and whenever I plug an USB drive it automounts it normally and opens a Nautilus window. However, when I change to another window and then try to return to my files by clicking the Nautilus button on the Unity panel it opens a new window  pointing to my home directory. Only when I Alt+Tab to the previously opened window can I access the USB files.  Is there some sort of configuration associated with this?  Thanks in advance.


How do I prove the existence of $\lim_{(x,y)\to(0,0)} \frac{x^2y^2}{x^3+y^3}$

How do I prove the existence of $$\lim_{(x,y)\to(0,0)} \frac{x^2y^2}{x^3+y^3}$$ When $y=0$ the limits is $0$  when $y=-x$ it´s $$\lim_{x\to0} \frac{x^2(-x^2)}{x^3- x^3}=\lim_{x\to0} \frac{x^2(-x^2)}{0}$$  I can concluir that the limit no exist?? or how proof the existence?


Protect my passwords in Passwords and Keys program

I just found out that I can see all of my passwords in Passwords and Keys program. That means any friend of mine can see my passwords if he/she uses my computer for some temporary use.  I know I can lock it and unlock it by entering password  How to I keep it locked until I enter password, and lock it again automatically after that one time use?  People should read the bold part above


Best way to find duplicates from two List

In Java, I have two ArrayLists:  A = [Ab, cd, df, FE, ...] B = [ab, cde, de, fE, ...]   If the lists are a little big, the brute force method is very slow:  for(String a : A) {   for(String b : B) {      if(a.equalsIgnoreCase(b)) {         System.out.println("duplicate: " + a "->" + b);      }   } }   What's the best way to make it faster, but not super complicated to implement?


Dirac delta function and well behaved function

whether dirac delta function a well behaved function? Can u please explain the properties of a   well behaved function..?


Definitions of "linearity" across branches of mathematics or levels of math education

Linearity is a ubiquitous concept in mathematics; however, each branch of mathematics appears to have its own definition of what a linear map (function, functional, functor, transformation, form, operator, or whatsoever) is. These different definitions can lead to confusion, especially when people apply conflicting definitions of linearity to the same mathematical object (just  to figure out what I mean).  One of my favorite examples with potential for conflict is the natural logarithm $\ln : \mathbb{R}_{>0} \to \mathbb{R}$, which the majority of people, as I could learn during hot disputations not only  but also with colleagues in my field, regard as clearly non-linear, even though it fully complies with the definition of a linear map from the vector space $\mathbb{R}_{>0}$ to the vector space $\mathbb{R}$ (cf. Definition 4 below). A similar conflict arises analogously for the exponential function $\exp :\mathbb{R} \to \mathbb{R}_{>0}$.  I do not want to initiate yet another discussion here, about what the right and what the wrong definition of linearity is! Rather, ...  ... I would like to compile a list of existing definitions, to get a better overview of the different uses of the term "linearity" across the different branches of mathematics and levels of education.    Let be begin with the following four, which are certainly far from constituting a complete list. What about bilinear or multilinear forms, linear morphisms and linear functors in category theory, linear metrics, or other concepts of linearity? I am looking forward to see your answers.  At school I was taught that     Definition 1:   A function $f$ is linear if it is of the form $f(x) = ax + b$.   Later I learned that $f(x) = ax + b$ is affine, rather than linear, because     Definition 2:   A function $f$ is linear if it is of the form $f(x) = ax$.   From real analysis and systems theory, I know the following     Definition 3:   A map $f$ is linear if         $f(x + y) = f(x) + f(y)$   $f(a \cdot x) = a \cdot f(x)$.      This definition also applies to the expected value in statistics, as        $\mathrm{E}(X + Y) = \mathrm{E}(X) + \mathrm{E}(Y)$   $\mathrm{E}(a \cdot X) = a \cdot \mathrm{E}(X)$.      In a linear algebra course, I learned for the first time that we must not forget to take into account that the vector-space operations of the domain and the codomain of a map $f$ may be dissimilar. In fact, if $(V, \oplus, \odot)$ and $(W, \boxplus, \boxdot)$ are two $\mathbb{K}$-vector spaces, then     Definition 4:   A map $f : V \to W$ is linear if         $f(x \oplus y) = f(x) \boxplus f(y)$   $f(a \odot x) = a \boxdot f(x)$.         Notice that I deliberately used distinct symbols for the operations in both vector spaces, to emphasize how this definition differs from Definition 3.   Correct me if I am wrong, but this definition should also apply to maps between two modules.    Updates:


How does Lua / Ruby / Python output unicode characters to the terminal on Windows?

I'm making an interpreter and I've been having trouble getting the Windows CMD to output the correct unicode characters. I understand Windows can't handle UTF8 so you have to use UTF16 but everything I have tried hasn't worked. I've tried changing the code page saving the files with specific encodings etc ... and nothing has worked. So my question is, how does Python or Ruby or Lua output Unicode characters to the command prompt?   Do they convert the characters to UTF16 or do they internally represent the characters as UTF16? I don't mind if you only give an explanation of how one of the programming languages works, I wouldn't expect you guys to go looking through the code of all of them. Any help at all would be appreciated.


What WPA projects took place in my (or my relatives') hometown?

Several of the city directory listings I've found list people as being employed by the WPA ().    In the comments on ,  on the blog The Legal Genealogist (posted on June 21, 2012 by Judy G. Russell), one reader says she found employment information about her maternal grandfather in the 1940 Census, but many listings merely say the person was employed by the WPA with no indication of what they were doing.    If I could determine what projects took place in their area, could I find evidence of what work they did?  (Note that the WPA was formed in 1935 and was dissolved in 1943 -- this question was prompted by a missing 1940 Census record for a WPA employee.)  There are indexes at NARA which were produced by WPA projects.  I wonder if any records exist that would list the projects and say how many employees worked for each one.  Lists which named the employees would be a bonus, but even a general overview would be useful for context.     seems an obvious place to start.  I'll check there, and at the Internet Archive, and so on. This is the main entry page for the .  I'll also check the beta History.SE.


How can I remove these little artifacts from my rendered image?

I've read that too many reflections can cause these artifacts, but I couldn't find a solution to remove them. My sampling was set to 512.


I have an AJAX code that update a PHP page and I want to hide the AJAX code so the users when view source of the page don't show for them the AJAX code so How can I do it? This is my AJAX code  <script type="text/javascript"> function Ajax(){ var xmlHttp;     try{             xmlHttp=new XMLHttpRequest();     }     catch (e){         try{             xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");         }         catch (e){             try{                 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");             }             catch (e){                 alert("Oops!");                 return false;             }         }     }  xmlHttp.onreadystatechange=function(){     if(xmlHttp.readyState==4){         document.getElementById('ReloadThis').innerHTML=xmlHttp.responseText;         setTimeout('Ajax()',2000);     } } xmlHttp.open("GET","reload.php",true); xmlHttp.send(null); }  window.onload=function(){     setTimeout('Ajax()',2000); } </script>   So how cna I hide this code from view source?