How to close a StreamReader/StreamWriter stream object as a class member?

If I have a class with the file stream members like so:  public class FooBar {     private StreamReader reader;     private StreamWriter writer;      public FooBar(string readerFilePath, string writerFilePath)     {         reader = new StreamReader(readerFilePath);         writer = new StreamWriter(writerFilePath);     }      ... }   then how do I close those streams?  It seems that they are closed by default during the class destruction, but then I have to use writer.Flush() which doesn't sound good.


I have an Ubuntu server behind a NAT router / firewall. I would like to add another server, serving content from both servers over http(s). As I understand it I can have the "main" server request data from another IP depending on which vhost is being called.   However I need to understand how that is done and which kind of setup is needed. Is the data being routed through the "main" server or is the data served directly from server 2? Is there any other sharing needed to happen between servers like access to the files?


Who gets accepted to top universities to do a PhD (STEM fields)?

I would like to ask what are some general requirements, level of know-how, etc. that students must fulfil/have to get accepted in the top universities? I'm particularly interested in the  fields.  While I understand this varies per position, I would assume that this can be answered with either statistical information or experience.  For example, assume that a student has good grades, a publication or two, 1-2 letters of recommendation. Any chances?


Error: Methods defined as TestMethod do not support Web service callouts, test skipped

Error occured in my test file:Methods defined as TestMethod do not support Web service callouts, test skipped.  @isTest(SeeAllData=true)  public class REST_Upsell_Controller_Test {      static testMethod void testCreateNewUpsell(){         Test.startTest();         string orderId = 'a0555000000N5BnAAK';         REST_Upsell_Controller.processUpsell('a0555000000N5BnAAK');         ChargentOrders__ChargentOrder__c order = [SELECT Id, ChargentOrders__Charge_Amount__c, ChargentOrders__Tax__c, ChargentOrders__Subtotal__c FROM ChargentOrders__ChargentOrder__c WHERE Id = :orderId];         order.ChargentOrders__Subtotal__c = 600.66;             update order;             System.assertEquals('a0555000000N5BnAAK',order.Id);      } }


Will some parents be offended when being asked, "Is it male or female?"

If I ask the parent about a baby's gender, will it be impolite or not appropriate to say, "Is it male or female?"  Is there any subtle difference, in terms of politeness, among   "Is it a boy or girl?" "Is it he or she?" "is it male or female?"


On my multimeter I have two current measurement connection. One for the mA and one for the A.  On the ampere one there's a time limitation but not on the mA one. Also they mention in the manual a kind of "cooldown time" after the measurement for the A one. So, basicaly, probing with this input can really slow down my project. (max 15 sec every 5 minutes)  My question is, I have to switch to that A one for a 600-700mA current (mA input is 500mA), as it's not a "big" current, can I bypass this limitation ? Is it design for higher current only or any measurement done on that input ? It's a middle-end multimeter but even the online datasheet is not complete about what. (Was excepting a kind of measured current/cooldown time graph)


I have following associative array I wanna remove those ones that which have same value and keep one of theme(for example there is tow 124 value one of theme should be removed):  Array         (             [0] => 124             [1] => 124             [2] => 35         )


Java2D Shooting in a line tangent to mouse coordinates

I am making a top down shooter in Java and I need to be able to shoot in a line tangent to the mouse coordinates. In other words I need to be able to click my mouse and have a projectile spawn from my player, then move its position in a straight line in the direction of where I clicked. I have tried this already and I have failed miserably, and after looking into it for a while I haven't found a good answer. The code is pasted below, any ideas on what I'm doing wrong?  The mouse angle is calculated like this:  mouseAngle = (float) Math.toDegrees((float) Math.atan2(e.getY() - Player.getY(), e.getX() - Player.getX()));    VectorMath class   package vector;  public class VectorMath {      public VectorMath() {      }      public static void copyVector(Vector2f v1, Vector2f v2){         v1.setX(v2.getX());         v1.setY(v2.getY());     }      public static void printVector(Vector2f v){         System.out.println("x: " + v.getX() + " y: " + v.getY());     }  }    Projectile Class   package projectile;  import java.awt.Color; import java.awt.Graphics2D;  import player.Mouse; import player.Player; import vector.Vector2f; import vector.VectorMath;  public class Bullet {      private Vector2f pos = new Vector2f(0, 0);     private float x,y, xVel, yVel, moveSpeed = 0.1f, dX, dY;;     private float mouseAngle;      public Bullet(Vector2f pos) {         VectorMath.copyVector(this.pos, pos);         VectorMath.printVector(this.pos);         x = Player.getX();         y = Player.getY();         mouseAngle = Mouse.getMouseAngle();     }      public void update(){         xVel = pos.getX() + (((float)Math.cos(mouseAngle)) / moveSpeed);         yVel = pos.getY() + (((float)Math.sin(mouseAngle)) / moveSpeed);          dX = x + xVel;         dY = y + yVel;          x = dX;         y = dY;      }      public void render(Graphics2D g2){         g2.setColor(Color.green);         g2.fillRect((int)x, (int)y, 10, 10);     }  }


Directly adding data in MYSQL tables made through drupal

I have a simple three fielded (name, address, country) content in drupal. I have a csv containing 1,000,000 row lines of data. I need to fill up  all drupal content type I made with the csv data.   First, I used FEEDS module but the importing is unacceptably too long. I tried to insert the data directly into MYSQL (ex: field_data_field_name and field_data_revision_name). It is successfully inserted into MYSQL but it does not show/update in the DRUPAL content.   How to make the Drupal synchronize with the newly added data in the table of MYSQL?


Representing json data on a map with GeoTools (Java)

I'm working on a Web Map Service in Java. Practically this WMS allows me to represent the map of open data type (shp, kml and gml). I'm going to start working even with data in json format, and for this I am using the GeoJSON libraries GeoTools. My intention is to convert a json file in shp format and parse it. I found several functions of  but none of it works for me.   I'm using GeoTools 14.0.  Assuming that my WMS arrivals a request like this:                                                                                request = GetMap & Layers = hotel, school & Style = Red% 20Point, Black% 20Point  At this point, my WMS picks from this URL the things that I want to represent, namely school and hotel and especially how I want to represent them. Then I do a search for these layers within a directory which I agreed. Inside this folder, I check if a file by that name, and then do a check on its extension. For example:                                                                                public void parsing(String layers) {     FileReader f=new FileReader();     f.openFile("C:/Users/...../Servlet/Data");      File[] lista = f.getFiles();      for(File i:lista){         String p=i.getAbsolutePath();         if(i.isDirectory()){             for(File fil:i.listFiles()){                 String g=fil.getAbsolutePath();                 checkFile(g,layers);             }         }else checkFile(p,layers);         System.out.println("Layers: "+layers +" trovato");     }                                                                                }                the checkfile function controls me the kind of extension:                                                                                public void checkFile(String p,String layers){         if(p.contains(layers)){             if(p.contains("json"))                     try {                         parsingJSON(p);                         found=true;                     } catch (IOException e) {                         e.printStackTrace();                     }                                                  }            My intention is to make the even of open data parsing type "json" and I want to parser this dataset for example, but I should write a function that allows me to parser any json file .       I thought about doing it this way, what do you think?     public FeatureCollection parsingJSON(String p) throws URISyntaxException, SAXException, IOException {         File geojson = new File(p);         Map<String, Serializable> params = new HashMap<String, Serializable>();         params.put("url", geojson.toURI().toURL());         try {             DataStore dataStore = DataStoreFinder.getDataStore(params);             if (dataStore == null) {             System.out.println("Error dataStore == null");             }             // read featureCollection              Features handler = new Features();             List<SimpleFeature> features = handler.getFeatures();              collection = new DefaultFeatureCollection();             for(SimpleFeature s:features){                 collection.add(s);             }         } catch (IOException e) {         e.printStackTrace();          }         return collection;        }   Unfortunately the line "DataStore dataStore = DataStoreFinder.getDataStore(params);" I generate a terminal error.


Back button and pagination - state not saved

On SO, after paging through X number of pages using the pagination menu, then viewing a question...Hitting the back button returns to the initial page listing of questions but back to page 1 - is this a known bug? By design?


Using an imported model: Why does my mesh look like this?

I am using a purchased model, imported as an OBJ. In Blender Object and Render modes, I am seeing a mesh pattern I am not used to seeing on stuff I create myself:    Much of the model, in object mode, has a strange-looking waffle mesh, which affects the render as well as the solid view.  In Object properties, the max draw type is set to solid:    ... And portions of the mesh appear in a mix of solid (like the area near the front and cockpit door) and waffle mesh.  I suspect I am about to learn something about Blender: Why does my mesh look and render like this?  Thanks rg  EDIT : As requested, here is a small portion of the mesh:


How do I successfully push 50 randomly generated numbers into an array?

I have written a function that generates different numbers each time it is called. Now I want it to genarate say 50 different numbers and then push it into an array. How do I go about it? This is the code below:  function generateRandomNumbers() {     let randomArray = [];     let digits = Math.floor(Math.random() * 900000000) + 100000000;     digits = `0${digits}`;     // Last task is to push 50 random digits into the array;      return randomArray; } console.log(generateRandomNumbers());


Prove that any prime p > 3 is either of the form 6k + 1 or of the form 6k + 5 for some integer k.

I followed these steps Assume $p$ is an arbitrary prime and $p > 3$,then $p$ can be written in form of, $$p=6k+r,r ∈\left\{0,1,2,3,4,5\right\}$$ Then for $r∈\left\{0,2,3,4\right\}$ Asumption contradicts. Therefore $r=1$ or $r=5$ My problem is when for $r∈\left\{0,2,3,4\right\}$ Assumption contradicts, How we say certainly any prime is either form $6k+1$ or $6k+5$?


How to get back old Wi-Fi-button behavior in Control Center?

In iOS 11 when we disable the Wi-Fi in the control center it doesn't actually disable the radio. According , the device is disconnected from Wi-Fi and auto-join is disabled until   You turn on Wi-Fi in Control Center. You connect to a Wi-Fi network in Settings > Wi-Fi. You walk or drive to a new location. It's 5 AM local time. You restart your device.   When I disable Wi-Fi (or BT) I really want it off. Is it possible via some setting or application to get the old behavior back?


I picked up the habit of skipping "I am", as in "Looking forward to it" instead of "I'm looking forward to it" — is this incorrect?

I picked up this habit from a friend, who skips "I am"/"I'm" most of the time:  "[I'm] going to work on that." "[I'll] keep you posted." "[I'm] not sure about that."  Is this completely incorrect, or accepted casual language?


Getting System.CalloutException: You have uncommitted work pending

I am getting an exception of System.CalloutException: You have uncommitted work pending. Detail of the Exception is given Below:     Exception: :System.CalloutException: You have uncommitted work   pending. Please commit or rollback before calling out   I am using Apex for calling a Webservice. Based on the data returning from the WebService, performing upsert operation in Salesforce Instance. I am performing the following operation on the Salesforce Instance.  1 Performing upsert operation in Campaign Object.  2 Performing upsert Operation in Account Object.  3 Performing upsert Object in Contact Object using AccountID of the earlier inserted Account.  4 Then Adding Contacts as CampaignMember in the Campaign that I have Created earlier.  My code is working fine when There is only one record in the Webservice API but when there are more than one record in the API then getting the Exception of System.CalloutException: You have uncommitted work pending. I have spend one week but did not able to get rid off the exception.  Any help will be much appreciated.  Thanks in advance.


Adding button into a Listview in WinForms

Is there a way to add a button control to a cell in inside a ListView in a WinForms app?


Finding limits $l=\lim_{x \rightarrow a}\frac{x^x-a^x}{x-a} $ & $m= \lim_{x \rightarrow a}\frac{a^x-x^a}{x-a} $.

Let $$l=\lim_{x \rightarrow a}\frac{x^x-a^x}{x-a} $$&$$m= \lim_{x \rightarrow a}\frac{a^x-x^a}{x-a} $$ where $a>0$. If $l=m$ then find the value of $'a'$. I get $$l=a^alna  $$ $$m= a^alna-a^a $$  Certainly not correct as $a>0$ ?


understanding "mount" as a concept in the OS

I want to understand what mounting is. It is used in different contexts and situations and I can't find resources which:   Describe the mount concept Explain the actions taken by the computer/OS/utility when a mount is performed How and in which situations mount is used Which features in the Linux mount command are of frequent use and some examples   ( I hear mount applied to diverse entities directories, flash drives, network card, etc )


Suppose $f$ and $g$ are monotonically increasing, and bounded, and let $X$ be a random variable. I want to show $f$, $g$ have positive covariance.  I tried to compute it directly but I am not getting anything useful


What proof do we have that dark matter is matter?

The Dark matter page on CERN's official website describes dark matter as if it were regular matter just with some mysterious properties. This was a surprise to me because every time someone mentions dark matter, it's usually followed by "We know nothing about it". I've heard that we know about its distribution and its effects but to my knowledge we don't really know what it actually is.  So this got me thinking, is there any evidence (or theoretical models) that might suggest that dark matter is actual matter made of particles (that we might not know of yet) rather than an intrinsic property of spacetime, a fundamental interaction or maybe something else?


How to tell if a document is written in Word or LaTeX?

[Readers] can tell at a glance whether the paper   was written using Word or LaTeX.     -- Graham Cormode. 2009. How NOT to review a paper: the tools and techniques of the adversarial reviewer. Page 2  I just read this and started to wonder, how exactly can one tell? I only know that I could tell if our professor used Powerpoint or LaTeX for the slides, because the PowerPoint slides were scaled a lot bigger on initial zoom. But how to decide between Word an LaTeX?    Thank's for pointing to . It does bring some good points, but that question is very specific in its aim. I want to find a broader series of answers, maybe not even related to visuals.


Some entries in ~/.XCompose are ignored. How can I fix that?

For some reason, I can no longer add custom Compose key sequences. I have the file .XCompose in my home folder with content like  <Multi_key> <equal> <asciitilde>     : "≅" <Multi_key> <underscore> <slash>     : "∠" <Multi_key> <slash> <underscore>     : "∠"   etc.  Default sequences like the ones that make « á », etc. work.


What element saved Iron Man from his blood poisoning?

I just watched Iron Man 1&2 the other day. I'm new to the entire story. In IM2 we learn that his blood is being poisoned and that he has tried every combination of every existing element as a cure - unsuccessfully. Then he deducts "the key" from the Expo park's plans which saves him. What is that key? What element had he not tried? I realize that the movie story has to be simplified, compared to the original story, so there are probably story elements that I have completely missed because they're only in the original works. We also saw that in LOTR.


Best prepaid SIM card to call Nigeria from Canada

I will be in Canada for a visit lasting about one month in August 2018. I will need the most affordable prepaid SIM to call Nigeria while in Canada. Some data will be desirable but not a priority. Please advise the best priced SIM. Regards.


Suppose the following dialogue:  ... "I accept only one notion of land property. Namely, 'I am doing my stuff here, therefore I am here". "But this means," he responded, "you can break into any place and stay there, using this rule." "There is another rule, though. Right to act in its most natural sense, 'I am here, therefore I am doing my stuff here." "But do not these rules put together become circular reasoning?" "Of course, they do," I put my head closer to him, "and this is exactly that rare case when circular reasoning is not only sufficient, but is necessary." "But why is that? Circular reasoning never was a correct argument." "There are many circular things happening in nature. Life forms, for example, exist only in order to produce new life forms or to prolongate their own lifetime. Is there any reason to say this can't be the case for reason itself? Why must reasoning not be circular?" ...  Can circular reasoning ever be justified? For example, we know all the words in our languages can't be defined using other words without the use of circularity. We know logic can't prove itself without circularity. Are these arguments rational? Are there any other arguments where circular reasoning is still rational?


The commutator subgroup of a nonabelian simple group $G$ is $G$ itself

I'm studying elementary level of algebra and I'm trying to prove that the commutator subgroup of a nonabelian simple group is the original group itself. It is trivially false if the group is abelian, but I can't prove it when the group is nonabelian. The definition of the commutator subgroup of $G$ is $\{a^{-1}b^{-1}ab \mid a, b \in G\}$.


Write in an existing Word document using Java

I'm working on a project for work that requires me to ask some informations to the user, then write them down in a Word document. The thing is that I have to write those informations in a document that already exists, containing tables, checkboxes and so on... I tried using Apache POI, which is useful when it comes to creating a Word document, but does not seem to help me filling an existing one. How should I proceed ? What API should I use ?  Thanks in advance for any help.


Obscure 80s-90s TV series with a spaceship Volkswagen and a giant space baby

Okay, I have a vague memory of a kids TV series that I caught when I was way too young to understand it, and now my brain is eating itself trying to remember what it was called.  Below you will find a list of all of the things that I remember about it to help identify it:   It may have been an American production, but I remember it had a different look and sound to it.  It was most likely a Canadian or British show, but it may have also been Australian (this one is the least likely to me, but I do not want to rule it out). It had to have been made somewhere between 1988 and 1998. It looked like it was aimed at the 12 to 15 year old demographic (but I'd widen this area to between 9 and 18 to be safe) A giant space baby was absolutely involved (that is something I am certain of) The space baby may or may not have worn biker gear The space baby apparently held some leadership role with its species It may have featured a Volkswagen van that was also a spaceship (Although I am iffy on that one) I clearly remember a scene where an adult (who may have been a bad guy) tries to become the space baby by using his toothpaste.   Typing this all out I realize how insane it all must seem, but I am certain this thing exists.


Can I call another overloaded constructor in C++?

class draw {     draw(circle i)     {         // draw a circle;     }      draw(circle i, circle j)     {         draw(i);         draw(j);     } }   Can I call another overloaded constructor of the same class in C++ even if using template?


Why is it "could" and not "can" in the famous line: "If a face could launch a thousand ships"?

This is from a song lyric     If a picture paints a thousand words,   Then why can't I paint you?   The words will never show the you I've come to know.   If a face could launch a thousand ships,   Then where am I to go?   There's no one home but you,   You're all that's left me too.   And when my love for life is running dry,   You come and pour yourself on me.   First the singer says If a picture paints a thousand words.  Followed by, If a face could launch a thousand ships.  Why does the singer sing "If a face could launch a thousand ships"?  Why not, "If a face can launch a thousand ships"?  Why is  can used in the past?


Chat message mouse-over actions obscure links at end of line

The chat message mouse-over actions obscure the end of the chat message, which is not normally an issue unless there is a link there:    Becomes, on mouse-over:    And the link at the end of the line cannot be clicked, as the action icons overlap it when the mouse is moved to click the link. Only negatively affects links at the end of the line that are narrower than the action icon set. Workaround is to resize the chat window so it wraps, or to adjust zoom (thanks ).  Perhaps the icons could go to the right of the text in the spacing between the chat area and the star wall; there is a decent amount of space there. The only other option I can think of is making the actions push the text over, which could get irritating with line height changes from wrapping.  also presents the option of making the actions disappear after a short time.


Meta question on Stack Exhange Android app

How come when I click on "download the Android app for Stack Exchange" in a mail of Stack Overflow, I arrive on Google Play and it tells me there is no such app? Is there really no app for Stack Exhange Q&A websites? How come?


How To Convert a Terminal Command into an ".app" file?

I want to run a command every-time I click an app icon. I want that app icon in my launcher or app drawer and dock.  The Command I wanna run is this (posted )  open -na "Google Chrome" --args --profile-directory="Guest Profile"   UPDATE 1:  I've created a "Chrome.sh" file on desktop with above command as content and running  sh chrome.sh   opens up the window that I want. now how do I convert that to an ".app" icon?


The stamp on my passport got smudged a little bit due to rainwater going in. But the information page is still intact without any damage. Also, there is a valid German visa on this passport, where I will be travelling to in October. Will this passport be considered as damaged?  [


convert decimal Value to two precision in c#

I want decimal value to two precision output like below input,   0       78.8798 6 0.986   to   0.00 78.88 6.00 0.99   in c# decimal value to decimal or string.


I have a .STL file and all of the faces have been converted to triangles so there are hundreds of long thin triangles.  Is there a effective way to select all of the faces in a small area? Something like a circle and when you click every face under that circle is selected.


When I talk about Meta here, I mean any meta but this one. I understand the . However, I don't think this reason applies to meta sites and have some reasons why I think votes on meta sites shouldn't get locked: Opinions change: I thought a feature-request was just stupid and I downvoted it. Later on, after reading the answers, I saw the ideas behind it (which weren't included in the question), and wanted to upvote it - but I couldn't. Of course, the question was written badly, but ... Votes on meta work in a different way, as they indicate (dis)agreement instead of usefulness. So in my example, the question wasn't really useful as-is, but I did agree, after hearing the ideas behind it. You don't get reputation on Meta, so there is no reason to 1. So, What would you say of disabling the lock-vote feature on meta sites? And no, There is no problem with users who go bumping posts by up- and downvoting all the time (as suggested in the comments) since votes  - thanks Hugo and cpast.  Some very clear examples of when you want this  Moderator pro tempore elections - what if a nominated user does something stupid and you want to remove your upvote? Nope, too late.  Feature-requests can get more useful after a new feature implemented (e.g. when there's a request for changing the footer that you downvoted, and then the team changes the footer in such a way that you want to upvote it instead)     1: as Shog9♦ , there still is a reason to tactically downvote: when you've answered a question yourself as well, then downvote the other answers to get your answer shown higher. I don't think this is a real problem with this feature-request, but a problem we have now too and will probably always have.


Help in setting up Xbox controller (Wired) in Ubuntu 12.04

I'm following this >>  and am not understanding the 'Creating a Makefile' part. Should I make a new document file named 'Makefile' and paste this inside >>  KERNEL_PATH?=/usr/src/linux-headers-$(shell uname -r)  EXTRA_CFLAGS=-I$(shell pwd)  obj-m:=xpad.o  all:         $(MAKE) modules -C $(KERNEL_PATH) SUBDIRS=$(shell pwd)  install:         cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick   cause if yes, when i use make command then this error shows >>  Makefile:11: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.   sorry for being a noob ;) what am I supposed to do now? OR am i doing it all wrong?


How can Star Wars have humans if it happens a long long time ago?

Why does Star Wars say "a long time ago, in a galaxy far far away?" Besides sounding like a fairytale beginning, does it have any literal truth in the series or the canon?  I mean, humans prominently feature in Star Wars, and humans on earth today have only recently evolved technology to go to nearby planets. How does the Star wars franchise explain this? Are those humans somehow in another galaxy before advanced humans evolved on earth, something like out of Battlestar Galactica?


My happiness level is at 10% and I've tried everything like upgrading rooms, putting the dwellers in the location that proteins to them, I have a radio room, I have also tried to put them in the living quarters and dance but they do and still are at 10%. I got pets, upgraded the rooms, and I tried to rush them because I heard that a successful rush will increase it by 10% but still NOTHING HAPPENS. Another thing is when I leave the game it goes up to 15% but when I join it goes down back to 10% and I have no clue what to do. Can anyone help me??


I've got a document that compiles without error or warnings (and looks about right) but for some segments of the document synctex doesn't seem to be working.  What could be wrong?  The document consists of one root .tex file which \inputs a bunch of others.  Synctex works for all these sub-documents - except for one.  In practice, this means I can Ctrl-Click in the viewer and find the appropriate spot both in parts of the text before and after this particular subdocument.  Conversely, I can Ctrl-Click in the editor and jump to the right spot in the view in all subdocuments but this one.  However, when I Ctrl-Click on a part of the output corresponding to this particular subdocument I get the following error popup: Cannot read file "E:/emn/uni/Thesis/doc": Access is denied. in the TeXworks viewer.  The path in this error message exists but is a directory: namely the one containing the tex files.   All filenames consist of only latin letters, numbers, and underscores and the extension .tex.  The problematic file is called G2MLVQ_9_Refinements.tex whereas a (working) file is called G2MLVQ_7_Implementation.tex I can't make a small example which fails - small examples don't fail; however the order of files seems to matter, so perhaps something in an earlier file is affecting synctex later on... (once I've isolated this, I'll update the question). Concerns MiKTeX 2.9 and the bundled TeXworks version 0.4.3 r.857.   I'm stumped: what could be going wrong?  Edit: user59152 tried to isolate the error:     It is virtually impossible to create a minimum working example (MWE) for this problem, so I have posted a . You can see the file names at the tops of the windows. The one being edited (Introduction.tex) comes BEFORE the file that can't be opened using inverse search (SourceAndSinkFreeContinuumRVtracking.tex). The screencapture movie confirms that \clearpage restores inverse search capability, but fouls up the layout of the document, so this problem appears to remain unsolved.  I'm using TeXworks version 0.4.4 r.1003 and MikTex 2.9.


Given: $\operatorname{gcf}(x,36)=9$ and $\operatorname{lcm}(x,36)=108$. Find $x$.   p.s I tried $54$ but although the $\operatorname{lcm}$ of $54$ and $36$ is $108$ the GCF is $18$ and it has to be $9$. Help me please.


Show that the Beta Function $\beta (x,y)$ Converges When $x \gt 0, \space y \gt 0$

Given $ \beta (x, y) = \int_0^1 t^{x-1}(1-t)^{y-1} dt$, Show that $\beta (x,y)$ converges when $x \gt 0, \space y \gt 0$.  $$\int_0^1 t^{x-1}(1-t)^{y-1} dt = \int_0^{0.5} t^{x-1}(1-t)^{y-1} dt + \int_{0.5}^1 t^{x-1}(1-t)^{y-1} dt$$ Now, according to the text, for the integral from $0$ to $1 \over 2$, $t^{x-1}(1-t)^{y-1} \le t^{x-1}$.  $\int_0^{0.5} t^{x-1} dt \lt {\infty}$ entails that $\int_0^{0.5} t^{x-1}(1-t)^{y-1} dt$ converges.  Well, $t^{x-1}(1-t)^{y-1} \le t^{x-1}$ when $y \ge 1$, not for all $y \gt 0$.  Then the text does something similar for the integral from ${1 \over 2}$ to $1$:  Since $t^{x-1}(1-t)^{y-1} \le (1-t)^{y-1}$,  $\int_{0.5}^1 (1-t)^{y-1} dt \lt {\infty}$ entails that $\int_{0.5}^1 t^{x-1}(1-t)^{y-1} dt$ converges.  Well, $t^{x-1}(1-t)^{y-1} \le (1-t)^{y-1}$ when $x \ge 1$.  So the text shows that $\beta (x,y)$ converges when $x, y \ge 1$.  Did I make a mistake somewhere or misunderstand something?


SHA-1 is on the way to deprecation, in particular for digital certification (x509). But I can't find ressources about SHA-1 deprecation from SSL/TLS Cipher Suites.   Is it implicit, as deprecation implies that SHA-1 usage will be deprecated in all cases ? Or is there a different strategy concerning SHA-1 usage in Cipher suite ?  I also don't understand how attackers could forge SHA1 certificate signature, as the hash is still "protected" by the signature (CA private key). So forging the hash with collisions, ok, but one would detect that hash is not trusted anymore (signature wouldn't be the same). I miss something ?


Using Hyperlink URL in attribute table of QGIS?

I would like to have the URL from an attribute (in the attribute table) as a 'hotlink' wherein you can click on the URL and it opens the browser with the data. As it is right now, I'm having to identify feature, R-click on the URL and copy/paste the URL into a browser.


Is winSCP available for mac or only windows?

I need a ftp for mac since my current viper ftp is corrupting my xml files. So just wanted to know if we have efficient FTP for mac users.


byte array (string) to string javascript

I have a model which has a bytearray as a property,  public byte[] bytearraytest{ get; set; }   when I get this model via javascript GET request it is a string.  tgwBAQ==   How can i decode it now ?


Is there a way to kill all mobs other than /kill @e?  For some reason, it kills me too. Someone told me to do something like    /kill @e{type=Zombie}    but every time I put it in, nothing happens.


Why Does The Background Image Not Show in Orthographic View?

I have added a background image to the world settings. However, it has disappeared from my 3D view and only shows when I view the scene from the camera. Does anyone know if there is something I can do to make it reappear?


Give a counterexample of $K_{1}$ and $K_{2}$ closed, but that $A$ is not closed.

Take any $K_{1}$ and $K_{2}$ closed sets. Define $A = \{||x-y||: x \in K_{1}, y \in K_{2}\}$. I'm asked to prove (or give a counterexample) that $A$ is closed, in general.  A classmate came up with the following counterexample:      Consider $K_{1},K_{2} \subseteq \mathbb{R}^2$ such that $K_{1} = \{(x,y) \in \mathbb{R}^2: x\geq 1, y=0\}$, i.e, the horizontal axis from $1$ on and $K_{2} = \{(x,y) \in \mathbb{R}^2: x\geq 1, y=1/x\}$. Clearly, both sets are closed. Notice that there are elements in $A$ that are arbitrarily close to $0$ but $0 \notin A$. Then, $A$ is not closed.   I could come up with some more examples, but all of them in the same spirit of the one above. I could also prove that if either $K_{1}$ or $K_{2}$ is compact, then $A$ is closed. So, a counterexample should rely on two unbounded sets, since I'm thinking about Euclidean spaces for the sake of simplicity.  In special, I was trying to find a counterexample in which $K_{1}$ and $K_{2}$ are subsets or the real numbers, but I had no success! Any ideas? Thanks a lot in advance!


Has it yet been proven that $x_{n+1}=x_n-\frac{1}{x_{n}}$ with $x_0=2$ is unbounded?

Consider the following recursive formula: $$x_{n+1}=x_n-\frac{1}{x_{n}}$$ with $x_0=2$. Is the sequence produced by this formula unbounded?   Some time ago I came across this problem somewhere on the internet. According to  on the subject, the question was open at the time it has been published. But I can't seem to find any evidence wether it has been proven already or wether it is still open. Does anybody know?  Of course a proof is more than welcome if you happen to know how to solve it.  EDIT: I don't understand why my question is being marked as a duplicate. It clearly asks something else than the suggested duplicate, namely wether the problem has yet been solved or not, while the duplicate asks about the problem itself. Also, the redirects on the suggested duplicate, and redirects on the redirects, don't seem to provide an answer to my question either. Am I missing something here? [No longer relevant, however I'll leave this text for clarity.]  EDIT 2:  is the page my question was (falsely) marked as a duplicate to and  is another interesting question about the same problem. I thought I'd add these pages, because they contain some ideas regarding the question and since I get the feeling it is still unanswered, it might be nice to have these accessible from one place.


My wife's iphone is full. I decided to free up some space by removing the photos. I connected iphone to PC and copied over complete photo collection. Then I disconnected the device and started removing each single photo by hand! Well, because you just can't select all and remove photos from your device in 2016 unless it is Android, Windows or Blackberry phone. So, after spending enough time to delete 1.5k photos by hand, I removed them from "recently deleted" folder only to see that the available space is 0 bytes. I restarted the phone. Tried to take a photo, no luck. The iphone refuses to take a picture because there is not enough space on the device. This is peculiar because I have zero photos according to "camera roll". So, now, I can't neither install an new app nor take photos, ffs Carl!  I am literally laughing while writing this because the question is so dumb simple I've never expected to ask. How to actually remove the photos from iphone to free some space?  This is iphone-4 with iOS 9.3.5. Some screenshots.


I am having problem installing anything on ubuntu: Errors were encountered while processing: kexi

I am not able to install anything on Ubuntu 18.04. I always get this error message Errors were encountered while processing:kexi. I have tried,  sudo apt install kexi sudo apt-get dist-upgrade    sudo dpkg -a --configure   Here is the complete error output  dpkg: error processing package kexi (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration Errors were encountered while processing:  kexi E: Sub-process /usr/bin/dpkg returned an error code (1)


Can a non citizen who lives abroad but has paid SS tax for 40 quarters get the benefit?

I paid SS tax for 40 quarters when I was a permanent resident of US. Now I live abroad. Will I be eligible for getting social security benefits?   Most likely the answer is no but why not ask? :-)


Installing Windows 7 on an m.2 NVMe drive?

I have an Asus Sabertooth Z170 motherboard, with a Samsung 950 Pro m.2 NVMe drive on it. I've heard in the past that installing Windows 7 on an NVMe drive was a significant amount of work. Its now August 2016, is it still difficult? I've seen updates from Microsoft saying they've added support for NVMe in Windows 7.  Can I just download Windows 7 from Microsoft () and put it on a USB drive and install?  Is it harder than that?


How to alter a link of the language switcher?

I would like to alter the link displayed on the language switcher for the second language of my site, for a certain node. Essentially when you viewing a certain node in the main language, and then use the language switcher to view the secondary language, I want the language switcher to serve a different link from the one that links to the translation of the node on the main language. (The design of this node is different from the one on the main language, so just translating the node won't help in this case)  I've tried both  MYTHEME_preprocess_links__language_block(&$variables) and MYMODULE_language_switch_links_alter(array &$links, $type, \Drupal\Core\Url $url) but in both cases either the variable I was interested was protected or private or I couldn't get any interesting variables to work with.  Is it allowed to use these hooks above for what I'm after, or it needs to be a more hacky way?


Move first N lines of output to end without using temporary file

Imagine an output of a command like  44444 55555 11111 22222 33333   how can I yank the first N lines (first two in the example above) and append them at the end, but without using temp file (so only using pipes)?  11111 22222 33333 44444 55555   Something along the lines of | sed -n '3,5p;1,2p' (which obviously doesn't work as sed doesn't care about the order of the commands).


Here is the very elaborate, confusing, even befuddling image which I have selected at the time of this strange error occurring.


Let $S\subset\operatorname{Spec}A$, where $A$ is a commutative ring with $1$. I am having trouble seeing why $V(I(S))=\overline{S}$, where $\overline{S}$ is the Zariski closure of $S$. My attempt is as follows. It is not hard to see that $S\subset V(I(S))$: $V(I(S))$ is the set of all prime ideals of $A$ containing $I(S)$, and $I(S)$ is the intersection of all elements (prime ideals) of $S$. Since every element of $S$ contains $I(S)$, it follows that $S\subset V(I(S))$. This implies that $\overline{S}\subset V(I(S))$. The issue I'm having is proving the reverse inclusion. Suppose $V(J)$ is any closed set containing $S$. Then $I(V(J))\subset I(S)$ since $I(\cdot)$ is inclusion reversing. I'm not sure where to go from here or even if this is the correct line of thought to have. What am I missing?


Windows Subsystem for Linux without Windows Store

I'm trying to set up the Bash on Ubuntu prompt on my new Windows laptop.  I've enabled developer mode and the Windows Subsystem for Linux is enabled, but I don't see a Bash on Ubuntu prompt.  According to  the next step is to install a Linux distribution, but I know I was able to do this a few months ago on my old laptop without the Windows store, which was also running 1703.


Writing SQL to check for a role if exist and add member

I am not to good at writing SQL so please help with below as i am doing something wrong here  I need to alter a role say role_a to add member Domain/SQLAgent  The problem is how can i check or write a query to do this on SQL servers where there is one more role role_b only existing if role a is not there  Basically, how can i write a script to check on server if role a exist alter that role to add member and if role b then do same.   modifying as Q is not duplicate  I want to check if role_a exist then  ALTER ROLE [role_a] ADD MEMBER [Domain/SqlAgent]   else  ALTER ROLE [role_b] ADD MEMBER [Domain/SqlAgent]   Note@ Both the roles do no exist together


I'm running Debian Wheezy and my default Display Manager is GDM3, and I would like to replace it with LXDM. The problem is that I'm trying to run # apt-get install lxde and it's not working, what am I doing wrong?  My /etc/apt/sources.list is:  deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot i386 DVD Binar$  deb http://ftp.br.debian.org/debian wheezy main deb-src http://ftp.br.debian.org/debian/ wheezy main  deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ wheezy/updates main contrib


How to change $PATH for crontab in Opensuse

I have a script written which works perfect on terminal however gives error when called through crontab. It took me a while that the problem is with the cron environment not my script.   so I tried few options after reading various posts online:  * * * * * PATH=/home/sam/bin:/home/sam/scriptbin/ /path/to/script            Didn't work   * * * * * bash -lc /path/to/script Didn't work   * * * * * /path/to/script Didn't work   How can I change $PATH variable for crontab in OPENSUSE or include in cron file so that it works. I am using open suse 11.  Here are few other things i tried:  PATH=/home/sdcme/afnibin:/sbin:/usr/lib64/mpi/gcc/openmpi/bin:/home/sdcme/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin  11 9-19 * * * /home/sdcme/Final_concat_sdcme &> ~/concat.log  Didnt work  11 9-19 * * * /home/sdcme/Final_concat_sdcme.py &> ~/concat.log  didnt work   Thanks!


I am trying to create my own login system and I was wondering what is the best way to hash a password?  Should I just use the function from PHP SQL hash('SHA512' password) or should I use JavaScript for it?  I have already made the system to hash via PHP SQL with SHA512, but if it's more secure with JavaScript I wouldn't mind shifting.  So what I am  asking for is, what is the pros and cons for hashing with JavaScript and for PHP.  And could be cool if you could tell me too what it means to SALT, haven't really understood what it exactly means, and why I should do it.  And yes, I know there are lot's of good login system I can just copy/paste, but this is mostly for understanding how it all works and getting some experience.


Timestamp in the suggested edits review page is going out of it's boundary

Timestamp in the  is going out of it's boundary.        AFAIK, the suggested edits timestamp was near to it's type (i.e. asked, proposed) like this:        Checked on Chrome (27.0.1453.110 m), Firefox (21.0) on Windows XP  The issue is in other Stack Exchange sites as well. E.g. Have a look at  on Physics.SE. Also in   Can we fix this?


Is $A=\lbrace{ \frac{1}{n}, n \in \mathbb{N} \rbrace}$ dense set in $\mathbb{R}$ with cofinite topology ?  I think it is dense because all infinite subspace are dense sets under cofinite topology but I don't know how to prove.


Does the existence of magnetic field follow from special relativity and invariant of electric charges?

as the title suggest, Can I show the existence of magnetic field using only special relativity and  invariant of electric charges?


How do I install the Tor browser in Ubuntu 12.04 LTS?

Good afternoon. I wanted to install the Tor browser on my computer but I can not make it work. I downloaded the application and tried to follow the instructions but when I called to make a specific command to run I could not do it. The command is './start-tor.browser.desktop --help' Does anyone know what the problem?


Find the coefficient of $x^{9\ }$ in$\left(1+x\right)\left(1+x^{2}\right)\left(1+x^{3}\right)...\left(1+x^{100}\right)$

This is a question from binomial theorem. How do i approach these problems, can we find the coefficient of any arbitrary power of x, if there is some particular concept linked to these problems? Please help


How do I split my USB sound card recognized as 5.1 into 3 stereo channels?

I have a NI Komplete Audio 6, and I want to use its stereo channels separately, not all the outputs combined as 5.1.  It is recognized by Ubuntu, however I only get the choice of using it in 2.1, 4.1, 5.0 or 5.1. To get proper audio on the first stereo channel, I've had to select 2.1 and then disable lfe-mixing in /etc/pulse/daemon.conf so that the low frequencies do no get sent to the non-existing sub-woofer.  I would like at least to be able to use my sound card in 2.0, and at best to have it come up as 3 virtual 2.0 devices in Ubuntu. I have already tried to fiddle with pulseaudio profiles but with no success.  Here is my aplay -L output:   Any ideas?  EDIT: Using the asound.conf provided in  and adapting it to six channels did not work. Also, I am also asking about having my device be properly recognized as 2.0 capable.


Newton's 2nd Law: Why is this Mass times Acceleration?

I am a physics student that just started to learn the subject, and I came over to this section about Newton's second law. It says, that force is mass times acceleration, but why is it like this, without other parts like velocity? For example, in space, there are two objects flying with constant velocity, and no forces acting upon them. If they collide, will there be no force acting there, as Newton's 3rd law is on forces interacting, not just velocity and mass?


How to share files between two computers through Wi-Fi signal

I use Ubuntu Studio 20.04.1 LTS inside more than one computer, all of them are 64 bits system installations. One of them is a laptop, the others are desktop machines. All the computers share the same Internet modem unit, which has Wi-Fi signal. The desktop units are cable connected, the laptop is Wi-Fi connected. Can I use that Wi-Fi signal to share files between the desktop computers and the laptop unit? How?


Why is time considered to be a dimension? And the other 7 (except the 3 dimensions of space, and the dimension of time) dimensions that string theory suggests, why can't they be realized?


I seem to have lost my apt-key after a reinstall

I keep getting this message when running an update: The repository '[http://ppa.launchpad.net/landscape/19.10/ubuntu  Release][1]' does not have a Release file Updating from such a repository can't be done securely, and is therefore disabled by default.  See apt-secure(8) manpage for repository creation and user configuration details.


I consider myself a moderately proficient LaTeX user. Occasionally, I want to do something that is similar enough to an implementation found in a package that duplicating it seems pointless, but distinct enough that the package options do not necessarily allow me to easily achieve it. Under these circumstances, I often end up creating a local implementation of some \Package@PrivateCommand that is subtly modified, and using it in my document(s).   However, I have frequently found that packages which provide environments have a richer structure than those which do not. I know that one can readily define a new environment with LaTeX (i.e. that the \newenvironment command exists), but for some reason, packages which provide environments don't seem to do this directly. For example, the multicols package doesn't feature a single \newenvironment in  at all -- instead, it's a complex mixture of things like \def\prepare@multicols and various macros that appear to be run before an environment, as well as after it. As one would expect, this makes changing things a lot more interesting for an ignorant person like me :-).   Correspondingly, I strongly suspect that \begin{environment}{Argument} ``Some content goes here'' \end{environment} is just syntactic sugar for something like what the TeX equivalent would be, namely:  \EnvironmentPreHook \argumentMacro{Argument} ``Some content goes here'' \EnvironmentPostHook   Am I correct? How are environments parsed? Are there any circumstances where this can cause real problems? Is this related to, for example, why \centering can do the same job (in a given scope) as begin{center} ... \end{center}?   I've had a quick look through the documentation I can find, and a detailed explanation (ideally along the lines of ) is missing.


Let  $r\in \Bbb R$ such that  $r + \frac{1}{r}\in \Bbb N$, Prove by induction that $r^n + \frac{1}{r^n}\in \Bbb N$ for every $n\in \Bbb N$.  I've done some expansions for $(r+\frac{1}{r})^n$ for $n = 2,3$ and I can see how it holds.  I am having trouble showing it for all $n.$


Sums in math mode: how to display index under the sigma sign?

I have a fraction with sums above and under the line. How can I convince LaTeX to write the indices of the sums under the sigma instead of next to it?  \begin{displaymath}   \frac{\sum_{s \in S} s^2}{\sum_{p \in P} p^2} \end{displaymath}


Converting NAD83 (epsg:4269) to WGS84 (epsg:4326) using pyproj

I'm trying to convert US census data (NAD83) to WGS84.  I know the difference between the two is quite minor, but trying to apply the transformation using pyproj does not do anything. e.g.:  from pyproj import Proj, transform p1 = Proj(init='epsg:4269') p2 = Proj(init='epsg:4326') transform(p1, p2 , -80.00001, 40.00001)   yields:  (-80.00001, 40.00001000000001)   Any idea why? Shouldn't I expect small shifts of ~1 meter?


I have this code <?php $query1 = "SELECT users.id, testtable_result.id as result_id, testtable_result.user_id, testtable_result.cad_id, testtable_result.medication, testtable_result.color, testtable_category.category_id, testtable_category.name FROM users INNER JOIN testtable_result ON testtable_result.user_id=users.id INNER JOIN testtable_category ON testtable_result.cad_id=testtable_category.category_id WHERE users.id = '{$userID}' AND color LIKE '%blue%';"; $result1 = query($query1); confirm($result1); if (row_count($result1) > 0) : while($row1 = fetch_Array($result1)) {   $medication = $row1['medication'];   $data[] = $row1; } foreach ($data as $value) { $categoryname = $value['name']; $medication = $value['medication']; $arrmaincatname = explode('(', rtrim($categoryname, ')')); if($categoryname == "Saba"){ $datacat = $arrmaincatname[0]; $medicacat = $medication; ?> In <?php echo $datacat; ?> category -- [<?php echo $medicacat ?>] <?php }} ?>  it shows result like this In Saba category -- [ProAir RespiClick®] In Saba category -- [Proventil® HFA] I want to remove all the duplicate results and want to show it like this. In Saba category -- [ProAir RespiClick®, Proventil® HFA]


Close banners don't get anonymized (to "user1234") when a user removes their account

Observe the following (bad) question on Japanese.SE:   The question reports the following in the close banner:      closed as not constructive by sawa, , , ,  Nov 2 '11 at 6:45   Now, I happen to know that "user458" (the same user who made the last edit to the question on Nov 1 '11 at 23:35) was known as "sawa" before having their account removed. Shouldn't references to the user in the close banner also be anonymized to "user458"? Obviously, we're never going to succeed at perfectly anonymizing the user because of stuff like @mentions in the comments, but it seems like "system text" like the close banners at least ought to anonymize correctly.  (I suspect that protection and deletion banners may have the same issue, though I haven't encountered any posts that were protected or deleted by a now-deleted user yet.)   (Is this a duplicate of ? animuson marked it , so I'm not sure what's up.)


How to get the date of last day of week with a specific timezone using js

I want to get date of the last day of week with a specific timezone.  I got this code that works good but it shows the computer timezone. i want to add a specific timezone like GMT-0500   {       var lastday = date.getDate() - (date.getDay() - 1) + 6;  return new Date(date.setDate(lastday));   } dt = new Date();  dt.setHours(23,59,59,999); document.getElementById("lastday").innerHTML = endOfWeek(dt).toString(); console.log(endOfWeek(dt).toString());   How can i change the timezone? please help.


Avatar image upload fails with frame-related error message

Today i tried changing my avatar image on stackoverflow and ended up with this error message, right after the upload was completed:  "For security reasons, framing is not allowed; click OK to remove the frames."    The image was a valid JPG at 4.8 MB size.


Ubuntu apt-get sources blocked by internet provider

Every time I try to upgrade ubuntu, it gives me forbidden access. Every time that happens, Ubuntu crashes.  log file :   Do you want to continue [Y/n]? y Get:1 http://archive.canonical.com/ubuntu/ saucy/partner adobe-flash-properties-gtk i386 11.2.202.346-0saucy1 [131 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main libfontembed1 i386 1.0.40-0ubuntu1.1 [47.8 kB] Get:3 http://archive.canonical.com/ubuntu/ saucy/partner adobe-flashplugin i386 11.2.202.346-0saucy1 [6,600 kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main lightdm i386 1.8.5-0ubuntu1 [107 kB] Err http://us.archive.ubuntu.com/ubuntu/ saucy/main apturl-common i386 0.5.2ubuntu2   403  Forbidden [IP: 91.189.91.13 80] Get:5 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main cups-browsed i386 1.0.40-0ubuntu1.1 [44.7 kB] Get:6 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main liblightdm-gobject-1-0 i386 1.8.5-0ubuntu1 [33.4 kB] Fetched 6,963 kB in 19s (359 kB/s)                                              Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apturl/apturl-common_0.5.2ubuntu2_i386.deb  403  Forbidden [IP: 91.189.91.13 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I tried to contact the internet provider but there is no support from their side. I don't have a vpn account.  Is there another solution?


Key equivalence across different elliptic curves

Is it possible to prove key-equivalence across elliptic curves of different order? Specifically:   Suppose I have a key $x$ valid for both curves listed below On curve $g$ (for example, Curve25519) it maps to $X_1 = x*G$, where $G$ is the generator point for $g$ On curve $h$ (for example, Curve1174) it maps to $X_2 = x*H$, where $H$ is the generator point for $h$   Is it possible for me to submit some public proof that $X_1$ and $X_2$ are generated using the same key $x$, but without revealing the value of $x$?


SharePoint Rest api to get a single user profile property

I'm trying to retrieve a single user property from a jsom script.  The property is a custom one, not in the default schema.  When I retrieve   http://server/sites/coll/_api/sp.userprofiles.peoplemanager/GetMyProperties/ UserProfileProperties   I get all properties.  When I retrieve  http://server/sites/coll/_api/sp.userprofiles.peoplemanager/GetMyProperties/ UserProfileProperties/MySingleProperty   an error is thrown.  I also tried:  http://server/sites/coll/_api/sp.userprofiles.peoplemanager/GetMyProperties/ UserProfileProperties/?select=MySingleProperty   It does not fail, but all properties are still returned.  What is the correct syntax to retrieve my property?  [Edit] Don't know if it matters, but my property has an hyphen in its name: My-Single-Property. I tried to escape using unicode like this: My%u002dSingle%002dProperty, but without success.  You can repro using an OOB field:     _api/sp.userprofiles.peoplemanager/GetMyProperties/?$select=SPS-JobTitle   _api/sp.userprofiles.peoplemanager/GetMyProperties/?$select=SPS%2dJobTitle   _api/sp.userprofiles.peoplemanager/GetMyProperties/?$select=SPS%u002dJobTitle


Noun to describe a person who wants to please everybody, but sort of in an obsessed manner

I'm trying to describe a character who dances for her husband so that he doesn't get mad, apologizes profusely even if she hasn't done anything wrong. However, she is also strong-willed and determined. I considered using the word "altruist", but the character is not selfless.


Prove the following integral inequality: $\int_{0}^{1}f(g(x))dx\le\int_{0}^{1}f(x)dx+\int_{0}^{1}g(x)dx$

Suppose $f(x)$ and $g(x)$ are continuous function from $[0,1]\rightarrow [0,1]$, and $f$ is monotone increasing, then how to prove the following inequality: $$\int_{0}^{1}f(g(x))dx\le\int_{0}^{1}f(x)dx+\int_{0}^{1}g(x)dx$$


Is there a continuous function $f(x)$ such that the inverse function is $1/f(x)$?

A student came to me with this question and I cracked my head for one hour but I couldn't unambiguously prove that it exists or it doesn't exist. Continuous and invertible function such that $f^{-1}(x) =1/f(x)$ on its domain of definition.


When I import an obj file from Roblox in turns grey and I have no way of changing it back how can I do it? I have tried YouTube and google but nothing comes up I need help! it might be a shortcut or something else I don't know.


How to calculate the nth term of sequence that increases by n?

I have the following recursive formula the for a sequence:  \begin{cases}V_{1} = 1\\V_{n} = V_{n-1} + n & n > 1\end{cases}  This sequence increases by $n$ for each term increase. Now I need to find if $3003$ is a value of this sequence. I managed to solve the problem by finding an explicit formula for the sequence and solved in terms of $n$. Like this:  \begin{align} 3003 = \dfrac {\left( n-1\right) n} {2}+n  \end{align}  which led to   \begin{align} n = 77 &\vee n = -78 \end{align}  So since there's no negative terms in a sequence I concluded that when $n=77$,  $3003$ is the value of the sequence.   What I would like to know is if there is some other simpler/direct way to solve this.  I realized that the value of the nth term is the sum of all terms below $n$, including it $(n, n-1, n-2,\dots,0)$ and came up with that explicit formula but it isn't obvious.


"Subject, verb, direct object, object complement" versus "subject, verb, indirect object, direct object"

Reading English Grammar (HarperCollins College Outline, published by HarperResource, an imprint of HarperCollinsPublishers) I found a chapter (Sentence Basics) that explains that in English there are different sentence patterns; in particular   Subject, verb, direct object, object complement Subject, verb, indirect object, direct object   The chapter reports the following example for the patterns:     Alice called Charles Professor Miller.   Alice gave Charles the rabbit.   What is the difference between the two kind of sentences? What is the difference between the object complement in the first case, and the indirect object in the second case?  PS: The question, which could appear silly, comes from the fact in my first language there is only the object complement.


I have recently purchases new speakers and I have noticed a slight hum coming from the transformer, therefore I am considering replacing it. The transformer, used to power an internal amplifier, specifications are as follows: 230V~50Hz - 13.5V~3.5A. However I'am having trouble finding a replacement with exact same specifications.  The wattage of the current transformer is 13.5V * 3.5A = 47.25W, could I use another 50W transformer with different voltage specifications without risking to blow up my speakers?  Let me know if you need any additional information.


Is there a way to define/set/increase the query cache size in SQL Server 2014 similar to what MySQL has


When to use Fisher and Neyman-Pearson framework?

I've been reading a lot lately about the differences between Fisher's method of hypothesis testing and the Neyman-Pearson school of thought.  My question is, ignoring philosophical objections for a moment; when should we use the Fisher's approach of statistical modelling and when should be use the Neyman-Pearson method of significance levels et cetera? Is there a practical way of deciding which viewpoint to endorse in any given practical problem?


The equation $X^{n} + Y^{n} = Z^{n}$ , where $ n \geq 3$ is a natural number, has no solutions at all where $X,Y,Z$ are intergers.

The equation $X^{n}  + Y^{n}  = Z^{n}$    , where $n   \geq  3$     is a natural number, has no solutions at all where $X,Y,Z$     are integers.   My solution:  False. Because if we let $X=0  ,Y=0$,  then $0^{3}+0^{3}=0^{3}$  . Thus there is a solution for the equation $X^{n}  + Y^{n}  = Z^{n}$,   where $X,Y,Z$   are integers.  Can anyone please give feedback on my answer and state whether it is correct on not.


What is the proof that for any given element $c$ of $F_q$, there exist two elements $a$ and $b$ of $F_q$ such that $a^2 + b^2 = c$. i know that $q$ is the characteristic of this field, but i don't see how this leads, in any way, to a solution to the proof. Thanks a lot.


In a race there are n horses.In the race more than one horse may get the same position. For example, 2 horses can finish in 3 ways.   Both first horse1 first and horse2 second horse2 first and horse1 second   In how many ways,the race can finish so that a particular horse can never be first.If f(n) is the number of ways, is there any recurrence relation to get f(n).


How can I get rid of the "En" icon in the notification area?

How can I get rid of the keyboard indicator icon in the Notification area?  I am running Ubuntu 13.10


What is the difference between "tried closing my eyes" and "tried to close my eyes"?

Is there any difference in meaning? Or are they pretty much always interchangeable? ESL students are having trouble understanding when to use which expression. Thank you.


How would I run Minecraft 1.16 off a flashdrive?

I have been enjoying Minecraft lately, after getting java edition. The problem? Every month, I have to reset my whole PC to keep it from lagging to a bog. However, when I do this, I have to reinstall Minecraft. It has gotten HIGHLY annoying, so I wanted to move Minecraft to my flash drive. Nothing worked! It ALWAYS used my local AppData anyway, meaning that when the wipe occurs I have to wait an hour for a reinstall... D: Is there any launcher, or method to run Minecraft 1.16 off of a flash drive? Specifications: Flashdrive has 60 GB of storage, 20 GB left after all of apps and other stuff take space.


I have a text file containing exactly this:  POLYGON ((6.2973716 48.98613 1772.1, ... many other Long Lat Altitude values ... ))   And only this. It seems to be just like a WKT geometry of a polygon. But it's only a text file.     I'd like to create an "ESRI Shapefile" from this file, if possible with tools that are available without any installation on Windows.  I've tried GDAL so far but it doesn't seem to handle such files.


Python Regex convert matches to a dictionary

text = "Bob|19|01012017" pat = re.compile("(?P<name>.+)|.*|(?P<bday>.+)") #hopefully this regex is correct result = pat.match(text) d = result.groupdict() print d   What I get for d is:  {'bday': None, 'name': 'Bob|19|01012017'}   What I want is:  {bday: "01012017", name: "Bob"}   Can someone point out what I am doing wrong? I only need two fields for dict so I didn't write the age part.


In markdown, we use > to quote content. In LaTeX, how can I quote the content of a specific paper?


Prove that $18!+1$ is divisible by $19$ and $23$  For $19$ we can just use Wilson's Theorem but I wasn't able to think of how to prove for 23. One way is to just multiply $(-5)(-6)(-7)(-8)(-9)(-10)(-11)(11)(10)(9)…(2)(1)$ and then find its remainder with $23$, and then add $1$ to it. But surely there's a better way right?


Shutdown button only logs out ubuntu 15.04

Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this?


Proving $n! = \Theta\bigr(\sqrt n \; \bigr( \frac{n}{e}\bigr)^n \bigl)$ by integration

I'm trying to prove: $$n! = \Theta\bigr(\sqrt n \; \bigr( \frac{n}{e}\bigr)^n \bigl)$$  using integration. I'v found a proof but it is very long and not elegant. Any ideas of a short and elegant proof of the above?


I can't understand why my laptop is so slow during the boot process: it takes 2 minutes to get to the logon screen and other 2 minutes to a usable desktop.  Operating system is Windows 7 64 bit SP1 with 8BG RAM.   I'm unsure how to proceed: I've tried to deactivate any unused services or to uninstall unneeded programs...  Looking at the registry, ServiceGroupOrder etc... I don't find any particular issue.  I've disabled many programs from msconfig too, but without luck till now.  What else could I do?  Edit  Is using xbootmgr to trace boot suggested?


Is the powerset of a countably infinite set countable?

I remember having heard that if $S$ is countable infinite, then $\mathcal P(S)$ is uncountably infinite. My intuition, however, tells me it should not be. Since $S$ is countable, you can enumerate it. Let's define:  $$S=\{x_1,x_2,\dots,x_n,\dots\}$$  One could define an injective function $f : N \to \mathcal P(S)$.  $f$ takes a natural number and converts it into binary form. Let's say $6$ is converted into $110$. Starting from the right, defining the rightmost digit to be digit number $1$, we can convert this into a subset of $S$ by including $x_n$ if and only if digit $n$ is $1$. What am I missing here?


Word that describes the practice of "expressing a feeling/assessment by first denying that feeling/assessment"

I'm looking for a single word that describes the practice of "expressing a feeling/assessment by first denying that feeling/assessment". Here is an example of that practice: "I'm not saying you're wrong but there is no evidence to support your assertion". Or: "I'm not saying you're overweight but you could stand to lose a few pounds". Or, "I don't think I'm perfect but I rarely make mistakes". I've checked the thesaurus: "irony" is the closest fit, but isn't quite right.  As in..     I don't know what my wife truly meant when she uttered the _________: "I'm not saying I don't love you anymore, but I just feel that we need a trial separation ".


Loop isn't breaking when a specific string is inputted

When the user inputs pBreak, it should break the while loop. However, this isn't working and I'm confused on why. Could somebody please help me?  package main;  import java.io.*; import java.util.*;  public class TextFiles {     public static void main(String[] args) {         try {             BufferedWriter out = new BufferedWriter(new FileWriter("file.txt"));             Scanner input = new Scanner(System.in);             while (true) {                 String line = input.next();                 if (line == "pBreak") {                     break;                 }                 out.write(line);                 out.newLine();             }                 out.close();         } catch (IOException e) {             System.out.println("Error!");         }     } }


How to do \newcommand{\filepath}[1]{\verb!#1!}?

I want to define a command \filepath so that I can use \filepath{foo_bar.cpp} and it is printed in monospaced font.  Also, why does this not work? I get strange errors:  \newcommand{\filepath}[1]{\verb!#1!}


Is there a greatest prime number? My intuition is that prime number series is a never ending. Can somebody explain whether or not greatest prime number exist?


What are the legal tournament formats for MtG?

What are the current legal tournament formats for Magic: The Gathering?  What are the differences/definitions of each format?  At what point do sets rotate in/out of a format?


your screen size is bogus. Expect trouble

I opened terminal windows and I got a message   your screen size %d%d is bogus. Expect trouble   I closed the terminal and the next time I opened terminal, the message didn't show up.   What is this message and why did I receive it?


I have a Drupal 7 site and the queue table has over 4K records. They are primarily for the "update_fetch_tasks" queue. Is the queue table by nature a temporary place holder?   I would like to clean it out and see if it fixes some issues that I am experiencing with the update module. I've done some digging on the queue module and from what I can tell is that proper usage is to claim the queue items and when you are done with them you should delete them. So it seems odd that a core module is leaving records in the queue.   Is there any harm in removing records from the queue?


''Do you have an account on the website or in the website?''

When asking someone what should I say?      Do you have an account on  facebook?     Do you have an account in facebook?    I can simply ask- ''Do you have a facebook account?''  But I'm asking should I use on or in .


I have a table of roads and a table of points. I'd like for each point to have the ID of the closest road, as well as the distance to that road.  The line data has both the path type and the geometry type for its coordinates. The points have XY coordinates. What would be the best way to go about finding the closest road using PostGIS?


Which Is Faster $variable[] or array_push($variable, $newValue)?

Which is faster when adding variables to an array?   $variable[] = $newValue; array_push($variable,$newValue);   and please mention the difference between the two if any.


How do I display text over an image and correctly position that image in my page?

I'm trying to add an image to a page with text over the bottom of the image. I've run into 3 issues however:   The image is not properly loading; it's either made up of a grid of the same image or is a crop of the original. The image is not positioning correctly, i can move it from top to bottom but cannot get it to move away from the left. The text is not properly loading on top of the image.   Here is my code:  HTML:   <!DOCTYPE html>               <title>Himalayas</title>          <link rel=stylesheet href="stylesheet.css">         <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

                 Text Here

          SCSS:   $title-left:150px; .title-image{     color: red;     position:relative;     top:$title-top;     left:$title-left;     height:100px;     width:200px;     background-size:100%;     background-image: url(TitleMountain.png); } .title-text{     position:relative;     top:$title-top+70;     left:$title-left; }   Any help is greatly appreciated


Why does Query explorer not accept login credentials from other Stack Exchange sites and populate basic data?

Today I came across . I had to log in again with a prompt to provide access when I already have accounts on multiple Stack Exchange sites. Also I had to fill all the profile details again. So why is this behavior? When we log in to any other Stack Exchange site we use existing credentials, profile data is automatically replicated and we get 200 reputation points as a start. What is the reason?


Correct spelling of Polish surname Dziubenofska?

My Polish grandmothers last name was Dziubenofska, but I know that's not how it is spelt! I'm looking for the proper spelling.   Can you help find it for me?  She came over to Ellis Island and they changed it on her to dziuk. This is only a prefix to the full name.


I have a following air itinerary/PNR printout. How do I decode this? What does each line and column signify?     TK 693 V 14MAY 7 CAIIST HK1       3  0240 0550   32B E 0 M   SEE RTSVC                                                                        2  TK 661 V 14MAY 7 ISTTUN HK1       I  0830 0925   333 E 0 M   SEE RTSVC                                                                       3  TK 664 V 21MAY 7 TUNIST HK1       M  1700 2145   321 E 0 M   SEE RTSVC                                                                       4  TK 692 V 22MAY 1 ISTCAI HK1       I  0035 0145   32B E 0 M   SEE RTSVC


Every positive real number has a unique positive $k$-th root

Here is my proof so far: Want to show there is a unique positive number $b$ such that $b^k = a$. Define the set $A = \{x>0: x^k>a\}$ of numbers too big to be $k$-th root. $A$ is nonempty as $x = (1+a)$ is in $A$ as is min $(1+a)$ which $>a$ By definition of set $A$ is bounded below by $0$ so greatest lower bound characterisation of completeness implies $b= \inf A$ must exist. For each natural number $n$, there exists an belonging to A such that $b \le a < b+1/n$. Past here I need help with writing out the working. I then have to show $(an)^k$ tends to $b^k$ to conclude $b^k\geq  a$ and I am particularly unsure of this step. I then have to show $b^k\geq  a$ by contradiction. I assume $b^k > a$then $0$ $<a/b^k< 1$ so may choose $d <b/k(1-a/b^k)$ I then have to achieve a contradiction by choosing $b-d$ belonging to $A$. This will show $b^k = a $and then I have to prove there are no other positive kth roots


Formal proof of $\lim_{x\to a}f(x) = \lim_{h\to 0} f(a+h)$

$$ \lim_{x\to a} f(x) = \lim_{h\to 0} f(a+h) $$   How do I write a formal proof of it?


Is there a word to describe someone who tends to disagree with others only to upset them?

What's the word to describe someone who acts arrogantly and always disagrees with others unreasonably in order to upset people around him/her?  [I'm not looking for adjectives like unpleasant, annoying, unfriendly, rude, I'm looking for a more specific term like opinionated, didactic, loquacious, gregarious ]  I think I'd come across it before but I've forgotten what it is..


(Built-in) way in JavaScript to check if a string is a valid number

I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function?


why the mesh moves from its position with curve modifier

When i add a curve modifier stairs moves from its position. How it works can u explain in detail.How to set correct position from where i have the exact position i have set. Rotation scale and position are all 0,0,1 of stairs and curve. In some cases why we have to move and adjust. Any suggestion or help. Thanks


problem adding ppa in ubuntu server 14.04.05 lts

I'm trying to add ppa to ubuntu server 14.04.05 lts and end up with following message


Endpoint of a line knowing slope, start and distance

In a Cartesian system, I've got the slope, start point and distance of a line segment.  What's the formula to find the endpoint?


How do I install Google Chrome on my Ubuntu 13.10 easily? I had downloaded the file called google-chrome-stable_current_i386.deb from google downloads but it doesnot install using Ubuntu Software Center.


Inbox not updating if a comment is updated

A comment was posted and a notification was pushed through to my Inbox as usual.   After looking at the comment I realized that the Inbox is not updating to correlate with what was edited by the user.  Should the Inbox update if a comment is updated?


Newbie question: Within the body of the text that I've inserted into a Journal's Latex Template, I don't understand why I get a newline and italicized font when I add the command \leq to generate "less than or equal to"...  Below is (1) the Journal's template preamble and (2) my text in the body of the document.  I'm using MacText/TexShop on MacOSx10.6  (1) PREAMBLE  \NeedsTeXFormat{LaTeX2e}[1995/12/01] \documentclass[10pt]{bmc_article}      % Load packages \usepackage{cite} % Make references as [1-4], not [1,2,3,4] \usepackage{url}  % Formatting web addresses   \usepackage{ifthen}  % Conditional  \usepackage{multicol}   %Columns \usepackage[utf8]{inputenc} %unicode support %\usepackage[applemac]{inputenc} %applemac support if unicode package fails %\usepackage[latin1]{inputenc} %UNIX support if unicode package fails \usepackage{times} %so today's date appears on each version \urlstyle{rm}  \def\includegraphic{} \def\includegraphics{}  \setlength{\topmargin}{0.0cm} \setlength{\textheight}{21.5cm} \setlength{\oddsidemargin}{0cm}  \setlength{\textwidth}{16.5cm} \setlength{\columnsep}{0.6cm}  \newboolean{publ}   (2) IN THE BODY OF THE DOCUMENT .tex  coefficients kappa: \leq 0.4 poor to fair; 0.6 moderate agreement.   in Typeset: this pdf reads      coefficients kappa:      <={italics}0.4poortofair;0.6moderateagreement


Dark spots when using a 52mm variable neutral density filter

I recently bought a variable ND 52mm ProMaster filter for around $70 but I got some strange results when I tried to take pictures with it.   This is a shot I took at 18mm when the filter was at its darkest.   Here's another shot with more light coming through, but still at 18mm.   I'm not entirely sure if the issue is with my filter being defective or if it's just a crappy one. I really want to take some landscape shots with it and would love it if there is an easy fix or alternate filter that I can use at 18mm.


i have enabled the nested virtualization on a GCP VM instance running Ubuntu. it was working perfectly. from last few days this vm was power off and today when powered it on nested virtualization was disabled?  any idea why its disabled now and how i can enable it again?  root@ubuntu:~# grep -cw vmx /proc/cpuinfo 0 root@ubuntu:~# init 0


I was just shown  card trick.  Let me attempt to explain: You begin by shuffling a standard 52 card deck.  After it is shuffled decently enough for your audience, lay down the first card face up, and then count up from the value of that card to 13. For example, I draw a 9, I then draw 4 more face up cards (9 + 4 = 13) and add these cards to the pile. You continue this until you are out of cards or you can no longer count up to 13.  At this point you put all these piles but 3 arbitrary piles together. Of the 3 remaining piles, turn over the top card of two piles. From the discarded cards from earlier (the other piles plus the remainder) you remove 10 cards plus the value of each of two face up cards. For example, if the two face up cards are 4 and 9, I remove 10 + 4 + 9 = 23 cards from my hand.  The number of cards left in your hand will be the value of the face down card of the third pile.  What exactly is the math behind this trick? I haven't been able to find a single explanation for this trick. Thanks!


Consider L is an ideal in $g/ g '$ of codimension 1. Let $ \pi: g \longrightarrow g / g '$ homomorph be canonical. So,  $ \pi^{-1} (L)$ um is ideal in g.  In fact, if $x \in \pi^{-1}(L)$ and $\in g$, then $$\pi[x,y]=[\pi(x), \pi(y)]=0 \in L$$ because $g/g'$ is abelian and $\pi(L) \in L \subset g/g'$. So $ [x, y] \in \pi ^ {- 1} (L) $.  $ \pi^{-1}(L) $ have codimension 1.  i need to know if 1. is correct and how to do item 2.


I have created a custom WPF user control which is intended to be used by a third party. My control has a private member which is disposable, and I would like to ensure that its dispose method will always get called once the containing window/application is closed. However, UserControl is not disposable. I tried implementing the IDisposable interface and subscribing to the Unloaded event but neither get called when the host application closes. MSDN says that the Unloaded event may not be raised at all. And it might also be triggered more than once, that is when user changes theme. If at all possible, I don't want to rely on consumers of my control remembering to call a specific Dispose method.  public partial class MyWpfControl : UserControl  {      SomeDisposableObject x;       // where does this code go?      void Somewhere()       {          if (x != null)          {              x.Dispose();              x = null;          }       }  }  The only solution I have found so far is to subscribe to the Dispatcher's ShutdownStarted event. Is this a reasonable approach? this.Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;


Ubuntu 16.04 Desktop startup with no monitor

I'm rather new to Linux - this is why I choose Ubuntu desktop as the most comfortable one to my learning experience.  After installing Ubuntu 16.04 desktop - If I try and connect via TightVNC - everything works great. the problem is when I put the computer in another room and start it (No monitor connected) - nothing happens and cant connect. If I plug my monitor at this stage - All I get is a black screen with no options other than hard-restarting the computer. (it comes up properly when the monitor is connected).  I've tried searching for a solution for the last few days - Even trying to install Ubuntu SERVER (but then my WiFi is not auto-detected like in the desktop version - and I couldn't find how to do THAT)  I reinstalled Ubuntu desktop - and tried changing something in the grub file regarding 'nomode' - this didn't work either. (Only difference is - I couldn't load the system even with monitor connected and had to use recovery mode to restore my backed-up grub file.)  Its important to state I need nvidia drivers installed on the system so no way i can use dummy drivers.  All I want is the system to boot, reach the desktop and let me connect via VNC. This is real easy in Windows and im rather surprised by the complexity of the matter.  Thanks in advance,  EDIT: sorry if it wasnt clear - I just want to system to boot up and reach the desktop without an actual monitor connected to it.   For some reason this is marked as duplicate - I've gone over GRUB options on all its forms from people who answered those - but they wont work for me. (as explained in the post itself) so is changing the xorg.conf file - I dont think I have that installed - I am using ubuntu's native "share desktop" option  Dummy plug is not an option since no one in ebay sends to where I am.


Do lenses have focal planes or focal spheres/ellipsoids?

The title says it pretty much all. I'm asking this because I find myself always using the focus point in the center, and after I focused, I rotate my camera to make the framing right. However, if lenses do create a plane in which everything is sharp, then the focus will be slightly off after rotating the body.  Doing some maths: if I focus at distance x meters, and rotate my camera for alpha radians, then the focus plane would be off for:  ∆f = x*tan(alpha/2)*tan(alpha)   So, let's plug in: x = 2 meters, alpha = 20 degrees = 0.349 radians, we get: ∆f = 0.128 meters. So this means, my optimal focus point is now almost 13 centimeters away from the original focus point.  If they are not spherical, I will experience my focus being off. So is it safe to use other focus points except for the one at the center and immediately put my framing right? This will slow down the process of taking pictures?


Can we prove that $2^{-x}\sum_{k=0}^{\infty} {x \choose k} =1, x \in R^+$

Inspired by today's post in MSE:  my numerical experiments at Mathematica throw up: $$2^{-x}\sum_{k=0}^{\infty} {x \choose k} =1, x\in R^{+},$$ fairly accurately. When $x$ is positive integer it is the well known identity. However for real positive values it is surprising ! Even if $x$ is non-real such that $\Re(x) >0$, it seems to hold fairly accurately. Any comment, Reference of proof is welcome.


I am using java script to compare values     if (cellValue == "true" || cellValue == true)   Instead of doing this can i use the ===operator in java script ?


Finding pressure differences considering variations in different parameters

I have a place where the density of air at sea level is $\rho_0$ and the atmospheric pressure is $P_0$. Now suppose I want to calculate the pressure of air at a certain height h above the sea level, say at a height of 10 km above the sea level. Let the actual pressure be P.  I realise that I need to use this relation: $$P_0 - P = \rho gh$$  However this would work only for small heights as the value of $g$ and $\rho$ vary with height.  Suppose for some sufficiently large height, I keep the value of $g$ constant and vary $\rho$ with height, I get a pressure, say $P_1$  Next, I keep the value of $\rho$ constant and vary $g$, and I get a value $P_2$  Lastly, I vary both $g$ and $\rho$, and get a pressure say $P_3$  I am interested to know what would be the order of the pressures, like which would yield me the highest value among $P,P_1,P_2,P_3$ and among them which one would be closest to the actual value $P$  PS: For a height like 10 km, can I keep the value of $\rho$ constant? For g, I think I can keep it constant since 10 << 6400  Thanks in advance


I have a very very slow computer, but would like to animate 3D. I'm aware we can render via the command line. but I don't know how. I want to render the entire animation of my Tutorial.blend file in the background.


How do i convert "Monday" to the integer 1 and "Tuesday" to 2 etc all the way to friday?

I have a user inputting a day (Monday) and a week number in order to search for a value in an array. However, to get the array output, I need the row and column numbers. The row number can be obtained from the user input, 1,2 etc. However, the part where they input Monday, Tuesday etc. is a bit trickier. Is there a way to convert Monday Tuesday etc to an integer (1,2) so that I can use that to find the array element?   I tried this method, but it's not working. The conversion of value to an int obviously doesn't work due to "Monday" not being a number. Is there an alternative way to doing this?  int Value = Convert.ToInt32(value);  DateTime ClockInfoFromSystem = DateTime.Now; Value = (int)ClockInfoFromSystem.DayOfWeek;   This is the rest of the code if you need it  private void AddToArray() {     txtOutput.Text = "Filling the array with user input..." + "\r\n\r\n";      String value;     int num;      for (int week = 0; week < productsArray.GetLength(0); week++)     {         for (int day = 0; day < productsArray.GetLength(1); day++)         {             value = Microsoft.VisualBasic.Interaction.InputBox("Enter Value for Day " + day + " of Week " + week, "Enter Value");             try             {                 while (!(int.TryParse(value, out num)))                 {                     MessageBox.Show("Not a valid number, try again.");                     value = Microsoft.VisualBasic.Interaction.InputBox("Enter a Number", "Enter Number");                  }             }             catch (Exception)             {                 MessageBox.Show("Value entered is not in a valid format");             }              productsArray[week, day] += int.Parse(value);         }     }     txtOutput.Text += "The product allocation is as follows:" + "\r\n\r\n"; }  private void Array() {     txtOutput.Text += "\tMon\tTue\tWed\tThu\tFri\r\n";     for (int week = 0; week < productsArray.GetLength(0); week++)     {         txtOutput.Text += "Week " + (week + 1) + "\t";         for (int day = 0; day < productsArray.GetLength(0); day++)         {             txtOutput.Text += productsArray[week, day] + "\t";         }         txtOutput.Text += "\r\n";     }      txtOutput.Text += "\r\n" + "Retrieve products completed on a specific day." + "\r\n";     String value = Microsoft.VisualBasic.Interaction.InputBox("Enter Day", "Enter Day", "Monday");      int num;      String value2 = Microsoft.VisualBasic.Interaction.InputBox("Enter Week", "Enter Week");     try     {         while (!(int.TryParse(value2, out num)))         {             MessageBox.Show("Not a valid number, try again.");             value2 = Microsoft.VisualBasic.Interaction.InputBox("Enter Week", "Enter Week");         }     }     catch (Exception)     {         MessageBox.Show("Value entered is not in a valid format");     }     int Value2 = Convert.ToInt32(value2);     int Value = Convert.ToInt32(value);      DateTime ClockInfoFromSystem = DateTime.Now;     Value = (int)ClockInfoFromSystem.DayOfWeek;      var output = productsArray[Value2, Value];      txtOutput.Text += "Products completed on that day are: " + output;  }


In The Hobbit and The Lord of the Rings, we are introduced to Mithril, a metal described as being stronger than steel but much lighter in weight.  It is also shown to have a silver sheen and the crafting of it is implied to require greater skill than steel.  Tolkien's works are often written in such a way as to create a real world mythological connection; Middle Earth is just our world in the distant past.  In modern times,  and its alloys are used for many industrial purposes due to its light weight -- at 35 to 45% less weight than steel, when built to the same standards, it is considered much stronger per unit weight. It also has a nice silverish gleam when polished and was in use for over a century by the time of Tolkien's writings.  So, to the point: is there any counter proof to the theory that mithril may be the substance currently known as aluminum? I do not require a Word of God answer, but if there is one that would be great.


Can a permanent teleportation circle be dispelled?

(PHB, pg. 282) can be made permanent, as the spell description says:     You can create a permanent teleportation circle by casting this spell in the same location every day for one year.    (PHB, pg. 234) can only target an object, creature, or magical effect.  A permanent teleportation circle doesn't seem to be an object or magical effect; it is an inscription, a writing. Can it actually be dispelled?


How do I add reCaptcha to a custom form?

I need to add a reCaptcha to my form; creating the form then adding the form ID to the reCaptcha settings did nothing.


GLM Logistic regression in R: one category is significant, but others are not. Should I drop the variable?

so I am using GLM for logistic regression in R and I have some variables with many factors.   I ran the model and has the result like this:    My question is: 1. Is this variable significant? Considering only Married and Separated are significant here (p-values <0.05). What about if there are 10 different categories for a variable, but only 3 of them are significant? Should I drop it or keep it in the model?    Also, in the case of a model where all the variables are significant but the AIC value is much higher than the one where a variable included is not significant, which one is more useful? What can cause this?


Cannot pickup Gauldur amulet fragment in Geirmund's Hall

I am having trouble retrieving the Gauldur amulet fragment from Geirmund's Hall after clearing it before I was aware of this quest. Now when I return the quest indicator points on the floor in boss' room, specifically on a patch of submerged dirt. The water is quite shallow and I am quite sure that there is nothing to pick up there.  To me it seems the quest has bugged as I killed the boss before embarking on this quest, or killed him while unaware of the quest and not picking the fragment up. How can I get around this? Is there a console command which can help me?


How many ordered pairs (A,B) are there so that they satisfy the condition $A\subseteq B$ , A and B are subsets of a set S with n elements?

How many ordered pairs $(A,B)$ are there so that they satisfy the condition $A\subseteq B$ , where  $A\subseteq S$ and $B\subseteq S$, and $S$ has $n$ elements?   How to approach this question ?  If we start with $n$ elements then there will be $n$ subsets of size $1$, $1$ subset of size $0$ , $n-1$ subsets of size $n-1$ and each subset will have its own further subset ,which will also be a subset of given set $S$ , so now how to proceed from this stage ?


How can I breed a shiny Charmander the easiest way in Pokemon x.  Your answers will be really appreciated because i'm desperate for a shiny Charmander in my game Pokemon x.  Thanks.


Example of $V^* \otimes V^*$ not isomorphic to $(V \otimes V)^*$

There is always an injection between $V^* \otimes V^*$ and $(V \otimes V)^*$ given by $$ f(v^* \otimes w^*)(x \otimes y)=v^*(x)w^*(y), $$ where $x,y \in V$. I've been given to understand that in infinite dimension it is not surjective. Does anybody can explain me why it is the case?  Does anybody have a concrete and simple example where $V^* \otimes V^*$ is not isomorphic to $(V \otimes V)^*$   Edit. This problem is involved in basic theory of Hopf Algebra since the fact that in infinite dimension $V^* \otimes V^*$ is only a proper subset of $(V \otimes V)^*$  is the key point for which the dual of a co-algebra is an algebra, but in general the dual of an algebra is not a co-algebra.  Second Edit The answer given  doesn't seem to answer my question as the answer of Mariano does. So even if the question may seem a duplicate, the answer is not. And as Hardmath notes "the proposed duplicate does not restrict to the tensor product of a vector space with itself, and indeed the answer given there involves one factor being the dual of the other factor. It doesn't address the problem here."


I have Plesk 12.5 installed, and it allows you to install multiple versions of PHP to be selectable within hosting spaces (domains), but the issue I've having right now is that the php that is being used by the server during SSH commands is much older, and I really need to update it.  Is there a clear way of doing so? Can I use one of the versions that Plesk installed?


Edit:  I successfully made it work, but the algorithm not efficient I taking the date coming in to my block, pipeline the data for how much points I need to median filter (for example 31), take all the 31 pipeline points and send to sorting algorithm block which returns bus with the sorted data, from this bus I taking only the median value (middle of the bus) and output it.    The only hard thing in this block diagram I sketched is the sorting algorithm, right? So I found verilog code in GitHub for bitonic sort:   connected it to the rest of my block, and everything cool I getting the sorting right and successfully calculating the median value every clock cycle. This approach working but because this much of comparators every clock cycle I'm overloading my FPGA with complexity and a lot of LUTs (I sorting 31 points every clock cycle.. that ALOT).    How you guys think I should make this median filter algorithm better? sorting the whole array every clock cycle seems like solution but naive one.


I am trying to find a way to remap keyboard keys forcefully. I tried using xmodmap and setxkbmap, but they do not work for one specific application. Such commands work for other normal windowed/applications on X tho.    I think the application may be reading the keyboard raw data and ignoring X input?    So, how to remap keys without using xmodmap and setxkbmap? if it is ever possible to be done using some software.  I also tried xkeycaps, xkbcomp, but did not try loadkeys, as it is running on X.  I found  that I could try setkeycodes, , but I also found that , that's my case (I am interested in case someone make it work on ps2 as I think I could use an adapter).  This seemed promising , but after a few tests nothing changed, here are they: I found keycode "36" ("j" key) at vt1 with showkey I found scancode "7e" (keypad ".") at vt1 with showkey --scancodes    $cat >/etc/udev/hwdb.d/90-custom-keyboard.hwdb keyboard:usb:v*p* keyboard:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*  KEYBOARD_KEY_7e=36 $udevadm hwdb --update #updates file: /lib/udev/hwdb.bin $udevadm trigger #should apply the changes but nothing happened $cat /lib/udev/hwdb.bin |egrep "KEYBOARD_KEY_7e.{10}" -ao KEYBOARD_KEY_7eleftmeta $#that cat on hwdb.bin did not change after the commands..   Obs.: did not work either with: KEYBOARD_KEY_7e=j  Some more alternative ways (by @vinc17) to find the keys: evtest /dev/input/by-id/...  or input-kbd 3 (put the id index found at ls -l /dev/input/by-id/* from ex. event3)  PS.: *If you are interested on testing yourself, the related thread for the application is this:    The issues I have are the same: some keys (KP_Decimal, DownArrow, UpArrow, RightArrow) are ignored and considered all with the same value there "0x00"


The common way for check non-empty var is:  if (!empty($var)) { ... }   Why can't we just use:  if ($var) { ... }   They're the same actually, right?  Ref:


What is a suitable word to describe a place where two rivers meet?

I've googled for a while and on some sites I've found the word "watershed" as the proposed word. Is it the word that best suits it?


I'm trying to create a functioning sub theme of Omega 4.4. I've worked  with Drush before with it, but the site is on a host that I'm not administrator of. I've tried the  but not succeeded in executing the Omega Wizard. In short, the Omega Wizard may be extremely helpful, but I can't get it to work.   Next, I've tried to manually create a sub theme using the . However, the results of this is a theme catalogue in the Themes-folder, but the theme not showing up in Drupal. Perhaps I'm using the wrong instructions for the wrong version of Omega?  Anyhow, does anyone have instructions for how to install an Omega 4.4 sub theme manually for Drupal 7?


overriding equals method in subclass without definition of hashcode()

i have following code in my class:  public class Subclass<T> extends Superclass<T> { //...  @Override public boolean equals(Object obj) {     if (obj instanceof Subclass) {         return str.equals(((Subclass<?>) obj).getStr());     }     if (obj instanceof Identity) {         return str.equals(((Subclass<?>) obj).getStr());     }     return false; } }   my superclass:   public class Superclass<T> {  @NotNull  String str;   @Override  public boolean equals(Object obj) {     if (obj instanceof Identity) {         return str.equals(((Identity<?>) obj).getStr());     }     return false;  }   @Override  public int hashCode() {     return str.hashCode();  }   and checkstyle warns me Definition of 'equals()' without corresponding definition of 'hashCode()'. do i have to override hashcode() in my subclass even thou i dont need it anywhere or is there a better solution to get rid of this warning?