Error message when trying to upload file to chat

I'm in a chatroom to discuss writing some wiki stuff for the stack and the person I'm working with asked me to write a draft and upload it to the chat.  I wrote it, turned it into a PDF, and tried to upload.    Notice that even before I try to upload it, it says "C:" in front of the file name.  That's a Windows thing!  Or maybe Linux does it too, I don't know.  But it's certainly not how my Mac names file paths.  Then notice how the pathway is relabeled "fakepath".  That's obviously not coming from my end.  The path ought to be Cyn/Writing/Articles.  I also tried to upload the Word version and got an identical error.  I finally gave up and put it on Dropbox instead.  But what's the scoop here?  Is this a problem with all Macs or what?  My rep on Chat is 14k, so it's not that.


Why is the Hot Network Questions page not responsive?

I browse the hot network questions every day and for years I've been wondering why every individual Stack Exchange site has a mobile version, but  is not responsive.  Why is it like this? Seems like it should be fairly trivial to enable.


How to compute the integral $\int_0^1 \frac{x\ln x}{\ln (1-x)}dx$?   We can write  \begin{align*} \int_0^1 \frac{x\ln x}{\ln (1-x)}dx=\int_0^1\frac{(1-u)\ln (1-u)}{\ln u}du =-\int_0^1\frac{1-u}{\ln u}\sum_{n=1}^\infty \frac{u^n}{n}du \end{align*} Seeing \begin{align*} \int_0^1\frac{u^{a-1}-u^{b-1}}{\ln u}du=\ln\frac{a}{b},\forall a,b>0, \end{align*} we get  \begin{align*} \int_0^1 \frac{x\ln x}{\ln (1-x)}dx=\sum_{n=1}^\infty \frac{1}{n}\ln \frac{n+2}{n+1}. \end{align*} I have tried hard to compute the series above ,but without any progress.


Sample data:  Table A:    BillID    ID_B   --------------   122        1   122        2   Table B:    ID_B     Name            ------------------     1      Jakarta                   2      Malang     3      Wonosobo   Expected result:   BillID     Name  ------           -----------------   122         Jakarta, Malang   TableA.ID_B = TableB.ID_B


OutOfMemoryError: Java heap space under Win10

There is a desktop application that uses apache.poi to interate a 50,000 line XLSX file and following validation write it to a database for reporting purposes.  The application is finalized as all required functionality works. Developed on a box under OpenSuse 43.3, KDE, 4 x i5-2500CPUs, 16gig RAM. Packaging it out to a jar file sees it run without issue on laptop under same linux and Win 10. However, running it on the development box under Win 10 causes the following error when running the validation method on the file.  Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space         at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3044)         at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1440)         at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)         at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)         at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)         at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)         at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)         at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1385)         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1370)         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:370)         at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:164)         at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)         at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:226)         at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:218)         at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:443)         at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:408)         at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169)         at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:300)         at com.zimpics.eds.app_wa01a.VDate.readFile(VDate.java:97)         at com.zimpics.eds.app_wa01a.VDate.validate(VDate.java:122)         at com.zimpics.eds.app_wa01a.GUI.Application.validateFile(Application.java:507)         at com.zimpics.eds.app_wa01a.GUI.Application.access$600(Application.java:43)         at com.zimpics.eds.app_wa01a.GUI.Application$5.actionPerformed(Application.java:425)         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)         at java.awt.Component.processMouseEvent(Unknown Source)         at javax.swing.JComponent.processMouseEvent(Unknown Source)         at java.awt.Component.processEvent(Unknown Source)   I have no idea how to address this issue. Can somebody point me in the right direction please?


I'm not looking to learn a new skill; how do I make my knives better at cutting?

I am a reasonably proficient casual kitchen user and I have a set of kitchen knives I bought from a (British) supermarket a few years ago. Recently I've noticed they've become less good at cutting things than they were before. (I am purposely avoiding words like 'sharp', 'dull', 'sharpen' and 'hone' in this question because I don't want to accidentally misuse them.) There are plenty of questions on this site from people who are interested in acquiring the equipment and developing the skills to maintain their knives – good for them! But this is a skill set I'm not particularly fussed about developing, and my knives are not high-quality enough to warrant paying someone to do something to them. Instead, I would like to know the simplest thing I can do to make my knives better at cutting, preferably with equipment that's not too expensive and is easy to get hold of. For example, I could get , or  at my local large supermarkets. But having seen the number of people on this website who seem to regularly damage/ruin their knives by doing the wrong thing, I'd like a little guidance that I'm on the right track before I start.


I am using the online editor ShareLatex  and texmaker in miktex. When I try to compile my source files from ShareLatex with texmaker it doesnt work. For example the nomenclature of symbols isnt working. Does anyone have experience with using the source code of ShareLatex with offline programs? My OS is Windows 10.  Here is some if my code: main.tex  \documentclass[diplomgeo,german,nomencl]{zihpub}   \usepackage{setspace}    \usepackage{subfiles}  \usepackage{nomencl}  \makenomenclature  \usepackage{color}  \usepackage{tabularx}  \usepackage{array}  \usepackage{listings}  \usepackage[scaled]{beramono}     \lstset{basicstyle={\small \ttfamily}}  \usepackage{natbib}   \bibliographystyle{dinat}  \usepackage{paralist}  \usepackage{multirow} \usepackage{siunitx} \usepackage{booktabs}  ...  \begin{document} \listoffigures \listoftables \setnomenclmargin{1cm}   The complete tex.main file:   And here is the *.cls stylesheet:  %Nomenclature \if@nomencl %  \if@german %    \addcontentsline{toc}{chapter}{Symbolverzeichnis} %  \else %    \addcontentsline{toc}{chapter}{Nomenclature} %  \fi %  \label{sec:Nomenclature}   \printnomenclature[\@nomenclmargin] \fi   The complete *.cls you can download as txt file from here:


Why did Hugh Jackman leave the X-Men franchise?

Why is Logan is the last movie of this franchise starring Hugh Jackman?  Is there any chance of him appearing in a future X-Men movie, or even a guest appearance?


Shall SO policy (and the FAQ) be changed to allow questions that are likely to solicit expert opinions?

Justification:  The community of SO users is a self-selected community of experts.  The collective opinion of those experts is extremely useful information for users and, before SO, was impossible to glean.  Precise questions that are likely to solicit opinions should be allowed.  Proposed FAQ [unchanged, included for reference]:  [What kind of questions should I not ask here?  Avoid asking questions that are subjective, argumentative, or require extended discussion. This is not a discussion board, this is a place for questions that can be answered!]  Questions that will likely solicit opinions are acceptable as long as they are precise.  For example,   Not Acceptable: Is Flash dead? Acceptable: Has the lack of Flash support on the iPad impacted your technology decision in a recent Rich Internet Application project?  If so, how?


Radial/centripetal vs. tangential/linear vs. angular acceleration

I am thoroughly confused as to how exactly radial, tangential, and linear accelerations of points on a rotating wheel relate to each other. Every time I think I know what they mean individually, I find a source that tells me that no, that is wrong. I was actually writing down in this post what I think is correct, only to realize that I was writing the same thing for two obviously different concepts.  First, is radial acceleration the same as centripetal and tangential the same as linear?  Second, how do these different accelerations relate to each other on a spinning disk? I was reading through my textbook, and I think I understand angular velocity perfectly in this context. However, I do not understand, for example:     If a disk rotates at a constant angular velocity, why does a point on the rim have radial but not tangential acceleration? Mathematically, this makes sense (since $a=r\alpha$, so if $\alpha=0$, then so must $a$), but not conceptually. Does it have radial/centripetal acceleration simply because it is still exhibiting circular motion? Would the linear acceleration change––is there any linear acceleration?   Basically, I do not really understand how radial, tangential, and linear accelerations relate to each other? I have just a big salad of greek letters in my head.


How can I draw arrows from items to a picture in Beamer?

I'm creating a presentation in Beamer, and I have a slide that consists of a few items, and then underneath is a picture. And I want to draw arrows from the items to the picture underneath. How can it be done? Currently, I have just this.  \documentclass{beamer} \begin{document}  \begin{frame}{Test} \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} \includegraphics[width=1\textwidth]{picture} \end{frame}  \end{document}   I was wondering whether TikZ can help here? But how?


Which airlines allow in-cabin pets on transatlantic flights?

I would like to bring my small (9 lbs) dog on a flight from the U.S. to Germany as "carry on" (in-cabin).  Apparently neither Continental airlines nor American airlines allows in-cabin pets on flights from the U.S. to Europe.  Which airlines do allow in-cabin pets on flights from the U.S. to Europe?  [cross-posted:  ]


What are these items that are showing up in the viewport render

I have a model that has animation and I am rendering out to a png sequence. This animation will be used in a web page.  I noticed that there are some items that are showing up in the render that are not part of the model.  They are vertical black lines with a dashed line/circle at the top that has a solid circle inside that. They show up in the rendered pngs whether I used material or rendered option in the output view panel.  I've attached an screen grab.  I can't find where these are located in the scene. I don't know if they are lights or what.  How do I turn them off so they don't render in my png files?


UTF8 not working in LuaTeX in TeXLive 2010

I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a PDF with no warnings or errors but it only contains the second line. Using the inputenc package results in an error Unicode char ... not set up for use with LaTeX.  \documentclass{minimal} \begin{document} číčí abcd \end{document}   pdflatex handles the document fine. My version of lualatex is  This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736)   Thanks for any pointers.  EDIT: For bonus points, how would I use the Bitstream Charter fonts? I use the mathdesign package, but with them (and even when loading fontspec, fontenc and/or luaotfload), the non-ASCII characters are missing :/   \usepackage[bitstream-charter]{mathdesign}


If $_{R}M$ is a left $R$-module of a ring $R$, show that $ann(M)=\left \{ r\in R:rM=0 \right \}$ is an ideal in $R$.   I have used the fact that the left annihilator is a left ideal in $R$ to prove that $ann(M)$ is a subring of $R$ and also a left ideal in $R$. But how do I show $ann(M)$ is a right ideal in $R$? Do I use the right annihilator for this? For example, if $r\in R$ and $b\in ann(M)$, then $bM=0$. This implies $rbM=0$ or $rb\in ann(M)$. But how do I show that $brM=0$?


Print 4 page forms (a4) size on A3 paper

I have a 4 page latex form on A4 paper. I want to print it on a3 paper (2 a4 pages=a3) so that page 1 and 4 can print on one side and 2-3 print on other side.  How  can I do it? Kindly help


We know they went East with Saruman and while he returned they never returned. We know in Tolkien's early writings he had the blue wizards as starters of magical cults but he quickly changed this.  They also came in the Second Age unlike Gandalf and Radagast who came in the Third Age. I've heard many people say that they did in fact succeed in the East and led Easterling rebellions but if this is true why would Aragorn have had to travel all the way to Rhun to basically destroy or make them surrender if the blue wizards had it under control?  For me this probably means that either like Radagast they lost interest in their original cause or that they were killed by Saruman or another person or thing connected with evil.  Are there any canonical explanations for their success or failure? Did the blue wizards fail or succeed in their task?


How can I interpret a model with good p-values and a bad R^2?

I performed a linear regression and I got a p-value < 0.05 but my R^2 is low (< 0.04). How can I interpret the results? The model is significant but there's not a good fit, what can I do to solve this? (without affecting too much of my p-value) Thank you


Linear transformations and change of basis

Let $T:\in \Bbb R^3  \rightarrow \Bbb R^3$ be the linear transformation given by reflecting across the plane $-x_1+x_2+x_3=0$ (...)   If $S=\{x:-x_1+x_2+x_3=0\} \implies S=\gen[(1,1,0),(1,0,1)]$  But how can I get the reflection matrix across $(1,1,0)$ and $(1,0,1)$?  Thanks!


Better way to search the Facebook activity log / timeline?

I'm trying to find a post I made on my timeline (aka wall) several months (or even years) ago, but can't find a way to search for it. I , but that's very heavy.   Currently, I open the activity log (e.g., https://www.facebook.com/username/allactivity) and start scrolling down to get some info on the page. Then I use my browser to search for the text. But this is slow and, depending on how far back I want to go, tedious. Clicking on the earliest month/year in the filter only loads those periods specifically.    Anyone know of a better way that will find the search words anywhere on your activity log quickly?    Edit: There's a  (not really a bug, but lack of a feature) related to this on Facebook's developers forum.


Seeking certain type of ARIMA explanation

This may be hard to find, but I'd like to read a well-explained ARIMA example that   uses minimal math extends the discussion beyond building a model into using that model to forecast specific cases uses graphics as well as numerical results to characterize the fit between forecasted and actual values.


How do I make the Super key open the activities overview in Ubuntu 20.04 LTS?

I've upgraded two laptops to Ubuntu 20.04 LTS.  On one of them pressing Super (aka the Windows Logo key) opens the Activities overview.  On the other one it doesn't, and I have to use Super+S, or Alt+F1.   The main difference between the laptops is that one uses Ubuntu on Wayland (where Super works fine), and the other one uses Ubuntu on Xorg (where Super doesn't work).  How do I make Super work on both laptops?


What does the identity operator look like in QFT, written in momentum eigenstates?

This is a followup to a question I read recently:   Out of curiosity, I was writing down what I figured to be the momentum basis vectors in QFT, ignoring for now internal degrees of freedom (spin etc). If each momentum label signifies an additional particle, and $|\Omega\rangle$ is the vacuum state, I wrote:  $$|\Omega\rangle, |p_1\rangle, |p_1 p_2\rangle, |p_1 p_2 p_3\rangle...$$  where actually each of the items in this list contains "infinitely more" than the last, because there is one basis vector for each value of momentum in $\mathbb{R}^3$. I also assumed all states had been normalized.  My question is: How does one write the identity down, in this basis? My guess is:  $$1 = |\Omega\rangle\langle\Omega| +\int_{-\infty}^{\infty}|p_1\rangle\langle p_1|d^3p + \int_{-\infty}^{\infty}\int_{-\infty}^{\infty}|p_1 p_2\rangle\langle p_1 p_2 |d^3p_1 d^3p_2 \,+\, ...$$  however the lack of integration on the vacuum, and varying numbers of integrals seem a bit unusual to me. Maybe I have misunderstood something fundamental.


"OpenID 2.0 for Google Accounts is going away"; will this affect Stack Exchange?

Apparently, for some reason, . I got this notice while logging in with Disqus, but not with Stack Exchange.  So... is Stack Exchange going to be affected by this? Do I need, or want, to add extra login methods to my Stack Exchange account to ensure I can still log in come April?


Hide options from ECB Menu in SharePoint 2013 Library

I have added a document in a document library. I am trying to hide an option from ECB Menu     How do you hide any options from ECB Menu?  Update: Each item has a column "x" with different values. So, depending on those values, I would like to hide/show various ECB Menu options. To be clearer, item1 may show "Custom ECB option" whereas item2 may not show "Custom ECB option".


Any way to send a personal message to another user?

There has been quite a few times that I wished I could send a message to another user on SO - not ask a question for everyone to see, but just a short message informing them of something or requesting them to do something.  Are there any plans to allow this to happen in the future?  Related:


What does an Apple Series 4 Watch require to have Fall Detection + Emergency 911 calling fully operational?  Does the watch need to be paired with a certain iPhone Model/iOS release? Does the watch need GPS+Cellular or is the GPS model alone capable and under what conditions? Does anything need to be manually configured/enabled on the watch?  I have an elderly friend who's interested in this product and it would be useful to know the minimum requirements to get this operational for them.


How do I fix a cast iron pot that was heated empty for hours?

I left my cast iron pot on the gas stove, on high flame, and then forgot about it for 3 hours. It was empty and I was drying it before I oiled it to store it. After I discovered it and let it cool, I oiled it with a paper towel and all this rusty stuff came off and continues to come off. Is my pan ruined? What should I do?


Reading from text file until EOF repeats last line

The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this?  Code:  #include <iostream> #include <fstream> using namespace std;  int main() {     ifstream iFile("input.txt");    // input.txt has integers, one per line      while (!iFile.eof())     {         int x;         iFile >> x;         cerr << x << endl;     }      return 0; }   input.txt:  10   20   30   Output:  10   20   30   30   Note: I've skipped all error checking code to keep the code snippet small. The above behaviour is seen on Windows (Visual C++), cygwin (gcc) and Linux (gcc).


Localization of a total quotient ring of a reduced ring

Let $R$ be any ring. The total quotient ring of $R$, denoted $K(R)$, is $R$ localized at the set of non zero-divisors. I am trying to solve Exercise 3.15 in Eisenbud's Commutative Algebra:  a) Let $R$ be a Noetherian reduced ring and let $U$ be a multiplicative subset. Then $K(R[U^{-1}])=K(R)[U^{-1}]$. b) If $R$ is a Noetherian ring, then $K(R[U^{-1}])=K(K(R)[U^{-1}])$.  For a), I was able to show that all prime ideals in $K(R)$ are maximal. Further, there are finitely many of them. Let these ideals be denoted $P_1,\ldots ,P_k$. By the Chinese Remainder Theorem, we have that $$K(R)=\prod_{i=1}^k K(R/P_i)$$ How should I proceed? Also, can I have a hint to start part b)? Should I use the universal property of the localization somehow?


How to move all the files with specific prefix of the directory?

I have a following directory structure (assume no two files have the same name):  Apple1  apple1.jpg apple2.jpg   Apple2  apple3.jpg apple4.jpg   Apple3 Tomato Peach  And i would like to move one directory to the top directory all the *.jpg files inside the directories, which names start from Apple. As a result I expect the Apple directories to be empty and the images from Apple directories to be in the top. I have tried doing like mv "Apple*/*.jpg" ., or find . "Apple*/*.jpg" -exec mv -t . {} +  as prescribed here . But this doesn't work. When executing mv i receive a following message: mv: cannot stat ‘Apple*/*.jpg’: No such file or directory  Seems like it has not found anything matching the pattern. And other option simply outputs nothing. Maybe the reason is, that in the case of subdirectories regular expression needs to be modified? I would be very grateful for help and suggestions.


I want to make game more realistic, for that I need a city. So, I decided to take New York City, as it can be seen through Google Maps with Street View, 3d view and much more and will help me a lot to make realistic game.   So, my simple question is: Can I use the whole New York City in my game and publish it commercially?


New procedures for mitigating closer hostilities

Voting to close a question on any SE site should force the voters to actually sit down and state the case why this question should be closed. No more just pushing buttons and leaving but you actually have to type out and state the case.   Then a report is set to the questioner and that will give the questoner a chance to see what is going on or to rebut.   Then the report can be attached with the rebuttals and the questioner can have a chance to send it to a jury of randomly selected users or mods excluding the intial close voters and the questioner.   Once the jury has decided the user can appeal up and for the final time once this appeal has be used the question is marked and judgment is final.   I think this a rather fair way to contest closure of questions and it allows for further clarification as to why the question was asked.   Edit:   After responding to someone, here is a more clearer way on how this might work.   Sally writes an question and its gets posted. Jannett votes to close.   Jannet on the vote to close form, writes up a reason and then points out what is the offending thing, then sends it off.   Sally in her inbox gets the vote form and sees what needs to be done for the question.   Sally either rebutt the vote directly, give some reasoning or explain why she think this wrong.   Or Sally can then change the question to fit the objection and submit the form back.   Jannet has her vote back and click an option to return the close vote or she can option to dispose of the vote effectively removing the vote from the question.   If Jannet not happy with the changes she sends the vote back.   This creates a means of making sure that the people who have vote to close holdings on their question have an opportunity to address and make sure that their is effective comunication.


How do I disable my talking login screen?

Managed to clip a shortkey that enabled some Audio assistance program on my Ubuntu login screen (it reads back to you anything you click or type).   It's really annoying, but I can't seem to find any documentation that will help me disable it   Does anyone know how I might disable this?


"Error: Invalid signature" when configuring dual boot Ubuntu 14.04 and Windows 10

After installing the Windows 10 upgrade on my laptop, it ruined the grub boot manager, and I could only boot in windows 10. I fixed the boot manager using a live cd with the boot-repair tool, but it only recognized the Ubuntu partition, and not the Windows one.   So I edited the /etc/grub.d/40_custom file and added the following contents:  menuentry "Windows 10" {     set root='(hd0,3)'     chainloader +1 }   After running sudo update-grub2, I got an entry in the boot menu, but the partition does not load. It gives the following error:  Error: Invalid signature.     Does anybody know how one can overcome this error?   My most recent boot-repair dump is here: , and the partition I want to boot is this one:  sda4: __________________________________________________________________________      File system:       ntfs     Boot sector type:  Windows 8/2012: NTFS     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:        /bootmgr /Windows/System32/winload.exe


Minimal example:  \documentclass{article} \begin{document} Helloworld this is a very long sentence Helloworld this is a very long sentence Helloworld this is a very long sentence Helloworld this is a very long sentence Helloworld this is a very long sentence `|Liver|CNS|Lungs`.  \end{document}   I have this in my body |Liver|CNS|Lungs which goes over the margin:    How can you type pipes in your body?


I am having no luck with the following:  I would like to set up a driver that looks at the Z position of an object falling per RB physics (not BGE) and controls some constraint settings based on Z position.  To be more specific, I am trying to use a driver to break a constraint or reduce its breakable threshold as the object (constrained with other falling objects) nears the passive ground plane.  Any thoughts would be appreciated.


Zero Divisors in Direct Product of Rings

Suppose that $R = S × T$ is a direct product of rings with $S$ and $T$ each having at least two elements. Prove that $R$ has zero divisors.


How to get the end node of a tree in python?

From a given node tree, what is the most reliable way to get the end node being used for output, if any?  My current approach is to check for the correct output type for the tree (OUTPUT_MATERIAL, OUTPUT_WORLD...) and for is_active_output:  nodes = node_tree.nodes  for n in nodes:     if n.type == 'OUTPUT_WORLD' and n.is_active_output:         return n  return None   However, I see no guarantee that there is only one node with is_active_output (I can set this to True in multiple nodes).  The ShaderNodeTree has an active_input field, but the value is -1.


Is it possible to do calculations like percentage in Views

I am using  module. The view has three columns.  In the third column, I want a calculated percentage using the first two columns of the view.


I saw  answer and I got what he has done, but how do I create a lightmap same as  one?  thanks in advance!  (from what lightmap should be built from (array?) and how do I calculate a lightmap like this?)


A sequence which is a mapping from $\mathbb{N} \to \mathbb{R}$.  For example can the sequence $\{a_n\} = 1/(3-n)$. This would be undefined at $3$. Is it a sequence?


so the problem is strange, cause it's happening on some systems only.  If you have this line:  parse_url('/€?€#€')   On local system with PHP version 7.0.4 it gives me the following result:  array(3) {           ["path"]=>         string(4) "/▒_▒"   ["query"]=>        string(3) "▒_▒"    ["fragment"]=>     string(3) "▒_▒"  }        Something like that is experienced here:            Enter in the $url box:  /€?€#€   But here it's working just fine, although the PHP version is the same as on my machine:   Any idea why is that happening?  The expected parsed url result should be:  array(3) {   ["path"]=>   string(4) "/€"   ["query"]=>   string(3) "€"   ["fragment"]=>   string(3) "€" }   EDIT:  File encoding is UTF-8, PHP internal encodings are also UTF-8, everything that can be set on the server is already UTF-8.


Ubuntu seems to freeze at the "Updates and other Software" page

When trying to install Ubuntu the live mode seems to work fine but I go to install it and it freezes when I click install. I tried to install Linux Mint earlier today and it kept saying 'Computer has zero bytes of storage' and just freezing even when I delete all the partitions on my drive (I've also tried to format the partitions myself but I still seem too get the same problems). I just gave up and tried to install Ubuntu instead and it just seems to freeze when I try to install it. I'm not sure what's causing these problems. I tested a Windows recovery drive I have to see if it would get these errors when trying to re-install Windows but it didn't get any errors I'm quite new to Linux and would really like to use Ubuntu/Linux Mint as my operating system but I'm lost on whats causing these errors. Thank you


About logistic distribution and showing $Y=\frac{1}{1+e^{-X}}$ has an uniform distribution over (0,1)

Let X have a logistic distribution with PDF $f_X(x)=\frac{e^{-x}}{(1+e^{-x})^2}$, $-\infty<x<\infty$. Show $Y=\frac{1}{1+e^{-X}}$ has an uniform distribution over (0,1).  Let $Y=u(x)=\frac{1}{1+e^{-X}} $Since this is monotone decreasing, Can use $f_Y(y)=\frac{1}{|u'(x)|}f_X(x)$.  What's the general technique of approaching?


I would like to create something like this.  Specifically my question is about how those curly braces below are drawn and labelled.


Distribution of the maximum of two correlated normal variables

Say I have two standard normal random variables $X_1$ and $X_2$ that are jointly normal with correlation coefficient $r$.   What is the distribution function of $\max(X_1, X_2)$?


What Is The Fastest We Have Seen Wally West Travel?

What is the fastest that we have Wally West travel in any continuity?  I'm not interested in characters talking about potentially how fast they could travel. I'm only interested in them actually traveling at their top speed and the issue number that they do it in.  I'd like to know the issue number and page (image if possible) with the speed that he is travelling.  NB: This has been edited to be broken out into different questions per Flash.


Problems with jQuery selector (after append)

I have seen 1 or two posts like this problem, but mine differs slightly, and the proposed fixes didn't work for me (usually a typo for them) In my case it is not a typo.  I am appending into a div with jQuery, creating a div inside of it on loadup.   When this div is clicked it launches into a method.  However, the selector will not work.  Here is the place where I append the data:  else if (isEquipped != true && data.archer.level == 0) {     $("#locked-list").append(`         <div id="archer-locked" class="archer-link"></div>     `); }   Here is the selector:  $("#archer-locked").on("click", e => {   console.log("hmmm");   if (e.target.className != "") {     classView(e, false);   } });   Everything looks like it should inside the inspect console.  However, it is not triggering for some reason.


Error using hyperref, cleveref and \newtheorem: no counter defined

Here's my problem: I'm writing some mathematics lecture notes. I needed some different theorem types, such as propositions, lemmas, plus observations, examples and definitions whose numbering depends on theorems. Plus, I'm Italian, and wanted custom output labels for those. So I declared them as follows (found that solution probably here on StackExchange, even if I can't find the question right now).  \theoremstyle{plain} \newtheorem{thm}{Teorema}[chapter]  \theoremstyle{definition} \newtheorem{defn}[thm]{Definizione} \newtheorem{exmp}[thm]{Esempio} \newtheorem{obs}[thm]{Osservazione} \newtheorem{prop}[thm]{Proposizione} \newtheorem{lemmy}[thm]{Lemma}   However, right now, I get some problems with their numbering when using both the hyperref and cleveref packages. I want to use those to refer to a Proposition or such made somewhere before, such that I can be automatically redirected to where it is written by clicking on it, but with the link label automatically presenting the theorem type (Lemma, Osservazione and such), and eventually changing automatically if I decide to rename Lemma to, say, Short Theorem. I made a short example:  \documentclass[twoside]{book} \usepackage{amsthm} \usepackage{cleveref} \usepackage{hyperref}   \usepackage{mathtools}  \theoremstyle{plain} \newtheorem{thm}{Teorema}[chapter]  \theoremstyle{definition} \newtheorem{lemma}[thm]{Lemma}  \begin{document} \chapter{Chapter} \begin{lemma} \label{foo}Proposition here \end{lemma}  As stated in \hyperref[foo]{ \cref*{foo}}  \end{document}   Even if I replace \cref with \ref here, not actually using cleveref, I get the error anyway, so it depends just on the packages declaration.  The error I get is the following:  ! LaTeX Error: No counter 'l' defined   If I replace "lemma" with "observation" I get the same error with counter 'o', and so on. Practically, it sees the first letter of the name of the theorem type I have declared as the counter, or something similar. Has anyone got any clue on how to get rid of this conflict?


Inviscid Burgers' equation: drawing the shock

Solve Burgers' equation $$ \left\{\begin{aligned} u_{t}+uu_x &=0 \quad \text { for } \quad t>0 \\ u(x, 0) &=u_{0}(x) \end{aligned}\right. $$ with $u=u(x,t)$ and the side condition $u(x,0)=-x$.  I am aware that a similar question with  has been asked before, and asked this because I was wondering what the difference would be when the characteristic lines are set to converge.


Why does `==` sometimes work for Strings?

Consider this piece of code:  String baz = "Hello"; String foo = "Hello"; return foo.equals(baz); // Returns true as expected return(baz == foo); // Also returns true!   Why does the == operator also return true in this case? It should be comparing the locations of the objects themselves, not their values.  I'm assuming that Java does some sort of internal work and determines these two are of type String (or Integer, etc.) so it implicitly calls the .equals() method.  I'm curious to know exactly how this is done (ie. what goes on in the background), and why this is done, what if I actually wanted to test their location in memory?


Is "me trying to do [something]" grammatical?

Why are there some people saying     Me trying to...   Should it be      "I try to..."    Is this grammatically correct? How should I then finish this?


Building a Binary Search Tree in java. Unable to identify the reason for null error?

Creating the node                class Node{            int data;            Node left;            Node right;            Node(int data){                    this.data = data;                    left = null;                    right = null;            }        }  Creating the tree         //create tree         class Tree{             Node root = null;             void insert(Node temp, int data){                 Node NewNode = new Node(data);                 if(temp == null){                      temp = NewNode;                 }                 else{                     if(data<temp.data){                         insert(temp.left,data);                     }                     else{                         insert(temp.right,data);                     }                 }             }         }  Main function                  public class test{             public static void main(String[] args) {                 Tree t = new Tree();                 t.insert(t.root,3);                 // t.insert(t.root,1);                 System.out.println(t.root.data);                 }         }    Upon running I get t.root is null. I don't understand why. Need some help. I am passing t.root as temp, so when temp gets modified doesn't that mean t.root does too?


Film where the black psychic is tricked into drinking Long Island Iced Teas, causing him to miss the monster

This came upon me when I was at Applebee's tonight with my wife, and the topic came up of when the chain was offering $1 Long Island Iced Teas. I suddenly remembered a scene from a film I saw part of in high school (1995-1998). It was set in modern times, with this team hunting a monster. One of the members of the team was a black psychic. The team's at a bar and it turns out he doesn't drink, so the group suggests a "non-alcoholic"  (for those not in on the joke, Long Island Iced Tea is a mix of various alcohols, and a bit of cola, with no tea in the mix. It's generally very potent stuff). Cue a scene where he stumbles out in the alleyway, and blearily regards the monster, before he walks away, unharmed, only to realize upon sobering up that he encountered the creature.  I honestly don't remember what happened in the rest of the film, but that scene stuck with me, and it seems a distinctive enough one to be searchable.


I had developed a tool by using C# (ArcObjects) and I want to (import that customized DLL and) call a particular function from that class by using ArcPy.  How can I achieve this?


How to fill the area under a function using the package tikz? Only tikz. Is it possible? This is what I have:  \begin{tikzpicture} \draw[very thin, gray!30, step=1 cm](-4.9,-3.9) grid (4.9,3.9);  \draw [thick] [->] (-5,0)--(5,0) node[right, below] {$x$};  \foreach \x in {-4,...,4}    \draw[xshift=\x cm, thick] (0pt,-1pt)--(0pt,1pt) node[below] {$\x$};  \draw [thick] [->] (0,-4)--(0,4) node[above, left] {$y$};  \foreach \y in {-3,...,3}    \draw[yshift=\y cm, thick] (-1pt,0pt)--(1pt,0pt) node[left] {$\y$};  \draw [domain=-2:2, variable=\x] plot ({\x}, {\x*\x}) node[right] at (1.5,2) {$f(x)=x^2$};   \end{tikzpicture}   Please tell me, how do I fill the area under the function I drew? I mean the area between x axis and the curve.


When I try to run sudo apt-get update, I get these errors: E: The repository 'http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  What could be the issue? How can I solve this?


Need safe power supplies for beginner class with indicator light

In an intro electronics class in high schools, we use 6v battery packs as a way of delivering safe power for experimenting.  However, the logistics of constantly getting fresh batteries, and our distaste for using so many batteries is leading to a search for an alternative.  We would like an inexpensive power supply that delivers small amounts of current (Ideally both 5V @ .2A, 12V @ .2A for example).  Building such a supply as a project would be possible for a class of the more advanced students.  So the question is to find a design.  However, it would have to be protected from short circuits, and ideally would indicate to the student (with an LED?) when they have made a mistake and short circuited.  I found one design for a DC circuit, though this one requires DC voltage in:   Obviously I could take the above design, add a transformer and full-wave rectifier, but that's both big and clunky as well as possibly not optimal.  In an earlier question, someone suggested a 5V wall wart.  I can find inexpensive 5V wall warts, but would ideally like 12V as well, and have no idea if a given wall wart is short-circuit protected and even if they are, I want an indicator SHOWING when there is a short-circuit.  I would like to take one and build in short circuit protection with an LED or alarm showing when a short happens, as well as a power indicator showing when it is on.  Can anyone suggest a design that we can build or buy?  Since we are talking dozens of units per class, the cost has to be kept low.


Does choosing not to submit GRE scores look bad (particularly for CS PhD programs)?

I am preparing to submit applications to high ranking CS PhD programs in the US. My GRE quant score is not quite what I wanted (162V/163Q). I have strong research experience, good letters from professors I worked with, and a decent GPA (~3.6) from a top 10 undergrad CS school. However, my quant score is only around 80th percentile, whereas many top CS programs have averages in the 90-95 range. I'm not sure if submitting my GRE scores will hinder my chance, or if the opposite case is true. Is it the case that a student without GRE scores will look lazy, or look like their hiding poor scores? All of the institutions that I am applying to have made the GRE optional.


how to remove ubuntu compleletly from my laptop and install windows?

i have bought an laptop with Ubuntu version 12.04 and i want to remove it completely from laptop and install windows but i can't and i don't know how to uninstall it , So could anyone tell me please how to remove it ?


When I look at System Preferences > Java > Update, I see      Your system has the recommended version of Java.   Java 7 Update 79  From Terminal, java -version:     java version "1.7.0_71"   Java(TM) SE Runtime Environment (build 1.7.0_71-b14)   Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)  From Terminal, export:     JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home"  In addition to that, I also have the Java from Apple/Oracle installed as well (when first prompted to install when opening a Java-based app when there's no Java yet installed)   Questions:   Is Java 7 Update 79 == jdk1.7.0._71.jdk? Or are these separate? When running some thing with Java, there is always the following:      objc[63077]: Class JavaLaunchHelper is implemented in both   /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/bin/java   and   /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/libinstrument.dylib.   One of the two will be used. Which one is undefined.    I'd be more than willing starting from scratch had I understood the steps to do that properly (remove, re-install). If it matters, am running OS X 10.10.


Route mail in postfix to different relays based on subject

I am looking to configure postfix to route messages to different relays based on the contents of a subject line.  The desired result would be if a user sent an outbound e-mail with a specific tag say "SECURE:" at the start of the subject line it would forward to one relay (1.1.1.1) but if the tag was not specified the message would be delivered another relay (2.2.2.2).  I have investigated header checks, before and after message filtering, and postfix proxy but I have not been able to pin down how to accomplish changing the mail route based on message contents (which seems like it should be a fairly simple thing to do).  I might expect to involve procmail for this task, but would like some assistance in where to begin. Can anyone assist?


Can I store all the content of my previous iPhone in a new iPhone using iTunes?

I have an iPhone 4S with multiple backups in my computer and I'd like to buy a new iPhone.  Can I connect the new device to the computer and immediately store all the content from the previous iPhone? I want to move all the photos, messages, etc.


What causes the shadow at the bottom of this photograph?

I just got a new (to me) Nikon D70s to see if the DSLR world is right for me. My dad took this picture of me:    In the middle of the bottom there's a rather large semicircle of shadow. Is this caused by the built in flash? If so, how can I avoid it (if I keep using the flash). Interestingly enough, when I shoot portrait instead of landscape, the semicircle doesn't appear.


Is it possible to group questions and export them in PDF format?

Is it possible to group SO questions and export them in PDF format?  Sometimes I like reading offline better than reading on my screen. In this case, I prefer to print stuff. This could also be nice as reference reading, for example for in a waiting room or on the toilet at the office :).  I recently learned about the beauty of the book creator on Wikipedia. Is there anything like it on Stack Overflow? I found only , but it is about a single question with multiple answers, while I'd like to group related questions with answers into one PDF.


How Can I create banners like this in Ubuntu ?


D&D 5e, Magic Initiate Feat as a Fighter

I'm making a Fighter with a splash of Druid, and sacrificing a feat for Shillelagh, Produce Flame and Faire Fire.   HOWEVER! In the description of Produce Flame, it says, as your character gains in levels, you get additional d8 for its damage rolls.  The wording is specific about the fact that it's your characters level, not spellcasting level.   Is this the case??   Having Shillelagh as a Fighter, being able to turn wooden weapons into a d8 magical weapon, added with my Extra Attacks, will give me a maximum, 4d8 damage potential when taking the Attack Action. With Produce Flame under the same level condition and interpretation of the wording in the spells description, I would also have a similar ranged attack, which at maximum, (I believe is range 30?), and does 4d8 damage.   TLDR ; Is this the case for Produce Flame? The damage scales off of your characters level and not your spellcasting level?   Most of the specifications between casting spells and your spellcasting level, that i've read, are focused around spell slots. But being that Produce Flame is a cantrip, a level 0 spell, you never have to use a spellslot to cast it, in fact you can cast it as many times as you like, just like Shillelagh, despite your pure classes affinity for spells.


How do I make RewriteCond %{HTTP_COOKIE} match a cookie value exactly?

How do I make my rule match an exact value of a cookie? I've tried:  RewriteCond %{HTTP_COOKIE} ^its=me$ [NC]  RewriteCond %{HTTP_COOKIE} its=^me$ [NC]  RewriteCond %{HTTP_COOKIE} its="me" [NC]  RewriteCond %{HTTP_COOKIE} its=me [NC]    The last almost works, but matches when extra text is at the end of the value, like "me2". The condition should be true only if the its cookie has an exact value of me, with nothing more before or after.  These values should not match:   you me2 [empty string] [cookie is not set at all]


removing outliers in skewed data for xgboost

i have a couple of columns in my data which are postively skewed. they are non-normal from the hist plots. plotting a qq plot further cinfirms this. i should remove outliers from my data for xgboost. however what method should i use to remove outliers from postively skewed dataset.    i have considered log transform and cube root to transform but this still leaves it skewed (note i do have some negative values which are expected)


How to add the current project path in Print Composer?

I'm trying to demonstrate to my company that we can begin using QGIS in conjunction with (and sometimes even instead of) ArcGIS and MapInfo.  I've started setting up some layout templates but have run into a.  In Print Composer, is there a way to add the current project path?  In ArcGIS, the dynamic text is:  <dyn type="document" property="path"/>   I'd prefer not to have to copy/paste the document path every time I make a map.    EDIT:   To address answer and comments by artwork21 and Nathan W:  I'm using QGIS 2.0.1.  I would also like this path to appear to anyone who may need to open the project for editing without modifying their startup.py file.


I would like to know about QGIS plugins from a user point of view, because some plugin lack some user case, and one doesn't know what to do with it. I guess a lot of great plugin are under-used because people don't know what it does.  Could you describe a plugin you like, what it's supposed to do, and specifically what you use it for and how you use it ? The best would be an answer = a plugin !   My question is similar to , but QGIS has evolved since and many features have been implemented and some plugin are depreciated, while great plugins appear every day.  I hope my question is not too broad. Any answer on any plugin can be useful in my opinion, even if the plugin is depreciated some day. I'll probably answer to my own question for some plugins I like and use a lot too.


find recurrence relation such that you have n digit sequence of $1$'s and $2$'s such that you have at least one instance of consecutive 2's

I let $a_n$ be the different sequences with $n$ digits such that there is at least one instance of consecutive $2$'s. This is what I did, if I place a a $1$ first, I have $n-1$ digits left and by definition, I have $a_{n-1}$ different sequences with $n-1$ digits...one instance of consecutive $2$'s.  Next case: Now instead of placing one $2$ I place two $2$'s such that I have my met condition. What follows in the next $n-2$ digits may or may not have an instance of consecutive $2$'s but I don't care anymore. With that being said, there are $2$ to the $(n-2)$ different sequences left. So my recurrence relation is $a_n = a_{n-1} + 2^{n-2}$. What's wrong with my recurrence relation? Thank you in advance for your time.


Why does negative indexing to zero not work?

Given: li = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']  Why does print(li[-5:0]) not print [d, b, c]? -5 is the beginning and 0 is the end, so, why does print(li[-5:0]) print an empty list? Shouldn't print statement start from d which is -5 and go through until 0+1 which is c?


I am trying to upload shapefile polygons onto my Garmin 60Cx GPS.  I use the Trace tool and load shapefiles via Minnesota DNR's application.  There are almost always gaps in the shapefile on the GPS, making lines and the shapefile hard to read.  Oddly enough, these gaps are often where I have not lifted the mouse/clicked anything to offset the trace tool.    Is there something that I am doing wrong?


See the code given below. Actually, I am looking for a tree of number 36.  Can somebody let me know what I did wrong?  \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{tikz} \usepackage{pst-tree} \psset{levelsep=1,treesep=1,nodesep=2pt} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{lastpage} \lhead{} \rhead{} \chead{} \rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}} \lfoot{} \cfoot{} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} \begin{document} \preview \psTree{\TR{36}} \Tcircle{2} \psTree{\TR{18}} \Tcircle{2} \psTree{\TR{9}} \Tcircle{3} \Tcircle{3} \endpsTree \endpsTree \endpsTree \endpreview \end{document}


How does the computer know that the PC was not properly shut down?

Actually, this question struck me because of power cuts in my house. When there is a power cut, there is a sudden loss of power from the computer.   How does the computer know that the shutdown was not properly done?


I would like to update my hosts file and restart dnsmasq from a web interface (php/apache2). I tried playing around with . I have both apache and dnsmasq running on an EC2 instance.  I understand that Linux ignores the setuid bit on text scripts, but works on binary files. (Have I got something wrong?). I added exec("whoami"); to the example C program in Wikipedia. Although the effective UID of the C program is 0, whoami does not return root :-(  I would thoroughly like to avoid      echo password | sudo service dnsmasq restart   or adding apache to the sudoers without password! Is there a way out? How does webmin do such things?


For polynomial with degree 3, when $a + ib$ is a root show $a-ib$ is a root, and it also has a rational root.

Let $p(x)$ be a cubic (i.e. degree $3$) polynomial with   rational coefficients. Suppose $p(x)$ has a root of the   form $a + ib$, where $a, b$ are rational,      Prove that $a-ib$ is also a root of $p(x)$, and that $p(x)$ must also have a rational root.   My Attempts:  By assumption, we have: \begin{align} p(a + ib) &=c_3(a + ib)^3+c_2(a + ib)^2+c_1(a + ib)+c_0\\ &=a^3 c_3  + 3 i a^2 b c_3  + a^2 c_2  + 2 i a b c_2  + a c_1 + i b c_1  - 3 a b^2 c_3  - i b^3 c_3  - b^2 c_2  + c_0\\ &=0 \end{align} This implies: $$ c_0= - a^3 c_3  - 3 i a^2 b c_3  - a^2 c_2  - 2 i a b c_2  - a c_1 - i b c_1  + 3 a b^2 c_3  + i b^3 c_3  + b^2 c_2$$ Then for $p(a - ib)$ we have: \begin{align} p(a - ib) &=c_3(a - ib)^3+c_2(a - ib)^2+c_1(a - ib)+c_0\\ &= a^3 c_3  + a^2 c_2  + a c_1  + i b^3 c_3 - 3 i a^2 b c_3   - 3 a b^2 c_3  - b^2 c_2 - i b c_1 - 2 i a b c_2 \\ &- a^3 c_3  - a^2 c_2  - a c_1 + i b^3 c_3 - 3 i a^2 b c_3 + 3 a b^2 c_3  + b^2 c_2 - i b c_1   - 2 i a b c_2  \\ &=- 6 i a^2 b c_3+ 2i b^3 c_3- 2i b c_1- 4 i a b c_2 \\ \end{align}  I think this isn't a good approache, and I'm stucked now, that didn't give $p(a - ib)=0$ $\dots$ how do I prove this $?$  Any help or hint or suggestion would be appreciated.


Splitting a file into multiple files based on 1st column value

I have seen solutions of splitting a file with respect to pattern matching and line matching but what I want is the following.  The scenario is, let's say I have a file file1  -   A.B|100|20 A.B|101|20 A.X|101|30 A.X|1000|20 B.Y|1|1   Now I want to split this file into 3 different files just based on the first column where the 1st file would be all the lines containing A.B in the first column, the 2nd file should have all the lines with A.X and so on.  If the first column changes in  any way, there should be a new file created for those lines. Is there any way of doing it with bash  or awk?  Since there is no way of actually knowing before hand what the first column value is, I wasn't able to use any feature like split or cut. Thanks for the help in advance!


how to efficiently convert words to integers in python to use in a calculation

A math challenge for class asks us to take words (like five seven six three) and change that to an integer (like 5763) to use in a calculation within the program.  There are several examples of words2number that take words that spell out a number (like five hundred and sixty five, as if you're writing a check).  But I want to take the individual words and place them into their corresponding number.  nine nine five zero = 9950,  six three five = 635,  etc.


What are the argument(s) that I can use proving that   $$1+\frac{1}{3}+\frac{1}{5}+\frac{1}{7}+\cdots-(\frac{1}{2}+\frac{1}{4}+\frac{1}{6}+\cdots)$$  does not exist.    The question was:  Find a arrangement of $\sum\frac{(-1)^{n-1}}{n}$ for which the new sum is not exist(even not $+\infty$ or $-\infty$)


How to find first empty line and delete with in the file using sed command regular expression

I need to find the first empty line in the text file using the sed command regular expression.  below is the content that I have   this is defile to be cleaned skip rest consl   In the above content, I need to find only the first line that is an empty line and delete the first line.  I have used below regular expression, but it did not work for me, it is finding empty lines everywhere in the file.  ^\s*$


If we allow some $g(x) = \frac{\sin(x)}{x}$ such that $g(0) = 1$ and also some $f(x)$ where:  $$f(x) = \prod_{k=1}^{\infty} 1 - \frac{x^2}{\pi^2k^2}$$  Then it is said f and g are equal. But my question is, what are the specifics besides the fact that:  Both have the same value at $x=0$. Both have the same roots, and an infinite number of them of course.  I feel like those two criteria definitely don’t justify equality, so I would like to know what legitimately justifies it.


Time Machine deleting backups from several months ago (but not the oldest)?

During its "Cleanup" phase, Time Machine has recently been deleting backups from several months ago—even though these aren't the oldest backups, and my backup drive isn't full.  My backups go back to January 2012, yet just today, Time Machine deleted backups from May 21, June 11, July 2, and July 23 (all in 2012). And plus, my Time Machine drive still has 200 GB free.  Why's it doing this? Shouldn't it just either delete my backups from January 2012 first (if it needs the space), or just delete the expired backups in the past 24 hours or 30 days (based on its normal rules)?


Unable to view SD card files on my computer

I'm using a Moto G(2014) model. I recently upgraded my android to 6.0 and I noticed my computer doesnt display my files when I connect via USB. I changed the USB notification option to MTP and now I can view my internal storage files but my SD card is still showing an empty folder. How do I fix this?   Edit: I tried to copy files onto my SD card and they transferred without any problem but I can't view the existing files on my SD card.


Substract shape with gradient with letter

My problem is that when I try to substract the K from the shape by using the Shape builder tool, it messes up the gradient on the shape. How can I manage to keep the gradient as it is but also avoid this very little line.    This is the expected result, but the K is actually white (not transparent) and also, there is a very thin circle line when the K intersect with the circle borders.    You can see here the very thin line.    This is the K which is used to substract with shape builder tool. To do so, I make sure that both K and shape are not grouped, and then I click on the tool and click on the K    This is the result of the substraction. As you can see, the gradient is completely messed up compared to how it was before.  The requirement is also that we need that to stay a vector.


When ever user comes to my website he should be greeted by a pop up or normal login page only. When he logs in whole website should open up to him. SO how do i do this ?


As a college art student, am I allowed to enter amateur art contests?

I am currently studying photography at an art school. I want to enter a few photo contests, however a few of them are for amateurs only. I don't make any money off of my photos just yet, am I still considered an amateur as far as these contests are concerned?


I am using a function that returns some integers  int[] return;   This function is inside a loop like this  public static int[] toEOBArray(double[] tempVal)  {     int[] out;     for (int i = 0; i < 10; i++)     {         out = fixArray(tempVal[i]);     }     return out; }   What I want is as new arrays come from fixArray to add them to the previous results, so in the end I have a big array that will contain all the small arrays resulting from fixArray  What is the most efficient way of doing this? My main problem is not knowing how to initialize the array that is to hold all the values.


How to get more options in the Viewport shading?

in another question thread i made. Another community member showed me his viewport shading window. in his window he had alot more options than mine. His screen:  My screen:  How would i be able to get those options too? The blender version that i am using is 2.9 by the way.


This is a question about studying for the Putnam examination (and, secondarily, other high-difficulty proof-based math competitions like the IMO). It is not about the history of the competition, the advisability of participating, the career trajectories of former participants, or other such things. This is a question about how one can most effectively prepare to do well.   Many such questions have been asked before on this site. The answers, while helpful, all seem to boil down to recommendations of the same standard canon of books with the encouragement to do more problems. This is very good advice, but I want to approach the topic from a different angle.   We have a wealth of talent on this website, and in particular many users who have done quite well at these competitions. I would like to hear their personal stories. In particular, how did you prepare, and what kind of time commitment did you put forth? And advice, especially practical study tips, is always welcome. :)  edit: Also, it seems to me that the majority of people who do very well at the Putnam had developed the majority of their skill in high school, and focused mainly on their classes in college (while attending whatever Putnam seminar their college offered). I would appreciate comments on this matter too.   (Motivation: It seems to me like the role of talent is vastly overestimated in mathematics, and in mathematics competitions in particular, to the point where the Putnam exam gets used as a sort of pseudo-IQ test. Of course the people who do well have gifts, but it also seems that, without fail, they all have a history of doing many hours of mathematics a day for years on end. For example, I recall reading an interview with Tao where he admitted his childhood consisted of nothing but math and computer games. I am trying to gather some evidence on this matter [and advice for Putnam preparation!]. Please keep the answers focused on the actual question, though.)


Cannot "read further comments " or add comments

For a week now I cannot add comments, or use the blue "view more comments" or flag questions. How to fix this? A week ago when travelling I had the captcha option happen on all my comments and answers. That stopped when I got home. I had thought it was because I was too active on stackexchange, but when I used a laptop (or the app on this tablet) there are no restrictions at all. Same on each SE site, regardless of reputation (e.g 1000) Tried logging out and in again. Using Safari 9.0 (the latest permissible) on ipad 2 with iOS 9.3.5 Tried using Dolphin Browser, didn't work there either. (Cannot use chrome, firefox etc on this old iOS). Tried clearing safari cache and history. When I hit "Add a Comment" or "flag" it just jumps to the top of the question. I can still answer questions, but with none of the text formatting options or no picture adding available. Cannot up- or down- vote. When I am logged out, or on sites where I am not a member, e.g Aviation, I can use the blue show further comments button! Not sure if this is a problem with my account, or change of SE software.


How can I get this symbol without using bbold?

A solution I saw somewhere suggested to use   \usepackage{bbold} $\mathbb{1}$   which works well and I get what I want. However, now other symbols used to represent real numbers, natural numbers, etc look ugly.    I'd like them to look (without using bbold)    I'd like to only use that package to achieve that strange double one. Is there any way I can do that?


What is the best way to farm Monkey King's Garb (Sunwuko Set)

I have been playing a Monk for around 50 hours now and I haven't got a single drop of this item. I am now just planning to farm it as best as I can but am unsure how to do this.   What is the best way to achieve this set? Shall I do GR? Or normal rifts on T1 over and over until I get them?   Or is aiming for blood shards better as I have read you can get this set in there. Any help would be great as I feel like im wasting a lot of time by farming the wrong places for these items.   All my gear is pretty weak, I have a DH that has 900k damage so I can run T3 and handle it pretty well. Thats what I have been using to farm T1 rifts for blood shards.


I have a site with 3 category levels in some areas, 2 category levels on another areas and only one category level in other areas prior to the content. I am trying to settle in on the most consistent URL patterns. From what i have read shorter is better, so i am hesitant to show all three categories as my content titles are multi-word as well as my categories.   So if I were to shorten this:  domain.com/clothes/pants/jeans/Levi-skinny-jeans  Is it better to keep the functional URL from the parent category, and go to content skipping the 2 sub categories?  domain.com/clothes/Levi-skinny-jeans  Or would it be better to keep the immediate context though the URL doesn't represent the path properly?:  domain.com/jeans/Levi-skinny-jeans  Any help would be appreciated.


Locking size of a faces in edit mode. Equal faces sizes for mockup

I would like to make a tri-folded flyer mockup in blender. When I split a plane for 3 parts and select edge between faces, during editing two faces are changing sizes. Is there any way to drag edges and keep faces in equal sizes? Is there any lock button, or should I do that with bones? I want to prepare projects in affinity designer and put exual size radio into blender. When I trying edit it in simple edit mode, it causes faces to not having proper project dimensions.


Can anyone please explain how to know whether a vector field has  or not by seeing its diagram?  I have read that a vector field must change for having divergence but why is divergence zero in middle of electric field between dipole?


I am trying to extend the wireless network in my house.  I have a cable modem attached to a D-Link DIR-635 wireless router. This works fine if I am in the part of the house near the router.  I have got a set of  adapters to connect to the router through the power cables.  I have connected one adapter to the wireless router and one to a PC. This works fine.  What I have done now is to get a second wireless router (same model as first). I want to connect the second wireless router to a avmini adapter. When I run the setup for the router, I get a message at the end that I cannot connect to the Internet.  I have read that it should be possible to solve this by putting the router in bridge mode, but I have not been able to find how to do this.  So how do I get this to work?


I have an LG V40, and in both Android 9 and 10, it seems that the "Screen Recording" app is always running, and not possible to keep it Stopped. Greenify shows it as running in "Foreground":  If I force hibernation, seconds later it will be running in Foreground again. It is not possible to disable this app, and it requires access to Camera and Microphone:  These permissions cannot be removed either:   Should I be concerned? Is there any way I can fully disable this app? My OS is European.


Why can't I set monitor mode with the wl STA driver on a Broadcom wireless card?

I am trying to set my wireless card into monitor mode. I am working with:  description: Wireless interface product: BCM4312 802.11b/g LP-PHY vendor: Broadcom Corporation logical name: eth2   When I try to set it to monitor mode I get:  sudo iwconfig eth2 mode monitor Error for wireless request "Set Mode" (8B06) :     SET failed on device eth2 ; Invalid argument.   I also tried using:  $ sudo airmon-ng start eth2   Found 5 processes that could cause trouble. If airodump-ng, aireplay-ng or airtun-ng stops working after a short period of time, you may want to kill (some of) them!  PID    Name 1094    NetworkManager 1096    avahi-daemon 1097    avahi-daemon 1167    wpa_supplicant 1720    dhclient Process with PID 1720 (dhclient) is running on interface eth2   Interface    Chipset        Driver  eth2        Unknown         wl (monitor mode enabled)  $ sudo iwconfig lo        no wireless extensions.  eth0      no wireless extensions.  eth2      IEEE 802.11bg  ESSID:"Redacted"             Mode:Managed  Frequency:2.437 GHz             Bit Rate=54 Mb/s   Tx-Power:24 dBm             Retry min limit:7   RTS thr:off   Fragment thr:off           Power Management:off           Link Quality=4/5  Signal level=-59 dBm  Noise level=-57 dBm           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:24  Invalid misc:0   Missed beacon:0   I've gone through various driver tutorials, but nothing is helping. Anyone know how to get this working for this specific wireless card?


I have modified code from  replacing char[50] to char* in following code:   #include <stdio.h> #include <string.h> int main () {   // change made in following line from char string[50]   char *string ="Test,string1,Test,string2:Test:string3";    char *p;   printf ("String  \"%s\" is split into tokens:\n",string);   p = strtok (string,",:");   while (p!= NULL)   {     printf ("%s\n",p);     p = strtok (NULL, ",:");   }   return 0; }   However, I get segmentation fault with above code.   How can I use pointer version in above code?  Also, can segmentation fault cause damage to data on disk?


I did:  $$105 = 4*26+1\\ 1 = 105*1-4*26$$  So the inverse should be 5 as it is $\equiv 1 \pmod 4$ but it's 1. Why?


Creating config file /etc/php/7.0/cli/php.ini with new version Setting up php7.0-fpm (7.0.8-0ubuntu0.16.04.3) ... Not replacing deleted config file /etc/php/7.0/fpm/php.ini insserv: warning: script 'K01jira' missing LSB tags and overrides insserv: warning: script 'nagios' missing LSB tags and overrides insserv: warning: script 'jira' missing LSB tags and overrides Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details. invoke-rc.d: initscript php7.0-fpm, action "start" failed. dpkg: error processing package php7.0-fpm (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of php7.0:  php7.0 depends on php7.0-fpm | libapache2-mod-php7.0 | php7.0-cgi; however:   Package php7.0-fpm is not configured yet.   Package libapache2-mod-php7.0 is not installed.   Package php7.0-cgi is not installed.  dpkg: error processing package php7.0 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php:  php depends on php7.0; however:   Package php7.0 is not configured yet.  dpkg: error processing package php (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates it's a follow-up error from a previous failure.     No apport report written because the error message indicates it's a follow-up error from a previous failure.         Errors were encountered while processing:  php7.0-fpm  php7.0  php E: Sub-process /usr/bin/dpkg returned an error code (1)   I just upgraded from Ubuntu 14.04 to 16.04. Before doing so we completely removed mysql and php with the mindset of installing the new version afterward.  We installed a fresh apache and mysql server with zero issue. But when it comes to php we keep getting stuck with the above warning.  The guide we just followed was   How to resolve this issue and install php?


I am trying to calculate (ab)/2, where a and b are floats. I am then printing then with printf("%.5f", (ab)/2). The result I am expecting is 187.50000, but instead I am getting the result of 187.49997. This is my code here.  #include <cstdio> #include <cmath>  using namespace std;  float ax, ay, bx, by, k, n;  int main() {     scanf("%f %f %f %f", &ax, &ay, &bx, &by);     if (ay == by || ax == bx) printf("N");     else     {         k = (by - ay)/(bx - ax);         n = ay - k*ax;          if (n == 0) printf("N");         else         {             float a = abs(n);             float b = abs(n/k);             float c = sqrt(a*a+b*b);             printf("%.5f %.5f %d", a+b+c, (a*b)/2, (k > 0 ? (n > 0 ? 2 : 4) : (n > 0 ? 1 : 3)));         }     }       return 0; }   The input values I am using are:  12.5 -60 25 -90   For this test case, the values for the following variables are:  k = 2.4 n = 30 a = 30 b = 12.5 c = 32.5   (a*b)/2 should obviously equal 187.5, but I still get the result of 187.49997.  I am aware that I should always use doubles instead of floats, but I couldn't get around printing doubles with printf. The %.5lf always seems to output -0.00000. I could use some help with that problem too.


Explanation of the formulas for sums $\sum nr^n$ and $\sum n^2 r^n$

So I am studying series for an exam right now and there is an example in the book I am studying (unfortunately the book is specific to my university so I cannot give any link) where certain series' sums are calculated. At some point the following ones are calculated:  $$\sum_{n=1}^{\infty}\left(\dfrac{1}{5}\right)^{n-1}=\frac54$$  and  $$\sum_{n=1}^{\infty} n\left(\dfrac{1}{5}\right)^{n-1}=\frac{25}{16}$$  I do not understand the reason that extra $n$ (the multiplier in the front) squares everything. Also I have no clue what to do when I have say   $$\sum_{n=1}^{\infty}n^2\left(\dfrac{1}{5}\right)^{n-1}$$  Do I cube everything? Is there a specific way to do it that I do not get? If there is some online paper, book chapter or whatever that could help me, please link me to it!


After having updated to 17.10 I noticed a problem to run sudo nautilus. In user mode it works  ilan@ilan-Desktop:~$ nautilus Initializing nautilus-dropbox 2015.10.28 ^C ilan@ilan-Desktop:~$ sudo nautilus Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused  (nautilus:27798): Gtk-WARNING **: cannot open display: :0   I tried to look around and found  There is a suggestion that perhaps xorg.conf is causing problems but I see no such file in /etc/X11/xorg.conf.d. There is xorg.conf.failsafe from April 2016.  Thanks for any suggestions, Ilan


Can someone please explain this question from my exam

public class ExamPreparationDemo { public static int[] arrayDivisionByD2(int[] numbers) {     for(int i = 0; i < numbers.length; i++)         numbers[i] = numbers[i]/2;     return numbers; }  public static void main(String[] args) {     int[] numbers = {3,8,9,10};     int[] numbers2 = arrayArrayDivisionBy2(numbers);               System.out.println(Arrays.toString(numbers));    System.out.println(Arrays.toString(numbers2));  // My Question: When I run my program, I see "1,4,4,5" "1,4,4,5". But why did my variable 'numbers' didn't stay the same? I.e "3,8,9,10"? They both changed while I only wanted "numbers2" to change. Please help.


How to convert KMZ geometry collection to SHP

I try to open and convert to shape a KMZ with Qgis, but impossible ! When I open it, I have this :    I select "Vigne" with 35 entities then OK. But there isn't entity displayed. In layer panel I have this weird icon.    So I decide to save it in shape, maybe it will work... But Qgis return me this message :    Somebody have an idea, how to read and convert this kind of KMZ ?


Harem anime and manga has become pretty popular since the 90s. The first harem anime I saw was Tenchi, but I think that studio might've had an earlier, similar show. I think the definition of a harem anime or manga might be a bit subjective, so I will try to be specific here.  To me, a harem anime or manga is one where multiple female characters surround a male lead.   At least two must be attracted to him.  The female characters who are attracted to the lead must appear regularly.  What is the first anime or manga that fits this description?


How to withdraw your paper from an open access journal where it has been accepted?

My paper got accepted in a mediocre open access journal. However later I found out that its publishing fees was too high.   What would be the correct way of asking a withdrawal of your article from the journal?


References on the non-compositeness of the known elementary particles

What paper(s) or theory(s) describe or prove that the elementary particles that we have determined today cannot be made up of smaller more fundamental particles?


I have a time series going from 2013 until late 2016. I am using the auto.arima function in R to forecast the next 12 months. I get the following where the black line are my observations and the blue line is my prediction.  fcast <- forecast(auto.arima(a.ts)) plot(forecast(fcast, h = 12))      However when I use this custom arima function I get a much better result  fit <- arima(a.ts,seasonal=list(order=c(0,1,0),period=12)) plot(forecast(fcast, h = 12))     Why is the auto.arima function not producing a result that doesn't seem anywhere near as good. I know they are using different parameters but I would have thought that auto.arima would have found the best parameters and forecasted using those?


Resources for applications of Keldysh Green's functions

I am looking for resources to learn Keldysh formulation of Green's functions. I am especially interested in learning how they are applied to calculate transport characteristics.  Most of the books I could find introduce the definitions of the formalism but never apply it to concrete physical realizations. So I am looking for an applied reference on the topic.


How does multiclassing work for an artificer?

I am making a character for a campaign that is starting soon. The character is going to start out as a cleric (War Domain) and will multiclass into artificer (Battle Smith).   I have looked at the multiclassing rules, but I am having trouble making heads or tails of it for a multi-class involving a 2/3 caster (the Artificer) and a full caster (the Cleric).  That leads me to my question: what would a level 15 War Domain cleric/level 5 Battle Smith artificer look like? How many spells per level? How many cantrips? Does the artificer's ability to replace cantrips still apply?


Switch the position of theorem numbering

The usual behavior of latex is to write theorems as  Theorem 2.1.1  but I would like to have   2.1.1 Theorem  I think I remember seeing a command that allows you to do that but I don't remember it, any ideas ?


Logins can be added/removed without reauthenticating, allowing temporary XSS to be escalated to permanent account hijacking

When you're logged in to a Stack Exchange account, it's possible to add and remove logins (associated OpenID/OAuth accounts) without performing any form of reauthentication.  This is not a full vulnerability in itself, but it provides an extremely easy way for an attacker who's found a temporary XSS vulnerability to turn that into a permanent account hijack. An XSS exploit on its own may only provide a minute of indirect access to a user's account. But with this login configuration, the attacker could use that minute to automatically:   Add a new attacker-controlled login to the account. For example:   The XSS JavaScript would generate a random identifier, and use that to construct a login URL of the form http://hacker.example/openid/1234567. The hacker.example server would automatically authenticate the first OpenID login request made with a given identifier, allowing it to be added to the account without user interaction. All subsequent login attempts would be automatically rejected for the user. The hacker.example server would notify the operator with the account name and the generated identifier, and would allow them to login to it.  Remove all existing logins from the account. Log the user out of their account, with no way to get back in.   If this exploit were used to hijack moderator and staff accounts it could makes it more difficult to quickly respond to an attack, creating a greater opportunity for extended abuse.  This is a broader instance of the same fundamental vulnerability which was previously-reported as . That instance is a little more straightforward to fix: just ask for the password again when changing it. However, safe reauthentication with OpenID/OAuth logins is more complicated. Most users' OpenID providers will be configured to automatically re-authenticate upon request, so there would be minimal security gain from requesting that.  Instead or as well, my suggestion is that for users that have a verified email address, require an emailed confirmation link to be clicked before committing any login changes.    I'm not a real security expert, but I've just found that fellow Stack Overflow user , who is, previously described this vulnerability in his 2012 blog post :     If an attacker can add additional login accounts then they can create a persistent mechanism to get back into that Stack Overflow account at any time without needing to hijack the session. Now of course the victim can always go into their account settings and identify the presence of the new login, but it’s a question of how much damage is done before then.      How would an attacker mitigate the risk of having their newly added account removed? Just remove the victim’s original account(s) instead.      [...]      Finally, this is also a lesson for those considering using third party authentication providers. Yes, it’s great that you can farm off this work to someone who has a solid implementation, but you still have responsibility for securing the authenticated session on your site. If you choose not to, be aware of the risks because certainly we’ve seen them exploited before.


What are some alternatives to a boxplot?

I am working on creating a website, which displays the census data for a user selected Polygons & would like to graphically show the distribution of various parameters (one graph per parameter).  The data usually has the following properties:   The sample size tend to be large (say around 10,000 data points) The range in values tends to be quire large (for example, the minimum population can be less than 100 & the maximum can be something like 500,000) q1 usually is close to the minimum (say 200) while q2 & q3 will be within 10,000 It doesn't look anything like a normal distribution   I am not a statistician and hence my description might not be exactly clear.  I would like to show this distribution on a graph, which will be seen by citizens (the layman, if you like).  I would have best liked to use a histogram, but it is not possible due to the large range of values, due to which making bins is not really easy & straight forward.  From what little I know about statistics,  a box plot is what is often used to show this kind of data, but I feel that for a layperson, deciphering the Box plot is not easy.  What are my options to show this data in an easy to understand manner?


Add parentheses when using alternative content?

Would you add parentheses in the first place when you write alternative content?  Example:  "This car has a(n) (optional) navigation system."  or  "This car has a (optional) navigation system." ?  Remark: I am not an native English speaker, so please be gentle.


In the first Matrix film, Cypher makes a deal with Agent Smith (to forget about the Matrix and to be put back in as someone rich/famous) betraying Neo, Morpheus and everyone else, in the hope he would be given this new life …  I would have thought that the most likely outcome for Cypher, and the easiest for Agent Smith, would simply be to have had him killed once he was no longer useful. Surely a traitor like Cypher would be wary about his deal.  Why does Cypher believe that Smith would keep his part of the bargain?


I want to access Notes from Salesforce I am getting the response in from of url how to get my actual data from it?

SOQL QUERY -cn = "SELECT Title,Content FROM ContentNote"  OUTPUT OF Content:/services/data/v42.0/sobjects/ContentNote/0692x000000WFDAAA4/Content


With code:   someVector.FixRounding(); //round vector's values to integers if the difference is 1 epsilon float x = someVector.x; //still getting old value     public static void FixRounding(this Vector3 v) {     if (Mathf.Approximately(v.x, Mathf.Round(v.x))) v.x = Mathf.Round(v.x);     if (Mathf.Approximately(v.y, Mathf.Round(v.y))) v.y = Mathf.Round(v.y);     if (Mathf.Approximately(v.z, Mathf.Round(v.z))) v.z = Mathf.Round(v.z); }   the FixRounding method doesn't actually change the vector's values although Mathf.Approximately returns true.


I was looking at a 10x10 multiplication table, and I decided to count the unique products. There are 42 out of a possible 100 numbers represented. I had to wonder, why 42? I counted the 58 non-listed numbers -- most of them are either primes >10 or multiples of those primes. I couldn't figure out a satisfying reason like that for 75, 84, 96 and 98. I feel like the number 42 should be calculable from the natural log of 100 and 10, or something, but I can't really figure it out.  Also, I counted the frequency of all the numbers represented. They all have either 1, 2, 3, or 4 instances. The six numbers that have only 1 instance are all squares -- those of 1, 5, 7, 8, 9, and 10. This makes sense -- squares don't fall into that 4x5 = 5x4 redundancy. The 23 numbers with 2 instances are kind of the default I guess. The four with 3 are the remaining squares -- 4, 9, 16, and 36. 4 and 9 make sense to me, as they are squares within the basic range of the times table, so they are hit by themselves, their square root, and 1. I'm having trouble accounting for why 16 and 36 have three representatives. I'm also having trouble seeing the pattern (or patterns) in the numbers with four representatives.  I ultimately want to find a way to, given a times table of any size, calculate whether a given number will appear, and how many times.  Also, I'm pretty sure that for times tables 7x7 and below, more than half of the possible numbers are represented on the table, but for times tables above 7x7, less than half are represented. Why is 7 the turning point?


Possible Duplicate:          Hello. I am working in Ubuntu. I want to do some editing and drawing. On Windows I was using Adobe PhotoShop like software. Now I want to know which are the software available  for doing this. Also, is there any default software for drawing an image?


I want to prove that $e^x\ge 1+x$ for each $x\in\mathbb{R}$.  I can't use neither derivative nor logs.  Edit: I SAID I can't use derivatives... and Taylor's theorem use this...


Why environment variable substitution does not work in bash in this case?

I am trying to set the ENV variable just for the scope of this command  ENV=dev echo terraform plan -state=$ENV.tfstate -var-file=$ENV.tfvars -out=$ENV.plan   the output is for some reason:   terraform plan -state=.tfstate -var-file=.tfvars -out=.plan   Why is it?   I am using bash in osx mojave


Consider the following putative theorem.   Theorem? Suppose A, B, and C are sets and $A \subseteq B \cup C$. Then either $A \subseteq B$ or $A \subseteq C$.   What's wrong with the following proof?   Proof. Let $x$ be an arbitrary element of A. Since $A \subseteq B \cup C$, it follows that either $x \in B$ or $x \in C$.   Case 1. $x \in B$. Since x was an arbitrary element of A, it follows that $\forall x \in A(x \in B)$, which means that $A \subseteq B$.  Case 2. $x \in C$. Similarly, since x was an arbitrary element of A, we can conclude that $A \subseteq C$.  Thus, either $A \subseteq B$ or $A \subseteq C$.   I have proved that the theorem is incorrect but I can't understand why the above proof is not correct.


Prove that a set $S \subseteq \mathbb{R}$ is closed and bounded if and only if every sequence in $S$ has a sub sequence converging to a point of $S$.

$(\to)$ Assume that $S \subseteq R$ is bounded. If $(x_n)$ is a sequence in $S$ , then $(x_n)$ is bounded and thus it has a convergent subsequence.  $(\leftarrow)$ Assume that $S$ is not bounded. Then for any integer $n$ there is an $x_n$ in $S$ such that $|x_n| > n$. Since any convergent sequence is bounded, the sequence $(x_n)$ cannot have a convergent subsequence.  Can someone check to see whether my proof is missing something.  thank you.


How do I convert the following SDP problem (written in the standard inequality form):  $$\min c^T x$$ $$\text{s.t. }F(x)\succeq0$$  When $F(x)\equiv F_{0}+\sum_{i=1}^{m}x_{i}F_{i}$ when $F_{i}\in S^{n}$, $i=0,\ldots,m$  To the following conic form:  $$\min_{X\in S^{n}} \langle C,X \rangle$$ $$\text{s.t. }\langle A_{i},X \rangle=b_{i} , i=1,\ldots,m$$ $$X\succeq0$$  I mean, how do i show that they are equivalent?


Wrong colors while printing from Illustrator

I’m trying to print from Illustrator (CMYK) and it comes out red: All the blue tones appear black and everything that was either beige or grey looks like it has a red layer over it. All the colours seem to be affected (except for white).   The printer is an HP Envy 4500. I’ve tried to save it as a PDF and print from that PDF instead but it didn’t work.


Is the universe really "fine-tuned for life"?

I understand what is meant when we say , but I've seen it claimed it's is fine tuned "for life". Is it?  When I look at known or even speculated life in our universe, I see life clinging to a tiny crumbs separated by vast voids. Our life needs baryonic matter, only 5% of the universe. Its density is $10^{-30}  g/cm^3$, but it clumps together leaving vast voids between the clumps. 99% is in stars and black holes and nebula utterly inhospitable to known life.  That leaves the parts "fine tuned for life" to be 0.05% of the universe. The planets, asteroids, and comets seem like just debris separated by  than the life-sustaining clumps preventing life from spreading.  Even that seems to be used very inefficiently. Life requires the energy of a star, but it's spewed out in all directions. We only receive a tiny fraction of it. Similarly, life requires heavier elements created in supernova, but these are also spewed out in all directions. And it took billions of years to develop a being capable of asking "is the universe fine tuned for life?"  It seems like we live on the crumbs of creation warmed by a rounding error of the heat from our star. Taking this view, the universe appears extremely inhospitable to life. It could be a lot better tuned.  Is it that the universe is fine-tuned for life? Or is it that the universe is so large and life requires such an infinitesimal fraction of the universe that it's a near guarantee were we to roll the dice again that some crumb, maybe not even baryonic matter, could develop something complex enough to ask "why is the universe fine tuned for life"? Am I just restating the weak anthropic principle?  I understand this is straying into philosophy. If that's off topic, are my  physical assumptions correct?


Showing a meromorphic function is rational

Let $g$ be meromorphic on a region $R$ of $\mathbb{C}$, where $R$ is all but finitely many points of $\mathbb{C}$---that is, $R$ = $\mathbb{C}\setminus S$ for some finite set $S$. Suppose $\lim_{z \rightarrow s} |g(z)| = \infty$ for all $s \in S$ and $g$ takes infinity to infinity. Then, somehow $g$ is rational.  Any help would be appreciated.


I have searched through the internet and in AskUbuntu, but I could not find a working solution for my little problem.  The RTL8723ae WLAN is behaving strangely on Ubuntu 14.04 and drops the WLAN connection constantly. I am using the notebook MSI GE40 and have already seen on the web that there are other people having the same problem but there was no permanent solution. The problem did not exists on the original Windows 8 on the device and the router is a TP-Link, which I can control (channel change and so on, I use WPA2-PSK WLAN security).


What's collective term for clients, customers, students, donors or anyone who has a beneficial relationship with an organization?

My clients offer services that can be used by different types of organizations: schools, nonprofits, corporations, individuals, restaurants, etc. If I want to talk to all of their ____ simultaneously in a marketing comm., how could I address them?    What is the hypernym that encapsulates all these different types of organisations?


Is there anyway to save my contacts and texts on a Samsung Galaxy Nexus with broken screen?

Broke my screen, and it's dead. I searched the forums, and I could not find an answer. I don't care about my media files, but my contacts are really important to me. I already ordered the new Nexus 5, but I need those contacts.   I tried Holo Backup, and it doesn't work. Any Ideas?


my first project in c++   (I use g++ on centos)     from Python and c#, I use to split my program into few files, each class in different file. The most common reason i find, why use .h file, is because you can change the header code in the  .cpp file, without affecting other people that uses that specific header. this feature is meaningless when using version control, where no one see the changes until you submit your code to the main project library. (#ifndef can still be used to prevent multiple main() and such errors) Besides that, I cant find reason why I should use .h files to write classes in different files. I can just use     #include "class1.cpp"  #include "class2.cpp"   I will get the same result as using .h file, without the need to maintain classes in two different files (.h + .cpp) (and without the complexity when using default values) As far as I understand, in both cases, the compiler will include the source code, as if it is one big source file. So.. why should I use .h (and .cpp) files and not just split my program into .cpp file instead ?


terminal not working it wont let me put in my password

after I type in a command in to the terminal it ask for my password but when  i try to type in my password nothing happens don't know where to go from here


I ran into a problem recently where I obtained the following constraint on a function. $$f(x^2) = 2f(x) \,\,\,\, \forall x \geq 0$$ and the function $f(x)$ is continuous. Can we conclude that $f(x)$ is of following form? $$f(x) = \begin{cases} a\log(x) & \text{for } x \geq 1\\ 0 & \text{for  }x \in [0,1]\end{cases} \tag{$\star$}$$ where $a \in \mathbb{R}$. It is easy to conclude for $x \in [0,1)$ it should be zero, since $f(0) = 0$ and $f(x) = \dfrac{f(x^{2^n})}{2^n}$. Now letting $n \to \infty$, thanks to continuity, we can conclude that $f(x) = 0$ for $x \in [0,1)$.  But how do I show $(\star)$ for $x \geq 1$? If not under what further constraints, will I be able to conclude ($\star$)? This is similar to the Cauchy functional equation $f(xy) = f(x) + f(y)$, but with $y=x$.


Do I have to pay taxes in the US if my online store sells to US customers even though I don't live in the US?

I  own a website and I sell digital content. I'm a nonresident alien with the US. Most of my customers are US based so I was wondering will I have to pay any taxes to the US?  I have read that      For nonresidents, taxable income is separated into two categories:         Income that is effectively connected with a U.S. trade or business, after the deductions that are allowed, is subject to U.S. income tax   at graduated rates - the same rates that apply to U.S. citizens and   residents - or lower rates if the provisions of a tax treaty apply.   Income that is subject to U.S. income tax, for being U.S. source income, but that is not effectively connected with a U.S. trade or   business, is subject to a flat 30% tax      Is this true and do I belong to any of these categories?  If I form an LLC or C corp am I liable for this withholding tax?  My customers are based in the US and I believe all income is considered FDAP income according to the IRS:     Fixed, Determinable, Annual, or Periodical (FDAP) income is all   income, except:         Gains derived from the sale of real or personal property (including market discount and option premiums, but not including original issue   discount)   Items of income excluded from gross income, without regard to the U.S. or foreign status of the owner of the income, such as tax-exempt   municipal bond interest and qualified scholarship income      The thing is the IRS also says:     Effectively Connected Income, after allowable deductions, is taxed at   graduated rates. These are the same rates that apply to U.S. citizens   and residents. FDAP income generally consists of passive investment   income; however, in theory, it could consist of almost any sort of   income. FDAP income is taxed at a flat 30 percent (or lower treaty   rate) and no deductions are allowed against such income. Effectively   Connected Income should be reported on page one of Form 1040NR. FDAP   income should be reported on page four of Form 1040NR.   In the last quote, it’s like they say it only applies to passive income but if they feel like it, they can apply this to all income??


apply US professor/faculty position without PhD advisor's reference letter

I got my PhD degree from the one of the most excellent universities in Asia and am currently postdoc in US. However, I had the worst nightmare PhD advisor who thought his own students as potential competitors and tried to disturb their future career. He usually did not write reference letters for his own students and I saw most of my seniors leaving the lab without reference letters. Fortunately I got a good postdoc position in US and escaped from the previous lab. After postdoc, I would like to continue research work in US, because I am so exhausted with my PhD advisor and never want to see. Is it difficult to get a position if I do not list my former PhD advisor in the reference list? I can get recommendation letters from postoc supervisor and other professors. In fact, I usually have nice relationships with other people. Also, my PhD advisor has different research interest field from mine.  This situation is causing me such difficulty. Please give me any good advice to overcome this situation. My current aim is working in the tenure-track academic position or national lab than industry. However, if this problem is distracting me too much, I am considering of working in the industrial field.


Do I have to remove the thinset before re-installing new cermic tiles

I have just pulled up my old ceramic tiles from my bathroom an there is the thinset on the subfloor an some grout left on it.  Do I need to clean that before putting new thinset on it?


I have two exact same pictures and they are both the same x:y size. But one of them is 105 KB and the other one is 109 KB. Which of them is of better quality?


I have a problem with my Ubuntu, I installed tomcat server and set it up, but I needed to change one directory and grant my current user read permissions over it so I executed:  chmod -R 644 /bin   And from there on I kept getting errors, like if i tried to change directory I would get output that there is no such command, so I tried to reopen it (terminal), now when I try to open terminal again it automatically closes, can anyone explain why is this happening and is there a way to reverse it ?


Trying to get natbib to compile with "numbers"

So okay at the start we have \setcitestyle{numbers,aysep={,},yysep={;},notesep={, }}  and a typical bibliography entry is \bibitem{Boolos1971} \newblock{George Boolos, 1971}, \newblock{The iterative conception of set}, \newblock{\em{Journal of Philosophy}}, \newblock{vol. 68, Issue 8, pp. 215--231.}  and that works fine but if we change "numbers" to "square" in the first line of code then we get the error message "Bibliography not compatible with author-year citations" and "l.81 ...mand\NAT@force@numbers{}\NAT@force@numbers".