Can an acknowledgement section of a thesis contain names of music bands?

Can I add some music bands in the acknowledgement section of my bachelor thesis? I used to listen these bands during all my 3-year long studies and during all the writing of my thesis, so I think they helped me quite a lot.


ASP.NET Membership Create User without requiresQuestionAndAnswer

How can I use the CreateUser method in the Membership class without having to assign a question and answer?  I have disabled it in the web.config with the following setting.  requiresQuestionAndAnswer="false"   I need the status output from the CreateUser method, but the overload requires a question and answer. Can anyone suggest how I can go about this?


We often see new users make offtopic, low quality posts, with broken English and cries for help. These questions look significantly different from most on SO.  When I worked in publishing, we would frequently receive documents that were incorrectly formatted. This was a major problem and we wasted a lot of time sending emails back and forth.  I made a small JavaScript quiz asking our authors about the formatting directions and the number of emails drastically dropped. I felt this was much nicer than simply rejecting them, additionally providing us a chance to make the directions more clear.  It is slightly unconventional but, would showing new users a quiz where they have to identify good and bad posts help to improve the quality of SO questions?  Edit (3/8/2017)  Recently a Norwegian website got some media attention for .


Migrating question to different .SE for lack of answers

I have used several .SE's which were very helpful. However to stay on topic for some questions I went to other .SE's which did not have the same number of active members due to which questions stay unanswered very long. If a question is suitable for several .SE's and at the most appropriate one it stays unanswered because of low population on that .SE, is that a good reason to migrate it to another (although less) suitable .SE?  Basically a .SE does not work as well as another if theres less people on it. Even though its more on topic on the less functioning .SE, its much more helpful to post it on the good functioning .SE. So you could say the less functioning .SE should not have been created, on the other hand you could say that all active people more engaged with subtopics on the busy .SE that better fit on the less functioning .SE should really spend more time there.


Why speed is defined as distance over time

Why speed was defined as distance over time ? Are there possible ways to define speed like distance plus time or distance minus time or distance times time


I got stuck in Italy during Covid-19. I entered from the usa Feb 20th and left July 26.My question is what date can I return and for how long. I'm on an American passport. Obviously the 90 days is up Oct 26th but what confuses me is the 180 day rule. Thats why I asked "what date can I return". Must I wait 180 days out of Italy ? Im not really considering the pandemic rules in my travel because I can't go until Nov 1 anyway…


PHP - format special characters and display

I can see that htmlspecialchars() or htmlentities() convert special characters like & " to &amp; &quot; which isn't quite I am looking for.  My database table stores text articles that when I fetch and display, anything that contains special characters do not display in a readable format.  Any PHP (Codeigniter) function that accomplishes this?   Added  Sorry for not being so clear about my question. My case is that I have a word it's and this displays as itâ€™s


How can I prevent wholesale changes to my question?

I have a question on Stack Overflow which some one has taken the liberty of editing massively. I reverted the question, and in my re-revision stated, among other things, that I felt the edits missed the point of the original question.  A little while later I received a personal email from the user in question, trying to apply emotional pressure, which I chose to ignore.  A few days ago, I find that the question was massively edited again by the same user, which, again I rolled back. I have no idea why this user feels the need to hack my question, but I do feel that it's inappropriate.  Just a few minutes ago, the user again edited my question, but this time the changes are trivial enough to overlook.  How can I stop someone from making massive changes to a question which I feel are at odds with the original?


Dear Learned Grammarians,  I am reveiwing a poem of mine in which I describe a plane death spiralling from the skies. While I realise that in every day language and conversation I would most likely refer to 'sky' instead of 'skies', and that in poetry 'skies' has historically been permissable, is this still the case today? Or am I being quaintly old-fashioned?  Many thanks in advance for your shared wisdoms.  Cheers Sam


Order of automorphism group of a $p$-group is divisible by $p$.

Suppose $G$ is a finite $p$-group (where $p$ is prime), so that $|G|=p^n$ for some positive integer $n\ge 2$.      How can we prove that $|\text{Aut}(G)|$ is divisible by $p$?   Here $\text{Aut}(G)$ is the group of all automorphisms of $G$. I know how to prove this when $G$ is non-abelian. In this case, we look at the action of group on itself by conjugation, i.e. we consider the map $\phi: G\to \text{Aut}(G)$ defined by $\phi(g)=\tau_g$ where $\tau_g: G\to G$ given by $\tau_g(x)=gxg^{-1}$ for each $x\in G$. The kernel of $\phi$ is then $Z(G)$, the center of the group. By First Isomorphism Theorem, we get that $G/Z(G)$ is isomorphically embedded in $\text{Aut}(G)$. Since $Z(G)$ is proper subgroup of $G$ (because $G$ is non-abelian), we see that $p$ divides $\left|G/Z(G)\right|$, so by Lagrange's Theorem, $\text{Aut}(G)$ is divisible by $p$.   But what happens when $G$ is abelian? The above homomorphism $\phi$ is no longer of use, since $\phi$ becomes the trivial map [i.e. $G=Z(G)=\text{ker}(\phi)$].  Thanks for your time :)


If gravity isn't a force, then why do we learn in school that it is?

I have studied some of Einstein's Theory of General Relativity, and I understand that it states that gravity isn't a force but rather the effects of objects curving space-time. If this is true, then why are we instructed in middle school that it is a force?


What does `'s` mean in "What CPU's will it run on?"?

Does it indicate a possessive adjective or just a plural noun? If noun, why it is not CPUs (without apostrophe)?


I have the following paragraph;  \usepackage[backend=biber,style=nature,natbib=true]{biblatex} \begin{document} Open Multilingual WordNet~\cite{bond_survey_2012} set out to discover the effect of choosing the correct license for wordnets. \ldots Thankfully, \textcite{bond_survey_2012} have standardized the wordnets and are currently hosting them from a single source. \end{document}   Assuming bond_survey_2012 exists on my .bib file;  @article{bond_survey_2012,   title = {A {{Survey}} of {{WordNets}} and Their {{Licenses}}},   abstract = {This paper surveys currently avail-able wordnets. We measure the ef-fect that license choice has on their us-age, measured by the number of cita-tions. Finally, we discuss methods to make wordnets more generally accessi-ble, starting with a shared online server for freely distributable wordnets.},   date = {2012-01-01},   author = {Bond, Francis and Paik, Kyonghee}, }   I would like to have an output similar to below;     Open Multilingual WordNet [1] set out to discover the effect of   choosing the correct license for wordnets.   ...   Thankfully, Bond &   Paik have standardized the wordnets and are currently hosting them   from a single source.   Note that [1] is not repeated.  Edit: Embarrassingly found the answer under biblatex documentation, the question did not appear on search engines which is why I asked the question in the first place, sorry.


I am refilling a laser printer with cheaper toner bought in a bottle. It was suggested to not overfill. Are there any dangers to overfilling?   Can it damage the carthridge or printer? Produce blackened pages? Increase amount of powder used per page?  I am refilling my laser printer Samsung CLP 365. Toner supplier attached some not very impressive instructions paper that looks like just copied off google frankly. (Not in english)  It says toner cartridge should be refilled with a pre-measured amount to only half the cartridge capacity. Is this really necessary? I cannot find any instructions on the internet that also say that. There are many videos on YouTube showing how refilling is done, neither mentions it.


C++ static member variable of nested class in template class

I made a template class Block and wanted to cache some data for each instance type of Block. For this reason I created an inner class Cache which is storing and initialising the data often used by Block class instances. But the compiler (Visual Studio 2017, C++17) is not accepting the static member variable definition and the error message is not helping me. Whats wrong with my code and how I can accomplish my goal?  Errors: Error  C2061   syntax error: identifier 'Cache'  Warnings: Warning    C4346   'Cache': dependent name is not a type  template<int D> class Block { private:     class Cache     {     public:         int mData[D];     public:         Cache();     }; private:     static Cache mCache; public:     Block(); };  template<int D> Block<D>::Cache Block<D>::mCache; // Syntax error "Cache"!  template<int D> inline Block<D>::Block() {     // Use cache data.     cout << Block<D>::mCache.mData[0] << endl; }  template<int D> inline Block<D>::Cache::Cache() {     // Initialise cache data.     mData[0] = D; }


What to do when my 3-year-old holds poop in and won't go in diaper or on potty?

My son is almost 3 (33 months) and for the past few months, he has been holding his poop in, to the point that he won't go for many days a time. When this started, the doctor advised us to give him Miralax to make his stool softer so it comes out more easily. Even with the Miralax, he still managed to hold it for two days at a time sometimes, but at least it was coming out at all, so we continued with it.  Anyway, we've been giving him the Miralax for months now, and now he's (supposed to be) going to preschool in September, which of course requires that he be potty trained. We don't want to hold him back since he's developmentally ready otherwise, so we started potty training a few weeks ago.  He picked up the potty training really quickly – for peeing – but he still holds his poop in no matter what. If he's sitting on the potty, as soon as he's about to do it, he stands up and just keeps holding it in (and once he starts to stand, if we even so much as ask him to sit back down, he screams and cries).  We have tried everything to convince him (or distract him enough) to sit and poop: reading books, singing songs, playing games, playing with toys, offering him snacks/treats (graham crackers), giving him stickers, etc. Nothing works.  As of today, it has been a week since the last time he pooped, with the exception of a little bit today and a little bit yesterday (both of which ended up all over the bathroom floor since he won't sit down). The doctor says now we should give him an enema to force it all to come out, but even so, that won't solve anything going forward since he still won't go in his diaper or on the potty in the first place (what are we going to do, give him an enema every week, indefinitely?).  The issue isn't that he's scared of the potty itself, since (a) he was holding it before we started potty training, and (b) he knows exactly what he's supposed to do, since he has no problem with peeing (he sits down himself, points it out afterward, knows that it gets emptied into the big potty, etc.).  It's that he just won't poop, ever – not in his diaper, not on the potty – and the only reason why anything comes out at all is because we've been giving him the Miralax every day (and even then, these aren't "full" poops, just whatever happens to come out because it's soft enough that he's unable to hold it all in).  I'm at a complete loss as to why this even started, and what if anything we can do that would actually help. Is it a behavioral problem? Medical? Both?? Help!    UPDATE: I just wanted to update this question since a lot has changed since I originally posted it. We discovered there was a specific situation where he would go in his diaper voluntarily: in our bedroom closet with the door closed. So we knew then that the withholding was intentional, since it was now established that he could go if he wanted to.  So we let him continue going in the closet and, over time, found that he usually went around the same time each day. Based on that, we then had him sit on the potty when we knew it was most likely he would need to go. We also managed to find two things that distracted him enough to sit (blowing bubbles and playing with his toy laptop).  By doing this, we were able to get him to go on the potty without really realizing it (so he didn't try to fight it), and then made a big deal out of it every time he did. Over time, that helped establish that that's what he was supposed to do, and now he does so voluntarily. He hasn't pooped in his diaper in probably 3 weeks by now.  I wouldn't say he's "fully" potty trained, in that an adult still needs to go with him and distract him (and occasionally remind him when he needs to go in general), but finally we made progress.


Shift of equation elements placed in a tikz rectangle

I want to define newcomands to minimize the following code:   \documentclass{beamer}  \usepackage{mathtools,tikz,lmodern, xparse} \usetikzlibrary{shapes.geometric, arrows, matrix, positioning,  shapes.callouts,shadows,shapes,chains, shapes.misc} \tikzset{>=stealth}  \usepackage{amsmath} %For align environement \usepackage{color}% to define the next colors \definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66} \definecolor{alizarin}{rgb}{0.82, 0.1, 0.26} \definecolor{white}{rgb}{1.0, 1.0, 1.0} \definecolor{blue(munsell)}{rgb}{0.0, 0.5, 0.69}  \begin{document}    \begin{frame}{Quantum corrections to gauge interactions}  \begin{align*}   F(\Phi)= \only<1>{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle, fill=blue}]\node[rounded rectangle, draw, fill=blue!20](Alpha){$\alpha$};   \end{tikzpicture}}\only<2->{\alpha} X  +\only<2>{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle, fill=blue}]\node[rounded rectangle, draw, fill=blue!20](gPhi){$g(\Phi)$};  \end{tikzpicture}}\only<1,3->{g(\Phi)} \end{align*}  \begin{tikzpicture}[remember picture,   note/.style={rectangle        callout,rounded corners, fill=blue}] \only<1>{\node [note=blue!50, opacity=.5, overlay, callout absolute pointer={(Alpha.south)}] at (4,-0.3) {CommentI};} \only<2>{\node [note=blue!50, opacity=.5, overlay, callout absolute pointer={(gPhi.south)}] at (7,-0.3) {CommentII};}  \end{tikzpicture}  \end{frame}   \end{document}   I tried :    \documentclass{beamer}   \usepackage{mathtools,tikz,lmodern, xparse}   \usetikzlibrary{shapes.geometric, arrows, matrix, positioning, shapes.callouts,shadows,shapes,chains, shapes.misc}  \tikzset{>=stealth}  \usepackage{amsmath} %For align environement \usepackage{color}% to define the next colors \definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66} \definecolor{alizarin}{rgb}{0.82, 0.1, 0.26} \definecolor{white}{rgb}{1.0, 1.0, 1.0} \definecolor{blue(munsell)}{rgb}{0.0, 0.5, 0.69}  \NewDocumentCommand{\rect}{ m m m m m}{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle,rounded corners}] \node[rounded rectangle, draw, fill=#1!#2](#3){#4};\end{tikzpicture}}  \newcommand{\mycallout}[9]{\begin{tikzpicture}[remember picture, note/.style={rectangle callout,rounded corners}] \node [note=#3!#4, opacity=.5, overlay, callout absolute pointer={(#5)}] at (#7,#8) {#9}; \end{tikzpicture}}  \begin{document}    \begin{frame}{Quantum corrections to gauge interactions}  \begin{align*}   F(\Phi)= \only<1>{\rect{blue}{20}{Alpha}{$\alpha$}}\only<2->{\alpha} X  +\only<2>{\rect{blue}{20}{gPhi}{$g(\Phi)$}}\only<1,3->{g(\Phi)} \end{align*}  \only<1>{\mycallout{blue}{50}{Alpha.south}{4}{0.3} {CommentI}} \only<2>{\mycallout{blue}{50}{gPhi.south}{7}{-0.3} {CommentII}}  \end{frame}      \end{document}   But it gives me the error File ended while scanning use of \frame.. Another problem, which I want to fix, is the shift of $\alpha$ and ${g(\Phi)}$ due to the tikz box.


How to deal with an accepted answer that is not answering the question?

I recently came across  in Workplace SE where the accepted answer does not provide a solution to the question.  From the most upvoted comment on the answer,     I'm curious how this is the accepted answer, when it doesn't actually   answer the question. I mean, the OP is asking "How do I deal with   this" and "How can I politely ask this" - and this doesn't actually   say anything about how to deal with it or how to ask them it.   Someone has already commented that they are flagging it as "Not an answer". Is it valid to flag an accepted answer this way? If not, what should we do?


Visual Studio 2010: Why can't I resume an application when I made changes in a delegate?

I'm not sure if it is a .Net or C# or even Visual Studio 2010/2008 thing, but I noticed that whenever I pause my application to change something in the code and the changes are made within a delegate, I can't resume the application but have to restart it.  So my questions are:  1) Is this depend on the programming language? Or the framework? Or the Editor?  2) Is it only when I change delegates? Or other things?  3) Why is this so?


How to get the path of a running JAR file?

My code runs inside a JAR file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is.  So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current working directory is.


Prove that a specific map induces an embedding from $\mathbb{R}P^{2}$ into $\mathbb{R}^6$

Can someone help me:  The map $f : {S}^2  \rightarrow \mathbb{R}^6$ given by $f (x; y; z) = (x^2, y^2, z^2, \sqrt{2}yz, \sqrt{2}xz, \sqrt{2}xy)$ induces an embedding $C^{\infty}$ of $\mathbb{R}P^2$ in $\mathbb{R}^6$?  How can we get from $f$ a embedding $C^{\infty}$ of $\mathbb{R}P^2$ in $\mathbb{R}^4$?


Will speed of light in any denser medium will be same for all the inertial frame in that medium?

As we know the speed of light in vacuum is constant for everyone (at least for all inertial frames), i.e., if we run away or toward a beam of light (in vacuum) the speed would be $c$. It doesn't change. But imagine a beam of light traveling in a denser medium (where the speed of light decreases), say, water. Let the speed of light in water be $s$. Suppose a fish is swimming away from that beam of light at velocity $V$. For the fish will the speed of light will be $s-V$ or $s$? Thank you for spending your precious time.


I want to query two unrelated objects, and I can't create a lookup relationship between them. They have the same global picklist sets in both of them and I want to query the records from one of the objects when the picklists have the same values but the objects are unrelated. Can anyone help?


How can I create a Google Chart that has a 100% width and height?  I've tried using the obvious width: 100% for example but this doesn't work.


What is the point of a lecture when you have a textbook?

I never really understood the point of having a course with lectures when the course has a textbook. Sometimes the subject is so high-level or specialized or so modern that the contents are changing rapidly that there is no textbook (for example at the graduate level). But more often the textbook includes everything that will be said in the lecture, and much more: extra content, exercises, answers to exercises, appendices, etc.   I assume a STEM context, that is we can assume the textbook is available in the sense that there is one comprehensive source that contains undisputed facts, as opposed to a broad literature with lots of interpretations and opinions (as may be the case in non-STEM contexts).  So what is the point of a lecture?


Damage calculation for a multi-typed sneak attack?

I play a level 7 Arcane Trickster Rogue with a Shadow Blade equipped which deals 2d8 Psychic damage.  In addition I used Absorb Elements with which I absorbed an Ice Mephit's Frost Breath on me, which would add 1d6 Cold damage to that attack. Lastly I cast Green-Flame-Blade to finally make my attack which would add 1d8 Fire damage. As the Ice Mephit is resistant to Cold but weak to Fire, I get that the additional damage from Absorb Elements would be halved, but Green-Flame-Blade would be doubled. Now to the sneak Attack:  Beginning at 1st level, you know how to strike subtly and exploit a foe's distraction. Once per turn, you can deal an extra 1d6 damage to one creature you hit with an attack if you have advantage on the attack roll. The attack must use a finesse or a ranged weapon.  As the Sneak attack inherits the weapon attack's type, how would I calculate the damage for the sneak attack?  Do I choose which type the sneak attack is? Is it all types at once, and I count the amount of time an element is resisted or is strong against the enemy? (in this case 1. resistance and 1 vulnerability would neutralise and I'd just take the normal result from my sneak attack die) Does the damage calculation go by whatever type is more beneficial to a) the attacker or b) the defender?


What is the difference between the two, a ptr pointing at a variable and a ptr pointing at memory?  I know a pointer is a variable that holds the memory address of a variable. So... A ptr pointing at a variable holds the address of that variable whereas a ptr pointing at memory is directly pointing at memory?  The first somehow still holds some information about the initial variable whereas the later only knows an address?  EDIT: I didn't mean for this question to cause so much controversy and I'm not entirely sure why it's getting downvoted.  I'm just trying to understand pointers... After doing some reading on the linked 'duplicate' it is my understanding that a ptr pointing to a variable always references that variable, cannot be reassigned, and cannot point to other pointers, and share an address with the variable.  Memory pointers can point to NULL, can be reassigned, can point to other pointers, and have their own memory address.  Are these true for C or only C++


Why could only one Terminator be brought back at a time?

In the movie Terminator why was only one Terminator allowed to be brought back at a time?


What to do when you put two days of formulating a question and it still gets downvoted?

I have spent hours reading, formulating practice questions, using grammar check, and studying research papers.   I have taken a break from Stack Exchange for probably 4 days, hoping that this will refresh the quality in my questions. But, this strategy has failed.  I'm baffled right now, because I took into consideration of what other users have mentioned.  And, it indeed improved my question quality.    Question  What other strategies should be used as this strategy no longer works?


I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from coordinates 0,0 in AutoCAD in meters. And the drawing has meters, WGS84 has decimal degrees.  When I set Layer CRS as WGS84 in QGIS, the coordinates don't change.  How can I project this SHP file as WGS84 in QGIS?


Constant current MOSFET circuit oscillating, how to get it to stop?

– Schematic created using  I have a constant current load circuit using a sense resistor and discrete quad op-amp set up as a 3 op-amp instrumentation amplifier and using the 4th to drive the gate of a MOSFET. The circuit oscillated for a long time until I dropped the gate driving op-amp feedback resistors to fairly low values and then  it worked fine for a while. I did some load testing of the MOSFET itself (controlling the gate with a POT) to see how well it could handle heat and if the heatsink would do any good. It got crazy hot (starting melting it's own solder) but it still works and isn't shorted. I could try replacing the MOSFET with a new and less abused one but I'd like to have this circuit be less vulnerable to oscillating in general so if I can get it working with this one I'd prefer.


I have a $3$-D sphere of radius $R$, centered at the origin.   $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ are two points on the sphere.   The Euclidean distance is easy to calculate, but what if I were to restrict myself to traveling on the surface of the sphere?    Two approaches come to mind: use  in some way, or simply use trigonometry: calculate the angle between the two points and get a distance from that.    Will both/either of these methods work? Which would be easier?  Somewhat related to . Maybe it will inspire someone to go answer it!


I try to build registration form, I have problem when I get the errors back from the PHP to the javascript.  I got the right data but i got it like a string and I need it like a javascript object because it can contain some errors in the same time..  Here is the data that I got back form the server side:  {"success":false,"errors":{"name":"Name is required.","superheroAlias":"Superhero alias is required."}}   This data is a string, when i do data[0] i get "{"  i need to get that data back as javascript object. I guess i supose to create function Json2Javascript or somthing like that but i dont know how its need to look, can you help me please create the function that will that?  If you write function please show me how to call the vars to, for example if i need to get the error on the name i want to get it like:   var a = data.errors.name;   Please help i tryed to find this function like hours =\ * I know how to create object in php and convert it to json and then to javascript object but i do that only with strings vars not on objects..


I am playing Skyrim on the Xbox 360 and experiencing a major glitch.  Here is my current situation:  My character is currently at level 75 and I am Thane in the following cities:   Winterhold Windhelm Falkreath Solitude Morthal Markarth Dawnstar Riften   I downloaded Hearthfire DLC around level 60 and received two notices from the courier:   Adoption letter Letter from Steward in Falkreath about buying land   I ignored both letters and went about my business (messing up trolls and skeevers).  I eventually grew tired of that and finished the Dark Brotherhood quests.  After the last mission, I made my way back to Falkreath and talked to the steward.  But, no matter what I do, I cannot buy land from the steward! WHY!? I am holding a note that says I can buy land in Falkreath.    I even threw the note at , the Jarl's incompetent steward, hoping she would realize the error of her ways, but to no avail.  I have no miscellaneous tasks left so it is not a matter of doing favors for the Jarl. My last major save was 15 levels ago and I would prefer not to restart the game from scratch.  Has anyone else experienced this? Any suggestions on what to do??


How to extend an existing JavaScript array with another array, without creating a new array

There doesn't seem to be a way to extend an existing JavaScript array with another array, i.e. to emulate Python's extend method.  I want to achieve the following:  >>> a = [1, 2] [1, 2] >>> b = [3, 4, 5] [3, 4, 5] >>> SOMETHING HERE >>> a [1, 2, 3, 4, 5]   I know there's a a.concat(b) method, but it creates a new array instead of simply extending the first one. I'd like an algorithm that works efficiently when a is significantly larger than b (i.e. one that does not copy a).  Note: This is not a duplicate of  -- the goal here is to add the whole contents of one array to the other, and to do it "in place", i.e. without copying all elements of the extended array.


Compare two files and return a true or false value

I have two files with one column. If the first rows in the two files are same, then print 1 otherwise print 0.  file1:  M A A M   file2:  M M A A   output:  1 0 1 0   Can anybody show me an awk script which would do this?


How do I explain why "I wonder where is the bus station." is wrong?

I am having a hard time explaining why the sentence  “I wonder where is the bus station.” is wrong and it should be “I wonder where the bus station is.” How would I explain why the word “is” shouldn’t go there?


I was wondering if the word sans is correctly used in the following sentences: He was broke sans a few dollars. He was naked sans a shirt. Can it be used in more ways than simply the word without?


I'm trying to copy and paste on the iOS app and I can't seem to. Whenever I click paste, nothing shows up, even though I have copied text to my clipboard. I've copied from the app and then pasted in different apps and it works, but I can't paste in the iOS app. My paste functionality works everywhere else.    App Version: 1.6.6.2 Device: iPhone 6s OS Version: Version 11.1.1 (Build 15B150)


How to set width of multi row columns and do line breaks

I would like to create a table with a specific column width and an automatic linebreak in my multirow columns.   THANKS to  Elad Den for my progress. :)  Is it possible to automatically set the width of these columns to fill the DINA4 paper and how is it possible to center Fabrikobjekte and (B) (O) and (R)?  This picture is how it should look like. Its not important to have these bullet points.    And this is my current code.  \usepackage{graphicx,multirow,tabularx} \usepackage{array,calc} \usepackage{booktabs} \usepackage{geometry}  \begin{table} \centering \caption{Gestaltungsfelder} \begin{tabular}{|c|c|c|c|}     \cline{2-4}         \multicolumn{1}{r|}{} & \multicolumn{3}{c|}{Gestaltungsfelder} \\     \cline{2-4}         \multicolumn{1}{r|}{} & \multicolumn{1}{m{5cm}|}{Betriebsmittel (B)} & \multicolumn{1}{m{5cm}|}{Organisation (O)} & \multicolumn{1}{m{5cm}|}{Raum- und  Gebäudetechnik (R)} \\     \hline     \multirow{8}{*}{\rotatebox{90}{Fabrikobjekte}}     & {\parbox{5cm}{Fertigungseinrichtung}}   & {\parbox{5cm}{Unternehmensstrategie}}     & {\parbox{5cm}{Grundstück}} \\     & {\parbox{5cm}{Montageeinrichtungen}}     & {\parbox{5cm}{Logistikkonzept}}     & {\parbox{5cm}{Baukonstruktion}} \\     & {\parbox{5cm}{Logistikeinrichtungen}}     & {\parbox{5cm}{Prozessgestaltung}}     & {\parbox{5cm}{Technische Anlagen}} \\     & {\parbox{5cm}{Qualitätseinrichtungen}}     & {\parbox{5cm}{Aufbauorganisationsgestaltung}}     & {\parbox{5cm}{Außenanlagen}} \\     & {\parbox{5cm}{Informations- und Kommunikationseinrichtungen}}     & {\parbox{5cm}{Arbeitsorganisation}}     & {\parbox{5cm}{Ausstattung}} \\     & {\parbox{5cm}{Ver- und Entsorgungseinrichtungen}}     & {\parbox{5cm}{Qualitätssicherungs-konzept}}     & {\parbox{5cm}{Konzepte}} \\     & {\parbox{5cm}{Übergeordnete Systeme}}     &       &  \\     & {\parbox{5cm}{Mobiliar}}     &       &  \\     \hline \end{tabular}% \label{tab:addlabel}% \end{table}%   New solution: Thank you very much for helping me Bernard!!!


Concepts like induction... are these metalogical concepts? Axioms? Within-logic?  For example proving the  often resorts to principles of induction but I don't see where this "fits" within a system of logic. Like the whole idea of case $P(0)$ being true and case $P(k) \to P(k+1)$ being true implies $P(n)$ is true for all $n$... says who? I'm not saying I am disagreeing with induction, I'm just curious how we "know" it's true and where it actually fits in with our rigorously-defined systems of logic.  Is induction something you can "derive" from the rules of logic or is it something we assume is true on a metalogical level? Where does it fit exactly?


Regular Expression to find Name from Email address

In python, I am trying to create an algorithm that will use characters from an email address and search the page to calculate the likelihood the string is the actual name of the person.  I wrote a regex expression to grab all emails on a page, but then I want to write another to try and find the persons name from the email (since it is a subset or some characters of the name make it up).    I am using:    self.reEmail = re.compile(r"\b(?!(?:.\B)*(.)(?:\B.)*\1)[char]+\b", re.IGNORECASE)   However this is giving me all single characters.    email: bjoel@email.edu  Name : Billy Joel  - is what I want to scrape.    However it is not always the first letter of the email is the first name...


Motion tracking points are not accurate enough

I want to get a more accurate track, but some of the makers seem to have a mind of their own and are bouncing all over. I am not sure if this problem is caused either by some of my settings, my footage, or just Blender not being able to do a good job. (Possible?)  My footage was shot using an iPhone 4, focal length of 35 I think (It changes whenever I solve to 41.14).   If my footage being too blurry is the problem (I think that it's not too blurry), I tried changing the Tracking Present to Blurry Footage and that didn't change anything that I noticed. Same with the rest of the presets.  What would fix the markers from jumping around?


What is different between Opacity, Visibility and Display in css?

I am confused with these three terms which are used in CSS. What is different between Opacity, Visibility and Display in CSS?


ArcGIS 9 doesn't recognize ArcGIS 10 .lyr files

I symbolized a parcel shapefile in ArcGIS 10 with about 2 dozen different colors. I need to use this in ArcGIS 9.3 as well, so I saved it as a .lyr file. This works fine in 10. But when I go to 9.3, I can add the shapefile, but not the .lyr file, or import it for symbolization (geometry doesn't match error). Is there a way to make a .lyr file in 10 so that 9 will recognize it? The .lyr file comes from the same shapefile, so I don't know why it wouldn't recognize it. I want to use this symbolization for a half dozen shapefiles a/o feature classes, so really don't want to manually recreate it. Thanks.


What to do about 1 year old boy who keeps pulling hard at his penis and scrotum?

This has been going on a little while and the health visitor says its normal but we are a bit concerned about the force our child is using when he pulls at his penis: He really yanks it and it looks like it could do some damage...  Particularly when he stretches both as far as he can!  And the other day his nail cut him on his scrotum while I was changing him so I was even more concerned about bacteria.  How can I encourage him to stop doing it so forcefully without teaching him it's wrong to explore his body?


Intuitive explanation of why $\dim\operatorname{Im} T + \dim\operatorname{Ker} T = \dim V$

I'm having a hard time truly understanding the meaning of $\dim\operatorname{Im} T + \dim\operatorname{Ker} T = \dim V$ where $V$ is the domain of a linear transformation $T:V\to W$. I've used this equation several times in many problems, and I've gone over the proof and I believe that I fully understand it, but I don't understand the intuitive reasoning behind it. I'd appreciate an intuitive explanation of it.  Just to be clear, I do understand the equation itself, I am able to use it, and I know how to prove it; my question is what is the meaning of this equation from a linear algebra perspective.


Where can you perform variable substitution in an equation?

I've ended up in a debate on a proof for .999˜ being equal to 1 (in the real number system.)  I think the arguments have boiled down to whether or not we can preform variable substitution on one side of the equation, while keeping that variable rather than substituting it on the other side of the equation.  What we are looking at:  Given: x = 0.999˜ (Using the ˜ symbol to represent repeating)     .. A     10x - x     = 9.999˜ - x     9x          = 9.999˜ - x     9(.999˜)    = 9.999˜ - (.999˜)     8.999˜      = 9     ..     OR     .. B     10x - x     = 9.999˜ - x     9x          = 9.999˜ - (0.999˜) // Preform a substitution on ONLY the RHS     9x          = 9     x           = 1     ..  What's so confusing is that both should be right...since 8.999˜ IS equal to 9.  But, since this is a proof you should expect the same representation of the number at the most simplified step (I believe?)  So for simplicity sake my questions are...:   Is the algebra valid in both examples A and B? Does example A act as proof regardless of giving different representations of the same number at the most simplified step?


Why didn't Thanos come to Earth to retrieve Tesseract by himself?

In the Avengers movie, why didn't Thanos personally come to Earth instead of Loki? Or, if Loki's skills were required, why didn't he come with Chitauri? He knew that humans were primitive; there wouldn't be any threat and he could personally secure Tesseract.  AFAIK, the movie didn't display much. Is there any other source answering this?


Package babel Error: Unknown option `polish'

Compiler can't find 'polish' package. - I have no idea what is happening, I was editing the same document a week ago and everything worked perfectly fine. Another error that occurs is "l. 299 \ProcessOptions*". I am quite new to LaTeX so would appreciate your help. (I use TeXworks)


Ubuntu 16.04 - Software Updater shows blank update list, total size is still shown

Firing up the Software Updater gives a blank list of updates, though their total size is still visible. Updates are successful as well, only the list of items on confirmation screen is blank white.  Any ideas what broke this? This may have something to do with the LTS point release, though I am not upgrading to 18.04 yet given GNOME problems. Also, I received the HWE kernel updates about a week ago.


Copying location EXIF data from phone to camera photos?

Fairly straight forward question and a fairly common scenario I would imagine. I have taken photos with iPhone and digital camera of the same subjects and locations, most of these groups of photos have been put in folders like "Holiday in Dorset" or "Waterpark".  Is there a way to merge location data from iPhone photos (img*.jpg) to digital camera photos (DSC*.jpg) by folder? I have '000s of photos to do this with, so need to do this in as automated a way as possible. Happy to write batch scripts, just need to know best way to approach the problem and what tools to use.


Producing photons with same frequency, different amplitude wave

I don't understand how two photons of the same frequency can have different amplitudes, neither how to produce them.  I know that classically the square of the amplitude is proportional to the energy, but photons aren't classical particles.  My understanding is that a photon's energy is $h\nu$ - what does the square of its amplitude represent, then? Are there bounds to the amplitude of an EM wave?  Take two waves of amplitudes $A_1$ and $A_2$ and frequency $f_0$. If $A_2 = 2A_1$, can the wave with amplitude $A_2$ be said to carry/be two $A_1$ photons of frequency $f_0$?


For groups $A,B,C$, if $A\times B$ and $A\times C$ are isomorphic do we have $B$ isomorphic to $C$?

The motivation for this question is in my answer to this post :       (1) If I take $A$, $B$ and $C$ three groups such that $A\times B$ is isomorphic to $A\times C$ then do we have $B$ is isomorphic to $C$ ?   In the post a counter example is given when $A$ is an infinitely generated group. However I cannot get a counter-example when $A$, $B$ and $C$ are assumed to be finite groups. Note that there is no reason a priori if $\phi$ is an isomorphism from $A\times B$ to $A\times C$ that $\phi(A\times\{1_B\})=A\times\{1_C\}$.   In the case of finite groups it is true because of the Krull-Schmidt theorem : .  A slightly more general question is the following :     (2) If $B$ and $C$ are two finitely generated groups, can I always find a finitely generated group $A$ such that $A\times B$ is isomorphic to $A\times C$?   If $A$ is not assumed to verify any property but to be a group we can take :  $$A=B^{\mathbb{N}}\times C^{\mathbb{N}} $$  Furthermore replacing :$ \prod_{\mathbb{N}}$ by $\bigoplus_{\mathbb{N}}$ (or more likely the restricted product for groups but I am not sure of a well known notation, it is the subgroup of the product with all but a finite number components being trivial) will give you the same result for countably infinite groups.   $\underline{\text{Edit}}$ : To be clear about what I am asking. (1) is kown to be true for finite groups whereas (2) is known to be true when we are considering groups without restriction (even just for countably infinite groups). Let us pretend we are working on the smaller class of groups : the finitely generated groups. Is there any counter example to $(1)$? Is there any counter example to $(2)$?   $\underline{\text{Edit 2}}$: Here is a partial answer, from the classification of finitely generated abelian groups $(1)$ is always true if all groups are assumed to be abelian finitely generated groups. Now assume that $A\times B=G=A\times C$. Then you have (derived groups) :  $$D(G)=D(A)\times D(B)=D(A)\times D(C) $$  So the abelianizations verify :  $$A^{ab}\times B^{ab}=A^{ab}\times C^{ab}$$  Because we are now in the realm of finitely generated abelian groups we get :  $$B^{ab}=C^{ab} $$  So $(2)$ cannot be true in general for instance you can take $B:=\mathbb{Z}$ and $C=\mathbb{F}_5$, those two groups have different abelianizations.   The new question can be found here :


$k$-space tensor integral in statistical physics

$$Q=\int_{\text{all space}} \frac{\hbar \nu_g \mathbf{k}\mathbf{k}}{\exp[(\hbar \nu_g |\mathbf{k}|-\mathbf{k}\cdot\mathbf{u})/k_B T]-1}d\mathbf{k} $$   Please help me to integrate the above tensor expression in the infinite domain of the vector $k$.  I have tried to let $u$ in the direction of $k_z$ and then transform the current integral into a spherical coordinate with the following relation:  $$ k_x = k \sin \varphi \cos \theta $$ $$ k_y = k \sin \varphi \sin \theta $$ $$ k_z = k \cos \varphi $$  And I find $Q$ is a symmetric tensor, and $Q_{xy}=0,Q_{xz}=0,Q_{yz}=0$. However,$Q_{xx}=Q_{yy}\neq 0,Q_{zz}\neq 0$,and $Q_{xx}\neq Q_{zz}$. I guess $Q$ has relevance to the tensor $uu'$, the assumption that $u$ is in the direction of $k_z$ is just a simple case.


$x_1 \cdot \dots \cdot x_n=1 \implies x_1 + \dots + x_n \ge n$

Suppose $x_1, \dots, x_n$ are positive real numbers such that $x_1 \cdot \ldots \cdot x_n = 1$. Prove $x_1 + \dots + x_n \ge n$.    I don't want to use the AM-GM inequality to prove this (from which this statement would follow).   I suppose induction is the way to go. The base case is true. The case for $n=2$ is true by  $$x_1 + x+2 - 2 \sqrt{x_1 x_2} = (\sqrt{x_1} - \sqrt{x_n})^2 \ge 0.$$  Now suppose the statement holds for $n$, then $$x_1 \cdot \ldots \cdot x_n = 1 \implies x_1 + \dots + x_n \ge n.$$  So if $x_1 \cdot \ldots \cdot (x_n x_{n+1}) = 1$, then  $$ x_1 + \dots + x_n x_{n+1} \ge n. $$  Then we also have $$ x_1 + \dots + x_{n-1} + x_n + x_{n+1}  \ge n - x_{n}x_{n+1} + x_n + x_{n+1}. $$  Now I'm not sure where else to go from here.


View camera vs. Perspective camera (scheimpflug optics)

I've been searching extensively through this and other forums without success about the topic. I am interested in using a new camera model consisting of a normal perspective model, but where the image plane is tilted with respect to the lens plane (scheimpflug principle). I can't find how to modify a normal Cycles camera in order to include such "simple" modification.  Cheers  Pep


If the bug is fixed and the post is not yet changed to status-completed, how can I notify to moderator?

If there was a post reported with  tag months or even years ago on Meta Stack Exchange or a per-site meta, and now the bug is fixed and working fine, but nobody has changed the status to , how can I notify someone?   I can simply add a comment to the post saying the bug is fixed, @-mention one of the moderators - but I feel this adds unwanted noise to the post.   I can flag the question with in need of moderator intervention to add my comments about the bug, it was fixed.   What is the correct way to notify about the post to the moderator?


I've written a pair of functions for exporting the currently selected indicies to a file, then reimporting them.  There's no particular reason for this other than to get more comfortable with writing scripts for Blender.  Here's what I have:  import bmesh import bpy import json  def exportSelectedIndicies(filename):     mesh = bmesh.from_edit_mesh(bpy.context.active_object.data)     selectedIndicies = [i.index for i in mesh.verts if i.select]     with open(filename, 'w') as f:         json.dump(selectedIndicies, f)  def importSelectedIndicies(filename):     mesh = bmesh.from_edit_mesh(bpy.context.active_object.data)     with open(filename) as f:         selectedIndicies = json.load(f)      for i in mesh.verts:         i.select = i.index in selectedIndicies      mesh.select_flush_mode()   The export portion does exactly what I want. I'm happy with it.  The import portion doesn't seem to do anything when you run it at first. It's not until you click away from the console and into the 3D View that it suddenly updates your selection.  It seems to me that the import portion is just missing a little part to tell the 3D View that it needs to redraw itself. I searched around online and found some stuff saying that there's a Blender.Redraw method that can be used, but there's no such module Blender or Redraw that I can import. I suspect that either those functions aren't exposed to the Python API, or they're from an older version of Blender and have since been deprecated.  I see that I can access the , but it doesn't seem to have any redraw method that I can use.  So what am I missing here? Is there some kind of flush, mark_dirty, draw, refresh, or redraw method that needs to be called for it to trigger that it needs to be redrawn (and on what object, and how would I get at that object?)  Is this a bug? I am using version 2.74... do newer versions have the bug fixed? On that note, do newer versions add in a function that I need (I just haven't updated because I don't use Blender much, and because my network is slow so updating takes several hours. But I'll go ahead and update if that'll fix my problems.)  If it is a bug or something that's been overlooked... is there a workaround I can use? Maybe something to emulate clicking on the 3D View, then clicking back on the Console (so I can enter more commands afterwards...)?


Why is $\mathbb Q(\sqrt 2+\sqrt 3)=\mathbb Q(\sqrt2,\sqrt 3)$?

Why is $\mathbb Q(\sqrt 2+\sqrt 3)=\mathbb Q(\sqrt2,\sqrt 3)$ ?  I am Having problems understanding why this is true.  Any input would be greatly appreciated!


Avengers: Endgame has given us a huge "sigh of relief" when Cap lifted Mjölnir.  But as we know from Thor: Ragnarok Mjölnir was just a way for Thor to channel his power of lightning. I repeat "THOR's" power, because he is the god of lightning.  So how did Captain America generate lightning bolts to fight Thanos in the endgame?     EDIT: I don't know why people are marking this as a duplicate of  These are two   different questions at their core. Here I am not questioning Captain   America's worthiness for lifting Mjölnir, instead, the focus is on the   power of generating bolts of lightning which are shown in the movie.


Why is the Petersen graph no Cayley graph?

On the  it is mentioned that it is not a Cayley graph.    How it this proved? Honestly I don't even know how to start this. The only criteria I can think of is that all vertices must have the same degree. Also the degree being odd should imply that one generator of the group has order 2. But then how do I proceed?  Edit: As already mentioned in the comments, the link did not answer my question.


Find $E(e^{aX})$ if $X \sim \operatorname{Gamma}(\lambda, k)$

I am trying to calculate this:     Let $X \sim \operatorname{Gamma}(\lambda, k)$.   If $0 < a < \lambda$, find $E(e^{aX})$.   I have attempted this by integration, I inserted a picture of my integral:     Because of the form of the integral I believe that I should take a constant out to change the $\lambda$ to $a-\lambda$ as that is what appears in the exponential, and then get the integral of the PDF of a $\operatorname{Gamma}(a-\lambda,k)$ random variable which integrates to $1$ and simplifies the expression, but I am not sure how to do this.


Why is $p_\phi$ conserved in a Schwarzschild orbit?

This arises from the question , which I'm afraid I answered just by looking it up in . However Schutz (as he frequently does) glosses over details he thinks are irrelevant or too simple to be worth explaining, and I have realised I don't understand an assumption he makes.  Schutz states without proof that if we have an equatorial orbit in a Schwartzschild metric then:     Independence of the metric of the angle $\phi$ about the axis implies that $p_\phi$ is constant.   In the non-relativistic world I assume this corresponds to angular momentum being constant in a central potential. So far so good. But why is it the component of the dual vector $p_\phi$ that is constant rather than $p^\phi$? The component $p^\phi$ is presumably not constant since (in this case) $p^\phi = p_\phi/r^2$.  Bonus points for also explaining his similar claim that time independance means that $p_t$ is constant rather than $p^t$.  I fear that Schutz didn't explain because it's an insultingly simple question, but if someone can provide a nice intuitive explanation I would be very pleased to read it.


How to make the OSX text substitution available everywhere?

As it currently stands, the OSX text substitution feature seems to require an application to actively support it to be available - which many do not.  Is there a way to make the text substitution available everywhere? If I'm not wrong this should be possible, I am thinking of a program that achieves this by doing something like hooking into the keyboard input on system level and performs the substitution by sending additional keystrokes after detecting that a shortcut has been entered. (E.g. after entering (c) it sends three delete keycodes followed by the substitution.) However I didn't find anything like this through my Google searches.  I'd also be content with a solution that requires me to select the text-to-replace and hit a keyboard shortcut to perform the action.  Does a program like this exist, or is there any other way?


Mobile version not showing the hat, is this bug or feature?  Only works in full desktop mode.


Are two Pearson correlation coefficients different?

I am aware of this , which mine was listed as a duplicate of, but it does not fully answer my question. It did however help me progress a little further so thanks, I couldn't find it before. The online calculator on the above answer also disagrees (though marginally) with the  calculator so I think that further backs up my reasoning for not using a black box.  So I'll re-explain my problem and hope that this gets opened to answers:  I have two Pearson correlation coefficients which I would like to compare. Each comes from 2 sets of 40 genetically identical lines and are correlations between male and female trait values.  I have managed to do $z$-transformations on my correlation coefficients in R using the function atanh() and replicated that with a home-made function RtoZ <- function (r) 0.5*log((1+r)/(1-r)).   The problem is what to do next: how do I actually test, in R,  whether the two correlations are different?


How to make Vim display colors as indicated by color codes?

In short, I'm in an effort to replace less with vim (vimpager). I have settings for scripts to spit out colors (and bold and everything nice) whenever they can. less understands the color codes and displays them nicely. How can I make vim parse the codes and display colors/boldness the way less does?


What is the out-of-universe origin of the Rebel crest?

The Rebel crest was first seen in the Star Wars universe in the 1977 film Star Wars (A New Hope), at the very least it was on the rebel helmets.  It has become part of Star Wars lore and has, in-universe, been (to some degree) retcon-ed that the rebel crest either comes from Sabine Wren's phoenix crest (in Disney Canon) or Galen Marek's family crest (in old canon, what is now known as Legends).   Is there any indication of the design inspiration or rationale for the logo in the original film?    discusses the in-universe origins, and also the re-use of the logo in Star Wars Rebels, but not the original out-of-universe inspiration for the 1977 version of the logo.


How does one use the Latin word "cum" in a sentence?

I'm talking about the Latin cum, which I've seen used conjunctively, as in A-cum-B.  What does it mean, and how do you use it?


Integral of $\frac{x^\alpha}{(1 + x^2)^2}$ from 0 to $\infty$ using contour integration for $-1 < \alpha <3$

I have tried to evaluate $\int_0^\infty \dfrac{x^\alpha}{(x^2 + 1)^2}\ dx$ for $-1 < \alpha < 3$ using the keyhole contour, but am not sure about my working, especially in defining the analytic branch of log $z$ when we consider the function $f(z) = \dfrac{z^\alpha}{(z^2 + 1)^2}$ where $z^\alpha  = e^{\alpha\text{log}\ z}$. Below is my working:  Using the keyhole contour $K_{\varepsilon,M}$ and considering the complex function $\dfrac{z^\alpha}{(z^2 + 1)^2}$, we inspect the integral of the function over each part of the contour (namely $C_{\varepsilon},C_M, I_1$ and $I_2$) in the limit $\varepsilon \to 0,\ M \to \infty$. For $C_{\varepsilon}$, we have $|z^2 +1|$ to be the modulus of points lying on a circle of radius $\varepsilon^2$ centered at $z = 1$ and hence $|z^2 + 1| > 1/2$ for $\varepsilon$ small enough (e.g. $\varepsilon^2 < 1/2$). We thus have:  \begin{align*} \int_{C_{\varepsilon}} \dfrac{z^\alpha}{(z^2 + 1)^2}\ dz \ll \pi\varepsilon\ \text{max}_{C_\varepsilon}\bigg|\dfrac{z^\alpha}{(z^2 + 1)^2}\bigg| \ll 4\pi\varepsilon^{\alpha + 1} \Rightarrow \lim_{\varepsilon \to 0}\int_{C_{\varepsilon}} \dfrac{z^\alpha}{(z^2 + 1)^2}\ dz = 0  \end{align*} For any $z \in C_M$, we have $|z^2 + 1| \geq |z^2| = M^2$ for $M$ big enough. We thus have: \begin{align*} \int_{C_M} \dfrac{z^\alpha}{(z^2 + 1)^2}\ dz \ll 2\pi M \ \text{max}_{C_M}\bigg|\dfrac{z^\alpha}{(z^2 + 1)^2}\bigg| \ll 2\pi M^{\alpha - 3} \Rightarrow \lim_{M \to \infty}\int_{C_M} \dfrac{z^\alpha}{(z^2 + 1)^2}\ dz = 0 \end{align*} For $I_1$, we have $\begin{aligned} = \lim_{\varepsilon \to 0,\  M \to \infty}\int_{I_1}\dfrac{z^\alpha}{(z^2 + 1)^2}\ dz = \int_0^\infty \dfrac{x^\alpha}{(x^2 + 1)^2}\ dx \end{aligned}$. As for $I_2$, we have $z^\alpha = e^{\alpha(\text{ln}x + 2\pi i)} = x^{\alpha}e^{2\pi i\alpha}$, and hence we have $\begin{aligned} = \lim_{\varepsilon \to 0,\  M \to \infty}\int_{I_2}\dfrac{z^\alpha}{(z^2 + 1)^2}\ dz = -e^{2\pi i\alpha}\int_0^\infty \dfrac{x^\alpha}{(x^2 + 1)^2}\ dx \end{aligned}$. Then, by the Residue Theorem, we have: \begin{align*} \int_0^\infty \dfrac{x^\alpha}{(x^2 + 1)^2}\ dx &= \frac{2\pi i}{1 - e^{2\pi i\alpha}}\sum_k \text{Res}\bigg(\dfrac{z^\alpha}{(z^2 + 1)^2}; z_k\bigg) \\ &= \frac{2\pi i}{1 - e^{2\pi i\alpha}}\bigg(\lim_{z \to i} \frac{d}{dz}\bigg(\dfrac{z^\alpha}{(z + i)^2}\bigg) + \lim_{z \to -i} \frac{d}{dz}\bigg(\dfrac{z^\alpha}{(z - i)^2}\bigg)\bigg) \\ &= \frac{2\pi i}{1 - e^{2\pi i\alpha}}\bigg(\frac{\alpha -1}{4}i^{\alpha -3} + \frac{\alpha -1}{4}(-i)^{\alpha -3}\bigg) \\ &= \frac{\pi i(\alpha -1)\text{cos}(\pi(\alpha - 3)/2)}{1 - e^{2\pi i\alpha}}  \end{align*}  where the keyhole contour is given as   Any help in correcting my working or giving hints or posting your solution is appreciated.


Why didn't Voldemort realize that Harry had a part of his soul?

I mean it's stupid right? He even controlled possessed him in the 5th book briefly. He would surely realize that the sensation or whatever he felt and did while controlling Nagini was the same.


NSF proposal still pending but status date changed!

It has been 6 months since I submitted an NSF proposal. I noticed the status date got updated to today, but the status is still pending. No email or call from the PM. Is this a decline for sure?


All I must do for this code is display the current year, month and day of the year using the GregorianCalendar class. for some reason everything is right but the month. The program returns the month as being 11 instead of 12. Any suggestions?  /**  * @param args the command line arguments  */ public static void main(String[] args) {     GregorianCalendar Calendar = new GregorianCalendar();     int year = Calendar.get (GregorianCalendar.YEAR);     int month = Calendar.get (GregorianCalendar.MONTH);     int day = Calendar.get (GregorianCalendar.DAY_OF_MONTH);      System.out.println("the current year is " + year);     System.out.println("the current month is " + month);     System.out.println("the current day is " + day); }


Suppose that $X,Y$ are arc-connected and locally arc-connected spaces and that $p:\widetilde{X}\to X$ and $q:\widetilde{Y}\to Y$ are universal covering of $X$ and $Y$ respectively. Show that if $X$ is homotopically equivalent to $Y$, then $\widetilde{X}$ is homotopically equivalent to $\widetilde{Y}$  I have to find a homotopic equivalence from $\widetilde{X}$ to $\widetilde{Y}$, I know that there is a homotopic equivalence $f:X\to Y$ and therefore $f_*:\pi_1(X)\to \pi_1(Y)$ is an isomorphism, besides $\widetilde{X}$ and $\widetilde{Y}$ are the universal covers then $\pi_1(\widetilde{X})=\{1\}$ and $\pi_1(\widetilde{Y})=\{1\}$ and I have the next diagram but I do not know what else to do. Could someone help me please?, could I take $g=q^{-1}\circ f\circ p$ ? Thank you very much.


I've been wondering, what causes the normal force to exist?  In class the teacher never actually explains it, he just says "It has to be there because something has to counter gravity."  While I understand this is true, it never explains why.  Whenever I ask anyone else they always respond in a similar way, saying "It has to be there, because the object is not accelerating", and this has become very frustrating.  So what is the cause of the normal force? From my reasoning, it has to be one of the four fundamental forces. (Gravity, electromagnetism, the weak force, or the strong force).  It would seam to me that electromagnetism would make to most sense (electrons in the outer shells of atoms repelling each other),   However, just as I thought this had to be right, I read a thing online about "certain fundamental particles repelling each other when their wave functions overlap".  I haven't studied quantum mechanics yet so I'm not really sure what to make of that.  If anyone could shed some light on this for me it would be much appreciated.


Suppose $U$ is a subspace of $\mathbb{R}^{4}$ defined by $U =\mathrm{span} \,((1,2,3,-4),(-5,4,3,2))$ Find: orthonormal basis of $U$ and $U^{\perp}$

Suppose $U$ is a supspace of $\mathbb{R}^{4}$ defined by $U = \operatorname{span}((1,2,3,-4),(-5,4,3,2))$ Find: orthonormal basis of $U$ and $U^{\perp}$.  I have no issue finding an orthonormal basis of $U$. I would just use the Gram Schmidt Process. $U^{\perp}$ is giving me issues. So what I thought of doing was obtain an orthonormal basis for $U$ and then by the relation of inner product spaces I know that:   Letting $u_{i} \in U$ and $v\in U^{\perp}$  $$<u_1,v> = 0$$ and $$<u_2,v> = 0$$  I would end up with two equations and four unknowns. I debated on if I could pick two of the unknowns and let them be whatever I choose, but that may affect what vectors would be in my subspaces. So I am stuck at this point.  Suggestions ?


How to find integer solutions to $M^2=5N^2+2N+1$?

My number theory is terrible so I don't know what "class" of problem this secretly is.  I'm looking for all positive integer solutions to the equation:     $M^2=5N^2+2N+1$   That is, I want positive integer $M$ and $N$ to make the above true.  I've got the obvious solution ($N=0$, $M=1$) but I don't know how to go about getting more solutions.  It has been suggested to me that there should be infinitely many solutions, and I would like to find them all.  I could transform it to look like Pell's equation by completing the square on the right, but it won't have integer coefficients (or you could multiply it through by the denominators, but then it wouldn't look like Pell's equation), so I don't think that helps much.  I don't know enough number theory to guess at other things, but I'm happy to read something on this topic.


is Salesforce CDC based on platform events

I understand that both CDC and Platform events are based on Event driven architecture, and there is a common event bus(though different channel) where both kind of events are published. Since, event bus is common, we can subscribe to each channel in same way. The difference I understand is in the way the messages are published to the bus, since in CDC salesforce published the messages in a format, and in PE the application has to explicitly define structure and publish message. However, in some document(like ) I read that CDC is based on PE. I am kind of confused here. It is on event bus for sure, put why on PE.


flash drive no longer works after making it Ubuntu bootable using Rufus

Yesterday I made my flash drive Ubuntu bootable using Rufus. The operation of making it bootable was successful but when I ejected the flash drive from that computer it stopped working. It is not showing up in the Boot Menu or My Computer or Disk Management in any computer.  I can only see the flash drive in the Device Manager as Unknown USB Device(Device Descriptor Request Failed).  Is there any way to fix my flash drive?


The spell  can ward a creature, with the following caveat:     If the warded creature makes an attack, casts a spell that affects an enemy, or deals damage to another creature, this spell ends.   Does casting Fog Cloud break a Sanctuary spell?  Arguably, it does not, as the spell affects the air around the enemies, not the enemies themselves.


From a custom Winforms component that is embedded in a form, how to I get the parent/owner control?   I have an IContainer and the Site property is not null, but I have no idea how to get to the "real" parent.  (this is a followup to , atm I am trying to add a handler to the parents VisibleChanged, but that's not the first time I face this question)


Is there any section in Tolkien's works which gives the size of an elf?  They are mentioned as 'tall' compared to a human (IIRC) so could an average one be six foot six inches?


Cycles Subsurface shader: GPU compute and CPU compute give totally different results

Blender 2.67 Windows 7 Geforce gtx460  Head model with subsurface scattering and one texture Cpu render - fine, but slow. gpu render - face comes out black! (it was working at first it changed for some reason)  any suggestions? why should this happen.  Here is an image of the problem


I recently used Gparted to resize my partition, so I have 200GB of unallocated space that I want to install Windows 7 to.   The problem is, my computer won't let me boot from USB. It let me boot Ubuntu from a USB, but not Windows.  I'd been having serious issues even creating a bootable Ubuntu USB. Startup Disk Creator, UnetBootin (and UnetBootin 494), WinUSB, etc all didn't work. I kept getting a black screen after the grub, and then returned to the grub.  Finally, p7zip via the Terminal did the trick, and let me boot into Try Ubuntu, so I could use Gparted to partition the HDD. Now that I have unallocated space, I want to install Windows 7.  I followed the instructions to put my Windows ISO on a USB via UnetBootin, but my computer doesn't detect the USB afterwards. The instructions say to format the USB as NTFS, and I did. It detects FAT32, but won't boot from it.  I tried WinUSB, but received an error message at the end of it that stated the USB wasn't an EFI device.  I've turned off Secure Boot, Fast Boot, and set the USB to boot priority.   Can I use p7zip again? I tried mounting the ISO, clicking and dragging the files onto the USB, and booting that way (which several instructions had said worked), but nothing happens.  I'm running out of tools and USBs. I've used 3 already, including a brand new one. Still nothing. I could use some advice!  EDIT: I tried WinUSB again with a fresh USB. Here's the error output:  Installation failed ! Exit code: 512 Log: Formating device... Mounting... mount: block device /home/zachary/Windows7Ultimate/Windows7Ultimate.iso is write-    protected, mounting read-only Copying... Installing grub... Installing for x86_64-efi platform. grub-install: error: /media/winusb_target_1407629458_2779 doesn't look like an EFI  partition. . Error occured ! Syncing... /usr/bin/winusb: line 78:  7228 Terminated              while true; do sleep 0.05; echo 'pulse'; done Cleaning... /usr/bin/winusb: line 78:  7371 Terminated              while true; do sleep 0.05; echo 'pulse'; done Umounting and removing '/media/winusb_iso_1407629458_2779'... Umounting and removing '/media/winusb_target_1407629458_2779'...   EDIT 2: When I use UnetBootin, the download completes and asks me to reboot. When I reboot and go into BIOS, the USB doesn't show as a bootable option. It's just not there. It should be noted that my computer came with Windows 8 pre-installed. Would that make a difference? I also can't change UEFI to Legacy from BIOS.


Received two -1 but didn't make a comment

I received two -1 but I didn't make a comment to that question. How come?   The question in question is


Recently I felt that one feature is really required on . I am active user since I love Stack Overflow. I love to review questions and visit this  tab for each new questions. I felt many times that new users just posting their question without any code or whatever he/she has done. So contributor has to put some common comments every time. Some example I wrote as follow which I would like to have as quick comment. Every time contributor has to comment like:  Please, post your code.  What you have done so far?  Have you tried anything?  Please add the code where you are using xxx xxx xxx code or variables  Welcome to Stack Overflow, Have you visit once  and ? etc, etc...   There are many suggestions that we can take as an example but we can give feature to contributors who can comment easily using template.


I am connecting to a WiFi network through my laptop in Ubuntu. Now I need to share my Internet connection with my wife's netbook because her netbook is not able to connect to that WiFi network directly, because of its weak signal.  How can I do that in Ubuntu?


Is there bedecoding an HS256 encoded JWT (JSON Web Token)?

We are looking to integrate a web form to create a case is hosted on a Salesforce site into another application.  Currently the specification is for the web app to pass information about the user (first name, last name, email and account) to a web form (currently coded as an Aura component) in a JWT token with HS256 encoding. What would be the easiest approach to decode and parse the token to use to prepopulate fields on the web form for the user. NOTE: In the longer term we plan to implement a customer community and use an identity provider to provide a single sign-on into the community. However for this initial implementation we are using the site guest user profile to submit the form and create a case.


I have the following header defined:  \documentclass[10pt,twocolumn,letterpaper]{article}   I then add two figures in different places.  The first one - is "page-wide" and is set with [width=\textwidth]  The next one, which is defined two subsections later, is "column-wide" and is set with [width=\linewidth].  When the PDF paper is created, the first figure is shown as expected, it starts where the first column starts and ends where the second column ends.  The problem is, that when the second one is rendered, as expected, within one of the columns, it is overlapping with the first one and hides almost a half of it.  Is there a way to prevent it?  This is an example for how I created the first figure:  \begin{figure}   \includegraphics[width=\textwidth]{training_main_flow.png}   \caption{Lalala Lilili}   \label{fig:TrainingMainFlow} \end{figure}


In-universe, what was Legolas doing during the events of The Hobbit (book version)?

In the Peter Jackson The Hobbit movies, we see that Legolas was one of the elves that personally captured the dwarves in Mirkwood forest, pursued them down the river, fought some Orcs in Lake Town, and fought in the Battle of Five armies ().  In the book version of The Hobbit, what was Legolas doing? Was this explained in any of the appendices or something?  I don't think that this is a duplicate of  because that asks about it from an out-of-universe perspective and I am wondering about it from an in-universe perspective.


file /dev/* prints the description of a bunch of files as "block special (M/N)" and "character special (M/N)", where M and N are numbers. For example:  $ file /dev/null /dev/null: character special (1/3)   man file doesn't seem to document these, but refers vaguely to man stat, which seems to refer to these as major and minor device types. apropos 'device type' finds nothing. So what do these numbers mean?


Can Ubuntu Touch be installed on a HTC Jetstream Tablet?

Is it possible to install Ubuntu Touch or any other Linux OS on an HTC Jetstream tablet? It currently runs Android Honeycomb 3.1, and is useless nowadays.  If yes, how would I install it?


H a subgroup of index n, then G has a normal subgroup K with [G : K] ≤ n!.

Prove that if G is a group and H a subgroup of index n, then G has a normal subgroup K with [G : K] ≤ n!  I'm having trouble proving this because frankly I have no idea where to start. Any tips?


Command prompt FTP hangs on any command if firewall is on Windows 10

I'm trying to connect to an ftp server and do numerous things from a batch file. However, on any new computer, even after allowing ports 20 and 21 in and out, it hangs when I run any command such as ls or cd with 200 PORT command successful. It logs in fine but once I try and do something it hangs. If I turn off the firewall it works fine, however this is not ideal. What other ports or settings must I change?


I have a .gpkg GeoPackage from  unzpped and stored on a cloud server. I want to make it possible to use as one of the URL based geo-services listed in QGIS (WMS, GeoNode etc) : So people can zoom in to their area of interest and selectively pull down just the data they need without having to download all 8 GBs of it. And it has to be in vector form with the metadata intact - can't be as raster tiles. What would be a good way of going about making such a deployment? I don't have prior experience in deploying geo-servers etc, sorry if this is sounding very naive.  Additional: I want to do this with docker and persistent volumes so that if there is any conversion/indexing to do, I can do it once and after that the whole thing can be shifted and redeployed anywhere else without having to repeat work.  Sharing bits and pieces I'm finding; would be great to cobble together a flow that starts with a .gpkg and ends with a QGIS-ready URL.     (video)   Note for mods: this is not the same as a  which is asking how to edit a .gpkg in the cloud. Another  as the answers giving broken links.


jQuery on() method not working on element with dynamically added class

I'm adding an active class to a link once a product is added to cart. I'm then trying to use that active class to further determine the function of the link. However, the on() click event on the link doesn't fire, only once the page has been reloaded. This is the code where the class is added   Shopify.addItemFromForm(this.productForm, function (cartItem) {     return setTimeout(function () {       if (theme.isHome && jquery_default()('.add-to-cart', _this3.$el).hasClass('express')) {         window.location.href = '/checkout';       } else {         Shopify.getCart(function (cart) {           return jquery_default()('.cart-link .cart-count').text(cart.item_count);                 });          var successMessage = _this3.productSettings.successMessage.replace('** product **', cartItem.title);                     jquery_default()('.product-form-submit-wrap').css('display','none');                     jquery_default()('.product-quantity-increment').addClass('qty-button-active');                      Shopify.getCart(function (cartCurrent) {                         jquery_default().each(cartCurrent.items, function(index, currentItem) {                             if (cartItem.title == currentItem.title) {                                 return jquery_default()('.in-cart-message .cart-quantity').text(currentItem.quantity+' in basket');                             }                         });                 });           jquery_default()('input[name="quantity"]', _this3.$el).removeClass('error');         jquery_default()('.add-to-cart', _this3.$el).removeClass('loading');          _this3.$productMessage.removeClass('error').addClass('success').html(successMessage);          if (!Modernizr.cssanimations) {           _this3.$addToCartButton.val(_this3.productSettings.addToCartText);         }       }        _this3.processing = false;     }, 1000);   });  And the click event is something like this  jquery_default()('.qty-button-active').on('click', function(event){      alert('test');  });  Since I'm using the on() method I feel like this should pick up the newly added class, any ideas what I'm missing?


Identify story about girl on alien planet with western feel

Can you help me identify a novel I read in about 2000.  A girl is taken with her family to an alien planet, I think to escape a polluted Earth, and find a simpler way of life. The planet has a "wild west" feel to it.   The native inhabitants are apparently only a remnant of an advanced culture. The girl has to take medicine to prevent her from being infected with the alien viruses. But when she stops taking the medicine she becomes telepathic and learns about the odd behaviour of the human colonisers and aliens. The aliens had a very complex language that humans were unable to understand. I imagine the aliens as being like Ents, but I'm not sure that was in the novel or not.


prove that the order of $2$ mod p is $2^{n+1}$

I'm trying to prove this:  Let $p$ be a prime factor of $F_n=2^{2^n}+1$, prove that order of $2$ mod p is $2^{n+1}$.  I know that $2^{2^{n+1}} \equiv 1 \mod p$. But it only means that $ord(2)_p$ its a power of $2$ and divides $2^{n+1}$.  how I can prove that there is no other power of 2, less than $2^{n+1}$?


is there a way to find the size of array just using its corresponding pointer in given code?

#include <stdio.h>  void array_print (int *A)     {          int count = sizeof(A);          for (size_t i = 0; i < count; i++)         {             printf("%d",A[i]);          }       }   int main(int argc, char const *argv[])  {            int arr[] = {1,2,3,4,5};            array_print(are);       return 0;  }


Installing TexLive 2016 on Ubuntu 16.04 LTS

What is the reason that by using sudo apt install texlive-full I only get TexLive version.2015, even though the newer versions such as 2016 and 2017 are out?  I am actually trying to install Texlive 2016.


I am getting that same message:      [Rocket Tab] DNS look up for "d2e24t2jgcnor2.webhostoid.com" failed.   no such host is known!   I have unchecked the proxy and it still does not work! What else can I do? Is there an IP address that I should put?


Renew British passport which includes visa for return to Australia

I’m an Australian permanent resident with an expired British passport which includes my visa to return to Australia after travelling overseas. When I renew my passport, is the visa automatically renewed or do I do that separately?


Im trying to recreate this () chapter, however it is not quite working as it says in the comments. I am now doing this, for numbered chapters, however I cannot get the chapter title on the line, instead of right as in the picture. The chapter title should thus be on the line, as far to the right as possible. Also, I have no clue what the 110 stands for (I adjusted it, but nothing changes), so if anyone knows, it would really help me understand the code haha! In addition the fontsize of the chapter name does not seem to change as expected when I change it (I do this in the \normalfont\Large\sffamily by changing \Large to different sizes, but it only changes a little when I change it to \HUGE for instance. It was in the original code done with #1, but I get a "1" in the pdf.  \titleformat{\chapter}[block] {\normalfont\Large\sffamily}{}{0pt} {\parbox[t]{\chapnumb}{%    \fontsize{100}{110}\selectfont\thechapter}%   \parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{     \raggedleft     \hfill{\LARGE}     \rule{\dimexpr\textwidth-\chapnumb\relax}{0.9pt}}}


Why is the squared difference so commonly used?

Very often when I investigate new statistical methods and concepts, I run into the squared difference (or the mean squared error, or a plethora of other epithets). Just as an  example, Pearson's r is decided based on the mean squared difference from the regression line that the points lie. For ANOVA's, you're looking at the sum of squares, and so on.  Now, I understand that by squaring everything, you make sure that data with outliers really gets penalized. However, why is the exponent being used exactly 2? Why not 2.1, or e, or pi, or whatever? Is there some special reason why 2 is used or is it just a convention? I suspect that the explanation might have something to do with the bell curve, but I'm quite sure.


How does the kernel knows which "threads"/processes are associated with a process?

As I have read, a "thread" in Linux is just a process.  Say that a process created two "threads", now when the process is terminated, the two "threads"/processes that are associated with the process will also be terminated.  Where the information about the "threads"/processes that are associated with a process (that created them) is stored?


Anvil Random face that messes with subsurf on the base

Hi so I am a beginner and im modeling an anvil. When I go to face selection mode there's this random dot (shown in picture 1) and when i use subsurf it connects to that dot (shown in picture 2). Please help me Edit: I cant select the dot.  Thanks Matt


Using \div gives me divergence sign instead of division (÷), for sure inside of math mode. \documentclass[conference]{IEEEtran} \usepackage{amsmath,amssymb}  \usepackage{physics}  \begin{document}  $ 1 \div 2 $  \end{document}  returns back ;  As far as I know the problem is physics package and without it everything is ok, but I need it.


Searching for the title of an early novel with a superman like character who is in the Civil War or World War I

In the military, his powers manifest and there are episodes where he carries cannons, leaps into battle against the enemy with speed and super strength, and is brought to the notice of commanding generals who seek to utilize him to their advantage.


How find the value $\beta$ such $\left|\frac{p}{q}-\sqrt{2}\right|<\frac{\beta}{q^2}$

Find all positive real number $\beta$,there are infinitely many relatively prime integers $(p,q)$ such that  $$\left|\dfrac{p}{q}-\sqrt{2}\right|<\dfrac{\beta}{q^2}$$  maybe this problem background is : $$\left|\sqrt{2}-\dfrac{p}{q}\right|<\dfrac{1}{\sqrt{5}q^2}$$  so I guess my problem ?  $\beta\ge\dfrac{1}{\sqrt{5}}$  and this problem is Germany National Olympiad 2013 last problem (1), see:


I managed to dig out my old XP machine and want to install Ubuntu on it. Anyway, what I'm wondering is whether I should choose the 32-bit or the 64-bit.  On the download page there stands that if you have UEFI firmware you should choose the 64-bit, but I don't know what that is so?


Give the ability to only edit tags for a question without the editing post (Body)

Question edit problem when I am only editing tags Recently I tried to add a tag for a question, but it gave the error  Edits must be at least 6 characters; is there something else to improve in this post?  Personal opinion: I think it’s not necessary to add at least six characters to improve a post when I add a missing tag for a question... Edit Problem Picture  Edit Question


Is the plane minus four points on the x-axis homeomorphic to the plane minus four points in an arbitrary configuration? In general, how can I show that it doesn't matter which finite points removed from plane then the two plane be homeomorphic and it's still true.


I have noticed today that the LaTeX would compile regardless if I put curly brackets or not. What I mean is this: I would usually write in maths mode \frac{1}{2} however latex also compiles if I write \frac 1 2 i.e. without using the curly brackets. Of course it gives me error if I don't give two arguments and just type something like \frac 1.  It saves me a lot of effort to write without using the curly brackets in particular because they are located in such a bad position in the keyboard and require either Alt+Ctrl or AltGr. What are the other advantages/disadvantages of writing without curly brackets.


I am stuck on the following question:     Find the volume of the torus obtained by rotating the circle $(x-a)^2+y^2=b^2$, where $a>b$, around the y-axis.


html Regex can't select content between quote tags

I need to remove [quote] tag while keep content, however I tried many times but don't know why I can't select content between them.  [b]List of questions[/b]  [quote] 1. Questions 1 2. Questions 2 3. Questions 3 4. Questions 4 5. Questions 5 [/quote]   This regex works  \s*\[b\](.+?)\[/b\]\s*\[quote\]   While this code doesn't work  \s*\[b\](.+?)\[/b\]\s*\[quote\](.*?)\[/quote\]   I appreciate any helps.


I just installed my first Ubuntu Server (12.04) instance and immediately ran into the following problems:   Running apt-get install or update fails (see below) Running ifconfig produces peculiar IP addresses starting with 10.x.x.x and my router does not see the server at all in its "Attached Devices" page (its a consumer grade Netgear)   When I run apt-get I get 50+ of the following errors:  Failed to fetch <some-http-url>. Temporary failure resolving <blah>.ubuntu.com   I read up on this error for 12.04, and found some similar posts on this forum and on server fault that recommended going into /etc/resolv.conf and adding an entry:  nameserver 8.8.8.8   To my surprise, I found that /etc/resolv.conf was a symlink pointing to somewhere else  and I had to delete it first, then create a new one with the entry indicated above.  I restarted the server and tried running apt-get again, same results.  How do I start diagnosing the problem (I'm a relatively new Linux/Ubuntu user)?  Additional details that may help:   This is actually a virtual machine running as a VirtualBox guest OS The physical host that is running this VM is my laptop which has a wireless connection; I'm wondering if (somehow) the laptop is getting the network wirelessly, but perhaps either the VBox VM and/or the Ubuntu server OS isn't configured for wireless and so nothing is "getting through"?   Thanks in advance for any pointers!  Edit:  Here is a snapshot of my VM's Network settings (only Adapter 1 has any information populating its fields, so I assume my VM has only 1 adapter):    Here is the output when I run ifconfig from the terminal:    And here is the output when I run route from the terminal:    Running ping google.com:


Any evolutionary explanation for human blood groups?

What is the explanation of people having blood types from an evolutionary perspective?


If a closed set is a subset of a compact set, is the closed set compact?

We have a compact set $X$ and a closed set $E \subset X$, how to prove that $E$ is compact?


Displaying ñ on PHP from a mysql database

I'm not able to display ñ on a web I'm using to learn to code.    mysql database has latin1_spanish_ci collation. I've tried setting collation to utf-8, using decode(utf-8), setting the page charset to charset=ISO-8859-1, but nothing seems to work.  This is the php code  index.php  <!DOCTYPE html>           <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />         <title>             Bitácora         </title>           <?php require_once('db_conn.php');?>     <?php require_once('script.php');?>     <?php if($_COOKIE['username'] === NULL){         header("Location: login.php");         } else {         //         }     ?>

Estás logueado como " <?php echo ucwords(strtolower($row['nombre'])) . " " . ucwords(strtolower($row['apellido'])); ?>"

     <form action="inserta.php" id="formaLog" name="formaLog" method="POST">     <textarea style="overflow:auto;resize:none" rows="4" cols="80" id="log" name="log" required></textarea>     <input type="submit" name="envia" value="Enviar" id="envia" />     </form>
   <?php require_once('menu.php'); ?>      script.php  <?php require_once('db_conn.php');   $dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);      if( isset($_COOKIE['user_id']) ){     //  mysqli_set_charset($dbc,"utf8");     // Look up the username and password in the database         $username = $_COOKIE['username'];         $id = $_COOKIE['user_id'];         $query = "SELECT id, username, nombre, apellido FROM usuarios WHERE username = '$username'";         $data = mysqli_query($dbc, $query);           if (mysqli_num_rows($data) == 1) {     // The log-in is OK so set the user ID and username cookies, and redirect to the home page         $row = mysqli_fetch_array($data);          }     }  ?>


I was looking at this  question and wanted to flag it, because it was clear there was no minimal understanding by the OP as to what he was doing.  When I went to flag it, I was prompted with this menu, which provided a checkbox for a duplicate question:   So, it wasn't a dupe and I selected the "It should be closed for another reason" button, and up popped this menu:   Is this by design, or is it an oversight?


C++: Undefined reference to (template constructor)

I'm a Java developer trying to learn C++. I'm using CLion and trying to compile a very basic program using template classes. Here's the error:  C:\Users\Tony\.CLion2017.3\system\cygwin_cmake\bin\cmake.exe --build C:\Users\Tony\workspace\cpp\collections2\cmake-build-debug --target collections2 -- -j 2 Scanning dependencies of target collections2 [ 33%] Building CXX object CMakeFiles/collections2.dir/main.cpp.o [ 66%] Linking CXX executable collections2.exe CMakeFiles/collections2.dir/main.cpp.o: In function `main': /cygdrive/c/Users/Tony/workspace/cpp/collections2/main.cpp:7: undefined reference to `LinkedList<int>::LinkedList()' /cygdrive/c/Users/Tony/workspace/cpp/collections2/main.cpp:7:(.text+0x3d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `LinkedList<int>::LinkedList()' /cygdrive/c/Users/Tony/workspace/cpp/collections2/main.cpp:7: undefined reference to `LinkedList<int>::~LinkedList()' /cygdrive/c/Users/Tony/workspace/cpp/collections2/main.cpp:7:(.text+0x4e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `LinkedList<int>::~LinkedList()' collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/collections2.dir/build.make:121: collections2.exe] Error 1 make[2]: *** [CMakeFiles/Makefile2:68: CMakeFiles/collections2.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/collections2.dir/rule] Error 2 make: *** [Makefile:118: collections2] Error 2   And all the code:  LinkedList.h  #ifndef COLLECTIONS2_LINKEDLIST_H #define COLLECTIONS2_LINKEDLIST_H  template <typename E> class LinkedList { public:     LinkedList<E>();     ~LinkedList<E>();      void add(const E &e); };   #endif //COLLECTIONS2_LINKEDLIST_H   LinkedList.cpp  #include "LinkedList.h"  template <typename E> LinkedList<E>::LinkedList() { }  template <typename E> LinkedList<E>::~LinkedList() { }  template <typename E> void LinkedList<E>::add(const E &e) { }   main.cpp  #include "LinkedList.h"  int main() {     LinkedList<int> list;     return 0; }   CMakeLists.txt (auto-generated)  cmake_minimum_required(VERSION 3.9) project(collections2)  set(CMAKE_CXX_STANDARD 11)  add_executable(collections2 LinkedList.cpp LinkedList.h main.cpp)


Are there software for drawing Feynman diagrams easily?

I want to know if there softwares to draw Feynman diagrams easily.


Is there a macOS equivalent of the Windows assoc command?

I am looking to change a file association on the Mac using some sort of script. I know that I can do something like that in Windows using the assoc command.  Is there something scriptable on macOS which will do a similar job? I don’t mind whether it’s in Bash (my preference), AppleScript or something in Automator.  I am aware of the dutil command but I want to be able to do it without additional software.


Ubuntu 14.04 I have resized partition and root still has very little to no disk space

I have Ubuntu 14.04 server running. It is running on VirtualBox 5.1.12r112440. The vdi size was 50GB but I used this link to resize it successfully to 200GB:    However when I boot the VM up it says root / is next to zero disk space.     The image shows that I have about 50GB of unallocated space in the /dev/sda5 extended partition to use for resizing the partition for root. In the GParted Live CD app thats displayed I dont see the devices /dev/sda2 - /dev/sda4. I suspect that root is one of this non listed partitions. So how do I get root more disk space?  df -h Filesystem          Size  Used Avail Use% Mounted on udev                2.0G  4.0K  2.0G   1% /dev tmpfs               396M  684K  395M   1% /run /dev/dm-0            45G   43G  366M 100% / none                4.0K     0  4.0K   0% /sys/fs/cgroup none                5.0M     0  5.0M   0% /run/lock none                2.0G   12K  2.0G   1% /run/shm none                100M     0  100M   0% /run/user /dev/sda1           2.4G   47M  2.2G   3% /boot  pvdisplay   --- Physical volume ---   PV Name               /dev/sda5   VG Name               matrix-ubuntu-vg   PV Size               106.70 GiB / not usable 2.00 MiB   Allocatable           yes    PE Size               4.00 MiB   Total PE              27314   Free PE               14584   Allocated PE          12730   PV UUID               lVlrhr-IDvI-i81L-GmZp-Dj12-tx24-NjuSOZ   Thanks for helping!  Please refer to my answer as to why this is not answered by the "possible duplicate". The write up in the link I provided is a pretty good walk through on how to resize a LVM partition.


Why does cycles render shows faceting in shadows?

I'm new to Blender, and I'm doing a very simple render using Cycles.  As you can see in the image, I'm getting horrible faceting in the shadows on the sphere.  Does anyone know how to fix this? Thanks!


Searching a ListView using an If Statement

I have a ListView that is populated with data from my FirebaseData using a query to filter what data is rendered. I was trying to add a search feature to my ListView but no results are displaying. The query works fine to fill the ListView originally but the If Statement doesn't render any results. Here is the block of code relating to the search feature:  private void firebaseGroupSearch(final String groupInfo) {         final String groupNo = editTextGroupNo.getText().toString().trim();          Query orderQuery = databaseGroups.orderByChild("userID").equalTo(user.getUid());          orderQuery.addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                 for (DataSnapshot groupSnapshot : dataSnapshot.getChildren()) {                     Group group = groupSnapshot.getValue(Group.class);                      if(group.getGroupNo() == groupNo) {                         groups.add(group);                      }                  } GroupList groupList = new GroupList(ActivityAllGroups.this, groups);                     listViewGroups.setAdapter(groupList);             }              @Override             public void onCancelled(@NonNull DatabaseError databaseError) {              }         }); }   Any suggestions on how to fix this are appreciated!


Is $\mathbb{R}$ a subset of $\mathbb{R} \times \mathbb{R}$?

So I'm curious as why $\mathbb{R} \subseteq \mathbb{R}^{2}$, since $\mathbb{R}^{2} = \mathbb{R} \times \mathbb{R} = \left \{ (a,b) \mid a\in \mathbb{R}, b\in \mathbb{R} \right \}$. Do we think of $\mathbb{R}$ as being $\mathbb{R} \times 0$ in this case?


Dual vector space properties ($\forall \phi\in E^*,\langle\phi,x\rangle=0\implies x=0$)

$E$ is a finite-dimensional vector space over a field K and $E^∗$ its dual.  $$\boxed{x\in E, x=0\iff \forall \phi\in E^*,\langle\phi,x\rangle=0}$$  The proof for ($\implies$) seems to be obvious since $x=0\implies\langle\phi,x\rangle=\phi(x)=0$  But for ($\Longleftarrow$)that is a little more difficult, below the proof:  $\bigg [\forall \phi\in E^∗,\langle \phi,x\rangle=0\implies x=0\bigg ]\iff \bigg[x\in E, x\neq0\implies \exists \phi \in E^*, \; \langle\phi,x\rangle\neq 0\bigg]$  Let $x\neq 0$ and $\mathcal{B}=\big\{e_1,e_2,...e_n\big\} \text{a basis of $E$} \implies x=\lambda_1e_1+\lambda_2e_2+...+\lambda_ie_i+...+\lambda_ne_n\quad i\in[\![0,n]\!]$ so there exists a basis of $E$ such that $\mathcal{B}'=\big\{x,u_2,u_3,..u_n\big\}$  Let $f$ such that:  $\begin{array}lf:&E&\to K\\&\lambda_iu_i&\to \lambda_i\end{array}\qquad\implies f\in E^* \text{ and } f(x)=1$  If the proof is correct, I understand the logical path, but I don't really understand it?  I know there is a similar question but it doesn't help me:


What I know is that voltage is the electrical pressure which is required to drive the electrons in a circuit. According to that we have higher currents when there is a high voltage. Ohm's law confirms that. What I don't understand is that some books say that it is the current that is more dangerous to the human body and not the voltage. What I mean is higher currents are dangerous but high voltages aren't. But if we have a high voltage aren't we indirectly meaning that there is high current since they are directly proportional to each other.


I have four Google accounts but I only use two of them. I'd like to delete the other two but all four show when I click the blue sign in from google.com.  How can I delete the two I don't use and make my main email the default?  I've logged out as each user. In Settings, only my main email shows up so I can't delete it from there.


We know that in the Harry Potter universe, Love Potions (potions that cause a strong infatuation in the drinker) exist. We see at least two instances of their use in the books;      When Romilda Vane attempts to trick Harry Potter into drinking some, and when Tom Riddle Jr's mother Merope Gaunt tricks Tom Riddle Sr into drinking one.   A Love Potion in the world of Harry Potter acts very similar to that of the Imperius Curse in some ways, which like Love Potions causes the victim to lose any sense of self control that they once had. As we all know, the Imperius Curse is an Unforgivable Curse, and is one of the worst and most illegal spells a magic user can cast.  Being as a Love Potion is effectively just a more effective and magical version of Rohypnol, are they legal to make/sell/use in the Harry Potter universe?      Bonus question: Is Romilda Vane ever punished for attempting to rape or sexually assault a fellow student?


I am creating a task scheduler from c# code using         Microsoft.Win32.TaskScheduler library.  Following is my code:  TaskDefinition taskDefinition = taskService.NewTask();  Principal.UserId = "NT AUTHORITY\\SYSTEM"; Principal.LogonType = TaskLogonType.ServiceAccount;  RegistrationInfo.Description = erpTaskSchedulerModel.SchedulerName;  taskDefinition.Triggers.Add(SetTrigger(erpTaskSchedulerModel));  taskDefinition.Settings.DeleteExpiredTaskAfter = new TimeSpan(0, 1, 0);  taskDefinition.Actions.Add(new ExecAction(erpTaskSchedulerModel.ExePath, erpTaskSchedulerModel.ExeParameters, null));  taskService.RootFolder.RegisterTaskDefinition(erpTaskSchedulerModel.SchedulerName, taskDefinition);   I am getting following error from the last line of code.:  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  Because of this my task is not getting scheduled.  This issue occurs in IIS hosted site.  How can I remove this issue?  Let me know if more details are required.


I am loading a page with a self contained form into a div and want to refresh the div (page) on submit

I have  homepage.asp (old legacy code)  with a div like this:

    I am loading another page with a self contained form (it submits to itself) in to this div like this:          $.get('Poll/poll.asp', function(data) {          $('#poll').html(data);}        );      The form on poll.asp looks basically like this :     <form id="formPoll" onsubmit="return false">

             Poll question here

                     <Input type="Radio" name="SelOPT" value="1" />	                     Option 1

                     <Input type="Radio" name="SelOPT" value="2" />	                     Option 2

         <input id="pollSubmit" type="submit" value=" Cast Vote " />

         <input type="Hidden" name="mode" value="vote" />         </form>   I am trying to submit the form without refreshing the page, but I need the page loaded in the div to reload to show the results of the form submission. On homepage.asp I have a script like this:          $(function() { //hang on event of form with id=formPoll $("#formPoll").submit(function(e) {      //prevent Default functionality     e.preventDefault();      //do your own request an handle the results     $.ajax({             url: 'Poll/poll.asp',             type: 'post',             dataType: 'json',             data: $("#formPoll").serialize(),             success: function(data) {             //if(data.success == true){ // if true (1)              //$("#poll").load("#poll > *");               $('#poll').html(data);      }     }             });          });     });     homepage.asp does not refresh on submit but it only submits the form data every other time the button is clicked and I have to manually refresh the page to reload the results. I think I have read every "refresh or reload div after submit" question on here with no luck. Any ideas would be appreciated. You can see a couple of the things I have tried commented out under the success function.


Probability that a random variable comes from one of two normal distributions

Suppose you know $Y \sim N(\mu_1, \sigma_1^2)$ or $Y \sim N(\mu_2, \sigma_2^2)$. You observe $Y=y$, some realization of the random variable $Y$. What is the probability that $Y \sim N(\mu_1, \sigma_1^2)$?  My intuition is to compare $p$-values from each distribution. Let $p_i$ be the $p$-value for $y$ under $N(\mu_i, \sigma_i^2)$. Here I am thinking of the two-sided $p$-value, $p_i = 2\Phi(-|y-\mu_i|/\sigma_i)$ where $\Phi(x)$ is the standard normal distribution function. I would answer my own question as $p_1/(p_1+p_2)$. But I cannot find any reference that would support this (or even treats this problem).