Regression through origin - closed form of slope estimator?

I am following up on discussion . I am interested in the case when we have a linear regression model through the origin $(0,0)$. $$y=\beta_1 x_1 + \epsilon.$$ How can the OLS slope estimator for $\beta$ be dervied and written in closed form?


i have created a simple html survey form how to get radio buttons values selected by user to a data extension

i have created a simple html survey form under cloudpages which constains several questions with radio buttons and some with text boxes for answers. I want to know how to get radio button's values selected by user along with text in textboxes to a data extension.  Is it something which can be done through SSJS or AMpscript? I was trying to use this script in html form          This is the page for    I would also like to know how to capture the email address of subscriber who filled the survey as I haven't included any email address field in this form.  Updated ampscript          %%[ var @q5_overallHow5, @q6_didOur6, @q8_wouldYou8, @q10_whatAspect10, @q11_whatAspect, @q12_pleaseExplain, @q15_additionalComments15  set @q5_overallHow5 = RequestParameter('q5_overallHow5') set @q6_didOur6 = RequestParameter('q6_didOur6') set @q8_wouldYou8 = RequestParameter('q8_wouldYou8') set @q10_whatAspect10 = RequestParameter('q10_whatAspect10') set @q11_whatAspect = RequestParameter('q11_whatAspect') set @q12_pleaseExplain = RequestParameter('q12_pleaseExplain') set @q15_additionalComments15 = RequestParameter('q15_additionalComments15')  InsertData("SurveyResults",            "q5_overallHow5",@q5_overallHow5,            "q6_didOur6",@q6_didOur6,            "q8_wouldYou8", @q8_wouldYou8,             "q10_whatAspect10", @q10_whatAspect10,             "q11_whatAspect", @q11_whatAspect,             "q12_pleaseExplain" @q12_pleaseExplain,             "q15_additionalComments15", @q15_additionalComments15           ) ]%%
Thank you

Thank you for completing the survey.


How to check java version on multiple servers?

I have 100 servers and i need to login to them with ssh from central server using script: i tried below with this i should get the version redirected to the file which will be stored at central server.  #!/bin/bash  CMD='java -version' while read line do     ssh -n user@"$line" $CMD >> /pathforoutputfile/outputjava.txt  done < /pathforhosts/hosts.txt   But I am not getting output generated in file /pathforoutputfile/outputjava.txt


Simple question  What is better:  http://www.example.com/product/123/subpage/456.html   or  http://www.example.com/product?123/subpage/456   As far as I know they would rank the same SEO wise, but my SEO knowledge might be a little off. Also the last one seems to be easier and cleaner to implement on my end.  Please explain to me which is better and for what reasons.


Assuming either |z|=1 or |w|=1... basic complex analysis

Assuming either $|z|=1$ or $|w|=1$ and $\bar z w$ $\neq 1$, prove that  |$\frac{z-w}{1-\bar zw}$| $=1$  Any hint? I don't have a clue


I am using this code to extract the genres from list of dictionaries.  dict=[{'genres': ['Thriller'], 'year': '2014'}, {'genres': ['Animation','Drama'], 'year': '2014'}] test=[i["genres"] for i in dict] test [['Thriller'], ['Animation', 'Drama']]   I want to remove the inner list and create single list.  Expected output:['Thriller', 'Animation', 'Drama']


draw triangle $\Delta ABC$ in which $\overline{AB}=5.5$ cm, $\widehat{C} =40^{\circ}$ and $\overline{BC}-\overline{AC}=2.5$ cm

Help me doing this question I tried this question whole day but could not find the answer


Embedding of a closed subspace of $L^1_m([0,1])$ with each element in some $L^p$ with $p>1$ in a higher $L^{p_0}$.

Let $S$ be a closed subspace of $L^1_m[0, 1]$ such that each $f\in S$ belongs to some $L^p_m[0, 1]$ with $p>1$. Prove that there exists a $p_0 > 1$ such that all $S$ is contained in $L^{p_0}_m[0,1]$.  My attempt: Since for finite measure spaces if $1\leq p\leq q<\infty$, $L_q\subseteq L_p$. So we can take the infimum of all such $p$. But I am not sure how to use the closeness or completeness of $S$ to say that the infimum is strictly greater than $1$.  And what is the counterexample when $S$ is not closed?


Analysis of the Phrase "if you have questions, then I'll be available after class

I am looking for an analysis or explanation of the phrase "if you have questions, then I'll be available after class." Although this is structured like a conditional, it's not actually a semantically reasonable conditional statement. Instead of using the first clause to limit the scope of the truth of the second clause, the speaker is using the first clause to address the second clause to a subset of the audience. I've come across people using phrases structured like this frequently in casual conversation in the United States.  This doesn't seem to work with any of the definitions of "if" or "if... then... " found in , , or .


What type of substrate should I use to install pavers over an existing poured slab patio

I'm going to be putting pavers over an old slab patio. The current patio has settled and spalled, so I'm looking to pitch the paver patio in such a way that it drains as the original slabs did. In some places that will mean 2" of substrate while 1/2" in others.   It is surrounded on two sides by brick wall, and a third side by pressure treated wood (the side of a house built on concrete tubes). The fourth side is the down hill side. Since there is something constraining on all sides, do I really have to cement the perimeter pavers down, or can I just install again existing surfaces?  I plan on using polymeric sand for the cracks, but what is the best type of substrate to use under the pavers if they are on top of solid concrete? Should I compact the substrate or not?


In a class file I want to append an email address to the title. My naive approach was:  \AtBeginDocument{   \title{\@title – [email]}   \maketitle }   But this just doesn't work. If I do \@latex@error{\@title} afterwars for debugging purposes, I still get the old title. What am I doing wrong here and how would be a correct approach? (Also, \def\@title{…} didn't work and \def\oldtitle\@title \title{\oldtitle …} did neither)


This next year, I am helping an effort to clean several SQL Server environments.    We have about 10,000 stored procedures and estimate that only about 1000 of them are used on a regular basis, and another 200 or so are used on a rare occasion, meaning we have a lot of work to do.    Since we have multiple departments and teams that can access these databases and procedures, we are not always the ones calling the procedures, meaning that we must determine what procedures are being called.  On top of that, we want to determine this over a few months, not in a few days (which eliminates some possibilities).  One approach to this is to use the SQL Server Profiler and track what procedures are being called and compare them to the list of what procedures we have, while marking whether the procedures are used or not.  From then, we could move the procedures to a different schema in case a department comes screaming.  Is using the Profiler the most effective approach here?  And/Or have any of you done something similar and found another way/better way to do this?


just wanted to inquire that can Visas be stamped on the Observation Pages of the Passport? I called my Embassy for renewal of Passport, however, the Passport Officer commented that you still have Observation Pages left. This was pretty strange to me as i never heard that Visas can be stamped on the Observation Pages. Does anyone has this experience?


Book about a family who can contact each-other with playing cards

This book was written in the 80's possibly. The book opened with the male antagonist having amnesia and a broken leg. The family can travel upon the "road" and it changes. They can contact each-other using cards, like the ace or the queen. Who wrote this, I must know.


Prove that $\left(\sum^n_{k=1}x_k\right)\left(\sum^n_{k=1}y_k\right)\geq n^2$

If $x_1,...,x_n$ are positive real numbers and if $y_k=1/x_k$, prove that $$\left(\sum^n_{k=1}x_k\right)\left(\sum^n_{k=1}y_k\right)\geq n^2.$$   I've been learning induction, and I've come across this problem that I really can't even break down and begin to think about. I've been told it has something to do with Cauchy-Schwarz, but I cannot figure out how to apply it. I would appreciate help figuring out how to go about and formulate this proof. Thanks!


Group member cannot write even with write permission

The logged in user is a member of a group that has a write permission on a folder. But when this user is trying to write something, "permission is denied".  The log below summarizes the question:  subv:/www/tracer/ whoami frank subv:/www/tracer/ subv:/www/tracer/ ls -ltr  total 4 drwxrwxr-x 2 root tracer 4096 Jan 20 12:25 convert.tracer.com subv:/www/tracer/ groups frank frank : frank tracer subv:/www/tracer/ > convert.tracer.com/test -bash: convert.tracer.com/test: Permission denied subv:/www/tracer/   Output of "ls -bail /www/tracer/convert.tracer.com/":  subv:~/ ls -bail /www/tracer/convert.tracer.com/ total 8 38010883 drwxrwxr-x 2 root tracer 4096 Jan 20 12:25 . 38010882 drwxr-xr-x 3 root root    4096 Jan 20 12:25 .. subv:~/


Fibonacci combinatorial identity: $F_{2n} = {n \choose 0} F_0 + {n\choose 1} F_1 + ... {n\choose n} F_n$

Can someone explain how to prove the following identity involving Fibonacci sequence  $F_n$  $F_{2n} = {n \choose 0} F_0 + {n\choose 1} F_1 + ... {n\choose n} F_n$ ?


Where is the backup location from Titanium Backup on a phone without an SD card?

I am currently using a Samsung S6. Today I backed up all of my data with the app "Titanum Backup". After backing up all of the data, I transferred the folder of Titanium Backup to my Google Drive. Afterwards, I restored my phone. Then I installed Titanium Backup. However, I don't know where I need to import the folder "Titanium Backup" for the app to restore the the data. I saw many YouTube videos, and their restore was in a SD Card. However, the S6 doesn't have an SD card. Can someone please help me? Thanks.


How to create polygon from my coastline in qgis?

I've downloaded the data from Natural Earth (coastline at a scale 50 million), I've cut the coastline into my study area, I wanted to clip other vector datasets as well, for this I wanted to convert my coastline to a polygon. I've tried 2 methods: 1) Polygonize and 2) Line to Polygon (both are in processing tool), but as you can see from both of the results of this method, it gave me weird polygon shape.   Are there any other tools to create my coastline to a polygon and how?  This is my study area, which is with 2 polygon    This is the result of "Polygonize" (coordinates: user-defined coordinates)    This is the result of "Line to polygon" (WGS84, 4326)


difference between instance vs object during class instantiation in python

can some one please share their knowledge on instance vs object, i am using python 2.7 version.    i created a class and assigned to a variable t  class test():     pass  t=test()   at this point i thought t is an object of class test but when i print i get a instance   print t <__main__.test instance at 0x7fb1a3562b00>  type(t) <type 'instance'>  now i created another class with object  class Spam(object):      pass  s=Spam()   so when i printed this i was expecting it to be an object or instance ,  but i get a class type.  print s <__main__.Spam object at 0x7fb1a3560f10> >>> type(s) <class '__main__.Spam'>    i thought object is the base class from which all the classes are derived, if i mention in the class def or not. i am confused.  please share your thoughts  thanks  pradeep


Prove that the sequence contains a perfect square for any natural number $m $ in the domain of $f$ .

The domain of a function $f$ is the set of natural numbers. The function is defined as follows: $$f(n)=n+\left\lfloor\sqrt{n}\right\rfloor$$ where $\lfloor k\rfloor$ denotes the nearest integer smaller than or equal to $k$ Prove that for every natural number $m$ the following sequence contains at least one perfect square $m, f(m), f^2(m),f^3(m),\ldots$. The notation $f^k$ denotes the function obtained by composing $f$ with itself $k$ times e.g $f^2 = f\circ f.$  I tried this out using induction but I got stuck and couldn't make it. Please help me with this problem.


What is the name of this combined button/popupbutton?

This button is in the new Firefox, but what is the name of it?


First-Order Logic vs. Second-Order Logic

describes the first-order vs. second-order logic as follows:     First-order logic uses only variables that range over individuals (elements of the domain of discourse); second-order logic has these variables as well as additional variables that range over sets of individuals.   It gives $\forall P\,\forall x (x \in P \lor x \notin P)$ as an SO-logic formula, which makes perfect sense to me.  However, in a , the poster claimed that $\forall x\forall y(x=y\leftrightarrow\forall z(z\in x\leftrightarrow z\in y))$ is an FO formula. I think this must not be the case, since in the above formula, $x$ and $y$ are sets of individuals, while $z$ is an individual (and therefore this must be an SO formula).  I mentioned this as a comment, but two users commented that ZF can be entirely described by FO logic, and therefore $\forall x\forall y(x=y\leftrightarrow\forall z(z\in x\leftrightarrow z\in y))$ is an FO formula.  I'm confused. Could someone explain this please?


if a chicken has been in the freezer from November 18 till now July 2 is it safe to cook it and eat it??I'm old and I don't understand


Parentheses vs. double commas vs. dashes to provide additional detail

When do you use commas and when do you use parentheses to provide more detail about something?  For example:   The suspect, Tom Wilson, is now being charged with murder. The suspect (Tom Wilson) is now being charged with murder. John Smith, a member of the jury, agreed with the verdict. John Smith (a member of the jury) agreed with the verdict. The first example, the one about the fox, is the more valid one. The first example (the one about the fox) is the more valid one.   I realize that the first example, the one that uses parentheses, is probably more valid in this case (if anyone has a better example, please include it), but when, if ever, would you favor parentheses?  Update: I realize that dashes are sometimes used for similar situations, so I'd appreciate information on these as well.  For example:   The children—who are wearing shoes—will go on the trip The children, who are wearing shoes, will go on the trip The children (who are wearing shoes) will go on the trip


How does the "<( cmd )" pattern work in bash?

In bash, I use arguments that look like  paste <(cat file1 | sort) <(cat file2 | sort)   or  comm <(cat file1 | sort) <(cat file2 | sort)   When I check man comm or man paste, the documentation says the args are indeed FILES.  Question:     Are intermediate temporary files get created (on TEMP filesystem or elsewhere on slower disk) for <(cat file1 | sort) and <(cat file2 | sort)?  What is the name for this <( ) magic? (to lookup its documentation) Is it specific to bash or does it work across other shells?


I'm trying to find a way to check if the word "miami" appears in this array and print out if it does or doesn’t. I'm not sur wether to use the for loop or forEach loop. How can I print "true" the fact that the word "miami" exists in the array bellow?  let word = "miami"; let arr = ["bcn", "mia", "sao", "mex", "par", "miami", "ams", "ber", "paris", "lis", "mad"];  for (let i = 1; i <= 11; i < arr.length; i++) {   if (i === 21){     console.log("miami");     break;   } else {     console.log(i);   } }


Is there any reason for principle of least action to be true?

My question is not rigidly related to physics. The principle of least actions says that for any dynamical system there exists a function parameterized by $q$'s and $\dot{q}$'s such that the line integral of the function from state $A$ to state $B$ with respect to the parameter $s$ is stationary. Is there any rigorous mathematical proof of the principle?  Can I apply the principle of least action to study the evolution of a dynamical system in phase Space?


How can I rigorously prove this fundamental inequality?

How can we prove formally, that $a \gt 0 \implies \frac{1}{a} \gt 0$? In general, what is the process one may take to do this with confidence?


I am an Indian holding valid Canadian student visa, I am travelling from Toronto to Chennai via London on same ticket but different PNR with Air Canada and British airways..My luggage goes to Chennai directly but I need change flights in terminals 3 and 5 in Heathrow in 2hr 25min layover, Do I need transit visa in London?!  I don't need to recheck the luggage, my airlines sends it last destination and my airlines said I will be given both boarding passes at Toronto itself...


How to trigger shell script on Unix via email from Exchange Server

I have been asked to setup an automated trigger on Unix upon receiving a certain kind of email from MS Exchange server.  The requirement is to trigger a shell script when any person from a fixed list of senders sends an email via MS Exchange server to a designated email account on unix.  For example:  Email from rob81@host1.com (Exchange Server) sends an email to unix@host2.com (Linux) with the subject: Unlock Account X  This ideally should trigger a shell script that will have code to unlock Account X.  Is there a way to configure this on Unix so that upon receiving an email as described above, I can trigger a shell script?


The topography of an empty lake is given by a function f(x,y)=z. Each spring the lake is filled by water. The waterstand is given by a constant z=c, where c is a constant. How long is the shore of the lake?   What I am actually asking is: Is there any way to compute the lenght of a regular implicit curve?


Unexpected page breaks with parallel package

I am trying to use the package parallel to typeset some text in two languages. The text in language A should appear on even pages, the text in language B on odd pages. I typeset  \documentclass{article}  \usepackage{parallel}  \begin{document} \begin{Parallel}[p]{}{} \ParallelLText{Hello} \ParallelRText{Hallo} \ParallelPar \ParallelLText{Hello} \ParallelRText{Hallo} \ParallelPar \end{Parallel} \end{document}   Does anybody know why the parallel package breaks the page after the first \ParallelPar? That is, why do I get 5 pages output instead of 3? Is this a feature or a bug of the package or did I do something wrong?


I tried by induction but at induction step I struck.I am bad at proving statements which involve variables as exponents.I gladly appreciate any help


Term used for juxtaposing different meanings of the same word

There is a technique used occasionally in (often comic) writing, whereby two different meanings of the same word are combined in a sentence to create a sense of surprise in the reader.  My particular favourite comes from the Flanders and Swann song "Madeira M'Dear" ():  "And he said as he hastened to put out the cat, the wine, his cigar and the lamps"   (So the cat is removed, the wine is brought in, and the cigar and lamps are extinguished)  Is there a proper name for this as a literary device?


How to remove headers and footers for pages between chapters?

To ensure that a new chapter starts on a right-hand page, the book class (and the report class with the options twoside and openright) will insert blank pages between chapters if necessary. However, these pages still contain the headers and footers as defined by the class. How can I remove those?  Note: I know that I can manually add \clearpage\thispagestyle{empty} at the appropriate points of my document. However, this seems awkward and is prone to fail if I change my document later. I'm looking for automatic solutions.


Are there any pitfalls to having a file-system directly on the hard disk with no partitions?

In Linux it's possible to format a non-system hard disk directly, without first putting any partitions on it.  I've formatted a raw hard disk using mke2fs, creating an ext4 volume /dev/sda, rather than /dev/sda1.  This seems to work perfectly; and presumably if there's no partition then that's one less thing that can go wrong.  However, I wonder why I can't find anyone else who has advocated this. I know it's not possible in Windows, but I can't find anything in Unix land either.  So if I only want one non-system volume on a hard disk, is there any reason why should first create a partition before formatting it?  EDIT: As is often the case, I've found several related questions here after I posted this one:


I have a group of 5 players, 3 are long time veterans and we have been playing together for 15 years, the other is a newcomer who is actually liking the game a lot, and there's a 5th player that joined recently, the gf of one of the veterans. She is also new to roleplaying games.  I'm running an introductory and modified version of Wizard's amulet/Crucible of Freya (Chauntea) on the Forgotten Realms setting, adding a bit more detail and NPCs and preparing the background so the players put their eye on the Silver Marches. Everything was running smoothly until the new player joined the game. She seems to dislike everything that happens in the game. Roleplaying with the other players and with the NPCs at the town seemed to bore her, more action packed sessions like the assault on the orc infested fortress got her sleepy, and exploring a wizards sanctum and laboratory also looked unappealing to her.  Most of the time she stays quiet, and when me or another player ask her directly if she wants to do something she does, but just because she has to. Whats worst is that after 2 or 3 hours into the session, she starts arguing with her bf about gods know what, and that breaks the good atmosphere of the game and the session turns uncomfortable.  I don't really know what to do to make her enjoy the game. Maybe she doesn't like the other players, maybe she doesn't like me, or maybe she doesn't like the setting/adventure.  Any ideas on how to approach this situation?  Edit:  First, thanks everyone for the input. I guess asking her it's the first thing to do, but this behaviour was new to me and I wasn't sure what to do.   Scott, they started playing as level 1 characters, and she joined when the rest of the party were level 2 and yesterday they all progressed to level 3. We are only using the players handbook, DM guide, monster manual and Forgotten Realms setting and the Quintessential books for each class to add a little more flavour to the characters. Initially it was an introductory adventure for the new guy, so I wanted to keep it simple to give him a general idea of the setting and our game style.  The 3 veterans are playing a rogue, a bard and a druid (her bf). The other new guy started as a barbarian, and the new girl is playing a fighter. So far no player kills, they are being very VERY lucky (and smart) So far they have battled low level undead such as zombies, orcs, a low level necromancer and a 5th level cleric, so there are not a lot of rules floating around.  I'm all against creating encounters that take forever to resolve, I played Rolemaster for a long time and I learned to hate those kind of encounters that lasted for hours, so even if we are using an existing module I write everything in my book so I have a quick reference of everything at hand. I don't think it's a pace issue, as I try to focus more and what the characters want to do and less on the strict rules, although I use the rules for solving the situations, of course.  Edit 2: KRyan pointed a very similar thread so I think this one doesn't add much to the web. Now its me playing the newb. Ouch! So yeah, this question is very similar to the other one so close it. Thanks again for the input guys.


Trying to do 2D to 3D from a 3/4 view image

So I've been trying to turn this image into a 3D model for about 3 days now and I've watched a lot of 2D to 3D videos to try to find a work around but no luck. To me the issue comes from the perspective that the image is drawn in, because from all the videos I've seen they've all used side and front views.


how to get text from html to wpf textbox

How can I pass a text from my HTML file to my WPF textbox, I'm trying to make a program wherein I will get the text from my html file then that text will be transferred to a textbox in WPF


Human tests—called clinical trials—are the gauntlet of drug   development , and have three phases   What does "gauntlet" mean in the above context?  "throw down the gauntlet" is an idiom "to issue a challenge" where gauntlet refers to a type of glove. In the above extract the word gauntlet alone has been used as a noun, what does it mean there?


I encountered this question in a document I found on a  google search, it bugged me because my perception keeps telling me I'm wrong no matter what I do.     Let $U$, $W$ and $Z$ be subspaces of a vector space $V$ and the following conditions are satisfied:         $U + Z = W +Z$     $U \cap Z = W\cap Z$     $U \subset W$           Prove that $U=W$   So I tried proving by contradiction that $U$ is not equal to $W$,  by saying there exists some vector $w \in W \setminus U$ and  if $w \in W \cap Z$ then $w \in U \cap Z$ which means $w \in  U$. At this momment my mind is shouting  "This isn't it", and I think I should be using a different approach.


Getting the coordinates of a point on section

What is the endpoint $P(x,y)$ of a line segment , if I know its starting point: $C(x(1), y(1))$, the gradient $G$, and its length $L$?


$f$ is differentiable. If $\lim_{x \to c}f'(x)$ exists, then this limit must be $f'(c)$.

Please prove: Let $f:(a,b) \to R$ be differentiable function, and let $c \in (a,b).  $  If $\lim_{x \to c}f'(x)$ exists and is finite, then this limit must be $f'(c)$.  I tried doing it directly but it doesn't quite work out. I experimented on some common functions (like $\sin(x), x^2$) and it seems pretty obvious.  I'm thinking about using contradiction, although after writing down some definitions, I couldn't proceed. Or, probably if I could show that $f'(x)$ is continuous, then I win. Any idea? Thanks!


Let $m,n$ be $2$ numbers between $1-100$ . what is the probability that if we select any two random numbers then $5|(7^m+7^n)$ . My attempt last digit should be $5$ or $0$ so $7$ powers follow the pattern $7,9,3,1,7...$ so $m,n$ should be such that if one gives $7$ as last digit other should give $3$ as last digit. Same for $9,1$ . but this will take time and it was asked in a competitive exam with little space for Rough work so i believe there exists a simple logical way. Hope you guys help.


I'm currently just getting involved with electronics, just bought an Arduino starter kit and am fiddling around with it.  Currently i'm on a project which involves the use of a DC(spinning) motor in conjunction with an Arduino, and the book im using states that motors typically require more current that what the Arduino can provide, and that the Arduino can only provide 40mA, which is much less than what most motors require to do work.  However, the book states     Transistors are components that allow you to control high current and high voltage power sources from the low current output of the Arduino   and     Motors require special consideration when being controlled by a microcontroller.Typically the microcontroller cannot provide enough current and/or voltage to power a motor.Because of this, you use transistors to interface between the two.   I've done some googling and know the basics of how transistors works (e,g doping, n-type and p-type) but i don't see why attaching a transistor to a circuit/microcontroller that outputs less current that the motor requires magically makes the motor works.  I would really appreciate any clarification and/or explanations.  P.S. I thought that this question might better fit this site rather than Arduino.stackexchange as it is more about transistors in general.


Missing memory on USB flash drive isn't visible with disk management

Just as the title says, I have a USB flash drive (16 Gb) that seems to have lost ~2 Gb. Both Windows Disk Managment and DiskPart agree that there's only 14 Gb be had, but I know it had more when I bought it.  I had put an OS image on it as recovery media previously, but I had thought a simple reformat and once-over with Disk Management or DiskPart would be enough.      Basically, What's going on here?


Can I find the encryption key if I know the plain text and the encrypted text (DES and AES)?

If I have the plain text and its output after encryption with a key K1, is it algorithmically feasible to find K1?  I am specifically interested in the cases of DES and AES encryption algorithms.


Running bat file at startup as administrator in Windows 7

I'm currently running a startup script in form of a bat file successfully in Windows 7 (I've inserted a new registry key entry with the bat file path as value in   Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run).   Now I need to run another bat file at startup, but with elevated rights (as administrator), and without manually confirming a prompt.  How can I achieve this, preferrably without external programs?


How can older devices be deleted from Google Play?

AirDroid keeps reminding me I haven't updated one of my devices but I don't own it anymore. I can't find the option to remove the older smartphone from Google Play either! Unchecking "show in menus" didn't work.


An interesting question about probability

Assume that 100 passengers waiting to go on board for their flight. Each passenger has his own seat. Now unfortunately the passenger number one is drunk and he is gonna take one of the 100 seats randomly. For one of the rest 99 passengers, if his seat has not been taken before he entered the plane, then he normally take his own seat; otherwise he will take a vacant seat randomly. Now the problem comes: what is the probability that the last passenger can be seated in his own seat?   I tried to calculate the probability when there are totally 2, 3, 4, 5 passengers and found that P=1/2. So I think using induction is OK to prove that P=1/2 for arbitrary n. But is there any alternative methods?  Thanks!


UNABLE_TO_LOCK_ROW error during inserting a new Record

I am trying to insert new records in Salesforce using data loader, but getting the below error - Error received from salesforce.com.  Fields [].  Status code [UNABLE_TO_LOCK_ROW].  Message [unable to obtain exclusive access to this record].  I thought this happens only during update, but why it is happening in Insert


installing rtl8814AU wifi adapter driver on ubuntu 16.04

I'm trying to install an rtl18814 driver  for an ASUS USB AC68 wifi adapter.  There have been quite a few threads about this, which being ignorant I found impenetrable.   But there was one thread that seemed straightforward.    Following the suggestion by @SomeOne01 from , I downloaded a zipfile called rtl8814au-master.zipfrom  and followed @SomeOne01's instructions.    It worked seamlessly on Ubuntu 18.04, which was a first in my ubuntu experience.     But unfortunately I needed the adapter on a machine running 16.04 (xenial).     When I ran make on that machine, I got the following error.  make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-139-generic/build M=/usr/local/src/rtl8814au-master  modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-139-generic'   CC [M]  /usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.o /usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.c: In function  rtw_get_systime_us : /usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.c:352:2: error: implicit declaration of function  ktime_get_boottime_ts64’[-Werror=implicit-function-declaration]   ktime_get_boottime_ts64(&ts);   ^ cc1: some warnings being treated as errors scripts/Makefile.build:277: recipe for target '/usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.o' failed make[2]: *** [/usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.o] Error 1 Makefile:1439: recipe for target '_module_/usr/local/src/rtl8814au-master' failed make[1]: *** [_module_/usr/local/src/rtl8814au-master] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-139-generic' Makefile:1699: recipe for target 'modules' failed make: *** [modules] Error 2   Could anybody please suggest  how to proceed on 16.04 xenial?  Thank you very much for any suggestions.


I've noticed that almost every Windows application has it's Options dialog accessed from a different menu and item name.  Here is an example of some of the programs on my computer, showing where the Options menu item is, and what it's called:   As you can see from the pie charts, there doesn't seem to be a clear pick for the menu name, although the menu item is most often called "Preferences". This is incredibly frustrating for the user when they're searching for the link, and something that has particularly annoyed me. (This image took far too long to make!)  So, where should I put the link to the options dialog?


XQuery on Extended Events joining with dm_exec_query_plan not working

I have this XQuery for my extended event session which works fine but when I try joining the plan_handle to dm_exec_query_plan to get the query plan, it says      Msg 257, Level 16, State 3, Line 1 Implicit conversion from data type   varchar to varbinary is not allowed. Use the CONVERT function to run   this query.   If I convert to varbinary, this is the error I receive.     "Msg 569, Level 16, State 5, Line 1 The handle that was passed to   dm_exec_query_plan was invalid. "   If I manually pass the handle into the DMF, it works just fine. This is how it looks like in varchar format (after adding the 0x)     0x06000700f9971028f01033ae0300000001000000000000000000000000000000000000000000000000000000   SELECT         q.Time         ,q.[CPU (ms)]         ,q.[Duration (s)]         ,q.[SQL Statement]         ,q.plan_handle FROM ( SELECT         data.value(     '(/event[@name="sql_statement_completed"]/@timestamp)[1]', 'DATETIME') AS [Time]         ,data.value(        '(/event/data[@name=''cpu'']/value)[1]', 'INT') AS [CPU (ms)]         ,CONVERT(float, data.value('(/event/data[@name="duration"]/value)[1]', 'BIGINT')) / 1000000         AS [Duration (s)]         ,data.value(         '(/event/action[@name=''sql_text'']/value)[1]', 'VARCHAR(MAX)') AS [SQL Statement]         --,data.value('(/event/action[@name=''plan_handle'']/value)[1]', 'varchar(4000)')       AS [PlanHandle]         ,'0x' + CAST(data.value('(/event/action[@name="plan_handle"]/value)[1]', 'varchar(4000)') AS varchar(4000)) AS plan_handle     FROM (         SELECT             CONVERT(xml, event_data) AS data         FROM sys.fn_xe_file_target_read_file         ('H:\SQLskills\EE_ExpensiveQueries*.xel', 'H:\SQLskills\EE_ExpensiveQueries*.xem', NULL, NULL)     ) entries     )q     CROSS APPLY sys.dm_exec_query_plan(plan_handle)


How to remove Duplicate value from arraylist in Android

ArrayList<String> values=new ArrayList<String>(); values.add("s"); values.add("n"); values.add("a"); values.add("s");   In this Array, I want to remove repeated values.


add a blank file to the windows 'new' context menu

Whilst i have found posts that tell me how to add a new context item for a specific file type, i seem to be unable to see a way of adding one for a blank file (a la ubuntu).  Is there a way of adding just a blank file (with no extension), which i can then rename myself with the appropriate extension?


I'd really love your help with the following one: : Let $g$ a primitive element modulo $m$, $g^{\varphi(m)} \equiv 1\pmod{m}$. I need to prove that  $g^k$ is a primitive element modulo $m$ iff $\gcd (k,\varphi(m))=1$.  First I tried to assume the left part, since $g^k$ is a primitive element so $g^k \equiv 1\pmod{m}$, so that $k \neq \varphi(m) $. so there is a $r$ such that $r| \varphi(m)$, $r|k$.   if $k=r$ so $\varphi(m)=kt$ for some $t$, $t &lt \varphi(m)$ so that $1 \equiv g^{\varphi(m)}=g^{kt}=(g^{k})^t$ so $g^k$ is not an primitive element. if $k \neq r$  so there are $a,b$ such that $\varphi(m)a+kb=r$ for $r\gt 1$, what can I do next?  I succeeded the other direction.  Thanks a lot


Entering Sleep state due to 'Low Power Sleep': Using AC (Charge:53%) 46 secs

This question is def. not a duplicate of the ones linked. "Your Battery is Dead", I'm afraid, is not the solution.  Edit: The event did not happen with AC plugged in, it happened on battery. I then plugged in the AC in order to wake it. The battery is fine and does not need replacement.  So I woke my MBP from sleep, plugged in my iPhone and within a minute, computer put itself back to sleep. I plugged the AC in, woke it up and checked the logs. The offending message is the title of this Q.   My battery has gone through about 926 cycles, so not exactly dead. Couldn't for the life of me figure out what had happened, but I run Micro Snitch in the background, which happened to be telling me that a microphone had kept getting connected/disconnected.   Well, at that point, I quickly realized that the Apple Lightning to USB adapter I plugged in was faulty and constantly cycling on/off, thus throwing my machine into disarray, as Photos and iTunes are set to open automatically when my phone is attached.   I'm guessing that the algorithm used to determine "remaining charge" decided that if my laptop kept doing what it was doing, the battery would very quickly die, so it put itself to sleep.   Of course, I could be wrong.   My question is, does anyone know where I can look to verify this (or what) happened, exactly? 'Low Power Sleep' isn't exactly an error, so my guess is this would be logged as an ordinary event.   Here is current battery info:    Charge Remaining (mAh):   4893   Fully Charged:    No   Charging: Yes   Full Charge Capacity (mAh):   7426   Cycle Count:  926   Condition:    Normal   Battery Installed:    Yes   Amperage (mA):    3586   Voltage (mV): 12436   Thanks.


When is a review task "completed" or "invalidated"?

I've noticed that the number of reviews required to remove a post from a queue varies. For example, to accept/reject a suggested edit, you need two votes of the same kind. If the votes are conflicting, the number goes higher. This seems to be the case for the other queues as well. (Additionally, I think that a mod-review is binding) So, my question is: what are the criteria for a review to be marked as a "completed" review? Also, when is a review considered invalidated (i.e. "no longer reviewable")? Formerly When is a post removed from a review queue?.


Flawed proof by induction that $a^{n-1}=1$

Donald Knuth "The Art of Computer Programming" Section 1.2.1 has an exercise No.2, the solution to which I don't understand. Exercise:  There must be something wrong with this proof. What is it? Theorem. Let $a$ be any positive number. For all positive integers $n$ we have $a^{n-1}=1$. Proof. If  $n = 1, a^{n-1}=a^{1-1}=a^0=1$. And by induction, assuming that the theorem is true for $1, 2, ..., n$, we have $a^{(n+1)-1}=a^n=\frac{a^{n-1}\times a^{n-1}}{a^{(n-1)-1}}=\frac{1\times1}{1}=1$; so the theorem is true for $n+1$ as well.  As far as I understand the proof by induction, the solution should be approximately following:$a^{1-1}=1$Assume that $a^{n-1}=1$;Therefore $a^{(n+1)-1}=1\times a$;So $a^{(n+1)-1}$ does not equal $a^{n-1}$ and does not equal $1$, unless $a=1$ The solution to exercise reads:  The theorem has not been proved for $n=2$; in the second part of the proof, take $n=1$; we assume there that $a^{-1}=1$. If this condition is true (so that $a=1$), the theorem is indeed valid.  I want to compare it to another, correct, proof by induction in the example from :  Adding up Odd Numbers $1+3+5+...+(2n−1)=n^2$  Show it is true for $n=1$ $1=1^2$ is True Assume it is true for $n=k$ $1+3+5+...+(2k−1) = k^2$ is True (An assumption!) Now, prove it is true for $(k+1)$ $1 + 3 + 5 + ... + (2k−1) + (2(k+1)−1) = (k+1)^2$We know that $1 + 3 + 5 + ... + (2k−1) = k^2$ (the assumption above),so we can do a replacement for all but the last term:$k^2 + (2(k+1)−1) = (k+1)^2$Now expand all terms:$k^2 + 2k + 2 − 1 = k^2 + 2k+1$And simplify:$k^2 + 2k + 1 = k^2 + 2k + 1$They are the same! So it is true.So: $1 + 3 + 5 + ... + (2(k+1)−1) = (k+1)^2$ is True   Returning to the first example, I didn't quite understand the meaning of the phrase  The theorem has not been proved for $n=2$;  In the second (correct) proof there is no proving that it holds for $n=2$, despite covering the same topic. And Knuth himself has the proof of the theorem $1+3+5+...+(2k−1) = k^2$ similar to the one above, where he too doesn't prove it for $k=2$. So what did he mean by this phrase? Does he mean that there already is an exception in the rule stated when we take arbitrary $n$, for example $n=2$, so therefore it wouldn't hold for all examples anyway? But taking arbitrary numbers and putting it into equation instead of $n$ doesn't seems to be an effective and systematic way to debunk such proofs. How would you explain what is wrong with the exercise?


Should "Applied Cryptography" be capitalized? Is it a proper noun?

I'm trying to write a cover letter for a fairly prestigious job, and I'm aiming for (arguably too much) perfection in my cover letter. I don't want to be turned away only because the hiring people though I was too careless with my punctuation and capitalization.  My sentence goes as follows:     I hope to one day go on to complete a Masters degree in Computer Science with a focus in Applied Cryptography.   I've never been great with the technical rules of the English language, despite being a native speaker.


How do I prevent the iPhone screen from dimming or turning off while my application is running?

I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode.  Is it possible to disable power saving from an app?


Are we allowed to embed pirated movies on SE?

Are we allowed to embed full length copyrighted pirated movies on Stack Exchange? If not, what should someone do if they see this happen? I flagged a post that had one but it was declined.      answered 7 hours ago by Richard      Piracy/Copyright infringement. Full movie posted. – cde 4 hours ago   declined - flags should only be used to make moderators aware of content that requires their intervention   I know SE takes copyright infringement very serious, as the standard policy is to ban someone for tag edits that include Wikipedia text, but are pirated movies exempt?


Here is my situation. I originally (only) have Ubuntu 14.04 on my laptop. Then, I installed Windows 10 into a free partition. Now, even though Ubuntu's partitions remained, I'm not able to enter Ubuntu when booting. I'm expecting this to happen when I was installing Windows 10, but I don't know how to add the existing Ubuntu to boot menu to fix it. It's fine for me either the boot menu is GRUB or Windows.   Any help is sincerely appreciated!


I am looking for examples of surfaces $M$ with gaussian curvature $K\lt0$ Additionally, a closed geodesic lies on the surface $M$      Thanks


A statment about the equivalence between the Axiom of Choice and the surjectivity of the projections.

Yesterday I pose a question where I ask about the correctness of a proof where I shown that the Axiom of Choice implies that for any not empty collection of not empty sets the projection defined on their cartesian product  are surjective funcions, so then I asked to me if from the assertion about the surjectivity of the projections I can argue the Axiom of Choice. Here following the link of the question where I proved the first implication: .   Well could someone help me, please?


I have a planning sheet in Microsoft Excel 2010 for my company. I have made a screenshot of the planning sheet which you can see below. In the column CAP the planner can see how much capacity that week is left for Kees. The calculation for cell IW7, for example, works with the formula =10-COUNTA(IX7:JB7)*2. The problem is that when the planner, for example, cuts cell IX7 and pastes this in IU7, the formula becomes =10-AANTALARG(IU7:JB7) *2 and a pop-up says there is a circular reference.1   How can the planner still cut and paste cells without Excel adjusting the referenced cells? Or: How can I get a fixed reach of cells (f.e. IX7:JB7) even after cutting and pasting cells?     (Click image to enlarge)  1When a formula refers back to its own cell, either directly or indirectly, it is called a circular reference.


Does the green-flame blade extra damage work on normal attacks?

Can you do a green-flame blade cantrip (duration of 1 round), do an Action Surge and then a normal attack action with Extra Attack and have all attacks have the green-flame blade bonus damage since it have a duration of 1 round and should also work with opportunity attack in the same round?


Why is enp#s# in stead of eth# ? Whats the meaning of enp#s#?

I migrate from Ubuntu Server 14 to Ubuntu Server 16 I now I have problems because I'm not undertand that.   I hope that somebody can answer me.


Getting a foreign prescription for a prescription drug filled in the US

My wife takes a prescription medication that cannot be stopped. Her supply is running out while in the US and we've tried faxing her foreign doctor's prescription to Walmart but they wouldn't accept it. What options do we have for getting a prescription quickly? We've thought of going to a walk-in clinic or urgent care but fear a lengthy diagnosis with costly lab tests.


Does it make sense to define an angular velocity four-vector in special relativity? If it does, how would it be?

I have had this question since quite a while, not even some book i've read about relativity mention this issue. I suspect the concept is absorbed by four-angular momentum.


Delete a folder in Win7, folder name is too long and ends with ".."

In  C:\xampp\htdocs\crawl\lists\Standard   i have subfolder called  2019-05-26_Mythic Championship Qualifier Barcelona - Szcze...   This folder was created by a PHP script and since the folders intended name was too long (i believe) php or windows cut it short, making the last 3 charas into ...  Using windows explorer as well as command prompt im unable to delete the dir. In fact, in explorer, im being told "Could not find this item" when i try to delete it, even though i can navigate into this (empty) folder.  I really want this folder gone, because its messing up my structure.  What can i possibly do to get rid of this folder ?


ng-pattern should not match supplied pattern

In ng-pattern we have the option of specifying that the field should match a specific pattern.  How can we specify that it should NOT match the specified pattern?  Example,  <input type="text" ng-pattern="/[*|\":<>[\]{}`()';@&$]/" />   Here, I DONT want the field to match the pattern. On the contrary, I want to show error if the pattern matches.


Unable to get resources using getResource()

I'm trying to get an image to use in a JButton, with the code:  ImageIcon imageIcon = new ImageIcon(MineSweeper.class.getResource("C:\\Users\\___\\Documents\\GitHub\\____\\myImage.png")); buttons[x][y].setIcon(imageIcon);   I know the file exists there, however every time I run it I get the error,   Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:205)   Which after looking around says that is the response for not being able to find the file, I'm confused as to what I'm doing wrong here. I get this error if I try to use absolute or relative paths, can someone point out what's wrong? I must be over looking something really simple here.  EDIT:  As Alan suggested to move the file, I put it into the src folder and it worked fine. Apparently having it else where won't work.


When will the dynamic "bounty" site ads update to the new size?

As mentioned  the new size for sidebar ads is 300x250 px.   Now that the Community Promotion ads are going live, when will the dynamic bounty ads change size to match the new standard?  e.g., for   These still are 220x250 px in size.


PHP-MySQL-SSH: How to connect to mysql database from PHP while using SSH tunneling (hosted on CentOS)

I'm having an issue and I don't know if it's related to the SSH tunnel but here's the deal.  I have a simple function to connect to the database from php and it works fine locally but it doesn't work to connect to a remote server.     connect.php   $dbhost = '172.1.2.3'; $dbuser = 'root'; $dbpass = 'testpass'; $db = 'testdb';  function dbconnect() { $conn = mysqli_connect($dbhost, $dbuser, $dbpass, $testdb); $conn->set_charset("utf8");  error_reporting( E_ALL & ~E_DEPRECATED & ~E_NOTICE ); if(!$conn)     {         die('We are unable to connect you to the site! --> '.mysqli_error());     } else     {            return $conn;     } }   Then, I include this file say on index.php and do the following.  <?php include 'connect.php'; $conn = dbconnect(); ?>  //html content below   the problem I'm having is that when I do the $conn = dbconnect(); the index.php page doesn't load, I just get a blank page. if I comment out $conn = dbconnect(); then the HTML content loads just fine.  I'm not getting error outputs on the console either so I'm a bit clueless as to what the problem might be and I don't know if it's related to the SSH tunneling which I don't know how to include it on the php connection function.  I do however, have to use the SSH credentials to connect to the database from any mysql manager so I want to believe I am missing something in the function.  if it helps, the server is running PHP 5.6 and mysql 5.7.22  Any help is appreciated.  Thanks,


Getting 2-factor Gmail authentication code from Sweden mobile number

I have been facing a serious problem for many months. Usually I get a 2-factor authentication code from 51501 when I am supposed to log into Gmail. But for months I am getting a code from a Sweden-based mobile number: +46701327805. The first code I received from this number was in October 2015.  There is also a mobile number from USA that sometimes sends the code. I change my passwords every time this happens. What could be the possible reason for this and how to overcome this problem?   By the way, I must say I have been hacked for years. I don't use VPN; my internet runs off a broadband modem.


I am trying to install java8 in ubuntu 14.04.5 but got the above error Following commands were used  $sudo apt-get install python-software-properties $sudo add-apt-repository ppa:webupd8team/java $sudo apt-get update $sudo apt-get install oracle-java8-installer   Below is the log of final command      $ sudo apt-get install oracle-java8-installer     Reading package lists... Done     Building dependency tree            Reading state information... Done     E: Unable to locate package oracle-java8-installer


Did the Millennium Falcon in The Force Awakens have an anti-theft device?

So Rey and Finn are being attacked by the First Order storm troopers and they are running away. They first go for a spaceship that gets blown up, then they head for the Millennium Falcon and proceed to steal it (despite Rey calling it "garbage").                                  But after they steal it, Unkar Plutt runs out and screams "THAT'S MINE!!!!"  So if the ship was actually worth something, did it have any sort of anti-theft device? Because they seemed to just walk on the ship and fly away. Considering what kind of place Jakku was, it is a wonder it was not stolen earlier.


How long will roasted vegetables in oil keep in the fridge?

says roasted tomato and garlic, put in a jar and covered in olive oil will keep for weeks in the fridge   says 3-5 days   says olive oil can only prevent discoloration/oxidation but not spoilage/toxicity/botulism  What am I missing?


How do I create something like this without getting any errors?  \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm}   I tried putting various things into {...} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:  \usepackage[amsmath,thmmarks]{ntheorem}


How can I find infinity focus on a kit lens with no markers?

I have a kit lens which has no markers. What would be a recommended way to find infinity focus on this lens?  I plan to shoot objects at night -- not necessarily stars or the moon. So, adjusting the focus using the viewfinder may not be an option.


If the link has been posted (say as a related link), the possible duplicate comment doesn't appear

These comments essentially explain it: (can be found )        Roombatron5000 added a related link. Then Shadow Wizard voted to close as a duplicate, but because the link has been given, the "possible duplicate" auto comment wasn't added.  I assume this is because the system doesn't allow multiple "possible duplicate" comments - one for each close vote. However, is there some way that it could look for the comment ID (or similar), rather than looking for a comment with the link in?  This matters less to the OP - as they see the "possible duplicate" banner, but other users may have missed it and not close voted it as well.  Related, possible duplicates:  and , but this is talking about it not appearing because of a different comment, not a possible duplicate comment.


What is the purpose of return statement with (**)

I am reading about Django   class SnippetSerializer(serializers.Serializer):     id = serializers.IntegerField(read_only=True)     title = serializers.CharField(required=False, allow_blank=True, max_length=100)     code = serializers.CharField(style={'base_template': 'textarea.html'})     linenos = serializers.BooleanField(required=False)     language = serializers.ChoiceField(choices=LANGUAGE_CHOICES, default='python')     style = serializers.ChoiceField(choices=STYLE_CHOICES, default='friendly')      def create(self, validated_data):         """         Create and return a new `Snippet` instance, given the validated data.         """         return Snippet.objects.create(**validated_data)   Why do we need ** in return statement?


Switching back to an older version having high period of security and maintenance

I am presently using ubuntu 15.10. Just want to know if I can switch back to an older version which has more security and maintenance as 15.10 has only a 9 month one.


I have a problem. When I import a stl file from solidworks into blender for rendering it doesn't match the scale of the scene. It is gigantic. The object is a chair and I have checked the scale in solidworks and here it is ok.  Hope someone can help.  Thanks  PrettyP74


Have an odd occurrence (or at least I think? still pretty green in linux) where I tried running the mv to move a .png file to my Pictures directory, I copied the command directly from the terminal from when I ran the mv command:  $ sudo mv Firefox_wallpaper.png /Pictures   I would assume the file gets essentially cut and pasted into the Pictures directory.  File original location: /home/ebeeze What I would assume after the MV command: /home/ebeeze/Pictures  Any help would be nice, not sure if I have permission to see it (ran sudo ls -a but nothing).


I was wondering if anyone has done this before. I was planning on installing a second hard drive in my computer and was wondering if i could install Ubuntu seperate on that drive and not the Windows 7 drive. I would think that you should be able to unplug the Win7 hard drive and just have the separate one plugged in. I dont want to partition the Win7 drive because I will probably use up the rest of the space on it in no time at all. I was wondering if anyone has any help on this.


(Editing a file in the etc repertory ) Cannot edit /etc/sudoers file

I want nopasswd thing for my jenkins user. For that, I have to edit the /etc/sudoers file,  But   luvpreet@DHARI-Inspiron-3542:/$ sudo vi /etc/sudoers   This gives me that this file is readonly and so, I cannot edit this file.  I change to root,  luvpreet@DHARI-Inspiron-3542:/$ sudo su   And I am getting something like this,   \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$    and even now I cannot edit the file. It still says this is readonly.  What is wrong ?  How do I solve this issue ?


I tested out Unity 5, and of course, it broke things, so I tried downgrading by    sudo apt-get install ppa-purge sudo ppa-purge ppa:unity-team/staging   It removed Unity completely.    apt-get install unity   seemed to work, but the login screen now offers only Gnome.  How do I get back to Unity 4?


I am developing a game with a Minecraft-like terrain made out of blocks. Since basic rendering and chunk loading is done now, I want to implement block selecting.  Therefore I need to find out what block the first person camera is facing. I already heard of unprojecting the whole scene but I decided against that because it sounds hacky and isn't accurate. Maybe I could somehow cast a ray in view direction but I do not know how to check the collision with a block in my voxel data. Of course this calculations must be done on the CPU since I need the results to perform game logic operations.  So how could I find out which block is in front of the camera? If it is preferable, how could I cast a ray and check collisions?


Changing the size of the audio volume increment of the "volume up" / "volume down" keys

Same as this question but for Windows:   I'm on a Windows 7 laptop. It has "volume up" and "volume down" keys on the keyboard. Pressing them changes the volume by a tiny amount. Is there a setting or registry key or something to change that amount, or will I have to install third-party software to do it?


I have read over many q and A's regarding the 'force stop' option for most apps. All explain what it's function is, but aren't too clear on when it is really necessary to go thru my list of apps and force stop them (EVEN ONES THAT ARE NOT CURRENTLY IN THE LIST OF RUNNING APPS?!?!?) That was and still is a bit hard for me to understand also. If my phone says the apps are not currently running what I'd it that I'm forcing to stop? And will it effect the function or start up of the app when I need to use it?


Spectroscopic properties of hydrogen: H vs. H2

One of the basic experiments everybody learns about when it comes to physics is the spectroscopy of hydrogen gas. The typical set-up has a charge discharge lamp containing the hydrogen. The resulting spectra are then discussed with the atomic properties of the hydrogen atom.  The gas however is not mono-atomic but it is present as $\textrm{H}_{2}$. The 1s orbitals creating the $\sigma$-bond and the electrons are occupying the bound state. This is at a lower energy when compared to the 1s states of the atomic hydrogen. The higher energy orbitals will also influence each other as they are overlapping. So my question is, why does the atomic hydrogen description works for this experiment?  Possible answers I could think of are:   The bounding effects are negligible The $\textrm H_{2}$ spectra are only visible shortly after the lamp is switched on. The constant electron bombardment is slowly dissociating all $\textrm H_{2}$.   For the later I am very unsure if a charge discharge lamp is able to produce conditions to archive that. If it comes out that this is the answer, does anyone know where to find more details on the spectroscopic properties of $\textrm H_2$?


I realize the title of my question will probably cause the raising of some eyebrows, so let me explain. Not sure whether to file this under "math" or "philosophy". This also might be able to be explained away due to some possible misconceptions I have about irrational/transcendental numbers, so please correct me where I'm wrong, since I'm quite certain I am...but this is nagging me, so here it is:  Ok, so imagine a non-repeating decimal with an infinite number of digits in it. The numbers are random, but for the sake of argument, let's say the number starts with "0.2368210236..." and continues from there.  So I look at the first decimal digit - 2 - and think to myself "in the rest of this decimal, there are an infinite number of times that '2' shows up."  So I look at the first TWO decimal digits - 23 - and again, think to myself "due to the randomness and infinity of this decimal, there is statistically a 100% certainty that the numbers "23" show up, in that order, somewhere in the rest of this decimal.  Continuing this line of thought, I reach the conclusion that if I choose ANY number of digits (variable: x) that start off this infinite decimal number, then a) there is statistically a 100% certainty that particular sequence shows up somewhere else in the decimal, and b) that it shows up an infinite number of times.  If such is the case, then what happens as x approaches infinity? Would that not mean that, given enough length in the decimal, there would eventually come a point where the decimal starts repeating itself, ad infinitum? Would that not mean that what was originally thought of as an irrational number is actually rational? Would this line of thinking not apply to ALL irrational numbers?  I guess what I'm asking is this: could it be that there ARE no irrational numbers, just rational numbers whose scope and vastness outstrip our ability to see their rationality?  Alright, mathphiles; have at me!


Document viewer annotation behaving weirdly

I am using Ubuntu 18.04 and I have found this weird bug in the default document viewer. When I click on text annotation, the annotation is completely offset. To open the annotation, I still have to click the required text, but the yellow highlight appears about five lines underneath the text.  I have attached a photo, where the problem is visible clearly. This happens in several pdfs that I have. What can I do?


I want to make the rotated "chapter 1" to be at the center but \rotatebox[origin=r] won't make a difference.      Here is MWE:  \documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage[pdftex]{graphicx} \usepackage{enumitem} \usepackage{pifont} \usepackage{longtable, tabularx, makecell} \usepackage{array,multirow,amssymb} \usepackage{setspace} \pagestyle{plain} \setlength\parindent{0pt} \makeatletter \newcommand*{\compress}{\@minipagetrue} \makeatother  \newcolumntype{L}{>{\arraybackslash\compress}X} \renewcommand{\tabularxcolumn}[1]{>{\arraybackslash\compress}m{#1}}  \begin{document}  %  \setlist[itemize]{label=\ding{254}, wide=0pt, leftmargin=*, itemsep=0pt, before=\vspace*{\topsep}, after =\vspace*{-\topsep}} \setlength{\extrarowheight}{3pt} \small \begin{longtable}{|p{0.1\textwidth}|p{0.84\textwidth}|}\hline  \multicolumn{1}{|c|}{Chapter } & \multicolumn{1}{l|}{\textbf{Content}} \\ \hline \rotatebox[origin=r]{90}{\makecell{Chapter 1\\Center \\ and Core Center}}  & \begin{itemize}     \item Part 1      \vspace{-12pt}      \begin{itemize}[label=\ding{229}]     \item First      \item Second     \item Third     \item Fourth     \end{itemize}     \item Part 2      \vspace{-12pt}      \begin{itemize}[label=\ding{229}]     \item I     \item II     \item III     \end{itemize} \end{itemize} \\ \hline  \end{longtable}  \end{document}


What is the best way to delete files & folders in a directory excluding the contents of one folder?

I'm trying to automate some file house keeping I do pretty often. I want to delete all of the files and folders in a directory while excluding the folder "./xfer" and its contents.   I've bee trying to do it using the find command but it is turning out a bit clunky. Is there a better way? I set up my test environment by running:   mkdir test0{1..5}; find . -type d -exec touch '{}'/test-0{1..5} \;   Here is the command I've been working on. Btw I am somewhat new and am mostly doing this as a learning exercise. Also, this would be the last command of a small script I am almost done with.  find /some/directory/path/* -type f ! -path "/some/directory/path/xfer/*" -exec rm -fv {} \;; find /some/directory/path/*  -type d ! -path "/some/directory/path/xfer" -exec rm -rfv {} \;


Can I understand mixed states using the Bloch sphere?

I'm a bit confused with the representation of mixed states in a Bloch sphere. Are they represented as points or vectors? For pure states, they're vectors on the surface of the Bloch sphere and have a norm of 1. If I have a mixed state $\rho=\sum_sp_s|\psi_s\rangle\langle\psi_s|$, is there a way I can see $\sum_sp_s=1$ on the Bloch sphere?


Is CBC mode with a fixed IV secure, if a counter is prepended to the plaintext?

In  to an earlier, related question I noted that encrypting a nonce, such as a sequential counter, using the same block cipher and key as used for the message encryption itself is one of the recommended ways described in , Appendix C, of generating an unpredictable IV for CBC mode encryption.  I further noted that this is, in fact, mathematically equivalent to using an all-zero IV and simply prepending the nonce (padded to a full cipher block) to the plaintext before applying CBC mode encryption.  However, in the comments to , it was noted that this construction is trivially CPA-insecure (as noted e.g. in section 4 of  by Rogaway) if the nonce may be chosen by the attacker.  (Of course, it could be argued that, if your nonces may be controlled by an attacker, you really should be using a fully nonce-misuse resistant mode like  instead of CBC anyway.)  That said, let's take this opportunity to hopefully settle this issue once and for all:   Assuming that the nonce values are unique and generated according to some fixed public counter sequence that is not under the attacker's control, is the encryption scheme described above (i.e. pad the nonce to a full cipher block, prepend it to the plaintext, and encrypt the result using CBC mode with an all-zero IV) actually IND-CPA secure? If so, is there a published proof of this?  If not, is there a known attack under the IND-CPA model that doesn't assume the attacker can choose the nonces? How does the quantitative security (e.g. attacker's advantage as a function of the number of encryption oracle queries) compare to standard CBC mode with random IVs?  AFAICT, both are basically only secure up to the birthday bound, but a more detailed analysis could be useful. As a bonus, what if the nonce is padded to some fixed length that is less than a full cipher block?  Is the resulting scheme still IND-CPA secure (assuming that the nonce doesn't overflow, of course) and if so, how does this affect the number of messages that can be safely encrypted?


What does it mean that the elves were diminished?

The Wikipedia article on  says:     After the destruction of the One Ring, the power of the Three Rings of the Elves would also end and the Age of Men would begin. Elves that remained in Middle-earth were doomed to a slow decline until, in the words of Galadriel, they faded and became a "rustic folk of dell and cave," and were greatly diminished from their ancient power and nobility. While the power of the remaining Noldor would be immediately lessened, the "fading" of all Elvenkind was a phenomenon that would play out over hundreds and even thousands of years; until, in fact, our own times, when occasional glimpses of rustic Elves would fuel our folktales and fantasies.   I just can't seem to grasp why they were diminished, though. I have only seen the films and it seems like the elves are leaving Middle-earth because of their diminishing. I am hoping that if I understand what that means I can understand why they left.   (src: )


Extrinsic Description of spacetime curvature, is it possible? How many dimensions would we need?

Imagine we had an extra spatial dimension $f$ and so an overall spacetime interval: $ds^2=-dt^2+dx^2+dy^2+dz^2+df^2\tag{1}$ Now let's say that we're restricted to a 4-dimensional "plane" in this 5-dimensional space and that this plane is basically in the $t,x,y,z$ plane, except that it curves in the $f$ direction. i.e. $f=f(t,x,y,z)$ so: $df=\frac{\partial f}{\partial t}dt+\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial y}dy+\frac{\partial f}{\partial z}dz\tag{2}$ and: $df^2=\left( \frac{\partial f}{\partial t}dt\right )^2+\left( \frac{\partial f}{\partial x}dx\right )^2+\left(\frac{\partial f}{\partial y}dy \right )^2+\left( \frac{\partial f}{\partial z}dz\right )^2+2\frac{\partial f}{\partial t}\frac{\partial f}{\partial x}dxdt+2\frac{\partial f}{\partial t}\frac{\partial f}{\partial y}dydt+2\frac{\partial f}{\partial t}\frac{\partial f}{\partial z}dzdt+2\frac{\partial f}{\partial y}\frac{\partial f}{\partial x}dxdy+2\frac{\partial f}{\partial y}\frac{\partial f}{\partial z}dydz+2\frac{\partial f}{\partial x}\frac{\partial f}{\partial z}dxdz\tag{3}$ so the metric would be: $\begin{bmatrix}  &\eta _{00}+\frac{\partial f}{\partial t}\frac{\partial f}{\partial t}  &\frac{\partial f}{\partial t}\frac{\partial f}{\partial x}  &\frac{\partial f}{\partial t}\frac{\partial f}{\partial y}  &\frac{\partial f}{\partial t}\frac{\partial f}{\partial z} \\   &\frac{\partial f}{\partial t}\frac{\partial f}{\partial x}  &\eta _{11}+\frac{\partial f}{\partial x}\frac{\partial f}{\partial x}  &\frac{\partial f}{\partial x}\frac{\partial f}{\partial y}  &\frac{\partial f}{\partial x}\frac{\partial f}{\partial z} \\   &\frac{\partial f}{\partial t}\frac{\partial f}{\partial y}  &\frac{\partial f}{\partial x}\frac{\partial f}{\partial y}  &\eta _{22}+\frac{\partial f}{\partial y}\frac{\partial f}{\partial y}  &\frac{\partial f}{\partial y}\frac{\partial f}{\partial z} \\   &\frac{\partial f}{\partial t}\frac{\partial f}{\partial z}  &\frac{\partial f}{\partial x}\frac{\partial f}{\partial z}  &\frac{\partial f}{\partial y}\frac{\partial f}{\partial z}  &\eta _{33}+\frac{\partial f}{\partial z}\frac{\partial f}{\partial z} \end{bmatrix}\tag{4}$ This model is far to simple and cannot accommodate the real solutions to the Einstein Field Equations. If any of the non-diagonal terms are zero, you immediately have to choose between one of the partial derivatives of $f$ being zero and you quickly find out that you cannot write all the metric components in this way. Is there a way to do this with finitely many such $f$? What is the minimum number one would require to be sure that any given solution to the EFE can be satisfied with the appropriate $f$'s?


can't upload images to the new imgur upload thingie

I would put an image here of the problem but I can't do that rn.  When will it be fixed.


I have two external monitors (both are Sanyo TVs). My Macbook Pro has one Thunderbolt. I purchased a Mini DisplayPort to Dual HDMI Adapter. The adapter is connected to the Mini Display port and to a USB. I have two HDMI cables, each connected to their own HDMI port in the adapter. My problem: The laptop works just fine independently; however, the two external monitors mirror each other. I have tried clicking on Display and clicking on Detect Displays but it does not detect the 3rd monitor or if it does, I am unable to make it work independent of the 2nd monitor - Help, Please!


Scifi novel about space navigation by chaos waves/particles

I just read this book a few years back, but it's a fairly old one (maybe late 80's?). It starts with an attack from some very large unknown type of ship. The main thing I remember about the plot is that intergalactic navigation (especially through the voids between) was done by reading "chaos" waves or particles. I believe Chaos was actually in the title, but I'm not having any luck in my google searches. Anyone able to identify the book from my vague memory of it? Edit: Some ISFDB lists provided by user14111 in the comments have made me doubt whether "chaos" was actually in the title, so that may not be the case.


I have some troubles with my latex document. I'm using minted to put on my file some VHDL code. However, when i compile it, all < are replaced by ¡. Does anyone have an idea ?   Here is an example :   \documentclass{report}  \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{minted} \begin{document} \begin{minted}[fontsize=\footnotesize, linenos, autogobble, breaklines]{VHDL} library IEEE; use IEEE.STD_LOGIC_1164.ALL;  entity sept_segment2 is Port (     switch_seg : in STD_LOGIC_VECTOR (3 downto 0);     switch_an : in STD_LOGIC_VECTOR (3 downto 0);     an : out STD_LOGIC_VECTOR (3 downto 0);     seg : out STD_LOGIC_VECTOR (6 downto 0)  ); end sept_segment2;  architecture Behavioral of sept_segment2 is  begin  seg <= "1000000" when switch_seg = "0000" else     "1111001" when switch_seg = "0001" else     "0100100" when switch_seg = "0010" else     "0110000" when switch_seg = "0011" else     "0011001" when switch_seg = "0100" else     "0010010" when switch_seg = "0101" else     "0000010" when switch_seg = "0110" else     "1111000" when switch_seg = "0111" else     "0000000" when switch_seg = "1000" else     "0010000" when switch_seg = "1001" else     "0001000" when switch_seg = "1010" else     "0000011" when switch_seg = "1011" else     "1000110" when switch_seg = "1100" else     "0100001" when switch_seg = "1101" else     "0000110" when switch_seg = "1110" else     "0001110";  an(0) <= not switch_an(0); an(1) <= not switch_an(1); an(2) <= not switch_an(2); an(3) <= not switch_an(3);  end Behavioral; \end{minted} \end{document}   I have tried in several environments (and on overleaf). It always shows ¡ instead of <. Any ideas ? Thanks !


I recursively deleted the contents of my root directory with sudo privileges. My display reset, and windowing stopped working. I could no longer run non-buitin commands. Most of my directories (including the home directory disappeared).  What I meant to run:  sudo rm ./* -rf   What I believe I ran:  sudo rm /* -rf   I understand how this command works (see ).  I'm trying to get a better sense of how much (and what parts) of the original files and directory-structure physically remains on the hard-drive.  How much of these "remains" are recoverable? E.g is it possible to use data recovery software like TestDisk/PhotoRec to recover the full home dir itself? What about config files?


I am planning to go to UK from October 2018 to January 2019.  My sister is already a UK resident and I will stay in her apartment. We agreed that I go there as early as October for me to experience autumn and to experience the Christmas holidays as well .  I am already granted a visit visa that is valid until Feb 2019.  My employer already approved my vacation.  Is there a possibility that I will be questioned by the immigration officers due to my long stay in the UK?  What documents do I need to provide to prove that I am a genuine tourist and will not overstay? Any feedback will be appreciated.


This works in 16.04 but not in 18.04.  Is there a fix?   amixer -D pulse sset Master 30%


If my opponent plays , takes a creature of mine, casts it, and then I die, does he still control that creature? Or is it removed from the game back to me?


Interpreting exp(B) in multinomial logistic regression

This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model?  1) is it 6.012-1.0 = 5.012 = 5012% increase in risk?  or  2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk?  In case both alternatives are incorrect, can someone please mention the correct way?  Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct.


Floquet and Bloch's theorems : connection?

It is often stated that  and  are equivalent, even the Bloch's theorem is often referred as Floquet-Bloch theorem.  However, it seems quite confusing to me since the former involves a second order differential equation (Schroedinger equation with a periodic potential) while the latter is defined for a first order one.  Can someone clarify this to me? Also it would be nice if I can get references that connect the two.


I saw this question somewhere and made me think do 3x4 matrices have an inverse, as I previously that that only square matrices have an inverse.  If non-square matrices have an inverse, especially if 3x4 has one please let me know, the reason why.  Thanks!


Film about a guy that tries to escape a prison/penal colony?

A guy is in an outdoors penal colony or prison of sorts, and I think the prisoners are being forced to work, perhaps mining. There is a rebel group that tries to escape/free others and in the process the guy almost gets pulled in to a giant spinning fan or something in the ground (I'm not sure if he was wearing a prisoner chain that was pulled into the fan to try and kill him or if he was holding onto a chain that stopped him falling in to the fan/slicing thing).  It’s in colour, not sure if for TV or cinema, and probably released somewhere between 2000 - 2017. I think it’s a sci-fi and not horror.


Can i hide some code in Javascript from the user?

I want to have two separate files in JavaScript with the same name , can i do it in javascript ? I want to expose only part of the code to the user and not all the file (Do we have any concept on javascript like the  c# partial classes ?)  Thanks Shimon


Is it possible to convert an ntfs partition to ext3?


Irreducible Spectrum implies Zero-Divisors are Nilpotent

Let $A$ be a commutative unital ring, and let $\mathrm{Spec}(A)$ be it's set of prime ideals endowed with the Zariski Topology.   In this topological space, my text had me prove a couple facts, specifically:        $\{X_a \colon a \in A\}$ forms a basis for the topology, where $X_a = \{ x \in \mathrm{Spec}(A) \colon a \notin x\}$   $X_a \cap X_b = X_{ab}$   $X_a = \emptyset \iff a$ is nilpotent in $A$      I have a conjecture that $\mathrm{Spec}(A)$ irreducible implies that every zero-divisor is nilpotent. The definition I have of irreducible is      $\mathrm{Spec}(A)$ is irreducible if every two non-empty open sets   have a non-empty intersection.   I thought I successfully proved my claim, but after review I think I actually proved a weaker claim (technically a stronger claim, depending on how you look at it). Here is my attempted proof.     Proof: Suppose $z \in A$, $z \neq 0$, and $zy = 0$, for some $y \neq  0$. Proceeding by way of contrapositive suppose $z$ is not nilpotent.    Then by fact 3 above we have $X_z \neq \emptyset$, but $X_z \cap X_y =  X_{zy} = X_0 = \emptyset$. Thus $\mathrm{Spec}(A)$ is reducible.   It appears to be an obvious flaw that I do not make an assertion about whether or not $y$ is nilpotent. Therefore the claim I actually proved is      If $\mathrm{Spec}(A)$ is irreducible and $xy = 0$, for non-zero $x$ and $y$, then one of $x$ or $y$ is nilpotent.    Upon inspection, this actually made sense because the text had me prove the characterization that $\mathrm{Spec}(A)$ is irreducible if and only if the nilradical is a prime ideal. With this characterization, if the nilradical is prime and $xy = 0$, since $0$ is in the nilradical then $xy$ is in the nilradical, and if the nilradical is prime then $x$ is in or $y$ is in. Which is consistent with what I proved, that atleast $\textbf{one}$ of $x$ or $y$ is nilpotent.  Obviously it is no such luck that one could prove if $xy = 0$ and $x$ is not nilpotent, then $y$ is not nilpotent, since we are not in an integral domain (otherwise my original claim would be vacuously true).  $\textbf{HOWEVER:}$ I still believe my conjecture to be true. I think either 1) I am overlooking something very obvious, a quick fix, or 2) In order to prove my original claim in full generality I might need more machinery than I have at my disposal right now. Some thoughts I had to try and get my claim proven were to  1. Consider when and why the nilradical is a prime ideal,  2. Consider the fact that the set of zero divisors is a union of prime ideals,  3. quit wasting time thinking about this and move forward in my text and maybe when I finish the book I will either realize why this claim is not even important and thus proving it is not a good use of time, or the proof will be obvious.   Any help, thoughts, opinions appreciated.    Edit: I should also mention that the reason I still believe my conjecture is true is not because I have some intuition (although I did check some specific examples), it is because I googled "when are zero divisors nilpotent" and found an answer to this question  that says the nilradical being prime as a sufficient condition for zero divisors being nilpotent. As mentioned the nilradical being prime is iff the spectrum is irreducible, thus my claim should hold.  Also can someone give me a counter example for why the converse does not hold? That is an example where the zero divisors and nilpotents coincide but the nilradical is not prime? There is probably a simple $\mathbb{Z}_n$ case that is apparent using elementary number theory but I don't have anything.


Windows Explorer stops working windows 10

I have a new Lenovo computer and windows explorer stops working from time to time, I have windows 10.  This is the XML log of the error:  - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> - <System>   <Provider Name="Application Error" />    <EventID Qualifiers="0">1000</EventID>    <Level>2</Level>    <Task>100</Task>    <Keywords>0x80000000000000</Keywords>    <TimeCreated SystemTime="2017-11-07T13:02:52.128724600Z" />    <EventRecordID>3226</EventRecordID>    <Channel>Application</Channel>    <Computer>DEVELOPER.w2d.sub.de</Computer>    <Security />    </System> - <EventData>   <Data>explorer.exe</Data>    <Data>10.0.15063.674</Data>    <Data>d8364343</Data>    <Data>unknown</Data>    <Data>0.0.0.0</Data>    <Data>00000000</Data>    <Data>c0000005</Data>    <Data>00000000073c0fd8</Data>    <Data>b48</Data>    <Data>01d357c64cfa379f</Data>    <Data>C:\WINDOWS\explorer.exe</Data>    <Data>unknown</Data>    <Data>354346ba-4d07-4316-8f12-eda67d12a656</Data>    <Data />    <Data />    </EventData>   </Event>   Hope you can help me. Thanks in advance


Potential on equatorial line of a dipole is zero,while electric field is present.How?

E=-dv/dr.   But V=0 at equitorial line of a dipole and E  is not 0.Can anyone please help me how this is true?    Whenever function is 0,its derivative is always 0 i.e. if.  f(x)=0 then f'(x)=0 . Here f(x) is V which is 0,but f'(x) which is E is not 0. Please help.


How to interpret log-log regression coefficients for other than 1 or 10 percent change?

I have read many threads here on how to interpret coefficients in a regression where the predictor and the dependent variable are log-transformed. Most give an answer for a one or ten percent change. However, I am not sure whether I am right about interpreting other changes.  I have a beta coefficient of $-0.5057$. Given the standard interpretation (as elasticity), a one percent increase in the predictor variable ($X$) leads to an decrease of $0.5057$ percent in the dependent variable ($Y$).  Alternatively a ten percent increase in $X$ leads to a $5.057$ percent decrease in $Y$.  I found the formulas $1.1^{-0.5057}$ and $\exp(-0.5057(\log(1.1)))$ to calculate the affect of any change in $X$ on $Y$. Are these formulas right because I get for a ten percent increase slightly different results than the $5.057$ decrease.  Furthermore, is it right that the percentage values for the changes in $Y$ do not increase proportionally with increases in $X$? If a one percent increase in $X$ leads to an decrease of $0.5057$ percent in $Y$, it is wrong to assume that a $50$ percent increase in $X$ leads to a $(50 \times  0.5057)$ decrease in $Y$?   $\exp(-0.5057(\log(1.5)))= 0.8146$. Given the difference between $1$ and this value, it suggests that $Y$ decreases by $18.5$ percent. Am I right?  The formulas mentioned above suggest so. Is that because of the nonlinearity in the model?


What is the 'correct' way to store a native pointer inside a Java object?  I could treat the pointer as a Java int, if I happen to know that native pointers are <= 32 bits in size, or a Java long if I happen to know that native pointers are <= 64 bits in size. But is there a better or cleaner way to do this?  Edit: Returning a native pointer from a JNI function is exactly what I don't want to do. I would rather return a Java object that represents the native resource. However, the Java object that I return must presumably have a field containing a pointer, which brings me back to the original question.  Or, alternatively, is there some better way for a JNI function to return a reference to a native resource?


Number of partitions of an integer, if the partitions are no larger than $2$

Find an explicit formula for the number of partitions of a positive integer $k$ into parts no larger than $2$?    I was thinking about it and worked on it, I've come up with $1^k+2^k= 3^n$.


Unbuntu apt-get update always could not get lock because its held by process xxxx?

The situation is whenever I boot up my Ubuntu OS laptop if I run apt-get command is always said: Could not get lock /var/lib/apt/lists/lock . It is held by process xxxx I try to solve the problem by killing that process (sudo kill -9 ) then everything fine. But if I boot up the problem appears again. Can anyone have any suggestions for my situation? Thank you very much. Edit: When I run sudo apt-get update and error was:  Reading package lists... Done  E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1791 (apt-get)  N: Be aware that removing the lock file is not a solution and may break your system.  E: Unable to lock directory /var/lib/apt/lists/  The process id changes every time I boot or close the terminal.


Whenever I click "install now" on new updates - it starts running and promptly crashes. What can I do about this? I'm using Ubuntu 18.04. This is the error I get: W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2


How to automatically change the wallpaper regularly

How can I automatically rotate my wallpaper regularly? Is there a program or a way for doing so?


How can I minimize Thunderbird 60.2.1 to tray after "MinimizeToTray revived" add-on stopped working?

After update, my Thunderbird stopped getting minimized with the "MinimizeToTray revived" add-on. Is there any way to minimize my Thunderbird? Any other add-on that works with the new version?


How to calculate $\int \frac{x^2 }{(x^2+1)^2} dx$?

I'm trying  to calculate $\int \frac{x^2 }{(x^2+1)^2} dx$ by using the formula: $$ \int udv = uv -\int vdu $$  I supposed that $u=x$ s.t $du=dx$, and also that $dv=\frac{x}{(x^2+1)^2}dx$, but I couldn't calculate the last integral. what is the tick here?           the answer must be: $ \frac{1}{2}arctan\ x - \frac{x}{2(1+x^2)} $ + C


Proving that in a finite set $S$, there is an element $a \in S$ such that $a*a=a$ where $*$ is an associative binary operation on $S$, and $S$ is closed under $*$. How would I start a proof for this question? I know it is true for a set of size two:  Say $S=$ {a,b}. Then if $a*a=b$ and $b*b=a$, we can substitute to get $a*(b*b)=b \iff(a*b)*b=b$.  But since $b*b=a$, then we know that $(a*b)\neq b$. Since there are only two elements, then $(a*b)= a$. Multiplying $a$ to the left side of both: $a*(a*b)=a*a \iff a*(a*b)=b \iff (a*a)*b=b \iff b*b=b $ Which is a contradiction.   How could I extend this to any finite set? Induction? How would you begin induction on this?


Is there a single, more generic term that can be used to describe both a row and a column? In English, we can refer to a line as being horizontal or vertical, but unless we say ‘a line of something’, that implies a one-dimensional line—it doesn't communicate a row or a column of things. So what could we say instead…? A horizontal or vertical _______?


What desktop environments can group window icons in the taskbar like Windows 7?

I find it much faster to identify a window in the taskbar (window list) by its icon,    rather than by its text:    The problem with most graphical interfaces I've  is that they don't group windows, and if you have more terminals or file managers, they'll just clutter the taskbar and you won't know which is which. Windows 7 offers a relatively elegant solution to this by grouping similar window icons together.  Question: What Linux  have this functionality? If addons exist that provide it, that's alright.  For reference, a Cinnamon applet that sort of does this is .


Is an item's Caster Level the Minimum Required Caster Level?  For example a  has a CL of 9th     Aura moderate conjuration; CL 9th   Does that mean a creator has to have a Caster Level of 9?


Windows 8 Metro Design Examples / Guidelines

Possible Duplicate:          Not a technical question about how to build an app (I'm just going to use , mostly because I'm using a bunch of the other components in DevExpress and this seems to be another nice modern component to use)...  but more a question of how a Metro app should look and feel?  There's tons of "traditional" apps out there that have solved lots of problems for how various apps should look and work but being a technical person with no creative talent at all, i'm having real trouble visualising how I want my app to look and how one might interact with it in a Tiles world.  Crudely speaking, once the app is started you can configure it or connect to a server.  Once connected to a server you can disconnect, configuration of both the client and server, along with numerous functions that bring up a different UI - the different UI's are a totally different style of UI more akin to a CAD plan so i'm not fussed about that, it's really a question of trying to understand...:  a) is tiles even worth looking at? or using a component for the sake of it? OR would it give a nice modern fresh look to the very start of the app? b) do you go from one tile control to another, OR would you add and remove tiles programmatically - i.e. in the example i've given, i'd start with two tiles and when you have connected, I could then add all the interface tiles in a new group and perhaps change the connect tile to a disconnect one etc?  Any thoughts much appreciated.


I was wondering when should I use exit() function over return statement. I can end the program with either of the following statements:  exit(0);    or  return;   Which one should I use and when? Is there any advantage of using exit()?


Just now installed Ubuntu 17.10 on my desktop (dual boot with windows 10). I got the Minimal BASH-like line editing is supported problem. I could not get to Ubuntu. I tried to google for a solution and following are the methods I tried:   Method 1: I booted into a live session and installed boot-repair. Tried the recommended method as given in this link:  Tried this several times with no luck. It shows that the problem is solved, but when I reboot I get the same message. Method 2: I followed the steps given in here:  by logging into Ubuntu (following Method 3). Same problem. Method 3: This is the only method through with I could log into Ubuntu. Got it from this source: . I can log into Ubuntu and repair grub. But after a reboot, I am back to the same problem. My Linux partition is at (hd1,gpt11).   I have reinstalled Ubuntu 17.10 3-4 times, so re-installing doesn't seem to be the solution. While installing I get the error [    0:000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later). Thanks in advance.


How should proper nouns using stylized case (e.g.: ownCloud) be treated in formal writing?

Many companies are now using stylized case for their names. When writing formal documents, how should these names be written? Assuming that the case they've chosen should be honored, how should they be treated at the beginning of a sentence?


I am trying to have a text-box populate with X if another text-box has a certain value, else Y.  However, it's populating with X or Y seemingly randomly.  d4 is my button, d4result is where it populates the result, d4txt1 is where I want to see a 1 or 0, depending.  d4.setOnClickListener {         if  (d4result.text.toString() == "1") {             d4txt1.text = "1"         } else {             d4txt1.text = "0"         }         val rand = Random().nextInt(4) + 1         d4result.text = rand.toString()     }   So if d4result is populated with 1, I want d4txt1 to populate with 1, otherwise it should be zero.  But when I try it, I get 1 or 0 and I can't notice a pattern as to when/why.


XSD : How to use both value and attribute

I'd like to validate an element having a string attribute and a string value :  <?xml version="1.0" encoding="UTF-8"?> <name sex="M">eric</name>   I used :  <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="name">   <xs:complexType>     <xs:restriction base="xs:string"/>     <xs:attribute name="sex" type="xs:string"/>   </xs:complexType> </xs:element> </xs:schema>   It says the the content is not valid.  The doc says that an element with an attribute is always "complexType". If I omit the xs:restriction line, the content must be empty. But I want a string value in it ("eric").  What should be the XSD code ?  PS: I'd like to avoid the ugly 'mixed="true"'


I can show that |Z|^2=|Z^2| or |Z|^3=|Z^3| where Z is a complex (a+ib) number. But is there any way of showing that for all n where n is a natural number?


Turning DisplayPort monitor off disables monitor completely

I have 2 monitors connected to a NVIDIA GeForce GTX 660:   Left is 1920x1080 via DVI (Samsung SyncMaster 2443BW) Right is 2560x1440 via DisplayPort and is set to Primary (Samsung SyncMaster SA850)   I often leave my computer running overnight (working on long render job, doing backups, etc) so I only power off my monitors manually. However, if I power off the primary monitor, it is disabled completely as if it were unplugged from the graphics card (i.e. icons are moved, open apps are moved and resized to fit on the new primary monitor). If I switch from DP to a DVI cable, this does not occur. It seems to be an issue when using DisplayPort.  Is there a way to disable the monitor from being disabled completely in Windows when I power it off physically?   I have found no relevant settings in either Windows Display settings, nor the NVIDIA control panel software.  Edit #1: I'm using an .  Edit #2: Here is a screenshot of my NVIDIA Control Panel v7.2.710.0:   Edit #3: Here are screenshots of my Monitor configuration:    Clicking on Advanced settings reveals a Generic PnP monitor running at 59 Hz? 60 Hz is the only other option available.    Here is my secondary monitor which is connected via DVI:    Edit #4: If I open the "Screen Resolution" configuration panel and power the monitor off (via the power switch), this is what is shown:    It looks like I disconnected the monitor from the video card.


Excision property false when set is not measurable.

From Royden & Fitzpatrick's Real Analysis, Problem 19 section 2.4:  "Let E have finite outer measure. Show that if E is not measurable, then there is an open set O containing E that has finite outer measure and for which  m*(O/E) > m*(O) - m*(E)."  My process goes like this:   1) m(E) is finite => E is bounded => There exists open set O containing E such that for all e1>0, m(O)-m(E)  2) E not measurable => there exists some e2>0 such that there exists an open set Q containing E and m(Q/E)>e2.   If I could somehow show that for the same e>0, Q=O then I would have the property immediately. But I cannot see any way that I can justify equating O with Q, and I do not see any other angle of approaching the problem, anyone can offer any hints or answers, I'd much appreciate it.


Ok so here is the question. I am trying to insert a variable into my query that is pre-defined. However it is not working. The query works if I just give it a value, but when I insert a variable into it, it fails. help?  $connection = new mysqli('localhost', 'user', 'pass', 'db');   $username = "test";  if (mysqli_connect_errno()) {     printf("Connect failed: %s\n", mysqli_connect_error());     exit(); }  if ($result = $connection->query("INSERT INTO users (username, password, email, firstName, lastName, createDate) VALUES ('".$username."', 'test', 'test', 'test', 'test', 'test')")){    echo "success";   $result->close();  } else {   echo "error"; }  $connection->close(); ?>   If I replace $username with any value, it works.. Am I missing something here?


The other day suddenly my touchbar went blank. I thought it had froze, but after restarting, doing the NVRAM/SMC stuff, and doing a diagnostic (which showed no errors) - I'm unable to get it to come back. The weird thing is it still works - I can turn volume up and down if I hit the right space, it's just that nothing is showing on it. Has anyone else encountered this problem? I am wondering if there is anything else I can do before I send it to Apple?


Transaction Log Files Larger Than Data Files

I'm an accidental DBA and need help determining a course of action regarding transaction log files on several databases. I ran Brent Ozar's sp_blitz to see what areas of concern there might be on an instance of SQL Server 2012 and one of the things I saw was transaction log files that are bigger than the data file.  On one database the data file is at 3.33 GB and the log is 5.19 GB. The others have a ratio that's about the same.  The instructions for this scenario indicates that the log file might need to be shrunk, but only if the database is in Full recovery mode. This database is set to Simple recovery.  Should I shrink the log files or just leave them alone?  Thanks for your time.


How to maximize any of the views in quad view?

I am new to blender. Pressing ⎈ Ctrl⎇ AltQ opens the quad view. How to maximize any one of the four views of the quad view?


Global setting of hyphenation for words containing dashes

I'm using the word "Zwei-Drittel-Abstimmungsmehrheit" a bunch of times in my document. Often it won't fit into the current line, extending into the right margin.  I figured out that the following package helps :  \usepackage[shortcuts]{extdash}    Then I can write  Zwei\-/-Drittel\-/Abstimmungs\-mehrheit   and the hyphenation is done correctly.  Is there a way that I can set this hyphenation globally for this word? Like i can do it with the command  \hyphenation{...}   Sadly this command doesn't work for words containing dashes.


I hold a valid Indian passport. My passport expires on 29 September 2020; my Canadian visa also expires on 29 September 2020.   I am getting my passport renewed next month as I will be travelling to Europe in May, and to Canada from June to August.   So my query is: will the Canadian visa in the old passport be valid for my travel to Canada, or do I have to get a new valid visa?


The thesis latex template of my university has \usepackage{amssymb} Can someone please explain what that package does?