Can I install Sierra on a Mac Mini 2007 (MB138LL/A)?

I have an old Mac mini and I'm deciding on whether to get rid of it or to try to install the newest OS to use voice recognition. Does anybody have first-hand experience?   If i upgrade the specs, would this the new os work, or is the 1.83 GHz core and integrated graphics card too slow?


How to intall ubuntu and remove windows on lenovo G500s

How to install ubuntu on lenovo G500s laptop with windows 8 OS.I want to completely remove windows 8  and install ubuntu.Please tell me how to install.Please tell me complete steps


Why did Voldemort reveal himself at the end of OotP?

During Order of the Phoenix, Voldemort tries his best to lure Harry to the Ministry so that Harry retrieves the prophecy for him. In the aftermath, while Harry follows Bellatrix towards the exit, he raises a valid question:  ”Why couldn’t he (Voldemort) come and get it (the prophecy) himself?”  This is a valid question, the prophecy is labeled as referring to the Dark Lord and maybe Harry Potter. Only those mentioned can retrieve the prophecy, so Voldemort should have been able to get it, assuming he is the Dark Lord of the prophecy. Bellatrix gives a good answer:  “Get it himself?” shrieked Bellatrix on a cackle of mad laughter. “The Dark Lord, walk into the Ministry of Magic, when they are so sweetly ignoring his return? The Dark Lord, reveal himself to the Aurors, when at the moment they are wasting their time on my dear cousin?”  Despite the cackle of mad laughter, the reasoning is sound, Voldemort didn't want to reveal himself. Yet he does exactly that when he appears in the Ministry and is seen by the Minister himself, and he exposes himself for no gain. Bellatrix may or may not have been able to escape without his help, but he couldn't know that before he came, and his other followers that were captured were freed again a few months later, so it wouldn't have mattered much, he would have freed her, too. So why did he go to the Ministry and reveal himself?


I am a developer interested in moving (at least something like a dual boot) to Linux, specifically Ubuntu. I am interested in programming aspects of the OS, I know the majority of it is written in C and it's a great language to work with the OS, but are there any OS specific languages? Like how Windows has Batch (And Microsoft developing C#), and Mac has Swift, is there any language that is exclusive, or nearly exclusive for Ubuntu? What languages are most easily worked on in Linux environments?  Thanks!


uniform lighting when taking top view of object

What is the best way to take pictures of an object from top view   How should the light be placed ?  *to avoid shadows    and how should we construct the chamber for this ?  *for uniform lighting over the surface of the object(flat object)    is a link which was helpful but not in case for top view Thanks


If 3 points are taken on a circle, what is the probability that the triangle formed by joining these points is an obtuse angled triangle?


what does pink mean when I try to append a material?

I am trying to append a material onto a new file. the first time i tried it the icon showed the dirt look i wanted but the object was hot pink. the second time, the material morphed into a hot pink 'guy'-- what does that mean?


What is a deterministic method for evaluating a sensible buffer pool size?

I'm trying to come up with a sane way to understand if the max server memory (mb) setting is appropriate (either should be lower, or higher, or stay the way it is).  I am aware that max server memory (mb) should always be low enough to leave room for the operating system itself, etc.    The environment I'm looking at has several hundred servers; I need a reliable formula I can use to determine if the present size of the buffer pool is appropriate since RAM is costed per GB allocated to each server.  The entire environment is virtualized, and "physical" RAM allocated to a VM can easily be changed up or down.  I have a particular SQL Server Instance I'm looking at now with a PLE of 1,100,052 seconds, which equates to 12.7 days (the amount of time the server has been up).  The server has a max server memory setting of 2560MB (2.5GB), of which only 1380MB (1.3GB) is actually committed.    I've read several items including one by Jonathan Keheyias () and another by Paul Randal (), and several others.  Jonathan advocates monitoring for a PLE below 300 per 4GB of buffer pool as being too low.  For the SQL Server Instance above, 300 * (2.5 / 4) = 187 results in a really really low target PLE below 300.  This instance has 290GB of SQL Server data (not including log files), and is only used for integration testing.  Assuming the last 12 days is representative of typical usage for this server, I'd say the max server memory (mb) setting could be lowered.  At the other end of the scale, I have another integration-test server with a PLE of 294, that has a max server memory (mb) setting of only 1GB.  This server has only 224MB of SQL Server data not including logs, and is running some BizFlow databases.  This server might benefit from a higher max server memory (mb) setting.  I'm thinking a good starting place for targets that might be assigned too much memory could include looking at:  SELECT      RamMB = physical_memory_in_bytes / 1048576     , BufferPoolCommittedMB = bpool_committed * 8192E0 / 1048576     , BufferPoolCommitTargetMB = bpool_commit_target * 8192E0 / 1048576     , PercentOfDesiredSizeMB = CONVERT(INT,(CONVERT(DECIMAL(18,2),bpool_committed)                              / bpool_commit_target) * 100) FROM sys.dm_os_sys_info;   If BufferPoolCommitTargetMB / BufferPoolCommittedMB is greater than 1, the server is not using the entire buffer pool.  If the machine in question also has a PLE of greater than "x" then it might be a good candidate for a decrease in max server memory (mb).  Since the Buffer Manager:Lazy writes/sec performance counter tracks the number of times SQLOS has written pages out to disk between checkpoints due to memory pressure, this might be another good thing to look at.  DECLARE @WaitTime DATETIME; SET @WaitTime = '00:00:15'; DECLARE @NumSeconds INT; SET @NumSeconds = DATEDIFF(SECOND, 0, @WaitTime); DECLARE @LazyWrites1 BIGINT; DECLARE @LazyWrites2 BIGINT;  SELECT @LazyWrites1 = cntr_value  FROM sys.dm_os_performance_counters dopc WHERE (         dopc.counter_name LIKE 'Lazy writes/sec%' COLLATE SQL_Latin1_General_CP1_CI_AS     )     AND dopc.object_name = 'MSSQL$' + CONVERT(VARCHAR(255),                SERVERPROPERTY('InstanceName')) + ':Buffer Manager';  WAITFOR DELAY @WaitTime;  SELECT @LazyWrites2 = cntr_value  FROM sys.dm_os_performance_counters dopc WHERE (         dopc.counter_name LIKE 'Lazy writes/sec%' COLLATE SQL_Latin1_General_CP1_CI_AS     )     AND dopc.object_name = 'MSSQL$' + CONVERT(VARCHAR(255),                SERVERPROPERTY('InstanceName')) + ':Buffer Manager';  SELECT LazyWritesPerSecond = (@LazyWrites2 - @LazyWrites1) / @NumSeconds;   The above code assumes the server is under load during the 15 seconds it takes to run, otherwise it will report 0; which might be a misleading false-negative.  Should I also look at PAGELATCHIO_* wait stats or some other wait type as an indicator of memory pressure, or lack thereof?   My question is, how can I reliably determine a "good" target value for PLE and max server memory (mb)?


A question about the propagation of uncertainties

If we have $f(x,y)=f(\overline{x}\pm\sigma_x,\overline{y}\pm\sigma_y)$ how is then $$\sigma_f=\sqrt{\left(\frac{\partial{f}}{\partial{x}}\right)^2\sigma_x^2+\left(\frac{\partial{f}}{\partial{y}}\right)^2\sigma_y^2}~~~?$$   I have looked at  Wikipedia page but I don't quite understand this approach since I'm not familiar with approximating functions with Taylor series. I have also found that in  video it is said that that way of calculating the standard deviation for multivariate functions somehow gives us a average standard deviation but I don't understand why/how.


How do you breed a polar bear in Minecraft? I went to the , but polar bears were not included.


What is this large metal bar inside my DMMs? One of them labeled it ST. They appear to be connected to the COM port or fuse. Is this just a big jumper for the 10 A ammeter?


Prove that $\mathbb{Q}^n$is dense subset of $\mathbb{R^n}$ using the fact that $\mathbb{Q}$ is dense subset  of $\mathbb{R}$  I know that $\mathbb{Q}$ is dense subset  of $\mathbb{R}$ That is, between any two real numbers, there exists a rational number  then how to prove that $\mathbb{Q}^n$is dense subset of $\mathbb{R^n}$


Student of many disciplines without the negative connotation of "Dilettante"?

What's a word for a person who studies many subjects? Often, the words we use to describe this type of person implies that he/she knows little about each subject (e.g. jack-of-all-trades, dilettante). I'd like to avoid that negative meaning.  e.g. Steve was a true ________; he was well-versed in everything from theoretical physics to gastronomy.


Image of a line in $\mathbb{P}^2$ under Veronese embedding; a conicc

Consider the Veronese surface $S$ defined by the map:   $$\phi: \mathbb{P}^2\rightarrow \mathbb{P}^5$$   where $\phi(x_0,x_1,x_2)=(x_0^2,x_0x_1,x_0x_2,x_1^2,x_1x_2,x_2^2)$.    The problem asks to show that a line in $\mathbb{P}^2$ is mapped to a conic in $\mathbb{P^5}$  I will use the following notation The definition of the Veronese map will be taken from the question above. I will denote the coordinates in $\mathbb{P}^{5}$  by $[z_{0}:\ldots:z_{5}]$ and the coordinates in $\mathbb{P}^{2}$ by $[x_{0}:x_{1}: x_{2}]$.  Claim The Veronese surface is cut out by three quadrics: $$C_{1}:  z_{0}z_{3} - z_{1}^{2} = 0$$ $$C_{2}: z_{0}z_{5} -z_{2}^{2}= 0 $$ $$C_{3}: z_{3}z_{5} - z_{4}^{2} = 0. $$   Suppose a line in $\mathbb{P}^2$ is defined by $ax_0+bx_1+cx_2=0$. So can the image of the line in $\mathbb{P}^5$ be thought as the intersection of $S$ and something else? I have the following questions:   How do we show that it is a conic?   I posted this question 14 hours ago didn't have many views and didn't get any answer, for the bounty I think I have to wait more days. So I am reposting it hoping that it will reach to other mathematicians and hopefully I will get some answer.


Is there a Stack Exchange site for architecture?

Googling shows me a lot of results for software architecture. But I'm looking for the traditional one :-)


Possible Duplicates:             I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found.  Because they were not "deleted" they are not in the trash bin.  I've tried to do some recovery using a program called stellarPheonix but after about a 24hour scan, it didn't recognize any of the raw files (.dng,.arw) as image files and so I couldn't see if they could be recovered. It also didn't show the directory structure, which would be handy.  I tried a quick scan, but all it showed was files that were still on the HD, not sure what the point of that is.  I've used recover 2000 on Win and it does a good job, does anyone know of anything that works quickly and reliably for this kind of file recovery. (I don't think I should have to do a sector-by=sector for this kind of file loss)


how much money can immigrant family carry to USA?

Hi I am Libyan I have US IR1 visa to the USA . family of six members   adults and 4 kids   how much Maximum money as immigrant family can carry to USA ? please advise


I still have problems to figure out when it's right to use I or me in an answer.  For example, what is the right answer to "Who did this?"  If I did it, should I say I or me? I've heard native speakers using both. Is there a rule?   And what are some examples when to use me, and when I?


the error im getting is this one -   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Spinner.setAdapter(android.widget.SpinnerAdapter)' on a   Im creating a game dialog where the user gets to choose a suit. It seems to be blowing up when I try to set the adapter is there anything wrong here? The app crashes.   private void showChooseSuitDialog(){         final Dialog chooseSuitDialog = new Dialog(myContext);         chooseSuitDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);         chooseSuitDialog.setContentView(R.layout.choose_suit_dialog);         final Spinner suitSpinner = (Spinner)findViewById(R.id.suitSpinner);         ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(myContext, R.array.suits, android.R.layout.simple_spinner_item);          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);         suitSpinner.setAdapter(adapter); //        Button okButton = (Button) chooseSuitDialog.findViewById(R.id.okButton); //        okButton.setOnClickListener(new OnClickListener() { //            @Override //            public void onClick(View v) { //                validSuit = (suitSpinner.getSelectedItemPosition()+1) * 100; //                String suitText = ""; //                if(validSuit == 100){ //                    suitText = "Diamonds"; //                }else if(validSuit == 200){ //                    suitText = "Clubs"; //                }else if(validSuit == 300) { //                    suitText = "Hearts"; //                }else { //                    suitText = "Spades"; //                } //                chooseSuitDialog.dismiss(); //                Toast.makeText(myContext, "You chose " //+suitText,Toast.LENGTH_SHORT).show(); //            } //        });         chooseSuitDialog.show();     }


Wireless interface only reachable when ethernet cable plugged in

I'm facing a problem that's about to drive me crazy. I'm running a Debian Linux distribution and currently trying to establish a connection to my wireless network (WPA2 security, wpa_supplicant already installed). The wireless dongle connects to the network, but it only responds to pings and lets me connect through SSH from another computer when the ethernet cable is plugged in. It is still reachable via wireless connection after unplugging the ethernet connection, but it won't work until a connection to a wired network had been created. I'm not sure if anything's wrong with my configuration here...  Output of 'ifconfig wlan0':  wlan0     IEEE 802.11bgn  ESSID:"*censored*"  Nickname:"<WIFI@REALTEK>"           Mode:Managed  Frequency:2.457 GHz  Access Point: *censored*             Bit Rate:72.2 Mb/s   Sensitivity:0/0             Retry:off   RTS thr:off   Fragment thr:off           Encryption key:****-****-****-****-****-****-****-****   Security mode:open           Power Management:off           Link Quality=89/100  Signal level=58/100  Noise level=0/100           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:0   Missed beacon:0   Contents of /etc/network/interfaces  auto lo iface lo inet loopback  allow-hotplug eth0 iface eth0 inet static     address 192.168.178.130     netmask 255.255.255.0  allow-hotplug wlan0 iface wlan0 inet static     wpa-ssid "*censored*"     wpa-key-mgmt WPA-PSK     wpa-group TKIP CCMP     wpa-psk *censored*     address 192.168.178.131     netmask 255.255.255.0     gateway 192.168.178.1


How to prove this simple statement: $\max\{a,b\}=\frac{1}{2}(a+b+|a-b|)$

I am trying to prove this statement.   for any $a,b \in \mathbb{R}$, $$\max\{a,b\}=\frac{1}{2}\big(a+b+|a-b|\big)$$  and $$\min\{a,b\}=\frac{1}{2}\big(a+b-|a-b|\big)$$  I am eating myself not knowing where and how to start. For any guidance Iwill be thankful in tons


Keyboard shortcuts in an ASP.NET MVC project

How do I handle multiple keys?  Like I have multiple saving options, and I want to handle one button at a time. I am not getting how to handle multiple saving buttons on an entire page. I am using jQuery in an ASP.NET MVC project. How can I do this?  I am using this code:  $(document).bind('keydown', 'ALT+S', function() {     // Alt + S for saving shortcut     if (e.keyId == '#btnSaveCompany') {         // Here I want to handle a function for the key btnSaveCompany         funSaveCreation();     } });   Here I want to handle the save button for a keyboard shortcut for saving. I want to handle multiple buttons through this.


I need some help from you.. my VPS was hacked.. I was trying to decode the files I found.. here the content of one php file, it's an array of encoded objects.  Can you help me?   <?php $array = array('blabla','blablabla','blablabla');$x = implode("", $array);$b64 = "\x62\x61\x73\x65\x36\x34\x5f\x64\x65\x63\x6f\x64\x65";$r13 = "\x73\x74\x72\x5f\x72\x6f\x74\x31\x33";$gzc = "\x67\x7a\x75\x6e\x63\x6f\x6d\x70\x72\x65\x73\x73";eval($gzc($b64($r13($x))));?>


completing the square for Gaussian multivariate estimation

I have been trying to derive the posterior distribution in the case of weighted Bayesian regression in the case of multivariate normal distribution for a few days and have been stuck. I am not sure if this is due to lack of my linear algebra skills or if I have done something really wrong.  In my case, the distributional assumptions are:  $$ y = N (B x, W^{-1} \nabla) $$  The parameters $B$ have a normal prior.   $$ P(B) = N (B_0, \Sigma_{B}) $$  The conditional posterior distribution for $B$ is proportional to $P(y|B) P(B)$. This is proportional to:  $$ \exp \big((B - B_0)^T \Sigma (B - B_0) + (y - Bx)^T \nabla (y - Bx)\big) $$  I have seen the textbooks mention something called completing the square which as far as I can tell equates to matching like terms. Even though I could work out for scalar variance terms, I am having trouble figuring out how to deal with the precision matrices and how this can be decoupled.   [EDIT]:  So, I tried to make a run with Glen_b's suggestion and came this far:  Original expression without the exponential (I will simplify notation slightly):  $$ (B - B_0)^T \Sigma (B - B_0) + ( y - Bx)^T \nabla (y - Bx) $$ Expanding:  $$ B^T\Sigma B - 2 B_0^T \Sigma B + B_0^T \Sigma B_0 + y^T \nabla y - 2 y^T \nabla B x + (Bx)^T \nabla Bx $$  $$ = B^T(\Sigma + x^T \nabla x)B - 2 (B_0^T \Sigma B + y^T \nabla B x) + C $$  So I am not sure how to make further progress with the second term. I guess I have to make it in the form 2(some_term)B but not sure how that can be done.


php regular expression for phone numbers with diffrent lenght and space or hyphen

I need some help with a regular expression that will validate phone numbers like the following 3 examples:  054238852 054 238 852 054-238-852   The first two are validated by using this regular expression /^\d+(\s\d+)*$/ for the third, I can't figure out how to modify the regular expression in order to work for all 3 exampels.  Thanks!


How to enter a directory with the 'cd' command if it has 700 permission and is not owned by me?

I tried to use sudo cd name_of_dir but am getting the error message:   sudo: cd: command not found   Is there any other way to enter a directory owned by another user which has 700 permission?


In what order are locations searched to load referenced DLLs?

I know that the .NET framework looks for referenced DLLs in several locations   Global assembly cache (GAC) Any private paths added to the AppDomain The current directory of the executing assembly   What order are those locations searched? Is the search for a DLL ceased if a match is found or does it continue through all locations (and if so, how are conflicts resolved)?  Also, please confirm or deny those locations and provide any other locations I have failed to mention.


How to use (home) brew install python 3.6.5_1

I am trying to install python 3.6.5_1 using Homebrew by running the following:  $ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb   I am getting the following error:  Error: python contains a recursive dependency on itself: python depends on sphinx-doc sphinx-doc depends on python   How do I deal with it?


Are "strait laced" and "straight laced" synonymous?   "Strait," as in Strait of Magellan, straitjacket or dire straits means narrow or confined while "straight" means exactly what one would think it to mean. All my dress shoes are laced straight across from eyelet to eyelet but not tightly! It would seem that these usages are not at all related.   My etymological dictionary doesn't acknowledge "straight laced" at all while the Allen Edmonds shoe website does--as a technique for tying shoes. Does strait-laced mean straight-laced?  I've been informed that this topic has been addressed in the past, so I went to that thread and it seemed that those who posted didn't seem to grasp the point that the phrases are unrelated to each other.   My thanks to Andrew for giving my post a much more graceful ending!


Why is $\text{Aut}(F)$ of the forgetful functor $F$ on $G$-sets isomorphic to $G$?

Here's something I've been trying to scratch out recently.     Let $G$ be a group and $\text{Set}(G)$ the category of $G$-sets. Let $F\colon\text{Set}(G)\to\text{Set}$ be the forgetful functor sending a $G$-set to its underlying set. Show that $\text{Aut}(F)$ is naturally isomorphic to $G$.     I've been trying to view $F$ as an object in the category of functors from $\text{Set}(G)\to\text{Set}$ where the morphisms are natural transformations. I think if $H$ is a natural transformation in $\text{Aut}(G)$, then for any $G$-set $X$, $H$ associates a morphism $H_X\colon F(X)\to F(X)$ such that for any morphism $f\colon X\to Y$ of $G$-sets, then $H_Y\circ F(f)=F(f)\circ H_X$?  I'm not really sure where I'm going with this. Given such an $H$, what is the natural $g\in G$ with which to associate it, and how would I get to this "natural isomorphism"?


How does the fstab file read the system?

I understand that the file fstab serves to know how, where, and with what options to mount each of the partitions, including the root partition. But, how can it be that the system reads the file fstab, if it is assumed that the root partition is not mounted until the system reads the fstab file and knows how to mount the root partition? When is the root partition mounted?


Show $100+t$ is reducible in $\mathbb{Z}[[t]]$

$\mathbb{Z}[[t]]$ is the ring of formal power series with integer coefficients, and the problem asks to show that $100+t$ is reducible. This means I need to find two power series, $\sum_{i=0}^\infty a_i t^i$ and $\sum_{j=0}^\infty b_j t^j$ with $a_i,b_j\in\mathbb{Z}$, that when multiplied give $100+t$. Since the integers are an integral domain, I know that neither of these power series may be finite, but I'm having a really hard time figuring out how to come up with two series that will telescope properly. Any suggestions?


E: Malformed entry 54 in list file /etc/apt/sources.list (Component)

I'm relatively new to Ubuntu 16.04, and everything has been going fine until my OS threw this error today.   Below is the source code from /etc/apt/sources.list for line 54:  deb http://archive.canonical.com/ partner   I have tried appending ubuntu after the / and before partner, but this does not seem to work.   Any ideas what else to try? I can't run sudo apt-get update until this is fixed.


Can't install runway on windows after a failed installation

The default location of runway is in the %AppData% location. I didn't like this location so I choose C:/Program Files instead. Bad idea, the installation failed, and now when I try to install it somewhere else I get:  It hangs here:  I also tried to install for all users instead, I tried tons of different locations, I tried running setup as an administrator. But no matter what, it get's stuck on it's install... Is there anyway of fixing this?


Recover NTFS partition formatted to Ext4 system and deleted - EaseUs and testdisk failed

I accidentally formatted my windows partition into ext4 system while trying to install ubuntu and then immediately deleted it. then tried to restore files. testdisk showed only new+deleted ubuntu partition.  EaseUs detected deleted NTFS partition but unable to find any deleted files.  I haven't done anything more harmful such as overwriting with new files or formatting again.   i badly need this partition recovered, anyone help me please..  My harddisk is SSD


While selecting a diode, I came across  , which appear to be the same, save the ending part numbers after a "/" (i.e. one is 54, the other 73). I've surmised from  section 5.3 that the "E3" refers to the leads being pure tin; section 5.1 mentions a "slash-sheet" number, but this refers to PCB base materials, and according to section 7.9, should come before the "E3" designation. I haven't found an answer in the . What do the numbers after the slash ("/") mean?


Winter bash hats not shown to other users?

Today I found a link to  on the top bar. Upon clicking the "I love hats" button, I was offered to wear the  hat. The hat shows up as an overlay on my profile picture. But when viewing my profile after logging off, the hat is no longer shown. So I assume one's hat is visible only to the same logged in user.  Methinks the hats are ugly anyway, but what's the use of wearing it if others can't see it?


I want to write a book about the unfair expectations of a caregiver. A caregiver refers to somebody to looks after somebody else.  What is the term for that 'somebody else'.  'Patient' doesn't seem all encompassing.


Is it possible to pass a instance of struct and change properties of the struct

First time using Structs in Arduino since school  I am assuming that the structs would behave like objects and when I call them directly it does I would expect this code to print   1 1 2 1 1 2 2 2 1 3 2 3 1 4 2 4   But I get   1 1 2 1 1 1 2 2 1 1 2 3 1 1 2 4   Sample of the code that I used  // Example program #include <iostream> #include <string>   struct Testtype{     Testtype(int A) : foo(A){}     int foo;     int bar = 0;    }; Testtype Test1 = Testtype(1); Testtype Test2 = Testtype(2); void fun(Testtype Test){    Test.bar++;    Test2.bar++;    std::cout << Test.foo;    std::cout << " " << Test.bar << "\n";    std::cout << Test2.foo;    std::cout << " " << Test2.bar << "\n"; } void loop(){    fun(Test1); } int main() {   int i =0;   while (i < 4){     loop();     i++;   } }


What if the universe is rotating as a whole?

Suppose in the milliseconds after the big bang the cosmic egg had aquired some large angular momentum. As it expanded, keeping the momentum constant (not external forces) the rate of rotation would have slowed down, but it would never reach zero.  What implications would that have to measurments to distant supernova and CMB radiation? Do we have any experimental data that definitely rules out such as scenario? And to what confidence level?  Edit A  suggests that the universe might indeed be spinning as a whole. Anyone care to poke holes at it?  Edit 2 Even more  places limits on possible rotation.


Transforming Differential Equation to Bessel ODE

Here is the question I refer to   I am not the author of the question, it is just we face same problem. I was given a differential equation $y'= x^2 + y^2$. Letting $y(x)=\frac{-f(x)}{f(x)}$ gives us \begin{equation}f''+x^2f=0\end{equation} This is where I got stuck. The answer in the question stated that the ODE can be transformed to ODE of Bessel kind. However, I am not sure on how to do this since the ODE does not actually has form   $$x^2\frac{d^2y}{dx^2} + x\frac{dy}{dx}+(x^2-v^2)y = 0$$ which is a Bessel Equation. Any help appreciated.


Is  limited by distance/time/speed?  In the classical world, the travel of information is limited by the speed of light. So I'm wondering: is there a time delay if we send information with Quantum Teleportation?


I've recorded a video using recordmydesktop, but have unfortunately chosen for capturing the whole screen (1600*896) instead of a small part with geometric 900*690.  How do I crop this video? Preferably in the editor I'm using, Kdenlive, to minimize quality loss. I've tried the Crop, Pan & Zoom and Scale0tilt effects, modifying the pixel ratio, movie size inside project settings options without success. A step-by-step guide would be preferred or at least some hints.


Is it possible to work on the same blender file at the same time on 2 computers?

I want to make car with a friend who is much more experienced than I am and it would help a lot if I could work and he could correct me and help within the same blender file. Thank you in advance.


How to find the sum $\cos(2x)+\cos(4x)+\cos(6x)+\cos(8x)+\ldots+\cos(2016x)$?

Find the sum $$M= \cos(2x)+\cos(4x)+\cos(6x)+\cos(8x)+\ldots+\cos(2016x)$$


Most books show Ito diffusions satisfy Markov property, that is, $E[f(X_{t+h})\mid F_t]=E^{X_t}[f(X_h)]$. But I was wondering whether it's true that  $E[f(X_{t+h})\mid X_t]=E^{X_t}[f(X_h)]$.  In this , it seems that stationarity of transition of the processes implies  $E[f(X_{t+h})\mid X_t] = E^{X_t}[f(X_h)]$. If it's true, my question is solved. But I don't know why $E^{X_t}[f(X_h)]$ is $X_t$ measurable and how to connect it to the transition probability.


Speed of light in vacuum in non-inertial frame

Does the speed of light remains $c$ also in non-inertial frames? Or it changes from frame to frame?


Comment upvotes not carried over when converting answer to comment

I know it's already been covered that , but suppose the following situation occurs:  Useful answer that should have been a comment   - Useful comment with upvotes   Naturally, the answer gets converted to a comment. In the process, I check the box that says "move comments" because they're useful and should be kept. But the upvotes on that comment, which are genuine and deserved, don't get carried over.  So if the answer had upvotes, it doesn't get to keep those. (And really, it shouldn't have had them if our methodology says it should be a comment.) But the comment was a good comment and deserved the upvotes it received. Shouldn't it retain the votes that IT has? Sure, AnswerVotes != CommentVotes, but shouldn't CommentVotes == CommentVotes?  Am I missing something here? Is this an oversight or is it intentional?


Every recipe I can find is for "fluffy" pancakes.  I prefer thinner, slightly crispy, (very) slightly chewy, non-fluffy pancakes.  Basically, the less "cake-like" the better.  Apparently I'm the only one, and these are all non-desirable qualities in a pancake, so it is hard to find recipes.  How can I make non-fluffy pancakes?  I will be using a cast-iron pan.


Temporary reopen note:  Pleas note that this other question here does not address what or compare it to which or that:        Original Question   Which sentence would you use more, which is just simple wrong and why?   This is the speech, that my father wrote. This is the speech, which my father wrote. This is the speech, what my father wrote.  This is the speech, that my father wrote down. This is the speech, which my father wrote down. This is the speech, what my father wrote down.


Experiment measuring vacuum permittivity and permeability in high speed

Speed of light may be obtained by inspecting the wave equation derived from Maxwell's equations making Lorentz transformation and special relativity necessary to mediate.  My questions are:  a) Without assuming that $\mu_0$ and $\epsilon_0$ are constant, do we have any theoretical proof that speed of light is constant?  b) Do we have any experiment in high speed condition that proves the constancy of $\mu_0$ and $\epsilon_0$?  c) Do the values of the constants depend on properties of the vacuum or frame (e.g. velocity)?


How to change background colour in texworks

I am using texworks for the first time, I want to change the background of the editor from dark to white, as the code is not visible in dark background. I am using texworks in Manjaro Linux on GNOME desktop environment. Please help me.


A formula for the roots of a solvable polynomial

Let $F$ be a field and $p(x)\in F[x]$ a separable polynomial, denote $K$ as the splitting field of $p$ and assume that $K/F$ is Galois with a solvable Galois group.  I don't understand if this imply of any formula (in radicals) for the roots of $p$ (however, I do understand how a formula would imply that $p$ is solvable by roots).  Is there some kind of a way to obtain the roots of a solvable polynomial ?


I want to allocate 20GB for / and remaining unallocated to /home. The problem is I can't move the unallocated space to after / using GParted.   My partitions:    I'm using  Ubuntu 18.04.


How can we be sure that there are only four dimensions?

Infants can only perceive in one dimension (closeness and farness). Young children can only perceive three dimensions (they can't plan or handle time). Teenagers and young adults can perceive 3+1 dimensions. However, this is all psychological and dependent on our personal growth, which means that someone could exist who perceives more dimensions than 3+1 and it wouldn't be a logical contradiction.  Is there any way to empirically test whether there are more dimensions? If there were 3+2 dimensions, then I could have a clock that is two-dimensional. Or I could have one clock that would tick in one dimension and another clock tick in another dimension.  How can we design an experiment to test this?


drawing a network graph with node labels

I want to draw a graph in which nodes have labels. I want to put label for each node under it. I want to change the following code to draw a dot for node 5, and below the node, I want to have 5. \begin{tikzpicture}[%auto, node distance=1.5cm, every loop/.style={},                 %thick,main node/.style={scale=0.7,                  %circle,draw,font=\sffamily\small\bfseries}]                 dot/.style={fill,circle, minimum size=5pt,inner sep=0,node contents={}},    circ/.style={draw, circle, minimum size=10pt,inner sep=0pt, node  contents={}}] \node[main node] (5) {5};  \end{tikzpicture}  I wanted to ask how I can do that. Thanks in advance for your help.


Why can't I see the background image in front or side views?

I've been not using Blender for quite a while and just came back. I have pressed Number 1 and 3 on the keypad for front and side view but they are not working properly. Properly by which I mean, it's not showing the background images.      Did I screw up with the settings somehow?


Confusion in how to find number of onto functions if two sets are given

In the book it is given if A and B are two finite sets containing $m$ and $n$ elements, respectively, then the number of onto functions from A to B will be if   $n \leq m$   $$\sum_{r=1}^n (-1)^{(n-r)} {n \choose r}(r)^m $$  well I can't understand it and I am aware with combinations.


multiplication equivalent of the summation symbol

I was curious (even though this is a very amateur question)... what would the multiplication equivalent of sigma (the summation symbol) be? $$\sum$$ I want to do a series of multiplication of terms.... instead of addition...


How do native speakers say 'the light bulb has stopped working'

Lets say, I want to tell my roommate that one of the lightbulbs has stopped working, I usually say      The light bulb is gone or broken down.   I did some search related to these expression and it seems that they are not very common and will sound odd to the natives.


Is it possible to take the class method as comparator?

I have a private comparator in Level class:    bool positionCmp(Entity* a, Entity* b);  and when I try to use this in another Level class method: void Level::drawEntities(std::vector<Entity*> entities) {     sort(entities.begin(), entities.end(), positionCmp);     for (int i = 0; i < entities.size(); ++i) entities[i]->draw(); }  Visual Studio 2019 compiler says: 'Level::positionCmp': non-standard syntax; use '&' to create a pointer to member. If I add the '&', I getting '&': illegal operation on bound member function expression void Level::drawEntities(std::vector<Entity*> entities)     {         sort(entities.begin(), entities.end(), &positionCmp);         for (int i = 0; i < entities.size(); ++i) entities[i]->draw();     }   What should I do?


Problem about the argument of macro defined by \def

I construct a macro named \mymacro, and this macro would be used in two ways: first: \mymacro, which would typeset 1 second:\mymacro*, which would typeset 2 Here is my code: \documentclass{article} \usepackage{ifthen} \begin{document} \def\mymacro#1{\ifthenelse{\equal{#1}{*}}{2}{1}} with star: \mymacro* some text\\ % That is ok. without star: \mymacro some text % "s" of "some" lost \end{document}   From the attached typeset you can see that the first charactor s of the word some is lost in the version of without star. Why? I know \mymacro{} is a solution, but I'd like to know if there is a better way to just use \mymacro only.


I was on Ubuntu 12.10 and ran the system updates and after the re-install, the system became unstable and kept prompting me with the message "System Issue" and this as the error per Ubuntu "/usr/share/apport/apport-gpu-error-intel.py". After I tried re-starting, the issue is still appearing and the system ultimately freezes (requiring a hard reset).  I tried a clean install of 12.10 and the system works fine until the newest updates are applied...it then returns to the same messages.  I then tried a clean install of 12.04 LTS and just like 12.10 it works until the latest updates are applied.  On 12.04, I tried to use the previous kernel - going from 3.5.0-26 to 3.5.0-23 and the issue is still there.  Currently, I'm sitting on 12.04 LTS clean install without doing the updates and the system is working.  Does anyone have an idea how to fix this? Thanks.


My system not showing the upgrade button in the software updater window.h\How can I upgrade to newer version?


Python round function does not work properly

I have a round function in my code to round a number 5% of the time it does not work properly like in my second example: Mynumber = round(3.65108567,3)  #Working well print(Mynumber) 3.651  #Not working print(Mynumber) 3.65100000000000000001  How can I fix the issue? I work with python 3.7


In Java, why the array with 100000 elements takes a longer time than the array with 2000000 elements?

I try to time my java program using System.currentTimeMillis();, but I find a really wired phenomenon that the array with 100000 elements takes a longer time than the array with 2000000 elements. I got the following results. I use the Intellij IDEA.   timing : 2ms timing : 2ms timing : 0ms timing : 1ms timing : 2ms 100000 - 1.400000 timing : 3ms timing : 0ms timing : 0ms timing : 0ms timing : 0ms 200000 - 0.600000 timing : 0ms timing : 0ms timing : 1ms timing : 0ms timing : 0ms 500000 - 0.200000 timing : 1ms timing : 0ms timing : 0ms timing : 1ms timing : 0ms 1000000 - 0.400000 timing : 1ms timing : 1ms timing : 0ms timing : 1ms timing : 1ms 2000000 - 0.800000  Here is my code:  public static void main(String[] args) {     Random generator = new Random();     final int ITERATIONS = 5;     int[] N = new int[] {100000, 200000, 500000, 1000000, 2000000};      for (int n : N) {         int[] array = new int[n];         for (int i = 0; i < array.length; i++) {             array[i] = generator.nextInt();         }         int q = generator.nextInt();          float timing = 0;         for (int it = 0; it < ITERATIONS; it++) {             long start = System.currentTimeMillis();             linearSearch(array, n, q);             long end = System.currentTimeMillis();             timing += end - start;         }         timing /= (long)(ITERATIONS);         System.out.format("%d - %f\n", array.length, timing);     } }  public static int linearSearch(int[] a, int n, int q) {      long start = System.currentTimeMillis();     int index = 0;     int position = -1;      while (index < n && a[index] != q) {         index += 1;     }      if (index == n) {      } else {         position = index;     }      long end = System.currentTimeMillis();     System.out.println("timing : " + (end - start) + "ms");     return position;  }


On the Stack Overflow team page, the sidebar menu collides with the footer when scrolled all the way down

When I go to the  and scroll all the way down, I see this collision:    The sidebar menu should probably not scroll once it hits the footer.  I'm using Chrome, if it matters.


Can the listings package automatically indent source code?

The listings package automatically highlights keywords in source code and makes it look nice. Is it possible to automatically indent the program? For example, in listings, if the following code is typed,  #include<stdio.h> void main() { printf("\n Hello World"); }   the output should be  #include<stdio.h>  void main() {     printf("\n Hello World"); }   Can listings to do that, and if so, how should I configure it?


Why did Steve choose this character to be the next Captain America?

At the finale of Avengers: Endgame   Steve Rogers is shown passing on the gauntlet (shield) to Falcon.  Why would this be? I haven't noticed that Steve and Falcon have a particularly close relationship, and the natural choice seems like it would have been Bucky, who's Steve's childhood friend and much more powerful than the Falcon. Was this a movie invention or does it happen the same way in the source material?


I'm using the standard WordPress search form to search a custom post type. Here is my code:  <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="hidden" name="post_type" value="attorney" /> <input type="text" value="" name="s" /> <input type="submit" value="Search" /> </form>   I would like to limit this to ONLY search the post title. Is there a way to do that? Thank you.


How can I create a samba share from the command line?

As part of the installation step of some software on a Ubuntu VM I'd like to create a samba share. How would I go about doing that from the command line?


Connectedness of the Hausdorff distance.

Does anyone know a proof of connectedness of the Hausdorff distance?  I mean a proof of the following:  Theorem  If $(X, \rho )$ is a connected metric space, then $(F(X), d_h )$ is also connected.  Remark:  $F(X) = \{ A \subseteq X | A \text{ is nonempty, closed and bounded } \} $, and $d_h$ stands for the Hausdorff distance.


How can I recover my data after choosing “Erase disk and install Ubuntu”?

I installed Ubuntu 12.04 on my laptop and chose the option "Erase disk and install Ubuntu" from liveUSB without any backup. When I realized that this would format my whole HDD, I immediately unplugged the usb and turn off my laptop. However, it seems that my whole HDD had been formatted: I have 4 partitions before but there's only 1 partition formatted in ext4 now with the size equal the HDD's size.  Is there anyway I can get my data back? I believe that my data is still there on the disk. I've searched for a while and tried using Testdisk and parted but no luck: Testdisk cannot find any partition even after trying "Deeper Search"


Drush 8.1 Drupal 8 throws PDOException: SQLSTATE[HY000] [2002] on MAMP

After installing Drupal 8 (via installation wizard), trying to run any drush command, getting below error:  drush en views_ui PDOException: SQLSTATE[HY000] [2002] No such file or directory in core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 79 Drush command terminated abnormally due to an unrecoverable error.   Drupal version: 8.2.x  Drush version:  8.1-dev


Extrusion axis incorrect in Blender 2.90

I'm not sure if this is a bug or the side effect of some new feature, but I've been having an issue with extrusions along a specific axis in blender 2.90. I am wondering if anyone else has experienced this and can either a) explain it, or b) verify it is a reportable bug. In the images below, I have attempted to extrude a section by using the extrude hotkey E + axis letter. In the first photo, I extruded along the Y axis (E+Y), and in the second, I extruded along the Z axis (E+Z). As you can see, both "axis letters" produced movement in the same direction. I know it may be hard to tell from the screenshots, but the vertical extrusion line is green (Y) in one photo, and blue (Z) in the other, yet the extruded face moves along the same (Z) axis regardless. Selecting a face with a normal that points towards the desired direction and extruding by simply pressing E works as intended. Y-Axis extrusion (supposedly)  Z-Axis extrusion  Would someone be able to either confirm or refute that this is currently a universal phenomenon with Blender 2.90? Steps to reproduce:  Start with default cube (or added cube - makes no difference)  Select one of the "side faces"  Attempt to extrude the face along the Y axis by using E+Y  Notice that the extrusion follows the Z axis instead of the Y (If I am correct that this is a universal problem with 2.90)   If this is not a bug, but rather an intended feature, could someone please explain the logic of why this is happening? Any feedback would be very helpful.


Is there any way to include an animated GIF directly?

Is there any way to include an animated GIF directly in either PDFLaTeX or XeLaTeX? I realize the animate package can include animations in a PDF, but it doesn't support animated GIFs and you have to split them up manually into EPS or PNG files as far as I can tell.


Why dropping all foreign keys from a script is not working?

I have sysadmin rights on a SQL Server 2008 R2 box. I found a script that can drop all foreign keys and re-add them for us when we need to after a testing import. So I execute the below code with no syntax errors as it displays the msg that says "Alter Table [ParentTable] Drop Constraint FK_Name"... for a total of 23 keys, but yet when I refresh the Server or the DB, and Tables, I still see them when I expand the Keys node for each table? so why its not dropping them? Also, do I need to convert it to a permanent table or put the script in a stored procedure in case if I want to run it again for testing purposes? Please advice.  I used the following script from "Swastik Mishra" posted by "Pinal Dave"        SET NOCOUNT ON DECLARE @table TABLE( RowId INT PRIMARY KEY IDENTITY(1, 1), ForeignKeyConstraintName NVARCHAR(200), ForeignKeyConstraintTableSchema NVARCHAR(200), ForeignKeyConstraintTableName NVARCHAR(200), ForeignKeyConstraintColumnName NVARCHAR(200), PrimaryKeyConstraintName NVARCHAR(200), PrimaryKeyConstraintTableSchema NVARCHAR(200), PrimaryKeyConstraintTableName NVARCHAR(200), PrimaryKeyConstraintColumnName NVARCHAR(200) ) INSERT INTO @table(ForeignKeyConstraintName, ForeignKeyConstraintTableSchema,     ForeignKeyConstraintTableName, ForeignKeyConstraintColumnName) SELECT U.CONSTRAINT_NAME, U.TABLE_SCHEMA, U.TABLE_NAME, U.COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE U INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS C ON U.CONSTRAINT_NAME = C.CONSTRAINT_NAME WHERE C.CONSTRAINT_TYPE = 'FOREIGN KEY' UPDATE @table SET PrimaryKeyConstraintName = UNIQUE_CONSTRAINT_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS R ON T.ForeignKeyConstraintName = R.CONSTRAINT_NAME UPDATE @table SET PrimaryKeyConstraintTableSchema = TABLE_SCHEMA, PrimaryKeyConstraintTableName = TABLE_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS C ON T.PrimaryKeyConstraintName = C.CONSTRAINT_NAME UPDATE @table SET PrimaryKeyConstraintColumnName = COLUMN_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE U ON T.PrimaryKeyConstraintName = U.CONSTRAINT_NAME --SELECT * FROM @table --DROP CONSTRAINT: SELECT ' ALTER TABLE [' + ForeignKeyConstraintTableSchema + '].[' +      ForeignKeyConstraintTableName + '] DROP CONSTRAINT ' + ForeignKeyConstraintName + '  GO’ FROM @table –ADD CONSTRAINT: SELECT ‘ ALTER TABLE [' + ForeignKeyConstraintTableSchema + '].[' +   ForeignKeyConstraintTableName + '] ADD CONSTRAINT ‘ + ForeignKeyConstraintName + ‘ FOREIGN KEY(‘ +   ForeignKeyConstraintColumnName + ‘) REFERENCES [' + PrimaryKeyConstraintTableSchema + ']. [' + PrimaryKeyConstraintTableName + '](‘ + PrimaryKeyConstraintColumnName + ‘)  GO’ FROM @table GO


Thanks for coming out with IOS app. I would like to see bookmark feature wherein the favourite questions are bookmarked for easy future reference.


Word for "willing to try new and unfamiliar things"

Example:  A: Hey, do you like to do bungee jumping? B: Um, OK. Haven't done it before, but let's try it.  I'm not looking for adventurous or something similar. That word should also fit in less action-packed activities:  A: I have a new board game. Do you like to play? B: I don't know this game and, actually, I don't like these varieties of games but I'll play. Maybe it's fun.  First I thought about open-minded but I think this means more willing to listen to people, think about their ideas, arguments, ... and accept them (not necessarily agree). What word describes person who is willing to try activities he doesn't know or hasn't experienced before?


$f$ is irreducible $\iff$ $G$ act transitively on the roots

Let $F$ be a field and $f\in F[X]$ a separable polynomial. Let $K_f$ be the splitting field of $f$ and $G_f=\text{Gal}(K_f/F)$ its Galois group. Show that $f$ is irreducible $\iff$ $G_f$ acts transitively on the roots on $f$. My work $\implies :$ Let $f\in F[x]$ irreducible, $\alpha \in K_f$ a root and $\alpha _1,...,\alpha _n$ the other roots of $f$ (so $K_f=F(\alpha ,\alpha _1,...,\alpha _n)$). What I have to show (I think) is that for all $i$ there is a $\sigma \in G_f$ s.t. $\sigma \alpha =\alpha _i.$ Q1) Is it right ? Q2) Is $f$ the minimal polynomial of $\alpha $ ? (To me it is, but my teacher said that it can be not the case, but I don't understand why). Since $\alpha $ and $\alpha _1$ have the same minimal polynomial, there is an isomorphism $\sigma :\alpha \longmapsto \alpha _1$. We can observe that $\sigma : F(\alpha )\longrightarrow K_f$. Now $F(\alpha ,\alpha _1)/F(\alpha )$ is algebraic, then we can extend $\sigma $ to a morphism $F(\alpha ,\alpha _1)\longrightarrow K_f$. Now, we can continue like that and extend $\sigma $ as $\psi: K_f\longrightarrow K_f$ s.t. $\psi(\alpha )=\alpha _1$. Q3) The fact that $\psi(\alpha )=\alpha _1$ comes from the fact that $\psi|_{F(\alpha )}=\sigma $, right ? The bijectivity is obvious since it's a field homomorphism and that $\sigma (K_f)=K_f$. Q4) How to conclude that $G_f$ act transitively on the roots ? I don't have particular problem for the converse.


How to remove "accents" from strings in C#?

I want to write a F# or C# function that removes Spanish accents from a string like so:   in: "a stríng withóut áccents" ->   out: "a string without accents"   I know how to achieve this in Python 3:   trans_table =  str.maketrans( "áéíóúñÁÉÍÓÚÑàèìòùäëïöü", "aeiounAEIOUNaeiouaeiuo" ) # trans_table now contains a dictionary: { "á" : "a", "é" : "e", ... } "A stríng withóut áccents".translate( trans_table ) # result is: A string without accents    Mimicking this solution would be rather straight forward if the characters to be translated where regular ascii characters (in the 0-127 range).  However, because of the way .NET encodes strings it doesn't seem straight forward to do it for actual unicode characters out of this range...  I would like a solution that does not imply doing a regex-replace for each one of the many accented characters but that hopefully loops over the string only once...  Any ideas?


"will" vs "shall" in the movie Pride and Prejudice

This extract from the film script of Pride and Prejudice (1995) and the meaning of some sentences are a bit vague for me.  Why does Kitty use will in the first sentence and shall in the second? Is the extra implication of shall "to make her do"? Why does Lydia say "... you would tell her?" Why is would used here?   KITTY: Lydia has torn up my bonnet and made it up new and says she will wear it to church.  Tell her she shall not! LYDIA: I shall wear it, I beg you would tell her so, for it's all my own work.


Why isn't my code working as intended? I think there is a problem with a null pointer exception. (Java)

My code is relatively simple. I have to create a program that takes the input of a string, and tracks the frequency of each string. As well as the user should be able to type in a line, click enter and be able to enter the next line, etc. until the user clicks enter twice in a row. Here is my code so far:   package javaapplication8;  import java.util.Scanner;  public class JavaApplication8 {  static Scanner sc = new Scanner (System.in);  public static void main(String[] args) {     System.out.print("Enter a sentence: ");     String input = sc.nextLine() ;     while (input!=null) {         if (input.isEmpty()){             System.out.println("Read Enter Key.");             break;         } else if (sc.hasNextLine()){             input = sc.nextLine();         } else {             input = null;         }     }     String sentence = input.replaceAll("\\W", "");     sentence = sentence.toUpperCase();     int [] frequencies = new int [26];     int value = 65;     double valuecount = 0;      for (int i = 0; i < 26 ; i++) {         for (int i2 = 0; i2 < sentence.length(); i2++){             if (sentence.charAt(i2) == value){                 valuecount += 1 ;             }         }         double percent = (valuecount / sentence.length() ) * 100;         char val = (char) value;         System.out.format (val + " occured %.2f percent of the time. \n", + percent);         value += 1;         valuecount =0 ;     } } }   Netbeans isn't giving me any syntax errors meaning there isn't any exception stack trace. I'm guessing the issue is between the replaceAll line and the null statements in my while loop (that allows the user to click the enter key twice before the program runs.  I'm very new to Java, so sorry for any 'rookie mistakes'  Thanks!  Edit: My apologies, I thought the exception stack trace was the red text you get when you run your program with syntax errors (missing a semicolon, etc.)  I mean that my program runs, but it gives me NaN instead of the percentage amount, but when I remove the whole while loop, the program works perfectly without the next line feature.


How do I erase Ubuntu 14.04 LTS from my laptop?

Ubuntu 14.04 LTS is the only OS on my laptop. I have spent alot of time researching on how to format the drive along with Ubuntu OS. Kindly help me do this.


Proof that the limit of $\frac{1}{x}$ as $x$ approaches $0$ does not exist

Hello I was hoping that someone might be able to verify that the following proof that $\lim_{x\to 0} {1\over x}$ does not exist is correct.   First assume that $\lim_{x\to 0} {1\over x} = L$. This means that for every $\epsilon > 0$ there is a $\delta > 0$ such that for all $x$ if $0 < \lvert x\rvert < \delta$ then $\lvert{1\over x} - L \rvert <\epsilon.$  Now let $\epsilon=1$ and choose $x < \min(1,\delta)$.  Therefore there is a $\delta>0$ such that if $0 < \lvert x\rvert < \delta$ then $\lvert{1\over x} - L \rvert <\epsilon$.  It follows that $\lvert{1\over x}\rvert < 1+ \lvert L\rvert$.  However clearly $\lvert{1\over x}\rvert>1$ and therefore a contradiction has been reached and there is no number $L$ such that $\lim_{x\to 0} {1\over x} = L$.


Does it ever make sense to write the Cosmological Constant as: $\Lambda_{\mu\nu}$?

In Einstein's Field Equations, does it ever make sense to write the Cosmological Constant as: $\Lambda_{\mu\nu}$? It was written this way in a BBC Horizon Programme on Sunday,     But, $\Lambda$ is a constant, so how can it have subscripts? I think they meant to put in a lowercase $g$ (to represent the Metric Tensor) (i.e. $\Lambda g_{\mu\nu}$), or is there some sense in the way they showed it? This is not a duplicate, I'm asking about notation not about whether it is a scalar or not.


Discrete probability problem: what is the probability that you will win the game?

Suppose there is a fair six faced dice, and you roll it once at each round. The rule is as follows: 1). If you roll 1 or 2 at an odd-number round, you win the game and the game ends immediately. 2). If you roll 1 or 2 at an even-number round, you lose the game and it ends immediately. 3). If you roll 3 at any round, then it is a draw and the game ends immediately. If two consecutive $3$'s appear then the game ends immediately in a draw. 4). Otherwise the game goes on.   Now, what is the probability that you will win the game?  I attempted to compute the probability of winning at the 1,3,5,...-th round separately and sum them up. However, due to rule 3) it is ever more complicated to compute this for large round numbers.  Another attempt was to calculate the probability of stopping at each round and to get a closed form expression for this sequence, but this is also hard, because it depends backwards on the previous rounds in an endless manner.  Simply put, if we only consider 1) and 2), or only consider 3), the problem isn't hard, but a combination of the three really messes things up.  Can anyone help? Thanks in advance.  EDIT: I'm very sorry for the mistake when I transcribed rule 3), I have corrected it.


How to block/reject all incoming packets from Asia?

I have my own VPS and I want to block/reject all incoming packets from Asia. Is it possible to do it? My server is on Ubuntu.


Big Sur 11.2 keeps forgetting Location Permission for Chrome

Seemingly every week Chrome will lose it's location permission and require me to re-check its box in the Privacy settings. Did I do something to make the exception temporary? Does it reset when Chrome updates? Can I say I permanently trust it?


Uncaught TypeError: 'set' on proxy: trap returned falsish for property Name

Am not doing anything fancy, just trying to update a field on Contact in JS of LWC but getting this exception.  Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'Name' throws at mydomain/auraFW/javascript/mhontaYdOya4Y_lBu7v9yg/aura_prod.js:2:27687  HTML Code:   <template>      <template if:true={wiredContact}>          {wiredContact.Name}          <lightning-input value={wiredContact.Name} onchange={updateName}></lightning-input>     </template>  </template>   JS:   import { LightningElement ,wire,track,api } from 'lwc'; import myContact from "@salesforce/apex/ContactController.fetchContact";  export default class Myrefreshapextest extends LightningElement {    @track wiredContact;   @wire (myContact)         fetchedContact({error, data}){             if(data){                 console.log(JSON.stringify(data));                 this.wiredContact = data;             }else if (error){                 console.log(error);             }     }      updateName (event){         console.log(JSON.stringify(event.detail.value));         console.log(JSON.stringify(this.wiredContact));         this.wiredContact.Name = event.detail.value;     }  }   Apex:  public class ContactController {      @AuraEnabled(cacheable=true)     public static Contact fetchContact(){         return [SELECT Id,Name FROM COntact LIMIT  1];     } }   On top of my head, am not doing anything wrong, anyone has idea what's wrong with my code?  When I print console.log(JSON.stringify(this.wiredContact)); I get old values so am pretty sure it exists.  I tried with @track and @api, but same response. Can anyone shed some light?


How do you make Seahorse (Gnome Keyring) store passwords for ssh keys in?

I'm trying to get Seahorse to remember the password for an existing RSA key I've copied across from another computer.  When I use the key rather than Gnome Keyring prompting me for the password and storing it on the keyring I have to enter the password in terminal and the password isn't remembered?  How do I use Seahorse to save my SSH key password?


Why is the likelihood a product of pdf terms $f(\theta; x_1, x_2, ...)$

Before anyone says this has been answered elsewhere I don't think it has.   The likelihood is given by:  $$ L(θ;x_1,\cdots, x_n) = \prod^n_i f(x_i\mid\theta)$$  where $f$ is the probability density function for a continuous function or probability mass function if discrete.   For a discrete probability distribution, the individual $f$ terms are probabilities so I understand the need to form a product.   For a continuous probability distribution such as the normal distribution, the probability is the area, not the height. Why can we multiply the heights for a pdf when computing the likelihood since the height itself isn't a probability?


Bonus integration problem we got at class: Integrate $\frac {x \sin x}{1+\cos^2x}$ between $0$ and $\pi$     So the lecturer gave this problem. I tried this really hard but couldn't succeed. It doesn't give me any bonus points at class, he just gave it as a nice challenge and it got me quite frustrated.   Any help will be great!   Thank you.


Is every sufficiently large positive integer of the form $ab + ac + bc + 1$?

Is every sufficiently large positive integer $A$ of the form $ab + ac + bc + 1$   where $a,b,c$ are some positive integers larger than some given positive integer $d$ ?  How large is sufficiently large , in other words how do we know our number $A$ is sufficiently large ( as a function of $d$ ) ?    Update :  I read the following about positive integers that are not of the form $ ab + ac + bc $:    And I quote about that sequence above : " Note that for n in this sequence, n+1 is either a prime, twice a prime, the square of a prime, 8 or 16 "  This is why I considered the weird +1 in $ab + ac + bc + 1$  So composites larger than 16 not a prime , twice a prime or the square of a prime are of the form $ab + ac + bc + 1$.  And I wonder why !  I guess that relates strongly to the Original posted problem. Maybe I should have mentioned that before , sorry.  Will Jagy's answer gave the same OEIS link which I already knew. This also explains some of the comments.  Im no expert in genus theory or Galois theory but I assume this has a simple answer.


are there two non-zero functons $f, g$ in $L^1(\mathbb{R})$ such that $f\ast g=0$ a.e

are there two non-zero functions $f, g$ in $L^1(\mathbb{R})$ such that $f\ast g=0$ a.e?


Is it possible to import cell data AND cell format from one Google sheet to another?

I'm trying to import data "and" formatting from one sheet to another. I'm using =importrange("docID", "sheetName!A1:A30") to get the data, but it doesn't get the format.  Suggestions?


How do I get and modify the source code of packages installed through apt-get?

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?   I have a couple applications I use regularly that aren't being actively developed any longer and I would like to add features. Where would I go to get the rights to update these applications?  In this case specifically, I am referring to the hellanzb package


I have installed installed QGIS 2.10 from source on CentOS 6.6 however the issue I'm facing is that I am missing the GRASS plugin form the GUI.  I have checked the plugin manager, its not listed there. It does seem like it installed grass related objects /mnt/opt/Centos6.4/qgis-2.10.1/share/qgis/python/plugins  It is also referenced when compiling using cmake so it looks like it compiles the GRASS module but the app can't see it somehow when it starts.  Anyone know where would the GRASS plugin be installed to and if I can just manually copy it in somehow?  I have encountered this before but just used yum instead but now my users want the latest version along with GRASS functionality.  gdal_nograss-1.10.0  qt-4.8.5  spatialindex-1.8.0  spatialite-2.4.0-0.6_qgis  proj-4.8.0  geos-3.4.2-gcc-4.4.7  qwt-6.0.1  python-2.6.9-gcc447  grass-6.4.3-gcc447  cmake-2.8.12.2


What to do when your answer is invalidated by a significant change to the question?

I just answered a question on Stack Overflow .  If you look at the history of the question my answer stands OK. But now the OP has changed the question due to some unknown reasons. Due to which now my answer has no link to the question.  So in this case should I delete the answer or wait for OP to make a correction to his/her question?  EDIT:- A user named  has now reverted the question to the original one. But I still wanted to know what should one do if this happens in future.  I know as a disciplinary action one should delete the answer in that case, but what if the answer was OK for the original posted question?


I'm trying to perform a simple buffer on GeoJSON file using Python script. I am able to do it on a shapefile using Python script and on GeoJSON using QGIS fix distance buffer tool but I can't figure out how to do it on GeoJSON using Python script. I read many posts on it but none of them include working solely on GeoJSON. I also know that it is possible to convert GeoJSON to .shp but I need to work only with GeoJSON files.  My code that works for .shp file:  from osgeo import ogr  ds = ogr.Open(r'C:\vector files\tryyy.shp', 1) in_lyr = ds.GetLayer() out_lyr = ds.CreateLayer('new_buff44',in_lyr.GetSpatialRef(),ogr.wkbPolygon) out_lyr.CreateFields(in_lyr.schema) out_defn = out_lyr.GetLayerDefn() out_feat = ogr.Feature(out_defn) bufferDist = -0.00015075  for in_feat in in_lyr:      geom = in_feat.geometry()     out_feat.SetGeometry(geom)     for in_feat in in_lyr:          geom = in_feat.geometry().Buffer(bufferDist)         out_feat.SetGeometry(geom)         for i in range(in_feat.GetFieldCount()):             value = in_feat.GetField(i)             out_feat.SetField(i, value)         out_lyr.CreateFeature(out_feat)  del ds print "finish"   When I change the file from shp to geojson in the org.Open line I get:      NoneType' object has no attribute 'CreateFields'   I thought that if I read vector file as OGR datasource object then it doesn't matter which format is the original vector file.   Can someone help me understand what I should change so that the code will work on GeoJSON files?


Is it possible to lay a block adjacent to another without looking at the face of the existing block?

I want to build a bridge over a valley to allow fast travelling between 2 areas. The only way I can see to do it is this:   Build steps up to the level I need. Move right to the end of the last block placed Turn around so I can see a bit of the face of the last block Place the block so it extends the length of the bridge Repeat from step 2.   This is slow because you you have to carefully navigate yourself to the precarious edge of a block each time.  Is there an easy way to place a block adjacent to an existing block without having to look back from beyond the edge of the existing block?  If my description doesn't make sense I may need to resort to ascii art.


Distinguishing between running a process in client terminal or on the server when using SSH

I was trying to play a video on my laptop using SSH command from my android phone(JuiceSSH). but the video started playing in bytes in my phone's terminal. the player was VLC player. how can I make it run the movie on the laptop not on my phone terminal.


Calculate integral $\int_\gamma y\,dx + x^2\,dy$ with Green's Theorem

The statement is: Use Green's Theorem to compute the value of the line integral $\int_{\gamma}y\,dx + x^2\,dy$, where $\gamma$ is the circle given by $g(t) = (\cos t, \sin t), 0 \leq t \leq 2\pi$  By Green's theorem,   $$\int_\gamma y\,dx + x^2\,dy = \iint\limits_{\text{D}} 2x-1 \,dA$$  I made a change to polar coordinates, $x= r \cos \theta; y=r \sin \theta $ with $r∈[0,1]$ and $\theta ∈ [0,2 \pi]$   \begin{align} \int_0^{2\pi} \int_0^1 (2r \cos \theta-1) \, dr \, d\theta = & \int_0^{2\pi} \Big[r^2 \cos \theta-r\Big]_0^1 \, d\theta\\ = & \int_0^{2\pi} \Big[\cos \theta-1\Big]_0^1 \, d\theta\\ = & \Big[\sin \theta- \theta\Big]_0^1=-2 \pi\\ \end{align} But the textbook says the answer is $- \pi$


Has anyone described what the universe must be like for agent-caused free will to be possible?

Let's define free will as the ability for a human being to make a choice that does not completely depend on the history of the universe. The universe may be assumed to be indeterministic. Any simple choice will do: am I going to order a Coke or a Sprite?  Has anyone described what the universe must be like in order for this kind of free will to be able to exist? A universe where an agent making the choice exerts causal influence on the universe? In what kind of universe would this be possible, while not running afoul of dualism?   [1]


Let's put Captain America's morality sturuggle as an example:     ''After having dealt severe internal battles conflicting with his sense of morality, Steve Rogers has shed his Captain America persona altogether''(a new man in infinity war-the avengers)   To     "After dealing with his severe internal battles conflicting with his sense of morality, Steve Rogers has shed his Captain America persona altogether''(a new man in infinity war-the avengers)   Are the bold letters similar to each other?


1.Around midnight, as we left the previous year behind and moved into the new year, my mom would be busy cooking for the guests. I didn't like crowds so I stayed in the living room watching the telly.  2.Around midnight, as we left the previous year behind and moved into the new year, my mom was busy cooking for the guests. I didn't like crowds so I stayed in the living room watching the telly.  3.Around midnight, as we left the previous year behind and moved into the new year, my mom cooked for the guests. I didn't like crowds so I stayed in the living room watching the telly.  Let's say the speaker was asked how they spent the new year's and they answered with one of the responses mentioned above.   How do the responses differ in meaning from one another?


I might not get any PhD offers this year. I would like to apply again , what can I do to maximize chances

I am a mathematics undergraduate. I would like to get into a top 10 PhD school and might not do so this year. I would like to apply again and want to do what whatever is necessary to maximize my chances.   I have always heard that a masters in math is terminal and it might be too late to apply for one this year anyway(please correct me if I am wrong here).  What are my options?  Edit: I am currently in India, finishing my bachelors from one of the top schools here. I applied to places like UCB, Columbia, Chicago, Michigan-Ann Arbour and Wisconsin - in the area of algebraic number theory. I now realize that it was a little out of reach as of right now.   I have slightly low grades overall and good but not great math GPA(8.5 and 9.3/10 - 10/10 in graduate courses) and Subject scores(88%). I also do not really have research but from what I understand, undergraduate research is rare.


An example of a Banach space isomorphic but not isometric to a dual Banach space

I am wondering the following question: Let $X$ be a separable Banach space which is linearly isomorphic to a dual Banach space $Y^*$. Is there a Banach space $Z$ such that $X$ is lineraly isometric to the dual of $Z$: $X=Z^*$.  I think that the answer is no, but I do not have a counterexample. Since $L_1$ is not isometric to any dual Banach space, maybe one can find a dual Banach space which is isomorphic to $L_1$...  To finish, do that change anythink if I suppose $X$ to be almost linearly isometric to $Y^*$ ? By almost linearly isometric I mean that for every $\varepsilon >0$ there exist $T$: $X \to Y$ a linear isomorphism satisfying $\|T\|  \|T^{-1}\| \leq 1+\varepsilon$.


What is the equivalent way for BASE64Encoder(Java) in javascript?

Should I use npm package like crypto-js ? String hash = "Something" ; hash = (new sun.misc.BASE64Encoder()).encode(sha.digest(hash.getBytes()));  Edit: Suggestions led to different results. I have found the solution as below on server side with nodejs: const crypto = require('crypto'); const hashStr = "Something different"; let sha = crypto.createHash('sha1'); sha.update(hashStr); let shaBase64 = sha.digest('base64');  console.log(shaBase64);


Is quantization of energy a purely mathematical result or is there a fundamental reason behind it?

I'm new to QM and have some confusions about QM. It seems to be that the quantization of energy is just some result from solving the equation, like the infinite square well problem, the quantum harmonic oscillator. I wonder if there are some fundamental reasons why we get such weird results


Get the values of Dynamically created elements using Jquery

I am dynamically creating input elements using jquery, but when I try to access the dynamically created element values, I'm getting either empty or undefined or . I tried many ways to get the values, but It is failing.  Could someone help me getting this done.  Here is the code     $(document).ready(function() {   var count = 0;   var jsondata = [];   var selectedField;   $('.add').click(function() {     count = count + 1;     jQuery('
', {       id: 'form-wrapper' + count,       class: 'form-wrapper' + count,       title: 'now this div has a title!'     }).appendTo('.wrapper0');     $('.form-wrapper' + count).append("FieldName <input type='text' placeholder='label' id='label" + count + "'></input> <select class='select" + count + "'><option>Select</option><option value='textbox'>Textbox</option><option value='textarea'>TextArea</option><option value='checkbox'>Checkbox</option><option value='radio'>Radio</option><option value='date'>Date</option> </select><input type='text' id='commavalues" + count + "' disabled placeholder='Enter comma(,) seperated values'></input><input type='checkbox' id='required" + count + "'>Required</input><button class='delete'>Delete</button>

");      $('.delete').click(function(e) {       ($(this).parent().remove());     });      $('.select' + count).change(function() {       selectedField = $(this).children('option:selected').val();       if (selectedField == 'checkbox' || selectedField == 'radio') {         $('#commavalues' + count).prop('disabled', false);         flag = 1;       } else {         flag = 0;         $('#commavalues' + count).prop('disabled', true);       }     });     item = {};      var label = $('#label' + count).val();     var required = $('#required' + count).is(":checked");     var label_type = selectedField;     var options = $('#commavalues' + count).val();      console.log(label);     console.log(required);     console.log(label_type);     console.log(options);      item["label"] = label;     item["label_type"] = label_type;     item["options"] = options;     item["required"] = required;     jsondata.push(item);   });    $('.save').click(function() {     console.log(jsondata);   }); }); body {   background-color: #ECEFF1;   margin: 50px 0;   padding: 0;   text-align: center; }  button {   position: relative;   margin-left: 0px; }

     FieldName     <input type="text" placeholder="label" class="label0"></input>     <select class="select0">       <option>Select</option>       <option value="textbox">Textbox</option>       <option value="textarea">TextArea</option>       <option value="checkbox">Checkbox</option>       <option value="radio">Radio</option>       <option value="date">Date</option>     </select>     <input type="text" class="commavalues0" disabled placeholder="Enter comma(,) seperated values"></input>     <input type="checkbox" class="required0">Required</input>

 <button class="add">Add</button> <button class="save">Save</button>     I am trying to display in JSON format when I click save button, and If i click the delete button the data associated to that input fields are to be deleted also.


Is quitting apps bad for my iPhone battery?

Last night at dinner one of my Android using friends was bragging about how their Samsung phone had an option to tap one button to quickly shut down all your apps. My other friend (an iPhone user like me) responded with "Why would you wanna do that? It'll just flatten your battery quicker!".  Is this true and why?


Placing action buttons in the "left" or "right" side of the form?

What are the logical reasons to place following action buttons at the left side or the right side of the form?


In Magic: The Gathering, how does Ugin, the Ineffable's static ability interact with colorless spells that have X in their cost?

If I have  in play and I want to cast , how does Ugin, the Ineffable's static ability interact with paying the cost?  Can I announce I want to cast Ugin's Conjurant for 5 and then only pay 3 mana because Ugin, the Ineffable's static abilit reads "Colorless spells you cast cost 2 less to cast"?


Entry in table of content and page number overlap

I have the following problem. I am using the report document class to write my master's thesis. My table of content naturally extends to more than more line, and I have page numbers in the top right corner, except for the first page of each section.  The first page of the table of content does not have a page number (this is correct). The second page and on do have the correct page numbers, except that: on the second page, the page number overlaps on the top entry of the table of content. For example, the first entry in the table of content is:  2.6.4 This is the first line on this page........... 29   and the page number (iv) appears directly on top of the 29. How can I prevent this from happening? This doesn't happen on the next page, i.e. the v appears above the top entry and the same is true for page vi.  Here's the relevant part of my preamble:  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \rhead{\thepage}  ...  \begin{document}  ...  \tableofcontents  ...  \end{document}


Create an instance based on condition via returned generic T type

I have different classes with same property names.  I get data and assign to those properties based on conditions, for example  if age<10   var ClassA = new ClassA(); ClassA.Percent =25;   ClassA.StandarValue=1000;  if age > 25   var ClassB = new ClassB(); ClassB.Percent =15;   ClassB.StandarValue=3000;   I can write a method  public T ReturnMyCustomClass(int age) { if age< 10       return (T)(object)ClassA;  if age> 25      return (T)(object)ClassB; throw new Exception(); }   I can assign that as  var result=ReturnMyCustomClass(26);  Question:  if (result is ClassA)      how can i assign  var myClass=new result(); --this is wrong, but how can I create an instance from returned object above?


Evaluating $6^2\div 2(3)+4$: is the answer $10$ or $58$?

Evaluating $$6^2\div 2(3)+4$$  I understand how people are getting $10$ but I am getting $58$ because I am not distributing the $2$ to the $3$ inside the parentheses. Is that correct?


How to use "jsforce" in an external HTML client for streaming api?

I am trying to use streaming API feature of salesforce, and be able to subscribe to the topic in an external client which is HTML based.  My code is below:  <html>     <head>         <script src="https://cdnjs.cloudflare.com/ajax/libs/jsforce/1.9.1/jsforce-core.js"></script>         <script src="https://cdnjs.cloudflare.com/ajax/libs/jsforce/1.9.1/jsforce-api-streaming.min.js"></script>          <script>         function myFunction() {         var jsforce = require('jsforce');         var username = 'XXXXX';         var password = 'YYYYY';         var securityToken = 'ZZZZZ';         const conn = new jsforce.Connection({loginUrl : 'https://test.salesforce.com'});         conn.login(username, password + securityToken, function(err, res) {           if (err) {                return console.error(err);           }         console.log('Authenticated');          conn.streaming.topic("PushTopicUpdates").subscribe(function(message) {             console.log('Event Type : ' + message.event.type);             console.log('Event Created : ' + message.event.createdDate);             console.log('Object Id : ' + message.sobject.Id);             console.log('Event : ' + JSON.stringify(message));           });         });         }         </script>     </head>     <body onload="myFunction()">     </body> </html>   I am getting an error as below:     Uncaught ReferenceError: require is not defined       at myFunction (StreamingAPI.html:8)       at onload (StreamingAPI.html:31)


Combining  with allowframebreaks in beamer

My question is closely related to , but slightly different, so that @samcarter's answer to that question doesn't help.   I want to combine the allowframebreaks option with the <+-> option but using the standard way to combine options doesn't achieve this.   Here's an MWE.  The first frame uses allowframebreaks in the standard way, producing two pages.   The second frame tries to combine the two options, implements the \pause command but ignores the allowframebreaks option.     Reversing the order of the two options generates an error.  \documentclass{beamer} \begin{document} \begin{frame}[allowframebreaks]{Title} This is a test  \pause This is a test  \newpage Page 2 \pause  This is a test  \pause  This is a test \end{frame} \begin{frame}[<+->,allowframebreaks]{Title} This is a test  \pause This is a test  \newpage Page 2 \pause  This is a test  \pause  This is a test \end{frame} \end{document}


How to mark equation number but not change the reference text?

I would like to mark a few equations as special by adding an asterisk (or some other symbol) to the equation number. I accomplish this as follows:  \documentclass{article}  \usepackage{amsmath}  \newcommand{\markThisEquationSpecial}{\refstepcounter{equation}\tag{{\theequation}*}}  \begin{document} Here is an important equation: \begin{equation}   \label{eq:important}   S_{\text{EH}} = \int \frac{m_{p}^{2}}{2}R \sqrt{-g} d^{4}x\,. \markThisEquationSpecial \end{equation} Here is an unimportant equation: \begin{equation}   \label{eq:unimportant}   S_{\text{M}} = \int \frac{-1}{4}F_{ab}F^{ab} \sqrt{-g} d^{4}x\,. \end{equation}  The unimportant equation is referenced as Eq.~\eqref{eq:unimportant}. The important equation is referenced as Eq.~\eqref{eq:important}. Notice that the asterisk has come along for the ride in the reference. I would like it to appear as Eq.~(1). \end{document}   This appears as follows:   How can I prevent the asterisk for making it into the text for the \ref?  Alternatively, is there some way to put a (*) to the left of the equation, mirroring the location of the equation number (1), as a way of marking an equation as important?


Maya is sister of dhara who is doctor. Maya is sister of dhara, who is doctor.   In both statements who is used for which person???


Can anyone explain me why this is possible ?. I understand that a is the same as &a[0] and for example i also understand that  *(a+1) is second a element and  i am able to use *((a+i)+j) techniques, but first time in my life i saw code like this and i am confused now. I know that output is fourth element of the a array. But can anyone explain me why this is possible ?  #include<iostream> int a[] = {1,2,3,4,5}; std::cout << (3)[a] << std::endl;


Windows path variable crossed limit. How to create another variable to act like path?

Path vraible has crossed its limit I have already seen . And done also even this is crossing its limit already tried making it smaller %AppData%\Local\Yarn\bin;%AppData%\Roaming\Composer\vendor\bin;%AppData%\Roaming\npm;%CUDA_PATH%\bin;%GSUDO%;%MS_VS17C%\;%MS_VS17C%\Common7\IDE;%MS_VS17C%\Common7\Tools;%MS_VS17C%\VC\Auxiliary\Build;%MS_VS17CVTM14%\bin;%MS_VS17CVTM14%\bin\Hostx64\x64;%MS_VS17CVTM14%\bin\Hostx64\x86;%MS_VS17CVTM14%\include;%yarn%\Yarn\bin;%yarn%\global\node_modules\.bin;%SCOOP%\shims;%USERPROFILE%\.dotnet\tools;%USERPROFILE%\go\bin;%ancon%;%ancon%\Lib;%ancon%\Library\bin;%ancon%\Scripts;%r_stud%;%r_stud%\bin;%r_stud%\bin\x64;%r_stud%\library;%dPROG%\CodeBlocks\MinGW\bin;%dPROG%\CodeBlocks\MinGW\bin\;%dPROG%\Git\bin;%dPROG%\Git\mingw64\bin;%dPROG%\Java\jdk-11\bin;%dPROG%\Java\jdk-14\bin;%dPROG%\heroku\bin;%dPROG%\rethinkdb\rethinkdb-2.4.1\;%dPROG86%\Nmap;%dPROG86%\mpg123;%dUser%\AppData\Local\Programs\Microsoft VS Code\bin;%matlab%\bin\;%matlab%\bin\win32;%shubham%\go\bin;%studio%\bin;%studio%\jre;%studio%\jre\bin;%studio%\lib;%xmp%\mysql\bin;%xmp%\perl\bin;%php%\;%php%\php.exe;C:\PROGRA~1\Java\jre1.8.0_251\bin;%NI%\LabVIEW 2020;C:\Python27\Lib;C:\Python27\Scripts;D:\Ruby26\bin;D:\androidrtc\depot_tools;D:\flutter\bin;D:\hydra\;D:\ta-lib\c\bin;D:\ta-lib\c\include;D:\ta-lib\c\lib;c:\Python27\;d:\cygwin64\bin;  How to make it better or smaller or make some new variables so that can also be called from cmd easily?


Will a PCIe generation 2 card work in a PCIe generation 3 slot?

I have a PC with a PCIe generation 3 slot. The card I am looking at is PCIe generation 2. If I buy the older card will it work in the newer slot?


The question is:   Find two distinct odd primes p and q such that  $({p-1})^{q-1}+({q-1})^{p-1} \equiv 101 \pmod {pq}$ Well... I only have the idea to write down     ${p-1}^{q-1} \equiv -1^{q-1} \equiv 1 \pmod {p}$   Actually, I solve this question by brute force and get p=11 q=3; however, I wanna know some wise solutions...  Mine is .... a bad one  Please help me to solve this question :(


Javascript Regexp dynamic generation from variables?

How to construct two regex patterns into one?  For example I have one long pattern and one smaller, I need to put smaller one in front of long one.  var pattern1 = ':\(|:=\(|:-\('; var pattern2 = ':\(|:=\(|:-\(|:\(|:=\(|:-\(' str.match('/'+pattern1+'|'+pattern2+'/gi');   This doesn't work. When I'm concatenating strings, all slashes are gone.


I met a student that is trying to prove for fun that there are infinitely many primes of the form $n^2+1$. I tried to tell him it's a hard problem, but I lack references. Is there a paper/book covering the problem? Is this problem really hard or I remember incorrectly?


I noticed that Adobe-related, .NET-related and Android-related products tag names have a nice and neat logo attached. I like it because it makes visual filtering easier (even though the "interesting tags" and "ignored tags" are great features, they can't cover it all - most people are, like myself, lazy, and don't want to put every single tag they could in those lists).   To my knowledge, C or C++, for instance, do not have a logo (though one could wonder why), so it's normal that the tag would not have one attached to it. But Java does have a logo, doesn't it? The little coffee cup? My question: why isn't that logo in the "Java" and other Java-related tags?  (All right, this question is not really a big big problem, but it's been bugging me and I just want to know why things are the way they are :)).


What is a good data plan for Internet surfing in northern Italy?

I've checked the webpages of some their providers, but franly, just like in the case of those in my own language, I literally cannot find my way around them. So if you wouldn't mind sharing a word of two or advice.  I'm looking for a good solution for mobile internet surfing in northern Italy, that can be connected to a laptop (you know, that usb stick with a SIM card inside kind of thing). 15 Gb or so at some decent speed. Can you perhaps give a recommendation or two of what to get?    Edit: Just to define what I'm looking for exactly. A data plan of 15 Gb with an internet key (usb stick into which a SMS card goes) that you plug into a laptop. Preferably non-contractual, so I can cancel when I leave. I am not interested in surfing on my mobile phone since due to size I still prefer the smaller Nokia-like models for calls (smaller to carry) - no internet on them.


Is it safe to format msftres, msftdata and hidden partitions?

I have an acer V7 which came with a 1TB HDD, 24GB SSD and Windows 8 installed. I have installed Ubuntu onto the SSD and formatted the main partitions of the HDD. However, I also notice 3 other partitions on the HDD marked msftres, msftdata. Is it safe to format these also so that I have one contiguous drive partition or will I be wiping something important like boot or bios data?


The installer information on the recovery server is damaged

I keep getting the error shown in the title when trying to re-install macOS, one thing that I did was acidentally delete my macintosh HD partition and this started happening. I tried to fix the date via online youtube videos but that did not seem to work. What can I do to fix this issue?


I have a question about drivers, should I use the ones, provided by ubuntu(14.04 - 331.38), or should I install the latest ones from nvidia(331.79)? which would work better? Nvidia page says this:      Note that many Linux distributions provide their own packages of the   NVIDIA Linux Graphics Driver in the distribution's native package   management format. This may interact better with the rest of your   distribution's framework, and you may want to use this rather than   NVIDIA's official package.   So, I'm kind of scared to try that since I had bad experience with installing the latest AMD Radeon drivers before. I know, it's not the same but still...  And if I should choose 331.38 which one of that?  331.38 - updates what difference is between this and 331.38  Thanks!


Sentinel-1 missing data gaps between two images GEE

I am trying to export a Sentinel-1 mosaic with the code below. I keep getting this missing data gap between the two images. Even when I export the images separately, and mosaic them myself in ArcGIS, I still have this problem.      var start_date = ee.Date('2019-08-01'); var finish_date = ee.Date('2019-08-15'); var orbit = 'ASENDING';  // Get the VV collection. var collectionS1 = ee.ImageCollection('COPERNICUS/S1_GRD')     .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))     .filter(ee.Filter.eq('instrumentMode', 'IW'))     //.filter(ee.Filter.eq('orbitProperties_pass', orbit))     .filterDate(start_date, finish_date)     .filterBounds(polygons);   // Get the VV collection. var collectionVH = collectionS1.select('VH');  var VH = ee.Image(collectionVH.median());  Map.centerObject(polygons, 7); Map.addLayer(VH, {min: -25, max: 5}, 'VH', true);  //Import Tool var batch = require('users/fitoprincipe/geetools:batch');  // Change Folder Name  var folder = 'GEE_EXPORT';   // Download Collections batch.Download.ImageCollection.toDrive(collectionVH, folder,           {name: 'VH_'+orbit+'_'+'{id}',                scale: 10,               region: polygons,                      fileFormat: 'GeoTIFF',                   maxPixels: 1e13,               type: 'float'});


How to construct a basis using a given dependent set of vectors using Gaussian elimination?

Suppose we have a given set of vectors $\{a_1,a_2,...,a_k\}$ in $\mathbb R^n$ where $k>n$.How do I find a basis out of the given vectors i.e. to find a subcollection of this set that forms a basis.I want to do this using Gaussian elimination.But row reduction may change all the vectors and give me a basis that is not a subcollection of the given one.How to avoid that?I have heard about considering something like 'pivot' position but I do not understand how they do it.Can someone tell me about making a basis using pivot positions and what pivot is?Please illustrate through examples.


On Raspberry Pi (2 B) I have ubuntu. I don't know how to connect to wifi network with CLI. Do you know?


Counting number of points in polygon using R?

I have two classes sharing the same CRS (Latitute and Longitude):   bolognaQuartieriMap: a SpatialPolygonDataFrame containing data of a city boroughts. crashPoints: a SpatialPointsDataFrame containing data of accidents.   They are well plotted using:  plot(bolognaQuartieriMap) title("Crash per quartiere") plot(crashPoints, col="red",add=TRUE)   What I need is to get the number of points (crashPoints) in each polygon that constitute bolognaQuartieriMap. I was suggested to use over() but I did not succeed.


Blue screen 'inaccessible boot device' on Windows 10

I have a Windows 10 computer. This morning it restarted into a blue screen with error code Inaccessible boot device.  There are no recent hardware changes. Also I think it was not after a Windows update installation. At least I chose Restart to restart, and not Update and restart as usual before an update installation.  According to other posts related to this problem I tried the following:   Restart into save mode: no success, the same error displays Restart into recovery console: The system partition usually mounted as C: is available as D:   chkdsk d: /x completes without finding any error. I conclude, that the problem is not related to a hard disk failure. bootrec /fixboot completes with success.  bootrec /scanos completes with a message Number of Windows installations identified : 0. Why doesn't it find the Windows installation, even though it is available under D:\ ? sfc /verifyonly has found integrity violations, but sfc /scannow finished with the message The Windows resource protection was not able to complete the operation.  System restore to a previous restore point: After a (long) while, the task completed, but without solving the problem. Booting from the Windows Installation disk:   I tried the option Repair Windows: It was not possible to roll back to a previous restore point Update Windows keeping programs and files seems to work only when booting first into the current installation to do an upgrade. It cannot be done while booting from the installation disk (as it was the case in previous versions of Windows).     Is there anything left I could do before reinstalling Windows 10 ?  Edit: Now there is the second computer with the same problem within 2 days. This smells like an epidemy (caused by a bad Windows update ?)  This time I tried:   Restart into save mode: no success, the same error displays System restore to a previous restore point : No success, it offers to try from another restore point.   I stopped here. I just don't want do make a mistake that forces me to reinstall it.


Terminate program that has taken over the screen

I've been using Windows forever, but one thing that has annoyed me is how hard it is to terminate misbehaving full-screen applications. In Linux, I can just switch over to terminal (Ctrl+Alt+F1) and use the terminal to forcefully close a misbehaving program. In Windows, this seems to be only possible using task manager. If a frozen window is set to stay-on-top and full-screen mode, Alt+Tab and Alt+F4 don't work and I can't even use the Task Manager. If I had important work in the background, say, and I'd forgotten to save it, I can't just restart the computer!  What do you do in this circumstance?


I am trying to do a list with itemize but in beamer, the bullets are not shown and I cannot find the reason why.  \RequirePackage{flashmovie} \documentclass[12pt]{beamer} \setbeamertemplate{footline} {   \leavevmode%   \hbox{%       \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}     }   \vskip0pt% } \usepackage[backend=biber]{biblatex} \addbibresource{Presentacion.bib} \usepackage{tikz} \usepackage{ragged2e}  \usepackage{animate} \usepackage{gensymb} \usepackage{tabularx} \usepackage{amsmath,amsfonts, amssymb} \usepackage{cancel} \usepackage{mathtools} \usepackage[version=4]{mhchem} \usepackage{rotating} \usepackage[all]{xy} \usepackage{pdflscape} \usepackage{multirow} \usepackage{gensymb} \usepackage{chemfig} \usepackage{multicol} \usepackage[spanish]{babel} \usepackage{expl3} \usepackage{l3regex} \usepackage{enumitem} \usepackage{stackengine} \usecolortheme{seahorse} \usetheme{Goettingen} \title{Titulo} \subtitle{III-2018} \institute[Universities of Somewhere and Elsewhere] % (optional, but mostly needed) { \begin{center}   \normalsize{Universidad} \end{center} } \date{Bogot\'a} \AtBeginSubsection[] {   \begin{frame}<beamer>{Tabla de contenidos}     \tableofcontents[currentsection,currentsubsection]   \end{frame} } % Let's get started     \begin{document}     \begin{frame}       \titlepage     \end{frame}     \begin{frame}       \begin{itemize}       \item prueba       \end{itemize}     \end{frame} \end{document}   The file that I am working on is shown below:


I have a method in java which returns the updated lines of a flat file as a "String". I  am receiving the String as a bunch of lines, what i want to do is to separate the String line by line. How can i do that in java?????


Linear mixed effect model interpretation with log transformed dependent variable

I have a dataset in which the response variable is non normal, but on log transforming, it follows the normal distribution. I constructed a mixed effect model using lme4::lmer() as below (multiple measurements within each region), where A is a continuous variable and there are 7 regions  model<-lmer(log(response)~A + (1|Region), data, REML=FALSE)   My output is   Linear mixed model fit by maximum likelihood . t-tests use Satterthwaite's method ['lmerModLmerTest'] Formula: logresponse ~ A + (1 | Region) Data: df[, -c(6)]   AIC      BIC   logLik deviance df.resid  151.8    159.8    -71.9    143.8       51   Scaled residuals:   Min       1Q   Median       3Q      Max  -2.24856 -0.63631  0.02206  0.59999  1.94895   Random effects: Groups   Name        Variance Std.Dev. Region   (Intercept) 0.8611   0.9280   Residual             0.5814   0.7625   Number of obs: 55, groups:  Region, 7  Fixed effects:               Estimate Std. Error        df t value Pr(>|t|)   (Intercept) -1.112047   0.747373 19.651457  -1.488   0.1526    A           0.008585   0.004250 29.157266   2.020   0.0526 .  Correlation of Fixed Effects: (Intr) A -0.871   1) Would I infer that for A effects the response variable and the response increases by exp(0.008585) +/- exp(0.004250) (std error)? Would that be the right interpretation?  2) exp(Intercept) is not equal to the mean(log response). They are close but not equal. Why are they not equal and should I be concerned?   I know that this is a hard question to answer without knowing the dataset. So please suggest how I can improve the question.


convert 2 list into a list of dictionary with the entire list

For example that i have 2 list and i need to append them into a dictionary with list. i try the for loops but seems does not work. what should i do ? keys = ('a','b','c') values = ('1','2','3')  result = {}  for key in keys:     for value in values:         # result[key] = value // does not print out the result i want but instead adding the value to each key         result[key].append(value)   print(result)  # result = {'a':['1','2','3'], #           'b':['1','2','3'], #           'c':['1','2','3']}


Interpreting Residual plots: Linear Regression

I created one simple regression model for predicting the amount of loan that needs to be given to a particular individual. I plotted the residual plots to understand the underlying assumptions in the regression. However, I'm not too sure how should I interpret the graph. Could someone please help.  The graph was created using the below code.   sns.residplot(y_train_preds,y_train_preds- y_train)   Attaching screenshot.