Another wrong test? ("Since" and Present Perfect/Past Simple)

There's this test   The relevant part is:     I have visited so many beautiful places since I (come) to Utah.   Apparently it's more natural to say verb in a Past Simple after "since":  "since i came" = 40,900,000 results  "since i've come" = 8,830,000 results  But is this grammatically incorrect to make it Present Perfect?  The rule says:     We use the Present Perfect to say that an action happened at an unspecified time before now. The exact time is not important. You CANNOT use the Present Perfect with specific time expressions such as: yesterday, one year ago, last week, when I was a child, when I lived in Japan, at that moment, that day, one day, etc. We CAN use the Present Perfect with unspecific expressions such as: ever, never, once, many times, several times, before, so far, already, yet, etc.   Does the word "since" make a time specific?


What is the best way to implement soft deletion?

Working on a project at the moment and we have to implement soft deletion for the majority of users (user roles). We decided to add an is_deleted='0' field on each table in the database and set it to '1' if particular user roles hit a delete button on a specific record.  For future maintenance now, each SELECT query will need to ensure they do not include records where is_deleted='1'.  Is there a better solution for implementing soft deletion?  Update: I should also note that we have an Audit database that tracks changes (field, old value, new value, time, user, ip) to all tables/fields within the Application database.


How to install windows 7/8.1 on ubuntu 14.04?

i installed ubuntu 14.04 on my windows8.1. i tried to do a dual boot, but i accidentally click the wrong option and now, the windows8.1 gone and currently, ubuntu14.4 is my only OS. i do have the windows8.1 iso. so, how to install the windows8.1 again?


What's the pair of numbers made using 1-9 which has maximum product?

The task is to find a pair of numbers whose digits are 1-9, no digit repeated such that their product is maximum possible.  eg. 123 and 456789 is one such pair.  Question: Please suggest a way to do it.  I tried writing a code in Python but failed. Any logical approach is appreciated.


Drawing users' attention to unrecoverable actions?

We're working on an internal business app, and throughout the process the users have been very involved in all aspects of the design. They have explained their workflow, terminology, etc. and the app models that as closely as possible, with their input at every step.  Most actions in the app can be undone, but there's one action that (per the users' instructions) can't be undone without going into the database and manually changing data. In order to confirm this action, the user has to click "yes" on a modal alert. Alerts are used very rarely in the app; there's only one other action that will bring about an alert.  Neither action is performed very frequently.  However, the users are still somehow occasionally clicking on the wrong action and confirming their choice in the alert (presumably ignoring the text on it).  What's the best way to remedy this?   The text in the alert is a bit long, so we're looking at making it shorter and more to the point, and maybe renaming the buttons so they aren't just yes/no, but we don't know if that's enough. Is there some other way to draw the users' attention and make them really realize what they're doing? Are there proven ways to reduce errors like this?    Our ultimate solution: For now, we're focusing on changing the text and appearance of the alert dialog, as per Matt Lavoie's and André's answers. We made the text shorter and more to the point, added a caution icon and a clear statement that the action can't be undone, and changed the buttons to say what they'll do and not just yes/no.   We also changed the text on the button that launches the action to be red and in caps (all the other button texts are in black and just first letter capitalized).  Finally we made the entire background of the app go bright red when the alert dialog comes up. It's quite jarring, so the users should definitely notice it.  We mentioned the changes we're making to the users, and they were totally in favor of it. If these aren't sufficient we'll add additional input requirements to the alert, as in Andrew Leach's and JeffH's answers.


Can screen layouts or workspaces be locked?

Is there a way to lock screen layouts so that when you change them while working, such as by switching editors around or resizing them, those changes don't affect the original state of the active layout?   I like Blender's versatility in allowing me to organize my workspace any way I want. I'm often doing this on the fly, but sometimes things get weird and I just want to go home. (sniffle). Only I find out that my original home (layout) doesn't exist in this scene anymore, because I've fouled it up beyond all recognition.   The only way I've found to combat this is to immediately create a new "junk" layout when I open a new scene and keep creating new "junk" layouts any time I switch to one of my default layouts. It kind of works if I remember to do it, but I usually don't, and it kind of defeats the purpose of having layouts. Any solutions or workarounds or possible scripting ideas would be much appreciated. Thanks.


Maven dependency class cannot be accessed inside of a package

I have made and uploded a dependency on the central repository, which can be accessed if you have this in your pom file <dependency>   <groupId>com.github.abejoy</groupId>   <artifactId>DtoConverter</artifactId>   <version>1.0.0</version> </dependency>  I am using Idea Intelij, and on a spring boot application if you have this in your pom.xml file as a dependency, when refresing maven idea downloads the jar of this depedancy My issue is that I can access a class of DtoConverter just in src>main>java>something.java class. But I cannot access that same class inside of a package eg. src>main>java>blabla>blabla>something.java


Which is the correct one?     On average, the polyunsaturated fat content in one teaspoon of the olive oil and canola oil is the same        On average, the polyunsaturated fat content in one teaspoon of the olive oil and canola oil are the same


Show that the operator norm is submultiplicative

We had in our lecture on numerical analysis the following: Let $\mathrm{Lin}(X,Y)$ be the set of all linear maps $X\rightarrow Y$. Let $A\in\mathrm{Lin}(\mathbb R^l,\mathbb R^n)$ and $B\in\mathrm{Lin}(\mathbb R^n,\mathbb R^m)$ and $\|C\|_{op}:=\max_{\|x\|\leq1}\|C(x)\|$. Then our lecturer followed $\|A\circ B\|_{op}\leq\|A\|_{op}\cdot\|B\|_{op}$. So he didn't prove it and so I've tried it by my own. My attempt: $$\begin{aligned} \|A\circ B\|_{\mathrm{op}} &= \max_{\|x\| < 1}\|(A \circ B)(x)\| \\ & \leq \max_{\|x\| < 1} \|A\|_{\mathrm{op}} \|B(x)\| \\ &= \|A\|_{\mathrm{op}} \max_{\|x\|\leq1}\|B(x)\|\\ &= \|A\|_{\mathrm{op}}\|B\|_{\mathrm{op}} \end{aligned}$$ But this seems too easy. I am really interested in a nice proof so anybody could help? Thanks a lot!


Can I earn more on my cash savings and still keep it liquid and low risk?

So, my wife and I do a pretty good job of budgeting and saving for things, which means we have a lot of cash laying around. Between a $15k emergency fund, savings for car replacement and repairs, appliance replacement and repairs, vacations, etc., we currently have north of $35k just sitting in the bank. We've moved a lot of it into a money market savings account, which is at least generating a 1% return (far better than the .07% or whatever on the checking account).  Unfortunately, this feels a bit like throwing money away. If inflation is above 1% (and, thankfully, it's been low lately), we'd be losing hundreds a year.  Are there higher return places to put all that excess cash, while still keeping it pretty liquid? I've used I bonds in the past for this purpose, where you at least get the security of knowing your money will keep pace with inflation.    Is there a better alternative than an I bond to earn a higher return and still remain liquid without a significant increase in risk?


No section number and title be printed in PDF output in LaTex

I am using documentclass{book} to write a thesis. All my tables and figures go into the appendix, which consists of two chapters: one is Tables, another is Figures. And there are several sections in each chapter. I am using this kind of codes:  \documentclass{book} \usepackage[titletoc,page]{appendix} \usepackage{chngcntr} \usepackage{graphicx}  \begin{document}  \frontmatter \tableofcontents  \mainmatter \chapter{CH1} This is ch1 \section{CH1SE1} \section{CH1SE2} \chapter{CH2} This is ch2 \section{CH2SE1} \section{CH2SE2}  \begin{appendices}  \chapter{Tables}  \counterwithin{table}{section}  This is appendix of tables  \newpage  \section{}  \begin{table}   \caption{parameters11}  \end{table}  \newpage  \begin{table}   \caption{parameters12}  \end{table}  \newpage  \section{}  \begin{table}   \caption{parameters21}  \end{table}  \newpage  \begin{table}   \caption{parameters22}  \end{table}  \chapter{Figures}  \counterwithin{figure}{section}  This is appendix of figures  \section{}  \section{} \end{appendices}  \end{document}   Run this code, one can see that on page 8 of the PDF output, section name A.1 and Table A.1.1 are on that same page. I guess this is because the size of that table is small. However, my real tables are very large such that one table would fill out the entire page (cannot be compressed anymore since the contents will be hard to see clearly). Under this situation, the printed PDF file would have a page with only the section name A.1 on it, while that big table or figure is automatically moved to next page. For example, section name A.1 is on page 8, and on page 8 there is only A.1. Table A.1.1 will be on page 9.  Obviously I don't want a page with only a name A.1 on it. How can I keep tables and figures to be numbered within sections but completely no section numbers and titles to be printed in a PDF output. I tried \section{}* and \invisiblesection{}, they seem do not work well.


I would like to bring this formula in the form Re(D) + jIm(D):    This is my current progress:    My question is:  How can I get rid of the imaginary part jωC2*R?  When the denominator is completely real I can just split up the formula and have an imaginary and a real part.


Why the number of indexed pages decreased for a "site:" search

Recently I created a website with hundreds of thousands of unique pages. A week ago, Google had indexed about 250,000 pages. It has now decreased to 90k URLs (using a site:domain.com query).   What should I do to have Google index all the pages again? Why did all these pages get de-indexed from Google?.


$\displaystyle\lim_{x\to\infty}(f(x)-f(-x))=0$ show that $f'(x_0)=0$

Let $f:\mathbb R\to\mathbb R$ $f$ is derivable in all of $\mathbb R$.      Let $\displaystyle\lim_{x\to\infty}(f(x)-f(-x))=0$      Show that there exists $x_0\in\mathbb R$ such that $f'(x_0)=0$.   From intuiton I see that $f$ is an even function because $f(x)=f(-x)$ so it can either be like for example $f(x)=x^2$ which has an extramum point where $f'(x_0)=0$ or $f(x)=c, \ c\in\mathbb R$ which is also an even function and the derivative is always 0.   I'm not really sure how to formally prove it.  Note: we can't use integrals.


Space between the "Your recent flag was declined" warning banner and the "Flag question" button is too cramped

, one receives a warning banner when opening the flag dialog box:     Your recent flag was declined - please review it before flagging this post!   This banner fills all the space right up to the "Flag question" button, just touching it:        This might be a bit pedantic, but this spacing looks really cramped: can the Flag Warning banner be thinner, or can the spacing between the banner and the "Flag question / Cancel" buttons be increased?


How to pipe app1 to app2, but show both output in terminal?

I would like to know how can I redirect the stdout of an app to an input of an another app but still see the app1 output.  The source app is written in c, the second app is in perl. The purpose of this, that i would like to interpret the output of the C program with the perl script, and do something based on the input. The problem is if i use the ./c_app | ./perl.pl, so use the | pipe, i can only see the output of the perl script. It's like the perl would swallow the output of the C_app.  I've tried to use the tee, and found some examples, but all of them are based on redirecting the output of the source app to a file, not to an input of an other application.  The below figure illustrate the process, the got and the expected result.   A limitation would be that I cannot modify the C app, nor the perl, so i would solve it by using linux stuffs. Is it possible to use the same terminal to see both output? I have no idea how to solve it.  Any recommendation, bash script, etc. would be appreciated.


am using intel(R) celeron(R) CPU N2840 @2.16Hz 2.16Hz  WITH 4.00GB RAM hw can i partiton it and be using it with ubuntu without crashing my system on windows 10


Im building a login for our employees and now I'm creating the validation for each input fields. If I have a table named pages and inside that table I've got a column field named title. As an example I've created a dummy title My new title.  I've created a function that let's our users create new pages, and I want to be able to check if the title already exists in our database.  For example, if the user types in My new title and submits the form, then he gets an error message with the following text: Sorry, your title already exists  I know I haven't provided much information here, but I'm from scratch on this one. I know how to check if a number is the same, or if two input field/db rows doesn't match each other. It may be an easy one, but I really can't figure it out.  I would be very grateful if you had a simple solution to this. Continue a wonderful day :)


Assign a lambda expression using the conditional (ternary) operator

I am trying to use the conditional (ternary) operator to assign the proper lambda expression to a variable, depending on a condition, but I get the compiler error: Type of conditional expression cannot be determined because there is no implicit conversion between 'lambda expression' and 'lambda expression'. I can use the regular if-else to solve this problem, but the conditional operator makes more sense to me (in this context), would make the code more concise add, at least, I would like to know the reasons why it doesn't work.   // this code compiles, but is ugly! :) Action<int> hh; if (1 == 2) hh = (int n) => Console.WriteLine("nope {0}", n); else hh = (int n) => Console.WriteLine("nun {0}", n);  // this does not compile Action<int> ff = (1 == 2)   ? (int n) => Console.WriteLine("nope {0}", n)   : (int n) => Console.WriteLine("nun {0}", n);


Probability that a single coin generates a certain number of heads when tossing multiple coins

I'm having trouble with the following problem     If you toss 1000 fair coins 10 times, what is the probability that some coin will get 10 heads?   I have tried to use the binomial distribution, but I think I'm missing something since we have multiple coins.


I saw your post about getting this error "Fatal error: Call to undefined function _system_default_theme_features() in /home/depot/public_html/drupal/includes/theme.inc" after doing a Drupal upgrade.   How can I fix the error? The function is in the system.module file.  Errors after attempt upgrade on Drupal 7.  Drupal version 7


1.15 * 100              // 115 correct (int)(1.15 * 100)       // 114 incorrect intval(1.15 * 100)      // 114 incorrect  floor(1.15 * 100)       // 114 incorrect floor(1.1501 * 100)     // 115 correct   I try to cut off the fractional part after the 2nd character and translate it into an integer. It turns out with an error. Tell me how to correctly translate.


Set $A \subset R^2$, set B is projection of A on x-axis. Do you know a counterexample to the statement: if A is closed, then B is closed.


Prove that for any finite sequence of decimal digits, there exists an $n$ such that the decimal expansion of $2^n$ begins with these digits.


How to make -vf "movie=..." point to another folder in FFmpeg

I'm trying to watermark a video with another video placed in a different folder.  Source video [video.mov] is placed in a folder like   x:\test1\   Overlay video [overlay.mov] is placed in   x:\test2\   I'm using this command:  ffmpeg.exe -y -i x:\test1\video.mov -vf "movie=x:\test2\overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" x:\test3\video_overlay.mov   But I'm getting an error saying   Missing key or no key/value separator found after key 'test2overlay.mov'   When placing all files in the same folder and using this:  ffmpeg.exe -y -i video.mov -vf "movie=overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" video_overlay.mov   everything works fine.  So how do I get the video filter to load the overlay file from a different folder on Windows?


I am new to Salesforce development. I am not sure how to write the Test class for this Rest Service I created

@RestResource(urlMapping='/sdf/lead/*') global with sharing class LEAD_Controller {   public class LeadWrapper {     public string firstName;     public string lastName;     public string email;     public string company;     public string phone;   }   public class ErrorJSON {     public string errorCode;     public string message;   }    private static String getErrorMessage(string errorCode, string message) {     ErrorJSON res = new ErrorJSON();      res.errorCode = errorCode;     res.message = message;      return JSON.serialize(res);   }    @HttpPost   global static void createLead() {     RestResponse res = RestContext.response;      res.headers.put('Content-Type', 'application/json');     try {       List<LeadWrapper> leadListFromRequest = (List<LeadWrapper>) System.JSON.deserialize(         RestContext.request.requestBody.toString(),         List<LeadWrapper>.class       );        List<Lead> leadList = new List<Lead>();       for (LeadWrapper r : leadListFromRequest) {         Lead l = new Lead();         l.FirstName = r.firstName != null ? r.firstName : '';         l.Lastname = r.lastName != null ? r.lastName : '';         l.Email = r.email != null ? r.email : '';         l.Company =           (r.firstName != null ? r.firstName : '') +           ' ' +           (r.lastName != null ? r.lastName : '');          leadList.add(l);       }        insert leadList;        res.statusCode = 204;     } catch (Exception e) {       res.responseBody = Blob.valueOf(e.getMessage());       res.statusCode = 500;     }   }    public class getLeadWrapper {     public string firstName;     public string lastName;     public string company;     public string email;     }    @HttpGet   global static void searchLeadById() {     RestRequest req = RestContext.request;     RestResponse response = RestContext.response;     String queryStringId = req.params.get('Id');     System.debug(queryStringId);     response.headers.put('Content-Type', 'application/json');     Map<String, Object> mapToSerialize = new Map<String, Object>();     try {       if (queryStringId == null || queryStringId == '') {         response.responseBody = Blob.valueOf('Bad request');         response.statusCode = 400;       } else if (queryStringId != null) {         List<Lead> searchLead = [           SELECT             Id,             FirstName,             LastName,             Company,             Email,                       FROM Lead           WHERE Id = :queryStringId         ];         Integer searchLeadResponse = searchLead.size();          if (searchLeadResponse == 0) {           response.responseBody = Blob.valueOf('Bad request');           response.statusCode = 404;         } else {           for (Lead ld : searchLead) {             getLeadWrapper contWrapper = new getLeadWrapper();             contWrapper.firstname = ld.FirstName;             contWrapper.lastName = ld.LastName;             contWrapper.company = ld.Company;             contWrapper.email = ld.Email;             contWrapper.utmCampaign = ld.UTM_Campaign__c;             contWrapper.programCode = ld.UTM_Campaign__c;             mapToSerialize.put(ld.Id, contWrapper);             response.responseBody = Blob.valueOf(               JSON.serialize(mapToSerialize)             );             response.statusCode = 200;           }         }       }     } catch (Exception e) {       response.responseBody = Blob.valueOf(e.getMessage());       response.statusCode = 500;     }   } }


Object comparison method doesn't return what is expected

I have two simple classes, Card and CardTester. One of the methods in Card checks to see if two cards are equal to one another.   However, when using calling the method matches() in CardTester, it returns false, when it should return true.  public class Card {   private String rank;   private String suit;   private int val;    public Card(String cardrank, String cardsuit, int cardval) {     rank = cardrank;     suit = cardsuit;     val = cardval   }    public boolean matches(Card a) {     if (this.val == a.val && this.suit == a.suit && this.val == a.val)    {       return true;     }      else {       return false;     }   }    Calling the method in another class:  public static void main(String[] args){   Card c2 = new Card("king", "clubs", 10);   Card c3 = new Card("king", "clubs", 10);    if (c2.equals(c3)) {     System.out.println("Cards are equal");   }    else {     System.out.println("Cards aren't equal");   }   The output ends up being "Cards aren't equal" when it should be "Cards are equal".


Why can't I add an answer to my own supposedly "non-constructive" question?

I asked the following question:   I found several technical, perfect answers to my question after a long search of my own. Yet the question is closed for being "non-constructive".   Is there a way in which I can answer my own question?


Solve $[2^{(2^{403})}] = [a]$ in $\mathbb Z_{23}$ where $0 \le a < 23$.  I've tried to combine corollaries of Fermat's little theorem and various other methods to solve this, but have always been stuck.


How to enable the Edit button in Shutter?

I am trying to enable the Edit button in Shutter. I installed the application from Ubuntu Software and are using Ubuntu 18.04.  After taking a screenshot the Edit button is disabled. And when hovering the mouse pointer over the button the text "Goo::Canvas/libgoo-canvas-perl needs to be installed for this feature" is shown.    I have tried to install the package libgoocanvas2-perl and restarted the computer, but the edit button is still not enabled:  sudo apt install libgoocanvas2-perl   That is the only package I can find.  Anyone that knows how to fix this?


I wqant to add a wifi thermostat to a millivolt system. I would like to keep the current thermostat in case of power lost so that it would kick in at a minimum temp say 45 degrees. How do you wire a thermostat in parallel? Thanks


I'm currently getting these errors, I've tried doing a few things to see if that would help. I even used the debugger to find out why these errors are occurring, but i'm still not sure.  If anyone would be able to help it would be really appreciated.  I tried looking at the suggested post and i made the fixes suggested, however this didn't help, the errors still remain the same.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at c3537779.ByteReader.getBytes(ByteReader.java:14)     at c3537779.BytePattern.patternParse(BytePattern.java:37)     at c3537779.FileChooser.PatternOpen(FileChooser.java:95)     at c3537779.GUI$OpenPatternAction.actionPerformed(GUI.java:74)     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)     at javax.swing.AbstractButton.doClick(Unknown Source)     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)     at java.awt.Component.processMouseEvent(Unknown Source)     at javax.swing.JComponent.processMouseEvent(Unknown Source)     at java.awt.Component.processEvent(Unknown Source)     at java.awt.Container.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Window.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)


DB server VM's CPU configuration - 1x2Ghz or 2x1Ghz - which is better

We want to set up DB server in cloud hosting for MS SQL Server Express edition - OLTP workload for "just" 6 concurent users - mostly short and small transactions.   Hosting company is charging each 1Ghz of CPU. Concerning CPU configuration, would you go 1 x 2Ghz or 2 x 1Ghz (logical cores in VM)?  Similar question is answered here:   My question is a bit different / specific in a way I'm choosing between just one core with higher speed or two with lower speed. So the scale is far different.


How do I remove my login account from stack exchange network?

I need to remove my Google  from Stack Exchange network, how can I do that ? I need only my facebook login and that Google login is associated with my previous company email id.


Which is the most portable of sed, awk, perl and sh?

Can someone put these tools in order of portability? Which of these is certain to be found on even the most minimal *nix systems? Is any of them 100% sure to be present? My guess is that the order is the following:   awk sed sh perl   While I imagine there are systems which don't default to a bourne shell, some shell will be present as the default, will that always be at /bin/sh? Presumably not if it's not a bourne-type shell. Both  and  have pages explaining them on the POSIX specification so presumably they will always be present. Is that so? Can I be sure that both will be installed on any *nix? Including embedded systems?


cannot take screenshots in a banking app

I have an unlocked Android 6.0.1 device, and I've installed a couple of banking apps.  For obvious security and paper trail reasons, I'd like to take some screenshots of my interaction with my bank.  However, somehow the low-volume+power buttons no longer takes any screenshots whilst in either of the banking apps.  Why?  How do I disable such a nuisance?


How to program a microcontroller via USB using JTAG?

I have some hard time understanding JTAG for programming.  I have an mcu that can only be programmed via JTAG.  What are some easy chips to start with in order to program an mcu via JTAG? I suppose I d need a chip (mentionned in the previous sentence) in order to convert the serial data received via usb to the "JTAG-equivalent"?  I am trying to program this mcu: TM4C1294 cortex M4, which can only be programmed via JTAG.  EDIT: a lot of you guys are talking about an FTDI2232 chip. But how would you wire an FTDI chip to the mcu? I mean the ftdi chip does (as far as I know a conversion to TTL and that s it). So you would then have all your data on the TX and RX pins. But with JTAG you need a TDI,TDO, TCK and a TMS pin. So I think you need another chip to do the conversion. No?


Let $\mu$ be a measure on $(X,\mathcal A)$ and let $f, f_1, f_2,\dots$ and $g, g_1, g_2,\dots $be real valued $\mathcal A$- measureable functions on $X$.  Show that if $\mu$ is finite, $(f_n)$ convergence to $f$ in measure and $(g_n)$ to $g$ in measure, then $(f_ng_n)$ convergence to $fg$. Can the assumption that $\mu$ is finite be omitted?  Intuitively it feels like one could look at the measure of the union where the convergence does not hold, for $f_n$ and $g_n$. Is that correct or what should I do? And what about the finiteness of $\mu$?


Find the solutions to $4x \equiv 16 \pmod{20}$  I managed to determine this by writing $4x = 16 + 20j \implies x =4 +5j \implies x \equiv 4 \pmod{5}$, but the official solution stated that the solutions are $x = 4,9,14,19 \pmod{20}$ which I'm not entirely sure how they got?


I want to reproduce the shape of the following diagram :   And the closest thing I could manage with the xy package was :  $$ \xymatrix{      &B \ar[r]  & H  \ar[r] & B   \ar[rd]  \\     E'_{n+1} \ar[ru] \ar[r]   &  & E'_{n}    \ar[r] &   E_n  \ar[r]  &  E_{n+1} } $$   which gives    Is it possible to do so with this package?


EXCEPTION_ACCESS_VIOLATION cause JVM crash

I am currently working on a java project(design a card game) and there is a method to choose the suitable card in a player's hand. But A fatal error happend irregularly (not in a fixed time). Here is the header of the log *  # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffd58ba714, pid=5604, tid=0x0000000000004314 # # JRE version: Java(TM) SE Runtime Environment (8.0_212-b10) (build 1.8.0_212-b10) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.212-b10 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [zip.dll+0xa714] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: #   http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #   * It seems like the problem happends in native C (# C  [zip.dll+0xa714]).How can I fix it? BTW, I have tried deploy a larger memory to JVM. It still happends sometime.


How to get the Gnome Activities overview to only open when clicked on

I am running Ubuntu Gnome 15.04 (with Gnome Shell obviously), and I have noticed that sometimes when I quickly hover over the Activities button in the top-right-hand corner, that it opens the Activities overview. Although when moving my mouse over it slightly slower, nothing happens. But sometimes I accidentally move my mouse there, and it opens up that area, and I am now getting really annoyed with accidentally opening it up. So I am wondering if there is a way to make it so that the Activities overview only opens up if the Activities button is clicked on?    OS Information:  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:    15.04 Codename:   vivid


Explanation of finite population correction factor?

I understand that when sampling from a finite population and our sample size is more than 5% of the population, we need to make a correction on the sample's mean and standard error using this formula:  $\hspace{10mm} FPC=\sqrt{\frac{N-n}{N-1}}$  Where $N$ is the population size and $n$ is the sample size.  I have 3 questions about this formula:   Why is the threshold set at 5%? How was the formula derived? Are there other online resources that comprehensively explain this formula besides  paper?


I'm attempting to make a formula that will toggle a hyperlink on or off depending on the argument. Basically, I want to make it argue the following:  If there is text in (Tab A, Cell A), then create a hyperlink with the title (Text of Tab A, Cell A) that links to (Tab B, Cell A). If no text is present in (Tab A, Cell A), then just put the text "Not in Use" with no hyperlink.  I was attempting this formula, but it's not quite working. As long as there is text in SETUP!D39, it displays the text and activates the hyperlink, but the text is not blue or underlined. If there is no text in SETUP!D39, then it displays the text (Not In Use) properly, but the hyperlink is still there and gives the error "Cannot open the specified file". I'm pretty sure it's just a syntax error in my formula, but I can't figure it out:  =IF(ISTEXT(SETUP!D39),HYPERLINK("#'DEDICATED FUNDS (10)'!A1", (SETUP!D39)), "(NOT IN USE)")   So my questions are:   Any idea why the hyperlink is not turning blue and underlining? Any suggestions on why the hyperlink still exists in the second argument?   Any help is greatly appreciated.


Getting Hebrew Support Working with Pandoc

Does anyone know why pandoc, with the xelatex engine might not generate hebrew characters while directly calling xelatex does?  That is, I have a simple .tex file with some hebrew in it.   \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{hebrew} \setmainfont{Times New Roman} \newfontfamily{\hebrewfont}{New Peninim MT} \begin{document} \title{שלום עולם} \author{שלום עולם} \maketitle  שלום עולם  \end{document}   If I feed this to xelatex  $ xelatex simple.tex    I get a PDF file will hebrew characters. Yay!  However, if I feed the same document to pandoc, specifying the --latex-engine=xelatex engine.  $ pandoc --latex-engine=xelatex simple.tex -o test.pdf   I get a PDF with no rendered hebrew characters.  Does anyone know why this happens, and how I might fix it?  I assume pandoc is calling xelatex in the background -- is there a way to view which options/arguments/flags its invoking it with, or to clearout those options?  Also -- My ultimate goal is to convert an HTML document with some hebrew characters into a PDF file with pandoc and I run into similar problems when I have a file (simple.html) like
שלום עולם
   and then attempt to convert it  pandoc --latex-engine=xelatex simple.html -o test.pdf   The above also produces a hebrew-less file.   So, I'm using pandoc to convert to the simple.tex file as a debugging technique, not because I'm actually moving from tex to PDF.  I know I can invoke xelatex directly and get this to work, but for complicated reasons I'd like this working with pandoc.  I'd also like to understand how pandoc is actually interacting with LaTeX.  So bonus points for those sorts of answers :)


I have a MySQL table with coordinates, the column names are X and Y. Now I want to swap the column values in this table, so that X becomes Y and Y becomes X. The most apparent solution would be renaming the columns, but I don't want to make structure changes since I don't necessarily have permissions to do that.  Is this possible to do with UPDATE in some way? UPDATE table SET X=Y, Y=X obviously won't do what I want.    Edit: Please note that my restriction on permissions, mentioned above, effectively prevents the use of ALTER TABLE or other commands that change the table/database structure. Renaming columns or adding new ones are unfortunately not options.


Let $(X,d)$ be a compact metric space. Let $f: X \to X$ be such that $d(f(x),f(y)) = d(x,y)$ for all $x,y \in X$. Show that $f $ is onto (surjective).  If $f$ is not onto then there exist a $p \in X$ such that there does not exist any $y \in X$ such that $f(y) =p$. Then there exist $x \in X$ such that $d(p,f(x)) = d(p,x)$.  I am finding difficulty to do the proof please help!!  Is the result true if $X$ is not compact??


Do I need an airport transit visa for Germany if I have a Schengen visa?

I am an Indian citizen living in the US. I am going back to India to get a H1B visa stamped. I have established that I would require an airport transit visa when I have a stopover in Germany.  On the way to India, I plan to visit a friend in Italy for a couple of days. For this, I will be applying for a Schengen tourist visa. My itinerary stops in Frankfurt both on the way to Milan and while heading to India from Milan.   Would I still require an airport transit visa despite having a Schengen visa?


Show that $\operatorname{rank}(A+B) \leq \operatorname{rank}(A) + \operatorname{rank}(B)$

I know about the fact that $\operatorname{rank}(A+B) \leq \operatorname{rank}(A) + \operatorname{rank}(B)$, where $A$ and $B$ are $m \times n$ matrices.  But somehow, I don't find this as intuitive as the multiplication version of this fact. The rank of $A$ plus the rank of $B$ could have well more than the columns of $(A+B)$! How can I show to prove that this really is true?


How to upgrade from Java 7 to Java 8 on Amazon Linux

I found  on this that is outdated and doesn't give a non-interactive way to do this. If you need to upgrade from Java 7 to Java 8 to run Jenkins, or whatever other Java application, you can do that by plugging this into a user_data script for Amazon Linux


Dave and Sharon Sampson established a plan to save \$347 per month (or \$4164 per year) for their children's education. Their oldest child is 5 years old and will begin college in 13 years. They will invest the \$347 in a savings account that they expect will earn interest of about 4.8% a year, compounded monthly, over the next 13 years.   a) How much will they have saved at the end of 13 years?  I am not sure what the exact formula is to answer this question. Could someone help me with the formula?


Want to clean string before using it in database

I want to clean user input before using it in database.  I'm using mysql_real_escape-string but it seems in some low versions of php its not working.  I want to use stripshlases. Will it work for me ? What should i do ?


Showing $\lim_{(x,y) \to (0,0)} \sin (xy) / xy = 1$

How could we show that $$\lim_{(x, y) \rightarrow (0, 0)} \frac{\sin xy}{xy}=1$$   ??   Could you give me some hints ??    EDIT:   Could we show it as followed??   $$\lim_{(x,y) \rightarrow (0,0)} \frac{\sin xy}{xy}$$  $$ x \rightarrow 0, y \rightarrow 0$$ $$\xi=xy \rightarrow 0$$  $$\frac{\sin xy}{xy}=\frac{\sin \xi }{\xi}\overset{ \xi \rightarrow 0 }{\rightarrow } 1$$   Is this correct?? Could I improve something??


SELinux preventing Apache from writing to a file

SELinux is preventing the apache user from writing to a log file which it owns. When I do setenforce 0 it works. Otherwise it shows this error  IOError: [Errno 13] Permission denied: '/var/www/webapp/k/site/k.log'   The security context of the file:  $ ll -Z k.log  -rw-r--r--. apache apache system_u:object_r:httpd_sys_content_t:s0 k.log   The file was created when the SELinux mode was set to permissive.  How to set the security context so the apache user can write in that directory? I did set that directory security context using chcon but I can't find a suitable file type.  From audit.log:  type=AVC msg=audit(1409945481.163:1561): avc:  denied  { append } for  pid=16862 comm="httpd" name="k.log" dev="dm-1" ino=201614333 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=file type=SYSCALL msg=audit(1409945481.163:1561): arch=c000003e syscall=2 success=no exit=-13 a0=7fa8080847a0 a1=441 a2=1b6 a3=3 items=0 ppid=15256 pid=16862 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)


Do I have to enter the UK on my UK passport?

I'm a British National (Overseas), which basically means that while I don't have the right of abode in the UK, I am permitted to visit the UK without a visa. However, my passport has expired, and while it's being renewed, the schedule is a bit tight.  At the same time, I'm an US Citizen, and since I'm only planning to visit the UK, I don't need a visa if I enter on my US passport.  I'm not familiar with UK immigration law, and given that this probably isn't too common a situation, the UK Border Agency website doesn't have an answer that I can can find, nor do they seem to have a contact form that fits my situation, so here's hoping someone knows—given that I'm a British National (Overseas), am I required to enter the UK on my UK passport, or can I just use my (valid) US passport?


recently I got an old laptop with 1 GB ram and 1.7 GHz proccessor. also I have found the terrible windows! I will be glad if I can completely destroy the installation of Windows XP and download the beautiful Ubuntu, but I'm confused... would it be okay if I download 12.10 32bit? because I think it will be slow. any idea about that? or should I use Xubuntu?  thanks advance.


Can I install or update Mac App Store apps through a command line using terminal?

Is there an official way provided by Apple or a workaround so that I can install or update Mac App Store apps through Terminal?


How to show output on terminal and save to a file at the same time?

I am using:  user@unknown:~$ sudo command -option > log   to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?  I am using ubuntu 10.04 lts.


My husband is studying online in a British university in London while working in the Middle East.  He applied a UK visa for us with the kids to visit the UK for only ten days for a course and some short sightseeing; we were planning to visit Paris later for 3 days and come back home.  Unfortunately the application has been refused. The reasons are: I’m unemployed although I have traveled with my husband several times to Europe and he paid everything for me. And they mentioned the weak ties and an unclear bank account.  So what is the solution for this?


How to import Java Project completely in Eclipse

I am looking to upload complete Java Project into eclipse, I was wondering if this is possible. Or if I have to create a project and then do it. Regardless im quite lost.


How can I fix screen tearing in google chrome?

I have tried everything, from changing smooth in scrolling chrome://flags to updating drivers. Currently running ubuntu 16.04, and I only get screen tearing in google chrome whether it's watching youtube videos or casually browsing the internet...


What is the big O notation and how do I calculate it?

Calculate big o of function. How do I calculate the big O notation in this function?  Example:    function fun1(int n) {   int s = 0;   for(int i = 0; s < n; i++)   {     s += i;     for(var j = s; j < n; j++)       {         console.log(j);       }   }   return s; }


sorry if this been asked already...  Why and when Should I use linked lists over vectors? I just don't like all those pointer overheads...  From my knowledge: vector is faster, more compact because there's no extra pointers, and is easier to implement; also I think that linked lists do not exploit the principle of spatial locality because nodes are in totally random memory locations so your code becomes slower... so when you are using linked lists you are increasing your cache misses which you don't want to do...  Of course the advantage of lists is that you can avoid overflows with dynamic memory allocation...  In summation, my question is: where should you use, if ever, linked lists over vectors? which data struct do you prefer more?


Which of the four fundamental forces is responsible for covalent bonds?

Molecules are the result of covalent bonds forming between atoms. Which of the four fundamental forces is responsible for covalent bonding? (Sorry if this is basic -- I'm guessing electromagnetic, but just wanted to check.)


mysql root has password set but it allows blank password

Its a new installation. I ran mysql_secure_installation and set a password.  But I can still login with blank password. If I set -p it accepts my new password but also accepts blank password.  root@newserver:~# mysql -uroot  Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB connection id is 46 Server version: 10.0.38-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04  Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  MariaDB [(none)]> quit; Bye   There is only one root user account.  MariaDB [mysql]> select * from user\G *************************** 1. row ***************************                   Host: localhost                   User: root               Password: *lasdhjkladhailuhhiouaw            Select_priv: Y              Insert_priv: Y            Update_priv: Y


Trying to switch a value from on Queue to another. Getting NullPointerException?

So right now I am working on small simulator, that simulates a store. This store has multiple check out lanes, or in this case queues. Now what I am trying to do is make it so I can move over a Customer from one queue, or line, to the another one if there is another open line, and they  are second in line. So essentially I am taking the front.next Node, and moving it over to become the front Node in the whatever queue I decide to move it to. This is the exact error code I am getting:  Exception in thread "Timer-0" java.lang.NullPointerException at unit8_Task1.Store.moveLanes(Store.java:220) at unit8_Task1.Store.access$9(Store.java:184) at unit8_Task1.Store$6.run(Store.java:96) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)   and here is the code that is involved with moving the customer:      private void moveLanes(LineQueue<Customer> l){ //modification     LineQueue<Customer> largestLine = null;     LineQueue<Customer> lineToAdd = null;      if(superExpress.size() == 0 && superExpress.getContFreeTime() >= 30){         lineToAdd = superExpress;          for(int i = 0; i < queues.length; i++){             if(largestLine == null){                 queues[i] = largestLine;             }else if(queues[i].size() > largestLine.size()){                 largestLine = queues[i];             }         }     }else if(expressOne.size() == 0 && expressOne.getContFreeTime() >= 30){         lineToAdd = expressOne;          for(int i = 0; i < queues.length; i++){             if(largestLine == null){                 queues[i] = largestLine;             }else if(queues[i].size() > largestLine.size()){                 largestLine = queues[i];             }         }     }else if(expressTwo.size() == 0 && expressTwo.getContFreeTime() >= 30){         lineToAdd = expressTwo;          for(int i = 0; i < queues.length; i++){             if(largestLine == null){                 queues[i] = largestLine;             }else if(queues[i].size() > largestLine.size()){                 largestLine = queues[i];             }         }     }      Customer c = largestLine.getNextInLine();     largestLine.remove(c);     lineToAdd.offer(c); //adds the customer to the smallest line     lineToAdd.setIPH(items); //this will be added after the customer is generated in the above method     if(lineToAdd.getMaxLength() < lineToAdd.size()){ //if the maximum length is now smaller than the current size         lineToAdd.setMaxLength(lineToAdd.size());     }     add(c); }   The add method at the end is what adds objects, or in this case Customers, to the front of a selected queue. That has been working when generating new customers, so there should not be a problem there. Lastly, there is the code I have for the LineQueue itself:  private Node<Customer> front; private Node<Customer> ref;  public Customer getNextInLine(){return front.next.data;};  @Override public boolean offer(Customer e){     if(size == 0){         front = new Node<Customer>(e);     }else if(size == 1){         front.next = new Node<Customer>(e);         ref = front.next;     }else{         ref.next = new Node<Customer>(e);         ref = ref.next;     }     size++;     CPH++;     return true; }   I am guessing this is occurring because the first.next.data is not actually storing the Customer object correctly. I also tried type casting to Customer (Customer)first.next; instead, but I got the same error.


Proving that the matrix exponential map is surjective onto the general linear group

Let $M_n(\mathbb{F})$ be the set of all $n\times n$ with entries in $\mathbb{F}$ and let $\exp:M_n(\mathbb{C})\to M_n(\mathbb{C})$ be defined by  $$ \exp(A)=\sum_{k=0}^{\infty}\frac{A^k}{k!},$$ for all $A\in M_n(\mathbb{C}).$  I want to prove that $\exp$ is a surjective map from $M_n(\mathbb{C})$ to $GL(n,\mathbb{C})=\left\{A\in M_n(\mathbb{C})\,\middle| \det(A)\neq0\right\}$, how do I go about that?   I mean saying that $\exp:M_n(\mathbb{R})\to GL(n,\mathbb{R})$ is an analogous to saying $\exp:\mathbb{R}\to \mathbb{R}_{>0}$ and this is also pretty intuitive, since, in analogy with the case of numbers, $A^0=I\;\forall A$, so $\exp(0)=I+0+\frac{0^2}{2!}+\dots=I$, so even for $A=0$ we get $\det\left(\exp(A)\right)\neq0$ and so because of the first term we can never get a zero determinant. But I have no idea how to prove the subjectiveness.  Thanks in advance.


So, I have a string, for example: string = '34567'  I know that string[-1] will return me '7', but how do I get like '567'? Because it doesn't work if I start from the middle: string[2:-1] == '56'  Usually, since the last number doesn't count, you just add 1 to it, but in this case you can't do it So how do I print '567'?


Words that are members of multiple classes of words (without changing form)

By "class of word" I mean a noun, verb, adjective, adverb etc. This notation came from reading the definitions of these words themselves. For example   grammar any member of a class of words that can function as a ...  grammar any member of a class of words that function as the main elements of predicates, that typically express action ...  By "not changing form", I mean the noun, adjective, verb etc. forms are spelled (and possibly pronounced) exactly the same. An example that doesn't fit this would be late, which is an adjective and has an adverb form of lately. I thought of the example word 'complex' last night and wondered if there were a noun that encompasses such words.   [adj., v. kuhm-pleks, kom-pleks; n. kom-pleks] adjective 1 - composed of many interconnected parts; compound; composite: a complex highway system. noun 6 - an intricate or complicated association or assemblage of related things, parts, units, etc.: the entire complex of our educational system; an apartment complex. And in researching this, I discovered that there is also a verb form of complex specific to chemistry: verb (used with object) 12 - Chemistry . to form a complex with. This leads to using a situation where a the word in question can be repeated immediately in a sentence and still be grammatically correct (but admittedly confusing).  My apartment is part of a complex complex.  Interestingly, I found a  which fits what I was looking for, providing 24 other examples, but doesn't define things any more precisely. I also found this  covering the case where nouns are used in their exact nounal meaning but take the place of an adjective in a sentence. One of their examples: horse race. So my question is this: Is there a word which describes or defines words such as these exactly? It would have a definition like this:  <mystery word> noun  A word which itself may function as various parts of grammar without changing spelling or meaning. A word which has reached such widespread usage that it has definitions or meanings as a noun, verb, adjective, and/or adverb, all of which have the same origin or root word. A word that is a homonym of itself.   I have thought of and dismissed homonym, homograph, homophone etc. because they stipulate variously that the spelling, pronunciation or both are the same but differ in meaning and/or origin. I'm specifically looking for words that sound and are spelled the same and also have the same (or very similar) meaning and origin. Excellent examples from the quiz I linked (spoiler alert):  I have a sore sore. That mammoth is mammoth! I've never told anyone the combination, so my safe is still safe.


I use a big screen 4K 43", of course the resolution 4K makes everything too small on screen.  On windows, I have a option to zoom all the desktop GUI, normally I use 150%.  Is there a way to do the same on linux? I'm using Ubuntu Studio latest version. I can change the resolution to FHD but than the things are tooooo big.  Thx for any help.


I have and Excel file that I converted to a CSV file. Apparently there are two kinds of spaces in this file, the regular space and a non-breaking space (my assumption).  When saving the data to the database the non-breaking space gets saved as a black diamond with a question mark (�).  I've been reading around as this probably has solutions already but when I try them, nothing is happening.  Using the mb_substr approach:  $name = !empty($data[0]) ? mb_substr($data[0], 0, mb_strlen($data[0]), "UTF-8") : null;   Using the str_replace approach:  $name = !empty($data[0]) ? str_replace("&nbsp;", " ", $data[0]) : null;   I've been pulling my hair out with this one for a couple of hours now so if anyone could help me out, I highly appreciate it.  EDIT  I'm using Oracle for the database and here are the Character Sets defined:  NLS_CHARACTERSET       = AL32UTF8 NLS_NCHAR_CHARACTERSET = AL16UTF16   Here's a sample data:  , W.R.,  The space before W is the character that gets transformed into the question mark.


The displayed number of accounts 101 doesn't match the actual number of accounts

It seems like 101 is the maximum displayed number of accounts. For example  has 113 accounts, but his profile says 101:    EDIT (2013-03-31): this bug has been fixed while fixing .


Protection against instant deletion of a question which gets an answer

I've recently answered a question which got deleted in a few minutes after I posted my answer (and as result, my answer and all comments made by others were removed as well).  Although I enjoyed thinking about the question which was nice (it was open for a day before my answer), I somehow feel exploited by such behavior from the question owner and do not think it is in the spirit of this community by any means (it was mentioned that the question was asked by a professor for a test).  Are there any policies at Stack Exchange for such occasions?


When are the new badge verifications performed?

Some badges are not awarded after the event has happened.  They require analysis, some of them are Suffrage, Tenacious, Unsung Hero, Quorum...  These calculations are triggered by some schedules.  What are theses badges? When are those calculated?


When any function is applied to the output of any even function, is it odd or even? Explain

I only need a couple of sentences to explain, but I don't know how to word it, please help! I do not need an algebraic proof, just a sentence or two to explain why the output is always even.


Ok, I've got a image I want to insert into my report for college and when I compile the captions show but the images doesn't, the only thing I see is blank space enclosed by a borderline with the adress of the image inside. Here is my preamble:  \documentclass[12pt,a4paper,draft]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[dvips]{graphicx} \graphicspath{{/home/pera/USP/Experimental III/Relatório I/Figuras}}   And the concerning part of the code:  \begin{figure} \includegraphics[scale=1]{figarranjo2.eps}  \end{figure}   Notice that I've already tried: compiling Latex/DVI-->PS, checking the folder of the figure, changing image format to png and compiling in PDFLatex and everything ends up at the same blank space... Actually I always have problems when it comes to images in LateX... Any suggestions?


Transformations for Logistic Regression Predictors

I was curious about what types of transformations (if any) are used on predictors for logistic regression.   Linear regression transformations seem fairly straightforward; scatter and density plots can help identify if logging the predictors or using a polynomial is necessary. I haven't read too much on similar types of predictor transformations for logistic models. I was just curious if there are common transformations and, if so, how are they identified (graph, etc.)?


Some of my questions weren't important and also my fault. They were downvoted. Even, no expected answer.  So, I've tried Google and found the answers were quite easy.  I'm also blocked from questioning because of the previous answered questions.  I've tried to delete them but they don't disappear / are not deleted permanently.  What can I do now? Those questions can't be edited. How to get the question opportunity again?  For instance, I want to delete this  .


Shell redirection: <<<'foo' vs <(echo 'foo')

I've seen both <<<'foo' and <(echo 'foo') suggested as alternatives to echoing to pipes (echo foo | cat).  When I use both of these constructs with cat I get:  $ cat <<<'foo' foo $ cat <(echo 'foo') foo   So far, so expected.  A difference becomes apparent however when you use them on the shell directly:  $ <<<'foo' foo $ <(echo 'foo') zsh: permission denied: /dev/fd/12   I am using zsh, and bash seems to treat the <<< case differently, printing nothing at all, but is the same as zsh in the <() case.  But what actually triggered my question was a diff:  $ diff <<<"/mypath" <(pwd) diff: missing operand after `/dev/fd/63' diff: Try `diff --help' for more information.   It's clear there's a fundamental difference between these two types of shell redirection. Can anyone explain the difference?


pass variable to replace function regular expression javascript

I want to have a 'newline'-function to pass a string to it and print it on pdf. my function so far is   var array = new Array(); function newLineFunction_PDF(text) {   var arr = text.replace(/.{70}\S*\s+/g, "$&@").split(/\s+@/);   return arr; }  array = newLineFunction_PDF('some Text');  for( var i in array) {   print(array[i]); }   What it does is cut the text in to pieces of length-70 incl. the last word, push it into the array and print it afterwards with new lines. Now i want to pass a number to the function, like 100, so i can decide the max-length of the text per line.  So far I tried:  function newLineFunction_PDF(text, num) {   var re = new RegExp(/.{num}\S*\s+/g);   var arr = text.replace(re, "$&@").split(/\s+@/);   return arr; }   but I dont know how and where to add escapes into the new RegExp.


Does anyone know the name of this symbol?

Does anyone know the name of this rotated, filled in, black square symbol?


Proof that $\Bbb Q$ is not a $G_{\delta}$ set by Baire catagory theorem corollary.

I start by supposing $Q = \bigcap_{n=1}^{\infty}O_n$.  Then by a corollary to the Baire Category theorem: A complete space that can be written as $X = \bigcup_{n=1}^{\infty}X_n$ has $\ge 1$ n such that Int(closure($X_n$)) $\neq \emptyset $.    Therefore because $R = \bigcap_{n=1}^{\infty}O_n \bigcup \Bbb P $, we can write that $X_n$ = Int(closure$(O_n \bigcup \Bbb P))$.  But aren't the closures of both $O_n$ and $\Bbb P$ $= \Bbb R$, where would the contradiction be?


I am on Android 4.2.1 (Galaxy Nexus), when using Lockscreen widgets, they are always quite small until once drags them down, then they get maximized. Any way to maximize them by default? Thanks :-)


Why can’t the Doctor deal with his condition?

In the episode “Oxygen,” the Doctor is exposed to vacuum for an prolonged period and   suffers blindness as a result of this exposure.  The Doctor reassures Bill that this condition is temporary, and that, once he has access to the resources within his TARDIS, he can deal with it (even if he has to implant the organs of a lizard).  BILL: You’re blind. DOCTOR: I am? Well, that explains the bruised shins. (Bill hugs him.) DOCTOR: Oh, don’t get all gooey on me. It’s temporary. BILL: Really? DOCTOR: Yeah. Once we get back to the Tardis. BILL: The Tardis? DOCTOR: I’ve got stuff in there that’ll cure anything. Failing that, I think I’ve got some spare eyes somewhere. They’re from a lizard, but I’m sure they’ll fit. Doctor Who, “Oxygen”  Later, however, it is revealed that he is still blind, a condition which he believes will be permanent.  DOCTOR: Nardole, I can’t. I really can’t! I can’t look at anything ever again. I’m still blind. Doctor Who, “Oxygen”  Why is this? The Doctor clearly wants to have visual capabilities. He has access to all the medical resources of time and space (possibly including those of Gallifrey). Admittedly, there may be some that are too dangerous to be worth the bother of accessing, but we’ve seen highly advanced medical facilities that he’s been to before (New, New York, for example). In addition, we know that the Doctor does indeed carry highly advanced synthetic body parts around in his TARDIS.  TANYA: You got your leg back? DOCTOR: I had some spares in the medical bay. The Lothan, giant centipedes, experts in prosthetic legs. You’ll get the hang of it. You just have to train it to act like your own leg. Class, “For Tonight We Might Die”  How, with all these resources, is the Doctor incapable1 of dealing with his blindness? 1: Besides, apparently, borrowing barely a few minutes of vision at a potentially ruinous future cost.


text processing rows to columns for a block

I have a file containing lists on Solaris:  List A hi hello hw r u  List B Hi Yes  List C Hello   I need to transpose the lists as shown below:  List A    List B    List C hi        Hi        Hello hello     Yes hw r u   How can I do this on Solaris?


Division output in C# is not the same as excel

I have this formula to get the FinalQuantity = Quantity / Price. Quantity is declared as double and Price is float.  If I enter the values manually in the Code. FinalQuantity = 9000000 / 102.6411 it will have an output of 87684.173299000118.  But if I assign the values to the variables Quantity and Price. It will output 87684.174988370942. I have tried converting Quantity to Integer and Price to double but still getting this same result.  Could someone help me how to fix it.


Is there any C#/F# performance comparison available on web to show proper usage of new F# language?


macOS High Sierra Messages, how can I find a closed conversation?

I have some conversations in Messages.app that I have previously closed.  I would like to find one of them again.  These were not deleted, merely closed.  How can I get them back once again?


Proportion of correct guesses knowing the true probabilities

In an example, suppose we have a hypothetital infinite population of objects of two colors: red and blue, and we know the true proportions of each: $P(red)=0.3$ and $P(blue)=0.7$  Now, suppose I blindly draw objects at random and try to guess their color by using a random number generator which predicts red 30% of the time and blue 70% of the time.  What proportion of guesses are expected to be correct in a theoretical infinite sample? Intuition tells me 50%. If that is correct, why?


So I have a folder with only 2 text files, I am reading them and storing the value. This is what the code looks:  public static void UnionFiles() {     var dinfo =         new DirectoryInfo(             @"\http");     var files = dinfo.GetFiles("*.txt");     int i = 1;     System.Collections.Generic.IEnumerable<String> _eValA, _eValB;      foreach (var file in files)     {         if (i == 1)         {              _eValA = File.ReadLines(file.Name);             ++i;         }         else          {             _eValB = File.ReadLines(file.Name);             i = 1;          }     }     IEnumerable<String> union = _eValA.Union(_eValB);     File.WriteAllLines(@"\http\union.txt", union.Cast<String>()); }   But I get this error: Use of unassigned local variable '_eValB, _eValA'  How can I get past it.   Thanks.


Precisely How Does the Fidelius Charm Work?

I've read J.K. Rowling's website and FAQ. I've read every interview with her that I know of. I've read all the books many, many times. I've read the HP Wikia, the Lexicon, essays, fan fiction, and even been to panels that touch on the subject of charms at HP cons.  I would like a definitive explanation on the Fidelius charm.   Who can tell who what, what happens when the Secret Keeper dies, who can say what to who? I've read so much contradicting information -- I'm pretty good at figuring these things out, but I'm stumped on this one.   How exactly does the Fidelius charm work?


Can't update or install apps on Ubuntu Touch

For some reason whenever I try to update or install an app via the store, Ubuntu Touch keeps asking for my Ubuntu One account, but logging in doesn't work. What can I do?


NO Idea, why the base string get return instead of Derived, is that becasue vector copied only base object from the dervied object? #include <vector> #include <iostream> using namespace std; class Base { protected:     int m_value{};   public:     Base(int value)         : m_value{ value }     {     }       virtual const char* getName() const { return "Base"; }     int getValue() const { return m_value; } };   class Derived: public Base { public:     Derived(int value)         : Base{ value }     {     }       virtual const char* getName() const { return "Derived"; } };  int main() {     std::vector<Base> v{};     v.push_back(Base{ 5 });     v.push_back(Derived{ 6 });                for (const auto& element : v)         std::cout << "I am a " << element.getName() << " with value " << element.getValue() << '\n';       return 0; }  why in second output Base is get return from the getName() methods? Is that because of vector is not a pointer type or reference? I am a Base with value 5 I am a Base with value 6 ----> why it prints the Base?


I need to remove <batchRequest> and </batchRequest> from my XML file in a batch file.   Is it possible?  My current file:  <batchRequest><sid sid="100000000" test="false" ></sid> </batchRequest> <batchRequest><sid sid="100000000" test="false" ></sid> </batchRequest>   And I need this:   <sid sid="100000000" test="false" ></sid> <sid sid="100000000" test="false" ></sid>   I'm stuck on this setting    set str=!str:<batchRequest>=!   If I use   set str=!str:batchRequest=!   It works, but isn't what I need.  My code so far:  @echo on setlocal enabledelayedexpansion  For /f "tokens=* delims= " %%a in (_1000_1008603__30122015_153242_all.xml) do ( Set str=%%a set str=!str:<batchRequest>=! echo !str!>>_1000_1008603__30122015_153242_all_NEW.xml )


When referencing attached documents at the end of a sentence in parenthesis do you capitalize the first letter?

The aging reports are used by management to determine what files should be worked on first (see aging reports attached).


Current limiting resistors for preventing shorts at power supply turn-on

In a text it mentions about a power supply that the filter cap will act as a short at initial turn-on. Below I showed these points as A and B:    In this case, the diode will have a surge current Is. And the text says this Is current should be limited by a resistor between the transformer and each diode.  But in practice isn't transform's winding enough to limit this current? What is the typical value for this resistor lets say for a 24V power supply? Im asking because I dont see any such series resistors in examples. Im wondering is it fine to neglect it.


I have a weird problem with Windows 7. It started about 14 months ago. I had 10 GB free space on C on maximum 146 GB. D was okay. Tomorrow, 8 GB free! Next day, 6 GB free until 250 KB free. I cleaned up space somehow and got 3 GB free. Now everyday I have lower and lower free memory. I disabled Windows Update. I think do games write on the disk. I play only LOTR: The Return Of the King. Antivirus is Bitdefender the latest, installed a few days ago. How can I stop filling my hard disk? Programs Files on C is 20 GB but on D 40 GB. I think Windows is filling my HDD with cache and other junk files. How to resolve this?


I have a problem with identifying seasonality without using plots.  From what I have understood, the best way to detect seasonality in a time series is by understanding the data, plotting it and analyzing the autocorrelation plot. Now I would like to apply this process to sales data about multiple products from multiple companies, which means thousands of different time series. Since I cannot take the time to understand and plot data for every product, I would like this process to become "automatic". Automatic in the sense that there would be a data pipeline where, amongst other things, there will be a seasonality test and then a seasonal difference (if seasonality is detected) etc... Just so you can understand: the pipeline's final goal is to return forecasts. That is why I am trying to make my data stationary.  I don't think plot analysis is possible (or, at least, easy to implement for a beginner like myself) in such a pipeline. Therefore I cannot rely on it. So my question is: Are there any non-graphical tests that I can use in order to detect seasonality ? I have looked into Ljung-Box but it seems that it is only used for residual analysis when fitting models, which is not what I am looking for. Thank you for your help!


Did Bilbo and Gollum have different after-effects of being Ring-bearers?

Gollum (Smeagol) was once a Hobbit. His life was extended over 500 years while he had the Ring.  Eventually Gollum lost the Ring to Bilbo, who I think had it around 50-60 years (?).   At the end of the movie "The Return of the King" Bilbo has only been without the Ring for a year, but looks completely aged, wrinkled, suffers from poor memory, seems to lack energy (falls asleep on Frodo) and appears to be near death. On the other hand Gollum had gone without the Ring for 50-60 years, but despite his incredibly old age, he still had smooth, wrinkle-free skin and more energy than either of the 2 young Hobbits (Frodo or Sam).  Is this a result of the longer amount of time that Gollum spent with the Ring before losing it?  I'm basing my question on the 6 semi-recent movies; I haven't read the books but feel free to use them to answer this.


Let $\sqsubseteq$ be a boolean ordering of the boolean algebra $X$, which means that for each $x$ and $y$ the following applies: $x \sqsubseteq y$ if $x \sqcap y = x$.  Let $v, w, a, b \in X$ with $v \sqsubseteq a$ and $w \sqsubseteq b$.  Show/prove the following:  that  $v \sqcup w \sqsubseteq a \sqcup b$  and that  $v \sqcap w \sqsubseteq a \sqcap b$  Now, I can answer this question with the help of set theory:  if $V \subset A$, then it follows that $V \subset  A\cup B$. Also, from $W \subset B$ it follows that  $W \subset  A\cup B$.  It then follows that if both $V$ and $W$ are subsets of $A\cup B$, it also follows that $V\cup W \subset A \cup B$.  The same story goes for $V \subset A$ and $V \subset A \cap B$.  But how can I show/express this in boolean algebra notation? How can I use $x \sqsubseteq y$ if $x \sqcap y = x$ to prove $v \sqcup w \sqsubseteq a \sqcup b$ and $v \sqcap w \sqsubseteq a \sqcap b$?


What is this syntax? var x == ( enum | enum)

I've come across this code snippet (that works) and I'm curious as to what the syntax is.  if (keyData == (Keys.Control | Keys.F)) {     MessageBox.Show("What the Ctrl+F?");   }   I've searched for      | Operator C#    but this merely results in links to the || OR operator.  My inital thoughts are that this could be shorthand for if (keydata == keys.Control || keydata == Keys.F) (syntax I would love to see in C#7) but this doesn't seem to be the case.  Could anyone please explain this to me?


I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left?


Urban fantasy book about magic appearing in the modern world

This is an urban fantasy book in which magic suddenly returns to the modern world. The setting is in a large city (maybe New York) and has a very disaster-genre feel. The protagonist's boss is slowly turning into a dragon. This would have been in the late 90s, I think.


I need to prove that if i multiply 2 diagonal matrixes i get a diagonal matrix. I understand the logic behind it but find it difficult to prove on paper.  I started with saying that a diagonal matrix Aij = 0 when i != j. Then I declared 2 diagonal matrixes A,B of size n*n.         n           i - 1           n   (AB)ij = Σ (Aik * Bkj) = Σ (Aik * Bkj) + Σ (Aik * Bkj)       k = 1         k = 1         k=j+1   so the first part equals zero because Aik will be 0 becasuse k is bigger than i. im stuck on the second part, how to show that the second part is also equal to 0, meaning what ranges to use on the sums.   thanks


The following Perl script can convert CSV file to XLS file  the problem is that I need to install on customer Linux machine many Perl modules   in  order to run this Perl script , and actually I cant because the Linux machine is customer machine ( not allow to install modules )  So I need to find some other alternative for this Perl script  First customer have Linux red-hat machine version 5.X  And I want to find some bash/ksh/sh/awk scripts that can do the job the same as the perl script do  so I want to find other alternative  that convert CSV to XLS file   Please advice how to find this script? or other advice to convert CSV to XLS on Linux machine  #!/usr/bin/perl -w  ############################################################################### # # Example of how to use the WriteExcel module # # Simple program to convert a CSV comma-separated value file to an Excel file. # This is more or less an non-op since Excel can read CSV files. # The program uses Text::CSV_XS to parse the CSV. # # Usage: csv2xls.pl file.csv newfile.xls # # # NOTE: This is only a simple conversion utility for illustrative purposes. # For converting a CSV or Tab separated or any other type of delimited # text file to Excel I recommend the more rigorous csv2xls program that is # part of H.Merijn Brand's Text::CSV_XS module distro. # # See the examples/csv2xls link here: #     L<http://search.cpan.org/~hmbrand/Text-CSV_XS/MANIFEST> # # reverse('©'), March 2001, John McNamara, jmcnamara@cpan.org #  use strict; use Spreadsheet::WriteExcel; use Text::CSV_XS;  # Check for valid number of arguments if ( ( $#ARGV < 1 ) || ( $#ARGV > 2 ) ) {     die("Usage: csv2xls csvfile.txt newfile.xls\n"); }  # Open the Comma Separated Variable file open( CSVFILE, $ARGV[0] ) or die "$ARGV[0]: $!";  # Create a new Excel workbook my $workbook  = Spreadsheet::WriteExcel->new( $ARGV[1] ); my $worksheet = $workbook->add_worksheet();  # Create a new CSV parsing object my $csv = Text::CSV_XS->new;  # Row and column are zero indexed my $row = 0;  while (<CSVFILE>) {     if ( $csv->parse($_) ) {         my @Fld = $csv->fields;          my $col = 0;         foreach my $token (@Fld) {             $worksheet->write( $row, $col, $token );             $col++;         }         $row++;     } else {         my $err = $csv->error_input;         print "Text::CSV_XS parse() failed on argument: ", $err, "\n";     } }


Consider the phrase: "That shovel belongs to Tim."  which when you reverse the subject becomes: "Tim owns that shovel"  However there is another use of belong, which means membership of.  "Susan belongs to the North Hampton Soccer Club.".  How would I reverse that subject. "The North Hampton Soccer Club owns Susan"? That isn't correct, Susan isn't property.  "The North Hampton Soccer Club includes Susan"? That doesn't convay the same strength of belonging, but it is better.  Consider another example:  "Fred belongs to the Catholic Church"  "The Catholic Church owns Fred", "The Catholic Church includes Fred",  I am ideally looking for a single word verb.


When compiling a document console returns:   Overfull \hbox (10.57799pt too wide) in paragraph at lines 40--43 \OT1/cmtt/m/n/12 informacion-[]para-[]ciudadanos / el-[]chagas-[]en-[]el-[]pais -[]y-[]america-[]latina$\OT1/cmr/m/n/12 ]. Pro- []   MWE  \documentclass[12pt,twoside]{report}  \usepackage[headheight=18pt,a4paper,width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry}  \usepackage[utf8]{inputenc}  \usepackage{fancyhdr} \pagestyle{fancy}  \setlength\parskip{1em plus 10pt}  \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} \usepackage{url}  \begin{document} bla bla bla bla and   \url{http://www.msal.gob.ar/chagas/index.php/informacion-para-ciudadanos/el-chagas-en-el-pais-y-america-latina}. Programa Nacional de Chagas del Ministerio de la Nación.      \end{document}   What can I do to solve the warning?


Which format must the drive be in order to create a bootable USB?

How do I have to format the drive in order to create a bootable USB?  I'd appreciate it if I could get an answer soon... Thanks!


How do I normalize a vector of numbers so they are between 0 and 1?

I have a vector of numbers (both positive and negative). How can I normalize it so the values of the normalized vector will be between 0 and 1?


Prevent zooming when clicking a link on Chrome

I'm pretty good at clicking the link I want to click. Most of the time it magnifies and makes me tap again when the first tap was sufficiently centered. I want it to just assume I got close enough and go to the link closest to the center of the area I tapped. Is it possible?


Dependency is not satisfiable: python(<2.7)  What is the meaning of this error? And how do I troubleshoot ?


How to evaluate $\lim_{ n\to \infty }\frac{a_n}{2^{n-1}}$, if $a_0=0$ and $a_{n+1}=a_n+\sqrt{a_n^2+1}$?

Let $a_1,a_2,..,a_n$ be sequence of real numbers such that $a_{n+1}=a_{n}+\sqrt{1+a_n^2}$ and $a_0=0$.  How to evaluate $\lim_{ n\to \infty  }\frac{a_n}{2^{n-1}}$ ?


Traveling under the ESTA/VWP from Chile for 2 months before F1 Visa becomes active?

I have received my F1 visa already in Chile, but I would like to travel in the US for a couple months before the start of my program. My F1 visa only allows me to enter the US 30 days prior to my program start date, but as a citizen of Chile I am eligible to travel under the ESTA/Visa Waiver Program for 90 days. My question is if I can activate my F1 visa while in the US or if I must travel back to Chile and then back to


jQuery Validation plugin: how to check if an element is valid?

A little bit of context:  I'm using the jQuery Validation plugin to validate a sign-up form. I now want to implement an ajax call to check whether the user name is available in the system, and I want to make this ajax call only if the userName value is a valid one as per the rules set in $(form).validate();  I want something like:  $("#userName").keyup(function () {     if ($("#userName").isValid()) {         //make ajax called     } });   I searched the documentation but i couldn't identify the solution to my problem.


C++ template friend function not linking

I have the following code which compiles in VC6 :  Text.h:  template <typename T> class CTextT {    public:      friend  CTextT add(const CTextT& text1, const CTextT& text2) ;  friend CTextT operator+(const CTextT& string1, const CTextT& string2)        {          return ::add(string1, string2);}     }      .................... };   And at the end of the header   #include "Text.inl"   Text.inl:  template <typename T> CTextT<T> add(const CTextT<T>& text1, const CTextT<T>& text2)  {        CTextT<T> temp ;      // do something      return temp ; }   But VC2010 gives me LINK error:  error LNK2019: unresolved external symbol "class CTextT<char> __cdecl add(class     CTextT<char> const &,class CTextT<char> const &)" (?add@@YA?AV?$CTextT@D@@ABV1@0@Z)   referenced in function "class CTextT<char> __cdecl operator+(class CTextT<char> const &,class CTextT<char> const &)" (??H@YA?AV?$CTextT@D@@ABV0@0@Z)   1>.\Debug\UnitTestText.exe : fatal error LNK1120: 1 unresolved externals   If I place the code in the Text.h it compiles fine. But I do not want to do this because I want to keep declaration clean from implementation. I can't figure why linker is complaining in this case when the function is outside the class? This is the only problem and the class is very big and there are other friend functions returning CTextT.


When rendered the text in my pdf is not anti alised. Anyone knows how to do this?  The following example shows my text output compared with output from google docs pdf    Is it even possible with pdflatex?  Header file:  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{amsmath} %\usepackage{icomma} %\usepackage{units} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{color} \usepackage[hyphens]{url} \usepackage[breaklinks,pdfpagelabels=false]{hyperref} %\usepackage{lettrine} \usepackage[sort]{natbib} \usepackage{caption} \usepackage[final]{pdfpages}  %\usepackage{fancyhdr} %\usepackage{fncychap}   \newcommand{\degC}{\ensuremath{\,\unit{^\circ C}}} \newcommand{\mail}[1]{\href{mailto:#1}{\nolinkurl{#1}}}   Thanks!


Windows Disk Manager: how to remove the partition created by Ubuntu Installation?

I was trying to install Ubuntu 14.04 (dual boot with windows 7). But the installation failed due to a hard drive problem. Now in Windows disk manager there are three primary partitions. C belongs to Windows 7 and last 2 created during installation process. I want to delete the last 2 partitions. I want to know, if I delete them, will it affect the Windows boot loader?


Is there any formula for the series $1 + \frac12 + \frac13 + \cdots + \frac 1 n = ?$

Is there any formula for this series?     $$1 + \frac12 + \frac13 + \cdots + \frac 1 n .$$


How to find all words in a sentence between two charterers using regex?

I am trying to extract all the works in a sentence that exists between two Set of words using regex  var sentence = "i would like to extract $#word1#$ ,$#word2#$ and $#word3#$" /\$\#(.*?)\#\$/g.exec(sentence);   output is   ["$#word1#$", "word1"]   Expected output is   ['word1','word2','word3']


What do you call a person who doesn't get offended?

I am looking for a word to describe a person who never really gets offended. Can it be described in one word?


Explanation of Notation Regarding Power Set of a Set

In Grimmet and Strizaker's Probability and Random Processes it states section 1.2  The power set of $\Omega$, which is written $\{0,1\}^{\Omega}$ and contains all subsets of $\Omega$....  It goes on to use this in an example as follows:  A die is thrown once. We can take $\Omega$ = $\{1,2,3,4,5,6\}$, $F = \{0,1\}^{\Omega}$  Here $F$ is the set of all subsets of the sample space $\Omega$ which are of interest. I don't understand this notation to specify that set. How does it generate/enumerate all the subsets of interest?


How do games like Halo 3 save in-game footage?

I was just wondering how games (such as Halo 3, like the title says) save in-game replay? Since it gives the ability to look around at almost every possible angle it can't be a simple recording. What is the logic behind this?  is a good example of what Halo 3's footage looks like.


Swap on SSD - will it decrease life sizeably?

I have a samsung 850 evo 120GB ssd. I have installed ubuntu on it , with a 119GB / and 1 GiB Swap(on the ssd) . Is the swap a good idea? Should I remove the swap ? Problem is , I have only 1 GB ram.   EDIT - My question is not about where to put the swap , it's about how putting swap on the ssd affects its lifespan significantly.


iPhone has been updated successfully but why is it still stuck on connect to iTunes?

I only wanted to restore my iPhone 7plus, so I downloaded iOS 10.3.2 and 10.3.1 from a trusted site. I have made backup and all is okay, then when I attempt to restore my iPhone using the downloaded version, at the end of restoration process, my iPhone stuck on connect to iTunes!  I have connected the iPhone to my computer and it shows a message: There's a problem with iPhone which needed to be updated or restored!! I tried to use update with the both iOS versions and it says iPhone has been updated successfully. However, it is still stuck on connect to iTunes?  What's wrong? How do I proceed from here?


After following all instructions and  installing  Find Nearby I attempted to geo code the accounts and the screen comes back saying "Locating accounts...do not close this window" with a large blank box and it appears nothing is happening.   I've tried geocoding from the geocode tab and by clicking on Locate Account but neither works.  I just keep getting the message "Locating Accounts do not close this window" with the blank box.  I tried in IE, chrome and firefox browsers but is the same issue. Can you please tell me what  browser setting needs to be change to make it work in IE or chrome.  Thanks in advance Gaurav


Alternative to The Elements of Statistical Learning: Data Mining, Inference, and Prediction

I am taking a class in statistics which uses The Elements of Statistical Learning: Data Mining, Inference, and Prediction as a textbook. However, I find this book very terse.   Could anyone please recommend a book which has similar topic coverage but contains more examples and detailed explanations and does not omit mathematical derivations.  P.S. I found Introduction to Statistical Learning as a good introductory level book. It was easy to read and provided a good overview of ML methods. However, I would like to see more rigorous explanations and mathematical derivations of the methods.


Why did Obi-Wan's final message from the Jedi Temple not mention Darth Vader?

When Obi-Wan and Yoda return to the Jedi Temple, they discover that many Jedi knights, padawans and younglings were killed. Obi-Wan records a warning message for all Jedi to stay away from the temple. He then goes through the security recordings to discover why some padawans and younglings were killed with a lightsaber blade.                                Here is the script for that scene: 185 INT. CORUSCANT-JEDI TEMPLE-CONTROL CENTER-NIGHT  OBI-WAN enters the Main Control Center with YODA and heads for the hologram area. OBI-WAN: Wait, Master. There is something I must know . . . YODA: If into the security recordings you go, only pain will you find. OBI-WAN: I must know the truth, Master. OBI-WAN moves to a panel and flips some switches. He sees a HOLOGRAM of ANAKIN slaughtering JEDI, including the YOUNG ONES. OBI-WAN and YODA react. OBI-WAN: (continuing) It can't be . . . It can't be . . . As ANAKIN surveys the carnage, a DARK-ROBED SITH LORD enters. ANAKIN turns to DARTH SIDIOUS and kneels before him. ANAKIN: The traitors have been taken care of, Lord Sidious. DARTH SlDIOUS: Good . . . good . . . You have done well, my new apprentice. Do you feel your power growing? ANAKIN: Yes, My Master. DARTH SlDIOUS: Now, Lord Vader, now go and bring peace to the Empire. OBI-WAN watches in horror. Tears well up in his eyes.  As shown in this clip from Rebels, the message did not mention that Anakin had become Darth Vader. This knowledge would have been very important to the exiled Jedi so as not to trust Anakin, yet he does not share it.                                You could say that Obi-Wan learned shortly after he made the warning message that Anakin betrayed the Jedi, and not before. Even so, he could have altered the message. Why did he not warn the surviving Jedi about Darth Vader?


Show that Lebesgue $\sigma$-algebra has the same cardinality as $\mathcal{P}(\Bbb R)$

We recently started with measure theory in my Analysis class and I got stuck trying to solve the following exercise:  Show that Lebesgue $\sigma$-algebra on $\Bbb R$ has the same cardinality as $\mathcal{P}(\Bbb R)$. There is also a tip, suggesting that I should have a look at subsets of $\mathcal{C}$ (standard Cantor set on unit interval).  Using the tip I believe I should look for bijection between $\mathcal{C}$ and $\mathcal{P}(\Bbb R)$. Since both of those sets are uncountable, how can I come up with such bijection? Also to be honest, I do not fully get the argument why is it sufficient to search for bijection between $\mathcal{C}$ and $\mathcal{P}(\Bbb R)$ instead of bijection between Lebesgue $\sigma$-algebra on $\Bbb R$ and $\mathcal{P}(\Bbb R)$.  Any tip\solution would be greatly appreciated. Thanks for the help in advance!


How can I calculate the nutritional value of something homemade?

Does the baking/cooking process change the nutritional value of food? I don't know the science behind that.   I want to calculate more than just calories -fat, carbs, sugars, protein, etc... Is it just as simple (albeit, time consuming) as adding up those values on the ingredients? Or is there more to it than that?


Help in field calculator expression editor hidden

I don´t have in field calculator "selected function help".


How do I disable DVD auto eject in Windows 7?

I just discovered an incredibly annoying "feature" of Windows 7 tonight.  If you click on your optical drive in Explorer, and there is no disc in the drive, Windows 7 is kind enough to open the tray for you.  I'm finding it hard to contain my rage over this idiotic design decision.  WTF?  According to , this behavior was apparently introduced in Vista.  The author posted a workaround, but I don't want a workaround.  I want it to stop doing this.  Like he, I have a case with a door that covers the drive bays.  If it's closed, and I accidentally click on that optical drive, it knocks on that door 10 or 12 times before giving up.  Can this behavior be turned off in Windows 7?


How to export a motion tracked camera to 3ds Max?

I have motion tracked my camera in Blender and have been trying to import it into 3d max. When I export it as an .fbx, the camera, when I import it into Max,  is facing the opposite direction to what it was in the Blender scene, and the animation that was on the camera, is on the geometry. I tried to change the forward axis of the camera in the export settings but this didn't effect the direction of the camera at all when I brought it into Max.   I tried an .obj, but only the geometry imported and it was all squashed together, and the camera didn't import at all.  So then I tried to export as a .dae, but although the camera is facing the right way, the tracking is completely off and very rough and jumpy, whereas it was perfect in Blender. Can anybody help me out here?


I run dual boot. I am facing a slow boot in Ubuntu 18.10. I tried some tricks by searching, but nothing happened.  sudo systemd-analyze time gives following output:  Startup finished in 2.949s (firmware) + 4.010s (loader) + 6.866s (kernel) + 58.435.828s (userspace) = 1min 12.262s   graphical.target reached after 1min 58.418s in userspace     and this is my etc/fstab file  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda7 during installation UUID=602d217d-9099-4933-b1da-430772933e66 /               ext4    errors=remount-ro 0       1 UUID=8EF1-FB7D  /boot/efi   vfat    defaults    0   1 # /dev/disk/by-uuid/0DBD0F870DBD0F87 /mnt/0DBD0F870DBD0F87 auto nosuid,nodev,nofail,x-gvfs-show,ro 0 0 # /dev/disk/by-uuid/5640669640667C9D /mnt/Movies\040and\040Videos auto nosuid,nodev,nofail,x-gvfs-show,ro 0 0 # /dev/disk/by-uuid/368C89D98C899451 /mnt/others auto nosuid,nodev,nofail,x-gvfs-show,ro 0 0   Note : I commented out the last 3 lines  This is systemd-analyze blame command's output:


Why is the dot product of x and e equal to zero with least squares regression?

The Wikipedia entry for  has a section, "Of residuals," that discusses the two equations that constrain the residuals:  $\hat{e_1} + ... + \hat{e_n} = 0$ and  $x_1\hat{e_1} + ... + x_n\hat{e_n} = 0$  The first equation is obvious. I am struggling to understand why the second equation must be true.


Should I use a structure instead of a class to hold string only data in C#?

C# question. Say I have a customers class that has a bunch of props for storing string only data such as name postal data and phone numbers.   I don't use this entity for ORM as I'm only adding it to some type of collection for use during app life cycle. Additionally I don't need to add any entity specific methods to it or persist the data to xml or database, or even to a webservice.  Is it better to make this a struct rather than a class? or no benefit? Also side question, should I make the collection Customers, a list structure?  Be harsh, please critique.. :)   struct customer     {         private string name;          public string Name         {             get { return name; }             set { name = value; }         }      }  struct Customers<List> {     private customer cust;      public customer Cust     {         get { return cust; }         set { cust = value; }     }  }


Show if $a \equiv b \pmod{m}$ then $ac \equiv bc\pmod{mc}$

I'm having some trouble figuring out how to give a direct proof using the definitions of mod m and congruence modulo m, without using any theorem involving mod or congruence.  if $a, b, c$ & $m$ are integers such that $m \geq 2$, $c > 0$ and $a \equiv b \pmod{m}$, then $ac \equiv bc\pmod{mc}$


Is there an antonym for beneficiary that is not simply "giver" or "payer"? I'm looking for a word that roughly mean someone who loses financially in the case of an event.


Regain access to windows after clumsily deleting Ubuntu partition (from inside windows) when getting a grub rescue screen?

Basically I went into disk management in windows, right clicked on the Ubuntu partition and clicked delete. It was lazy and stupid and now I've lost access to my windows and all I get is   error: no such device: 9a952691..... entering rescue mode... Grub rescue>   I've tried various fixes and I can't get them to work.. Help please? Preferably without need for a USB stick or windows disk or anything, can I do it from this screen?


I would like to draw a shaded triangle by defining the 3 vertices and an RGB color at each of those vertices. The interior shaded color would vary linearly from one vertex to the other.  Here is what I have so far but the shading is not what I am needing.  \documentclass[tikz]{standalone}  \usetikzlibrary{calc,intersections}  \begin{document} \begin{tikzpicture}  % Specify the coordinates \coordinate (A1) at (0,0); \coordinate (A2) at (5,2); \coordinate (A3) at (10,-3);  \definecolor{c1}{RGB}{0,129,188} \definecolor{c2}{RGB}{252,177,49} \definecolor{c3}{RGB}{35,34,35}  % Draw the sides of the triangle \draw (A1) -- (A2) -- (A3) -- cycle;  \shade [left color=c1,right color=c2] (A1) -- (A2) -- (A3) -- cycle;  \end{tikzpicture} \end{document}   While this question is similar:   The answers are limited in the following ways   Several of the solutions are artistic approximations and not precise shading between the vertices. The solutions are presented for an equilateral triangle and not a general triangle. The solution method using pgfplots works the best but won't display in ShareLatex and is having difficulty printing so is limited.


Why do I lose reputation offered as bounty on Stack Overflow, if no answers are received as a result of the bounty?

I asked a question few days ago on Stack Overflow, but didn't got the specific answer for considerable amount of time. So to drew more attention to my question i started a bounty of worth 50 reputation on the question.  Now the bounty is in grace period, but I read it in bounty info page that there is no refund of reputation in case no answers are received as a result of bounty. Isn't it unfair to person like me who is having less reputation on Stack Overflow to loose such reputation without any expense? I didn't got the answer I wanted and still I lose my reputation. Why there is no refund of reputation if no answers are received in bounty period?


Why can't I sudo some commands? (e.g., vim)

I have sudo access on my friends server, running centos-6.3, but when I try to run some commands like sudo vim /var/www/html/index.html I get an error sudo: vim: command not found I can, however, run sudo su and then vim /var/www/html/index.html and it works as expected.  echo $PATH and sudo echo $PATH both yield:   /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jared/bin   sudo which vim however yields:  which: no vim in (/sbin:/bin:/usr/sbin:/usr/bin)   I've tried adding   export PATH=$PATH:/usr/local/bin   to the /root/.bashrc which as fixed the issue when using sudo su but not just sudo <command>.  How do I get sudo <command> to work?


$\int\frac{1}{kx}dx$  There are two ways to integrate this...  Method 1 (Separating the coefficient from the variable):  $\frac{1}{k}\int\frac{1}{x}dx$  $\frac{\ln|x|}{k} + c$  Method 2 (knowing that it is an ln() function and multiplying by the reciprocal of the coefficient):  $\int\frac{1}{kx}dx$  $\frac{\ln|kx|}{k}+c$  When both solutions are derived, we get the same answer of $\frac{1}{kx}$.  Which solution is the correct solution?