I don't know what I did, but now the resize follows the cursor, When I resize the object goes away. How can I change the orientation to the object again?  Note: I hid the cursor because I think this could solve this problem, it is at the world origin.

I have a sword that currently rotates around a pivot point thats off of the actual object. Im new to blender and im not sure how i would go about changing it so that the sword rotates around the handle. Any help would be appreciated!


The time to submit this optional question has passed but I'm curious as to what the answer is. We haven't learned what a metric is yet, which is why its a challenge question.  Show that the function $d$ is a metric where  $$d(x,y) = \frac{\left|x-y\right|}{1+\left|x-y\right|}$$

Let $(X,d)$ be a metric space and for $x,y \in X$ define $$d_b(x,y) = \dfrac{d(x,y)}{1 + d(x,y)}$$ a) show that $d_b$ is a metric on $X$  Hint: consider the derivative of $f(t)$ = $\dfrac{t}{1+t}$  b) show that $ d$ and $ d_b $ are equivalent metrics. c) let $(X,d) $ be $(\mathbb{R}, |\cdot|)$ Show that there exists no $ M>0$ such that $ |x-y| $ $\leq$ $Md_b$ $(x,y)$ for all $ x,y$ $\in$ $\mathbb{R}$  I have calculated $f(t)$ and $f'(t)$ and from this I know $f(t)$ is an increasing function as $f'(t)$ is strictly positive. But I don't know where to go from here or how to do parts b) and c)


I just configured my .bashrc file (PS1) to get a fancier bash prompt and now I have an issue, all my text is wrapping to the same line in the terminal    here is my PS1:  PS1='${debian_chroot:+($debian_chroot)}\033[01;32m[\u]\033[01;00m╾\033[01;31m[\h]\033[00m\033[01;34m\033[01;34m[\w]\033[00m╼\033[09;31m $ '    any ideas on what I messed up? I'm happy with what the prompt itself looks like:

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following:  username@someserver ~/somepath $ ssh -i /path/to/private/key myusername@something.someserver.com  The command should render on two lines. Instead it will often wrap around and start writing over the top of my prompt, somewhat like this:  myreallylongusername@something.somelongserver.comh -i /path/to/private/key  If I decide to go back and change some argument there's no telling where the cursor will show up, sometimes in the middle of the prompt, but usually on the line above where I'm typing.   Additional fun happens when when I Up to a previous command. I've tried this in both gnome-terminal and terminator and on i3 and Cinnamon. Someone suggested it was my prompt, so here that is:  \[\033[01;32m\]\u:\[\033[01;34m\] \W\033[01;34m \$\[\033[00m\]  Ctrll, reset, and clear all do what they say, but when I type the command back in or Up the same things happens.  I checked and checkwinsize is enabled in bash. This happens on 80x24 and other window sizes.  Is this just something I learn to live with? Is there some piece of magic which I should know? I've settled for just using a really short prompt, but that doesn't fix the issue.


I have the following JavaScript/jQuery code:  setInterval(function() {   $.getJSON('../0.json', function(json) {     alert("piep");     $.each(json, function(k, v) {       $('.' + k).text(v.value);     });   }); }, 1000);   As you see, I'm trying to get a local JSON file and do something with it. To check whether the .getJSON function works, I let it alert me. Which is in fact the problem: it does not alert.  Currently, the page is static, but was part of a Sinatra app. In the app it got it from   '/0.json'   as the server served it thusly, and it worked. Hence, I'm infering it having something to do with the "staticness" of the HTML page and the local JSON file.  Is it even possible to get local JSON files?  EDIT: The JSON file being a local one, the access is being forbidden by the browser.

Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring .  Specifically, I'd like to read the contents from a file and write those contents to another file. At this point I'm not worried about gaining permissions and am just assuming I already have full permissions to these files.


I received the error message below on the black terminal screen after waiting for a reboot.. I tried to find "forcepae" in the available options but couldn't. Can Anyone please help?  ERROR: PAE is disabled on this Pentium M (PAE can potentially be enabled with Kernel parameter "forcepae" - this is unsupported, may cause unknown problems, and will taint the kernel) This kernel requires the following features not present on the CPU: pae Unable to boot - please use a kernel appropriate for your CPU

After burning Ubuntu 12.04 to a CD, I tried booting and got the message:  This kernel requires the following features not present on the CPU: pae  Unable to boot - please use a kernel appropriate for your CPU.   What does this mean?


I am not a physicist.  For as long as I can remember, I've been told that the main problem in physics is to unify quantum mechanics and general relativity into a single theory.  I once heard someone say, that the reason we haven't combined general relativity with QM, is simply because in GR, quantum operators wouldn't be linear (due to the curvature of spacetime), so that the superposition principle fails.  In other words, that would mean we have no problem understanding how they would be unified, conceptually, we just don't know how to deal with the nonlinear mathematics that would result from this.  Is that understanding correct?

It is well known that quantum mechanics and (general) relativity do not fit well. I am wondering whether it is possible to make a list of contradictions or problems between them?  E.g. relativity theory uses a space-time continuum, while quantum theory uses discrete states.  I am not merely looking for a solution or rebuttal of such opposites, more for a survey of the field out of interest.


When you vote on a post in the app (all sites), it remembers the vote on the server, but shortly after voting, the vote will appear to be unrecorded on the device until you refresh the page. If you try to vote again on the post, it gives you an error that You've already voted on this post, however it doesn't show the vote. (Until the page is refreshed)    App Version: 1.0.85 Device Manufacturer: motorola Device Model: MotoE2(4G-LTE)   OS Version: 5.1 (2)

Related:   I am using 1.0.71 on KitKat.  Immediately after voting, the arrow is displayed in red and the vote count is correct. However, when I scroll to read answers and then back to the top, the arrow is grey again and the vote count is reset to the previous value.  A reload of the question (pulling the finger down) is needed to show the correct situation, which is kept from then on.  This case was on security.stackexchange.com but I observed the same behavior on other sites too.  Screenshots   original state:  upvoted:  scrolled down and back up  after a reload


I saw in a datasheet where for 0 wait states the Max speed is 30MHz and 1 wait state the speed could go up to 60MHz. My understanding is as you add the wait states the speed comes down as the processor waits for the data.

I'm considering using an AT32UC3B in my project (the Super OSD Pro version.) However, something about the datasheet has me worried.  Page 31   0 Wait State Access at up to 30 MHz in Worst Case Conditions 1 Wait State Access at up to 60 MHz in Worst Case Conditions   What is a "worst case condition"? The output stage for my OSD needs to be able run at 60 MIPS (the processor's maximum operating frequency), and I presume a "wait state" means it has to wait to load data from the memory... which would limit me to <60 MIPS.   I suppose, worst case, I could load the code into RAM and execute it from there (I presume this is possible with AVR32s?), but it still has me confused.


i tried to install /etc/rc.local and i am stuck in this step

I am setting up quota on my Linode server running Ubuntu 16.10, and I get the following error      Cannot stat() mounted device /dev/root: No such file or directory   So to fix this, I reached  for the fix which is done by adding   ln -s /dev/xvda /dev/root /etc/init.d/quota restart   to the /etc/rc.local. But Ubuntu 16.10 doesn't uses rc.local anymore instead uses . What is the alternative for rc.local, How can I run the above commands on startup?  Also I enabled the service using systemctl enable rc-local.service but it didn't work for me. Any lead would be appreciated.


How to have figures of both types \figure{} and \figure*{} ordered correctly among one another?  I have elements of both types \figure{} and \figure*{} in a document (its class is \documentclass[conference]{IEEEtran}).  My problem is that, if I use only \figure (no star), all figures in the document appear in ascending order, i.e., Figure 1, Figure 2, Figure 3, etc. The same happens if all figures are \figure*. However, when using both types, Latex messes them up. So, now, I have Figure 3, Figure 1, Figure 2, Figure 5, Figure 4.  It may be interesting to point out that Figures 1, 2 and 5 are just \figure, while Figures 3 and 4 are both \figure*, that is, figures of the same type are ordered correctly among one another, but not with figures of other type. This even seems like a bug, because, if they were different float types completely, why do they use the same numbering?

I am writing a journal which has two column. I am using {figure} as well as {figure*} to place the figures in one column as well as stretch across two columns.   My problem is the order of the figures are not correct. e.g. their order of appearance is:                  Figure 1.                 Figure 2.                 Figure 5.                 Figure 3.                 Figure 4.   What should I do to make them appear in order?


In dnd-5e, there is a language called primordial, which is the language of the elements. The PHB says it is spoken by elementals, but most elementals actually don’t speak it. They speak “Auran”, “Terran”, “Ignan”, or “Aquan”, languages that are not listed in the PHB. In fact, I don’t think any monsters speak primordial. XGtE says the following, under the Storm Sorcery sorcerer subclass:  You can speak, read and right primordial. Knowing this language allows you to understand and be understood by those who speak it’s dialects: Aquan, Auran, Ignan and Terran.  Does knowing primordial automatically allow you to understand and be understood by all the dialects? Or do you have to be a storm sorcerer? If not, then isn’t the language primordial basically useless, as no one speaks it?

I'm wondering if knowing the language Primordial means that you understand all different languages of elementals?


Rails newbie here. I'm looking for some high quality Ruby on Rails tutorials. By high quality I mean by standards of popular tech tutorial sites.  Examples:       Thanks in advance =)

As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it.    What have you found to be the best route to learn RoR?  Would it be easier to develop on Windows, or should I just run a virtual machine with Linux?    Is there an IDE that can match the robustness of Visual Studio?  Any programs to develop that give a good overhead of what to do? Any good books?    Seriously, any tips/tricks/rants would be awesome.


Consider the system of equations       \begin{cases} \dot{x} = x(1- x^2 - y^2)\\ \dot{y} = y(4- x^2 - y^2) \end{cases}      Define $(x(t;(x_0,y_0)), y(t;(x_0,y_0)))$ as the solution of this system with initial condtition $(x_0,y_0) \in \mathbb{R^2}$, so $(x(0;(x_0,y_0)), y(0;(x_0,y_0))) = (x_0 , y_0)$.       Suppose that the initial condition $(x_0,y_0)$ lies in the region $S \subset \mathbb{R^2}$, with       $S = \{(x,y) : x>0 , y>0$ and $1 < x^2 + y^2 < 4 \}$.        So $(x(0;(x_0,y_0)), y(0;(x_0,y_0))) = (x_0 , y_0) \in S$.       Show that $(x(t;(x_0,y_0)), y(t;(x_0,y_0))) \in S$, for all $t \geq 0$ and $\lim_{t \rightarrow \infty} (x(t;(x_0,y_0)), y(t;(x_0,y_0))) = (0,2)$.   Well, for $(x,y) \in S$ we have $\dot{x} <0$ and $\dot{y} > 0$. Then, $x(t)$ is a monotonic decreasing function of time, and $y(t)$ is a monotonic increasing function of time.  A Lemma in my textbook says that in this case any solution $x(t)$, $y(t)$ must leave a region at some later time. This confuses me, since I have to show that a solution remains in the region for all $t \geq 0$. Maybe I am misinterpreting something.  Furthermore $(0,2)$ is clearly a critical point of the system. How can be showed that the limit approaches $(0,2)$?

I have the following system of equations:  \begin{eqnarray}\frac{dx}{dt} = x(1 - x^2 - y^2) \\ \frac{dy}{dt} = y(4 - x^2 - y^2) \end{eqnarray}  I want to prove that if a solutions starts (at time $t = 0$) in the region   $$ G = \{(x, y) \in \mathbb{R}^2 : x > 0, y > 0 \text{ and } 1 < x^2 + y^2  < 4\} $$  that it remains there for all $t \geq 0$. I have already proven that, from $G$, a solution cannot cross the $x$-axis where $0 < x < 2$ or the $y$-axis where $0 < y < 2$ (since those line segments are orbits), but the pieces of the circles with radius 1 and 2 (where $x > 0, y > 0$) are the lines I haven't done yet. In this question we can focus on just the circle with radius 1 since the proof for the other circle is completely analogous to it.  In my book, there is a similar problem where they show that if a solution crosses a certain line, that solution attains its maximum or minimum value for $x$ and $y$, and then they derive a contradiction. However, in this case, for $n \geq 1$ the $n$-th derivative of $x$ equals 0 on the circle with radius 1. (If the second derivative were negative, $x$ would attain its maximum on the circle, a contradiction since $\frac{dx}{dt} < 0$ in $G$, so $x$ is decreasing.)  I don't see why a solution can't cross the circle at all. On the circle, $\frac{dx}{dt} = 0$ and $\frac{dy}{dt} > 0$, so after crossing the circle, the solution would go back up to $G$.  Is the circle itself an orbit?  EDIT I think I have found the answer. Using polar coordinates, I found $$ \frac{dr}{dt} = r - r^3 + 3r \sin^2(\theta) $$ Now, $$ \frac{dr}{dt} > 0 \Leftrightarrow 0 < r - r^3 + 3r \sin^2(\theta) \leq r - r^3 + 3r = 4r - r^3 $$ since $0 \leq \sin^2(\theta) \leq 1$. Note that $0 < r \leq 1$ satisfies $4r - r^3 > 0$, and thus $\frac{dr}{dt} > 0$. Therefore, if a solution goes from $G$ to the edge of the unit circle, $r$ must, on the edge, either be decreasing or constant (i.e., its derivative is less than or equal to 0), contradicting the fact that the derivative is positive.  Can someone tell me if this is correct?


From this regex,  text.replace(/^\s+|\s+$/g,"").replace(/  +/g,' ')   how do I remove the regex just for trailing white space?  I am new to regex and did some research but I'm not able to understand the pattern.

How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript?


I have limited access to this server eg I cannot SELECT * FROM sys.dm_tran_session_transactions for example  I, perhaps foolishly, ran this query to insert some test data...  begin transaction  update aqt_tblquote  set intVisits = ABS(CHECKSUM(NewId())) % 10  select top 100 intVisits FROM aqt_tblquote  rollback transaction   This sat about for a while and then informed me the log was full. From my experience this is not good news!  I was hoping that given it is in a ROLLBACK that it would just return the table to its previous state and clear the log.  However if I select from sys.databases I get log_reuse_wait_desc = 'ACTIVE_TRANSACTION'  I've closed Management Studio but that didn't do it. How can I kill it? Or do I need to contact the virtually unobtainable DBAs? (I work in a large organisation where there are many layers of bureaucracy to cut through).

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?


I need to figure out how to express the NOT operator in terms of the operators AND, XOR, XNOR.  I need to show that this set is functionally complete, which I'm trying to do by showing that I can represent NOT and OR, a known complete set. But I have no idea where to begin when it comes to representing a unary operator (NOT) using binary operators.  EDIT: I figured it out. NOT A=(A XNOR A) XOR A

I need to prove the  of $\{\text{or},\text{ xor},\text{ xnor}\}$ with the help of $\{\text{not},\text{ or},\text{ and}\}$ (which have been already proven to be functional complete). My attempt is that I only have to show that $\{\text{or},\text{ xor}\}$ is functional complete as $\text{xnor}$ is the negation of $\text{xor}$ while $\text{xor}$ is defined as $(x \wedge ¬y) \vee (¬x \wedge y)$. My attempt is to show that I can use $\{\text{or},\text{ xor}\}$ for $\{\text{not},\text{ or},\text{ and}\}$ but I already fail showing that $¬x$ can be replaced by $\{\text{or},\text{ xor}\}$... $¬x = ¬x+¬x = ¬¬(¬x+¬x)$ at this point I have no clue how to continue any constructive ideas?


Let $X$ be a non-empty set. A function $T: X \to X$ has a fixed point if there exists an $x \in X$, so that $T(x) = x$.   Let $f:[0,1] \to [0,1]$ be continuous.  How can one prove that $f$ has a fixed point? And can $f$ have two fixed points?  I thought of looking at the function $g:[0,1] \to \mathbb{R}$ given by $g(x) := f(x)-x$  If we take $a = 0$ and $b = 1$. We assume $f:[0,1] \to [0,1]$ has no fixed point. Then $[0,1] = \{x \in [0,1] : f(x) < x\} \cup \{x \in [0,1] : f(x) > x \}$. But how can we argue that this is not possible?  And I don't know if it's possible for $f$ to have two fixed points either.

Be a continuous function $f:[0,1] \rightarrow [0,1]$.  Show that there is a $\zeta \in [0,1]$ with $f(\zeta)=\zeta$ ($\zeta$ is called fixed point).  Consider the function $g:[0,1] \rightarrow [-1,1]$, $g(x):= f(x)-x$.  $g$ is continuous.  Because of $f(0),f(1) \in [0,1]$ is $g(0)\geq0$ and $g(1)\leq 0$.   Because $f(0)$ has a value between $0$ and $1$, $f(0)\geq 0$.  $g(0) = f(0)-0= f(0) \geq 0 - 0 = 0$.  Because $f(1)$ has a value between $0$ and $1$, $ f(1) \leq 1 $.  $g(1)=f(1)-1 \leq 1 - 1 = 0$ $\Leftrightarrow g(0)\geq 0$ and $g(1)\leq 0 $  After the IVT: $\exists \zeta \in [0,1]:g(\zeta)=0 \Leftrightarrow f(\zeta) = \zeta $  $\zeta$ is a fixed point of $f$. $\Box$  My questions are:  Is this proof done in the correct way or have I missed something?  Is there something I can improve?


If you have two mirrors facing each other and you introduce a light source into the reflections and you take the light source away, would it immediately go away for all reflections in the "tunnel" of reflections?

I have very little background in physics, so I apologize if this question is painfully naive.  Consider the following thought experiment: an observer is in a closed room whose walls, floor, and ceiling are made entirely of mirrors, with a single light source in the middle of the room. When the light is on, the observer can see many copies of his reflection all over the place.  Suddenly, the light source turns itself off. Intuitively, I would expect the observer to "instantly" see darkness. However, I can't figure out why that is the case under the "particle" interpretation of light. There are obviously lots of photons already in the room from before. Furthermore, we know that they don't get "consumed" when they hit a wall, because otherwise the observer wouldn't see so many reflections of himself. Basically, when the light goes off, what happens to the photons already in the room?  I suspect the answer goes something like this: the photons in the room lose a little bit of energy every time they bounce off a mirror, but it's so minuscule that we can still see more reflections than our eye can resolve anyway. When the light goes off, however, it takes them a very small fraction of a second to bounce around the room enough times to diffuse completely, which our eye cannot detect.  Is that about right? If we had a theoretical "perfect reflector", would the light remain trapped in the room forever? If we had instruments that could measure such things very finely, would it take (slightly) longer for the light to go out in a room made of mirrors as opposed to a room made of, say, black cloth?


Suppose I have a headline for a subsection of a book or article that goes something like: Everything Collected in One Place.   Is this correct or should it be: Everything Collected in one Place. ?

Are there any concrete rules that say which words (parts of speech) in a title should start with a capital letter? What would be a correct capitalization for the title of this question?


So, I know that there are many questions on stack overflow out there that are trying to handle circular dependencies. But none of those could really answer my question, if it is possible to have two classes know each other, and, more importantly, access information from each other. So, basically, I have read that you could use forward decleration, but with forward decleration, I couldn't access any fields. Maybe I should also add that I am really new to C++.But enough talking, let's get to an example: Let's say we have a class called Scene and a class called EntityBase, which are defined as following: EntityBase.h #pragma once #include <string> #include "Scene.h"  class EntityBase { public:     std::string entityId;     Scene scene;       EntityBase(std::string entityId);      /*      This method will be called when this object is added to the scene      */     void onAddedToScene(Scene* scene);      /*     This method will be called when this object is removed from the scene     */     void onRemovedFromScene(Scene* scene); };   Scene.h #pragma once #include <vector> #include <string> #include "EntityBase.h"  class Scene { public:     std::vector<EntityBase> entities;     std::string name;      Scene(std::string name);      void addToScene(EntityBase& entityBase); };   The question arises, How can I print out the name of Scene(and use every method of Scene) while EntityBase can fully access Scene too? So, I'd really appreciate if you'd tell how to do this, because I will probably need to access every field and/or method later.

I often find myself in a situation where I am facing multiple compilation/linker errors in a C++ project due to some bad design decisions (made by someone else :) ) which lead to circular dependencies between C++ classes in different header files (can happen also in the same file). But fortunately(?) this doesn't happen often enough for me to remember the solution to this problem for the next time it happens again.  So for the purposes of easy recall in the future I am going to post a representative problem and a solution along with it. Better solutions are of-course welcome.     A.h  class B; class A {     int _val;     B *_b; public:      A(int val)         :_val(val)     {     }      void SetB(B *b)     {         _b = b;         _b->Print(); // COMPILER ERROR: C2027: use of undefined type 'B'     }      void Print()     {         cout<<"Type:A val="<<_val<<endl;     } };       B.h  #include "A.h" class B {     double _val;     A* _a; public:      B(double val)         :_val(val)     {     }      void SetA(A *a)     {         _a = a;         _a->Print();     }      void Print()     {         cout<<"Type:B val="<<_val<<endl;     } };       main.cpp  #include "B.h" #include <iostream>  int main(int argc, char* argv[]) {     A a(10);     B b(3.14);     a.Print();     a.SetB(&b);     b.Print();     b.SetA(&a);     return 0; }


**For all integers a,b,c, prove or disprove each of the following: i.  If a | c and b | c, then ab | c^2. ii. If a | (b+c), then a | b and a | c.**   Note : "If true prove without using numbers as an example otherwise you can use them if false" That's What My Prof. says.  Unfortunately, The first one I couldn't solve it but the second one i solve it but i want to ensure that my answers are right  Thank you in advance

I just need to check the reasoning in my proof is correct, I think it is valid although I'm not totally convinced because I can't follow the logic; does proving that $x$ is an integer prove that $ac|bd$?  Theorem: Let $a$, $b$, $c$, $d$ be integers. If $a|b$ and $c|d$, then $ac|bd$.  Proof: $aj=b$ and $ck=d$ for integers $j$, $k$. Then, $ac|bd$ implies $acx=ajck$ and thus $x=jk$ for some $x$. Since the product $jk$ is an integer, $x$ is an integer and thus $acx=ajck$ and thus $ac|bd$.


Searching Google for for  returns no reviews data for my website even through I have correct review markup.   Is it an error in page tagging or just a matter of time before Google discovers the mark and then displays the review ratings?

I have applied structured aggregate rating to my website using Schema.org but after a couple of months the 1 to 5 rich snippets are not displaying for the given set of URLs in Google.  Here is an example URL:    To me this page should be displaying the rich snippets as I have tested it using the Google Rich snippet testing tool and it has flagged no issues.  So my question is: Is the site just not authoritative enough to display rich snippets yet (I have read that Google displays rich snippets "at discretion") or is there an error in my code that is not being picked up by the tool which is hindering the display, or something else?  UPDATE: I have updated my code according to @unor recommendation which clearly states rating only. I have introduced more fresh URL's into the Google index which already have ratings but the rich snippet is still not displaying...


I want to apply for a UK standard visit visa and I read that I should have a strong tie to my home country that will guarantee my return to my home country when my visa expires. So i want to ask if being a full time university student is a strong enough tie to help me get a UK visit visa ?

I want to get a four months leave of absence from uni which is a dead semester because am going to apply for the visiting visa. What I would request to know is If I request for a period of 3 months in my application. I can get that requested period ??  Thank you


I got an error when I try to create new class (that defined in the parent class) from a static method (in the parent class).     error: non-static variable this cannot be referenced from a static context   public class ParentClass {     public class ChildClass {         ...     }      public void method () {         // Compiles         ChildClass childClass = new ChildClass();     }      public static void static_method () {         // error: non-static variable this cannot be referenced from a static context         ChildClass childClass = new ChildClass();     } }   Of course I can creat the ChildClass class as new individual class but I couldn't understand why this wouldn't work.  ------- Edit -------  Making the inner class (ChildClass) static would make the class work as separate class (), as it was in different class, which is exactly what I needed.      public static class ChildClass {   ------- Edit #2 -------  Just to make it clear non-static class, as in the first code example, when used and created from non-static method like in method(), can access and use the ParentClass's functions and vriables.

What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?


Hi All, I hope I can explain this right. I need assistance on how I can capture the details from EMAIL going to FORM. My question is there a way to transfer the details (NAME, EMAIL and MOBILE) going to the form using the PRIMARK KEY (P_K)? I want to shorten the generated link from:  to  but still capturing the details from EMAIL going to FORM. EMAIL Details: %%[ var  @P_K, @NAME, @EMAIL, @MOBILE, @link Set @P_K = P_K Set @NAME = NAME Set @EMAIL = EMAIL Set @MOBILE = MOBILE Set @link = Concat('&P_K=', @P_K,'&NAME=', @NAME,'&EMAIL=', @EMAIL,'&MOBILE=', @MOBILE) ]%%  EMAIL BUTTON LINK:  Generated link after clicking the button:  FORM NAME:  FORM WITH EDM DETAILS CAPTURED:  Data Extension: EMAIL - test_concat_EDM_0521(P_K = test_1, NAME = Harvey Linarez, EMAIL = hlinarez@gmail.com, Mobile = 639493439284) FORM - test_concat_DE_0521_Copy (Variable field = P_K, NAME, EMAIL, MOBILE) I can comment the additional details if needed. Thanks

So... let's come to a topic i do not seem to fully understand: The function AttributeValue, especially in combination with the cloudpagesurl function.  I will present three scenarios, two are working and one is not working as expected. Both use the CloudPagesUrl function inside an Email to pass variables to the encrypted cloudpages qs parameter. The DataExtension used for sending the email contains colums named "country", "language" and an id which name is "area". We do not have SubscriberAttributes that are named this way, because we handle everything over dataextensions.   Not working scenario, all variables presented in this case are working and contain correct values inside the newsletter.  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404,'param1',@country,'param2',@language ,'area',@area))   Inside the Cloudpage:  set @country = AttributeValue('param1') set @language = AttributeValue('param2') set @area = AttributeValue('area')   Output on the cloudpage for debug purposes:     @country is empty (does not display a value)      @language is empty (does not display a value)      @area is filled correctly       Working scenario1:  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404,'country',@country,'language',@language ,'area',@area))   Inside the Cloudpage:  set @country = AttributeValue('country') set @language = AttributeValue('language') set @area = AttributeValue('area')   Output for debug purposes on the cloudpage:     @country is filled correctly      @language is filled correctly      @area is filled correctly       Working scenario2:  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404))   Inside the Cloudpage:  set @country = AttributeValue('country') set @language = AttributeValue('language') set @area = AttributeValue('area')   Output for debug purposes on the cloudpage:     @country is filled correctly      @language is filled correctly      @area is filled correctly       Now i got several Questions:   Do the parameters with the AttributeValue function have to be exactly named like the columns in the sending dataextension to be retrieved via AttributeValue when using the CloudpagesUrl function? Does the CloudPagesURL function actually encrypts all attributes from the sending dataextension to the qs parameter by default? Does the AttributeValue function actually needs the parameter attachments from the CloudPagesURL call? (it seems not) Is the AttributeValue function bound to the dataextension column names? Does the AttributeValue function still work when the sending dataextensions records get overwritten, updated or deleted?   Should you better switch to usual parameters to be more failsafe?  Why does the first (not working) scenario not populate any fields that are not dataextension column names?    Do you actually have to use RequestParameter in this scenario to retrieve the data, because the column names are not matching the sending dataextension and the AttributeValue function will actually not be able to retrieve any data?        Thanks for reading any help is greatly appreciated. If you have more documentation to share please attach it ;)


Please forgive me if this is 'off topic,' the actual  page is void of any useful guidelines.  I'm new to Blender and started trying to make a model that is more complex than a simple object. Take any normal model, for example a car. Is it normal to make a car in one file that consists of a bunch of different non-connected meshes?  Most tutorials I have found make one giant connected object that is (in some way) connected to every part of the whole model.   My mind wants to separate the parts, like the wheels wouldn't be 'connected' to the body. I feel like this would make texturing and UV mapping easier, but nobody seems to do this. Texturing different parts of a single giant mesh is challenging for me and I wanted to know if it is bad practice to create lots of 'pieces' to a single model.

Is there any benefit of creating model in one piece or I can create separate pieces and just overlap them to create a visually joint part.  For example, the below image were made from two parts 1. Blade 2. Spinner  Is there any benefit to model them (e.g. extrude from the spinner) or it is actually ok to have them separated since visually I can achieve the same effect (See picture 2)


For example:   Lamina / Animal Dog / God  Ogre / Ergo Desserts / Stressed Tuba / Abut   These are all anagrams, but they are a special type of anagram, where the order of letters is exactly reversed. They aren't palindromes, as they spell a different word when read backwards. I feel like there should be some sort of latin-sounding name for them, but the best I can come up with is the rather imprecise-sounding "backwards words", "mirror anagrams" or "reverse spelling pairs"...

I'm aware of what a palindrome is. What do you call words that, when reversed, form other words, such as ton (not) and part (trap)?


I want to be able to put my subsubsections in bold - currently they are displayed in italics by default.  What I have:  1. Section  1.1 Subsection  1.1.1 Subsubsection  What I want:  1. Section  1.1 Subsection  1.1.1 Subsubsection  The top of my Latex document currently looks like:  \documentclass[12pt, onecolumn]{revtex4}     \usepackage{times}                               \usepackage[a4paper, left=2.5cm, right=2.5cm,  top=2.5cm, bottom=2.5cm]{geometry}     \renewcommand{\baselinestretch}{1.15} \usepackage[font=small,labelfont=bf]{caption}                        \usepackage{graphics,graphicx,epsfig,ulem}   \usepackage{amsmath}                             \usepackage{etoolbox}                       \makeatletter \patchcmd{\frontmatter@RRAP@format}{(}{}{}{} \patchcmd{\frontmatter@RRAP@format}{)}{}{}{} \renewcommand\Dated@name{} \makeatother  \usepackage{fancyhdr} \usepackage{siunitx} \usepackage{hyperref} \usepackage{footmisc} \usepackage{float}  \pagestyle{fancy}                            \renewcommand{\headrulewidth}{0pt} \rhead{Insert Title Here}  \def\thetable{\arabic{table}} \def\thesection{\arabic{section}} \def\thesubsection{\arabic{section}.\arabic{subsection}} \def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}    \def\bibsection{\section*{References}}  \begin{document}                     \end{documnet}

Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it.  All I want to do is set a different default format for my section titles. Instead of just being bolded and slightly larger than the main text, I'd like them to be of normal weight, the same size as the main text, and all caps.   I'm using the article class.


Is there a difference? Does one fall under the other?

The two terms have seemingly become synonymous, but is "user experience" really the same thing as "usability?"   It would seem that some sites, apps or products provide the user with an experience that is, overall, enjoyable without being as usable as they could be. (Facebook and MS Office come to mind).   Can a site, app or product provide a great user experience without providing the best usability?


I am familiar with  and its usefulness when content crosses page boundaries.  But lately, I have seen quite a few questions about  and don't know much about it so am wondering:    What are the basic differences between these two packages? What kinds of scenarios should one prefer one over the other, and  which cases should one stay away from particular package?

I think practically we will not use both tcolorbox and mdframed in a single input file. Correct me if I am wrong. So we have to choose either tcolorbox or mdframed. However, without knowing the strong and weak points of both, we can only choose one by gambling.  Shortly speaking, what are the weak and strong points of both packages? The answers really influence the path of my life in TeX.


The Boltzmann entropy is defined as the logarithm of the phase space volume  (E). Is there a reference, book, paper which shows where this definition comes and how it is equal to the phase space volume?

I am having trouble in understanding the following concepts :  Pg 231 Appendix B of the link   which is of the book Chaos and the Evolving Universe by Sally J. Goerner mentions that Entropy $S$: $$ S = \ln V $$ where $V$ is the phase space volume.  According to the book, this equation is from the concept of Boltzmann's entropy.   (Q1) How is This equation coming? How can we say that entropy = log of phase space volume? References and explanation would be appreciated. According to the book, the Bolzmann's constant, $k_B$, is taken to be $1$. But actually there is a value to the constant. Can I take the Boltzmann constant to be equal to $1$?  Also, if the entropy increases, does this mean that the volume decreases?  (Q2) Secondly, can Kolmogorov entropy, from Information theory be stated as logarithm of phase space volume that is equivalent to entropy from statistical mechanics? I am unsure if I can replace Boltzman with Kolmogorov Sinai (KS) entropy.   (Q3) What is the difference between Gibb's entropy and Shannon's entropy since the formula  is the same.


I have tried to kill the Destroyer a couple of times. The first time I built the arena it killed me and I went back to my spawn point. It followed me and killed all of my MPCs. I don't use guns very much because I have terrible aim. I have a adamintite sword and mythril armor. What different kinds of weapons should I use since these are not working for me?

I'm planning this speed run with a friend, our situation now is that we've just killed the Wall of Flesh, are geared with Molten gear (Armor, Imp, Bow, Sword, etc.). We're at 300 HP, but we'll probably make sure we are at 400. Our plan is to kill the destroyer once, to get at least 20 Souls of Might, to craft the Megashark. We've tried various weapons (Molotov, Grenade, Minishark, Molden Fury), but the problem is that the DPS is just not enough. Next step is that we'll try to go pick up a Handgun from the dungeon to get a Phoenix Blaster + Explosive shot. So I'm wondering if you have a suggestion for us on what weapon to use for this, keep in mind that speed is of the essense, part of our challenge is in fact not taking 1-2 hours to craft 2 Titanium / Adamantium armors and such.


After I install a new kernel and do sudo apt autoremove these two items related to the just-removed kernel always show up in synaptic under Not Installed (residual config).    What's the terminal command to get rid of these, so I don't have to open synaptic?  Can I do it through aptitude?

I've searched the net for such information and found different command lines, like these ones:  sudo apt-get remove application sudo apt-get remove application*  sudo apt-get remove --purge application sudo apt-get remove --purge application*  sudo apt-get purge application sudo apt-get purge application*   So, what is the correct way? Is it necessary to use that "*"?  After that, I also found these commands:  sudo updatedb sudo locate application sudo rm -rf (file/folder name)


I'm writing a report in a language that uses decimal commas. In some cases that clashes with commas used for punctuation, causing hard to read text, e.g.:    for $x_i \in [-1,5, 1,5]$.  Is there a way to make this more readable?

In German the comma rather than the period is used as a decimal separator and the dot is used as a thousands separator: 12.345,67. The comma creates some unwanted space when used as in $12.345,67$. Is there a light-weight package or some macro to support this? (I'm not looking for automatic formatting like insertion of a thousands separator.)  \documentclass{minimal} \usepackage[utf8]{inputenc}  \begin{document} Der Preis beträgt $12.345,67$ Euro.     \end{document}     An easy fix is typing $12.345,{}67$ but I think this is too cumbersome.


Consider a PN junction diode  Now, this system will naturally form a depletion region due to diffusion and will convert into this-  Now, I wish to connect the ends of this diode with a conducting wire and resistance like this-  Thus, I expect the electric field in this space to be aligned as follows (Indicated din green)-  This will make the charges in the wire accumulate in the following way-  And finally, this system will end up neutralizing all the charges so that no electric field remains inside and outside the diode; creating equilibrium state for the free charges. So, we are going to be back on a simple p-n junction diode with no depletion region and no electric fields. However, this will again create a difference in electron concentration between n and p sides; these high-speed free electron will naturally flow from n-side to p-side creating an electric field which would later be balanced by the conducting wire. I thus expect this cycle to go on and on leading to continuous charge flow through the resistance. Overall, the diode will be taking up heat from the surroundings, while the resistance would be releasing heat there. Obviously I expect this analysis to be wrong, but I am not able to figure out where did I made any mistake?

I know this question sounds silly, as if there was a potential difference a current would be created when the terminals are connected together and this would mean energy has come from somewhere.  The reason I ask this though is that from my understanding of the depletion region and built in potential of a diode it seems like if you connected a voltmeter across the whole diode it would show the value of the built in potential.  This is explained in the image below:    At first, electrons flow from the n type to the p type because there are a higher concentration in the n type, and holes do vise versa. This is called the diffusion current. The first electrons and holes to cross the pn boundary are the ones which are closest to it; these carriers recombine when they meet each other and are then no longer a carrier. This means there is a depletion region of no carriers near the pn boundary. because electrons have left the n type material, and holes have left the p type material, there is a surplus of positive and negative charge on the n and p side of the pn boundary respectively. This causes an electric field that opposes the diffusion current, and so no more electrons or holes cross the boundary and combine. In short, only the electrons and holes near the boundary combine, because after they have done that an electric field is formed that prevents any more carriers from crossing. The current due to this electric field is called drift current, and when in equilibrium this will equal the diffusion current. Because there is an electric field at the boundary (pointing from the positive charge to the negative charge) there is an associated voltage. This is called the built in potential.  If you sample the electric field at each point along the diode from left to right, you would start with 0 in the p region because there are an equal number of protons and electrons. As you approach the depletion region you would see a small electric field pointing back towards the p region, caused by acceptor impurities which now have an extra electron (due to recombination) and therefore now have a net negative charge. This electric field would increase in strength as you get closer to the boundary, and then die away as you get further away.  This electric field means there is a voltage, as shown in graph (d). The p side is at an arbitrary potential, and the n side is at a potential higher than this because there is an electric field between them. This means there is a potential difference across the depletion region; this is known as the built-in potential.  But why when I connect a volt-meter across the whole diode will I not see this built in potential?  Edit:  I've also asked this question on another  And they say that the reason is because the net potential difference across the diode once it has been connected to a wire or volt meter is zero, because a metal-semiconductor junction has an electric field between it, and the overall effect of the electric fields at the junctions of the m-p-n-m materials results in zero potential difference.  Regardless of the fact that voltage does not equal electrostatic potential difference, can you please confirm that there is also no net electrostatic potential difference across a diode connected to a wire or volt meter because of the m-s junctions? I'd like to get a physicists answer on this, to see if this is the truth or just a simplified explanation to make it easier to accept.


I have looked at some of the other forum post and they don't answer my question.  I have been using various Linux Live CDs for some time now, but I've just bought a 16Gb usb 3 stick for a Linux (Ubuntu) install and I wanted some advice  I wanted to know wether I'm better of with a Persistent Live usb or a Full install   In an ideal world I would like all the features of a full install but portability will be important for me, I will be using it on two very different machines and will want to use it on friends and family's laptops for repairs. Is there a way I can have a full install with the portability of a Live USB install?  And thank you in advance  P.s this is my first post so sorry if I've done anything wrong!  EDIT: this question is not a duplicate of the one listed as it asks about the comparison of the methods, not HOW to do them.

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


I'm having Swap partition of 8 GB , how can i create a swap file from it ? Currently having three partitions root , home , swap . So if i create a swap file how do i create it and where do it get saved ? My RAM is about 4 GB.

I was reading the new changes with Ubuntu 17.04 and one caught my eye which was moving from the typical swap partition model to a new swap file model for new installs.   Are there benefits for using this as opposed to a swap partition, maybe related to or in terms of performance, space saving, more in line with today's hardware like SSD and NVMe or something else?  Another related question is how can I migrate from a swap partition to a swap file? I'm guessing using dd but want to confirm since I did not know about the swap file scheme until now.  And lastly, will hibernation be an issue with swap files?  Of course these questions might be related to cases where the user has a lot of RAM and the swap is rarely used (I'm guessing). So just to confirm that this information will help me and others with the same doubts.


I need to find a way how to prove gap lock with insertion only using two separate transactions.  I have tried this example to simulate the gap lock deadlock but it doesn't show any deadlock :    Please help how to deliberately cause a deadlock using insertion only with unique values from different transactions.  Thanks in advance.

I want to make my Python library working with MySQLdb be able to detect deadlocks and try again.  I believe I've coded a good solution, and now I want to test it.  Any ideas for the simplest queries I could run using MySQLdb to create a deadlock condition would be?  system info:   MySQL 5.0.19  Client 5.1.11  Windows XP Python 2.4 / MySQLdb 1.2.1 p2


I have non jailbroken ipad 4th generation with ios 7.0 installed. I want to run some applications that do not support that old version and therefore I need to upgrade.   The device itself has version 9 downloaded but my understanding is that this will not work as IOS 9 can no longer be installed after 10 is out.  I did not find a reliable information about peformance of IOS 10 on ipad 4th and I'm afraid I can turn it to unusable device. Everything that I can find is about some initial versions of IOS 10 and I think it is a known issue that early versions of major releases have some performance bugs.   So don't want to risk and if possible I want to be able to downgrade to IOS 7 if performance is unacceptable. My understanding is that I need to save SHSH for my device which I don't have and I'm not sure if this can be done now.  The first question is if it is possible in principle to save SHSH for old version of IOS given that that version is no longer supported by Apple?  I think there are several ways to do that but I'm not sure if they work or not.  Option 1: Use iFaith  AFAIK iFaith can save SHSH for non jailbroken device.   Question I was not able to find answer to is:   does the latest iFaith support saving of SHSH for IOS 7? According to  the latest version is 1.5.9 and it supports IOS 5.3 but I'm not sure this information is accurate.   Option 2: jailbreak + RedSn0w/TinyUmbrella  I can jailbreak first so that I can use tools other than iFaith to save SHSH.  Questions:   Can jailbreak for unsupported version of IOS be done at all?   May be there is some other option to save SHSH I was not able to found. Or may be there is another way to have a backup plan for downgrade.  Any help is appreciated.  Update:  According to       Apple only issues signatures for the currently-available iOS version,   which disallows installing older iOS versions. But if you have saved   signatures for an older iOS version, you may be able to use a replay   attack to restore that version. Therefore it is recommended to save   the signature for your device as long as Apple issues it.   But there is another note there     Users often misunderstand this system and think that the SHSH firmware   version they back up depends on the firmware version they have   installed on their device. This is the case for iFaith, but not for   TinyUmbrella. iFaith dumps the SHSHs from your device's storage   (whatever's installed on your device, e.g. 4.3.3), while TinyUmbrella   gets SHSHs from Apple's servers (whatever firmwares Apple is currently   signing).   If this is true then option 2 cannot work and the remaining open question is if there exists a method to extract SHSH for IOS 7?

I'm trying to downgrade my iPhone from the current iOS to an older one, as per .  But every time I try, I always receive this error:     The iPhone could not be restored. This device isn't eligible for the requested build.     I have tried many times with and without DFU mode. Any ideas regarding this?


I have just started learning Machine Learning and one of the very first topics that I have encountered in this venture is Simple Linear Regression. From Andrew Ng's course, I have learned to perform simple linear regression using gradient descent using the loss function. But recently I was watching this  where the professor gives an equation to find the slope and the interception in 1 step. Say if my equation is this $y=a_1 x + a_0$ Then, we can calculate $a_1$ and $a_0$ by these equations $a_1$=$\frac{\sum_{i=1}^{n}x_i y_i  – \sum_{i=1}^{n}x_i\sum_{i=1}^{n}y_i}{n\sum_{i=1}^{n}{x_i}^2 -(\sum_{i=1}^{n}x_i)^2 }$ $a_0$=$\bar{y}-a_1 \bar{x}$ wherer $\bar{y}=$ $mean$ $of$ $y$ and $\bar{x}=$ $mean$ $of$ $x$ Question 1: Since this method involves no iteration that is needed to compute slope and intercept in the case of Gradient Descent, isn't it better than gradient descent? Question 2: And what is the name of this method?

I am taking the Machine Learning courses online and learnt about Gradient Descent for calculating the optimal values in the hypothesis.  h(x) = B0 + B1X   why we need to use Gradient Descent if we can easily find the values with the below formula? This looks straight forward and easy too. but GD needs multiple iterations to get the value.  B1 = Correlation * (Std. Dev. of y/ Std. Dev. of x)  B0 = Mean(Y) – B1 * Mean(X)   NOTE: Taken as in   I did checked on the below questions and for me it was not clear to understand.      The above answers compares GD vs. using derivatives.


im trying to create a simple Minesweeper game with Modell-View-Controller and got this problem, here is my View Class  public class View extends VBox implements Observer {      public Button [][] buttonarray;      public int width;      public int height;      public Model model ;      public TextArea textfeld;       public View(int buttoncolumn, int buttonrow, Model model){          this.model = model;          this.width = buttoncolumn;          this.height = buttonrow;           GridPane buttonpanel = new GridPane();           buttonpanel.setAlignment(Pos.CENTER);           Button [][] buttonarray = new Button [buttoncolumn][buttonrow];           textfeld = new TextArea();          textfeld.setMaxSize( buttoncolumn*25,60);          textfeld.setMinSize(buttoncolumn*25,60);           for(int x=0; x < buttoncolumn; x++) {              for (int y = 0; y < buttonrow; y++) {                  buttonarray[x][y] = new Button();                  buttonarray[x][y].setMinSize(25,25);                  buttonarray[x][y].setMaxSize(25,25);                  buttonpanel.add(buttonarray[x][y],x,y);              }          }           this.getChildren().add(buttonpanel);          this.getChildren().add(textfeld);       }      public Button [][] getButtonarray(){          return buttonarray;      }      public Button getButton(int x, int y){          return buttonarray[x][y];      }      public void update(Observable obs, Object o){        }   }   And in Controller Class i tried to implement this  public class Controller implements Observer { public Model model; public View view;  public Controller(Model a, View b){     this.model = a;     this.view = b;     model.addObserver(this);     for (int x=0;x<model.width;x++){         for(int y=0;y<model.length;y++){             int xvalue = x;             int yvalue = y;               /* HERE IS THE PROBLEM */             view.getButtonarray()[x][y].setOnAction(event -> linksKlick(xvalue,yvalue));         }      }      model.addObserver(this);  }   And things went horribly wrong, there are too many exceptions such as :   Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182) at java.lang.Thread.run(Thread.java:745)  Caused by: java.lang.NullPointerException at Uebung2.Controller.<init>(Controller.java:28) at Uebung2.Main.start(Main.java:22)   I noticed that if i removed the row with .setOnAction everything will be fine, but not like i want to, can someone care enough to explain why ? Please note that for the sake of a short question i removed all the imports and irrelevant methods

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


Am completely stuck on this, any help would be appreciated.

So I'm complete stuck with something. I know it the following statements are true (or at least the seem to be from the results that I got from messing around with it a bit on MATLAB), but I don't understand why they are true or how to show so. Let $A$ be and $m$X$n$ matrix. Show that:  a) if $x \in N(A^TA)$ then $Ax$ is in both $R(A)$ and $N(A^T)$.   For this one I messed around with it with my own examples and I got $Ax=0$, therefore satisfing the statement, but I don't understand what's actually going on.   b) $N(A^TA)=N(A)$  again, makes sense when I see the results in MATLAB, but don't undestand why it works.  c) $A$ and $A^TA$ have the same rank  d) If $A$ has linearly independent columns, the $A^TA$ is nonsingular.  For the last two I have no idea on how to even start showing the relationship. I feel like I'm missing some crucial relationship between $A$ and $A^TA$, but I'm just not seeing it.   I would greatly appreciate any help of sugestions on how to show that these statements are true.   Thank you very much.


If I observe the domain:    http is the protocal  www is a subdomain  google is the second level domain  com is the top level domain  Is there a specific term that would describe google.com?

I am confused about domain names (I think)  I call these things, i.e. names you can buy, 'domain names'  bbc.co.uk google.com   I call these things, i.e. extensions of names 'host names'  www.bbc.co.uk mail.yahoo.com arts.mit.edu hello.there.example.com   Is this naming scheme correct? Are there official definitions of these?  In particular, what are each of the texts between the dots called (i.e. the name for "www", "bbc", "edu", "example")?


Just noticed this bug in the profile of  on Graphic Design.        As you can see, other comments do have link, but the comments left in the election page don't.

In the responses tab in my profile, responses to comments on nomination posts include a working link in the page source, but because there's no title the links are empty and useless.    When listed in the inbox such posts do have a title, though in this case the link is to the post and not directly to the comment. (Actually, the links in responses end up being redirected and also go to the post and not to the comment, but they try to go to the comment.)  In Supercollider:    In Global Profile:


Nine hours ago I got the  ("Shared a link to a question that was visited by 25 unique IP addresses...") for following question: .  But   this question is not mine there is and was no link in the question there is no comment (with question from me) I haven't edited the question   (Also see .)  Can somebody explain me why I got the badge or is there currently a bug with this badge?

I understand that the Announcer badge can be earned if the question is visited 25 times.  But is this only when I share a link to this question in one of my answers, or can I also share the link (with my user id somewhere to count the accesses) somewhere else, maybe Facebook?


The mean value theorem tells  " If $f:[a,b]\rightarrow \mathbb R$ is continuous and $g$ is an integrable function that does not change sign on $[a, b]$, then there exists $c$ in $(a, b)$ such that  $\int_a^b f(x)g(x)dx=f(c)\int_a^b g(x)dx$."  If $g$ changes its sign, is this theorem still true?

The mean value theorem is that $\int_a^b f(x)g(x) dx = f(\xi) \int_a^b g(x) dx$ for some $\xi \in [a,b]$ if g(x) does not change sign on $[a,b]$. However, I can't see why the sign matters. There is a simple proof given on wikipedia:   and I'm sad to say that I can't see what step isn't valid if $g(x)$ changes sign. Can you point it out?


I'm trying to do something along these lines:  \newcommand{\pcite}[2][#2]{( #1 \cite{#2} )}   I.e. make it so that, if an explicit argument is used, then use it, otherwise re-use the second argument as the first  The intended use is:  As \pcite{Author.etal} has stated   should result in      As ( Author.etal [1] ) has stated   whereas  As \pcite[Author and Coauthor, 1999]{Author.etal} have stated   should result in     As ( Author and Coauthor, 1999 [1] ) have stated     PS. This is simply a minimal example, unrelated to the actual command I'm writing.

I'm trying to construct a command with one optional and one mandatory argument and I'd like the default if the optional argument is not provided to be #2.   Why does this not work?  (error: Illegal parameter number ...)  \documentclass{article}  \newcommand{\mycommand}[2][#2]{\label{#1}#2} \begin{document} \mycommand{mytext} \end{document}   And what would be a way around it?   EDIT: For clarification of my specific use case: I'm trying to define a command that passes a variable on as an option to an environment along those lines, where myenv can have options like optionone=X or optiontwo=Y so the default for the optional #1 should be optionone=#2 (not literally #2).   \newcommand{\mycommand}[2][optionone=#2]{\begin{myenv}[#1]\input{#2}\end{myenv}}   Maybe there's generally a better approach?   (The environment definition I'm using is from .)


I have created a custom lightbox, and I am trying to center the DIV to the screen, DIV is in FIXED position, I am able to center it from left and right but not vertically. To center it vertically I am doing following by JS:   Getting the height of the image via JS Divide the height by 2 fixed div position is from top 50%, and adding negative margin top in the div (negative margin top is the value which is divided by 2)   But its not centering, what approach it should have?  This is the  (Please view in full screen)  Here is the JS code  $(document).ready(function() {     //Open light box on click   $(".gall-info").click(function(){     //show lightbox     $(".gallFullView").css({"opacity":"1", "visibility":"visible"});     $(".galleryShade").fadeIn();     $(".gall-info").css("bottom","0");      //Get the heigh of image     var gallFullViewImgHeight = $(".gallFullView-image > img").height();     //Divide the height by 2     var gallFullViewHalf = gallFullViewImgHeight / 2;     //Apply the value of above in negative margin top to center the wrapper     $(".gallFullView").css("margin-top", - gallFullViewHalf);   }); });   thanks

How do I go about setting a <div> in the center of the screen using jQuery?


Is there a LaTeX macro that just compiles whatever I type into it? Something like \text or \textnormal. I want to display a LaTeX code inline without any formatting, but don't want to escape everything. Especially I want to display the text in caption as well.  This is the LaTeX code I want to have as regular text.  x = \frac{-b\pm\sqrt{b^2-4ac}}{2a}

verbatim environment is not working in figure caption. Checked  and  is not working.  \documentclass[11pt, double space]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{color} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[english]{babel} \usepackage[autostyle, english = american]{csquotes} \MakeOuterQuote{"} \usepackage{cprotect}  \begin{document} \begin{figure}[!h] \caption{Sample 1 \cprotect\begin{verbatim} \tau(A) = e^{\chi_0A/(KD_p(K+A))} \end{verbatim} per hour.} \label{fig:singlecell_chemo} \end{figure}  \end{document}   I have tried cprotect package also. Any help.


Briefly:   I'm after the equivalent of .NET's String.Trim in C using the win32 and standard C api (compiling with MSVC2008 so I have access to all the C++ stuff if needed, but I am just trying to trim a char*).   Given that there is strchr, strtok, and all manner of other string functions, surely there should be a trim function, or one that can be repurposed...  Thanks

Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.


Letting $a_{1}=2$ I have a recursive sequence defined as follows: $$ a_{n+1} = \frac{a_{n}}{2} + \frac{5}{a_{n}} \ \  \forall n \geq1$$  How can I prove that the sequence {$a_{n}$} converges and also find the limit of this sequence? I plugged in first few terms and get something like:  2,  3.5,   3.179,   3.162,   3.162,   ...  The textbook example showed an example of a recursive sequence that was monotone, but this sequence I have here does not appear as such. However, this sequence looks like a Cauchy sequence though. I am completely lost and not sure how to proceed. Any help is much appreciated! Thank you.

Let $\{X_n\}$ be the sequence defined recursively by $x_1=2$ and $x_{(n+1)}=(x_n/2)+(5/x_n)$. Prove that $\{x_n\}$ converges and find the limit of the sequence.   I understand the definition of a Cauchy Sequence, but I am having trouble getting my foot in the door with this one. I have been working on this problem for several hours without any luck, so I was just wondering if someone could help me determine a way to start this problem?


My Schengen visa got refused and one of the reasons are "Your intention to leave the member states before your visa expiration is not justified".   What should I do to solve it and where did I go wrong? the another question is also my another reason and I have solved that but I am confused about this problem

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I think the first time users feel a bit confused as to in which stack website should they post a question? I personally feel that while a person attempts to post a question (s)he should be made aware of the other stack websites which might be relevant to the question

What do people think of the idea that as soon as a question or question title contains certain key words (perhaps a volume of key words), in much the same way it suggests that your post might be subjective, it suggests that perhaps you're on the wrong site?  E.g. on ServerFault, every time someone uses the words "Home Network" or something similar, it popups up a little box "If your question is relating to a home PC or a home network, it belongs over at Super User." (obviously the phrasing needs to be worked on).  Or on any of the sites, if the question contains the name of the site (e.g. Super User Colour Scheme hurts my eyes), suggest the Meta site.  This would obviously catch the question before it gets voted to close 5 times (which on SF can take quite a while, as there's only about 35 3k users, and obviously even fewer on SU).  Thoughts? Ideas?  Prepares for a flurry of downvotes and "Exact Dupe" even though I can't find the dupe


When I move a directory elsewhere, a symblink to it will become invalid.  The way I update a symlink mylink is first going into the directory, and then running ln -s "$PWD" mylink, and then mv mylink to the invalid symlink.  I can't create the new symlink in the same directory of the invalid symlink using the above ln command, because ln: failed to create symbolic linkmylink': File exists, so I have to create it elsewhere and then there is an additional mv step.  I wonder if an existing invalid symlink can be edited directly, just like editing a text file in a text editor such as Emacs?

My basic understanding of a symlink is as a special file, a file that contains a string path to another file. The kernel's VFS abstracts a lot of that away but is there any reason why symlinks seem to be impossible to edit?  In other words: Can I edit a symlink? If not, why not?    I do understand that there are various ways of replacing symlinks (two alternatives are currently in the answers section) but it would be interesting to get an explanation on why replacement seems to be the only way to deal with symlinks. Why can't you just change where they point?


On minecraft PE I accedently typed in two § instead of one § for my username and whenever I try joining a server it says invalid name and I can't change my username! Why?  (This is not a duplicate from the invalid name problem because I typed in §§ it didn't just come up!)

I am having trouble getting onto a server in Minecraft PE on iOS. When I tap on the person's server it just says invalid name:    I have tried turning off and restarting the iPad, going to home screen and logging back into the server but I have had no luck and no change. Is there a reason why this is so?


As an English author but long time resident of America, I recently wrote a historical spy thriller that delved deeply into coded messages. I often caught myself writing cipher and cypher. Although I eventually used cipher exclusively the plot was mainly located in England and France.  Would cypher have been a better choice?

I recently came across a (not very well written) piece of writing in which "cipher" and "cypher" were used interchangeably. Is there any difference between them, or are they two spellings of the exact same word? If so, is it similar to the difference between the words "gray" and "grey", where one is more common in a certain geographic area?


I have a group of layers that contain itself other groups (as shown in picture).  I need to hide one group by uncheking the checkbox in the legend.  is there any way to do it programatically using python?

I would like to set visibility of a layer group and all of its children (and grand-children and so on...) using PyQGIS (QGIS 2.14.1).  Assume the groups name is g0 with subgroups g0[1...n] and subsub...groups g0[1...n][1...n][...].  QgsProject.instance().layerTreeRoot().findGroup('g0').setVisible(False)   sets the group and ALL what comes beneath invisible, so far so good:    But vice versa  QgsProject.instance().layerTreeRoot().findGroup('g0').setVisible(True)   sets the group visible and leaves all its children untouched, wich results in nothing visible at all:    QgsProject.instance().layerTreeRoot().findGroup('g0').updateChildVisibility()   only touches the direct children and not recursively all the descendants:    I wonder why manually setting the root groups (g0) visibility does result in recursively setting the visibility of all beneath it at all.  Question: Do I have to implement some recursive function to set the visibility of a group and its whole big family, or is there a more convenient way to accomplish this? Or is here something buggy?


I just read how Chromebooks and Windows 8 are now supporting HTML5 playback on Netflix instead of Silverlight. The site is still requiring users to install silverlight (when you login from Linux computers) Is it possible to emulate Windows 8 or Chromebook?

Is there a way to stream Netflix content to my Ubuntu machine?


$$(a+1)(a+2b)≤\frac{-1}{2}$$ I was solving a problem about quadratic equations and I needed to find the value of $a$ and $b$.  I used the discriminant to get an inequality and I simplified it to get the above inequality.  How to solve this?

$$ x^2+2(1+a)x+(3a^2+4ab+4b^2+2)=0$$  I tried to make an inequality using the discriminant and I simplified it to get $$a^2+2ab+b^2+\frac{1}{2}≤0$$  But I don't know how to solve this.


First, may I begin by saying that I love the English language! After so many years, I still find myself learning something new each day.  The question  has been identified as a possible duplicate of this question, but therein an enumeration of such words is called for, whereas here I am asking about the pronunciation of a certain adjective within this group.   could also be argued as a duplicate of my question, but what I want to know is far less broad, revolving around the pronunciation of deserved.  That settled, my question today revolves around the pronunciation of deserved in differing contexts. In British English at least (I can't speak for American English, unfortunately) there are no less than several heteronyms which end in ed.  Among these are:   Blessed (past-tense verb)/blessèd (adjective) Beloved (adjective)/belovèd (adjective) Learned (past-tense verb)/learnèd (adjective) Dogged (past-tense verb)/doggèd (adjective) Legged (past-tense verb)/leggèd (adjective, usually hyphenated to another word)   Of course the grave accents aren't strictly necessary (context is usually telling) but I want my point to be clear.  I got the impression that deserved belonged to this class of words, i.e. deserved (past-tense verb) and deservèd (adjective). If this is archaic, then perhaps what confused me is that the adverb deservèdly and the noun deservèdness are pronounced in four syllables.   I can't decide whether the adjective is pronounced in two or three syllables. The pronunciation of well-deserved may be telling here.  I have checked this in a few dictionaries, but come to no conclusion. The Cambridge Dictionary, usually trustworthy in such (fine) matters, gives the pronunciation of any form of deserved as .

When I first read Romeo and Juliet in high school, I remember being intrigued by pairs of words such as,     beloved/belovèd    and      learned/learnèd   where there's an accent grave on the 'e' of the last syllable of one of each pair of word.  One thing I've always thought is that, strictly interpreted, beloved can really only be used as an adjective; if one wants to refer to the noun, as in my beloved, it should properly spelt as belovèd.  Similarly, I've always thought that learned is, strictly speaking, only acceptable as the past tense of the verb to learn, and that if one wanted to refer to the adjective form meaning "educated", as in learned scholar,  it would properly be spelt as learnèd.  I don't remember where exactly I got these impressions from, and I don't know if they are correct.  So my question is: Were there or is there any semantic difference between such pairs of words, or is it just a spelling idiosyncrasy? If there were such differences, do any persist to the present day?  Addendum: These aren't the only such pairs; there are others, I distinctly remember seeing many in lots of Shakespeare's plays...


I'm looking for the adjective to describe a person that speaks very little, but when he/she does, his / her sentences are kept to a minimal length and words are sharp, precise and powerful. Think of those "Clint Eastwood" type of movie character that use one-liners and use as few words as possible to get their point across.

I assume that in English there is a word for everything, and I am looking for one that roughly means "of few words" or "of no words". The closest I could think of is non-verbal, but it sounds a bit too dry. Is there a better word?  Note: I did check for antonyms of "verbal" before I posted here, but didn't find any.


I have the following code with following conditions:   A value less than 60 seconds is fast A value more than 60 seconds is slow Must fill out both input fields to show "fast" or "slow"   My only problem is that the code interprets 0 as null. So, If I put 1 minutes 0 seconds, then nothing shows.   I want it to show "fast" when I enter 1 minute 0 seconds.    Thanks in advance.                                <input id="D"      type="number"          class="form-control formBlock"          placeholder="Minutes"          required=""          min="1"          max="59"         onkeyup="if(parseInt(this.value) > 59){ this.value = 59; return false; }"         >     <stat id="Run"></stat>
     <input id="E"       type="number"       class="form-control formBlock"       placeholder="Seconds"          required=""          min="1"          max="59"         onkeyup="if(parseInt(this.value) > 59){ this.value = 59; return false; }"         >

I'm using  to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement.  Is there a performance benefit to replacing == with ===?   Any performance improvement would be welcomed as many comparison operators exist.  If no type conversion takes place, would there be a performance gain over ==?


My question is regarding the difference between possessives and these other cases:  family's needs vs family needs student's needs vs student survey  I still don't get it.

Sometimes it’s possible to use either a noun adjunct or the possessive case.     the shop door   the shop’s door   However, in certain phrases it’s not OK to do so.     the ship’s crew (the ship crew is wrong)   The questions are:   How can one find out what to use in such cases as “the shop(’s) door” when a noun adjunct option and the possessive case option are available?  How can one know which option is wrong in order to avoid the construction “ship crew”? Is there a difference in meaning between (a) the shop door (b) the shop’s door?


I've just installed arduino from Software Center but I've run into a few complications.   Port /dev/ttyACM0 is not accessible so I can't upload anything. I understand that this is a common problem, but none of the solutions seem to work for me. Except maybe running as sudo from the terminal which I haven't been able to figure out how to do.   Sketch uses 1,460 bytes (0%) of program storage space. Maximum is 253,952 bytes.    Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.   avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied    ioctl("TIOCMGET"): Inappropriate ioctl for device   ioctl("TIOCMGET"): Inappropriate ioctl for device   avrdude: ser_send(): write error: Bad file descriptor   avrdude: stk500_send(): failed to send command to serial port     I found a few "solutions" that don't seem to work for me.    run arduino as sudo:   sudo: arduino: command not found   It might work, but cant seem to get arduino to run from the terminal itself. I'm not sure but it might have something to do with it being "snap" and ignorance on my side on how to run these programs from terminal. I tried several paths (except the right one of course) $ sudo adduser <username> dialout   answer:   The user `username' is already a member of `dialout'     Of course  has been replaced by my username    Also within arduino /dev/ttyACM0 was black and available.  Also tried sudo adduser <username> tty  The user was added, but no difference.  $ sudo chmod a+rw /dev/ttyACM0    answer: already had the right read and write privileges.  $ sudo udevadm trigger  tried this.. found it on Stack Overflow.     None really seemed to work though, so I keep trying to want to try to run it first from terminal as sudo but as I said I can't seem to figure out why arduino-mhall199. If this could work then it is enough for me, I don't use it often enough for that to be an issue.   Oh yeah of course. Ubuntu 17.10, sorry

I have Ubuntu 18.04 LTS installed.  I installed Arduino IDE v1.8.5 as a snap with  snap install arduino-mhall119   I have added my user to dial-out group and rebooted:  sudo usermod -a -G dialout $USER  $ groups  username adm dialout cdrom sudo dip plugdev lpadmin sambashare   I connected my Arduino Nano to the laptop, it is detected on port /dev/ttyUSB0 (ch341-uart).  $ ls /dev/ttyUSB0 -al crw-rw---- 1 root dialout 188, 0 авг 13 11:59 /dev/ttyUSB0   I tried to upload the simpliest Blink sketch and get the following errors in the terminal:  $ arduino-mhall119.arduino    avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied   Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.**   Also I have installed arduino 1.8.5 with umake - it can access serial port in usual way.  Note: we already have  here, but the solution was to use , not fix for the Snap.  So my question is: How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)?  Update: connecting serial-port to the snap fails with the following message  $ snap connect arduino-mhall119:serial-port  error: snap "core" has no "serial-port" interface slots   Current interfaces are:  $ snap interfaces | grep arduino :home                            arduino-mhall119,gedit,organize-my-files,vlc :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer,vlc :unity7                          arduino-mhall119,gedit,organize-my-files,vlc :x11                             arduino-mhall119,organize-my-files,pulsemixer,vlc -                                arduino-mhall119:serial-port   Changing permissions of serial port to 777 with sudo chmod 777 /dev/ttyUSB0 does not help.  The following do not work too (because of syntax errors):  $ sudo snap connect arduino-mhall119:arduino error: snap "arduino-mhall119" has no plug named "arduino"  $ snap connect arduino-mhall119:/dev/ttyUSB0 error: snap "arduino-mhall119" has no plug named "/dev/ttyUSB0"  $ snap connect arduino-mhall119 error: cannot resolve connection, plug snap name is empty   Information about YAML-manifest:  $ ls -l /snap/arduino-mhall119/current/meta/snap.yaml -rw-r--r-- 1 root root 353 июл 28 00:20 /snap/arduino-mhall119/current/meta/snap.yaml  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 12 slots  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 5 plug     plugs:     - x11     - unity7     - home     - network     - serial-port


hello community I am much worried while adding material to the objects in blender 2.8.  I am facing problem that the shading view show the accurate colors what I do made as shown in figure below.   as it shows a good metalic color but when I goes to the render view or render the image weather in cycle or in evee shows different results like the premade metal color in shading view looking like this in render view as shown below   please sort out the problem I shall be very thank full to you.    I am also attaching the .blend file

I'm newish to blender and have been trying some stuff for fun. When in the Shading tab my two objects look like this   But when in Layout tab it looks like this   Is this because there is a lack of reflective surfaces in the layout workspace. Here is file just in case  Sorry for google drive link. Hope you guys can help, thanks


can someone help me  Im having issues binding my dropdown list from my sql linq query, theres seems to be issues with anon types not being statically typed and then the list is not being populated  please help thanks  public static void getlocation() {     DataClasses_AbintegroDataContext dc = new DataClasses_AbintegroDataContext("name = name");       //List<Location> thelocations = new List<Location>();       var locations = new[] { from a in dc.Locations select new { a.name } };       DropDownList ddLocation = new DropDownList();      ddLocation.DataSource = locations;     ddLocation.DataTextField = "Location";     ddLocation.DataValueField = "Location";   }

The last two lines of this code do not work correctly -- the results are coming back from the LINQ query.  I'm just not sure how to successfully bind the indicated columns in the results to the textfield and valuefield of the dropdownlist:      protected void BindMarketCodes()     {         List<lkpMarketCode> mcodesList = new List<lkpMarketCode>();          LINQOmniDataContext db = new LINQOmniDataContext();          var mcodes = from p in db.lkpMarketCodes                          orderby 0                         select p;          mcodesList = mcodes.ToList<lkpMarketCode>();          //bind to Country COde droplist         dd2.DataSource = mcodesList;         dd2.DataTextField = mcodesList[0].marketName;         dd2.DataValueField = mcodesList[0].marketCodeID.ToString();      }


In Logan, Wolverine seems to have a problem in his right leg from his first appearance. We can see that until the last scene before he took the full dose of the drug, he was barely able to run.   What caused that is not specified anywhere in the movie. Is there any information available on it?

In  (2017), Logan seems to be dying from sort sort of ailment, that prevents him to heal properly and seems to be decaying his body in a way that wasn't happening in any of the other films his character appears in.  I don't recall that this is being explained in the film. The Wikipedia page only mentions "adamantium poisoning" and "his healing factor fading", but it is not backed up with citations, so I would love to get an in-depth answer for this question, maybe using excerpts from the comic or original source material.  What is happening to Logan?


I am travelling from Mumbai to Vienna and my layover in Saudi is 10hr 45 min and when I return from Vienna my layover in Saudi is 1hr 45min. Should I apply for a Saudi transit visa?

I am travelling to Rome along with five other members (all in a family) from Bengaluru via Jeddah. My layover in Jeddah is 13.5 hours before i catch a connecting Flight to Rome. I won't be moving out of airport in Jeddah. Do I still need a Transit visa in Saudi Arabia.


I have a server and some person that was messing with it changed the gamerule to keep inventory but personally I do not like keep inventory. So, how do I change it back?

I once played a vanilla Minecraft adventure map (called "Herobrine's Mansion") that prevented the player from losing their items on death. Which commands can be used to prevent the player from losing their items on death (in vanilla Minecraft)?


What three odd integers from the set $\{1,3,5,7,9,11,13,15\}$ that when summed together equals to $30$ ?   Note: You can also repeat the numbers  I found the  question here. But this question has the answer with five integer numbers.   Please help me

I've been asked the following question:  What five odd integers from the set  $\{1, 3, 5, 7, 9, 11, 13, 15\}$ that when summed together equals to $30$? Note that any integer can be used more than once.   If my limited knowledge of maths is correct, there should be no answer, as no odd number of odd integers summed together can give an even number.


This is a javahang man project! using java swing, I was looking for some help as i'm pretty tripped up! I get an error that leads back to line 95!  Exception in thread"AWT-EventQueue-0"  java.lang.NullPointerException     at hangmanP.DetailsPanel.textFile(DetailsPanel.java:95)  yet my IDE says that its just fine yet the console gives me this error upon running it! Any and all help would be awesome.   package hangmanP;  import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.List; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Random;  import javax.swing.*;  public class DetailsPanel extends JPanel {     public Random rGen = new Random();     private static final String FILE = null;     public static String[] words;      public DetailsPanel() {         Dimension size =  getPreferredSize();         size.width = 200;         setPreferredSize(size);          words = textFile();           setBorder(BorderFactory.createTitledBorder("Letters Guessed"));          //Adds Compnents          JLabel LetterLabel = new JLabel("Letters: " + words);         JLabel UserLetter = new JLabel("A");          JTextField User = new JTextField(1);          JButton btnSub = new JButton("Submit!");           //sets layout of sidebar         setLayout(new GridBagLayout());          GridBagConstraints gc = new GridBagConstraints();          //// First Column ///////////////////           //think of it like dividing your panel into a grid         gc.weightx = 0.5;         gc.weighty = 0.5;         gc.gridx = 0;         gc.gridy = 0;          add(LetterLabel, gc);           gc.gridy = 1;      }       public String getword() {     words = textFile();      int n = words.length;     int r = rGen.nextInt(n);     String word = words[r];              return word;     }        public String[] textFile() {          BufferedReader reader = null;          ArrayList<String> wordlist = new ArrayList<String>();          try{              reader = new BufferedReader(new InputStreamReader(new FileInputStream(FILE)));             String s = null;             while ((s = reader.readLine()) != null) {                 wordlist.add(s);             }         }              catch (IOException e) {                     System.out.println(e.getMessage());                     System.exit(-1);                 } finally {                     try {                         // close the file                         reader.close();                     } catch (IOException e) {                         System.out.println(e.getMessage());                         System.exit(-1);                     }                 }                 // convert from arraylist to array and return                 return wordlist.toArray(new String[wordlist.size()]);            } }

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


I want to see the following step in greater detail:  $$\nabla_x~\bigg[(\vec{x}-\vec{\mu})^TP^{-1}(\vec{x}-\vec{\mu}) \bigg] ~~~~~(3)$$  $$= P^{-1}(\vec{x}-\vec{\mu})$$  Textbook says the above partial derivative was performed by making use of the fact that P is a symmetric matrix and the following derivatives:  $$\frac{\partial}{\partial{\mathbf{x}}}(\mathbf{x}^T \mathbf{a}) = \frac{\partial}{\partial{\mathbf{x}}}(\mathbf{a}^T \mathbf{x}) = \mathbf{a}~~~~~~~(1)$$  $$\frac{\partial}{\partial{\mathbf{x}}} (\mathbf{A}\mathbf{B}) = \frac{\partial A}{\partial{\mathbf{x}}}\mathbf{B} + \mathbf{A} \frac{\partial \mathbf{B}}{\partial{\mathbf{x}}}~~~~~~(2)$$  where a and x are vectors an A and B are matrices.  I'm still not entirely sure I understanding how to perform this differentiation over the above matrix/vector equation (3).  would this involve performing rule (2) then rule (1)?

It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$?


I want to have 2 separate words in a fraction (numerator & denominator), however, LaTeX would keep them together with no space.  I'm using the amsmath package. And this is the line of the code:  \centering $\frac {desired  displacement_{max}}{actual  displacement_{max}}   How can I keep (desired and displacement) separately?   Thanks

I have troubles writing a fraction whose items are words not numbers.  In a nutshell I should write:  minaccia/vulnerabilità   --> this is the numerator ----------------------  contromisure             --> this is the denominator   I simply do this, but it doesn't work.  \[ \frac{minaccia/vulnerabilit\'a}{contromisure}  \]   Can anyone help me?


Show that $\frac{1}{(n+1)!}(1+\frac{1}{(n+1)}+\frac{1}{(n+1)^2}+\frac{1}{(n+1)^3}+\cdots)=\frac{1}{n!n}$, (here $n$ is a natural number) Maybe easy, but I cannot see it. Thanks in advance! Alexander


I recently deleted a few files from my virtual machine, without any backup.  It was a terrible mistake and now I need recover them.  If I move the .vdi file to an external disk, is it possible to run knoppix and try to recover the files? It's a fixed size VDI and when the fatality happened it was no longer touched.  My questions are, is there any hope? Should I move the VDI or can I copy it?

My Ubuntu 12.04.1 running on virtualbox ran out of space while I was installing software on it and now it is . I've got files I need to recover from it. I have the ubuntu64.vdi file on my Windows 7 (host) laptop and I was wondering if there is any way of recovering the files from the vdi file. In parallel, I generated a fresh 12.04.1 machine on virtualbox in the same laptop, and I'll use that one instead of the borked one. I can add the borked vdi to the list of disks in the working one. Then I used gnome nautilus to mount the borked disk. I can find the files in there, but they are about 2 months old. I think this coincides with the last time that I did a virtualbox snapshot of the machine, but not the last time I got a working machine, which was yesterday. Is there any way of mounting the vdi as of yesterday, just before it crashed? EDITED: Here is what Virtual Media Manager tells me about my ubuntu64.vdi file:  EDITED2: I copied my ubuntu.vdi to an external USB with plenty of disk space. I tried using Windows to clone it, but got an error:  I tried the same from the working VM via a shared folder of the USB drive, and it started the cloning. Took a good while, but finished successfully: root@precise64:/media/sf_E_DRIVE/copy_of_ubuntu64_vm_folder_20140224/ubuntu64#  VBoxManage clonehd ubuntu64.vdi ubuntu64.raw --format RAW 0%...  10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone hard disk created in format 'RAW'. UUID: 90f99198-18e1-40ee-85fe-c083dcbb1ac3  EDITED3: After creating the raw file, I run testdisk with Deeper Search, I get a list like this:  Ater Deeper Search has finished, I get a list like this:  But I don't know which one is which snapshot... Any ideas?


I am working on a Pre-Calculus Polar coordinate graphing project that incorporates some creativity; My current plan has me graphing the Nautilus Shell as my focal point. However, I have to list points for every 15 degrees or rotation. (θ+15°k, r), k = 0, 1, 2, . . . 1,152. How do I list every r value from 0 degrees to 17,280 degrees in a google spreadsheet or excel? Thank you in advance.

I would like to start a new excel spreadsheet, create a column named Column1, and quickly fill in increments, (Column2, Column3 etc) up to Column500. Is there an easy way to do this?   Also is there an easy way to afterwards select all 500 columns and add 10 rows of data to all of them?


I'm trying to create a small program that read images from a file. I'm getting at least 2 errors pointed on the line 25 and 41, would you help me to fix these errors please? Thank You  public RoadSafetyAuthority() {     initComponents();      //dispaly fisrt image     showImage(pos); // Line 25 }  int pos = 0;   public String[] getImages() {      File file = new File(getClass().getResource("/Images/Information Signs").getFile());     String[] imagesList = file.list();     return imagesList; }         //display   the image by index     public final void showImage(int index) {          String[] imagesList = getImages();         String imageName =  imagesList[index]; // Line 41         ImageIcon icon = new             ImageIcon(getClass().getResource("/Images/Information Signs" + imageName));         Image image =  icon.getImage().getScaledInstance(jImageLabel.getWidth(),jImageLabel.getHeight(), Image.SCALE_SMOOTH);      }   private void jBtnNextActionPerformed(java.awt.event.ActionEvent evt) {                                               pos = pos - 1;      if(pos >= getImages().length) {         pos = getImages().length - 1;     }      showImage(pos); }                                          private void jBtnPreviousActionPerformed(java.awt.event.ActionEvent evt) {                                                  pos = pos -1;      if(pos < 0) {         pos = 0;     }      showImage(pos); }                    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at assignment1.RoadSafetyAuthority.showImage(RoadSafetyAuthority.java:41) at assignment1.RoadSafetyAuthority.<init>(RoadSafetyAuthority.java:25) at assignment1.RoadSafetyAuthority$3.run(RoadSafetyAuthority.java:157) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)


What's really the difference between:  env VARIABLE=VALUE command   and   VARIABLE=VALUE command   in bash-compatible shells?   Note: I've done some testing myself and I couldn't see any difference  Edit: An example would be  EDITOR=nano visudo   vs  env EDITOR=nano visudo

What is the difference between the command  $ env FOO=bar baz   and  $ FOO=bar baz   What effect does env have?


I am traveling from New York City to Skopje and I found cheaper tickets with Turkish Airlines from NYC to Istanbul then I'll have 1 hour and 30 minutes to catch my connecting flight to Skopje.   Is this enough time to get through all the security checkpoints at that airport since all of the attacks have increased security?

I found an excellent price for a flight to Chicago by Turkish airlines. My only concern is that the layover time is only 1hr 30min. Is this time sufficient to catch the next flight?


So I've googled around and tried a lot of stuff to fix this and none of it has worked. Half my RAM is hardware reserved, and I do some image processing of large collections of images, so I need that RAM.  Right now I'm running Windows 7 Home Premium on the following system:   Motherboard: MSI Z97S SLI Krait Edition CPU: Intel Core i7-4790K @ 4.00 GHz GPU: Nvidia GeForce GTX 980 RAM: G.SKILL Ripjaws X Series 32 GB (4 x 8 GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-1600C9Q-32GXM   I checked my motherboard's user manual before buying the RAM and it should be compatible.  I've tried going in to advanced boot options under msconfig and looking at maximum memory, and checked on unchecked I have the problem.  I have the latest BIOS updates through MSI.  The BIOS is seeing all 32 GB, as is Resource Monitor and Nvidia's Geforce Experience.  I really don't know what is up. Other posts have had people ask to see screenshots of the resource monitor and the  resource by connections window with Memory expanded, so both of those are here:

I have Windows 7 Home Premium (64 bit) OS installed. My motherboard is able to handle up to 32 GB of RAM.  I recently upgraded my computer to 20 GB of RAM, but the computer says installed RAM is 20 GB (16 GB usable).  I have four slots on the MB, and I installed two 8 GB RAM closest to the CPU and two 2 GB RAM on the remaining slots.  I made sure the RAM are the same (DDR3 1600 MHz)  What am I doing wrong? Why am I seeing this issue in my computer's Control Panel Home?  Just in case it matters, I also installed GTX 770 GPU 2 GB memory.  Here is the specification on my motherboard: .


I am getting an error while running following code:  public class TestClass {  public static void main(String[] args) {     var list = new ArrayList<String>();     list.add("Harry");     list.add("Marry");     list.add(null);     list.add("Larry");      list.removeIf(e -> e.startsWith("H"));     list.forEach(System.out::println);      } }   Getting following error:  Exception in thread "main" java.lang.NullPointerException at test/test.TestClass.lambda$0(TestClass.java:14) at java.base/java.util.ArrayList.removeIf(Unknown Source) at java.base/java.util.ArrayList.removeIf(Unknown Source) at test/test.TestClass.main(TestClass.java:14)   Why I am getting the unknow source error, it  works fine if I provide following lambda:  list.removeIf(e -> e == null);

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