NullPointerException only on prod serveur

I am getting the following error in my prod server :  java.lang.NullPointerException at org.objectweb.jonas.dbm.JManagedConnection.prepareStatement(JManagedConnection.java:616) at org.objectweb.jonas.dbm.JManagedConnection.prepareStatement(JManagedConnection.java:628) at org.objectweb.jonas.dbm.JConnection.prepareStatement(JConnection.java:101) at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:257) at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:232) at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65) at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:779) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:265) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.doList(Loader.java:1033) at net.sf.hibernate.loader.Loader.list(Loader.java:1024) at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:118) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3613) at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238) at ft.remu.persistence.dao.impl.ICDAOImpl.getListeLignesPaiementDTOForICTraitee(ICDAOImpl.java:386) at ft.remu.persistence.dao.impl.ICDAOImpl.getLignesPaiementForICTraitee(ICDAOImpl.java:450) at ft.remu.persistence.dao.impl.ICDAOImpl.getLignesPaiementForICTraitee(ICDAOImpl.java:494) at ft.remu.metier.moteur.AbstractCalculateurPeriodiqueEngine.traiterAnnulationIC(AbstractCalculateurPeriodiqueEngine.java:63) at ft.remu.metier.moteur.RegleEngine.traiterAnnulationIC(RegleEngine.java:70) at ft.remu.metier.manager.BatchManager.traiterAnnulations(BatchManager.java:264) at ft.remu.metier.ejb.BatchServiceBean.traiterAnnulations(BatchServiceBean.java:105) at org.objectweb.jonas_gen.ft.remu.metier.ejb.JOnASBatchService_468238783Remote.traiterAnnulations(JOnASBatchService_468238783Remote.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:143) at sun.rmi.transport.Transport$1.run(Transport.java:153) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595)   The code which I believe is causing this problem is :  critLP = session.createCriteria(PaymentPOJO.class)                     .add(Expression.eq("idC", idC))                     .add(Expression.eq("idMIL", idMIL))                     .add(Expression.sql("{alias}.ELP_STATUS <> ? ", new Integer(40), Hibernate.INTEGER));                      List listPaymentPOJO = criteria.list();   I copied part of the data on my local machine and ran the same code but it executed without any error. Any idea where I should look for to solve this problem? This is not a duplicate of another question.


I keep getting a null pointer exception when I click on my listview without selecting an item (JavaFX)?

So, I'm creating a photo library and I created a method that when you click on a photo in the list, it should display a few properties of it such as caption, tags, and date. It's called handleList but it's throwing a null pointer exception when I click on a part of the list that's not populated. I had a line of code that should check whether an item was selected but I don't think it's working because the code under it is still being run and it's throwing null pointer exception because it's trying to draw data from a photo that isn't there therefore it's a null pointer exception. However, it does work when I click on a photo so maybe I have the wrong type of check. Any ideas on how to fix my code? I think I have to change the mouse event parameter or write a working check that checks is something is selected.   Here's the line where it breaks:  Date date1 = p.dop.getTime();   Here's the code below:       **  * This will populate photo labels based on if an item is selected  * @param e Mouse Click  */  public void handleList(MouseEvent e) {       if(photos.getSelectionModel().selectedItemProperty()!=null){            Photo p = photos.getSelectionModel().getSelectedItem();           DateFormat dateFormat = new SimpleDateFormat("MM-dd-yyyy");            Date date1 = p.dop.getTime();           String strDate1 = dateFormat.format(date1);            dateLabel.setText(strDate1);            deleteTag.getItems().clear();           tagList.getItems().clear();           for(Tag t: p.tags)           {               String s=t.name+"-"+t.val;               if(!deleteTag.getItems().contains(s))               deleteTag.getItems().add(s);               if(!tagList.getItems().contains(s))               tagList.getItems().add(s);           }              try              {                 UserList.write(userlist);              } catch (Exception i) {                 // TODO Auto-generated catch block                 i.printStackTrace();             }       }  }   can someone please explain why this line below isn't working:    photos.getSelectionModel().selectedItemProperty()!=null


Change permissions of postgres copy to exported file

I have asked this question on SO but perhaps that was the wrong location. Apologies for double posting but the question may have a better audience here.  The original question is:   And the text is below. Thanks.    When running the postgresql [9.3] "COPY TO" functionality, the postgres user creates a file. I have told it to put the file in the tmp directory (although this can be changed if needed).  This is run as part of a cron job, the user is an "export" user set up especially for this task. The end goal is for the exported file to end up in /home/export/created_file.csv.  1) postgres can't stash the exported file straight into the home directory of another user without setting up the folder to be overly permissive.  2) the export user can copy the file from /tmp to it's home directory, but then can not clean up (delete) the postgres owned file in /tmp.  This is a daily process and so old files will need to be deleted in some way. I can add a cron job to clean up the files afterwards but I was hoping for a cleaner solution - either a way to change the permissions on the file that postgres creates, or some way to give the export user the additional permission of being able to delete that file in advance of it's creation.  Giving the export user the same permissions as postgres in general however isn't an option, as it would then have free reign over the database.  Any advice, be it unix based or postgres based would be very welcome, thanks.


Error while installing texlive which took almost two hours

I was installing texlive, but at the end of the installation, it showed: Installation failed. Rerunning the installer will try to restart the installation. Or you can restart by running the installer with:   install-tl-windows.bat --profile installation.profile [YOUR-EXTRA-ARGS] or   install-tl-advanced.bat --profile installation.profile [YOUR-EXTRA-ARGS] C:/Users/Prashanta/AppData/Local/Temp/nsnD3AF.tmp/install-tl-20200815/install-tl: Writing log in current directory: C:/Users/PRASHA~1/AppData/Local/Temp/nsnD3AF.tmp/install-tl.log  It took almost two hours showed the above lines. Can you kindly help so that I can install properly waithut faliure. My system is windows 10. Thanks.


What will happen to the circuit and switch if I connect a 5V 1mA switch to 24V 10mA load and 24V 1A source?

Circuit diagram of the switch.   Partnumber: SPVR110102


I recently watched Interstellar and it was quite an amazing movie. There is something that has been bothering me. At the end, when Cooper is stuck in the time-space shelf created by the other beings (themselves/humans), he communicates with himself and Murph and he himself is the one to call himself in the space and save the earth by communicating the code back to his daughter.  My question is: If the future humans knew about the solution to the problem, why did they or Cooper chose himself to go through all the trouble to go through the space and then communicate with his daughter. Why couldn't they have done it themselves and sent the solution back to Murph themselves from the future.   Let me put it this way: "When Cooper saw himself from the shelf, why did he send himself the co-ordinates again. Why not just give Murph the solution only" Instead of sending himself the co-ordinates, couldn't he just have given Murph the solution. If the people of the future knew the solution (that they knew because that is how they survived) couldn't Cooper have just sent it to Murph from the future instead of going through the loop in space again?


Excel CSV import treating quoted strings of numbers as numeric values, not strings

I've got a web application that is exporting its data to a CSV file.  Here's one example row of the CSV file in question:  28,"65154",02/21/2013 00:00,"false","0316295","8316012,8315844","MALE"   Since I can't post an image, I'll have to explain the results in Excel.  The "0316295" field gets turned into a number and the leading 0 goes away.  The "8316012,8315844" gets interpreted as one single number: 83,160,128,315,844.  That is, most obviously, not the intended result.  I've seen people recommend a leading single quote for such cases, but that doesn't really work either.    28,"65154",02/21/2013 00:00,"false","'0316295","'8316012,8315844","MALE"   The single quote is visible at all times in the cell in Excel, though if I enter a number with a leading single quote myself, it shows just the intended string and not the single quote with the string.    Importing is not the same as typing, it seems.  Anybody have a solution here?


Hints on solving $\sum_{i=1}^n i \cdot 2^{i-1}$

I need hints on solving this summation.  Problem $\sum_{i=1}^n i \cdot 2^{i-1} = \ldots$  Thanks in advance.


I was a bit confused about equation of waves. I encountered 2 wave equations:  $$y(x,t)=a\sin(\omega t-kx)$$$$y(x,t)=a\sin(kx-\omega t) $$  What is the difference between them? Can anyone please explain me using their graphs?


Backticks within backticks work differently in posts and in comments

Writing backticks within backticks works differently in posts and in comments. For example:  Use `` `backticks` `` instead of bold text for code-like terms.   In posts, this is rendered as the text "backticks" surrounded by backticks in <code>.  In comments, this is rendered as 2 backticks in normal style, followed by the text "backticks" in <code>, follewed by 2 backticks in normal style.  It would be better if markdown behaved consistently everywhere.  Please don't jump quickly to mark this as duplicate. The similar posts I found are about escaping backticks using backslash, but this case is not using backslash at all.


If $f: \mathbb{C} \to \mathbb{C}$ is continuous and analytic off $[-1,1]$ then is entire.

This is a problem from Complex Variable (Conway's book) 2nd ed.  (Section 4.4) 9. Show that if $f: \mathbb{C}\to\mathbb{C}$ is a continuous function such that $f$ is analytic off $[-1,1]$ then $f$ is an entire function.  I already have a solution by Morera's theorem that split this problem in 5 cases. I think this solution is too long and I'm trying to solve this using a different approach. Any ideas ?


I write a mathematical paper. Do you capitalize "subsection" when you refer to a specific subsection? For example, I would write:  "In Subsection 3 we show ..."   But I would write:  "In the previous subsection we showed that ..."   What is the consensus on that issue?


How to mutate this in a new String function?

I am still getting used to Javascript (I'm coming from C++) and would like to add a new function to String which mutates the string instance directly. Let's say that I want to add a new character at the midpoint of the string (ignoring any error checking). In C++ you could do something like this->value = .... Is that the way to do this in Javascript? TIA  String.prototype.mutateSelf = function(param1) {   // How do I mutate this specific string instance?   return this; };


How does the typeof method works in Javascript?

if(typeof(variable) === "boolean"){   // variable is a boolean }   Which one of the two code samples below is equivalent to the one above ?  Sample 1  if(variable === true || variable === false){   // variable is a boolean }   Sample 2  if(variable == true || variable == false){   // variable is a boolean }


Non significant main effect after controlling for covariates

After doing a t-test that showed a significant difference, I did an ANCOVA with 3 covariates. The ANCOVA showed no significant effect of the variable that did show a significant difference in the t-test. However, one covariate showed a significant effect. This confused me a bit, so I have a few questions:     What does it mean dat the significant difference found in the t-test is no longer significant when doing an ANCOVA? How to interpret the significant covariate in my ANCOVA?


What is the expected value of the number of anchors of $S$?

For any subset $S\subseteq\{1,2,\ldots,15\}$, call a number $n$ an anchor for $S$ if $n$ and $n+ |S|$ are both elements of $S$. For example, $4$ is an anchor of the set $S=\{4,7,14\}$, since $4\in S$ and $4+ |S| = 4+3 = 7\in S$.   Given that $S$ is randomly chosen from all $2^{15}$ subsets of $\{1,2,\ldots,15\}$ (with each subset being equally likely), what is the expected value of the number of anchors of $S$?


How to write a Function to scan & remove similar words from a large variable using PHP?

I was trying to generate keywords using dynamic data & hence thought this function could be useful for others hence i have answered the question myself.


Where should we ask questions tightly coupled with software but aren't debugging related?

StackOverflow has been awesome for code related questions for me as well as my team. However, in the real world, software doesn't exist in isolation or in the context of only code - it's within the context of either a business or a higher purpose (eg: simplifying user Q&A paradigm). For many of those decisions, the question is more 'meta' than just code-questions "float or real?" but more high level; the kind of data more experienced dev / mature projects could very well share with others, in a Q&A format.   So where can one ask questions tightly coupled with software code itself? Real world, high level, software development questions that are as important (if not more) to any software project as specific questions about a few lines of code?   IMHO, StackOverflow is a great place because   its "of programmers, by programmers and for programmers" approach is great for such related questions questions are tightly coupled, software development related (versus related-but-distant like "which software engineering role pays best?" or something) avoids too much fragmentation of software experts, developers and problems    However, that's my $0.02. I wanted to hear from others on what they feel is appropriate for the future.


Bibliography does not appear after running tex file

Using article for document class the code is as following, but when I compile pdflatex, bibtex and again pdflatex twice the bibliography doesn't appear in the pdf file. I created a bib database called bibliography.  \maketitle  \begin{abstract} A \end{abstract}  \section{Introduction}  \paragraph{Outline} A  \section{Previous work}\label{previous work}   \section{Results}\label{results}   \section{Conclusions}\label{conclusions}   \bibliographystyle{alpha}  \bibliography{bibliography}   What should I check to find out what goes wrong?


While formatting a float number, I get an unexpected result. For example writing any of this   float argument = 40.432; char buff[100]; snprintf(buff, sizeof(buff), "%f", argument); std::string result = buff;   or  std::string result = boost::str(boost::format("%"  + "f")%argument);   the value of result is 40.431999, while if I set the value of argument 40.111 instead of 40.432 , the result will be 40.111000, as it is accepted. And if I set the value of argument 40.4, the result will be 40.400002.  Now I understand why it is so, and my question is  how can I get 40.432000 as a result?


Does quantum entanglement imply a universal "now"?

If a particle on earth is entangled with a partner particle in Andromeda, and the wave function collapses here on earth, the wave function would, as I understand it, collapse in Andromeda too. Does that imply there is a universal "now"? Doesn't that violate SR?


Is there a way to select the children of a parent object?

Say I have a set of objects parented to another object, for the sake of this example say they are parented to an empty.  If I have the empty selected, is there a way of quickly selecting all the objects parented to it?


MinionPro, siunitx and some character substitution: Bad mathchar (32768)

I've been using a solution that allows me to:    Use proportional figures in text and tabular figures in tables; Force siunitx to set "symbols", e.g. ( ) - in the text-font instead of the math-font, developed by David Carlisle (,  and ).   I've been using the code for a few years, but I can't get the MWE below to work with MinionPro. It results in the error message: Bad mathchar (32768). When loading MinionPro with onlytext (or using another font), the substitution trickery works fine. The problem is the left bracket, i.e. \xxxl(, the right bracket works fine.  The frustrating thing is that I use this code in my large style files and it works fine - but I want to create a minimal style file, and I just can't find the mistake.  \documentclass{scrartcl}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenx}  \usepackage{MinionPro}% other fonts work fine as well as using 'onlytext'  \usepackage{siunitx}  \sisetup{%     input-symbols           = ( ) [ ] - +, }  \def\xxxl#1{% \bgroup\uccode`\~\expandafter`\string#1% \uppercase{\egroup\edef~{\noexpand\text{\noexpand\llap{\string#1}}}}% \mathcode\expandafter`\string#1"8000 }  \def\xxxr#1{% \bgroup\uccode`\~\expandafter`\string#1% \uppercase{\egroup\edef~{\noexpand\text{\noexpand\rlap{\string#1}}}}% \mathcode\expandafter`\string#1"8000 }  \def\textsymbols{\xxxl(\xxxr)}% the left bracket ( causes the problem  \begin{document}  \begin{table} \figureversion{tabular,tab} \textsymbols \begin{tabular}{S S S} (0.096) & (0.012)& (0.108) \\  0.136  &  0.021 &  0.024 \end{tabular} \end{table}  \end{document}


I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.

I am attempting to install Ubuntu on a box which was previously running Windows 7.  I have also experienced the dreaded "Unable to install GRUB" error.  I am not attempting to dual boot. I have previously run a Windows boot disk and removed all existing partitions.  If I run the Ubuntu 12.04 install CD and click install after the config screens, I get the error   Executing 'grub-install /dev/sda' failed. This is a fatal error. (It is the same error as this question: )  All the questions I've read while looking for a solution are related to dual boot.  I'm not interested in dual boot, I'm after a clean out the box Ubuntu install. How can I achieve this?  (For my sanity, please use very simple instructions when responding. I don't claim to have any talent either for linux or as a sysadmin)    Additional details copied from comments dated: 2012-05-29 ~15:19Z  After booting from the CD, clicking Try Ubuntu, and then sudo fdisk /dev/sda I get fdisk: unable to seek on /dev/sda: Invalid argument  sudo fdisk /dev/sdb gives   Device contains neither a valid DOS partiion table, nor Sun, SGI or OSF disklabel.  Building a new DOS disklabel with disk identifier 0x15228d1d.  Changes will remain in memory only until you decide to write them.  After that of course, the previous content won't be recoverable.  Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite).  Command (m for help):   I should add the Live CD desktop is graphically bad. I've got missing parts of programs and the terminal occasionally reflects to the bottom of the screen. But I can't imagine this is related.


Results for elements in Dihedral Groups: $x \notin \langle r\rangle  \Rightarrow rx = xr^{-1}$

As a follow-up to , the next two exercises state:       Use the given generators and relations to show that if $x$ is any element of $D_{2n}$ which is not a power of $r$, then:         a) $rx = xr^{-1}$, and      b) $x$ has order 2, and hence $D_{2n}$ is generated by $s$ and $sr$, each with order 2.       Here, $D_{2n}$ has the "usual" presentation  $$D_{2n} = \left\langle r, s \mid r^n = s^2 = 1, rs = sr^{-1} \right\rangle.$$  For part a), since $x$ is not a power of $r$, I have written $ x = sr^k$ for some $0 \leq k \leq n - 1$.  So then $rx = r(sr^k) = (rs)r^k = (sr^{-1})r^k = sr^{k - 1}$, but this doesn't seem to be moving me in the right direction.  Should I be using induction on the power of $r$ in the element $x$ ?  Then for part b), I simply wrote $(sr^k)(sr^k) = s(r^ks)r^k = s(sr^{-k})r^k = s^2 = 1$, but I doubt that I have sufficiently justified my work.  From the comments to the previous question, I get the feeling that this is a very simple verification, but I'm having trouble.  Thanks in advance for your help!


Texture with UV grid not showing up on 3d object

I'm new to this. Learned a lot through tutorials, but now I am stuck at uv mapping thing.    Marked all the seams, it all shows well in UV/Image editor, but when I assign texture with UV grid on the mesh I cant see the grid on 3d object. Texturing is on so I'm not sure what I did wrong.    I tried the same with simple cube and it just doesn't show up. Checked few other tuts for this, but none helped to solve this.


How to share cookie with other domains in Laravel

I am using multiple site and their have a lot of domain (Ex: domain-a.com, domain-b.com, abc.com, ...). How do they read each other's cookie? I changed config.session.domain, but laravel only allows a domain. Thank everyone!


I am using Netbean for Java, my problem is that I cannot load JRXML report after I export project to run with JAR file

I know that this topic is already existed but, unfortunately, they don't solve my problem. My code is below  try {             String prID = txt_prno.getText();             HashMap hash=new HashMap(1);             hash.put("ProductID",prID);             InputStream file = getClass().getResourceAsStream("/myreports/reportpr1.jrxml");             System.out.println("path_1:"+file);             System.out.println("path_2:"+file.toString());             JasperDesign jd = JRXmlLoader.load(file);             JasperReport jr = JasperCompileManager.compileReport(jd);             JasperPrint jp = JasperFillManager.fillReport(jr, hash, conn);             JasperViewer.viewReport(jp,false);// jv = new JasperViewer(jp,false);         } catch (JRException ex) {             System.out.println(ex);         }   Here is my file structure   This is some error code from CMD.  It is a very long stack trace  java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils     at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:632)     at org.apache.commons.digester.Rule.end(Rule.java:257)     at org.apache.commons.digester.Digester.endElement(Digester.java:1345)     at net.sf.jasperreports.engine.xml.JRXmlDigester.endElement(JRXmlDigester.java:199)     at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)     at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)     at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)     at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)     at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)   This is the path of report file   Now, their is no more errors after I download and add the following file to my project library commons-beanutils-1.9.3-bin.tar.gz. But, this message appears instead of the error   net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\Users\IT\report32name_1548766294622_936064.java


In PyQt5 how do you assign an event function with your own variable to a QWidget in loop?

I'm new to python and PyQt. To illustrate my problem I made this code:  class Window(QWidget):     def __init__(self, parent=None):         QWidget.__init__(self, parent)         layout = QHBoxLayout(self)          label1 = QLabel("label1")         label1.mouseReleaseEvent = lambda event: self.changeText(event, label1)         layout.addWidget(label1)          label2 = QLabel("label2")         label2.mouseReleaseEvent = lambda event: self.changeText(event, label2)         layout.addWidget(label2)          for i in range(0,2):             label = QLabel("label")             label.mouseReleaseEvent = lambda event: self.changeText(event, label)             layout.addWidget(label)       def changeText(self, event, label):         label.setText("pressed")   So, we have 4 labels, which im trying to make clickable. Label1 and label2 working as intended. You click a label, and text changing. But for those labels which created in loop the assignment works incorrectly. Label which passed to a function is always the last one. No matter which label you click, the last one will change its text. This behavior seems magical to me. I need an advise on how to organize the loop in such a way so every label pass itself into a function?


Let $f:\mathbb{R}\to \mathbb{R} $ be  an uniformly continuous functions, how to prove that       there are $a, b $ such that $|f(x)|\leq a|x|+b$   thanks for any suggestions


I am getting this error when running sudo apt-get upgrade: Fetched 322 MB in 1min 57s (2,741 kB/s)                                         Extracting templates from packages: 100%rade Preconfiguring packages ... setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file dpkg: warning: files list file for package 'indicator-printers' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'account-plugin-google' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'ippusbxd' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'account-plugin-facebook' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting:  files list file for package 'libc-ares2:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)


Sed works standalone but not in command substitution

When I use the following command in Bash, it works fine: sed -n '/##/{p; :loop n; /##/q; p; b loop}' FILENAME.txt  It outputs something like this: ##  * Some line   Command substitution However, when I try to use the same command in a command substitution, it suddenly fails completely: echo $(sed -n '/##/{p; :loop n; /##/q; p; b loop}' FILENAME.txt)  This instead prints out all of the files in my working directory in a row and then Some line at the end, which I have no clue how that would even happen:  FILENAME.txt OTHER_FILE.exe dir Some line   How can I make this work? It is crucial for me that the output of sed is echoed with some prefix.


Are $(\mathbb{R},+)$ and $(\mathbb{C},+)$ isomorphic as additive groups?  I know that there is a bijection between $\mathbb{R}$  and $\mathbb{C}$, and  asks whether they are isomorphic as abelian groups, are they referring to the additive abelian group? If so is there any simple isomorphism I can find? I know nothing about Hamel basis. Thanks.


My phone was just stolen an hour or so ago. Are there any options for tracking?

I realize this is a long shot, but my phone was lost or stolen a few hours ago.  At the time it was stolen, I didn't have any specific applications installed to track it or wipe the data. So... my bad. I'm hoping the fact that I have a pattern lock will at least prevent anyone from accessing my data.  My question is, do I have any options for tracking or data wipe after the fact? (I'm more interested in tracking.)  Note: I have read similar questions, but unless I'm mistaken, they all address the question in terms of preparation before losing the phone. I'm asking about fallback options after losing the phone.


Cannot complete 200% of the map? Castlevania SOTN

I'm not being able to complete 100% of the inverted castle in the area where we find the oarsman. Even using the high jump in the inverted water is useless. Is there another way to discover these areas? sotn #castlevania


Is the set defined by y=sin(1/x) open or closed?

Let $X = \{(x,y) \in \mathbb{R^2}: x > 0, y = sin(1/x)\}$. Is this set open, closed, or neither, and what is the boundary, interior, and closure of $X$?  I just want to make sure I am thinking about these problems in a reasonable manner. I am also trying to apply this to other concepts I have learned.  Is $X$ open?  X is open if every $x \in X$ is an interior point. Take an arbitrary $p \in X$ so that $p = (p_x, p_y)$ then $p_x > 0$ and $p_y = sin(1/p_x)$. Define an open ball $B_r(p)$, and take $q \in B_r(p)$ be an arbitrary point. Is $q \in X$? Is it possible for $q$ to not be in X? Since $y = sin(1/x)$ is defined and is continuous for all $x \neq 0$,then there will always exist a $q_y = sin(1/q_x)$, provided $q_x \neq 0$. How do I know $q_x \neq 0$? Otherwise, I propose that X is open.   Alternatively, X is open if whenever $f: \mathbb{R^2 \to R}$ is continuous and $U \subseteq R$ so that if $U$ is open, then $f^{-1}(U)$ is also open. Could I construct such a $U$ to prove that it's open? My only concern is that if $U = (-1,1)$, then $f^{-1}(U) = (-\infty, \infty) = \mathbb{R}$ which is not open nor closed.   Is $X$ closed?   I am not sure about this one. I want to say that is not closed, since $X^c$ is not open. It is not open because $(0,0)$ defines a boundary point which lies in the set $X^c$.  Thanks!


How would you handle different aspect ratios in a 2d platformer?

A long time ago, 4:3 was pretty much the only apect ratio you would find on a PC. Today the most common one is 16:10, but most new monitors (especially laptops) are 16:9  I'm writing a 2D platformer, and I can't decide how I should handle all the different ratios.  Here are some ideas:   4:3 gets more content, widescreens are cut on top and bottom 16:9 gets more content, the others are cut left and right The game is in 16:9 with black horizontal bars for other ARs The game is in 4:3 with black vertical bars for other ARs


How do I break out of this while loop which is inside a coroutine? The debug message appears continuously even after the value is reached.   void Start()     {         StartCoroutine(StartFadingIn());      } IEnumerator StartFadingIn()     {         float i = 0f;         while(i!=1f)         {             Color color = Downward.material.color;             color.a = i;             Downward.material.color = color;             yield return new WaitForSeconds(0.05f);             i = i+0.1f;             Debug.Log("Repeat");         }     }


Ichabod the Inscrutable has an imp familiar and is exploring a dungeon. He comes across a series of trapped rooms that have Antimagic Fields in them, and he wants to send his familiar in to do some exploring.The Antimagic Fields completely fill each room, but do not extend beyond their walls. Ichabod is currently standing outside of the first room. Would an Antimagic Field block telepathic communication with a familiar?


What is the best way to prove that you wrote the encrypted message on a piece of paper? As most of us know, many conspirators have died because of false message implants, Mary Queen of Scots, for example.


Logistic vs linear regression difference

Can someone please differentiate logistic regression vs linear regression? I know that logistic regression is discrete (1, 0) and Linear regression is continuous. Could you provide two examples that set the two apart? Im just really confused on when to use which.


How many passes do you need to wipe/shred your files to make them not undeletable?

If you have a private data on a recent, normal hard drive - how many passes do you need to delete the data to make it unrecoverable?  Not in the sense, that a forensic team of 20 experts with a budget of 100 million euro or dollars and 10 years of time to restore a couple of bytes from a known address with 80% accuracy, but few people with a few 1000 €/$ budget, who wouldn't spend more than two weeks on the job, and who don't know where on the drive they are searching.   Linux/GNU shred says in the manual:     -n, --iterations=N           overwrite N times instead of the default (3)   but on the one hand I heard about an NSA suggestion to overwrite 27 times, and on the other hand professional data recovery firms could not recover data from a drive that was wiped just once.   Evidence, papers, proof?  Note: What this question is not:    It's not about bad sectors, where data might slip through It's not about old MFM/RLL-drives from the early 90ies  It's not about different tools It's not so much about the method (random numbers 0s, 0xFF and fancy patterns).  It's not about different techniques to wipe it securely (magnetic power, melting, filling with sand and turning).  It's not about special problems of flash drives


Maybe because of the very long code snippet?     App Version: 1.6.6.2 Device: iPhone 6 OS Version: Version 10.3.3 (Build 14G60)


For  a given sequence $(a_n)$, where $a_1>0$ and for each natural number $n\ge 1$ :  $$a_{n+1}= \dfrac{a_n^2 + 1}{a_n}$$  Prove that a sequence $(a_n)$ diverges.  Proof:  (objectionable evidence)  Lower barrier 0, prove.  $a_n>0$   $\forall n\in N$. $N$ is natural number and $N>1$.  $n=1$   $a_{1+1}=\frac{a_1\cdot a_1+1}{a_1}=a_1+\frac{1}{a_1} >0$  $a_n>0$ $\Rightarrow a_{n+1}>0$ :   $a_{n+1}=a_n+\frac{1}{a_n}>0$, because $a_n > 0$  Monotonics:  $a_n\geq a_{n+1}$  $a_n-a_{n+1}=a_n-a_n-\frac{1}{a_n} < 0$, because $\frac{1}{a_n}>0$   Sequence is growing.  lim $a_{n+1} = A$  lim $a_{n+1} =$ lim $(a_n+\frac{1}{a_n}) =$ lim $a_n +$ lim $\frac{1}{a_n} = A + \frac{1}{A} = \frac{A\cdot A+1}{A}$ ....  Is this proof correct? Where are mistakes? The correct end of proof?


Relation bewteen Hessian Matrix and Curvature

According to ,  It describes the local curvature of a function.   AFAIK, for one-variable function $f(x)$, its local curvature is  $$\kappa = \frac{|f''|}{(1 + f'^2)^{3/2}},$$ and its Hessian matrix is  $$\mathcal{Hess}(f) = [f''],$$ right? And here is my problem, I think the local curvature is not just described by its Hessian matrix, because $f'$ also has its role in it, doesn't it?  And furthermore, for 2-variable function $f(x,y)$, its Hessian matrix is  $$\mathcal{Hess}(f) = \left[ \begin{array}{cc} f_{xx}'' & f_{xy}'' \\ f_{xy}'' & f_{yy}'' \end{array} \right].$$ How does it relate to the local curvature of $f(x,y)$?


How to sync only certain folders on Dropbox

I have a desktop machine with plenty of space with Dropbox set up.  I also have a netbook with limited space.  Is there any way to set up my netbook to sync only with certain folders in my Dropbox (i.e., sync my 10 MB of documents not my 100 GB of pictures). I also have some Ubuntu machines and some Windows machines so advice for both would be welcome.


I'm using Ubuntu 16.04. In my computer i can't open Ubuntu Software. I tried to reboot my computer several times but it still doesn't open. I tried to open it from terminal but it shows    What should i do? Please help me.


Who was Yoda's master? Did his master live during the Jedi-Sith wars?


I need to do a revese proxy for my zimbra web ui under a subfolder url example.com/mail/

I am trying whit this but I lost css files and I cant login.     location /mail {     rewrite ^/mail(.*)$ /$1 break;      proxy_pass            https://10.0.0.2:8443;      proxy_redirect        off;     proxy_read_timeout    90;     proxy_connect_timeout 90;     proxy_set_header      X-Real-IP $remote_addr;     proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;    proxy_set_header      Host $host;      client_max_body_size      10m;     client_body_buffer_size   128k;     proxy_send_timeout        90;     proxy_buffer_size         16k;     proxy_buffers        32   16k;     proxy_busy_buffers_size   64k;  }


How to report issues with the mobile SE application

There's a great thing, stack exchange application (I'm using it's version for iOS). However, it has bugs so I want to know - is it correct to create threads for bug-reports on meta site? SE application isn't part of web-environment, so I doubt. Same question about feature-requests.   If it's not a good idea to create bug reports/feature requests for SE application here, then where that should be asked?


Is  valid shorthand PHP and will it always work?

I sort of discovered by accident that  <?php ... ?>   can be shortened to  <? ... ?>   Is this a bad idea? In some cases? What cases are they? Are there anymore shorthand examples? I am aware of shorthand examples involving conditional statements but I don't find them easier to read.  Please link me if this has been answered elsewhere, but I could not find it via a search. Maybe I'm not using the right keywords.


What if you pointed a laser away from a black hole while falling into it?

Often this is asked if it was pointed towards a black hole. so I thought, if a scientist decided to sacrifice himself and jumped in a black hole, released some dry-ice mist and pointed a laser pointer away from him, what would he see.   (The scientist is just to help you understand. Maybe this experiment is impossible because he'd get spaghettified first)  And the laser pointed is pointed directly away from a black hole, not slightly to the left or right, where I'd assume it would curve and fall back.


Short story; war where speed of time changes with distance from front line

Trying to remember a short story (most likely from the sixties).  It starts with a soldier at the front line fighting an unknown enemy on the other side of the front line.  He then gets withdrawn and you realise that time is passing slower the further he moves from the front. He then spends years in peace away from the front, before being sent back to the front where only a short time (hours or days perhaps) have passed.      I seem to remember their was an inference that they were actually fighting against themselves, with their attacks coming back at themselves, which was perhaps the entire cause of the war, and an interesting critique on war.  I can't remember if this all this was stated explicitly, or just left for the reader to infer.


I'm new to drawing chemical figures in LaTeX, so I can't really show my "attempt"  Could somebody show how to draw the monomer for starch in LaTeX? It should look something like this by the time I'm done in LaTeX  Thanks.


Find the number of bicycles and tricycles

Help for my son.  My math is a bit rusty and I'm trying to remember how to go about answering this question:  "There are 3 times as many bicycles in the playground as there are tricycles.  There is a total of 81 wheels.  What is the total number of bicycles and tricycles in the playground?"


I have 2 questions. Can we ask the user in a confirmation dialog, "Do you really want to discard changes?" Is this the right way to ask?  Also, can the YES/NO options be replaced by Yes, I want to/No, I don't want to. The latter occupies more space though.   I am confused whether the YES/NO usage depends on the type of application we design. For example, if it is a bank app, simple YES/NO has to be used or if it is fancy gaming app, we can go with other option.  Any suggestions on this?


I am using percona and the backups run successfully. However after the backup is done and sometimes during the backup MySQL is crashing and I am not certain where to start.  Running show engine performance_schema.memory performance_schema.memory   169474536 running free -g         total        used  free      shared  buff/cache   available Mem:   125          58     0           0          66          66 Swap:    9           0     9   running dmesg   Out of memory: Kill process 11779 (mysqld) score 225 or sacrifice child Killed process 11779 (mysqld) total-vm:36902412kB, anon-rss:31731108kB, file-rss:0kB   The backup script is pretty generic  dest="current_backup/"; xtrabackup --backup --target-dir=$dest --no-timestamp 2> $log; xtrabackup --prepare --target-dir=$dest 2>> $log;   I am running two instances of MySql on the same server.  But I have a ton of memory and a lot of disk space. my.cnf   sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,E RROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_E NGINE_SUBSTITUTION innodb_buffer_pool_size = 25G innodb_buffer_pool_instances = 8 innodb_lock_wait_timeout = 3600000 wait_timeout = 86400 interactive_timeout = 86400 max_heap_table_size = 96M sort_buffer_size = 16M join_buffer_size = 16M tmp_table_size = 96M max_sort_length = 8K max_allowed_packet = 16M group_concat_max_len = 16M max_connections = 200 max_connect_errors = 10 expire_logs_days = 2 max_binlog_size = 128M  symbolic-links=0 log-bin=binlog binlog-format=ROW log_slave_updates wsrep_log_conflicts expire_logs_days=7


It always puzzles me whenever I work on Lagrangian equations. It is easy to see that $L=T-V$  yields the correct equations of motion, but the question is, how do you get to that formula? Is it trial and error(making guesses and seeing if they actually give the correct equations), or does it have a deeper, more logical reasoning and thought behind it? Same is for all Lagrangians, from Hilbert action to the special relativistic one-how do you "derive" the lagrangian to get the correct equations. I hope you understand what I mean.


In what circumstances should you configure multiple DHCP servers on the same subnet?  My understanding of using more than one DHCP server is that your clients will use the nearest DHCP which could be unpredictable.  However I have read a suggestion of using 2 dhcp servers where one provides 80% of the addresses and the other 20% but I don't see what the advantages of doing this.


This was in a sample/preview chapter from another book that the publisher included at the end of something else, so I don't have much to go on, but here are the elements I recall -   the characters lived in free fall in open space, with no need of environment suits. everything was in orbit around a very small sun, not very far away.  unclear if breathable atmosphere extended to the sun, or was confined to a ring.  the level of technology at hand seemed to be pre-industrial. the physical constants of the universe were different so that such a small sun could exist. material resources were running out, which seemed to imply the necessity of interstellar travel. I dimly recall something about coal or carbon being prominent.   The setup is similar in some respects to Larry Niven's Integral Trees, but it's definitely not that. In Integral Trees, the habitable spaces was a gas torus around some kind of ordinary collapsed star, but in this unknown work, the system center was a miniature sun which required a physically different universe altogether.  I'd like to read it, but I'm not sure I even still have the paperback that had that preview in it. Name that book, please!


projectile motion with mass, find the range

a missile has the position vector P(t) = ht i + t(v − 5mt) j.  where m is the mass (kg) of the missile, and h/v is the horizontal/vertical speed (respectively) the missile is launched with.  Using the position vector, find a range for the missile in terms of m, v and h.  looked at several links, (,  (page 43)) both show different ways of showing the range but none include mass.  I tried working with SUVAT equations but again, no mass.  I've run out of ideas.


Bug with hat placement with not-loaded avatar?

When I loaded the review page (in Stack Overflow, though I have no specific reason to think it is related) I got a weird hat in the upper left hand corner.    See the hat in the upper left hand corner?  That's belonging to user # .  His profile page also has the hat in a ... weird ... location, but not this weird.    I'm guessing this is due to the not-loaded image for the avatar (adblock blocks Facebook avatars for me often)?  It also causes the toolbar notification to show his link unless I'm hovering over something else.  It also changes the location of the gray box to the upper left hand corner when I hover over the hat (and hovering over the white box does nothing).  It's definitely him (or any not-loaded avatar perhaps), once he fell off the last 6 reviewers it stopped appearing.


How can I write special symbols in a Stack Overflow question?

I would like to know if is there any link or documentation which explains how to write special symbols.  An example from Math.SE, like a pow or something, is this:    And so on...  Sometimes people edit my questions because I don't understand how to write it correctly. For example, the expression above could be written like this  $$A\setminus(B\setminus C)=(A\setminus B)\cup(A\cap C)$$


I've slowly been getting better at blender but one thing that annoys me a lot is that when i press F12 to render my scene, well, it's all pixelated.  Examles:   So this here is something i was testing out, and this is when i press Shift+Z    So that's fine and all but then i go to F12 and i get this:   Now, i have read other peoples posts, and they call say "duplicate" and they all have answers, now honestly it annoys me that none of them have a good answer that actually would aid this. I've read all the things i could find, and some of the "Similar questions" and some people have the same problem as me, but i doubt there is nothing i can do?  TL;DR Want to make my renders not pixelated so i can make the low-poly scenes i've been making better. So i can actually zoom in without seeing pixels.


The exercise says: Let $X$ be a subspace of $\mathbb{R}^2$ given by points with at least one irrational coordinate. Show that $X$ is path connected.


The Next tag badge block overlaps other block on user's Profile Activity page

The Next tag badge block overlaps the badge score block.


Compact operators on an infinite dimensional Banach space cannot be surjective

I am reading a book about functional analysis and have a question:      Let $X$ be a infinite-dimensional Banach-space and $A:X \rightarrow X$ a compact operator. How can one show that $A$ can not be surjective?


Convexity of a Function Implies Function Lies Above Any Tangent Line

I’m trying to use the following definition to show the result listed below.  Definition of Convex Function: Let $f$ be a real-valued function on an open interval. Let $a,b$ be points in the domain with $a<b$. Function $f$ is convex if $$f(a)+\frac{f(b)-f(a)}{b-a}(x-a)\ge f(x)$$ for each $x\in(a,b)$.  Goal: The function $f$ (defined as in the above definition) is convex if and only if $f(x)$ does not have any points below any tangent line for each $x$ in the domain.   Attempted Proof: Suppose $f$ is convex. Let $x_1,x_2$ be points in the domain with $x_1<x_2$. From the definition of convexity given above, for each $x\in(x_1,x_2)$, $$f(x_1)+\frac{f(x_2)-f(x_1)}{x_2-x_1}(x-x_1)\ge f(x)$$  Let $x_*$ be a point between $x_1$ and $x_2$. For now, let $x\in(x_*,x_2)$. The tangent line to this point is given by $$t(x)=f(x_*)+f’(x_*)(x-x_*)$$  The Mean Value Theorem guarantees the existence of $c\in(x_*,x_2)$ such that $$f’(c)(x-x_*)=f(x)-f(x_*)$$  Next, consider the difference between the function and tangent line; our goal is to show this is nonnegative: $$f(x)-t(x)=f(x)-(f(x_*)+f’(x_*)(x-x_*))=f(x)-f(x_*)-f’(x_*)(x-x_*)=f’(c)(x-x_*)-f’(x_*)(x-x_*)$$  So, we have $$f(x)-t(x)=(x-x_*)(f’(c)-f’(x_*))$$  This is where I’m having difficulties performing any meaningful manipulation. If this can be shown true, the result for the left portion of the function can be shown analogously.


How to create a material of horizontal black and white lines

I am trying to reproduce it by my own but I can not understand how to switch off vertical edges in render options inside of freestyle svg exporter? Any thoughts?  Many thanks in advance!


How to deal with the differences in perception between group characters?

I struggle with the following :      You enter the room and a dark, old man dressed with a humble and threadbare mantle is prattling in a corner. When he sees you, he stands up and comes forward, smiling sincerely. His face has sharp contours and his eyes express the resolution and vision of a true leader   The NPC has successfully made a positive impression on my group. I described the NPC as their characters saw him.   On the opposite :      You enter the room and a old skanky man, with a ragged robe, is talking under his breath from a corner. When he sets his piercing eyes on you, he stands up and comes forward, smiling too widely. His sharp face looks almost cruel and his eyes seems to look at everything as his to claim   Well, if they don't all pull their swords after this and raise a shield, they deserve their incoming death, right ? jk, I hope you understand what I tried.   I tried to describe the same person from 2 different perspectives (I am not an English native speaker, very sorry if I failed to explain my issue).     First description: poor nice old man, maybe a previous village leader or a current wise from a poor community, babbling memories or old folks song. Second description : austere old man, might have set up a spell, focused only on power and driven by ambition. (I am a bit better in French, I promise).   My group has a paladin that detects evil aura (automatically, all day long right ?). Some of the group have terribly low wisdom. Others have great stats and can detect bluff and stuff. Thus, they should not see people and things the same way. I struggle to deliver consistently interesting interactions with my universe NPC (and places).   If I describe what each one sees, the group can just rely on the paladin or the druid to see the world.  Descriptions become useless and I am condemned to use a neutral align NPC (which works from time to time but it is less sexy than an evil eminence grise, proxy of their archennemy) if I want to add elements of surprise or doubt.   How to deliver interesting descriptions opposed to 'it's an evil mage at least level 7, usual evil mage stuff'    I describe what every one sees, player's job is to roleplay their character. But it feels constrained and a bit false when they know their character is deceived. And the group ends up taking the good decision.   I describe what the most perspicacious one sees because, anyway, the group follows his recommendations on these points.  After all, it is why you create a balance group, to get all the skill on the table. I create an average perception for the group, factoring the characters' abilities and external factor (shared races, known background...) and roll a dice. The group shares the perception. But the streetwise characters's players might get frustrated.


Set Path for all Users (Login and Non-login Shells)

Ok. So, I'm used to Ubuntu and CentOS more than redhat, so I'm hoping there's some obvious solution to this that I'm missing.  I've installed Anaconda (Python). I've placed it in:  /opt/anaconda3   I would like for myself and all users to be able to have the following in their paths:  /opt/anaconda3/bin   I have googled around and have gained a lot of conflicting information about how to "properly" accomplish my mission.  Stuff I have tried:   Adding a bash script to /etc/profile.d Editing /etc/profile Editing /etc/bashrc Adding to root bashrc Editing user .bashrc   All edits involved some form of:  PATH=/opt/anaconda3/bin:$PATH   or  export PATH=/opt/anaconda3/bin:$PATH   Option 2 yielded the addition of /opt/anaconda3/bin to the path for multiple users, but after terminal restarts still did not run the commands within bin (i.e. conda install, ipython notebook, etc.)  Any ideas?


Why is "any ancient civilization" supposedly wrong in this sentence?

All Middle East people believed in life after death, but the Egyptians of ages past carried this idea further than any ancient civilization.   One of the four highlighted phrases is supposed to be grammatically wrong. The solution is any ancient civilization. Can you please explain to me why. I am not able to find it out.


If-else blocks not returning true on a condition that is clearly true, what do I do?

I'm having some trouble understanding why the Scanner is not picking up the "(" character when it is clearly there. When I tried to save my program, there was a pop-up that said that some of the characters couldn't be saved in the proper encoding. (I'm using Eclipse, and it uses Cp1252 encoding if that would be of any help) I changed it to UTF-8, and now I'm having these issues.  String input = "a 0 ( b 4 ( * 100 b 6 ) w 9 ( x 3 y 5 ( * 2 z 3 ) ) )"; LinkedStack<TreeNode<String>> stack = new LinkedStack<TreeNode<String>>(); Scanner in = new Scanner(input);     while (in.hasNext()) {         String temp = in.next();         System.out.println("Here's a temp:" + temp);         if (temp == "(") {             System.out.println("Continuing.");             continue;         }         else if (temp == ")") {             System.out.println("Closed Paren.");             TreeNode<String> leftChild = stack.pop();             TreeNode<String> rightChild = stack.pop();             TreeNode<String> parent = stack.pop();             parent.setLeft(leftChild);             parent.setRight(rightChild);             stack.push(parent);         }         else {             System.out.println("Hit the else block.");             String label = temp;             String distanceString = in.next();             double distance = Double.parseDouble(distanceString);             System.out.println("Here is the distance of this node: " +distance);             stack.push(new TreeNode<String>(label, null, null, distance));         }     }


I'm a novice developer, please help with writing a test class for this code.Thanks

global class converterSchedule implements Schedulable {     global void execute(SchedulableContext ctx) {         List<Exchange_rate__c> exchange = [SELECT Date__c, GBP__c, USD__c, EUR__c, CAD__c                                             FROM Exchange_rate__c];          converterWidgetController.requestAndResponseCurrency();     }  }


Not receiving notifications on my new phone from android app

I have app version 1.0.95 beta and android os 8.0.0. My new phone is Samsung galaxy note 8, and the stack exchange app was installed automatically when I set the phone up (it's a warranty replacement). Notifications are turned on in the app. For one comment on one of my posts there was an indicator on the icon on my home screen for the app that I received it, but no push notification. For the comment on my answer that was posted yesterday there was no notification whatsoever except by email that I received today.


$f(S \cup T) = f(S) \cup f(T)$  $f(S)$ encompasses all $x$ that is in $S$ $f(T)$ encompasses all $x$ that is in $T$  Thus the domain being the same, both the LHS and RHS map to the same $y$, since the function $f$ is the same for both.  Can you post the solution?


Determining loss of intensity in a slow neutron beam after passing through a metal plate

I am looking at a question dealing with the loss of intensity of a beam of slow neutrons with initial intensity $I_0 = 5 * 10^5$ N/sec as it passes through an aluminum plate that is $3$ cm thick. I know that $I = I_0 e^{-\sigma x n} $, where $x$ is the thickness (3 cm), and $\sigma$ is the cross-section, and $n$ is the number of atoms per unit volume. My question is, where would I find information on the number of atoms per unit volume and the cross section for a given metal (in this case its aluminum, but it could just as easily be anything else).


What is the difference between huge and big?  For example:        He made a huge difference to the team.   He made a big difference to the team.      Is there a difference in meaning?


In my flagged post history, I noticed a section for "aged away" flags.    What exactly are "aged away" flags? Does it just mean the flag was inactive for a while? If so, how long does a flag need to be inactive for it to age away?


How can I guarantee the integrity and consistency of “distant” relationships?

We have a database structure like the one shown in the (very simplified) diagram below:    As you can see, there is a table Categories, holding data like this:  Id Description 1  Car 2  Truck   The table VehicleParts holds the data that correlates which vehicle has which part.  My question  How can I guarantee that one row in the VehicleParts table does not reference a Version of a Car and a Part of a Truck or vice versa?


Is the set of 2x2 matrices with sum of diagonal entries equal zero a vector space over the real numbers under the usual matrix matrix  addition and scalar matrix multiplication?


Let $n\ge3$. Prove that $\sqrt[n]2\notin\Bbb Q$.  Let us suppose that $\sqrt[n]2=p/q$, that is $2q^n=p^n$, so $q^n+q^n=p^n$, against FLT.  Do you know similar examples, in which simple problems are solved using huge weapons (maybe in a elegant way)?


ubuntu 18.04.3 mini ISO offline installation

I have old 32-bit hardware. I want to install ubuntu 18.04 mini iso without internet because my LAN card not working so does anyone know how to install mini ISO offline thanks.


Create JavaScript function which cannot be called as constructor?

Is there a way to prevent a new defined function to be called as constructor in JavaScript? Like throw out error when placing new before calling it.


Prove that the empty set is a subset of every set.

The exercise is taken from Rudin, principles of mathematical analysis, chapter 2 ex. 1.  Let $A$ a set and let also $B$ such that $A \cap B = \emptyset$ This implies:  $$ \emptyset = A \cap B \subseteq A, $$  For given $A$ the set $B$ can always be found, for example take $B = A^C$, the complement of $A$. Is such proof correct?


I'm having a debate with a friend who teaches music. In English we say learn music or learn programming but when it comes to guitar, I feel tempted to say learn the guitar instead of learn guitar. Is there a difference between a good way to learn the guitar and a a good way to learn guitar and if so which is better?


It is well known that a torsion-free group which is virtually free must be free, by works of Serre, Stallings, Swan...     Is there a simple cohomological proof of the fact that a torsion-free group which is virtually-$\mathbb{Z}$ must be isomorphic to $\mathbb{Z}$?   Thanks.


Question about syntax of a C function I found

I'm looking through this project , and in one of the files (kseq.h, 75-77), there is macros this function: #ifndef kroundup32  #define kroundup32(x) (--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x))  #endif  How does this function work?  Does it return 7 things?  I have an idea of the basic operations inside, I just don't get what is the form of its operation or output.


Why does Cantor's diagonal argument not work for rational numbers?

If we map every integer to a string that represents a rational number, and produce a number different from all the ones listed, we are essentially following Cantor's algorithm. But why does it not apply? Is it because we can't be certain that the number produced is a rational number?


Why i cant see my achievements in minecraft

I cant find achievements, in menu, in-game, everywhere, i have searched a post on this side but it didnt worked, i checked every single setting but theres no "achievements" button. Yes i checked the exact post saying "how i check my achievements on minecraft" (or idk name) it didnt work


I want to insert some pictures in my thesis (using book class). Everything seems OK until I resize my picture using scale=0.8 option. Suddenly four errors occur as follows.   Line 33: ! Paragraph ended before \Gin@iii was complete. Line 34: ! LaTeX Error: \begin{figure} on input line 29 ended by \end{remark}. Line 34: ! Missing } inserted. Line 36: ! LaTeX Error: \begin{remark} on input line 25 ended by \end{document}.   Here is my code. Why did this happen, please? Is there an easy fix, please? I can resize my pictures before inserting them, but it is not so convenient, is it? Thank you!  \documentclass[a4paper, twoside, openright]{book}    \usepackage{amssymb}   \usepackage{latexsym}   \usepackage{amsfonts}   \usepackage{amsthm}   \usepackage{amsmath}    \newtheorem{theorem}{Theorem}[chapter]    \theoremstyle{definition}   \newtheorem{remark}[theorem]{Remark}    \usepackage{graphics}  \begin{document}    % set page numbers to roman and suppress chapter numbers   \frontmatter    \mainmatter  \chapter{Introduction and Motivation}  \begin{remark}  Here is a picture.  \begin{figure} \centering \includegraphics[scale=0.5]{head} \end{figure}  \end{remark}  \end{document}


If $M$ is the sigma algebra generated by $E$, then $M$ is the union of the sigma algebras generated by $F$ as $F$ ranges over all countable subsets of $E$.   (Hint: Show that the latter object is a sigma algebra)


What do the numbers in brackets mean on the iptables-save output?

What do the [368:102354], [0:0] and [92952:20764374] in my iptables output file mean?  :INPUT ACCEPT [368:102354] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [92952:20764374]


Privilege/FAQ pages should not show ad reduction privilege on SE sites that don't actually show ads

According to the Meta  regarding , I am as I write this about 98% of the way towards reaching this privilege. After discussing here a bit, I've also discovered that the  even says that this is a perk I'm soon to receive. However, I currently don't see any ads at all, and I do not use any ad-blocking utilities.   Don't get me wrong, I don't mind at all not seeing any advertising!   briefly mentions missing ads from Meta, but it is an older question, and this site specifically was not really addressed in the answer.   If so, then why have so much information regarding the reduction of ads in the new user information? The answer in the just-mentioned link doesn't really answer this question to my satisfaction.   Why don't we just remove the ad reduction piece entirely from FAQs of this and/or these other sites? Does everyone else disagree and think that we should keep this in place?


Is there any downside to always using function declaration over function expressions?

function test() {    console.log("1") }  vs. let test = function () {    console.log("1") }  I know this may be preference but I'm asking because I had an interview in which the interviewee said "I noticed you use function declarations exclusively which isn't a great practice".   I asked for more clarification as to "why" but he never gave a reason. I thought the only difference was that function expressions do not get hoisted up as where function declarations do get hoisted so I always opt for function declarations.  Am I missing an advantage of function expressions that I don't know?


Guessing the programming language used for a software

The question is simple from a programmer's point of view. How do you know which language / libraries has been used to develop a specific software product.   Say you have average knowledge of computing who can understand by checking product file (.exe, .dll, etc) names / versions that this piece of software has been written using Visual C++ / .Net / QT , etc.  Any solid ideas by which one can know about a programs's programming language?


A Question about Time Dilation and different observers

This is a question about time dilation and different observers. Say you had two observers. One on earth and the other one traveling around 20% of the speed of light. The observer on earth will age faster than the observer traveling at 20% the speed of light.  The question is, will the observer traveling at 20% the speed of light travel into the person that's on earth's future? Say 30 years go by for the person on earth but only 5 years pass for the person traveling at 20% the speed of light.   Is the person traveling at 20% the speed of light just in another reference frame and the person on earth will still age and experience 30 years passing or will the person on earth and the one traveling at 20% of the speed of light both experience 5 years passing but the person traveling at 20% the speed of light will just end up in the person on earth's fututre?  If I understand this correctly, the person traveling at 20% the speed of light isn't traveling into the future of the person that's on earth, their just both in different reference frames relative to each other so the person on earth will have experienced 30 years and the person traveling at 20% of the speed of light will experience 5 years. Is this correct?  Also, does the rate entropy increases slow down as you move closer towards the speed of light?


My iPad mini charges but doesn't turn on

My iPad mini turned off and said it has no charge, then after 1 hour of charging I plugged it into a different port and then it turned on with 100% battery. Later, the 100% went down quickly to 20% while plugged in so I turned it off but it said it was out of battery when I tried to turn it back on. I have had it plugged in for the past 5 hours and it hasn't turned on and it can't be recognised in iTunes and can't be put into DFU mode. Any ideas as to what I can do?


Maximal ideal of the ring of all real valued continuous functions on $[0,1]$

Let $R$ be the ring of all real valued  continuous functions on $[0,1]$ and $M$ be a maximal ideal of $R$. Then how to prove that $\exists c \in [0,1] $ such that $M:=\{f \in R:f(c)=0\}$ ?


How do I make the fancy H for the set of quaternions, like the fancy R for real numbers?

Sorry for the noob question, I'm writing a paper on quaternions for a linear algebra class and I decided it would be a good time to start learning LaTex.


Extracting parameter from auto template parameter callback

I am trying to deduce callback function parameters from a callback given as a template parameter. I have found this previous answer:  which looks like it'd be the answer, but somehow I cannot get this to work for what I want.  I have the following code:  #include <tuple>  template<typename S> struct signature;  template<typename R, typename... Args> struct signature<R(Args...)> {     using return_type = R;     using argument_type = std::tuple<Args...>; };  template <auto callback> void check_callback() {     using callback_type = decltype(callback);     using arg1          = std::tuple_element_t<0, signature<callback_type>::argument_type>; }  int main() { }   When compiling this with clang 6.0 as c++17 I get the following error:     error: template argument for template type parameter must be a type;   did you forget 'typename'?   If I change the line defining callback_type to something like  using callback_type = void(int);   then it suddenly works, so given a valid function signature the code seems to work. Why won't it work when using decltype on a function coming from a template parameter?


Create non-animated, realistic film noise w/ scratches procedurally

I know I'd probably use a combination of Noise Textures, but I have no idea how I could make it look realistic with varying combinations of random dots, scratch- and hair particles etc. I could only find some explanations on how to achieve standard film grain, nothing too detailed.


Time/space traveling story where a person travels through a portal in the London Underground

So, I read this story (novel/book) a while ago, but now cannot remember the name. Here is the synopsis, as I remember it (please note that my memory could be faulty): The story begins in London, where two brothers are having an argument, over a girl. Somehow one enters through a portal that opens up in the London Underground. The other eventually follows him, but because the Portals transport through Space/Time, his brother is now a successful interstellar trader (the following brother does not yet know this). The main conflict at this point is the sentient red cloud (that I can't remember the name of) that is encroaching on the area where these people are hanging out,  which is called The Gnarl. Eventually it is figured out that the Gnarl is really an ancient weapon called "The Torch" that only the other brother can operate. The cloud is beaten back, and... That's as much as I can remember.


Show that $\lim_{x \to +\infty}\left(f(x)+f'(x)\right)=0 \Rightarrow \lim_{x \to +\infty} f(x)=0$

How to show that $\lim_{x \to +\infty}(f(x)+f'(x))=0 $ implies $\lim_{x \to +\infty} f(x)=0$?


Is there a way to check if the Cryptsetup vulnerability patch is already installed?

Is there a way to check if we already have the patch for the Cryptsetup vulnerability that's in the news recently?    I keep on getting software updates from the software center and I am not sure if one of those is for this specific vulnerability.  Thanks,


How to replace package install of nginx with compiled from source?

I installed nginx a while ago using the ubuntu PPA repository.  Now I want to compile nginx from source so I can compile in and use the geo-ip module.  I know how to compile the new nginx from source.  How can I remove the nginx binary which was installed by the package?  I want to leave all the configs and logs and upstart stuff etc untouched.  I really just want to remove the old binary.  How can I do this?


In which grammatical number should the first word in a compound be?

I've recently caught myself spending too much time wondering about several off-sounding compounds I've come across, e.g. browsers list (as in, a list of browsers) and tasks queue (as in, a queue of tasks).  I can't help it, but pluralizing the first word sounds weird to me. I would have said, "browser list" and "task queue".  Which grammatical number is proper grammar?  ( is quite similar, but isn't answered with regards to this specific detail.)


In a principal ideal domain, prove that every non trivial prime ideal is a maximal ideal. What could be wrong in this approach?

In a principal ideal domain, prove that every non trivial prime ideal is a maximal ideal  Attempt: Let $R$ be the principal ideal domain. A principal ideal domain $R$ is an integral domain in which every ideal $A$ is of the form $\langle a \rangle = \{ar~~ | ~~r \in R\}$  Let $ \langle a \rangle $ be a prime ideal $\implies R/A $ is an integral domain.  A finite integral domain is a field . Hence, if we prove that $R/A$ is finite, then $R/A$ is a field $\implies A$ is a maximal ideal.  Now, $\langle a \rangle = \{ar~~ | ~~r \in R\}$  Since, R is an integral domain, there are no zero divisors and cancellation is allowed $\implies ar_1 = ar_2 \implies r_1=r_2 \implies ar_i$ maps to a different member of $R$ for each different $r_i \implies \langle a \rangle$ represents the elements of $R$ in some random order.  $\implies \langle a \rangle = R$ and hence, $R/A \approx {0}$ is finite and hence $A$ is maximal.  Is my attempt correct?


Which is correct:  "Dive right in to why you're involved"  or   "Dive right into why you're involved"  My guess is that the first is correct, since "in" is a part of "dive right in" and should be treated as a word separate from "to".


Loading QgsComposition from template without throwing "QgsComposition constructor is deprecated"?

I Googled the deprecation message and the only result was a  that referenced the error. Despite this constructor having been deprecated in QGIS 2.4, there's a  still using the deprecated construction, and one of the  on the topic relies on it as well:  renderer = QgsMapRenderer() myComposition = QgsComposition(myMapRenderer) with open(template_composer, 'r') as template:     new_composer_content = template.read()     new_composer_document = QDomDocument()     new_composer_document.setContent(new_composer_content) composition.loadFromTemplate(new_composer_document)   How should I update this code for PyQGIS versions greater than 2.4?


Converting Drawing to Vector In Illustrator

I'm trying to convert several of my pencil drawings into vector graphics with Adobe Illustrator. My drawing's are about this complex:    I'm looking for the best way to convert these. I've found some tutorials that use the pen tool . I also have a wacom tablet at hand, which could turn out useful. Any guide or links to tutorials on effectively doing this would be greatly appreciate it.


Can't make unit vectors with greek letters

I have this command  \let\oldhat\hat \renewcommand{\vec}[1]{\boldsymbol{\mathbf{#1}}}   for making bold vectors. And have this commands here  \newcommand{\uvec}[1]{\hat{\textbf{#1}}} \newcommand{\ihat}{\hat{\textbf{\i}}} \newcommand{\jhat}{\hat{\textbf{\j}}} \newcommand{\khat}{\hat{\textbf{k}}}   for making unit vectors from an letters (wich works) and the traditional i,j,k unit vectors.  The problem is that I can't make unit vectors from greek letters with \uvec{}. I can do it with   \hat{\vec{\xi}}   for example, but not with the more comfortable \uvec{}.  How can I do this?


Calculate $$\sum_{i=0}^{n-1}H_i\cdot i$$ Where $$H_n = 1+\frac{1}{2}+...+\frac{1}{n} $$ My try I am interested in using the formula from my lecture: $$ \sum_{i=a}^{b}f(k)\cdot\Delta g(k) = f(b)g(b)-f(a)g(a)-\sum_{i=a}^{b}\Delta f(k)\cdot g(k+1) $$ where $$ \Delta f(k) = f(k+1)-f(k) $$ So in my case I have $$ f(k) = H_k \wedge \Delta g(k) = k $$ so I can take $$ \Delta f(k) = \frac{1}{k+1} \wedge g(k) = \sum_{k=0}^{n-1} k = \frac{(n-1)n}{2} $$ Ok so I can start calculating: $$\sum_{i=0}^{n-1}H_i\cdot i =\\ f(n-1)g(n-1)-0-\sum_{k=0}^{n-1}\frac{1}{k+1} \cdot \frac{k(k+1)}{2} =\\ H_{n-1}\cdot \frac{(n-2)(n-1)}{2}-\frac{1}{2}\cdot\frac{(n-1)n}{2} = \\ \frac{n-1}{2}\cdot \left( H_{n-1}(n-2)-\frac{n}{2} \right) \\ \frac{n-1}{2}\cdot \left( (H_n - \frac{1}{n})(n-2)-\frac{n}{2} \right)$$ But the answer in book is $$ \frac{n(n-1)(2H_n-1)}{4} $$ which is not equal to my result PS: I can't use  $ \int $


I had 320GB hard disk which had 5 partitions C:95GB,D:60GB,E:60GB,F:24GB,G:48GB. I was installing ubuntu 8.0 before 3yrs it would show correct path to install or separate partition to install.Now in Ubuntu 14.0 i tried of installing it took all the partitions and made as single C:298GB disk.All my Partitions are lost.All data are also lost. What can i do now to recover partition please help.


Is the limit of a sequence of random variables unique?

If $Y$ and $Z$ are two distinct random variables with the same distribution (for example maybe $Y$ is constant equal to $1$ and $Z$ is equal to $1$ almost everywhere), then surely any sequence $X_n$ which converges in distribution to $Y$ also converges to $Z$. This seems to conflict with the fact that convergence in distribution is metrizable, and therefore limits should be unique.  What about convergence in probability, or almost sure convergence?


I am unable to download Ubuntu SDK . Whenever I try the command given on the .  I get an error saying unable to lock the administration directory.


./configure checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for ghc... no configure: error: GHC is required unless bootstrapping from .hc files. 256   I want to install Glasgow Haskell Compiler, and ./configure asks for GHC. What kind of GHC is it asking for? Global Hadron Collider? I downloaded the source from


Break a long assignment into two lines in Python

I have the following code:  This.is.a.supper.long.name = This.is.another.supper.long.name   Currently the only method I know is to escape the newline:  This.is.a.supper.long.name = \     This.is.another.supper.long.name   Is there any elegant solution to this?


Load a WPF BitmapImage from a System.Drawing.Bitmap

I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage.  What would be the best approach for this?


Calculating intersect of two shapefiles using QGIS

I have two shapefiles. 1. the clinic buffers 500m area. 2. the postcode area.  Is there a simple way to calculate the intersect two shapefiles ? I'm using QGIS Dufour. I tried to use fTools to intersect. However, it didn't show me actually how much every piece of the green area. It just combined the fields of two shapefiles.   How do I calculate the intersect of two shapefiles?      I used "Field Calculator" to calculate the intersection with $area. But those numbers are bigger than original area.


Ubuntu 13.10 - is crashing the display not stable, how to fix it?

Ubuntu 13.10 64-bit latest version is installed in the HP EliteOne 800 all-in-one touch screen PC. Display is breaking over and over.  is 13.10 stable yet? Its not working at all.    Tried with Dell Inspiron One same 13.10 is unstable.


Why probabilities are measured over intervals (instead of points) for continuous probability distributions?

In case of discrete probability distributions, we find probabilities of different points/values over exactly those points, but in case of continuous probability distributions, we find probabilities of points within intervals --- why is that ? Can we not find out probability of a continuous random variable at a given point without the interval?


How would you go about proving $n! < n^n$ using a mathematical induction proof?  I understand how to solve inductive proofs with = but I'm getting a bit lost in this example.   Any help is much appreciated.


I like to know when a dying star collapsed into a black hole, is there anything inside or on the event horizon that is interacting with higgs field?


$a_1=1$, $a_{n+1}=\frac{1}{2}\left(a_n+\frac{2}{a_n}\right)$. Show that the sequence is decreasing.   $a_{n+1}$ is the Arithmetic mean of $a_n$ and $\frac{2}{a_n}$. I can say that if $a_n > \frac{2}{a_n}$, then $a_{n+1}<a_n$. But thats not always true. What should be my approach?


Changing the Part label in a Beamer Presentation

I want to change the "Part" sectioning header in a presentation from "Part I", "Part II" etc. to "Lesson 1", "Lesson 2" etc.  I'll also use "Lesson I", "Lesson II" etc if this is easier.  Any suggestions for doing this?  Thanks,  Walt Paczkowski


OK to use higher RAM than Apple “allows” it?

I am looking to upgrade RAM on a MacBook mid-2010, Model A1342. According to apple, I can only upgrade up to 4GB of RAM (currently only has 2GB). I don't want to blow up the computer if I add 8GB of RAM. Any help is appreciated. Thank you!


I want to show the user, his/her email address on their "My Account" Page. I am not using any modules for the registration page, but just the default Drupal 7 registration fields.   How can i display user name and email address fields to the user on "My Account Page"?


BibLaTeX works on Overleaf but not on my Computer

I am trying to get a simple example with a bibliography to run, but on my computer it just shows the reference name in brackets. When I compile the file on overleaf, it works just fine. Here is my texfile:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{biblatex}  \bibliography{refs}  \begin{document}  Hello\cite{KandR} \printbibliography  \end{document}    And my bibfile (named refs.bib):  @BOOK {KandR, AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.", TITLE   = "{The C Programming Language Second Edition}", PUBLISHER = "Prentice-Hall, Inc.", YEAR = 1988  }   I use MikTeX and the biblatex package is downloaded. Is there any other installation missing? Do I need the biberfile somewhere?


movie ID : about a group of teenagers being killed on a floating wood deck

I've had this movie on my mind for a long time now.  It is about a group of teenagers going to a lake for a day off. They embark on a floating wood deck and they let themselves float free over the lake.  Suddenly they start to see a sort of "mud puddle". This thing is getting closer to them and suddenly tries to reach for them through the crack on the wood deck, it even manages to make some of the teenagers to fall and the "mud puddle" kinda swallows them.  It ends with one of the teenagers finally capable of reaching the shore, but she or he crawls too slow and the "mud puddle" manages to get its last victim. and then the movie or episode comes to a silent end with the sound of the flapping water.  If anyone could help me here I've seen this on TV in the mid 90s.  Thanks for any information.


How can I stop the Devel module from generating blog/forum entries for Anonymous user?

I'm using Devel's generate content feature to generate Blog/Forum entries for a site I'm working on and funny enough, I get to have a blog post by an anonymous user or forum topic by an anonymous user.  How can I stop Devel from doing this? I've only given Authenticated Users/ Administrators the permission to create a blog post or forum topic but still it generate for anonymous user. How can correct this?


Was the room of requirement created by Helga Hufflepuff?

Who created the room of requirement? I know one of the founders must have created it but do we know which one? There are theories that Helga Hufflepuff created it, is that true? Or was it added later on by someone else?


Where to really learn the "theory" behind Loop flow, and sculpting

Pardon the title, I am aware that topology is generally a lesser concern with sculpting, but I've been wonder if there was a book or lecture - perhaps on youtube or elsewhere - that could explain both why an artist would aim for a particular loop flow and what general method he or she would apply to sculpting?


I'm looking for a way to prevent someone from creating a new partition on my hard drive in order to get around restrictions I've set. I've already tried setting an administrator account to no luck. The restrictions ended up blocking the systems I already have in place to prevent certain things, reopening holes I've already filled.   I've found a way to restrict third-party applications that create new partitions but Disk Utility is still accessible. I want to prevent someone else from using it, but I don't want to completely block it. I'd like to let him use it under supervision if needed and use it myself. The fact that Mac OS's restrictions kind of mess everything up makes this a challenge.  Perhaps there's a third party application that allows someone to prevent applications from launching without a password? Not being able to uninstall it without a password would be a requirement as well. Does anyone have any ideas on how I might be able to fix this problem?


Today I saw the following:    Clearly the removed user has voted a tremendous number of times on politics and it is plausible that this is related to voting irregularity.  However, I remember that somewhere I have read that for some specific cases (users with lot of activity / votes), their removal does not trigger this and I am wondering if an algorithm deals with this or not.  Question: Is there a limit for "user was deleted" being propagated as reputation being removed?


Canadian visiting family in US while applying for jobs in order to get an interview

I am a Canadian citizen who is going to be visiting extended family in the US. However, on the side, I might also be applying for jobs so that I can at least get an interview.  I am highly aware that Canadian Citizen would need a TN or H1-B visas to work in the US.   However, is it ok for me to just enter the US with my Canadian passport as a visitor in order to intentionally visit extended family while, on the side, apply for jobs in order to get an interview?  ( Moreover, once the prospective employer who interviews me wants to hire me,  I can just go back up to the US-Canadian border in order to get my TN or H1-B visa with all the proper supporting documentation )    Does the aforementioned scenario sound legal?


I'm still new. Trying to install software that has a "run" extension. So far, my attempts have not worked.  Update: Ubuntu 19.10 Desktop. I had to do a chmod + and then use sudo bash to make it go.  Issue resolved.  Thanks everyone.


How does the existence of a limit imply that a function is uniformly continuous

I am working on a homework problem from Avner Friedman's Advanced Calculus (#1 page 68) which asks     Suppose that $f(x)$ is a continuous function on the interval $[0,\infty)$. Prove that if $\lim_{x\to\infty} f(x)$ exists (as a real number), then $f(x)$ is uniformly continuous on this interval.   Intuitively, this argument makes sense to me. Since the limit of $f(x)$ exists on $[0,\infty)$, we will be able to find a $\delta > |x_0 - x_1|$ and this implies that, for any $\epsilon>0$, we have $\epsilon > |f(x_0) - f(x_1)|$ (independent of the points chosen). I am aware that the condition of uniform continuity requires that $\delta$ can only be a function of $\epsilon$, not $x$.   What information does the existence of a real-valued limit provide that implies $f(x)$ is uniformly continuous on this interval?


This star on the Warm Welcome hat looks like a communist symbol

I've just earned the "Warm Welcome hat" and the red star on it looks like a communist symbol. I associate this symbol on this particular hat closely with many atrocities against my country: Poland, as well as Czechia, Hungary, Slovakia, Ukraine and many others from inside the Iron Curtain.    I hope I don't get banned by this. It's just… I was really shocked to see it this morning.     Disclaimer: text below was added by a moderator, not me  Can Stack Exchange be more mindful of the symbols used when it's just about fun?


automate saving screenshot (already in clipboard) to a file in bash

I work on the command line quite a bit and often have to take a screenshot a region of the screen and save it to directory I am currently working in.  (let's assume I've already taken the screenshot and clipboard has it).  This is how I have to do it right now (after have the screenshot in clipboard):   launch Preview. in Preview, ⌘ + N (File, New from Clipboard) creates a new file with the clipboard contents. go back to command line and copy the directory name (copy the results of pwd) go to Preview, ⌘ + S for Save.  Type / gets me a directory navigation prompt where I can paste my directory name from step 3.   Finally, give the actual file name, this_is_where_I_get_the_error.png in my example.   I'd like to do this instead:  $savemyscreenshot ./this_is_where_I_get_the_error.png  How would I go about writing that savemyscreenshot command?  In bash?  As an Automator script (which has to be callable from the Terminal, else that defeats the purpose somewhat)?  All things being equal, would slightly prefer a javascript flavor of the Automator script over AppleScript.  env:  MacOS Sierra


Good evening everyone.  I have this code that I slightly need to modify to make the "wave curves" as showed in photo I attach here.   \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [thick, gray, ->] (0,-1) -- (0,5)      % draw y-axis line node [above, black] {$x_{3}$};              % add label for y-axis \draw [thick, gray, ->] (-5,0) -- (5,0)      % draw x-axis line node [right, black] {$x_{2}$};              % add label for x-axis  \draw [thick, black, ->] (0,0) -- (-4,4)      % draw y-axis line node [above, black] {$x^{'}_{3}$};              % add label for y-axis \draw [thick, black, ->] (0,0) -- (4,4)      % draw x-axis line node [right, black] {$x^{'}_{2}$};              % add label for x-axis      \filldraw[fill opacity=0.1,fill=blue] (0,0) -- (1,0) arc (0:135:1cm) node[midway,above,opacity=1.0]{$\theta$} -- cycle; \filldraw[fill opacity=0.1,fill=red] (0,0) -- (2,0) arc (0:45:2.0cm) node[midway,right,opacity=1.0]{$\phi=\theta-90^{\circ}$} -- cycle;  \end{tikzpicture}  \end{document}   Does anyone know if it's possible to realize something similar to the attached photo and how to do it?  Thanks a lot in advance :)


Evaluating the integral $\int_{1/3}^3 \frac{\tan^{-1}(x) } {1+x^2-x} \, dx$

Would like some help in evaluating the integral $$\int_{1/3}^3 \frac{\tan^{-1}x}{ 1-x+x^2} \, dx$$


Cardinality of an infinite set divided by the cardinality of another infinite set (or itself)

Is the cardinality of an infinite set divided by the cardinality of another infinite set indeterminate? And what if it is divided by itself? Have these results been proven or are they unprovable?   Thank you!


How to dynamically add style attribute to div to change the width of div(outer or inner any)?

I want to dynamically set the width of a cell in a table depending on its value. I am using fowlloing code:  Helper:  if(someCondition){     var outerDivID =component.find('outerDivID');     $A.util.addClass(outerDivID , 'widthClass'); }   Markup:  <div aura:id="outerDivID" class="slds-grid">     <!-- some code --> </div>   Style:  .THIS.widthClass {     style : "width : 300px"; }   This is done to produce markup like follpwoing but for only some cases:  <div aura:id="outerDivID" class="slds-grid" style= "width : 300px">


Determining relationship to President Jefferson?

I am a little confused with determining the relationship status here:   My 4th Great Grandfather was the brother of Mary Branch. Mary is the Great Grandmother of Thomas Jefferson so the line is this:   William Branch   sibling to Mary Branch         son Elias, Grandson Michael, Great Grandson Walton,  2nd Great Grandson Allen, 3rd Great Granddaughter Jessie, 4th Great Granddaughter, Me.    Mary's line she married Thomas Jefferson Sr, they had:   Thomas Jefferson Jr. son, Peter Jefferson grandson, President Thomas Jefferson Great grandson.    So am I a 4th cousin, 3 times removed to President Jefferson?


Prove that $f(x,y)=xy$ is differentiable using the definition

Let $f:\mathbb R^2\to \mathbb R$ defined by $f(x,y)=xy$. Prove $f$ is differentiable.  According to the definition I have to show this $$\frac{\|f((x_0,y_0)+(h_1,h_2)) - f(x_0,y_0)-T(h_1\space  h_2)\|}{\|(h_1,h_2)\|}\to 0$$  But I got stuck in the proof.  \begin{align} & \frac{\|f((x_0,y_0)+(h_1,h_2))-f(x_0,y_0)-T(h_1\space  h_2)\|}{\|(h_1,h_2\|} \\[10pt] = {} & \frac{\|(x_0+h_1)(y_0+h_2)-x_0y_0-(x,y)(h_1\space  h_2)\|}{\sqrt{h_1^2+h_2^2}} \\[10pt] \le {} &\frac{\|x_0h_2+y_0h_1+h_1h_2\|}{\sqrt{h_1^2+h_2^2}}+\frac{\|-(x,y)(h_1\space h_2)\|}{\sqrt{h_1^2+h_2^2}} \end{align} and I think I the first term after the inequality goes to zero, but what happen to the second term?  How can it goes to zero too?


Is it possible to pass environment variables from child to parent in user space?

As the title says, I want to be able to change environment variables in a parent process (specifically, a shell) from a child process (typically a script).  From pseudo terminal /dev/pts/id trying to export key=value from child script, so exported variables has to be passed somehow to parent, if possible? echoing cmd > /proc/$$/fd/0 doesn't execute cmd, only view command in shell terminal emulator, and of course using $(cmd) instead of cmd executes in subshell, and export doesn't add variables to parent process.  I prefer that all the work be done in the child side.  I was asked in comments, what am I trying to achieve? that is a general question, and I'm trying to use the positive answer to pass variables from a script executed (spawned) by a (parent) shell, so that the user can benefit from added variables without any further work.  For example, I would like to have a script install an application, and the application directory should be added in the parent shell path.


Continuous numbering of questions in exam class

How to get the same feature as resume in the enumitem package for the questionsenv in the exam Latex class?  For instance,  \begin{questions}   \question A?   \question B? \end{questions} Some text. \begin{questions}   \question C? \end{questions}   should give something like  Question 1. A? Question 2. B? Some text. Question 3. C?


If a player casts Hunter's Mark and the target dies and combat ends, is the spell still functioning for a later combat?

I'm a new DM and new to this forum! I'm running a game and one of my players is playing a ranger, we're all still pretty new to the game and ran into a question about how one of her spells, Hunter's Mark works. Here's what happened. We had a short combat in which the player cast Hunter's Mark on one of the guards. He and the other guards were all eventually killed and combat ended. The players then proceeded to finish sneaking into the house they were trying to break into. A few minutes later, the group ran into another set of guards. So here's where my question comes into play. Is her former Hunter's Mark still active? I thought no, since she did not mark a new Hunter's Mark target "on a subsequent turn of yours," since the original combat had ended and we had therefore left turns. She thought it was still working, since the duration of the spell is one hour, and that hadn't passed yet. Thanks for your insight!


Â character before a pound sign in MySQL

I am inserting data into a MySQL Table using PHP/SQL Queries and when i use a £ (pound) symbol its inserting a Â character before so it looks like  Â£ then the rest of the string   My SQL Query is just simple:  $sql="INSERT into table (column1, column2) values (value1, value2)"; $rs=mysql_query($sql,$conn);   is there any way i can stop the Â from inserting into the MySQL table?  Thanks


I am a learner of C#.Can you please explain me what is the difference between assigning a collection to interface.  I see some examples,initialize  List<int> few = new List<int>() { 12, 123, 211, 200 };    But some assign collection to interface  IList<int> someList=new List<int>(){12,23,56,78};   When would we need the later one?.Pros and cons with examples will educate me well ,if you kindly provide the one.


I think my Mac swallowed Facebook and Twitter - How to get them back?

I upgraded today from Sierra to Mojave and now my share menu seems to be broken.  Previously I could share content directly to sites like Facebook and Twitter. For instance I could right-click on a photo and choose to share it to Twitter, Facebook and so on like so:    Now if I click on a photo and choose to share, I don’t get Twitter or Facebook as options anymore:    How can I enable these options?


Software Updater not prompting to upgrade from 18.04 to 20.04

My understanding was that when 20.04-1 came along that I would see a prompt on my multiple 18.04 machines that would offer to allow me to do an upgrade. I do know how to force it from the command line but was wondering when I might see the prompt message from the Software Updater GUI screen ? The "Software & Updates" screen does have: Notify me of a new Ubuntu version: For long-term support versions but that doesn't result in the expected prompt and something to click on to do the upgrade. Will this be forthcoming?


I am living in US for 17 years and became US citizen October 2015. My brother who is living in India gifted me the property in India, July 2015. He registered that property in my name in 2014, that time I was not an US citizen.   Now I want to sell that property in India and transfer the money to US bank. I have accounts with Citi and State Bank in US. Once I sell the property in India the buyer will give me the cash only, its worth of $50,000. I want to use that money for my daughters’ education.    Could you please advise me how to transfer the money from India to US bank?  Can my brother send the money to my account? Since I am US citizen now, is any issue to sell the property in India?   Appreciate your feedback and response!  Aruna


php echo print � instead of balnk space for mysql records

i'm using php to get data from mysql and show result to the front end, so now the problem is my php prints �  this charecter instead of balnk space, please suggest me to romove the special charecter


best practices to execute the almost the same command several times

I need help figuring out the best practices to execute those commands in bash. It's a command that sends a text, and I need to repeat this command for several phone numbers and for several dates... about 250 times in total. The command returns something like this {"creditsUsed":1.00,"snapshotId":107416458} if it went well. An error code otherwise.  curl -X POST \ -H "X-Primotexto-ApiKey: 784155c6a3c9ceed9d0a4d1ffdb67466" \ -H "Content-Type: application/json" \ -d '{"number":"+317877592979" , "message":"test\nother line" , "sender":"myCompany" , "date": 1539272220000}' \ https://api.primotexto.com/v2/notification/messages/send;  curl -X POST \ -H "X-Primotexto-ApiKey: 784155c6a3c9ceed9d0a4d1ffdb67466" \ -H "Content-Type: application/json" \ -d '{"number":"+317877574678" , "message":"test2\nother line" , "sender":"myCompany" , "date": 1539272220001}' \ https://api.primotexto.com/v2/notification/messages/send;  curl -X POST \ -H "X-Primotexto-ApiKey: 784155c6a3c9ceed9d0a4d1ffdb67466" \ -H "Content-Type: application/json" \ -d '{"number":"+317877574676" , "message":"test3\nother line" , "sender":"myCompany" , "date": 1539272220002}' \ https://api.primotexto.com/v2/notification/messages/send;  ...   Should I end it with ; or && ? Should I write a script ? Can I do something better with json ?  EDIT maybe I could build a json file like this :  {     "number":"+336770002979",     "message":"La plupart\ntest",     "sender":"BEinstitute",     "date": 1539286620000 }, {     "number":"+336600000780",     "message":"La plupart\ntest",     "sender":"BEinstitute",     "date": 1539286620000 }   and the run through each object with curl. Any idea how to do this ?  $ curl -X POST -H "X-Primotexto-H "Content-Type: application/json" -d @json.json https://api.primotexto.com/v2/notification/messages/send;   only reads the first object.


I'm using the package tcolorboxwith the theorems library and it's giving me the following problem:  \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{fourier}  \usepackage{tcolorbox} \tcbuselibrary{theorems} \newtcbtheorem[number within=section]{teorema}{Teorema}% {colback=black!5,colframe=black!35!black,fonttitle=\bfseries}{th}  \begin{document} \section{MyTheorem} \begin{teorema}{MyTheorem} This text loses one characther. \end{teorema} \end{document}   And when I type between the \begin{teorema} and \end{teorema}, it loses the first character. And if try to use the \input command in that environment I get a error related to:     missing \endcsname inserted.   One solution is typing two times the first letter of my text... but I don't like that.