This seems like an elementary question but a quick Google search did not yield an answer. I know that noetherian valuation rings are discrete and that discrete valuation rings have Krull dimension 1, but I'd like to know an example of a non-discrete (necessarily non-noetherian) valuation ring with Krull dimension 1. Or an explanation why such a ring cannot exist.

For valuation rings I know examples which are Noetherian.      I know there are good standard non Noetherian Valuation Rings. Can anybody please give some examples of rings of this kind?    I am very eager to know. Thanks.


Let $A$ be an $n\times n$ real matrix which is nilpotent. Prove that if for the entries of the matrix: $a_{ij}=-a_{ji}$ then $A$ has to be $0$.  I know that this is equivalent to saying that $A^T=-A$ but I don't see how to prove $A=0$ yet. Does anyone have an idea? Thanks a lot!

Given a matrix $A \in R^{n \times n}$ which is normal ($AA^H=A^HA$ where $A^H$ is hermitian of $A$) and nilpotent ($A^k=0$ for some $k$). Now we need to show that $A=0$. (This is essentially exercise 5(b) in sec. 80 on p.162 of Paul R. Halmos' Finite-Dimensional Vector Spaces.) I tried to show in the following way, we know that, $AA^H=A^HA$ pre-multiply by $A^{k-1}\implies A^kA^H=A^{k-1}A^HA$ Now, we have $0 = A^{k-1}A^HA$, since $A$ nilpotent. I am not sure how to proceed from here to show $A=0$. Can someone help me in this problem?


Can I add a link to "Publish"-button so when it's clicked it publishes new post and direct to another page in same click?

Is there a hook I can use that when a post is created or updated it goes back to the list/table page of all the posts. If it is also possible to target a post type as well that would be cracking.  It's a really silly request I know and have argued the toss about it but wanted to make sure it was achievable if not very user friendly.  Steve


I am making a python program which would act as windows cmd, but I need a code which will display Windows's version. [Highlighted one]    How to make it?

What do I need to look at to see whether I'm on Windows or Unix, etc?


Is there a library which can be used to read mouse movement and to pass certain hotkey combinations or trigger certain files on certain movements?  I want to make functions which will be able to respond on these mouse movements like for example a three touch finger drag should trigger window spread.

I'd like to be able to display the current location of the pointer on the X display. Is there any application which does this?


Lovasz Softmax is used a lot these days for segmentation problem and the original paper is really bad at explaining why it works.

Lovasz Softmax is used a lot these days for segmentation problem and the original  is really bad at explaining why it works.


I am wondering if it is possible to take an image view and turn it on the z-axis so that the left side appears closer to the user viewing the application and the right side gets narrower as if it was getting farther away. I was thinking of doing this with OpenGL, but was hoping it could be done with Core Animations.  Has anyone had any experience with this?    UIImageView *front = [[UIImageView alloc] init];  UIImageView *left = [[UIImageView alloc] init];   float trialSide = 30 * 5.7;  front.frame = CGRectMake(180, 280, 360, 295);  front.image = [img croppedImage:CGRectMake(trialSide, trialSide, imgWidth - (trialSide *2), imgHeight - (trialSide * 2))];  left.frame = CGRectMake(149, 280, 30, 295);  left.image = [img croppedImage:CGRectMake(0, trialSide, trialSide, imgHeight - (trialSide * 2))];   [self.view addSubview:front];  [self.view addSubview:left];   CALayer *layer = front.layer;   CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;  rotationAndPerspectiveTransform.m34 = 1.0 / -1000;  front.frame = CGRectMake(180, 280, 360, 295);  rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, 30.0f * M_PI / 180.0f, 0.0f, 1.0f, 0.0f);  layer.transform = rotationAndPerspectiveTransform;  [self.view layoutSubviews];

I'm looking to perform a perspective transform on a UIView (such as seen in coverflow)  Does anyonew know if this is possible?   I've investigated using CALayer and have run through all the pragmatic programmer Core Animation podcasts, but I'm still no clearer on how to create this kind of transform on an iPhone.  Any help, pointers or example code snippets would be really appreciated!


I have an external hard drive, on which I had many important things that I don't have another copy of. Something was messed up with the partitioning of the hard drive, since it showed up as a 600 and something GB partition, where as the hard drive itself is a 1 TB one. I decided to give it a formatting, to restore its original size. I backed up all my stuff by copying the files and folders onto my Windows PC (the copying process went just fine, no errors or anything, so I assumed all my stuff was properly backed up), then I erased the hard drive by using this command in OS X terminal on my mac:  dd if=/dev/zero of=/dev/disk1 bs=1m   I used this command because I wanted to make sure that my hard drive was completely empty, so I can create a fresh new partition on it. So I created a partition on it (which showed up to be 1TB, so I was happy about that), but when I wanted to copy my stuff back onto it, I realized that only a fraction of my data is present on my PC. I have no idea why it didn't back up everything. I selected all the files on the hard drive when backing them up, and the copying process went fine. Sure, it's my fault that I didn't check whether the data was backed up properly, but I assumed it was.  Anyway, is there any way to recover data from a hard drive that has been zeroed out? I lost a lot of personal stuff... :(

Hi I have an Iomega HD for mac. I was writing a ubuntu server image to another drive but accidentally selected my 500GB Iomega with my files on it. The command I ran was:  sudo dd if=/Users/myuser/Desktop/ubuntu/ubuntuserver.img of=/dev/rdisk1 bs=1m   this shouldve been another disk.  I have downloaded testdisk but have no idea how to recover using it.  what are my best options for retrieving the data?


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

After booting I ran systemd-analyze blame and here are the results:       21.596s systemd-journal-flush.service      18.658s dev-sda8.device      15.099s dev-loop33.device      15.034s dev-loop19.device      15.012s dev-loop34.device      14.989s dev-loop21.device      14.877s dev-loop15.device      14.866s dev-loop26.device      14.773s dev-loop27.device      14.684s dev-loop30.device      14.677s dev-loop32.device      14.649s dev-loop35.device      14.590s dev-loop25.device      14.267s dev-loop23.device      14.192s dev-loop24.device      14.156s dev-loop29.device      14.133s dev-loop16.device      14.065s dev-loop31.device      14.059s dev-loop28.device      13.821s dev-loop20.device      13.531s dev-loop22.device      13.495s dev-loop14.device      13.364s dev-loop18.device   What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10.


I entered sudo software-properties-gtk on terminal but software & updates not opened. And this command (sudo software-properties-gtk) shows this error.  Traceback (most recent call last):   File "/usr/bin/software-properties-gtk", line 101, in <module>     app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)   File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 98, in __init__     SoftwareProperties.__init__(self, options=options, datadir=datadir)   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__     self.reload_sourceslist()   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist     self.distro.get_sources(self.sourceslist)       File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources     (self.id, self.codename)) aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/trusty .   Also I want to mention that just few day before i upgrade from ubuntu 13.04 to ubuntu 13.10. And also shows 14.04 error rather than 13.10 .... Thanks in advance.

When I attempt to install anything using apt-get I get the following error:  Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 60, in <module>     sp = SoftwareProperties()      File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 90, in __init__     self.reload_sourceslist()   File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 538, in reload_sourceslist     self.distro.get_sources(self.sourceslist)       File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources     raise NoDistroTemplateException("Error: could not find a " aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template   Any idea what this means and how to resolve it?


What's the difference between "cannot" and "can not?"  Don't they mean the same? It's kind of crazy if they don't.   We learned all about it in 6th grade, but you know how that goes: in one ear and out the other.

Why is “cannot” spelled as one word whereas other similar constructions such as “do not,” “will not,” “shall not,” “may not” and “must not” are spelled as two words (unless they are contracted as “don’t” and so on)?  (I know that languages are not always logical, so I would not be too surprised if there is no known reason for this.  But I am asking this in the hope that there is some explanation.)


May we write $\sqrt{x^2}=\pm x$.        Is  $\sqrt{x^2}=\sqrt{(\pm x)^2}=\pm{x}$ true ?  But we write $\sqrt{x^2}=|x|=x$  What is the actual logic?

Good-morning Math Exchange (and good evening to some!)  I have a very basic question that is confusing me.   At school I was told that $\sqrt {a^2} = \pm a$  However, does this mean that $\sqrt {a^2} = +2$ *and*$-2$ or does it mean: $\sqrt {a^2} = +2$ *OR*$-2$  Is it wrong to say 'and'? What are the implications of choosing 'and'/'or'  Any help would be greatly appreciated. Thanks in advance and enjoy the rest of your day :)


I need to complete references for an assignment in APA format, but one of the books has an uppercase word in it and I'm not sure if it should remain uppercase or be changed to lowercase:  The SAGE Handbook of Grounded Theory, by Antony Bryant and Kathy Charmaz  In this context, SAGE is the name of the publishing company () and the origin of the name is that it comes from the first two letters of the founders names: SAra Miller and GEorge McCune. So the company name is meant to be capitalised normally.   However, APA states book titles should use sentence-case, with capitalisation for proper nouns...

I am using APA and need to cite an article from a conference which has a capitalized abbreviation in its name:  Proceedings of the 1992 ACM/IEEE Conference on Supercomputing    I can't find information on how to handle abbreviations in the reference entry. My Biblatex code is this:  @inproceedings{schutze_1992,     author = {Schütze, H},     year = {1992},     pages = {787 - 796},     title = {Dimensions of Meaning},     booktitle = {Proceedings of the 1992 {ACM/IEEE} Conference on Supercomputing},     editor = {Robert Werner},     location = {Los Alamitos, CA, USA},     publisher = {IEEE Computer Society Press} }   On suspicion, I manually kept the abbreviations capitalized, producing this output    But per default ACM/IEEE is not capitalized by Biblatex.  What is correct?


I'm trying to something like a kiosk.  So, I'm creating a custom install of Ubuntu Desktop 14.04 using Ubuntu-Builder, and I'm simply trying to have a program start up right on boot. I do not want the global menu bar on top to display, or the side bar with the short cuts to applications to display. I just want a program to execute in full screen, even if the user exits the program. The program already runs in full screen by the way.  I've tried removing Unity, and when I do that, when Ubuntu boots up, it says that you cannot log into Ubuntu. Does anyone have any suggestions?  Here's what I've tried:  sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-* unity-scope-*   I'm also having difficulties having the program boot on start up, because I'm used to adding the program to execute to the users .profile. Any suggestions for this as well?  Thanks in advance.

I would like to customize ubuntu for a library, they only want to display a web browser with their site in full screen.  No address bar, no button user can only click the link on the page.  If library's staff enter admin user name and password they can change any settings in ubuntu.  Any suggestion or usefully link is much appreciated.


I am a student in Mechanical department and I took today a lesson with a title of Orbital motion. I need a good mechanics reference that discusses this topic.

What are some good books for learning the concepts of Kinematics, Newton laws, 2D Motion of Object etc.?


Please help, I had a questing regarding DNS delegation and CNAME. Is it possible to CNAME parent domain to subdomain example I had domain example.com and I want to CNAME it to sub.example.com. The parent domain configuration like below: Domain: example.co.id Record: @ IN NS ns1.example.co.id. ns1 IN A IP_PUBLIC  www.example.co.id. IN CNAME www.sub.example.co.id. example.co.id. IN CNAME sub.example.co.id.  $ORIGIN sub.example.co.id. @ IN NS ns1.sub.example.co.id. @ IN NS ns2.sub.example.co.id. ns1.sub.example.co.id. IN A IP_ISP1 ns2.sub.example.co.id. IN A IP_ISP2  And subdomain configuration like this: DNS: Domain: sub.example.co.id Record: @ IN NS ns1.sub.example.co.id. @ IN NS ns2.sub.example.co.id. ns1 IN A IP_ISP1 ns2 IN A IP_ISP2  www.sub.example.co.id. IN A IP_ISP1 www.sub.example.co.id. IN A IP_ISP2 sub.example.co.id. IN A IP_ISP1 sub.example.co.id. IN A IP_ISP2  I had tried lab in  on bind9 look like the bind9 confused or looped. I had case previously we had record  CNAME to example.com and now we add sub domain and move all service from example.com to sub.example.com without remove original domain name. Our previous DNS server on cloudflare and now we want CNAME and delegate all service to our load balancer as subdomain. Thanks and sorry for bad my bad grammar.

This is a  about CNAMEs at the apices (or roots) of zones   It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice.  Example: example.com. IN CNAME ithurts.example.net.  In a best case scenario nameserver software might refuse to load the configuration, and in the worst case it might accept this configuration and invalidate the configuration for example.com.  Recently I had a webhosting company pass instructions to a business unit that we needed to CNAME the apex of our domain to a new record. Knowing that this would be a suicide config when fed to BIND, I advised them that we would not be able to comply and that this was bunk advice in general. The webhosting company took the stance that it is not outright forbidden by standard defining RFCs and that their software supports it. If we could not CNAME the apex, their advice was to have no apex record at all and they would not provide a redirecting webserver. ...What?  Most of us know that  insists that A CNAME record is not allowed to coexist with any other data., but let's be honest with ourselves here, that RFC is only Informational. The closest I know to verbiage that forbids the practice is from :     If a CNAME RR is present at a node, no other data should be   present; this ensures that the data for a canonical name and its aliases   cannot be different.   Unfortunately I've been in the industry long enough to know that "should not" is not the same as "must not", and that's enough rope for most software designers to hang themselves with. Knowing that anything short of a concise link to a slam dunk would be a waste of my time, I ended up letting the company get away with a scolding for recommending configurations that could break commonly used software without proper disclosure.  This brings us to the Q&A. For once I'd like us to get really technical about the insanity of apex CNAMEs, and not skirt around the issue like we usually do when someone posts on the subject.  is off limits, as are any other Informational RFC applicable here that I didn't think of. Let's shut this baby down.


I have a custom form created with Form API. In this form, I have a file field with the type managed_file $form['fichiers_justificatif'] = array(     '#type' => 'managed_file',     '#title' => 'justificatifs',     '#upload_validators' => $validators,     '#upload_location' => 'private://justificatifs',     '#multiple' => TRUE,     '#description' => 'types de fichier autorisés : png gif jpg jpeg pdf doc', );  It works well, I can upload a file, get its name and url. But I don’t know how to have a multiple file upload like the one with see in admin or with the webform module. Example of webform module which handle multiple files upload :  I’ve tried to add '#multiple' => TRUE, but I have an Ajax error after  the 2nd file is submitted. I’ve tried this module  but still have AJAX issue. I’ve tried dropzone.js but I'm not satisfied with it since it adds an other interface for file (different from the one in admin). User are confused there is an other interface for files. What could be the better way to handle this ?

I'm trying to do a very simple thing (seems not that simple at all) in my custom form, to add multiple files using the managed_file form api. Like in the admin, select a file, upload, then a new input file appears.  But I can't achieve that... do I need a callback ???      'gallery' => array(         '#type' => 'managed_file',           '#name' => 'gallery[]',         '#title' => t('Gallery'),         '#upload_location' => 'public://',         '#attributes' => array(             'multiple' => 'multiple',         ),     ),   Thanks


I'm thinking the left hand side is picking k people from n people and then picking d people from k people. For the right hand side, we have picking d people from n people first and this is where I'm stuck. I think I must explain $2^ {(n-d)}$ to be equal as picking k people from n people

I need to show that $$\sum\limits_{k=i}^{n}\binom{n}{k}\binom{k}{i} = \binom{n}{i}2^{n-i}$$  I know that $\displaystyle \binom{n}{k}\binom{k}{i}$ is counting the number of ways to pick $k$ elements from $n$ and then $i$ elements from those $k$, so $\displaystyle \sum\limits_{k=i}^{n}\binom{n}{k}\binom{k}{i}$ is counting the number of ways to do that $\forall k$.  I know that $\displaystyle \binom{n}{i} = \binom{n}{n-i}$ and that $2^{n-i}$ is the number of elements in the power set for $[n]\setminus[i]$.  How do I show that both sides are equivalent? I'm stumped on this one. Could anyone give me a pointer in the right direction?


I am Getting a Exception in My Swipe Controller Script name Dot.Here is the Code  using UnityEngine;   public class Dot : MonoBehaviour  { private Vector2 firstTouchPosition; private Vector2 finalTouchPosition;  public float swipeAngle =0; // Start is called before the first frame update void Start() {     firstTouchPosition = new Vector2(0,0);     finalTouchPosition = new Vector2(0,0); }  // Update is called once per frame void Update() {  }   void OnMouseDown() {     firstTouchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);      Debug.Log(firstTouchPosition); }  void OnMouseUp() {     finalTouchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);     Debug.Log(finalTouchPosition);     CalculateAngle(); }  void CalculateAngle() {     swipeAngle = Mathf.Atan2(finalTouchPosition.y - firstTouchPosition.y, finalTouchPosition.x - firstTouchPosition.x)*180/Mathf.PI;     Debug.Log(swipeAngle); }  }     Please Tell ME What Im Doing Wrong.

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


I've started using dual boot with windows and ubuntu. Windows and Ubuntu 20 are stored in seperate partitions on the same SSD and there is a seperate sda2 (D drive) where I store the rest of my files. After a reboot - I cannot access shortcuts made from the sda2 with the error "Unable to find the requested file". If I go to "Other locations" and the access the sda2 form there it seems to synch and then the shortcuts work. Does anyone have any clue on how to resolve this permanently and what is the baseline issue here? Thanks.

I have two NTFS partitions, and I don't want to mount them manually every-time I start Ubuntu.   How can I do this?  Is there a tool or a code to use?   If so, is it safe to automount? specially when they are being used by another OS?


I want to create a table valued function in SQL Server, which I want to return data in comma separated values.  For example table: tbl  ID | Value ---+-------  1 | 100  1 | 200  1 | 300       1 | 400    Now when I execute the query using the function Func1(value)  SELECT Func1(Value)  FROM tbl  WHERE ID = 1   Output that I want is: 100,200,300,400

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


My town doesn't have any pokéstops or gyms. Somehow it has 700 players but no pokéstops or gyms. Players can't go out to get some pokéballs or anything else because it's too far away from my town.   How can I get pokéstops or gyms added to my town?

How do I add a Pokestop to an area that has none? It is an area where there are tons of businesses but unless I drive about a mile from my work area there are no Pokestops.   I want to add one since we have 1000's of people in the work area, a lot of them play Pokemon Go, and we all can't leave work to drive a mile away to get to a Pokestop area.   Plus it would be nice to be able to capture Pokemon on our breaks.


I can't log in to my MacBook Pro. The log-in screen now has question marks in place of letters and won't allow me to type in the password box.

My log-in screen appears with question marks instead of the usual text. (See screen shot - I have removed my log-in name from the picture).  I am using MacOS Sierra 10.12.3 on a MacBook Pro (early 2011).


For the purpose of sterilization I am using 70% alcohol (ethanol) for a really very long time. but whenever I ask about why actually we are using 70% alcohol till now I did not get a very specific answer. So why actually are we using 70% alcohol for sterilization?

Are other concentrations (say 80%) less effective,or is this just for convenient manufacturing? Is the concentration chosen only because it is less volatile than 100 percent ethanol and hence safer?


I want to dynamically adjust the height of DIV container for fill the remaining space between the bottom of the page and the content above.  I've tried to use height:100% or height:calc(100%- XX); but the height of the segment above is not defined. How can I resize the container below?  So, in this pen, I want to remove the scrollbar and show the content in the entire page.
Ciao

here

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


please give sql query to change or rename the sql database name

The MySQL manual at  covers this.  Usually I just dump the database and reimport it with a new name. This is not an option for very big databases. Apparently RENAME {DATABASE | SCHEMA} db_name TO new_db_name; .  This needs to work with , which stores things very differently than .


Is it possible to work on QGIS with QTCreator since most of the build documentation is assuming Linux environment and I have to use windows 7?  all of the old posts in this forum didn't solve this issue it is still not clear how can I integrate Qgis with QTcreator.

I am a 15 year veteran of Java making my first entry in to C++ applications.  I have a specific need to develop a desktop application that produces graphics type output as well as displaying embedded maps.  It looks like Qt and QGIS API are exactly what I need to get this going.  I have been playing around with Qt Creator and generated several of the tutorials without too much problems.  Now I am trying my first Qt project that incorporates the QGIS API.  I am really stuck.  I can't figure out where the libraries are that contains the QGIS modules.  I think I have an idea how to configure the Qt project if I could find QGIS.  I found all the .h files but some of what I need just aren't there.  There are some good examples of code that shows how to code with QGIS classes.  But I can't find anything that explains how to set the project up.  Could someone please help guide me through setting up a project in Qt Creator that will allow me to incorporate the QGIS modules?  I have been searching everywhere.  Google can be a strange beast.  Sometimes you find what you need on the first search.  Other times it just never happens.


He did not appreciate the men taking charge of the project.  vs.  He did not appreciate the men's  taking charge of the project. If sentence 2 is technically correct it seems awfully silly and affected.

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


Let $G$ be a group such that for all $x,y \in G, (xy)^3 = x^3y^3$ and there's no element with order $3$. Show that $xy^2=y^2x$ and $G$ is abelian. Any idea or some hints? Thanks in advanced.

Suppose a finite group has the property that for every $x, y$, it follows that   \begin{equation*} (xy)^3 = x^3 y^3. \end{equation*}  How do you prove that it is abelian?    Edit: I recall that the correct exercise needed in addition that the order of the group is not divisible by 3.


I have a problem with my USB flash drive. I created an Ubuntu 16.04 installation on the drive using the Ubuntu standard tool to "Create a Bootable Disk", and now I can't format this USB drive.  When I delete the Ubuntu installation from this drive it just keeps coming back and and free memory on this drive is 0 mb.   How can I fix it?

I have a 8 GB pendrive. I used to write raw data into the pendrive (without creating filesystem) using the dd command.    Today, when I inserted the pen drive, the I am unable to write anything on to it.  When I open gparted it is showing the total space on the pen drive as 500 MB. I am unable to create a new partition table or a partition on the pen drive now.   Here is the fdisk -l output.   Disk /dev/sdb: 0 MB, 512000 bytes 255 heads, 63 sectors/track, 0 cylinders, total 1000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00095df6   What's wrong with the pen drive? How can I recover the lost space?   Device Boot      Start         End      Blocks   Id  System   When I open gnome-disks, it shows the total space as 8 GB but when I try to create a new partition using it, it shows the following error:  Error creating partition on /dev/sdb: Command-line parted --align optimal --script "/dev/sdb" "mkpart primary ext2 1MiB 7969177599b"' exited with non-zero exit status 1: Error: The location 7969177599b is outside of the device /dev/sdb.  (udisks-error-quark, 0)


Recently my Ubuntu 14.04  LTS stopped going further than plymouth.  It goes like this:   Process BIOS process grub menu ( I choose 1st option called Ubuntu) black screen for couple of seconds plymouth screen black screen for long time (2 min) I terminate process   Does anyone have an idea how to solve this issue?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I encountered the following version of \mathcal{H} and like it a lot:    This is slightly different from the usual one from Computer Modern font:     I have done some search and tried different fonts, e.g., mtpro2, mathptmx, and mathpazo etc., but could not find the first \mathcal{H}.  Here is my question: Is there a way that I could get the first one? Is it some sort of "old \mathcal symbols"?  Any help would be highly appreciated.  PS: I have found an example for the source of the first \mathcal{H} .  I downloaded the *.tex file of that pdf, and here are all the packages used there:  \documentclass[11pt]{article}   \usepackage{xcolor}   \definecolor{labelkey}{rgb}{0,0.08,0.45}   \definecolor{refkey}{rgb}{0,0.6,0.0}   \definecolor{Brown}{rgb}{0.45,0.0,0.05}   \definecolor{dgreen}{rgb}{0.00,0.40,0.00}   \definecolor{dblue}{rgb}{0,0.08,0.45}    \usepackage{amsmath}   \usepackage{amssymb}   \usepackage{theorem}   Of course, typing \mathcal{H} in this setting yields the second one, but somehow the \mathcal{H} in the link looks like this:     So I guess there must be something "weird" going on here.  PS:  I often see the first one in papers published by Springer, e.g.,  (it appears right in the title)   I also saw the first one \mathcal{H} in this question .

Why, with Springer's  svmono template, do the letters written with the \mathcal font change? It seems that \mathcal becomes \mathscr.  Edit: Look at this image:    With the svmono template \mathcal returns the first alphabet and not the (classical) latter.  Here the packages I use in my document:  \documentclass[envcountsame,envcountchap]{svmono}  \usepackage{subfiles} \usepackage[utf8]{inputenc}  \usepackage{mathptmx} \usepackage[bottom]{footmisc} \usepackage{microtype} \usepackage{stmaryrd}    \usepackage{amsmath} \usepackage{courier} \usepackage{mathrsfs}  \usepackage{amssymb}  \usepackage[all,cmtip]{xy} \usepackage{faktor} \usepackage{graphicx} \usepackage{mathdots} \usepackage[colorlinks={true},linkcolor={blue},citecolor={blue}]{hyperref} \usepackage[frame,width=15truecm,height=23.5truecm,center]{crop}   With this settings I have the above strange behavior of \mathcal.


There is a camera technique which is fairly common now but was rather unusual and subtly effective when it was first used. Of course I don't know the name of it or how it is done (hence my question).  It is usually used with one or two persons in focus in the foreground against a fairly deep background. In the camera move, the background begins a zoom in, but the foreground figures maintain their relative positions within the frame. It has a subtle effect of intensifying a scene, roughly a visual equivalent of "turning up the volume".  I recall reading sometime ago that it involves shifting the picture plane of the camera while at the same time maintaining focus on the foreground but I am likely misremembering or didn't completely understand it. There is no CGI or anything like that involved – it is purely mechanical and optical.  Anyone know what this technique is called, how it is done, who invented or popularized it and also I guess, if it can be achieved with the digital cameras now in wide use?

I don't have a youtube link (I think "The shining" has such a scene), but you all probably know this effect, the actor is zoomed in by the camera while the background zoomed out, probably by zoom in camera while the camera increases distance. How is this effect called and exactly made. Also, how is it interpreted by the audience (the actor is shocked, engrossed,...)?


I bought My 2017 MacBook pro off eBay without an SSD in it. I bought the converter and SSD but it doesn't have an os installed and I am currently using a windows laptop. Should I just buy a bootable os on a flash drive or is there a cheaper way of downloading/putting the os on the SSD. If I have to buy a bootable flash drive which version of os should I get?

I recently installed Windows to my Mac and I have just formatted my hard drive on windows mistakenly while I was making a new hard drive partition on Windows. Now I cannot boot to macOS anymore.   How do I reinstall macOS to my Mac?


I have a list of 5 million string elements, which are stored as a pickle object.  a = ['https://en.wikipedia.org/wiki/Data_structure','https://en.wikipedia.org/wiki/Data_mining','https://en.wikipedia.org/wiki/Statistical_learning_theory','https://en.wikipedia.org/wiki/Machine_learning','https://en.wikipedia.org/wiki/Computer_science','https://en.wikipedia.org/wiki/Information_theory','https://en.wikipedia.org/wiki/Statistics','https://en.wikipedia.org/wiki/Mathematics','https://en.wikipedia.org/wiki/Signal_processing','https://en.wikipedia.org/wiki/Sorting_algorithm','https://en.wikipedia.org/wiki/Data_structure','https://en.wikipedia.org/wiki/Quicksort','https://en.wikipedia.org/wiki/Merge_sort','https://en.wikipedia.org/wiki/Heapsort','https://en.wikipedia.org/wiki/Insertion_sort','https://en.wikipedia.org/wiki/Introsort','https://en.wikipedia.org/wiki/Selection_sort','https://en.wikipedia.org/wiki/Timsort','https://en.wikipedia.org/wiki/Cubesort','https://en.wikipedia.org/wiki/Shellsort']   To remove duplicates, I use set(a), then I made it a list again through list(set(a)).   My question is:  Even if I restart python, and read the list from the pickle file, will the order of list(set(a)) be the same every time?  I'm eager to know how this hash -> list ordering works.     I tested with a small dataset and it seems to have a consistent ordering.  In [50]: a = ['x','y','z','k']  In [51]: a ['x', 'y', 'z', 'k']  In [52]: list(set(a)) ['y', 'x', 'k', 'z']  In [53]: b=list(set(a))  In [54]: list(set(b)) ['y', 'x', 'k', 'z']  In [55]: del b  In [56]: b=list(set(a))  In [57]: b ['y', 'x', 'k', 'z']

Does anyone know how the built in dictionary type for python is implemented?  My understanding is that it is some sort of hash table, but I haven't been able to find any sort of definitive answer.


I need open new tab in chromium, in other display, from script terminal. When I open, my terminal receive logs from Xorg or GTK (I don't know who print it). I used the command: DISPLAY=:0 chromium-browser &  OK! This command open Chromium fine, but my script stay locked because log is sent to my terminal, like below:  --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= Fontconfig warning: "/etc/fonts/fonts.conf", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf [6423:6423:0426/131721.287597:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context. [6423:6464:0426/131721.607400:ERROR:data_store_impl.cc(130)] Failed to open Data Reduction Proxy DB: 3 [6423:6529:0426/131721.614429:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.Notifications.GetCapabilities: object_path= /org/freedesktop/Notifications: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files ATTENTION: default value of option force_s3tc_enable overridden by environment. [6541:6541:0426/131723.171003:ERROR:sandbox_linux.cc(375)] InitializeSandbox() called with multiple threads in process gpu-process. [6423:6423:0426/131723.532741:ERROR:CONSOLE(14)] "Uncaught TypeError: Cannot read property 'W' of null", source: https://www.google.com/_/chrome/newtab?ie=UTF-8 (14) [6423:6477:0426/131723.719742:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [6423:6477:0426/131723.775816:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [6423:6477:0426/131724.152088:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)  This behavior occurs with other application, like lxpanel. Please, how I disable this log or open any application in other display, without log.

I ran dolphin like this:  dolphin . &   I see messages in the console like these:  QPixmap::scaled: Pixmap is a null pixmap   How can I keep the console clean or silent?


Here I wrote a program that will print longest palindromic substring in a given string.. Here can you suggest me how to improve performance of this program..  void longestPalindrome(){      String str = "malayalam";     String pal = "";     int c = 0;     String arr[] = new String[100];     for(int i=0;i<str.length();i++){         for(int j=i;j<str.length();j++){             if(str.charAt(i)==str.charAt(j)){                 pal = str.substring(i,j+1);                 if(pal.length()>2 && checkPalindrome(pal)){                     System.out.println(pal);                     arr[c] = pal;                     c=c+1;                 }                 pal = "";             }         }     }     String newArray[] = new String[c];     System.out.print("The Palindromes are!!-->>>");     for(int k=0;k<c;k++){         newArray[k] = arr[k];         System.out.print(newArray[k]+",");     }     System.out.println();     if(newArray.length>1){     for(int i=0;i<newArray.length;i++){         for(int j=i+1;j<newArray.length;j++)             if(newArray[i].length() < newArray[j].length()){                 String temp = newArray[i];                 newArray[i] = newArray[j];                 newArray[j] = temp;             }     }     }     if(newArray.length>0)         System.out.println("The LONGEST PALINDROME --- "+newArray[0]);

I'd prefer as little formal definition as possible and simple mathematics.


I've just installed Ubuntu 18.04 on a second laptop (Asus 56C).  Super-Left and Super-Right work well on all windows but not on a Nautilus window. They work fine on the first laptop, I didn't do anything special for this second install (same applications on both computers ).

I'm running Ubuntu 18.04 LTS with GNOME Shell. Nautilus does not want to occupy 50% (left or right) of the screen sized at 1366x768.    Other applications (such as GNOME Terminal, Eye of GNOME, Gedit) are normally snapping to the left/right half of the screen.  But Nautilus can be resized to the width lower than half of screen (I can get 650 px, which is smaller than 1366/2 = 683 px).  The first usable screen resolution seems to be 1400x1050, then goes 1440x900. But large amount of current devices .  Is it just me?     Updates: 1. standard shortcut Super+← or Super+→ do not work too. 2. I reported  which has linked upstream . 3. It does not work on GNOME FlashBack session too.


After adding a website to brownbook.net and then claiming the business, It has not yet been indexed by google, and 2 months has passed.  I am newish to SEO and have worked out to check the robots.txt / nofollow / and meta tag no index, as well as working out post rendered java script link filling, yet brownbook seems good for a dofollow.  Mark

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


Is there a reason for this? Wouldn't that have been a helpful thing to say?

Is the reason neither Yoda or Obi-Wan thought it a good idea to inform Luke that      his father and Vader were the same person   ever discussed? Were they hoping that       Vader himself   didn't realize this, and that it wouldn't come up? Or was there an explicit rationale behind hiding this fact from Luke?  Wouldn't it seem risky to send Luke in blind, with the chance of him finding out without their support, considering how emotional attachment can be a door into the Dark Side?


For example: if one program had an alert, another separate program pop up when that alarm goes off?

How can I launch an application using C#?  Requirements: Must work on  and .  I have seen a sample from DinnerNow.net sampler that only works in Windows Vista.


Let $\omega$ be a complex number such that $\omega^5 = 1$ and $\omega \neq 1$. Find $$\frac{\omega}{1 - \omega^2} + \frac{\omega^2}{1 - \omega^4} + \frac{\omega^3}{1 - \omega} + \frac{\omega^4}{1 - \omega^3}$$  I've been having trouble with this unit, need help  on solving this problem.

Let $\omega$ be a complex number such that $\omega^5 = 1$ and $\omega \neq 1$. Find   $$\frac{\omega}{1 - \omega^2} + \frac{\omega^2}{1 - \omega^4} + \frac{\omega^3}{1 - \omega} + \frac{\omega^4}{1 - \omega^3}.$$   I have tried adding the first two and the second two separately, then adding those sums but how do I get a numerical value as the answer?   Thanks


So I'd like to add always a folder to the Path. I'm not a huge linux wizard but I think I would need to always write the "export PATH=$PATH:(directory)" line when I log in. But I need this to be on when I'm starting up, and I don't want to bother with Terminal everytime. So looking into it a little, I found that i should add that to .bash_profile even though I'm not sure what it is or where it's located. In the home directory there's only a .bashrc file. Hope you can help me, thanks

How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


Today I got a Stack Overflow link in my email and when I opened it took some time loading the app (as I had set it to open stack URLs in the Stack Exchange app). The same URL if I open from Gmail in Chrome, it loads the page faster then before.   There is no doubt that the app is pretty awesome. Thumbs_up to SE for it.  Is there anything that I can do on app but not on mobile site of SE?

I'd like to understand the reason (pros and cons) why Stack Exchange went with a native mobile app and not a hybrid app (using WebView and some native features).   I'm not saying it's a bad thing, I just would love to read about the decision process and arguments for and against. For me intuitively a hybrid app would have made more sense for a site like this.


Edit: Trying solution after solution found on these forums with the bootloader has apparently corrupted the bootloader. I missed pressing shift twice in a row and on the third attempt, the bios does not recognize a bootloader anymore. So it looks like I'm starting from scratch.  I am new to Ubuntu and I am using a 1440p & 1080p multi-monitor display setup. Using the default drivers (neuveau?), I am unable to get my display working because when I change my 1080p screen to be in portrait mode instead of the default landscape mode, my 1440p monitor goes black (It's a Crossover 27").  As a result, I assumed that the neuveau drivers won't cut it for my setup. So, I installed NVIDIA drivers for my GTX 680 using this guide:   After installation and reboot, both of my monitors are now black. I can hear the Ubuntu jingle at the log-in screen. Pressing CTRL+ALT+F1 results in a black screen with a flashing white underscore.   Using just one monitor procures the same results.   I am at a loss of where to go next.   Thanks for your help.  Edit: I decided to try running the following command (In recovery mode):  sudo apt-get purge nvidia-current   This did not resolve my issue. I still boot into a black screen.  2nd Edit: Things are getting stranger now. After attempting to uninstall the video drivers, I booted into recovery mode to try to update my system and reinstall them. After trying the networking option, Ubuntu froze there. So I did Cntrl+C and Ubuntu booted. My primary monitor was still black, but my secondary somehow worked. After logging in, my driver now says GTX 680.  So, I rebooted, and now I'm still back at the black screen on both monitors.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


For creating my simple mesh, I need to outline it first with vertices and edges, and then fill in the polygons.   I am struggling to do simple things that should be the basics and foundations of 3d modeling in blender.   I want to be able to    extrude a vertex to a given length or until it intersects with something or, create a vertex at the intersection of two freestanding edges or, snap/use the knife tool on freestanding vertices/edges   What in the world is blender's paradigm? I imagine professionals being very precise and efficient in their workflow, but these tools do not lend themselves to what I had in mind.  Why do I feel like I am being punished for trying to think logically? How is creating vertices an oversight in the design of this software?  EDIT: not a possible duplicate of the other question FYI, already explained above, not dealing with meshes or faces, dealing with vertices and edges, written in bold. Trying to gain a sense of the underlying principles of the software and not be dismissed.

I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed.


$$1+ \frac12 + \frac14+\dots+\frac1{2^n}$$  To find the sum of the equation you have to find $n$, the number of terms in the geometric sequence and I don't know how...  The answer in the text book is $2-\frac1{2^n}$.

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I'm using java8, SpringBoot 2, and JPA2 and I'm run in a strange problem. Suppose the following code: public void doSome() {     List<Integer> arr = new ArrayList<>(Arrays.asList(1,2,3,4,5));     List<Integer> arr2 = new ArrayList<>(Arrays.asList(1,2,3,4));      otherMethod(arr, arr2);     System.out.println(arr); }  In the same class I have the otherMethod() and with this version: public void otherMethod(List<Integer> arr, List<Integer> arr2) {     arr = arr.stream().filter(x -> !arr2.contains(x)).collect(Collectors.toList());     System.out.println(arr); // here print just 5 }  When code flow bring me back to doSome(): System.out.println(arr); // print [1,2,3,4,5]  If I change my otherMethod() as follows: public void otherMethod(List<Integer> arr, List<Integer> arr2) { //    arr = arr.stream().filter(x -> !arr2.contains(x)).collect(Collectors.toList());     arr.removeIf(x -> x < 3);     System.out.println(arr); // print [3,4,5] }  and the changes affect the Object I have passed by reference, in doSome() method I see: System.out.println(arr); // print [3,4,5]  I don't understand why with arr.stream().filter(x -> !arr2.contains(x)).collect(Collectors.toList()) changes doesn't affect my Object passed by reference. where am I wrong?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


If I have something like this:  root        27  0.0  0.0      0     0 ?        S    04:06   0:00 [migration/3] root        28  0.0  0.0      0     0 ?        S    04:06   0:00 [ksoftirqd/3] root        30  0.0  0.0      0     0 ?        S<   04:06   0:00 [kworker/3:0H]   What can these numbers(/3 or /3:0H) can tell me?  man ps, man top - nothing said about this.

On Linux 3.11.0-13-generic running on top of a dual socket Xeon X5650 hexa core board, htop shows different kworker threads. Sorted by names (I tweaked the result I am showing here a little bit to have the threads on core 2 before the ones on core 10), here is the result:  kworker/0:0H kworker/0:1 kworker/0:2 kworker/1:0 kworker/1:0H kworker/1:1 kworker/2:0 kworker/2:0H kworker/2:1 ..... kworker/11:0 kworker/11:0H kworker/11:1 kworker/u48:0 kworker/u49:4 kworker/u49:5 kworker/u50:1 kworker/u50:2 .......   The threads whose names start with a number are pinned to the core with the same number. So the first number is the core running the thread and I am wondering what the symbol after : (0 or 0H or 1) is for these threads?  I am also wondering what is the meaning of the uXX:Y symbols?  I have only a vague knowledge of what kworker threads do: they handle asynchronous events caused by system calls performing I/O. Are they documented somewhere?


Trying to be helpful I have voted to reopen several questions today and so I have no more undelete votes.  The side effect of this is that I cannot undelete my answers, which is a pain when I delete them to fix and error and then want to undelete them again. I just get the message "You've reached the maximum number of 3 Undeletion votes today; come back in 6 hours"  Although I haven't checked, I would assume that as delete votes are also rate limited, the reverse is also true and you are not able to delete your answer if you have voted to delete x questions.  Given that deleting/undeleting your own questions doesn't (as far as I know) add to the limit, why is it affected by it.

The  kicked in today but they also apply to deleting one's own answers. From the discussion I gather that this new rule is intended to protect valuable questions.  As it works now it stops me from cleaning up noise and mistakes.  So, please make a distinction between deleting questions and deleting one's own answers.


I swapped the caps lock and the esc key of the laptop keyboard using gnome tweaks but this do not effect the external keyboard. how to swap these keys for the external keyboard. I'm new to ubuntu so a detailed answer will of great help.

I have caps-lock key remapped to control, which usually works fine, but after some uptime and one/more suspend/awake cycles* this mapping breaks, and caps-lock reverts back to the default behavior -- i.e. turning on the led and capitalizing whatever I type. (Even though the Tweaks UI still shows it as being mapped to Ctrl -- see picture below.)  Questions:  Is this a known issue (with maybe a known fix)? (Could not find anything relevant with a quick search.) Is there a way to debug the problem, preferably from the command line?  *Remark: I'm not sure it is the suspend/awake cycle that causes the problem, but I can't connect it to anything else... Remark2: removing and readding the mapping (or rebooting) solves the problem, but it would be nice to find a more permanent solution.


My account was th 8. I had connected it to fb. Now my coc has been deleted. When I installed it. My old account is not coming. How do I get it back?

I unintentionally and stupidly wiped my Clash of Clans game data. I went to Application Manager on my Android and clicked 'Clear data'. (I used this for fixes before and it never started a new game.)   Now, my level 60 or so base has been wiped as if was to start a new game. Have I doomed myself to starting again or is there a way in which I can retrieve my old game save? Maybe by contacting Supercell? I have a snapshot of my base.


I would like to know if I have a domain foo.bar and want to host the main email server at other provider, such as by google, simultaneously having another email server subdomain.foo.bar locally.   In other words, emails to user@foo.bar will be handled by external host while emails to user@subdomain.foo.bar will be handled by a local email server. Both cater to global clients.  Is it a usual practice to do so?

Let's say I have a domain that I run a web application on, for example cranketywidgets.com, and I'm using  for handling email for people working on that domain, for example, support@ cranketywidgets.com, jane@cranketywidgets.com, joe@cranketywidgets.com and so on.  Google's own mail services aren't always the best for sending automated reminder emails, comment notifications and so on, so the current solution I plan to pursue is to create a separate subdomain called mailer.cranketywidgets.com, run a mail server off it, and create a few accounts specifically for sending these kinds of emails.  What should the MX records and A records look like here for this?  I'm somewhat confused by the fact that MX records can be names, but that they must eventually resolve to an A record. What should the records look like here?  cranketywidgets.com - A record to actual server like 10.24.233.214  cranketywidgets.com - MX records for Google's email applications  mailer.cranketywidgets.com - MX name pointing to server's IP address  I would greatly appeciate some help on this - the answer seems like it'll be obvious, but email spam is a difficult problem to solve.


I have a query stored in a *.sql file on my computer and I want to access the select output from a query.   I found something about using @ before the file path but I can't figure it out.   SELECT * FROM @FILEPATH

I was trying to follow some instructions today, and it starts with the comment    REM  In SQLPlus I manually copy in each line and execute it.   That's nice, I don't have SQLPlus, I have SQLDeveloper.  The lines that were pasted in were of the type:   @\\server\dir\dir\dir\commandfile1.txt; COMMIT;   ...etc.  It didn't like it when I tried that in a SQL window.  I opened up and pasted in the commands by hand, and it wasn't happy with that either.  (Did I mention that I'm not so good with this application nor Oracle, but that everyone else was out today?)  The files there started with code like:   rem set echo on rem execute procedure_name ('parameter1', 'parameter2');   A co-worker did have SQLPlus, and together we got it resolved.  But, is there a way for me to do this with SQLDeveloper, so I'm not stuck if he's out too?


I'm trying to dynamically change the height of the textarea element but my code isn't working as expected.  What should happen:   As a new line appears, the textarea's height increases until it reaches its max height.  As you remove lines the textarea's height decreases until it reaches its min height.  What is happening:  The height increases as new lines are added but the textarea doesn't behave as expected when removing lines. It decreases much more slowly and doesn't reach the min height.    let textInput = document.querySelector(".text-input");  textInput.addEventListener('input', function() {   textInput.style.height = 'auto';   textInput.style.height = textInput.scrollHeight + 'px'; }); .text-input {   width: 100%;   max-height: 250px;   min-height: 100px;   resize: vertical;   box-sizing: border-box; } <textarea class="text-input"></textarea>     Edit  from the link posted. A simple fix is to add the following line     textInput.style.height = textInput.scrollHeight + 'px';

There was , which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the clientHeight value comes back as the full size of the textarea, not its contents.  The code from that page is below:  function FitToContent(id, maxHeight) {    var text = id && id.style ? id : document.getElementById(id);    if ( !text )       return;     var adjustedHeight = text.clientHeight;    if ( !maxHeight || maxHeight > adjustedHeight )    {       adjustedHeight = Math.max(text.scrollHeight, adjustedHeight);       if ( maxHeight )          adjustedHeight = Math.min(maxHeight, adjustedHeight);       if ( adjustedHeight > text.clientHeight )          text.style.height = adjustedHeight + "px";    } }  window.onload = function() {     document.getElementById("ta").onkeyup = function() {       FitToContent( this, 500 )     }; }


I have 2 lists here: list1 = [happy, sad, grumpy, mad] list2 = [2, 5, 6, 9]  I want to make it so that the numbers are assigned to the emotions? (happy is equal to 2, sad is equal to 5, etc). Ideally, I want to make it so you can compare items from list1, for example: if happy > sad:     print ("you are happy")  I want to make this code as efficient as possible, so I do not want to separately assign each variable from list1 a number.

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I am trying to write up a proof for the convergence of this recursive function. I was wondering if there exists a closed form.  Given first term in sequence is $\sqrt{2}$ and second is $\sqrt{2\sqrt{2}}$, and so on.

Prove that the sequence $\sqrt{2} , \sqrt{2\sqrt{2}},  \sqrt{2\sqrt{2\sqrt{2}}} \ $ converges to $2$.   My attempt  I proved that the sequence is increasing and bounded by $2$, can anyone help me show that the sequence converges to $2$? Thanks for your help.


I've perused quite a few posts on here and haven't found a precise answer to this, though there are many similar questions.   I am using TexMaker and trying to produce a list of references at the end of my document. Here's basically what I have:  In file.tex  \documentclass[12pt]{article} \begin{document} text \bibliographystyle{plain} \bibliography{refs} \end{document}   In refs.bib (stolen from another example; my .bib file is exported so I'm fairly certain the syntax is right).   @misc{ Nobody06,    author = "Nobody Jr",    title = "My Article",    year = "2006" }   I have tried several methods of compiling including latex bibtex latex pdflatex pdfViewer, among others. TexMaker finds no errors, but I get warnings at all of my citations: citation  on page # is undefined. A .bbl file is produced, but it is empty (literally no text whatsoever). My .blg file also appears to have no information in it whatsoever. One of the strangest things (IMO) is that TexMaker KNOWS that my citations exist because if I type \cite I get auto completions which match my citations.   I'm pretty new to using LaTeX so I'm don't assume I have tried something obvious, I probably haven't, though I HAVE tried pretty much everything that I found posted online...

I'm having some problems with my bibliography in Texmaker. My code is:  \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{natbib} \usepackage[utf8]{inputenc}     \usepackage{natbib} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \begin{document}  ....  \cite{Johnson} \bibliographystyle{plain} \bibliography{mybib}  \end{document}   I also created a new file (File > New) that I saved as mybib.bib:  @Article{Johnson, author = {Edgar G. Johnson and Alfred O. Nier}, title = {Angular Aberrations in Sector Shaped Electromagnetic Lenses for Focusing Beams of  Charged Particles}, journal = {Physical Review}, year = {1953}, volume = {91}, number = {1}, }  @phdthesis{Zoran, author = {Zoran Racic}, title = {\'Etude et essais du spectromÃ¨tre Ã  plasma {DYMIO} de la  mission {MARS 96}}, publisher = {UniversitÃ© Pierre et Marie Curie}, year = {1996} }   When I compile my .tex file, I only have a [?] appearing.  Could you tell me what my mistake is?


I have below label in my aspx page,  <asp:Label ID="lblMessage" runat="server" CssClass="msg"></asp:Label>   When it renders on page, it creates <span>...</span>  Is there anyway, not to generate this span tag?

How can I use the  tag within an ASP.NET application? I want it to be valid, accessible, and usable.  I understand the optimal HTML way is this:  Username: <input type="text" id="Username" runat="server" />   But if the above code is in an ASP.NET user control, the input ID will change, meaning the label's "for" attribute is useless. I could make the label tag a server control and set its "for" attribute in the code (Username.ClientID), but it seems like a lot of work for such a simple thing.  I've also seen this HTML used in the past:       Username     <input type="text" id="Username" runat="server" />    What is the proper approach?


While checking out the Stack Exchange app on Android, I noticed a discrepancy in the score in one of my tags () on Stack Overflow.   On the web, my score is 322:    In the app, my score is 336:    I don't know which one is correct though.  App version is 1.0.3

I checked yesterday and today the new homepage in the Android app. Very surprised I saw that I would almost reach a silver tag badge, that confused be because I always take a look on possible badges I can get. However I compared the score with the website and I got a total different results. See this two screenshots:


I am not allowed to use the integral test. Basically I need to find whether this is convergent or not. $$\sum _{n=3}^{\infty }\:\frac{1}{n\left(\ln n\right)\ln(\ln n)}$$  I tried using Bertrand's test since it seemed like it would be a good fit here but to no avail. Any thoughts?

I'm being asked to determine if $\displaystyle\sum\limits_{n=3}^\infty \frac1{n (\ln n)\ln(\ln n)}$ converges. So, using Cauchy's Condensation Test, I reduced the problem to one of determining the convergence of $\displaystyle\sum\limits_{n=3}^\infty\frac 1{n\ln (n\ln 2)}$. Am I on the right path, and how do I proceed from here?


Let $F$ be a field in $K$ and $\alpha, \beta \in K$ be arbitrary (we do not assume $\alpha$ and $\beta$ are algebraic). How do we prove that $$ F(\alpha, \beta) = \Big\{ \frac{f(\alpha,\beta)}{g(\alpha, \beta)} \big| f(\alpha,\beta), g(\alpha, \beta) \text{ are polynomial with variables $\alpha$ and $\beta$ with coefficients in } F \Big\} $$ Also if we assume $\alpha$ and $\beta$ are algebraic over $F$, can we simplify the expression to just $f(\alpha, \beta) \in F[\alpha, \beta]$?

If $K$ and $k$ are fields, $K\supset k$ is a field extension and $\alpha \in K$ is algebraic over $k$, then we denote by $k[\alpha]$ the set of elements of $K$ which can be obtained as polynomial expressions of $\alpha$.   $$k[\alpha] = \left\{P(\alpha): \quad P\in k[X]  \right\} $$  Also, we denote by $k(\alpha)$ the smallest subfield of $K$ containing both $k$ and $\{\alpha\}$. This is easily seen to be equal to the set of fractions of polynomial expressions in $\alpha$ (just thinking about the way the "smallest" subfield must be generated):  $$k(\alpha) = \left\{\dfrac{P(\alpha)}{Q(\alpha)}: \quad P,Q\in k[X] \text{  and } Q(\alpha)\neq 0 \right\} $$  If $M$ is the minimal polynomial of $\alpha$, it is easily shown that $k[\alpha]\simeq k[X]/\langle M\rangle$ is a field  and therefore a subfield of $k(\alpha)$ containing both $k$ and $\{\alpha\}$. Therefore $k(\alpha)=k[\alpha]$, because $k(\alpha)$ is the smallest.   It follows that all quotients $\dfrac{P(\alpha)}{Q(\alpha)}$ are equal to $H(\alpha)$ for some polynomial $H\in k[X]$.   What I want to see is a more direct proof of this fact. Given $P$ and $Q$, how do you produce this $H$?


Show that $\|A\|_\infty \leq \sqrt{n}\|A\|_2$ for any $m \times n$ matrices.  I know $\|A\|_\infty$ is the largest row sum of the matrix, but I'm not sure how to compare with $\|A\|_2$ especially since matrix 2-norm is induced by some other vector. All hints will be appreciated!

I am trying to prove the matrix norm equivalence for norms 1, 2, $\infty$ and Frobenius.  I have managed to solve find the constants for $||.||_{1}$ and  $||.||_{2}$ but I cannot see how to continue if I want to prove the following:  $||A||_{\infty} \leq \sqrt{n}||A||_{2}$   and the ones for Frobenius:  $||A||_{F} \leq \sqrt{n}||A||_{1}$  $||A||_{F} \leq \sqrt{n} ||A||_{2}$  Any help is appreciated. Thank you for your time


What exactly gives electrons a charge? I understand how in molecules, an imbalance between electrons and protons give ions charges and I also understand that there is really no positive or negative charge, they are just names assigned to opposite charges, but I am just very unsatisfied with not actually knowing what an electron is and why it has a charge.

Electrons belong to a group of elementary particles called leptons. There are charged and neutral leptons. And electron is the charged one. But how come it got charged?  The negative or positive charges were assigned by convention. But it is a fact that electrons are charged. My question is why electrons? and not neutrons?  Also while reading , I saw that "Independent electrons moving in vacuum are termed free electrons. Electrons in metals also behave as if they were free. In reality the particles that are commonly termed electrons in metals and other solids are quasi electrons, quasiparticles, which have the same electrical charge, spin and magnetic moment as real electrons but may have a different mass  ( or Effective mass - extra mass that a particle seems to have while interacting with some force )."  What does this mean?


They (sometimes?) have the same ending when spelt but don’t rhyme when said.  Why is that?

Why is it that the "ow" in now makes the /aʊ/ sound while "ow" in snow makes the /oʊ/ sound? Has this always been, was it spelled differently and then changed, or was it spelled this way but the sound changed?


I have recently been having issues with my mac and want to do a clean install. I still have Yosemite and thought it’s a good time to upgrade the OS. However, I am wary of jumping directly to Sierra when it’s so fresh.  My specific circumstances:    Sierra could run on my computer (early 2015 Macbook Pro), but I would prefer to install El Capitan I have not previously downloaded the El Capitan installer   I realize apple provided  to install El Capitan from Snow Leopard. However, when I follow the links to the app store to get the install file, I am met with this message:     This version of OS X 10.11 cannot be installed on this computer.   Is there a way to download the El Capitan installer now that Sierra is out, for more modern computer? Searching El Capitan on the app store yields no results for the installer.

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I have a function $\mathbb{R}\to\mathbb{R}$, $y=f(x)$. I want to find its equation $y'=g(x')$ when the basis $(x,y)$ is rotated by $a$. $(x',y')= R_a[(x,y)]$, where $R_a$ is the rotation of angle $a$.  I assume that f is symétric (f(x)=f(-x)) and that $g$ is still a function after the rotation !  I thought naively that I could rotate by -a, compute f, and then rotate by a. But this is wrong when $f$ is linear and commutes with $R_a$ ! More precisely, I thought that $$g(x)= P_y \circ R_a (0,f \circ P_x \circ (R_{-a}[(x,0)]))$$, where $P_x$ and $P_y$ are the projectors $R^2 \rightarrow R$ on the two coordinates  Thank you for your help.

Assuming I have the graph of a function $f(x)$ is there function $f_1(f(x))$ that will give me a rotated version of the graph of that function?  For example if I plot $\sin(x)$ I will get a sine wave which straddles the $x$-axis, can I apply a function to $\sin(x)$ to yield a wave that straddles the line that would result from $y = 2x$?


This might be an obvious thing to seasoned Ops but, please, bear with me on this one (I'm a dev with the side effect of having to manage our servers too).  At the moment, one of several servers (load balanced), in addition to running the usual customer-facing web server also runs a number of labour intensive daemons (they interact with the caching server, db server, and several 3rd party web services). The work done by these daemons increases with the number of current site visitors (visitors across all web servers).   My question is, would you say it's better to move these daemons to their own server that isn't sharing resources with having to also function as a regular web server? Alternatively, would moving this one server that runs them into a new one with more run time memory available to it be beneficial at all?  Thanks.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I have Ubuntu 14.04 64-bit installed. I installed wine from PPA 1.7.28 64 bit. How can I have a second instance of Wine in 32-bit? How can I launch some programs only in 32-bit?  I won't delete my 64-bit version of wine, because some games run better on with the 64-bit version. But I need a 32-bit version for Photoshop.

How do I create a 32-bit Wine prefix on Ubuntu 12.04 64-bit?


How to use implode  with mysqli_real_escape_string together Correct this if(isset($_POST['submit'])){  $impdates = implode('<br>', mysqli_real_escape_string($_POST['impdates']));  }

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


An unproven proposition in my book states that if the series of $a_{n}z^n$ has radius of convergence $R_1$ and the series of $b_{n}z^n$ has radius $R_2$. Then the radius of convergence of $(a_{n}+b_{n})z^n$ is either $min(R_{1},R_{2})$ or (if $R_1=R_2$) greater or equal to $R_1$

I have  two series  $\displaystyle\sum_{n=1}^{\infty} a_n x^{n}$   $\displaystyle\sum_{n=1}^{\infty} b_n x^{n}$  with radius of convergence $2$ and $3$ respectively.  How can I find the radius of convergence for the following?     $\displaystyle\sum_{n=1}^{\infty} (a_n +b_n)x^{n}$   Can anyone help me?


I'm new to android programming and am working on a simple app, which will have to perfom POST and GET operations. I have a JSON parser class which creates a http request, but I keep getting an error on 'GET'. I have spent some time now trying to debug that and I have re-written the code a couple of times (I have also found similar threads on SO, but the suggested solutions didn't work for me), but I still cannot figure out what is wrong, as I keep getting the same error.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Let $K$ be a field and $A$ a square matrix with entries in $K$. Then A and $A^\top$ have the same characteristic polynomial. What do we know about similarity? Do you have an example where $A$ and $A^\top$ are not similar?

Mariano mentioned somewhere that everyone should prove once in their life that every matrix is conjugate to its transpose.  I spent quite a bit of time on it now, and still could not prove it. At the risk of devaluing myself, might I ask someone else to show me a proof?


Let $p$ be an odd prime and let $m = 2p$. Prove that $$a^{m−1} ≡ a \pmod{m}$$ for all   natural numbers $a$.   My attempts  If $m$ is relatively prime to $a$, then $a^{\phi(m)}\equiv1\pmod{m}$ so $$a^{p-1}\equiv1\pmod{m}$$ $$a^{p}\equiv a\pmod{m}$$ Together implies $a^{2p-1}\equiv a\pmod{m}$ that $a^{m-1}\equiv a\pmod{m}$  If $m$ is not relatively prime to $a$, then exists some prime divisor $d$ such that $d$ divides $a$ and $d$ divides $m$, since $m=2p$ we have $d=2$ or $d=p$ Suppose $d=2$ that $\dots$  Now i'm stucked here, any ideas about how to prove this? Thanks for your help.

I've stucked at the following problem:  Let $p$ be an odd prime number. Show that for all $a\in\mathbb{Z}$  $$a^p \equiv a\ (\mathrm{mod}\ 2p)$$  How can I prove it? I know within Fermat's theorem that $a^p \equiv a\ \mathrm{mod}\ p$.


In C#, the switch statement doesn't allow cases to span ranges of values. I don't like the idea of using if-else loops for this purpose, so are there any other ways to check numeric ranges in C#?

Is there a way to fall through multiple case statements without stating case value: repeatedly?  I know this works:  switch (value) {    case 1:    case 2:    case 3:       // Do some stuff       break;    case 4:    case 5:    case 6:       // Do some different stuff       break;    default:        // Default stuff       break; }   but I'd like to do something like this:  switch (value) {    case 1,2,3:       // Do something       break;    case 4,5,6:       // Do something       break;    default:       // Do the Default       break; }   Is this syntax I'm thinking of from a different language, or am I missing something?


I have a question regarding how one would deal with complete separation in logistic regression when reporting the outcome for statistical analysis. For a study, we have group participants into 4 groups, depending on year of graduation, and have several dependent binomial factors we were testing for the statistical significance of the predicting power of the group of year of graduation. Out of the 4 binomial outcomes, 3 are completely fine and produce great results. The 4th, we have a cell count 0 - as one of the groups had 0 successes. My software, obviously, is not allowing me to run a logistic regression on this data, but it still looks, to the eye, statistically significant.   I would prefer to do a fourth logistic regression for consistency of the report. I need suggestions how to proceed. Some sources recommend combing groups. In our case, our groups are: [pre 2000], [2001-2005], [2006-2010], [2011-2015], and [2016+]. The [2016+] group is the one with 0 successes. Should I combine the last two groups, creating a 2011+ group? If I do this only for the last regression, does this raise questions regarding data validity. Do I explain why I did the analysis the way I did?   Any suggestions would be helpful. Thank you.

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message:  Warning message: glm.fit: fitted probabilities numerically 0 or 1 occurred    We still get the model but the coefficient estimates are inflated.   How do you deal with this in practice?


I understand that when metal gets hot it loses its reflective properties, but does that also mean that the colder the metal is the more it reflects?

When a polished piece of metal (or steel in particular) is heated to incandescence, how do its reflective properties change?  Given a mirror-like surface, would the object temporarily cease to act like a mirror at a certain temperature?  Would the specular reflection of light turn into diffuse reflection; in other words, would the surface temporarily become matte/dull?  I am not asking about permanent changes to the object such as melting, but rather can there be a temporary change in the reflectivity only while the the object is hot, that disappears when the object is cooled down?  Background of the question: I have a laser scanner that usually has trouble scanning shiny surfaces with high specular/ low diffuse reflectivity; and it seems to work a lot better for hot steel pieces than for cold ones. Glowing steel also looks less shiny to me than cold steel, but of course that is hard to tell with all the glowing


Let a, b denote series with length of 2n  such that for every 1 $\leq$ i $\leq$ 2n: 1 $\leq$ $a_i$ $\leq$ n and 1 $\leq$ $b_i$ $\leq$ n  prove that there are index sets I, J $\subseteq$ [2n] such that  $$\sum_{i \in I} a_i = \sum_{j \in J} b_j$$  That question was taken from homework of combinatorics and graph theory course

Let $(a_i)_{i=1}^{2n}, (b_i)_{i=1}^{2n}$ be two sequences of size $2n$ of integers such that for every $1\leq i \leq 2n$: $1\leq a_i \leq n, 1\leq b_i \leq n$. Prove there exists two nonempty sub-sets of indices $I,J\subseteq [2n]$ such that $\sum_{i\in I}a_i=\sum_{j\in J}b_j$.  I tried to work with pigeonhole principle, but got stuck. Any help appreciated.


Give an example of groups $H_i$ and $K_i$ such that $H_1 \times H_2 \simeq K_1 \times K_2$ and no $H_i$ is isomorphic to any $K_i$.    Would this work? Let $H_1 = V_4$, the Klein 4-group, $H_2 = \{e\}$, and $K_1 = K_2 = Z_2$. Then $Z_2 \times Z_2 \simeq V_4 \simeq V_4 \times \{e\}$, and clearly neither $V_4 \simeq Z_2$ nor $\{e\} \simeq Z_2$.

Are there four non-trivial groups $G_1,G_2,H_1,H_2$ pairwise non-isomorphic but such that $G_1 \times G_2$ is isomorphic to $H_1 \times H_2$?  My idea was to consider the abelian groups and something related to their decomposition as direct product of cyclic groups, but it doesn't work.


I have the following function :  GetHostName () { NODE01_CHECK=`cat /etc/hosts | grep -w "node01" | awk '{print $1}'` NODE02_CHECK=`cat /etc/hosts | grep -w "node02" | awk '{print $1}'`  IS_NODE1=`ifconfig -a | grep -w $NODE01_CHECK` IS_NODE2=`ifconfig -a | grep -w $NODE02_CHECK`  if [[ ! -z $IS_NODE1 ]]; then     echo "This is NODE 1" fi  if [[ ! -z $IS_NODE2 ]]; then     echo "This is Node 2" fi  }   This script will identify if a certain ip is configured on one of the two nodes belonging to a cluster. This works fine locally, but I need to run it remotely from a server that only knows of the VIP of the cluster. The goal is to transfer some files to both nodes.  So when I run :  scp -r /tmp/files CLUST_VIP  ssh CLUST_VIP <<EOF          NODE01_CHECK=`cat /etc/hosts | grep -w "node01" | awk '{print $1}'`         NODE02_CHECK=`cat /etc/hosts | grep -w "node02" | awk '{print $1}'`          IS_NODE1=`ifconfig -a | grep -w $NODE01_CHECK`         IS_NODE2=`ifconfig -a | grep -w $NODE02_CHECK`          if [[ ! -z $IS_NODE1 ]]; then                scp -r /tmp/files node02         fi          if [[ ! -z $IS_NODE2 ]]; then                scp -r /tmp/files node01         fi    EOF   However, now while running the same commands in a ssh block, I get the following messages :  Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Pseudo-terminal will not be allocated because stdin is not a terminal.   I have also tried using ssh -t and that removed the above errors regarding grep, but the environment variables do not seem to work.   Is there a way to use environment variables over a ssh block?

When executing this bash script, it only shows my local path.  ssh ${REMOTE_HOST} 'bash -s' <<EOL     set -e     source ~/.profile     echo $PATH     # Commands here don't work because $PATH is not set properly.     # How can I see what $PATH is set to here? EOL   How can I view the remote value of $PATH to debug this?


LEt $A,B \subseteq \mathbb{R}^d$ be non-empty sets. Define their distance to be  $$ d(A,B) = \inf \{ ||x-y|| : x \in A, \; \; y \in B \} $$  For any $A,B$, do we have that $d(A,B) = d( \overline{A}, \overline{B} ) $ ??

Let $A,B \subseteq \mathbb{R}^d$ be non-empty sets. Define their distance to be $$ d(A,B) = \inf \{ \|x-y\| : x \in A, \; \; y \in B \} $$ For any $A,B$, I want to prove that $d(A,B) = d( \overline{A}, \overline{B} )$. My Attempt Put $\alpha = d(A,B)$. Therefore, $\alpha = \|x_0 - y_0 \|$ for some $x_0 \in A$ and some $y_0 \in B$. But, notice $x_0 \in \overline{A}$ and $y_0 \in \overline{B}$ by definition. hence $$ \| x_0 - y_0\| \geq \inf\{ \|x' - y'\| : x' \in \overline{A}, \; \; y' \in \overline{B} \} =  d( \overline{A}, \overline{B} )$$ $$\therefore d(A,B) \geq d( \overline{A}, \overline{B} )$$ I am stuck trying to show the other direction: $d(A,B) \leq d( \overline{A}, \overline{B} )$ Can someone help me? thanks a lot


Related:   In the cited question, the consensus is that Uncanny Dodge halves all damage from an attack including damage inflicted by elemental types such as radiant.     Uncanny Dodge.  When an attacker that you can see hits you with an attack, you can use your reaction to halve the attack’s damage against you.     Does this also apply to Poison damage? The distinction being that the Poison damage type is applied in varying manners by the game. For example:   A victim of an attack coated with a basic poison from the PHB is given the chance to save against the poison's damage. If the save is successful, the poison adds no damage. The bite of a basilisk, delivers poison damage in addition to the bite and doesn't offer a chance to save. Lastly, a wyvern's stinger, which deals base damage and poison damage offering a chance to halve the poison's damage with a save.   Does Uncanny Dodge halve the damage in all of the above cited cases? Does it only halve in cases where a save isn't offered? Or something in between?

When a Rogue activates their Uncanny Dodge against extra damage effects, does the feature halve all of the damage or only the weapon's damage?  To exemplify, if struck by a Planetar's great sword, the Rogue takes 4d6+7 slashing damage plus 4d8 radiant because of Angelic Weapons. Does Uncanny Dodge half all of that damage or only the great sword portion?


My textbook says $|a| = -a$ for $a \le 0$.        What does it mean by this? I'm confused and think that the absolute value of a negative number like $|-5|$ would be positive $5$?

He says (direct quote): "In higher mathematics the absolute value of a number, $|x|$, is equal to positive and negative $x$, if $x$ is a positive number."  Then he wrote:  $|x|=\pm x,\quad \text{if}\enspace x>0 $.  I think he misunderstood the definition of absolute value, or did I? From what I understand, absolute value of a number is the distance of a number from zero, so it is always positive. Am I wrong?


I'm using to append a div inside a div where the second div is the parent of an input tag.I tried to get the value of this input tag using .val() of jquery, but am not getting any value, not even null! Here is the HTML code,

   In to the #newDiv I am appending:  var v = "
Pancard Number *
<input id='panNumId' required='' type='text'name='panImg1' placeholder='Enter your Pancard number'/>
"; $('#newDiv').append(v);`   To get the value I wrote jQuery code as  $('#panNumId').change(function () {   var amount = $("#panNumId").val();   alert("value appended : " + valueApp); });   The problem here is that, when I call the element with the respective id, the element is not shown up, that is, I can't even select this element #panNumId.Is there any way that I can get the appended element.Iam not asking for an event problem, the problem is to get the element.Thank you for helping.The question which is set duplicate one,is not the answer which Iam looking for.My question is different.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I've set up my VPS server and am trying to set up a Laravel project. I have a /public_html/ folder with an index.html that's shown when visiting the website URL.   I have a laravel project in: /public_html/project_one/ The original index.php is located in /public_html/project_one/public/index.php   I want the website to show to Laravel project_one by default, but since yesterday I literally googled this for 4 hours, I tried every solution on stackoverflow, nothing worked... I think I've tried over 10 versions of .htaccess I could find.  The question:  Does anyone know how to setup the .htaccess inside /public_html/ so it redirects to my Laravel project in /public_html/project_one/ ? And have the .htaccess inside /project_one/public/ be compatible with this?  I want the main url to show the Laravel project. So www.mainurl.com is Laravel's project_one/public/index.php file. I do not want /project_one/ to be written in the URL!  Just out of curiosity, if I now visit: www.mainurl.com/project_one I get a 403 forbidden.  Failed solutions  In /public_html/ I tried to add .htaccess with:  DirectoryIndex index.php  #Redirect to /project_one/public if you haven't already and the IP is okay RewriteCond %{REMOTE_ADDR} ^1\.2\.3\.4* RewriteCond %{REQUEST_URI} !^/project_one/public RewriteRule ^(/lucaphoto)?(.+) /project_one/public$2 [L]  #if IP does not match and you ARE in the folder, then Redirect to root RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4* RewriteCond %{REQUEST_URI} ^/project_one/public RewriteRule .? / [R=301,L]   This gives me something really strange:   On Chrome: it redirects me to www.mainurl.com/project_one -> And then gives me a 403 forbidden error... On safari: it redirects me nowhere but gives me this error:      Forbidden. You don't have permission to access / on this server.      Additionally, a 404 Not Found error was encountered while trying to   use an ErrorDocument to handle the request.   Laravel's original .htaccess File  By the way, Laravel has an original .htaccess file at /project_one/public/.htaccess. And it looks like this:  <IfModule mod_rewrite.c>     <IfModule mod_negotiation.c>         Options -MultiViews     </IfModule>      RewriteEngine On      # Redirect Trailing Slashes If Not A Folder...     RewriteCond %{REQUEST_FILENAME} !-d     RewriteRule ^(.*)/$ /$1 [L,R=301]      # Handle Front Controller...     RewriteCond %{REQUEST_FILENAME} !-d     RewriteCond %{REQUEST_FILENAME} !-f     RewriteRule ^ index.php [L]      # Handle Authorization Header     RewriteCond %{HTTP:Authorization} .     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] </IfModule>   Someone said this was a duplicate for:  But it's really not. I read that whole article, tried some tweaks, couldn't solve the problem... : (

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


Suppose X is a random variable. Is there a way to find $\min\{E|X-c|, c \in \mathbb{R}\}$?  What have I attempted to do so far:$\DeclareMathOperator{\Pr}{Pr}$ $$\Pr(|X - c| \leq t) = \begin{cases} 0 &  \text{if } \;t \leq 0\newline\Pr(X \leq t + c) - \Pr(X \leq c - t)& \text{if } t > 0 \end{cases}$$ That results in the probability density function of $|X - c|$ being  $$P_{|X - c|}(t) =  \begin{cases} 0 &  \text{if } t \leq 0,\cr P_{X}(t + c) + P_{X}(c - t)&   \text{if } t > 0,\end{cases}$$ where $P_X$ is the probability density function of $X$. That means, that $$E|X-c| = \int_0^\infty t(P(t + c) + P(c - t))\,dt.$$ However this gives me nothing, as finding $\min\{\int_0^\infty t(P_X(t + c) + P_X(c - t))\,dt,\; c \in \mathbb{R}\}$ does not seem to be any easier.  Any help will be appreciated.

Suppose $X$ is a real-valued random variable and let $P_X$ denote the distribution of $X$. Then $$ E(|X-c|) = \int_\mathbb{R} |x-c| dP_X(x). $$  of $X$ are defined as any number $m \in \mathbb{R}$ such that $P(X \leq m) \geq \frac{1}{2}$ and $P(X \geq m) \geq \frac{1}{2}$.  Why do the medians solve $$ \min_{c \in \mathbb{R}} E(|X-c|) \, ? $$


Can anyone suggest an IDE for php development in ubuntu 14.04.  In Netbeans fonts looks narrow and ugly. Is there anyother alternative ?  What about Aptana Studio 3 ?

I've used Windows for many years, using Dreamweaver as my editor as it had a file tree which is based on a project (via Local, FTP or SFTP).  I need a web development IDE with the following functionality:   syntax highlighting for PHP, HTML, CSS, JavaScript  file tree - Local, FTP, SFTP, Project-Based (e.g. via the methods of Local/FTP/SFTP) in other words, like Dreamweaver can open multiple files (tabbed)   Additionally, I wouldn't mind features like debugging, class listings, etc, as long as I can hide them away.


When I'm writing a sentence like this:  Favorite movie: Batman  Do I put Batman in italics or not?

In film reviews/essays about a book or film, does the title of the movie/book always have to be highlighted/put in italics?  I know that at the start you have to put the title in italics, e.g.:     Director Tim Burton brings us Edward Scissorhands, which is about...   But do I need to put the title in italics in subsequent paragraphs too? E.g.:     The film techniques used in Edward Scissorhands are....


When a user with >200 reputation on a Stack Exchange site joins another Stack Exchange site, they get a reputation boost, but is this boost only when the user first joins the new site?  That is, should I hold off on joining sites until I have 200 reputation on at least one stack exchange site, or when I cross 200 will all the sites I have joined get the boost?

I was just awarded +100 reputation on all of my Stack Exchange accounts.  What is this bonus for? It simply says "Association Bonus" on my reputation overview.  Also:   What privileges does the association bonus grant users? Can I lose the association bonus? Does it make my reputation 101 everywhere? Can I earn the association bonus on sites I haven't joined yet? Does it matter which site I earn the 200 reputation on? Will I get an association bonus every time my reputation on a site crosses 200 points? Does the association bonus allow me to answer protected questions? Does the association bonus count towards the reputation cap? Can I get the association bonus if I only have a profile on one site? What else is there to know about the association bonus?


I have a doubt! I am not sure that the direction of the arrow is correct. My opinion is that currently the direction of the arrow is not in the right direction (my reference is a dropdown, even if my item opens from down to up)  What do you think? Thanks!  Item closed:   Item opened:

What is the best way to indicate that it's possible to open and close an element accordion-style?  Arrow pointing left/arrow pointing down Arrow pointing down/arrow pointing up Plus sign/minus sign … or something else?


i've been struggling a lot with getting null context in Fragment.I've read all the problems in here with the same issue as mine but nothing worked out.I tried with onAttach and so on but nothing worked so far. I am getting my error here:     player = ExoPlayerFactory.newSimpleInstance(getActivity());   where getActivity() returns null  I will paste my fragment here so anyone can take a look and suggest me what to do  public class Fragment1 extends Fragment {  private Frag1LayoutBinding binding;  private PlayerView playerView;  private SimpleExoPlayer player;  private Button button;   private boolean playWhenReady = true;  private int currentWindow = 0;  private long playbackPosition = 0;   @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {     binding = Frag1LayoutBinding.inflate(inflater, container, false);     binding.button2.setText("Live");     button = binding.button2.findViewById(R.id.button2);     button.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             initializePlayer();         }     });     return binding.getRoot(); }  private void initializePlayer() {     player = ExoPlayerFactory.newSimpleInstance(getActivity());     playerView.setPlayer(player);     Uri uri = Uri.parse("https://www.radiantmediaplayer.com/media/bbb-360p.mp4");     MediaSource mediaSource = buildMediaSource(uri); }  private MediaSource buildMediaSource(Uri uri) {     DataSource.Factory dataSourceFactory =             new DefaultDataSourceFactory(getActivity(), "exoplayer-codelab");     return new ProgressiveMediaSource.Factory(dataSourceFactory).createMediaSource(uri); }  @Override public void onDestroyView() {     super.onDestroyView();     binding = null; }  @Override public void onStart() {     super.onStart();     if(Util.SDK_INT >= 24) {         initializePlayer();     } }  @Override public void onResume() {     super.onResume();     hideSystemUi();     if((Util.SDK_INT < 24 || player == null)) {         initializePlayer();     } }  @Override public void onPause() {     super.onPause();     if (Util.SDK_INT < 24) {         releasePlayer();     } }  @Override public void onStop() {     super.onStop();     if (Util.SDK_INT >= 24) {         releasePlayer();     } }  private void releasePlayer() {     if (player != null) {         playWhenReady = player.getPlayWhenReady();         playbackPosition = player.getCurrentPosition();         currentWindow = player.getCurrentWindowIndex();         player.release();         player = null;     } }  @SuppressLint("InlinedApi") private void hideSystemUi() {     playerView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE             | View.SYSTEM_UI_FLAG_FULLSCREEN             | View.SYSTEM_UI_FLAG_LAYOUT_STABLE             | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY             | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION             | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); }   and the error i got is that     java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.ui.PlayerView.setPlayer(com.google.android.exoplayer2.Player)' on a null object reference           at com.example.tv_1.Fragment1.initializePlayer(Fragment1.java:58)           at com.example.tv_1.Fragment1.onStart(Fragment1.java:79)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?