Short story about a collector alien that relentlessly chases man stuck on an island

I am trying to identify the book or the writer that wrote a story that is an anthology of sci-fi short stories from the 1950s, 1960s or 1970s. The anthology was as a hardback. An army man is dropped via helicopter on an uninhabited island, for training I believe. Upon exploration, he is discovers all the sizable animals on the island have had something done to them so that they are in suspended animation, not dead but immobilized and not moving. They are arranged in an exhibition like state. He sees upon an alien (I always imagined it as a big Dalek like thing) that makes a straight line for him and he realizes it is responsible for what happened to the animals. The alien is completely impervious to all his attacks and keeps coming at him, I think with a needle out to collect him. The man panicks and runs off setting traps to crush, stop or block the alien (including a rockfall) but to no avail, he is increasingly panicking and is on the run for 2 to 3 days on the island without sleep trying to stay ahead of the lumbering but relentless alien. We get a cut-shot perspective of the alien which was a robot that an alien race used and released it to collect animal specimen samples of a specific weight range and they left without switching it off. The alien collector has been steadily gaining on the man little by little and finally on the 3rd day, it catches up with the man and just before it attacks, it stops, pauses then it turns and moves on away from him, leaving him alone. The man's helicopter ride comes in and picks him up and the crew is shocked at how bad he looks and they exclaim how it looks like he has dropped 10 pounds of weight in 3 days! He also realizes that the only way to get away from the alien is if you can fly away from the island. Anyone know which story this is?


Can I visit a city in the US during layover if my port of entry was a different city?

I have an Indian passport and a B1/B2 US Visa and I am travelling to California.  While returning, my flight is via Dallas. Can I exit the Dallas airport on landing there and go through immigration again to catch my flight back to India?


How can I add 2 spaces to a block of code (indentation)?

I'm coding HTML in Notepad++. I want to Indent a block of code. I dislike the tab indentation and want to use 2 spaces instead. How can I add 2 spaces before a block of selected text/code?


I have 0.80$ credit and I need to use it in order to change my region, so I can buy more store credit, since my credit card is not from USA anymore I moved back  I need to find a way to use that amount, do you know any apps? how do I find an app in price order?


I have a big list of sentences, some of them are similar to each other but a bit different. something like:  [word1] [word2] [word3]  [word1] [word3]  [word1] [word2] [word3] [word4]  I would like to delete "duplicates" and get only one sentence. Just asking if it is possible in java?


Ubuntu Search showing uninstalled wine applications

I am using Ubuntu 17.10 and I uninstalled Hex Workshop.exe and Immunity Debugger.exe from my PC using wine uninstall.exe . Why do I keep getting them as a search result even though they are uninstalled ??? Is there a way to remove them?


what is the downside in using an old version if ubuntu ( 14.04)?

I have an old pc and it works perfectly with ubuntu 14.04 in newer versions it does not work that well, so I want to know exactly what is the downside and if I can continue to use ubuntu 14.04 , I'm a student and I only use it to programming and basic browser use like social media and youtube.


Length of varchar column - is there an advantage to using 255?

I often come across columns that are varchar(255), so presumably this is a convention of sorts. 255 is 2^8 - 1. So is there something 'magical' about lengths that are 2^n - 1? Or just specifically 255? Is there a performance or storage optimisation advantage to certain specific varchar lengths? Or is this just old wisdom which is no longer applicable to current versions of MariaDB and MySQL?


Bone parenting without offset using Python?

import bpy  ob = bpy.data.objects child = ob['cube'] parent = ob['armature'] bone = parent.pose.bones['bone']  child.parent = parent child.parent_type = 'BONE' child.parent_bone = bone  I wrote the script above to carry out bone parenting with Python. The parenting setting works correctly, but at the end, the child object's transformation will have an offset. How can I achieve bone parenting without offset?  Additional questions about batFINGER's answers. I tested the script. But I still get the offset. Did I make a mistake? I recorded two GIF to clarify the question. In the case of the parenting using operator, the cube's transform is maintained, but in the case of parenting using script, the cube's transform changed. Bone parenting using operator  Bone parenting using script    After creating an armature, change the bone transforms in pose mode. Operate bone parenting with cube & bone of armature. The ops method keeps the cube in place, but the script method changes the cube by the bone transform I want to achieve ops result using python script.  Result by ops (Ctrl+P/Bone after select cube and armature)  Result by script


Funky interactions of bbm and hyperref packages

I'm trying to use both the bbm (to write my preferred style of indicator variables) and the hyperref packages (to reference web URLs).  However, something strange seems to be going on whenever I use bbm in a subsection title. Any idea what might be going on here? Simple example:  \documentclass[12pt,titlepage]{article}  \usepackage{bbm} \usepackage{hyperref}  \begin{document}  \subsection{Model: Logistic Regression of $\mathbbm{1}\left[var\right]$}  \href{http://www.google.com}{This} is a hyperlink, and  this\footnote{footnote} is a footnote.  $\mathbbm{1}\left[x\in S\right]$ is an indicator in plain text  \end{document}   The math itself compiles to pdf just fine, as well as the body text, for that matter.  However, a red box tends to show up somewhere in the document (which goes away if I click somewhere in the .pdf). Further, my compiler (I'm using the LaTeXTools plugin to SublimeText 3 on Linux which operates on latexmk) gives me the following warning messages, which I've no idea how to interpret.   ./test.tex:8: Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref)                removing `math shift' on input line 8. ./test.tex:8: Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref)                removing `\left' on input line 8. ./test.tex:8: Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref)                removing `\right' on input line 8. ./test.tex:8: Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref)                removing `math shift' on input line 8.   If I exclude the mathbbm instance from the subsection title, the random red box still appears, but the warnings stop.


I was in a conversation with my senior engineer where he kept on insisting that we can use plural when we write down any unit. I argued that it is not the 'common' practice or even throughout my whole academic career (unfortunately) I haven't found any instance where there was any plural unit used in the text books. He argued that if I said that it was not correct then it should have a good reason for that.  When I searched for this topic I couldn't come to any conclusive decision. Such as  thread and the other links those have been referred there (some leads to English.SE). These answers gave me the impression that it is grammatically acceptable provided the right circumstances.  But I felt that it would be rather ambiguous to accept plurals on scientific and engineering notations.  For example we were talking about output rate of a boiler which is measured in $\mathrm{kg/hr}$. My senior said that it is okay if anyone writes $\mathrm{kgs/hr}$.  To me it looks ambiguous. If anyone writes $\mathrm{s}$ after $\mathrm{kg}$ it may give a plural sense but as well it may refer to second also. Moreover if anyone argues that this is acceptable in some cases (like $\mathrm{kgs/hr}$) then what would be the yard stick to find out accepted cases? For instance can we add $\mathrm{s}$ in $\mathrm{m/s}$ or $\mathrm{km/hr}$ like $\mathrm{ms/s}$ or $\mathrm{kms/hr}$?  There is , which has this .     the length of the laser is $5\ \mathrm{m}$ but not: the length of the laser is five meters   But I want to have more conclusive answer to which one is acceptable i.e. $\mathrm{kg/hr}$ or $\mathrm{kgs/hr}$ (or other similar instances).


Submitting a question directly when there is no feedback

Today John Chan . So now we are forced to see the review view again. I honestly can't recall the last time the review view of the ask a question page yielded anything useful to me. Hence I was very glad I could skip it by simply pressing enter in the tags tab. Can we please have this functionality back, perhaps as a privilege?


Show convergence of measurable functions is not induced by convergence of topology

Let X be the set of all measurable functions from $[0,1] \rightarrow \mathbb{R}$. On this set we can define pointwise convergence up to a $\mu$ null set.   Now I want to show that there is no topology, where the definition of convergence in said topology is equivalent to the pointwise convergence up to a $\mu$ null set.  I want to do this by constructing a sequence of measurable functions, where every subsequence converges to the same function, but the original sequence does not converge to the same function or not at all ( all up to a $\mu$ null set of course ). If I can construct such an example, this would prove that no such topology can exist, because topological convergence has to satisfy this property.  But I'm having trouble coming up with an example and am looking for hints on how to construct such a sequence of functions!


How can I receive a visual notification each time a process has finished in a terminal window?

I would like to always receive a visual notification when a process has finished in a terminal window. Example of such a process:  youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/....


How to randomly select three points in each polygon?

I have two layers: first layer includes polygons of districts, second layer containts points (phytocoenological relevées).  The goal is to create a new layer that will contain max 3 randomly selected phytocoenological relevées belonging to one district area (now, particular district contain 0-16 relevées).  I went through all QGIS vector selection tools but was not successfull in it..


Tufte like axis with pgfplots for log axis

I used the excellent code from TUGBoat issue 34 mentioned in this post  and was very happy until I tried to use it with logarithmic axis. The problem seems to be that the values stored in \pgfplots@data@xmin etc. are logarithmic.  \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document}      % automatically save the min and max value of the data     % this part is crucial for me since I do not want to find the min and max values manually in a large data file.     \makeatletter     \def\pgfplotsdataxmin{\pgfplots@data@xmin}     \def\pgfplotsdataxmax{\pgfplots@data@xmax}     \def\pgfplotsdataymin{\pgfplots@data@ymin}     \def\pgfplotsdataymax{\pgfplots@data@ymax}     \makeatother      % This adds the min and max values found above as extra ticks     \pgfplotsset{tufte extra ticks/.style={             extra x ticks={                 \pgfplotsdataxmin,                 \pgfplotsdataxmax             },             extra y ticks={                 \pgfplotsdataymin,                 \pgfplotsdataymax             },     }}        \pgfplotsset{         range frame/.style={             tick align=outside,             axis line style={opacity=0},             after end axis/.code={                 \draw ({rel axis cs:0,0}-|{axis cs:\pgfplotsdataxmin,0}) -- ({rel axis cs:0,0}-|{axis cs:\pgfplotsdataxmax,0});                 \draw ({rel axis cs:0,0}|-{axis cs:0,\pgfplotsdataymin}) -- ({rel axis cs:0,0}|-{axis cs:0,\pgfplotsdataymax});             }         }     }      \begin{tikzpicture}     \begin{axis}[     range frame,     xlabel={$L$ [H]},     ylabel={$\hat{I}_{DM}$ [A]},     axis lines*=left,     ymin=0.41,     ytick={0.7,0.9,...,1.5},     xtick={1.5e-3,2e-3,2.5e-3},     tufte extra ticks,     xmode=log, % <- comment this out to get a working example     ]     \addplot +[black, mark options=fill=black] coordinates {(948e-6,1.61981) (1.5e-3,1.02377) (2e-3,0.769047) (2.5e-3,0.614994) (3.2e-3,0.503511)};     \end{axis}     \end{tikzpicture} \end{document}   Is there a way to solve this problem if one or both axis are in log-mode?  Edit: tufte extra ticks has the purpose to create a tick for the minimal and maximal value of each axis as in the image below.


I've read a lot of articles and existing questions on stackoverflow. I've litteraly tried over 10 different pieces of code. It just doesn't work.  I've got a website, and I would like the footer to stick on the bottom no matter what. I mean, litteraly stick on the bottom. I do not want it to move with the height of the window of the browser. I want it to stay below all existing divs.  At the moment the footer is at the bottom of the page. But it moves with the height of the window of my browser. So, if I minimize my browser, the footer will move upwards with the height of the browser. I do not want that.  I've tried a lot, but it doesn't work. This is my current code:  body{ background-image: url('../images/bg.png'); background-repeat: repeat; margin: 0px; padding: 0px; }  body, html{     height: 100%; }  #body{ width: 1024px; min-height: 100%; margin: 0 auto; }  #footer{ clear:both; min-height: 150px; width: 100%; background-image: url('../images/footerbg.png'); background-repeat: repeat; }   The body ID is the wrapper. The footer is outside the body wrapper

           Edit: The problem has to do with one of the divs inside the "body" div. It is being positioned using an absolute position. Is there any way to get the footer stickied properly using Ryan Fait's method, whilst using an absolute position?  Edit #2: I forgot to use "clear:both". Solved it


Windows is keeping large files I opened once in physical memory, in standby. How can I stop this?

I'm using Windows 8.1 64-bit, have 16gb of physical memory, and I understand why Windows wants to do this, but my specific case is really odd and annoying.  For some reason, on occasion, when I open a several GB file once - even if it's only once in the lifetime of the file and only for a few minutes, even if it's just a video file - it puts that file into "Standby (Physical) memory", putting my physical memory usage over 80% - sometimes over 90%. The worst part is, is that the file never gets removed automatically - I have to either restart, or use RAMMap to clear it out.  I understand why Windows manages memory the way it does, and that memory is meant to be used - however this is a bit of a problem for me since it never seems to clear these files out of standby on its own - and my performance suffers a significant amount as a result. I have an adequate page file on my SSD, my ram doesn't have any errors - my issue is just that Windows is predicting the wrong files I need to keep in physical memory, and not removing them after I close the file.  Edit / Update:   Superfetch is disabled and has been for months. The pagefile is on an SSD. Process Explorer, RamMap, and HWiNFO all point towards these one time short use meaningless files being in StandBy, not in active memory (As shown in RamMap). When these files are removed from Standby - the physical memory usage goes down according to the tools listed above. My system doesn't 'think' it needs ram, and that's the exact issue at hand - it does need ram, and it's not clearing out the files using Standby memory unless I do it manually. As I said above, my memory usage can get to over 90% and sluggish, and not remove files Windows only needed once in the entire life of the file - instead preferring to remove files still needed in memory.   In summary: Windows is keeping files it doesn't need in memory, and removing files it does need when it asks for more ram. Why is this happening, and how do I fix it?  I'm not sure who marked this as a duplicate question, but the linked "duplicate" has nothing to do with my issue.


My regexp in Java is replacing too much text when the pattern matches multiple groups

With a string like so:  3 SOME STRING (remove me) 6 SOME OTHER STRING (also remove me!) 8 THIRD STRING (and me)   with the goal to strip away anything in parentheses and having the string turned into:  3 SOME STRING 6 SOME OTHER STRING 8 THIRD STRING    My best effort so far has been:  private String removeAnythingInParentheses(String input) {     return Pattern.compile("\\(.*\\)").matcher(input).replaceAll("").trim(); }   This however replaces too much of my string and leaves me with (I guess it matches the first parentheses to the very last in the string):  3 SOME STRING   I am sure there are some nifty features of Pattern and Matcher that I could use but I cannot figure them out...


I wanted to set an onmarkerclicklistener for the map, but I get:   "Attempttoinvokevirtualmethod'voidcom.mapbox.mapboxsdk.maps.MapboxMap.setOnMarkerClickListener(com.mapbox.mapboxsdk.maps.MapboxMap$OnMarkerClickListener)' on a null object reference"   I guess this is because I haven't initialized the map, but I dont know how to.  Anyone knows? Thanks!


screen video capturing (usability test) on mobile

I'm trying to figure out how to conduct a usability test upon a handset device (smartphone).  it seems there aren't many methods for screen video capturing of a user making use of an app.  Do you know of such methods? or alternatively how to conduct such usability test?


visiting visa for my mother to come to the uk

I leave in the uk with my husband and I just had a baby.  I want my mum to come viait for 3 month. my question is; does my mother need to submit any document from her like bank statement.  she does not work she is just a petty trade just to keep busy.


I am currently using a Boolean Modifier to animate half of object to disappear. I have already tried a fading away affect with a transparent Shader, but it takes about 5 hours to render each frame doing it that way.  Anyway, this is what happens when I render it. This is a quick test one, in low quality.  I am using cycles Render.


Regression using circular variable (hour from 0~23) as predictor

My question originally arises from reading this post .   Right now, I'm trying construct linear regression using "Bike Sharing dataset" from  which basically tries to regression bike rental count on different variables  One of the predictor that I have question is on using "Hour" of when the rental occurred, which takes value from 0 to 23. The original post suggests transforming the circular data (time of day) using sine function to maintain the circular characteristic.  I was trying to apply to same methodology to my situation to transform the Hour variable. However,transforming 0~23 using sin(π hour/180) lets 00:00 and 12:00 to have 0. But I think people will certainly display different behavior when renting bike at midnight(00:00) and afternoon(12:00)  In this case, is it better to just use 23 dummy variables to account for hour  or am I misunderstanding the concept of circular regression?


Why is the plural of 'nemesis' "nemeses" and not 'nemesii'?  and how does one pronounce "nemeses" different from "nemesis"?


Why "admit" with T but "admissible" with SS?

I have noticed that when the suffix -ible is added to "admit", it becomes "admissible" rather than "admittible". There are few other examples:  "omit" = "omissible" not "omittible". "permit" = "permissible" "transmit" = "transmissible"  These are words that end with it and have ssi in the suffixed forms. I didn't find other words that show the same pattern. Most it words don't have ssi forms in suffixed words. Also:  commit = commission emit = emission admit = admission  I know that S and T are both alveolar sounds (produced at alveolar ridge) but this relationship seems to be confusing. I googled a lot but didn't find anything helpful. I asked some people and they told me "because Latin did it", but no one seemed to know the reason. Does anyone know why the t changes to ss in these words?


I'm trying to insert a picture in the caption to illustrate something. How can I do that?  Currently, I use the following code, the tex engine prompts uncontrolled sequence error.  \caption{Some caption words. \raisebox{-0.4\height}{\includegraphics[width=1em]{fig}} some other caption words.}


How does the sun's surface conduct thermal energy from the convective zone to the corona?

How does the surface of the photosphere conduct thermal energy from the convective zone to the corona, while remaining at such a relatively low temperature itself?  It seems odd to me that the photosphere is wedged between the convective zone and the corona, both of which are millions of degrees in temperature, while the photosphere itself is observed to be much colder by comparison - approx. 5-10 thousand degrees.  Based on my understanding of convection, this would require thermal energy to jump from the convective zone directly to the corona, and somehow skip the photosphere surface material in-between.  Is there a different model of convection that explains this? Or is there a type of matter with thermal conductive properties that could accomplish this?  EDIT: Perhaps the convective zone is emitting heat as a different form of energy, such as electromagnetic - thereby allowing the outer layers to cool and sink in standard convection, but without directly heating up the surface of the photosphere.  Based on my understanding of the standard model of the sun, the following layers should be present:  Predicted:   The core A central area with pressures high enough to induce hot fusion of atomic nuclei The radiative zone A spinning ball of somewhat solid material surrounding the core, through which energy is conducted via radiation   Semi-observable:   The convective zone A layer of plasma surrounding the radiative zone, through which energy is conducted thermally via convection flows - millions of degrees in temperature This is the subject of some 2012 studies by NASA in coordination with various other reputable institutions, which observed that the sun's convection appears to be "anomalously weak"    Observable:   The surface of the photosphere The border between the convective zone and the corona - temperature in the ballpark of 5-10 thousand degrees The corona The outer plasma atmosphere, where flares take place - millions of degrees in temperature


I need to evaluate this series.Without using derivative.  $$A=\frac{2} {2^2} + \frac{4} {2^5}+ \frac{6} {2^8} + \cdots $$  Where the $i$ th member is calculated with the the formula below:  $$A_i=\frac{i} {2^{3i-2}}$$  Feel free to edit the tags please.Thanks for you help.


My teacher explained to me that we volume is an extensive property because it is additive in nature. But he also told us that pressure is an intensive property. Now according to the gas law equation $PV=nRT$, pressure is dependent on volume. Increasing pressure should increase volume. So shouldn't pressure be extensive as well.


Propositional Intuitionistic Logic Question

Show that it is not the case that if $\models \lnot (A\land B)$ then $\models \lnot A$ or $\models \lnot B$.   Show $\models \lnot (A\land B)$ is true and neither $\models \lnot A$ not $\models \lnot B$ is the case.  Consider the formula $\lnot (p\land \lnot p)$.   $\models \lnot (p\land \lnot p)$ then $\models \lnot p$ or $\models \lnot\lnot p$.   Show $\models \lnot (p\land \lnot p)$  is true and neither $\models \lnot p$ nor $\models \lnot\lnot p$ is the case.   $\models$ is for validity, the intutionist logical consequence.  $\models \lnot p$ if $W = \{w\}$, $wRw$, $vw(p) = 0$.


Time Travel story where an imprisoned psychopath kills people from his past?

I read a story some years ago (probably about 35) in an monthly sci-fi anthology...  It's set in a prison.  The main character is a psychopath who has sessions with a psychiatrist - in these sessions he always blames a person in his earlier life for his condition: uncle, father, mother, sibling... each time returning to his cell - time travelling to his earlier life and killing that person...   Example: He blames his father for leading him into bad ways - goes back in time and kills his father. Next session he blames his mother (and the fact that he grew up with no father in his life) - goes back in time and kills his mother.  Next session he blames a carer (and the fact that he grew up an orphan) etc...  The story had a very clever dénouement, which is hidden in a spoiler section below.  I would love to read this again - any ideas?    Edited to add: I hope I have explained the format sufficiently - the point is, the psychiatrist helps him to identify where he began to go off the rails and who in his life was responsible. Later when he is alone in his cell he goes back in time (the mechanism for this is not explained - it's as if he can will himself to go to that time) and kills the person identified as responsible.  When he attends his next session: his reality, his history, is different so another person has to be identified as the cause of his problems... the story has a Groundhog Day feel to it...  The final paragraph, the end of the story, has him       sitting once again in front of the Psychiatrist and as if it is suddenly dawning on him he looks up slowly, 'realising' that all his problems started when he first came to see this psychiatrist!  Thus leaving the reader in no doubt who will die when he later travels back in time to just before his first session with the psychiatrist...


How to force a web browser NOT to cache images

Background  I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML forms for events where they fill the fields (date, place, title, description, links, etc.) and save it. On that form I allow the administrator to upload an image related to the event. On the HTML page displaying the form, I am also showing a preview of the picture uploaded (HTML img tag).  The Problem  The problem happens when the administrator wants to change the picture. He would just have to hit the "browse" button, pick a new picture and press ok. And this works fine.  Once the image is uploaded, my back-end CGI handles the upload and reloads the form properly.  The problem is that the image shown does not get refreshed. The old image is still shown, even though the database holds the right image. I have narrowed it down to the fact that the IMAGE IS CACHED in the web browser. If the administrator hits the RELOAD button in Firefox/Explorer/Safari, everything gets refreshed fine and the new image just appears.  My Solution - Not Working  I am trying to control the cache by writing a HTTP Expires instruction with a date very far in the past.  Expires: Mon, 15 Sep 2003 1:00:00 GMT   Remember that I am on the administrative side and I don't really care if the pages takes a little longer to load because they are always expired.  But, this does not work either.  Notes  When uploading an image, its filename is not kept in the database. It is renamed as Image.jpg (to simply things out when using it). When replacing the existing image with a new one, the name doesn't change either. Just the content of the image file changes.  The webserver is provided by the hosting service/ISP. It uses Apache.  Question  Is there a way to force the web browser to NOT cache things from this page, not even images?  I am juggling with the option to actually "save the filename" with the database. This way, if the image is changed, the src of the IMG tag will also change. However, this requires a lot of changes throughout the site and I rather not do it if I have a better solution. Also, this will still not work if the new image uploaded has the same name (say the image is photoshopped a bit and re-uploaded).


Help on Problem 15 Chapter 1 of Hungerford's Algebra

Problem 15 of the first chapter, Groups, in Hungerford's Algebra states  Let $G$ be a nonempty finite set with an associative binary operation such that for all $a, b, c \in G$ , $ab = ac \implies b = c$ and $ba = ca \implies b =c$ . Then G is a group. Show that this conclusion may be false if $G$ is infinite.  It can be deduced from this that the inverse and the identity element are unique, but I can not understand how to attack the problem to prove $G$ may not be a group if it is infinite. How to approach the problem?


Can't dual boot Ubuntu, Windows boots directly

I had not  any problem dual booting ubuntu before. Once I opened BIOS the dual boot menu was gone. It directly boots Windows now.  I didn't change anything in BIOS. How can I fix this? Thank you.


Centering graphics without indenting lines afterwards

Is there a way to nicely place a  graphic on a separate new line and  centering it there, without using a \begin{center} environment, which wraps around the graphic ?   I don't want to use that environment, as it produces an indentation in the line after the graphic - see  question of mine for an MWE (attention, graphic is missing as I can't link to a picture on the net, so it won't directly compile).     Alternatively I'd also be happy if someone could provide me with a command that does the same as placing \noindents after each of the \begin{center} environments (an no, a placing a million of those isn't the solution :)).  Thanks.


Will self-citation be viewed as self-promotion in academia?

As we know, citation counts are important to judge one's research activity. Is it good to cite one's previous works? Will it be viewed as an act of advertisement or self-promotion?


How do I check where the file in .Trash was removed from?

I've some files appearing in Trash folder. How do I check from where they were removed?  I've Tried 'Get Info', but it doesn't tell me from where it was removed. The only option I've is 'Put Back', but again, to where?  How do I check this on OS X 10.9?


Advanced methods of theoretical condensed matter

I am looking for an online course devoted to the advanced methods of theoretical condensed matter physics. It is good if the course offers free materials like lectures, homework assignments etc.  Things to be covered:   Functional integral methods equilibrium and non-equilibrium Green's functions Perturbation theory and Feynman diagrams Applications to bosonic and fermionic systems


The full question is  Prove that if G is a cyclic group with more than 2 elements, then there always exists an isomorphism ϕ:G→G that is not the identity mapping.I have no idea where to start?


I am trying to write some code, where in it i need to fill in a matrix and make it the identity matrix and i decided to make this matrix a list of n lists, where each nth list is a row.  I=[]  row=[]  for i in range (0,n):     row.append(0)  for i in range (0,n):     I.append(row)  for k in range (0,3):        I[k][k]=1   I expected this code to put 1's in the matrix's diagonal,  where the diagonal are the I[k][k] elements, k=0,1,2. But in the 3rd for loop, where i am replacing the 0's in the diagonal by 1's, in each step, instead of making I[k][k]=1 it makes  I[0][k]=I[1][k]=I[2][k]=1 and I end up with a matrix with every element equal to 1.  My question is not how to make a identity matrix in python, or any matrix, my question is, why is the 3rd for loop doing that, clearly I[k][k] are diagonal elements, why is it making other non diagonal elements equal to 1?


$$\sum_{n=0}^{\infty} n \left( \frac{2}{3} \right)^n = ?$$  How to find it? If it lacked n before fraction, I would use formula for the sum of geometric series.


Seeking a layman's guide to Measure Theory

I would like to teach myself measure theory. Unfortunately most of the books that I've come across are very difficult and are quick to get into Lemmas and proofs. Can someone please recommend a layman's guide to measure theory? Something that reads a bit like this , starts out very gently and places much emphasis on the intuition behind the subject and the many lemmas.


Is "Agreed." a complete and correct sentence?

Is it correct to write,  Agreed.  instead of,  I agree.  I am confused by this single-word sentence.  Why is it in the past tense?  Or is "Agreed" a (past-participle) adjective, like "Gone" or "Done"? Can I thus write,  Concurred. Consented. Withdrawn. Been.  Sample conversation:  He: "Agreed." is a complete sentence. She: Concurred.


Proving a direct product of groups is a group

I am trying to prove the following and am looking toward the math.stackexchange community to comment on whether I am on the right track or not. Thank you in advance.    Let $n \geq 1$ be an integer. Suppose $\{G_1,...,G_n\}$ is a finite set of groups. Define the set $G = G_1 \times G_2 \times ... \times G_n$ of ordered n-tuples $(g_1,g_2,...,g_n)$ where $g_i \in G_i$. Show that the operation $\bullet$: $G \times G \rightarrow G$ given by $(g_1,g_2,...,g_n) \bullet (g'_1,g'_2,...,g'_n) = (g_1g'_1,g_2g'_2,...,g_ng'_n)$ makes $G$ into a group.    Proof of associativity: $((g_1,g_2,...,g_n) \bullet (g'_1,g'_2,...g'_n)) \bullet (g''_1,g''_2,...,g''_n)$ = $(g_1g'_1,g_2g'_2,...,g_ng'_n) \bullet (g''_1,g''_2,...,g''_n) $ = $(g_1g'_1g''_1,g_2g'_2g''_2,...,g_ng'_ng''_n)$ = $(g_1,g_2,...,g_n) \bullet (g'_1g''_1,g'_2g''_2,...,g'_ng''_n) = (g_1,g_2,...,g_n) \bullet ((g'_1,g'_2,...,g'_n) \bullet (g''_1,g''_2,...,g''_n))$  \  Proof of the existence of an identity For each $G_i \in G$, take its identity element $e_i$ and multiply it as follows: $(g_1,g_2,...,g_n) \bullet (e_1,e_2,...,e_3)$ = $(g_1,g_2,...,g_n)$.  \  Proof of the existence of an inverse: Since each $G_i \in G$ is a group, simply takes its multiplicative inverse $g_i^{-1}$ and multiply it: $(g_1,g_2,...,g_n) \bullet (g_1^{-1},g_2^{-1},...,g_n^{-1}) = (e_1,e_2,...,e_n)$.


What are the ways to solve cubic equations?

Cubic equations of the form $ax^3+bx^2+cx+d$ can be solved in various ways. Some are easy to easy to factor in a pair, for some the roots can be found out by trial-and-error, some are one-of-a-kind, some can be reduced to a quadratic equation. A compilation of all possible ways to solve cubic equations would be very helpful for students and learners.


proving that formulas are theorems using deduction theorem

I'm working in $L_0$ I know I have to use the three axioms and inference rule. However, I'm finding it difficult to prove that $(\neg \alpha \rightarrow (\alpha \rightarrow \beta))$ is a theorem.  I find it very fiddly and unintuitive - as if I just have to sort of plug in random formulae and combine them to get what I need.  Any advice would be appreciated.


I need to know how to find the reflector H of Householder such that if $v= \begin{pmatrix} 3\\ 4\\ 12 \end{pmatrix}$ then $Hv=\begin{pmatrix} 0\\ 0\\ 13 \end{pmatrix}$  I've been reading a bit about it, but usually they focus on removing all the components except the first one, but it's not my case. Could someone help me solve this and give me a simple way to understand this?  Thanks!  Edit:  Let me tell you what I have:  my Householder vector u is $\begin{pmatrix} 3 \\ 4 \\ 12\end{pmatrix} - \begin{pmatrix} 0 \\ 0 \\ 13\end{pmatrix} = \begin{pmatrix} 3 \\ 4 \\ -1\end{pmatrix}$  , then, I use it to build $$H=I-2\frac{u \times u^T}{u^Tu}$$ , but at the end, when I multiply $𝐻𝑣$, I don't get what I want. What am I doing wrong?


Syncing OneDrive by mirroring the local folder to the cloud not the cloud to the local folder

I want OneDrive to have the exact files and folder structure of a folder on my local computer. Syncing OneDrive causes the files in the cloud to download and only uploads files that I add to the local folder while the OneDrive app is running. How can I make the local folder unchangeable and the Cloud folder mirror from the local folder by uploading local files that aren't in the cloud and replacing or duplicating the files into the cloud from local files that have the same name and location in both local and cloud drives and different hash values?   Please note: The folder is almost 160 gigs and I currently only have access to a very slow connection so I have to keep the files that are already uploaded and can't just recopy the entire folder into the cloud like when I had fiber optic.  The folder contains 18,873 Files so manually comparing files is also not possible.     To future readers with the same problem: Using the command net use described in the duplicate problem will not allow replacing the cloud version with the local version because it maps the drive as if using the onedrive app(where OneDrive automatically downloads synced folders:      Whereas the way described below maps the drive as I needed:


Is the unit circle homeomorphic to the unit square?

Let $S_1:=\{(x,y\in\mathbb{R}^2:x^2+y^2=1\}$ and $S_2:=\{x,y\in\mathbb{R}^2:\max\{|x|,|y|\}=1\}$ be endowed with subspace topologies induced by the usual topology on $\mathbb{R}^2$.  Then open sets in $S_1$ and $S_2$ are unions of open intervals in $S_1$ and $S_2$ respectively.  Partition $S_1$ into four arbitrary non-empty disjoint open sets $A,B,C,D$ and four distinct points, $a,b,c,d$.   Similarly, partition $S_2$ into four disjoint open sets $A',B',C',D'$ and four points $(1,1), (1,-1), (-1,-1), (-1,1)$, where $A'$ is the right vertical side of the square, $B'$ is the bottom side of the square, etc.  Let $f:S_1\rightarrow S_2$ be a function such that $f(A):=A',f(B):=B',f(C):=C',f(D):=D'$, and $f(a):=(1,1),f(b):=(1,1),f(c):=(1,1),f(d):=(1,1)$.   It seems that $f$ is bijective and continuous, and $f^{-1}$ is also continuous, but I can't give a rigorous proof.


In what order would light bulbs in series light up when you close a long circuit?

For a few days, I was thinking of this question.  Lets assume we have a simple circuit that is 100 meters long. And lets say that we have bulbs A, B and C connected to the circuit's 30th, 60th and 90th meter relatively (from the + side). When we switch the system on, would all the bulbs light up at the same time? Or would A light up first and C last (or the opposite)?


Reading the Hammack "Book of Proof" Section 2.3  He lists grammatical constructions that are the same P=>Q  Most of them make immediate sense:   If P, then Q  Q if P Q whenever P Q, provided that P Whenever P, then    also Q P is a sufficient condition for Q For Q, it is a sufficient that P   But there are three more that I have more trouble parsing.  Q is a necessary condition for P Every time I interpret it as 'Q being a necessary precondition of P',  thus Q=>P.   I guess I shouldn't read it as a causal "Q happens and makes P possible"  but more like, "if you have the P-is-true condition, then you must have Q-is-true condition too"    For P, it is necessary that Q Again I read this initially as Q=>P, but I guess my mistake is that I'm reading these sentences as causal instead of of describing the states of P and Q.   ('P is true, thus is necessary that Q is true')  P only if Q Again, as a condition of state, "you can only have P is true if Q is also true"  I'm trying to figure out my base error here, and I think it's that I'm reading these sentences as describing a causal relation rather than a description of how the states are required to be.    Is there any better way to explain this?


Find the value of $\tan(x+100) = \tan(x+50)\tan(x)\tan(x-50)$

Find the value of the expression $\tan(x+100) =\tan(x+50)\tan(x)\tan(x-50)$   This question has been bothering me for a while. Had it been $60$ instead of $50$, I could have written it as $\tan3x$. I'm not able to proceed at all. Would someone please help me to solve this question in a short and elegant method?


Recommender system based on purchase history, not ratings

I'm exploring options for recommender systems optimized for the insurance industry, which would take into account  i) product holdings  ii) user characteristics (segment, age, affluence, etc.).  I want to stress that  a) there are no product ratings available, thus collaborative filtering is not an option  b) recommended products don't have to be similar to products that have already been purchased, thus item-to-item recommendations are most probably not relevant.  Keep in mind that in insurance you rarely want to recommend similar products to those already purchased ones, as someone with the Car insurance is unlikely to want to buy another Motor product, rather Home or maybe Travel, etc.   That's why I want to develop recommendations on similarities between the users based on their purchase history and/or demographics  Ideally, I'd like to be able to implement it in R, if not possible, then in Python. Thanks for help and suggestions!


I want to bind Super+I/J/K/L keys to arrows. Let say if I press Super+I it would be the same as pressing ↑. If I press Super+K it would be the same as pressing ↓.  I have edited /usr/share/X11/xkb/symbols/myLayout before for switching other keys, but I don't know how to bind the Super modifier (I had no problem with the shift or the AltGr modifiers because they corresponded to different levels).  The question is, how to bind Super+I/J/K/L to arrows (↑, ↓, ←, →)?


Sum of the digits of the sum of the digits of the sum of the digits of $4444^{4444}$?

I am told this may be connected to the properties of numbers modulo 9.   Thank you.


Where are the database username and password stored?

I'd like to send my Drupal installation to a colleague, but I don't want him to see the username and the password of my database. Where are these informations stored?  I've seen that the username and the password are written in sitename/sites/default/settings.php, but is it the only file with these informations? Is it sufficient if I change the username and the password in this file and then send my colleague all my Drupal files and my database?


Why is area of a surface of revolution integral $2\pi y~ds$? not '$dx$'?

For me, intuitively, integral $2\pi y~dx$ make more sense. I know intuition can not be proof, but by far, most part of math I've learned does match with my intuition. So, I think this one should 'make sense' as well. Probably I didn't understand the way surface area is measured. It will be great if any one could tell me how 'integral $2\pi y~dx$' is wrong. (By the way, how to use mathematical symbols in texts?)


Specifically prevent unawarded bounty from going to unsatisfactory answers

I recently put a bounty on a question regarding the . I did this as the only two answers on that page are not satisfactory and I wish to encourage a tractable answer.  I am concerned that when the bounty period expires, if I do not select an answer for the bounty that it may be awarded automatically to one of these speculative and unsatisfactory answers. How might I prevent that? I could put an answer of my own stating "no satisfactory sources are available" and award the bounty to that, however I feel that there should be a better way.  I stress that I put the bounty on the question specifically because the current answers are not satisfactory and I do not want to award them.


I need to copy all jpg files from a directory in linux

I want to copy all the jpg files from a directory to another directory. How do i make to copy all files finishing in jpg?


Let $a, m, n\in\mathbb{N^{*}}$  With $m>n$. Show $${{(a^{2^m}-1,a^{2^n}+1)=a^{2^n}+1}}$$$$$$My thoughts: If we could show that $$(a^{2^n}+1)\mid (a^{2^m}-1)$$ the property that gcd says "If  $\;a\mid b\Longrightarrow (a,b)=a$" I can not work well with two unknowns in number theory.


How can I read an entire file into a string in C++?

What is the fastest way to read a text file into a string variable? There can be many possible ways in which it can be done, but I am asking for the fastest.   In my case, I've a txt file which can contain upto million entries. This file would contain a word in each line, and I need to operate on each word.


If an object moved 5 meters in a second, how can its velocity be 10 m/s?

On physicsclassroom.com, an assignment gives data for an object experiencing acceleration:    This is the corresponding chart for the object's velocity:     At $0$ seconds the position of the object is $0$ meters.  And the velocity is $0$ m/s which makes sense.  After $1$ second, the object has traveled $5$ meters.  The chart says its velocity is $10$ m/s at this time.   How is this possible if the object only travelled $5$ meters within that second?  Shouldn't the velocity be $5$ m/s and not $10$ m/s?


Remove spam referals from Google Analytics organic traffic report

I've got some referral spam showing up in my Google Analytics organic traffic. Usually I just ignore it but because it's showing up in my organic traffic and it's pushing up my bounce rate as the referral spam has a 90-100% bounce rate whereas my normal traffic has a 40% bounce rate.   How can I remove the referral spam, from being tracked? The spam referral search phrases are:   с.новым.годом.рф     how.to.travel.and.make.money.online.for.free.with.maps.ilovevitaly.com


The difference between discrete and continuous variables

Is the number of hydrogen bonds or the number of rings in a molecule a discrete or a continuous variable ?   Can I say that the number of rings: 1, 3, 4, $\dots$ is a continuous variable because in theory this number could rise up to infinity?   On the other hand it can only take integer values so....is it discrete then ?


Shimano Deore front derailleur occasionally sticking

I have a question about my front derailleur sticking occasionally.  I've had this bike for a 1.7 years and have ridden it through 2 winters.  It has only been after this last winter that my front derailleur has been sticking on occasion where it's like grit has jammed in somewhere (which I'm sure it is the case).  When I'm on the fly I just knock it with my heel and it will downshift and I can push the shifter hard enough to go back up when I need to.  The first time I decided to overhaul both the front and back ones.  Took them apart, cleaned/degreased, regreased the two back cogs, and used WD-40 professional silicone on the rest of the parts as to not attract more dirt.  Then after about a month it got stuck again, and I couldn't see anything that could be jamming it (while it was still stiff as heck).  Didn't take it apart this time just used a tooth brush and silicone again and it's fine at the moment.  I'm assuming it may be that since that the roads have been grittier/dirtier from the winter with some recent rain and slush that it may just be normal.  I haven't been on the trails yet this year so I know it's not that.  Is this normal, has some kind of bur that I can't see come up and is catching grit?  EDIT:  I should also note that this is a hardtail mtb that I use for trails and winter commuting (a lot of salt and grit on the roads).


A writer for one of the company websites is fond of randomly capitalising words in their content, which they say is for emphasis.  I have never seen this before and I don't like it. My gut tells me that anybody reading their content is going to be tripped up by finding capital letters where they don't expect them (like I was).   I am looking for supporting evidence for this please? I don't want to shut them down just because I think it looks silly. I want to back it up with evidence.  Examples:     At Company Name We make sure that your International transition is seamless         Get your free quote Now!


What is the easiest explanation for how the symmetry of laws under translation in time relates to energy conservation in physics?


Proving Gauss' polynomial theorem (Rational Root Test)

Let $P \in \mathbb{Z}[x], P(x) = \displaystyle\sum\limits_{j=0}^n a_j x^j, a_n \neq 0$ and $a_0 \neq 0$; if $p/q$ is a root of P (with p and q coprimes) then $p|a_0$ and $q|a_n$  I've managed to prove the first part ($p|a_0$) and I suppose I'm not far from proving the second, though I'd really like some feedback since I'm just starting with making proofs of my own.  Proof:  $P(x) = a_n(x-p/q)\displaystyle\prod\limits_{j=2}^n (x-r_j)$, with $r_j$ being the other n-1 roots of P(x).  It follows that $a_0 = a_n(-p/q)\displaystyle\prod\limits_{j=2}^n (-r_j)$  Then, $-p/q|a_0$ and obviously $p/q|a_0$. Rephrasing, $a_0 = l\frac{p}{q} = \frac{l}{q} p$ with $l \in \mathbb{Z}$.  This implies $p|a_0$ if $l/q \in \mathbb{Z}$, but this is trivial since $q|lp$ and q and p are coprimes, so $q|l$.  Therefore, $p|a_0$.  As for the second part, we want to see that $q_i|a_n \forall i \leq n$.   We define $d$ as the least common multiple of $\{q_1, q_2,...,q_n\}$. Then, $q_i|a_n \forall i \leq n \iff d|a_n$.  Also, it follows that $d|\displaystyle\prod\limits_{j=1}^n q_j$, so we want to see that $a_n = l \displaystyle\prod\limits_{j=1}^n q_j$ with $l \in \mathbb{Z}$. Here's where I have my doubts with the proof as I have no way to show that l is indeed an integer.  Rearranging the previously given equation for $a_0$:  $a_n = a_0 \displaystyle\prod\limits_{j=1}^n \frac{-q_j}{p_j}$  Using the previous reasoning, as $p_i|a_0 \forall i \leq n$, then $a_0 = k \displaystyle\prod\limits_{j=1}^n p_j$.  Replacing $a_0$:  $a_n = k \displaystyle\prod\limits_{j=1}^n -q_j$, which is equivalent to $q|a_n$ as shown earlier.


Is there a way to stop Python including all it's threads from the code?

I am trying to stop a script I wrote automatically but I can't find a way to stop the threads as well as the main code. import time import threading import sys  def thread():     while True:         print('hi')         time.sleep(2)          t1 = threading.Thread(target=thread) t1.start()  print('using sys.exit() in 5...') time.sleep(1) print('4') time.sleep(1) print('3') time.sleep(1) print('2') time.sleep(1) print('1') time.sleep(1) sys.exit()  This is a dummy code^. I'm no expert in python and I only know the basics. Is there a way and if so, how? Thanks!


How is English Premier League order position determined if teams are tied?

If two teams in the Premier League are tied on goal difference, goals against, have scored and conceded the same number of goals, how is the order of their position determined?


Remove impossible badges from per-site metas

Per-site metas lists some badges that are impossible to get. For example  lists:         But these are impossibly to get because per-site metas do not support bounties, were not in a beta stage or Area 51 proposals. I therefore suggest that these badges are removed from the per-site metas. They have no function and they are confusing. There are already badges that are unavailable on per-site metas but available on the main sites:    Convention Quorum  This seems to suggest that per-site metas should only contain badges that can be possibly awarded.


Alternatives to a train-test split with a small data set

Let's say I have a small data set (~50 observations) and 50 or so explanatory variables, and I want to develop a linear model for the sake of prediction. First, I want to construct a correlation matrix or a variable selection technique to select a smaller number of predictors to include within the model. However, I'm wondering what would be the appropriate action when attempting to train the model and checking whether it has predictive power? train-test data split? cross validation? what would be the best could of action with a small dataset and large number of explanatory variables?  Tagged w/ R because I'll be using R to conduct analysis.


flagged comments disappear instantly ... what's going on?

I've noticed this happening recently:  when I flag useless comments, they seem to disappear get burninated immediately.  My guesses:   they only disappear for me each of my flags has coincidentally made the post hit the automatic deletion threshold  they actually disappear get burninated because I'm awesome something else?   What's really going on?


A check with the spelled out amount left out

I received a check with the amount filled in as a number say $2000 but the spelled out portion (which should have been "Two thousand and 00/100") left blank. This was an oversight by the sender (out of state).  Question is can I spell out that number myself? Is that legal and acceptable to the bank? Instead of sending the check back to the original check writer I want to fill in the blank. Is it acceptable?


Allow customizable "magic links" on a per-site basis.

When writing comments, you can type certain "magic links" to link to common help pages. For example, if a new post is lacking a minimal, complete and verifiable example, I can just write  Please provide an [mvce].   And this will be replaced with the appropriate link. This is extremely convenient on Stack Overflow.  However, lots of the smaller sites have their own frequently used help pages. For example, on one of the sites I'm most active on, Programming Puzzles and Code-Golf, we have a meta post called  where users can post challenges to get constructive feedback on how to make their challenge better. If I want to point a user to the sandbox, I have to open a new tab, search for the sandbox, copy and paste the url, and enter the hotlink syntax. It would be a lot more convenient if I could just write:  You should try posting this challenge to the [sandbox].   And the same idea is applicable on all of the smaller sites. Now, there are a lot of links like this that could be useful. Each site probably has a better picture of useful links for that site than anyone else would.   I propose we add a method to customize this for each site. A moderator can add a shortcut to a list of site-specific shortcuts like this:  [sandbox] = http://meta.codegolf.stackexchange.com/questions/2140/sandbox-for-proposed-challenges/ [unicorns] = http://meta.stackexchange.com/questions/37328/my-god-its-full-of-unicorns [addiction] = http://meta.stackexchange.com/questions/11652/how-addicted-to-stack-overflow-are-you   And then if someone types one of the magic links on that particular site, it would hyperlink to the specified page.


How to disable Windows 10 NTFS write lock due to faulty "Fast startup" option from other Ubuntu machine

Suituation: Windows 10 itself is broken and wouldn't startup anyhow. I have Ubuntu 18 Machine. The drive is absolutely healthy but mounts in readonly mode. I've managed to find out that in happens due to special Windows 10 feature called "Fast startup" (may be I'm wrong). Anyway. There are many answers that in general begin with something like "Boot your Windows...". But I cant't, its totaly ruined and ends up with BSOD.


I am looking for good proofreading methods for latex. I am just writing a thesis and my supervisor is not familiar with latex. So at the moment I am giving her either a PDF or printed document to use adobe commenting function etc.  Are there any better ways comparable to the MS word "review/track changes" functions?  Would maybe Lyx be an option?


overfull \hbox ..with figures (like to do If scale>width, use max width)

Well, I'm having a problem with figure.  I'm using figures like this:  \begin{figure}[!ht] \centering \includegraphics[scale=1]{\importacaodedados importacaodearquivos.png}  \caption{Importação de Arquivos.} \label{fig:importacaodearquivos} \end{figure}   And I'd like to know if there is a way to IF the scale=1 exceeds the text width, use [max width = \textwidth]  It would be really better if there is a way to put it in the style file. so I won't have to change every figure in the manual. (There are more than 140. Not all of them exceed the text width.)


what changes are done, while rooting an android phone?

I've rooted my phone running 4.2.2 jb through computer (I tried all mobile rooting apps but nothing worked for me)  I want to know what's the difference rooting program did?has it switched me to root user? To do that something has to be changed. Then what is it?


How to get priority acknowledged, when a paper in mathematics is a special case of your own paper, but it does not cite your work?

I am a researcher in Mathematics and I have recently found that it has been published a paper X whose main result is a (very) special case of a result of mine, which has been published more than an year ago. From the journal log, I can also see that paper X has been submitted after my paper has been published.  However, the author of the paper X was not aware of my previous result, indeed she did not cite my paper.  I am wondering if it would be possible to make the journal of paper X acknowledging my priority on the result, and in such a case how to do so.  I have often seen journals publishing short notes with the title "Acknowledgement of priority", in which it is explained that a published result was already proved by someone else, but I have no idea of how it works.  Thanks for help.  UPDATE: I wrote to the author of the paper and I have got no response.


Why does Chewbacca’s bowcaster fire red projectiles?

Chewbacca’s bowcaster is firing red projectiles in Episode VII. As far as I can remember from movies, shows and games bowcasters only fire green projectiles.    A Wookiee firing a green projectile from a bowcaster in Star Wars: Episode III (at about 50 minutes)  Why does Chewbacca’s bowcaster fire red projectiles in The Force Awakens? Is there more information about this bowcaster? Have there been others that I did not notice?  A related question:


Remove or retag [kepler] and [indigo] tags

There are tags such as  and  which clearly seem to be eclipse versions and there are already tags for them .  There are no users who have starred these tags and neither are there any questions posted under it. Shouldn't they be marked as synonyms or deleted?


How can I calculate the distances between my points in sequence automatically?

I am trying to measure distances between points and writing the calculated measure between these points in the attribute table.   The points represents a vehicle's location based on GPS data according to existence location in time aspect. I could add the longitude and latitude data from Excel to a shape layer.       After creating shapefile, I could be able to measure the euclidean distances between the nodes, but if I will do the calculations manually, I might need to have immortal life.   How can I calculate automatically the distances between the nodes and write the calculations in my table or Excel or CSV data.  the distance will calculate according to the id's.  I mean the first distance will be for FID 1 and 2; the second will be for 2-3, third 3-4 and etc.  Please help me :)


Area of a square inside a square created by connecting point-opposite midpoint

Square $ABCD$ has area $1cm^2$ and sides of $1cm$ each.  $H, F, E, G$ are the midpoints of sides $AD, DC, CB, BA$ respectively.  What will the area of the square formed in the middle be?  I know that this problem can be solved by trigonometry by using Area of triangle ($\frac{1}{2}ab\sin{c}$) but,  is there another method or visual proof?


Why do modern mountain bike forks no longer use boots on fork stanchions? Older mountain bikes used to have them on the forks, and lefty and headshocks still do. Why have these fallen out of fashion and would putting aftermarket fork boots on your stanchions be productive or not?


How have the "following trig formulas" been modified to obtain the new trig formulas?

I was reading a trig book in which the author had deduced the following formulas from a drawing. I am mentioning those as follows...     By looking at the above drawing the author deduced these formulas for $(\theta+90^\circ)$...  1. $\sin (\theta + 90^\circ)=\cos\theta$  2. $\cos (\theta + 90^\circ)=-\sin\theta$  3. $\tan (\theta + 90^\circ)=-\cot\theta$  I understood how did he conclude above formulas from the drawing.  As you can see the drawing depicts author's approach to derive the $(\theta+90^\circ)$ formulas by taking a similar triangle in the second quadrant, in the same way, to derive $(\theta-90^\circ)$ formulas, he advised to take a similar triangle (as in the drawing) in quadrant 4 as well. But, to the contrary he mentioned a trick to get those formulas which I do not understand.   The author told to replace $\theta$ in formulas 1,2 and 3 by $(\theta-90^\circ)$. So what I got by doing that is...  1. $\sin ((\theta-90^\circ) + 90^\circ)=\cos(\theta-90^\circ)$  2. $\cos ((\theta-90^\circ) + 90^\circ)=-\sin(\theta-90^\circ)$  3. $\tan ((\theta-90^\circ) + 90^\circ)=-\cot(\theta-90^\circ)$  By evaluating them further I get...  1. $\sin (\theta)=\cos(\theta-90^\circ)$ (I got this one correct)  2. $\cos (\theta)=-\sin(\theta-90^\circ)$ (wrong)  3. $\tan (\theta)=-\cot(\theta-90^\circ)$ (wrong)  But the author says that the outcome of the formulas should be...  1.$\sin (\theta)=\cos(\theta-90^\circ)$ (correct.)  2. $-\cos (\theta)=\sin(\theta-90^\circ)$   3. $\tan (\theta-90^\circ) =-\cot(\theta)$   I don't know where am I going wrong. The author told to replace $\theta$ by $(\theta-90^\circ)$ then why am I getting my answers incorrect? Where is the flaw? Please help me to track it down.


Show a message if directly accessing a deleted answer or comment

Currently, if you access a deleted question you will get a short message informing you that the question has been deleted. However, if you click on a direct link to a deleted answer or comment (which you can get via notifications), nothing is displayed.  This is naturally quite confusing as you will get the message about a new answer or comment via notifications, click on the link and simply see nothing.  Therefore, I propose to display some sort of message to the user, informing her/him that the answer or question has been deleted. Note that this is different from always showing a deleted answer/comment, as I specifically request it in case you access the specific URL.  One example for a comment would be:   One example for a deleted answer is:   This question is related to ,  but requests a feature to circumvent the problem altogether.


How to sort shell history by recency and remove duplicates?

I don't really know awk, but my attempt so far  history | awk '!x[<everything except first column which is the order>]++' | sort -r


Past Simple or Present Perfect with "Never"?

I have this example in my practice book where I need to use the Past Simple or Present Perfect:     My grandfather died before I was born. I have never met him.   The right answer is "I never met him".  Shouldn't we use the Present Perfect with "never"?


I have thought about the following equalities for a while and maybe you can suggest are they true or false, and help me to solve some inconsistencies which occur. I am making one question for three equalities because they are connected. So: 1) Is $$\int f(x)\,dx = b + \int f(x)\,dx $$  where $f$ is some function and $b$ is some number. 2) Is $$\int f(x)\,dx - \int f(x)\,dx = 0$$ where $f$ is some function. This equality may seem a bit obvious but in connection with other one it can cause some problems (inconsistencies). 3) I definitely know that: $$\int \frac{1}{x}\,dx = 1 + \int \frac{1}{x}\,dx$$ and I know this because you can easily prove it using integration by parts. And now, this equality in combination with (2) leads to the following false equality $$0=1$$ So there can be two posibilities: either (2) is false or I am doing some technical mistakes when I conclude that $$0=1$$ So what is the mistake ? Thanks in advance


Is this sentence correct? Usage of would have been and had

"I would have been prey for those cats had you not come, am I right?" Is this grammatically correct?   I dont understand that "had you not come" part. Is this some kind of conditional? Shouldn't there be something like "If you didnt come"?


Showing there is an infinity of prime numbers of the form $12k+11$

I want to prove there is an infinite number of prime of the form $12k+11$. I worked hard to make the first part of my solution but I don't know how to do with the second part. First : I suppose there is a finite number of prime of the form $12k+11$, let'S call them $p_1, p_2,..., p_r$. Let $N=12(p_1p_2...p_r)-1$. $N$ is not divible by any of the prime in the list $(p_1, p_2,...,p_r)$ because $n+1=12(p_1p_2...p_r)$ and two consecutives numbers can't both be divible by $p_1$. The same argument goes for $p_2, p_3,...,p_r$. Now, we know that $N$ is divisible by a prime that isn't in the list, or $N$ is a new prime of the form $12k+11$ that is not in the list. We can see that $N$ has a form of $12k+11$ because $N=12((p_1p_2...p_r)-1)+11$ and $N\equiv{-1}\equiv{11}\mod{12}$. Next: Now I have to prove that $N$ is divisible by a prime of the form $12k+11$ but I don't know how. I found that all the prime numbers can be written with the form $12k+5$, $12k+7$ and $12k+11$ except $2,3$ and $13$. Can you help me with that last part and tell me if the first part is correct?


Move launcher from one monitor to another in Ubuntu 16.04

I have Ubuntu 16.04 running on a HP Desktop with two monitors. The launcher is currently located on the left edge of the right hand monitor which is very inconvenient. How do I move it to the left edge of the left monitor?  I am able to move it to the bottom with:  gsettings set com.canonical.Unity.Launcher launcher-position Bottom   But I would like to move it to the left edge of the left monitor.


Need help with a question about analytic functions on a simply connected domain.

Let $V\subseteq\mathbb{C}$ be a simply connected domain such that $V\neq\mathbb{C}$, with $a,b\in V, a\neq b.$ Prove that if $g:V\rightarrow V$ is analytic with fixpoints $a,b$, then $\forall z\in V, g(z) = z$.  Here's my attempt at a solution.  Let $$f(z) = g(z) - z.$$  As $V$ is simply connected, for every cycle $\gamma\in V$, $$0 = \int_{\gamma}{f(z)}dz = \int_{\gamma}{(g(z)-z)}dz =  \int_{\gamma}{g(z)}dz - \int_{\gamma}{z}dz,$$ so for every cycle $\gamma\in V$, $$\int_{\gamma}{g(z)}dz = \int_{\gamma}{z}dz.$$  This can only be the case if $\forall z\in V, g(z) = z$, so we are done.  I'm not sure whether my last line is correct or not, but I have a feeling that it isn't. Could anyone either confirm that this is a correct proof or point me in the right direction if it's incorrect? Thanks!


I was searching for the difference between cloud and cluster. I found  question with a good answer, but I don't understand it.  If there is an answer to a question I have but I don't understand it, should I ask a new question?


How do I proof the right side of the following inequality: $(x^p+y^p)\leq(x+y)^p\leq2^{p-1}(x^p+y^p)$ for $0\leq x,y$ and $p > 1$ The left side can be easily proved with the binomial theorem and I assume that the right side can be proved with $\sum_{n=0}^{p}\binom{p}{n}=2^p$, but I can't get it working.


installing mail server on an ubuntu server with existing web server

looking to install a mail server on a ubuntu server. I already have a web server running on it (apache/php/wordpress) But I am looking to also have a mail server. As I understand it I need to add MX records set up postfix for SMTP and dovecot for POP3 and IMAP.    My main question is, is it possible to install an email server on top of that?  Do I have to run the mail server with a second instance of apache or nginx?  Any tips for accomplishing this if at all possible?  Thank you


Non-diagonal matrix with eigenvalues equal to its diagonal entries

Is it possible to construct a matrix with non-zero off-diagonal entries whose eigenvalues are nonetheless equal to its diagonal entries?  EDIT: @ajotataxe pointed out that this holds for triangular matrices. My follow up is - is the converse true? If the Eigen values are the diagonals, does it have to be triangular?


How do I link the Stack Exchange data together?

I was trying to link the Stack Exchange data together from the  as my college database subject project, but I can't understand how to link the Post and its answer. I tried to link using postlinks relation, but it didn't work that way...  Any kind of help is appreciated.


Belarc Advisor sort of program on Ubuntu

Is there a program that can list the installed softwares, packages and configurations files of the installed software on an Ubuntu system. On Windows there is a program called Belarc Advisor that makes a complete list of installed software together with their corresponding license keys and updates. Considering a fresh reinstall I need such functionality.  Thanks


Should there be a comma before "and" in the sentence below? The reason why I ask is because I think that the sentence below has committed a comma splice, but I am not completely sure. Can someone please explain to me why there is a comma in front of "and".      Birmingham lighted a runaway fuse, and as fast as the headlines could record them, demonstrations exploded all over the country...


Do I need to need to deactivate Windows before re-installing

If I would like to reinstall Windows 7 on the same laptop as 64-bit instead of 32-bitusing the original key, would I need to deactivate Windows first using the process shown  or could I just reinstall and activate over the web or using something like ?


Yesterday I got some reputation but still not able to enter any room and chat.


Trying to prove iff for summation of sequence

Prove $\sum_{n=1}^\infty a_n \in \mathbb R \mathbb \leftrightarrow \sum_{n=1}^\infty\frac{a_n}{1+a_n}\in \mathbb R$ The hint says that for one direction argue that $b_n = \frac{a_n}{\frac{a_n}{1+a_n}}$ is bounded after some fixed cutoff point. I dont know where the $b_n$ is coming from or which test to use to prove this.


What is the font used by Nature magazine? How can we get the same or similar text font and math font in LaTex?

For example, in this paper:    How can we get the same or similar text font and math font in LaTex?


import java.util.Scanner;  public class SimCompanies {          public static void main(String[] args) {         Scanner scanner = new Scanner (System.in);          boolean x=true;         String complete = new String(":fire: Buying DAILY :fire:\n");         while (x==true) {             String input = scanner.next();             if (input == "0") {                 System.out.println(complete);                 x=false;             }             else {                 complete += extend(input);             }         } }  public static String extend(String a) {         return new String(      ":" + a + ": " + ":" + a + ": " + ":" + a + ": " + ":" + a + ": \n" );              }  I want to write a programme that works with an input. For every input in a new line it shall take the input and do the function "extend". I tried much and I saw that it works well with the function ( so it does everything properly with the input, no matter how many inputs I have). But I want to stopp the programme when I am writing "0". But the programme doesnt see that I am writing "0". It just always goes into the else-statement but never goes into the if-statement. It is important that at the end everything should be printed out. So what am I doing wrong? I want this at the end (input: Satellite, Jet) :fire: Buying DAILY :fire: :Satellite: :Satellite: :Satellite: :Satellite: :Jet: :Jet: :Jet: :Jet:


The term "to have dibs on something" or "to call dibs on something" plays a recurring role in American film and television (e.g. ), so it gets exported a lot.   describes "dibs" as     [...] a common, "informal" convention to reserve or declare full or partial ownership of a community resource, such as a chair [...]   From the usages in the media I have seen, this convention also seems to contain some moral concept which is not described in dictionaries. For me, it looks like by calling dibs (or ), the caller actually receives the (implicit, moral) right to that resource, and this typically goes undisputed by their rivals.  Can you confirm the existence of this concept? Is this something that varies between groups of people (or maybe between regions), or is there a concensus on how to respond to this?


Can we make illegitimate operations with $0$ legitimate by adding a few more axioms?

Just out of curiosity, can we make illegitimate operations with $0$, say, division by $0$ legitimate simply by imposing additional axioms? If so, then what consequences may follow? If the answer is negative, what are the differences between making operations with $+\infty, -\infty$ legitimate in the extended reals?


There is too much empty space (Android app)

This is what my Galaxy Note 4 Android 4.4.4 shows in one of the answers to a question (it happens a lot), and it is probably not a device-specific issue I'd say.      All answers are shown properly but they often precede a lot of empty space. There were 7 full screens of empty space right after the above particular answer.


2x2 subfigures instead of 4 rows with subcaption package

I'm working on a 2x2 subfigure figure and they keep appearing in 4 rows instead of 2x2. What am I doing wrong?  Code underneath (and some of the included packages):  \usepackage{memoir} \usepackage{graphicx} \usepackage{subcaption} \begin{figure}  \begin{subfigure}[b]{.45\linewidth} \centering \includegraphics[width=0.85\textwidth ]{pic/fig_flexibility.png} \caption{Customizability graph}\label{fig:flexibility} \end{subfigure}  \begin{subfigure}[b]{.45\linewidth} \centering  \includegraphics[width=0.85\textwidth ]{pic/privacy_graph.png} \caption{Privacy graph}\label{fig:privacy_graph} \end{subfigure}   \begin{subfigure}[b]{.45\linewidth} \centering  \includegraphics[width=0.85\textwidth ]{pic/load_balancing_graph.png} \caption{Resource impact distribution graph}\label{fig:load_balancing_graph} \end{subfigure}  \begin{subfigure}[b]{.45\linewidth} \centering  \includegraphics[width=0.85\textwidth ]{pic/failure_sensitivity_graph.png} \caption{Failure sensitivity graph}\label{fig:failure_sensitivity_graph} \end{subfigure} %  \caption{A figure}\label{fig:1} \end{figure}    Screenshot:    Additionally, I fear that when I do get them 2x2 they won't be the same height. Any handy tricks I can use for that?


Finite sum of eigenspaces (with distinct eigenvalues) is a direct sum

I'm trying to show that a finite sum of eigenspaces (with distinct eigenvalues) is a direct sum.   I have $ \alpha : V \to V $. The eigenspaces are $ V_{\lambda_i} = \ker(\alpha - \lambda_i id_V )$ for $ 1 \leq i \leq n $. My attempt at a proof:  $ A + B $ is a direct sum iff $ A \cap B = \{0\} $. If $ v \neq 0 \in V_{\lambda_i} \cap V_{\lambda_j} $ for some $i,j, i \neq j $, then $ \alpha(v) = \lambda_i v $ and $ \alpha(v) = \lambda_j v $. So $(\lambda_i - \lambda_j)v = 0 $, and so $ \lambda_i = \lambda_j $. This is a contradiction, so any pair of the eigenspaces have trivial intersection. Therefore $ \cap_{i=1}^n V_{\lambda_i} = \{0\} $, and so we have a direct sum.  Is this ok?  Thanks


QGIS v3 Default CRS For New Projects settings not available, cannot enable OTF

I would like to be able to enable on the fly transformation in version 3, I have followed the user guide instructions but I seem to be missing the options in the 'Options' window to allow this. In the version 3 user guide the following instructions are given to enable the 'enable on the fly transformation' to be seen in the Project CRS window. This screenshot shows the image of the 'Options' window in the user guide.     here are three ways to enable On The Fly CRS Transformation:           Select Project Properties ‣ CRS from the Project ( or Settings) menu. You can then activate the checkbox Enable on the fly CRS transformation (OTF) checkbox in the CRS tab and select the CRS to use (see Coordinate Reference System Selector)          Click on the geographic CRS status icon in the lower right-hand corner of the status bar, leading you to the previous dialog.          Turn OTF on by default in the CRS tab of the Settings ‣ Options dialog by selecting checkbox Enable ‘on the fly’ reprojection by default or Automatically enable ‘on the fly’ reprojection if layers have different CRS.      However, when I got to Settings, Options, CRS these options are missing (see screenshot). How can I activate them please?


I have a Macbook Pro from late 2011 with a failing hard drive that had macOS and Windows 7 installed on it. I just bought a new one and decided to put in a Windows 10 USB to boot from since I never used macOS that often anymore. Once I got everything setup there were no drivers (which was expected), so I downloaded them from the Bootcamp Assistant tool on a friends computer. When I try and launch the drivers setup.exe I get the error "This version of Bootcamp is not intended for this computer model". Is there any way to bypass this error or should I download the drivers from somewhere else?


How can I Curve my premade logo vector, around a circle in illustrator cs5?

Hi i want to curve my logo-text vector around A circle, like this:    With this (my logo):   But my logo is a premade vector, not text file, so each letter is its own SHAPE/Path or whatever you call it. So i want to arrange it around a circle perfectly like the powerhouse logo  how could i do this? thanks in advance


How to disable the built-in MacBook keyboard?

Is it possible to completely disable the built-in keyboard on a MacBook? No input should be possible from that keyboard when I connect an external keyboard. This is sort of possible with the trackpad and the mouse, is there an option (or indeed a hack!) to do the same with the built-in hardware?


Let $f_1, f_2 \dots, f_r \in \mathbb C [x,y]$ and suppose $$\gcd(f_1, \dots , f_r)=1$$  Show that $V(f_1, \dots , f_r) \subset \mathbb A^2$ is finite.  Partial Solution: suppose $(x_0,y_0) \in V(p(x,y),q(x,y))$, then for $(x,y_0)$ we can use Bezout and say that exist $a(x),b(x),h(x) \in \mathbb C [x]$ such that $$ a(x)p(x,y_0) + b(x)q(x,y_0)=h(x)$$  So there are finite $x_i \in \mathbb C$ such that $(x_i,y_0)\in V(p(x,y),q(x,y))$. The same holds for $(x_0,y)$.


$H$ is normal subgroup of $G$ iff $gHg^{-1}=H$ for every $g$ of $G$

Given the following definition of normal subgroup     A subgroup $H$ of a group $G$ is said to be normal if, for every $g\in G$: $$gH=Hg$$   I've tried to show that $H\mathrel{\unlhd} G$ if and only if we have $gHg^{-1}=H$ for every $g\in G$:  (if) Let $H\mathrel{\unlhd} G$, $g\in G$; if $l\in gHg^{-1}$, there exists $h\in H$ such that $l=ghg^{-1}$ and since $gh$ = $h'g$ for some $h'\in H$, then $l=ghg^{-1}=h'(gg^{-1}) = h'\in H$. Let $h\in H$; we can write $h$ as $hgg^{-1}$, and since $hg = gh'$ for some $h'\in H$, we obtain $h = hgg^{-1} = gh'g^{-1}\in ghg^{-1}$. So $gHg^{-1}=H$.  (only if) Let $gHg^{-1}=H$, $g\in G$; if we take an $l\in Hg$, $l = hg$ for some $h\in H$, we note immediately that $l=hg=(gh'g^{-1})g=gh'\in gH$. What should I do to show that $gH\subset Hg$?  I'm also wondering if this mess is correct, and if it is possible a more elegant proof of this fact.


Code appended with JQuery does not fire click event on input file

I am appending a small block of code that has inside of it an image that when clicked triggers a click event on the input for file uploading. When the page is loaded and/or refreshed, there is only one block that once changed, fires the event to append  a new one.

             <input type="file" name="imagem[]" class="none file-chooser" required/>

   The JQuery code for appending:  $('#novo_anuncio .file-chooser').change(function() {     readURL(this);     $('#novo_anuncio .add_new_image').append(         '
\n\
\n\                 <input type="file" name="imagem[]" class="none file-chooser" required/>\n\                 \n\
\n\
'); });   The problem is that the appended code does not trigger the click event on the input. The code is identical and it is appended correctly inside of the .add_new_image main tag. What could be wrong?


my goal is the evaluate the following using .net core and c#.  "XYZ = XYZ"   My goal is the use the following string to evaluate if the string will return true or false. In this example the result should be true whilst in this example:  "XYdddZ = XYZ"   `Which should return false instead.  essentially it would look similar to:  if ("XYZ = XYZ"){  }   EDIT:  the string may be dynamic and contain something like "XYZ = XYZ and XYZ != XYaZ" Therefor splitting may be hard


Let $x*y=\gcd(x,y)$ on $D_n=\{x\in \mathbb N:x |n\}$. I have to prove that $(D_n,*)$ is a commutative monoid and I have a problem when finding the identity element.  $x*e=x$  So $gcd(x,e)=x \to e=xk,k\in \mathbb N^*$ and $e \leq n$  A good $e$ is $0$ but it's not in $D_n$


Can the field of complex numbers be regarded as a vector space?

This is from Huffman & Kunze.  "The field C of complex numbers may be regarded as a vector space over the field ℝ of real numbers. More generally, let F be the field of real numbers and let V be the set of n-tuples $\ α=(x_1,..,x_n)$ where $\ x_1,..,x_n$ are complex numbers. Define addition of vectors and scalar multiplication by:   a) let $\ α=(x_1,...,x_n)$ and $\ β=(y_1,...,y_n)$ then $\ α+β=(x_1+y_n,...,x_1+y_n)$  b) let $\ α=(x_1,...,x_n)$ then $\ cα=(cx_1,...,cx_n)$  In this way we obtain a vector space over the field ℝ which is quite different from $\ ℂ^n$ and $\ ℝ^n$"  1) How can the field of complex numbers be considered a vector space? I am asking because I don't think that the field of complex numbers can have n-tuples s.t. n>1, right? Since I believe that in order for an object to be interpreted as a vector, it must have at least an ordered pair of numbers.  2) When it was stated that the constructed vector space is quite different, shouldn't it be "entirely different" because the vector space has n-tuples s.t. n>1.  I am really confused.


How long does maple syrup last in the refrigerator?

I have bought a biological (as per the label) maple syrup that states:  Limited shelf life in the refrigerator after opening.  The bottle itself is 250mls and says that the portion size is 10ml and the number of services is 25. My question is: does that mean that it can be consumed within 25 days? I don't really understand what the limited shelf life means in this case. What should I watch out for to throw it away?


Is it necessary to upgrade to 14.04 LTS or can I stand in 12.04 LTS forever with no problem?

I'm using Ubuntu 12.04 LTS, and although I would like to upgrade to 14.04 LTS, I don't want to have any troubles after upgrading. For example, I don't know if I can no longer use some of my software and have to reinstall it.  I'm also worry if my computer have the system requirements necessary to 14.04 LTS version.  That's why I'm asking if it is necessary to upgrade, I mean, will be any problem if I skip the upgrade? Can I stand in 12.04 LTS forever?


Convert Plain Text to Hyperlink in Outlook

I am putting together a POC for my company regarding some monitoring tools that we use.  As part of my project I need to convert portions of a plaintext email sent to me into a hyperlink (I am not able to send the emails in HTML from the tool itself).    I have next to no experience with VB, but this is what I stitched together reading various other posts. I realize it is not functional at all, but I thought it might be something of a baseline for others get a better idea of what I am trying to accomplish and give feedback on.  Essentially I am trying to search the email for a string, and convert it into a more concise hyperlink that points to that same string as the url.  I need some help cleaning up what I have if you have any pointers.  Option Explicit  Sub InsertHyperLink(MyMail As MailItem) Dim body As String, re As Object, match As Variant  body = MyMail.body Set re = CreateObject("vbscript.regexp") re.Pattern = "^https\..*Operation>$"  For Each match In re.Execute(body)     body = Replace(body, match.Value, "Open Link", 1, -1, vbTextCompare) Next  MyMail.body = body MyMail.Save End Sub


How to get last level of a hierarchical list, group by some field

Given the schema:  create table containers (     id int primary key,      name text,      product_id int,      lot int,      qty int,      parent_id int);  create table orders_items (     id int,     position int,     container_id int);   Where containers is a hierarchical table with an unknown number of levels.   containers.parent_id = containers.id OR null   A container can hold other containers, this is a containers tree structure:    23 Box 40 Parent  [ID: NULL, Lot: NULL, Qty: SUM(20+20)=40]    |    |--22 Bag 20     [Parent ID: 23, Lot: NULL, Qty: SUM(10+10)=20]    |   |--21 Bag 10 [Parent ID: 22, Lot: 701, Qty: 10]    |   |--22 Bag 10 [Parent ID: 22, Lot: 703, Qty: 10]    |     |--19 Bag 20     [Parent ID: 23, Lot: NULL, Qty: SUM(10+10)=20]        |--17 Bag 10 [Parent ID: 19, Lot: 700, Qty: 10]        |--18 Bag 10 [Parent ID: 19, Lot: 701, Qty: 10]    For us a container is considered as one expeditionary unit, depending on customer requirements a container can be a simple plastic bag of 10 pieces, or a full pallet with 10 boxes of 5000 pieces each one. Only containers of last level has a lot assigned, parent containers can hold different lots, but always belonging to same product.  We need to list all products included in a single order, group by lot.   Different products can't have the same lot. One container can only hold containers of the same product.   Sample data:  insert into containers values   (23, 'Box 40',  2, null, 40,  null) , (16, 'Pallet',  1, null, 120, null) , (12, 'Bag 20',  1, null, 20,  14) , (13, 'Bag 20',  1, null, 20,  14) , (14, 'Box 40',  1, null, 40,  16) , (19, 'Bag 20',  2, null, 20,  23) , (22, 'Bag 20',  2, null, 20,  23) , (5,  'Bag 20',  1, null, 20,  7) , (6,  'Bag 20',  1, null, 20,  7) , (7,  'Box 40',  1, null, 40,  16) , (1,  'Bag 10',  1, 500,  10,  5) , (2,  'Bag 10',  1, 501,  10,  5) , (3,  'Bag 10',  1, 502,  10,  6) , (4,  'Bag 10',  1, 500,  10,  6) , (8,  'Bag 10',  1, 600,  10,  12) , (9,  'Bag 10',  1, 601,  10,  12) , (10, 'Bag 10',  1, 502,  10,  13) , (11, 'Bag 10',  1, 501,  10,  13) , (15, 'Box 40',  1, 600,  40,  16) , (17, 'Bag 10',  2, 700,  10,  19) , (18, 'Bag 10',  2, 701,  10,  19) , (20, 'Bag 10',  2, 703,  10,  22) , (21, 'Bag 10',  2, 701,  10,  22);  insert into orders_items values (1, 1, 16), (1, 2, 23);   The order number 1 has two details lines, containers 16& 23, I need to get all lots included in these containers.  In this example the result should show this rows:  +----+------------+-------------+------+------+------------+ | id |    name    |  product_id |  lot |  qty |  parent_id | +----+------------+-------------+------+------+------------+ |  1 |  'Bag 10'  |           1 |  500 |   10 |          5 | |  2 |  'Bag 10'  |           1 |  501 |   10 |          5 | |  3 |  'Bag 10'  |           1 |  502 |   10 |          6 | |  4 |  'Bag 10'  |           1 |  500 |   10 |          6 | |  8 |  'Bag 10'  |           1 |  600 |   10 |         12 | |  9 |  'Bag 10'  |           1 |  601 |   10 |         12 | | 10 |  'Bag 10'  |           1 |  502 |   10 |         13 | | 11 |  'Bag 10'  |           1 |  501 |   10 |         13 | | 15 |  'Box 40'  |           1 |  600 |   40 |         16 | | 17 |  'Bag 10'  |           2 |  700 |   10 |         19 | | 18 |  'Bag 10'  |           2 |  701 |   10 |         19 | | 20 |  'Bag 10'  |           2 |  703 |   10 |         22 | | 21 |  'Bag 10'  |           2 |  701 |   10 |         22 | +----+------------+-------------+------+------+------------+   Group by lot:  |----------|---------|-----|----------| | Order ID | Product | Lot | Quantity | |----------|---------|-----|----------| |    1     |    1    | 500 |    20    | |    1     |    1    | 501 |    20    | |    1     |    1    | 502 |    20    | |    1     |    1    | 600 |    50    | |    1     |    1    | 601 |    10    | |    1     |    2    | 700 |    10    | |    1     |    2    | 701 |    20    | |    1     |    2    | 703 |    10    | |----------|---------|-----|----------|   I've created a  example with this values.


How to determine the actual or "true" resolution of a digital photograph?

What I mean by "true" resolution is the resolution at which the maximum available amount of real detail is present.  For an ideal picture this resolution is the same as the resolution encoded in the image file.  However, in other cases the actual true resolution may be less than the resolution of the image file:   If the image file was digitally scaled - for instance, if the camera has a "digital zoom" feature where it upsamples the individual pixels. If the image is not completely sharp and in focus.   In either of these cases, it is useful to me to have some mechanical method of identifying what the actual true resolution of the image is independent of what the image file says.  How can I do this?  Is there some software or algorithm which can take an image and analyze it and tell me the highest resolution it can be displayed at while showing detail at the resolution?  My initial naive expectation that it should be "obvious" and easy to determine by some simple mechanism such as compressed sizes is thwarted in cases where the upscaled image has noticable artifacting or noise not present in the original.


When should I use the Visitor Design Pattern?

I keep seeing references to the visitor pattern in blogs but I've got to admit, I just don't get it.  I read the  and I understand its mechanics but I'm still confused as to when I'd use it.  As someone who just recently really got the decorator pattern and is now seeing uses for it absolutely everywhere I'd like to be able to really understand intuitively this seemingly handy pattern as well.


Here is my question. If i write this SQL Query i get the following output: SELECT name + ' ' + CAST(month(resign_date) as varchar) as Resigns FROM Employees WHERE YEAR(resign_date) = '2020'    Adams 3   Peters 4   Young 1   Parker 12   Lee 4  My goal is to get thoose persons that resign on the same month added on the same row like this: Young 1 Adams 3 Peters 4, Lee 4 Parker 12  How can i do this?


I have an exercise that states:  Suppose that $f:\mathbb{N}\rightarrow\mathbb{R}$. If $\lim_{n\rightarrow\infty}f(n+1)-f(n)=L$, prove that $\lim_{n\rightarrow\infty}f(n)/n$ exists and equals $L$.  I have wracked my brain over this exercise for about 5 hours now and really have not gotten ANYWHERE with it...does anyone have a suggestion on how begin proving this?  Thank you.


Can I convert a 64 bit Windows to 32 bit Windows?

Is it possible to convert 64 bit Windows 7 to 32 bit Windows 7 keeping the settings and installed software where they were ?  I am not interested in virtual machine based options.


Windows 10 registry setting for volume control

Our company has several conference room computers running Windows 10 that need the volume set to 25% when a user logs in.  Is there a registry setting to set the system volume at 25% so the sound isn't muted or to loud when a conference takes place?


what does angular brackets tell the compiler: C++

I have read several posts on StackOverflow regarding difference between " " and <> with #include, use of angular brackets in type casting etc. My question is that what does angular brackets tell the compiler? Or do they have different meaning in different contexts? I am curious about it because I was asked this question in a quiz recently, but it was not clear about how to answer this question.


I've created a file and formated it.  # fallocate -l 1g /foo.img # mkfs -t ext4 /foo.img   I can mount it using  # mount /foo.img /bar   But how can I make it permanent?


Value in register printing as a different number

So I am taking computing machinery course in university this spring and we don't get any kind of decent assistance with assignments.  I have a program that multiplies two binary values using add-shift method which works fine for small numbers of any sign, but I need it to work with 2 certain numbers for part B of the assignment.  While debugging I have discovered that the code has the right product stored in the register but after printing the number shown is not the same as the number in the register.  Sorry if I posted too much code or didn't post enough information, please let me know if I should change anything about the post.  The code is all done through putty connecting to the school's server which is run on linux.  This is where the debugger shows that register x3 (which stores the product argument for the printf formatting) holds the right number immediately before the print statement  (gdb) i r x3 x3             0x1850505038     104426655800    This is after the print statement where it prints the wrong number  (gdb) next 50              bl      printf (gdb) next 522133279 times 200 equals 1347440696   Here is the program          define(multiplicand, w19)         define(multiplier, w20)         define(product, w21)         define(i, w22)         define(temp3, w23)          define(result, x24)         define(temp1, x25)         define(temp2, x26)  fmt:    .string "Multiplicand: %d \nMultiplier: %d\n" msg:    .asciz "%d times %d equals %d\n"         .balign 4         .global main main:   stp     x29, x30, [sp, -16]!         mov     x29, sp          mov     multiplicand, 0b11111000111110001111100011111         mov     multiplier, 0b11001000          adrp    x0, fmt         add     x0, x0, :lo12:fmt         mov     w1, multiplicand         mov     w2, multiplier         bl      printf          mov     i, 0         mov     temp3, 1 loop:         cmp     i, 32         b.eq    print         tst     multiplier, temp3         b.eq    count         uxtw    temp1, multiplicand         uxtw    temp2, i         lsl     temp1, temp1, temp2         add     result, result, temp1 count:         add     i, i, 1         lsl     temp3, temp3, 1         b       loop print:         ldr     x0, =msg         mov     w1, multiplicand         mov     w2, multiplier         mov     x3, result         bl      printf          mov     w0, 0         ldp     x29, x30, [sp], 16         ret   There were no error messages  The expression i'm trying to compute is:  522133279 * 200 = 104 426 655 800  The value that printed was 1 347 440 696, but this value came from the register that had the correct value stored immediately before the print statement


Today on Puzzling SE I earned close to 200 rep. In fact, I was at 198 reputation, and then one of my answers got upvoted, but I only got 2 rep. I totally get this, because 200 is the cap.  But then, I decided to answer another question (it was actually the same question but I decided to post two answers-it was the How can the baby live? question). Then, I got downvoted on that answer so I got -2 reputation. But, then my total for today became 198.   Shouldn't it still be 200 because the upvote that only gave me 2 rep should have given me the maximum amount it could before I reached 200 a.k.a 4 rep this time?  Am I misunderstanding something about the reputation thing? I'd appreciate any help. Thanks!


How to Preload Tabs/Set Multiple Websites as Default in Firefox, IE, etc

Any website can set as the homepage of Firefox which loads spontaneously. Is this for multiple tabs? Then BBC Health, CNN, Yahoo Health, msn.com would all extemporarily materialise (in four separate tabs); I then wouldn't have to open each website manually.


No matter which way I try to install Wine It doesn't install, I'm new to Ubuntu, but its not hard to copy and paste and click "install". I tried to install it via Commands on the Wine website, and commands on a Youtube tutorial, then I tried the one in the software store (I didn't use that one in the beginning because I wanted the stable release not the development release.) Does anyone know why its doing this, and how to fix it?   sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ sudo apt-get update sudo apt-get install --install-recommends winehq-stable   Those are the exact commands that were in the Youtube Tutorial and the Wine HQ website.


How do I ensure that my 2D side-scroller camera stays within the world bounds?

I have tried implementing a basic 2D sidescroller camera in XNA, but I don't want it to be able to scroll past the edges of my tile map!  I tried to fix it, but when I get the left side working, the right stops working...  How do I do this right?  EDIT: After Anko  public Matrix transform;     Viewport view;  Vector2 center;   public void Update(GameTime gameTime, Player player) {     center = new Vector2(player.Position.X + (player.Bounds.Width / 2) - (960 / 2), 0);      float cameraX = center.X;     float cameraWidth = view.Width;      float worldWidth = 1760;      if (cameraX < 0)          cameraX = 0;     else if  ( cameraX + cameraWidth > worldWidth)         cameraX = worldWidth - cameraWidth;      transform = Matrix.CreateTranslation(new Vector3(-cameraX, 0, 0));


Is it possible to tell Qiskit to execute a parameterized gate where the parameter varies between shots?   Let's say, for whatever reason, I'd like to speed up the dephasing of a qubit during a run. I can accomplish this by explicating implementing the dephasing Kraus operators by using an $R_x(\phi)$ gate, a controlled $Z$ gate and an ancilla qubit. However, this adds a decent amount of complexity, and thus error, to my circuit.  A more clever way to do it is to add an $R_z(\theta)$ gate into the circuit, where $\theta$ is drawn from a normal distribution and thus varies shot to shot. This would mean the circuit would need to be reassembled from the parameterized transpilation each shot, which makes me think it's probably not possible. But I wanted to ask just in case.  I can always do a series of single shot experiments, but I believe the backend (not to mention other users) might have an issue with me submitting thousands of single shot jobs.  So is there any way to implement a circuit which has a parameter which varies from shot to shot?


htaccess - redirect non https & set different default page for each sub-domain

I have a wild card ssl for my domain. I have many subdomains each with its own default page.  www.domain.com/main.html       [/home/domain/main.html] try.domain.com/free.php             [/home/domain/try/free.php] new.domain.com/signup.php      [/home/domain/new/signup.php] etc  I want to write .htaccess such that:   All traffic is directed to https The subdomains resolve to respective default pages  All non-www is directed to www  except for the subdomains which remain subdomain.domain.com   I want to do all this in a single htaccess /home/domain/.htacces and not have htaccess files in each folder.