Backward induction (Tao Analysis vol. 1).

Exercise 2.2.6:  Let $n$ be a natural number, and let $P(m)$ be a property pertaining to natural numbers such that whenever $P(m+1)$ is true, then $P(m)$ is also true. Suppose that also $P(n)$ is true. Prove that $\forall (m \le n) \ P(m)$. Hint: induction on $n$.  I don't know what is meant by doing induction on $n$. What's the property $Q(n)$ that I should attempt to prove by induction on $n$? Normally I see backwards induction being proven with the well-ordering property but at this point in the book it's not been mentioned yet. I would appreciate hints greatly.


command to check RAM slots in motherboard?

I have a Samsung NP300e5Z i5 laptop. I am using Ubuntu 14.04 in this laptop.  my system RAM is 4GB and i want to increase it but i am not sure how many memory slots are available in my system. so, how to check    how many memory slots available? how many slots my system is currently using? what is maximum RAM size that I can increase to?   any suggestion will appreciated


How do I set oldstyle figures as default numbers for the latex default font?

I want to use oldstyle figures as default for the whole document in LaTeX. How can I set that? I am using the default font.


I'm looking for a way to add an Active Directory user to a Mac and let them administrate the machine, without making more than just that user an administrator.  Right now, I'm using Directory Utility to add an AD group, we'll call it Domain Devs, to the Allow Administration By: list. This would allow Bob, Nancy, Paul, and Bill to administer the computer. But this machine is supposed to go to Bob, so I only want him to administrate it. I then have to go to the login options and tell it to only allow Bob to log into the computer.  So while Bob, Nancy, Paul and Bill can administer it, only Bob can log in.  There is a concern that other users will be able to log into or gain access to the machine through another method of login or security breach and have administration rights to the system.  We're looking for a way to do something similar to what happens in Windows when you take a user in AD and add that specific user to the local Administrators group, so Bob could be added to that specific computer and have admin rights and any other domain user can log in and have just limited user rights.  Is there a way to do this, add a specific AD user to the Mac as an administrator without using a group in AD with just that user in it?


How can I view the responses to the questions that I have flagged?

On Stack Overflow, is there any way for users to view the actions that have been taken for the questions that they have flagged? I recently tried to move one of my own questions for stackoverflow to , but I still don't know whether my request was accepted or declined, or whether a response is still pending or not.


How to find sum of power series $\sum_{n=0}^\infty\frac{1}{n!(n+2)}$ by differentiation and integration?

Let $$ S = \sum_{n=0}^\infty \frac{1}{n!(n+2)} $$  Integrate the Taylor Series of $xe^x$ to show that S = 1  Also, Differentiate the Taylor series of $\frac{e^x - 1}{x}$ to show that S = 1  For the integration one, I got $\int xe^x dx$ = $x^2\sum_{n=0}^\infty \frac{1}{n!(n+2)} x^n$ and pretty much stuck. I can see the S term but i have no idea how to move on from there


continue the incrementation of the figures

I have a global file that contains two other files,like this :  input{part1/chap1} input{part1/chap2}   so i have 2 figures one in "chap1" and the second in "chap2" in "chap1" my figure is : figure 1  and in "chap2" my other figure is also figure 1  I want my figure which is located in "chap2" be figure 2 not figure 1  Thank youu


Getting Null pointer Exception while running Mockito test case

I was trying to write a mockito test case (spring boot java rest) for a rest API in controller Class. I was getting a Null pointer exception, Thanks in advance. TestController @RestController @RequestMapping("/heloo") public class TestController {      @GetMapping     public String HellooWorld()     {         return "hello world";     } }  JunitTestCase class @SpringBootTest @RunWith(SpringRunner.class) class EmployeeApiTest {      private MockMvc mockmvc;      @Autowired     WebApplicationContext context;     @InjectMocks     private TestController testcontroller;     @InjectMocks     private EmployeeApi employeeapi;     @Before     public void setup()     {         mockmvc=MockMvcBuilders.standaloneSetup(testcontroller).build();         //mockmvc = MockMvcBuilders.webAppContextSetup(context).build();     }      @Test     void getMockitotest() throws Exception {         mockmvc.perform(MockMvcRequestBuilders.get("/get"))         .andExpect(MockMvcResultMatchers.status().isOk())         .andExpect(MockMvcResultMatchers.content().string("hello world"));              }  }


Is there any way to use global menu in Xubuntu 16.04?

I'm using Xubuntu 16.04 on a laptop, which means a confined screen space and a desperate need for global menu. I've tried  I've tried  (the classic option), but it looks like it hasn't been updated for 16.04 yet. Then I discovered that it's in the official repos, but still it doesn't work. When I try to add the plugin to a panel the only result is panel becoming opaque.  I've also tried  (the alternative version), but I failed to understand how to compile it.  Is there a way to get global menu working in 16.04, or I should just relax and wait for topmenu to be updated?


Text editor that updates file without prompting

Is there any console- or window-based text editor that automatically reloads file changed on disk without prompting anything?


Weird examples in javascript, why I can't reassign a global variable's value through a function's parameter?

Can anyone help explain the under hood of the following three examples(they have puzzled me a long time and I can't find an answer by google)? Why they produce complete different results?    Example 1.  I created a global variable named myArray and directly changed its value with a function. Everything is going on as expected. I changed the value of 'myArray'.  var myArray = [1, 2, 3, 4, 5];  function alterArray(){   myArray = [5, 4, 3, 2, 1]   return myArray;  }  alterArray(); console.log(myArray);  //-> Array(5)[ 5, 4, 3, 2, 1 ]   Example 2.  To make the alterArray function more efficient, I added a parameter to it so that the function can change any global variable into an array [5, 4, 3, 2, 1]. Then the function just doesn't work. myArray is still [1, 2, 3, 4, 5]. Why? What happened?   var myArray = [1, 2, 3, 4, 5];  function alterArray(arr){   arr = [5, 4, 3, 2, 1];   return arr; }  alterArray(myArray); console.log(myArray); //--> Array(5)[ 1, 2, 3, 4, 5 ]   Example 3.  I changed  arr = [5, 4, 3, 2, 1]; into arr[0] = "number one"; (inspired by an exercise in chapter 4 Eloquent Javascript) in the function. And the function works again! Why? Why the function doesn't work when I assign myArray a complete new value via the parameter, but works well when I only change part of myArray via the parameter?  var myArray = [1, 2, 3, 4, 5];  function alterArray(arr){   arr[0] = "number one";   return arr; }  alterArray(myArray); console.log(myArray); //--> Array(5)[ number one, 2, 3, 4, 5 ]


Sorting 2 fields ASC in array with usort (PHP)

i have a textfile with this content (id;date;user):  8559;2014-06-13;Carlos 8584;2014-06-23;1A Auto 8398;2014-06-02;LRDream 7738;2014-05-19;Felicitia Motors 8475;2014-06-06;Motori 8331;2014-06-30;Otto Burner 8521;2014-06-24;Mirage 3699;2014-06-30;LR DMJ 8050;2014-05-19;1A Auto 7428;2014-05-20;Carlos   Goal is to output this data sorted by 1) month and 2) username.  <?  $data = file("data.csv");  foreach ($data as $value) { $bla=explode(";",$value); $new[$bla[0]]['date']=substr($bla[1],0,-3); $new[$bla[0]]['user']=$bla[2]; }  function comp($a, $b) { if ($a['date'] == $b['date']) { return $a['user'] - $b['user']; } return strcmp($a['date'], $b['date']); }  usort($new, 'comp');  foreach ($new as $value) { echo $value['date']." - ".$value['user']."<br>"; }  ?>   This sorts the months correctly but the users are not really sorted:  2014-05 - Carlos 2014-05 - Felicitia Motors 2014-05 - 1A Auto <--- 2014-06 - LR DMJ 2014-06 - Mirage 2014-06 - Motori 2014-06 - LRDream <--- 2014-06 - Carlos <--- 2014-06 - Otto Burner 2014-06 - 1A Auto <---   What wrong with the code?  Thanks! NBG


When I do malloc(1), it allocates 8 spaces in a char*, and I have no idea why

Here is my code:  int newSize = size + 1; //lets say size = 0 char * newArray = malloc(newSize * sizeof(char)); printf("%li", sizeof(newArray)); //Should be 1, prints 8 printf("%li", newSize * sizeof(char)); //Should be 1, prints 1   I have no clue why it's doing this, but I need newArray to have exactly newSize number of char spots. Any ideas?


Do we have a way to permanently delete posts? My mobile browser accidentally submitted a half-answer on  question, and in a fit of idiocy I wrote another answer from scratch and 'deleted' the old one. I'd love it if the answer were actually deleted, as it contains basically no value, rather than hidden. Is this a thing we do, or should do? Will the garbage collector come and delete it on its own?


How to boot from a DVD on a UEFI laptop with Linux

I've bought a Windows 8.1 Lenovo laptop last year. Then on July I upgraded to Windows 10. Yesterday I formated it and re-installed Windows 10, but it isn't activating. So I ran the Ubuntu live DVD and all worked fine.  The question is: if I wipe everything and install only Ubuntu, how will I access the UEFI bios again, in case I want to install a different distro or even go back to Windows 10?  Thank you very much!  Renato


How can I install unity instead of gnome in Ubuntu 18.04

I want to install unity as DE in Ubuntu 18.04.Is it possible.


Is it legal to dribble above shoulder height?

I heard that while dribbling the ball, if the ball rises above shoulder level then it is a turnover. I don't have any idea about this rule.


I have an array of arrays. I want to append an element to a[0]  a = [[]]*26 a[0].append(1)   When i'm trying to do that, i get:  [[1],[1], ... , [1]] 26 times   But i want to get:  [[1], [], ..., []]   Why does it work so?


What is the purpose of characters shouting out the name of their attack?

It seems to me that in a lot of anime (Naruto, Dragon Ball, Gurren Lagann, and Digimon are four that come to mind), characters or creatures who perform an attack tend to shout its name, almost as if necessary to perform such an attack. This seems very counterintuitive—telling your opponent that you're about to use a fireball would open you up to being blocked very easily.    Why do anime characters tend to shout the names of their attacks? (Bonus points: Has this spread into Western animation?)


Why is intercept term left out of the penalty term in ridge regression?

I am reading about ridge regression in The Elements of Statistical Learning. In the ridge regression, we do not include intercept term $\beta_0$ in the penalty term. The book says, penalization of the intercept would make the procedure depend on the origin chosen for Y; that is adding a constant $c$ to each of the targets $y_i$ would not simply result in a shift of the predictions by the same amount $c$.   Could anyone explain why this is the case? I am having hard time grasping the issue conceptually and mathematically.


Any group of order $n$ satisfying $\gcd (n, \varphi(n)) =1$ is cyclic

Sorry for the last mistaken problem I just posted. Now I know that only having the order being odd square free is not enough for a group to be cyclic.   Here's the complete problem which the main goal is to show that any group of order $n$ satisfies $\gcd (n,\varphi(n))$=1 is cyclic. It asks me to do it in the following way:  (a) If $n > 2$, $n$ is an odd squarefree integer.  (b) Show that there is a $H = G/N$ of prime order.  (c) Show that $G \cong N \times H$ and $G$ is abelian.  (d) $G$ is cyclic.    Any ideas is appreciated.


Antimalware and Onedrive services uses up a lot of CPU time

Ever since upgrading to Windows 10 1903 the other day, my CPUs have all been pegged at 100%.  "Antimalware Service Executable" is using 60%, and "Microsoft OneDrive (32 bit)" is using 35% (with the other 5% being spread amongst everything else running).  After running like this for a day or so my computer case (Surface Tablet) is smoking hot.  How can I find out what's causing this problem?  Is there logging I can review for those services?  Known issues with 1903 that I just can't find on Google?


My brother and I have used the 'Open to LAN' button before and it worked well, but I got a new computer and now it doesn't work at all.  When I host the game on my Windows 10 computer, my game won't pop up in the server list like it should, but when my brother hosts it on his windows 7 computer, his game appears in my server list.    However when I try and connect to his LAN world, it says "Java.net.connectException:Connection timed out:no further information"  How can I get LAN to work?


Debian based system, only one gui program, nothing else

I would like to make a debian system where you can only open one GUI program at boot, no other graphical interface, no minimize, or any X apart from that program, is there a way to do it on debian if possible, or any other custom distro? I just want to boot open the program and allow the user to only see and use that program.


Recently got a new laptop Acer Aspire E14 (E5-491G-78F8) and installed Ubuntu 14.04.3 on it. I am not able to get wifi working on it.   Details are here    Any help is appreciated. Thanks.  $ ifconfig   root@subu-Aspire-E5-491G:/home/subu/wireless# ifconfig eth0      Link encap:Ethernet  HWaddr f0:76:1c:cb:18:9a             inet addr:192.168.0.198  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::f276:1cff:fecb:189a/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:258249 errors:0 dropped:0 overruns:0 frame:0           TX packets:136361 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:319411776 (319.4 MB)  TX bytes:20380324 (20.3 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:13401 errors:0 dropped:0 overruns:0 frame:0           TX packets:13401 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:1753814 (1.7 MB)  TX bytes:1753814 (1.7 MB)


How to show that for any real numbers $\{a_n\}$ if $a_n\to 0$, then $\frac{a_1+\dots+a_n}{n}\to 0$.

How to show that for any real numbers $\{a_n\}$ if $a_n\to 0$, then $\frac{a_1+\dots+a_n} {n}\to 0$.  I am a beginner to learn real analysis. Can any one give some suggestion?  Thank you!


Induction: $2^n = \sum_{v=0}^{n} \binom{n}{v}$

I have to prove the following identity for $n \in \mathbb{N}$:   $\displaystyle 2^n = \sum_{v=0}^{n} \binom{n}{v}$  Is there a way to show it through induction? Or is there a easier way? My steps so far:  $\displaystyle n=2: 2^2=\sum_{v=0}^{2} \binom{n}{v} \Rightarrow 2 \cdot 2 = \binom{0}{2} + \binom{1}{2} + \binom{2}{2} \Rightarrow 4 = 1 + 2 +1 \checkmark$  Now we suppose that the idenity is true for $n \in \mathbb{N}$, then it has to be true for $n+1 \in \mathbb{N}$, too:  $\displaystyle n \to n+1: 2^{n+1} = \sum_{v=0}^{n+1} \binom{n}{v} \Rightarrow 2^n \cdot 2 = \sum_{v=0}^{n} \binom{n}{v}+\binom{n+1}{v} \Rightarrow \ldots ?$


How to get # part of the Url from HttpContext.Current.Request

I'm trying to read the # part of an Url using HttpContext.Current.Request in my current application. For example, I've reading a Url .  The HttpContext.Current.Request.Url.RawUrl returns "" and excluds "#divId" part of it. I didn't find it in the Request object.   A quick help is required.   Thanks Chandana


Grouping two tables, one above the other

I'd like to group two tables, one below the other, so they don't show separated ie. one in each page. What's the best way to achieve that? I've read about positioning them side by side, but not this.  Probably, I could create a custom float with \usepackage{float}, but I bet there is a simpler way (other than playing around with [htpb]).


Root directory '/' locked after using chmod

I accidentally used  sudo chmod 3 /   which gives a execute and write permission to the root directory, while deleting the read permission. How can I recover from this, I cannot even use sudo now.


For which $t \in \mathbb{N}$ does $\varphi(t) \mid t$?

Just curious about this one. Don't really know where to start, any help would be appreciated thanks.


How are error terms calculated for moving average model in R

For an ARIMA (0,0,1) model, I understand that R follows the equation: xt = mu + e(t) + theta*e(t-1) (Please correct me if I am wrong)  I assume e(t-1) is same as the residual of the last observation. But how is e(t)  calculated?  For example, here are the first four observations in a sample data: 526 658 624 611  These are the parameters Arima(0,0,1) model gave: intercept = 246.1848 ma1 = 0.9893  And the first value that R fit using the model is: 327.0773   How do I get the second value? I used: 246.1848 + (0.9893*(526-327.0773)) = 442.979  But the 2nd fitted value given by R is : 434.7928  I assume the difference is because of the e(t) term. But I do not know how to calculate the e(t) term.


Unable to install rabbitmq due to not meeting dependencies: libssl

I want to install rabbitmq on my Ubuntu 18.04. I have been following the official . However, my installation is not completed as I am getting stuck on the step: sudo apt-get install rabbitmq-server -y --fix-missing as I face an error: unmet dependencies.  I tried installing libssl and then erlang-crypto, didn't work. I also installed aptitude using which I tried installing erlang-crypto, it also didn't install any package.  The command that I am running is:  sudo apt-get install -y erlang-base \                         erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \                         erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \                         erlang-runtime-tools erlang-snmp erlang-ssl \                         erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl   I get a failure message:  Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  erlang-crypto : Depends: libssl1.1 (>= 1.1.1) but it is not installable E: Unable to correct problems, you have held broken packages.   The libssl package isn't available and I have successfully installed libssl-dev.  I expect to completely install RabbitMQ and it runs successfully.


I want a word, sort of like "synonym" or "cognate"

According to Google (I'm not sure which dictionary source they use) the meaning of synonym is:     a word or phrase that means exactly or nearly the same as another word   or phrase in the same language, for example shut is a synonym of   close.   I want to know if there is a similar word to describe when two words or phrases from different languages are used to refer to the same thing or idea.  The word cognate almost suffices except, Wikipedia says this about the word:     In linguistics, cognates are words that have a common etymological origin.   and      Cognates do not need to have the same meaning, which may have changed as the languages developed separately.   So what word would I use when trying to explain that I have several words from different languages that have the same (synonymous) meaning, but they might have different origins. English and Chinese words for the same concept for example, most certainly will not be cognates.  Here is an example sentence where I might use the word I seek:     Chinese "饥饿" and Arabic "جوع" are ______ for the English word "hunger".   The word "translations" would actually work here, but I am looking for a more linguistic term for the actual concept that these words refer to and that links them together.


Example of an non-normal inseparable field extension

I was asked to prove or disprove that if a field extension is not normal then it is separable. I can't see why this would be true so I want to disprove it with an example of a non-normal inseparable field extension. I am wondering if there is a simple example of such an extension, or even any examples at all. I know that any inseparable extension $L/K$ has to be such that $K$ is infinite and of positive characteristic, so a good place to start would be $K=\mathbb F_p(T)$, but I'm unsure how to prove that an extension of this is inseparable, and even unsure how to come up with a non-normal example, since my usual approach is to exploit that $K$ is a subfield of $\mathbb R$ (so e.g. $\mathbb Q(\sqrt[3]2)/\mathbb Q$ is not normal as $x^3-2$ has $\sqrt[3]2$ as a root but the other two roots are in $\mathbb C \setminus \mathbb R$ and $\mathbb Q(\sqrt[3]2)\subset \mathbb R$). However with $K$ as above, $K \nsubseteq \mathbb R. $


How do you make a copy of an object in JavaScript that is completely separate and independent of the object copied?

I have the following code: let myObj = {     val1: "Cookies",     val2: 15 };  let myObj2 = myObj;  myObj2.val1 = "Cake";  console.log(myObj.val1);// This logs "Cake"  I want "Cookies" to be output instead of "Cake", what's the easiest way to make that happen?


I have two tables with the following layout  username | displayname            username| FirstName | surname  ---------|------------            -----------------------------  foo        test                    foo    | andrew    | blah  fa         display      What I'm trying to do is display all of the displayname entries in the left hand table on my page. However, if there is a match on the username in the right hand table, I want the value test to be replaced by andrew. Example out:  username | displayname      ---------|------------        foo        andrew                      fa         display   Everything is a string. Below is my attempt at what I need but I've messed it up as its applying the firstname value to every entry in my first table. _users = UserService.GetAll().ToList(); _updates = UserUpdateService.GetAll().ToList();  foreach (var user in _users) {     foreach (var update in _updates)         if (user.FirstName != "" && user.UserName == update.UserName)         {             update.DisplayName = user.FirstName;         }         else         {             update.DisplayName = user.UserName;         } }  Is there a way to do this with a single LINQ query?


On , in the side bar is a list of the "Top Network Askers", having just found this I thought it would be showing off the most prolific and highest rep earning users ever to ask questions on Stack Exchange but this does not seem to be the case.  The first user I clicked on was a new account, from today, with a single question, hardly a "Top Network Asker" by anyone's definition of the phrase.  Further investigation shows a whole mess of users with all kinds of different statistics based on their questions, some are higher rep, with many questions, others like the one I previously mentioned and everything in-between, so now I am confused about what actually makes a "Top Network Asker".  What is the criteria for someone to appear on this list?  If it doesn't actually show the top askers on the network, shouldn't the title be changed to reflect what the list actually shows?


Display X clients on from Ubuntu host on Cygwin box through VPN

Host A: Ubuntu Desktop box running at graphical runlevel. Sitting in office. /etc/ssh/sshd_config "X11Forwarding yes"  Host B: Windows laptop running Cygwin/X. Can run X clients locally. VPN from Host B into office network. Can ssh from Host B to Host A. Want to display X clients on laptop.   From laptop:  xhost + ssh -X mmartinez@hostA xclock Warning: untrusted X11 forwarding setup failed: xauth key data not generated Error: Can't open display:   UPDATE: as per Michael Hampton's comment, using ssh -Y mmartinez@10.10.10.165 xclock works.


How can I copy more than 300 pictures with the Ubuntu file manager?

If i have a folder with over 300 pictures I'm unable to copy it with the Ubuntu built-in file manager from one file manager window to an other one; it gets stuck at the middle and I then need to log out/log in to start my file manager again.  I'm using Ubuntu 16.04. How can I copy large folders in the file manager?


How many cantrips can I cast continuously out of combat?

Playing Skull & Shackles and we got shipwrecked. My character has  as a cantrip. According to the books, cantrips are so inconsequential that they can be cast "without limit".  Mathematically, a character could cast Mending every 6 seconds healing a hole in a ship an average of 1200 HP in an hour. The question is - are there any rules that prevent a character from casting Mending 600 times in a row for an hour?  My DM didn't let me get away with it, which is fine. I'm just curious if there are any rules out there that might apply.  :Edit: My purpose in asking the question is less about how to repair the ship and more about the casting limitations for a spellcaster. My DM and I agreed that between the two of us, we could find a way to make mending work. Our question was about whether or not my character could keep it up long enough for it to work. As someone pointed out, mending has a 10 minute casting time, so the math actually works out to an average of 12 HP in an hour, which would take several days to repair a hole in the hull of a ship. Several days of constant casting. At what point does a character become exhausted from casting cantrips? That is the question I intended to ask and it might apply to other situations in the future, beyond mending a ship.


Will upvoting again when my upvotes were somehow removed make me banned from Q&A?

I've gone through the following questions:   From those posts, I learned that, when my question/answer gets too many downvotes or deleted, I'll be banned from Q&A. To lift the ban, I have to earn more reputation by creating or editing a question or answer to attract upvotes. However, it is unclear to me that:  Will asking questions which are neither downvoted nor upvoted make me banned? Will upvoting too many answers make me banned? Will accepting answers increase my rep and then help to get unblocked? Or, will getting upvoted comments (no rep increase) help me get out of the ban?  I am asking because, a few days ago, I upvoted a few of the answers I got and later I find my upvotes are reversed. I upvoted again and then get reversed again and again. Then my account is banned. PS: I think this site must fully disclose its banning mechanism. I never learn about it until I got banned. For downvoters: please let me know what I did wrong; it is much appreciated.  Ok, now I realized that upvoting has nothing to do with a question ban (this is the ban I got). I'll now work on my previous questions. One likely reason of getting instant voting reversal is probably the Internet/Wi-Fi/data instability.


What is the correct start offset for logical partitions?

Recently I've start to implement some script to run using Linux "parted" to change the partition structure on our SoC system. When doing that I've encounter with some problems, The partitions on our device where not aligned. The primary and extended partitions are aligned, but the logical partitions not. The person that made the script for creating the image added offset of 63 sectors for each logical partition in the start sector arguments. I've try to figure why and I've read that each logical partition has "MBR" (EBR is the right name I think) at the beginning that store his value and points to the next partition and all of this structure is basically a linked list of partitions. So I'm guessing that the 63 sectors offset is to leave space for the EBR (We do the same thing in the first partition, its starts with 2048 sectors offset to leave space for the MBR). first question - The offset for each logical partition is necessary? If not great. no need to read the second question. Q2: This 63 sectors offset cause the misalignment in the logical partitions. My first thought was to change this offset to 2048 sectors, but it will create "holes" and I'm not sure if is the right thing to do?


Is it a good idea for a 21 year old engineer (or similar) with some lump sum of money and good income to invest?

I am fresh out of university and landed a good graduate job with a decent acceptance bonus. I would like to start investing and not lose any time in doing so, however, it can be intimidating to not only risk all the money being invested at a young age but also to sign paperwork without any legal endurance or knowledge.  Would it be a good idea to start opening an investment account in places like JP Morgan or BlackRock and start growing individual wealth?


Which is the fastest algorithm to find prime numbers?

Which is the fastest algorithm to find out prime numbers using C++? I have used sieve's algorithm but I still want it to be faster!


In almost all sagas we find Gods: e.g. in LOTR, Gods were mentioned, like Valar etc. But in Harry Potter, Voldemort was referred to as the Dark Lord (but he was just a normal wizard who chose the Dark and became extremely powerful); the tale was set in the 20th century and the oldest people mentioned were the four wizards after whom the houses in Hogwarts were named (Hogwarts was established in 990 AD).  Why were there no Wizard Gods or anyone whom Voldemort worshipped? At least in the movies no such things are mentioned.


I have requirement that i need to extract string using quotes. My string as follows.  "abcd efgh" "ijkl mnop" "qrst uvwxyz"   can you help me to get the string between second double quotes(ijkl mnop) using sed or grep command.  In other words if I say give me the string in first quotes I want the  first string; if I say second string it should give me string between second double quotes and similarly third one also.


How do you show that Let $n\in\mathbb{Z}^+$ $n\mid (2^1+2^2+2^3+...+2^{n-1})$ iff $n$ is prime?


I'm using package lineno for proofreading of my documents.  So I usually have something like the following MWE:  \documentclass{article}  \usepackage{blindtext}  \usepackage{ifthen}           % to use if then else \newboolean{korrektur}        % for proofreading: true/false  \setboolean{korrektur}{true} % choose one, comment the other %\setboolean{korrektur}{false}  % What we need for proofreading \ifthenelse{\boolean{korrektur}}% proofreading wanted? {% YES:   \usepackage{showframe}          % shows type area   \usepackage{lineno}             % numbers lines   \pagewiselinenumbers            % lines per page }% {% NO: % error if lineno was used before:   \typeout{***** Please delete .aux files if you get errors! *****} % What to add here so that I get no errors?  %<================= }  \begin{document} \Blindtext \end{document}   Run it two times. Everything should be well, blindtext is numbered.  Now please move the % sign from line 8 (false) to line 7 (true).    Because we had had the run before there is an .aux-file, including lines with the macro \@LN.  If you compile now you will get the following error message (and some more):   ***** Please delete .aux files if you get errors! ***** (C:\Users\...\LaTeX\_TeX.SX\lineno\test-lineno.aux ! Undefined control sequence. l.2 \@LN         {0}{0}   Question:  Is it possible to add in line 20 (see %<===========) something to get rid of the error messages? Something that resets the meaning of macro \@LN?


I am having an issue with my .bib file. Both in text references and the bibliography at the end do not show up. These are the error messages I get: The top-level auxiliary file: Chapter_one_26.02.21.aux I found no \citation commands---while reading file Chapter_one_26.02.21.aux I found no \bibdata command---while reading file Chapter_one_26.02.21.aux I found no \bibstyle command---while reading file Chapter_one_26.02.21.aux (There were 3 error messages)  and this is my code: ... \usepackage{biblatex} \addbibresource{BiblioC1.bib} ... \begin{document} ... \printbibliography ... \end{document}  any ideas of why this is happening? Thanks a lot


How do we attract playtesters for our online superhero game platform?

My friend and I are building a CMS specifically designed for online roleplaying. For the playtest we are using it to run a superheroes-themed game. We've built in-site tools to help making posting and character creation easier, and we're continually working on it based on playtester feedback.  Right now we have a few playtesters helping us to test the system, but they're all people we know — we have no experience with folks who are unfamiliar with our system and how we are doing things.  How do we attract folks to be playtesters for our game/platform ?


Flagged as Low Quality - can't flag as Dupe

I already flagged  as Low Quality, and posted a comment to that effect.  But then the OP asked why it was low quality, so I searched and found an .  When trying to flag as a dupe, I get the Post already flagged error.  I don't know whether this is something that can be changed when flagging for a different reason?  Or is there something else I should have done?


How to distribute objects in a circular pattern on a surface (Radial Array, Polar Array)

I'm modeling a bathroom interior, and I was wondering if there were any nice ways to distribute the little water spouts in their pattern along the black plastic for this shower head.  Here is my reference image (sorry for the low quality) :   Thanks.


Prove that any amount of more that $7$ cents can be represented by $3$ and $5$ cent coins. (Assume $3$ cent coins exist.)  Let P(n) be true if we can find $n$ cents with $3$ and $5$ cent coins.  My basis step is:  $P(8)$ is true since $3 + 5 = 8$  Would this be correct?  As for the inductive step, I'm not sure how to show it.  I've looked around online and it seems to be:   $P(k) = 8 ≤ k ≤ n$  How would I prove this to be true?


I am trying to make a custom kubuntu 20.04 distro. Are there any good tools I can use?


Find the diameter of the new sphere assuming that the volume of  a sphere is proportional to the cube of its diameter. I know that diameter is equal to the twice of radius. How can you possibly solve this if the radius in the formula of the sphere is radius cube.


I am trying to determine a perl method to add an extension to a list of files. I can already rename a list of files with a certain extension to some other extension, but I need to be able to do this for any file name, whether or not it already has an extension.  For example, I have a list of files such as:  file1 file2 file3 ps.dir   And I want to rename them ALL to filename.extension:  file1.bad file2.bad file3.bad ps.dir.bad


Hahn Banach Theorem: Transfinite Induction

In the 4th book of Stein and Shakarchi, the statement of the Hahn-Banach theorem is as follows:     Suppose $V_0$ is a linear subspace of $V$ and $p$ is a real sub-linear function on $V$, and that we are given a linear functional $l_0$ on $V_0$ that satisfies $$l_0(v)\leq p(v) ~\forall ~v\in V_0$$   Then $l_0$ can be extended to a linear functional $l$ on $V$ that satisfies    $$l(v) \leq p(v)~ \forall ~ v \in V$$   The proof given is as follows:     We have already proved that if $l_0$ can be extended to a subspace W, then it can also be extended to the subspace $W+ w$ for any vector $w$. We well order all the vectors in $V$ that do not belong to $V_0$, and denote this ordering by $<$. Among these vectors, we call a vector $v$ extendable if the linear functional $l_0$ has an extension of the kind desired to the subspace spanned by $V_0.v$ and all the vectors $<v$. What we want to prove is in effect that all vectors not in $V_0$ are extendable. Assume the contrary, then because of the well-ordering we can find the smallest $v_1$ that is not extendable. Now if $V_0'$ is the space spanned by $V_0$ and all the vectors $<v_1$,then by assumption $l_0$ extends to $V_0'$. The previous step, with $V_0'$ in place of $V_0$ allows us then to extend $l_0$ to the subspace spanned by $V_0'$ and $v_1$, reaching a contradiction. This proves the theorem.   Firstly, how does proving that all vectors not in $V_0$ are extendable imply that an extension exists for the whole space? We know that for any $v \notin V_0$ there exists a valid extension, say $l_v$ for the space spanned by $V_0,v$ and all vectors $<v$. Say we define $l(v):=l_v(v)$. Now we take an arbitrary $w>v$. Couldn't it happen that $l_w(v) \ne l_v(v)$. In this case how can one define $l$? Will it help if we change the definition of "extendable" to something like: A vector $v \notin V_0$ is called extendable if $l_0$ has an extension of the kind desired to the relevant subspace which is equal to the already defined functionals $l_w~ \forall w<v$ in the relevant subspaces? Also, how does one get the statement :"Now if $V_0'$ is the space spanned by $V_0$ and all the vectors $<v_1$,then by assumption $l_0$ extends to $V_0'$."


In the article , the original RSA article, it is mentioned that Miller has shown that n (the modulus) can be factored using any multiple of φ(n).  Imagine I know the public and the private key. But what I really want is the factors of n, the p and q but I cannot use any factorization algorithm in a large number of n.  In the Miller's article it is suppose to say how I can find the two factors, knowing the public and private key. But I cannot understand how exactly it is done. Does someone know? Or have a small example?


I am implementing a php site that allows users to upload their pictures, I created the uploads directory at the same level as root but now how can I access those images in html.  I tried following  <img src="../../uploads/<?=$filename?>">


Need guidance on a problem about oscillation from Spivak's Calculus on Manifolds

I've been stuck on this particular problem for a while now:  Let $f: [a,b] \rightarrow \mathbb{R} $ be an increasing function. If $x_1, ... ,x_n \in [a,b]$ are distinct, show that $\sum\limits_{i=1}^n o(f, x_i) < f(b) - f(a)$.  It is clear that this is true, but I am finding it difficult to find a way to prove this in a manner that is valid. The proof that I did have for this problem seems to lack any substance and seems to draw on too many implicit assumptions that makes me almost certain it isn't correct. I think this comes from that fact that I do not see this problem in the way it should be seen, but I am just not exactly sure on what that is. I've tried other approaches that seemed promising at first, though it hasn't been of much help.   I would greatly appreciate any hints or guidance that will point me in the right direction of solving this problem.   Thanks.  Edit:  Note: $o(f, x_i) =  \lim_{\delta \to 0} [M(a, f, \delta) - m(a,f, \delta)]$  My proof: Assume $\sum\limits_{i=1}^n o(f, x_i) \geq  f(b) - f(a)$. Since $f$ is increasing, we can add $\sum\limits_{i=1}^n o(f, x_i)$ to $f(a)$. But this result is clearly not equal to $f(b)$, because $f$ is defined as increasing, nor is it greater than $f(b)$ because that would be outside of our range. Hence $\sum\limits_{i=1}^n o(f, x_i) < f(b) - f(a)$.


Exporting a Database schema and triggers

I have a small problem at work. Our DBA went on a journey of self-discovery ... I am very happy for him and I hope he finds what he is looking for. But he left us without any information about how the database he created works, the triggers he has, the connections between tables and, frankly, no documentation.  My question is whether it is possible to export all the information from the database (connections between tables, schema, triggers, fields with data type, etc .. :) in a file from TOAD or another application to mount it in some application that would reverse engineer the database to indicate that same information that we need.  I thank you very much for the help you can give me!


How to prove every closed interval in R is compact?

Let $[a,b]\subseteq \mathbb R$. As we know, it is compact. This is a very important result. However, the proof for the result may be not familar to us. Here I want to collect the ways to prove $[a,b]$ is compact.   Thanks for your help and any link.


I'm trying to find Lucia and Sophie but they are both gone i haven't adopted them yet so i don't know what to do to find them. I've already looked everywhere in whitrunrun and windhelm but they are nowhere to be found.


Why is "the" dropped in "I go to school by bus"?

Why is the dropped in "I go to school by bus"? Why isn't it "I go to the school by the bus" if both school and bus are countable? Does the rule that a countable noun must have an article have an exception here?


When me and my friend on our phones try to play minecraft PE it doesn't show the name to go to the world, so we need answers on how this will work


Prove that the derivative of the conjugate $\overline{f(z)}$ is $0$

Let $f(z)$ and $g(z):=\overline{f(z)}$ be complex functions defined for all $z$. In addition, suppose that the derivatives of both $f,g$ exist in $z=a$. Is it true that $g'(a)=0$ ? I noted that $$ g'(a)=\lim_{z\to a}\underbrace{\frac{\overline{f(z)-f(a)}}{f(z)-f(a)}}_{h(z)}\cdot \frac{f(z)-f(a)}{z-a} $$ and that $|h(z)|=1$. But how to deduce that $g'(a)=0$ ?


The maximum product of two numbers which together contain all non-zero digits exactly once

I found the following puzzle:     Use all the digits from 1 to 9 without repeating, to form two numbers such that     their product is maximum. A digit used should be unique across both the numbers. For example, the numbers formed could be 1234 and 56789.   I know that the answer is 9642 and 87531.  It is obvious that digits should form the numbers in descending order.  I've spent so much time trying to prove that:   for the maximum product numbers should be 4-digit and 5-digit why people use greedy algorithm for solving the puzzle so that they start from the first digit and add one by one other digits?   Thank you.


Are RAR-archives safe to store backups in?

I'm writing a little batch script to backup all data for a project that I am currently developing. The script is currently just copying all project files to a new directory (named by the date when the backup was made) in my Dropbox folder (very simple, just using xcopy). Because I store them in my Dropbox folder, it would be great if it wouldn't take up all my storage space after making a lot of backups. Of course I could remove old backups, but I'm trying to make the backups small anyway. Therefore I'm thinking of packing each backup into a RAR-archive before moving them, but I wonder if it is really safe. I ask this because some of all RAR-archives that I download from the Internet are broken and can't be opened. I don't want broken backups, so I wonder if these RAR-archives that I download are just broken because they've been packed wrongly, or if there is a risk that a correctly packed archive can become broken too. Is it safer to store the backup in a folder than a RAR-archive?


How to delete the post posted as guest into a stackexchange site?

I asked a question as a guest and now I have to delete the post since it contains some research data. Since I post it as a guest I can not delete it. I can confirm my email address to show that I am the person who asked that question.   How should I proceed?


What does the underscore mean in $this->_objectProperty?

I have encountered an instance where object properties look like this:  $this->property   and this:  $this->_property   What does the _ mean before ->? What difference does it make in terms of coding?


Adding external user to sharepoint 2013 programmitically

It says here --   that sharepoint external users cant be created programmitically.   Is it possible to use rest API to programmitically add external users to my sharepoint site?


Novel about people living in a virtual reality on a spaceship, only discovering this over time

I'm looking for a novel, of which I'm remembering mostly the end. It might be important that I've read the story in German.  Most of the story takes part in a strange, surreal world. Towards the end it is revealed that the protagonists are on a spaceship and the story took place in a  virtual reality generated by an artificial intelligence to entertain them during a long term travel. It was so real that they do not realize most of the time that they are in a virtual reality. Over time, errors accumulate and the simulations stop when people encounter too many of them.  There is a mythical figure mentioned several times (I guess it was something like "Der Wanderer", which roughly translates to traveler or wanderer).  It turns out that the whole crew is already addicted to the virtual reality, only one of them resists. All but this one get back into virtual reality.   The final scene: The one who resisted the virtual reality has a appearance of the mythical figure, which asks him what he wants to be. He answers he wants to be a plant in the desert, just feeling the sunlight and the live flowing through his body. The mythical figure tells him "that's how it plants feel", and he opens an airlock.


Can someone please explain to me how is $$\dfrac1{(1-x)^5}=\sum_{n\geq0}{n+4\choose4}x^n$$  Thanks!


I recently switched to Chrome from FF because FF was freezing all the time (this happened on all of my computers, so it's not an issue with my computer).   I've noticed that Chrome seems to use up a LOT of memory. Right now I have about 70 tabs open and Chrome is using somewhere in the neighborhood of 8.5GB of memory (it's hard to say exactly, because annoyingly it seems that Chrome has a separate process in Task Manager for each tab).  Is that normal? If not, what can I do to figure out why it's using so much memory?


How to run multiple tool from different workspace environments

I've created 1 script to perform 2 specific tasks but it not working correctly due to how the arcpy.env.workspace is set.   The first part of the script deletes and recreates the sub folders in "C:/EIS/SHP Files"  arcpy.env.workspace = "C:/EIS/SHP Files"   The second part of the script looks inside a particular sub folder in "C:/EIS/SHP Files/Master folder" and copies Pipe data back into the newly created folders  arcpy.env.workspace = "C:/EIS/SHP Files/Master Folder"   Problem: I can't reference 2 environments at once in a script. The script will give out an error message since it can't look in 2 paths at once. So how can we do this?  import sys import platform import imp print "Importing arcpy... this may take a moment\n" import arcpy from arcpy import env  # Set workspace arcpy.env.workspace = "C:/EIS/SHP Files"  # Creates the county folders out_folder_path = "C:/EIS/SHP Files/"  # Set local variables # List of folder values in load order folderList = ["1","2","3","4","5"]  # Store all the folder names in a dictionary with the folder code as the   # "key" and the folder description as the "value" (folderDict[code]) folderDict ={"1":"OH_ADAMS","2":"OH_ALLEN","3":"OH_ASHLAND","4":"OH_ASHTABULA","5":"OH_ATHENS"}  # Wayne Pipe in_data_WayneMain =  "WayneMain.shp" out_Geauga_WayneMain = "C:/EIS/SHP Files/OH_GEAUGA/WayneMain.shp"  # The Code below will utilize the [arcpy.CreateFolder_management] tool in  # order to rebuild the directory for C:\EIS\SHP Files\.. County Folders  # Process: Add valid material types to the domain # use a for loop to cycle through all the domain codes in the dictionary for code in folderList:     if arcpy.Exists(out_folder_path):         arcpy.Delete_management(folderDict[code])         arcpy.CreateFolder_management(out_folder_path, folderDict[code])  # The Code below will utilize the [arcpy.Copy_management] tool in order to    # copy files from the C:\EIS\SHP Files\Master Folder to C:\EIS\SHP Files..  # County Folders  # Wayne Pipe (Copied) To => County Folders arcpy.Copy_management(in_data_WayneMain, out_Geauga_WayneMain)


Is there enough snow for activities in October in Tromsø?

I would like to go about the end of October to Tromsø, but it is not clear if there is enough snow for husky rides. Do you recommend it?  Also I do not know if it is reasonable to book it since now or can be done easily on the arrival at the hotel. Any recommendation?


I am having a hard time understanding why the box topology is finer the the product topology. Of course I know that with finite product, the two are the same. With product topology, the basis elements are defined so that the $U_{\alpha}=X_\alpha$ except for finitely many $\alpha$. So how can this topology be contained in the box topology which has only the product of the  $U_{\alpha}$ as basis. I think it should have been the other way round. Am I missing something here? I need help with this because I have been confused over it for a long time.


Why task factory in loop prints beyond loop index?

I am learning to use the Task Parallel Library(TPL) in C#, and wrote the following code (you can copy-past it and run it).  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks;  namespace parallelTaskLibrary {     class Program     {         static void Main(string[] args)         {             for (int i = 0; i < 6; i++)             {                 var t01 = Task.Factory.StartNew(() => Console.WriteLine("in loop: i = {0}", i));             }              Console.WriteLine("press any key to terminate...");             Console.ReadKey();         }           } }   in the for loop, the counter index i cannot start an iteration with a value of i = 6. However, the output i got is this:  press any key to terminate... in loop: i = 6 in loop: i = 6 in loop: i = 6 in loop: i = 6 in loop: i = 6 in loop: i = 6   However, in another launch(didn't change in the code), i got this:  in loop: i = 1 in loop: i = 1 in loop: i = 2 in loop: i = 3 in loop: i = 4 in loop: i = 5 press any key to terminate...   which is plausible...  I Debugged the code, and found that i value is: 0,1,3,4,5,6   How did that happen?  Why i got (i = 6) in the loop?  is there anything wrong in my code?  Note: I'm using visual studio 2010


What is correct:     1) Books and music makes life even better   or     2) Books and music make life even better   (saw a quote #1 and t-shirt with #2)


I am using the code  \noindent where $rc$ is density ($\rho$) multiplied by heat capacity ($C_p$), $k$ is thermal conductivity, $h$ is the heat transfer coefficient, $ambT$ is the ambient temperature, $iniT$ is the initial copper temperature, and $q$ is a heat source internally supplied to the sample ($\dot{q}$). \\  \noindent Then, the differential equation with boundary and initial conditions is defined:   in the online LaTeX site sharelatex.com. While it looks the way I want, it gives the error Underfill \hbox (badness 10000) in paragraph and I'm not sure how to fix it. I have seen other similar questions, but none of the solutions given seemed to work in my situation. If anyone could help me do it without the error, that'd be great.


get folder names inside special directory

I want to get folder names inside the special directory.   for example : inside /storage/sdcard/DCIM there is two sub folder name 100ANDRO and Camera  How can i achieve this ?  i tried :  ArrayList<File> files; File directory = new File("/storage/sdcard/DCIM");      File[] fList = directory.listFiles();      for (File file : fList) {         if (file.isDirectory()) {             files.add(file);         }     }    but i get NullPointerException


continuity at zero implies continuity everywhere

Suppose $f(x)$ is defined on the entire line and continuous at the origin with the property that $f(\alpha+\beta) = f(\alpha) + f(\beta)$ where $\alpha,\beta \in \mathbb{R}$. Prove that $f(x)$ must be continuous at every point $x=a$.  Try: First notice that $f(0) = f(0+0)=f(0)+f(0)=2f(0) \implies f(0)=0$. Since $f$ continuous at zero, then $\lim_{x \to 0} f(x) = f(0) = 0$. Next, let $a $ be arbitary real number. Then, $$ \lim_{ x \to a} f(x) = \lim_{x \to a} f(x-a)+f(a)=_{h = x-a} \lim_{h \to 0} f(h) + f(a) = 0 + f(a)=f(a)$$ So f is continuous everywhere. Is this a correct solution?


Where should people give feedback on Ubuntu?

Many people have opinions or want to give feedback about Ubuntu.  If they are simple bugs with a crash or display corruption, that's fine, they can .  But, comments about the design or concept of the system are more problematic.  They come up all over the place, such as "" in other places that are not really about Unity.  Ideally the answer will be a place where the comments   will actually be read by the design team  will tend to encourage people to read the existing comments and not post the same thing again and again perhaps will tend to bubble up good solutions rather than strange ideas will not be annoying to people who are trying to use that place for something else


What does the pentaprism/pentamirror do?

In an SLR, the light bouncing off the mirror goes through a pentamirror or pentaprism before being reflected to the viewfinder. However, it seems to me that it would be possible to project an image to the viewfinder simply by using two mirrors, the upper one at a complementary angle to the lower one, much like a simple periscope.   Such a system might have benefits in terms of light transmission, as the light is only reflecting off 2 surfaces instead of 5, leading to a brighter viewfinder. This is such an obvious thing that I feel I must have misunderstood the purpose of the pentamirror/pentaprism.  Can anyone elaborate on why exactly such a complex path of reflecting surfaces is needed in an SLR?


System app Uninstallation without rooting

How to Uninstall system apps without rooting? I have tried many applications but all of them require root permissions. Please help.


I have a interntal fat32 partition, shared with windows. In Ubuntu I don't have write access.  The fstab file looks like this:  /dev/disk/by-label/SHAREDI /media/SHAREDI auto, users,nosuid,nodev,nofail,x-gvfs-show 0 0  When I open up the partition in Nautilus its owner is "root".   Any ideas? I've spent quite a lot of time reading the fstab options and can't see what's wrong.   Help me askubuntu you're my only hope.


CUDA apps time out & fail after several seconds - how to work around this?

I've noticed that CUDA applications tend to have a rough maximum run-time of 5-15 seconds before they will fail and exit out.  I realize it's ideal to not have CUDA application run that long but assuming that it is the correct choice to use CUDA and due to the amount of sequential work per thread it must run that long, is there any way to extend this amount of time or to get around it?


How can I get the length of repeating decimal?

I got an interview and the question is how to get the length of repeating decimal?  For example  1/3=0.3333..., it returns 1, 5/7=0.7142857142857143, it returns 6, since 714285 is the repeating decimal. 1/15=0.066666666666666, it returns 1. 17/150=0.11333333333333333, it returns 1. since 3 is the repeating decimal.   And I have tried to write Python code  def solution(a, b):     n = a % b     if n == 0:         return 0      mem = []     n *= 10      while True:         n = n % b         if n == 0:             return 0         if n in mem:             i = mem.index(n)             return len(mem[i:])         else:             mem.append(n)         n *= 10   However, my code can't pass all tests. And it's time complexity is O(n*logn). How can I improve its time complexity to O(n)?


Why is my health going down for no reason?

My health bar keeps going down until I die. I have nothing in status effects -- no poison, no disease, or vampirism. Tried several earlier saves and then tried reinstalling Skyrim. My character is a level 75 battlemage Nord who is a werewolf.


Recovery? Accidentally formated whole disk when installing Xubuntu

today I attempted to install Xubuntu on my machine. I had Ubuntu and Windows on my SSD as dual boot.  I wanted to expand the volume that the Ubuntu had because it was way too small. What I did, mistakenly, though is to format the whole disk so I lost my Windows partition (of course).  I tried to recover at least partially my Win partition with TestDisk via Live Ubuntu flash drive.  I can see the drive, when I try to search for volumes, however when I get in there in order to recover the files, it tells me:      Can't open filesystem. Filesystem seems damaged.   Is there a way that I can recover, at least partially, some of the files on my Win partition, now called Unallocated space?      P.S.   This question not related ENTIRELY to my problem. The thing is that all of the ways to recover my partition suggested there are not seeing the partition I've mentioned. On the other hand, with TestDisk tool I can see it.


General system specs for large scenes in blender

What are the system requirements for working with complex geometry in Blender? Things like RAM, GPU, CPU etc.?


What makes synapses not move or pre- and postsynaptic cells neither touch nor move away from each other? I mean the synaptic cleft is a gap between the pre- and postsynaptic cells that is about 20 nm wide (according to Wikipedia), so what makes it of that width? Are there some protein fibers anchored in both pre- and postsynaptic cells? Or do the glial cells keep them at that (often temporarily) fixed position? What prevents them from being displaced by the slightest movement of the body? I'm talking obviously about the chemical synapses.  Thanks in advance for the answer.


How to derive the formula for the uncertainty of opposite in TOA? (let the opposite be h and the adjacent be x)


I sent my files(pdf, docs...) from macbook to iphone but i did not open my files when received. And now i can not find my files anywhere. Is there anywhere or removed?


How fast does gravitational information travel?

Imagine two objects with equal mass in empty space attracting each other. One of these objects moves tangentially with a very high speed (lets say 0.9c). (p1 = (0, 0) p2 = (1, 0) v1 = (0, 0) v2 = (0, 0.9c)).  Would the direction of the force, acting on the resting mass point directly towards the other mass, or to a point, where the moving mass was some time ago.  Einstein says, that information cant travel faster than light, so whats about gravity? Does the gravitational pull really point towards the center of mass, even if it its moving?


Remove Update Notification (for all users except ADMIN)

I have 2 administrators in my wordpress, but I only want that one of them see the "Update Notification". I've inserted this code on my funtions.php file  and change name of one of my adminastrator login name the code - if ($user_login !== "miguel") - but it didnt' work?   Any help? Thanks


Do the integral forms of Maxwell's Equations have limited applicability because of retardation?

In the usual bookwork treatment, it is easy to show that the differential and integral forms of Maxwell's equations are equivalent using Gauss's and Stokes's theorems. I have always thought that neither version is more fundamental than the other and each has its place in solving problems. (See also  )  But: I have a conceptual problem with applying the integral forms of these equations in cases where there is time-dependence and the "size" of the loop or area means there is a significant light travel time across the regions considered compared with the timescale on which fields vary.  e.g. Suppose there is a time-varying current in a wire $I(t)$ and I wish to find the fields a long way from the wire. My first instinct is that this ought to be solved using the inhomogeneous wave equations to give A- and V-fields that are dependent on the retarded time - hence leading to the E- and B-fields.  But what about using Ampere's law in integral form? What is the limit of its validity? If we write $$ \oint \vec{B}(r,t)\cdot d\vec{l} = \mu_0 I(t) + \mu_0 \int \epsilon_0 \frac{\partial \vec{E}(r,t)}{\partial t} \cdot d\vec{A}$$ then presumably the $t$ that is defined on each side of the equation cannot be the same, since a change in $I$ at time $t$, presumably leads to a change in $B(r)$ at a time $t + r/c$? I suppose one does not care about this so long as the timescale for a current change is $\gg r/c$.  So my question is: Are the integral forms of Maxwell's equations inherently limited by this approximation, or is there a way of formulating them so that they take account of the finite size of a region in cases where the fields are time-variable?


Using a or an article before unfamiliar or new termed acronym

I have seen in a number of places, such as , that the usage of a or an in front of an acronym is dependent on the common pronunciation of that acronym.   I am confused for the following reasons:   It is very possible that a certain acronym will be differently pronounced in two cases (based on geography for example) due to cultural or context differences.  If I am terming a new acronym, do I get to choose how to pronounciate it as well? For example, say I am writing an academic article and have defined a new term for which I choose a new acronym, how do I determine the correct article?   A good example of the latter case could be derived from the world of computers. Say I am an innovator who just invented the  computer bus, and I am terming the acronym SATA. I may pronounce my new term either as saa-taa or ess-ay-tee-ay. For the first case, I will have to write a SATA bus while for the second, it seems I will have to chose an SATA bus.   Is there a rule of thumb here to make things clearer?


Is there any app which can tell which app is using internet?

I have installed lots of apps on my phone. For the last couple of weeks i am facing one issue. Even when i am not using internet infact even when i am not using my phone at all, a window pops up and says you have just downloaded ??mb of data!!! and because of this my battery is draining very fast. I have to charge it twice a day. I don't even know which app is accessing net,   I suspected the pulse feed reader and google+ for this. Uninstalled pulse reader but still there is problem. If i could got to know which app is that then i will just uninstall that.  Phone: HTC Desire S OS: Android 2.3.3


Apache Sorl Add Custom Term Indexing with Hierarchy

My project was have 3 content types with taxonomy, i need to combine all the content types term field values and display with hierarchy.  My fields are :  field_peoples_rits_term, field_publcation_rits_dev, field_research_rits_term I Need combine all these fields as a new field. Thanks in advance


Learning a simple sequence with RNN (Keras)

I am trying to learn a very simple sequence using an RNN (implemented in Keras)  The input sequence is randomly generated integers between 0 to 100:  x=np.random.randint(0,100, size=2000)   while the expected output value for time t is the (t-2)th input term i.e:  yt=xt-2  such that an example dataset looks like this:   +------+------+ |  X   |  Y   | +------+------+ |    0 |   NA | |   24 |   NA | |   33 |    0 | |    6 |   24 | |   78 |   33 | |   11 |    6 | |    . |    . | |    . |    . | +------+------+   Note: I drop the NA rows before training.  I am trying to train a simple RNN to learn this sequence as below:  xtrain=np.reshape(df['X'], (df.shape[0], 1, 1)) #to match dimension of input shape for SimpleRNN layer.    model=Sequential() model.SimpleRNN(2, input_shape=(None,1))) model.add(Dense(1)) model.compile(optimizer='adam', loss='mse') model.fit(x=xtrain, y=df['Y'], epochs=200, batch_size=5)   however, I find that this implementation results in a local minima which predicts constant value(~50) for all test observations.  Could anyone help me with the right way of implementing a basic RNN in Keras to learn this sequence?


How do continuous effects interact with "enters the battlefield" triggers?

At what point do creatures entering the battlefield begin to be affected by enchantments and abilities of creatures already on the battlefield?  For example, 's ability triggers when creatures of power 2 or less enter the battlefield.  If I play a 2/2 creature while  is in play does the Mentor's ability trigger?  Similarly if I play a 2/2 human creature while  is in play (face up) does the Mentor's ability trigger? (It clearly has no effect if the card is transformed (face down) and the Mentor's ability would trigger.)


Why does centering not work with calligra?

I'm trying out the calligra package for a wedding order of service. Just trying to make the titles look a little nicer. When I use the \centering command, however, it doesn't seem to work:  \centering Test1\\ \calligra{Test}   Produces calligraphic text that doesn't seem to be centered. Is this fixable?    Thanks all,  James


Disposable Cellphone SIM Card for Germany

I am coming to Germany for holidays, and I would life to use my cell phone, however I guess a German provider may be able to offer a much better service of Internet connections. But since this is temporary trip, I don't wanna buy a full plan.  Are there SIM Cards for me to buy in Frankfurt Airport or Frankfurt area?


what is the meaning of eigenvalue of Dirichlet laplacian in the real life (physics...)

I am asking a question that I have already asked, but which did not have any success for the answers let $\lambda_{1}(\Omega),\lambda{2}(\Omega),\lambda_{3}(\Omega)...$ the eigenvlues of the laplacian Operator with Dirichlet condition on the boundary on $\Omega $  the classical spectrale optimisation problem is : $$ min\{\lambda_{k}(\Omega),\; \Omega\subset \mathbb{R}^N open ,\; |\Omega| = c\;\},$$ where  $|.|$denoted the  Lebesgue measure , $c>0$, $k \in \mathbb{N}^{\ast}$ and  $\lambda_{k}$ is the $k-$eme eigenvalue of Dirichlet-lapalacian on $\Omega$.  I would like to know what is the application of this Problem (For the laplacian or another Operator) in the physics or the natural sciences..  thank you for your answers


What does the colon in Tikz coordinates mean?

\draw (0,0) -- (60:.75cm) arc (60:180:.75cm);   What does the colon in (60:.75cm) mean? Normally, I'd define a normal point there.


How to remove junk characters from the file generated by script command in linux

I am using script command to record everything from terminal. But when I am opening the generated file its having lots of junk character. Can anyone help me to remove these junk characters from file or any other alternate way?  This file look like this:  ossvm10(0)> ls -lrt /usr/opt/temip/mmexe/mcc_fcl_pm.exe^M ^[[00m-rwxr-xr-x 1 root root 387517 Feb 18  2013 ^[[00;32m/usr/opt/temip/mmexe/mcc_fcl_pm.exe^[[00m^M ^[[m^[]0;temip@ossvm10:/home/dharmc^G[/home/dharmc]^M ossvm10(0)> script -a unit_testing_TEMIPTFRLIN_00202_CR#9961.txtsum /usr/opt/temip/mmexe/mcc_fcl_pm.exe^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^[[1P^H^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^H^[[1P^[[1P^H^G^G^G^G^G^G^G^G^M 06046   379^M ^[]0;temip@ossvm10:/home/dharmc^G[/home/dharmc]^M


Visa requirements for travelling from the US to Sri Lanka through Dublin, Ireland

My daughter has a Sri Lankan passport and is a university student in the USA. She has a valid US visa and she has already purchased a return ticket to come home to Sri Lanka and return to the USA to continue her studies. However, that ticket includes a transfer through Dublin, Ireland, with a 1 hour layover.  Will she require a transit visa?


Windows 10 shows C:\ 92% full, when it's actually only about 15% full. Not a partition issue

I can't figure out why my C:\ drive is reporting nearly out of space.  I have a 1TB SSD drive, you can see in Disk Management, that I should be getting about 930GB out of it.   It reports I'm virtually out of space.  I actually keep nearly everything on my D:\ drive (1 TB SSD), there is no valid reason why C:\ should be out of space.  C:\ is virtually nothing more than windows + program installs.   All data goes to D:.  I also did a folder by folder check in C:\, and none of them report any unusual amount of space used, and the 'folder by folder' check adds up to what File Explorer shows for all folders together.  I do NOT use windows recovery, it is turned off.     I do use hibernation, but it's not unusually large.  I do NOT use Veracrypt or any other such software that might make hidden partitions.   I built this O/S myself only a few months ago.   I do not download from the internet on this machine, this is a development laptop.  I run Avast, SpyBot and MalwareBytes + Windows Defender.  The possibility of a virus is near zero.    You can see by my file explorer below, that my clusters size is reasonable, because 'size' and 'size on disk' are nearly identical.  I use R-Wipe & Clean, and I had it delete everything, all browser info, temp files, personal traces, etc.  There is only 1 user on the computer, me.  I ran chkdsk to do a full disk scan and repair, and it reported no errors.   I did run it during boot up so that Windows did not interfere.  I did a defrag, and it said there was nothing defrag.  I delete the recycle bin in case there were ghost trash bins out there.  I physically double checked all temp folders that I am aware of.  I did a manual check for any .dmp or .log files that might be hanging out somewhere.  I've gone through 1/2 dozen different posts on similar issues.   No matter what I try, I can't figure out where the missing 700GB or so went.  I'm literally out of ideas of where this space (roughly 700GB) has gone.  No unexpected partitions.   I should be seeing all files.    I opened C:\, did CTRL-A, and 'properties' to find out what File Explorer calculated.  This amount is what I expect.    When opening 'My Computer'    My hybernation and page files are on C: but are typical sizes.    Volume Shadow Copy output    WinDirStat running in admin, shows 50% utilization.   Still higher than I expect, but closer.    WizTree Output     After looking at results, I followed the 'fat directories' all the way down to Microsoft SQL dump directory.   The directory was protected, and file explorer could not access it.   That's why File Explorer was returning the wrong results.  Here I deleted the dump files, and now it's what I expected:


Is there any part omitted in the following sentence?

The sentence is:  "Despite its ability to hijack your senses and immerse you in hyper-realism, the real power of VR may lie in its ability to foster quiet intimacy so realistic it’s unsettling."  I'm really confused with this sentence. I think there is an omitted part after "realistic" or something else. I assume it should be "so realistic that it's unsettling" without omission, am I right?


Short story - 60s or earlier - meteorite is actually crashed alien ship full of tiny insect-sized beings

This story was in one of the first SF anthologies I ever read, in the mid-1960s. A meteor lands near to a house. The householder finds it and carries it into his house (meteor is grapefruit/football sized). It’s actually a crashed spaceship, crewed by beings the size of beetles or cockroaches. They emerge, and are spotted by the householder, who of course thinks they’re insects, but notices one seems to be holding a tiny tube. He reaches towards it and the alien shoots his hand (the tube being a gun, of course), stinging him. I can’t recall how the story ends, but I’d love to know what the story was called, and who its author was, as I’m trying to assemble a list of the early SF that fired my enthusiasm for the genre.


Is there any way to disable laptop's keyboard on Windows 10?

I have acer laptop with broken keyboard, so I am using an external USB keyboard. Can I disable PC's keyboard for all time? I have tried to physically damage keyboard.


$G/Z$ cannot be isomorphic to quaternion group

Let $Q_8$ be the quaternion group. Show that $G/Z$ can never be isomorphic to $Q_8$, where $Z$ is the center of $G$. Hint: if $G/Z\cong Q_8$, show that $G$ has two abelian subgroups of index $2$.  I'm trying to prove the hint by looking at the canonical homomorphism $\pi:G\rightarrow G/Z$. Well, $Q_8$ has some abelian subgroups of index $2$, such as $H=\{1,-1,i,-i\}$, but that doesn't seem to map to abelian subgroups of index $2$ of $G$. (We know that $\pi(ab)=\pi(a)\pi(b)=\pi(b)\pi(a)=\pi(ba)$ for $a,b$ in $\pi^{-1}(H)$, but that only yields $aba^{-1}b^{-1}\in Z$, not $aba^{-1}b^{-1}=1$.)


Find a matrix that simultaneously diagonalizes to matrices

struggling with a question from homework and would appreciate some assistance.  Let $A, B \in M_2^{\mathbb{R}}$ be defined as follows: $$A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}, B = \begin{pmatrix} -4 & 1 \\ 1 & 1 \end{pmatrix} $$ Find a regular $P \in M_2^\mathbb{R}$ such that $P^tAP=I$ and $P^tBP$ is diagonal.  I'm familiar with the theorem that states that a simultaneous diagonlization exists if one of the matrices is positive-definite (or negative-definite). I've found an invertible P such that $P^tAP=I$: $$P=\begin{pmatrix}1\over\sqrt{2}&-1\over\sqrt{2}\\0&\sqrt{2}\end{pmatrix}$$ But $P^tBP$ is not diagonal. Would appreciate any assistance / hints. Thanks!


JavaScript variable containing line breaks

I have text containing line breaks from a TextArea stored in a database. A php script tries to retrieve this text and store it in a JavaScript variable. The problem is that the string is not properly understood by JavaScript and it is interpreted that JavaScript variable is not correctly ending because JavaScript assumes a line break.  Any idea how could I save text containing line breaks in a JavaScript variable?  Thanks in advance.


CentOS 6 deleting files from /root/ after a reboot?

Twice recently I've noticed that my vim settings have changed to defaults.  Investigation shows that all files have been deleted from my /root/ directory.  (Yes I currently log in as root, that's a different conversation...)  Can anyone suggest why this would be happening?  The first time I assumed I'd accidentally repeated a recent command from my bash history as I had done an rm -f in a different folder shortly before hand, but on this occasion I've not rm'd anything for days and after a yum update (which included a new kernel) and a reboot the files have gone again...?  Folders don't get deleted from /root/, just files.  Any ideas?  Many thanks.


How can I mitigate edge halo when darkening skies in post-processing?

I process all my photos to black and white. Although I use a polariser where possible, I often find myself wanting to drop the luminance of the sky further which I do using a Black and White adjustment layer (in Photoshop). This usually results in a lighter halo following the line of the horizon, where the blues of the sky meet whatever the colour of the land is.  My current solution to this problem is to run a brush along this margin with a colour set to the same as the sky and the blend-mode set to Darken. This effectively paints in the lighter band with the sky colour while not laying down the colour on top of the darker horizon. Whilst this is effective, it is very time consuming.  Is there a better approach to dealing with these halos?  Here is a video that illustrated the Darken solution that I mention:


What is different between "for" and "to"?

The place is important for/to me.   I changed the variable for/to the project.   I can do to/for you.   In/for/to this project, I created a new method.      Does it mean any difference?  This bothered me many times.  Wish someone can answer.


I would like to generate several cover letters which except for the title and the address of the recipients are identical. I do not want to change the title and address every time, but rather want to have latex go through the list of titles and substitutes them in the right place and generate the PDF file. Is it possible?


Let $S\in\mathcal{M}_{n\times n}$ invertible matrix, and let $x,y\in\mathbb{R}^n$ prove or give a counterexample that : There exists $a\in\mathbb{R}$ such that       $$aS \textrm { is unitary }\iff\frac{\|Sx-Sy\|}{\|Sx\|}=\frac{\|x-y\|}{\|x\|} $$   Meaninng, the equation holds iff $S$ is proportional to some unitary matrix.


Prove that for positive integers a, b, c, and d such that b != d, if gcd(a, b) = gcd(c, d) = 1 then a/b + c/d is not an integer.

I attempted this by assuming that a/b + c/d is an integer and coming to a contradiction, but I got stuck. Any hints?


select a div not loaded with the DOM ( I want to change colors after clicking add button )

i'm having 2 buttons one to create a div and the other is to remove the added div. There's no problem adding a new div but when i try to remove it i can't use div:eq(index) because it wasn't loaded with the DOM here's the code  $(document).ready(function(e) {  $(".inner").eq(1).css("background-color","#0C9"); $(".inner").eq(2).css("background-color","#F00"); $(".inner").eq(3).css("background-color","#990");  $("#add").click(function(){     $(".content").append("
remove this inner
");  });  $(document).on("click","a.rem",function(e){     e.preventDefault();     var num = $("a.rem").index(this);     //alert(num);     $(".inner").eq(num).remove(); }); }); </script>   code on jsfiddle :


The MBR of the Ubuntu ISO has partition type 0, which is an invalid value

The following line shows the the four partition table entries of 16 bytes each. See  for a specification of the format.   $ sudo hd ubuntu-16.10-desktop-amd64.iso -s 446 -n 64 000001be  80 00 01 00 00 5e e0 ff  00 00 00 00 00 80 2f 00  |.....^......../.| 000001ce  00 fe ff ff ef fe ff ff  54 24 2f 00 c0 12 00 00  |........T$/.....| 000001de  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................| * 000001fe   The latter three are all zeros, while the first entry is the interesting one. Byte 0 (counting from 0) has value 0x80 which means that it does in fact describe "an active partition". Byte 4 describes the partition type, fx 0x0B is FAT32. However 0 is an invalid value. According to :     00 : -- Should NOT be used in an actual table entry! It does not   indicate an unknown type, but rather an empty entry; in which case,   all other fields in that 16-byte entry should be zero-filled as well.   So according to what I can read, the MBR data is invalid. What is going on?  I did this with Ubuntu 16.04 (Yakkety), downloaded via , and the file has md5sum 3f50877c05121f7fd8544bef2d722824.


I am trying to see some properties of a CGRect and doing:  NSLog(@"%@", frame);   However, I get an error that says CGRect is not an id type. How would I print the frame to see attributes of it?


how to make a shader that doesn't react to shadows

is simple as that and i don't know a  way to print something to exemplify it, i want to add a shader in some faces of an object that cast shadows, but doesn't catch, and have the same principal BSDF of the resto of the model


MySQL 5.5.16 allows anonymous connections

Apparently, I can connect to MySQL (at least from my localhost) without having to provide any username or password. I can even put anything as username, as long as the password is empty. I have access to the information_schema and test databases. I can create tables. If I run SELECT USER() it returns the proper value randomstring@localhost, where the random string is whatever I used for username when I connected.  The mysql.user table contains root@localhost, root@127.0.0.1, @localhost and pma@localhost. I manually set encrypted passwords to all the records (UPDATE user SET password=...) and only root has any privileges, the other two records have "N" for all privileges. That record with the empty username looks suspicious, but I don't think it has anything to do with this and I think it was there from the beginning.  To make matters worse, if I add a user with a password, I can only connect using empty string as password (just like if I put anything as username). If I try to connect using the username I created and password I supplied when creating it (CREATE USER .. IDENTIFIED BY ..) it doesn't work.  Does anyone know what is wrong and how I can fix this?  Note: I am using MySQL 5.5.16 for Windows, provided by the XAMPP package.


How do I prove there is no solution/solution to the single equation $150a+5b=54c$ provided $a,b,c$ must be different integer numbers ranging from 0-9?   I can verify it by running a computer program, but I am looking for mathematical reasoning.


I'm reading Dirac's book about QM. I reached the point (in my edition on page 37) where he tells it is possible, given the eigenkets of an observable, express any other ket in function of them (as he said before, for the definition of observable, its eigenkets form a complete set). So he writes this:  Let us examine mathematically the condition for a real dynamical variable $\xi$ to be an observable. Its eigenvalues may consist of a (finite or infinite) discrete set of numbers or, alternatively, they may consist of all numbers in a certain range, such as all numbers lying between $a$ and $b$. In the former case, the condition that any state is dependent on eigenstates of $\xi$ is that any ket can be expressed as a sum of eigenkets of $\xi$. In the latter case the condition needs modification, since one may have an integral instead of a sum, i.e. a ket $| P \rangle$ may be expressible as an integral of eigenkets of $\xi$, $$ | P \rangle = \int | \xi' \rangle d\xi' $$  I would expand this infinite sum as follows (considering the general case where there are multiple eigenkets associated with a specific eigenvalue): $$ | P \rangle = \int | \xi' \rangle d\xi' = \xi' |\xi'_1 \rangle + \xi' |\xi'_2 \rangle + \cdots + \xi' |\xi'_n \rangle  + \xi'' |\xi''_1 \rangle + \xi'' |\xi''_2 \rangle + \cdots + \xi'' |\xi''_m \rangle + \cdots +  \xi^{(j)} |\xi^{(j)}_1 \rangle + \xi^{(j)} |\xi^{(j)}_2 \rangle + \cdots + \xi^{(j)} |\xi^{(j)}_i \rangle$$ Using $n, m, j, i$ as arbitrary values. So I understand that if the eigenkets, due to hypothesis, form a base, it is possible to express any ket using a linear combination of them, but in a linear combination there must appear some coefficients, which inside this integral don't appear. And, also, how is it possible to integrate an eigenket with respect of its eigenvalue? They aren't strictly connected, are they? More, he gives then this other expression: $$ | P \rangle = \int | \xi'_c \rangle d\xi' + \sum_r | \xi^r_d \rangle $$ I interpret this based on the problems I had with the previous one?


Missing Vim registry `*` on Windows 10 WSL? Not really :)

For the bare version of Vim that comes with WSL on Windows 10, attempts to "yank to registry *" will fail with the following error message:    One way to reproduce the symptom is to assign the following mapping, and invoke it by pressing Y in normal mode.  nnoremap Y :let @* = expand("%:p")<CR>


I trying to make a button with an image as a background like this:  HTML  <input type="image" value="submit" src="images/map.png" id="location" />    and This is the css content (in a seperate css file)  #location{ position: fixed; right: 10px; bottom: 20px; width: 80px; height: 80px; z-index: 2; background-image: url('../images/map.png'); }   and this is the call of my css file in the HTML file:  <link rel="stylesheet" href="css/style.css" />   The problem is that I got only a kind of an empty square with no picture inside...  What is the problem? Thanks in advance.


How is this a matrix representation of $a+ib$?

Could somebody explain how this matrix represents $a+ib$? Really not sure what I’m missing here.


Email Regular expression issue while using special characters

I have created the following regular expression for validating my email  - (BOOL)isValidEmail {     BOOL stricterFilter = YES;     NSString *stricterFilterString = @"[A-Z0-9a-z\\._%+-]+@([A-Za-z0-9-]+\\.)+[A-Za-z]{2,4}";     NSString *laxString = @".+@([A-Za-z0-9]+\\.)+[A-Za-z]{2}[A-Za-z]*";     NSString *emailRegex = stricterFilter ? stricterFilterString : laxString;     NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];     return [emailTest evaluateWithObject:self]; }   But it fails when i enter following:  b. !@#$%^ bfv@mn.cn   Is there any issue with my regular expression?


Prove that $Tf$ has no characteristic values

Let $V$ be the vector space of all functions from $\mathbb{R}$ into $\mathbb{R}$ which are continuous, i.e, the space of continuous real-valued functions on the real line. Let $T$ be the linear operator on $V$ defined by  $(Tf)(x)$ := $ \int^{x}_{0} f(t) \ dt $.  Prove that, $T$ has no characteristic values.


Removing Extra spaces in Python using a variable in 'for' Loop

In a code:  a = 6 for i in range(a):     print("case #",i)   While printing the output, as shown below:  case # 0 case # 1 case # 2 case # 3 case # 4 case # 5   There is an extra space between '#' and the variable 'i'. How to remove this space? In fact, if we normally write:  a = 'sam' print("hello",a)   then also, the output is:  hello sam   there is an extra space between "hello" and "sam". How to remove this?


80’s Movie where an alien turns two children into floating glowing balls

I've had this movie scene stuck in my head for 20 years now and it's driving me nuts. SCENE #1 Dad hears kids (two small boys) screaming from bedroom. Runs in to look. He sees a humanoid monster/alien standing over the bed wearing an old McDonald type overalls outfit (redneck look). The monster/alien holds its hand over the bed and it shows the boy start shriveling up (Very graphic, like only an 80s horror scene can be). The boys then turn into these floating glowing balls, which come up out of their corpses. The father hits the monster/alien with something (maybe baseball bat) and it hits the floor dead. SCENE #2 Father talking to someone (friend/therapist maybe) and says the boys/kids (now just two floating glowing balls) just follow him around the house. Given the age, and how disturbing I remember the scene being, I'd say the movie/short story was definitely from the mid to late 80s. I don't know if it was from a typical movie or from a Creepshow (short stories) style movie. Maybe even a tales from the Crypt show. I just don't know. The fact that it's from the 80s (golden era of horror) makes it nearly impossible to guess.


YA series with a housekeeper or protector robot and set on a planet with a harsh sun

I read a series of books written in English (possibly a trilogy) in the early 1980s and was hoping to find them again for my children. The details I remember are:   It was set on a planet and spanned many, many years over the course of the books There was a sort of 'housekeeper/protector' robot that featured in all of them but was slightly the worse for wear by the end One of the books had a young dark-skinned boy who made the hike up to the house where the robot was, and someone made reference to the fact that his dark skin protected him from the incredibly fierce sun found in the higher regions of the planet.


I have these random solid squares appearing in my pdf files for no reason. I tried to isolate the problem and relate it to a particular type of command. But, I still see them from time to time regardless of what commands I use. Here is an example of a simple TeX input.  \begin{itemize} \item Outer item 1. \begin{itemize} \item The code is easy to read/understand given the comments/documentation. \end{itemize} \end{itemize}   And below is a snapshot of the pdf that is generated. The funny thing is if I make the text sentence in the inner itemize shorter, it doesn't appear in this case.    I am using Tex Live 2015 on OS X, El Capitan.


Why can’t I turn “fast-paced” into a quality noun by adding the “‑ness” sufﬁx?

I needed to write a word that expressed the quality of being fast-paced. "Fast-pacedness" sounded off and I looked the dictionaries up. Collins is my favourite one. Webster I use when I need to give a word a casual glance. Oxford seems to have the most formal descriptions. None of them contained the word. Which leaves me thinking what's the criterion in the first place, for that not to be a possible word. And of course, I rephrased my sentence and it looked much better then, but I remain with a question that's worth, I assume. [EDIT] The context was located inside a debate where it is assumed that the world changes very fast. There [supposedly] is a generalised fast-paced[ness] affecting and permeating basically everything, which was not there in the 18th century and before, and was [also supposedly] noted by writers beginning in the 19th and ahead. Although there's no sources or quotes about these supposed writers, the book that started the discussion repeats this assertion often, and I wanted to capture this quality of being fast-paced in a single word. There are other aspects not related to velocity, but change, but I was not concerned about that for a choice of words.


I'm studying special relativity and saw the 2 postulates of Einstein. The most remarkable one for me is the universal speed of light. Einstein postulated that the speed of light in vacuum is the same for all inertial observers, regardless of the motion of the source. But what if we are accelerating and we are changing from one inertial frame to another, how will we observe the speed of light? Is it still the same? I suggest it's not? Because I alread saw a small introduction to general relativity where the light will bend in a gravitational field and therefore also when you accelerate. So does the speed of light change because it bends?


The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file

The command: sudo apt update  doesn't work. The output of this command is the next image.


How to cut a large photo into a grid of smaller photos automatically in Photoshop?

Is there a way, maybe a script, that would help me cut an image into say 50 images?  I have a massive panorama I would like to print on normal stock photo paper and I am using Photoshop.    The output of this operation needs to be images, not PDFs, not printer. There is still work to be done with each of these cut-outs later.  How can I slice a large image into many smaller images with an automated, or relatively fast method?


How to calculate this area? (portion of a sphere inside a cylinder )

The area of the portion of the sphere $ x^{2} + y^{2} +z^{2} = 1$ located inside of the cylinder $x = x^{2} + y^{2}$, and above the plane $z = 0$.  I'm stuck, so any tip will be helpful  Thanks in advance!


My friend wrote a status like this  Working on read-only environment makes you couldn't do anything. You can only get notice and warning. We are required to obey and submit to the circumstances   should i comment ," If it is writeable environment ... " or "If it were writeable environment..." ?  Thanks.


Building an online map - how hard can it be?

I am a complete coding/mapping novice and I have no experience whatsoever in this field. However, I have had a really promising business idea which would be based on an online map/website.  My plan was to build a prototype of my idea and gather a bit of revenue to prove that the idea would work. With that evidence and a sound business plan, I could then approach a bank/start-up fund/etc to help me commission a professional developer to build the full online map/website.  However, I've started to do some reading on the subject and it is all incredibily detailed. I know all you guys have vast amounts of knowledge/experience - am I kidding myself that I could build a prototype? Or do you think I'll be able to pick up enough knowledge?


Using braces to label parts of an equation

Given an equation, say Bayes' rule,  $P(X \mid O) \propto P(X)P(O \mid X)$   how do I label the different parts of the equation using curly braces?


I am running this extremely simple code using the ArcGIS python environment:  import arcpy  test = r"C:\....\New_Shapefile.shp"  #test contains several fields, including one called "Number". updaterows = arcpy.SearchCursor(test)  for row in updaterows:     print (row.getValue("Number"))   the first time I run the code, it works and I get a list of all the elements in the column "Number", but if I try to run the for loop again, when I enter the code I do not receive any output. This does not change nor if I type the code again or if I simply recall it from the command history. Also, I tried to replace the field "Number" with some other field name, and it still does not print if already a print command was run before. It seems to work only if I delete "updaterows" first. What does this occur? Is the problem involved with the function or with the arcGIS development environment for python?


Old unanswered inactive questions with low views/votes

;  to find old unanswered inactive questions with low views/votes. Because those kind of questions clutter the site and keep the unanswered question ratio high, it is a good idea to keep the site clean from questions like these. It's very unlikely that someone that asked a question (about a problem) that has been inactive and not popular for more than a year, will still be very active and have the same problem now. So, we worked on . As , we opened  where we can list such questions. As this seems a nice idea, other SE 2.0 communities might benefit by doing the same; feel free to discuss  so that @JeffAtwood might be able automatize this... Until now we've been doing this manually to ensure we don't prune questions of high quality.


Getting error while writing a simple trigger

I am getting an error as below while saving the trigger:     Error : Compile Error: Invalid identifier ''. Apex identifiers must   start with an ASCII letter (a-z or A-Z) followed by any number of   ASCII letters (a-z or A-Z), digits (0 - 9), '$', '_'.   trigger validWorker on Worker__c(before insert, before update){      for(Worker__c worker:Trigger.new){      if(worker.Type__c =='Chef' && worker.Percent__c <> 10)     {       worker.addError('Percentage must be 10%');     }                                                                          }                                                                          }


In the Guardians of the Galaxy Movie, we see Peter Quill (aka Star-Lord) and meet his mother at the start of the movie.  We also find out at the end that:      Yondu was meant to deliver Peter to his father.   But who was that?


Find $\gcd(a^{2^n}+1,a^{2^m}+1)$ where $m,n$ are two distinct positive integers.   Let $\gcd(a^{2^n}+1,a^{2^m}+1)=d$. Then $d\mid a^{2^n}+1$ and $d\mid a^{2^m}+1$. So, $a^{2^n}\equiv -1 \pmod d$ and $a^{2^m}\equiv -1 \pmod d$.  Let $m>n$. Then $m-n>0$. From $a^{2^n}\equiv -1 \pmod d$ we get $(a^{2^n})^{2^{m-n}}\equiv1 \pmod d$. But $(a^{2^n})^{2^{m-n}}=a^{2^n\cdot 2^{m-n}}=a^{2m}\equiv -1 \pmod d$. Then, $1\equiv -1\pmod d$, i.e., either $d=1$ or $d=2$. How do I find the value of $a$ for $d=1$ or $d=2$?


Does magnetic monopole violate $U(1)$ gauge symmetry?

Does a magnetic monopole violate $U(1)$ gauge symmetry? In what sense and why? Insofar as I know, there are at least two types of magnetic monopoles. One is the Dirac monopole while the other is the monopole in Grand Unified Theories (GUT), e.g., 't Hooft-Polyakov monopole.  In the latter case, some non-Abelian gauge theory breaks down to a (compact) $U(1)$ gauge theory wherein monopoles can be observed from a large distance. The monopole field is not from the $U(1)$ degrees of freedom and nothing is singular. On the contrary, Dirac monopole is singular (topological defect?) and we must introduce Dirac string or patches of vector potential $\vec{A}(x)$. Are these no more than artifacts arising when one tries to describe the monopole field within the $U(1)$ gauge theory by assuming $\vec{B}=\nabla\times\vec{A}$? It seems true since two Maxwell's equations that magnetic monopole might affect can be cast in the differential form $\mathrm{d}F=0$ and $F=\mathrm{d}A$ in Minkowski spacetime, from which $U(1)$ gauge invariance manifests for $\mathrm{d}(A+\mathrm{d}\chi)=\mathrm{d}A$.  However, I later noticed two seminal papers on Dirac monopole  & , in which the authors claimed the following   electromagnetism without monopole $\rightarrow$ connection on a trivial $U(1)$ bundle electromagnetism with monopole $\rightarrow$ connection on a nontrivial $U(1)$ bundle And the wave function of an electron around a Dirac monopole should be regarded as a section which is free from discontinuities.   I've no idea about fibre bundle. Anyway I guess $U(1)$ theory does not necessarily expel Dirac monopoles. It has something to do with the topology of some manifold in the theory? Which manifold? Can anyone shed light on this intriguing issue? Thanks in advance.


How to put symbol on top of another one?

I'm trying to replicate this formula:        Could you please help me put y=(1-\gamma)x+\gamma x as in the picture?  My attempt: M=\max _{x, s, y \in C} \frac{2}{\gamma^{2}}\left(f(y)-f(x)-\nabla f(x)^{T}(y-x)\right)  Thank you so much!


Decomposing a permutation into multiplication of transpositions

I have a permutation in cyclic notation, for example $(132)$, and i want to represent it as multiplication of transpositions.  What is the fastest way to do it?


How do I know what symbols/characters are available in a font package?

I usually use xelatex, but I'm exploring pdflatex now. When loading specific fonts in xelatex, I can always know what characters the font has available, since I can inspect the font file in any font viewing program, or I can find out the hard way by just entering the unicode and see if the character is displayed in the output. But how does this work with a font package?  Say, for instance, that I would like to use phonetic symbols in the  font. How do I know whether the font has phonetic symbols (I assume it does), and how do I know what command I need to type in order to make them appear? My only resource is , but this only tells me what characters/commands there are available in LaTeX2e by default (depending on the font encoding), and what symbols I can find in specific packages. Phonetic symbols, for instance, are said to be in the tipa package. Does that mean I am locked to tipa if I want to use phonetic symbols with pdflatex?  Here's a pointless MWE:  \documentclass{article} \usepackage{gentium} \begin{document} Please give me some phonetic symbols here? \end{document}