Recently a home inspector flagged the panel box in a boathouse for having a ground wire attached to the neutral bus bar. The ground came from a jet ski lift attached to the boathouse. This 10 yr old house was in sale process so it had been that way for 10 yrs. I moved the wire to the ground bar. Is that ok?


I don't know if "rather than to" is correct or if there is a better turn of phrase:     Note that our aim is to show [...] rather than to run [...]


Direct Email link com.salesforce.salesforce1

I am trying to get direct link to salesforce1 in the Email Tempalte but I am not abloe to do. I have tried with differnt ways.   I have tried with below URL: com.salesforce.salesforce1://entity/view?entityId=(your ID here) However this is also not working. Please let me suggest where I am wrong.  Thanks, Manoj


Get access from one network to another through server

I have PC with two interfaces eth0 and wlan0. I set two different networks, on eth0 192.168.0.0, and on wlan0 192.168.1.0. I also configure DHCP server (isc-dhcp-server) and it works fine. When I connect via cable I got an address from 192.168.0.0 network (eg. 192.168.0.2), and when I connect via wifi I got an address from wlan0 network.  I want to connect one device (e.g. X) on the ethernet and another (e.g. Y) on wifi at the same time and have possibility to ping from device X the device Y.  I disable firewall by typing ufw disable, and I enable ip4 forward, but it doesn't help.  How can I ping device X from device Y?


execute a file having some terminal commands

I want to create a file which contains some commands (suppose 4 commands) such that when I click on that file, the commands will executed in terminal. Is it possible ? I am using Ubuntu 14.04 LTS. Thanks in advance !


is this correct?  Which are the different methods by which you can search...  or  What are the different methods by which you can search...


I use a question filter to check for Clojure questions across the entire network.  I checked this morning, and it's intermittently showing "No questions found":      Sometimes I check and it's working, sometimes it shows nothing.


Is the Entropy a Function or a Functional?

As in the title, I was wondering whether the entropy of a system (it can be any entropy, from Boltzmann to Renyi etc, it is of no importance) is a function or a functional and why? Since it is mostly defined as: $$S(p)=\sum_{i}g(p_i) $$ for some $g$ that has to be continous etc then it has to be a functional. But then I see that $S_{BG}$ for example, which is defined as $S_{BG}=\sum_i p_i \log p_i$ just needs the value of each $p_i$ in order to be defined, right?  The way I see it, it has to be a functional but it is not clear to me why. Also many authors mention the entropy as a function while others call it a functional.   Thank you!


Why are convolutions written with a minus sign

The convolution of two function $f$ and $g$ is defined as $$(f*g)(x) = \int f(y) g(x-y) dy.$$   Terry Tao  that the convolution with a bump function can be thought of as "blurring" the function. There is also a .  In these contexts, it appears the bump function used is usually symmetric about the $y$-axis, so it shouldn't matter whether we write $g(x-y)$ or $g(x+y)$. However, I have never seen the convolution defined with a plus sign: $$(f*g)(x) = \int f(y) g(x+y) dy.$$  If the point is to translate a bump function by $x$, then why is it standard to write $g(x-y)$ and not $g(x+y)$? Are there other uses of convolutions where it is important to write $g(x-y)$?


How does Picard, or anyone for that matter, decide at what warp speed to travel?  Obviously there are times when they need to get somewhere in a hurry and he says, warp 9 or maximum warp, but the rest of the time he just seems to pick a number at random. He rolls a warp 6.5 Is there some guide as to recommended speeds that he's following? Is there a speed that is the most efficient?


When trying to view  via the iOS app, I get this:        It's consistent, retrying does not help and the request always fail.  All other questions load just fine, so I highly suspect the cause is the Emoji icons used in there, especially in the comments that contain lots of them.  Beta channel, version 1.0.1.85  Update: still happening in 1.0.1.88 and I also found that the "preview" seen for example in tag search shows the Emoji just fine:


I've got the following exercise:Show that the series $\displaystyle\sum_{n=1}^{\infty}\dfrac{1}{\sqrt{n}+\sqrt{n+1}} $ converges and compute its limit if it's posible. I've already tried with the Integral test but is worthless, I've got the same thought about using the ratio test. So I don't know which one of the convergence test would be most useful to compute the limit.


How would you prove that $\tan({\alpha}) +2\tan({2\alpha})+4\tan({4\alpha})+8\cot (8\alpha) = \cot(\alpha )$?   Regards!


Number theory: Is this argument correct and cube question

First of all, is this argument correct? Suppose $m < n$ are integers. Then for every $k \in \mathbb{N}$  $$m + k < n + k.$$  What I did: Suppose that $m + k \ge n + k$, the by the cancelation law $m\ge n$. What gives us a contradiction.  Is this right?  Another problem is, I have to show that $2^n + 1$ is not a cube for every $n\ge 0$. I think that I have to use induction, but I don't know how.  Thanks!


How to access OS name and version in Terminal or from inside my python code?

I want to have access to the OS name and Version from inside my Python code. Is there any environmental variable I can use for that purpose?  Note that I want to get the OS name and version that appears on the About this mac on my Mac. With platform.uname() I get different OS name and version!


I want to install the latest RStudio.  I followed the answer to   When I typed the last line of the answer  make && make install   I got error msg:  *** No targets specified and no makefile found stop.


Does a fighter's Action Surge allow 2 off-hand attacks as bonus actions?

A fighter at lvl 20 with dual wielding and two weapon fighting should effectively make up to 10 attacks in one turn using action surge.   Two weapon wielding states you may make a bonus action when you take an attack action and having dual wielding you may use any weapon. Therefore there are four attacks, a bonus because you attacked, then Action Surge also gives four attacks, and one more bonus because you attacked.   I understand PHB says you may only take one bonus action but it also says you may only take one action. Action surge clearly violates this so I believe it would also grant another bonus action since two weapon fighting clearly states per attack action and not turn. Especially since you don’t have to use action surge to attack anyways. Can anyone clarify this?


Let $\mu: \Sigma \to [0, \infty)$ a measure over $\Omega$. We say a set $A \in \Sigma$ is an atom if for all $B \in \Sigma$ with $B \subset A$, $\mu(B)=\mu(A)$ or $\mu(B)=0$. We say that $\mu$ is atomic if every set $A \in \Sigma$ with positive measure contains an atom with positive measure.  So, I'm trying to prove that if $\mu$ is atomic, there exists $\{ A_n\}_{n \in \mathbb{N}}$ pairwise disjoint atoms such that its union covers $\Omega$.  I can build a sequence this way:  Let $A \in \Sigma$ be a set with positive measure. It contains an atom $A_1$.Then I pick up $\Omega \setminus A_1$. Again, it contains an atom $A_2$ which is disjoint from $A_1$.   However, I do not know how to continue. I would appreciate any help.


What's the difference between "They finished the project by March" and "They had finished the project by March"? Can you give contexts when to use one and not the other?


I don't need an administrator to change my root password. I don't want any sudo user to execute this command:  sudo passwd $root   I have tried it in the sudoers file using the following command:  %sudo ALL=(ALL) ALL, !/usr/bin/passwd $root   How can I block it?


I can't change line in equation when I import equation from Mathematica

I copied an equation from Mathematica and I can't change line in the equation but when I write it manually in LaTeX it works fine. Here is the equation that I copied:  \begin{equation}  \begin{multlined} \lambda _3 \sin \left(h_1(t)\right) \sin \left(\cos \left(p_1(t)\right)  \left(\sqrt{R^2-a^2}     \\    h'(t) sin (h(t)) \sin (p(t))-\sqrt{R^2-a^2} \cos (h(t)) p'(t) \cos (p(t))+a p'(t) \sin (p(t))+c h'(t) \cos (h(t)) \sin  (p(t))+c \sin (h(t)) p'(t) \cos (p(t))\right)+p_1(t)\right)  \left(-\sqrt{R^2-a^2} h'(t) \sin (h(t)) \cos (p(t))-\sqrt{R^2-a^2}  \cos (h(t)) p'(t) \sin (p(t))-a p'(t) \cos (p(t))+c h'(t) \cos (h(t))  \cos (p(t))-c \sin (h(t)) p'(t) \sin (p(t))\right)-\lambda _1 \cos \left(h_1(t)\right) p_1'(t) \left(-\sqrt{R^2-a^2} h'(t) \sin (h(t))  \cos (p(t))-\sqrt{R^2-a^2} \cos (h(t)) p'(t) \sin (p(t))-a p'(t)  \cos (p(t))+c h'(t) \cos (h(t)) \cos (p(t))-c \sin (h(t)) p'(t)  \sin (p(t))\right)+\lambda _2 \cos \left(h_1(t)\right) p_1'(t) \left(\sqrt{R^2-a^2} h'(t) \sin (h(t)) \sin (p(t))-\sqrt{R^2-a^2}  \cos (h(t)) p'(t) \cos (p(t))+a p'(t) \sin (p(t))+c h'(t) \cos (h(t))  \sin (p(t))+c \sin (h(t)) p'(t) \cos (p(t))\right)+\frac{1}{2} i  \left(2 \cos \left(h_1(t)\right) p_1'(t)+2 s_1'(t)\right) \end{multlined} \end{equation}   And what are these left and right?


Is it possible to play Diablo 3 on Ubuntu?  What should I install to play D3 with good graphics?   How can I get an Nvidia video card to work well with Diablo III?


Situation is I have simple mechanism, which sends messages from apex trigger to our processing server. My trigger framework creates object for every change and save it to the WorkflowQueue__c. There is job running which periodically withdraws items from WorkflowQueue__c table and sends them asynchronously outside SF.   Issue: When change on User object occurs, there is supposed to be inserted new object to the given table, but I get such message:     System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): WorkflowQueue__c, original object: User: []   Why is this happening? WorkflowQueue__c contains only some string and original User object is not edited/update. I cannot see why apex prevents me from inserting such unrelated object. I would by grateful for explanation. Thank you


How to move a window if titlebar is overlapped by Ubuntu menu

okey i know this is a duplicate of:  but some smuck wouldn't let me comment, so i had to start a new question.  all the proposed answers using Alt work, but are temporarily! is there a permanent solution? i have some windows that open for some reason in this position. it seems Ubuntu isn't remembering the new position.


Repeated applications of cos function converges around $0.7390851$

I set my calculator to radian mode. I enter any random number $x$. Then I repeatedly apply cosine to that number, getting the sequence $$\cos x, \cos(\cos x), \cos(\cos(\cos x)) \ldots$$ and so on. No matter what $x$ I start with, it always converges around $x^* = 0.7390851$. Obviously, $x^*$ is the solution of $\cos x=x$. But why does repeated application of $\cos$ converge around this number?


Windows 10, shortcut to snap windows with multiple monitors (win+arrows)

I am used to press WIN+arrow to snap window to the side of a monitor. If I press it more times, the windows cycles through monitors.   E.g. I have to monitors. If I have some window at the arbitrary position at the right monitor and press WIN+left, windows snaps to the left side of the right monitor. If I press it once more, window snaps to the right side of the left monitor, than left side of the left monitor ...  BUT This is not working in windows 10. Build 9841 It snaps only within one monitor.  Does anybody know a way to restore original behavior?


Line up captions on side by side figures

I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a figure environment. But the captions don't line up without trail and error \vspace's before the individual captions. Is there a way to line up the captions automatically?


I understand a lot of people really dislike ads and are happy to have the reduced ads privilege at 200 reputation.  Personally I've really come to appreciate SO, and in support I don't mind seeing ads as it generates income for SO/SE. If I had the option, I would choose to see the regular amount of ads because I like this site.  I think it would be good to give a user with more than 200 reputation the option to support SO and choose to see the normal amount of ads or use the privilege to see reduced ads.


Will I understand "War for the Planet of the Apes" if I don't watch the rest of the movies?

I would like to know if I can just watch any one of the Planet of the Apes franchise movies and understand it, or do I have to watch all of them?  I'd be fine with either, but I want a clear, correct, and easy understanding and answer.


How do I get into or recover 1 of my 3 Gmail accounts that's been took or hacked? This is my 3rd account that has been hacked and I don't have the phone number for them.


How should I handle the automatic duplicate answer flags?

I find the "duplicate answers (auto)" flag the most difficult to handle on Stack Overflow. Here's how I try to handle the situation, but I'd appreciate some further pointers and corrections if this is not correct:   First, I check if the questions are duplicates. Exact duplicate answers typically mean duplicate questions and if this is the case, I vote to close accordingly. I post a comment under the most recent answer, explaining that duplicate answers should not be posted and that the user should flag/vote-to-close as a duplicate. If I feel able to do so, I judge the answer like any answer and vote accordingly. I then mark the flag as invalid to make it go away.   Is there any further action I should be taking other than the above? Is it OK to mark the flag as invalid in this way - seems a little awkward?


Proving $a^2$ is even $\implies$ $a$ is even by contradiction

Prove $a^2$ is even $\implies$ $a$ is even.  It was proven via contradiction by my friend.  Here is the proof in question, which uses proof by contradiction  Assume towards a contradiction that $a$ is odd.  Let $a = 2k+1$, then $a^2 = 4k^2 + 4k + 1 = 2(2k^2+2k)+1$ Therefore $a^2$ is odd.  Contradiction.  To me, this proof in question seems incorrect because it shows that if $a$ is odd then $a^2$ is odd. We have shown that the converse of what we want to contradict is a contradiction.  I feel like this proof by contradiction is not mathematically correct or vigorous enough, and for it to be correct we would have to start from $a^2$ being even, working our way down to $a$ being odd, and then finding a contradiction.    Am I correct? Or am I just confused about something?


I want to set my folders permissions to 555 and my files permissions to 554, so I tried the following chmod:  sudo chmod -R -v ug=rx,o=r,a+X mydir/   I thought this would set the user and group permissions to r-x and others permission to r--, but since there is an a+X only folders would receive an r-x for the others permission, but files would remain r--.  But this isn't working and it is setting all the files and folders to 555, even if I set all folders and files to 444 before to assure there isn't any x permission anywhere.  Why this chmod command doesn't work as I expected it to?


high precision subsecond cronjob replacement

I am looking for a cron replacement which could run subsecond schedule, is there have any "still alive" project which serve this purpose?  Currently running Ubuntu 14


What is the purpose of Views "Attachment", "Content pane" & "Context"?

I've just made a Views for a content type.  In one views, I need a page for the content type and a preview of 4 newest posts on the front page.  Page is not the problem. For front page preview, I just confused about the purpose of "Attachment", "Content pane" & "Context". I don't know which one to use for front page preview.  "Context" does not have more link, and "Content pane" is not for Panels pane since Panels module is disabled.


How to save or back-up whole SMS threads on SIM

I have a Samsung-SGH -I927 and would need to save on my SIM card or send to my email for back up several text SMS messaging threads. I know that I can do this with an individual SMS' by lightly tapping on them and choose the save to SIM option, but I do not know how to do it with a whole thread. How can I do it?


I am using an embedded Arm with a Debian build. How does one list the compiled devices from the device tree? I want to see if a device is already supported.  For those reading this, the "Device Tree" is a specification/standard for adding devices to an (embedded) Linux kernel.


What is the purpose of having obvious axioms in mathematics?

Why not simply use right away? Why is an axiom and what is not?   Some of the obvious statements are made into axioms whereas other obvious statements aren't.  For example, the axiom of choice, arbitrary union axiom, etc. Isn't it so obvious?


I'm trying to install Visual Studio Code, I downloaded deb file and run it. Ubuntu Software was opened but unfortunately when I tried to click install button nothing happened (this is only happening with third-party software). I didn't even get any error message. What can be the problem?


Changing the RAM of lenovo workstaion from 8GB stick to 32GB

I have Lenevo P700 It supports this memory . This is ram which is currently inside  THis is what i find from google it supports 32GB  I want to buy this and not sure if its same or not  Also is it possible that i can buy single stick to test if it works or i have to buy 2 sticks together in pair to make it work ? i want o buy 8 4 sticks


How to permanently disable attempts to install Processor microcode firmware for Intel CPUs updates?

I do not want to install Processor microcode firmware for Intel CPUs updates even by accident (I am more than willing to take the security risk). How to disable it being offered in Software Update and how to make sure I am not accidentally installing it?


UV Unwrap brick wall, gable ends, slanted roof

I am trying to model the inside of a room (brick walls, wooden floor).  I modelled it from 4 planes, put together like walls. This has problems with the edges not aligning when using displacement however. So I think it may be better to switch to a cube.  I find it difficult to uv-unwrap it however.  I want the roof to be slanted. But I can't figure out how to apply the texture correctly if I do, since it becomes warped, like this:    And I wanted a look something like this:    How would one go around UV-unwrapping for that?  Best way that doesn't warp the "gables" (ends of the house, hope it's the right word) is to unwrap those by themselves. Only disadvantage to this is that blender will not see to it that proportions are kept then, so bricks will not be same size on all sides.  Also if possible I would like to avoid seams at the corners.


What are the best JVM settings for Eclipse?

What are the best JVM settings you have found for running Eclipse?


I have been using Win7 ubuntu 12.04 dual boot laptop and one day I got Disk failure imminent message in ubuntu.I have been using Win 7 since then for about 2 months now and havent experienced anything problematic but it is not letting me boot in Ubuntu.What should I do?


provides a nice explanation of how to manipulate TEXINPUTS or register a local texmf tree.   Q: When integrating local additions, is there a reason to prefer one approach over the other?  I'm guessing that TEXINPUTS is just regarded as the quick and dirty approach while registering a local texmf tree may be a better idea if you have a lot of files within a logical directory structure to which latex needs to be pointed.  If I'm missing something here I'd love to hear about it :)  This question is a follow-up to my post


Generating line segments between all points using QGIS

How do I create a vector layer with a network of line segments drawn between every point in another vector layer? Basically, I am trying to create something similar to a hub/spoke network, except that instead of having a single hub and the other points are destinations, I would like every point to be treated as a hub with a direct connection to every other point. I have managed to get the hub lines from one point to every other using the MMQGIS plugin "Hub Lines" module, but it seems that I would need to re-run it for each individual point. Is there a way to just do it all in one go in QGIS? It may be worth noting that I don't need to know the distances between the points; I'm looking for the azimuths.


Suppose $S^m$ is a contraction on a complete metric space $(X,d)$. I want to show that this implies $S$ has a unique fix-point.

Let $(X,d)$ be a complete metric space and let $S: X  \rightarrow X$ be a mapping. Suppose there exist $m \ge 1$ such that $\underbrace {S^m = S \circ S \circ \dots \circ S}_{\text {m times}}$ is a contraction, i.e. there exist $0\le\beta<1$ such that $d(S^m(x),S^m(y)) \le \beta d(x,y)$ for all $x,y \in X$.  I want to show that this implies that $S$ has a unique fix-point, i.e. there exist a unique $z \in X$ such that $S(z) = z$.  I've tried to apply Banach fix-point theorem which imply that $S^m$ has a unique fix-point. Also, I've tried consider if $S$ has an inverse. Last, I've tried to come up with a proof by contradiction.  Can anyone guide or show how the above could be proven ?


How can I select all ids and values in one row, group by condition?  For example:   | id | value | condition | -------------------------- | 1 | value1 |     0     | | 2 | value2 |     0     | | 3 | value3 |     1     | | 4 | value4 |     1     |   Result:  | ids  |     values     | condition | ------------------------- | 1, 2 | value1, value2 |     0     | | 3, 4 | value3, value4 |     1     |


I want to access 14.04 via remote desktop from xp. I installed vnc4server on my 14.04 system following this . Now what to do afterwards? Do I need to install some thing on xp? vnc client for xp? Maybe I can follow . All I need is to access the 14.04 desktop from xp. So if there is a solution, please just tell me:    what I need to install on 14.04, and  what I need to install on xp.


Show that linear finite rank operators are open mappings

Suppose $X$ and $Y$ are topological vector spaces, $dim(Y) < \infty$, $\Lambda : X \rightarrow Y$ is linear, and $\Lambda (X) = Y$. Prove that $\Lambda$ is an open mapping.  Thanks in advance.  Edit:  Definition of TVS: Here, a Topological Vector Space is a vector space such that vector addition and scalar multiplication are continuous and also singletons are closed.


Locked out of BIOS, need to boot from USB?

My Lenovo y570 was victim to a virus while browsing without any antivirus software. After a few minutes i saw a blue screen, then when trying to boot i see:  no bootable device found -- insert boot disk and press any key   So i got a USB, installed an .iso with Unebootin, then put it into the lenovo. Unfortunately you need to go into BIOS to boot from the USB.   I for the life of me have no clue what the BIOS password is or how i can get around this. Any suggestions? I read something about jumpers somewhere, i don't mind opening the computer, but will i be able to bypass BIOS? i don't mind wiping the computer, its a brick at this point anyways.  Thanks.


Get the first and second objects from a list using LINQ

I have a list of Person objects. How can I get the first and second Person objects that meet a certain criteria from List<Person> People using LINQ?  Let's say here is the list I've got. How can I get the first and second persons that are over 18 that is James and Jodie.  public class Person {     public string Name;     public int age; }  var People = new List<Person> {    new Person {Name = "Jack", Age = 15},    new Person {Name = "James" , Age = 19},    new Person {Name = "John" , Age = 14},    new Person {Name = "Jodie" , Age = 21},    new Person {Name = "Jessie" , Age = 19} }


how to determine how much power to use in manual mode for external flash?

i recently added an sb700 to my d3200 and am unsure how to determine proper amount of power to use in photos.  in another thread here on stack exchange, it was suggested that the ttl metering makes a distinction between two main situations 1) where the speedlight is being used as the main light source, and in which case shutter speed is irrelevant. 2) where the speedlight is being used as fill flash, and shutter speed is relevent.  i shoot in manual mode without the flash and would also like to shoot manual on the flash, so i am unsure if i should just be trying and erroring?  should i meter my scene underexposed and than try to balance with the speedlight, and checking for accuracy of this with my histogram?  or is there a more precise way of determining how much flash to use?


Is it possible to use a laptop as an external monitor?

I need to create a multi-monitor setup for my desktop computer but I have no additional monitors with me right now, aside from my laptop. Is it possible to use my laptop screen as an external monitor?  Note that I am not trying to connect a monitor to my laptop, rather, I am trying to connect my laptop screen to a desktop video card (if this is possible).


I have two particles on the sensor of my Sony a6000. Both are round and about 0.3 mm in diameter.  The spots are only noticeable in bright areas and are easy to remove with Capture One's spot removal tool.  I looked up ways to clean my sensor and tried these:   Blowing the particles carefully away with a hand blower Using the built-in clean mode   The particles didn't budge, though. I have thought about using a swab after reading about that but I'm anxious about damaging my sensor.  Am I safe to touch my sensor lightly with a swab to remove these particles?


Indefinite integral problem: $\int_1^\frac{n+1}{1} \frac{(x - [x])^{[x]}}{[x]} dx$

$ I =\int_1^\frac{n+1}{1} \frac{(x - [x])^{[x]}}{[x]} dx$ my attempt:   $I=\int_1^n \frac{(x - [x])^{[x]}{[x]}}\implies\sum_{i=1}^n\int_r^{r+1} \frac{(x-r)^r}{r}dx $ Now by integration I got, $\implies \left.\frac{(x-r)^{r+1}}{r(r+1)}\right|_{r}^{r+1} +\frac{1}{n(n+1)} \implies \sum_{r=1}^n \frac{1}{r(r+1)} $  But now I'm stuck at summation, any hints?


How can I check if view axis is "top", "bottom" etc?

For example, using this bpy.ops.view3d.view_axis(type='TOP') I can set view axis to "TOP". But how can I get current view axis? Something like this for example: if bpy.ops.view3d.view_axis == 'TOP':     # Do something...  Please note: the question is about finding view axis, but not about to know if the view is perpective or orthographic.


Let's have some fun shall we??  At the bottom of the content for about 1/3rd of my pages, but not in the footer, I create an internal link for each related IP address to the page on my site for that IP address. This was fine 6 months ago, but now that my database has grown so large, I discovered that it was not uncommon to create 700+ links within this section with one page having 2600. Ooopppsss!! ;-) Houston, we have a problem!  Now this is easy enough to fix. For right now, I put a limit 100 on the query. But this got me thinking and searching for a definitive answer. So far... no luck.  Please understand I do fully know the effects regarding SEO. Most of you know that already. I am not looking for a lesson- just an idea of a range.  Q: How many internal links per page is too many?  There are a lot of answers on the net culled from various nether regions and I have a number in mind (also culled), but I was thinking that there has to be an authoritative answer somewhere. Google says reasonable and MOZ's answer seemed to very arbitrary to me. Some so-called SEO experts say as little as 6 and as much as 200. Yeah. That is useful! One said there is no limit. I know there is a semi-flexible practical limit. I remember reading about this years ago, but cannot remember the mechanics behind it right now. I would have to think on this for a while.  Bonus Q: If given a choice of creating links from a random query (and yes I can do this) or first 100 or so (using limit), which would you prefer/advise and why? Again, I have an idea in mind (again, culled). Is there anything definitive in this regard as well?  My primary concerns are UX, download speed, and lastly, Giigle. (<= please do not edit to change)


How do you get Taxonomy ID (TID) from a term name via PHP?

Yes, I googled. I searched. No one has a concise answer to this basic question. Everyone seems to be looking for TID to Term name, but not the other way around. And linking to the Drupal API doesnt help neither. A PHP example would seal the deal.  We just need a simple PHP example of how to convert a Term Name to a TID.  I have the following, but it does not work:  $tid = _taxonomy_get_tid_from_term($row->field_term_name);  print $tid;


I will have US-PHILIPPINE flight, with same flight. With 2 hrs layover in Vancouver, Canada. I have US passport. Do I need a transit pass to enter Canada?


Where can I find LPJ Design's alternate gun rules for Pathfinder?

From :     Your main problem is that the Gunslinger is gimped by the awful Pathfinder gun rules. It will never have comparable damage to other characters. Consider getting your DM to allow better firearm rules, they exist in the Pathfinder Freeport Companion and Adamant Entertainment's Tome of Secrets, and here's a great free set of gun rules (I wrote) for Pathfinder from LPJ Design via RPGNow.   The link in that answer is dead. Where are LPJ Design's alternate gun rules for Pathfinder available now?


Prove that $\cos( \sin x)>\sin(\cos x), \forall x\in\mathbb{R}$.  I have thought that we should consider their difference and show it is positive for all x, so: Let $$A=\cos\sin x-\sin\cos x=\cos\sin x-\cos\left( \frac{\pi}{2}-\cos x\right)$$ but I am unable to move it further. How can we prove that?


I am at my wits end with this computer.  I bought and Acer Aspire 4752 with a fully loaded version of Windows 7 on it.   I prefer Ubuntu so I began to install 14.04 from USB. Got the error: [Errno 5] Input/output error  This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may  help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD  drive lens (cleaning kits are often available from electronics suppliers), to check  whether the hard disk is old and in need of replacement, or to move the system to a  cooler environment.  So I tried a different USB stick, same error.  Tried different versions of Ubuntu, got the same error.  I've used startup disk creator and Unetbootin to make start USB boot devices.    I can boot with the USB drive and run Ubuntu that way.  I even checked the hard drive using the tools in Ubuntu.  Everything was fine, except it said the hard drive was hot.  I tried a different hard drive.  Got same error above.   I ran a test with mem86, everything was fine.  No matter what I do, using the USB gives me the Errno5 error.  I then switched to using DVDs.   Now I keep getting an uncompression error when installing Ubuntu 14.04 or 12.04.  I can't figure out for the life of me why I get nothing but errors.  Can anyone help?


calling a function from the addEventListener with argument

I'm new to JS and i want to call a function with parameters  i don't know why this code does not work  document.querySelector(".left-menu").addEventListener("mouseover", scall(true)); document.querySelector(".left-menu").addEventListener("mouseout", scall(false));  function scall(smith) {     if(smith)     {         console.log("do");     } else     {         console.log("not to");     }     //document.querySelector(".left-menu").style.width = "220px";  }


Automatically warp objects to irregular shape

I have a photo of a blank exhibition stand and I wanted to add some content to it to show how it might look. The stand is curved and the photograph is taken at an angle. I hoped I might be able to:   Draw around the outline of the exhibition stand Convert the outline to a mesh Add text and bitmaps that automatically warp to fit the mesh, so they look like they're actually on the exhibition stand.   I’ve played about with all the warp/perspective/gradient mesh/3D tools in Illustrator and Photoshop but can’t find anything suitable. Illustrator’s perspective tool works for straightforward perspectives, but doesn’t appear to work with irregular shapes such as mine.  I can‘t find anyone else wanting to do this – perhaps I’m approaching it the wrong way? How do I go about it?


I want to say I am a complete newbie but I want a shell script that will execute a command on a specific time for example on 6:45 am  How is this done, a full example would be very useful! Thank you!


Data Source (s) for names and polygon shapes for the world

I am looking to find out where I can ideally get every country, district, city, town, postcode in the form of polygons.  Is there a central place for this? What are the licences for using the data?


If $\sum{a_n}$ converges then does $\sum{(a_n)^2}$ converge where $a_n \ge 0$ for all $n$

Suppose $a_n \ge 0$ for all natural numbers $\Bbb{N}$ and $\sum{a_n}$ converges. Is it necessarily true that $\sum{(a_n)^2}$ converges?  I think yes.  Clearly as $a_n \ge 0$ it follows $(a_1+a_2+\dots+a_n)^2 \ge a_1^2+a_2^2+\dots+a_n^2 \ge 0$ and so $(\sum_{n=1}^{\infty}{a_n})^2 \ge \sum_{n=1}^{\infty}{a_n^2} \ge 0$.  As we are told $\sum{a_n}$ converges to say $L$ where $L$ is a real number it follows $L^2 \ge \sum_{n=1}^{\infty}{a_n^2} \ge 0$ and so therefore $\sum{(a_n)^2}$ converges.  Is this correct?


Did Tolkien ever state that The Hobbit was a children's book?

Many people just assume that simply because The Hobbit is a lighter story than LOTR and the Silmarillion, it's a children's story, but I don't believe Tolkien himself ever said it was made for children.


Let $f$ be a function defined on the interval $(-1,1)$ such that for all $x,y\in(-1,1)$,  $f(x+y)=\frac{f(x)+f(y)}{1-f(x)f(y)}$.  Suppose that $f$ is differentiable at $x=0$.  Show that $f$ is differentiable on $(-1,1)$.  For me I can see that $\tan(x)$ is obviously a case of $f$, but I cannot find a general proof for this $f$. Could any kind soul help?


I'm new to photography and often face problems with subject with a bright background.      For example: A worker on a 2nd floor building with bright sky as   background and picture captured from ground level. I don't want to use   a flash.   I use Nikon D5100. Any suggestions or ideas will be appreciated :)


Negative electrostatic potential energy interpretation

While going through an introductory text in electricity and magnetism , in a section dealing with the electrostatic potential energy (EPE) , the author gave an example of the EPE in an ionic crystal , after some computations the EPE of this configuration (the ionic crystal lattice) turns out :   $U=\textbf{-}\frac{0.8738*N*e^2}{a}$    where $U$ is the EPE of the crystal , $N$ is the number of ions (positive and negative) contained within the lattice , $a$ was the spacing between the ions (see picture) and $e$ the elementary charge .  Then the author sad that the negative sign meant that "work would have to be done to take the crystal apart into ".  .  How did he come to this conclusion ? and what does it even mean for a given configuration to have a $\textbf{negative}$ potential energy ?  Reference :Electricity and Magnetism (E.M.Purcell)


Process Builder user has write access to read only field

We have a process built with Process Builder, that updates a customer field on Account from a related object. When the related object is created, it copies a date from the related object, to a date field on the account.  Some accounts are not getting updated properly, which got me digging. I found that the users who are executing the update on the related object are assigned a security profile with Read Only access to the field on the Account object. However, when I log in as one of those users, the process updates the read only field with no problem.  I checked the effective permissions on that field, and it does indicated that profile has read only access.  I also enabled change tracking on that field and it shows the user with the read only access to that field made the change.  I checked for any permissions sets that might be enabling write access to that field, and there are none.  So how can a user, whose security profile has read only access to a field, execute a process that updates that field?


Whenever I am trying to upvote a discussion on Area 51, for example  it tells me:  Thanks for the feedback! This site is free and open to everyone, but our registered users get extra privileges like posting, commenting, and voting.  I click on the "Sign up using Facebook" button since all my other StackExchange accounts are connected to my Facebook account (just signed up for Math.SE today). When doing so, I appear at . But at the top I see a bar telling me to:  Finish signing up by setting a password for your account  So I click the bar, once again I appear at a . Choosing Facebook again and I get redirected to  where I navigate to a discussion again and try to upvote it, and the whole process starts over. Seems like something about the login system is broken around here. Or is it just my account? Summary, to make things clear:  I am aware that Discuss is effectively a meta site for Area 51 The problem here is not about the 404 error I am logged in on Area 51 I can upvote and downvote example questions, I have even posted an example question of my own a while ago I still can't use Discuss


Behaviour of python list value modification after append multiple times

I append expand a list using operator ' * '.  >>> A = [[0, 0]] * 2 >>> A [[0, 0], [0, 0]]   When I am trying to modify the first element in first list item, it modified the first element in all items of the list.  >>> A[0][0] = 10 >>> A [[10, 0], [10, 0]]   Could you help me explain why? What is the mechanism behind?


Process and plot data in different files using pfgplots

I like to read in my x-y-data from different files and then process them somehow. I read different questions here on each topic ( and ) but I somehow can't manage throwing them together. The following MWE works but I can't process the data. I loaded the x-y-data seperately into \xData and \yData but I can't get them to be plotted as they are seperated. The data I can get plotted I can't process...  \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{pgfplots, pgfplotstable}  \listfiles  \begin{document}  \begin{tikzpicture}  \pgfplotstableset{ create on use/y/.style={create col/copy column from table={chi_probe.dat}{0}} }  \pgfplotstableread{grid_omega_opt.dat}\xData; \pgfplotstableread{chi_probe.dat}\yData;  \begin{axis}[ width=0.85\linewidth, height=8cm ]  \addplot[black, smooth] table [y=y] {grid_omega_opt.dat};  \end{axis}  \end{tikzpicture}  \end{document}


How to block a user from installing/uninstalling applications?

I want to block a user from installing or uninstalling any application in the system. Does anybody know how can I achieve this?


I have installed Blender 2.76b in my computer. But when I open blender, it does not load fully and only icons are visible. This is how it looks:   I have installed Unity 5 in my system and that is working fine.  Can anyone give a solution to this problem?  Thanks in advance.


Composing invocations with Expression> the same way as Func

Consider a class that can be used as a member of multiple other classes:  class Customer {     public string FirstName {get;set;}     public string LastName {get;set;} } // Both "Order" and "Profile" have a "Customer" property class Order {     public Customer Customer {get;set;} } class Profile {     public Customer Customer {get;set;} }   I want to define a method that makes a checker for an object associated with a Customer. If I want an in-memory checker, I do it like this:  static Func<T,bool> Check<T>(Func<T,Customer> conv, string first, string last) {     return obj => conv(obj).FirstName == first && conv(obj).LastName == last; }   I can use my checker for in-memory sequences as follows:  var matchingOrders = orders     .Where(Check<Order>(x => x.Customer, "Foo", "Bar"))     .ToList(); var matchingProfiles = profiles     .Where(Check<Profile>(x => x.Customer, "Foo", "Bar"))     .ToList();   Now I want to do the same thing with Expression<Func<T,bool>>:  static Expression<Func<T,bool>> Check<T>(Expression<Func<T,Customer>> conv, string first, string last)   Unfortunately, the same trick does not work:  return obj => conv(obj).FirstName == first && conv(obj).LastName == last;   and use it like this:  var matchingOrders = dbContext.Orders     .Where(Check<Order>(x => x.Customer, "Foo", "Bar"))     .ToList(); var matchingProfiles = dbContext.Profiles     .Where(Check<Profile>(x => x.Customer, "Foo", "Bar"))     .ToList();   This triggers an error:     CS0119: Expression denotes a variable', where amethod group' was expected   Can I compose expressions the same way that I compose delegates?


Given some matrix A, $A \in \mathbb{R}^{nxn}$  Find all matrices B, $B \in \mathbb{R}^{n×n}$, such that  $AB =BA$  I found an interesting way to solve this problem, and I want to ask you all is this is a valid solution.  First define any infinite sequence of coefficients $\alpha_k$ where k is an integer such that $k\geq0$. Then write B as the following.   $ B = \sum_{k=0}^{\infty} \alpha_k A^k $  It is easy to prove that B will always commute with A.  $ AB =  A\sum_{k=0}^{\infty} \alpha_k A^k = \sum_{k=0}^{\infty} \alpha_k A^{k+1} = \sum_{k=0}^{\infty} \alpha_k A^k A = BA $  Can all matrices $B$ that commute with $A$ be represented in this way, or is this a special case that is not true of all matrices B that commute with A?


A ﬁnite group $G$ acts on a ﬁnite set $X$, the action of $g \in G$ on $x \in X$ being denoted by $gx$. For each $x \in X$ the stabilizer of $x$ is the subgroup $G_x = \{g \in G : gx = x\}$. If $x, y ∈ G$ and if $y = gx$, then express $G_y$ in terms of $G_x$.    How can I able to solve this problem? I am totally stuck on it.


Decomposition of $\mathbb N$ into mutually disjoint infinite subsets

$$\mathbb N =\bigcup_{j\in \mathbb N}\Delta_j $$ where each $\Delta_j$ is an infinite subset of $\mathbb N$  and $\Delta_j\cap \Delta_i=\Phi \ for\ i\neq j.$  Now what I need is a few examples of such decompositions. The only one I can think of now is the collection of the odd numbers and the even numbers. That satisfies it.  Another possibility I was considering was like this ::  $$\Delta_1=2\mathbb N\\ \Delta_2=3\mathbb N \backslash \Delta_1\\ \Delta_3=5\mathbb N\backslash (\Delta_1\cup\Delta_2)\\.\\.\\.\\.\\.\\.\\so\ \ on.$$ The technique here is for any arbitrary $k$ , $\Delta_k=p\mathbb N\backslash \left(\bigcup_{i=1}^{k-1}\Delta_i\right)$.  Clearly I can see all these sets are  mutually disjoint  and also infinite  since there are infinitely many prime numbers.   So , are there any other construction of this kind possible $?$ If so please let me know . Also , if there is any fault in my above construction point it out .   Thank you.


For some reason only one of my bibliography references is compiling properly. The others are not appearing in the reference list at all and do not appear correctly when I type '\cite{source}'. I have one book source (compiling correctly) and the rest are article sources (none compiling correctly). I have looked extensively at the documentation for the article in bibtex but I cannot see that I am missing anything. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[backend=biber, style=alphabetic, natbib]{biblatex}  \addbibresource{ref.bib}  \title{My dissertation} \author{My name} \date{May 2021}  \begin{document}  \maketitle  \cite{ostrovskii}   \cite{frankl}  \cite{erdos}   \printbibliography   \end{document}  %% Below is the reference list page (sample) entitled ref.bib @BOOK{ostrovskii,         AUTHOR = " Ostrovskii, Mikhail",         TITLE = " Metric Eembeddings : Bilipschitz and coarse embeddings into Banach Spaces",         PUBLISHER = {Berlin: De Gruyter},         YEAR = 2013}                   @article{frankl,     AUTHOR =       "Frankl, N., Kupavskii, A., Swanepoel, K. ",     TITLE =        "Embedding graphs in Euclidean space",     JOURNAL =      "Journal of Combinatorial Theory, Series A",     YEAR =         2020,     VOLUME =       "171",     DOI =          "https://doi.org/10.1016/j.jcta.2019.105146" }          @article{erdos,     author =       "Erdős, P.; Harary, F.; Tutte, W. T. ",     title =        "On the dimension of a graph",     journal =      "Mathematika",     year =         1965,     volume =       "12",     number = "2",     pages = "118-122",     DOI =          " doi:10.1112/s0025579300005222" }


How to draw a 3d cylinder using TikZ-3dplot?

I'm trying to draw a 3d cylinder using TikZ-3dplot, but the cylinder walls are not aligned properly (as you can see in the image).  Does anybody knows what am I doing wrong?  \documentclass{article} \usepackage{tikz}   \usepackage{tikz-3dplot}  \begin{document}  \pgfmathsetmacro{\thetadisp}{60} \pgfmathsetmacro{\phidisp}{170} \tdplotsetmaincoords{\thetadisp}{\phidisp}  \pgfmathsetmacro{\rvec}{.8} \pgfmathsetmacro{\thetavec}{15} \pgfmathsetmacro{\phivec}{30}  \begin{tikzpicture}[scale=10,tdplot_main_coords]      \coordinate (O) at (0,0,0) node[anchor=north]{$o$};      \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=east]{$x$};     \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};     \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south east]{$z$};      \tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec};     \draw[thick,color=gray,->] (O) -- (P);      \tdplotsetrotatedcoords{\phivec}{\thetavec}{0}      \tdplotsetcoord{A}{0.2}{90+\thetavec}{0};     \draw[thin,tdplot_rotated_coords,fill=gray] (A) arc[start angle=0,delta angle=180,radius=.2] -- ++(0,0,\rvec) arc[start angle=180,delta angle=-180,radius=.2] -- cycle;     \draw[thin,tdplot_rotated_coords,fill=green] (0,0,\rvec) circle[radius=.2];      \draw[thick,tdplot_rotated_coords,->] (0,0,0) -- (.2,0,0) node[anchor=north east]{$x'$};     \draw[thick,tdplot_rotated_coords,->] (0,0,0) -- (0,.2,0) node[anchor=west]{$y'$};     \draw[thick,tdplot_rotated_coords,->] (0,0,0) -- (0,0,.2) node[anchor=south west]{$z'$};      \end{tikzpicture}  \end{document}


I've been designing some straight pipes lately. This I do by creating an outer cylinder for the outer diameter and an inner cylinder for the inner diamter and applying a difference boolean operator. Sometimes the boolean will just not work without giving sense to me. In this case I only have 2 kind of objects in the scene: Outer cylinders and inner cylinders. I've just applied the first boolean between outer and inner with success:    After applying the boolean to the second set, the object to which I applied the difference hasn't been subtracted the inner cylinder all the way through:    Has anyone experienced this before?  /Cheers


What is the difference between "du -sh *" and "du -sh ./*"?

What's the difference between du -sh * and du -sh ./* ?  Note: What interests me is the * and ./* parts.


How do I get numbered entries in a beamer bibliography

Instead of the default icons or the text option, I would like to have numbered entries in my bibliography.  I added the line:  \setbeamertemplate{bibliography item}{}  to get rid of the icons, but can't figure out how to get numbers to display in their place. The references in the content slides are numbered, but without the corresponding number in the bibliography it's not very helpful.  MWE:  \documentclass[t]{beamer}  \setbeamertemplate{navigation symbols}{} \setbeamertemplate{bibliography item}{} \setbeamertemplate{frametitle continuation}[from second]  \setbeamertemplate{footline}{     \hspace*{0.1cm}     \text{short title}     \hspace{1cm}     \insertshortauthor     \hspace{3.5cm}     \insertsectionhead     \hfill     \insertframenumber     /     \inserttotalframenumber     \hspace{0.1cm} }  \title{a title} \author[me]{my full name} \institute{where I work} \date{today}  \begin{document}  \begin{frame}     \titlepage \end{frame}  \begin{frame}     \frametitle{1st slide}     Some text. \cite{ref_1} More interesting text. \cite{ref_2} Some even more interesting stuff. \cite{ref_3}  \end{frame}  \begin{frame}[allowframebreaks] \frametitle{References}     \tiny{\bibliographystyle{abbrv} }     \bibliography{refs} \end{frame}  \end{document}   Bib file:  @inproceedings{ref_1,   title={title 1},   author={A. Author},   booktitle={book title},   year={2010} } @article{ref_2,   title={title 2},   author={B. Author},   journal={Journal},   volume={35},   number={10},   pages={1217--1256},   year={2010},   publisher={Publisher} } @incollection{ref_3,   title={title 3},   author={C. Author},   booktitle={book title},   pages={595--606},   year={2012},   publisher={publisher} }   Resulting bibliography:


How do I change the Site Feed item limit?

My organization has a site feed web part on the home page of our intranet site where user's can post what's going on throughout the company. The current SharePoint default for the site feed is to display 20 items. I have not been able to find a way to modify this default setting. Any Ideas?   This is for the "SITE FEED / Microblogging" web part


The order of execution of the same hook implementation in two different modules

I need to create two custom modules in Drupal 7. The two custom modules will implement the same hook. How can I guarantee the order of execution for the two custom module? I mean module1 will run first then module2 OR the reverse order?


If there are only two Sith, why aren't they easily defeated?

If there are so many Jedi that there's even a Jedi Order, how hard would it be to hunt down two Sith lords? Once they found those two, wouldn't that be the end of the Sith?


How do I get rid of all the invisible/black stuff on this render?

I tried compositing, changing render settings, etc. None of them worked. Is there a setting in which can fix this?


Why a change of a brownian motion does not depend on the past values of it?

$(B_t)_{t \in \mathbb R_0^+}$ are random variables on $(\Omega,\mathcal A,P)$.   $\forall r \le s, t > s, B_t-B_s,B_r$ are independent (i.e. $\sigma(B_t-B_s)$ and $\sigma(B_r)$ are independent, where with $\sigma(X)$ I denote the $\sigma$-algebra produced by the variable $X$).    Can one show that $B_t-B_s$ and $\sigma(\{B_i| r \le s\})=\sigma(\bigcup_{r \le s}\sigma(B_r))$ are independent?  Does one need to use the fact that any endless sequence of random variables from $(B_t)_{t \in \mathbb R_0^+}$ is multivariate normally distributed?


Does functional programming replace GoF design patterns?

Since I started learning  and  last year, I've read a huge number of articles which insist that design patterns (especially in Java) are workarounds for the missing features in imperative languages. One article I found :     Most people I've met have read     by the Gang of   Four (GoF). Any self respecting programmer   will tell you that the book is   language agnostic and the patterns   apply to software engineering in   general, regardless of which language   you use. This is a noble claim.   Unfortunately it is far removed from   the truth.      Functional languages are extremely   expressive. In a functional language   one does not need design patterns   because the language is likely so high   level, you end up programming in   concepts that eliminate design   patterns all together.   The main features of functional programming (FP) include functions as first-class values, currying, immutable values, etc. It doesn't seem obvious to me that OO design patterns are approximating any of those features.  Additionally, in functional languages which support OOP (such as F# and OCaml), it seems obvious to me that programmers using these languages would use the same design patterns found available to every other OOP language. In fact, right now I use F# and OCaml every day, and there are no striking differences between the patterns I use in these languages vs. the patterns I use when I write in Java.  Is there any truth to the claim that functional programming eliminates the need for OOP design patterns? If so, could you post or link to an example of a typical OOP design pattern and its functional equivalent?


reversing a string starting and end bounds

I understand that when slicing strings, the first index number refers to the start (inclusive), second number refers to end (exclusive) and the third refers to step size. So, wouldn't the first example throw an index error since length 6 is outside of the string? In the second example I would've expected "nohty" and "ohty" for the third example but this is clearly not the case.  temp = 'Python' stringLen = len(temp) slicedStr = temp[stringLen::-1] print(slicedStr) >>> nohtyP  stringLen = len(temp) - 1 slicedStr = temp[stringLen::-1] print(slicedStr) >>> nohtyP  stringLen = len(temp) - 2 slicedStr = temp[stringLen::-1] print(slicedStr) >>> ohtyP


I'm using ajax to get my results from my query. The ajax gives the response (sql query executes successfully) but some characters (croatian language) are broken, hence utf-8 doesn't function correctly.  In my php script, I've tried the following:  $con->set_charset('utf8');   OR  $con->query("SET NAMES 'utf8'");   I've also added the following line in the header:  header('Content-Type: text/html; charset=utf-8');   as well as the content type in my client-ajax code:  contentType: "application/json; charset=utf-8"   Still my characters break, I'm not getting utf-8 valid response. In phpMyAdmin I've got the utf8_general_ci collation which I believe is ok.


Change in altitude value after resizing .tif file

I have a TIFF file of 7378x6923 (widthXheight) resolution. I resized it to 1200x1200 pixels using  module in Python.  img = Image.open('path to tif file') img = img.resize((1200,1200))   But after resizing, the pixel values show unusual values. Before resizing, a certain pixel's value was 125.28. Now, after resizing, that pixel's value has turned to 1123715645. I am reading the pixel value with:  with rasterio.open('path to tif file') as dataset:     band = dataset.read(1)     print(type(band))     value_of_interest = band[row_of_interest, column_of_interest]     print(value_of_interest)   Why does this happen?  How can I preserve the height values in same pixel position?


How to refer to the different types of first names of a person?

In Dutch (and other languages) people have have different types of first names. First, there is the Christian name or given name, which is the official name of a person and is used for official documents etc. Then there is the first name that is used on a regular basis. The literal translation of the Dutch word for that is 'calling name' (roepnaam). Finally there is the nickname that close friends and family use.   My sister's name is a typical example. Her given name ('birth name' in Dutch) is 'Elisa Hermina', the name used by everybody, however, is 'Lisette' and the name used by family and close friends is 'Jet'. They could of course also be the same.   For an English paper I am writing, I need to distingish between the names. Which words could I best use for each of the names?  I know 'calling name' is also used in english and also seems to have a similar meaning. Does it indeed have exactly the same meaning a the dutch roepnaam?


Canonical has dropped Unity, and has decided to switch to GNOME Shell for the future releases. Since Ubuntu 16.04 is an LTS release, does this mean that the LTS users won't receive any updates/fixes for their Unity DE?  And GNOME Shell is a totally different thing than what we've been using for so long! I'm thinking whether it's worth it continue using 16.04, since Unity is long gone...


Backup a file when edited, and give it a time-stamp?

I want to backup a particular file in another folder every time the file changed. Ideally, the backup-file should have a timestamp when backed. For example:  Directory workfile  ~/workfile   Directory backupfile  ~/backup/workfile-2014-11-24-10:30 ~/backup/workfile-2014-11-24-11:10 ~/backup/workfile-2014-11-24-12:40 ~/backup/workfile-2014-11-24-15:42 ~/backup/workfile-2014-11-24-16:30   I would like to have a solution without using the GUI.


Is it ok if I log/square root transform my variables and then scale them to perform a PCA?

My goal is to carry out an hierarchical cluster analysis using the principal components that explain most of the variance. None of my variables is normal and therefore I think I should transform them (I am following a paper that worked with similar data and they square root and log transformed the variables with a non-normal distribution). Nevertheless, I am unsure if it is ok to transform and then scale the variables before the PCA. Could you confirm if this is correct? Also, to choose the best type of transformation should I try both and then check the normality again of the transformed variables or is there a better method? Thank you in advance.


I have two SharePoint accounts and I tried to open SharePoint designer by another account, and I switched account to my second account,   but the Issue is when I create workflows and publish it, from the information of workflow the last modified by gives me the first account?  How can I solve this to publish the workflow by second account?


How to tell Windows 8 Narrator to read only what I specifically tell it to read and remain absolutely silent otherwise?

Here's what I want:   Windows Narrator reads ONLY the text that I specifically tell it to read. If I have not told it explicitly to read some text, it should stay silent.  Moreover, after I have told it to read some text, I can click elsewhere, type stuff, generally perform all other tasks, while it obediently continues reading out the text I told it to read.   Right now the problem is that wherever I click, Narrator starts yapping away. I can tell Narrator to read some specific text, but as soon as I try to do anything else, say click some other window, it stops reading what I told it to read, and instead reads what's in that window.  (It would be very surprising if there isn't any way to get the above simple request to work. But then again Microsoft never ceases to amaze.)


Laptop shut off during upgrade from 13.04 to 13.10

I was upgrading from 13.04 to 13.10 on my laptop when the battery died.  Now when I boot into it, I can get to the login screen.  After I type my password, the screen appears to load but then I am sent back to the login screen with no error message or anything.  Do I have to reinstall?  Is there anyway to easily recover my data?


Create and download CSV file in one script

I want to create and download a CSV file, in one script.  Up to now I have been avoiding my lack of knowledge by pre-creating the file with a cron job and then  downloading the file via a link.  I have this:  $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname) or die ('Error connecting to mysql');  $get_members_csv_query = "SELECT * FROM members"; $get_members_csv_result=$conn->query($get_members_csv_query, MYSQLI_STORE_RESULT);  $all_members_array = array();  while ($get_members_csv_array = $get_members_csv_result->fetch_assoc()) {     array_push($all_members_array, $get_members_csv_array); }   $file = fopen('members.csv', 'w');                                 fputcsv($file, array('email', 'First Name', 'Surname', 'Gender','DOB','Registered On','Country','paid','Children','Wants Kids','Relationship','Body Type','Height','Smoke','Drink','Phone','Region','Religion','Community'));         foreach ($all_members_array as $row) {         fputcsv($file, $row);                 }         exit();    This creates the file successfully, but what do I need to add to the script to make it automatically download the CSV file once created?  I have tried putting this at the start if the script:  header("Content-type: text/csv");   header("Content-Disposition: attachment; filename=members.csv");   header("Pragma: no-cache");   header("Expires: 0");   But it downloads the file before the script finishes (or even starts) creating the file.  I have tries putting the headers at the end of the script and using ob_start() at the top - same result.  Thanks


What happens if my passport expires while I am in a different country?

I'm an American. If I travel to the UK for the first time as a tourist and my passport expires while i am still visiting, what would happen?


Suppose you are in a closed box which is in motion

Suppose you are inside a closed box which is moving with a constant speed with no acceleration whatsoever. You cannot see outside the box. If you are given all the instruments you need, what experiment could you perform to ascertain that you are, in fact, in motion?  This was a question asked in an interview for admission to a pure sciences research university. The only thing I was able to think of was maybe if we somehow converted the mass of some object into energy it would be slightly more than what we would expect from $E=mc^2$ since it also has kinetic energy. Is this even remotely correct? Does it even have an answer or was it simply a trick question?


Another term/phrase for kill two birds with one stone

What is another phrase for kill two birds with one stone? Or another term that implies similar meaning?


All function only checks last element of vector in R


Cross references and citations do not show in LibreOffice after htlatex conversion

When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other drawbacks. How to set up conversion to LibreOffice properly?  I'm using Ubuntu 12.10 with packaged TeXlive 2012 and LibreOffice 3.6.  The code required to replicate this (shown below) can be  or . To compile, use make texput.odt.  texput.tex:  \documentclass{scrartcl} \pagestyle{empty} \bibliographystyle{plain}  \begin{document}   \section{First} \label{sec:first}   \cite{test}    \ref{sec:first}   \bibliography{texput} \end{document}   texput.bib:  @article{test,   author = "Anyone",   title = "Something",   year = 2010, }   Compilation command, according to :  latexmk texput.tex htlatex texput.tex "xhtml,ooffice,bib-" "ooffice/! -cmozhtf" "-coo -cvalidate"   Resulting output:    Direct compilation:    Analysis of the generated content.xml file (inside texput.odt which in fact is a ZIP archive) shows mysterious <t4htlink> elements, I'm not sure they're part of the Open Document specification... Removing the opening and closing tags fixes the issue, at least for the reference to the section. The citation needs some more fixing. (The results don't change if I omit the bib- switch for the compilation.)


What is $i^i$?Imaginary, Real, HyperComplex?

What is $ i^i$, where $i$ is the imaginary unit. Apparently wolfram alpha and google give: $$i^i\approx0.207879576=e^{-\pi/2}$$ But how?    Maybe let me try: $$x=i^i\implies x=\exp(i\ln i)$$ $$x=\exp\left(i\left(i-\frac{i^2}2+\frac{i^3}3-\frac{i^4}4+\cdots\right)\right)$$ $$x=\exp\left(i\left(i-\frac{1}2-\frac{i}3+\frac{1}4+\cdots\right)\right)$$ $$x=\exp\left(-1-\frac{i}2+\frac{1}3+\frac{i}4+\cdots\right)=^{\text {?}}\exp(-\pi/2)$$


Is there a way to remove community wiki status?

I accidentally checked the box on a question. Can this be undone?


Define different font size for text and line spacing and create an image from it using C#

I know how to create an image from text in C# and how to specify a certain font size for the text.  But, I want to be able to have a few lines of text where the text is one font size - but the line spacing is a smaller font size - and be able to create an image from this in C#.  For example, I have three lines of text.  The font size for each text line is 24 (not sure what the unit is - pixels? point?).  But, I want the line spacing between each text line to only be 8.  Does anyone know how this can be accomplished?


Why does this formulation of Choice not follow from the Comprehension Schema?

I have been thinking about the following formulation of the Axiom of Choice.:     For any relation $R$, there is a function $H$, which is a subset of $R$, and such that $\operatorname{dmn}H=\operatorname{dmn}R$.   At first, it seemed surprising to me that this did not follow from Comprehension (i.e., from the schema  $\forall x_1, x_2, ..., x_n \forall C\exists B \forall x ( x \in B \Leftrightarrow x \in C \land \phi )$, where $B$ does not occur free in $\phi$).    I thought that for any relation, it seems that we should be able to define a subset of it with the same domain meeting a "functional condition".  But when I tried to do this, I couldn't.  However, I felt like I was getting close when I let $B$ be free in $\phi$, i.e., when I let myself say that $w$ is in $R$ and also anything in $H$ meets such and such conditions, where $H$ is the set (function) whose existence I'm trying to prove.    But my understanding is that Choice does not even follow from Naive Comprehension.  So, I wondered if someone could explain the following precisely.   Why does the above formulation of Choice does not follow from regular Comprehension? Why does it not even follow from Naive Comprehension (assuming that it does not)?


How was the Vengeance able to "catch up" to the Enterprise?

In Star Trek Into Darkness, the Vengeance was able to catch up to the Enterprise and attack it while in warp.   According to the , warp is a bubble around a specific ship. This would explain why Kirk was so surprised when it happened.   How was the Vengeance able to catch up, or get into the Enterprise’s warp bubble?


Bound on the derivative of a holomorphic function at $0$

Suppose $f(z)$ is holomorphic in $|z|< 1$ and $\operatorname{Re}f(z) > 0$ in this region. Furthermore, suppose $f(0) = a > 0$. Then why does $|f'(0)| \leq 2a$?  The hint I have is to consider $g(z) = \frac{f(z) - a}{f(z) + a}$ and then show $|g'(0)| \leq 1$. If I do have $|g'(0)| \leq 1$, then the result follows as $|f'(0)| = 2a|g'(0)| \leq 2a$, but I have no idea on how to show $|g'(0)| \leq 1$.


What's best protection for a really high voltage 50kV generator PCB?

What is the best options for protecting a 50kV high voltage low amp PCB? Encapsulation the components, potting the whole thing or just using conformal coating will be enough for the corona discharge?


The size of below class as i think it should be 6 but the compiler show it's 8.  Anybody please explain why it is 8 instaed 6. Thanks  class Size{     int a;     char b;     char c; };


Creating an arbitrary state of the quantum simple harmonic oscillator

Suppose $\mathcal{B}=\{\lvert 0\rangle, \lvert 1\rangle, \lvert 2\rangle, ... \}$ is the energy eigen-basis of a quantum simple harmonic oscillator. I want to create the state \begin{equation} |\Psi\rangle = c_{0}\lvert 0\rangle + c_{1}\lvert 1\rangle + c_{2}\lvert 2\rangle + ... \end{equation} Besides the normalization condition \begin{equation} \langle\Psi\mid\Psi\rangle = \lvert c_{0}\rvert^2+ \lvert c_{1}\rvert^2+ \lvert c_{2}\rvert^2+...=1, \end{equation} are there any other mathematical constrains on the complex amplitudes $c_0,c_1,c_2,...$?  Also, is there a protocol, perhaps from quantum optics, for creating an arbitrary $|\Psi\rangle$ as defined above?


In the absence of money, what motivated the crew of the TNG Enterprise to play poker?

Playing poker with and without money is very different. With money bets, people can get scared off when the bets get big and that is when a 'poker face' matters. Without money bets, there is little emotion involved.   In the Star Trek world, money does not exist, taking the fun and excitement away from poker. So why is poker still a favourite game among Star Trek TNG crew despite ?


"Class myObject();" does not call constructor of class

Can someone please explain to me why the line A a2(); seems to ignore the constructor of my class? The following code: #include <iostream>   class A { public:     A() {         std::cout << "Constructor of A" << std::endl << std::endl;     } };   int main() {     std::cout << "a1" << std::endl << std::endl;     A a1 = A();     std::cout << "a2" << std::endl << std::endl;     A a2();     std::cout << "a3" << std::endl << std::endl;     A a3;     std::cout << "a4" << std::endl << std::endl;     A a4{};      return 0; }  produces the following output: a1  Constructor of A  a2  a3  Constructor of A  a4  Constructor of A  So A a2(); does not seem to call the constructor that I wrote, but I do not get why this is the case and all the other ways actually call it. Thanks in advance!


The implications of Gödel's Second Incompleteness Theorem on Theoretical Physics models

Does Gödel's Second Incompleteness Theorem imply that no Theoretical Physics model of reality can be proved to be consistent using the laws of physics?  I work partially in Quantum Information Theory research which recently has had a resurgence of Quantum Foundations research themes. One of the themes of this field asks whether Quantum Mechanics, or more specifically, Quantum Information Theory is a fundamental theory of reality.   QIT is a particularly mathematical theory of reality, with highly mathematically phrased axioms:    States are vectors in Hilbert Space,  Evolutions are described by unitary operators and  Von-Neumann's Projection postulate.    We can contrast these to other physical theory axioms, such as the rather physically based axioms of Relativity: equivalent reference frames and the frame independence of the speed of light.  Does Gödel's 2nd Incompleteness Theory imply that we cannot prove the consistency of our physical reality (at least as seen through the lens of QIT) using theory derived from QIT's axioms, or that if we do require consistency of QIT theory/experimental reality that we cannot ever prove that it's founding axioms are consistent?  How do we deal with this apparent paradox or anomaly? Surely it has implications for work into Quantum Foundations/the study of physics as a fundamental model of reality?


How to bind event for dynamically created elements in JQuery

i have created some dynamic elements using jquery and add a dropdownlist using ajax inside dynamic elements ,The problem is when i select a option from a dropdownlist,then upcoming ajax data are override the all other dynamic elements data.    now i want to bind data every dynamic elements data separately in jquery.      $(document).ready(function() {   var html = $("#dsp > .row:first").first().html();   var maxrows = 5;   var x = 1;   $("#addrow").click(function() {     if (x <= maxrows) {       $('#dsp').append(html);       x++;     }   });    $("#rmvrow").click(function() {     $('#dsp').children().last().remove();   });        $('#dsp').on('change','.p_name',function(){       var pid=$(this).val();       var parent=$('#dsp');              //alert(pid);       $.ajax({         url:"{{route('getinfo')}}",         method:'post',         data:{id:pid,'_token':"{{csrf_token()}}"},         success:function(response) {               console.log(parent.find('.p_code').val(response.code));            }       });      }); });

       <select name="p_name[]" class="form-control p_name">       <option value="">-Select Product-</option>       @foreach($products as $product)       <option value="{{$product->product_id}}">{{$product->name}}</option>       @endforeach     </select>

       <input type="text" name="p_code[]" class="form-control p_code">

       <input type="text" name="unit_pctn[]" class="form-control unit_pctn" readonly="">

       <input type="text" name="u_price[]" class="form-control u_price" readonly="">

       <input type="text" name="ctn[]" class="form-control ctn">

       <input type="text" name="pcs[]" class="form-control pcs">

       <input type="text" name="t_amt[]" class="form-control t_amt">


Is an electron completely determined by its mass?

What I mean is, could a chunk of matter be "whittled down" or broken off from a larger chunk of matter to the point where it has the mass either exactly of an electron or close to that and in the former case, would it have to be an electron and if somehow the charge of the original piece of matter was neutral or positive would the electron-sized piece suddenly become a negatively charged electron or I guess a positron perhaps. And in the latter case, would the chunk somehow "degenerate" into an electron, shedding the extra mass? I know particles can be created from like laser beams experimentally but it seems like nothing other than know particles are ever created -- never is there just a tiny piece of matter with no characteristics like charge and whatever else electrons/positrons have.


NullPointerException with Java array - 8 queens

I am doing the 8 queens problem and trying to implement the method which will check if there is any collision between queens. When it comes to the logic of the problem, I think I understand it, but I am getting NullpointerException and I can't figure out why. Any help would be highly appreciated.  private static boolean isOK(int[][] matrix) {         boolean isInCollision = false;         Queen [] queens = new Queen[8];         for (int i = 0; i < matrix.length; i++) {             for (int j = 0; j < matrix.length; j++) {                 if(matrix[i][j] == 1){                     queens[i] = new Queen(i, j);                  }             }         }           for (int i = 0; i < queens.length; i++) {             for (int j = i+1; j < queens.length; j++) {                 if(queens[i].getX()==queens[j].getX() && Math.abs(queens[i].getX()-queens[j].getX())==Math.abs(queens[i].getY()-queens[j].getY())){                     isInCollision = true;                 }             }         }         return isInCollision;     }   I get error in this line of code:  if(queens[i].getX()==queens[j].getX() && Math.abs(queens[i].getX()-queens[j].getX())==Math.abs(queens[i].getY()-queens[j].getY()))


In the Sherlock episode "A Study in Pink", was the taxi driver bluffing when he asserted that there were two kinds of pills, those that kill and those that are harmless? I am not sure.


How do I remove the limit on PC keyboard button presses?

Whenever I play a PC game with the directional keys, I can only press two buttons at a time.  For instance if I am playing a shooter like R-Type, I cannot hold down the fire button while moving diagonally at the same time.  The computer simply ignores the extra button press.  How do I remove this limit so I can shoot while moving diagonally?  This limitation seems to apply for every game.  I am running Windows 7 if it makes any difference.  I noticed the same problem back when I used Windows XP.


Why not just inherit the rep from the site where you have the highest rep?

I'm still not sure I understand why this site is reputation-based. I think that all this does is make people afraid to participate in conversations.   All of the per-site metas are not reputation-based - the privileges you have there match what you've earned on their main site. Does the amount of participation you've had exclusively in the per-site meta affect your ability to jump into a conversation about issues on a site where you have participated highly? No. Should you be afraid of losing reputation for sharing an unpopular opinion there and getting down-voted into oblivion? No, and I think that is one of the reasons the per-site metas don't have their own rep structure.   Since the network-wide meta.se is for discussing network-wide policies and issues, I feel that the privileges you have here should not be based on your contributions here, but based on the best of your contributions on any one site. So, if you have 110K on skeptics, and that is your highest rep in the network, you have 110K here.


I have group plot which consists of 2 rows and 3 columns. I need to add text to left of the figure and below of of the figure, very similar to this :   \documentclass{article} \usepackage{amssymb} \usepackage{tikz}  \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{spy} \pgfplotsset{compat=1.9} \usepackage{epsfig} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{external} \usetikzlibrary{external} % set up externalization \tikzexternalize[shell escape=-enable-write18] % activate     externalisation \tikzset{external/system call={pdflatex \tikzexternalcheckshellescape     -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"&& pdftops -eps "\image.pdf"}}  \begin{document} \begin{tikzpicture}[spy using outlines={rectangle, magnification=2,connect spies}] \begin{groupplot}[ group style={     vertical sep=0,     group name=my plots,     group size=3 by 2,    },  ybar, width=8cm, height=6cm, ymin=0,  xtick align=inside, ] \nextgroupplot[ymax = 80,xmin = -2, xmax=10,xticklabel pos = right]  \nextgroupplot[ymax = 60,xmin = -2, xmax=4,xticklabel pos = right]  \nextgroupplot[ymax = 60 ,ymin = 0.1,xmin = -5, xmax=5,xticklabel pos = right,ytick = {20,40,60},xtick = {-4,-2,0,2,4}]  \nextgroupplot[ymax = 60,xmin = -5, xmax=5]  \nextgroupplot[ymax = 40,xmin = -1, xmax=1]  \nextgroupplot[xmin=-6,xmax=2,ymax = 70]  \end{groupplot}  \end{tikzpicture} \end{document}


Do I need to escape INT type values in Mysql?

I work at a company that's still using mysqli connection. I know that PDO is better and we should be using that but changing to that would require a lot of work that we don't have time for. Our goal is to switch the company website to Laravel sometime in the future.  I know the mysqli class also has a prepare function but it doesn't really fit into the class we made to work with mysqli.  Until then, is mysql going to convert $_POST string variables into INT or DECIMAL types or do I need to use real_escape_string on ALL variables in the sql string regardless of whether or not it's being saved to a string or INT column.  Addon question: Is real_escape_string going to protect me from injections?  Example code:  $sql = "     INSERT INTO table     (          column     )     VALUE     (          " . $mysqli_connection->real_escape_string($_POST['number']) . "     )"; $mysqli_connection->query($sql);


Can't update, can't install from SC 18.04

I have no idea what is going on, what to check or even where to search for help other than here. The past 5 updates have all frozen at around 75% complete, and I'm trying to install Gnome Calculator and it's stuck at 99%. All other software in the past 2 weeks has failed to install too.


I do not know which Windows version I have running on my laptop. How do I find this out? I need to know before telephoning my service provider.


How can I compare a few screen's color gamut?

I am trying to compare the color gamut of a few screens but some of the screen's specs show the percentages in sRGB and some in adobe RGB. For example one screen has 72% Adobe RGB and another has 100% sRGB. How can I compare these two values when they are in different color spaces?  I know that there is some overlap between the color spaces, does this mean I can use some kind of equation to calculate the comparison at least to an approximate value?  or do I just have to decide which color space I want to use and go from there?  I just can't find a comparison chart or the way to calculate this, although I did find an occasional post that states that 91% Adobe RGB is about 89 sRGB and similar posts. How did they arrive at this conclusion?


I am trying to hook some glibc functions that has works with file names. Basically I need to modify the filename a bit, then pass it along with other arguments to the original glibc functions.   The code looks like this:  FILE *fopen(const char *filename, const char *modes) {   filename = modify(filename); // assuming we don't need to free the new filename pointer for now   using FuncT = FILE*(*) (const char *, const char *);   static FuncT originalFunc = (FuncT)dlsym(RTLD_NEXT, "fopen");   return originalFunc(filename, modes); }   This works fine for most cases, but when it comes to variadic arguments for function like int execl(const char *path, const char *arg, ...), How can I do it properly?


Does gravity affects on electrons in a noticeable way?

Is there a way to force a free electron move in a low speed in order to observe it actually hitting 'on the floor'?


AI Civ having another civ's specialty unit

How is it possible for an AI civilization to gain/build another civilization's specialty unit?  Twice now I have run into this issue.  On my current game, the Dutch have a Cho-Ko-Nu (the chinese specialty unit).  In a prior game, the Swiss had Legion units (the Roman spec. unit).


C++ function template - Copy vector to C-styled array

What I'm aiming for, Is that I would like a function template to convert a vector to a type* array for ease of use. Instead of creating multiple functions for the "same" functionality.  With following code(Note function is inside namespace Khan):  // Func.h template <typename T> T* vector_to_array(std::vector<T> vec);  // Func.cpp template <typename T> T* vector_to_array(std::vector<T> vec) {     T* arr = new T[vec.size()];     std::copy(vec.begin(), vec.end(), arr);      return arr;  }  // Inside main function std::vector<int> test_vec = { 0, 2, 3 }; int* test_arr = Khan::vector_to_array(test_vec);   I get the following error:  undefined reference to Khan::vector_to_pointer(std::vector<int, std::allocator<int> >)   I tested different ways, and made a specific function for an int as in the example above excluding the template.  Thus my question is, what is the plausible cause of these errors, and what would be a possible fix?  And to clarify my goal. What my goal is for this, is for the function not dependent on the type, to return a copy of a vector in a C-styled array.  *Edit: Rewrote with complete code, and parts of error was missing.  Solved: As this question is a duplicate, I found my answers in the other post. To summarise what caused this issue, the previous stated error was the cause of declaring the template in a ".cpp" file. And was fixed with declaring and defining the template inside the header file.


I want to add a sentence to header of a file using bash script, I tried   echo "#define Block $i">>mypro.cpp   but it add '#define Block $i' to it's end. Thanks in advance


Collecting a phone number as multiple fields rather than one

My team is discussing changing the way we collect phone numbers. Currently, we have a single input to collect the phone number. However, since we have an international market, the team is considering splitting this phone number input into multiple parts to better handle users from various countries.  The platform is a booking site. One situation where this change could be useful is when an employer is booking for an employee in another country—the employee's phone number may not match what the employer inputs for country.  We're looking for the best way to handle edge cases like this and attempting to make it intuitive for the user. Might this be a usable way to minimize errors and ensure accuracy?


How did Darth Vader's helmet survive Return of the Jedi?

During The Force Awakens we see Kylo Ren "talking" (almost "praying") to the half-melted helmet of Darth Vader.   How did he come by this item? Was it not destroyed with the rest of the Death Star at the end of Episode VI: Return of the Jedi?


Given a CSV file, how do I delete the content between the 2nd and 3rd tabs of each row?

I am using a mac and I have a CSV file delimited by tabs. I want to just remove all the content between the 2nd and 3rd tabs or replace it with something like "XXXX". Is there a command for this?


There is a limit on the number of close votes, flags and suggested edit reviews a user can do in a day. However, while the number of close votes and flags you have remaining is clearly shown, the number of edit reviews left is not displayed anywhere. Would it be possible to display this number when reviewing an edit? (In the same way the number of close votes and flags remaining is shown when voting to close or flagging).  My primary motivation for this is that I quite often participate in the suggested edits review queue, but I never want to spend all of my edit reviews there - this leaves me powerless if a post I encounter normally needs an edit, but already has an edit suggestion pending. I would really like to save a few review votes a day for situations like this; but without being able to see the number I have left, I have to count the number of reviews I did in my profile's activity tab, which is tedious.


Variable in Bash Alias not working as intended

The alias doesn't work properly until running source ~/.bashrc or source ~/.bash_aliases ONLY AFTER running the alias once first. Is there a magical way to get the $todaydir string to be replaced properly without doing that? [myname@linux_server ~]$ cat .bash_aliases   alias col="todaydir=$(date | awk '{print $2$3}') ; cd /home/myname/collect/$todaydir"   [myname@linux_server ~]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server ~]$ source .bashrc   [myname@linux_server ~]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server ~]$ col   [myname@linux_server collect]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server collect]$ source ~/.bashrc   [myname@linux_server collect]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/Feb24'   [myname@linux_server collect]$ col   [myname@linux_server Feb24]$    [myname@linux_server ~]$ bash --version   bash --version   GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>   [myname@linux_server collect]$ cat ~/.bashrc   # .bashrc      # Source global definitions   if [ -f /etc/bashrc ]; then           . /etc/bashrc   fi      # User specific aliases and functions   export PATH=$PATH:~/bin   source ~/.bash_aliases    Yes, yes, bash is antique; I'm not root.


I usually store my JavaScript/jQuery files in the Site Assets library, but I see on forums that others are using the Style Library.  What are the respective benefits of each?


if [[ ${fin[2]} -eq OK && ${fin[7]} -eq NA ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -eq OK && ${fin[7]} -lt 0 ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -ne OK && ${fin[7]} -eq NA && $currDate2 -gt $expectedFinishTimes ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -ne OK && ${fin[7]} -eq NA && $currDate2 -lt $expectedFinishTimes ]]         then                 echo "
" >> /tmp/mailt.txt         fi   In the above, only first condition is evaluating to be true even when ${fin[2]} is not equal to OK. What's wrong?


Lagrangians, Hamiltonians and the Legendre Transform

I have been studying the Lagrangian formulation of classical mechanics. I have been introduced to the Hamiltonian formulation via the Legendre transform, and studied the transform from this    Are the Lagrangian and Hamiltonian always Legendre transforms of each other? If so, does this apply to physics in general, or just to classical mechanics? What happens if either of the Lagrangian or Hamiltonian is not convex? For example, if the former is not convex does this mean the Hamiltonian does not exist, and vice versa? The first answer to  says "At the classical level, there is no convexity condition ...", but the meaning of this phrase is obscure and I feel the gist is really lost in the details. From my limited understanding of the Legendre transform it could only be applied to (strictly) convex functions. If either of the Lagrangian or Hamiltonian is not strictly convex this would mean non-unique values for the derivative that we need for the Legendre transformation. In this case, am I right in assuming that one would need to impose further conditions on the problem in order to restrict interest to a subset of the domain where the function in question is convex?    and  have some interesting material in their answers, but .


Is there a proof from the first principle that the Lagrangian L = T - V?

Is there a proof from the first principle that for the Lagrangian $L$,    $$L = T\text{(kinetic energy)} - V\text{(potential energy)}$$  in classical mechanics? Assume that Cartesian coordinates are used. Among the combinations, $L = T - nV$, only $n=1$ works. Is there a fundamental reason for it?  On the other hand, the variational principle used in deriving the equations of motion, Euler-Lagrange equation, is general enough (can be used to to find the optimum of any parametrized integral) and does not specify the form of Lagrangian. I appreciate for anyone who gives the  answer, and if possible, the primary source (who published the answer first in the literature).      Notes added on Sept 22: - Both answers are correct as far as I can find. Both answerers were not sure about what I meant by the term I used: 'first principle'. I like to elaborate what I was thinking, not meant to be condescending or anything near to that. Please have a little understanding if the words I use are not well-thought of. - We do science by collecting facts, forming empirical laws, building a theory which generalizes the laws, then we go back to the lab and find if the generalization part can stand up to the verification. Newton's laws are close to the end of empirical laws, meaning that they are easily verified in the lab. These laws are not limited to gravity, but are used mostly under the condition of gravity. When we generalize and express them in Lagrangian or Hamiltonian, they can be used where Newton's laws cannot, for example, on electromagnetism, or any other forces unknown to us. Lagrangian or Hamiltonian and the derived equations of motion are generalizations and more on the theory side, relatively speaking; at least those are a little more theoretical than Newton's laws. We still go to lab to verify these generalizations, but it's somewhat harder to do so, like we have to use Large Hadron Collider. - But here is a new problem, as @Jerry Schirmer pointed out in his comment and I agreed. Lagrangian is great tool if we know its expression. If we don't, then we are at lost. Lagrangian is almost as useless as Newton's laws for a new mysterious force. It's almost as useless but not quite, because we can try and error. We have much better luck to try and error on Lagrangian than on equations of motion. - Oh, variational principle is a 'first principle' in my mind and is used to derive Euler-Lagrange equation. But variational principle does not give a clue about the explicit expression of Lagrangian. This is the point I'm driving at. This is why I'm looking for help, say, in Physics SE. If someone knew the reason why n=1 in L=T-nV, then we could use this reasoning to find out about a mysterious force. It looks like that someone is in the future.


I am trying to go trough a simple Blender tutorial in which I need to use module Rasterizer. Unfortunately my Blender has no such module. As far as I know Blender has its own Python so there should be no collision with other  EDIT: Yes, question concerns BGE. As fas as I saw I have none of the modules that should be in Blender: no bge for example. I dont think there is need to get the link to the tutorial, as Blender Python console simply states that script failed, and the script is:  import Rasterizer   or  import bge   both fail.  EDIT2: I have downloaded a new version of Blender 2.68a. When it starts writes: found bundled python. I have for example bpy module but no bge module. It seems I have absolutely no Game Engine module. What a pity! :(


how to add label to matrices multiplication

in the below latex code, i am displaying two matrices multiplied by each other and the result of the multiplication  to add a label to the code posted below , i tried to include the below code inside \begin{equation} and \end{equation} and add\label but when i compile the code i recive errors  how can i add label to the below code  code  \[ \begin{bmatrix}  1 & 0 \\ 0 & e^{i\pi/k} \end{bmatrix} \begin{bmatrix}  u \\ v \end{bmatrix} = \begin{bmatrix} u \\ -v \end{bmatrix} \]   what i tried is  \begin{equation}  \begin{bmatrix}  1 & 0 \\ 0 & e^{i\pi/k} \end{bmatrix} \begin{bmatrix}  u \\ v \end{bmatrix}  = \begin{bmatrix}  u \\ -v \end{bmatrix}  \end{equation}


Appropriate settings for a passport photo using a Nikon D3100?

I recently received a Nikon D3100 as a gift. My main interest is capturing images of parts of my body for dental imagery, personal 'snaphots' (yes I know a bit unusual with an actual camera), human faces etc..   I have always been very displeased with passport photos as I could never see my facial expression when taken in a studio but this time I have an opportunity to choose what image i take. I have read that this camera can be 'live' controlled from a PC. This might be necessary to see the image i'm capturing.  What I'm mainly concerned about is the basic features that I would need to know to create an appropriate passport photo in terms of focus, lighting and quality.  NOTE: This question is regarding the basic aspects needed to take an appropriate close up photo of the face. The other thread (which is not mine anyway) purely discusses connecting the camera to a laptop display. Also that question was asked 4 years ago and I have just received my camera.


Prove if $n$ has a primitive root, then it has exactly $\phi(\phi(n))$ of them.   Let $a$ be the primitive root then I know other primitive roots will be among $\{a,a^2,a^3 \cdots\cdots a^{\phi(n)} \}$ because any other number will be congruent modulo $n$ to one of these. Then I figured as the answer is $\phi(\phi(n))$ so for $a^k$ to be primitive root, $k$ must be coprime with $\phi(n)$.But I don't know the reason.Am I missing any silly point?


Arrow keys, Home, End, tab-complete keys not working in shell

I have installed ubuntu minimal(mini.iso) on my vm. I then used recovery mode to login as root and create an account with useradd -m admin and then set a password with passwd admin.  When I login on the new account, instead of the normal prompt I only see a $ sign. If I try to tab-complete a command or file name it prints a normal tab. If I try to use the arrow keys it prints ^[[A, ^[[B, ^[[C or ^[[D. Also, ls no longer adds colors.  None of these problems were in recovery mode. How can I fix this?


Disallow command usage for a specific user

I recently bought a VPS with Ubuntu 18.04 (Server) on it, and ever since I've started using it I've been spammed by one of my friends regarding that he wants an account. I wanna take some revenge on the spamming by pulling a prank on him by creating an account that has no access to any binary file/command, the goal is to make his account only be able to write in the command line but really have no access to execute any commands. His account won't be added to the sudoers list.  Is there any way to achieve this?  Thanks, Richard.


ImageMagick convert can't convert to webp

On Ubuntu 12.04 ImageMagick doesn't seem to support webp.  convert flyer.png flyer.webp   Creates a png file with webp extension.  On  is stated that ImageMagick does support webp  $ convert --version` Version: ImageMagick 6.6.9-7 2012-08-17 Q16   I have these both installed:   libwebp-dev - Lossy compression of digital photographic images. libwebp2 - Lossy compression of digital photographic images.   Also, convert can't decode a webp file.  What's wrong, and is this an Ubuntu bug?


How do I add fields to an existing custom entity? (repost)

I have a custom entity that isn't showing the ability to add fields. I need to add a field to it, and I want to do it through the UI. The entity was created in a custom module, which I can modify. How can I make the entity fieldable? Here is the annotation from the entity class: /**  * Defines the Quiz entity.  *  * @ingroup qwizard  *  * @ContentEntityType(  *   id = "qwiz",  *   label = @Translation("Quiz"),  *   bundle_label = @Translation("Quiz type"),  *   handlers = {  *     "storage" = "Drupal\qwizard\QwizStorage",  *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",  *     "list_builder" = "Drupal\qwizard\QwizListBuilder",  *     "views_data" = "Drupal\qwizard\Entity\QwizViewsData",  *  *     "form" = {  *       "default" = "Drupal\qwizard\Form\QwizForm",  *       "add" = "Drupal\qwizard\Form\QwizForm",  *       "edit" = "Drupal\qwizard\Form\QwizForm",  *       "delete" = "Drupal\qwizard\Form\QwizDeleteForm",  *     },  *     "access" = "Drupal\qwizard\QwizAccessControlHandler",  *     "route_provider" = {  *       "html" = "Drupal\qwizard\QwizHtmlRouteProvider",  *     },  *   },  *   base_table = "qwiz",  *   revision_table = "qwiz_revision",  *   revision_data_table = "qwiz_field_revision",  *   admin_permission = "administer quiz entities",  *   entity_keys = {  *     "id" = "id",  *     "revision" = "vid",  *     "bundle" = "type",  *     "label" = "name",  *     "uuid" = "uuid",  *     "uid" = "user_id",  *     "langcode" = "langcode",  *     "status" = "status",  *   },  *   links = {  *     "canonical" = "/admin/structure/qwizard/qwiz/{qwiz}",  *     "add-page" = "/admin/structure/qwizard/qwiz/add",  *     "add-form" = "/admin/structure/qwizard/qwiz/add/{qwiz_type}",  *     "edit-form" = "/admin/structure/qwizard/qwiz/{qwiz}/edit",  *     "delete-form" = "/admin/structure/qwizard/qwiz/{qwiz}/delete",  *     "version-history" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions",  *     "revision" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/view",  *     "revision_revert" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/revert",  *     "revision_delete" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/delete",  *     "collection" = "/admin/structure/qwizard/qwiz",  *   },  *   bundle_entity_type = "qwiz_type",  *   field_ui_base_route = "entity.qwiz_type.edit_form"  * )  */  This question was originally posted here, but was closed:  I tried all the suggestions there. Thanks.


To switch between users sometimes  sudo su newuser is used.  What is meaning of sudo su together?  Can anyone tell exactly how they both command together work?