Zorn's lemma states that: Suppose a partially ordered set P has the property that every chain in P has an upper bound in P. Then the set P contains at least one maximal element. Suppose $P$ satisfies the assumption to apply the Zorn's lemma. Does it then follow that given any $x \in P$ there exists a maximal element $m \in P$ such that $x \leq m$? ps also by chain I thought it was of the form $x_1 \leq x_2 \leq x_3...$ Is this correct? Thank you


I am trying to parse a Json file with a for loop cycle. The problem is when I try to get a key that doesn't exist on the array element. Here an example of the Json file:  { "data": [     {         "id": "1445168029094512_1863149637296347",         "created_time": "2017-02-12T11:00:18+0000",         "likes": {             "data": [],             "summary": {                 "total_count": 0             }         }     },     {         "shares": {             "count": 1         },         "id": "1445168029094512_1862494140695230",         "created_time": "2017-02-11T00:30:17+0000",         "likes": {             "data": [],             "summary": {                 "total_count": 0             }         }     }]  }   Code sample:  Gson gson = new Gson(); String responseData = response.toString();     JsonObject jsonFile = gson.fromJson(responseData, JsonObject.class); for(int i = 0 ; i < array.size(); i++){     Data data = new Data();     if(array.get(i).getAsJsonObject().get("shares").getAsJsonObject().get("count")!= null) {         jsonElement = array.get(i).getAsJsonObject().get("shares").getAsJsonObject().get("count");         element = jsonElement.toString();         data.setShares(Long.parseLong(element));     } }   The problem is that on the first element of the array the key "shares" doesn't exists, so this cause a NullPointerException. I dont know how to handle this, because this is on a for loop and sometimes it would have this key and sometimes no.   Thanks in advance!


When I gain control of a creature, do I also gain control of any auras or equipment attached to it?

What would happen if I 'd a creature that had been enchanted by a bestow creature and cast a spell to give it protection from the enchantment's color on it to remove the bestowed creature?  For instance:  They have just bestowed a  on a  and passes the turn. I use Portent of Betrayal to take control of the Asphodel Wanderer, attack and in the second main I cast Gods Willing to give the Asphodel Wanderer protection from black. Nighthowler detaches and where does it go, my control, opponents control or graveyard?  As an additional question, in the same vein:  What if I destroyed the creature while it was on my side? So change the gods willing to a hero's downfall in the example.  Relevent (under state-based actions):     704.5n If an Aura is attached to an illegal object or player, or is not attached to an object or player, that Aura is put into its owner's graveyard.


What is the meaning / significance of this Capacitor Symbol?

In the SanKen data sheet for an Off-Line PWM Controller (found ) they use, in several places, a schematic symbol for an electrolytic capacitor that I haven't seen before (see C6 in the image below).    The image was taken from Chapter 12. Reference Design of Power Supply. And from the Bill of Materials they list "C6 Electrolytic 22 μF, 50V".  What is the meaning / significance of the the three slanted lines on the capacitor symbol?


How much money do I need to show I have to visit the UK from Egpyt?

How much must be in my account when I apply for a visitor visa to visit my friend in the UK? I need bank statements for the last six months. I am in Egypt.


How to add more disk space to the local drive?

I am using Windows 8 Single Language 64 bit. I have > 350 GB Unallocated space in my hard disk. I want to add this > 350 GB unallocated space to C: drive where Windows is installed. I have checked using 'Extend Volume...' in 'Disk Management', which is currently disabled. Is there some simple way to do this? Kindly don't answer like backup your data and format your hard disk/drive, use third party software, etc. Kindly help me and ask for any further clarifications if needed.


Best amount of time to show a temporary alert message?

I would like to show a small, temporary pop-up alert to the user when they click on certain elements, e.g. a button that is disabled. What is the optimal amount of time to show a short message (2-10 words) to ensure that it can be read by most people before removing it? The message won't contain anything too complex and can be re-triggered if necessary.   My initial opinion after some brief experimentation is to show it for 1 second and fade away over a half second, but I suspect there might be a better rule-of-thumb - or even some research - on this subject.


Given a commutative ring $R$ and an epimorphism of free modules $R^m \to R^n$ is then $m \geq n$?

If $\varphi:R^{m}\to R^{n}$ is an epimorphism of free modules over a nontrivial commutative ring, does it follow that $m \geq n$?  This is obviously true for vector spaces over a field, but how would one show this over just a commutative ring? -----Edit Is there any way to use the following? If $\varphi : M \to M'$ is an epimorphism of left $S$-modules and $N$ is any right $S$-module then $id_N \otimes \varphi $ is an epimorphism.


i am trying to create random data so i can review an algorithm in cache policy. When i use the first code with rand() i get the same numbers every time i run my code(i knew this was coming) so i tried to use srand. when i inserted it i get different numbers every time i run the code but the same 10 numbers at my loop. What am i doing wrong to create random data??? After that i will make with zip ununiformed data. sorry my bad the loop is in main function: for(counter=0; counter<10; counter++){     printf("Number %d is %lf\n", counter, rand_val()); }  And i am using this function to create numbers. double rand_val(){  double rnum;  srand(time(NULL)); rnum=rand();  return(rnum); }


Why didn't Harry use a Time-Turner to save Sirius Black's life the second time?

In "Harry Potter and the Prisoner of Azkaban" Harry and Hermione saved two lives (Sirius and Buckbeak). And in "The Order of Phoenix" Sirius died by Harry's fault. Why didn't Harry use The Time-Turner in that time to take him back again?


There are 2 methods will callout and insert.I wrote 2 batches to invoke my method. I use the one invoke the other one to avoid System.CalloutException,and it's useful when i run them.  global void finish(Database.BatchableContext BC) {         Database.executeBatch(new TrelloChangeTaskBatch()); }   But when i create MockHttpCallout class and use Test.startTest() and stopTest() in my test class to run the batches.          Test.startTest();         Test.setMock(HttpCalloutMock.class, new MockTrelloHttpResponseGenerator());         Database.executeBatch(new TrelloBatch());         Test.stopTest();   it's still happened.     System.CalloutException: You have uncommitted work pending. Please   commit or rollback before calling out in test class   I tried to delete startTest() and stopTest() but  it's invalid.More than that i can't use @feature. Somebody told my isRunningTest() maybe useful, but i don't know how to use it in my case because there are no example in document.   Anybody know how to solve this problem in unit test? Thanks a lot!


I want to apply for a Schengen visa. I am planning to stay in Paris  for 3 nights and 7 nights in Switzerland.  Which visa do I need to apply for? If I choose France then is it possible that I can stay for 2 nights in France and 8 in Switzerland after visa approval.


I accidentally left 1tb of unallocated space, and decided to expand my /home partition(sda6) but somehow I cannot, tried all different "answers" here but none of them worked, so I have to ask directly..  I have Windows 10 + Ubuntu 17.10 dual-boot solution, with Ubuntu booting first at boot(selecting OS in GRUB), and using Gparted from Ubuntu ISO(set up via Unetbootin in Win 10).  Here I post also image if partitions - sorry for phone picture..  EDIT: I installed it using one big guide out there, if i recall correctly - sda1 is default partition which PC shipped with, should do something with Windows i believe, sda2 is Windows C: drive, sda3 is well..swap, sda5 is / (root fs), sda6 is /home, sda7/8/9 is /boot, /var and /tmp in this order. Hope that helps, Also updated screenshot now with mount points. PS: Sorry for language


I have an equation and I would like to uncover part of it at a time.  Take y = 2x + 3.  \begin{equation*} y = 2x + 3 \end{equation*}   I would like to uncover the 3  \begin{equation*} y = 2x + \uncover<2->{3} \end{equation*}   That syntax for uncover does not seem to do anything.


Built in FTP client (cmd + k) - can't upload files (Mavericks)

I have just found out that I can enter a built-in FTP client on my Mac by simply pressing ^ Ctrl + K. Great thing!   But after I have successfully connected to my server and a 'folder' with files located there appeared, it occurred that I can't upload files by simply drag & drop'ing them. When I checked the 'Get info' I saw that it is marked as 'You can only read', yet the ftp account itself is okay, because I could upload files there from dreamweaver (unfortunately I have only Windows licence for this app).  Why is it marked as 'You can only read' and how do I fix that?  Please help!  P.S. Could you explain it in an easy way? Because I'm new to Mac (just bought one few days ago).


Differentiability of $f(x) = \exp(-1/x^2), f(0) = 0$

Let $f: \mathbb{R}\to \mathbb{R}$ be defined by $f(x) = \exp(-1/x^2)$ if $x\neq 0$ and $f(0)=0$. I'm trying to show that $f$ is differentiable with continuous derivative in all points $x\in \mathbb{R}$.  Now, if $x\neq 0$ then $f(x) = \exp \circ g(x)$ being $g(x)=-1/x^2$. In that case, the chain rule can be used to see that $f$ is differentiable with derivative  $$f'(x) = \exp(g(x))g'(x) =\exp \left(\dfrac{-1}{x^2}\right)\dfrac{2}{x^3},$$  which clearly is continuous, since $\exp$ is continuous, $g$ is continuous and $g'$ is continuous on these points.  Now, when $x=0$ I don't really know what to do. By the definition I think it is not a good way, since we have  $$f'(0)=\lim_{x\to 0}\dfrac{\exp\left(\frac{-1}{x^2}\right)}{x}$$  and I'm unsure on how to proceed. Of course I could write $\exp$ as a series, but I don't know how to rigorously justify the manipulations that follows.  So how to show that this function is differentiable with continuous derivative?  EDIT: As pointed out in comments, if we set $h(t)=te^{-t^2}$ and $q(x)=\exp\left(\frac{-1}{x^2}\right)/x$ then if $s(x)=1/x$ we have  $$q(x)=h(s(x)).$$  Then it is intuitively clear that  $$\lim_{x\to 0^+}q(x)=\lim_{t\to \infty}h(t).$$  Now how to prove this rigorously? This change of variables involves one limit at infinity, and I'm unsure how to justify this.


How do I evaluate $\int{\frac{x^3}{x^2-1}dx}$ using trigonometric substitution?

How do I use trigonometric substitution to rewrite and evaluate $$\int{\dfrac{x^3}{x^2-1}dx}?$$ I have no trouble using long division of $x^3$ by $x^2-1$ which is $x+\dfrac{x}{x^2-1}$  to get the answer $$\int \left(x+\dfrac{x}{x^2-1}\right)dx=\int x\ dx +\frac12\int \dfrac{2x}{x^2-1}dx$$$$=\frac{x^2}{2}+\frac12\ln|x^2-1|+c$$ but I'm stuck on figuring out an appropriate trigonometric substitution to rewrite this integral. Any help would be appreciated!


How to recover the suspect mode database in SQL Server 2008?

To recover the database from suspect mode executes the following query.  EXEC sp_resetstatus ‘yourDBname’; ALTER DATABASE yourDBname SET EMERGENCY DBCC checkdb(’yourDBname’) ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE DBCC CheckDB (’yourDBname’, REPAIR_ALLOW_DATA_LOSS) ALTER DATABASE yourDBname SET MULTI_USER   Then getting      Check terminated. A failure was detected while collecting facts.   Possibly tempdb out of space or a system table is inconsistent. Check   previous errors   How to resolve this?


"You mean the guy who sells fruit?" or "Do you mean the guy who sells fruit?"

In conversation, which is correct:      You mean the one with the guy who sells fruit?    or   Do you mean the one with the guy who sells fruit?   My ESL student has asked me why we don't always include the auxiliary verb, "do," in instances like this. Why is it ok to say "You mean...?" as a question in conversation.   Why don't we need the auxiliary verb before "you"?


Why did Voldemort faint when he "killed" Harry?

This is a simple question: Did Voldemort faint because of the blood connection between him and Harry,  or because of the Horcrux inside Harry?  Those are the 2 things that connect Voldemort to Harry so I am assuming it's one of those reasons.


Do you think that adding a dash (-) in domain names would impact in SEO?

For example, do you think that google and other search engines make a difference when one domain name is like www.siteaboutsoccer.com and other named www.site-about-soccer.com ? Is it better to separate the keywords ?


How can you make an armor that when you wear it, it will give you resistance 255?

So with the /effect command, it can give either you or a random entity in Minecraft. However, you can actually make custom items in the game with effects when you wear it, here:                                So I want to make armor with resistance 255 so it would make you immortal, and pls put the command that you need to have armor with a custom nametag so the effect you appear and that's by using the "tag" command, thank you.


Adding space between a string (eg. HelloWord -> Hello World)

Let say I've a few string: CustomerName, CustomerID, ContactNumber,...How can I transform those string to Customer Name, Customer ID, Contact Number? Is there any built-in method can be used to achieve that in c#? Or should I do it one by one manually?


Workaround for horizontal scroll bar obscuring single line code markdowns

Occasionally this happens on chrome from a mac:    Single line code markdowns can thereafter be difficult to read. Clicking elsewhere on the page doesn't seem to 'undo' this. My workaround is to double click the code and paste it into the address bar where it's easily read. Is there a better way around this?   Or could either the scroll bar height be reduced or the height of the markdown box be increased?   Note: example


Why is it true that "I before E, except after C"?

I almost hesitate to ask this, because it is hard to believe no one else asked it; but it isn't showing up in the "similar titles" list.  What is special about 'C' that switches the 'IE' immediately following it?


This puzzle is taken from Mathematical Puzzles: A Connoisseur's Collection [Peter Winkler]. I don't understand the solution. Alice, Bob, and Carol arrange a three-way duel. Alice is a poor shot, hitting her target only 1/3 of the time on average. Bob is better, hitting his target 2/3 of the time. Carol is a sure shot. They take turns shooting, first Alice, then Bob, the Carol, then back to Alice, and so on until one is left. What is Alice's best course of action?  The solution is that Alice is better of missing than hitting Carol or Bob, so she should shoot into the air. Indeed, then Bob will shot Carol, and it can be shown that it gives the greatest probability of survival for Alice. But I wonder if Bob should not voluntary shoot into the air too, so that Carol will do the same, and no one be shot. If this is the case, Alice survival probability is 1. What do you think of it? What is Alice survival probability?


Can I check in at Schipol if I don't have my Thalys train ticket stamped?

I had a train ticket from Antwerp Central to Schipol Airport on Thalys in the evening, connecting to a KLM flight from Amsterdam to Mumbai, operated by Jet Airways the next day.  I collected the ticket in the morning but have missed the Thalys. As my flight is the next day I'm thinking of catching a train tomorrow and going to Schipol.  Will they let me check in?


Why does the texlive version of (lua-)latex not have the `--aux-directory`switch?

On Windows (MiKTeX), lualatex has a --aux-directory switch. On Linux (TeXLive) it does not. Why is that? If it is a downstream patch only present in MiKTeX, why is it not in upstream lualatex?  It seems like the same issue affects pdflatex and other engines


Why is it that friction apparently decreases with speed?

Whilst thinking of a trick where a magician pulls a tablecloth directly from under a full set dinner (a classic) I wondered why friction doesn't increase as speed does. I get that they use a pretty sleek table cloth but even still I don't see how friction doesn't stop this motion even further, for instance the quicker one speeds around a race track, the quicker the tires bald. Is it perhaps the traction of the two which has this effect of decreasing friction or is there another force in play?  ( if you think this question is off topic or unnecessary to the general public, just tell me so and I will edit it or delete it if need be, please do not vote as off topic or the like)


How to leave a campaign you've been playing for a long time?

I've been playing a campaign for a while, a year or so (I know this isn't 'long' in terms of some campaigns but it's too long to just drop and say 'it's not my kinda playing style'). It's an online campaign - I didn't know anyone in the group pre-campaign, and whilst I've spoken to a few of them outside of the game, they're all a lot closer with one another than I am with any of them.  I have a few issues and I managed to deal with it for a while because someone else was having issues with the same player (who would steam roll other players; demand we did what they wanted and refuse to accept anyone elses ideas) and then the player left and I thought that was the end of it but now I'm finding a different player has just stepped in to do the exact same. Player B is not quite so aggressive and doesn't steam roll others ideas but the entire campaign is now focused on them. Any NPC connection is to them, to the point that whenever I want to talk to an NPC I take them out of the room to talk to them (and 90% of the time the other players just say they follow and steam roll me there instead).  I play a rogue so the only occasion to do things whilst reasonably not having the party nearby/interrupting constantly is dungeons.  I want to leave. I keep trying to come up with reasons to stay but find myself stuck.  I have put so many hours into this campaign, and don't get me wrong I have enjoyed the campaign but I am tired, so tired of being interrupted and ignored and treated like an idiot for not knowing things (I've been playing for 2 years, most of them have been playing for 10+ years)  How do I leave whilst letting the DM know that there's no hard feelings whilst being respectful and not making him feel bad and making sure everyone else knows I don't hate them or whatever?   is about how to leave a game you've been playing for a short while. I felt a separate question was needed due to having been with this group for a long time and thus it needs more... care? Either way it's not as simple as just leaving quietly.


I am working on the following system. The RPi will turn off at a low battery signal emitted by the uC (through a GPIO pin), and after a few seconds, I need to be able to turn it off completely (cutting 5V) and then be able to turn it on again. I have thought of a mosfet, controlled from the uC (3.3 logic level) but I don't know which one I can choose and how can i connect it. any ideas?


Looking at the following screenshot of , you'll notice a slight difference in padding of inline code inside normal paragraphs and that of code inside of lists:    The same is true for inline code within comments appearing in my recent activity tab, e.g.    whereas in the original comment the padding looks correct:    Firebug said to me that there is a CSS rule for this:  .comment-text code {     padding: 1px 5px; }   (as well as p code for normal paragraphs), but this isn't applied to inline code in lists, nor in the activity tab.  I can imagine that this is done to save space within lists and the recent activity tab, but at least it doesn't look consistent.


How to hard reset specific files in git?

I am a bit new to git and would like some help with this. so here is what happened. I have a total of 6 commits in a branch, now I need to reset any changes made by me to specifically 2 files- abc.txt and xyz.txt  How can I achieve this? any help on this is highly appreciated. Thanks in advance.


I've recently started reviewing posts and I think the idea behind auditing reviewers is a good idea so as to keep things consistent.  However, during my review sessions, I've noticed that you can quite often spot the audit questions specifically due to a few giveaways with the data.  A couple of examples I've seen recently of "spottable" audits:   Username/rep missing (for some answers) thousands of views on a question that was posted "today"   In each of these cases would it not be better for some false data to be implemented so a more accurate audit test could be done?   I Know that in general for the audits false data is indeed given, but allowing a reviewer to view the original question in the live environment would kinda detracts from the audit somewhat, no?


Is natural projection a natural transformation?

Given a group $G$ and its normal subgroup $N$, there is a natural projection $\pi: G\to G/N,\ g\mapsto gN$. Question: Is 'natural projection' a kind of natural transformation? I know determinant is a natural transformation between $GL_n(-)$ and $(-)^*$, the functors $\bf\text{CRing} \to \bf\text{Grp}$. There is also a natural transformation between the identity functor of $\bf\text{Grp}$ and the factor-commutator functor $(-)/[-,-]$. However, I can't figure out which functors the 'natural projection' relates to. I have just begun learning category theory in order to gain a better understanding to some concepts in algebra, and I'm totally unfamiliar with the common techniques in category theory.


How to delete a specific line of a paragraph in AppleScript, while retaining the original format of the text?

I have a text variable of class text that shows something like this when it is returned:  " This is sentence 1. This is sentence 2. This is sentence 3. This is sentence 4."   I want to be able to delete specific lines from the text, without affecting the rest of the variable.  For example: delete {1, 3} to get this result:  "This is sentence 1. This is sentence 3. This is sentence 4."     The method described in this answer has a serious bug:    The linked method to delete lines in a paragraph actually converts all linefeeds in the text variable to returns. In other words, it is impossible to run this code more than once on the same variable.  For example, the following code:  set varText to " This is sentence 1. This is sentence 2. This is sentence 3. This is sentence 4." set varText to do shell script "sed -e '1d;3d' <<< " & quoted form of varText -- Employing the same method on the same variable: set varText to do shell script "sed -e '1d;3d' <<< " & quoted form of varText return varText   returns  ""  Since this method only works correctly if the lines of the text variable are the product of a linefeed (as it should), the problem is not that this method fails to perceive a return as a new line (as I had originally claimed in this question). The problem is that this code introduces a return to the text variable in the first place.    Thus, I want a solution that will allow me to run the same text variable through the solution more than once in the same AppleScript.  In other words, I am looking for a method to remove a specific line from a paragraph that does not have this bug and does not insert a return anywhere in the text.


how can I Put title of figure in the left of the figure as in the attached capture ?


How do I partially break a clipping mask border?

I’m looking for a non-destructive way of allowing an image to be partially "clipped" by a clipping mask, like so:    I view the above image as having three parts…   a Person (top layer; being clipped) a Pattern (background layer; being clipped) a Shape (bottom layer; does the clipping)   The Person and Pattern represent the crux of the matter, since the pattern should be clipped entirely, whereas the person is only partially clipped.    Here’s an example of how I achieved this (in an undesired manner):  #1  Here is my Shape, accompanied by the Pattern and Person that will eventually be "clipped" by said Circle:     (This is where my process becomes convoluted)   #2  First, I create a Duplicate Layer of my Person and horizontally align this layer with my Shape. Like so:    #3  Next, I use the magic wand to select my Circle.  #4  After which, I use the Magnetic lasso tool to add the top of my duplicate Person to the same selection.  #5  I then use this selection to create a Layer Mask for my Person.  #6  Finally, I merge these two layers into one shape. Here is what I have thus far:     (From here on it becomes simple)   #7  I used my (now rasterized) shape to as a clipping mask for Pattern…    #8  and finally my original Person…     (Fin)   Is there straightforward way to allowing my Person to "escape" my clipping mask and move around freely without Steps #2 through #6, which is limiting due to obvious disadvantages.   For example: If I decided I wanted to offset my Person, after my "clipping" shape had already been rasterized, I would have to start from the beginning since it would look like this…    Thanks for reading this far.


What does it mean when interface is used as an arguments in java?

For example i have this interface: public interface IceCream { double cost(); }  And class that implements IceCream: public class IceCreamDecorator implements IceCream{  private IceCream iceCream; public IceCreamDecorator(IceCream iceCream) {     this.iceCream = iceCream; // what is being tried to achieve in this constructor                                    }      @Override public double cost() {     return this.iceCream.cost(); // Why do we return value back to interface?  }   }  and finally this is class that extends IceCreamDecorator: public class VanillaIceCream extends IceCreamDecorator{  public VanillaIceCream(IceCream iceCream) {     super(iceCream); }  @Override public double cost() {      return 1.0 + super.cost();  }   }  Can someone please explain what the goal here? And what is going on behind the scene?


What is the Icon above Spell Steal? And how come I don't have that on my DotA?


In Mario Kart 8 the Wii U gamepad can display a map that will show a general overview of the current course, as well as your current position, and those of your opponents on the map. It will also list all players and give some information about them.  However, I don't use the gamepad to play, and I thus I can't see any kind of map. I personally always like to have a general idea of where I am to measure how far ahead or behind I am, and without the gamepad it seems I can't.   Is there any way at all to get a map to display on the TV, so I'm not tied down the the Wii U gamepad?  NOTE: I'm not particularly looking to have the player list onscreen, but if that is also possible, it's worth mentioning.


I am looking for a word that describes having a hunch that a bad event has happened before having any evidence of it

Kinda like if you were to wake up and just know that something is wrong, the only thing I can think of is maybe "Avant vu" which means (directly translated) "Before seen" and is a word like deja vu but other than that I can't think of anything.


How many ways are there to choose 3 subsets $A,B,C$ of a set $\{1,2,3...n\}$ such that $ A \cap B \cap C = \emptyset $

I believe that this is a pretty simple question in terms of combinatorics.  Assuming we have the following set $\{ {1,2,3...n} \}$  In how many ways can we choose 3 subsets (A,B,C) such that the intersection between all them is empty?   $ A \cap B \cap C = \emptyset $  Well, what I have so far is the following:  For A we have $ 2^n $ options (where n is the size of the set) Then, for B, the remaining options are exactly $ 2^{n-|A|} $ since we can choose only from subsets who does not have elements in common with A. And finaly, for C, since we already have an empty intersection, we can choose whatever subset we want and get the expected result $ \emptyset $.  But for some reason it feels like the numbers are too big. If we take for example the set {1,2}, then, according to my "formula", the number of options should be:  $ \binom{4}{1} * \binom{2}{1} * \binom{2}{1} = \frac{4!}{3!} * \frac{2!}{1!} *  \frac{2!}{1!} = 16 $  Does it make sense?


Show the title character limit when writing a title

I just ran into this while writing .  [I originally wrote:     you need a minimum of X reputation to comment on questions that are not your own, and on answers that are not to your own questions   But had to shorten it to:     you need a minimum of X reputation to comment]   First, it didn't tell me that I'd gone over the character limit for the title until after I had already tabbed out of the title field.  Second, it didn't tell me how much I'd gone over or anything. I had to copy-paste the text I'd written into my text editor in order to get some real-time feedback on the exact character count, to help figure out how to best shorten it.


I have a mesh and I need to chunk it into 256 equal pieces. How can I do it?


Is there a better way to use permutations?

I need to make a data structure of permutations. Currently I am using a generator that is very time expensive. Is there an alternative to a generator or some other way to systematically step through different indices in for a matrix? The other problem might be the function that now takes the strings and makes them a list of lists.  This is for an assignment problem.  def ourpermutations(iterable, r=None):     """     Input:     String or numbers separated by a space     optional= the length that the permutations must be      Output:     a generator of permutations     """      pool = iterable.split(" ")     n = len(pool)     r = n if r is None else r     for indices in product(range(n), repeat=r):         if len(set(indices)) == r:             yield tuple(pool[i] for i in indices)   def ExhaustiveSearchinputs(datamatrix):     """     Input:     datamatrix: numpy array      Output:     list of every permutation allowed and the time it took to run(this is to help with the optimisation and      testing process)      """      # Important starting values     start = time.time()     length = len(datamatrix)     thestring = ""      #Generate the permutations     for i in range(0,length):  #this is making a string of numbers from 0 to the size of the matrix -1         thestring += str(i) + " "     thestring = thestring[:-1]     listofassociations = list(ourpermutations(thestring,length))  #this was the function we made earlier      #these are the time calculation     end = time.time()     thetime = end - start     return listofassociations, thetime,thestring ##########PLEASE NOTE THIS FUNCTION TAKES 4 seconds once datamatrix is length 8 and takes 99 seconds for length 9    The output is correct just slow.


Which preposition should be used after the verb “request”?

Which is correct?   I would like to request you to refrain from shouting. I would like to request of you to refrain from shouting. I would like to request from you to refrain from shouting. Something else?


I would like to know if there are some open mathematical problems in General Relativity, that are important from the point of view of Physics. I mean is there something that still needs to be justified mathematically in order to have solid foundations? Please tell me.  Thanks!  Edit: The same question was asked (and answered from a mathematical perspective) on .


WebRequest HTTP error code without try-catch (VB.NET)

Summary: Is there a more elegant solution to the code block below? Details: I send an HTTP request to a server with WebRequest. The server might respond with 404 or another HTTP error code. It seems that the only way to handle these HTTP error codes is using try-catch, as in my code below. I thought error handling like this should only be for 'proper' errors, whereas I consider the HTTP error codes to be legitimate responses. For example, I'd (a) like to do a Select Case on myWebResponse.StatusCode (which might be 200, 202, 404, or something else), and (b) I don't want to have to explicitly re-throw or handle other WebExceptions that might occur; those should just go to whatever error handling happens to be in place at a higher level. My solution works, but would be neater if I could replace the whole block below with something like myWebResponse=myWebRequest.GetResponse(AcceptHttpErrorStatuses:=True). Is something like this possible, or does everyone use similar try-catch solutions? I suppose I should write a function that does the try-catch. Do others agree that the try-catch approach is ugly, or do you think exception handling is always appropriate for HTTP error codes? Try     myWebResponse= myWebRequest.GetResponse() Catch ex As WebException     If Not ex.Response Is Nothing Then         myWebResponse = ex.Response 'So that I can later do Select Case myWebResponse.StatusCode.     Else         Throw 'To re-throw proper exceptions like Timeout     End If End Try


visa for uk as a family member of EEA National

My question is that can i go to uk without any visa for a holiday with my husband and children under 18.all of them are european national.only i have an indian  passport but having a 10 year permanent card in spain as a  family member of eea natinal mentioned in my card.


Using \textstyle in an instance of align environment

The inverse question has been asked in different fashions in this site, see for example , , or . There have been questions that seem to address my own, such as , but when I tried using command \textstyle inside an align environment I don't get the desired result. How can I locally set math to display as inline mode, in particular with regards to limits in summations and integrals, within the align environment? Note that I want to avoid having to use commands such as \nolimits before each symbol. Rather, I would like to set locally the behaviour of an environment instance. The following seems to work: \begin{align} \textstyle \bar{x}=\sum_{i>0}x_i \end{align}  However, the following does not: \begin{align} \textstyle \bar{x}&=\sum_{i>0}x_i \\ \bar{y}&=\sum_{i>0}y_i \end{align}  In fact, as soon as I include an ampersand for alignment purposes, it seems the \textstyle command is ignored.


mysql> show columns in m like 'fld'; +-------+-------------+------+-----+---------+-------+ | Field | Type        | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | fld   | varchar(45) | YES  | MUL | NULL    |       | +-------+-------------+------+-----+---------+-------+ 1 row in set (0.02 sec)  mysql> show columns in i like 'fld'; +-------+-------------+------+-----+---------+-------+ | Field | Type        | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | fld   | varchar(45) | YES  | MUL | NULL    |       | +-------+-------------+------+-----+---------+-------+ 1 row in set (0.02 sec)  mysql> select count(distinct fld) from i; +---------------------+ | count(distinct fld) | +---------------------+ |               27988 | +---------------------+ 1 row in set (0.03 sec)  mysql> select count(distinct fld) from m; +---------------------+ | count(distinct fld) | +---------------------+ |               72558 | +---------------------+ 1 row in set (0.07 sec)   The above results seem reasonable based on what I know of the tables in question.  mysql> select count(*) from m where fld not in (select fld from i); +----------+ | count(*) | +----------+ |        0 | +----------+ 1 row in set (0.11 sec)   That last result does not seem reasonable.  some rows in m with fld not in i! Can someone please explain why I get 0 as the result?    For completeness (because I suspect it may be relevant), I'll also paste this result:  mysql> select count(*) from m where fld is null; +----------+ | count(*) | +----------+ |        0 | +----------+ 1 row in set (0.00 sec)     Edit: In reply to comments, I'm editing in the following info also, in case it helps someone answer my question:   select count(*) from m join i using (fld) yields 9350; with left join, 73087; with right join, 28872. select count(*) from i where fld is null yields 810.


How to run script automatically after specific time?

I have two scripts to run backup task, one is for full backup, another one is for incremental backup. I want to run full backup at specific time every day, and run incremental backup every 10 mins after that specific time. How can I use cron job doing this one?


How to prove the inequality $a/(b+c)+b/(a+c)+c/(a+b) \ge 3/2$

Suppose $a>0, b>0, c>0$.   Prove that:  $$a+b+c \ge \frac{3}{2}\cdot [(a+b)(a+c)(b+c)]^{\frac{1}{3}}$$     Hence or otherwise prove:    $$\color{blue}{\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}\ge \frac{3}{2}}$$


As history of thermodynamics say, it was a mystery that what is the required condition for a given energy conversion to take place? Like there are two possible events each conserving energy but only one is chosen. So, in order to resolve this Clausius introduced a quantity called  which was given by $\int dq/T$. But can I know the reason for which Clausius chose this integral or quantity, why not any other quantity (changes in whom, positive or negative, would decide the occurrence of a given event)? I hope there lies an explanation to this which does not use statistical mechanics.


I will first say that I fully understand how to prove this equation from the use of power series, what I am interested in though is why $e$ and $\pi$ should be linked like they are.  As far as I know $\pi$ comes from geometry (although it does have an equivalent analytical definition), and $e$ comes from calculus.   I cannot see any reason why they should be linked and the proof doesn't really give any insights as to why the equation works.   Is there some nice way of explaining this?


I couldn't find this anywhere, which is really strange, but I'm trying to wrap a curve, imported from a .svg made with a vector image program around a sphere to create the Earth.  Basically, this is what it currently looks like:    I'd like to wrap the curve of the outlines for the land around the sphere in the middle of the scene.  I don't mind converting the curve to mesh at some point in the process, but it will be beveled or extruded first.  I tried Lattice (which didn't work because I couldn't get a result that matched the sphere's shape), I tried Curve modifier with a circle curve but that only made the map cylinder-shaped, I tried Simple Deform, Shrinkwrap and Warp but couldn't get these to make what I wanted either.  When using Shift+W here's what happens:


Index out of range when traversing a single list using a nested for loop

I am working through a challenge and I'm trying to use a nested for loop to solve it.  The challenge asks in a given array of integers nums and an integer k, determine whether there are two distinct indices i and j in the array where nums[i] = nums[j] and the absolute difference between i and j is less than or equal to k.  This is my attempt:  def containsCloseNums(nums, k):      for i in nums:         for j in nums:             if (nums[i] == nums[j]) and abs(i-k) <= k:                 return True             else:                 return False   But this is the error I'm getting:  Traceback (most recent call last):   main.py3 in the pre-written template, in getUserOutputs     userOutput = _rundyxlc(testInputs[i])   main.py3 in the pre-written template, in _rundyxlc     return containsCloseNums(*_fArgs_zeutcbsrcmec)   main.py3 in the pre-written template, in containsCloseNums     if (nums[i] == nums[j]) and abs(i-j) <= k: IndexError: list index out of range   I don't see a reason for why I'd be out of index because I'm not incrementing beyond the list's length.  I appreciate all help but since this is a challenge, it is more beneficial for me to know why my logic didn't work as opposed to just spitting out an answer.


Bases loaded ball hit to the third baseman who attempts eventually tags the runner going to third for the 3rd out, but the runner on 3rd scores before he is tagged.  Does the run count?


Did any Quidditch games ever end by agreement of the Captains?

The game can only end when the Snitch has been caught, or by mutual agreement of the two teams' Captains; the latter is very rare, however, as one team would have to lose. (source: HP Wikia on Golden Snitch)   Is there an example from canon of this resolution to the game ever happening?


I understand 2D vectors in terms of displacement. For example, Bob moves 3m to the east and 4m to the north, the total change in position (displacement) equals 5m to the north east.  But I don't understand how 2D velocity vectors can be broken down into their horizontal and vertical components.


Let $\mathbb R$ be the field of real numbers. Its algebraic closure, the field $\mathbb C$, is a finite extension of $\mathbb R$, which has degree 2.   Are there other examples of fields (not algebraic closed) such that its algebraic closure is a finite extension?


is there a way to open browser using terminal?

Is there a way to open Chrome (or other browser) using terminal?   Something like: $ chrome www.google.com ?


I have my CD-key sticker with me but don't have the CD anymore. Is there anywhere I can download Windows XP SP3 installation disc from?


Find solution in integers of $x^3+x-y^2=1$

Find integers $x$ and $y$ such that   $$x^3+x-y^2=1.$$   My try:  $$x^3+x-y^2=1 \implies x^3+x-1=y^2.$$  Now, when $x^3+x-1$ is a perfect square?


I'm not able to install Wubi installer in my PC. When installing Wubi in my Windows 7, "Could not retrieve the required disk image files" appears

I have downloaded wubi as wubi.exe. when installing it in my windows 7, it shows an error. Please let me know the reason to solve this. even if i try to install it in my separate USB or DVD, it shows error as "global name 'sig' is not defined. How shall i proceed further?


Many people use "should of" and "would of" which is wrong, where "should have" and "would have" would be right.  (wrong) - You should of gone to the party.  (right) - You should have gone to the party.  Even more people use "if" in a wrong way, where "whether" would be right.  (wrong) - I don't know if she went to the party  (right) - I don't know whether she went to the party  It seems that at some point enough people can use some wrong grammar that they reinforce each other, and it becomes out of control.  My question:  Does this wrong grammar ever become right? If it does, at what point does it? Is it when the majority of native speakers use this wrong grammar?


I am using Xilinx' petalinux tools to build and use embedded linux. My host development machine is a VM running Ubuntu 14.04.1 LTS. My board is a Xilinx ZC706 with a Xilinx Z7045 Zynq SoC.  When issuing a certain command (petalinux-boot --JTAG -- Whatever/option/I/use), I get a warning back that says   rlwrap: $TERM is xterm but rlwrap can't find it in the terminfo database.  Expect some problems. Inappropriate IOCTL for device   I have googled and researched enough to know that rlwrap is a readline wrapper which is just wrapping up commands. I understand that $TERM is the environment variable that tells applications what kind of terminal (or more specifically, the terminal interface specifications) with which it must interact, and that terminfo is a database that contains the actual interface specs (/r /n color or not, whatever).  When I run ls /usr/share/terminfo/x there are probably 20 or 30 variants of xterm-XXXXX or xtermX, but there is not a file named xterm. I am currently of the opinion that this is probably the cause for the above warning.  When I get the above warning it is during the process of either downloading a bitstream to the FPGA part of the device or when using the Xilinx' XMD (xilinx microprocessor debugger) to download the linux image to the Processor side. These processes use an embedded JTAG module that is connected to my host via a USB cable.  How do I get/install a plain xterm entry into the terminfo database?


how many multiple image in css background

I just want to know how many images I can use as a CSS background or  any other way to use multiple background images in a class so that I could use multiple of images  I am trying to use this but it is accepting only two images  #example1 {     background: url(img_flwr.gif) right bottom no-repeat, url(paper.gif) left top repeat;     padding: 15px; }


What is the relation between Noether's theorem and uncertainty relation?

According to noether's theorem, "if a system remains invariant under some translation then there exists a corresponding quantity which remains conserved."  E.g.  the invariance of physical systems with respect to spatial translation (x)(in other words, that the laws of physics do not vary with locations in space) gives the law of conservation of linear momentum(p);  invariance with respect to rotation (Ø)gives the law of conservation of angular momentum(l);  invariance with respect to time(t) translation gives the well-known law of conservation of energy(E)  But surprisingly these related quantities are related to each other by some other way also( p,x and E,t) i.e.  uncertainty relation. Is this just a coincidence or some mechanism behind it?  Symmetry≈ conservation ≈ uncertainties?


simple deform modifier not working properly

I have some problem using the simple deform modifier, for some reason it doesn't rotate on the z axis making a circle but it does the stuff in the image


Profile pages throwing 500 error across few sites in the network

When I click on the "profile" tab of a user profile, it leads to 500 error along with the "Oops! Something Bad Happened" error message.    The issue seems to be present on MSE, MSO, SO and a few other sites.


Exit a bash script if an error occurs in it or any of the background jobs it creates

Background  I'm working on a bash script to automate the process of building half a dozen projects that live in the same directory. Each project has two scripts to run in order to build it:  npm install npm run build   The first line will fetch all of the dependencies from npm. Since this step takes the longest, and since the projects can fetch their dependencies simultaneously, I'm using a background job to fetch everything in parallel. (ie: npm install &)   The second line will use those dependencies to build the project. Since this must happen after all the Step 1s finish, I'm running the wait command in between. See code snippet below.  The Question  I would like to have my script exit as soon as an error occurs in any of the background jobs, or the npm run build step that happens afterward.  I'm using set -e, however this does not apply to the background jobs, and thus if one project fails to install it's dependencies, everything else keeps going.  Here is an simplified example of how my script looks right now.  build.sh  set -e  DIR=$PWD  for dir in ./projects/**/ do     echo -e "\033[4;32mInstalling $dir\033[0m"     cd $dir     npm install & # takes a while, so do this in parallel     cd $DIR done  wait # continue once the background jobs are completed  for dir in ./projects/**/ do     cd $dir     echo -e "\033[4;32mBuilding $dir\033[0m"     npm run build # Some projects use other projects, so build them in series     cd $DIR     echo -e "\n" done   Again, I don't want to continue doing anything in the script if an error occurs at any point, this applies to both the parent and background jobs. Is this possible?


I still remember my Yahoo! ID and password but the problem is when I login, I'm asked to provide the security question which I already forgot the answer. I don't have any other recovery ways like "alternate email" or "phone number".  I tried also the answers from this  but seems to be not applicable to me or not working.  Is there any email we can send for support? Since hotline numbers are for UK & Canada only I think.


How does one add a new line in a cell in a Google Spreadsheet?

I pressed return to make a new line in a cell of my Google Spreadsheet. That just moved the cursor to the next cell.   How does one add a new line in a cell?


Displaying sections in table of contents/side bar of pdf viewer

I wasn't sure how to search for this as I'm not sure what's it's called. Apologies if this is a duplicate though.  Sometimes when I open a PDF, the sidebar will list the table of contents and I'll be able to jump to a section or subsection by click on it's title in the pdf viewer's sidebar. Example:     Other times, when I open up a long pdf, all I see in the sidebar are just the pages, listed in order, but with no other sort of organization. Non-example:       How do I construct my paper so that it works like the first example?


When compiling the following try19A.tex file I get the following error as message:  Could not start Recompile Bibliography:PdfLatex: pdflatex.exe -synctex=1 -interaction=nonstopmode "try19A".tex   The file try19A.tex is:   \usepackage{filecontents}   \begin{document}  \begin{abstract}  \end{abstract}  \section{Introduction}  \newpage  \bibliography{TRY19}{}  \bibliographystyle{plain}  \nocite*   \end{document}   Where the file TRY19.bib is:  @article{kargupta2004fourier,   title={A fourier spectrum-based approach to represent decision trees for mining data streams in mobile environments},   author={Kargupta, Hillol and Park, Byung-Hoon},   journal={Knowledge and Data Engineering, IEEE Transactions on},   volume={16},   number={2},   pages={216--229},   year={2004},   publisher={IEEE} } @article{mukherjee2006privacy,   title={A privacy-preserving technique for Euclidean distance-based mining algorithms using Fourier-related transforms},   author={Mukherjee, Shibnath and Chen, Zhiyuan and Gangopadhyay, Aryya},   journal={The VLDB Journal—The International Journal on Very Large Data Bases},   volume={15},   number={4},   pages={293--315},   year={2006},   publisher={Springer-Verlag New York, Inc.} }


I have a plot, code . Now the problem I have is that because of the scale of y-axis it looks as if the plots are actually just 3 lines. Now what I want is that the y-axis is sort of splitted. Into a section ranging from -0.2 to 0.2 and a part ranging from -1.5 to -1.3...  So the y-axis would look like something   0.2 -|       |       | -0.2 -|       | -1.3 -|       |       | -1.5 -|       ----------------------------   Is this possible?  -- Okay I see there is a workaround for this using groupplots. But the plot that I give, I was already going to use this inside a groupplot environment with 2 other plots. So can I also use the suggested method in combinations with other normal plots which are combined in a groupplot.  My current setup, now I need the splitting for the third groupplot   \begin{tikzpicture}  \pgfplotsset{%   width=4cm,   height=4cm,   scale only axis,   every x tick label/.append style={font=\scriptsize\color{gray!80!black}},   xmajorgrids,   xminorgrids,   every y tick label/.append style={font=\scriptsize\color{gray!80!black}},   ymajorgrids,   yminorgrids }  \begin{groupplot}[%   group style={     group size=3 by 1,     horizontal sep=50pt,     vertical sep=40pt   } ]  \nextgroupplot[ xmin=0, xmax=800, xlabel={Time [\si{\second}]}, ymin=-0.000196069528802578, ymax=0.000140838393117182, ylabel={State error $\mathbf{x} - \mathbf{x}'$}, ]  \addplot [ color=red, solid, forget plot ] table[row sep=crcr]{ };  \addplot [ color=green, solid, forget plot ] table[row sep=crcr]{ };  \addplot [ color=blue, solid, forget plot ] table[row sep=crcr]{ };  \nextgroupplot[ xmin=0, xmax=800, xlabel={Time [\si{\second}]}, ymin=-3.50920459213846, ymax=2.98111910953132, ylabel={$||\delta(t)||/{\delta_0}$} ] \addplot [ color=blue, solid, forget plot ] table[row sep=crcr]{ };  \nextgroupplot[ xmin=0.5, xmax=800, xlabel={Time [\si{\second}]}, ymin=-1.35665432608546, ymax=0.168623669468375, ylabel={Lyapunov exponents}, ] \addplot [ color=blue, solid, forget plot ] }; \addplot [ color=green!50!black, solid, forget plot ] table[row sep=crcr]{ }; \addplot [ color=red, solid, forget plot ] table[row sep=crcr]{ };  \end{groupplot}  \end{tikzpicture}%   Let me also note that I need a common y-label, so this solutions to it should be able to work...


Is it always true that a solid object(geometrical figure) has less moment of inertia than its corresponding hollow one?

what I mean is that,if you have two objects(one hollow and other solid):  Lets say, a solid sphere and a hollow sphere and if you calculate moment of inertia of the two of them, you would find that moment of inertia is more in the hollow one than in the solid one.  So, is this concept i.e moment of inertia of a hollow object is more than its corresponding solid one always true?   Given:mass of both the bodies are equal  NOTE:THIS ISN'T A DUPLICATE QUESTION,ALL THE PREVIOUS QUESTION EXPLAIN IT FOR A PARTICULAR BODY ,BUT I'M QUESTIONING ITS VALIDITY FOR EVERYTHING(UNIVERSAL OR NOT)


Get the path to current page which has an overlay

I have a page on which there is an overlay. I'm able to get the overlay's path using current_path(). How can I get the page's path on which the overlay is loaded.  Any ideas ?  Thanks


I have laptop with dual boot(windows 8.1 pro + Ubuntu 16.04 LTS). when windows turned on after Ubuntu being in use, its time will change which become prior to the current time by 2 hours. For example: if the current time is 4:30 PM it became 2:30 PM and it is synchronized with the internet time. So why this happens? and how to fix that?


This might be a very naive question, but I wanted to know how I could give multiple users access to a single computer without making them root users. How would I give them limitted sudo access such that they could still issue commands like  sudo apt-get install epstopdf   I imagine this could be an incredibly stupid question as once root user access is given, they could do whatever they want. Therefore, is there any way around this? I am open to suggestions


How do I move the origin to the center of the object

I just can't manage to make the cursor and origin in the picture to go to the centre of my mesh, I press all the option on shift+s and nothing works.


I am a windows user who has switched to ubuntu 20.04 recently, so far I am satisfied with ubuntu. The solo problem is pdf editing i am unabe to find a decent pdf editor with text editing,can u suggest me any app? Or any other way?


Problems while sharing files from my data drive

This is my first post after switching to Ubuntu 14.04 LTS, desktop version, for my media server.  I am having problems creating share on an extra drive.  I can create and access shares on the system drive. But I have added a 2nd drive to hold my data (will probably RAID in the near future) however when I create a share using the GUI on this drive it is inaccessible and i keep getting access denied errors. Can anyone shed any light on what i am doing wrong?  All the permission and share settings are the same. I have also tried changing the permissions on the folder containing the shared folder but this doesn't have any effect


How do you customize the icon on a USB stick?

When I used my USB stick to install Ubuntu, the USB appears with an Ubuntu icon in My Computer.  Is it possible to customize this icon to something I want?


How do I prove this trigonometric inequality?

If $A,B,C \in (0,\frac{\pi}{2})$. Then prove that $$\frac{\sin(A+B+C)}{\sin(A)+\sin(B)+\sin(C)} < 1$$


Discrete Mathematics help: $2017^{2017}$ mod $13$

I'm not too sure how I would go about solving $2017^{2017}$ mod $13$.


How interpret RMSE figure (Cross Validation)

I'm using the Boruta package in R to select the best variables used then for my predictive model. Then I plotted the results from cross validation but I don't understand its meaning.    How can I Interpret this plot?


Can’t find file to patch at input line 3

I generated a patch using the diff command with the number of context lines as 1 (-c option). My patch file contents:  *** /home/sk/abc/def/src/klm/a.py 2015-05-18 16:25:50.348398554 +0530 --- /opt/abc/def/ghi/klm/a.py  2015-05-18 14:27:13.860503469 +0530 *************** *** 72,73 **** --- 72,74 ----               output, error, rCommand = "", "", "" +             import subprocess               rCommand = self.copyCmd % (self.executor_hostname, self.testId, self.testId)   When I tried to apply the patch using these commands,  cd / patch -p0 < sg.patch   I got this output,  can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |*** /home/sk/abc/def/src/klm/a.py  2015-05-18 16:25:50.348398554 +0530 |--- /opt/abc/def/ghi/klm/a.py  2015-05-18 17:10:48.368670076 +0530 -------------------------- File to patch:   Why doesn't the patch command take the file name in second line as the file to patch?


Failed to upload an image, "An error occurred at imgur"

Currently I'm unable to upload an image to anywhere on site: e.g. posts or chat.                Is this problem with Imgur?


Can "Reputation" be adjusted to allow for positive points being awarded to a very helpful/informative comment?

Sometimes the comments under either the question or the answer are the more valuable information. That is, an answer might be just satisfactory, but it's really the comments, and their additional information that proves to be the most helpful. Therefore, why not provide a means of acknowledging this?     Addendum  Originally intended to put this additional question/observation in the comments, but following-up on the answers, here, attempting to set a good example, I'll also incorporate it into the question. Afterall, I've lost all my accumulated reputation by just asking this one question, so it can't go any lower ...    Edit:  This is a different site, of course, and I've not yet figured out how to ask a process question on the BH site, but under their "Help Center" info on privileges and reputation, there's a statement that appears to indicate that one can receive a positive point on for a good comment" ...."When should I vote up? Whenever you encounter a question, answer or … a comment that you feel is especially useful, vote it up!"   Apparently, they accomplish this by "flagging" the comment as positive.      Edit:  Here's some more information, from that other site that allows for "comments" to be voted on:  Privilege: comment everywhere - Leave comments on other people's posts What are comments? Comments are temporary "Post-It" notes left on a question or answer. They can be up-voted (but not down-voted) and flagged, but do not generate reputation. There's no revision … privilege. How do I comment? Click the add a comment link under each post. Comments cannot be multi-line, so simply press enter to submit your comment. Note that comments support a small subset of …


How can I improve the look of an arrowhead at the end of a small-radius arc?

Arrow heads added to arches with small radius look ugly, they do not look symmetrical. Here is an example :      \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows.meta}      \begin{document}     \begin{tikzpicture}[>=stealth]     \draw[->] (0,0) arc (00:290:.15cm);     \end{tikzpicture}     \end{document}   This gives an arrow like (screenshot of 24x magnification):    What I would like to have is something like:    Is it possible, how?


I have a spring boot application that is throwing the following:     2018-01-14 01:02:56.863 ERROR 372 --- [io-8080-exec-14] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause     The application runs and behaves as expected. I've seen the error in the logs a few times but can't seem to see why/where its happening.  There is no other information in the log about the error.   I've had a look at the logs to see what happened before and after the error occurred and everything seemed fine.  I have also turned the log level to ALL and still the no useful error message.  Any ideas why I am getting this error and how I can get my application to throw more useful errors.  What stand out from the error message is with path [] threw exception. I'm not sure what [] is.


How can I use apt install on a computer with no network connection (from USB)?

I need to install network tools on a computer which has no network connection. It has working USB ports. Can I do this with apt? If so, how do I get network packages onto a USB stick?


Biblatex: Have only one author in citation -- multiple articles with same first author, different year

\documentclass{article}  \begin{filecontents}{test.bib} @article{author99, title = {A fine title}, year = {1899}, author = {An Author and Another Bauthor and Yeta Cauthor}, journal = {Madness} } @article{author05, title = {The best title}, year = {1905}, author = {An Author and More Dauthors and Whois Thisauthor and Heis Thatauthor}, journal = {Insanity} } \end{filecontents}  \usepackage[%   style=authoryear,   bibstyle=authoryear,   backend=biber,   maxbibnames=99,   maxnames=2,   firstinits=true,   uniquename=init]{biblatex} \addbibresource{test.bib}  \begin{document} \noindent \parencite{author99} \\ \parencite{author05}.  \printbibliography \end{document}     As you can see from the image, when the first author is identical, two of the authors are printed in the citation, even if the year of the articles are different. I don't want this, but only the one author, e.g.  (Author et al. 1899) (Author et al. 1905)   I've tried setting maxcitenames=1, but that didn't make any difference. Is it it possible to achieve this?  Edit: I'm running TeXlive 2010 on Windows 7, Biblatex version 1.4b with Biber 0.9.


What do you wish someone had told you before your first commute?

Four times a year I teach a workshop called "Be a Bike Commuter" for the local university's community education program.  It's mostly based on my experience and information from the League of American Bicyclists.  I am looking at making some changes for the next session and am wondering, from other experienced commuters, what things you wish someone would have told you that would have made your first few commutes more successful and/or enjoyable.


Please unban my account, reason: many low-quality questions

I'm starting to learn Java Swing, so I have many low-quality questions. But I don't know where to post low-quality (or newbie) questions? And I have some wrong tags (tag indexing) because I'm a newbie at Stack OverFlow and Java Swing. My account don't have the right to ask anymore...


Most Efficient Method to Find Roots of Polynomial

I am designing a software that has to find the roots of polynomials. I have to write this software from scratch as opposed to using an already existing library due to company instructions. I currently know three main methods of finding roots: the Secant method, the Newton-Raphson method and the Interval Bisection method. I will need to implement the most efficient one of these algorithms in my software, so could someone please let me know how these methods compare in terms of speed? Or if anyone knows any different methods that could potentially be more efficient the three mentioned above, could they please mention them too? Thanks.  It is currently my understanding that the Interval-Bisection method is slower than the Newton-Raphson one. However, I also know that the Newton-Raphson method does not always reach the correct answer due to asymptotes. In regards to this, would it be more efficient to mix two, or more, algorithms, for example, loop through the Newton-Raphson method for a set number of times and then switch to the slower Interval Bisection method after that in case the Newton-Raphson method never reaches an answer? If this is the case, which algorithms would be the most efficient to implement together? I do not currently know how the Secant method compares to the other two in terms of efficiency, so any insight on that would be appreciated too.  Thanks very much for your time.  Update  I would be using these methods to find the Internal Rate of Return (IRR). Therefore, I would not necessarily need to find the complex roots as I will be dealing with finance. However, it could be a very large polynomial depending on how many payments there are.


What does OPTION FAST in SELECT statement do?

I have done some digging on what the OPTION (FAST XXX) query hint does inside a SELECT statement and I'm still confused about it. According to MSDN:  Specifies that the query is optimized for fast retrieval of the first number_rows. This is a nonnegative integer. After the first number_rows are returned, the query continues execution and produces its full result set.  For me that does not make much sense but basically the query can get the first XXX rows really fast then the rest at normal speed? The Microsoft Dynamics query that got me thinking on this is: select pjproj.project,pjproj.project_desc,pjproj.customer,pjproj.cpnyid from pjproj WITH (NOLOCK) where project like  '%' order by project OPTION(FAST 500)  Can anyone explain exactly what this query hint is doing and its advantage over not using it?


Is there a word for someone dodgy with tasks or chores?

Someone evasive when it comes to tasks. Someone not around when there are chores to do.


Understanding The Math Behind Elchanan Mossel’s Dice Paradox

So earlier today I came across , and I am having some trouble understanding the solution. The question is as follows:     You throw a fair six-sided die until you get 6. What is the expected   number of throws (including the throw giving 6) conditioned on the event   that all throws gave even numbers?   Quoted from Jimmy Jin in "Elchanan Mossel’s dice problem"  In the paper it goes on to state why a common wrong answer is $3$. Then afterwards explains that this problem has the same answer to,   "What is the expected number of times you can roll only $2$’s or $4$’s until you roll any other number?"  I don't understand why this is the case. If the original problem is asking for specifically a $6$, shouldn't that limit many of the possible sequences?  I also attempted to solve the problem using another method, but got an answer different from both $3$ and the correct answer of $1.5$.  I saw that possible sequences could have been something like:  $$\{6\}$$ $$\{2,6\}, \{4,6\}$$ $$\{2,2,6\}, \{2,4,6\}, \{4,2,6\}, \{4,4,6\}$$ $$\vdots$$  To which I set up the following summation and solved using :  $$\text{Expected Value} =\sum_{n=1}^\infty n\left( {\frac{1}{6}} \right)^n 2^{n-1} = 0.375$$ Obviously this is different and probably incorrect, but I can't figure out where the error in the thought process is.  Any help on understanding this would be greatly appreciated.  A blog post discussing the problem can be found


The "duplicate answer" community flag is broken

The "duplicate answer" flag is currently showing like this:     Duplicate answers: 17872778 – Community♦ 5 hours ago   The link isn't being coded properly.


Are "m dot" sites a valid solution to Google's new "mobile-friendly" ranking algorithm?

Given a site which is not optimized for mobile (and not responsive), Google's new ranking algorithm, which is set to go into effect April 21, 2015, will result in a lower ranking.  If the site does not currently have an "m dot" site (m.example.com), would introducing a new site at the new domain solve the SEO problem? Or would it cause another one? Wouldn't that the pages to be indexed twice?  Responsive design is clearly the best solution for maintainability and certainly solves the "mobile-friendliness" problem, but I'm curious if introducing a mobile-only site would also solve the problem.


What private ip address space to use for a self-host VPN?

I have set up a private OpenVPN tunnel which uses the a 10.x.x.x private ip range as the client and server ip. I was wondering if that would cause any problem in big networks that use that ip range also, like for example hotels or conference networks.  I noticed trouble staying connected to the internet sometimes and I was wondering if that had anything to do with it.  What is the recommend ip address range to use in a VPN setup like this?   The setup is: 1 Server 2-3 Clients at once at most (I know that the IP range is overkill, but it was from a tutorial I did some time ago) OpenVPN (if that is anyhow important)


I have my encrypted Archlinux installed on my SSD. Now I have one HDD with Windows installed. But in my GRUB just Archlinux is shown (no Wonder, because I just installed Windows on the other HDD, GRUB doesn't know of that by now.).  My Question is, how do I properly add my Windows-HDD to GRUB, so that I can choose which to boot when starting?  I am a little bit afraid of destroying my GRUB so I can't boot my encrypted Archlinux anymore.  Thanks!


I applied and got approved for a Schengen visa with multiple entries to the Netherlands. On my application I noted a planned trip to Romania as well. Due to changes in itinerary (the trip is being paid for by my company) I'm now only traveling to Romania. Flights and hotels are booked and have been paid for by my company.  However, I have an extra weekend in Romania and I was thinking of flying to Rome overnight only: leave Romania on Saturday to travel to Rome, leave Rome on Sunday and travel back to Romania to complete my trip.  Can I use my Schengen multiple-entry visa despite not having the Netherlands as part of my itinerary anymore?


Segmentation fault (core dumped) with memset in char pointer in C++

I have two version of code. One works and the other doesnot.  Working code is a follows :   int main()     {         int i;         char str[] = "Hello World";         std::cout<<"The string value before memset is : "<<str<<std::endl;         memset (str,'-',6);         std::cout<<"The string value after memset is : "<<str<<std::endl;         return 0;     }   It gives expected output :  The string value before memset is : Hello World The string value after memset is : ------World   Now, I have another version of code in which I want to use the char pointer but this code is not working. I get the following output :  int main() {     char *str;     str = "Hello World";     std::cout<<"The string value before memset is : "<<str<<std::endl;     memset (str,'-',6);     std::cout<<"The string value after memset is : "<<str<<std::endl;     return 0; } The string value before memset is : Hello World Segmentation fault (core dumped)   I just could not figure on what is happening. Could you help me on this?


The question migration notice should be hidden after a certain time threshold

I frequently come across posts as old as 2016 or earlier that have big yellow migration notice boxes stuck at their bottom.  migrated from xyz.stackexchange.com Feb 4 '16 at 20:33 This question came from our P, Q, and R site for A, B and C.  These migration notices help out the people at the time the question was migrated, but I believe they lose their value after a few days (say one week). For example, I don't think that if I'm searching for the  in 2018, before showing me the answers, I first must be told that the post was migrated two years earlier... Of course, I can always ignore it and continue on reading the answers ... but that's not my point. My point is that the migration notice has served its purpose after a certain time threshold, and should be removed after that. I have seen "Bumped by Community Users" notices go away within a day or two after they've served their purpose. Then what is the rationale behind retaining post migration notices for years? Why not remove them after a certain time threshold? (obvious clarification: the associated migration event should still be retained within the post's timeline)


I want to ask if I can prevent sql injection with this code?  <?php $mysqli = new mysqli("localhost", "root", "", "lists");       if (isset($_POST['main'])) {     if (isset($_POST['sub'])) {     $main = $mysqli->real_escape_string($_POST["main"]);     $sub = $mysqli->real_escape_string($_POST["sub"]);      query . . . .      }     } ?>


java Recursion pass by reference or value?

I'm trying to solve a recursion/DFS/backtracking problem, which is return all possible subsets for a num; for example: Input: nums = [1,2,3] Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]] So I wrote the following code: class Solution { public List<List<Integer>> subsets(int[] nums) {          if (nums == null) return new ArrayList<>();          List<List<Integer>> result = new ArrayList<>();     List<Integer> numlist = new ArrayList<>();          dfs(nums, 0, numlist, result);          return result;           } private void dfs(int[] nums, int index, List<Integer> numlist, List<List<Integer>> set) {     if (index == nums.length) {         // set.add(numlist);     // ->>>>>>>>>> WRONG          set.add(new ArrayList<>(numlist)); // ->>>>>>>>> RIGHT          return;     }          // left:     numlist.add(nums[index]);     dfs(nums, index + 1, numlist, set);     // backtrack:     numlist.remove(numlist.size() - 1);  // delete the last char in the sb and backtrack     dfs(nums, index + 1, numlist, set); }  } I am very confused that, in the line I marked as WRONG and RIGHT, why is that when I use "set.add(numlist)" the result will be all empty which is [[],[],[],[],[],[]], but when I changed it to "set.add(new ArrayList<>(numlist))", the result is correct. Why do I have to create a new value copy of the numlist to be added to the result? I thought JAVA is always pass-by-reference, so everytime it should be the value of numlist to be added to the result, and then remain unchanged, but why the the result arraylist changed if I didn't create a copy of the value? I am very confused and thought it should be something related to reference/value.


Expectation of $max\{x_1,...,x_n\}$ when $X \sim U[0,\lambda]$

Let $X$ be a uniformly distributed random variable on $[0,\lambda]$. Let $\{x_i\}$ be a random sample of size $n$ from the population.  Is there any way to compute $E[max\{x_1,...,x_n\}]$ with this information?


php/pdo accessing mysql with variables in sql statement

On my php server side, the code below works fine. $sql = 'select make, model from cars'; $stmt = $pdo->query($sql); $row = $stmt->fetchall(PDO::FETCH_ASSOC); echo json_encode($row);  Here's what the front-end saw in the console (records php fetched from database):  But then when I tried to make the sql statements more flexible by using variables, I met with troubles. Here is the code. Neither this one: $sql1 = "select make, model from :tb"; $stmt = $pdo->prepare($sql1); $stmt->execute(array('tb' => 'cars')); $row = $stmt->fetchall(PDO::FETCH_ASSOC); echo json_encode($row);  Nor this one worked: $sql2 = "select make, model from ?"; $stmt = $pdo->prepare($sql2); $stmt->execute(array('cars')); $row = $stmt->fetchall(PDO::FETCH_ASSOC); echo json_encode($row);  I guess something was wrong with the execute statement, but could not figure this out. What did I miss here?


I do not make sense of the following argument. We want to determine the ring of integers of $\mathbb{Q}(\sqrt{d})$. An element $\alpha = a + b \sqrt{d}$ is an algebraic integer iff its minimal polynomial over $\mathbb{Q}$  has coefficients in $\mathbb  Z$. Expanding the minimal polynomial, this translates into the two conditions $$2a \in \mathbb Z \quad \text{and} \quad a^2 - b^2 d \in \mathbb Z.$$ How do we get the usual conditions depending on $q \equiv 1$ mod $4$ or not?


Can I take a face-up Locomotive card as a second card?

Can I choose to pick a face-up Locomotive as my SECOND card if I drew my first card from either the mystery deck, or by picking a face-up non-Locomotive first? Is that a legit strategy?


I have hidden and unreachable workspaces - how do I cancel them?

I have double workspaces, whether I enable them or not. If not enabled, some pdf's open in an unreachable hidden workspace [I know it's there because I can see the Document Viewer open in the launcher]. If I enable workspaces(4 normally), I see the 'double' ones when I go from e.g. no.1 to no.2 using ctrl+alt+arrow, but they're not listed in the launcher, so they remain unreachable. However, when I open some pdf's -not all of them- they open in a hidden workplace and I cannot reach it. Could anybody help? I wouldn't bother if all documents would open in a normal workspace, but as it is I don't manage to get to some of them...


Prove that $\sqrt{2}+\sqrt{3}+\sqrt{5}$ is irrational. Generalise this.

I'm reading R. Courant & H. Robbins'  for fun. I'm on page $60$ and $61$ of the second addition. There are three exercises on proving numbers irrational spanning these pages, the last is as follows.     Exercise $3$: Prove that $\phi=\sqrt{2}+\sqrt{3}+\sqrt{5}$ is irrational. Try to make up similar and more general examples.   My Attempt:     Lemma: The number $\sqrt{2}+\sqrt{3}$ is irrational. (This is part of Exercise 2.)   Proof: Suppose $\sqrt{2}+\sqrt{3}=r$ is rational. Then $$\begin{align} 2&=(r-\sqrt{3})^2 \\ &=r^2-2\sqrt{3}+3 \end{align}$$ is rational, so that $$\sqrt{3}=\frac{r^2+1}{2r}$$ is rational, a contradiction. $\square$  Let $\psi=\sqrt{2}+\sqrt{3}$. Then, considering $\phi$, $$\begin{align} 5&=(\phi-\psi)^2 \\ &=\phi^2-\psi\phi+5+2\sqrt{6}. \end{align}$$  I don't know what else to do from here. My plan is/was to use the Lemma above as the focus for a contradiction, showing $\psi$ is rational somehow.  Please help :)  Thoughts:  The "try to make up similar and more general examples" bit is a little vague.    The question is not answered  as far as I can tell.


Can you paint multiple texture layers simultaneously?

There are tons of textures on the web that provide different images for color/albedo, reflectivity, bump, normal maps, displacement maps, etc... Suitable for PBR shaders, for example.  I'd like to be able to paint on a mesh in 3D using stencil or clone such that all of the source layers get transferred to the appropriate destination layers subject to the UV map.  I.e. A single brush stroke transfers correctly transformed texture layers to my object.  Can Blender do this?  If not, are there any plugins for this?  I believe other programs (substance painter?) do this. But I'm hoping to stick with Blender for now?


How did this happen? Just yesterday I had 73 consecutive visits, and now I got one. What time zone are you using?    My participation just dropped by a 98%.


Is energy always a constant when the momentum is constant?

How is it that when momentum is constant, energy always stays a constant. For Example :- if $P = 0$ kinetic energy will also be 0. But in a explosion (that momentum is conserved) where the object was still before the explosion the momentum still should be 0. By using $E_k=\frac{P^2}{2m}$ energy also return as 0 Jules. If the $E_k=\frac{mV^2}{2}$ is used the kinetic energy comes as $E_k>0$ since kinetic energy is a scalar. How is that?


I know "to get onto the train", but is it correct to say "to get into the train"? If so, when do we have to use it?


If I am creating a board-game type game, does anyone know if it is legal to use others' names in the game?  ie. A playing card with "George Bush" or "Michael Jackson" on it.  Also, is it the same for brand names?


I have a list of names from a text file: MARY, PATRICIA, LINDA, BARBARA, ELIZABETH, JENNIFER, MARIA that I put into a String Array. I want to be able to search the array, but I am having problems. I'd like to have it sorted using a quicksort algorithm, and to search using the Binary search, but I'm trying to get something simple to work. If I searched "MARY" the result would be "MARY is not it"  public class NameSearch {  public static void main(String[] args) throws IOException{     // TODO Auto-generated method stub      FileReader woMen = new FileReader("names.txt");      String[] womenArray;     womenArray = new String[64];      BufferedReader reader = new BufferedReader(woMen);     String line = null;          for (int j=0;j<womenArray.length;j++)         {             womenArray[j] = reader.readLine();         }      reader.close();      int x = 0, y =0;       System.out.println("Name?");     Scanner keyboard = new Scanner(System.in);     String input = keyboard.nextLine();      for(int i=0;i<womenArray.length;i++) {         if (input == womenArray[i]) {             System.out.println("Found! "+input);         }         System.out.println(womenArray[i]+" is not it");     }   }   }


Coordinate system for accurately calculating areas of polygons that cross UTM Zones?

I have multiple polygons, all located offshore around the UK. I am trying to calculate the areas of these polygons in square kilometres, without splitting them by UTM zone.  Is it possible to do this accurately? I have been using World Mercator, but there are big distortions at this scale. If the polygons were limited to the east coast, say, I would use UTM31N. However, as they are all over the UK waters, I am unsure what to use.  Is there a coordinate system that covers this area? British National Grid does not extend far enough out to sea to be of use.


How to treat English questions which have code in a foreign language?

I know it's of course a dispute whether or not to support foreign languages on StackOverflow. However, my question is a bit different.  is in English, but has code with comments and identifiers in a foreign language. This limits the ability for people to leave answers.  Despite the fact that the example question I linked is poor regardless of language barrier, how should we [the users] handle such questions? Should we...   Accept them into StackOverflow and try to translate them? Cast close votes because we cannot understand to answer? Ask the OP to translate it to English for us? Wait for someone else to come translate it for us?   The same also applies when the code its self includes identifiers in a foreign language. In case this original question I linked gets deleted, here's the source from that question:  procedure TForm1.Button1Click(Sender: TObject); var   X: Integer; begin   for x := 1 to 5 do     if Sender = Botones[x] then //Valida el Boton que provoco el evento     begin       Codigo := x;   //Captura la posicion donde se eonctro el objeto que generó el evento       // ShowMessage(IntToStr(x));       Exit; //sale del bucle     end; end;


Transparency breaks on medium sized images

When I set my image to medium, the transparent background goes black, and detail is lost:  Normal:    Medium:    Small:    Using HTML <img> tag    And here is the image itself:


How do Prestige Classes that advance spellcasting interact with racial spellcasting ability?

For example Lets use the Marrutact from Sandstorm, it can cast as a 5th level wizard. if it then takes a prestige class that requires the ability to cast 1st level Arcane spells and advances arcane casting such as Abjurant Champion. assuming it meets all other prerequisites does the Marrutacts spellcasting improve when it takes a level in Abjurant Champion or does it gain no benefit?


Partially overwrote /dev/sda, can I recover anything?

I was messing around with my new hard drive, which only contains some personal files, and to check its write speed, I typed: sudo dd if=/dev/zero of=/dev/sda, /dev/sda/ being the new 2 TB connected to my Raspberry Pi.  Hopefully, I cancelled the command and only 11 MB have been written. Now disk content can't show up, and now parted tell me that the partition tree is like this:  |--- unallocated 8.00 MB |--- unknown 1.82 TB |--- unallocated 9.08 MB   Before, it was like this:  |--- ext4 1.82 TB   I don't know if dd did overwrite the first 11 MB of the disk, which means that the partition table have been totally overwritten, or random bits of the hard drive have been overwritten.  Now the hard drive is connected to my Xubuntu 14.04 laptop as /dev/sdb. I've tried gpart which is still running, and also testdisk without success.  Knowing that the whole disk was ext4 and that sector size was 4096, is it possible to recover the partition table without re-formating and make me able to access my files again (even if some have been corrupted/deleted)? Or the only solution I have is to use a file recovery tool, which would be tiresome because of the amount of data to copy stored on this drive?


FA that accepts odd number of $b$ and even number of $a$

I'm having trouble understanding the wording of one of my homework questions. Since this question appears early in the chapter, I have a feeling that I'm misinterpreting it.  Give a finite automaton that that accepts the following language: The language over $\{a, b\}$ of any even number of $a$'s and any odd number of $b$'s.   I'm having trouble with the usage of "and". Is it asking for an FA that accepts any string that is either an even number of $a$'s or an odd number of $b$'s, e.g. $aa$, $bbb$, $aaaa$, etc, but not accept strings like $aabbb$, $abbab$.   Or, is it asking for an FA that accepts any string that contains an even number of $a$'s or an odd number of $b$'s, e.g. $aabbb$, $ababb$, etc.   The first case is relatively simple, but I've been struggling with the second. I haven't even managed to convince myself that it is a regular language (because I haven't been able to come up with a regular expression that matches it).   My questions: Which interpretation seems most likely. Is the second case a regular language, if so, give a regular expression that recognizes it.


Clean program re-installation Windows 10

Currently, my user programs are installed in the standard folders C:\Program Files and C:\Program Files (x86), where I created subfolders for them. (Windows 10, 64 bit) Now I decided to make one C:\CustomPrograms folder (*), where I put all my installs for a better overview. Can I just deinstall the programs and reinstall them in this location, or will that create some data mess/residues (registry etc.)?  (*) For the sake of not having two different locations and for some programs not accepting spaces in file paths.  Plus, is there any need to separate 32-bit programs from 64-bit ones?


While it is understandable why he left the Jedi Order (mainly that he lost his faith in the Order and the Republic), is there any information on what led him to joining the Sith -  agents of chaos and the Dark Side of the Force?  His former Padawan, Qui-Gon Jinn, was famously killed by the Sith; in fact, this was supposedly the impetus for his finally taking the drastic step and leaving the Order entirely.  Additionally, much of the corruption and inefficiency in the Republic and the Order's latter day had been due to the machinations of the Sith; the knowledge of Darth Sidious' identity as Chancellor Palpatine would surely have strongly suggested this.  So what exactly led Dooku to forsaking the Light entirely and embracing the Dark as a Sith Lord?


I already tried Adobe Acrobat, Adobe Acrobat Reader and Sumatra PDF but all doesn't work..  The first time if I use latex -> pdf output profile it works. But if something is changed I still get the same PDF. If I then delete the PDF I get in Adobe Acrobat      this file cannot be found   Settings:   Path of executable: C:\PROGRAM FILES (X86)\ADOBE\ACROBAT 10.0\ACROBAT\ACROBAT.EXE   Command line command:   "%bm.pdf"   Forward search the same.   Also tried:   DDE command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]   with server:    acroviewA10, topic: control   (according to )  Who can help?  UPDATE: It seems that the miketex setting: install packages on the fly was causing the problem. I changed the setting from install packages on fly from "ask me first" to "YES". Now the pdf's are produced. The pdf reader opens and closes really fast however..but I can make pdfs! (took me several hours to fix this..)..


macOS: increase speed of accented characters popup when typing

Does anyone know a how to increase the speed of the accent pop up when typing on Mac?    I am learning a new language which involves using a lot of accents, and am finding myself wishing the popup would activate quicker.   I'm sure there's a terminal command for it somewhere, but I've been searching online and can't find anything!  (Image stolen from another post)


My PC has a build-in VT1828S chip. The connection between PC and monitor (which has built-in speakers) is through an HDMI cable.  Audio preferences shows 2 devices for audio output: analog stereo and RS880 Audio Device [Radeon HD 4200] digital stereo (HDMI).  When I plug a headphone in the rear jack and I choose the former device, everything works. When I choose the latter device, instead, no sound is heard, and video playback is too fast. It is as if video frames want to synchronise with the audio timing, but the audio timing information is wrong.  HDMI audio worked perfectly with Ubuntu 11.04, but stopped after 11.10 upgrade.


How to add a raster layer to Geoserver via the REST-API?

I want to automatically (via script) add new TIF-files on the harddrive to Geoserver as a new layer. I use the REST-API for that.  In the first step I added the TIF as a coveragestore, and that step works. So I use this JSON:  {     "coverageStore":     {         "name": "test123",         "type": "GeoTIFF",         "enabled": true,         "workspace":         {             "name": "TEST"         },         "url": "file:\/\/\/data\/test123\/test123.tif"     } }   I add that via wget and that part works:  wget --user=test '--password=test123' --header='Content-Type: application/json' --post-file=coveragestore-test123.json 'http://localhost:8080/geoserver/rest/workspaces/TEST/coveragestores'   So far it s fine. But now I want to publish that as a layer, and that doesn't work. My JSON here looks like this:  {     "layer":     {         "name": "test123",         "type": "RASTER",         "defaultStyle":         {             "name": "TEST:style123",             "workspace": "TEST"         },         "resource":         {             "@class": "coverage",             "name": "TEST:test123"         }     } }   And I send it with this:  wget --user=test '--password=test123' --header='Content-Type: application/json' --post-file=layer-test123.json 'http://localhost:8080/geoserver/rest/layers'   It comes back with an HTTP-error 405.  What do I do wrong?


ssh tunnel on ssh tunnel between Windows and two Linux machines

I have the following configuration and want to establish a tunnel on a tunnel. I read already the following topic:   My configuration:  Notebook --> Linux Server A --> Linux Server B   Notebook: Windows XP with putty Linux Server A and B: Ubuntu 10.10  I have a ssh connection with a tunnel from my notebook via putty to Server A. Now I want to establish a tunnel from Server A to B, so that I can connect with an IDE directly to my jboss on Server B.  This is the command I tried on Server A to establish a tunnel:  ssh -t -L 8080:localhost:8080 Server B -p 8822   This won't work.  Anybody an idea how to establish a working tunnel?


I am a businessman. I had applied UK tourist visa in 2017 along with my wife which were refused. Then later in December 2017 I had applied German Visa without my wife for business. Which were also refused. After that I changed my circumstances and re applied for UK tourist visa in 2018 which were approved for both of us. We visited UK and returned back after 10 days. We both have traveling in other more countries like Singapore, Turkey, Malaysia, Dubai, China etc  Now question is : I want to apply schengen Visa for tourist. My wish to visit German, France, Italy and Switzerland. should I apply again on German Embassy? Or other embassy Please guide on it  This question is NOT duplicate.  Some people told me that we should apply in German embassy because they refused me first. Other embassy will not approve my vise due to this. This is my question now should I apply again on German Embassy? Or other embassy


Can changing the position of a frequency adverb from the start to the middle part affect meaning?

Many frequency adverbs can be placed at the start, in the middle or at the ending of a sentence. In , in the answer  is analyzed the difference between the end placement and others. But what is the difference between the start and middle placement? Does this placement make any difference to the meaning?  Sometimes I go running. I sometimes go running. I go running sometimes.  Do those sentences mean the same or not? If not, is there any difference in feeling, mood or something else? Is there some context in which they have different use?


prove that $T''$ is not injective (difficult computation)

Let $T:c_0 \to c_0$ defined by $T(\{s_j\}_j)=\{s_{j+1}-s_j\}_j$. Prove that $T''$ is not injective.  I tried even knowing that $(c_0)' \sim l^1$,in fact if $F\in (c_0)'$ then there exist $s=(s_j)\in l^1$ such that $F=F_s$ and $F_s(t_j)=\sum s_jt_j$ , and similar for $(l^1)' \sim l^{\infty}$.   It's easy to prove that $T''$ is injective if and only iff the image of $T'$ is dense on $X'$. Maybe this is easy to prove.


"Timeout was reached" error when opening file with gvim

I am new to linux Ubuntu 12.04. Every time I open a file with the gvim editor it gives me following warning:  ** (gvim:4620): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached   What should I do to solve this problem?


tex4ht: conflict between `\[`..`\]` and `split` environment

MWE:  \documentclass{amsart}  \begin{document} split, also from amsmath, similar alignment to align, but the whole construct fits within equation (or other display math) and is numbered as a unit. \[   \begin{split}     a& =b+c-d\\     & \quad +e-f\\     & =g+h\\     & =i\\   \end{split} \] \end{document}   Run tex4ebook with error  [ERROR]   htlatex: ./test.tex   13   Package amsmath Error: \begin{split} won't work here.   If we replace \[ and \] by equation* environment, then there is no error. Note that we already have  \Configure{[]}{\begin{equation*}}{\end{equation*}}{}   in the configure file. I need to understand the reason (and hopefully a perfection) of this.


Data in two JTextFields don't equal each other when they are the same

So the problem that I am having is I am trying to have an account creation area of an app and whilst doing this they have to enter the password for the account twice. If the passwords are the same the account will be created otherwise they are told that they are different and asked to try again.  The problem that I am having is that despite the data in the two JTextFields being the same when they are compared using an == they are apparently different. The code that I have tried is shown below.      JLabel PasswordL = new JLabel ();     PasswordL.setText("Password:");     UserPanel.add(PasswordL,"cell 1 0,width 150,height 25,span 2 1");      final JTextField PasswordT = new JTextField ();     UserPanel.add(PasswordT,"cell 1 1,width 150,height 25");       JLabel ConfirmPasswordL = new JLabel ();     ConfirmPasswordL.setText("Confirm Password:");     UserPanel.add(ConfirmPasswordL,"cell 1 2,width 150,height 25,span 2 1");      final JTextField ConfirmPasswordT = new JTextField ();     UserPanel.add(ConfirmPasswordT,"cell 1 3,width 150,height 25");       JButton AddNewUser = new JButton ();     AddNewUser.setText("Insert");     AddUserButtonPanel.add(AddNewUser,"cell 0 0,width 100,height 25");     AddNewUser.addActionListener(new ActionListener () {          public void actionPerformed(ActionEvent e) {              System.out.println(new String(PasswordT.getText()));             System.out.println(new String(ConfirmPasswordT.getText()));              if (new String(PasswordT.getText()) == new String(ConfirmPasswordT.getText())) {                         AdminConsole AC = new AdminConsole ();                     } catch (SQLException e1) {                         // TODO Auto-generated catch block                         e1.printStackTrace();                     }                 } else {                     new ErrorWindow("This account already exists!");                 }              } else {                 JFrame Error = new JFrame();                 Error.add(new JLabel("The Password do not match!"));                 Error.setSize(200, 50);                 Error.setLocationRelativeTo(null);                 Error.setVisible(true);             }         }     });   I have tried both with and without the use of new String () and now I have run out of ideas. Any advice would be greatly appreciated thanks.