Is "software" singular or plural? Can "softwares" be used instead?

I was just reading the wikipedia page on the  when I noticed the second sentence seemed somehow wrong to my ears. Uses just seems wrong here.      It originally was designed for audio files, such as MP3, but various software now uses it to play video file lists.   But then I thought about what the correct alternative would be and I came up with:     It originally was designed for audio files, such as MP3, but various software now use it to play video file lists.        It originally was designed for audio files, such as MP3, but various softwares now use it to play video file lists.   Both these sentences again sound wrong to my ears trained by almost 22 years of listening to English now. The only good alternative I could come up was to avoid this issue altogether is this:      It originally was designed for audio files, such as MP3, but various software media managers now use it to play video file lists.   The issue, I think, boils down to whether softwares is a correct plural form for software.


I have SSMS 2012 installed on my laptop, and SQL Server 2012 on my hosting, but when i try to schedule a sql job i didn't find "SQL Server Agent" in the left side list!!?


I'm wondering if there is anyway around the typical limitations on python function names (alphanumerics etc).   Typical function application proceeds like this myFunction(arg1,arg2). But we know there are exceptions, such as functions that use infix notation. As example, consider 3 + 5. Here, the addition function uses infix notation, and also has a rather special name +.   My question is if there is any way (perhaps with aliases) to give a function a name that is a special character such as + or ~. This possibility obviously exists in core python, but is there a way utilize this with defined functions? Thanks


How to INSERT string with single quote ' symbol

I want to do an INSERT into a MySQL database using:  $sql = "INSERT INTO table (title1) VALUES ('$myVar')";   but the problem is $myVar can contain the single quotes (' symbols, e.g. in "idiot's"). Can somebody tell me how to handle any single quotes in the variable as a letter and not as a piece of code?  (I know there are posts about this in the forum already, but I do not really understand their solutions, so sorry for double posting)


Capslock (and other keys) indicator for Ubuntu 18.04

I know there are many solutions to this problem like using indicator-keylock or using lks-indicator.  I have tried them both. However since I am on Ubuntu 18.04, these are not working.  Can someone help me with something new or help me in writing a new indicator which I can use for myself at least?


Find the value of : $\lim_{n\to\infty}[(n+1)\int_{0}^{1}x^{n}\ln(1+x)dx]$.

I am stuck on the following problem:     Find the value of :  $$\lim_{n\to\infty}[(n+1)\int_{0}^{1}x^{n}\ln(1+x)dx].$$   My attempts:  Let $$I_{n}= \lim_{n\to\infty}[(n+1)\int_{0}^{1}x^{n}\ln(1+x)dx]=\lim_{n\to\infty}[\ln(2)-\int_{0}^{1}\frac{x^{n+1}}{1+x}dx]$$ and now i can not progress. Please help. Thanks in advance for your time


Find the sum of the series $\sum_{n=1}^{\infty} \frac{1}{n \cdot (n+1) \cdot (n+2)}$

I am trying to find the sum of the following series  $$\sum_{n=1}^{\infty} \frac{1}{n \cdot (n+1) \cdot (n+2)}$$  I've already figured it out that it converges and, as it looks like a telescoping series, I also tried decomposing it into partial fractions, which would be  $$\frac{1}{2n}-\frac{1}{n+1}+\frac{1}{2n+4}$$ But that doesn't seem to be helping me at all... Any ideas?


On minor sites, would it be possible to implement a 'hide from the front page' feature for edits?

On  there are frequent complaints about waves of edits removing interesting new content from the 'front page', which is used by many to track the site's activity. Would it be possible to implement a checkbox to hide an edit from the 'front page' on minor sites such as Travel.SE?  Obviously it should only be available for high-rep users (10k could be a nice limit) to avoid abuse.  The situation there is different from the discussed  since the site gets 20-30 new questions per day and the edit waves are a lot more noticeable.


Why is it that:  a = [1, 2 ,3] b = [3, 4, 5] t= np.vstack([a,b]) print(t)        # 1D array of 2 elements each of size 3 print(t[0])     # first elem of 1D array print(t[0:])    # first row of 1D array print(t[1:])    # ? u = np.array([[6, 7 ,8], [9, 10, 11]]) print(u)        # 1D array of 2 elements each of size 3 print(u[0])     # first elem of 1D array print(u[0:])    # first row of 1D array print(u[1:])    # ?   prints in last line entire array instead of only first row?  [[1 2 3]  [3 4 5]]   [1 2 3]     [[1 2 3]  [3 4 5]] [[3 4 5]] [[ 6  7  8]  [ 9 10 11]] [6 7 8] [[ 6  7  8]  [ 9 10 11]] [[ 9 10 11]]   Why the t[1:] in each case gives the second elem. of 1D array as it should give the second row of multidim array?


Reprojected MODIS NDVI has range from -32768 to 32767, expected -1 to 1

I'm new to StackExchange and to remote sensing.  I am working with MOD13Q1 250m 16-day MVCs.  My goal is to use NDVI time-series to classify cropping pattern and crop type, then link this data to water issues and rainfall.  I am working with ENVI 5.1, which is also new to me.  I have used the Modis Reprojeciton Tool to reproject and mosaic two MODIS tiles covering Sri Lanka.  The data has been reprojected into WGS84_UTM_44N.  I output the data as a GeoTiff and have successfully loaded this into ENVI.    Here's my question:  the pixels in the reprojected/mosaicked raster for the NDVI band (which is what i will need for the time-series analysis) run from -32768 to 32767, not from -1 to 1.  Is this just some silly misinterpretation on my part, do I need to manipulate the raster somehow with ENVI, or have I distorted the data when reprojecting it?


Twitter & Blog links missing for Stack Overflow under SE 'All Sites' listing

The links to Stack Overflow's 'Twitter' and 'Blog' accounts are missing under the Stack Exchange '' listing. If you look at the 'Super User' or 'Server Fault' (and few others), they do link to 'Twitter' and/or 'Blog', if available. For example:    I am aware of the fact that Stack Overflow blog i.e.  is the same as (or combined with the SE blog)  but not sure if that's the reason for not displaying the SO 'Blog' link. Also, Stack Overflow does have it's own dedicated Twitter a/c: . I am curious to know why SO's 'Twitter' link is not displayed as well. As per the Normal Human's comment:  Stack Overflow does have a Twitter account now, so the question of why it isn't linked makes perfect sense. The list does not say that the account has to be a bot...  Can anyone please explain or point me to any documented evidence on the same.


What's an easy way to show that $GL(n,\mathbb C)$ is connected?

I think I've to show it's path connected, but can't figure out the path functions explicitly. Can anyone give these path maps?


What would happen if the force of gravitation suddenly starts varying as $1$$/$$r^3$ instead of $1/r^2$ ? Would the symmetry of universe now seen be disrupted?


What should I do if the answer to the question is the first result of a Google search?

A user walks into Stack Overflow and . The answer for his question is in the first result of a Google search. Well, it is the fourth result, to be precise, but the first link in the discussion under the first link leads there anyway.  Long story short: the question is very simple and the answer is two clicks away in Google. What should I do? Should I give user the link to answer or should I point him to the Google Search results? What is Stack Overflow, a place to learn something (even if it is googling) or a black box "insert question, receive answer" machine?  (Meta Stack Overflow's policies prevent me from posting a link to Google? WTF.)


How to uninstall compizconfig settings manager from ubuntu 17.04

How do I completely uninstall compizconfig settings manager from ubuntu 17.04? I have used   sudo apt-get remove compizconfig-settings-manager   command but I can still see the animations occurring when I run applications.


I was messing around with some computer files and accidentaly deleted my .minecraft folder. There was alot of important stuff in there, and I don't know how to get it back. Can anyone help?


How should duplicate questions be handled?

What should I do when I see a question that is a duplicate of another one?   Should I answer it? Should I downvote it? Should I comment? Should I edit the question to indicate it's a duplicate? If I can, should I (vote to) close the question? What happens when I vote to close as duplicate? Or: Why did a comment with my name on it just appear? Should I flag it for moderator attention? What about similar or related questions?


I can't connect to an instance of SSMS from other servers SSMS

I can log in to the server and connect to the instance of SSMS in the server but I can't connect to the same instance from other servers using ssms. how can I fix this?


Error with OnClickListener on menu item for animation

I want to set an OnClickListener to an Item from my Menu but the ImageView item isn't found. I need this OnCLickListener for my refresh animation on the reload button.    @Override     public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {         inflater.inflate(R.menu.menu_training, menu);          // Declare ImageView and Animation for rotation animation         ImageView reloadButton = (ImageView) menu.findItem(R.id.menu_reloadbutton).getActionView();          // Set onClick listener for button press action         reloadButton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 Toast.makeText(getActivity(), "Liste aktualisieren gedrückt!", Toast.LENGTH_LONG).show();             }         });     }     This is my xml:    <?xml version="1.0" encoding="utf-8"?> <menu     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto">      <item         android:id="@+id/menu_reloadbutton"         android:icon="@drawable/ic_menu_reloadentry"         android:title="@string/menu_reloadentry"         app:showAsAction="ifRoom"/>  </menu>     This is the error:     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference


ASP.NET Response.Redirect to open a new browser window?

We are using ASP.NET Webforms (not MVC).  My question is this:  Is it possible to open a new browser window using a postback and then some variety of Response.Redirect?


It should be about notion of sets, function, eq. rel. etc.


Differential Geometry: A diffeomorphism is conformal if and ony if $\langle(df)_p(v_1), (df)_p(v_2) \rangle= \lambda (p) ^{2} \langle v_1,v_2 \rangle$

A diﬀeomorphism $f : S_1 \to S_2$ is conformal if and only if there exists a smooth positive-valued function $\lambda : S_1 \to \mathbb{R}$ such that $$\langle(df)_p(v_1),(df)_p(v_2)\rangle_{f(p)} = \lambda(p)^{2}\langle v_1,v_2\rangle_{(p)}$$ for all $p\in S_1$ and all $v_1,v_2 \in T_pS_1$.  How can we show this if and only if statement, this in the textbok of Differential Geometry of Curves and Surfaces. Are we going to use the definition that "a diffeomorphism is conformal if $\text{d}f$ preserves angles"?  Can you help me?


How do I install Ubuntu using squid-deb-proxy-client?

I saw some answers using a preseed file (that were said not to work because of a bug), but I'm interested in using the standard live image and not editing the preseed file there. If squid-deb-proxy is on another machine on the network, can I just install the client in the live system and install as normal, or is there something more to it?


Setting the column gap in a twocolumn (or multicol) document

I have a document that uses twocolumn with scrbook. How can I set the width of the space between the two columns?


Are there any alternatives to the Ubuntu Terminal?

Are there any good alternatives to the Ubuntu Terminal that have special features, such as running several visible tabs at the same time?


I have created a fairly complicated node tree in Animation Nodes. There are various parameters of different types that I set on various different nodes.   To make this easier for others to use, I'd like to create a single node, with all the inputs named, so that there's just one place to set all the input parameters. This would look similar to how you get a node group in the materials editor or compositor. AFAIK, Animation nodes does not have node groups.  Is there a way to do this?


Is it grammatical to omit the subject from "I did my work"?

Possible Duplicate:          Is it correct to start a sentence with did.     Did my work.   instead of      I did my work.   while answering my emails?


WiFi stops working spontaneously on my Lenovo Y50-70

I'm having a problem connecting to the internet..  I installed ubuntu 14.04 on my Lenovo Y50-70, dual boot with the pre-installed Windows 8 OS I had. I used  guide. Everything works perfectly, except for when I connect to WiFi networks on my Ubuntu. It seems to work well for some time (the best I got was a few minutes..), and then disconnects. After it disconnects for the first time, It won't connect again (to any WiFi network) until after I restart the computer.   If, however, I try to connect using an ethernet cable, everything goes down smoothly (no surprise-disconnects). I'd also like to point out that I don't get the same problem on my Windows OS.  I tried following several guides, none worked. Some technical things:   WiFi is enabled. sudo /etc/init.d/networking restart won't work. sudo iwconfig wlan0 power off; sudo iwconfig wlan0 power on won't work. restarting network manager doesn't help.


How to download torrents in ubuntu 13.10

Every time I click on "Get this torrent", I get a window asking to choose a application:     I have qBittorrent installed but I don't know how do I select it from this windows which open when I click on "Choose" from the previous window.


Find the values of $a,b,c,d\in\mathbb{N}$ such that      $$ 34!=295232799cd9604140847618609643ab0000000 $$   My Attempt:  The factorial of $34$ contains a $3$, so the RHS must be divisible by  $3$. Similarly, it must be divisible by $7$, $11$, $13$, $19$ etc.  But I do not understand how can I calculate $a,b,c,d$ in this equation.


non-idiomatic synonym for "sanity check"

Is there a non-idiomatic word or phrase for ?  (meaning a quick test of some system to see whether it is functioning properly)


At and in when we talk about places/location

Which one is correct?:  I was at the cinema yesterday. / I was in the cinema yesterday.  I was at a concert yesterday. / I was in a concert yesterday.  I was at the theatre yesterday. / I was in the theatre yesterday.  Why is sometimes "at" correct in different contexts and "in" in others? Can "at" mean "near" and "in"? If so, how could you guess that the speaker when he uses "at" means "in" or "near"? I know that "in" means inside (correct me if I'm wrong) but it's very confusing when it's "at" but not "in". I don't know if the speakers means inside or near. How is it possible to guess?  Is "at" more preferable in sentences like: "I was....". Is it some kind of a safer way not to make a mistake when you are tempted to use "in"? How do Americans and Britons see this?


Good evening! I'd like to get informed about Graphic drivers for Laptop APUs, such as Intel U-Processors or AMD G/U/H Processors. I need to know for wich I can get a good driver with the OS before I can buy a laptop like that :/ Greetings Dave


According to Hume, causality cannot be found in "things themselves", nor can it be empirically accessible. Instead, it is we, the observers, who attach causal relations among things merely because we constantly see them occurring together, i.e. merely due to Habit.  Kant was convinced by Hume's argument that causality is not an inherent feature of things themselves. However, he deeply refused to accept that it is only a matter of habit, and, in order to "escape" out of the conundrum, was forced to create an entire new (and quite fruitful) field of philosophy. The fact that he had to do that much stretching and make his famous "Copernican Turn" in order to "solve the problem" just goes to show how much Hume's position bothered him.  Now, the question is: why was Kant so bothered about causality being merely a habit? What consequences did Kant see in Hume's statement that forced him to revolutionise philosophy just to refute it? Surely we can still have knowledge and science even if we say that causality is not valid a priori, no?  EDIT: After giving some more thought to this, I start to get the gist of how problematic Hume's position can be for science.   A key step in advancing our knowledge is when an observation is made that contradicts our current theory. The scientist then has two choices:  1) Assume causality holds, and immediately look for causes of this discrepancy. Because of the Principle of Uniformity, one has to assume that this phenomenon has always been present in Nature, but it was simply neglected by our previous theory. The new theory then has to explain how the previous one worked so well, even without taking these phenomena into account. I.e. the previous theory must somehow be "included" in the new theory. This necessarily leads to a broadening of our understanding and of our control over the world.   2) Take a skeptical position about causality, which means these new observations can be merely a consequence of causality breakdown, and we can say nothing more about them. Our previous theories remain correct to the best of what we can possibly say. Whenever they are contradicted by experiments, we have nothing to do but to frustratingly accept that Nature can play tricks on us.  The Humean viewpoint does not even allow to investigate a cause of this purported breakdown in causality: one really can say nothing about it.  Of course, even a partisan of Hume's side can take position (1) "for practical purposes", but by doing so he is admitting that one needs to assume causality a priori in order to have knowledge of the world.  In conclusion, in order to at least have the possibility of knowledge, one has to take the standpoint that the world is necessarily logical.


A directed complete graph with equal number of incoming and outgoing edges

In a complete graph with $n$ vertices, every vertex has $n-1$ edges. Assuming $n$ is odd, the number of edges from each vertex is even. If we now give every edge an orientation (making the graph a ), is it always possible to arrange the orientations such that every vertex has the same number of incoming and outgoing edges (apparently called a )?  It is easy to give edges an orientation where the above is not true. E.g. orient all edges to a given vertex as incoming edges:    But it is also relatively easy to orient the edges so the above is true, at least for $n=3, 5, 7, 9$, which is what I've tried so far. An example for $n=5$ is given below:    But is it always possible for any odd $n$?


I wonder what is the right approach for getting tables from dataset.  should i return the data within my procedure with select statement?  this is how i do it ,it works but i am not sure this is the right way.  SELECT SCOPE_IDENTITY()  and this is how i access my table:  ds.Tables[0].Rows[0][0]).ToString()


Can someone help me find freezing cause?

I have a ASUS laptop: Model: X553M  Processor: Intel Pentium Quad-Core N3540 with Intel HD graphics RAM: 4GB 1600MHz OS: Ubuntu 15.10 AMD64 Since the beginning of this week it started freezing after period of times. I had installed Ubuntu 14.04.3, it updated to 14.04.4 and installed latest Enablement Stack on it and now I installed 15.10 and it still freezing. The freeze consist in everything stops working, cannot turn to console mode (ALT + F keys), ALT + SYSRQ + REISUB no response, power led on, only force stop works.  I have installed Intel graphics installed to be sure I have latest Intel graphic driver, HDD has no bad sectors, Memtest86 passed, cannot find any crash logs.  My father uses this laptop and he uses it only for web browsing, he said it randomly froze when he was online. For me I gave it a test and what I've done is I opened Firefox with 5 tabs all with youtube videos running simultaneous and it froze 2 times in an hour, until this test OS install + updates + software installs/replacements I had no issue with it (let's say a total of 2 hours), it worked flawlessly.  Can someone help me find the cause of it so I can remove it?     EDIT: This is not a duplicate of the question: , it is other way around and this question has been answered and the answer was marked accordingly.


Explain why in a ring the additive neutral can not have a multiplicative inverse.


Proof of the following inequality $ \frac{x - y}{\log x - \log y} > \sqrt{xy} $, $x>y$.

I have seen the following inequality  $$ \frac{x - y}{\log x - \log y} > \sqrt{xy} \ , \quad \forall x>y $$ be stated as a near "obvious" fact in another , on the site.  The inequality is very cute, but so far I have not been able to prove it.  It reminds me of the Lipschitz inequality, but has some minor differences. Also Jensens inequality comes to mind. Is there something obvious I am missing, or is this ineqality not as easy to prove as it looks?


Google timeline telling me I was somewhere that I wasn't

It was a slow day so I just started flicking through my timeline on Google maps to see where I have been ever since I created my Google account. I only have the account on my phone but sometimes sign in on my laptop, these are the only two devices that use my account and I am the only one to have ever accessed my account.  However, when looking at my map I realized that Google said I had been somewhere that I honestly have never been before. It's more than 145 miles away from where I live and I've never been anywhere near this place in all my life. On top of that it also said that I took 16 hours to cross the street in the industrial estate that it placed me in.  I looked in my diary and I'm 100% confident that I wouldn't have left the street where I lived that day. What I don't understand is how this happened?


Using squeeze thorem find $ \lim_{n \to \infty}{\frac{1 \cdot 3 \cdot 5 \cdot ...\cdot (2n-1)}{2\cdot 4 \cdot 6 \cdot ...\cdot 2n}}$

It is already solved here at Math.stackexchange, but we haven't learned Stirling's approximation (at our school), so can it be solved using only squeeze theorem? $$\lim_{n \to \infty}{\frac{1 \cdot 3 \cdot 5 \cdot ...\cdot (2n-1)}{2\cdot 4 \cdot 6 \cdot ...\cdot 2n}}$$  My attempt,  Let $y_n = \frac{1 \cdot 3 \cdot 5 \cdot ...\cdot (2n-1)}{2\cdot 4 \cdot 6 \cdot ...\cdot 2n}$, we see that $ \frac{1 \cdot 3 \cdot 5 \cdot ...\cdot (2n-1)}{2\cdot 4 \cdot 6\cdot ...\cdot 2n} > \frac{1 \cdot 2 \cdot 2 \cdot ... \cdot 2}{2\cdot 4 \cdot 6 \cdot ...\cdot 2n} = \frac{1}{1 \cdot 2 \cdots .. \cdot (n-1)\cdot2n} = x_n$  $$\lim_{n \to \infty}{x_n} = 0 $$ Now I just need to find a sequnce $z_n>y_n$, so, $\lim_{n \to \infty} z_n = 0$.


In the final battle, Scarlet Witch pinned Thanos upon which he told Corvus Glaive to...      "Rain Fire!"   ... which seemed to open fire like Gatling guns and nearly injured all parties fighting. However, it quickly shifts and started firing towards the clouds where Captain Marvel was emerging from.    Why did the Sanctuary II focus its attack on Captain Marvel?


How can I find out if I need a visa to visit a certain country?

I'm a national of country XYZ who wants to visit the state ABC for the purpose of tourism. How can I find out if I will need a visa?     NB: this is intended as a canonical/wiki question


Forward declaration of templated function pointer (C++)

I have a number of function pointers declared in a header file where the functions the pointers point to are assigned in a cpp file (depending on endianness).  For the non-template functions I just declare them as extern and everything works fine, like so:  parse.h  extern int32(*parseWord)(byte**);   parse.cpp  int32(*parseWord)(byte**) = IS_BIG_ENDIAN ? &pWordBE : &pWordLE;   For templated function pointers I assumed I could do the same:  parse.h  template<typename T> extern T(*parse)(byte**);   parse.cpp  template<typename T> T (*parse)(byte**) = IS_BIG_ENDIAN ? &pBE<T> : &pLE<T>;   But the above results in undefined references.  Is there a way of doing this kind of forward declaration?


I'm preparing to take a JavaScript test, and came upon this post:    The gist is that this:  <script type="text/javascript"> for (var i=0;i<document.images.length;i++)     document.images[i].src="blank.gif" </script>   is not as efficient as this:  <script type="text/javascript"> var theimages=document.images for (var i=0;i<theimages.length;i++)     theimages[i].src="blank.gif" </script>   because the object is 'cached' in a user defined variable.  Is this still the situation with modern JavaScript engines?


I want to randomize several procedural textures in the same material. For example, have 3 different Noise textures with a random number as their Scale. I can use the Random output of the Object Info node, but this gives me the same random number each time.  Is there a way to get more random numbers?


How can I find unanswered questions with zero answers in some tag?

I want to find questions within the C++ tag but with zero answers. How can I do that?


How to do Email validation using Regular expression in Typescript

I have an requirement to validate email and date fields from an Excel file using typescript Angular app.   And I am trying to validate using regular expression but the result returns always false for a correct email address.  Can anyone help me to validate the email and dates?  Below is the code I have written  Component:  import {  Component } from '@angular/core'; import * as FileSaver from 'file-saver'; import * as XLSX from 'xlsx'; import {UploadService} from '../services//upload.service';   import { FileUploader ,FileItem,ParsedResponseHeaders,FileLikeObject} from 'ng2-file-upload';  import { SpotCheck } from '../models/SpotCheckFields';    @Component ({       selector: 'my-app',       templateUrl:'./excelUpload.html',     providers:[UploadService] })    export class ExcelUploadComponent  {       public SpotChecklist: SpotCheck[];     public project_master:any[];      uploader:FileUploader;      constructor(private uploadservice: UploadService ){         this.SpotChecklist=[];         this.project_master=[];     }     ngOnInit(): void {         this.uploader = new FileUploader({             url: 'http://localhost:5000/upload'             // headers: [{name:'Accept', value:'application/json'}],             // autoUpload: true,         });         this.uploader.onErrorItem = (item, response, status, headers) => this.onErrorItem(item, response, status, headers);         this.uploader.onSuccessItem = (item, response, status, headers) => this.onSuccessItem(item, response, status, headers);          // retrieve projectmaster details         this.getProjectMaster("","SELECT PROJECT MASTER");     }      onSuccessItem(item: FileItem, response: string, status: number, headers: ParsedResponseHeaders): any {         //console.log("onSuccessItem " + status, response, item);           this.SpotChecklist = JSON.parse(response); //success server response          var data = this.validateRow(this.SpotChecklist);          console.log(data);       }      onErrorItem(item: FileItem, response: string, status: number, headers: ParsedResponseHeaders): any {         let error = JSON.parse(response); //error server response     }      validateRow(lst:any[]) : SpotCheck[]     {         var i:number;         for(i=0;i<lst.length ;i++)         {             var validation_message:string="";             var blnErrOccured:boolean=false;              if(!this.isEmail(lst[i].RESPONSIBLE_PERSON_EMAIL_ID))             {                 validation_message=validation_message+ "," +"RESPONSIBLE_PERSON_EMAIL_ID is invalid"                 blnErrOccured=true;             }              lst[i].VALIDATION_RESULT=validation_message;         }         return lst;     }      isDate(date:string) {         // return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date));     }      isEmail(search:string):boolean     {         var  serchfind:boolean;          regexp = new RegExp('/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/');          serchfind = regexp.test(search);          console.log(serchfind)         return serchfind     }      getProjectMaster(project_code:string,Flag:string):any     {           this.uploadservice.getProjectMaster(project_code,Flag).subscribe(             response=> {                 this.project_master= response[0];                 return response;             },             error=> {                 console.log("ERROR: ",error);                 console.log(error.json()); //gives the object object             },             () => {                 console.log("Completed");             }         );     } }


Why didn't the school teachers just BUY mandrakes?

I've just been re-reading the Harry Potter books for the hundredth time, and I'm finishing up The Chamber of Secrets, but I've found something weird.   Everyone who is petrified (and remember that they are petrified for months), just needs mandrake juice to cure them. Conveniently for the Hogwarts staff, Professor Sprout is growing some mandrakes with the 2nd years in old greenhouse 3.  Sure, it helps the narrative to have a long awaited mandrake juice so that they can't just ask Hermione, but it seems like they should have just gone to Diagon Alley and bought some mandrakes/mandrake juice. Otherwise, they could just send the students to St. Mungo's Hospital.   Is there ANY possible in-universe explanation for why they didn't just buy some? I mean, maybe they are rare, but Sprout bought enough babies for a full class, so they can't be that rare.  It seems like just a plot hole, but maybe Rowling mentioned it in some interview?  Note: I recognize there is one very similar question on the site already, but it was 5 years ago and not satisfactorily asked, or answered.


Using iPhone while charging and when charged

Is it OK to use an iPhone 4 that is fully charged while keeping it plugged to wall outlet?   I am worried about stressing battery too much since it is charging and discharging at the same time.  Any issues here?


Vertical spacing for two consecutive figure environments

I think I'm not going to solve my problem with the Floats and positioning of figures. I have 4 diagramms and I need to place them on two pages and at the end of the second page the caption for all 4 figures. So two figures on each page. For the the diagramms on the second page I need to place the upper image near to the top because I need some place for the caption. On the page before I need both figures to be centered in the middle with some spacing between them. So this is my code:   \begin{figure}[c] \centering \includegraphics[width=\linewidth]{45.pdf} \end{figure} \begin{figure}[c] \centering \includegraphics[width=\linewidth]{46.pdf} \end{figure} \makeatletter \setlength{\@fptop}{0pt} \makeatother \begin{figure}[t!] \centering \includegraphics[width=\linewidth]{47.pdf} \captionsetup[figure]{font=small,skip=0pt} \includegraphics[width=\linewidth]{48.pdf} \caption{Konzentrationsprofile von Al, Re, Ta und W entlang der <110>-Richtung in der UC. } \end{figure}   The problem for the secong page was solved, but the figures on the first page were also forced to the top which I don't want!


Python single line if-else via dictionary

For example, we have an if-else statement which could be reduced to a single line:  condition = True # condition = False  if condition:     foo = 'Whatever' else:     foo = 'Nevermind'   The default reduce-technique is to do that:  foo = 'Whatever' if condition else 'Nevermind'   But also we can do it this way:  foo = {True:'Whatever', False:'Nevermind'}[condition]   Is that good/bad? Why?Is there any other way to shrink if-else statement?IMHO, in the dict-case readability is pretty cool since we can see all possible condition values in a well-structured form.


Bug: \u200b and \u200c characters added to code snippet in comment

See  in the Stack Exchange sandbox. I quote it here:     Have a look at this JS code: document.body.removeChild(document.body.appendChild(document.createElement('style'))); If you manually type it into your browser console it will work, but copying and pasting from my comment will throw an error because Stack Exchange randomly adds \u200b and \u200c characters for no apparent reason. You can even manually type it in a comment on Stack Exchange, then copy and paste again, and it still won't work.


How can I solve Exception in thread “main” java.lang.NullPointerException error

the exception is:   Exception in thread “main” java.lang.NullPointerException      at javax.swing.ImageIcon.<init>(Unknown Source),  at PlayGame.setCards(PlayGame.java:42)  at PlayGame.startGame(PlayGame.java:190)  at forms.PlayGame.<init>(PlayGame.java:36)   this is my code  public class PlayGame extends javax.swing.JFrame {      private LogicGame logic = new LogicGame();     private ImageIcon img1;     private ImageIcon img2;       // Creates new form PlayGame     public PlayGame() {         initComponents();         startGame();     }      private void setCards() {         int[] numbers = logica.getCardNumbers();          Carta1.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[0] + ".png")));         Carta2.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[1] + ".png")));         Carta3.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[2] + ".png")));         Carta4.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[3] + ".png")));         Carta5.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[4] + ".png")));         Carta6.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[5] + ".png")));         Carta7.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[6] + ".png")));         Carta8.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[7] + ".png")));         Carta9.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[8] + ".png")));         Carta10.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[9] + ".png")));         Carta11.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[10] + ".png")));         Carta12.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[11] + ".png")));         Carta13.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[12] + ".png")));         Carta14.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[13] + ".png")));         Carta15.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[14] + ".png")));         Carta16.setDisabledIcon(new ImageIcon(getClass().getResource("../img/c" + numbers[15] + ".png")));     }      public void startGame() {         if (JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(null, "Pulse si, para jugar!. ", "Empezar Juego", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE)) {             setCards();             hour.setVisible(false);             iniciarTiempo();         } else {             System.exit(0);         }     } }


I have a table in a Postgres DB where col1 and col2 are foreign keys referring to the same column. I want only unique combinations of (col1, col2), i.e. if (1,2) is entered then (2,1) should be rejected. How can I achieve that?   My table definition:  CREATE TABLE mytable (     id serial primary key,     col1 int NOT NULL,     col2 int NOT NULL,     unique (col1, col2) )


create a link to open another pdf, not in the current directory

How can I make a hyperlink to a pdf file located somwhere out of the current directory of .tex file?  For example, my .tex file is located in C:\myWritings and the pdf file to be linked in the tex is located in C:\PDFs.


What's the difference between principal component analysis and multidimensional scaling?

How are PCA and classical MDS different? How about MDS versus nonmetric MDS? Is there a time when you would prefer one over the other? How do the interpretations differ?


I need to sort a file based on names in the first column. Some of the names end in a question mark. sort persistently ignores this question mark during sorting:  sort -k 1 -t , <<TEST a?,1 a,2 b?,2 b,1 TEST     a?,1 a,2 b,1 b?,2   I don’t really care about how sort orders the question mark, if it only did it consistently. But it doesn’t, it seems to consider the second column instead, even if I tell sort explicitly only to use the first column as key.  Version info:  $ sort --version sort (GNU coreutils) 8.22 Packaged by Gentoo (8.22 (p1.0))   Incidentally, on OS X 10.9 (where sort identifies itself as “sort (GNU coreutils) 5.93”), the above works as expected for me.


biblatex and autonum don't work together

biblatex and autonum don't seem to work together in the newest version. Consider the following MWE:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[backend=biber]{biblatex} \usepackage{autonum}  \begin{document}  \end{document}   I get the following error messages:  0 File ended while scanning use of \ettl@for@do1 0 pdflatex: \pdfmatch: repetition-operator operand invalid pdfTeX warning: pdflatex: \pdfmatch: repetition-operator operand invalid)Runaway argument?{{\blx@bibdata@i {\blx@tempb }}\blx@bibfiles \eappto \blx@tempa {\blx@xml@comme   After commenting out either biblatex or autonum, the errors disappear.


How can I update to Android 4.4 manually?

I have Samsung Galaxy Tab 2 10.1' with Android version 4.1.2. Is it possible to manually to update to Android 4.4, and if yes how?


Why can some holodeck matter leave the holodeck, while other holodeck matter (notably people) cannot?

Related to   I was watching  last night and I noticed that when Data realizes that something has gone terribly wrong, he leaves the holodeck with the holodeck generated paper with a drawing of the Enterprise. The paper does not disintegrate as he leaves the holodeck. If this can leave the holodeck, why can't Professor Moriarity? Indeed, the original ending to this episode according to Memory Alpha:     The original ending filmed was cut from the episode. (Star Trek: The Next Generation Companion 2nd ed., pp. 68-69) Hurley recalled, "In that ending, Picard knew how to defeat Moriarty. He tricked him. He knew all along that Moriarty could leave the holodeck whenever he wanted to, and he knew because when Data came out and showed him a drawing of the Enterprise, if that piece of paper could leave the holodeck, that means that the fail-safe had broken down. In turn, this means that the matter-energy converter which creates the holodeck, now allowed the matter to leave the holodeck, which was, up to that point, impossible. When he knew that paper had left the holodeck, he knew that Moriarty could as well, so he lied to him."   This is interesting because the whole premise of this episode and Ship in a Bottle is that Moriarity can't leave the holodeck. Moreover, the Doctor from Voyager always needs some kind of  to go places.  Given this and the water/other matter that leaves the holodeck in the , why can some matter exist outside the holodeck while other matter cannot?   Is it tied somehow to the replicator - i.e. replicating a piece of paper into real matter is trivial, but replicating a human being or anything more sophisticated would be non-trivial?


How to modify Drupal user's cookie so the cookie is not available anymore after a predefined time or when the user close his web browser or close all of the websites pages open in tabs ?  After some online searches i found that by setting the cookie lifetime to 0 should create temporary cookies that would be deleted once the browser is closed:  I first tried by modifing some ini_set() values in the settings.php :  ini_set('session.cookie_lifetime',  0); ini_set('session.gc_maxlifetime',   0);   I created a php.ini file located at the drupal site root, containing:  session.cookie_lifetime = 0;   But it does not work on my test site. Any ideas?


apt tells me I have "held broken packages": please help me reinstall skype

Ubuntu version: up to date 12.04   I recently uninstalled Skype so that I could reinstall the most recent version; I was getting the "packages held back" message whenever I updated the software on my system and stupidly thought this was a good idea.   The result is that now I cannot get skype reinstalled because of broken packages/dependencies. I have tried installing the version I had installed (4.1.0.20.0-0ubuntu0.12.04.2) without success:  # apt-get install skype=4.1.0.20.0-0ubuntu0.12.04.2 The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages.   # apt-get install skype-bin=4.1.0.20.0-0ubuntu0.12.04.2 The following packages have unmet dependencies: skype-bin:i386 : Depends: libqtwebkit4:i386 (>= 2.2~2011week36) but it is not installable E: Unable to correct problems, you have held broken packages.   The strange thing is that I have libqtwebkit4 version 2.2.1 installed:  # dpkg -s libqtwebkit4 (...) Status: install ok installed (...) Version: 2.2.1-1ubuntu4   How can I fix this situation? As far as I can tell I have a sufficiently recent libqtwebkit4 package installed yet apt won't let me install skype-bin.  Running aptitude search skype, I get:  pi  skype  p   skype:i386  v   skype-bin   pB  skype-bin:i386


Can I make my sprite design very similar to Pokémon's sprite design?

I'm making a 2d RPG and I'm having trouble designing a sprite, so I downloaded an image of Pokémon Leaf Green's player sprite and copied how it looked. I didn't copy it completely, only how it looks. Here's the image:    Can I get sued for this? the gameplay and mechanics are far from Pokémon's mechanics, the only problem is the sprite of the characters. Can I get into trouble because the character sprite looks too much like Pokémon's character?


What do you call someone who puts a hit out on someone?

Is there a specific word for someone who hires a hitman or assassin?


how to set absolute tabular cell/row height and width

I am designing a tabular table (row/cell) containing 40 rows, 10 cells per row.  A requirement is that the rows be 7mm in height and cells 17mm in width.  The width I seem to have found.  I have not found a method (so far) to set an absolute/fixed row height.  Does such a mechanism exist, and if so, a pointer to the documentation would be most appreciated.   rob


Bounty uses association bonus or gained rep first?

Read here first:   According to LessPop_MoreFizz, I would need to earn 10 rep on the site in order to answer the protected question.  So I got 13 rep and went back to the protected question. Guess what? I still can't answer it!  A possible issue could be the fact that I started a bounty in during my rep hunting.  The thing I'm confused about is whether a bounty takes your association bonus first, or your gained rep first?


Is there a way to enable commenting adobe PDF?

I have a PDF file, and I'd like to comment in adobe style. Is there a way to enable that somehow, or are there any alternatives?


Developer Salesforce docs doesn't seem to be indexed by Google/Bing?

Did anyone else noticed that it's almost impossible to search anything on developer docs through google recently.  Previously search like this: "salesforce schema get describe" would return  withing first few results, now however it's nowhere to be seen.


Shows "unable to locate package unzip" error

I have installed Ubuntu 12.04 server , shows    E:unable to locate the package unzip   the above error is also shown, if I try to install packages also. Can any one help me out to get out from this error.


Nested aura:iteration to dynamically get fields

I am trying to dynamically create a data table with two arrays (SObject array and a String array which has field API name).  The two arrays are Contact[] and String[], where String[] consists of ["Id", "Name"].  What I've tried dot notation and square bracket notation but neither worked.  <!-- row --> <aura:iteration item="{!v.contacts} var="contact">     <!-- column -->     <aura:iteration item="{!v.fieldNames} var="fieldName">         {!contact.fieldName}          {!contact[fieldName]}     </aura:iteration> </aura:iteration>   Not quite sure what is the correct approach to do this.


Decomposition of holomorphic function as a sum of entire functions

Let's say I have a complex function like $$f(z)=z+e^{\frac{1}{z-1}}+\sin\left(\frac{1}{z-2}\right)$$ which is holomorphic in $\mathbb{C}\setminus \left \{ 1,2 \right \}$ Then there exist entire functions $$f_{0}(z)=z$$ $$f_{1}(z)=e^{z}$$ $$f_{2}(z)=\sin(z)$$ Such that, the equality $$f(z)=f_{0}(z)+f_{1}\left(\frac{1}{z-1}\right)+f_{2}\left(\frac{1}{z-2}\right)$$ holds for all points except for $z=1$ and $z=2$ which are essential singularities. My question is, can this be extended in general? Precisely put, let's say I have a holomorphic function $f(z)$ except for a finite number of essential singularity points $a_{1},\ldots,a_{n}$ in the complex plane. Is it true in general, that there exist $n+1$ entire functions $f_{0}(z),\ldots,f_{n}(z)$ such that: $$f_{i}(z) \text{ is holomorphic in }\mathbb{C}\setminus \left \{ a_{i} \right \} \text{ for }i=1,\ldots,n $$ $$f(z)=f_{0}(z)+f_{1}\left(\frac{1}{z-a_{1}}\right)+\ldots+f_{n}\left(\frac{1}{z-a_{n}}\right)$$


What's the recommended syntax for an image with a link?

What's the recommended syntax for an image with a hyperlink? I tried doing it with the markdown toolbar buttons and the image and link buttons conflict with each other, so I had to resort to HTML. For example, to do this:  These work properly: ![alt text][1] [1]: https://www.gravatar.com/avatar/dd5a7ef1476fb01998a215b1642dfd07         [][2] [2]: https://meta.stackoverflow.com/users/44330/jason-s  This does not: ![alt text][1]  (single quotes not allowed?) Is there a way to do the same thing in Markdown without having to resort to HTML?


Is an HP Proliant 350e Gen8 server appropriate for Primevera and Sage applications?

I want to buy a server to accommodate both the Primevera and Sage applications? Would a HP Proliant 350e Gen8 do? Are there any concerns about this platform?


I would like to make a dual and triple equation by using the following notation:    Thank you


How do I disable overlay scrollbars on Ubuntu 17.04?

I really hate overlay scrollbars. Solutions like   gsettings set org.gnome.desktop.interface ubuntu-overlay-scrollbars false   or   gsettings set com.canonical.desktop.interface scrollbar-mode normal   aren’t working anymore, and uninstalling overlay-scrollbar and overlay-scrollbar-gtk2 (and blocking such packages in /etc/apt/preferences from future automatic reinstalling as dependencies) also didn’t change a thing.  How can we disable this annoying "feature" on Ubuntu 17.04? thanks!


Redirected site to www and submitted www URLs but Search Console only shows 5 pages indexed

Recently I submitted the www version of my site to Google Search Console and 301 redirected all URLs from non-www to www. I submitted the URLs in my sitemap.xml.  The problem is that I've submitted 62 URLs and only 5 are indexed! The non-www version shows 89 indexed and the sitemap shows 5 indexed. The www version also shows 5 indexed.  I checked through Google search using ‘site:www.example.com’ and it shows 8 pages. For non-www it is 89.  Is there a problem?


I tried $u$-substiution with $u = x^2$ but that leaves me with $x$ values and not a simpler function to integrate.Is there a better way to integrate?


I read some information about Java layout managers and the recommendation was . My problem is, that I didn't found any tutorial or easy step-by-step documentation.  So I want to know how this all works, but I don't know how.  Hope, it's not to trivial.  Thanks in advance, guerda


Books on graph/network theory with linear algebra focus

I am interested on getting feed back on books that are graph theory with focusing on linear algebra(have taken several courses on Linear Algebra)   I have gone through    Introductory Graph Theory by Gary Chartrand Graph Theory and Complex Networks: An Introduction by Maarten van Steen Graphs and Matrices by Ravindra B. Bapat   This is for personal learning to help me understand graph/network theory and how it interacts with geography. I have applications that do all the work around network theory but I want to actually learn it.   thanks for any feedback


Source shell script automatically in terminal

How can I automatically source a particular shell script when I open a terminal window by right clicking somewhere and choosing "open in terminal"?  For example, every time I open a terminal I need to run the following command line:  source myscript   How can I make it so that I don't have to type this automatically?  My script is written in tsch:  #!/bin/tcsh setenv DISPLAY 127.0.0.1:10.0 cd /ast/dcm/data   I'm using CentOS 7.


Extension of Fundamental Theorem of Algebra

The problem states:  Let $p(x)$ be a polynomial in $x$ of degree $n$ with $n\ge2$. Recall that, according to the Fundamental Theorem of Algebra, $p(x)$ has $n$ number of roots in the complex number set. Suppose all roots of $p(x)$ are real and distinct. Prove that the roots of $p'(x)$ are all real.   I know and kind of understand the proof of the Fundamental Theorem of Algebra, but I do not know how to extend it to  $p'(x)$. Any thoughts?  Thanks!


There exists a continuous function $f$ such that $f(\Bbb Q) \subseteq \Bbb R\setminus\Bbb Q$ and $f(\Bbb R\setminus\Bbb Q)\subseteq\Bbb Q$

True or false: There exists a continuous function  $f: \Bbb R \to \Bbb R$ such that $f(\Bbb Q) \subseteq {\Bbb R}\setminus {\Bbb Q}$ and $f({\Bbb R}\setminus {\Bbb Q}) \subseteq {\Bbb Q}$.  My attempt: I was trying to use the sequential definition of continuity. Consider $a \in \Bbb R$ then we have a seqn ${x_n}$ of rational numbers converging to $a$ and we have a seqn ${y_n}$ of irrational numbers converging to $a$. Then what will be $f(a)$?  I was thinking that in one way $f(a) \in \Bbb Q$ and on the other way $ f(a) \in {\Bbb R}\setminus {\Bbb Q}$ . But I am wrong $\{f(x_n)\} \subseteq {\Bbb R}\setminus {\Bbb Q}$ and $\{f(y_n)\} \subseteq {\Bbb Q}$ still $f(a)$ can be anywhere.   Is there any way to fix my attempt or any other possible idea?


Array of Integers not changing values after parsing integer value from String

I am making a program where I am inputting the number of cows that I am going to input on the first line. Then I am inputting the cow name, a space, and then a     number (ie:Bessie 4) on each successive line, where I am using a delimiter to parse the string into     the name and the number, then putting it into an array. After that, if the     first cow name is Bessie, then I am adding the associated number value to     the first position of another array, called amountOfMilk, thereby changing     the array value. But when I input Bessie 4, Bessie 5, and Bessie 6 on three    different lines the amountOfMilk array is [0,0,0,0,0,0,0] when it should be    [15,0,0,0,0,0,0].            int[] amountOfMilk = new int[7];         Scanner s = new Scanner(System.in);         int numberOfLogInputs = s.nextInt();         s.nextLine();         for(int i = 0; i < numberOfLogInputs; i++) {            String cowName = s.nextLine();            String delimiter = "[ ]";            String[] tokens = cowName.split(delimiter);            if(tokens[0] == "Bessie") {                amountOfMilk[0] += Integer.parseInt(tokens[1]);            }         }         System.out.println(Arrays.toString(amountOfMilk));


I was uninstalling Ubuntu when I restarted my computer and it booted to grub terminal type. The problem is my keyboard is on (the lights work), but the keys are not working. I tried entering BIOS, no luck. I don’t know what to do. I have tried everything. I can't type anything and have tried all my USB ports.  If I unplug my mouse it shows the options for the BIOS and stuff, but when I press the key it does nothing.


My PHP form is designed to insert data to a MySQL database. It's working great, except when there is an apostrophe in my input. Then, I get this error:   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fdfdf','fdfdf')' at line 2  This is my first project using PHP. Can someone please provide sample code for how to escape the apostrophe?   <html> <body> <form action="http://thefaithperspective.com/verses">     <input type="submit" value="Add Another" /> </form> </body> </html>   <?php $servername = "..."; $username = "..."; $password = "..."; $dbname = "...";  $verse= $_POST['verse']; $book= $_POST['book']; $reference = $_POST['reference'];   // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $sql = "INSERT INTO myverses (versetext, book, reference) VALUES ('$verse','$book','$reference')"; if ($conn->query($sql) === TRUE) {     echo "New record created successfully"; } else {     echo "Error: " . $sql . "<br>" . $conn->error; }  $conn->close(); ?>


Why are images shown next to each comment?

In my opinion it would look cleaner if the comment images/buttons were only shown when hovering over the comments (on desktop). Why are they always shown?


How to prove this inequality in Banach space?

In a normed space $(E,\lVert \cdot\rVert)$ space we have the following inequality: $$\forall\, x,y\in E,\quad\|x\|^{2}-\|y\|^{2}\leq \lVert x-y\rVert\cdot \|x+y\|.$$ How can we prove it?


Show that if $s_n$ and $t_n$ are two sequences in $\mathbb{R}$, then $\lim \sup (s_n + t_n) \leq \lim \sup (s_n) + \lim \sup (t_n)$

I'm using the definition where $ \lim \sup s_n = \lim ( \sup \{s_k : k \geq n \} )$.   I know  $\lim \sup (s_n + t_n) \leq \lim \sup (s_n) + \lim \sup (t_n)$ makes intuitive sense because I'm guessing the sequence $s_n + t_n$ is much larger than than the individual sequences $s_n$ and $t_n$. And so the least upper bound would be larger.   However I'm stuck on proving this. I would know how to do this question if I could make the assumption that $s_n, t_n$ were bounded sequences, but I cannot make this assumption.


From Manila to Canada via France and Italy

I intend to apply for a tourist visa to Canada and a tourist Schengen visa. My itinerary will be from Manila to Paris, France to Rome, Italy then Canada where I plan to visit/stay for 2-3 months with an invitation letter from my daughter who is a permanent card holder. I understand I have to buy a return  ticket from Canada to Manila where I reside. Is this a feasible itinerary?  Will this affect my chance of getting a Schengen or even a visa to Canada as this is my first time to apply for a tourist visa to these countries although I have been to several countries in Asia like Japan, Korea, Hongkong, Macau, Singapore, Thailand, Malaysia, Indonesia, Vietnam, Cambodia to name a few. Will the consul in the France Embassy here in Manila look for a return flight from a member country to Manila?


select objects in array using date comparsion

I'm trying to write my own query/filter function for my AngularJs app.  I have a JSON with a lot of posts like this  [ {     "date": "20100101",     "keyword": "blah",     "header": "My header",     "text": "aaa, bb, c, dd. ee f g h." }, {     "date": "20110101",     "keyword": "blah-hah",     "header": "Your header",     "text": "foo and bar and then some" }   ]  In my app I have a small form where the user enters "date from", "date to", and then optionally a keyword.      <input type="text" class="form-control" ng-model="dateFrom">    <input type="text" class="form-control" ng-model="dateTo">    <input type="text" class="form-control" ng-model="keyword">   The user add his/her criteria and push a button, my fabolous function loops through the JSON and all posts with a date between the criterias (if entered), and a matching keyword (if entered), will have their "text" property added to a string, bound to textarea for show.  To me, it looks like a simple loop where I check the given criterias, but how do I handle the date comparsion in a sane way? using Date.Parse()? Or are there any Angular helpers?  Regards


If $\langle T(x), x \rangle = 0$ for all $x$, must $T$ must be zero?

Suppose that $T : W \rightarrow W$ is a linear operator on a finite dimensional complex inner product space. Suppose that $\langle T(x), x \rangle = 0$ for all $x \in W$. Must $T$ must be zero?  I can only prove all eigenvalues of $T$ are zero.


How to plot greyscale histogram of an image

Is it possible to plot color and greyscale histogram of a given image directly in LaTeX?


How to make ubuntu as pendrive bootable after downloading it from the website? and how much capacity pendrive will be ideal?


How can I recover my MS Office 2011 product key?

I want to use Migration Assistant to transfer my data from a Macbook Pro to a Macbook Air. I'm told that I need my product key for MS Office 2011.   Is there a way to find my product key on my mac?


I'm not a professional photographer and I have an NX3000. I found an analogic N50 that is no longer working, but is there any way i can still use the lens, an AF Nikkor 35-80 Mm F4, on my NX?   Thanks :)


MsTest - executing method before each test in an assembly

Is it possible to run specific method before each test in an assembly?  I know about TestInitialize attribute but this attribute has "class scope". If it's defined in a Test class it will be executed before each test from this class.   I want to define a method that will be executed before each test defined in a whole assembly.


Showing that $a \mid b$ and $b \mid a$ if and only if $a= \pm b$.

$a \mid b$ and $b \mid a$ if and only if $a= \pm b$.  How do I go about this proof? Step by step explanation please!


Potions can survive at y=65  One potion was thrown into the void, but instead of being killed, it just lingered there.  Any ideas to kill it? I can't just run /kill @e[type=!player,tag=test1]  (yes, the tag of the entity is indeed test1 )


How to diagnose a system that freezes seemingly at random?

I am currently attempting to repair a laptop that experiences total system lock ups at random intervals, with a frequency of every few days.  Total lock up here is defined as no response to user input - Ctrl+alt+delete, no task manager, no Alt + F4, no smooth shutdown, display in a frozen state, no recovery if left alone  In this case, I am not asking for suggestions as to the cause, (as much as I appreciate any input offered) - I am asking for general advice in how to identify the cause of freezing, such as tools, logs and programs that may be able to trace the problem.     While the system in question here is a Windows 10 laptop, I believe it may be worth including wider suggestions for other operating systems and their versions, as future readers of this question might benefit from this.


Why does brain invert the image formed on retina?

I have been studying about the human eye and it's working in school for some time. I came across something. I have been taught that the image formed on the retina of the eye by the lens is inverted and the image is made erect by the brain so as for correct perception. But how does the brain know what is erect or inverted? Why doesn't it just keep the image as it is? Please note that I am asking why the brain reverses the image and not about the nature of image formed on retina.


Can anyone help me with the problem:  $\lim_{n \rightarrow  \infty }  \sum_{k=0}^{2n}  \frac{k}{k + n^{2} } $  In the hints it's adviced to make a Riemann sum from it and calculate the integral but i don't know how to do it


I am struggling with deleting apex classes that my org no longer uses. Why is this an issue? I would like to delete fields that are in the class (so now I cannot delete the field). What is the fastest way for deleting?


Is there a way, using ABE to let users get to subfolders they have access to, in folders they don't have access to?  Example  \[sharedrive]\shares\accounting\group1\bills\  shares is set to everyone can read  accounting is set to only group act can read/write  bills is set to only group contractors can read/write  I want contractors to be able to start in shares and go through the folders to get to bills without having to give list rights to contractors for the folders they need to go through. I know that would be easier but the actual share drive I am working with is huge with tons of different share permissions, there would be tons of folder permissions to change to get ABE to work.  EDIT:  WITHOUT having to give list rights on all other folders.  If it is not possible just let me know. I am asking because as I said before there would be a TON of permissions to change if I had to go through and change permissions on all the folders in the path.


Which Ubuntu repositories are totally safe and free from malware?

I read in the news about all the malware that is infecting Android OS. The malware is in Google's App Store and people are unknowingly downloading and installing it.  As I understand, Ubuntu's Main repository is safe for me to download from (I won't be infected with malware from doing so) because Canonical engineers review the software. But what about other repos, most notably the Universe repository? Does the Universe repo receive any sort of review to protect from malware? Is it advisable to avoid the Universe repo for fear of unknowingly downloading malware from it?  I've read PPAs are particularly dangerous because they are not reviewed. I'm assuming it is perfectly safe to use the Google Chrome PPA however.  So if I use nothing but the Main & Universe repositories and Google Chrome PPA, will I be protected from unknowingly downloading malware?   If Ubuntu does gain hundreds of millions of users like Mark Shuttleworth predicts, won't Ubuntu PPAs become the malware problem for Ubuntu like Google's App Store is today for Android?


Is there any relation between $a\equiv x\pmod{b}$ and $a\equiv x\pmod{c}$?

I saw a question which asked the remainder of $18!$ when it is divided by $437.$ I tried to solve it using the Wilson's Theorem. Since $437=19\times23$ which both are prime, I can rewrite it to be $$18!\equiv-1\pmod{19}\text{,}\quad22!\equiv-1\pmod{23}.$$ Then, since $22!=22\cdot21\cdot20\cdot19\cdot18!,$ and $22!\equiv-1\pmod{23},$ $21!\equiv-2\pmod{23},$ $20\equiv-3\pmod{23},$ $19\equiv-4\pmod{23},$ I can rewrite it into $$(-1)\cdot(-2)\cdot(-3)\cdot(-4)\cdot18!\equiv-1\pmod{23}\iff24\cdot18!\equiv-1\pmod{23}.$$ Since $24\equiv1\pmod{23},$ then $18!\equiv-1\pmod{23}$. Now, I'm stuck here. I got that $18!\equiv-1\pmod{19}$ and $18!\equiv-1\pmod{23}$. Are there any relations between those two? Any helps would be very appreciated.


Listings package behaving weird with asterisks

I have an output from R (which is a plain text) that I want to typeset using the listings package. The plain text file involves using special characters like asterisks and quotation marks together and that's where the trouble is happening. Please see the figure below.    For comparison, I typeset the text file using listings package (below) and the verbatim environment (above). You can see that the annotated part differs from the two. How can I fix this?  (FYI: I use XeTeX to compile my documents.)  Here's the MWE:  \documentclass{minimal} \usepackage{listings}  \begin{document}  \textbf{VERBATIM}.  \begin{verbatim} Call: lm(formula = nettfa ~ inc + age, data = subset(data, fsize ==      1))  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 44.68 on 2014 degrees of freedom \end{verbatim}  \textbf{LISTINGS}.  \begin{lstlisting} Call: lm(formula = nettfa ~ inc + age, data = subset(data, fsize ==      1))  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 44.68 on 2014 degrees of freedom \end{lstlisting}  \end{document}   Follow up  Adding this code to the preamble solved my problem:  \begingroup % properly typesets UNICODE in listings \catcode0=12 % \makeatletter \g@addto@macro\lst@DefEC{% \lst@CCECUse\lst@ProcessLetter ‘’% *** add Unicode characters *** ^^00% end marker }% \endgroup


What makes these RAM modules incompatible?

(Updated with content from: )  I have changed memory modules in computers since 1992, but this is a puzzle I have not managed to crack: Why does a NT2GC64B8HCONS-BE work in a Lenovo T410, but these will not:   KVR16S11S8/4 KTL-TP3CS/4G HMT451S6AFR8A-PB   When I boot the machine, it very shortly crashes after boot. The machine is known to support 2x4GB RAM, and all 4 tested modules are known good (they work in other systems flawlessly).  I thought it might be a voltage problem, but:   NT2GC64B8HCONS-BE: 1.5V KVR16S11S8/4: 1.5V KTL-TP3CS/4G: 1.5V HMT451S6AFR8A-PB: 1.35V   So that is not the problem. Also 1.35V should be backwards compatible .   is a pretty good resource, but it does not go into what features are backwards compatible and which features are not. E.g. RAM frequency will be negotiated to be the highest supported by both computer and RAM according to  It also does not cover how to tell what density a given DIMM has and how to tell if this is supported by the computer.  But the answer is decent template for the known features so far of NT2GC64B8HCONS-BE:   Memory technology: DDR3 CAS latency: ? (Isn't this part of timings below?) Voltage: 1.5V (1.35V is backwards compatible) Timings: ? RAM frequency: Backwards compatible (1600 MHz RAM will work with 1066 MHz controllers and vice versa) RAM density: This  shows exactly the same behaviour on exactly the same machine. So this leads me to believe RAM density could be the issue. The HMT451S6AFR8A-PB has 8 chips and says 1Rx8, while NT2GC64B8HCONS-BE has 16 chips and says 2Rx8.   And T410:   RAM controller: Supports 4G DIMMs Chipset technology: ?   What feature does NT2GC64B8HCONS-BE have, that the other three don’t? And how can I tell if other 4G modules will be compatible?


How do I properly define a small square math symbol?

I would like to create a math symbol using a command \smallsquare, which would look like this:                                    I know that there is \sqbullet from the mathabx package, or \filledsquare from the mnsymbol package, but I would like to avoid using those (e.g. because there are conflicts with other packages...). Using the , here is what I tried (and gave me the above result) : \newcommand{\smallsquare}{           \vcenter{\hbox{\scalebox{0.45}{$\;\mathbin{ \blacksquare }\;$}}}     }  (using the graphicx package). But I feel like I am not defined things properly : typically, I added a space \; because I didn't know how to get correct spacing – despite trying to use \mathbin. I tried other ideas (e.g. \mbox{\tiny$\blacksquare$} or \text{\smaller[100]$\blacksquare$}) but did not get better results. Henceforth, do you have any suggestions to improve my \smallsquare symbol? I would be happy to learn some new tricks, nice commands, interesting typographic features, etc.


I am in the early stage of studying the Neural Network. Here are the list I made during the online classes.   Shuffle the data Normalized the data by Sk-learn: StandardScalar Initialized the weight with He initialization Use adaptive learning rate L2, L1 optimization Train in mini-batch size Change cost function   They are 7 cases I have to do when I need to find tune the accuracy. Are they any topic left behind? Or some of them is redundant to do?  Do you normally follow all of these? Or not do if the accuracy is high enough?


I am a beginner in Ubuntu, so please help me to solve this problem. I bought a new laptop with a hard disk of 500 GB. First I installed windows 7 and allocated 400 GB for that. Now I installed Ubuntu using the windows installer with a  USB pen drive in the 100 GB left for that. It worked perfectly. But I faced a problem when I reinstalled my Windows 7 OS. I am now unable to get the dual boot process back. I tried to re-install Ubuntu, too. But when I tried to do that using the windows installer, I am not able to find the partitioned space of 100 GB already containing Ubuntu OS. It shows only the space wich is allocated for Windows.   This is my problem. Now what should I do to get the dual boot back?


Enable screen auto-rotate for specific applications but not globally?

So I'd like to enable screen auto-rotation for YouTube and Chrome, but not for other anything else. How do I do this?  I use a Galaxy S5.


insert the same word under the line and its multiples

text: my1line my2line my3line my4line my5line my6line my7line my8line ...  words that want to be inserted : hello  desired output: my1line my2line hello my3line my4line hello my5line my6line hello my7line my8line ....  Tucked in repeatedly every few lines until it runs out, is there a way to do it?


Assume there is a dog A on a field and a sephard B. B moves on straight line with constant $v$ velocity. The dog A is running always towards B with also constant - magnitude  `$u$ velocity.   If initially B's velocity vector is perpendicular to A's velocity vector, when will they meet?  Is it possible to solve the problem above without the use of calculus? How?


I refinished my kitchen cabinets. I got some water based wood stain on my kitchen wall. I tried to remove it with soap and water on a sponge. It did not work. How can I move it? My kitchen wall is painted with water based satin finished paint.


What is the Chat Sandbox, and what do the commands there do?

I recently found this  with the chatbot and wanted to know what all of the chatbot commands do (including learned ones and the ones with no definition.) What exactly was the Chat Sandbox designed for, and what are the commands/what do they do?


How to put an $ variable inside the printing of a command variable?

Source part: if [ $(jq -r '.patch_at' update.json) -ge "4" ]; then     recentlycheckedat=$(echo '('`date +"%s.%N"` ' * 1000000)/1' | bc)     contents="$(jq '.recently_checked_at = "$recentlycheckedat"' update.json)" && \     echo "${contents}" > update.json # have to fix, its literally writing $recentlycheckedat fi  Focus: contents="$(jq '.recently_checked_at = "$recentlycheckedat"' update.json)"  How to insert the content of the variable "recentlycheckedat" instead of literally printing out "$recentlycheckedat"? It stores the current timestamp as a command on a variable, but this variable can't work inserted in a command inside another variable. How to achieve this? And feel free to edit with an more appropriate title. full source -  Update - solution: ".recently_checked_at = "$recentlycheckedat"" (many thanks to @ilkkachu)


I'v ran into another anomaly:  float T = 19.0 / 99.0; float moo = (99.0 * T) - 19.0;   as expected, T = 0.191919, however 'moo' is meant to be 0 but instead is 7.450586. I can only presume some form of casting is once again required somewhere.


Other than -Wall what other warnings have people found useful?


Prove this number must be a prime number or 1.

Show that if the smallest prime factor $p$ of the positive integer $n$ exceeds $\sqrt[3]{n}$, then $\frac{n}{p}$ must be prime or 1.  I'm stuck trying to prove this. I tried this using contradiction, but I haven't been able to prove it.  My approach:  Let $p$ be the smallest prime factor of the positive integer $n$.  Let $p > \sqrt[3]{n}$  Then we must show that $\frac{n}{p}$ is either a prime number or 1.  We know that $n = pe$ for some $e \in \mathbb{Z}$.  Thus, $\frac{n}{p} = e$  We also know that $p$ > $\sqrt[3]{n}$, so $p^3 > n$, and $p^2 > \frac{n}{p}$  So, assume $\frac{n}{p} = e$ is not prime nor 1, meaning it's a composite number. Let's try to get a contradiction.  If $\frac{n}{p}$ is composite, then $\exists a,b \neq 1: \frac{n}{p} = ab $  Now, here's where I get stuck. What can I do with this info? $\frac{n}{p} = ab $ and $p^2 > \frac{n}{p}$.


Stuck trying to prove that $e^{-x^{-2}}$ is $C^{\infty}$

This is Spivak's Calculus on Manifolds ex. 2-25, he says     Define $f:\mathbb{R}\to \mathbb{R}$ by $f(x) =  \left\lbrace   \begin{array}{l}      e^{-x^{-2}} &\text{ if } x \neq 0\\      0 &\text{ otherwise } \\   \end{array}   \right.$. Show that $f$ is $C^{\infty}$ anf $f^{(i)}(0)=0\; \forall i$.   I haven't found a way to get a general solution. I only managed to prove:  $(1)$ $f$ is continuous at $0$.  This follows from $f(0)=0$ and $\lim_{x\to0} f(x)=\lim_{x\to 0}e^{-x^{-2}}=\lim_{x\to 0}\displaystyle\frac{1}{e^{1/x^2}}=0$ since $\displaystyle\frac{1}{x^2}\to+\infty$ if $x\to 0$ then $e^{1/x^2}\to+\infty$ if $x\to 0$, which means that $\displaystyle\frac{1}{e^{1/x^2}}\to 0$ if $x\to 0$ .  $(2)$$f'(0)=0$.  I got this by calculating the limit $f'(0)=\lim_{h\to 0}\displaystyle\frac{f(0+h)-f(0)}{h}=\lim_{h\to 0}\displaystyle\frac{f(h)}{h}=\lim_{h\to 0}\displaystyle\frac{e^{-h^{-2}}}{h}=\lim_{h\to 0}\displaystyle\frac{1/h}{e^{h^{-2}}}$.  The last one follows from L'Hôpital: $\lim_{h\to 0}\displaystyle\frac{\frac{d}{dh}(1/h)}{\frac{d}{dh}(e^{h^{-2}})}=\lim_{h\to 0}\displaystyle\frac{(-1/h^2)}{(e^{h^{-2}})(-2h^{-3})}=\lim_{h\to 0}\displaystyle\frac{h}{2e^{h^{-2}}}=\displaystyle\frac{1}{2}\left(\lim_{h\to 0}\displaystyle\frac{1}{e^{h^{-2}}}\right)\left(\lim_{h\to 0} h\right) = 0$.  $(3)$ $f''(0)=0$  I found that $\displaystyle\frac{df}{dx} =  \left\lbrace   \begin{array}{l}      2x^{-3}e^{-x^{-2}} &\text{ if } x \neq 0\\      0 &\text{ otherwise } \\   \end{array}   \right.$, then  I can get $f''(0)$ computing the limit $\lim_{h\to 0}\displaystyle\frac{f'(0+h)-f'(0)}{h} = \lim_{h\to 0}\displaystyle\frac{f'(h)}{h} = \lim_{h\to 0}\displaystyle\frac{2e^{-h^{-2}}}{h^4}= 2\lim_{h\to 0}\displaystyle\frac{1/h^4}{e^{h^{-2}}}=-2\lim_{h\to 0}\displaystyle\frac{-4h^{-5}}{-2h^{-3}e^{h^{-2}}}\\=4\lim_{h\to 0}\displaystyle\frac{1}{h^2e^{h^{-2}}}=4\lim_{h\to 0}\displaystyle\frac{h^{-2}}{e^{h^{-2}}})=-4\lim_{h\to 0}\displaystyle\frac{-2h^{-3}}{e^{h^{-2}}(-2h^{-3})}=-4\lim_{h\to 0}\displaystyle\frac{1}{e^{h^{-2}}}=0$, after using L'Hôpital twice.  But still I don't have a clue to prove that $f^{(i)}(0)=0$ for every $i$. One of the ideas I managed was to find a general form for $f^{(i)}$ but after I got $f'$ doesn't seem possible to do so considering that I would have to apply the product rule each time.


How to forward local port 80 to another machine?

I want to port 127:0.0.1:80 to the other machine via SSH, how can I do that? I tried adding -R 8000:localhost:80, but it doesn't work. By the way, PHP is also installed on localhost, maybe that's why?


$x^2+y^2-1$ is irreducible in $\mathbb{Q}[x,y]$.

To solve the Dummit-Foote's exercise I've stuck here with this problem : (P-312)  Qn11. Show that  $p(x)=x^2+y^2-1$ is irreducible in $\mathbb{Q}[x,y]$.  This is a polynomial of degree 2. But I can not think of zeros of this polynomial.  My another approach is : $p(x)=x^2-1\in \mathbb{Q}[x,y]/\langle y\rangle$ and also $p(x)=y^2-1\in \mathbb{Q}[x,y]/\langle x\rangle$ and $\langle x\rangle$, $\langle y\rangle$ are proper ideal of $\mathbb{Q}[x,y]$. Also, $p(x)=x^2-1$ can be factored with $(x+1)(x-1)$ in $\mathbb{Q}[x,y]/\langle y\rangle$. Then how I go ahead?  I think my attempt is stupid. Can any one suggest any references to understand/solve this?  Thanks in advance.


How does the Eco-Cooler air conditioner really work?

describes a device for developing countries which apparently cools the air by 5 °C without electricity. According to , it works by lowering the pressure to drag in the ambient air. Wouldn't the ambient air be at the same temperature?  Does the constriction compress the air and temporarily increase the pressure and so temperature, which then dissipates heat because it is hotter than surroundings; then after passing the constriction, the pressure returns to almost ambient but the temperature drops to below ambient?  How does the Eco-Cooler air conditioner actually work, if at all?


Integrate $\int {\dfrac{x^2+\left(n-1\right)n}{\left(x\sin x+n\cos x\right)^2}}dx $

$$\int {\dfrac{x^2+\left(n-1\right)n}{\left(x\sin\left(x\right)+n\cos\left(x\right)\right)^2}}dx $$   My Try:  I multiple $x^{2n-2}$ to both N and D, then took D as $u$ and then solved to get $\dfrac{n\sin\left(x\right)-x\cos\left(x\right)}{x\sin\left(x\right)+n\cos\left(x\right)} + C$ as answer.  My teacher told that this would have been much easier if we had applied linearity and written question as   $={\displaystyle\int}\dfrac{x\sin\left(x\right)+\left(n-1\right)\cos\left(x\right)}{x\sin\left(x\right)+n\cos\left(x\right)}\,\mathrm{d}x-{\displaystyle\int}\dfrac{\left(\left(1-n\right)\sin\left(x\right)+x\cos\left(x\right)\right)\left(n\sin\left(x\right)-x\cos\left(x\right)\right)}{\left(x\sin\left(x\right)+n\cos\left(x\right)\right)^2}\,\mathrm{d}x$  I didn't get it, how did we write the above statement? I mean, please explain the method or steps for reaching to this part.


Given that $g$ is only continuous at $0$, not on $[0,1]$, show $\lim_{n \to \infty} \int_0^1 g(x^n) dx = g(0)$.

Important Notice: Observe that although this question is very similar to many other questions such as the one in , this problem only assumes continuity at $0$, but not on $[0,1]$. Here is the question: Assume $g$ is (Riemann) integrable on $[0, 1]$ and continuous at $0$. Show $\lim_{n \to \infty} \int_0^1 g(x^n) dx = g(0)$. My attempt at this question: I split up the integral into two parts from $[0,1-\alpha]$ and $[1-\alpha,1]$. For $[0,1-\alpha]$, there is uniform continuity, so the limit $n \to \infty$ can be shifted inside the integral to get $g(0)$. But how do I keep the integral over $[1-\alpha,1]$ to be small? Note: This is Exercise $7.4.10$ in Abbott, Understanding Analysis, 2nd edition.


Is it true that $\lfloor\sqrt{n}+\sqrt{n+1}+\sqrt{n+2} \rfloor=\lfloor\sqrt{9n+7}\rfloor$?

I know it's true that  $$\lfloor\sqrt{n}+\sqrt{n+1} \rfloor=\lfloor\sqrt{4n+1}\rfloor,\forall n\in \mathbb N. \tag 1$$ Is it true that  $$\left[\sqrt{n}+\sqrt{n+1}+\sqrt{n+2} \right ]=\left[\sqrt{9n+7}\right], \tag 2$$ $$\left[\sqrt{n} +\sqrt{n+1}+\sqrt{n+2}+\sqrt{n+3}\right ]=\left[\sqrt{16n+20}\right], \tag 3$$ $$\left[\sqrt{n} +\sqrt{n+1}+\sqrt{n+2}+\sqrt{n+3}+\sqrt{n+4}\right ]=\left[\sqrt{25n+49}\right], \tag 4$$ for all $n\in \mathbb N$? I have checked $(2),(3),(4)$ through $10^6.$   (I think $(4)$ maybe has counter-examples, but I cannot find it.)


On OS X, you can empty your trash securely, how would one do that in Ubuntu Desktop 14.04, or isn't it needed?  Thank you in advance!


How to make curved triangles in Photoshop?

I want to make a perfectly equilateral triangle but with curved corner and curved sides (not just rounded corners)   I tried to use the polygon tool with the "Smooth Corners" option and got this:    It's close to what I want, but I want to be able to control the roundness more. I want it to be a bit more sharper  How do I do this while keeping it still perfectly equilateral?  I'm using Photoshop CC 2014, btw.  Is this even possible in Photoshop? I'm open to suggestions on using other programs if it is impossible  Any help will be appreciated!


First Complete Lockup Hard Reset of New PC

When I subdivided the pants mesh a few times to 160,000 or so faces and then attempted to return to object mode, my new computer became totally unresponsive, and I was forced to carry out my first ever hard reset of this computer.


It is given that $$pdf(x)=\lambda_1 e^{-\lambda_1 x}$$ for $x\geq0$ and elsewhere it is zero. Next, It is given that $$pdf(y)=\lambda_2 e^{-\lambda_2 y}$$ for $y\geq0$ and elsewhere it is zero. Assume that $x$ and $y$ are i.i.d.I need to find the pdf of $Z=X/Y$. Can someone give me hints or redirect me to some source. I has been a while since I have dealt transformation of random variables.


When to use \dots, \ldots, \cdots, and blanks?

I am writing math. questions like these:   Complete the missing numbers: 3,4,...,...,7 5+...=7 The rectangle contains four ... angles (choices: acute, obtuse or right)   In each case of the mentioned ones, which is the suitable to use? (dots - ldots - cdots - a blank)


My question is simple. Is there any ssh client in ubuntu 14.04 that has GUI. I need it to remotely access website files and update them.


Verify that $\left|\int_{\gamma} \exp(iz^2)dz\right| \leq \frac{\pi\big(1-\exp(-r^2)\big)}{4r}$ where $\gamma(t)=re^{it}$, for $0\leq t \leq \pi/4$.

Verify that $$\left|\int_{\gamma} \exp(iz^2)dz\right| \leq \frac{\pi\big(1-\exp(-r^2)\big)}{4r}$$ where $\gamma(t)=re^{it}$, for $0\leq t \leq \pi/4$ and $r > 0$.   I'm stuck. here is my attempt:  $|\int_{\gamma} e^{i\cdot z^2}dz|\leq \int_{\gamma} |e^{i\cdot z^2}|dz=\int_{\gamma}|(e^{z^2})^i|dz$. As $t > 0$ on $0\leq t \leq \pi/4$. $\Rightarrow|e^{r^2 e^{2it}}|=|e^{r^2}e^{e^{2it}}|>0$ $\Rightarrow\int_{0}^{\pi/4} e^{r^2}e^{2it}rie^{it}dt=e^{r^2}ri\int_{0}^{\pi/4} exp(e^{2it}+it)dt$ Let $\alpha=e^{r^2}ri$ $\Rightarrow \alpha\int_{0}^{\pi/4}e^{\cos2t}e^{i\cdot \sin2t}(\cos(t)+i\cdot \sin(t)dt)$  Am I on track?


Drupal7 multilevel tree taxonomy term views at display

I want to display multilevel tree structure view in taxonomy terms views page. I used view tree module but it shows only the last parent child structure only if I use order list: ex.: I have  as default parent. I want to have output of my view just like the taxonomy vocabulary page.  root Grand Parent 1 --Parent 1.1 ---Child 1.1.1 ----Child 1.1.1.1 ---Child 1.1.2 --Parent 1.2 ---Child 1.2.1 Grand Parent 2 ------Parent 2.1 ----------Child 2.1.1 ----------Child 2.1.2 ------Parent 2.2 ----------Child 2.2.1 ----------Child 2.2.2   but the result I am getting for view tree module is   Grand Parent 1 Grand Parent 2 Parent 1.1 Child 1.1 -------Child 1.1.1.1 Child 1.1.2 Parent 1.2 -------Child 1.2.1   likewise. In view tree module I am able to get the tree view just for last two levels like  Child1.1 ---child1.1.1.1  and that to be if I use Ordered list else it just change the look and feel. I tried to follow  but its solved till the level2  Grand Parent 1 --Parent 1.1 but not the entire n level.


Book recommendations on General Relativity

I am interesting in teaching myself General Relativity, since I only learned Special Relativity during my bachelor in Physics. Now, I have turned into math, but nevertheless I remember enjoying theoretical physics and in particular relativity, I know that G.R. is a beautiful mathematical construction. I know the basis of Differential Geometry (Riemannian, Pseudo-Riemannian, Banach manifolds and Lie groups). I ordered General Relativity by Robert M. Wand. But honestly, I found the notation to be very cumbersome.  I know physicists find it more useful to deal with tensors in general in terms of a coordinate system, but I myself feel more comfortable with the abstract definition knowing a priori how such tensor should transform (from chart to chart). Also, Einstein summation convention does not do too much for me, I often forget whether or not I was summing. So, is there a good book you could recommend me to learn the general theory of relativity? I am more interested in the foundations and fundamental principles than in the applied stuff (Black holes, gravitational lenses, etc.).


Is this a zero knowledge password proof?

Client and Server both know the Client's password. Client wants to login.  Server sends Client a random string. Client concatenates the string with their password.  Clients sends the HASH of this to the server. Server performs the same operation without sending the hash anywhere.  Server verifies their resulting hash equals the hash recieved by the Client. Server allows Client to login. I think this is a zero-knowledge proof because the Client proved they know their password without actually sharing their password. What am I misunderstanding? The reason I assume I'm misunderstanding something is because this seems too good to be true.  If zero-knowledge password proofs were so simple, people would want to use this instead of something like SRP.


Let $\{e_n\}$ be an orthonormal basis for a Hilbert space $H$.  Let $\{f_n\}$ be an orthonormal set in $H$ such that $\sum_{n=1}^{\infty}{\|f_n-e_n\|}<1$.  How do I show that $\{f_n\}$ is also an orthonormal basis for $H$?


Error 'not supported' in Ubuntu Software Install when installing Zoom on Ubuntu 20.04.1 LTS

I am a new Linux user, so today I decided on trying Ubuntu as my first Linux distribution. After updating and upgrading, I decided to start installing my usual applications, such as VLC, Skype and Zoom, but with the last one I got a problem. I tried to install Zoom from the  I have selected:  Linux Type: Ubuntu OS Architecture: 64 bit (matches my CPU) Version: 16.04+; 12.04 (I put both of them, because I have tried both).  I tried to install them with the Ubuntu Software Install, and neither of them could be installed. The error:  Failed to install file: not supported  I do not know if the names of the versions are versions of Zoom, or past versions of Ubuntu OS. Thanks for reading, I would appreciate any help. Have a great day.


Single entry Schengen visa type C (Del-Lon-Sweden (via Lon)-Paris-Lon-Del)

I am travelling to London from Delhi in next 8 hours (and then to Schengen countries) and I need some quick help in confirming my understanding of the visa type-C single entry Etats Schengen.  And I have a valid UK multiple entry visa also.  I am flying by British Airways as below with itinerary spread across next some days.  Delhi - London London - Gothenburg Gothenburg - Paris (but the flight will go back to London and then proceed to Paris) Paris - London London - Delhi    Now I understand that I can enter the Schengen area only once through any Schengen country and once I exit Schengen area through any country, I can't re-enter with same visa.  This being the case, will my travel from Gothenburg to Paris (via connecting flight through London) be called as exiting the Schengen area since I will be going to Paris via London?  Essentially, will there be a round of immigration pass through when I will travel from Gothenburg to Paris via London?


How many inventions did Fred and George have?

Fred and George Weasley are known for their trouble-making and general "solemnly swearing they are up to no good". Their antics/adventures give something to smile about and show us not all wizards are as serious as Professor McGonagall and Hermione. This gives them a reputation of being less intelligent and indeed they only achieved three OWLs. However, we also see the twins have quite a brilliant side! Being able to open and successfully run a shop in Diagon Alley without having completed their Hogwarts education is no easy take (IMO, anyway). Their creations helped students get out of class, our heroes out of tight spot, and even stop our enemies execute an evil plot. Ginny may have said it best:  "We’ve been hearing explosions out of their room for ages, but we never thought they were actually making things," said Ginny. "We thought they just liked the noise." Harry Potter and the Goblet of Fire  Do we know how many things Fred and George invented?


What is wrong with this method for FTL communication?

I've seen the other questions, but almost all of them deal with manipulating quantum states so that the other person reads a message in the data.  However, you cannot force a quantum state on something without breaking entanglement. So here is my idea.  I know that it can't work, but I don't know why.  If someone could point out the flaw, I would appreciate it.  I do not claim to be an expert. So there is the .  If I pass a single photon through a double slit, it will create an interference pattern.  This is the evidence that it is in a quantum state because a single particle should not be interfering with itself. In reading article above, this also works my photon happens to be entangled with another photon. Now in the quantum eraser section of the linked article above, it goes on to mention that if you apply a filter to one of the photons (i.e. measure it), than the interference pattern of both collapses.  Thus, by measuring the quantum state of one, both collapse. So, here is how I propose FTL communication. Method Lets say I create streams of quantum entangled photons.  I will split up the pairs of quantum entangled photons and send one half to $A$ and the other half to $B$ in order.  Thus, the first photon that $A$ receives will be entangled with the first photon that $B$ receives. At $B$'s end, each photon will be run through the double slit to detect whether an interference pattern exists.  If there was an interference pattern, then this is encoded as a binary $0$.  If there isn't an interference pattern, then this is a $1$.  It doesn't matter which slit the photon is known to travel through - the simple absence of the interference pattern is enough. At $A$'s end, to communicate, I will encode my message in binary and then encode each bit in photon stream.  If the next bit is a $1$, I will measure the next photon, thus collapsing its quantum state and eliminating the interference pattern.  If the next bit is a $0$, I will not measure the next photon. Example $A$ needs to send 1101.  $A$ would measure the first, second, and forth photons.  At $B$'s end, when these photons are run through the double slit, you would see that the first, second, and forth have no interference pattern, so you would know they are $1$s.  The third retains an interference pattern, so it would be a $0$. Two-Way Communication This allows $A$ to communicate to $B$ instantly.  For $B$ to communicate back, you could create another set of streams where $A$ runs the photons through the double slit and $B$ measures to collapse the quantum state on some photons.  Alternatively, odd numbered photons can be used for the reverse communication, so long as both $A$ and $B$ agree. Summary So, what is wrong with this method?  It does not try to force a photon to go through a slit, but rather uses the act of observing or measuring to collapse the quantum state.


how do you calculate the tipping angle of a  box? That is the maximum angle a which a box can reach before tipping over. help, please!


Apex Trigger : Too many SOQL queries: 101

I have wrote this below code to create order when opportunity stage is closed/Won 100%.  Problem is I am getting following error in below form in line number 8,     Too many SOQL queries: 101   I think i wrote this trigger with bulky but not sure what i missed up or what i did wrong for this code, can any one please look into this code ?  trigger OrderOfOpportunity on Opportunity (after update) { if(trigger.isUpdate && Trigger.isAfter){     Map<Id,Opportunity> mapOldOrderToOpp = Trigger.oldMap;     Map<Id,Opportunity> mapNewOrderToOpp = Trigger.newMap;     List<Order> orderList = new List<Order>();              if(mapNewOrderToOpp.size() > 0){         /* This is line number 8 */         List<opportunity> oList = [SELECT Id, CurrencyIsoCode, Type, AccountId, ContractId, stageName, RecordTypeId , sub_tipo__c, (select id from Orders),(Select Id, SBQQ__Product__c, SBQQ__Quantity__c, SBQQ__ListPrice__c from Quote_Lines__r), Quote_line_Product_Name__c FROM opportunity WHERE id IN : mapNewOrderToOpp.keyset()];         List<orderitem> oitemList = new List<orderitem>();         Id prbkId = [Select Id from Pricebook2 where Name = 'Lista de Precios CPQ' Limit 1].Id;         Order order;         if(!oList.isEmpty()){             for(opportunity op : olist){                 if(op.Orders.isempty() && op.stageName != null && mapOldOrderToOpp.get(op.Id).stageName != op.stageName && op.stageName == 'Ganada/Firma de contrato' && op.RecordTypeId == '012700000001ix9'){                     order = new Order();                     order.EffectiveDate = Date.TODAY();                     order.AccountId = op.AccountId;                     order.OpportunityId = op.Id;                     order.Status = 'Stand by';                     order.Type = op.sub_tipo__c;                     order.CurrencyIsoCode = op.CurrencyIsoCode;                     order.PriceBook2Id = prbkId;                     orderList.add(order);                 }             }         }         if(orderList.size() > 0)             insert orderList;     } } }


Is it possible to use Windows touchpad driver in Ubuntu? I have a Dell n5110 and the touchpad is not recognized. I cannot use scroll, and most annoying, while typing the pointer usually jumps if the touchpad is touched. I see that there are lots of questions here and on the internet about this issue. Some claim to work, but I tried everything with no results.


How to make mhchem work with \bgroup and \egroup satements?

I am trying to create a table in which a column consists entirely of chemical formulae. I would like to use the array package to automatically insert the \ce{...} command, taking the cell's content as argument.   I understand from “ ” that \bgroup and \egroup only work for replacements for low level commands like \textbf. Unfortunately I do not understand how to use the realboxes package provided there to make it work. I cannot assess if it is appropriate for that task in the first place.  Here is a minimal not working example of what I am trying to do:  \documentclass{article} \usepackage[version=4]{mhchem} \usepackage{array} \begin{document}   \begin{tabular}{>{\textbf\bgroup}l<{\egroup}%                   >{\ce\bgroup}l<{\egroup}}\hline     R1 & -C6H5 \\     R2 & -C6H4F \\\hline   \end{tabular} \end{document}


How to verify if a given tree is a Binary Search Tree or not

I wanted to know if a given binary tree is a binary search tree or not.  I don't know How to do that?  The only thing I know is that the inorder traversal of BST will gives you ascending order output.  So, is this the only condition we need to verify or is there anything else we are suppose to check.  In case if there are some other necessary conditions to be checked, What are they? and why those conditions are necessary to be checked?  Because, I think, INORDER traversal itself can tell you easily if the given tree is BST or not.


Well the question is to solve for $x$ in $$a^x+b^x=c \tag{a,b,c are constants}$$   Well as of me, I tried to put $\ln{}$ on both sides which does not seem to help. Apart from this I don't seem to have any other way to solve it.   I turned to WolframAlpha and the solution which was given was : $$x=\dfrac{-i(2\pi n +\pi)}{\ln{a}-\ln{b}} , {n \in \mathbb{Z}}$$  And if $n=0$ $$x=\dfrac{-i\pi}{\ln{a}-\ln{b}}$$  The only thing I am able to recognize is $e^{i\pi}=1$ ... i guess is used.  Link :   So I see that $x$ is independent of the constant $c$.  So how to solve it? Please help...Thanks!    EDIT - It seems that WolframAlpha is taking $c=0$ as suggested by Donkey_2009. And when i write "Solve for x in a^x + b^x = k" it is not returning anything. So are you guys aware of a method to solve this? Also are you guys aware of any other website/software like WA?    P.S. - Also I see that IF we know the values of $a,b,c$ resulting in something like $2^x+3^x=100$ , then Newton's method is the only method I am aware of that can solve it...  Any other suggestions?


Hello guys for years I've been installing AMD drivers and usually no problems at all. I usuallu compile few .deb files with --buildpkg but today after installing latest Ubuntu 14.04 I got an error.  UBUNTU-MAIN:~$ sh omega.run --buildpkg Ubuntu/trusty Created directory fglrx-install.Jjz0kw Verifying archive integrity... All good. Uncompressing AMD Catalyst(TM) Proprietary Driver-14.501.1003................... =====================================================================  AMD Catalyst(TM) Proprietary Driver Installer/Packager  ===================================================================== Generating package: Ubuntu/trusty Resolving build dependencies... Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package (> E: Unable to locate package 2 Unable to resolve  xserver-xorg-dev (>= 2.  Please manually install and try again. ^CSignal caught, cleaning up xakep@UBUNTU-MAIN:~$   So okay no problem because of new installation even core xorg is not there so I decided to install them  UBUNTU-MAIN:~$ sudo apt-get install xserver-xorg-dev Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed                    Depends: libcogl15 (>= 1.15.8) but it is not going to be installed  libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed               Depends: gstreamer1.0-clutter but it is not going to be installed  libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed                     Depends: libcogl15 (>= 1.15.8) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. xakep@UBUNTU-MAIN:~$   As you can see another set of errors. I mean whe way I see it it's a damn standard library that is not installing automatically as depended for some reason. Does anyone know why this is happening ? I mean this is a clean installation and I really havn't done anything diffirent this time around but I can;t install driver. Same error btw when installing steam, actual steam installed but on first boot you know how it installs all library it gave me exact error. some cheese-gtk23 and stuff can;'t be installed.  I am clueless on what is happening.  Please help.


How to Construct a Maximum Likelihood Estimator for Parameter from a Beta Distribution?

I have a question from my Stats Homework that is worded as follows:  Based on a random sample size n from the Beta(a,2), construct the MLE of a   I really don't know how to go about solving this, as the beta function in the pmf of the beta distribution is throwing me off. I would appreciate any input and guidance.