Classical free fall time to point mass "planet"

Consider a test mass starting at rest from radius R to a point planet of mass M. What is the time taken for the test mass to reach the planet?  I saw somewhere on the internet (don't ask where please :|) that one can simply use Kepler's law in this situation - i.e. time taken is simply 1/4 of the period of an elliptical orbit with half-major axis length R:  $$ T = \frac{\pi}{2}\sqrt{\frac{R^3}{GM}}$$  BUT if I manually integrate the kinetic energy equation,  $$ \frac{1}{2}\dot{r}^2 = GM\left(\frac{1}{r} - \frac{1}{R}\right) $$ $$ \rightarrow T\sqrt{2GM} = \int^{R}_{0}{\frac{\mathrm{d}r}{\sqrt{\frac{1}{r} - \frac{1}{R}}}}$$ $$ = \space...\space = R\int^{R}_0{\sqrt{\frac{1}{r} - \frac{1}{R}}\space\mathrm{d}r} = \space... \space = R\int^{\infty}_0{\frac{2u^2\space\mathrm{d}u}{\left(u^2+\frac{1}{R}\right)^2}} $$ $$ = \space...\space = R\int^{\infty}_0{\frac{\mathrm{d}u}{u^2+\frac{1}{R}}} = \frac{\pi}{2}R^{\frac{3}{2}}\space \therefore \space T = \pi\sqrt{\frac{R^3}{8GM}}$$  Why is there a $\sqrt{2}$ factor discrepancy? Is it because Kepler's law is invalid when the minor axis length is zero? Thanks for any insight.


Windows Update doesn't work and consumes 100% of CPU (Win7 SP1)

I've observed a strange behaviour with Windows Update (Win7 SP1). The process svchost is consuming an entire core of my Virtual Machine (VirtualBox) doing nothing (i.e., there is no network traffic and the folder C:\Windows\SoftwareDistribution remains at the same size with the same number of files). Moreover, the process sometimes consumes a large quantity of memory (> 1 GB). I've also noted that sometimes the folder SoftwareDistribution increases in size during a period of time, and after that nothing happens and svchost continues to consume an entire core.  I know that the problem is with Windows Update, since I've tracked (using Resource Monitor) what service is related with the behaviour related above.  The image below shows what I'm facing:    The next image shows a detailed information about svchost:    If I try to perform the update, nothing happens. The Windows Update doesn't progress. See the image below:    I left this machine trying to do the update for 4 hours. During this time the consumption of CPU remained high (as related above) and no update was installed.  My question is the following:   What is the reason why Windows Update doesn't work and still consumes an entire core of my processor doing nothing?  Related Question(s):


How do I select all the hidden files in the console?

How do I select all hidden files in a directory? ls .* selects the current folder - ., as well as it's parent ... I just want the hidden files


Why does Python recognize certain variables which are outside of the body function (example with a list) but not others?

I'm currently learning Python, and couldn't get my mind around this variable position "paradox" (which exists only to the level of my "beginners knowledge" in Python). Example 1 #creating a function which returns the elements of a list called i. def var_i1():      i = [1,2,3,4]      for elt in i:          print(elt) var_i1()  #This successfully prints : 1 2 3 4  Example 2 #creating a function which returns the elements of a list called i. i is outside of the body var_i2() i = [1,2,3,4]  def var_i2():      for elt in i:         print(elt)  var_i2()  #allthough i is outside of the function body (correct me if I'm wrong) this also successfully prints : 1 2 3 4  Example 3 i = 4   def var_i3():      if i >0:     i += 1     print(i)          var_i3()  # UnboundLocalError: local variable 'i' referenced before assignment  #I don't understand why Python is okay with variable i as a list but not variable i as an integer


I want to have a way to report the stack trace to the user if an exception is thrown. What is the best way to do this? Does it take huge amounts of extra code?  To answer questions:  I'd like it to be portable if possible. I want information to pop up, so the user can copy the stack trace and email it to me if an error comes up.


The eigenvalues and corresponding eigenvectors for the matrix

The matrix is   $$\begin{pmatrix} 0&2&2\\ 2&0&2\\ 2&2&0 \end{pmatrix} $$  I have calculated the equation for eigenvalues, which is $\lambda^3-4\lambda-16=0$, but how do I solve this equation? Can this matrix be diagonalized?


Can I Use Google Input tools to type Malayalam language?

I would like to install Google input tools in Ubuntu. How can I do that?


Why do closed questions with rollbacks show up so strangely in the Reopen Queue?

At present,  shows up like this on the Revision tab:  - Jan 8 at 16:47 - Rollback to [8142c784-73d6-4387-9fa2-366dec3a5762] No changes to display.        Needless to say, this is rather disconcerting (since it shows something that seems to appear nowhere else in anything like that form), and somewhat less than helpful for the erstwhile reopen voter attempting to see what's been changed. What's up with that?


I have downloaded Ubuntu onto a bootable usb. I want to dual boot my laptop to run Ubuntu, so I turn off my laptop and turn it back on with the usb in the laptop. I am not given the option to dual boot or even run Ubuntu.   It would be great if someone could help me, thanks.


How to parse Json response and insert Record in apex?

I need to read the json response(response will be for one record) from Rest API and need to insert record in salesforce. I tried using below, but unable to get fields.  Json response:  "Vehicle":[   {     "Name_1":"Test",     "field1":{       "name":"Testing ABC"       "alias":"Testing ABC"       },     "field2":{       "name":"Testing 123"       "alias":"Testing 123"       },     "field3":{       "name":"xyz"       "alias":"xyz"       },     "field4":{       "Name":"apple"        "alias":"apple"              }     ]   Apex code:  String name = 'Test';                              HttpRequest req = new HttpRequest();                             HttpResponse res = new HttpResponse();                             Http http = new Http();                             req.setEndpoint('url');                             req.setMethod('POST');                             String r='{"getdetail":{';                                 r+='"name":'+name;                                  r+='}}';                             req.setBody(r);                             req.setCompressed(true);                             res = http.send(req);                             String str = res.getBody();                             System.debug('res'+str);// I am able to get above json response                             Map<String, Object> m =   (Map<String, Object>) JSON.deserializeUntyped(str);                             System.debug('---->>>>debug'+m.get('Name_1')); // it is returing null


Show that $I_2 = (2, 1+ \sqrt{-5})$ is not a principal ideal

Let $R$ be the quadratic integer ring $\mathbb{Z}[\sqrt{-5}]$, and $I_2 = (2, 1+ \sqrt{-5})$. Show that $I_2$ is not a principal ideal in $R$.   I still find such ring "alien", hence my original attempt was to show that these 2 are co-maximal thus no single element can generate them and still remain proper ideal. I want to do this by showing G.C.D is 1.  But according to  this ring doesn't seem to be a euclidean domain, hence I can't apply euclidean algorithm here. How do I proceed from here ?  Any help or insight is deeply appreciated.


Photoshop - Layer blending to add brightness and hue distort at the same time

I'm trying to recreate this effect:    For the sake of simplicity, let's ignore the teal edges and just assume two white rectangles. I'm having trouble creating the color invert/difference with the brightness at the same time.  I tried:   Making a black layer at 50% opacity (to create the darkened layer) Imported my rectangles from AI and set opacity to 70% Closest blending setting seemed to be "Overlay" but this did not produce any hue distortion as seen in the inspiration   Question  How should I adjust my methods to achieve brightness / color inversion? Hopefully there are labor-saving options for this.   Note: (not sure exactly what kind of color distortion is used, can assume inversion for now)  Note2: Also note that I'm not trying to apply the color invert to the whole picture, just where the white rectangle is. I don't think similar questions have addressed this method.


we bought computer from local shop with Microsoft office original. the shop send me this link to download the software and he gave me a product key.    i want to be sure the license of the microsoft office is original. if i have the product key does it means its original.  how to be sure  best regards  gbu


Logistic Regression - Adding interactions makes Independent variable statistically insignificant

My name is Abhi & I am trying to better understand logistic regression by solving a few practice problem. I am using R and RStudio as the development environment  Problem Statement  Given the age, sex and class(first,second,third) for each passenger can you predict if he survived or died when the titanic sank   Attempt1  Simple Logistic Regression. Use age,sex and passenger class directly. The formula (in R)  Survived~Pclass+Sex+Age  This gives fairly decent results - accuracy of 79% and all of independent variables are statistically significant   Attempt2  Add interactions between age,sex and passenger class. Accuracy has improved to 80% but age is no longer significant. Also none of the new terms(age-sex,age-class,sex-class,age-sex-class) are statistically significant. The formula (in R) Survived~Pclass*Sex*Age   Can some one explain why this is happening? I can accept that the new terms may not be significant but why is age no longer significant?   Any help would be much appreciated


How to round in python? example, 45.722 to 45.72, 45.0 to 45.00

I wanna round after decimal point. I know that the function round does it but when the number has only zeros after decimal point I also wanna keep the amount of zeros that I want, becouse python leaves only 1 zero. round(54.983839,2) == 54.98 round(54.0, 2) == 54.0    # and here I want 54.00


Frequency limitations of analog prototyping

At what frequency do breadboards become a bad idea for analog prototyping? I am considering using vector boards and soldering parts directly to the circuit board.  Thanks


How can I find and run an application that's already installed?

I see that apturl is installed on my computer, but I can't seem to locate it.  Can anybody tell me how I can find an installed application on this computer? I am getting very frustrated.


Trying to find a book about an extraordinary elevator

I don't know when I read this, probably a long time since I can't remember most of the plot scenes.  Plot details I can remember:   There's an engineer who, I think, wants to create an elevator. I don't know if it's an invention or whatsoever but it's a powerful one. I can't remember where the elevator will go but I'm confident it'll be a planet - that's why it is powerful. There's a part where he plans to construct it in a mountain. I think that's where tries to build it but a monk tries to sabotage it. The antagonist is a monk.   Note: Sorry if I only gave little information. That's all I can remember from that story. Maybe some of you already read it and forgot it too, you can edit this question to add more information. I googled all info I can remember but it doesn't match the same book I'm trying to find.


The Windows 10 October 2018 update (v1809) rollout got cancelled multiple times, however you can still get the ISO files of it. Is it somehow possible to update using the ISO files (without losing files) or to enforce an update over windows update?  I don't want to do a clean install because it would take me multiple days on the machine I want to upgrade, however I need to upgrade it because of some bugs fixed in the latest version.


Why doesn't (12)(34) commute with any odd ordered element in $A_5$

In Dummit and foote, for the proof for the simplicity of $A_5$, it claims that it is "easy" to see that $(12)(34)$ doesn't commute with any odd elements in $A_5$ and it commutes with $(13)(24)$, I have absolutely not idea why this is considered "easy", what method did the author use to quickly see this?  It further claimed that "it follows that $|C_{A_5}((12)(34)| = 4$, which again, I don't see how it follows from the above statement without also checking other two cycles do not commute with $(12)(34)$.


I want to encode my array contents with base64 if possible in javascript (and then decode later). Example: var array = ["stack", "overflow"] // base64.encode(array)


Allow moderators to edit the edit summary after an edit has exited the grace period

Very occasionally, users leave edit summaries which are downright inappropriate. At present, the best we can do in such instances is to contact a Stack Exchange employee and ask for a revision purge, which is a very invasive operation.  Diamond moderators are entrusted with the ability to edit almost anything on their sites, including other peoples' comments also after the normal five minute grace period. (This is something not even the poster of the comment can do.)  I am proposing that diamond moderators be given the ability to somehow edit the edit summary of a post revision after the fact, in such a way that the originally entered edit summary is visible to other moderators and possibly high-rep users (but not others) in much the same way as deleted posts are visible to moderators and high-rep users only.


How much weight does pasta gain when boiled?

In the diet my dietetician has prescribed me, I have amount of pasta allowed listed for dry (uncooked) pasta.  This is not a problem if I have the foresight to weigh the pasta before boiling, but it is a problem if I buy a dish with ready-made pasta or forget to weigh it before cooking (or just forget how much I had measured, and didn't write down).  Can you give me a rule of thumb / estimate, how much 75g of dry pasta weighs after it's boiled?


How to prove $ax \equiv 0 \mod m$ has solutions $x \not\equiv 0$ if $\gcd(a,m) \not= 1$

I'm thinking about  $ax \equiv 0 \mod m$ $\Leftrightarrow$ $m \mid (ax - 0) \Leftrightarrow m\mid ax$  Since $\gcd(a,m) \not= 1$, we have  $m \mid a \Rightarrow m\mid ax$  But I'm not tottaly sure about this. Any hints?


How do you determine how much to ask for when someone wants you to photograph a wedding?

I've been asked to shoot a wedding for money, which would be the first time that I've had such an opportunity. I've taken pictures at three prior weddings, two as the main photographer, but not while getting paid. (For the two where I was the primary photographer, well, they really just didn't care much about their pictures, so...)  Anyways, how does one go about figuring out a decent price to charge for a wedding? I should add that while I wouldn't mind doing this every now and then, I probably wouldn't shoot a ton of weddings, so I don't want to subscribe to some service to tell me how much I should charge.


Can the Shepherd druid's "Faithful Summons" feature be triggered by losing all HP in Wild Shape?

The  gets the Faithful Summons feature at 14th level (XGtE, p. 24):     If you are reduced to 0 hit points or are incapacitated against your will, you can immediately gain the benefits of conjure animals as if it were cast using a 9th-level spell slot.   Can you gain the benefits of the Faithful Summons feature if you are in Wild Shape and your new form's HP is reduced to 0?


How do you get to and from Arlanda Airport? Are there busses, trains or even flights connecting Arlanda with Stockholm? Is it possible to take a taxi to Stockholm?


How to guide the workflow in a collaboration? How to not kill the other’s motivation?

While working together, how can I discuss my ideas and objections without killing the other person’s motivation?  I want to do a design project with a friend, for study purposes, but I experienced some obstacles I don’t know how to deal with:   We didn’t learn yet how to deal with objections or dislikes from the other. As a result our meetings are inefficient, either because we let the other do whatever they want, or because someone gets into a bad mood and instead of thinking, they try to put on an unaffected face. My friend has a habit of letting their attention stray away, and they do it at the most unexpected times.   I know that being sincere is needed and inevitable, but I would like to learn a method to keep the attention and motivation even in these situations. My problem is that I don’t know what to say or do to keep our task looking interesting and fun to do.  As a possible solution I thought of inserting a 5 minute period where we shouldn’t say any good things, not even a word, but have to point out the bad parts of our own work.  But I fear this one won’t be enough, that’s why I would like to hear ideas and tricks that could make our sessions going.


Slow Trigger performance when big batches (take2)

take2 of  post since it was missing information and it was closed prior to the update that I added.   I have an update trigger that inserts into auditing tables. We had no problem until someone decides to update over 1 million records... (That's my bad. I didn't think it would be a problem when developing). Now facing reality, I need to find a solution...  This is a simplified version of the real thing  -- drop trigger PriceHist_trig_U  -- drop table MyPriceTable -- drop table price_history Create Table MyPriceTable (SKU varchar(13), PriceGroup varchar(5), PriceLevel int, Price float, Qty float, ManyOtherColumns Varchar(100) CONSTRAINT [PRICE_TAB_P01] PRIMARY KEY CLUSTERED  (     SKU ASC,     PriceGroup ASC,     PriceLevel ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]  Declare @Id int Set @Id = 1  While @Id <= 1000000 Begin     insert into MyPriceTable values (right('000000000000' + CAST(@Id as nvarchar(10)),13),'Grp ' + CAST(@Id%10 as nvarchar(10)), @id%3, RAND()*(25-10)+10, 1, 'there are many other columns')    Print @Id    Set @Id = @Id + 1 End  -- Drop table   price_history  create table price_history (SKU varchar(13), PriceGroup varchar(5), PriceLevel int, Price float, Qty float, ManyOtherColumns Varchar(100), historyDate datetime, ChangedColumns varchar(Max)) CREATE NONCLUSTERED INDEX price_history_nc1 ON price_history (     HistoryDate ASC,     SKU ASC,     PriceGroup ASC,     PriceLevel ASC )  go Create TRIGGER PriceHist_trig_U ON MyPriceTable FOR UPDATE  AS  INSERT INTO price_history (SKU, PriceGroup, PriceLevel, price, Qty, ManyOtherColumns, HistoryDate, ChangedColumns)              SELECT INS.SKU,INS.PriceGroup,INS.PriceLevel,INS.Price,INS.Qty,INS.ManyOtherColumns, getdate(),   CASE WHEN update(Price) and INS.Price<>DEL.Price THEN 'Price-' ELSE '' END + CASE WHEN update(Qty) and INS.Qty<>DEL.Qty THEN 'Qty-' ELSE '' END + CASE WHEN update(ManyOtherColumns) and INS.ManyOtherColumns<>DEL.ManyOtherColumns THEN 'other-' ELSE '' END  FROM INSERTED INS  JOIN DELETED DEL ON DEL.sku=INS.sku AND DEL.PriceGroup=INS.PriceGroup AND DEL.PriceLevel=INS.PriceLevel  WHERE  (update(Price) and INS.Price<>DEL.Price)      OR (update(Qty) and INS.Qty<>DEL.Qty)      OR (update(ManyOtherColumns) and INS.ManyOtherColumns<>DEL.ManyOtherColumns)  /* tests */  update MyPriceTable set price = price-1   I've been doing many tests and researches to try to figure out how to solve my issue of having a trigger perform poorly... I've come to the conclusion that to minimize the bad performance of the "Table Insert" in the execution plan, I need to insert in smaller batches.  The question is: Since I'm not sure of where all the different updates can come from, I'm trying to figure out how I can insert the auditing records in batches within the trigger?  example, The update of the main table for 1 million records would happen and call the trigger, which would insert 100 thousand records at a time in some type of loop.  Is this possible? If so, how do you suggest? If not, how else can I improve the table insert of the execution plan?


How to convert Milliseconds to "X mins, x seconds" in Java?

I want to record the time using System.currentTimeMillis() when a user begins something in my program. When he finishes, I will subtract the current System.currentTimeMillis() from the start variable, and I want to show them the time elapsed using a human readable format such as "XX hours, XX mins, XX seconds" or even "XX mins, XX seconds" because its not likely to take someone an hour.  What's the best way to do this?


When I'm fitting a generalized linear model, I use the  function like this:  fit <- glm(formula=y ~ x,             data=someFrame,             family=gaussian(link="log"))   But I don't know, what does the name of the family mean. It's described like this in the :  Family objects provide a convenient way to specify the details of the models used by functions such as glm. See the documentation for glm for the details on how such model fitting takes place.   But still, I don't know, what is it exactly. Is it an estimated distribution of observed data?


Way to promote a specific fix or feature request to be implemented by developers

Some unfixed bugs or feature requests have had many upvotes for a long time, but are still not implemented. I would like to know is there a way to expedite such implementation.  For ordinary questions on any site you can start a bounty to draw additional attention. But what if you want to see a bug report or feature request  here on Stack Exchange? Per-site metas don't have bounties. Also, while MSE has bounties, as far as I can see SE employees don't want my rep.  Probably if we could start some crowdfunding project, to fund our own community developer, who would make what we want in order to make the SE network better for us. What do you think about it?  Some small bugs are annoying for me; in several cases there are already answers from other users how to implement fixes. There is even the , which offers client-side fixes for over a hundred bugs across the network packaged in a handy user script. The author has specifically given permission for any of those fixes to be incorporated into the SE code base. But neither of these happen and I don't know the reason.  The SE team  that they prefer that even trivial issues be reported, as they are "super easy and trivial to fix".


I have partitions that I would like to rename.  What are the terminal commands to do this?


Is $\varphi$ the most irrational number?

A friend told me that the golden ratio constant $\varphi$, i.e., $\dfrac{1+\sqrt{5}}{2}$, is 'the most irrational number,' does anyone know if this is true and if so can it be proven? Thank you!


If $mn$ distinct numbers are entered into an $ m \times n$ board. If $k$ largest numbers in each row $(1 \leq k \leq  m)$ are underlined, and $x$ largest numbers in each column $(1 \leq x \leq n)$ are underlined, prove that there were at least $kx$ numbers which were underlined twice. How would I go about attacking this problem?  At first I tried a couple test cases, but was not able to determine a pattern from them. Any help is greatly appreciated.


How to handle NULL values when inserting with the Dataloader(.io)

I'm uploading records with the amazing dataloader.io and have a hard time to upload some records with NO value for optional fields. What do I have to put in those fields?   #N/A 'null' NULL '' "" 0   Is there a definite guide or reference document that answers this?


Why does my array print [D@3d4eac69 when I tell it to print?

public class sort {      public static void main(String[] args)  {          int i =1;         Scanner input = new Scanner(System.in);         System.out.print("Please enter the number of data points: ");         int data = input.nextInt();         double [] userArray = new double[data];         if(data < 0){             System.out.println("The number should be posotive. Exiting.");         } else {System.out.println("Enter the data:"); }             while (i <= data) {              int userInput = input.nextInt();              i++;         }                  insertionSort(userArray);     }      static void insertionSort(double[] arr) {         int i, j;         double newValue;         for (i = 1; i < arr.length; i++) {             newValue = arr[i];             j = i;             while (j > 0 && arr[j - 1] > newValue) {                 arr[j] = arr[j - 1];                 j--;             }             arr[j] = newValue;         }         System.out.println("The sorted data is: " + arr);     } }   Currently the output looks like this:  Please enter the number of data points: 5 Enter the data:  4 2 5 3 1   The sorted data is: [D@3d4eac69  the numbers are all inputed by the user, and the end of the output "[D@3d4eac69" is always outputted when I print arr.


free command output: gentoo (redhat?) vs debian

I noticed there is a difference between outputs of free command:  On debian:  $ free -h              total       used       free     shared    buffers     cached Mem:          4.0G       3.4G       629M         0B        96K       1.3G -/+ buffers/cache:       2.1G       2.0G Swap:         4.0G       1.1G       2.9G   On gentoo:  $ free -h               total        used        free      shared  buff/cache   available Mem:            15G        3.7G        9.6G        485M        2.2G         11G Swap:          8.8G        2.6G        6.2G   Redhat (at least 7.x) seems to have same output as gentoo. Why is that? Is it possible to display debian style output on gentoo / redhat systems as well? Are both distros using different gnu coreutils?


Using AddJoin_management gives ERROR 000840?

While i'am trying to execute this code IN IDLE, i got error :  import arcpy import math import arcview from arcpy import env   arcpy.env.workspace = "D:/Users/saadiya/Documents/ArcGIS/Default.gdb" arcpy.env.overwriteOutput = True  #Create a table of neighbors  arcpy.PolygonNeighbors_analysis("Parcelles_class_copy","Voisins_table") #Parcelles_class_copy est le résultat de la conversion de dwg en polygon   #Select each table neighbors for i in range(1,8) :     expression = '"src_OBJECTID"=' + str(i)     output_table = "output_table" + str(i)     arcpy.TableSelect_analysis("Voisins_table", output_table, expression)     #print expression  #***************** supprimer la table Voisins_table ********************************************************************** arcpy.Delete_management("Voisins_table")  #Joint table of neighbors to feautre class arcpy.AddJoin_management("Parcelles_class_copy","OBJECTID", output_table,"nbr_OBJECTID","KEEP_ALL")  del expression       #Select a target parcel  target_parcel = "target_parcel" + str(i) whereclause1 = '"Parcelles_class.OBJECTID"=' + str(i) arcpy.Select_analysis("Parcelles_class_copy",target_parcel,whereclause1) arcpy.RemoveJoin_management("Parcelles_class_copy",output_table)   i got this error :   ERROR 000840: The value is not a Raster Catalogue Layer ERROR 000840: The value is not a Raster Layer. ERROR 000840: The value is not a Mosaic Layer Failed to execute (Addjoin)


How can I stop the AI great prophet from running around my cities forever? (Civ5)

Let's say I have two cities with one inquisitor and one unit blocking the road between the cities. In theory, if the two cities are far apart enough, the AI great prophet shouldn't be able to convert either city because it has to leave the road at some point and that's when I move my inquisitor from one city to the other. However, the AI doesn't seem to realize this and the great prophet never gives up and keeps running around my two cities forever (until I slip up). Is there a way to stop this behavior besides DoW? It's a little annoying to have to deal with the great prophet every turn until endgame. I know that the great prophet will leave if I have an inquisitor in every city but I think that seems a little excessive.  Also, in general, the great prophet seems to know which of my cities have inquisitors stationed (pre-spy). The unit itself has a very limited sight range. Is this a bug or is it an intended map hack?


Do superheroes/villains like Quicksilver or Flash with super speed get tired due to running?

I mean a average human can run at his full speed for 15 to 20 mins before getting tired. Trained athletes can go on running for much more time without tiring out.  Do Superheroes like Quicksilver or Flash ever get tired due to excessive running?


A verb for transforming something into currency

I need a verb that expresses the concept of transforming a raw material into currency, as in this sentence "The bitcoin manufacturing process currenciates digital information."  New coinages are fine if they make sense and are less clumsy than the one I used above, but an existing term would be preferred.  I've considered the word mint but that seems to relate more to the final product than the raw material -- in other words, you mint coins (the finished product), you don't mint gold (the raw material).


New dialog doesn't display radio options properly in the mobile view

The radio button is on its own line instead of being aligned with its label.


What causes the crown of the bread to crack during baking?

What causes the crown of a bread loaf to crack as it bakes? I would like to prevent it.


How to Disable Auto-Formatting of All Column Values when opening CSV Files in Microsoft Excel

How can I stop Microsoft Excel from auto formatting data when imported from a csv/text file? Specifically, I want it to treat all of the values as text.  The files come to me as tab delimited text files. When loaded/opened in Excel, Excel auto-formats the data causing leading 0's on values to be truncated and often converting the values into dates.  We do not want to click through the import wizard an specify that each column is text. We would rather open the .csv file and have it be handled accordingly.  Ideally I just want to turn off Excel's Auto-Formatting completely, and just edit every cell as it were plain text. There are no formulas to be concerned with.  This is NOT an Auto Correct or "Replace text as you type" problem so it doesn't appear to be addressable by the AutoCorrect panel.


Header of the table must be centered, all other rows aligned to left

I have this MWE:  \documentclass{article} \usepackage{multirow} \begin{document}     \begin{table}[here]         \begin{center}             \begin{tabular}{|l|l|c|}             \hline              \multicolumn{2}{|c|}{\textbf{SED}} & \multirow{2}{*}{\textbf{\% compressione}} \\             \cline{1-2}             \textbf{MC} & \textbf{DP} & \\              \hline              \hline             0.00016032 & 0.0001750267 & 10\%\\             \hline             \end{tabular}          \end{center}     \end{table} \end{document}   It realizes this image:   The first two columns are correctly formatted to the left, but I want it so that just MC and DP will be centered, how can I do that?


I've often wondered, how does the Doctor know how old he is? He not only travels through time, but also through space, and visits planets where days can be shorter or longer than 24 hours. How does he 'keep score'?  Also, does he count his age in Earth years or Gallifrey years? They might be completely different in length.


What Japanese books/piece of literatures that are shown in Psycho-Pass?

On this scene and other bookshelves of , there are some Japanese books.  What are they?


Find a closed form expression for $\sum\limits_{i=0}^{\infty} i^2\cdot x^i$

I think I'm supposed to use calculus somewhere but I'm completely lost.


How to obtain t-value for significance of median

I collected analysts’ forecasts and calculated bias and accuracy such as:  $bias=actual-forecast$  $accuracy=abs(actual-forecast)$   What I am wondering is now on how to calculate the t-statistic to determine that the  median bias is significantly different from zero. I am using R and found the t.test function to calculate mean significance but did not find anything appropriate for the median. (in my case I need the one sample t-test)


We can not do work with internal force is it right?

In a washing machine you wash clothes in heavy mode then it moves a bit. Then it is doing work with internal force. Then does it violate that any work can not be done with internal force?


How to prevent hotlinking for specific domains using .htaccess?

I'm being heavily spammed by image scraper sites. There are more than 150+ domains targeting my images & sending spammed links to my site. I just want to prevent hotlinking from them. I just want to block only those specific sites.  Is there any htaccess rule for preventing hotlinking in specific sites only and allow others which is not included in list?


I have one calculated column and I want to display the sum of all its values but I know that's impossible in a OOTB way. How can I copy all the values to a new column (type number)?  Do I need to use JavaScript?   ps: I'm using SharePoint on-line


What symbol to use for pronunciation help

I am looking to enforce that my letter "a" should be pronounced as "ah".  In my book I am writing I have the name Gorak (Gore-ahk).  What would be the best way to explicitly show that it is Gore-Ahk and not Gore-aek or Gore-ak?  Also if I may, I am also looking to designate the il letter combo to sound like "eel".  I know there are symbols that you place above the letters to help with pronunciation but I am having a hard time googling it to find out what to use with what sounds.  Possibly maybe not asking the right question to google.


Expected and observed Fisher information?

Studying asymptotics, I bumped into the concept of Observed Fisher Information, as a way to compute Fisher Information when the parameter $\theta$ is unknown. I am also aware that it is related in some ways to Maximum Likelihood Estimators but I am a bit confused.   Thus my questions are: Which is the difference between Expected and Observed Fisher Information? How the observed Fisher information is computed? And how it is used?  EDIT: From the linked pages, I have understood how the Observed Fisher Information is computed and how it may be better than the Expected one in cases of finite samples.  But I have some doubts yet: is the only difference between Observed and Expected Information the presence of an estimate (possibly the MLE of $\theta$) or a  known $\theta$ ? Thus, should it be used, for example, in the case of asymptotic estimations?


Is synapse application launcher available?

I really like that synapse application launcher, but there seems to be no way of installing it in ubuntu 14.04. Any ideas why? Or does anyone know how I could get it?


Restrict an iOS app from using Wi-Fi internet

iOS allows you to restrict specific apps from accessing the internet when using cellular data.  Is it possible to do the same when Wi-Fi is turned on?  Is there any way to restrict an iOS app from using Wi-Fi?  I want to restrict messenger apps like WhatsApp and Line from accessing the internet when my phone is using aWi-Fi connection.


While moving custom profiles using eclipse from dev org to partner org found following errors

Unknown user permission: CanInsertFeedSystemFields Unknown user permission: ChatterInternalUser  What could be the possible solution? Thanks in advance.


Can i use 19.5V 4.62A charger for a 19V 2A laptop?

I have an old netbook that requires 19V and 2A charger. I found one charger of 19.5V and 4.62A in the garage. I connected it and it is working. Is it ok to use it like that or will it cause damage in the long term?


Prove This Inequality ${\pi \over 2} \le \sum_{n=0}^{\infty} {1 \over {1+n^2}} \le {\pi \over 2} + 1$

$${\pi \over 2} \le \sum_{n=0}^{\infty} {1 \over {1+n^2}} \le {\pi \over 2} + 1$$  I see I should use Riemann sum, and that $$\int_0^{\infty} {dx \over {1+x^2}} \le \sum_{n=0}^{\infty} {1 \over {1+n^2}}$$  But how do I explain this exactly, and how to get the other half of the inequality (with ${\pi \over 2} + 1$)?


Announcement text msg if more than 5 lines it increases the webpart size to cover the additional lines of text rather showing the eclipse (...) to click if u want to read further.  Alternate, i had set the height of the webpart. But then the scroll bar appears.  I guess it quite a simple javascript or jquery to take care.  Please comment


Is there any difference between an article and a paper?

Are papers and articles really different in academic context or they are same words for the published manuscripts in conferences or journals?  The only thing comes to my mind is that may be an article is un-academic synonym of a paper, and it is not often used in academic context. Articles may be the texts which are published in a magazine; a paper is more academic, it is published in academic journals.  Could you please tell me what is the difference and whether there is any special usage of each word in papers published in a branch of science or in a country?


Water Displacement in the Oceans As a result of Global Warming

Not sure if this is the right place to ask this but here goes.  If the north pole ice sheets melt, everyone agrees this would be a bad thing, however one of the reasons they state for this being a bad thing is the rise in sea level.  Given that the north pole is essentially a massive ice sheet floating on water, how can the melting of this ice raise the sea levels?  In my understanding the amount of water displaced by the ice, is equal to the amount of water that would be added to the ocean.  I tried an experiment where i marked the water level in a glass of water with ice, then waited for the ice to melt. the water level was identical.  Am I missing something here?


How can I detect this part: /table/LEKPOOZZZCV/LSK1633923 from string variable: '
<span class="table_names__name" data-v-fc63c1b6="" title="W............ using regex expression?


Americans can eat Chinese, but Chinese can't eat Americans?

No offence!! Please take it just for knowledge. I heard one of my friends saying Americans can eat Chinese but Chinese can't eat Americans. He said so for fun, and everybody was just laughing. But I want to know how the English language comes into the picture.   One thing, I guess, is that there is a game of plurals. Where Chinese in singular and plural has same letters, but not American?  P.S Of course, it was about Chinese food.


mkdir dregsfolder find /home/tony/Desktop/unsorted_files/ -maxdepth 1 -not \( -type d -or -iname "*.jpg" -or -iname "*.gif" -or -iname "*.docx" \)xargs -0 --no-run-if-empty mv /home/tony/Desktop/dregsfolder   When I run that code; I am advised  find: paths must precede expression: )xargs   I am confused as I thought that the path had already been specified with the /home/tony/Desktop/unsorted_files.  I am further confused, because in  on Unix & Linux Stack Exchange, we have an example xargs copying files to a directory called play:  find /tmp/ -ctime -1 -name "x*" | xargs -I '{}' mv '{}' ~/play/   And here, it seems that the target directory, i.e. play; has been specified AFTER the xargs...  I'm wanting clarification as to the precise mechanisms associated with xargs and the nuances associated therein, for the parsing of not ONLY a file from a directory (as identiifed in previous question) but furthermore, its wider usage within the unix world in relation to parameters.


If $\space$ $\forall$ $x \in \Bbb R$, $\space$ $f(f(x))=x^2-x+1$. Find the value of $f(0)$.  I thought that making $f(x)=0$ implies that $f(0)= 0^2 - 0 + 1 = 1$, but i think that this isn't correct, because the $x$ in $f(f(x))$ isn't equal to $f(x)$ .  Any hints?


Does an enemy have to make the save against the Spirit Guardians spell if the caster moves within 15 feet of the enemy?

Does the Spirit Guardians spell trigger its saving throw if you, as the caster, close the 15-ft. gap? Or only when the enemy uses its movement to come into the spell's radius? Spirit Guardians says:  when the creature enters the area for the first time on a turn or starts its turn there, it must make a Wisdom saving throw.  For instance, say I'm 30 feet away, and I use 15 feet of movement to bring myself within range of the monster to put it within the spell's range. Does that initiate the "when the creature enters the area for the first time on a turn" trigger for the spell's saving throw? Or would the creature have to close that gap itself?


How do you compare 2 variables with different types of data?

Compare two variables named target and guess when one is an integer, and one is a string using Python 3.  import random import sys target = random.randint(1, 20) name = input ('Hello, what is your name?') print ('Hello, %s. I am thinking of a number from 1 to 20. You will have 3 tries, and after each try, I will tell you if the number that I am thinking of is lower or higher. Try to guess it!' % name)  guess = input ('What number do you think I am thinking of?') if guess == target:     print ('Congratulations! You won! Please play again!')     sys.exit() else:     print ('You did not guess the number correctly.')     if target < guess:         print ('The number that I am thinking of is smaller than your guess. Try again')     else:         print ('The number that I am thinking of is larger than your guess. Try again!')


I am new to multivariable calculus and my textbook doesn't give out solutions so I'm just wondering how you go about proving something like this? I know that a function is differential at a point $a$ if it's continous at $a$ and and the partial derivatives of $f$ exist near $a$ but I have never actually seen an example. Heres the question:    Assume $f(0, 0) = 0$, and determine whether $f(x, y) = \frac{xy^3}{x^2 + y^4}$ is differentiable at $(0, 0)$.


Email formal way to express that you are ready to share information

I am requested some explanations on some topic in professional email exchanges, and I don't know if I can end the mail with : "Please do not hesitate to contact me for further information". Actually I am French and I use here a kind of translated expression often used in French. I would like to know if it sounds good enough for a professional email in English, or is there a better way to express this idea that I am ready to provide more explanations if it is needed.


I have a list  ['r', 'o', 'c', 'o', 'c', 'o']`    and wish to make it   [['r','o'], ['c', 'o'], ['c', 'o']]   how would I do this? moreover, I need to make the new list grouped to whatever "n" is in the above example, n is 2 if n is 3, the result should be: [['r', 'o', 'c']['o','c','o']]


Why is an orthogonal matrix called orthogonal?

I know a square matrix is called  if its rows (and columns) are pairwise orthonormal  But is there a deeper reason for this, or is it only an historical reason? I find it is very confusing and the term would let me assume, that a matrix is called orthogonal if its rows (and columns) are orthogonal and that it is called orthonormal if its rows (and columns) are orthonormal but apparently that's not conventional.  I know that square matrices with orthogonal columns have no special interest, but thats not the point. If I read the term orthogonal matrix my first assumption is, that its rows (and columns) are orthogonal what is correct of course, but the more important property is that they are also orthonormal    So, Question: Why do you call an orthogonal matrix orthogonal and not orthonormal? Wouldn't this be more precisely and clearly?


I seem to have a phantom follower that won't let me enlist a follower

I had Faendal as a follower, and he disappeared somewhere along the way. Found him back at his house. I asked him to follow, but he says I already have a follower. I killed the dragon, but Lydia says the same thing. Is there any way to reset it back to no follower? I really don't want to start over.


Why is the experience point progression in 5th edition D&D uneven?

Fifth edition D&D's experience progression is linear for the first few levels, then takes on an approximately parabolic relationship as shown in the graph on the lower left. However, the amount of experience required to gain a level (i.e. the change in experience between levels) does not follow the approximately linear relationship implied by a parabola, as shown in the graph on the right. At several levels, the amount of experience required to gain a level is the same as what was required to gain the previous level (e.g. level 13 requires 20,000 xp over level 12, and level 14 requires 20,000 xp over level 13). In fact, levels 12, 13 and 14 all require less experience to gain than level 11.                 My question in two parts:   Is there a record of game design philosophy explaining the uneven advancement requirements? Does any such game design philosophy imply that an even and strictly increasing progression of xp requisites from level to level would create specific problem? (E.g. is it actually important that the xp requirement at level 11 be a big bump over the requirements for the succeeding three levels? Is it important that several levels have the same xp  requirements as the previous level? Do important things break or work less well otherwise? (Assuming that such an "otherwise" would preserve the same near-parabolic increase in total xp.)   Note: All xp data are based on the 5th edition D&D Player's Hand Book.


Does exhaustion affect passive perception in 5e?

1 level of exhaustion affected ability checks, but does it have any implications for passive checks?


What needs to be changed if I put in a larger chainring?

My current bicycle is a 2013 Specialized Allez C2. It has an 8 speed rear cassette. If I swap the current chainring (50/32) to a larger one (52/36 OR 54/39), other than the chain itself, what else would I need to change, if anything?


How to open a windows file from ubuntu subsystem(windows 10 optional update (Oct-2017))

I am new to ubuntu. I recently updated my windows 10 OS and i also installed ubuntu from windows store and I am having trouble finding my C program files from compling it from this ubuntu.exe  Thank You!!


Okay I've looked, and I've looked but for the life of me I can't find a free 2d CAD program that is compatible for Ubuntu. I need it to be free but allow me to type in exact measurements for the sides and angles. Also I can't work with something that has a layer limit because I'm designing a forty floor building. Please need one A.S.A.P.  Thanks, ShockWave


How to get a photoshop font look like math mode in tex?

I want to make a figure in Mathematica, export it as a PDF, edit/label it in Photoshop, and then add it as a figure in a TeX document. I would really like to have the font in the figure closely match the math mode stuff in the document.  In the past I've made a PDF with TeX with just the labels I want and then pasted them all into the figures, but this is incredibly tedious.  I found this post -  - which says that the font in math mode is "Latin Modern Symbol" but this is not an option in Photoshop.  Is there another font that looks close enough to math mode which is in photoshop?  Thanks for any help!


Violation of linearity assumption in Logistic Regression

I built a logistic model with 7 continuous independent variable and 8 categorical (dummy) variables in R. I tested for the linearity assumption using the Box Tidwell test and all my variables show high significance.  I am wondering now, if the assumption is violated what it would mean for the coefficient estimates and if I still can run the model with caution.   I read about the approach of using regression splines but I am confused how I would determine those and interpret the model then.


Multidimensional array problem with update_post_meta

I have an issue saving a multi-dimensional array using update_post_meta.  Here's my code ($meta_key and $userID are set up above):      $read_notices = get_user_meta($userID, $meta_key);      if (null === $read_notices) {         $read_notices = array();     }      $read_notices[] = $postID;      update_user_meta($userID, $meta_key, $read_notices);   My problem is that the data is nesting every time so I end up with... Any ideas?  Array (     [0] => Array         (         [0] => Array             (                 [0] => Array                     (                         [0] => 1823                     )                  [1] => 1762             )          [1] => 1762     ) )


Let me edit tags even when there is pending suggested edit

I went to remove some tags from a question and normally I have enough rep to do this.  However, on this occasion, it appears that someone with not enough rep tried and instead I could approve an edit to do the same thing, but this wasn't enough.  In other words, I was prevented from removing tags by someone trying to do the same thing but not enough rep.  This struct me as a bit complicated.  If I can remove tags, perhaps I should be able to remove them even if someone with not enough rep has already tried to remove them.


What role is this Matched PNP Transistor and MOSFET pair playing in this circuit?

I'm trying to understand what exactly this power circuit is doing. The schematic below shows 5V in from USB. It is run through a fuse, and then there's some tricky PNP transistor stuff happening I can't sort out with the DMMT5401. I don't understand the interaction it is having with the P-channel MOSFET DMG2305UX.  Since its a ptype MOSFET, then I think the DMMT is cutting off the flow of 5V using C2 under a certain circumstance. I don't know what circumstances can be derived from E1 (the 5V in) and E2 (the 5V destination) though.   Associated datasheets are shared here:   Schematic here:   The 5V eventually runs out to a DC/DC converter PAM2306AYPKE which provides 1V8 and 3V3 to a device.  What I don't understand is the role of the Transistor and MOSFET in the first place. Why not just use the 5V from the fuse? Secondly, since is does exist, how does the transistor work together with the MOSFET?  (My question may derive from a hard time understanding P type devices, and the fact that this is a paired transistor, and it's modulating the performance of yet another P type device.)


I am new to Ubuntu and have a basic question. I made a drive called /storage when I was installing Ubuntu (Is it a drive? or a folder?). And I can not write any file to it right now. Can you please help me with a method to use it.  The result of DF command is:  Filesystem     1K-blocks    Used Available Use% Mounted on udev             3026364       0   3026364   0% /dev tmpfs             609236    9060    600176   2% /run /dev/sda5       19092180 6224536  11874776  35% / tmpfs            3046164     220   3045944   1% /dev/shm tmpfs               5120       4      5116   1% /run/lock tmpfs            3046164       0   3046164   0% /sys/fs/cgroup /dev/sda7       69110272   53012  65523592   1% /storage /dev/sda6       19092180 8750784   9348528  49% /home tmpfs             609236      56    609180   1% /run/user/1000   BR  Zeedo


Will blender 2.8 official realise be able to run on computer with graphics driver that is lower then OpenGL 3.3

I have seen videos on the upcoming blender vision 2.8 and I would also like to expand with blender like everyone. I hope the developers won't let my laptop limits to keep me from developing my skills.  Thank you


Efficiently finding all sums of squares that sum to a given number.

Lately I've been trying to solve a problem that asks me to find all solutions to $N  = x^2 + y^2$, where $N$ is squarefree, and all its prime factors are of the form $4k + 1$. Using the Diophantus identity I know how to get solutions to $N = x^2 + y^2$ by using the solutions to $p = a^2 + b^2$, where $p$ is each of the prime factors of $N$. I'm more concerned on whether these are all the possible solutions.  In other words, I would like to know whether there is an $N = rs$, where $r$, $s$ are of the form $4k + 1$, such that $N = x^2 + y^2$, but none of the integer solutions to $r = a^2 + b^2$, $s = c^2 + d^2$ generate $x$, $y$ using the Diophantus identity.


Setting onClickListeners to lots of Views

I have a lots of Views(about 30, may be it will be more), like cards. I set onClickListener for each of them, but its does not working. No reaction. Here is my code:  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_start);     final EditText searchProfile = (EditText) findViewById(R.id.search_profile);     final Button btnSearch = (Button) findViewById(R.id.btn_search);     final LinearLayout layoutProfileLeft = (LinearLayout) findViewById(R.id.layout_profiles_left);     searchProfile.setHint("UserName...");     btnSearch.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             String profileName = searchProfile.getText().toString();             urlForProfile = "http://www.dotabuff.com/search?utf8=&q=" + searchProfile.getText().toString().replace(" ", "+") + "&commit=Search";             while (htmlSrc == "" || htmlSrc == null) {                 setHtmlSrc(urlForProfile);             }             ArrayList<Integer> ids = new ArrayList<Integer>();             for (int i = 0; i < 30; i++) {                 searchedHeroes.add(i, new SearchedHero(i));                 RelativeLayout l = new RelativeLayout(StartActivity.this);                 RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(-1,-2);                 rlp.setMargins(8, 0, 8, 8);                 l.setLayoutParams(rlp);                 l.setBackgroundColor(Color.rgb(69,90,100));                 l.setPadding(8,0,8,8);                 l.setId(i);                 //l.setLayoutParams(LinearLayout.);                 ImageView img = new ImageView(StartActivity.this);                 new DownloadImageTask(img).execute(searchedHeroes.get(i).getImageSrc());                 img.setOnClickListener(this);                 img.setId(i + 40);                 l.addView(img);                 RelativeLayout innerL = new RelativeLayout(StartActivity.this);                 RelativeLayout.LayoutParams paramsForInnerL = new RelativeLayout.LayoutParams                         (-2, -2);                 paramsForInnerL.addRule(RelativeLayout.RIGHT_OF, img.getId());                 TextView txtProfileName = new TextView(StartActivity.this);                 txtProfileName.setText(searchedHeroes.get(i).getName());                 txtProfileName.setId(i + 80);                 TextView txtLastMatch = new TextView(StartActivity.this);                 txtLastMatch.setText(searchedHeroes.get(i).getLastMatch());                 txtProfileName.setTextSize(14);                 txtProfileName.setTextColor(Color.WHITE);                 txtLastMatch.setId(i + 120);                 RelativeLayout.LayoutParams paramsForNameLastMatch = new RelativeLayout.LayoutParams                         (                                 RelativeLayout.LayoutParams.WRAP_CONTENT,                                 RelativeLayout.LayoutParams.WRAP_CONTENT                         );                 innerL.addView(txtProfileName, rlp);                 paramsForNameLastMatch.addRule(RelativeLayout.BELOW, txtLastMatch.getId());                 innerL.addView(txtLastMatch, paramsForNameLastMatch);                 l.addView(innerL, paramsForInnerL);                 l.setOnClickListener(this);                 ids.add(i, l.getId());                 layoutProfileLeft.addView(l, rlp);                 //}                 //m.find();                 //passUrl = "http://www.dotabuff.com" + m.group(1);                 //Intent pass = new Intent(StartActivity.this, MainActivity.class);                 //pass.putExtra("EmpID", searchedHeroes.get(0).getProfileUrl());                 //startActivity(pass);                 //}                 //}             }         }     }); }  @Override public void onClick(View v) {     Intent pass = new Intent(StartActivity.this, MainActivity.class);     pass.putExtra("Link", searchedHeroes.get(v.getId()).getProfileUrl());     startActivity(pass); }   Probably, each view must intent other activity. Thanks.


Start a action when a USB device is added

I try to start an application, when a special USB device is added.   In the windows event system I can use the event: Microsoft-Windows-DriverFrameworks-UserMode -> Event ID: 2100  This event is raised, when a new device is added. This works fine, but I will find out which drive was added.  Within the event system I found, that additional information is available, but how I can use this information?  Is it possible to get the information, which drive was added? Or is it possible to hand over the additional data of the event system to a user program (command line parameter)?


How to move all files plus hidden to folder down?

I want to move all my drupal files in www folder to html folder. I don't know how to do this in terminal and I'm not sure if all folder and files including hidden ones are drupal in the www folder, is there a way of checking the lesser obvious ones or would www have been empty before and any hidden files will auto recreate?


I have made the leaf shape and want to bend with the reference image.     I have on the proportional editing on also. But the problem its not bending its moving from the place.        Later i have to extrude and offset.  Any suggestion and help. Thanks


When should I use "in the Internet" and when "on the Internet"?


How to use Palatino font for text and what about maths?

I would like to use Zapf's Palatino font for the text in my document, which also includes a lot of maths. And I would like a good font for the maths. This is a snapshot of what I am doing.  \documentclass[10pt,letterpaper]{memoir} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathpple} \usepackage{upgreek} \usepackage{mathpazo} \usepackage{lipsum}  \begin{document}  \chapter{Demo}  Some regular text. \lipsum[1]  Now for some maths.  \begin{displaymath} P_{N-1 + m} = \frac{C}{N-{1} + m} \binom{N_{2} - N_{1}}{m}         \alpha^{m}\beta^{(N_{2} - N_{1}) -m} \end{displaymath}  The number 27 is the sum of the first 5 odd prime numbers: $27 = 1+3+5+7+11$  \end{document}   To me the text and math fonts seem a good fit but the text does not look like Palatino.


How can I handle PHP response of a dynamic created form such that it is displayed in the same page?

I've created a dynamic website with an index page that has a container with class 'dynamic_content' in which javascript loads contents based on user input        <meta charset="ISO-8859-1">     <meta name="viewport" content="width=device-width, initial-scale=1">     <link rel="stylesheet" type="text/css" href="styles.css">

      On a certain input, dynamic_content is filled up with a form that has a specific ID registration_form, that manages user inputs by passing them to a server php page with a post action with an input submit.   What I want is that, given any php answer, the response is loaded on the same page, INSIDE dynamic_content, I have tried jQuery with AJAX but it seems that it cannot find the ID of the form, even if I use event handler, this is my jQuery code fragment (my last try with the code found in another answer here):  $(document).ready(function() {  $(".dynamic_content form").on('submit', function(event) {     //avoid default behaviour     event.preventDefault();       //getting the elements from the form     var form = $(this);     var post_url = form.attr('action');     var post_data = form.serialize();       //sending data          $.post(url, data)         .done( function(response) {             $(".dynamic_content").html('
' + data + '
');             $(".dynamic_content").append('
VAI ALLA HOME
"');         })         .fail( function() {             alert("The AJAX request failed!");         }); }); });   This code is inside "primaryScript.js". Is there something wrong? What do I have to do?


I came across this expression today and found that the term means to endure the hardship phase a man is going through without whining which is what is stereo typically expected from a guy. I went through the wiki page () but did not find why the word 'suck'was used in this phrase. I suppose there's a reference behind it in analogy to drinking something unpleasant and then dealing with the irritation it might create in the body. Otherwise, one could use other verbs such as 'hear' or 'eat' and frankly I don't see anything wrong with them. I would like to know what was the inspiration behind using the word 'suck' and what was the origin of this phrase?  EDIT: The possible duplicate question() tries to answer about origin which may or may not be true. There is no definite answer to it. Besides the question is mainly about the meaning and not the origin per se.


I have a couple CSS files with overlapping CSS selectors that I'd like to programmatically merge (as in not just appending one file to the end of the other). Is there any tool to do this online? or a Firefox extension perhaps?


Here it is given that the equation $11^x+13^x+17^x-19^x=0$ has only one real root. How can I show it? Please someone give some hints..


Is every group the automorphism group of a group?

Suppose $G$ is a group. Does there always exist a group $H$, such that $\operatorname{Aut}(H)=G$, i. e. such that $G$ is the automorphism group of $H$?  EDIT: It has been pointed out that  the answer to the above question is no. But I would be much more pleased if someone could give an example of such a group $G$ not arising as an automorphism group together with a comparatively easy proof of this fact.


I saved a map, and when I went to open it back up, I was prompted with a dialogue box saying Handle Bad layers.  What does this mean? The map was fine when I saved it.


Samyang AE 8 F3.5 CS II fish-eye with SFH-14 filter holder

Is there any chance to work together lens and filter holder: - Samyang AE 8 F3.5 CS II fish-eye - Samyang SFH-14?


Transform right skewed distribution to normal

My datasets histogram is the following:    It contains a lot of zeros, that is why the high bar around zero. How can I transform this to a normal distribution? My problem is that the high bar coming from the zeros will not vanish after applying the usually suggested log transformation, and neither the reciprocal transformation helps, as in that case the high bar will be at 1.  Thanks in advance!


how do i print output in one digit after decimal in jsp output from database sever in java

i am dividing the number & want output only with one decimal like 4.1 or 4.2  "SELECT  count(*)/6 as s from t1 ";     <% out.print(rs.getDouble("s")); %>	   Please help, I am new to jsp


Explicit closed form $\sum \frac{1}{an^2+bn+c}$

I know that $\sum_{n\geq 1} \frac{1}{n^2}=\pi^2/6$, is there a simple way to get an explicit closed form $\sum \frac{1}{an^2+bn+c}$, where $a,b,c$ are integers, $a\neq 0$?


I am not Ubuntu literate however noticed my 16.04 LTS is not updating  when I try to update manually I get following message     I would really appreciate if someone could assist me step by step assuming I know nothing about Ubuntu.


How can I write a program that can detect by itself that it has been changed?

I need to write a small program that can detect that it has been changed. Please give me a suggestion!  Thank you.


Is there a way to change the default save/export format in Preview?

I always choose PDF when exporting and usually choose JPG when saving. Being able to change the default format from PNG to either of these would save me a few clicks every time I use Preview. Is there a way? Preview preferences has no save/export format option, and I was unable to find anything on Google.  For bonus points, is there a way to have the default extension for images saved in JPG format with Preview be .jpg instead of .jpeg? It's a pain to change them manually every time, and leaving them means having to remember which files are .jpg (those not from Preview) and which ones are .jpeg (those from Preview) when making websites.  Thanks in advance.


What is the largest possible melee critical range in Dungeons and Dragons 3rd or 3.5 edition?

I've been discussing critical strikes with a friend. He states that there is no way to get more than 11-20 range in any D&D version, but he refuses to explain how he gets there, and it's based on a game that implements D&D 3e (the first two games in the Star Wars: Knights of the Old Republic series).  However, in a game as expansive as D&D, I'm fairly sure it should be possible to get a bigger range than 11-20 in 3rd edition D&D.  What combination of race, class, equipment, feats, buffs, debuffs, etc gives the largest possible melee critical range? Assume that all sourcebooks are available for D&D 3e and 3.5e.  Note: I'm talking about consistent melee critical ranges. Temporary effects that only last a few rounds, or "your next spell/attack crits" effects, which can only be used once in a while, should be avoided — unless something can help to keep them up. I'm looking for something that can feasibly be consistently applied to an entire encounter.


My GIMP cant access files in the /var/www/html folder where I run my projects on localhost. I assume I have to add GIMP to the www-data group, right?  My user is already a member of the www-data group and I have write access via any file manager but GIMP still cant access files in the /var/www/html folder.


Does the Shadow Magic sorcerer's Eyes of the Dark feature work on all Darkness spells or just his/her own?

get the Eyes of the Dark feature (XGtE, p. 51):     When you reach 3rd level in this class you learn the darkness spell [...] If you cast it with sorcery points, you can see through the darkness created by the spell.   Does this mean that if a Shadow Sorcerer casts darkness using sorcery points and then moves into a different area of magical darkness (not the one s/he created), the Sorcerer would not be able to see?  Or does the ability mean that the Sorcerer would possess the ability to see through the magical darkness created by the darkness spell in general (provided they were maintaining their own casting of the spell)?


How to return multiples variables from a function in c++

string choices() {     string ch1 = "1",ch2 = "2",ch3 = "3",ch4 = "4",ch5 = "5",ch6 = "6",ch7 = "7",ch8 = "8",ch9 = "9";     return ch1,ch2,ch3,ch4,ch5,ch6,ch7,ch8,ch9; }  void display(string a,string b,string c,string d,string e,string f,string g,string h,string i) {     cout << a << b << c << d << e << f << g << h << i;     return; }  int main() {     string a,b,c,d,e,f,g,h,i;     a,b,c,d,e,f,g,h,i = choices();      display(a,b,c,d,e,f,g,h,i);  //display data      return 0; }  How to return multiples variables from function ? Do I need to pass by reference?


In what ways dragons can kill a person having Blood of the Dragon?  Obviously, there is:      fire, that can't kill a person having Blood of the Dragon, as Daenerys say after the Viserys death from the melted gold.   Also, can dragons kill a person having Blood of the Dragon on their own will or only on demand?


What would be the easiest way to count colored cells from multiple tabs?

I have a task to collect data about how students are doing their homework. I have colours to determine the processes of every individual homework, to each individual student. I have one tab for each day at school.  Some of the cells have text in them, but I'm only interested in counting the colors.  I also don't know how to script or to code.


I want to run Ubuntu without ever having to enter a password - not on install and not during any kind of operation.  Is this possible?  I have read through the forums and really did not see an answer.  All the responses were "there is no reason to do it" and "here is a temporary work around", but there was never and answer.    I am running a copy of Ubuntu on a virtual machine (vmware) which is running on a physical computer that has no internet access, no physical access by anyone but me and one user - me.  No data is stored on that machine.  There is no possibility of an kind of security issue unless my dog suddenly becomes a hacker.  If by not having a password I accidentally corrupt some system file, I just delete that virtual machine and create a new one.  I hope this obviates the need to have a opinion based discussion on the merits of a password.    Just for the curious, I am developing code for hardware and the ubuntu machine runs my JTAG debugger - that is all it does and all it will ever do.  The reason to remove the password has to do with some issues with the debugger software - which I spent way to long on the phone with the provider trying to fix and now just need to get back to the real job at hand.  So is it possible? If so, what do I need to do?


Can anyone help me with this hard trig. expression

Prove the given identity.  $$\left(\sin\frac {9\pi}{70}+ \sin\frac {29\pi}{70} - \sin\frac {31\pi}{70}\right) \left(\sin\frac {\pi}{70}-\sin\frac {11\pi}{70} - \sin\frac {19\pi}{70}\right) =\frac {\sqrt {5} -4}{4}$$  I though of many ideas but could not start even.I know there is an answer for this . I saw the answer but it is inefficient and out of my mind. A shorter answer is expected. Thanks.


How can I add multiple virtual network interface cards on Windows 10 and connect them to local network using one physical network interface card?  In my use case I need to concurrently use multiple public ip addresses on one computer. My ISP's DHCP server assigns one public ip to each mac address connected to their network. One solution is to get switch, NIC with multiple ports and physically connect multiple network cables to the computer. Such approach would however be messy and unnecessary because only one device would be actually connected to switch. Hence I would prefer using virtual NICs each with different MAC.  I tried Microsoft KM-TEST loopback adapter and openvpn's TAP-Windows adapter but I never got it actually connected to local network. It only shows "unidentified network"


$\sum a_n$ and $\sum b_n$ converges. Prove $\sum a_nb_n$ converges.

Let ${a_n}$ and ${b_n}$ sequences with positive terms, such that $\sum a_n$ and $\sum b_n$ converges. Prove that $\sum a_nb_n$ converges as well.  What I did: $\sum a_nb_n \le \left(\sum a_n\right) \left(\sum b_n\right)$ and by comparison test we are done.  However, when I asked my teacher regarding that solution, he told me that I can assume that inequality for finite numbers but for infinite numbers, it is not valid. It seems to me that $\left(\sum a_n\right) \left(\sum b_n\right)$ is absolute converges so that are no Riemann issues with this.  Can any one enlighten me and explain why is this invalid?


How to enable Arabic support in GNOME terminal?

I'm trying to write Arabic in the terminal app but it does not recognize right-to-left text and does not bind the Arabic letters together as it should.  I tried this solution  but it did not work.  Are there any plans to implement Arabic support in the gnome terminal? KDE Konsole terminal works without any problems.


How to identify the caller of a (transient) executable?

Is there a generic way to do this? What if the executable is only alive for a fraction of a second and I can't even fire ps to catch it? And  the executable is not a script which I can add debug clauses into.  One example case is the following: I was poking around GNOME and watching syslog, for example, sliding the brightness slider and see some executable(/usr/lib/gnome-settings-daemon/gsd-backlight-helper in this case) being called to send brightness values to one monitor. I would like the command to send brightness values to all monitors, hence I am trying to find who calls it, ideally the whole chain of events.


I have a B1/B2 visa, can I visit my husband in the US?

I currently have a B1/B2 visa valid till 2020. My Husband is in the US currently working under his OPT. I would like to visit him on a tourist visa. Can I travel on my B1/B2 visa? Am I allowed to stay for 6 months or 1 year? Can I by any chance extend it from the US itself? Also do I need an invite letter/ sponsorship from my husband for me to travel on B1/B2 visa?


How to hide some references in biblatex?

I've almost figured out how to cite a multi-volume book (as per ). I've separated it into 3 entities - and then used Set to put it into bibliography.  @Book{Boncompagni_2_vol,   author="Boncompagni, Baldassarre",   title="Scritti di Leonardo Pisano matematico del secolo decimoterzo.",   address="Roma",    publisher="Tipografia delle scienze matematiche e fisiche",   date={1857/1862},   volumes = {2},   note="(in Lat.)" } @Book{Boncompagni_vol_1,   volume = {I},   title="Leonardi Pisani, Liber Abbaci = Il Liber Abbaci di Leonardo Pisano.",   date={1857},   pagetotal={459}, } @Book{Boncompagni_vol_2,   volume={II},   title= "Leonardi Pisani Practica geometriae ed opuscoli = La Practica Geometriae di Leonardo Pisano; Opuscoli di Leonardo Pisano.",   date={1862},   pagetotal={283}, }  @Set{Boncompagni_collection,   entryset={Boncompagni_2_vol, Boncompagni_vol_1, Boncompagni_vol_2}, }   However, the problem is that now I have 4 references showing up - 3 originals and 1 set. I've used the \nocite{*} to always show all references.  Is there a way to hide only 3 of those references while printing everything else?  EDIT: Well it seems that by using @Set I automatically get all the individual entries hidden. So this question itself is wrong. But it still applies if the @Set is not present.


Particle travel time in the double-slit experiment?

In the double-slit experiment, each bright fringe is the result of waves going through both slits and reaching the screen in phase. In other words the difference between the two paths lengths is an integer multiple of the wavelength. For all the fringes except the central one, one path is shorter than the other. In the single-particle experiment, can we time how long the particle takes to reach the screen? If so, what is the result?


LaTex produces the formula I want:    but it returns some warning messages. The is the code of the formula above, I don't know where is the mistake:  \begin{align} \mathbb{D} (k,n) = \frac{2}{n_q} ~\text{cos} \bigg(\frac{(n-1)(k-1)\pi}{n_q /2} \bigg) \cdot  \left\{ \begin{array}{c l l} 1/2 &  \mbox{if} & n=\{1, n_q /2+1 \}\\ 1   & \multicolumn{2}{l}{\mbox{otherwise}} \\ \end{array} \right \end{align}


Converting string with decimal to float & int doesn't result in same amount

I have written the following PHP snippet to show some weird PHP behavior.   <?php $amount = "9.95"; var_dump($amount); // string(4) "9.95"  echo '
';  settype($amount, "float"); var_dump($amount); // float(9.95) echo '
';  $amount = $amount * 100; var_dump($amount); // float(995) echo '
';  settype($amount, "int"); var_dump($amount); // int(994) ?>   I expected the last output to be 995, but instead the result is 994. Why is this happening? Online snippet:


I'm doing a sample test question in C and can't explain the 'right answer'.  The question is what is the output of:  #include<stdio.h> #include<stdlib.h> struct st{     int a;     char b; };  int main() {     struct st *st_ptr;     st_ptr = malloc(sizeof(struct st));     printf("%d\n",sizeof(struct st));     return 0; }   And possible answers  a) 8 b) 5 c) 0 d) none of the mentioned   I figured the answer was B (4 bytes + 1 byte) but they say the right answer is A (8 bytes).  Their explanation is: Maximum size of the data type is 4 byte(int) in the structure.  Can someone perhaps explain the right answer better?  Or is their right answer actually wrong.


Is it possible to create linearized PDFs (optimized for "fast web view") using TeX with free software? (I don't have Acrobat available.)


How to check if the result in int overflows and does not fit in a 32 bit signed integer?

I came across a question "Reverse the given Integer" But in constraints, it's given we have to check if the results fit in a 32 bit signed integer or not. Can someone help with how to check this?


Polynomial which fix set of integers with only 1 in base 10

Let be $A$ the set of integers non-negative which only have 1 in their base 10 expansion (e.g. $111111$, $11$, $1$).  I would like to find all polynomials $P \in \mathbb{C}[X]$ such that $P(A) \subset A$.  My intuition is that: only $P_k = 10^k X + \sum_{i=0}^{k - 1} 10^i = 10^k X + \dfrac{10^k - 1}{9}$ for all $k \geq 0$ are solutions.  But I'm not sure how to proceed.  I tried to let be $(u_n)_n$ the number with $n$ $1$ in its base 10 expansion, e.g. $u_n = \underset{n \text{ 1s}}{111111111\ldots111} = \dfrac{10^n - 1}{9}$.  And I know there is $(k_n)_n$ such that $P(u_n) = u_{k_n}$ by hypothesis.  Also, I know, for all $k \geq 0$, there is $j \geq 0$ such that:  \begin{equation*} 9P\left(\dfrac{10^k - 1}{9}\right) = 10^j - 1 \end{equation*}  Of course, such a polynomial must be in $\mathbb{Q}[X]$ by interpolation.  I would be tempted to try to evaluate $P(0)$ and use it to guess the good $k$ and show that it must be equal to $P_k$ over an infinite set (maybe asymptotically?).


How did the zombie outbreak start in the Walking Dead?

I'm wondering where and why the zombie outbreak began?


why does this works SOMETIMES in python ? (variable scope)

This doesn't work: (global name 'a' is not defined)  if True:   a = 3 else:   a = 4 print a   This works:  class A:   def f(self):     if True:       a = 3     else:       a = 4     print a  A().f()   This doesn't work: (global name 'a' is not defined)  class A:   def __init__(self):     a = 3   def f(self):     print a  A().f()   Why is it working in one case and not in another ? I thought that if it works in case (2) then it is because a gets in the class context, but this doesn't make it work in (3) I saw other discussions but I don't understand everything that is said and cases vary a bit.  EDIT:  example 1 does NOT work, at least in a python 2.7 interpreter. This is why it examples 1 and 2 are contradictory


Table Of Content : remove page number for item on the same page

I'm looking for a way to remove the page number of entries that are on the same page. I would like to avoid having repeated page numbers in the ToC.. but I've found nothing explicit enough.  Here's an example :   \documentclass[12pts, a4paper]{article} \begin{document} \tableofcontents \newpage   \section{Lorem ipsum}     dolor sit amet     \subsection{consectetur adipiscing}       elit. Donec a diam lectus.         \subsubsection{Sed}   \section{sit amet}    ipsum mauris. Maecenas congue[...] \newpage   \section{ligula}     ac quam viverra[...]     \newpage     \subsection{nec} \end{document}   So here, only the first section, the third section, and the 3.1 subsection ("nec") should have a pagenumber.


I've set up my user account so that no password is required to login and I need to install some updates.  However when prompted for the password, it says authentication failed if I leave the box blank.  I don't have a password, how am I supposed to authenticate?  EDIT  I tried the method in  but it came out with an error: Authentication token manipulation error password unchanged.  What does this mean?


Proof of "continuity from above" and "continuity from below" from the axioms of probability

One of the consequences of the axioms of probability ($\sigma$ field and probability axiom) is the "infinite subset" and "infinite union" property, I can't figure out how it follows from them.  if $A_1 \subseteq A_2 \subseteq \cdots$ then   $$P\left(\bigcup_{i=1}^{\infty}A_i \right) = \lim_{k \to \infty} P(A_k)  $$  If $A_1 \supseteq A_2 \supseteq \cdots$ then   $$P\left(\bigcap_{i=1}^{\infty}A_i \right) = \lim_{k \to \infty} P(A_k)  $$


WiFi gets disconnected after some time in Ubuntu 14.04

I'm new to Ubuntu (and any kind of linux distributions). Now, I'm using Ubuntu 14.04 and Windows 7 (dual boot) in my HP Notebook 15-r203tx.  The problem is that, connection to the internet using WiFi gets disconnected after some time. And, there is no such problems in Windows.  I'm not sure about the way Ubuntu works with the hardware drivers. I installed all the required drivers (related to network) in Windows and it is working fine. But, I did not install any drivers for Ubuntu (as I already said, I don't know the way Ubuntu works with hardware and its drivers).  What could be the reason for the issue? Do I need to install any drivers for Ubuntu?  Thanks in advance. It'll be a great help.  Edit:  Output of lspci -knn | grep Net -A2  0a:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be


I have tried and been twice refused to post what I consider to be a reasonable JavaScript-related question on Stack Exchange.  When refused, someone suggested the  site, which I thought was going to accept my question, but alas no.  I have noticed many helpful posts on Stack Exchange have a rejection notice lately, questions that have provided a useful answer to what I was looking for as a developer.


Deep learning model with both continuous and categorical features

I am working on a problem where the input contains both continuous and categorical features, and output is a numerical value.  I convert each categorical feature into a fixed-dimension vector by one-hot or embedding layer, and concatenate the generated vectors and continuous features. The concatenated vector is sent to fully connected layers. And the last layer outputs a vector with one dimension.  This approach may be intuitive and simple. Is there any more effective way to deal with input with both continuous and categorical features?


I'm doing a project where I need programming source code printed throughout a PDF, with syntax highlighting and keeping the original spacing and indentation intact so copy/pasting works. Because I also need the fontspec package, I can't use the answer from . I've been able to get it almost perfect with the listings package, but, although it prints the indenting fine, all leading indents/spaces aren't copyable!  I have tried most of the listings settings, many random hacks found online (most resulted in crashes or weird underscores rather than spaces), minted (crashed xetex (and yes, I am using --shell-escape)), verbatim, and verbments (crashed xetex also).  This is what I have so far:  \documentclass[12pt]{article}  \usepackage{color} \usepackage{fancyvrb} \usepackage{listings} \usepackage{textcomp}  \usepackage{fontspec} \setmonofont[Scale=0.8, Path=/usr/share/fonts/OTF/]{Inconsolata.otf}  %\setmonofont[Scale=0.8]{inconsolata} % can't find the font unless I do the above...  \lstset{     basicstyle=\small\ttfamily,     keywordstyle=\color{red},     identifierstyle=,     commentstyle=\color{blue},     stringstyle=\color{green},     showstringspaces=false,     tabsize=4,     numbers=left,     captionpos=b,     numberstyle=\tiny,     keepspaces=true,     numbers=none,     columns=fullflexible,     fancyvrb=true,     language=python     }  \begin{document}  And so we have the following...  \begin{lstlisting} # sample code def main():     i = 0     while i < 5:         print(i)         i += 1 \end{lstlisting}  \end{document}   Note that this appears fine on the pdf, but it loses the indentation spaces on copy/paste. Surely, by now, there is an up-to-date solution that will work with xelatex and not be pdf-viewer specific?


Can't use 'Ctrl' + 'A' in GNOME, after uninstalling Budgie desktop

I recently decided to switch back to GNOME from the Budgie environment. After purging Budgie successfully and setting up the default lock screen and splash screen, I am facing problems with some of the commonly used keyboard shortcuts. Ctrl (or Super) + A is no longer working (for selecting text in a file, search bar etc). Any fix? Thank you in advance.  Gnome Version: 3.36.8 OS: Ubuntu 20.04 - LTS


When contractions shouldn't be contractions

I was reading a comment that was made on SO that sounded strange to me     [That feature] should've better support in [the] next version   My first reaction to this was that it needs to be "should have" but since "should've" is a contraction of "should have" I was wondering if there's a formal English rule about this type of syntax or am I just wrong?


xslt concat text string before and after

I have the below xml:      <node1>     some text here     <newline/>     and some text here.     </node1>   the xml is 3rd party generated, hence can't modify it. I simply want to copy the text and ignore the <newline/>. Currently, I am getting the below output:      some text here<newline/>and some text here   While I want this output, replacing the newline tag with a whitespace:      some text here and some text here    Please help. Thanks!


How do I opt-out of the Social Security system?

How do I opt-out of the Social Security system and give up my Social Security Number? If I do this, am I then exempt from paying Social Security income tax?


Is there any way to get AMDGPU-PRO drivers working on Ubuntu 16.04?

I have an R9 380, which is supported by the driver. I followed all of AMD's instructions perfectly and everything seemed fine until I restarted. After restarting there was no video but there was sound. The only solution to this problem seems to be uninstalling the driver :/. Is there anyway to get the driver working? Any help would be great, thanks.


I need to find   $$ \int \sqrt{1-\sin (2x)} dx $$   I have a doubt in this: the square root is equal to $|\sin x-\cos x|$ can we integrate this without knowing the limits?


I'm working on integration and change of variables. I'm not sure about how to do an exercise by using spherical and cylindrical coordinates. I think I can understand the process just seeing how it works for the spherical ones.  Calculate the volume of the set between the cone $y^2\sin^2a=(x^2+z^2)\cos^2a$ and the sphere $x^2+y^2+z^2=b^2$.  First, I've replaced $x=r\cdot \sin\theta\cdot \cos\phi$, $y=r\cdot \sin\theta\cdot \sin\phi$ and $z=r\cdot \cos\theta$ in both expressions and I've obtained: $0=-r^2\cdot \sin^2\theta\cdot \sin^2\phi-r^2\cdot \sin^2a$ for the cone and $r=b$ for the sphere. Then, I thought of finding the intersection between the cone and the sphere: $y^2=b^2-x^2-z^2\Longrightarrow(b^2-x^2-x^2)\sin^2a=(x^2+z^2)\cos^2a$. By using $\sin^2a+\cos^2a=1$, I've got: $b^2\sin^2a=x^2+z^2\Longrightarrow b^2\sin^2a=-b^2\sin^2a=-b^2\sin^2\theta \sin^2\phi-b^2$ I don't know how to go on to obtain the limits for $\theta$ and $\phi$ since I think I have the value of $r$ ($r=b$), and I don't know if it's ok what I've done neither. Thanks!


Could Thanos have inadvertently 'snapped' himself out of existence?

Given the power of the unified Infinity Stones, had Thanos decreed half the universe out of existence without specifying himself as an exclusion?  Could he have accidentally wiped himself out?  The previous 'similar' questions referred to everyone else and not the bearer specifically.  The answer of this seemingly similar question : "It appears to be determined by the wielder"  But this doesn't answer the question specifically, although it says "...the randomness appears to be true randomness, but this is by conscious design".  But no where do we see Thanos excluding himself from this randomness.  Thus going back to the original question: Could he have accidentally wiped himself out?


Movie or tv series in 80s/90s which has a rooster wind vane set in a roof

When something is going to happen, it spins/rotate really fast. It's kind of a sci-fi/magic story. I don't remember much because I was maybe 7-10 years old when I watched it. It could be an Australian show.


Order of an element in a finite cyclic group

Let $G$ be a cyclic group of order $m$ generated by an element $a$.  I want to show that the order of $a^k$ is $m/d$, where $d:=\gcd(k,m)$.  I have a simple proof, but want to make sure I haven't overlooked anything since the other proofs I've seen (such as in Dummit and Foote) look more complicated.    The order of $a^k$ is the cardinality of the set $\{a^{ks}: s \in \mathbb{Z}\}$, which equals the cardinality of the set $\{a^{ks} a^{mt}: s,t \in \mathbb{Z} \}$ since $a^m$ is the identity.  But the set $\{ks+mt: s,t \in \mathbb{Z} \}$ is the set $d \mathbb{Z}$ by the basic properties of integers. So we have that the cardinality of the set is $| \langle a^k \rangle| = |\{1, a^d, a^{2d}, \ldots, a^{m-d} \}| = m/d$.


Was reading Wikipedia's proof that the maximum likelihood estimator of variance is biased. Here is a .  I follow the proof until the very last step. We have, $$\sigma^2-E[(\bar{X}-\mu)^2].$$ Noting that $\bar{X}$ is sample mean we rewrite this as, $$\sigma^2-E\bigg[\bigg(\frac{1}{n}\sum_{i=1}^{n}X_i+\frac{1}{n}\mu\bigg)^2\bigg],$$ but I don't see how it follows that this is equivalent to $\frac{1}{n}\sigma^2$.


Derivation of Maxwell's equations from field tensor lagrangian

I've started reading Peskin and Schroeder on my own time, and I'm a bit confused about how to obtain Maxwell's equations from the (source-free) lagrangian density $L = -\frac{1}{4}F_{\mu\nu}F^{\mu\nu}$ (where $F^{\mu\nu} = \partial^\mu A^\nu - \partial^\nu A^\mu$ is the field tensor).  Substituting in for the definition of the field tensor yields $L = -\frac{1}{2}[(\partial_\mu A_\nu)(\partial^\mu A^\nu) - (\partial_\mu A_\nu)(\partial^\nu A^\mu)]$.  I know I should be using $A^\mu$ as the dynamical variable in the Euler-Lagrange equations, which become $\frac{\partial L}{\partial A_\mu} - \partial_\mu\frac{\partial L}{\partial(\partial_\mu A_\nu)} = - \partial_\mu\frac{\partial L}{\partial(\partial_\mu A_\nu)}$, but I'm confused about how to proceed from here.  I know I should end up with $\partial_\mu F^{\mu\nu} = 0$, but I don't quite see why.  Since $\mu$ and $\nu$ are dummy indices, I should be able to change them: how do the indices in the lagrangian relate to the indices in the derivatives in the Euler-Lagrange equations?


Becoming Thieves Guild Guildmaster, am I bugged?

I've completed the Thieves Guild main questline () and chosen my special power (Shadowcloak of Nocturnal). It says completed in my quest log.  I also completed the  in each city you can give Thieves guild influence to (Markarth, Whiterun, Windhelm, and Solitude) and done their special jobs from Delvin. They show completed in my quest log. I've even done at least one of each kind of job from Vex and Delvin (but not in each city).  I got  in the Ragged Flagon and have done the quest for Tonilia (delivering the Moon Sugar to a caravan) and Vekel (getting the 4 books). I've also upgrade one of my pieces of Thief Armor.  I talk to  to become guild master and I get no dialogue options but he just says he's busy and we'll talk another time. There is a guild chest in front of his desk but it's locked and I don't have the key.  What am I missing? Is there some bug I've encountered?


How to download, modify, build and install a Debian source package?

If I want to make minor changes to the source code of a Debian package, how do I go about downloading, incrementing the package version, building the (modified) source, and installing it on my computer?


How is the initial permutation of DES created?

I am creating a program in C language with DES (Data Encryption Standard) functionality, but don't know how to apply the initial permutation.   Is it achieved by swapping the values? If "yes", then how is the index of the original message created?


In the below code I got a NullPointerException:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  timer.setInitialDelay((int) delay);   I tried to add     //timer = new Timer(0, null); long delay = dates.getTime() - System.currentTimeMillis();   timer = new Timer(0, null);   new TimerStart();   if (delay >= 0) {    timer.setInitialDelay((int) delay);    timer.restart();   }   to avoid the Exception, it works but doesn't trigger the timer ?  With this Example it works with timer trigger too, but how could it be corrected in the code above :  import java.awt.BorderLayout; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JSpinner; import javax.swing.SpinnerDateModel; import javax.swing.SpinnerModel; import java.util.Date; import javax.swing.Timer; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener;  public class SpinnerTest {   Timer timer;  Date date;  public static void main(String args[]) {    new SpinnerTest().startApp();  }   private void startApp() {  JFrame frame = new JFrame("JSpinner Sample");  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);   date = new Date();  SpinnerModel model1 = new SpinnerDateModel(date,null,null,0);  JSpinner spinner1 = new JSpinner(model1);   spinner1.addChangeListener(new CalendarListener());  spinner1.setEditor(new JSpinner.DateEditor(spinner1, "HH:mm dd-MM-yyyy"));   JLabel label1 = new JLabel("Times/Dates");  JPanel panel1 = new JPanel(new BorderLayout());  JPanel panel2 = new JPanel(new BorderLayout());   panel2.add(label1, BorderLayout.WEST);  panel1.add(spinner1, BorderLayout.CENTER);   frame.add(panel1, BorderLayout.CENTER);  frame.add(panel2, BorderLayout.WEST);   frame.setSize(200, 90);  frame.setVisible(true); }   private class CalendarListener implements ChangeListener {    @Override    public void stateChanged(ChangeEvent e)  {     JSpinner jSpinner = (JSpinner) e.getSource();     date = (Date) jSpinner.getValue() ;     long delay = date.getTime() - System.currentTimeMillis();     //System.out.println(delay);     timerStart();     if (delay > 0) {     timer.setInitialDelay((int) delay);     timer.restart();    }   }     }  private void timerStart() {      this.timer = new Timer(Integer.MAX_VALUE, (ActionEvent evt) -> {      System.out.println("okey");     });}    }


Is every subgroup of a finitely generated group also finitely generated? And if so does it have the same amount of generators?


Clicking to view the edit on a closed question makes it appear reopened

There's a bug that's currently occurring (at least on ). It's pretty simple:   Visit a closed question Let it get edited, so that the bar that says "an edit has been made, click to load it" appears. Click that bar.   The "[on hold]" in the title will disappear, as will the "put on hold" notice below the question - until you reload.


What exactly is "staging" and how does it fix DLL problems?

I am trying to install World of Warcraft under wine. I keep seeing an error about a missing dbghelp.dll and the only advice I can find makes oblique references to something called "3.3 staging". As far as I can tell it is some fork or flavour of wine or something.  What exactly is "staging" and how does it fix my DLL problems?


Creating command from some of the arguments to a bash script including whitespaces

I have a bash script that takes some arguments and uses some of them to loop over some action while some others (those of the form 'a=b') are passed to that action. Essentially, it looks like  args= numbers= for arg in "$@"; do     if [[ "$arg" == *=* ]]; then         args="$args $arg"     else         numbers="$numbers $arg"     fi done for number in $numbers; do     some_action $number $args done   So, for example, if I call it as script 1 2 3 a=b c=d, it runs  some_action 1 a=b c=d some_action 2 a=b c=d some_action 3 a=b c=d   The problem is with whitespaces. Sometimes I need to pass arguments like resume='5 8'. Once they are stored in $args, the distinction between spaces and arguments is lost, a call to script 1 2 resume='5 8' results in  some_action 1 resume=5 8 some_action 2 resume=5 8   so 8 is a separate argument. I tried to create the args string with newlines, using IFS='\n', but this somehow resulted in superfluous calls to some_action. Does anyone have an idea how to fix this?


Numbering exceeding the 26 letter alphabet

After reading this answer  I am unable to employ the alphalph package to replace the counter in either levels. See the code below:  \documentclass[letterpaper]{article} \usepackage{alphalph} % unable to use this package based on the answer given. \usepackage{enumitem} \setlist[enumerate,1]{label=(\roman*)} \setlist[enumerate,2]{label=(\alph*)} \begin{document} \begin{enumerate} \item      \begin{enumerate}     \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \item     \item      \item      \item      \item     \item      \item      \item      \end{enumerate} \end{enumerate} \end{document}   I have made the proper replacement but get no results:  \makeatletter \newalphalph{\alphmult}[mult]{\@alph}{26} \makeatother \renewcommand{\theenumi}{\alphmult{\value{enumi}}}


My username instead of my Gravatar in the top bar

A minor suggestion, but I actually loved having my username there. This would make icon size issues I've seen others complain about simply... go away.  I stole this idea from .


Add and remove ID like add class in JQuery

I have the folowing code that switches out a class on a div. I need something similar but with id. Is that done with get attribute? Not sure how this should be done but it should work the same as the code below in that a clicked link changes the ID..  $('#calendar-links a').click(function(e){     e.preventDefault();     var calendar_class = $(this).attr('data-class');     $('#calendar-links a').removeClass('active');     $(this).addClass('active');     $('#aecp-calendar').removeClass('all current future events').addClass(calendar_class); });


2 GROUP BY WITH DISTINCT , SUM , COUNT : PHP MYQL

Ref :   I got answer (thanks coytech ) but i need one more column in its :  as per :  id | mid | pid | owgh | nwgh | 1    3      12    1.5    0.6 2    3      12    1.5    0.3 3    3      14    0.6    0.4 4    3      15    1.2    1.1 5    4      16    1.5    1.0 6    4      17    2.4    1.2  7    3      19    3.0    1.4   i got answer      Select mid ,          COUNT(distinct pid) as cpid  ,          SUM(nwgh) as totalnwgh  from test  GROUP BY mid   sqlfiddle :   mid  cpid       totalnwgh 3      4          3.8 4      2          2.2    But above i need one more column that's as below : totowgh  mid cpid        totalnwgh  totowgh 3      4          3.8        6.3 (DISTINCT value as per pid column) 4      2          2.2        3.9   where totowgh = 6.3 come by DISTINCT value of owgh column  as per distinct pid column  mid = 3 has count 5 but distinct pid  = 4 for mid=3 same way "distinct" owgh = 6.3 for mid=3 and distinct pid.  As pid=12 , column owgh value 1.5 is twice ...hence its is count 1 time hence,  1.5 + 0.6 + 1.2 + 3 = 6.3 ( please not this is as per DISTINCT value of pid )  Please note : i need distinct owgh value as per distinct pid or group by pid .. because if i replace value of owgh 0.6 with 1.5 then it will be 5.7 instead of 7.2 but value of owgh 0.6 belong to pid = 14 and not pid = 12 hence totalcount of owgh change ...but i need is 7.2  SEE WHAT I MEANS   :