I've been trying to install drivers for my wireless adapter, but it didn't work. I tried TP link original driver but it only supports 3.16.0-30-generic kernel.  $ lsusb   Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 04f2:b354 Chicony Electronics Co., Ltd UVC 1.00 device HD UVC WebCam Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 003: ID 2357:0108   Bus 003 Device 002: ID 046d:c051 Logitech, Inc. G3 (MX518) Optical Mouse Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Meaning symbol $\overline{\lim_{n\rightarrow \infty}}$

I found this symbol on a math book that I'm studying. It had never happened before. What does this mean?  $$\overline{\lim_{n\rightarrow \infty}}$$


Mahalanobis distance in $\mathbb R^3$ or more dimension

Does anyone know how Mahalanobis distance looks like in $\mathbb R^3$ or $n$ dimensions. I would also be grateful if someone could give a geometrical interpretation in $\mathbb R^3$? Thank you a lot.


What's the difference between executing ss and sudo ss?

It's better use without sudo in some ocasions?


What to do about "the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present"?

While booting Ubuntu 12.04, the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present is showing. Why is this?


Why does division by zero not have an imaginary number "option"?

In regular math, you cannot get the square root of a negative number. Likewise, you cannot divide by zero. Both dividing by zero and taking the square of a negative have no place in real life.  However, we have systems in place to deal with the square root of a negative number (hence, imaginary numbers). Why does an option for divide by zero not exist?


I want to prove that for $u,v \in V$, $\langle u,v \rangle =0$ iff $\|u\| \le \|u+av\|$ for all scalars $a \in \mathbb{F}$. Here $\mathbb{F}$ is the field of $V$ which is either complex or real numbers.   The ($\Rightarrow$) implication has been proved. What I need is ($\Leftarrow$). I tried expanding the norm $\|u+av\|$ but what I get is that  $\langle u,v \rangle \ge 0$. How do I prove it equal to 0?  Am I missing some small step? Please help, Thanks.


Does the series $\sum_{n=1}^{\infty}|x|^\sqrt n$ converge pointwise? If it then what would be the sum?


import 2 identical files from different locations

I am trying to import a file that has 2 versions (which are identical). Inside the file I have a class, lets say, "X", which I need to create 2 instances of. One from the first version of the file and another from the other version. I tried to do something like: sys.path.append(os.path.dirname(<version1>)) from <version1> import X as class_of_version1  sys.path.pop()  sys.path.append(os.path.dirname(<version2>)) from <version2> import X as class_of_version2  but I do not get the requied result.  It just uses "version1" on both cases. I do not want to add any  __ init __.py files, as I do not have permissions to change "version2". Any ideas? Thank you in advance


What level of interactibility does the Summon natural allies spell grant over summons that can speak?

I play a Gnome Alchemist with the Preservationist archetype. In my formulae I have Summon nature's allies (I, II, IV and so on...), which allows me to summon creatures to help me do things (fight, and other things). Usually I summon (fire) elementals.  What are the limitations of the interactions between them and me / them and the group ? Can I give them simple orders such as "attack this thing"? At what cost? Can I give them complex orders such as "Go look over that wall and then come back to tell me what you saw"? Would either of those require a roll for Handle Animal? Would either of those require communicating with the summoned creature in a non-innate way (for example learning Ignate language)?  For example when I summon a fire elemental to "burn that house" what actions are required from me after the actual summon?     Speak "Burn the house" in common to the Elemental? Speak "Burn the house" in ignate, the fire elemental's language? Gesture towards the house? Concentrate and wish it really hard until it works?   I feel I have a huge need to learn Ignate eventually but I'd like to know how far can I go without it.


GeoServer - manually edit WMS GetCapabilities xml files

I'm trying to use a local deployment of GeoServer. I've got a layer being exported as a WMS that I'd like projected in EPSG:3857 only. However, GeoServer adds in some defaults. If I'm using standard FTP programs (eg WinSCP), which xml files would I need to manually edit in order to take these out? I'm altering the layer's wmslayer.xml file but that doesn't seem to actually be having any effect.


Allow a moderator to suspend a user's privilege on a per-privilege basis

I propose that moderators will have the ability to suspend a user's privilege on a per-privilege basis.  So for example, a user that abuses suggesting edits can be blocked from that for a period of time, but all other privileges he has (above or below) are still kept.  That's good for:   Reviewing, we already have review bans, but this proposal is more general. Closing, users who abuse their close privileges by cluttering the review queue needlessly, voting to close old questions needlessly, closing good answers, etc. Suggested editing, obvious. Editing, obvious. Flagging.   Basically, any privilege that might get abused, should be blockable by a moderator or in some case by the system if certain conditions are met.  By implementing it as a general ability to suspend privileges, you gain a nice future-proofing for new privileges or changes in privileges.


What bibliography is used if no package is loaded?

I used to think that to use a bibliography, one always needs to load either biblatex or natbib however in my current thesis template, neither package is loaded and yet there is a bibliography (from .bib file generated by JabRef in biblatex mode).  When I try to use the biblatex package, I get errors reffering to the way the bibliography style is set.  What is the Latex default bibliography "tool"? Also if everything's working fine, why would I want to use biblatex?  (Using TexStudio, TexLive, JabRef)


Polynomial in $\mathbb{Z}[x]$ which is irreducible but not prime.

I know that in an integral domain, prime implies irreducible. Moreover, in a principal integral domain, these notions are equivalent. The ring of polynomials $\mathbb{Z}[x]$ is not a principal integral domain (if it were, an irreducible ideal $I$ would be maximal, and the quotient $\mathbb{Z}[x]/I$ would be a field, but the quotient by the irreducible ideal $(x)$ is $\mathbb{Z}$ which is not a field). Is there a polynomial in $\mathbb{Z}[x]$ which is irreducible but not prime?


Why do we need formal logic proofs when we have truth tables?

Truth tables are capable of demonstrating the validity of a formal logic statement.  This can be done extremely quickly using technology and it doesn't require any high-level proof rules (everything can be calculated on a fundamental level).  In comparison, proofs require a human (or a much more sophisticated algorithm) and they can be complicated to develop.  Assuming a computer is available, why do we need to prove validity with proofs when we could just use computers to quickly generate truth tables?


I'd like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn't seem to be any way to not do that? (There is a --numeric-owner option for tar which seems to ignore the user name, but still keeps the user ID.)  Doesn't that mean that .tar.gz is a poor choice for file distribution as my system probably is the only one with my user ID and my user name? Is .7z a better format for file distribution, or do you have any other recommendation?


Is it necessary to run the command sudo apt-get update each time after installing any software/application?  I know the use of this command. I just want to know when to use it.


I was planning to write some article for the Mathematics magazine of our college and it occurred to me that it will be a good idea to write about the impact and importance of Set Theory.   I plan writing an article that precisely explains why Set Theory is important in Mathematics. I plan to divide the article into two main sections. The first section would explain the Importance of Set Theory in Mathematics and the second section would explain the Impact of Set Theory in Mathematics. Though I realize that the second section logically belongs to the first but I plan to give a separate section just to emphasize the point.   The problem that I am facing now is lack of material. To accomplish my goal I need a great deal of material to read and so I want the help of my fellow Stack Exchange users. To be precise, my question is the following,     What is the importance and impact of Set Theory in Mathematics?   Or,     Why do we need to learn Set Theory?     Note:-  If this question seems to be too broad to answer then please notify me about the problem in the comment. I will try my best to reword it to meet the community standard.  Edit:- Along with all the answers that is provided below see .


My dough is not proving because the room temperature is too cold in my house. Is there another method to make my dough rise without over-proving it?


When browsing questions, back button always returns to page 1

Go to the list of questions (any tab) Click on page X (other than the first) Select a question Click the browser's back button   You will now be back on page 1 of the list, instead of page X (which would be the expected behavior).  Apparently, this only happens for question lists on StackOverflow. The back button works as expected for user lists and tag lists, as well as for question lists on other SE sites.  I'm guessing this bug happens because switching pages in SO's question list is done through dynamic in-place updates rather than actual links.  My browser is Chrome version 47.


I am wondering which is grammatically correct out of 'If there were more time' and 'If there was more time' or, if both are correct, whether one is preferred?  I believe it ought to be 'were' as the clause is in the subjunctive mood, however 'was' sounds significantly more correct to me (as a native English speaker from England). So which is it?  Searching an exact match in Google for each gives 4 million results for 'were' and 10 million results for 'was', though Google searches are not the basis for proper grammar.  While other questions cover 'If there were' vs 'If there was', this example seems to be a special case for me and I am interested in the choice specifically in the construction relating to 'time'.


New MySQL 5.7 installation: Account "Any@%" with USAGE-only, no-GRANT?

I've a MySQL 5.7 brand-new installation (via Oracle official RPM) on CentOS 6.5.  Via phpmyadmin, I see this strange "Any@%" account I didn't create, with only USAGE as GLOBAL PRIVILEGES and Grant: No    Is this legit? I understand that this "account" cannot really use the DB, but I'm missing the point for it to exist! Was it created by the RPM? does it exists by default?


In how many ways $5$ different rings can be worn on $4$ fingers?

In how many ways $5$ different rings can be worn on $4$ fingers ?   Although these is similar question here   But I want to answer it in different way which is like take $4$ fingers like $a,b,c,d$. Now $a$ can be filled in $5$ ways and so are others. So total ways are $5^4$ but answer is $4^5$. What is wrong in my reasoning? Which cases have I left out?


Does anybody know if there is a conversion chart showing where stuff was and where it is now on the user interface, please? I have taken ages to learn Blender 2.7 and now I have to learn where everything is again. At the moment I'm about ready to forget 2.8 and just stick with 2.79.  Dave


How can I convert my root partition from BTRFS to EXT4?

Is it possible to convert btrfs to ext4 without losing data? I'm experiencing a very low speed on read/write operations on btrfs.


I am getting a Javascript error from the code below, however, I am only getting it for some records while others process as expected.  There does not seem to be any rhyme or reason why.  Does anyone have any ideas?  This is a custom button that sits on a custom object and is mean to submit the record to a standard SFDC approval process.  A problem with the OnClick JavaScript for this button or link was encountered: Invalid or unexpected token  Javascript:  {!RequireScript("/soap/ajax/38.0/connection.js")}  if('{!SBQQ__Quote__c.Offer_Scope__c }' == '' || '{! SBQQ__Quote__c.Justification_for_Discounting__c}' == '' ||  '{! SBQQ__Quote__c.Client_Background__c }' == '' ||  '{! SBQQ__Quote__c.Additional_Fee_Requests__c }' == '' ||  '{! SBQQ__Quote__c.Non_Standard_Terms__c }' == '' )  {  var message = 'Please complete the Approval Request Information section before submitting this Quote for approval. The following fields are missing: ';   message += '\n';   if('{!SBQQ__Quote__c.Offer_Scope__c }' == ''){  message += '\nMissing Offer Scope';  }  if('{!SBQQ__Quote__c.Additional_Fee_Requests__c }' == ''){  message += '\nAdditional Fee Requests';  }  if('{!SBQQ__Quote__c.Justification_for_Discounting__c }' == ''){  message += '\nMissing Justification for Discounting';  }  if('{!SBQQ__Quote__c.Client_Background__c }' == ''){  message += '\nMissing Client Background';  }  if('{!SBQQ__Quote__c.Non_Standard_Terms__c }' == ''){  message += '\nMissing Non-Standard Terms Indicator';  }  alert(message);  }  else {  window.top.location.href = "{!URLFOR($Action.SBQQ__Quote__c.Submit, SBQQ__Quote__c.Id )}";  }


Unintentional mouse movements, am I paranoid?

I have noticed for a few months that my mouse will randomly jerk across the screen. I'm super paranoid about security. But this is just silly!  Has anyone else experienced this, and found out what causes it? It happens to me every couple of days. The cursor will jump across the screen about 1000+ pixels. I thought it was my mousepad - changed it, and that's not it.  I imagine it's just a hardware issue.  This is on a PC with a Razer Naga, wired mouse. The mouse worked for about a year before I started noticing these issues. They have persisted even after a reformat / reinstall.


I was just wondering if it would be applicable to write the domain of a parabola is:  -∞ < x < ∞


Can't get java to recognize when input is 'quit' which is supposed to end the loop/program

Here's my code. I'm super noobie so don't flame me too hard haha. I've tried a few different ways, and looked at numerous posts and sites about how to close loops. I think the problem is that (i==("quit")) is not recognizing when the user types in quit. It just loops infinitely through making me input a new word and telling me it's the wrong word.  heres the code.  package monty; import java.io.*; import java.io.Console; import java.util.Arrays; import java.io.IOException; import java.util.Scanner;  public class firsttry2 {  public static void main(String[] args) {      System.out.print("Enter the word 'quit' to end this program. Otherwise, it will run indefinitely.");      int x=0;     Scanner in=new Scanner(System.in);       while (x<1) {            String i;          i=in.next();          if (i==("quit")) {x++; in.close(); break;}         else {System.out.print("You did not enter the word 'quit'. Please try again .");          }     }  }   }  thanks for any help you guys can give me! I also tried it with while (true) and couldn't get that to work either. same result, doesn't recognize when i type 'quit'.


Set a different passwords for unlock and sudo

I am running a single-user Ubuntu install.  When I enter the password to unlock my screen after suspend/timeout, it is the same password I use for sudo - my user password.  Is there any way for me to set a different, weaker password for unlocking from sleep, so it's safe to give it to friends that, for example, are reading something on my computer and forget to wiggle the mouse without me having to give them potential root access if they decided to?  The only reason I even have a lock screen is so little siblings won't hit random keys and mess up my work when I forget and leave for a minute, so lockscreen "security" is totally a non-issue.  I am using GDM / Gnome 3.16 on Ubuntu 15.04.  I need to add that removing my login account from sudoers and using another account for sudo-related work is not a solution that I can consider.


What is the recommended minimum CPU, disk space and memory (RAM) requirements of Ubuntu 64 and 32 bit?

What is the recommended minimum CPU, disk space and memory (RAM) requirements of Ubuntu 64 and 32 bit 14.04 LTS?


Scientific P Value with adjusted R Square

I am running Spearman correlation between 2 variables weight and freight both being numeric.  The output I have received from correlation is P value - 0.00E+000 and Rank R Squared is 0.61 and which means they are moderately correlated however I am not able to interpret the p value. Is this because of large number of values I am dealing with? I have 2 million rows of data for both the variables.


How to calculate the coordinates of a point on a line?

I have an imaginary line AB. I know about the coordinates of points A, B and the size of the line AC (d).  How do I calculate the coordinates of point C, please? Thank you


How many spaces should come after a period/full stop?

In the past — or at least, when I was in elementary school — periods/full stops were followed by two spaces.  Lately, it's become more and more common to see just one space.  In the modern world, should we still use two spaces between sentences, or is just one okay?  Does it depend on the situation?  Or are both acceptable, with the choice simply coming down to personal preference?


Why was my flag for "too localized" declined, but the question closed with the "too localized" reason?

I flagged  as too localized. Today I looked at my flagging history and saw that my flag was declined with the message     flagging questions to beg for help is abuse of the flagging system. it is only meant if something needs moderator attention but never a way to ask for answers!   But the question was closed (as I did ask for) as too localized.  So I ask myself (any now you)   Was my flag not correct? Would an other reason be better suited? How did I gave the view that I ask for an answer here?   Or:   What have I done wrong?


Php runs on server, but not command line: "libssl.so.10: no version information available"

php is running on my server, though I'm unable to get it to run command line. I'm running this file:  <?php echo "done"; ?>   using this command:  php test.php   When I do, I get this error:  php: /usr/lib64/libssl.so.10: no version information available (required by php)   Any ideas why this might be? The server is live, so I'm hoping to understand what's going on here before making any changes that might break my setup. I need php to run command line, so I can get an email receiving script working. I'm on nginx, running php-fpm.   Thanks for any pointers -


Can moderators comment or vote on deleted posts? Can moderators answer deleted questions?

I am only curious, how the general lock on deleted posts interacts with the diamond.


Achievements dropdown lost its spacing, only on chat

Here's what I currently see on chat.se:    Badge text has lost its indentation, some icons are bottom-aligned instead of top-aligned, and the rep-change number sometimes floats above the text.  SE sites aren't affected; this is what I see on Meta.SE:    I think I saw normal behavior in chat 12-24 hours ago.  A  was reported last week, but it was fixed in the meantime and has now broken again.


Getting a raster extent excluding nodata area

I have a GeoTiff raster in which half of its area is nodata. The problem is that the raster extent includes the nodata area.  Is there a way with GDal to recalculate the extent of the raster excluding the nodata areas?  UPDATE  Thanx to @user30184 here is how to get the raster extent of an image without nodata border.   Replace all nodata pixels with 0 and all other pixels with 1  gdal_calc.py -A source_image.tif --outfile out.tif --NoDataValue 0 --calc="1*(A>0)" Get the shape file for the meaningful area.  gdal_polygonize.py -8 -b 1 -f "ESRI Shapefile" out.tif pols Clip the source_image.tif with the shape file to create a new tif with updated extent.  gdalwarp -of GTiff -cutline pols/out.shp -crop_to_cutline -dstalpha 3559007_2014-05-08_RE5_3A_181809processed.tif OUTPUT.tif


I have tried everything, Knox is on, Android device manager is on and its still not working.


Why does the mass of small objects not cause them to "pull" Earth towards them as slightly different speeds, as they fall to Earth?

Debate over dinner: we read on Wikipedia that . Then we remember seeing on TV ages ago an astronaut dropping a feather and bowling ball on the moon, confirming the truth of this matter. However, the objects fell on the moon much slower than they did on Earth - clearly, mass somehow does affect how quickly things "fall," despite the apparent fact that bowling balls and feathers fall at the same speed. Why else would things fall slower on the moon other than it's smaller? They say gravity on Jupiter is such that it would crush us - Jupiter is huge.   My family is of the opinion that bowling balls and feathers fall at the same speed because those aren't planets. I argue that they must fall at miniscul, perhaps immeasurably smal, different speeds, because as Earth "pulls" in them, do they not also "pull" in Earth? My family believes there's some magic size where objects are "the thing that makes gravity" versus "the thing falling into gravity," and if you're small you fall at the same speed and that's just how it is. It seems too magical for my tastes. Surely not?  Is it truly so, that all objects regardless of mass fall towards Earth at the exact same speed? Is mass of the falling object somehow irrelevant, the only relevant mass is the big thing towards which they fall?


equation of a regular polygon in polar coordinates

Consider a regular polygon with n-sides  ith radius 1. I want to construct an equation in polar coordinates for this polygon.   On the internet, I found this:  (first part) Consider the equation of just one half of one side of the $n$-gon. It's the side of a right triangle opposite angle $A = π/n$. The hypotenuse of this triangle is $1$ (the radius of the $n$-gon), so the equation of this one side is $\cos(π/n)/\cos(θ)$, where $θ$ goes from $0$ to $π/n$. The other half of this side has the same equation, so we're already at the point where we know the equation of one side of the $n$-gon:  $r = \cos(π/n) / \cos(θ), -π/n ≤ θ ≤ π/n .$  (second part)Next, we will need to develop a function of θ that "normalizes" θ to be within plus or minus $π/n$. This is accomplished by the "floor" function, as follows:  $B = θ - 2 π/n \lfloor(n θ + π)/(2 π)\rfloor $  Putting it together, the equation of an n-gon is $r = \cos(A)/\cos(B)$, which is  $r = \cos(π/n)/\cos(θ - 2 π/n \lfloor(n θ + π)/(2 π)\rfloor) $  Someone can give me a help to understand the second part or show me an another solution?  Thanks in advance.


why my loop will not stop even after i enter correct

i had try enter other thing that not related to what i want and it will prompt the else if statement ask me enter again ..but why when i enter the correct thing it still ask me to choose again ??? why ??   here is part of my code  :    public static void choose() {      Scanner read=new Scanner(System.in);     String shape = "";       do{      System.out.println("which shape you would like to choose");     shape=read.nextLine();          if(shape.equals("rectangle"))     {         System.out.println("enter width");          width=Double.parseDouble(read.nextLine());         System.out.println("enter length");         length=Double.parseDouble(read.nextLine());         System.out.println("enter color");        String color = read.nextLine();       }     else if (shape.equals("box"))     {         System.out.println("enter width");          width=Double.parseDouble(read.nextLine());         System.out.println("enter length");         length=Double.parseDouble(read.nextLine());         System.out.println("enter height");         height=Double.parseDouble(read.nextLine());         System.out.println("enter color");         String color = read.nextLine();       }     else      {         System.out.println("please enter only rectangle and box");      }      }while((shape !="rectangle" && shape !="box"));   here my run  :   which shape you would like to choose abc please enter only rectangle and box which shape you would like to choose box enter width 9 enter length 8 enter height 8  enter color   blue  which shape you would like to choose


I tried to create a question before any I notice that was some possible bug here. Why i cannot use character "problem", but others can ? is this bug ? or any mistake make by me ?


What type of an account to store emergency fund?

I'm working on building up my emergency fund. I put the money into an Ally online savings account yielding 1% interest.   Would it be wise to put the money somewhere else that gives a higher rate of return?   Or not? seeing as this is an emergency fund and its purpose is fast access.


How to install additional package in anaconda3?

I get this error while installing. And when I use sudo, it says command not found.  $ conda update conda Solving environment: done  ## Package Plan ##  environment location: /home/raworm/anaconda  added / updated specs:  - conda   The following packages will be UPDATED:  conda: 4.4.10-py36_0 --> 4.4.11-py36_0  Proceed ([y]/n)? y  Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR conda.core.link:_execute(481): An error occurred while  uninstalling package 'defaults::conda-4.4.10-py36_0'. PermissionError(13, 'Permission denied') Attempting to roll back.  Rolling back transaction: done  PermissionError(13, 'Permission denied')   This is what happens when I use sudo:   $ sudo conda update conda  sudo: conda: command not found   Neither can I use pip in sudo, I keep getting the same error:  sudo: pip: command not found   How to solve this?


To install a 60 amp panel in a shed from my house panel

I want to rum 125ft of wire through my attic then go to conduit for 20 ft to mt shed. What size and type wire do I need.


Simple script to calulate age from Date of Birth and getdate

Here is a simple script to calculate date of birth from getdate or any set date. I've seen many answers to this calculation but all seem to have issues like rounding and such.  Do you see any issues with script below for age calculation?  DECLARE @DoB AS DATE = '1968-10-24' DECLARE @cDate AS DATE = CAST('2000-10-23' AS DATE) SELECT   --Get Year difference      DATEDIFF(YEAR,@DoB,@cDate) -      --Cases where year difference will be augmented     CASE          --If Date of Birth greater than date passed return 0         WHEN YEAR(@DoB) - YEAR(@cDate) >= 0 THEN DATEDIFF(YEAR,@DoB,@cDate)          --If date of birth month less than date passed subtract one year         WHEN MONTH(@DoB) - MONTH(@cDate) > 0 THEN 1           --If date of birth day less than date passed subtract one year         WHEN MONTH(@DoB) - MONTH(@cDate) = 0 AND DAY(@DoB) - DAY(@cDate) > 0 THEN 1           --All cases passed subtract zero         ELSE 0     END


How do I align spans or divs horizontally?

My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don't appear horizontally next to each other. Suggestions?  <div style='width:30%; text-align:center; float:left; clear:both;'> Is what I have now.


I have a very strange problem with NullPointerException. Code example is as follows:  ... ... public String[] getParams(...) { ...   ... ...   ...  143   return new String[] { 144     getUserFullName(), 145     StringUtil.formatDate(sent),  .      tiltu,  .      StringUtil.initCap(user.getName()),  .      vuosi.toString(),  .      asiatyyppi[0] + " " + lisatiedot[0],  .      asiatyyppi[1] + " " + lisatiedot[1],  .      alaviitteet[0], 152     alaviitteet[1]}; 153  }   Now, I have got an issue from production having a stack trace:  java.lang.NullPointerException     at package.EmailService.getParams(EmailService.java:143) ...   I am unable to produce that kind of stack trace myself. It maybe some environment issue that for some reason line numbers don't match. If I have null references on any variable stack trace points to that specific line but never to line 143.  But what I want to ask is: is it possible to produce NullPointerException at line 143 specifically?


There is problem with my wifi connection. Its shows as connected but still internet is not working. I tried making my mobile as hotspot then try to connect my laptop to it, it worked. So problem is only when I connect to my wifi router.


Probability: the expected value in a dice game.

If a dice is thrown till the sum of the numbers appearing on the top face of dice exceeds or equal to 100, what is the most likely sum?


I have posted a few times and answered my own questions. Normally it was because I was overlooking something or just plain doing something stupid.  So I deleted the post thinking it would not benefit anybody else.  What is the MO for keeping your posts?  At the same time I am afraid if I answer my own posts (because I truly found an answer) then people may vote my answer down, when in fact I was keeping it up in case it helped someone else.  Can an answer to your own post even be voted up by another person?


While researching the possibility of using generics in apex I can across a blog with this:      "Generics are partially supported in Apex, you must be using them with   Collections and Batch Apex."   However, I couldn't really find any more information on that. Can generics be used in apex? What are the limitations?  By generic I mean in a  sense where types are not defined in code but determined at run time. For example, I would like to be able to write a List iterator in apex but not have to define the object type. Something like:  global class ListIterator implements Iterator<T>{   global boolean hasNext(){      ...   }        global T next(){             ...   }  }   Where T would be defined at runtime - it could be Account, or Opportunity, or CustomObject1 or CustomClassX. Not only would it work with these data types but when I call hasNext() it would return an instance of that class (as opposed to returning a generic Object or sObject that I would then have to cast).


How to stop google translate from translating youtube title

I've just got annoying things in my entire life. Youtube keeps translating my youtube title and it's totally annoying. Is there a way for google translate not translating my youtube title. I tried to change my country and language and it didn't work(Its only work yesterday). Did Google make another annoying update and how do I stop this translation from happening.


Proving that $4 \mid m - n$ is an equivalence relation on $\mathbb{Z}$

I have been able to figure out the the distinct equivalence classes. Now I am having difficulties proving the relation IS an equivalence relation.   $F$ is the relation defined on $\Bbb Z$ as follows:      For all $(m, n) \in \Bbb Z^2,\ m F n \iff  4 | (m-n)$   equivalence classes: $\{-8,-4,0,4,8\}, \{-7,-3,1,5,9\} \{-6,-2,2,6,10\}$ and $\{-5, -1, 3, 7, 11\}$


Show that $\frac{x^3}{x^2+y^2}$ is not differentiable at $(0,0)$, even though all directional derivatives exist

Consider the function : $$f: \mathbb{R}^2 \rightarrow \mathbb{R} , (x,y) \mapsto   \begin{cases}         0 & \text{for } (x,y)=(0,0) \\    \frac{x^3}{x^2+y^2}       & \text{for } (x,y) \neq (0,0)   \end{cases} $$  Show that $f$ not differentiable at $(0,0)$ but all directional derivatives exist.  I don't know how to tackle this problem. Can someone give some hints or solve the problem? Thanks :)


My networking was working fine yesterday. I shut down, went to bed, and when I booted up this morning it won't even talk to the router; network-manager crashes.   I was wondering how to upgrade packages when it can't connect to the internet. My Ubuntu 15.10 laptop (this machine) connects to the internet through the same router just fine. Some of the error report:  Title  NetworkManager crashed with SIGSEGV in nm_netlink_monitor_attach()  Unreportable reason    You have some obsolete package versions installed.   Please upgrade the following packages and check if the problem still occurs:    network-manager, libnm-glib-vpn1, libnm-glib4, libnm-util2, network-manager


Please explain the output of this piece of C code

I am not able to make sense of the first line inside the loop body.  How to interpret this statement:         printf("%d", i++[a]);      #include <stdio.h>      int main()     {          int a[5] = {1,2,3,4,5};          for(int i=0; i<5; i+2){             printf("%d", i++[a]);             printf(",%d",i);         }          return 0;     }   Output  1,12,23,34,45,5


How do you find the equivalent resistance here? (I realized it's a Wheatstone bridge, but it's unbalanced, so that doesn't help.) I tried using Kirchhoff's laws, but there is no cell given.


Can't mount "Windows Disk" after installing ubuntu

I can't mount or even boot my windows disk after I installed ubuntu. Can anyone help me, how can I solve this, please?  Error message:  Couldn't analyze partition: Error mounting /dev/sdb1 at /media/mapos/7670A71A70A6DFDB: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/mapos/7670A71A70A6DFDB"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb1': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the'ro'mount option.


Need to check one to one and onto functions

a) Give an example of a function from $\Bbb{Z}^+$ to $\Bbb{Z}^+$ that is neither one-to-one nor onto.  b) Let $g:A\to B$ and $f : B \to C$ be functions. Let $f\circ g$ be onto. Are both $f$ and $g$ necessarily onto?  I was thinking for   a)  $f(n) = 1$  I clearly see that this is not one to one, since there is no unique codomain for each input. but im not sure about onto..  Wouldn't all values point to 1 which would make it onto? since the codomain is 1? or would it? im confused if there is no x value in the function.


I can't prove the Archimedes' principle in a particular case

If I put the cylinder on the bottom i replace F2 with normal force N. But it will be at most equal to F1 plus the cylinder weigh N=F1+$\rho$gV.  So how can it get a bigger boost from the bottom to be able to float?


How to import pop3/imap mails to new server (backup and restore IMAP/POP3 account)?

I have new Ubuntu server with Dovecot installed, with Roundcube frontend, with root access.  And an inbox on third party service (web hosting + own domain pointed there by setting DNS addresses), without any server access, I just have credentials to Roundcube and IMAP/POP3/SMTP settings. I don't even know which protocol is this mail using (both all allowed).  How can I import all mails from this third party service inbox to the Dovecot? (i.e. mirror my mails to Dovecot, then point my domain to the new server).


When I try to install it, the following result comes up:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mono-complete : Depends: mono-devel (= 3.12.1-0xamarin1) but it is not going to be installed                  Depends: mono-4.0-service (= 3.12.1-0xamarin1) but it is not going to be installed                  Depends: libmono-cil-dev (= 3.12.1-0xamarin1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


List of file types and default Ubuntu applications to open with

I'm writing a humble file manager and am seeking a list of different file types and what default applications Ubuntu uses to open them with.  So far I've only figured out "text" open with gedit, "image" open with eog (eye-of-gnome) and "audio" open with ogg123. I'm not sure if ogg123 is a default application though.  I'd appreciate a little help expanding the list in the code below:  function OpenFileWithMagic () {  local FileType FileType=$(file -i "$DfName/$2" | grep -oP '(?<=: ).*?(?=/)') logger "bafman - OpenFileWithMagic - FileType: $FileType DfName: - $DfName parm 1: $1 2: $2 3: $3 4: $4"  case $FileType in  text)     # TODO: expand list of file types and associated applications to open them with     if [[ $4 == root ]]; then         gsu gedit $DfName/$2     else         gedit $DfName/$2     fi ;; image)     eog $DfName/$2 ;; audio)     ogg123 $DfName/$2 ;; esac  } ### OpenFileWithMagic () export -f OpenFileWithMagic   Notes: export is only required because file is opened when double-clicking from yad dialog box. I also need help figuring out "magic" numbers and how one might interpret them. Perhaps an educating link?    Edit This is not a duplicate of  because:   That question is how to open a file from the command line. This question is how do it from a bash script within a case structure. The answer there would result in rhythembox being used for sound files which is not wanted. ogg123 is more suited for playing sounds without a new window being opened and closing with python error messages. The answer there would use xdg-open /bin/mv resulting in:  gvfs-open: /bin/mv: error opening location: No application is registered as handling this file  With the above bash script the file -i /bin/mv command results in:  /bin/mv: application/x-executable; charset=binary    After filtering out processing for all desired file types within the bash script then the left overs could be passed to xdg-open which is used in the duplicate candidate.    Reply to comments As pointed out by  major file types can be found in /usr/share/mime/types. Here there are additional types to be considered such as Video (a suitable default Ubuntu video player needs to be sourced), Application (rather than running it, info about the application needs to be displayed) and Message (I have no clue how to display this). Additional mime types needing further research are inode, model, multipart and x-content.    pointed out ogg123 is not a default sound file player in Ubuntu. A suitable installed-by-default  Ubuntu application to play sound files is canberra-gtk-play as answered October 5, 2016 by  in this Q&A: .


Ubuntu 13.04 amd/intel hybrid graphics dual screen problems

After switching to Ubuntu 13.04 64bit, AMD proprietary drivers stopped working on my laptop with AMD/Intel hybrid graphics.   I tried installing older version of Intel graphics as described in this thread .  This solution works great with one monitor, but when I try to connect second one while using discrete card, my screen starts flickering and glitching very hard. It's hard to explain, seems like it tries to intersect two screens.  I noticed, that command sudo aticonfig --set-pcs-str="DDX,EnableRandR12,FALSE" failed to deactivate RandR1.2, so there's no Display Manager in amdcccle. I tried to search a solution for disabling RandR, but found none working.  I had none of these problems on Ubuntu 12.10 64bit.  Any help is appreciated. Thank you.


Tensor product of two finitely-generated modules over a local ring is zero

If $R$ is a local ring and $M$ and $N$ are finitely generated $R$-modules such that $M\otimes N=0$ then how does it follow from Nakayama's lemma that either $M=0$ or $N=0$?    This is an exercise in Atiyah and Macdonald. The part I could not show in the hints is $({M{\otimes}_R N)}_{k}=0$ implies $M_{k}{\otimes }_{k} N_{k}=0$, where $k=R/\mathfrak m$ and $\mathfrak m$ is the maximal ideal of $R$.


Understanding Python : UnboundLocalError

I have been using python for more than a year now but I am confused by something in this example:  def mul(x,y): return x*y  def setArg(f,a):     def fx(*x):         return f(*x,a)     return fx  def test1():     mul3=setArg(mul,3)  def test2():     mul=4  def test3():     mul=setArg(mul,3)  def test4():     mu=setArg(mul,3)     mul=mu   running test1 and test2 works fine,but running test3 and test4 give this error: UnboundLocalError: local variable 'mul' referenced before assignment  Can I only redefine mul inside a testX globally? Why is so in python? using python3.7


I am an Indian who holds a valid US Visa and am transiting through UK traveling to the US from India. My transit time is less then 6 hours coming and going however my flights arrive into Gatwick and depart from Heathrow


The three houses going down on the right are marked as not valid, whats wrong with them?

I am having a problem with housing --- NPCs won't move into the houses on the right. I have already tried making them bigger, but it didn't help. What is wrong with these rooms?


Consider the equation $$XA=BX,$$ where $X,A,B$ could be matrices or (pseudo) differential operators.  How to represent $X$ using $A,B$, that is  $$X=f(A,B),$$ where $f$ is a known function.


Why does the quarks binding energy add mass to nucleons instead of reducing it?

The mass of nucleons is bigger than the sum of the masses of its constituent quarks. I understand that it's because you have to take into account the binding energy of these quarks.   What I don't understand is this: In a nuclear physics course I was tought that the mass of the nucleai is less than the sum of the masses of its constituent nucleons because the binding energy between them is negative in order to make it stable.   So, if the binding energy of nucleons is negative because its suppose to be an atractive force that keeps nucleons stable, why does the binding energy of quarks add to the mass of nucleons instead of reducing it if it's also an atractive force keeping quarks stable?  I understand that in the quark regime we have to deal with quantum chromodynamics and the concept of force and energy are not that simple but I was expecting the binding energy of any atractive interaction to be negative anyway...


Principal period of $\sin\frac{3x}{4}+\cos\frac{2x}{5}$

Find the principal period of $$\sin\frac{3x}{4}+\cos\frac{2x}{5}$$    It was easy to find principle when single trigonometric function is given, but i don't know how to find principal period of sum of trigonometric function.  I have tried using . It didn't helped because it seems complicated to find the period using graph of this type of function.  My book has given solution, they have taken out period of each function and then assuming something m and n, seems too complicated because i think we can directly find the period, without assuming.


Why is there so much hope around quantum computers?

The road towards quantum computers have so many obstacles, which are deeply different and more challenging than the problems that we had with the development of classical computers. There are reasons to believe that quantum computers with a "large enough" number of qubits and low decoherence to be actually useful. Yet, there are so many investments and there's so much research around that to suggest that the whole community believes that it's certain that we will have quantum computers sooner or later. Where does this belief come from? Are there factual, scientific arguments to support that?


Story about a secret weapon fired at the moon

I read a story a long time ago that I'm trying to find. My memory of this story is very tenuous, but I think it had the following elements:   I think it was a short story There was some type of alien invasion, and the aliens created a base on the moon A young woman was the sole carrier of the knowledge of a forgotten weapon, and she was called the "Keeper of the AKKA" (or something similar) The weapon was easy to build with one hard-to-find component (some rare metal I think?), and she built it after obtaining this piece The weapon's active mode was very "boring" in the sense that it just sat there pointed at the moon, making no sound or visible motion A few minutes later the surface of the moon started glowing green and the alien base on the moon was destroyed   There's a pretty good chance I'm misremembering some part of the above. Does this ring a bell for anyone?


What is the best practice when it comes to making constructor functions in JavaScript?

So I've been trying to figure out prototypal inheritance in Javascript and I'm still confused on one point. Let's say I want to make a constructor function for a person with a few functions of it's own.  function Person(name) {   this.name = name;   this.sayName = function() {     console.log("My name is " + name);   } }  var john = new Person("John");  john.sayName();   So in this case I've created an object and called a function, however this doesn't seem to be the efficient way to do it. Another example I've seen this is this:  function Person(name) {   this.name = name; } Person.prototype.sayName = function() {   console.log("My name is " + name); }  var john = new Person("John");  john.sayName();   Now I've read that the second object is more efficient because it's not storing the sayName function within itself, instead it's going up the prototype chain until it finds it within Persons prototype object.  What I'm unsure about is which I should use for complicated constructor functions. The first snippet, in my opinion, is much much easier to read than the second because there is a clear hierarchical structure to it, but the second snippet is supposedly more efficient.   In a real world scenario, which style of constructor function would I be more likely to use?  Edit: I have a follow up question. Is there any way to make the second snippet more readable?


How can I deploy a C# console application as a single exe?

I have searched for this and there are a number of previous answers but all seem overly complex.   I'm new to C# and Windows development in general (previous Mac developer).   I have written a simple console application in C# using Visual Studio Community edition. My application uses two third party libraries (CommandLineParser and json.NET) added to my project with NuGet from within VS.   All I want to do is build my project as a standalone .exe file that can be simply run from a command prompt without having to worry about the end user having to install lots of DLLs (something that I'm not used to dealing with as a new Windows user).  I understand that the end user would need to have the .NET framework installed. Is there an idiot-proof guide to building a single .exe file in my use case?  I can't help but think that this must be a very common problem.   Thanks.


Quartz - nullpointer when im trying save entity to database

I have problem with my code. Each query for the OpenWeatherMap service should save variable oftemperature and date to the base.Unfortunately, I have a problem with a nullpointer. I found information on the Internet that you can not perform in Quartz jobs operations on a database, but i dont have any idea how to change this code.  Its my quartz job class  @Component @NoArgsConstructor public class QuartzJob implements Job {      private final String prefix = "https://api.openweathermap.org/data/2.5/weather?q=";     private final String key = "&units=metric&appid=b25d9b1a1e64e5e91ed9d14b74c1ca01";      @Autowired     private WeatherModelRepository weatherModelRepository;      @Autowired     private CityModelRepository cityModelRepository;       @Override     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {          String cityName = String.valueOf(jobExecutionContext.getJobDetail().getKey()).substring(8);          String myUrl = prefix+cityName+key;          Weather weather = new Weather();          try{              URL url1 = new URL(myUrl);              ObjectMapper objectMapper = new ObjectMapper();              JsonNode jsonRoot = objectMapper.readTree(url1);             JsonNode jsonMain = jsonRoot.path("main");             JsonNode jsonTemperature = jsonMain.path("temp");              Date date = new Date();              weather.setTemperature(jsonTemperature.asText());             weather.setTimestamp(new Timestamp(date.getTime()));             //weather.setCityModel(cityModelRepository.findByCityName(cityName));             System.out.println(cityName);             //weatherModelRepository.save(weather);         } catch (MalformedURLException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }     } }   Null Pointer is in line, where is comment. Can you give me advice how to solve this problem?


I have two languages I am actively using. English is my default, but in some applications such as Skype I use Russian. Every time I am switching from Skype to Safari I have manually switch back from Russian to English and this is annoying. How can I configure so that language switch is handled by operating system  automatically when I am changing windows?   In Keyboards->Input Sources I've ticked Automatically switch to a document's input source but it doesn't work, still if I've switched to Russian it will stay while I will change it again.  I am on Yosemite 10.  Thanks for any help!


Install Ubuntu 18.04 lts on Dell Inspiron 15 5000

Ubuntu 18.04 LTS cannot be installed on Dell Inspiron 15 5000 gaming laptop with GeForce GTX 1050 Mobile. The screen goes blacklight and freezes and the installer does not run.   There are another very similar questions, but too old, In my case am trying to install Ubuntu 18.04 with release date 4/26/2018, it is too fresh, What can I do, any advice?


What happens to candies when you transfer ALL pokemon of the same evolution line?

So candies read as a total amount no matter what Pokemon you look at of the same type or evolution, for example you'll have 5 Rattatas and 5 Raticates and 30 candies in total that you see when you look at any Pokemon.   But to my knowledge there isn't really a bag for the candies themselves.   If you got rid of all but one Rattata, you would see that you would have 39 candies, but what happens to the candies if you get rid of that last Pokemon?  Do the candies disappear with it or will they return when you catch another same-type Pokemon?


Need a regular expression for checking if an email is in the following format?

if an email is in the format   firstname.lastname@gmail.com  coditions to check via the regex :  email has only 1 @  firstname.lastname   at the very end its either a .com or .net or .co.in  it should not accept emails like  abcdef@tcs.xyz  but should accept abc.def@tcs.com or tcs.co.in    var empmail = 'charles.x.markus.bukowski@company.com' var fullName = empmail.split('@')[0].split('.'); var firstName = fullName[0]; var lastName = fullName[ fullName.length-1 ] ; var fullName = empmail.split('@')[0].split('.');


"More acrid than" but "stupider than" Why is that?

I've just read this quotation here at StackExchange: "Think of how stupid the average person is, and realize half of them are stupider than that."   I've checked a few online dictionaries and there seems to be nothing wrong with the sentence.  However, if we say "more acrid than" and "more valid than"; why not say "more stupid than" ?


What are the advantages of top 20 universities over top 70s for CS PhD in USA?

I am a Computer Science M.Sc. Student in a university in a developing country. I am planning to apply for PhD this year. Actually my main reasons to not continue my PhD here, are the issues related to my country economics and infrastructures. Poor dorm conditions, no funded PhD, unstable internet, no proper study place in university are some of them where decrease the quality and contributions of a PhD student and I think that those issues will be solved by the migration to USA itself and is not related to the rank of the destination university. to make my question clear, actually I want to know what are the benefits of a top 20 university in USA saying, Caltech over a top 70 university saying, Oregon State University . I can imagine one or two like the strong advisor and peers but I can't think more. please note that I am not asking about the after-graduation job perspective, I mean What is the effects on the quality and contributions of a PhD student to study in a top-20 instead of a top-70 university.  P.S: if it matters ranks are according to the US News portal.


I don't understand results returned in this Init function, thank for helping me:

What is meaning of "??" and why not return "(dbContext = new TeduShopDbContext())" instead of  return dbContext ?? (dbContext = new TeduShopDbContext())     public TeduShopDbContext Init() {     return dbContext ?? (dbContext = new TeduShopDbContext()); }   thank for helping


I have a table like this:  \documentclass[10pt,spanish]{article} \usepackage[T1]{fontenc} \usepackage{selinput} \usepackage{multirow} \usepackage{tabularx} \SelectInputMappings{%   aacute={á},   ntilde={ñ},   Euro={€} } \usepackage{babel} \usepackage [left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm]{geometry} \usepackage{longtable}  \begin{document}  \begin{longtable}{| p{.15\textwidth} | p{.85\textwidth} |}  \hline Spanish     & English                                       \\ \hline ser         & to be (essential/permanent quality)           \\ \hline haber       & to have (to do something, auxiliary verb)     \\ \hline estar       & to be (health, location, state)               \\ \hline tener       & to have                                       \\ \hline hacer       & to do, make                                   \\ \hline poder       & to be able, can                               \\ \hline decir       & to say, tell                                  \\ \hline ir          & to go                                         \\ \hline ver         & to see                                        \\ \hline dar         & to give                                       \\ \hline saber       & to know (information)                         \\ \hline querer      & to want, love                                 \\ \hline llegar      & to arrive, come, reach                        \\ \hline pasar       & to pass, to spend (time), to happen           \\ \hline deber       & to owe, must, should, ought to                \\ \hline poner       & to put, place, set                            \\ \hline parecer     & to seem, appear                               \\ \hline quedar      & to stay, remain                               \\ \hline creer       & to believe                                    \\ \hline hablar      & to speak                                      \\ \hline llevar      & to carry, bring                               \\ \hline dejar       & to leave, abandon, to let, allow              \\ \hline seguir      & to follow, continue                           \\ \hline encontrar   & to find, encounter                            \\ \hline llamar      & to call, to name                              \\ \hline % About 1500 rows more \end{longtable}  \end{document}   I am alway add in this table new words. I would like to order automatically rows by the value of the Spanishcolumn on alphabetical order (A-Z).  I really like how it was made . I tried to do the same for my table but I failed.   Could you help me please?


I'm planning a trip from Chicago to San Francisco and wanted to drive and was looking for one way car rentals and there charging upto a $95 daily return fee making a 7 day journey with $1200. I looked at hotwire priceline and all individual car rental websites. I was wondering if such a rental would actually cost that money. Any tips to waive the one way rental fee.


Is there is a non-constant function such that each point is its local minimum?

Is there is a non-constant real-valued function on $\mathbb{R}$ such that each point is its local minimum, i.e. its value at any point is no greater than any other value in a sufficiently small neighborhood of the point. The answer is no if continuity is assumed, see .  If there is such a function, is its range necessarily a countable set or not?


Is there a way to limit items in the iOS app's "Feed" to just mine?

The "Feed" in the (excellent) iOS Stack Exchange app includes several things that are always irrelevant to me, namely "hot" questions. Is there a way to filter them out so I only see activity related my items? Alternatively, is there a way to make the Inbox screen into the default screen?


Why does Hermione say she went looking for the troll?

In Harry Potter and the Philosopher's Stone, Hermione is in the toilets when Harry and Ron lock in the troll. She lies and says that she went looking for the troll. Why? She could have just said that she was in there because she needed the toilet (she was allowed to be, it's a girls' bathroom) and Harry and Ron came to save her.   Is there a reason she lied?


Should I round up or down my GPA on a resume?

My current cumulative GPA is 3.875. When filling in my information on an online job-site, I can only choose between entering 3.9 or 3.8. In this case, should I round up to 3.9 or round down to 3.8?


How to generate an exhaustive list of sequences with N elements choosing from C objects?


I want to find the difference between two times. I have only time stored in database. I don't have date stored.  Note : Time is in string format.  Case 1:   Starting time : 06:18:09  Ending time :  06:18:45   Case 2:   Starting time : 06:03:35     Ending time 06:18:04   Case 3: [This case isn't working ]  Starting time : 23:44:56     Ending time : 00:45:43   I'm using this code to find in seconds.But not working for me.  $datetime1 = date_create($a);   $datetime2 = date_create($b);   $interval = date_diff($datetime1, $datetime2);  $min=$interval->format('%s');   Any helps ?  Thanks!


Connect to Active Directory from outside

I've created an Active Directory Domain Controller on a Windows Server 2012 hosted on AWS and gave it a domain name dev.insidetest.com  Now I am trying to undestand how to join my local computer to this domain.   I'm pretty new to Active Directory and just trying to set up a test environment, and trying to understand how to expose my AWS AD to the world (I understand all of the risks of completely exposing something to the world, this is just testing, no production).  I did open all of the TCP ports on my AWS instance, but can't figure out what are other steps involved and even if this is actually possible.   I've had some experience with setting up something similar, but all of the machines were on my local network, so it was a bit of a different story.  Any suggestions/help is greatly appriciated.   Update:   I did see  but I don't think it's a duplicate, I undestand all the security risks but I am just creating a test environment to play around with LDAP. All I need to know is how to actually do it.   I'd expect that I need to specify the ip of where my AD is hosted as well as open specific TCP posts required for this type of connection.


triangle inequality for integrals in $\mathbb{R}^n$

For functions $f:[a,b] \to \mathbb{R}$ I know that there holds $|\int_{a}^{b}f(t) dt| \leq \int_{a}^b |f(t)| dt$. But how can I show that this holds for functions $f:[a,b] \to \mathbb{R}^n$ when we consider an arbitrary norm $||\cdot||$ on $\mathbb{R}^n$ and the integral is defined componentwise. (for the euclidean norm or the 1-Norm its clear, but I dont know how to show it for an arbitray norm. I first tried to use the fact that all norms are equivalent but this didnt work.)


Why am I missing nodes in the 'Add node' menu?

I have the problem that my blender hasn't updated correctly and is stuck on version 2.78 while it says that it has version 2.79, the issue is that I'm missing nodes like image textures and diffuse BSDF and the whole shaders option in the 'Add node' menu.


$\int_X g \, d\mu =\int_0^\infty\mu(x:g(x)>t) \, dt$

I've been stuck on this prelim problem for a while. I'm not sure how to start. I tried playing around with simple functions, but I can't relate $\psi(t)$ to $g$.     Let $g:X\to[0,\infty)$ be a measurable function and $\psi(t)=\mu\{x \in X : g(x) > t\})$. Prove that   $$\int_X\!g\,\mathrm{d}\mu=\int_0^\infty\!\psi(t)\,\mathrm{d}t.$$


I was searching for google drive and its installation instructions in ubuntu 12.04, I tried sudo apt -get install , but didn't find google drive application on  ubuntu repo. Is there any alternative or hack to install google drive on ubuntu 12.04


Prove by induction that $7^{2n}-48n-1$ is divisible by 2304

$$P(n):2304\mid7^{2n}-48n-1$$ I've done the base case; $P(1)$ is true because the expression then evaluates to zero, which is divisible by 2304. Now I'm stuck on the inductive step: proving $P(m+1)$ true if $P(m)$ is true. I do know this though: $$7^{2m+2}-48(m+1)-1 =49\cdot7^{2m}-48m-49$$


What is the use of package level protection in java?

I know how package level protection in java works. I read a lot of code (including lots of open source stuff) and no-one seem to be using it. The whole protection level seems slightly faulty to me (I'd have c#'s internal any day of the week).   Are there any legit real-world use-cases that are in common use ?  Edit: A little too late after asking this question I realized I'd forgotten to exclude the "standard" pattern of package protected implementation classes, possibly providing implementations of public interfaces. Everyone uses those, as has been noted several times in the replies. I still think there are a large number of nice replies to this question.


Prevent Radeon driver from attaching to specific PCI devices?

I have two Radeon cards in this machine, a  and a :  lspci | grep VGA      01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Turks [Radeon HD 6570]    02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cayman PRO [Radeon HD 6950]   I'm trying to get VGA passthrough to work with  on  (Wheezy), passing through the 6950 as a secondary video card to a Windows 7 guest. This works fine if I blacklist the radeon kernel module via /etc/modprobe.d/.  If I remove the blacklist to run X11 (or even just a  console) on the 6570 the radeon module seems to attach to both cards:  dmesg | egrep "01:00.0|02:00.0|radeon"     pci 0000:01:00.0: [1002:6759] type 0 class 0x000300    pci 0000:01:00.0: reg 10: [mem 0xe0000000-0xefffffff 64bit pref]    pci 0000:01:00.0: reg 18: [mem 0xf7e20000-0xf7e3ffff 64bit]    pci 0000:01:00.0: reg 20: [io  0xe000-0xe0ff]    pci 0000:01:00.0: reg 30: [mem 0xf7e00000-0xf7e1ffff pref]    pci 0000:01:00.0: supports D1 D2    pci 0000:02:00.0: [1002:6719] type 0 class 0x000300    pci 0000:02:00.0: reg 10: [mem 0xd0000000-0xdfffffff 64bit pref]    pci 0000:02:00.0: reg 18: [mem 0xf7d20000-0xf7d3ffff 64bit]    pci 0000:02:00.0: reg 20: [io  0xd000-0xd0ff]    pci 0000:02:00.0: reg 30: [mem 0xf7d00000-0xf7d1ffff pref]    pci 0000:02:00.0: supports D1 D2    vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none    vgaarb: device added: PCI:0000:02:00.0,decodes=io+mem,owns=none,locks=none    vgaarb: bridge control possible 0000:02:00.0    vgaarb: bridge control possible 0000:01:00.0    pci 0000:01:00.0: Boot video device    [drm] radeon kernel modesetting enabled.    radeon 0000:01:00.0: setting latency timer to 64    radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)    radeon 0000:01:00.0: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF    [drm] radeon: 1024M of VRAM memory ready    [drm] radeon: 512M of GTT memory ready.    radeon 0000:01:00.0: irq 46 for MSI/MSI-X    radeon 0000:01:00.0: radeon: using MSI.    [drm] radeon: irq initialized.    radeon 0000:01:00.0: WB enabled    [drm] radeon: ib pool ready.    [drm] radeon: power management initialized    fbcon: radeondrmfb (fb0) is primary device    fb0: radeondrmfb frame buffer device    [drm] Initialized radeon 2.12.0 20080528 for 0000:01:00.0 on minor 0    radeon 0000:02:00.0: enabling device (0000 -> 0003)    radeon 0000:02:00.0: setting latency timer to 64    radeon 0000:02:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)    radeon 0000:02:00.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF    [drm] radeon: 2048M of VRAM memory ready    [drm] radeon: 512M of GTT memory ready.    radeon 0000:02:00.0: irq 49 for MSI/MSI-X    radeon 0000:02:00.0: radeon: using MSI.    [drm] radeon: irq initialized.    radeon 0000:02:00.0: WB enabled    [drm] radeon: ib pool ready.    [drm] radeon: power management initialized    fb1: radeondrmfb frame buffer device    [drm] Initialized radeon 2.12.0 20080528 for 0000:02:00.0 on minor 1    [drm] radeon: finishing device.    radeon 0000:02:00.0: ffff88041a941800 unpin not necessary    [drm] radeon: ttm finalized    pci-stub 0000:02:00.0: claimed by stub    pci-stub 0000:02:00.0: irq 49 for MSI/MSI-X    This causes the Windows 7 VM to bluescreen on boot.  How can I configure things so that module radeon only attaches to the 6570 and not the 6950?


I am trying to put inside a regex a variable but I cannot get the right results I want. I want to remove 40 characters from the string "stringToSend", but if I add the variable "characterLength" inside the regex, it doesn't work. If I just add the integer 40 inside the regex, everything works fine. How can I add that variable "characterLength" inside the regex rightly? <script>     var stringToSend = '9615f3837cf791fc4302a00ab4adb32dd4171b1e_00004.jpg';     var characterLength = 40;     var regexVar = new RegExp(/^\w{' + characterLength + '}\_/);  // this regex doesn't work     // var regexVar = new RegExp(/^\w{40}\_/); // this regex is working     outputString = stringToSend.replace(regexVar, '');     outputString = outputString.replace(/\.[^/.]+$/, '');      console.log(outputString); // Wanted output: 00004 </script>


I have been a user of Stack Exchange for a few months, and I know that questions that require a very long answer are closed as "too broad". This seems to be rather conflicting from SE's goal IMO.     Stack Exchange is a network of 169 communities that are created and run by experts and enthusiasts like you who are passionate about a specific topic. We build libraries of high-quality questions and answers, focused on each community's area of expertise.   Considering this as SE's mission, we would like to make SE a huge database of information to all. Here, I feel that the "too broad" closing gets in the way of posting extremely thorough answers to a question that asks for such. Personally I find SE to be a very easily accessible resource, and it would be great to find detailed answers to questions that would have otherwise been closed as "too broad". Searching for references has always been quite a headache for me, so having crystal clear answers on SE seems to be beneficial to me.  Of course, I did notice that SE also wants high quality questions as well, and questions asking for lots of information aren't exactly what you'd call as high quality. This puts me in a dilemma on whether closing "too broad" questions is useful or not.  And of course, you might say, "We are supposed to discourage people who just ask 'How do I make a computer?' and be on with it". In such a situation, I really think that human nature can handle it. No one likes to help lazy people. If a overly broad question pops up, it would mostly get ignored for being so. If an asker desperately needs an answer, he may place a bounty on the question. But what I feel is, I don't see any reason to prevent someone from answering a broad question.  Please note, I speak from the science sites point of view. I don't know how well my arguments stand for sites like Stack OverFlow or DIY, since I have never used them before.


I am trying to connect a second monitor to a computer with only a 9 point 10101 A port

I have 9 point connection on my computer and am trying to do a double monitor. The 9 point says 10101 A. Is there a connector for this to an HP2009m Monitor?


Windows 10 changes UEFI boot order every time

I have an HP 500-413nl (a desktop) and Windows 10 keeps changing the boot order in UEFI/BIOS every time, so that if I want to boot Ubuntu 16.10 (64-bit) I always have to press F10, thus entering the BIOS setup and changing boot order…  Is there a workaround for my PC? What should I do? I'm a little desperate.  P.S.: I have already disabled "Secure boot" and "Fast/quick boot" in the BIOS and "Fast startup" in Windows options / Control panel.


Why can't I capture a city with ranged units?

I surrounded Belgrade with crossbowman and unleashed fire every turn. Its health was near nothing, but my attempts to damage the city's defenses froze or something. When it says '-1' or '-3' usually, it now says nothing, yet I still fire (the whole fire-bolt animation).  I am fairly new at any Civ game, I bought it yesterday. Am I missing something? Why can't I capture the city?


How to manage permissions for user groups for internal harddisk partitions

I was advised that for managing permissions to access the partitions of hard disk you should add users to groups and I figured out how to do that.  But I don't understand how to add permissions for users in such a way that they do not have access to some specific hard disk partitions, but they have access to other partitions (without use of sudo password)  After mounting partitions as admin user, when I go to properties and then to permission, and there try to change the permissions for groups to access files/directories and I change the groups and try to save, it automatically changes to the previous setting before I can save it.  I am using Ubuntu 12.04 LTS  How can I manage permissions for users to have access to hard disk partitions?


Using differentials in integration by substitution

I am confused why we can introduce differentials into an integral when performing an integration by substitution.   Consider the integral $$\int \frac{1}{ x \sqrt{1-x} } dx.$$ We can perform the substitutions $$x=\sin^2u,$$ $$dx=2\sin u \cos{u} du  ,$$ on the integral to give $$\int \frac{1}{ \sin^2u \sqrt{1-\sin^2u} } 2\sin u \cos u du .$$  Why can you treat $dx$ as a differential?   From my understanding the integration sign $\int dx$ works as as if it is an operator, just like how $\frac {d}{dx}$ works as an operator and not as a fraction. Which means $\int$ and $dx$ should not be interpreted separately.   But at the same time treating $dx$ as a differential always work out fine so there must be some validness in treating it as an differential.


How can I check file permissions, without having to run operating system specific command via passthru() or exec()?


How to animate the Displacement of the Displace modifier

I'm trying to animate a flag but I want to avoid using Cloth or any Physics simulation. I like the deformation I get by using a Displace modifier controlled by a procedural cloud texture. If I could animate the texture so it moves across the flag I'd be happy. Is there a way to animate the coordinates of a procedural texture used by the displacement modifier?    Blend file


Why hash the message before signing it with RSA?

The  below illustrates the process of  a message with RSA:    As diagram shows, the message is first hashed, and the signature is then computed on the hash, rather than on the full message.  Why hash the data before signing it? Why not sign the whole message? Of course, it'll save time if you sign just the hash value, but I've heard there are also security issues with directly signing the full message. If so, what are they?


Proof by induction of Bernoulli's inequality: $(1 + x)^n \geq 1 + nx$

I'm asked to used induction to prove Bernoulli's Inequality: If $1+x>0$, then $(1+x)^n\geq 1+nx$ for all $n\in\mathbb{N}$. This what I have so far:  Let $n=1$. Then $1+x\geq 1+x$. This is true. Now assume that the proposed inequality holds for some arbitrary $k$, namely that $$1+x>0\implies (1+x)^k\geq 1+kx,~\forall~k\in\mathbb{N}\setminus\{1\}$$ is true. We want to show that the proposed inequality holds for $k+1$. Thus multiplication of $(1+x)$ on each side of the above inequality produces the following result: $$(1+x)(1+x)^k\geq (1+kx)(1+x)\implies (1+x)^{k+1}\geq 1+x+kx+kx^2\cdots\cdots\cdots$$  I'm not sure where to go from here.


What type of relationship should the speed of sound vs. air temperature graph have? Linear? Quadratic? Exponential?

I did a lab in class and the data I got might be a bit skewed (this is homework). When I graphed the speed of sound (m/s; y-axis) vs. air temp (degrees Celsius; x-axis), my graph resembled that of the graph of $y=x^3$ where it goes from concave down to concave up. Does my data contain errors or is this actually the way the graph was supposed to turn out?  Experiment: We took a Pasco Resonance tube and heated it up with a hair dryer to about 38 degrees Celsius. Then we placed a microphone near the open end (other side was closed) and used a dog clicker to make a sound right next to the microphone. The microphone recorded the sound as it went into the tube, bounced back, and came back to the microphone. The room was a standard college Physics classroom (room temp, regular pressure, humidity, etc...)


I cannot upvote my own stuff (questions or answers). Why is it that I can mark my own question as a favorite?  Isnt that like upvoting it?  Wouldn't common sense dictate that, as it is my question, it is one of my favorites; i.e., something that I am interested in?


Command to italicize text with slanted numbers

I often find myself adding a lot of \textsl{} around inside \emph{} or \textit{} blocks because I find italicized digits to look too "showoffy" and "baroque" and to hinder legibility (I'm using $$ when the number has a mathematical sense, but this situation occurs in less technical texts like CVs, and such.).  Could someone help me write a renewcommand to automate this, or better, a single low level command that makes \emph, \itshape, \textit and friends choose slanted over italic for numbers? I'm not too familiar with the low level latex font selection system nor with a way to detect digits from regular letters.  Edit: MWE of what I need and what I want to avoid  \documentclass{article} \begin{document} He thought: '\emph{Why 1234567890 apples?}' then he realized '\emph{ah yes, he has \textsl{1234567890} childs}' \end{document}   gives:   I find the italicized version (first one) of 2,3,4 and 7 to look especially bad.


How important are camera settings when shooting RAW?

I would like to start shooting RAW instead of jpeg. I am wondering if i need to still worry about setting ISO, aperture and shutter speed. If so, why?


If $x_0=1$ and $x_n=\dfrac {1}{1+x_{(n-1)}}$, find $\displaystyle\lim_{x\to\infty} x_n$.  My attempt: $x_1=1+\dfrac 1 2=\dfrac 3 2$ $x_2=1+\dfrac {1}{1+\frac 3 2}=\dfrac2 5$ Which gives following series: $$1, \frac32, \frac35,\frac 58, \frac 8 {13}, \dots$$ Since the denominator is greater than the numerator, the limit of $x_n=0$ when $x\to\infty$. I do not think this result is correct. I think this problem must have a solution using continued fractions. Any idea?


Difference between private IP and public IP?

What is the difference between public IP and private IP? Does each machine have both a private IP and a public IP? Who assigns public and private IP? and how can a machine having only a private IP access internet?


Problem with broadcom wireless driver on ubuntu 15.10

Yes I realize there are tons of material on the subject no I did not read them all. Now I have gone through good few of the answers and it got me as far as system finding the drivers on its own and trying to install them through Software and updates / additional drivers section. Problem is it starts download but than even if left for 15 hours it just doesn't download them once you click apply changes it just sits there on about 5% mark. Have any of you linux magicians can come up with idiot proof solution for complete ignorant like my self had linux for 24h.   lspci -knn | grep Net -A2     DeviceName: Realtek Gigabit Network Connection     Subsystem: Hewlett-Packard Company Device [103c:3660]     Kernel driver in use: r8169 02:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Hewlett-Packard Company Device [103c:365e]     Kernel driver in use: b43-pci-bridge


Prove that if $\gcd(ab,c)=1$, then $\gcd(a,c)=1$.

I was told to prove $\gcd(ab,c)=1$ then $\gcd(a,c)=1$.  I picked a number $p$ that goes into $ab$ and $c$, so $ab=px$ and $c=py$. but now what?? I tried $abc=p^2xy$ but then I can't.  Please help me!


How to get my own question migrated to an unlisted migration site?

If I post a question and afterwards realize it's better more appropriate on another site, what is the best way to get the question migrated to another site if the site is not listed in the migration sites list after flagging it to be closed?   I don't want to delete the post, contributing towards any negative question-ban stats & don't have the reputation to migrate it myself.


I've got a bash script in which i create a file and append to it. Problem is when I try to write to it, the shell tells me   /home/username/bin/myscript: line 62: ~/Desktop/folder/filename: No such file or directory   The script part is:  57: mkdir ~/Desktop/folder 58: touch -a ~/Desktop/folder/$1 59: chmod 774 ~/Desktop/folder/$1  61: addr=$(cat $D/$1/address) 62: echo "$addr">>"~/Desktop/folder/$1"   When I go look for the file, it appears in the ls command with the correct permissions. It also appears correctly in the file explorer.  I've tried changing between cat and echo commands to append to the file but neither works.


Define $f$ has second continuous derivative over $[0,1]$. And $f(0)=f(1)=0$, And $f(x)\neq0 \,when \ x\in(0,1)$,    prove $$\int_{0}^{1} |\frac{f{''}(x)}{f(x)}|\,dx\ge 4,$$    I can't use $f(0)=0 \ and\  f(1)=0$ completely at the same time whether using the Lagrange Mean Value Theorem or the Fundamental Theorem of Calculus. So I can not solve it. How to prove that? Thank you.


Why is global variable NOT affected by function using same variable name?

I feel like I'm almost grasping it... like it intuitively makes sense but I don't know the details of why. Can someone explain:  Why here, global arr is NOT affected outside the function  arr = [1,2,3] function test(arr, a, b) {    arr = arr.filter(item => (a < item  && item < b))    console.log(arr) // [2] }  test(1, 3) console.log(arr) // [1,2,3]   Why here, global arr IS affected outside the function  arr = [1,2,3] function test(a, b) {    arr = arr.filter(item => (a < item  && item < b))    console.log(arr) // [2] }  test(1, 3) console.log(arr) // [2]   EDIT another example. Why here global arr IS affected outside the function EVEN THOUGH once again arr is passed as a parameter  arr = [1,2,3] function test(arr, a, b) {   for (let i = 0; i < arr.length; i++) {     let val = arr[i];     if (a >= val || val >= b) {       arr.splice(i, 1);       i--;     }   }   console.log(arr) // [2] } console.log(arr) // [2]


how much helium would you need to pick up one kilogram on mars? is there an equaison that can be used?  thnx alot!


Is there a way to disable MsMpEng.exe from monitoring file access during parallel computing operations?

I am using Windows 7 and have a 4-core Intel CPU, and was recently running a 4-kernel parallel computation written in Wolfram Mathematica that accesses a directory on an external hard drive containing several million files. I noticed the parallel computation was proceeding slower than expected, and isolated the problem to be due to the Security Essentials process "MsMpEng.exe"; see the following screenshot:    The MathKernel objects are sharing CPU resource with MsMpEng.exe, which is presumably scanning the files imported by the MathKernel objects as the computation proceeds.   This is unacceptable, and has also caused some other resource complications which are not really worth delving into, but it suffices to say that I am wondering whether it is possible to temporarily disable "MsMpEng.exe" while running computations, or at least tell it to not scan files located in a specific directory when another program (in this case, Mathematica) tries to open them.  EDIT: I restarted and disabled real-time protection, and the process so far seems to be gone; I'll post later if it pops up again and causes trouble.


frame_change_post/pre not working when Rendering Animation

I've got this script file that works flawlessly in the viewport, but stops completely when I start rendering it as an Animation.  import bpy import math  def my_handler(scene):     print('testing') # this will be printed out 3 times each frame when rendering the animation, but once only in the viewport.     #assigning variables to objects     a=bpy.data.objects['EmptyTop']     b=bpy.data.objects['EmptyRight']     text=bpy.data.objects['TextRightSide']      # formula for calculating distance     distance=str(int(math.hypot(a.location.x - b.location.x, a.location.y - b.location.y)*10))     text.data.body=distance  bpy.app.handlers.frame_change_post.append(my_handler)   (my_handler) is refreshed every frame as I've tested it by printing a test text in it. However, the main problem is that it does not do anything with the next code (bpy.data.objects). I've tried to change (bpy.data) to (scene) as shown  import bpy import math  def my_handler(scene):     print('testing')     #assigning variables to objects     a=scene.objects['EmptyTop']     b=scene.objects['EmptyRight']     text=scene.objects['TextRightSide']      # formula for calculating distance     distance=str(int(math.hypot(a.location.x - b.location.x, a.location.y - b.location.y)*10))     text.data.body=distance  bpy.app.handlers.frame_change_post.append(my_handler)   Worked just fine in the viewport but gave me this message when rendering the it as An animation  (line 7, in my_handler KeyError: 'bpy_prop_collection[key]: key "EmptyTop" not found')   Sooo, what should I do now to make it work?


0/1 can be flexible and can add options such as "2, 3, 4" in the future.  Does TINYINT in MySQL take up more space than boolean?  Personally, I use 0 and 1 for everything.    You can answer this question in the context of regular programming (or MySQL, whichever you like).


Possible Duplicate:          I have ubuntu installed on my mac with VirutalBox. Firefox is installed and I want to clear the cache of Firefox. I don't find any menu bar, how can I do that ?


Publishing a paper that is not related your field

I am graduate student in mathematics, but I did undergraduate in a different field (Astrophysics/Geophysics). I did my undergraduate reaserch somewhat seriously and have a good thesis as an undergraduate. My advisor told me that maybe the result I got is publishable. I have never done any publishing beforehead, so preparing for it may take some time. Of course by doing that, I will have less time to focus on mathematics. Also it is not guranteed that the result will be published in the end.   Now the question is : will it be beneficial (in terms of career in mathematics) to spend time to prepare publishing my undergraduate thesis, which is different field from my current major? Will the publication make my CV stronger?  Of course I know it really depends on some factors such as 1.how much time will I loose by preparing the publication? 2.how is my undergraduate thesis related to the mathematics? 3.What is my future goal?, and perhabs more, so there is no single answer. I just want to listen to the opinions from more experienced.


How to separate a number from 3 digits to 3 digits by comma in sql server?

For example, I want to convert the number. select convert(1354256,money) salMoney  result: 1354256  convert  to 1,354,256


How to deal with invalid "editing" of a response

One of my answers to a question was "edited" by another user.  The "editing" consisted in inserting a hyphen in one of the words I had used, and "replacing" some other words with the identical spellings.  What should I do in such circumstances?


"find: rename: no such file or directory" when running `-exec rename` in find

I am trying to rename files in src folder bitcoin/src by using:  find . -exec rename 's/bitcoin/altcoin/' {} ";"   also tried:  find ./ -type f -readable -writable -exec rename -e 's/bitcoin/altcoin/g' {} \;   and I got this:  find: ‘rename’: No such file or directory   I am trying to fork bitcoin to my own altcoin, using Ubuntu 18.04!  What's the problem and how can I fix it?


What are Window Managers, Desktop Managers, Desktop Environments, Login Managers? Which one do you need and Why?

What are Window Managers, Desktop Managers, Desktop Environments?   Which one do you need and Why?


When will Compiler not create default constructor?

I have in my book the following statement:   If we have given any constructor for a class whether it is  1. our own explcit default constructor ( i.e parameterless or with parameters having default values )  or  2. our own constructor with parameters  Then compiler will not create implicit default constructor.  BUT I have doublt about point 2 and I suspect my book id either incorrect or outdated because my following code does have a constructor with parameters but the compiler is generating internal constructor too.   #include <iostream>  class imminent{     public:     imminent(int x, int y){     std::cout << "I am explicit constructor" << std::endl;     } };  int main(){     imminent gilfray(); /* compiler creates internal default constructor                             that why this line is compiled without errors*/      imminent jimmy(1, 2); }   Moreover, how can I put my c++ code in real way here as this time I was forced to use JS in the code snippet, isn't there any c++ code sharing option ?


Suspended accounts effect badges(plural) like Fanatic?

When I get suspended do I still get credited for visiting everyday? an what of the other badges?(in the title it don't limit this only to fanatic) Are there badges that are negatively effected?


Maximum given a list of integers, and any combination of the operators $( ) ,+, *$

Given a list of integers, insert the operations $( ) +$ and $*$ to yield the maximum value.  Examples: $2$ $1$ $1$ $2$ is maximized with $(2 + 1)  * (2 + 1) = 9,$ and $1$ $1$ $1$ $1$ $1$ $1$ is maximized with $(1 + 1 + 1) * (1 + 1 + 1) = 9.$  Is there an algorithm that works every time to solve this problem?


How to avoid using SOQL with in For loop?

When i run the test code, it throws me message "System.LimitException: Too many SOQL queries: 101". How do i avoid using too many SOQL in this code.     trigger GetObjLabel on Task (before insert, before update) {     for(Task t : trigger.new){      if(t.whatID != null){       List<HOA__c> HOAList= [select id,name from HOA__c where id =: t.whatID];       LIST<Patient_Event__c> SafetyEventList=[select id, name from Patient_Event__c where id=:t.whatID];       List<Review__c> SEreviewList=[Select id, Name from Review__c where id=:t.whatId];       List<Patient_Satisfaction__c> PRList=[Select id, Name from Patient_Satisfaction__c where        id=:t.whatId];       List<Root_Cause_Analysis__c> RCAList=[Select id, Name from Root_Cause_Analysis__c where        id=:t.whatId];         if(HOAList.size() > 0){         for(HOA__c o : HOAList){                 t.Object_Label__c= 'HOA' + '('+o.Name+ ')'; //This will give output as HOA(<HOA. name>)              }           }           else if(SafetyEventList.size() > 0){              for(Patient_Event__c a : SafetyEventList){                 t.Object_Label__c= 'Safety Event' + '('+a.Name+ ')';                }           }            else if(SEreviewList.size() > 0){              for(Review__c r : SEreviewList){                 t.Object_Label__c= 'Safety Event Review' + '('+r.Name+ ')';               }           }               else if(PRList.size() > 0){              for(Patient_Satisfaction__c r : PRList){                 t.Object_Label__c= 'Patient Relations' + '('+r.Name+ ')';               }           }               else if(RCAList.size() > 0){              for(Root_Cause_Analysis__c r : RCAList){                 t.Object_Label__c= 'RCA' + '('+r.Name+ ')';              }           }           else{                t.Object_Label__c= null;           }       }    }          }


If single phase supply can not create rotating MMF, how does Induction motor generate torque?

I do understand that in a Three phase Motor, a rotating magnetic field is produced in stator and the induced magnetic field in rotor tries to aligns itself with the stator field which makes the rotor rotate.  But in case of a single phase supply, there is only a pulsating stator field. So to start the motor, an auxiliary winding is used which has a field that lags the main field by 90 degrees.   After the motor starts, the auxiliary winding is disconnected and now we only have the pulsating field in stator which can not generate any torque. Then how does the motor continues to produce torque and rotates?


Can I get a SQL Injection by checking how many rows my database has?

I made a short code which shows me exactly how many users are registered in my website. $user_query = "SELECT id FROM users ORDER BY id"; $user_counter = ($user_query); $user_counter_run = mysqli_query($conn, $user_counter); $user_counting = mysqli_num_rows($user_counter_run);  I dont have much experience about SQL Injections... Im just wondering, can i get a SQL Injection by this code?


Subfield of $\mathbb R$ with algebraic closure as $\mathbb C$.

Does there exist a proper subfield of $\mathbb{R}$ whose algebraic closure is $\mathbb{C}$ ?   A weaker question: Does there exist a proper subfield $F$ of $\mathbb{R}$ such that $\mathbb{R}$ is algebraic over $F$?


Prove that $n^3=n \text{ mod }6$ for every integer $n$.

Prove that for every integer $n$ , $n^3=n \text{ mod }6$  I was having no clue how to do this, then I thought of case-by-case analysis and obviously it worked. The problem is that there were six case and together they are long.   Is there any shorter method of proving this. Kindly provide some hints.


What creates a calisson-like shaped light bokeh ? How to craft this aspect of the bokeh?

What creates a calisson-like shaped light bokeh such as this one (made with Arri signature T/1.9) ? The further from the center the more present are the angles, why ?    Another lens (Zeiss Supreme T/1.8) gives another shape:    How (where in the lense) to craft this shape ? Yet, why (how) in the Zeiss case, the bokeh looks harder, even though the aperture is the same (1.8 ~ 1.9) ?


Showing that two topologies give rise to the same topology

Suppose that for a metric space $(X,d)$ we have another metric $p$ forming the metric space $(X,p)$. Both of these will give rise to two topologies $\tau_{1}$ and $\tau_{2}$. I want to show that $\tau_{1}$ and $\tau_{2}$ give rise to the same topology.   How could one do it generally in this case? I was thinking of taking an open set $U_{d}$ in the metric space $(X,d)$ and showing that this is open in $(X,p)$ and conversely, taking an open set $U_{p}$ in $(X,p)$ and showing its open in $(X,d)$. Would this be the idea to prove that the topologies are equivalent? (I'm sure this can be used with more generality for the case that we have two topological spaces rather than two metric spaces). If not, what would be the correct way?  Thanks for the help.


Textured object becomes black in Texture Paint mode?

I've unlinked all object data, materials and textures. The texture is assigned and visible when I'm in Object mode and Edit mode. But when I switch over to Texture paint mode, I can't see the texture that I want and I have to start from scratch. Thanks for any help you can give me!


With right click on every tile I have the option to make it larger or smaller, except the IE 10 tile - it is always small (at least on my PC), and the right click doesn't show such an option.


How to stop certain urls from being indexed

When I type site:example.com(using my domain obviously), I get several link errors showing up in the listing. Typically, they are of the form: /some/fixed/path/admin/unblockUser/11  I am thinking of adding the following line to my robots.txt file:  Disallow: /some/fixed/path/admin/*


What is the simplest proof of the pythagorean theorem you know?

Maybe enough so to explain it to children.


Build a bijection $\mathbb{R} \to \mathbb{R}\setminus \mathbb{N}$

Build a bijection $f: \mathbb{R} \to \mathbb{R}\setminus \mathbb{N}$.  What about $f(x)=\pi \cdot x?$


I have been asked this question in two consecutive interviews, but after some research and checking with various systems administrators I haven't received a good answer. I am wondering if somebody can help me out here.  A server is out of disk space. You notice a very large log file and determine it is safe to remove. You delete the file but the disk still shows that it is full. What would cause this and how would you remedy it? And how would you find which process is writing this huge log file?


Can God make a rock so heavy he cannot lift it?

Is this really a paradox? God, at the point in time when the question is posed, is Omnipotent - so he must be able to. But in creating something that He cannot later move, does this power simply come at the cost of his own Omnipotence?   Does denying God the power to die also deny his Omnipotence?


Oxford Dictionary - Here "Oxford" is an adjective or noun?

I like to know when noun is used as adjective.


Distortion on human voices but not music

I bought a Dell Inspiron N4110, the sound plays fine from the speaker, but when I plug my earphone (which has the 4-segment TRRS jack, i.e. stereo+mic) then human speech gets distorted although background music tends to play fine this causes speech to get drowned in the music (in movies this means I can't hear what they were talking despite my ear getting hurt by the loud background music).  I tried multiple different video, they're all exhibiting the same symptom, the earphone somehow can distinguish human voice and background music and filter out only those human voices in all the videos I tried.  I tried using a different earphone (a 3-segment TRS jack, i.e. stereo), and this plays fine.  It wasn't the TRRS earphone either, as I regularly use it with my mobile phone fine.  So my guess is that the distortion is because I'm plugging TRRS jack into a TRS socket and they doesn't work well together.   The question is:   is there any workaround to use a TRRS earphone on a TRS socket without distortion (I don't need to use the mic)? (bonus) why is it distorting only on human voices?


Would an object floating in a spinning cylinder in empty space be pushed toward the wall of the cylinder?

This is a rather simple question, but it intrigues me nonetheless... If there was a ball in a hollow cylinder that was spinning (on an axis) in empty space (no noticeable gravitational effects), and the ball was not in contact with the wall of the cylinder nor in motion relative to the cylinder before the spinning began, would it be attracted to the wall of the cylinder with a force proportional to the speed of rotation? Why or why not?


I'm trying to Downgrade my iPhone 5s from iOS 7.1 to iOS 7.0.4.  I have been looking at tutorials, and found this one   It worked up until the last step. My iPhone starts to Extract the Software, then a popup comes up saying "This device is not eligible for the requested build". After seeing this, I went to   I followed the steps, but it still comes up with the same error message.  Can someone please tell me how to remove this "This device is not eligible for the requested build" error message?


Can I call a base class's virtual function if I'm overriding it?

Say I have classes Foo and Bar set up like this:  class Foo { public:     int x;      virtual void printStuff()     {         std::cout << x << std::endl;     } };  class Bar : public Foo { public:     int y;      void printStuff()     {         // I would like to call Foo.printStuff() here...         std::cout << y << std::endl;     } };   As annotated in the code, I'd like to be able to call the base class's function that I'm overriding. In Java there's the super.funcname() syntax. Is this possible in C++?


When I use this command :  > chm <- grid_canopy(gro, 1, pitfree(c(0,2,5,10,15), c(0,1), subcircle = 0.2)) Processing [-------------------------------------------]   0% (1/341) eta:  8mError: filename exists; use overwrite=TRUE   I have an error because the file exist. How can i add the overwrite argument to grid_canopy because when i use this command :  chm <- grid_canopy(gro, 1, pitfree(c(0,2,5,10,15), c(0,1), subcircle = 0.2, overwrite = TRUE)   I receive this error :  Error in grid_canopy(gro, 1, pitfree(c(0, 2, 5, 10, 15), c(0, 1), subcircle = 0.2),  :  unused argument (overwrite = TRUE)


Limit memory usage for a single Linux process

I'm running pdftoppm to convert a user-provided PDF into a 300DPI image.  This works great, except if the user provides an PDF with a very large page size.  pdftoppm will allocate enough memory to hold a 300DPI image of that size in memory, which for a 100 inch square page is 100*300 * 100*300 * 4 bytes per pixel = 3.5GB.  A malicious user could just give me a silly-large PDF and cause all kinds of problems.  So what I'd like to do is put some kind of hard limit on memory usage for a child process I'm about to run--just have the process die if it tries to allocate more than, say, 500MB of memory.  Is that possible?  I don't think ulimit can be used for this, but is there a one-process equivalent?


I get the curvature tensor in General Relativity, it is “just” math. Does space-time REALLY curves as a tangible thing, or is Einstein proposing a mathematical abstraction?  More naively, please allow, is space-time a real physical “something” like a “new ether”? If yes, does anyone have any idea what is it made off?


How do I create an array of a generic type? (for use with NamedParameterJdbcTemplate)

in Spring has a method called  which accepts a Map<String, ?>[] array as a parameter. How do I construct one of those?  Here are some examples of what I've tried doing:  Map<String, Object>[] rows = new Map<String, Object>[] { };  Map<String, Object>[] rows = new HashMap<String, Object>[] { };  List<Map<String, Object>> rowList = new ArrayList<>(); Map<String, Object>[] rows = rowList.toArray();   None of those work. How do I do it?