Recently, I applied  to what I wanted (see below).   But I want to arrange this diagram from left to right in order to put into my book, that is, put the topmost box at the left side of page and stack childs upside down, how could I do it?  The following is the Modified code.   \PassOptionsToPackage{x11names,rgb}{xcolor} \documentclass[border=5pt,tikz]{standalone} \usepackage{forest} \usetikzlibrary{arrows.meta, shapes.geometric, calc, shadows} \usepackage[default]{cantarell} \usepackage[T1]{fontenc} \colorlet{linecol}{black!75}  \begin{document} \pgfkeys{/forest, my rounded corners/.append style={rounded corners=2pt}, } \begin{forest} for tree={   font=\sffamily,   line width=1pt,   draw=linecol,   drop shadow,   fit=rectangle,   edge={thick, color=linecol, >={Triangle[]}, ->},   where level=0{%     l sep+=5pt,     calign=child,     calign child=2,     inner color=PaleGreen1!80,     outer color=PaleGreen1,     align=center,     my rounded corners,     for descendants={%       calign=first,     },   }{%     where level=1{%       inner color=Green2!80,       outer color=Green2,       my rounded corners,       align=center,       parent anchor=west,        tier=three ways,       for descendants={%         child anchor=west,          parent anchor=west,         align=left,         anchor=west,         inner color=MistyRose1!80,         outer color=MistyRose1,         edge path={           \noexpand\path[\forestoption{edge}]           (!to tier=three ways.parent anchor) |-           (.child anchor)\forestoption{edge label};         },       },     }{}%   },   }   [Nonlinear Stochastic Systems [Robust Control and Filtering   [Chapter 2\\Robust Stabilization     [Chapter 3\\ Robust ${H}_\infty$ Control       [Chapter 4\\ ${H}_\infty$ Filtering and Control[Chapter 6\\ Robust Filtering       ]       ]     ]   ] ] [Applications to Special Systems [Chapter 5\\Gene Regulatory Networks     [Chapter 7\\ Networked Control Systems       [Chapter 8\\ Complex Networks]     ]   ]] [Gain-Scheduled Method   [Chapter 9\\  Probability-Dependent Gain-Scheduled Control     [Chapter 10\\ Probability-Dependent Gain-Scheduled Filtering       [Chapter 11\\Probability-Dependent ${H}_\infty$ Synchronization Control ]     ]   ] ] [Razumikhin Theory   [Chapter 12\\ ${H}_\infty$ Analysis     ]    ]  ] \end{forest} \end{document}


Prove that if $p$ and $p+2$ are both prime integers greater than $3$, then $6$ is a factor of $p+1$.  Computing a few primes greater than $3$ modulo $6$ shows the following pattern $5,1,5,\dots$ Thus $$\begin{cases}p\equiv1,5 \pmod{6} \\ p+2 \equiv3,7 \equiv3,1 \pmod{6}\end{cases}$$ Also $p+1 \equiv 2,6 \equiv2,0 \pmod{6}$. I'm not sure how to continue from here... I would like to use modular arithmetic to show this. Is it necessary to remember that every prime can be written as $6n+1$ or $6n+5$ here?


%RANDOM% environment variable is giving a single number

I’m having trouble with the %RANDOM% environment variable in the following command:  FOR /l %%A in (0,1,30) do set /a results=1600 + %RANDOM% %% (1900 - 1600 + 1) && echo %%A--!results!   I expect this output:  0--1656 1--1743 2--1629 3--1887 …   But I’m getting this:  0--1656 1--1656 2--1656 3--1656 …   The %RANDOM% variable is supposed to return a random number, but it’s giving the same number. What’s the problem and how can I fix it?


There Must Be A Way: Trimming Groups Of Lines To Fit Complex Shape - Illustrator

This doesn't seem complex, and I'm not a beginner but can't figure it out or find answer online.  I want to be able to trim a series of lines to fit in a complex shape (lay the shape over a group of stroked paths and trim them so only segments that are within the shape remain). I want actual truncated line segments left so that I can apply strokes, widths, profiles and brushes to what's left.  I understand clipping masks (but they don't leave new endpoints for width/brushes) and envelopes (which bend/distort lines to fit) and have tried all of the pathfinder options with no luck. I can of course just use scissors and cut-cut-cut at each intersecting point, but this isn't a one-off shape it's a process that I want to be able to repeat often across several works.  Essentially it should just be a clipping mask that cuts/deletes line segments outside it and leaves actual line segments (not shapes) behind...seems simple and an obvious function, but I'm stumped. (I'm in CS6)  Thanks for any help!


Opinions sought. I vaguely remember that the expression "This is right" (meaning "I agree with what you just said") appeared in the 1970s. And I remember it because, if I remember correctly, it replaced in no time the till-then familiar phrase "That's right". Forty years later, it's normal to see sentences like... this:  "...inflation reached 200 percent. This led to a major upheaval..."   ...whereas, it seems better/more logical to use "...200 percent. That led to..." - because "this" suggests something that's coming (e.g. that example above), while "that" has more a sense of what just passed ("I'll catch this bus, I missed that bus").    But then, dictionary.com says "this" means "used to indicate a * just mentioned", while "that" is "used to indicate a * mentioned before". So "this" should be the first choice. But it sounds wrong to my ear.


Do not include own questions in mails from subscribed tags

When you subscribe to a tag you get mail about new questions for that tag. If you yourself write a question with a tag you are subscribed to this question will be included in mail updates about that tag. This seems unnecessary since you already know about questions you have written yourself. It is not that bad if you get mail updates about a tag where your question is one of several but it is annoying for tags with less traffic where it can happen that you get mail updates for a tag where your question is the only listed one.  I suggest to either simply not include own questions for in mails from subscribed tags or to provide an option to not include them.


Deleting comments quickly results in "cannot vote on comments for 5 seconds"

Strangely, when deleting a list of comments on my post (my comments) it says something along the lines of not being able to vote on comments for five seconds.  Since there was only three comments total (two mine, one another user's) even if I did vote, it wouldn't make sense because there is only one comment that I'm allowed to vote on, and since not being able to vote every 5 seconds implies that there was more than one comment that I could vote on, which is false.  I'm using the latest version of Google Chrome on Mac OS X, if that helps.  EDIT: Just found this question:


Is it possible to use SIM900 GPIO to control relays without using external MCU?

From the product manual / reference guide it looks like SIM900 / SIM900A is already equipped with 12 GPIOs. But could not find information on how to use these GPIOs to control relays directly, instead of routing them through additional MCUs. Most examples on the net (such as ) use the SIM900 just for read/write, completely ignoring its GPIO capabilities. Any pointers on how to use the GPIOs of SIM900 as control signals directly - please help. Thanks in advance.


Are keywords in URLs good SEO or needlessly redundant?

A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable.  My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy.   suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings.  I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves.


Unable to use system restore (0x080070026)

Main part of the issue is self-explanatory, but there is a lot to add in for where this came from. Originally I was doing this because I (accidentally) Updated the Realtek audio drivers and it made many things worse - mic quality was awful (constant buzz) and audio quality is worse on the headset. I tried using system restore, which on its initial use gave me the error 0x8007045b. What i have tried doing: First thing I found was a website that basically linked this error to a mistake in windows that closed a service, then wanted to use it so caused an error. the fix for this was meant to be to run system restore in WinRE. I then found that it didn't exist on my PC, so I found an article for pulling it out of an image file downloaded through the media creation tool, and then after that ran system restore, which then gives this error instead. Another thing to note is that i have tried two separate restore points and both bring up the same error. Also I have used SFC and DISM for error checking and repairing errors.


Using QGIS and PostGIS for multi-user capabilities, similar to ArcSDE for ArcGIS

I have previously used ArcSDE technology with Microsoft SQL Server to allow for multi-user database editing.  My ESRI licenses have recently ran out and I have been using QGIS for my GIS work. I am now thinking of using QGIS to create a database on Postgres/PostGIS so I can give multiple people in my department the capability to edit and create GIS data on the same database. I am hoping to use only free and open source software for this and was wondering if I would need a server as well to fulfil these requirements?


Why is jQuery not Detecting Dynamically Added Classes on Click?

Noob question I apologize, but I have been struggling with this for way too long jQuery(".mutiple_form_navigation_link > div" ).on( "click", function() {         jQuery("#shipping_customer_details .validate-required").each(function(){             console.log(jQuery(this));                 if (jQuery(this).hasClass('wooccommerce-invalid')) {                     alert('invalid shipping');                 }         });  Looking at the raw html when clicking <p class="form-row form-row-last validate-required validate-Select woocommerce-invalid woocommerce-invalid-required-field showErrors" id="shipping_last_name_field" data-priority="">  It has the class woocommerce_invalid Looking at the console.log in my jquery it says p#shipping_last_name_field.form-row.form-row-last.validate-required.validate-Select.woocommerce-invalid.woocommerce-invalid-required-field.showErrors  Showing woocommerce-invalid is a class... yet hasClass is not triggering because apparently woocommerce-invalid was not there on DOM load, but rather after input validations? How do I modify my on("click") jQuery to detect the class in the DOM...?


Correlation/relationship between map layers in R?

I have a point shapefile concerning asthma instances, a point shapefile concerning rainfall, and a polygon shapefile with population information i.e gender, ages etc.  I would like to research if there is a spatial relationship between the location of asthma and rainfall, and also if there is a spatial relationship between instances of asthma and  the population data. Ultimately I would to be able to say:     There are/are not higher instances of asthma in areas that receive more rainfall and/are there are/are not higher instances of asthma in areas with more men/women.   I have done research on the areas of spatial correlation and spatial autocorrelation which I assumed would be related to this area. However, it seems these only correspond to data within one map layer i.e. you cannot technically look for spatial correlation between two map layers.   Is there any way in R to assess correlation/a relationship between two point layers, or a point layer and a polygon layer?


Analysis: Prove divergence of sequence $(n!)^{\frac2n}$

I am trying to prove that the sequence $$a_n = (n!)^{\frac2n}$$ tends to infinity as $ n \to \infty $.  I've tried different methods but I haven't really got anywhere. Any solutions/hints?


I need to prove: lcm(a,gcd(b,c))=gcd(lcm(a,b), lcm(a,c))

I need to prove:  $LCM(a,GCD(b,c))=GCD(LCM(a,b), LCM(a,c))$ However, I need to prove it without min and max.


Handling datasets with categorical variables of many levels


The value of the series $\sum_{n=1}^{\infty} n/2^{n}$

What is the value of the series  $$\sum_{n=1}^{\infty} \frac{n}{2^{n}}?$$  It is neither geometric nor a telescopic series. How do we approach such kind of series, given that we know that they converge?


What does apt-get install do under the hood?

What does the apt-get install ... command do?  When I enter apt-get install ... command, there are some texts appearing on the screen, but that does not have enough information for me. I want to know if any file is created / edited, any service is started and other activities...  Is there any .sh file executed when the apt-get install ... run? If so, how can I see the content of that sh file?  The reason for this question is recently I tried to install tomcat7 with apt-get install tomcat7. Everything works fine until I install tomcat7-admin (manager web application), the server became unresponsive to any request. I tried this many times, and this always happen.


How should I interpret advisor overly positive feedbacks?

I am currently in the writing phase of my master thesis in a US-based university. Almost all of the feedback I am receiving from my advisor is either linguistic suggestions or just positive supportive kinda of a language. I am the primary investigator from my thesis.   How should I interpret this positive feedback and lack of critical comments? Could it indicate that the work is so weak and not even worth corrections? How can I direct their responses to be more critical?


Instantiate and return an object in one line

The code below, which works, shows the returning of an object when the object is instantiated. Why does this work? In my mind, I can understand a "Return new ...", or instantiate Dummy1 on a separate line and "Return Dummy1".      public class TestClass1     {         public string s = "test2";     }      public TestClass1 GetTestClass()     {         TestClass1 dummy1;         return dummy1 = new TestClass1();         //  Why is this valid?     }


Put the content of a binary file within filecontents environment

I would like to include the content of a binary file within filecontents. Is there any way to do so? My MWE is as follows: \documentclass{article} \begin{filecontents}{file.txt}     CPYA 4,3268 195 W64 #     s         ÷˙÷˙‰    Y           Z*oG8#@      á~  a>  ‹-  ‚  î9  ˘o  É}                                          x                 “          @˙ P   Ä        ÷ !Q                      đ?      đ?             0                        Book1_A                  ÎM                                   @   \end{filecontents}


Prove simple inequality probably with exponentials

I can't prove  $$\frac{1+nx^2}{(1+x^2)^n} \leq 1$$  for $x,n>0 $  I know this is an easy question, but no matter how many exponential inequalities I try to use I can't crack it. Is there some sort of trick?


How is sin 135 calculated on a calculator?!?

When I type in sin(45) into a calculator I get the value 0.707. When I type in sin(135) into a calculator I also get 0.707. What is the procedure that creates the same value in both cases? Is it some if, then function? ie if x>90 minus 90 sort of thing?? I hope I am clear with what I am asking.  Any insight would be greatly appreciated. Many thanks.


Total Area of different polygons in a table

I have a single table in which there is a column "Name" and want to find the total area of all those polygons where value of Name is Cardiff. I have more than one polygons with this name.


What is the name of the ambiguity in the phrase "I want to visit clubs with attractive women"?

I want to visit clubs with attractive women.   This phrase can be interpreted in two ways:    I want to visit clubs myself, but the clubs I visit should have  attractive women.  I want to take attractive women to clubs; the clubs themselves may  or may not already have attractive women.    Is there a name for this ambiguity? It seems fairly common. I want to  say "dangling participle", but I'm pretty sure that's wrong.  Is this the equivalent of Grouch Marx's "I shot an elephant in my pajamas... how he got into my pajamas, I'll never know"?


As a car turns around a circle, why does the force of static friction point towards the center of the circle

A car moves along a flat, circular road.  It has a tangential velocity to the road, but the car tires change direction and the car experiences a force of static friction causing a centripetal acceleration towards the center of the circle.  Why does the force push it perpendicular to the direction of the velocity?


determining an integral using only derivative properties of two functions

let $\alpha'(x)=\beta(x), \beta'(x)=\alpha(x)$ and assume that $\alpha^2 - \beta^2 = 1$. how would I go about calculating the following anti derivative : $\int (\alpha (x))^5 (\beta(x))^4$d$x$.  I have tried many different methods with no success. Firstly, I tried to write the integral in terms of one of the variables (using the first condition) and then using integration by parts. This resulted in a very complex answer which I abandoned midway. Additionally, I have tried to use an appropriate U-substitution which unfortunately does not seem to work. This is because when I take the first derivative of my u - due to chain rule - I get a product with one variable being either $\alpha'(x)$ or $\beta'(x)$ and as a result I cannot continue further with the integration due to not being able to get the entire integral in terms of only u. Any help would be appreciated. Thank you.


Determine which app is drawing on top of other apps?

Is there a way to determine which application is drawing on top of other applications?  For example, Facebook Messenger app can draw the chat bubbles on top of everything, but how do I know which app is doing this?  My problem:  I have an app which is drawing ads on top of everything and I wanna know which app is doing this. Not just to uninstall it, but to warn everyone that uses this app. (I didn't install any application recently and I already verified the recent updates.)  I tried to use the Dump View Hierarchy for UI Automator from the Android Studio, but it seems that the applications that draw on top can't be selected this way.  (Click image to enlarge)


How does faster than light travel violate causality?

Let's say I have two planets that are one hundred thousand lightyears away from each other. I and my immortal friend on the other planet want to communicate, with a strong laser and a tachyon communication device.  I record a message on the tachyon communication device and release the message at exactly the same time as I activate the laser, both of which are directed to the other planet which is one hundred thousand lightyears away. Say it is the year 0 for both of us at the time I did this.  If tachyons existed, then the message would arrive to my friend before the photons in the laser. It would arrive, say, a thousand years earlier. From my vantage point, that message will arrive to her at year 99,999; the same would be true for my friend's vantage point. However, she will only see the laser at year 100,000.  So since she got the message at year 99,999, she immediately sends me a reply back going through the same procedure as I did. She records a message and releases it at the same time as the laser. The tachyons will arrive 1,000 years earlier than the laser, so for me, I will receive the message at year 199,998. I will receive the laser, however, at year 199,999.  It seems to me that communication this way does not violate causality. I will still have received the message after I had sent it.   If tachyons truly violated causality, though, I realize it should arrive at year -1 for her, and so she can reply to me at year -2, which would mess me up by year 0 as I will ask her how she knew I was planning on sending her a message before I sent it. I could send her a different message, which she would end up receiving at year -1, and will end up confusing her as she would have received one message asking her out, and the other asking her how did she know I was asking her out. She then decides I am crazy and sends me a message at year -2 that she does not want to date me, and so she will have both turned me down and entertained me before I have even asked her out.  On the other hand, let's go back to year 0 and add a third device to our list: an Alcubierre drive. After I send out the message and the laser, I get impatient and do not feel like waiting 99,999 years, so I get on my Alcubierre drive spaceship and arrive on her planet at the same year 0. My friend is not in her office, so I leave a note to her also immortal secretary saying I dropped by and that she should expect a message for her in year 99,999.  I then get back on my Alcubierre drive and land back on my planet, still on year 0. Meanwhile, the tachyons and photons I sent out are still racing to arrive to her. By year 99,999, she receives the message just as I Alcubierre drive back to her, and I pick her up for dinner.  But the point of my question is, it seems to me that just going faster than light, if that alone was what you had, would not violate causality. It must be something else. I understand time dilation and that things with mass cannot travel at the speed of light, but using the Alcubierre drive, hypothetically speaking, I was still able to outpace the photons while also having mass. It still did not produce causality problems. Alcubierre drives are also valid solutions to GR.  It seems circular to me to say that what makes traveling faster than light violate causality is because it violates causality (if faster than light communication was divorced from causality problems, then the causality problem would cause itself -- thereby violating causality and, hence, we would scrap it and conclude that there is no causality problem after all).  What is it that I am missing? If someone could help me out, that would be excellent. I've been itching to ask my friend out for a few millenia now. :)


Find $ P(Z>X+Y)$ where $X,Y,Z \sim U(0,1)$ independently

I'm trying to follow a line in a derivation for $P(Z>X+Y)$ where $X,Y,Z$ are independent continuous random variables distributed uniformly on $(0,1)$.  I've already derived the pdf of $X+Y$ using the convolution theorem, but there's a line in the answer that says:  $P(Z>X+Y) = \mathbb{E}[\ P(Z>X+Y\ |\  X+Y )\  ]$ where $\mathbb{E}$ is the expectation.  I'm not familiar with this result. Could anyone give a pointer to a similar result if one exists?  Thanks.


How can I politely ask a player to leave my game?

So, after a few sessions, the new player I'd invited has been a bit of a disaster. He doesn't get on well with any of the other players, laughed when someone's character died (in our campaign that's permanent at the moment), and generally has been a nuisance. However, he doesn't seem to notice this. I've talked to him about his behaviour, but it hasn't helped. Several other players have also approached me on their own to register concerns.  The long and short of it is, he's not a good fit for our game or social group, due to his abrasive personality/playstyle (as I and the other players perceive it). He's also not interested in roleplaying (something my group does heavily, at the moment) and continually pushes to place himself in the limelight - which he does by instigating combat and trying to skip over what he sees as 'boring' scenes. His character is a Minotaur barbarian, and the most exotic race in the game, but he only uses it for the stat bonuses, and doesn't even have a backstory - he simply says he doesn't need one. However, I don't want to be rude or otherwise unkind to him, as I will still see him around after he leaves the group, and so will the other players.  How can I politely ask him to leave the group, without being dishonest but avoiding embarrassment for anyone? I also want to avoid seeming to 'abandon' him, or 'go behind his back'.  Note: There are few/no in-game problems with adding or removing characters, and I don't need advice for that. This is strictly about handling the player. The system (not that it's all that relevant to the problem) is


I can't seem to find an answer to this, although some are close.  I have an image that I want to take out the middle of (crop it), a bit like this:    So it's perfectly in the middle and with the same aspect ratio.  All I have managed to do, is crop an image like so:     ..where it's connected to the edges.  So basically, I want to have a div of fixed size, with an image inside. This image needs to be zoomed in and centred, with the overflow hidden.  How can I do this?


enumerate tag using the alphabet instead of numbers

The default behaviour for the \begin{enumerate}tag is to sequentially list the items given by \item over the numbers {1, 2, 3, 4, ...}.    Is it possible to change this to the alphabet {a, b, c, d, ...} How about Roman Numerals {i, ii, iii, iv, v, vi, ... } How is this done?   Note that I use emacs 24.3. Thanks for all the help.


Sharepoint REST API - Using caml query and select/expand to get lookup data

I have a Sharepoint app and I use a caml query to filter the data I get back:      var caml = "<View><Query><Where><And><Contains><FieldRef Name='PublishingPageLayout' /><Value Type='URL'>" + pageLayoutName + "</Value></Contains><Neq><FieldRef Name='NewsCategory' /><Value Type='Lookup'>Memo mailer</Value></Neq></And></Where><OrderBy><FieldRef Name='Created' Ascending='False' /></OrderBy></Query></View>";     var url = appWebUrl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('pages')/GetItems@target='" + hostWebUrl + "'";     var requestData = '{"query": { "__metadata": { "type": "SP.CamlQuery" }, "ViewXml": "' + caml + '"}}';     return $.ajax({         url: url,         type: "POST",         data: requestData,         headers: {             "Accept": "application/json; odata=verbose",             "X-RequestDigest": formDigest,             "Content-Type": "application/json; odata=verbose"         },         dataType: "json"     });   This works and I get data back. Now the issue I have is that I'm not getting any lookup data back, I only get the ID's of the lookups I want. To accomplish this I have tried using oData combined with my caml query:  var url = appWebUrl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('pages')/GetItems\?$select=*,Author/Title\&$expand=Author\&@target='" + hostWebUrl + "'";  var url = appWebUrl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('pages')/GetItems?$select=*,Author/Title&$expand=Author&@target='" + hostWebUrl + "'";   This results in a bad request error:  {"error":{"code":"-1, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The $expand query is not valid for field 'Author'."}}}   To overcome this error I removed my caml query and tried using a get request using odata $filter (I need to filter by the PublishingPageLayout field) $filter=substringof(PublishingPageLayout, "NewsLayout.aspx") But again I keep getting an error:  The field 'PublishingPageLayout' of type 'URL' cannot be used in the query filter expression.   I've had a look at oData and I think it only lets you filter on specific fields?  My question is how can I use caml and odata together to get back all of my data including my lookup fields in one call?  If I can't combine them both, is there another way using the rest api to get back all my data and all my lookup data?  I don't want to make other ajax calls to get the lookup data back as I have at least 5-6 lookup fields on each item I'm querying against and I don't want to make 6 more ajax calls just to get all my data back!  Thanks for any input.


Prove or disprove: For every integer a, if a is not congruent to 0 (mod 3), the a^2 is congruent to 1 (mod 3)  SO this is for abstract algebra and I am really struggling with this. Here are some of the definitions and theorems I think would apply.  -an integer a divides and integer b if there is an integer q such that b=aq -Let a and b be integers, with a>0. Then there exist unique integers q and r such that b= aq+r and 0<=r  The question says hint: use 2 cases but I'm not really sure what that means. I'm guessing it wants me to look at it when a is congruent to 0 and when it's not? so i tried to do that but just ended up stuck. below is as far as i got with that attempt  Proof: Case 1 There should be some information about letting variables exist in certain number sets here  assume a is not congruent to 0 mod 3, then 3 does not divide a-0, therefore a-0 does not equal 3q for some q in the integers  I was trying to get this to wind down to thus 3 divides a^2-1 but even tho it seems true (I couldn't find a counter example) I couldn't figure out how to prove it with what I have.  Next i tried reversing it thinking I could contradict it or something.  I think this would be case 2? assume a is congruent to 0 mod 3, then 3 divides a-0 and a-0=3q for some q in the integers, then 3q=a since 0 is the additive identity, therefore 3 divides a,  and again stuck and my brain hurts a little..  Can anyone help me figure out how to work this.


I have a sequence of integers between 0 to 100. Is there any free software like Sage, where I can test randomness of this sequence? I have Linux machine.     I have huge data set. Actually I have my own generator. I want to test its randomness.


Android ArrayList Adapter does not change pictures

I have an ArrayList adapter wich used to load my listView. My problem is that I want to change a pictures on the items in the list; Until now I used a simple String array and didnt have any problem, but I had to change it to  ArrayList wich loaded by an ORMlite selection and now my adapter doesent change the pictures...  I toast the text of the item wich is like ..."Asd"...  and in the adapter I use this:  if(textView.getText()=="Asd"){imageView.setImageResource(R.drawable.ic_asd);}   I also tried this:   if(values.get(position).getName()=="Asd")     {         imageView.setImageResource(R.drawable.ic_asd);     }   What is the problem? :S


Is it possible to construct the transitive closure of a set without Infinity?

In this site, the existence proof of the transitive closure for sets is addressed in the following questions and others:   I think the  of the first question particularly, after correcting seemingly formally fragile argument, shows that, taking Extensionality, Pair, Union, and Replacement (and hence Separation) for granted, Infinity or $\in$-Induction is sufficient for the construction of the transitive closure of a set. However, the usual presentation of ZFC does not contain $\in$-Induction; instead it has the following Regularity: $$ \forall x,\left[\left(\exists y, y \in x\right) \implies \left(\exists y \in x, x\cap y = \emptyset\right) \right]\text{.} $$ If I remember correctly, in the proof of $\in$-Induction from Regularity, we utilize the existence of the transitive closure. Is it possible at all to justify the operation using the axioms Extensionality, Pair, Union, Replacement, and Regularity (and possibly Power)?


When are API methods marked "deprecated" actually going to go away?

I'm code reviewing a change one of my co-workers just did, and he added a bunch of calls to Date.toMonth(), Date.toYear() and other deprecated Date methods.  All these methods were deprecated in JDK 1.1, but he insists that it's ok to use them because they haven't gone away yet (we're using JDK 1.5) and I'm saying they might go away any day now and he should use Calendar methods.  Has Sun/Oracle actually said when these things are going away, or does @deprecated just mean you lose style points?


How do have a directory under which I have all .zsh related files

I want to keep all .z files of zsh under a directory. Is there a way to do that, if yes, how ?  The two files I see are -   $ ls .z .zcompdump  .zshrc   Could there be anymore. Could I just put a directory, call it .zsh and dump these files in it or would there be something more than that. I have no idea what .zcompdump is supposed to do -  A listing of the contents inside gives me this -  $ head .zcompdump #files: 823 version: 5.3  _comps=( '-' '_torsocks' '.' '_source' '5g' '_go' '5l' '_go' '6g' '_go' '6l' '_go' '8g' '_go'   If I'm not wrong, it seems to be some sort of completion (similar to what bash-completion did) or am I reading it wrong.   Looking to know more.   Update - This is what I have done -   /etc/zsh $ tail zshenv           # output or assume the shell is attached to a tty. # # Global Order: zshenv, zprofile, zshrc, zlogin  if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]] then     export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games" fi  export ZDOTDIR="/home/shirish/.zsh/"   Then in /home/shirish -  /home/shirish $  mv .zcompdump .zsh/ /home/shirish $ mv .zshrc .zsh/   Then I went to .zsh/ expecting the two dot files to appear there but didn't see them -  /home/shirish/.zsh $ ls -lh  total 0   Am confused by what went wrong.


So, I figured something out and I'd appreciate it if you guys could try to prove it. $$ F(n+2) = 1 + n + (n-1)C_2 + (n-2)C_3 + (n-3)C_4 +\ldots $$ where $F(n+2)$ is the $(n+2)^{th}$ Fibonacci number.  Here's how I kinda proved it: I got a question in class which was : a fair coin is tossed n times. Let $A(n)$ denote the number of cases in which no two heads occur consecutively and they'd asked different values like $A(5), A(8)$, etc.    Two different approaches to this problem gave me the result I've put.   My teacher took 2 cases-   Last toss is a $T$. This means that the sequence of $(n-1)$ coins behind it have no two consecutive heads. So basically $A(n-1)$. Last toss is a $H$. This means that the toss just before it has to be $T$. This means that the sequence of $(n-2)$ coins before the $TH$ has no two consecutive heads. So $A(n-2)$. Using this, we get $A(n) = A(n-1)+A(n-2)$. $A(1)$ is $2$ and $A(2)$ is $3$. So we basically get the Fibonacci series.  I took several cases and for each case, I used the Gap method. Basically, if there are $x$ times $H$ and $(n-x)$ times $T$, I have $(n-x+1)$ gaps where I can put the $x$ times $H$ = $(n-x+1)C_x$. So, for $0 H, n T$, we get $1$  $1 H$ and $(n-1) T \ge nC_1$  $2 H$ and $(n-2) T \ge (n-1)C_2$  And so on. $$ A(n) = 1 + n + (n-1)C_2 + (n-2)C_3 + \ldots $$   I was looking for a more valid proof for this. I'd appreciate all the help I can get.


Has the recent update changed whats the most powerfull attack?

This morning I noticed a lot of attacks have been adjusted.  Did this change whats the most powerfull attack speaking in dps?


Why is iteration is faster than Streams in Java?

I tested an array with 10 million elements and iterating is always faster than streams. Can someone explains why? String[] words = new String[10000000]; Arrays.fill(words, "hello world!");  Instant start = Instant.now(); long count = 0; for (String word : words) {     if (word.length() > 8)         count++; } Instant end = Instant.now(); System.out.println("Using iterations:" + count + " in  " + Duration.between(start, end).toMillis());  start = Instant.now(); count = Arrays.stream(words).parallel().filter(word -> word.length() > 8).count(); end = Instant.now(); System.out.println("Using Streams   :" + count + " in  " + Duration.between(start, end).toMillis());  Sample run Using iterations:10000000 in  13 Using Streams   :10000000 in  53


On a normed space if $\|u+v\|=\|u\|+\|v\|$ then $\forall s,t \geqslant 0$ we have that $\|su+tv\|=s\|u\|+t\|v\|$

Let $E$ be a normed space and $u,v \in E$ so that   $\|u+v\|=\|u\|+\|v\|$. Prove that  $\forall s,t \geqslant 0$ we have   that $\|su+tv\|=s\|u\|+t\|v\|$   Note: This is homework, so I'm looking for hint(s) only.  (some of) My attempts:  The trivial cases:   $u =0$ or $v = 0$. $\exists \lambda > 0$ so that $u=\lambda v$.   So we can assume that neither of those is true here.  It's easy to see that it's equivalent to proving that $\forall \lambda \geqslant 0$ we have that $\|u+\lambda v\|=\|u\|+\lambda \|v\|$, because if $s > 0$: $$s\|u+\lambda v\|=\|su+s\lambda\|=s\|u\|+s\lambda \|vu\|$$ So we can pick $\lambda=\frac{t}{s}$.   I tried to take the derivative of $\lambda \mapsto \|u+\lambda v\|$, but I could only prove that $$\left|\frac{\|u+(\lambda + h)v\|-\|u+\lambda v\|}{h}\right|\leqslant \frac{\|hv\|}{|h|}=\|v\|$$ But it's not enough to conclude that it's equals to $\|v\||$ in the limit $h \to 0$. Another idea was to assume that $\exists \alpha > 0$ so that $\|u+\alpha v\| < \|u\| + \alpha \|vu\|$ and prove that $\|u+v\| \neq \|u\|+\|vu\|$, but it was not successful. I was thinking about proving it for $\lambda \in \mathbb{Q}_+$ and use some kind of density argument, but it seems to be as hard as the $\mathbb{R}_+$ case.


Can command-line commands be made insensitive to order of filenames and options?

I'm new to Mac usage.  It seems that most commands trip over options given after the file names. In linux, which I've used for years, it doesn't matter.  On Apple, it does.  Is there some setting somewhere or some hack to make commands like ls behave "normal"?  dwilson 0====> ls -l p* -rw-r--r--@ 1 dwilson  owner  184 Jul 29 13:57 poo.c -rw-r--r--@ 1 dwilson  owner  133 Jul 29 13:57 poo.h  dwilson 0====> ls p* -l ls: -l: No such file or directory poo.c        poo.h  dwilson 1====>


I installed Ubuntu alongside Windows 7 and now I can't start Windows

I installed Ubuntu 16.04 alongside Windows 7.  Now I can't start Windows and all of my data has been lost. It seems like I've deleted everything (by mistake) and uninstalled Windows.   Please tell me how I can recover my lost data!


Postfix - Block email from non-existent local addresses

My question is very similar to  one, but for postfix.  We keep getting emails from addresses like "accounting@example.com" delivered to our actual "@example.com" addresses. From my google research, I understand it might not be practical to verify the email originated from our IP or VPN (Although this would be ideal, so if you can think of a way to do this, let me know), but in most of these cases the sender address (ex. "accounting") is not a valid account.   I imagine there must be a way to make sure that a local account exists before delivering the message.


Regex to match period(.) following by   only at the end of html string

How do I match the .&nbsp;&nbsp; in the following html string.
My first comment.&nbsp;&nbsp;
   The above string could have more than one &nbsp; at the end before the closing paragraph tag.


"One of my friends" vs. "one of my friend"

Which of the following is correct?        Yesterday, I met one of my friends.   Yesterday, I met one of my friend.


Error with TikZ figure that complie well before

I've got this diagram created with Tikz a year before:  \documentclass[paper=letter,headings=big,bibliography=totoc,DIV=9]{scrbook} \KOMAoptions{headsepline=true,fontsize=10pt,draft=false} \usepackage{typearea} \usepackage[spanish.mexico]{babel} \usepackage[utf8]{inputenc} \usepackage[LGR,T1]{fontenc} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc} \usetikzlibrary{through} \usetikzlibrary{backgrounds} \usetikzlibrary{fit} \usetikzlibrary{fadings}  \begin{document}  \begin{figure}[!h] \begin{center} \begin{tikzpicture} % Trazado de las placas paralelas Placas: \coordinate (P1) at (0,0); \coordinate (P2) at (8.5,0); \coordinate (P3) at (0,1.2); \coordinate (P4) at (8.5,1.2); \coordinate (P5) at (0,-0.1); \coordinate (P6) at (8.5,-0.1); \fill[blue!20!white] (P1) -- (P3) -- (P4) -- (P2) -- cycle; \draw (P1) -- (P2); \draw (P3) -- (P4); \fill[gray!80!white] (P1) -- (P5) -- (P6) -- (P2) -- cycle; % Dimensión de la distancia t entre placas Texto:     \node[draw=none,fill=blue!20!white] (t) at (1,0.5) {$\epsilon$};         \draw[<->] (1.2,0) -- (1.2,1.2);   % line with error Texto: \node[draw=none,fill=blue!20!white] (t2) at (2,0.5) {$fluido$}; Texto: \node[draw=none,fill=white,above] (t3) at (1,1.2) {placa móvil}; Texto: \node[draw=none,fill=white,below] (t2) at (1,-0.1) {placa fija}; % Volumen de control y deformación \node[below] (a) at (3.3,0) {$a$}; \node[below] (b) at (4.8,0) {$b$}; \node[above] (c) at (4.8,1.2) {$c$}; \node[above] (d) at (3.3,1.2) {$d$}; \node[above] (c1) at (5.3,1.2) {$c'$}; \node[above] (d1) at (3.8,1.2) {$d'$}; \draw (a) -- (d) (b) -- (c); \draw[dashed] (a) -- (d1) (b) -- (c1); % Perfil de velocidades \coordinate (u1) at (5.8,0); \coordinate (u2) at (5.8,1.2); \coordinate (u3) at (6.8,1.2); \draw (u1) -- (u2)  (u1) -- (u3); % Vector U \coordinate (u4) at (5.8,1.4); \coordinate (u5) at (6.8,1.4); \draw[->] (u4) -- (u5); % Line with error Texto: \node[draw=none,fill=white,above] (U) at (6.3,1.4) {$U$}; % coordenadas \coordinate (u6) at (5.8,1); \coordinate (u7) at (6.6,1); \coordinate (y1) at (6.6,0); \draw[->] (u6) -- (u7) % Line with error (y1) -- (u7); % Line with error Texto: \node[draw=none,fill=blue!20!white] (u8) at (6.2,1) {$u$}; Texto: \node[draw=none,fill=blue!20!white] (y2) at (6.6,0.5) {$y$}; % ejes \coordinate (x1) at (8.6,0); \node (x2) at (9.1,0) {$x$}; \coordinate(y3) at (3.3,1.7); \node (y4) at (3.3,2.5) {$y$}; \draw[->] (x1) -- (x2); % Line with error \draw[->] (y3) -- (y4); % Line with error % Flecha F \coordinate (F1) at (7.7,1.4); \coordinate (F2) at (8.5,1.4); \draw[thick,->] (F1) -- (F2); % Line with error Texto: \node[draw=none,fill=white,above] (U) at (8.1,1.4) {$F$}; \end{tikzpicture} \end{center} \caption[Deformación a cortante constante.]{Deformación resultante de la aplicación de una fuerza cortante constante.} \label{fig:placas} \end{figure} \end{document}   But when I compile the lines commented as % Line with error shows the lines wrong, I don't understand why, before I compiled well this figure. The error I've got is:  Missing \endcsname inserted. \draw[thick,->]


I was wondering if the integral of $\sin\left(\int(\sin(x)dx\right)$ is equivalent to 0, if it had an answer, or if there was simply no answer?


iPhone iOS 12 StackExchange getting disallowed_useragent

I have an iPhone on iOS 12. Trying to use StackExchange app  getting disallowed_useragent.   I was on iOS 10 before and everything worked fine.


I am unable to install Macaulay2. I am following the guideline given in the website . I have added the repository in the sources list (see the attached screenshot). I have installed the key from the link above. Now when I search for the package with apt-cache search macaylay2 I get nothing.   I have also looked at the answer to  but I don't think that will work either, please help.


What is the command (if there is one) to make all blocks in a world unbreakable against explosions?

I am making an adventure world that is players versus monsters. I understand adventure mode doesn't allow players to break blocks, but not monsters. I would like to keep creepers, but it seems to do this I would have to build every thing out of obsidian and bedrock so the creeper explosions don't ruin my paths and rooms! So, what command might be used to make every block in the world unbreakable instead?


I have pressed CTRL + R to create a loop cut which is interrupted at the left side of the front wall. I am not sure why my loop cut stops instead of going all the way round.    I have uploaded a ~.blend file here:   Thank you!


Schwarzschild metric of a moving observer

the Schwarzschild metric describes the geometry of a black hole for an observer infinitely far away. My question is simply: How does one find the geometry of the same black hole except that the observer also has a radial velocity? Giving the observer a velocity breaks spherical symmetry and might be non-trivial. But what is the procedure of finding such a metric? Can you simply add a Lorentz transformation boost since the geometry around the observer is flat? Also, the geometry necessarily has to change to include the Doppler effect, right?


Is there any section cut addon. In sketchup there is option we can cut the section mean time or show inner render parts.   This is the  of sketchup how it works and what i need. Is there any addon or how can i make a section view in Blender.


I'm trying to hide/show metaboxes dependant on the page template chosen. This has been working fine until I have come to show a metabox on more than one chosen page template.  The below code displays the Rich Content Editor for default pages, but not page-child.php pages. I'm guessing I have written the code incorrectly:  (function($){     $(function() {         $('#page_template').change(function() {             $('#postdivrich').toggle($(this).val() == 'page-child.php') ;             $('#postdivrich').toggle($(this).val() == 'default') ;         }).change() ;     }) ; })(jQuery) ;


Why was Vader surprised that Obi-Wan's body disappeared?

OK, I understand that Obi-Wan turned into a force ghost when Vader struck him down, but why was Vader surprised by the lack of a body? It's not the transition into a force ghost but Vader's reaction that bugs me.


Last weekend our ORG pushed a major set of patches to our Redhat servers. One of our applications went down and we've had huge issues trying to connect to it from within the network or outside.  At the moment the primary issue is getting passed the:Failed to load resource: net::ERR_CONNECTION_REFUSED.  I'm confident at this point that the application itself is not erroring. Everything worked previously. We've rolled back the apache update that came along with the Redhat patches.  I need some steps to follow to isolate 'oddities'.  I've checked most of the common things:   We've rolled back ssl.conf files to working time periods, httpd.conf etc. Still no luck.  The external IP address used to access the server is 123.123.123.123 If I phpinfo(); from a file on that server it shows that the apache remote_addr is 123.123.123.124 Shouldn't they match?  output of iptables:  Chain INPUT (policy ACCEPT) target     prot opt source               destination ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql state NEW,ESTABLISHED ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http ACCEPT     tcp  --  anywhere             anywhere            multiport dports mysql ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https  Chain FORWARD (policy ACCEPT) target     prot opt source               destination  Chain OUTPUT (policy ACCEPT) target     prot opt source               destination ACCEPT     tcp  --  anywhere             anywhere            tcp spt:mysql state ESTABLISHED


This may seem like a pretty basic question, but I am struggling to find a nice way of expressing $(1+x+\cdots+x^{n-1})^2$ where $n\in\mathbb{Z}_{\geq 2}$. Plugging in some numbers yields a clear pattern,  $(1+x+\cdots+x^{n-1})^2=1+2x+\cdots+nx^n+\cdots+2x^{2n-3}+x^{2n-2}.$  However, I can't seem to find a formal expression of this, or a proof. Can anyone point me in the right direction?


I've recently updated from Debian 'jessie' to Debian 'stretch', and have started having a problem with numbers being formatted backwards when using the bidi package in conjunction with the mathspec package.  Here's a MWE:  \documentclass{article} \usepackage{mathspec} \usepackage{bidi} \begin{document} Per 2.7.1 of the RFC. \end{document}   On Debian 'jessie', when built with xelatex, this produces "Per 2.7.1 of the RFC."  But on 'stretch' this gives "Per 1.7.2 of the RFC."    Any suggestions of how to fix this?


Book where the hero uses skin/entrails of dead prisoners to escape

All that I can remember is a prison who's entrance was a huge, gaping (fanged?) mouth.  The hero (who was incognito, and really .. not sure, maybe the heir to the throne?) was thrown down a hole into a large cavern with other prisoners.  There was a (supposedly) bottomless pit in the centre, and one of the prisoners had fashioned a lasso from the skin/entrails of dead prisoners.  Eventually, the hero manages to get hold of it & use it climb down the pit to escape.  Not much to go on, sorry. It sci-fi, or at least not an elves & pixies story. Any idea?


Relationship between vector field, generator & scalar field in Noether's theorem

I wonder "which quantity" is conserved in relation to a specific symmetry.  I guess it is in some meaning simply the generator (in the context of Lie theory) of the symmetry, as it is true for angular momentum (conserved) being generator of rotation (symmetry).  I want clear formulation of idea but I can't complete it:  Let $M$ be configuration manifold of a classical system. $L(q,\dot q,t)$ it's Lagrangian, $h^s: M\rightarrow M$ a one-parameter group of diffeomorphisms of $M$ which preserves $L$. then $$I(q,\dot q)= \frac{\partial L}{\partial \dot q}\frac{d h^s(q)}{ds}|_{s=0}$$ is a conserved quantity along trajectory $q$.  on the other hand $h^s$ produce a flow on manifold and we may denote its vector field by $\frac{\partial}{\partial s}$ which we may call generator of diffeomorphism. so in particular the generator of diffeomorphism along a trajectory $q$ is a vector field along it not a scalar field to could be discussed a conserved quantity or not (for example conserved quantity in relation to rotation be its generator namely angular momentum)  you may say by formula of $I$ just act $\frac{\partial L}{\partial \dot q}$ on this vector field to get a scalar field! but why?!! (I mean by which principle?). and then in what meaning $I$ is genarator of $h^s$?


Classification of Bayesian posterior probabilities

I have run a series of Bayesian models with flat priors in which I obtain a posterior probability distribution for my coefficient of interest. The reviewer of my paper wishes us to classify these probability according to different strengths of evidences (strong, moderate, weak etc..). I have seen this done with Bayes factor, e.g.,    I wish to avoid running the models with and without the coefficient. Instead, I thought I could compare the posterior and prior probability. However, I have uninformative priors so I think Bayes factor would not work(?). But I wonder whether I can still follow this classification, e.g.,  under the null prior, I expect 50% of the coefficient to be negative. While my posterior probability is 5%. From that, can I infer a Bayes factor of 10 (0.5/0.05), which would be strong evidence?  Or is there another classification scheme I could use?  Thanks for any help and especially any references?


I ajaxly call a route and pass data to it, In my controller, I want to get $_POST['var'] , $_POST['var2'], it seems because of using HttpFoundation in drupal 8, $_POST and $_GET are not exists in old method, How I can access $_POST parameters in custom Controller?


How to hide objects outside artboards in Illustrator?

Is it possible to hide the objects that are outside of the artboard?  As you can see in the picture below, the polygons are shown outside of the artboard.  I want to hide everything that is outside of the artboard.


I was visiting a questions & had filters by java but i found that there is a question that was not related to java.  I don't know how this happens?  It is about HTML & css:


Why can't Chromium suddenly access any partition except for /home?

I just upgraded to Ubuntu 19.10 and to my horror I discovered that the default browser Chromium can no longer access other partitions than /home.  This means that my partitions containing music and videos (/multimedia) for instance are no longer accessible e.g. to upload into Google Drive. This includes USB partitions.   I found another description of this phenomenon here:  where it says  "Also, while we acknowledge that most users will only need to access their home folders, it’s worthy to mention that you no longer can access system files & folders from inside Chromium (You can’t access anything except your home folder). This means that if you are to upload a file or an image for example into the Internet using an uploading website, then this file/image must be in your home folder, as you can not access directories such as /usr, /etc or other directories located in your root partition. In fact, you no longer can access any other partition at all, this includes USB sticks and other booted partitions:"  I wonder why this behaviour been introduced? it violates the whole idea of multiple disks, partitions and symlinks. Btw, this still works for Firefox.  My questions are   Are there any plans to fix this? I expect one reason for this behaviour is about security. If so, is it possible to explain why and how that makes for better security? The files on other partitions are legitimately accessible by the user anyway e.g. through symlinks. But with this change, I'll have to move them to /home before uploading so still accessing them although more slowly and cumbersome.  If this behaviour is now permanent, the question is how should we incorporate multiple disks in our filesystem?  Alternatively, can someone tell me how to find and install the debian package. I haven't been able to locate it?   This is not a duplicate of  because that is about a specific error during installation that I didn't get. My question is about the access chromium has in Ubuntu 19.10.  Anyway, I solved the problem via the following command by using the original debian package from Google:  sudo apt-get install google-chrome-stable   After that I can now access my other partitions again. I know this is hacky in the sense that the package isn't native to Ubuntu so I would really like to get some advice on how to incorporate multiple disks and partitions with this new restricted behaviour of Chromium.  Thank you very much


Can you use /testfor to detect the death of a player?

Can you use the /testfor command in minecraft 1.8 to find out if a player has died ?  I need it for my map, where 2 players (Only) are pitted against eachother. I want it so that when one of them dies, it will detect the death and declare the victor.


Can I Fly Just One Leg of My Ticketed Journey?

I have been trawling flight booking sites (expedia, skyscanner) for flights from UK mainland to USA in March/April next year. After many hours it is apparent that the less you pay, the longer the journey time and more connections you make. This seems crazy as you seem to end up doing MORE flying for LESS money. I am aware that there are subsidies and inter-airline and airport deals having arcane affects. Anyway, the best compromise between flying hours, number of connections and price is a journey starting in Glasgow, changing at Heathrow and terminating at Denver. I would prefer to travel directly from heathrow and cut out the other flight from Glasgow, but looking at the same return flight just from Heathrow to Denver DOUBLES the cost. Hence my question, if I book Glasgow to Heathrow to Denver, can I miss the Glasgow flight and turn up at Heathrow, check my luggage and catch the single flight to Denver and coming home, will I be able to get off at Heathrow and claim my bags without them transferring to the other flight to Glasgow?


What is the correct format to PHP echo a JavaScript Alert which uses PHP variables?

I used  <?php      $myArr =  "foo" => "bar",           "bar" => "foo",;  $myVar =  "Word!";  echo '<script type="text/javascript">alert("The $myVar is print_r($myArr) ");</script>'; ?>   To show an alert on the page. I take it is wrong, whats the right way of doing so?


Effectiveness of using linear regression on a categorical response

I recently ran two tests in R - one using glm() and one using lm() with the goal being to test the relationship between a binary response and binary predictor.  I ran glm() first and got an estimate of -0.68 for the predictor coefficient which I thought was pretty good.  P<.05 and AIC of 653.    When I ran lm() however I got an estimate of -.14, a multiple r-squared of .008, P<.05.    My understanding is that linear regression is usually a poor choice for a categorical response compared with logistic regression, but when is this not the case? I noticed in this post  that the author states there's middle ground where it does make sense to use linear regression.  Are there any common rules (or rules of thumb you personally use) that determine when to try out linear regression on a categorical response?  Do any of these differ from the author's cases?


How do I add flat text onto the back of a soccer jersey? The jersey itself isn't flat but I would like the text to take the shape of the back so it looks like a proper jersey like the image attached:


Javascript event binding in Microsoft Edge not Working in lightning Components

Hi i have a problem with Microsoft Edge and lightning Component, the thing here is that i build a lightning component and works fine on all other browsers but when i test it on Microsoft Edge it shows me this error:  This page has an error. You might just need to refresh it. Error in $A.getCallback()[Unabled to get property 'apply' of undefined or null reference] Failing descriptor: {markup://aura.html}   I searched about that error on salesforce forums and no one has the solution, then i found that that error is due to a javascript syntax error. I changed the syntax of the tag that has the 'onclick event' from:  <button onclick="{! c.someAction }">Action</button>   to:  <button onClick="{! c.someAction }">Action</button>   You can see that only changed the 'c' to upper case and the error is not showing anymore, but anyways it doesnt do anything.  PD. On my controller code i only have a console.log.


How can I bypass the annoying Quora login popup?

Sometimes a Google search will show a Quora page and when you visit it, you are forced to sign up or log in. I do have a Quora account but I don't want to sign in on every computer I work on.  How can the login popup be bypassed so that I don't have to spend several minutes in signing in or signing up when I only need to see that Quora question for something very quick?


How do I categorize my website (domain)?

I recently purchased a domain and created the website. I found that this belongs to "None" category and so found blocked in cyberoam firewall.    I tried with all possible meta tags at index.html. But any content from this domain is blocked (otherwise can say categorized NONE). The image's url is also blocked    In Godaddy I can find only "Auto-Renew, Lock, Nameservers, Forwarding, Premium DNS, DS Records, Host Names, Authorization Code" features to customize.  And Some Upgrade features like "Privacy, Domain Ownership Protection, Certified Domain , Premium Listing, CashParking, GoDaddy Auctions, SSL Certificate, Business Registration, Domain Appraisal".  Please help me where / how to categorize my domain as "Personal"?  Is anything needs to be changed in robots.txt?


I am running Ubuntu 14.04, as Xubuntu, in an AMD 64 pc, configured as dual boot with Windows 7. I tried installing vim with this:  This was the output:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Is there a way to download all of my Ubuntu One files?

So, I have Ubuntu One on my mac, and is synced with the Ubuntu One website. I have folders within folders, within folders, and so on. If I needed to (If, I got a new computer, for example), would it be possible to download everything from the website in a big compressed file (zip, tar.gz, 7z, etc.)? If not, how would I go about downloading all of the files from the website to my hard drive?


Comparison test of series with ln function

How to test convergence of series with comparison test in the next examples:  $$ \sum_{n=1}^\infty \ln\left(1+\frac{1}{2^n} \right)  $$  I know that:  (incorrect)  $$ \ln\left(1+\frac{1}{2^n}\right) < 1 + \frac{1}{2^n} $$  Correct:  $$ \ln\left(1+\frac{1}{2^n}\right) \leq \frac{1}{2^n} $$  Therefore (incorrect) $$ \sum_{n=1}^\infty 1+\frac{1}{2^n}\ $$  Therefore:  $$ \sum_{n=1}^\infty \frac{1}{2^n}\ $$  Is divergent, but that doesn't tell me anything because it is larger than the starting series. So how to solve this using comparison test?  Is convergent which implies that starting series is convergent as of rule:  Suppose that $$ 0 \leq  a_n \leq b_n $$ for sufficiently large n, then:  If $\sum_{n=1}^{\infty} a_n$ diverges, then  $\sum_{n=1}^{\infty} b_n$ diverges.  If $\sum_{n=1}^{\infty} b_n$ converges, then $\sum_{n=1}^{\infty} a_n$ converges.


Does production date affect compability or lifetime of a drive?

Yesterday we received some new drives for our in-house fileserver. We ordered 6 12TB HC520 from a supplier and they sent us four which are labeled 4 MAR 2020 and two labeled 18 AUG 2018.  They are meant to be used in a single volume, operating underneath ZFS in a 4:2 configuration (two drives failure protection).  Will the different dates have an affect on the performance or aging of the disks, are the older disks more prone to failure?


Everything displaying as wireframe in fresh blend file

I recently started up a new project and had not booted up blender in about 2-3 weeks so I'm unaware if any major update has happened or something, but no matter what I toggle my view to, everything seems off? This is what a fresh scene looks like right off boot, no settings have been altered, anything I add becomes this wireframe-esque object that becomes invisible if I de-select it. Any idea on what might be up?


help prove this propositional logic equivalency

I'm really stuck on proving this propositional logic equivalency. I've tried De Morgan's law, and double negation to see if I could get it, but no luck. Any help is greatly appreciated! P.S Please, tell me which laws you use to prove it.   $(p \land q) \lor (q \land r) \lor (r \land p) \equiv (p \lor q) \land (q \lor r) \land (r \lor p)$


What vintage movie had this blue floating holographic head talking to some kind of military installation?

In the comedic music video  there are many clips of vintage scifi films, some of which I recognize.  This one however, of a large blue floating holographic head talking to some kind of military installation does not look at all familiar.  Does anyone recognize this film?


I messed up my new laptop while trying to set up a dual-boot with Ubuntu and Windows 8.I did a whole bunch of stuff trying to get it to work and now when I try to boot I get stuck in GRUB's recovery mode with no errors.   My question is: Can I boot from Ubuntu on a USB drive to erase both Windows 8 and Ubuntu to just install Ubuntu? Will this get ride of the GRUB rescue mode problem.


I am supposed to be finding the equation of a circle that have a center (√5,2√2) and radius of √10 by using the standard form   I already know the distance formula but I could'nt figure out how to solve this given center.


I created a PHP file, which give back an image location. for example:  Its give back this:   Its okey. But I need to read the example.php and GET the image location (so the https:// www dot example dot com/image1.png) and display on my site with Javascript.  var wheelImageName   = "url/image1.png";  function begin()    {  surface = document.getElementById(canvasId);   if (surface.getContext)  {     wheel = new Image();     wheel.onload = initialDraw;          wheel.src = wheelImageName; } }   This is the code now, My question is, how to modify this, to read the target image url from the example.php.  Thanks!


What should be the best index to create a foreign key?

I have two tables: users and cities.  users               cities ------              ------ id(PK)              id(PK) name                name idCity(FK)   and I want to create that foreign key (idCity) properly. I am using phpmyadmin so I saw that I had to do:   Create an index on the table in which I want to create the foreign key, in this case, users, so I created an index called idCity that represents the column idCity. I went to the structure section and related that index with the id of the table cities.   But I have some doubts in the first step: What index of the five provided should I choose?  After reading  in which I did not clarify my doubts very much, I searched on SO and found this question:  that makes me to clarify a bit more my ideas but I still have some doubts about what I have to choose.  My thoughts of each index type   Primary: Of course I do not have to use it because what I want to achieve it is not a primary key, it is a foreign key. Index: I could not get a very clear idea of what this index it is but what I could understood on the question of SO that I put above it is: the index may contain rows with identical values in all columns of the index.   As my index represents only the column idCity and there could be a lot of users living in the same city, I think this could be the best option. Unique: UNIQUE refers to an index where all rows of the index must be unique. This is the main reason why I have doubts between this one and INDEX option. My index only represents one column and I want that the values in that column could be repeated, so I am not secure if I have to use it or not. FULLTEXT and SPATIAL: I have discarded these options because I saw that on phpmyadmin I have to create my tables as InnoDB type and these types of index are supported in other types of table.   My conclusion  I have doubts between UNIQUE and INDEX types of index. This is because I do not know if when someone refers to: UNIQUE refers to an index where all rows of the index must be unique, for example, when he is talking about all rows of the index, if it refers that all columns of the table do not have to be the same, that is what I would like to get (it can be more than one user living in a city but not two users repeated).  If it refers that all rows do not have to be the same I think the best approach have to be UNIQUE because I do not want that two rows will be the same but in the case that it only refers to the index itself (my idCity column) then I would have to choose INDEX type of index, because I want that more than one user could live in a city.  My questions   Am I creating my foreign key properly on phpmyadmin? I mean, Am I correctly following each step? Which of my conclusions is correct? Or none of them?   Edit: The question that has been provided as possible duplicate answers to my first one question but not to the second one. Please read the full question before mark it as duplicate. Thanks!  Thanks in advance!


System requirements for high definition videos

I am going for vacation soon, and I am carrying a hard disk full of movies and a projector with me.  Our vacation home has an old AMD Athlon PC, running Windows XP. Average video memory. It's a year-2005 spec PC. Dunno specs as of now, I'll update the post when I get there.  SPECS AS PER MEMORY RECOLLECTION:  3 GHz AMD Athlon processor, single-core 1 GB RAM 64/128 MB AMD Onboard Graphics Windows XP Professional.   The thing runs VLC media Player without hiccups, though I am half sure it won't do that with my movies-all of them are 1080p or 720p minimum.   Would the PC be able to play a 1080p movie?


Need to access deceased relative's laptop

A family member passed away.  We need to access his Windows laptop for the usual reasons, especially since he kept very few paper records.  It is password protected and we have no idea what the password might be.  I am pretty sure he did not encrypt the hard drive.  So, first, I guess we could put the drive in another device and access it that way?  If that's true, then that would be better than nothing.  But also, is there any way to recover use of the entire laptop?  Is there a "computer locksmith" who would have the ability and legal right (when presented with the appropriate court documents, of course) to open up the laptop?


Google Chrome - FATAL:NSS_util.cc(632) Aborted (core dumped)

When I try to open Google Chrome, I get this:  [2922:2958:0913/051621.681319:FATAL:nss_util.cc(632)]  NSS_versionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS Aborted (core dumped)   What should I do?


What are some examples of commonly used practices for naming git branches?

I've been using a local git repository interacting with my group's CVS repository for several months, now.  I've made an almost neurotic number of branches, most of which have thankfully merged back into my trunk.  But naming is starting to become an issue.  If I have a task easily named with a simple label, but I accomplish it in three stages which each include their own branch and merge situation, then I can repeat the branch name each time, but that makes the history a little confusing.  If I get more specific in the names, with a separate description for each stage, then the branch names start to get long and unwieldy.  I did learn looking through old threads here that I could start naming branches with a / in the name, i.e., topic/task, or something like that.  I may start doing that and seeing if it helps keep things better organized.  What are some best practices for naming git branches?  Edit: Nobody has actually suggested any naming conventions. I do delete branches when I'm done with them.  I just happen to have several around due to management constantly adjusting my priorities. :) As an example of why I might need more than one branch on a task, suppose I need to commit the first discrete milestone in the task to the group's CVS repository.  At that point, due to my imperfect interaction with CVS, I would perform that commit and then kill that branch.  (I've seen too much weirdness interacting with CVS if I try to continue to use the same branch at that point.)


How can multiple Curves be used to control Camera movement?

I currently use a Track to Constraint to make the camera automatically point to an empty.   In an animation the camera is moved along a bezier curve (follow path).   How could I change the curve and track to constraint at a certain frame to focus on another aspects of the scene?


Did Voldemort refer to Snape as one of the missing Death Eaters at his rebirth?

In Goblet of Fire, Voldemort says of the missing six Death Eaters:     “And here we have six missing Death Eaters… three dead in my service. One,   too cowardly to return… he will pay. One, who I believe has left me forever… he   will be killed, of course… and one, who remains my most faithful servant, and   who has already reentered my service."   The answer to  speculates about who the three dead Death Eaters were.  We know who the last one is. I’m guessing one of the remaining two is Karkaroff. Is the other Snape? If so, which one?


I have successfully:   Downloaded Ubuntu 12.04 32-bit Installation file Unzipped the file using WinZip Burned the unzipped files to a DVD, using Sonic RecordNow   I am experiencing the following difficulties:   The DVD is not bootable When I manually try to execute wubi.exe, I get a message saying "An installable Virtual Device Driver failed Dll initialization.   What am I doing wrong?  How do I get Ubuntu to run?


How to revover data from disc that has windows installed using live cd?

Windows 10 in my pc stopped working so I booted into ubuntu 16.10 using live cd but I have some data in the drive I have windows 10 installed and I was wondering if I could recover that data.   I could access all the other discs but not the one which has windows, I mean I could see it but it doesn't show my data.


imploding a list for use in a python MySQLDB IN clause

I know how to map a list to a string:  foostring = ",".join( map(str, list_of_ids) )   And I know that I can use the following to get that string into an IN clause:  cursor.execute("DELETE FROM foo.bar WHERE baz IN ('%s')" % (foostring))   What I need is to accomplish the same thing SAFELY (avoiding SQL injection) using MySQLDB. In the above example because foostring is not passed as an argument to execute, it is vulnerable. I also have to quote and escape outside of the mysql library.   (There is a , but the answers listed there either do not work for MySQLDB or are vulnerable to SQL injection.)


Inbox notifications - marking as read etc

Currently, when receiving notifications in the inbox, you get a number in the top bar on the inbox button. But when you open the inbox that number is gone and everything is marked as read. I don't think this is good behaviour.  I would suggest that only the messages that were clicked are marked as read and the number simply decrements. This would make it easier to follow-up on them. Also there can be buttons for marking individual messages as read, marking them as unread too, and a big button to "mark all as read".  A humble attempt at propagating my suggestion into a design:        I had to fake one of my notifications being unread and sorry, it's badly done. Notice the "mark all as read" conveniently placed in the top right. Notice to the bottom left of each notification the individual mark as read button, in the shape of a bold checkmark for "unread" and a lighter one for "read". This could also be an o for read and a ● for unread or anything else that the designers see fit.  Question history about this here   was already asked here but this was declined simply because it asked for a setting and SO doesn't do preferences. I'm asking to modify the default behaviour.  Then there's  but the so-called duplicate is not a duplicate at all. Also this was before the entire top bar was re-done and it was still the Stack Exchange MultiCollider SuperDropdown thing.  Related (other people want this):


How does mass conservation work in the MCU Ant-Man movie?

In Ant-Man, it's (briefly) explained that the Pym particle reduces the distance between molecules, allowing a person to shrink while retaining his mass and strength.  Much of the movie is consistent with this explanation. For example:   While ant-sized, Ant-Man falls from the edge of bathtub onto a tile floor, cracking the tile as though with the weight of a full sized human. He falls from a rooftop onto a car, denting the roof. He punches full sized humans, and they respond as though hit by a real punch. Another character, while tiny, is hit by a speeding toy train. The train is knocked aside as though it hit a full sized human.   But then there are things that appear totally inconsistent with "mass stays the same":   Ant-Man is constantly running and climbing around on surfaces (air vents, ant tunnels, etc.) that couldn't possibly support the weight of a 200 lb man on a footprint the size of an ant. The toy train, when expanded to the size of a real train, is heavy enough to rip through a wall and crush a police car.     Hank Pym carries a shrunken tank in his pocket on a keychain. It obviously doesn't weigh as much as a tank, but it does when expanded to full size.  Another character, while tiny, gets swatted with a (normal sized) table tennis paddle, and goes flying like an insect.   Obviously the out-of-universe explanation is that mass behaves in whatever way is most convenient at the moment because it's just for fun.  But I'm curious: is there any in-universe explanation, either hinted at in the film itself or in the comic books, as to why mass is conserved sometimes but not always?


Prove that $\{x_1=1,\,x_{n+1}=\frac {x_n}2+\frac 1{x_n} \}$ converges when $n \to \infty$

I want to prove that the sequence defined by $\{x_1=1,\,x_{n+1}=\frac {x_n}2+\frac 1{x_n} \}$ has a limit.  By evaluating the sequence I notice that the sequence is strictly monotonically decreasing starting from $x_2=1.5$.  It seems to suggest itself to prove that the sequenced is bounded by $1\le\big( x_n \big)_{n\ge1} \le 1.5$ and to prove that it is strictly monotonically decreasing starting at $x_2$ which would imply convergence.  How would I proceed and could one prove the existence of the limit without first evaluating the values of the sequence to see how the sequence behaves?


Where to find official (!) and extended documentation for tex/latex's commandline options (especially -interaction modes)?

Today I tried to learn more about the several interaction modes for tex/latex/pdflatex etc. The manpages turned out to be not very helpful:  $ man tex      ...     -interaction mode         Sets  the interaction mode.  The mode can be either batchmode,         nonstopmode, scrollmode, and errorstopmode. The meaning of these         modes is the same as that of the corresponding \commands.     ...   While Google quickly helped me to learn what I wanted to know, I was suprised that I wasn't able to find useful and official documentation about this topic. After turning the whole documentation of my TeXLive distribution upside down I am asking now, if someone can please point me to the official and detailed documenation (if it exists) concerning the interaction modes and maybe the default values to some of the other commandline options.


In my php  page i append new buttons and information when press the button with JQuery Ajax,however when  i click the new button which came with ajax , its JQuery does not work but old button's JQuery works,i mean new button does not see the javascript file of my php page.  My JQuery Ajax Codes;  $("button[name='addnewelement']").click(function() {     $.ajax({           type: "POST",     url: "addelement.php",      cache: false,     success: function(html){       $("#new").append(html);// add new element into index.php   });   });   addelement.php;    echo "       .......      <button id="<?php echo $row['id']; ?>" name="addnewelement"  >Add</button>      .......     " ;   How can i solve this problem?  Thanks.


Can't input the user's value to the array, NullPointerException error

public void setAns() {          if("TF".equals(queType)){            ans.add("True");            ans.add("False");         }         else if("MC".equals(queType)){             System.out.println("Enter choice 1 of 4");              String ch1 = StdIn.readLine();             ans.add(ch1);             System.out.println("Enter choice 2 of 4");             String ch2 = StdIn.readLine();             ans.add(ch2);             System.out.println("Enter choice 3 of 4");             String ch3 = StdIn.readLine();             ans.add(ch3);             System.out.println("Enter choice 4 of 4");             String ch4 = StdIn.readLine();             ans.add(ch4);          }         else if("L5".equals(queType)){             ans.add("1");             ans.add("2");             ans.add("3");             ans.add("4");             ans.add("5");         }     }   ans is an Arraylist . I am trying to add the user's input which is String. When i run it it prints the first message but has an error when i enter the value for "ch1". It basically doesn't read it and it prompts me for a null pointer exception


How to make a variable to return N/A? (c language)

I have a code in c language and i have a function returning int value. In case of a not fullfiled condition however I need a variable from that function to give me the value N/A (not the big number which it initializes at the beginning). Any tip how to do that? Thanks a lot...


Is $(X,\mathcal T)$ necessarily an indiscrete space?

Let $X$ be an infinite set with $\mathcal T$ a topology on $X$. If $X$ is the only infinite subset of $X$ that is open, is $(X,\mathcal T)$ necessarily an indiscrete space?   My intuitive thinking leads me to think that the answer is NO. We know that, if it is the indiscrete space, then $\mathcal T = \{ \emptyset, X \}$. Notice, however, that we are only given tat $X$ is the only INFINITE subset of $\mathcal T$, we have no information regarding the other possible finite open sets of $X$, that is, there may exist a finite subset $A \subset X$ with $A \in \mathcal T$. This is surely not the indiscrete space, yet it still satisfies the criteria given in the question.  Is there a better exact example that I can provide that might help show my point in a more rigorous mathematical way?


Let $V$ be an inner product space and $T:V \to V$ be a linear operator. Show that $N(T)^\perp=R(T^*)$.  Trial: $N(T)=R(T^*)^\perp$ since $y \in N(T) \iff Ty=0 \iff \langle x,Ty \rangle=0 \quad \forall x \iff \langle T^*x,y \rangle=0 \quad \forall x \iff y \in R(T^*)^\perp$. Taking $\perp$ both sides, $N(T)^\perp=(R(T^*)^\perp)^\perp$. I know that for finite dimensional $W$, $(W^\perp)^\perp=W$. But in this case it may not be finite dimensional. Does it need another approach?


How to change window opacity using mouse wheel or shortcut in Xfce 4.12?

I tried some advice , but it doesn't work. I want window opacity be changed on mouse wheel or on shortcut pressed (like in KDE).


How do I get a comand block in Minecraft pe

I try to get the comand blocks but it says can't give can mojang help


Do all iPhones really delete themselves after 10 failed passcode attempts?

I don't actually own an Apple device, I'm just curious if what I just read is true: Allegedly all iPhones have a function that locks them after 10 wrong passcodes were entered. There is a delay after each attempt, but over an hour or two anyone can enter 10 wrong passcodes. This function can not be turned off. After the phone is locked, the only course of action that remains is to connect the phone to a computer and erase all data that was stored on the phone. Is this actually true?


How to write percentile symbol in latex?

I want to write percentile (‰) symbol in latex. I've tried \‰ but it can't


Negative probabilities in quantum physics

Negative probabilities are naturally found in the Wigner function (both the original and its discrete variants), the Klein paradox (where it is an artifact of using a one-particle theory) and the Klein-Gordon equation.  Is a general treatment of such quasi-probability distributions, besides naively using 'legit' probabilistic formulas? For example, is there a theory saying which measurements are allowed, so to screen negative probabilities? Additionally, is there an intuition behind negative probabilities?


Inset map in print composer shifts when saved as pdf

I'm working on a map in the print composer window of QGIS, with an inset map showing a larger extent and highlighting the area of my main map as an overview. Everything looks good in the print composer, but when I save as a pdf or image, or print as a pdf, the inset map stays the same in the print composer but the inset map on the pdf has totally shifted position and scale. I have the layers and styles for the map item locked.


How to get interface basetype via reflection?

public interface IBar {}  public interface IFoo : IBar {}  typeof(IFoo).BaseType == null   How can I get IBar?


Given a filename in the form someletters_12345_moreleters.ext, I want to extract the 5 digits and put them into a variable.  So to emphasize the point, I have a filename with x number of characters then a five digit sequence surrounded by a single underscore on either side then another set of x number of characters.  I want to take the 5 digit number and put that into a variable.  I am very interested in the number of different ways that this can be accomplished.


I know  we can say:  The plane takes off at 6:40 p.m.(expressing future)  But can I say:  The plane takes off at 6:40 p.m. when everything is ready.  Or I should put "will" here  The plane will take off at 6:40p.m. when everything is ready.  Thanks so much!


If Harry was entered into a tournament of 3 schools, under a fourth school, why was he not rejected?

I've just read  question, which highlights how the goblet was fooled.  But why do the teachers allow it? DVK makes the analogy that it is like a program with a bug. But if a bug presents an obviously incorrect output, why not just ignore it?  I remember the headmasters and headmistresses discussing it, and concluding harry should compete... but I can't remember or fathom why they wouldn't dismiss the result (or at least Harry).


How do I make the comparator work and then stop?

I made a redstone clock that involves a command block with /testfor and a comparator attached to it. Whenever the /testfor works, the comparator turns on, but completely.(meaning it does not turn off after that) I want it to turn on, have a small delay, then turn off. is there some way that i should change this clock, or should I be doing something different with the comparator?


Further or Farther in a metaphor about a road

In this metaphor is it correct to use "further" or "farther"?     That only kicks the can further/farther down the road.   Within the metaphor, the distance is physical, justifying the use of "farther". But since the road is not a literal road, the distance is metaphorical, justifying "further". Which is correct?


How can I run an external program automatically using Python script? I installed a program that can analyze demographics. Let's say the program name is Demograph I am doing the following commands in the Windows command prompt to extract specific people's information. Demograph hobby Baseball FileA > OutputfileA  FileA contains people's information. And this command can extract people who like baseball. I can change the baseball to soccer, swimming, etc. This command generates an OutputfileA. As the next step, I am doing the following command to further analyze the OutputfileA. Demograph age 10-15 OutputfileA > OutputfileA2  This command can extract people's information whose ages are 10-15 from OutputfileA and then generate the OutputfileA2 However, typing this information on the command prompt every time is a pain. I want to do this automatically using Python script. Should I use "subprocess" to run the external program automatically?


Is the line blurring between "accent" and "dialect"?

The definition that I have had in my head for most of my life is:  dialect: a variation of the original language (usually regional), sometimes even using different vocabulary and grammar accent:  a discernible influence of another language (usually because the speaker is not talking in his native tongue)  Yet, I keep hearing about Southern, Scottish or New York accents...shouldn't these be more accurately called "dialects"? I could see that the answer might not be as clear cut in the US as in the UK because there are probably far more "native" American speakers whose ancestors' native language was not English... Disclaimer: I'm German myself and I'm more or less assuming that "accent" and "dialect" directly correspond to their German "lookalikes": "Akzent" and "Dialekt". Maybe the semantics of those two words are simply different in English? If so, feel free to close this question.


How can we prove that all irrational numbers in real line can not be represented as union of countable closed sets.  The result intuitively makes sense and we all know the irrational numbers are uncountable and dense on $R$. And I don't know how to use these facts to prove the result in strict math language.


Is using They,Their and Them acceptable in research paper or thesis?

I argued with my I.T. teacher who is also our research adviser because as far as my knowledge is concerned I insisted that using they, them and their is acceptable based on APA style. She prohibited us from using she and he, which is understandable, but they, their and them? I don't understand that.   So the words left for us to use is  us and students who are the subject of the research and these words eventually become so redundant in our research paper. I think this is very stupid.  Is she correct?


Is the usage of tenses correct in this sentence - "two days had passed since she had last eaten or slept"

Two days had passed since she had last eaten or slept.   Or should it be:     Two days have passed since she last ate or slept.   Or something else? And why? The combinatorial explosion of past simple, past perfect and present perfect is killing me.


If I enter diskutil list there is a strange container:    0:      APFS Container Scheme -                      +500.1 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD - Daten    312.2 GB   disk1s1    2:                APFS Volume Preboot                 91.4 MB    disk1s2    3:                APFS Volume Recovery                528.8 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4    5:                APFS Volume Macintosh HD            11.2 GB    disk1s5    6:                APFS Volume                         14.0 GB    disk1s7  This disk1s7 is also listed (greyed out) in the Disk utility.app. I cannot activate it. If I try to mount it with diskutil mount disk1s7 I get the error: Volume on disk1s7 failed to mount Perhaps the operation is not supported (kDAReturnUnsupported) This appears to be an APFS Volume; note that locked APFS volumes will not mount unless unlocked (e.g. "diskutil apfs unlockVolume")  If I type in diskutil apfs unlockVolume disk1s7 I need to enter a passphrase. I don't know anyone that could work, if I type in just sth. I get: Unlocking any cryptographic user on APFS Volume disk1s7 Error unlocking APFS Volume: The given APFS Volume is not encrypted (-69593)  Any ideas? Can I just delete it?


How can i install Blender from the Snap LTS channel?

When i try to install from the Softwarecenter, i got this error message: snap "blender" requires classic confinement What does this mean?


why doesn't this work?   I run this on two different computers!  I saved the file "Ref.bib" in the same ".tx" file directory   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{biblatex} \addbibresource{Ref.bib}  \begin{document} Let's cite! The Einstein's journal paper \cite{faul2009statistical}  \printbibliography  \end{document}   Error messages:   I found no \citation commands---while reading file texstudio_So6416.aux  I found no \bibdata command---while reading file texstudio_So6416.aux  I found no \bibstyle command---while reading file texstudio_So6416.aux


Android hot network question widget goes to current question

If the Stack Exchange app is already running and displaying a question in the background, tapping the hot network question widget does not switch to the tapped question.  Instead, the SE app will display whatever question was being displayed previously.


Prove that $f(x)=x(a^{1/x}-1)$ is decreasing on the positive $x$ axis for $a\geq 0$.   My Try:  I wanted to prove the first derivative is negative.  $\displaystyle f'(x)=-\frac{1}{x}a^{1/x}\ln a+a^{1/x}-1$. But it was very difficult to show this is negative. Any suggestion please.


So, I want to fit a random effects negative-binomial model. For such a model STATA can produce exponentiated coefficients. According to the help file such coefficients can be interpreted as incidence-rate ratios. Unfortunately I am not a native English speaker and I do not really understand what incidence-rate ratios are or how I could translate them.  So my question is, how can I interpret incidence-rate ratios. E.g.:  If the model gives me an incidence-rate ratios of .7 for one var. would that mean that the number of expected observations (counts) on the dependent var. changes by .7 if the independent var changes by one unit?  Can anyone help?


How can I control a servo motor with the PWM output of a microcontroller?

I wanted to control the direction of servo motor with a switch. I am using an Atmega32.  Outputs are PIND4 and PIND5 and the input is PINA3, but the two servo motors turn only in 1 direction.  #ifndef F_CPU  #define F_CPU 1000000UL   #endif  #include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h>   int main(void) { DDRD= 0xFF ; DDRA=0x00; PORTA =0x00; // FAST PWM TCCR1A |= 1<<COM1A0 | 1<<COM1A1 | 1<<WGM11 |1<<COM1B0|1<<COM1B1 ; TCCR1B= 1<<WGM12|1<<WGM13 ; ICR1 = 19999 ;  TCCR1B |=1<<CS10 ; while (1) {    if(PORTA==0x08) //if pina3 is 1    {     OCR1A = ICR1 -2000 ;   //turn servo 1     _delay_ms(1000);          OCR1B=ICR1-2000;    //turn servo 2     _delay_ms(1000);     }     if(PORTA==0x00)// if pina3 is 0     {       OCR1A = ICR1 -900 ; //turn servo 1 in the other direction       _delay_ms(1000);               OCR1B=ICR1-900;     //turn servo 2 in the other direction       _delay_ms(1000);      } }       return 0 ;  }


Python representation of floating point numbers

I spent an hour today trying to figure out why  return abs(val-desired) <= 0.1   was occasionally returning False, despite val and desired having an absolute difference of <=0.1. After some debugging, I found out that -13.2 + 13.3 = 0.10000000000000142. Now I understand that CPUs cannot easily represent most real numbers, but this is an exception, because you can subtract 0.00000000000000142 and get 0.1, so it can be represented in Python.  I am running Python 2.7 on Intel Core architecture CPUs (this is all I have been able to test it on). I'm curious to know how I can store a value of 0.1 despite not being able to apply arithmetic to particular floating point values. val and desired are float values.


Unable to format internal drive as APFS on 2018 MacBook Pro

I’ve recently ran a semi-routine clean install on my 2018 MacBook Pro. This involves the following steps (in the given order):   Creating a USB installer with the latest macOS Mojave 10.14.2. Booting into the USB (Pressing Option key on boot). Using the Disk Utility, erasing the Disk and formatting it as APFS with a GPT Partition scheme. Using the Terminal, unmounting the disk diskutil unmountDisk disk0, where disk0 is the internal NVME drive. Using the Terminal, running gpt destroy disk0 where disk0. Using the Terminal, running diskutil zeroDisk disk0. Once that process is complete, I use the Disk Utility application to reformat as APFS, and install macOS.   Nothing super crazy, maybe a little redundant in steps, maybe a little overkill, maybe a little unnecessary.  Recently, however, on the final step where I format it as a APFS drive, it fails in creating the APFS container and says Internal State Error. It appears to first format as Mac OS Extended (Journaled) then create an APFS container, then add a APFS Volume. It fails when adding a Volume with An internal error occurred.  I have tried many things, including:   Securely erasing the drive diskutil secureErase 0 disk0. Simply zeroing the disk again diskutil zeroDisk disk0 (I’m not sure what the actual difference between these two are). Reformatting the drive as other things, such as ExFAT / FAT / MacOS Journaled, then trying to format as APFS. Reformatting the drive through the command line instead: diskutil eraseDisk JHFS+ NAME disk0 → diskutil apfs createContainer /dev/disk0s2 → diskutil apfs addVolume disk0s2 APFS NAME (It fails here with Error starting APFS Container creation: The given disk is not an APFS Container Reference (-69630), even though I just made a container there. Also, trying to add a volume to where it actually made the container (i don't know what it does this) diskutil apfs addVolume disk24 APFS NAME also fails with Error: -69624: Unable to add a new APFS Volume to an APFS Container Reformatting the drive using this: diskutil eraseDisk APFS NAME disk0 Restarting and trying these again. Using a different installer than the USB (The one from Command + R, Command + Shift + R, and whatever the other combo is), and trying these again.   All end up at the same thing - the final step fails. I would expect especially after a secure wipe that the drive would be removed from whatever state it was put in, or that if it was a bug with the 10.14.2 installer, that it still wouldn’t happen again in the High Sierra installer. In Disk Utility, I’m left with the following structure:  - APPLE SSD AP(...) // “Container disk24” takes up all space      - Container disk24 // or some other number. “Used” is 207.2MB and “Free” is 1TB.   Please note even though I can format as JHFS+, it won’t let me install the OS to such a formatted volume. The installer tells me this computer forces me to only install on APFS formatted volumes.  Any direction is greatly appreciated. I have never had such a silly problem before. Also, note that I have no Time Machine backup.


Is there a way to change the icon of a page to 'loading/busy'?

I know the cursor can be altered to indicate a page loading:  $('body').css( 'cursor', 'progress' )   for instance... But I'm looking for a way to put the page itself in a loading stage, like the browser is doing when a page is loading, on the spot where normally the favicon would be displayed. Is there a way to change the status of that to waiting?


Let $F|K$ be a field extension and $a \in F $ such that $[K(a):K]$ is odd integer

Let $F|K$ be a field extension and $a \in F$ such that $[K(a):K]$ is odd integer,          then prove that $K(a)=K(a^2)$.


CanPlaceOn tag along with display name? (Minecraft)

I want to know how I can use the CanPLaceOn tag along with a display name for a lever.  I've tried this:  /give @p lever 1 0 {{CanPlaceOn:[log]},{display:{Name:Jungle Key}}}   This doesn't work and says:   Data tag parsing failed: Invalid tag encountered, expected '{' as first char.   What should I do?


Why question ban is not removing after editing the old questions properly?

Currently I can't ask questions in my Stack Overflow account. So I followed the given instructions and edited my old posts. But still I can not ask questions on the site. Please can I know what should I do to avoid this question ban. Any suggestions will be appreciated.


Do image tags in sitemaps count towards the sitemap size limit?

I am working on adding the image:url tags inside the loc tag in our sitemaps. The documentation from Google says I can include up to 1000, image:url inside a loc tag.  There is no mention if this 1000 per loc is counted towards the 50,000 URL per sitemap file limit. Does anyone have any reference to any official documentation regarding this? my research did not yield any official response.