What is the difference between the displace socket and a bump map?

Aside from the fact that you can control the bump mapping per shader with a bump node, are there any differences between these materials?      As far  as I can tell, they are the same. Is the displacement socket just a convenience thing? Is there a performance advantage?


Linguistic term for repeating a subject as in "We sat there, we two."

From The Cat in the Hat,     I sat there with Sally. We sat there, we two. And I said, "How I wish we had something to do!"    How do modern linguists, eg CGEL authors or readers, characterize how We sat there, we two differs from the more basic or standard We sat there or We two sat there or The two of us sat there.   I know why, primarily, the variant choice was made by the author here. But it's an example of what? Are there common reasons to choose it aside from creating rhyme or emphasizing/stressing the subject?   I can think of simple similar constructions such as We lived in our own world, you and I. And I can see a relationship between such and emphatic pronouns or emphatic reflexive pronouns or similar: I made it myself.   There is also something similar and something different between the instant sentence and, for example, We sat there, we did.   My purpose in asking is to acquire language to help me make a point that what may seem like very basic or "low level" text usually contains relatively complex formations. CGEL pages or chapter would suffice to answer the question for my particular needs, and I'm hoping for an answer that, if elaborate, also contains a concise and fairly general summary, but which uses technical linguistic terms.


How common is it for graduate schools to allow admission to be deferred for a year

I have a number of Arabic friends applying to graduate school and due to their situation, they tell me they intend to apply and then get a deferment for the next year. I am curious how common it is for grad schools to allow this.  I ask this because I am considering applying to PhD program in statistics and I'm starting a Master's program this fall. My GRE scores will expire at the end of the year and so I am considering applying to PhD programs this fall (with the expectation of deferring acceptance for the following year, which will be right after I get my Masters).  Most of the schools I look at seem to discourage deferment, and the only reason why I can think maybe the Arabic students don't run into difficulties is b/c they don't require any funding (they tend to be on the KSA scholarships).  Just curious if anyone can give me a realistic idea of how grad schools generally deal with deferments?  TIA, Matt


English is not my mother language so please forgive any mistakes. I'm not really sure how to approach this question. This is what I have until now: Consider $x \in B-(B-A)$. This means $x \in B$ and $x\notin(B-A)$. Therefore, $x \in B$ and $(x \notin B$ or $x \in A)$. Since $x \in B$, $x \in B$ and $x \in A$. So $x \in A \cap B$. However, if I remember correctly, I am supposed to prove the equalty both ways, like this: 1) $B-(B-A) \subset A \cap B$ 2) $A \cap B \subset B-(B-A)$  What I just wrote was Part 1 (although I don't know if it's correct). My issue is, I don't really know how to prove Part 2.


Possibly a silly question but do truth tables themselves need proofs, or are they technically considered definitions and therefore require no proof?


How can I compute $$\sum_{i=0}^n i 4^i$$ this equation? What is the way?


Question about arithmetic–geometric mean

We have two sequences: $$a_{n+1}=\sqrt{a_nb_n}$$ $$b_{n+1}=\frac{a_n+b_n}{2}$$ I need to prove that those are making Cantor's Lemma.(At the end I shold get that: $\lim_{n\to \infty}a_n=\lim_{n\to \infty}b_n$ by Cantor's Lemma)  Any ideas how?  Thank you.


Linear independence under weird condition

This is a problem from a linear algebra textbook. Given a finite dimensional inner product space $V$ with orthonormal basis $e_1, \ldots, e_n$, show that if a list of vectors $v_1, \ldots, v_n$ satisfies $\|e_j - v_j\| < \frac{1}{\sqrt{n}}$ for all $j$ in $\{1, \ldots, n\}$, then $v_j$'s form a basis of $V$.  I have no idea. It's intuitive when I think about $\mathbb{R}^2$, looking at little spheres at the tips of the $e_j$'s.   I thought about looking at prefixes, like it should be true that $\|e_j - v_j\| < \frac{1}{\sqrt{i}}$ for all $j$ in $\{1, \ldots, n\}$. So now if $v_i \in \operatorname{span}(v_1, \ldots, v_i)$ then it should violate the inequality. It just looked ugly. Is this even a good direction? Edit: I see it's ridiculous now...  Is this something hard (it's Axler's book, 3rd edition, and the problems aren't marked by difficulty, so I don't want to waste time), or am I just being silly?


I'm having a small problem here.  I'm running wampserver and I'm trying to access it externally so I could use it as a webserver for others to view my projects using my external IP  I forwarded the port 8080 in my router to my internal IP address, I made sure my IP address is static, I forwarded the port in my firewall to allow private and public traffic on it  If I access it using localhost:8080, 127.0.0.1:8080, it works perfectly. If I try to access it using my external IP it redirects to my router page, if I try to access it using myIP:8080 it says that the page was not found  So why is my external IP being redirected to my router page and how can I solve the issue so others can connect to my IP like a webserver?  I'm using an Aztech 605EW router


Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the .  Just write in the appropriate answer/section. If you have concerns, questions, post a  question, so we don't clutter the comments, but you can link your meta question from the comments.  Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on  if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc.  Learning             Assets    (also see: )   Reference Images/Blueprints (also see: )    Tools    (also see: )      Other   Special Interest ()     Also see the .


I'm tinkering with SharePoint 2016 RTM and I'm trying to change the top link bar, where at the top it says "SharePoint | Sites". I'd like to change it so that instead of it saying SharePoint, it says something like Intranet  I've been using the following powershell commands, which work in SP2013 but dont seem to work or do anything in SP2016. Does anyone have any ideas?  $myApp = Get-SPWebApplication "http://sp2016" $myApp.SuiteBarBrandingElementHtml = '
Intranet
 $myapp.Update()


Second "s" in names that ends with the s

Well, it's one particular name from One-Punch Man, Genos.  Sometimes i see it's written as Geno's arm/body parts or something along the line, but not the Genos's arm/body parts. Where did second s go?


Black color transformation with transparency

I need to make an icon like this  so that it is in blue color (instead of black). I can't use Hue/Saturation/Curves because they do not transform black color. I can't also use fill tool because I need to preserve borders, which are partially black with some transparency. The preferred tool is GIMP.


Oracle IN Clause Loop Join to Work Around 1000 Limit

So I looked at  and  and couldn't find a workaround for my situation. My conditions are as follows:   I have 7000+ conditions (all unique values) for the IN clause I only have read-only priveleges for the corporate DB. I'm hesitant to try the temporary table solution from .   Is it possible to loop through a transaction to query all records that meet the 7000 IN conditions? My company uses Oracle.


Probability that a random variable X belongs to the set of rational nos.

The question is a Multiple choice question   Let $X$ be a random variable with the M.G.F. $$M_{X}(t) = \frac{6}{\pi^{2}}\sum_{n\ge1}\frac{e^{\frac{t^2}{2n}}}{n^2}\,,\;t\in R$$ Then $P(X \in Q)$, where $\,Q$ is the set of rational nos., equals  The options are  0 1/4 1/2 3/4  The correct option is option 1.) i.e. 0 I'm looking for an explanation as to how did they deduce the answer to zero.


In the bottom of the screen I cant see my layers anymore. I switch to all local, global,etc but I can't find the layer menu. When I press M to move my object I get a message: Move from localview  How can I get the layer menu back?


How to share properties of two classes in C++?

I have a problems to use properties between two classes in C++. I created two classes: Board and Player.  In the Board class I have this function:  Decision makeMove(Move *move, Player::Side side); and I need to pass as a parameter a variable of this type: enum Side{BLACK,WHITE}; Side side; which is in the Player class below the file.  I add the errors:  Engine.h:55:35: error: ‘Player’ has not been declared      Decision makeMove(Move *move, Player::Side side);                                    ^~~~~~ Engine.h:55:48: error: expected ‘,’ or ‘...’ before ‘side’      Decision makeMove(Move *move, Player::Side side);                                                 ^~~~ Engine.h:56:36: error: ‘Player’ has not been declared      vector <Move*>getAllValidMoves(Player::Side side);                                     ^~~~~~ Engine.h:56:49: error: expected ‘,’ or ‘...’ before ‘side’      vector <Move*>getAllValidMoves(Player::Side side);                                                  ^~~~   These are the Board and Player classes:  class Board { private:     enum Type {EMPTY, WHITE, BLACK, WHITE_KING, BLACK_KING};     vector<Type>cell;     vector<vector<Type>>board;     int numWhiteNormalPieces;     int numBlackNormalPieces;     int numBlackKingPieces;     int numWhiteKingPieces; public:     enum Decision {COMPLETED,FAILED_MOVING_INVALID_PIECE,FAILED_INVALID_DESTINATION,ADDITIONAL_MOVE,GAME_ENDED}; public:     Board();     Board(vector<vector<Type>>board);           Type getPiece(int row, int col);     Type getPiece(Point *point);     vector<vector<Type>>getBoard();     int getNumWhitePieces();     int getNumBlackPieces();     int getNumWhiteKingPieces();     int getNumBlackKingPieces();     int getNumWhiteNormalPieces();     int getNumBlackNormalPieces();     Decision makeMove(Move *move, Player::Side side);     vector <Move*>getAllValidMoves(Player::Side side);     // Point* findMidSquare(Move *move);     // bool isMovingOwnPiece(int row, int col, Player::Side side);     // vector <Move*>getValidMoves(int row, int col, Player::Side side);     // vector <Move*>getValidSkipMoves(int row, int col, Player::Side side);     // bool isOpponentPiece(Player::Side current, Type opponentPiece);     Board clone();     // bool contains(vector<Move*> possibleMoves,Move *move); private:      void setUpBoard();     void setUpTestBoard();     void populateEmptyOnBoard();   }; class Player { public:     string name;           enum Side{BLACK,WHITE};     Side side;     Player(string name, Side side);     Player(Side side);     Board::Decision makeMove(Move *m, Board b);     Board::Decision makeRandomMove(Board b);     string toString();       };   I need to be able to access the properties of the classes regardless of the order in which they are located in the file. (Like Java or C#)


I need to learn C++(and C) before summer for a test. I have the basic concepts of C and Object oriented programming.  Right now I'm looking for a book that's not longer than 400 pages, too learn C++ quickly.  I've seen that a few people suggests "accelerated c++" is that a good book?  I also accept web guides/tutorials/videos if they are good enough.  Thanks.


Why does my Ubuntu 20.04's top bar's icon becomes small every time when I boot the PC?

I am facing this issue with Ubuntu's top bar that every time when I restart or boot up my PC the icons from top bar will become smaller and then I need to got to Universal Access and turn the large text on. I have tried every possible internet things but nothing works and I filed to find the problem.  Can anyone suggest better solution?


Looking for an endorser to publish on arxiv.org as well as other suggestions

My grandfather, a long since retired professor, recently finished a very long in the making paper, which tries to cover a lot of ground around physics and general nature science. He is very old-school, so he asked me to see if I can get his paper seen by people familiar with the field. I tried to publish on arxiv.org, but I need an endorser.  The author is 90 years old and has been out of academic circulation for over 30 years, long before arxiv and the internet.    I am posting a link to the paper here (29 pages), nothing huge, and I'm asking for anyone interested to comment as well as for advice on how to get endorsement, and about other locations I can post it at besides arxiv.org    Thank you


How to grab multiple paragraphs in the capture group?

I'm using this code: (?i)(?<!\d)Item.*?1A.*?Risk.*?Factors.*?\n*(.+?)\n*Item.*?1B to grab the following text:  ITEM 1A.    RISK FACTORS  In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or   In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or    ITEM 1B.   But it would not grab anything in the capturing group, unless it's one paragraph like this:  ITEM 1A.    RISK FACTORS  In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or   ITEM 1B.


If I don't install Processor microcode firmware, what errors am I likely to get?

I have dual Xeon X5675 processors in my Ubuntu 16.04 machine.  I tried clicking the "Using Processor microcode firmware for Intel CPUs from intel-microcode (proprietary)" option in "Software and upates" and clicking Apply Changes. The software and upates page then told me to reboot, so I did.  After the reboot, I could not log into Unity anymore, as the screen just flicked back to the login screen. I managed to fix the issue by reinstalling the NVIDIA 375 drivers for my Quadro 4000.  Looking at the Software & Updates page, the Processor microcode is not being used, so it looks like the installation did not work.  So...   Does it mater that I don't have the Processor Microcode installed? What errors am I likely to get without it?  Can or should I install it manually, or should I just keep on going until I hit a problem?


Solve $~ x! + y! + z!= x!y! ~$ for integer set

I just got a little lost in the assumptions, I first assumed that $~y> x~$, but then I wasn't very successful.


$f$ is T periodic and $f(x) + f'(x) \ge 0 \Rightarrow f(x) \ge 0$

Let $f: \Bbb R \to \Bbb R$ be a function such that $f'(x)$ exists and is continuous over $\Bbb R$. Moreover, let there be a $T > 0$ such that $f(x + T) = f(x)$ for all $x \in \Bbb R$ and let $f(x) + f'(x)\ge 0$ for all $x \in \Bbb R$.      Show that $f(x) \ge 0$ for all $x \in \Bbb R$.   My attempt: $f(x) \ge 0 \iff f(x) \ge f'(x) - f'(x) \iff f(x) + f'(x) \ge f'(x)$.  Thus, it is enoguh to show that $0 \ge f'(x)$.  $\iff 0 \ge \lim_{h\to0}\frac{f(x + h) - f(x)}{h}$  I do not know how to proceed from here. I know that $f'$ also has a periodicity of T but I do not know how to use that here.  Am I on the right track? How can I use the periodicity of $f$ to solve the problem?


General way to find orders of reduced residue classes?

I'm curious if, given an integer $n$, there is a general method for finding the orders of the reduced residue classes modulo $n$, as well as how many reduced residue classes correspond to each order. I take $n=663=3\times13\times17$ as an example. There are $\phi(663)=\phi(3)\phi(13)\phi(17)=384$ reduced residue classes $\pmod{663}$. Further, $\lambda(663)=\text{lcm}(\phi(3),\phi(13),\phi(17))=48$, which means any any reduced residue has order at most $48$. However, I'm wondering if I can get more information; namely,  All the possible orders of reduced residue classes $\pmod{663}$; How many reduced residue classes there are for each order.   For what it's worth, a computer script gives that the possible orders are {1, 2, 3, 4, 6, 8, 12, 16, 24, 48} and 1 reduced residue classes of order 1 7 reduced residue classes of order 2 2 reduced residue classes of order 3 24 reduced residue classes of order 4 14 reduced residue classes of order 6 32 reduced residue classes of order 8 48 reduced residue classes of order 12 64 reduced residue classes of order 16 64 reduced residue classes of order 24 128 reduced residue classes of order 48   I chose $663$ as an example but my primary question is about how to determine these facts in general. Thank you in advance!


Let $f:\Bbb R\to \Bbb R$ be a continuous function such that $f(i)=0\forall i\in \Bbb Z$.  Which of the following is always  true:   $Image(f)$ is closed in $\Bbb R$. $Image(f)$ is open in $\Bbb R$. $f$ is uniformly continuous.   My try:  1.I am unable to find a example here.   False take $f(x)=0$.   3.I am unable to find a example here.  Please give some hints here.


WinError 32 error when trying to delete shapefiles with QGIS python

I've looked at some answers on here about deleting shapefiles with QGIS but I still seem to be running into errors. I am trying to delete shapefiles that have no attribute data in them (so 0 rows). My main issue is that I get:  PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:  I have tried using QgsVectorFileWriter.deleteShapeFile(f) but that leaves the .shp and .dbf behind.   I have also tried using os.remove for each individual file extension and that gives me the Win Error 32.   It seems like my files are still being used in QGIS. Does anyone know how to work around it?   Here is my full script:  clipped_soilpoly = get_data(clipped_folder, ".shp") # makes a list of all the .shps for f in clipped_soilpoly:     shapelayer = QgsVectorLayer(f,"clipped_poly")     rowcount = shapelayer.featureCount()`  if rowcount < 1:               print ("deleting " + f + " - does not intersect")          #QgsVectorFileWriter.deleteShapeFile(f) <-- only deleting some of the file extensions              split_path = os.path.splitext(f)[0]             del f          #delete .shp             shp = split_path + ".shp"             os.remove(shp)          #delete .dbf                 dbf = split_path + ".dbf"             os.remove(dbf)          #delete .prj                 prj = split_path + ".prj"             os.remove(prj)          #delete .qpj                 qpj = split_path + ".qpj"             os.remove(qpj)          #delete .shx                shx = split_path + ".shx"             os.remove(shx)           else:             print ("keeping " + f)


What is the word that is used to describe the oversimplification or non-academic discussion of a complex issue?   Typically, I'm looking for a word like pedantic, or puerile, except that the word covers the fact that the discussion is particularly non-academic. I know that such a word exists since I have used it before, but it has skipped my mind.


We are using the following technique to lazy load images in our site:  For all images we put in the src attribute a url for a default img (i.e. a loader) and put the actual image url in the data-src attribute. Like so  <img src="loader.gif" data-src="img1.jpg" />   When the image is outside of the viewport nothing happens, but when the image goes inside the viewport, then the url from the data-src attribute is loaded and the image is correctly shown.  This has as a result that Google sees all the images in the page (i.e. a search results page) as having the same src attribute. Because the google bot of course parses only the 'unloaded' img tag with the default src.  My question is: does having many img tags with the same src attribute affect the SEO of the page?


javascript error in online host (print script)

problem about doing it online , it works  fine in localhost   i have this code  its prints the specific div by div id       function printDiv(divID) {         //Get the HTML of div         var divElements = document.getElementById(divID).innerHTML;          //Get the HTML of whole page         var oldPage = document.body.innerHTML;          //Reset the page's HTML with div's HTML only         document.body.innerHTML ="<title> </title>"+divElements + "";          //Print Page         window.print();          //Restore orignal HTML         document.body.innerHTML = oldPage; }   it works beautiful in my localhost   but when i upload the file to my onlinehost it show like this picture    can someone help me what is the error  ?


Heavy ball drops after lighter ball, will the heavy ball catch up to lighter ball?

If a 25 pound ball is dropped from 20 feet at the same time as a 15 pound ball is dropped from 10 feet, will the 25 pound ball catch up to the 15 pound ball?


Capacitor as filter, physics behind choice

I am tapping into the output voltages (signal wire) of various sensors on a vehicle, and I would like to use decoupling capacitors to filter out noise.  As others have stated, a rule of thumb is to use a 0.1uf and 10uf capacitors.   My question is related to how the 2 capacitors work together. Based on what I put together, the capacitors have a very high impedance at certain frequencies (or ranges) and therefore block them. I found a 10uf cap and a 0.33uf cap datasheets  with plots of frequency vs impedance (had difficulty finding a 0.1uf plot.)  I think the best way to phrase my question is this;  What happens if I use the following 2 capacitors in parallel (10uf and 0.33uf) for noise filtering a DC analog signal with an approximate noise frequency of:   10Hz 0.001MHz 0.8MHz (corresponds to min impedance of 0.33uf cap) 6MHz (corresponds to min impedance of 10uf cap) 5) 100MHz     EDIT: Bad question, i need a low pass filter and not decoupling capacitors. At-least now i know about Anti-Resonance in case i need it in the future.


Opportunity field is missing so quote is not inserting

I am using following webservice but my quotes are not inserting it showing an error may i know how to modify my code. for insert of quotes. Can anyone give me suggestions how to modify my code for quote insert. while inserting it showing an error opportunity Id filed missing             for(integer j=0;j<req.accounts[i].quotes.size();j++)            {             qu = new Quote();             qu.Name = req.accounts[i].quotes[j].qName;            // op.CloseDate =system.today();            // op.StageName = req.accounts[i].opps[j].oStage;             qu.OpportunityId = srList[i].id;             qList.add(qu);             }             Database.insert(qList);            }        }          return res;      } }


Text gets displayed during boot after Nvidia installtion

After installing latest nvidia drivers from xorg edgers ppa, the boot screen ( where it shows ubuntu logo) displays background process as text.  Is there any way to restore the default boot screen using nvidia driver.  (Note: It changes back to default logo and resolution once I change back to nouveau driver)


Counting number of rearrangements in which no person has the same right neighbor

If $6$ people are standing up in queue for a picture, then in how many ways can they be re queued for the picture if no person has same right hand neighbor?  Why is $6!/2$ wrong?   (The answer is $309$.)  Edit:  Based on @Phicar's suggestion in the comments, an attempt using the Inclusion-Exclusion Principle:  $$6!- 5.5! +4.4! -3 .3! + 2.2! - 1$$


Why pressure in all direction is equal in a hydrostatic?

In the derivation for ρgh we consider the weight above a given area to give pressure but because of it pressure should only be in vertical direction why is it found in every direction possible and in every direction it is equal to ρgh, for two opposite nonvertical directions it could have taken any value since at the end Net force is zero in any direction.


How to back out of mass update in SQL Replication

We have a database which is set up in Merge Replication.  We accidentally updated hundreds of thousands of records in a large published table on the publisher database. We did something like this:  update LargeTable set Field = Field   So basically, every record got updated to be the same - no data was actually changed. However, every record in the table is now being delivered to every subscriber and the whole system has come to a halt. We are very worried this will take days and days to complete.  How can we safely remove data from the msmerge_contents and msmerge_genhistory table? Are there other system replication tables to remove records from? I can see the exact records in these tables that refer to the mass update. I just don't want to remove them without knowing it is safe to do so.


I'm just curious about when certain badge calculations are done.  Are certain badges like the serial upvote detection script that runs at 3am?  I have this question .  I DO have nice answer for it, but I dont have enlightened yet.  Not sure if that is because they are calculated differently or what.  Thanks for the clarifications.


Uncommon question for everyone that is related to mathematics

I'm still a student and something funny that I've seen is that many mathematicians evade the question, "What is mathematics?" And when they don't evade it, every person gives a different definition. So I was wondering, and I think this is the best place to ask: What is mathematics specifically?   I think it is a very curious question and I just want to see what you think.


Remove Elements from a HashSet while Iterating

So, if I try to remove elements from a Java HashSet while iterating, I get a ConcurrentModificationException.  What is the best way to remove a subset of the elements from a HashSet as in the following example?  Set<Integer> set = new HashSet<Integer>();  for(int i = 0; i < 10; i++)     set.add(i);  // Throws ConcurrentModificationException for(Integer element : set)     if(element % 2 == 0)         set.remove(element);   Here is a solution, but I don't think it's very elegant:  Set<Integer> set = new HashSet<Integer>(); Collection<Integer> removeCandidates = new LinkedList<Integer>();  for(int i = 0; i < 10; i++)     set.add(i);  for(Integer element : set)     if(element % 2 == 0)         removeCandidates.add(element);  set.removeAll(removeCandidates);   Thanks!


What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a block started with \[.


Wireless still does not work 12.04 Dell Dimension 3000

I have tried many solutions found in aksubuntu, but no luck in getting the wireless to work on this computer. The wired connection works. Below is the wireless information.  01:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)      Subsystem: Linksys WMP54GS v1.1 802.11g Wireless-G PCI Adapter with SpeedBooster      Flags: bus master, fast devsel, latency 64, IRQ 22      Memory at feafe000 (32-bit, non-prefetchable) [size=8K]      Kernel driver in use: wl      Kernel modules: wl, ssb   All available updates were downloaded and installed 09/01/13. The b43 cutter and installer were tried and the placing of the '#' in front of the blacklisted bcm43xx has been tried (# bcm43xx). Hardinfo was installed also. I am new to Linux, but I am determined to learn all that I can to get this computer fully functional on this os.


Is there a single word that expresses "music end-users / enthusiasts"?

To help a soon-to-be sister site out , I was thinking English.SE perhaps could lend a helping hand as this is the best place for "word choice and usage".  I'm not looking for "naming", but rather want to see what shorter words exist for expressing "music end-users/enthusiasts", these could be "journalists, reviewers, music fans and listeners".  I've tried, but can't come up with something... . From Urban Dictionary I have  which is another word for a Music enthusiast of the Modern age; but yeah, it's UD and I don't think selvyn is really English to begin with...  So... do you know of a single word to express "music end-users/enthusiasts"?


Is there a way to make my files editable for a client without InDesign?

A client needs me to design a brochure for her. The problem is that she wants to edit and change the text and maybe also change some of the pictures herself.  However, she doesn't have any of the Adobe software or the knowledge to use these.   Is there any alternative?


How do I run a command in a different tty?

Suppose there are two terminals, pts/0 and pts/1.  In pts/0, I have fired a command:  ls>/dev/pts/1   Then, we only get the output of the ls command in pts/1, but I want to run a command as well as its output both on pts/1.  I tried "echo ls">/dev/pts/1, but instead the output of the ls command, "ls", is printed on pts/1.  How can I do it?


Windows 7, any way to sort folders and files all mixed together?

Is there a way to sort folders and files by their name all mixed together in Windows 7?  It would be easier to understand if you .  I want my folders and files arranged like the BEFORE situation of the first screenshot.  If there is no way to do that with Windows Explorer, is there any file management programs that I should try?  I've already tried Total Commander.


Does an electrolytic capacitor degrade each time it receives reverse voltage?

I know that I mustn't connect an electrolytic capacitor reversely. It will explode if I apply the reverse voltage long enough.  But, what happens if the reverse voltage is applied for a short time? For example, a fault occurs in the circuit and the capacitor becomes reverse biased or exposed to AC voltage for a short time, but it still looks OK from outside. Does the internal physical and chemical structure of the capacitor change permanently? Would it still have the rated capacitance, voltage and life time? Is it okay to keep it using if it doesn't explode? I feel that the answer is "no", but I'm looking for an explanation for it.


null pointer in namedParameterJdbcTemplate

I am getting the namedParameterJBCtemplate as null value      static String TABLE = "select * from cdh_spectrum_xstore_reg.%s";     static String GET_TRANSACTION_BY_FILENAME = " where etl_source_name = :etlSourceName" +              " and pos_key in (select pos_key from cdh_spectrum_xstore_reg.pos_log where etl_source_name = :etlSourceName order by load_date desc limit 1)" +              " and batch_ts in (select batch_ts from cdh_spectrum_xstore_reg.pos_log where etl_source_name = :etlSourceName order by load_date desc limit 1)" +             " limit 1";  @Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED) public Transaction getIsolatedTransactionDetails(String fileName) {     return namedParameterJdbcTemplate.queryForObject(String.format(TABLE, "pos_log") + GET_TRANSACTION_BY_FILENAME,             new MapSqlParameterSource("etlSourceName", fileName),             transactionMapper); }   Here the filename is correctly coming when I debug What I noticed is namedParameterJdbcTemplate is giving null.


How to give the effect or how to make reference image model

A reference image is attached. I want to make the color thread roll and want that coil effect to the inner cylinder. I dont want to use the texture. i want that thread to be coil and look similar to the reference image. Any idea  A reference video of 3dmax


Need help to find Selenium Webdriver contents and the learning sites

I am a beginner to Selenium Webdriver.I know some basics of it but don't have whole contents about selenium webdriver with me which I should learn.I also know java and its concepts very well.So, I preferably want to learn selenium in java.  Is there any one who could help me with the contents and the learning sites which are free for selenium learning? I have done lot of reasearch on selenium webdriver but most of the sites provide paid learning for selenium. I want to learn selenium by self. So, if I could get any site which provides free video tutorials for all contents then it will be heaven for me.  Thanks in advance!  (CurrentlyIi am doing job as manual tester but I want to move my career into automation field and thought selenium is the best way to start with)


Proof: A strictly bandlimited signal must also be a signal of infinite time duration

How can I show that a bandlimited signal is also of infinite time duration?  I know it has to do with Fourier transforms and convolution but I'm not sure how to actually prove it. I also know that the Fourier transform of a rect function is a sinc function.


What is an example of "this" assignment in C#?

Does anybody have useful example of this assignment inside a C# method? I have been asked for it once during job interview, and I am still interested in answer myself.


Why can I call destructor on a fundamental type in a template?

I was implementing some templates for a memory allocator and came across some code that's compiling that I expected to not compile.  After writing and testing a template function to call a destructor, I found that it still worked after passing in an int*.  Test code:  #include <iostream>  template<typename Class> void CallDestructor(Class* InObj) {     InObj->~Class(); }  int main() {     int* test = new int;     *test = 5;     std::cout << *test << std::endl;     CallDestructor(test); // Why does this compile?     //test->~int();       // This does not compile which is what I expected for template function     std::cout << *test << std::endl;     delete test; }   The code compiles and runs on www.cpp.sh and also in Visual Studio 2013 for me.  Thank you for any insight!


How to open file in GUI mode with terminal?

I could not find the section as you can open the file in a graphics mode, that is such a file 1.txt terminal displays the contents but I would love to see it with the gedit or another text editor?


Looping through a dynamic List of objects

I'm trying to implement a snippet where we can loop through a dynamic list of objects.   using System; using System.Collections.Generic;  public class Program {     public static void Main()     {         var l = new List<int>();         l.Add(1);         l.Add(2);         l.Add(3);         l.Add(4);      foreach(var i in l){         Console.WriteLine(i);            if(i==3){             l.Add(5);         }      }  }  }   This is throwing below run time error.  1 2 3 Run-time exception (line 15): Collection was modified; enumeration operation may not execute.  Stack Trace:  [System.InvalidOperationException: Collection was modified; enumeration operation may not execute.]   at Program.Main(): line 15   Any help is appreciated. Thanks.


This is similar to , but I don't think it's a dupe. Markdown should support links that are just named anchors, like [foo](#12345). I occasionally reference existing answers in comments or my own answers if I'm expanding on them, and currently I need to include the full URL to get Markdown to link it, which seems unnecessary. Just copying the answer's link is annoying because it's a different URL, so when users click it it loads a new page, even though it's actually the exact same page. To get around it I tend to take the current URL and splice in the #id of the answer I'm linking to, but Markdown should assume that if I just include the #id part


Ubuntu 14.04: problems upgrading php to 5.6 using ppa:ondrej

I've done the following:  sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get upgrade sudo apt-get install php5 sudo apt-get install libapache2-mod-php5.6 sudo add-apt-repository ppa:ondrej/apache2   When I try to disable the old version of php5 with:  sudo phpdismod php5   I get the error: WARNING: Module php5 ini file doesn't exist under /etc/php/5.6/mods-available  Even if I move the ini file under this directory it gives me the same error.  I don't know what I'm missing??  In general, can someone explain to me how to get my instance to use the newly installed version, as I still seem to have both php directory trees on my instance.  php5/.. and php/5.6


When I try to change field access on System Admin profile I gets the following error      Please fix the following:      Permission Subscribe to Dashboards: Add Recipients depends on   permission(s): Subscribe to Dashboards   What should I change in the admin profile so that I can edit this profile without any problems?  I will only add that this field is not editable in the profile


With what structure do you manage the graphics of a game?

Im currently trying to program a little game (in Java - Libgdx; if thats necessary).  I currently use a GameWorld and a GameRenderer, the GameRenderer just getting all the info it needs from the GameWorld object and calling a method for every different class there is (for example drawPlayer(), drawWorld() etc.).   Should I let my actors draw themselves or encapsulate the data inside of another class and then pass an object of it to the GameRenderer?


Will stacked Peltiers produce a greater dT?

I am using  to ramp an aluminum plate down to -10C in a vacuum environment. I chose this particular device because it had the largest 'Qout' of any single-stage peltier I could find (400W!!), however I am having a hard time achieving my goal of -10C.   I am generally operating at about 20V and 14A with a large heat sink on the back (3"x3" Al water block feeding to a 10-gal ice water reservoir AKA fishtank). In this configuration, I can usually achieve between -5 and +2C, but never -10C.  Now I wonder if I would have better luck using a multi-stage peltier? Still becoming familiar with the technology, but from what I can tell, you tend to sacrifice Qout in exchange for increasing dT and vise versa.   If so, could I expect to see my cold-side temp drop if I switched to ?  Thanks!


$$\int_0^\infty \dfrac{\sin x}x\,\mathrm dx = \mathrm{Im}\left(\int \dfrac{e^{ix}}x\,\mathrm dx\right)$$ Considering $f(z) = \dfrac{e^{iz}}z$, it has a simple pole at $z = 0$. Residue of $f(z)$ at $z = 0$ is $1$. This imples that  $$\mathrm{Im}\left(\int_0^\infty \dfrac{e^{iz}}z\,\mathrm dz\right) = \dfrac12\int_{-\infty}^\infty\dfrac{e^{iz}}z\,\mathrm dz = \dfrac12(2\pi\cdot1) = \pi$$  I found out that the answer is $\dfrac12\pi$. Why??


Is banning a user's answering/asking privilege because of a "negative reaction" correct?

A negative reaction can easily start on a post with a few mistakes that are usually grammatical mistakes which can lead to confusion, people can downvote the question, then the asker's reputation points decrease. An answer ban may be put on the user. Most downvoter don't feel the magnitude and importance of a downvote and do not take it seriously. You can't request to have the ban lifted. The asker may lose multiple privileges also. So I'm proposing that bans because of "negative reactions" be banned. What do you think? Do you agree with me? I need the thoughts of other moderators and users.


What's the standard on styling scrollbars? Do you only apply it on panels within your application and leave the window scroll bars to a default? Does messing with scrollbar styles affect user experience and ease of access?


What is the best way to paginate results in SQL Server

What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the total number of results (before paginating)?


I am getting the error below while downloading the apps from ubuntu software center.   E: dpkg was interrupted, you must manually run dpkg, configure a' to correct the problem.    How can I resolve it?


What DC motor specs do I need to lift a weight with certain gear configuration

I'm trying to determine how much torque, power, voltage, and size I need for my motor in order to lift between 50-100lbs given the gear configuration below. Assume that the motor and gears are securely held in place. Also, the speed at which the weight is lifted doesn't really matter as much as just being able to lift the weight. The Worm and Worm Gear are to prevent the weight from dropping if the motor is not running, and the bevel gears are necessary for the confined space it'll be held in. The motor also needs to be 2" in diameter or less.  Ideal dimensions for each of those is 2" diameter for the motor, ~1.5" diameter for the Worm Gear, 1/2" thick for the worm, and about 1/2" diameter for the bevel gears. Given that everything is quite small to lift such a large weight, does such a motor of that size even exist to lift that much? If nothing, I would really appreciate an equation or a way to calculate the torque needed to lift the weight using those gears.


In one of the answers on this site, I found link to  project. That article mentions internal resistance of batteries and cells. Where can I find data about common ranges of internal resistances for batteries? I've always heard that it's low, but I couldn't find anywhere how low is low and common resistances for common battery types.


I have a bitmap that is created in memory (using graphics drawing to add lines etc to it). I can save it no problem using   bmp.Save(@"Path");   I want to display it in my WPF window, the only example I have found which seems to do what I want is  Bitmap bmp = someClass.returnMap(); // returns a Bitmap which has been drawn bmp.Save(@"Path"); //Just so I know the bitmap isn't null ImageSourceConverter isc = new ImageSourceConverter(); image.Source = (ImageSource)isc.ConvertFrom(bmp); //I get a null refrence exception here   I have no idea why I am getting a null reference or why there is so much conflicting information when I try and Google this.  Edit Error message as requested  'An exception of type 'System.NullReferenceException' occurred in PresentationCore.dll but was not handled in user code  Additional information: Object reference not set to an instance of an object.  If there is a handler for this exception, the program may be safely continued.'


Minipage reset indent. How can i set again to standard?

I have the following code.  \documentclass[a4paper, titlepage, 11pt]{article}  \begin{document} \section{Introduzione all'astrofisica}      \begin{minipage}{12cm}     In astrofisica, differentemente da altre scienze, non \`e possibile      eseguire degli esperimenti diretti sugli oggetti di studio.      L'assenza di questi viene colmata grazie all'\textit{osservazione     degli astri}, tramite telescopi e, nello specifico, tramite     l'osservazione della \textit{posizione} dei corpi celesti e della    \textit{luce} da loro emessa. \end{minipage}  \end{document}   What I want is a regular indentation, like a document without minipage. How can I get that?  Thank you.


Multi-level repeated-measures logistic regression in python/R

Accidentally posted this in stackoverflow, so reposting here. I have a repeated-measures design experiment. Each subject took part in some experimental conditions, each one associated with several events. Normally I would analyse this with an ANOVA by grouping across all events, but I want to include those individual events in the model, and also account for subject effects. Example data import numpy as np import pandas as pd  condition = ['A']*3 + ['B']*3 + ['C']*3 events = list(range(1, len(condition)+1)) subject = [1]*len(events)   data = {     'subject':subject+[i+1 for i in subject]+[i+2 for i in subject],     'events':events*3,     'condition':condition*3     }  df = pd.DataFrame(data) np.random.seed(1) df['y'] = [np.random.randint(0,2) for i in range(df.shape[0])]  print(df)   print(df.groupby(['subject', 'condition'], as_index=False)['y'].mean())  So the full data:    subject  events  condition   y 1   1   A   1 1   2   A   1 1   3   A   0 1   4   B   0 1   5   B   1 1   6   B   1 1   7   C   1 1   8   C   1 1   9   C   1 2   1   A   0 2   2   A   0 2   3   A   1 2   4   B   0 2   5   B   1 2   6   B   1 2   7   C   0 2   8   C   0 2   9   C   1 3   1   A   0 3   2   A   0 3   3   A   0 3   4   B   1 3   5   B   0 3   6   B   0 3   7   C   1 3   8   C   0 3   9   C   0   And the grouped data: subject condition   y 1   A   0.666666667 1   B   0.666666667 1   C   1 2   A   0.333333333 2   B   0.666666667 2   C   0.333333333 3   A   0 3   B   0.333333333 3   C   0.333333333  I would like to know how to do a multi-level (logistic regression?) model to account for events and subjects as well as the condition as factors. It's a bit strange to me because when we group together and analyse the means we can use a standard ANOVA, but when we retain the full dataset and analyse it the outcome measure is of course binary, meaning we should use some sort of logistic regression. Is this correct? And if so, is this possible given the within-subjects design? If so, how do we achieve this in python (or R)?


How does the dissolution of salt affect the solution density?

Suppose you have a container of water as a solvent and you a certain amount of salt as a solute sitting at the bottom of the container that has yet to start dissolving. Supposing temperature and pressure are kept at a constant.  So at this stage: Water has density $\rho_w(x, y, z, t)$. Salt has density $\rho_s(x, y, z, t)$. And as the solution at the beginning is just comprised of the water itself it it has density $\rho_t(x, y, z, t) = \rho_s(x, y, z, t)$.  Now as the salt begins to dissolve the solution becomes a mixture of salt and water and we have $\rho_t = \alpha \rho_w + \beta \rho_s$.  I have a few questions about the state of the system now:   Is the density of water still the same as it was at the beginning now that salt has begun dissolving? Ie. is the density of water constant? Or will the dissolved salt molecules "squeeze" the water molecules into a smaller volume thus increasing the density of water? And actually we should be talking about concentration of water now instead of density of water as we are dealing with a mixture comprised of two substances? Is the concentration/density of salt in the solution constant? This questions seems to have the obvious answer of "no it isn't because the salt is dissolving and thus the concentration of the salt in the solution is changing over space and time as it spreads out"? The density of the solution itself, $\rho_t$...as the concentration of salt seems to be non-constant it therefore implies that the density of the solution is non-constant...I.e. it will vary at different points in the fluid over space and time as the salt dissolves until it reaches an equilibrium when all the salt is dissolved? So if the solution has non-constant density it means it is compressible? And it will be governed by the compressible Navier-Stokes equations?   I'm trying to program a numerical method for a similar situation to what I described above so I appreciate any help with these questions!


Format float with fixed amount of digits python

I would like to format my floats with a fixed amount of digits. Right now I'm doing the following  format="%6.6g" print(format%0.00215165) print(format%1.23260) print(format%145.5655)   But this outputs   0.00215165 1.2326 145.565   I also tried format="%6.6f" but it doesn't really give what I want either...  0.002152 1.232600 145.565500   What would be a good way to format the numbers so that all of them have exactly width 6 (and no spaces) like so ?  0.002152 1.232600 145.5655


"Client Cross Frame Scripting Attack" by Checkmarx Scanner for Visualforce component

I have got the Client Cross Frame Scripting Attack alert in the recent CheckMarx scanner. However, it points to an auto generated ID.   I've seen the following links however, the I'm not sure about relavancy of the soluions given i.e.,          Regarding my visualforce component, I'm doing just one DML operation on a custom setting from a callout response. Also, I'm not passing any attribute to the component.   To give a background of the component, its just a list view of records from a different system retrieved through a callout on load via JavaScript.  Let me know if in case anything else is needed.   Thanks in Advance! Peace!


Why do all SSH-RSA Keys begin with "AAAAB3NzaC1yc"?

My friend and I have been generating a few SSH2 RSA keys and noticed all the public keys begin with AAAAB3NzaC1yc, with the similarity extending to AAAAB3NzaC1yc2EAAAABIwAAAQEA between two keys generated on the same machine in two successive attempts (googling AAAAB3Nz ends up getting a few hits as well). Is this normal or are we doing something wrong while generating, such as suffering from insufficient entropy?


Prove $133\mid \left(11^{n+2}+12^{2n+1}\right)$, where $n$ is a non-negative integer.  So, I went about proving this using Fermat's theorem.  So I had $11^{n}\cdot 11^2+(12^2)^n= 0\ (\mod 133)$ then $11^n\cdot 11^2+1728^n=0\ (\mod133)$  and finally $1^n+132^n=0\ (\mod 133)$.  Then I said $133^n=0\ (\mod133)$ because $133$ raised to any power will have a remainder of $0$. Did I apply Fermat's theorem correctly?


I just installed Ubuntu 16.04 and everything was working fine until I rebooted and got stuck with this emergency mode message.    /dev/sda6: recovering journal /dev/sda6: clean, 193225/9527296 files, 1610280/38077184 blocks Welcome to emergency mode! After logging in, type "journalctl -xb" to view  system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode. Press Enter for maintenance    (or press Control-D to continue):   Even if I press Ctrl+D nothing works. I cannot log in. I have already tried using nomodeset but it did not work as well.


I am struggling to get the intuition behind dedekind's cut. The main problem I am facing with Dedekind cut is the third axiom that if (A,B) is dedekind pair for a cut then A should not have largest number. But why does it so?? What I feel that if we know the maximum it can also work as a cut for pair(A,B).   Please send your suggestions. These would be very helpful.


If we connect a source of electricity in a large water body ,will it be dangerous?

I was wondering whether a person will be electrocuted if he is in large pool or a sea which is connected through a source of electricity . As sea water is saline it will conduct electricity so will it be dangerous !?


Using headset controls like a smart phone

I have a generic pair of smartphone earphones that have the button (along with a microphone) and I would like to use the button as a pause/play key in Ubuntu, like I would on an Android phones music player.  Is there a way to enable this headset control in Ubuntu?  If the headset controls are a hardware feature of audio jacks used in Android phones, the name of that hardware (audio jack) would be appreciated.


Defining commands/abbreviations that contain numbers

I tend to use \newcommand to define macros for symbols I use often, e.g. \newcommand{\hankel}{H^{(1)}_0}.  One inconvenience of this approach is the fact that command names cannot include numbers.  What I ideally want is to map something like \H0 to H^{(1)}_0.  I imagine this could be done with some macro expansion/snippet package, or one might use \newcommand to define a command that takes a parameter, etc.  Before I start experimenting, though -- is there a canonical way of dealing with this problem?


Probability of drawing balls with different colours

In a jar of balls with different colours, can we find a general probability distribution of having n distinct colours with N number of balls grabbed ? Assuming that any colours have an equal chance to be selected. For example :  In a jar of balls with only one colour, then we only need to draw one ball (in order to see one colour).   In a jar of balls with 2 different colours, then on average we will probably need to draw 2 (or 3) balls.   In a jar of balls with 3 different colours, on average we will need to draw 5 (or 6) balls (to see 3 different colours observed).   In a jar of balls with 4 different colours, on average we need to draw 7 balls (to see 4 different colours observed).  In a jar of balls with 8 different colours, then on average we might need to draw 15 balls (to see 8 different colours observed)  In a jar of balls with 10 different colours, then on average we might need to draw 30 (or maybe 40) balls to see 10 different colours observed  In a jar of balls with 30 different colours, then we might need to draw an infinite number of balls to see the 30 different colours  and so on (need a very large number of draws if we have larger number of colours in the jar, to observe the balls with different colours)  So, by looking at this pattern, can we find the probability model for this kind of problem ?  Thanks..


It is said that the constant interaction between the molecules of a gas (in the form of collisions) acts as a randomising influence and prevents the gas molecules from settling. But given the force of gravity, won't the gas molecules settle at some point of time?


Were any Jedi officially OKed to marry by the Council?

I know that some Jedi had relationships (include Qui-Gon), and some even married in opposition to Jedi customs and contrary to Council will (that's a stone in your backyard, Mrs Anakin Skywalker!)  But was there ever a case where Jedi Council reversed its position and officially OKed for a Jedi to marry while remaining an active member of the order?  I don't know if the Council existed or had marriage prohibition during Old Republic era, so the scope of the question is 1000BBY-0ABY.


How to install Nvidia 610M graphic card in Thinkpad Edge E430 w/ Ubuntu 18.04?

How I can install NVidia 610M graphic card drivers in a Lenovo Thinkpad Edge E430 with Ubuntu 18.04?


Does a duplicate entries in a PATH variable revoke the precedence given by the first entry?

If I have a PATH variable that (when exploded onto multiple lines) contains something like this (with a few notes added by me):  /Users/brandon/.rvm/gems/ruby-2.0.0-p353/bin /Users/brandon/.rvm/gems/ruby-2.0.0-p353@global/bin /Users/brandon/.rvm/rubies/ruby-2.0.0-p353/bin /opt/local/bin /opt/local/sbin /usr/local/sbin /usr/local/bin   # <<--- notice this path appears again later /usr/bin         # <<--- notice this comes AFTER /usr/local/bin /bin /usr/sbin /sbin /usr/local/bin   # <<--- here it is again! /usr/local/git/bin /Users/brandon/bin /Users/brandon/.homebrew/bin /usr/local/mysql/bin /usr/local/share/npm/bin /Applications/Postgres93.app/Contents/MacOS/bin /Users/brandon/.rvm/bin   is it possible for the presence of the second /usr/local/bin/ to cause the /usr/bin to take precedence over /usr/local/bin?  This seems crazy (to me: I've never heard of such a thing) but that's exactly the behavior I'm seeing.  I've just installed PHP with Homebrew, and yet the system PHP (from /usr/bin) is taking precedence:  $ which php /usr/bin/php   BUT, after manually altering the PATH (rather than digging through all the files sourced by my .zshrc to try to figure out why & where the duplication is coming from) to remove the second instance of /usr/local/bin, I find that /usr/local/bin is taking precedence over /usr/bin as I would have expected it to in the first place:  $ which php /usr/local/bin/php   What would cause this?  Is this normal?


How to add/remove a star other than yellow when selecting multiple emails in Gmail

I've enabled custom stars in gmail, and can set them for individual emails, e.g. a green checkmark. But I can't figure out how to change all the emails in a folder so they're starred with a custom star, like a green checkmark, when all have been selected. When selecting multiple emails, the only thing I seem to be able to do is star and unstar with the default yellow star.


How to parse an array of objects and save elements of specific attributes to a different array?

I have an array of call records and I want to store the ones that have a call disposition of "DNC" in a different array. The function opens a csv file and reads the entire file into an array of objects and sets the attributes. The original array contains 680 object records. I have an if statement after the my object setters that says if userArray[count].getDisposition == "DNC" then add this records to my new array DNC_List[dnc_count] and increment dnc_count++. dnc_count is initialized to 0 and at the end of the process, it is still 0. There are 4 records in my original array that have "DNC" as an attribute. Can anyone tell me what is wrong with my code and why it is not recognizing when disposition is DNC? public static void myCSVReader(String filename) {     String path = "C:\\Users\\My_Username\\Downloads\\" + filename;     file_path = path;     BufferedReader reader = null;     String line = "";     String csvSplitBy = ",";     int count = 0;     String fullName, U_ID;     int dnc_count = 0;      User userArray[] = new User[1000];     User[] DNC_List = new User[1000];     System.out.println("Starting csv reader");      try {         reader = new BufferedReader(new FileReader(path));         while ((line = reader.readLine()) != null) {             String[] s = line.split(csvSplitBy);              fullName = s[13] + " " + s[15];             U_ID = s[44];             userArray[count] = new User(s[1], s[2], s[0], fullName, U_ID);             userArray[count].setDisposition(s[2]);             userArray[count].setNumber(s[1]);             userArray[count].setName(fullName);             userArray[count].setID(U_ID);             if(userArray[count].getDisposition() == "DNC" || userArray[count].getDisposition() == "CS"){                 DNC_List[dnc_count].setKey(String.valueOf(dnc_count));                 DNC_List[dnc_count].setDisposition("DNC");                 DNC_List[dnc_count].setName(userArray[dnc_count].getName());                 DNC_List[dnc_count].setID(userArray[dnc_count].getID());                 dnc_count++;             }             count++;             User user = new User(s[1], s[2], s[0], fullName, U_ID);             user.setDisposition(s[2]);             user.setNumber(s[1]);             user.setName(fullName);             user.setID(U_ID);          }     } catch (Exception e) {         e.printStackTrace();     }      // Prints out the array index, name, disposition, and phone_number     System.out.println("\n\nUser array: \n");     for (int i = 0; i < userArray.length; i++) {         if (userArray[i] != null) {             System.out.println(i + ": " + userArray[i].getName() + "\t | Dispo = " + userArray[i].getDisposition()                     + "\t | Phone = " + userArray[i].getNumber());         }     }          System.out.println("\nDNC_COUNT = " + dnc_count);     for (int i = 0; i < dnc_count; i++) {         System.out.println(DNC_List[i] + "\n");     } }


Is multiple assignment expression (a=123, b=456, c=789) well-defined?

Edit: Apologies for posting a duplicate and such a basic question! I thought it was a trickier one than it actually was, and failed to discover the cited article in my original search.  For the language standard experts out there, is the value of an expression like:  (a=1, b=2, c=3)   ... defined? From my tests, it appears that all of our compilers evaluate this expression as 3 (GCC, MSVC, Clang).  However, I'm not sure if we should lean on this behavior. I have no intention of writing code like this, but encountered some obscure code which was leaning on this behavior with multiple assignment in a conditional, and was wondering if it was well-defined.


I have a dual boot and I find that the storage is assigned poorly Below are the results of df -h: Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  2.2M  1.6G   1% /run /dev/nvme0n1p5   19G   17G  382M  98% / tmpfs           7.8G  466M  7.4G   6% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/loop1      2.5M  2.5M     0 100% /snap/gnome-calculator/748 /dev/loop2       30M   30M     0 100% /snap/snapd/8542 /dev/loop3      384K  384K     0 100% /snap/gnome-characters/550 /dev/loop5       63M   63M     0 100% /snap/gtk-common-themes/1506 /dev/loop4      218M  218M     0 100% /snap/gnome-3-34-1804/60 /dev/loop6      2.3M  2.3M     0 100% /snap/gnome-system-monitor/148 /dev/loop7       65M   65M     0 100% /snap/gtk-common-themes/1514 /dev/nvme0n1p1   96M   31M   66M  33% /boot/efi /dev/loop8      1.0M  1.0M     0 100% /snap/gnome-logs/100 /dev/loop0       56M   56M     0 100% /snap/core18/1932 /dev/loop9      2.5M  2.5M     0 100% /snap/gnome-calculator/826 /dev/loop10     256M  256M     0 100% /snap/gnome-3-34-1804/36 /dev/loop11      56M   56M     0 100% /snap/core18/1885 /dev/loop12     384K  384K     0 100% /snap/gnome-characters/570 /dev/nvme0n1p7   63G  3.5G   56G   6% /home /dev/loop13      31M   31M     0 100% /snap/snapd/9721 tmpfs           1.6G   16K  1.6G   1% /run/user/121 tmpfs           1.6G   64K  1.6G   1% /run/user/1000 /dev/loop14      58M   58M     0 100% /snap/discord/115 /dev/loop15     163M  163M     0 100% /snap/gnome-3-28-1804/145  As you can see I have >50G in my /home folder but <400M in /. Is there a way to rectify this situation without reinstalling ubuntu?


Two complex numbers $z_{1}$ and $z_{2}$ are taken such that    $|z_{1} + z_{2}| = |z_{1} - z_{2}|$ and $z_{2}$ is not $0$.   Show that $z_{1}/z_{2}$ is purely imaginary, i.e. it has no real part.   So they are both absolute values so $|z_{1} + z_{2}| = |z_{1} + z_{2}|$ is also true so how can you ever solve it if they are equal or is my assumption false? also i have tried to turn in into $a + bi$ and got to $a_{1}\cdot a_{2} = -b_{1}\cdot b_{2}$, but i dont see how this will help me to get to prove the statement. Also what it means that $z_{2}$ is not $0$ confuses me because $b$ or $a$ can still be $0$ then but just not both at the same time.  Can someone give me a hint without giving the whole answer? So i can still figure the rest out myself. Just a hint to be able to continue.


When can the -ing form of a verb be placed before a noun?

My native-speaker's grammatical intuition tells me that:  There is a sleeping man under the tree.  is fine but  There is a fishing man by the river bank.  is wrong.  Why? Both  There is a man sleeping under the tree.  and  There is a man fishing by the river bank.  are fine. I've thought about this a little, and I've come up with some grammatical hypotheses, but I'd be very grateful if somebody could point me to a general reference on this matter. Addendum: Someone asked me what hypotheses I've come up with. I've identified two cases where an -ing modifier can come before a noun:  When the -ing acts to modify the noun (like an adjective), rather than describe an action being performed at that time, it goes before the verb.  E.g. flying fish, dancing girl.  When the verb suggests a sensory impression.  E.g. crying baby, shining light.   But there must be at least one more class to account for expressions like a sleeping man. Second addendum: I should clarify precisely what fishing man is supposed to mean.  It does not mean a man who fishes.  That would be taken care of by case 1 of the hypothesis above.  The intended meaning is a man who is fishing.  (Just like a sleeping man is supposed to mean a man who is sleeping rather than a man who sleeps.)


I was trying to solve internet problems, and seem to have made things worse: Now when I start the computer it gets stuck on "Booting system without full network configuration".   Does anyone know how to make it unstuck?   Alternatively: It got messed up when I changed the contents of /etc/network/interfaces, so presumably would work again if I changed it back. How can I edit this file during boot?   I'm using Ubuntu 12.10.


I am wondering about the pie chart in the properties basic tab. I can see blue is used space and white free space but what does the gray part mean. I have been searching with no luck. Thanks in advanced!


Disabling Case sensitivity for my keyword search

I have a filter by text search in my wpf application. However when I do a string comparison to check if it contains a buzzword like, oh say "error", I want it to update/refresh my datagrid with all entries that have the Error keyword; regardless if I typed Error, or error, or eRRor in my search box.  Here is my code:  public class Foo  {   private void GetFilteredResults(MessageDetails detail, FilterEventArgs e)   {     foreach (MessageValue value in detail.MessageValue)     {        if (value.Value.Contains(txtFilterValue.Text))        {            //Returns true...        }     }     //Otherwise false   } }   The Messagedetails is a container class and holds all of the datagrid row values.   The MessageValue is a struct that holds the actual message value in an ObservableCollection   Finally, the txtFilterValue is the control name of the textbox I am using to for my word filter  What I want to do is setup something to where I remove case sensitivity in order to cache all entries that match my keyword, regardless of how I type it. How would I go about that?


How can I generate a list of all possible permutations of several letters?

So I am making a word generator that takes several inputted letters, puts them in all possible positions, and matches them with a document to find words. If I am approaching this wrong please tell me! If not how can I do this? Thanks


Code won't work because of null pointer exception

I have a simple two class program in java and the main class doesont want to create an object of the nameProcessor class  I tried everything I know but I am still a dumb begginer  public class Main {     public static void Main()     {         // initialise instance variables          String name="Andy";         System.out.println("That name is "+name.length()+" letters long");         System.out.println("The first letter is "+name.substring(0,1));         nameProcessor np1 = new nameProcessor(name);         if (np1.nameChecker()==false)            System.out.println("That is a nice name.");         else             System.out.println("That is a wierd name.");     } }  public class nameProcessor {     private String userName;     private String letters;     private String letter;     private boolean give;       public nameProcessor(String name)     {         // initialise instance variables         String userName=name;         String letters="XYZWxyzw";         String letter="";         boolean give=false;     }       public boolean nameChecker()     {         give=false;         for(int i=0;i<userName.length();i++){             letter=letters.substring(i,i+1);             if (userName.indexOf(letter)!=-1){                 give=true;             }         }         return give;     } }   //Some correct outputs would be   //Andy->That is a nice name //XXX->that is a wierd name  //just any string containing XYZWxyzw should return true


How to prove $f$ can be uniformly approximated on $[1,\infty )$ by a function $g$, using Weierstrass theorem.

Let $f:[1,\infty )\to \Bbb R$ be continuous, and suppose that $\lim \limits_{x \to \infty}f(x)$ exists. Use the Weierstrass approximation theorem to prove that $f$ can be uniformly approximated on $[1,\infty )$ by a function $g$ of the form $g(x)=p(\frac{1}{x})$, where $p$ is a polynomial.  By the assumption that $\lim \limits_{x \to \infty}f(x)=L<\infty$, given $\epsilon>0$ there exists $R>0$ such that $\forall x>R$, we have $|f(x)-L|<\varepsilon$. If we restricts $f$ to $[R,a]$ for any $a>R$, then by the Weierstrass theorem, there exists a sequence of polynomials $\{P_n\}$ converges uniformly to $f$ on $[R,a]$. We find that $P_n(x)=L$ on $[R,a]$, when $n$ is large enough. So, I wonder if we restrict $f$ to $[1,R]$, can we find a sequence of polynomials $\{p_n\}$ such that $\lim \limits_{n\to \infty} p_n(x)=f(x)$ uniformly on [1,R] and $p_n(x)=L$ on $[R,\infty)$ such that $p_n\to f$ uniformly on $[1,\infty)$? I have not figured out how to find the function $g$ mentioned in the statement, I 'm not sure how to prove this statement. Appreciate any suggestion.


Is there something like batch file in Ubuntu?

I have Ubuntu 14.04 installed. I was using Windows until my Windows 7 corrupted. I was learning about batch file (.bat or .cmd). Is there anything alike with it in Ubuntu? If there is what is it?


Why can't I access this variable which is defined inside a method?

I have put a variable that gets updated inside a small method but when I go to use it later on in my code in different methods it shows up as undefined. Do I somehow have to make this variable global? If yes, how would I do that? Here's the code:   def getval():     threading.Timer(0.5, getval).start()     time_interval = slide.get()     print(time_interval)   getval()   This method essentially takes the value (integer) from the scale widget (a slider) in python and updates it every half a second. I then later use the time_interval variable to control different timings.   This is the error I am getting:  Exception in Tkinter callback Traceback (most recent call last):   File "C:\Users\Mihkel\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 1702, in __call__     return self.func(*args)   File "C:/Users/Mihkel/Documents/PyCharm/main.py", line 40, in optionselected     rb()   File "C:/Users/Mihkel/Documents/PyCharm/main.py", line 86, in rb     re()   File "C:/Users/Mihkel/Documents/PyCharm/main.py", line 75, in re     root.after(time_interval, blu) NameError: name 'time_interval' is not defined


Pure significance of line integrals of vector fields

I can understand how the line integral of a scalar function has pure-mathematical significance, representing an area beneath a curve. But is there a pure significance to the line integral of a vector field? The only understanding I have of this is the physical example of work done on a moving particle. Thanks for any insight.


How can I get Ubuntu 16.04 onto a USB flash drive USB

Can anyone give me step by step instructions on how to get Ubuntu 16.04 LTS onto a memory stick please?


How to detect a running MSI Installation

I'm looking for a way to detect if a Windows Installer installation is already in progress. What I've found out so far is:   Checking the Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\InProgress Using the Windows Installer API function MSIInstallProduct with a dummy file which then would return the specific error code.   Does anybody know a smarter solution?


I have taken a sample of $n$ data points from a population. Each of these points has a true value (known from ground truth) and an estimated value. I then calculate the error for each sampled point and then calculate the RMSE of the sample.  How can I then infer some sort of confidence interval around this RMSE, based upon the sample size $n$?  If I was using the mean, rather than the RMSE, then I wouldn't have a problem doing this as I can use the standard equation  $ m = \frac{Z \sigma}{\sqrt{n}} $  but I don't know whether this is valid for RMSE rather than the mean. Is there some way that I can adapt this?  (I have seen , but I don't have issues with whether my population is normally-distributed, which is what the answer there deals with)


Integrate $\displaystyle \int \limits_0^\pi{{x\sin x}\over{1+\cos^2x}}dx$. I tried substituting $t=\cos x$, and then integrate with integration by parts. It got all messy... Thanks in advance for any help!


Which is higher — "hyper-", "ultra-" or "super-"?

According to OED,  :  over, beyond, over much, above measure   :  beyond   :  over, above, higher than    They all have the meaning "higher than", but what is the order of them? That is, which one is the highest? Which one is modest higher? And which one is middle higher? Update: Thank you all. I have searched by myself and spotted that, according to , hyperfamily is larger than superfamily. Moreover, as Kris, Mitch and Robusto pointed out, hyper is higher than super in many other usage such as hypersonic/supersonic and hypermarket/supermarket. In addition super is higher than ultra in Audiology. So it seems  ultra < super < hyper  in common usage. On the other hand, in  of biological classification, the rank hypoorder is larger than suborder, which is larger than infraorder. So a conclusion seems can be made as infra < sub < hypo. Overall, does it seem the order is  infra < sub < hypo < ultra < super < hyper  in most usages?


Simple Past vs. Present Perfect: "was" vs. "has been"

Possible Duplicate:          As a English non-native speaker it is difficult for me to understand when I must use present perfect or past simple because in my official language there isn't the present perfect tense. I know that present perfect is related to something that happened in the past but its result is important now. But for instance:        The message has been sent.   The message was sent.      Please help me point me out any examples/contexts where I should use 1. instead of 2.


I'd like to have a python program alert me when it has completed its task by making a beep noise.  Currently,  I use import os and then use a command line speech program to say "Process complete".  I much rather it be a simple "bell." I know that there's a function that can be used in Cocoa apps, NSBeep, but I don't think that has much anything to do with this. I've also tried print(\a)  but that didn't work. I'm using a Mac, if you couldn't tell by my Cocoa comment, so that may help.


Please explain the differences between using 'will' and 'would' in the examples below:     There is a possibility he would win.   Versus     There is a possibility he will win.   And      There is still a chance that he will arrive before 7.   Versus     There is still a chance that he would arrive before 7.   Both are very common but my take on it is that "will” suggests a much stronger/greater probability or future likelihood compared to "would".  Please offer yours.


Eigenvalues of matrix satisfying $A^2 = A$

I would be very grateful if someone can help me with the following assignment:  I'm given an $n\times n$ matrix $A$.  If $A \neq I,0$ and $A = A^2$, I need to prove that $\lambda=0$ and $\lambda=1$ are $A$'s eigenvalues and that they are $A$'s only eigenvalues.


avoid \headrulewidth appearing at chapter beginning

I am using the following code set my headers.  \fancypagestyle{plain} \fancyhf{} \pagestyle{fancy} \fancyhead{} \fancyhead[L]{\textit{\sffamily\ifthenelse{\isodd{\value{page}}}{\leftmark}{\rightmark}}} \fancyhead[R]{\textit{\sffamily\thepage}} \fancyfoot[C]{} %\headrulewidth{0.1pt}  \renewcommand{\headrulewidth}{0.1pt}    The \headrulewidth (line below the head) is also appearing at the beginning of a chapter and I WANT TO DISABLE this.  How can I change the behaviour of the headrulewidth for the first page of a chapter?


What is the Ubuntu equivalent of Mspaint.exe? I need VERY BASIC image editing to make cheap comics or minor changes, creating memes, etc


$a_1,a_2,...,a_n$ are positve numbers such that $a_1a_2...a_n=1$, prove using the AM-GM Inequality that $(1+a_1)(1+a_2)...(1+a_n) \geq 2^n$.  I managed to prove this using induction and some messing around, but I didn't use the AM-GM Inequality. I can't figure out how to prove this using the inequality, so I'd like some help. Thanks in advance to all the helpers.


Best way to set a conditional output filter (head or output "as is")

For testing purpose, I want to activate or not a filtering with the command head.  For example, the command below could outputs a lot of lines  #!/bin/bash produce_a_lot_of_lines   I want to set on demand a filter with head, depending on a variable. A way The sample below works:  #!/bin/bash function filter() {   [[ "$HEAD" =~ [0-9]+ ]] && head -n $HEAD || cat } produce_a_lot_of_lines | filter   Is there a cleaner/more efficient/better way to achieve this?


Cannot update modules with drush – needs higher bootstrap level

As stated in  Drush needs to find the settings.php file in order to work. My problem is that the settings.php file is indeed in the right folder (and I have navigated to the Drupal root folder before issuing the Drush commands), but it still does not work to update modules with drush. I just get the message that Command pm-update needs a higher bootstrap level to run. It even states itself that the Drupal settings file is located in sites/default/settings.php.  This is the error message:  C:\wamp\www>drush ups Command pm-updatestatus needs a higher bootstrap level to run - you      [error] will need to invoke drush from a more functional Drupal environment to run this command. The drush command 'ups' could not be executed.                           [error]  Drush was not able to start (bootstrap) the Drupal database.             [error]   I have also followed the instructions in , with no luck.  What else can I try?


Equipartition of energy and degrees of freedom in Diatomic gas

Suppose we have a gas of $N$ diatomic molecules (ex $O_2$) with one-molecule hamiltonian being: $$\mathcal{H} = \frac{\vec{p}_1^2}{2m}+\frac{\vec{p}_2^2}{2m} + V(r_{rel}) $$ Where $r_{rel}$ is the relative distance between the two atoms. Say the potential is something like $V= \frac12 m ω^2 r_{rel}^2 = \frac12 k r_{rel}^2$ Thus the one body partition function is going to be:  $$ Z_1 = \frac1{h^6} \int d^3r_1 \int d^3r_2 \int d^3p_1 \int d^3p_2 e^{-β\mathcal{H}}$$   or more conveniently-using center of mass coordinates  : $$ Z_1 = \frac1{h^6} \int d^3r_{cm} \int d^3r_{rel} \int d^3p_1 \int d^3p_2 e^{-β\mathcal{H}}$$    (something tells me I got something wrong here?)  It's easy to see the first integral gives us the volume $V$, while the last two are the same so we'll get a term $ (\frac{2mπ}{β})^{3}$.   Now the point were I'm getting confused is the integral of the relative distance: I'm reading in notes/books that the relative distance is one extra quadratic term in the hamiltonian and will thus give us an extra term  $\sim (\frac{1}{β})^{1/2}$. However I'm thinking of it as three extra terms, since $\vec{r}_{rel}= \vec{r}_1 - \vec{r}_2$ is a vector, same as $\vec{p}_{1,2}$, right? Indeed doing the integral I get : $$ \int d^3r_{rel} exp(-\frac{βk}{2} r_{rel}^2) =4π \int dr r^2 exp(-\frac{βk}{2} r^2) \sim (\frac{1}{β})^{3/2}$$ So I'd get a heat capacity $9/2 k N$ instead of $7/2 k N$.   What am I getting wrong? Why are the momenta  considered as 3 quadratic terms each, while the relative distance in the potential as 1 and how does this become apparent when integrating with respect to center of mass coordinates?


Actual meaning of "Gravitational Potential"?

In a gravitational field, the gravitational force acting on a body (of mass m) at a point x metres away from the attracting body (of mass M) is $\frac{GMm}{x^2}$. Integrating this force from a point at infinity to x gives $-\frac{GMm}{x}$, or the work done by the gravitational field on the mass in moving the mass from a point at infinity to x. Then, the gravitational potential at point x is $-\frac{GM}{x}$.  However, the definition that my school gives is : "Gravitational potential at a point in a gravitational field is the amount of work done by an external agent in moving one unit of mass from a point at infinity to the point in the gravitational field, without any acceleration". The lecturers explained that as a body moves closer to the attracting body, it accelerates and gains kinetic energy. In order to maintain a constant velocity, negative work must be done by an external agent to remove this extra kinetic energy.  Now I am very confused, because both seem valid to me. What does "gravitational potential" actually mean?


Adding a flag to Menu Content Link to display as a non-link

I have been struggling/failing for the last day to try find a way that I can add a flag/marker to the Drupal menu links that I can examine within the menu TWIG template to modify the link such that it becomes plain text instead of a menu link.  I am not using any menu modules, standard Drupal Menu with CSS to provide the drop down functionality and styling.  What I need is to be able to output a menu item as shown in the screen shot, specifically the 'Sell your property' & 'Essential Services' items which are unlinked headers.    Initially I attempted to use the contributed module menu item extras   () which works fine from a menu management plugin point of view but then they change the markup way too much and it actually breaks the drop down functionality, so I cannot use it.  I then tried a second module which seemed simpler, i.e. Menu link content fields ().  This module has some strange behaviour in that it makes the menu links fieldable. I can add a new field but after adding a field, it does not appear under the Manage Fields tab, and in the twig template the new field is un-available in the menu item object (Examined through xDebug)  Also, trying to remove this invisible field at a later stage seems difficult.  Question: How can I easily add some sort of marker to a menu item link  to allow me to modify the template output for said link. Or is the re a module that will allow then insertion of HTML markup/plain text instead of a link (Megamenu doesnt seem to allow this)  Also, I cannot seem to find the hook which deals specifically with a sites menu, i.e. the hook that is executed for each menu link. Does one even exist?  I'd like to avoid a hack whereby I put in a unique string into the text of the link and then examine this in the menu twig templates to see if that string exists to know if I need to modify it.


Position of comma relative to quotation marks: "You're wrong",... vs. "You're wrong,"

Below, I have written two sentences. Can you comment on the positioning of the first comma in each case. Are both sentences correct?   "You're wrong", Eddie replied. "You're wrong," Eddie replied, "that's not what I said."


triple boot to Windows without loosing xubuntu and kali linux

I am using a Lenovo laptop I removed Windows and using Xubuntu xfce and Kali Linux on my system for many years. I have enough free space on my disk to reinstall Windows. Since I don't have Windows installation media but I have Windows recovery ISO. How I can install Windows without loosing other Operating Systems on my system?


How can I manage the onslaught of null checks?

Quite often, in programming we get situations where null checks show up in particularly large numbers. I'm talking about things like:  if (doc != null) {   if (doc.Element != null)   {     ... and so on   }   else     throw new Exception("Element cannot be null"); } else {   throw new Exception("document cannot be null"); }   Basically, the whole thing turns into an unreadable nightmare, so I'm wondering: is there an easier way to describe what I'm trying to do above? (In addition to null checks, I get things like string.IsNullOrEmpty from time to time.)  Accepted answer: I accepted the answer that has  because the approach described is innovative, and is precisely what I want. Thanks Shawn!


Which quantities are Lorentz-Invariable and which are not?

The only physical constant I know for sure is Lorentz-Invariant is electric charge.  I am curious to know if there are others even if it's not possible to make an exhaustive list.


Does a player character wielding a whip gain advantage if they are 10 feet away from the target?

We had an episode in combat tonight that I was not sure how to adjudicate. A player character (PC1) with a whip was 10 feet away from an enemy. In between PC1 and the enemy was another player character (PC2) that was prone. On the far side of the enemy was a third player character (PC3). Does PC1 have advantage due to flanking in attacking the enemy with the whip? Why or why not? If PC2 stands, can PC1 still attack the enemy using the whip, and would this affect advantage in any way?


Choosing video card in laptop to use with ArcScene

I need a new laptop within the next couple weeks to use at grad school for GIS. I am a geology & geography major and use numerous aerial and satellite photos at once and often use ArcScene. I know that I should probably get an HP zbook with a workstation quadro series video card, but that is a tad out of my budget. Would a gaming laptop (such as alienware or ASUS Rogue) with an NVIDIA geforce card work almost as well?


How to clear my autocorrect's word history on S4 mini?

I let my younger cousins play on my S4 Mini from time to time, but now I have found that all their words they have used are the first to come up when I use my phone to text. It has gotten quite irrititating. Samsung seems to have very hard to find settings compared to my old sony Ericsson so I cannot find where to get rid of the word history typed onto my phone's keyboard.   Thank you.


Does there exist a set such that $X \in X$?

In Russell's paradox, if there is a set that has everything as an element, it can be seen that it is a contradiction. I think if there is a set X such that $X \in X$, there is contradiction. I want to prove this by axiom of regularity but i cannot. How to prove this?


While reading through the significant difference between Thread and Runnable from , I encountered a difference that is:  When you extends Thread class, each of your thread creates unique object and associate with it. where as   When you implement Runnable, it shares the same object to multiple threads..   There is code give :   class ImplementsRunnable implements Runnable {    private int counter = 0;    public void run() {     counter++;     System.out.println("ImplementsRunnable : Counter : " + counter);   } }   class ExtendsThread extends Thread {     private int counter = 0;     public void run() {      counter++;      System.out.println("ExtendsThread : Counter : " + counter);    }  }   public class ThreadVsRunnable {     public static void main(String args[]) throws Exception {      //Multiple threads share the same object.      ImplementsRunnable rc = new ImplementsRunnable();      Thread t1 = new Thread(rc);      t1.start();      Thread.sleep(1000); // Waiting for 1 second before starting next thread      Thread t2 = new Thread(rc);      t2.start();      Thread.sleep(1000); // Waiting for 1 second before starting next thread      Thread t3 = new Thread(rc);      t3.start();       //Creating new instance for every thread access.      ExtendsThread tc1 = new ExtendsThread();      tc1.start();      Thread.sleep(1000); // Waiting for 1 second before starting next thread      ExtendsThread tc2 = new ExtendsThread();      tc2.start();      Thread.sleep(1000); // Waiting for 1 second before starting next thread      ExtendsThread tc3 = new ExtendsThread();      tc3.start();    }  }   The output is something like this:  ImplementsRunnable : Counter : 1 ImplementsRunnable : Counter : 2 ImplementsRunnable : Counter : 3 ExtendsThread : Counter : 1 ExtendsThread : Counter : 1 ExtendsThread : Counter : 1   It proves differences given above. I make a slight modification in code given below:  class ImplementsRunnable implements Runnable {    private int counter = 0;    public void run() {     counter++;     System.out.println("ImplementsRunnable : Counter : " + counter);   } }  class ExtendsThread extends Thread {    private int counter = 0;    public void run() {     counter++;     System.out.println("ExtendsThread : Counter : " + counter);   } }  public class ThreadVsRunnable {    public static void main(String args[]) throws Exception {     //Multiple threads share the same object.     ImplementsRunnable rc = new ImplementsRunnable();     Thread t1 = new Thread(rc);     t1.start();     Thread.sleep(1000); // Waiting for 1 second before starting next thread     Thread t2 = new Thread(rc);     t2.start();     Thread.sleep(1000); // Waiting for 1 second before starting next thread     Thread t3 = new Thread(rc);     t3.start();      //Modification done here. Only one object is shered by multiple threads here also.     ExtendsThread extendsThread = new ExtendsThread();     Thread thread11 = new Thread(extendsThread);     thread11.start();     Thread.sleep(1000);     Thread thread12 = new Thread(extendsThread);     thread12.start();     Thread.sleep(1000);     Thread thread13 = new Thread(extendsThread);     thread13.start();     Thread.sleep(1000);   } }   Now the output is :  ImplementsRunnable : Counter : 1 ImplementsRunnable : Counter : 2 ImplementsRunnable : Counter : 3 ExtendsThread : Counter : 1 ExtendsThread : Counter : 2 ExtendsThread : Counter : 3   I understand the fact that, here same object (extendsThread) is shared by three threads. But I'm confused here that how it is different from implementing Runnable. Here, even if *ExtendsThread * extends Thread, we are still able to share the object of this class to other threads. In my thinking the above difference does not make any sense.  Thanks.


I am anxious to replace an outdoor faucet but sick of it leaking and splashing back on turning on and off. There’s mystery holes above where the hoses connect that causes the leaking. Very confusing... and the amount of paint on it is confusing me on what I can unthread and replace. Very subtle I can make out the number 76-100 8 ? Any intel on replacement parts or procedures appreciated. There’s not much pipe sticking out so I’m hoping to avoid pipe cutting and soldering a new connection.


Package babel Error: Unknown option `ngerman'

I've tried to create German quotation marks in LaTeX, but after compiling with \usepackage[ngerman]{babel}, I get this error:   ! Package babel Error: Unknow option `ngerman'. Either you misspelled it (babel) or the language definition file ngerman.ldf was not found.   The solution  "Partei"' doesn't work at all and the alternative \glqq only works with the \usepackage[ngerman]{babel}...   This is my code:   \documentclass[12pt,a4paper,oneside]{scrartcl} \usepackage[latin1]{inputenc} %\usepackage[ngerman]{babel} \usepackage{graphics} \usepackage{multicol} \usepackage{hyperref} \renewcommand*{\UrlFont}{\normalfont} \usepackage{fancyhdr}   can anybody help me please? I have to turn in my paper next week...  Here's my "extended example":   I want to have German quotation marks. Normally, there are two possibilities to accomplish that:    either you do it this way: "`Partei"' and compile it.  Unfortunately, this does not work any more (it has worked for my last paper, but I didn't change anything in my TeXmaker) you can write: \glqq Partei\grqq and then you get German quotation marks in case you have installed the \usepackage[ngerman]{babel} or \usepackage{german}, but with both usepackaged I get the error described above.    Normally, I work with TeXmaker on Linux Ubuntu.   Do you need any more information? I'm not quite an expert on this field, sorry...


I am not able to make the required GP to solve this

In a match between A and B probability of winning A is 1/2 and B winning is 1/3 and probability of draw is 1/6. Person who wins two consecutive    matches will win the game. Find probability that A wins the game


Why does np.float32 slightly change the values in the matrix while np.float64 doesn't?

When I cast the numbers in the matrix as np.float32 the values are slightly modified:  In [1]: matrix_32 = np.asarray([    ...:    [0.7, 3],    ...:    [1.7, 2],    ...:    [0.7, 9]    ...: ], dtype=np.float32)  In [2]: matrix_32 Out[2]:  array([[ 0.69999999,  3.        ],        [ 1.70000005,  2.        ],        [ 0.69999999,  9.        ]], dtype=float32)   However, when I cast the numbers as np.float64 the values are shown as expected:  In [3]: matrix_64 = np.asarray([    ...:    [0.7, 3],    ...:    [1.7, 2],    ...:    [0.7, 9]    ...: ], dtype=np.float64)  In [4]: matrix_64 Out[4]:  array([[ 0.7,  3. ],        [ 1.7,  2. ],        [ 0.7,  9. ]])   Can somebody explain why this happens?


World clock indicator on Ubuntu 17.10 Artful

Looking at the old  to this question, it's clear that the UI was changed as it no longer provides a way to add multiple time zones using the settings page. I'd like to see an indicator of the time in multiple countries instead of just my local time. Is there a way to achieve this on Ubuntu 17.10?


A blinding light / blinding sunlight / a blinding sunlight

"Mornings came and cast a blinding sunlight over everything, and he felt like nothing worthwhile could be accomplished."  For some reason, I feel like "a blinding light" is ok, but if its sunlight, then I should drop the "a" and write "cast blinding sunlight", but I'm not sure why I feel this way.   Can anyone offer some enlightenment?  edit - alternate phrasing, closer to being a literal translation: "Mornings came without warning, flooding the day with a strong sun, and he felt like nothing worthwhile could be accomplished."   I would still like an answer to the technical question of whether I should drop the "a", but would also appreciate knowing if anyone thinks option #2 is a better choice.


Let $f_n$ be the Fibonacci numbers, defined by $f_0 = 0$ and $f_1 = 1$ and $f_n = f_{n-1} + f_{n-2}$ for all $n \ge 2$.  Show that $f_0 - f_1 + f_2 - \cdots - f_{2n-1} + f_{2n} = f_{2n-1} - 1$ when $n$ is a positive integer.  Just some homework help. Need to prove. Thank you in advance.


It is implied in HP books that Hermione Granger is reasonably affluent, compared to eg. Ron Weasley.  At the start of Prisoner of Azkhaban, she had 10 galleons left to spend after purchasing what was needed for school.  Is it indicated anywhere in books, how she got any wizarding money at all, her parents being muggles? Were they made aware of money needs by the school  and were given enough information to arrange exchange with Gringot's?


AIX why does ps display the process name between square brackets?

On AIX 7 I have a process whose name appears between square brackets in the ps output:        PID    TTY  TIME CMD   7798784  pts/2  0:00 [myproc]   9044154  pts/2  0:00 ps    10485770  pts/2  0:00 bash    I found that overwriting argv[0][0] leads to such a result. Is there any other reasons which could lead to this result?


Is there a notification mechanism for when a dependency property has changed?

In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged.  Is there any other way of determining if the value has changed?


It is possible to export all object from a scene into different obj files (each object in a obj file separately)?


Showing only "interesting" mount points / filtering non interesting types

I used mount to show mounted drives, I don't want to see the not so interesting ones (i.e. non-physical). So I used to have a script mnt that did:  mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts) '   under Ubuntu 8.04 and showed me ext3 and reiserfs mount points only. That line is actually commented out and now I use (for Ubuntu 12.04):  mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts|debugfs|rpc_pipefs|nfsd|securityfs|fusectl|devtmpfs) '   to only show my ext4 and zfs partitions (I dropped using reiserfs).  Now I am preparing for Ubuntu 14.04 and the script has to be extended again (cgroup,pstore). Is there a better way to do this without having to extend the script? I am only interested in physical discs that are mounted and mounted network drives (nfs,cifs).


Find all positive integers $n$ such that $\phi(n)=6$.

I am asked to find all positive integers $n$ such that $\phi(n)=6$, and to prove that I have found all solutions.  The way I am tackling this is by constructing all combinations of prime powers such that when passed to Euler's function will yield $6$.  For example, I know that $\phi(7)=6$, $\phi(3^2)=6$, and $\phi(2)=1$. Therefore, the numbers should be $7$, $7\cdot2=14$, $3^2=9$, and $3^2\cdot2=18$.  I believe that there cannot possibly be any others because of the way the $\phi$ function is defined. What do you guys think?


How do I print something after n seconds?

Sorry if this is a basic question but I'm just trying to print a string after a certain number of seconds and I'm not sure how to do it. I can put an input beforehand so that there is a reference for when the start of the 6 seconds.  something like this:  x = input() after 6 seconds:     print('Hello World!')


Is the question in the Munkres's topology book wrong?

At the end of cheapter $8.1$,  $4)$ Given spaces $X$ and $Y$, let $[X,Y]$ denote the set of homotopy classes of maps of $X$ into $Y$.  $b)$ Show that if $Y$ is path connected, the set $[I,Y]$ has a single element.($I=[0,1]$)    Claim$1:$  If $Y$ contains a hole then the loop containing the hole can not be homotopic to the ones which is not containing. So is it wrong ?    Claim$2:$  Beside that, when I first try to prove the claim,  Let $f:I\to Y$ be a continious map. Set $$F:I\times I\to Y$$  $$(x,t)\mapsto f(x(1-t)) $$  Then $f$ is homotopic to a constant map. As $Y$ is path connected all constant map is homotopic to each other. Thus we are done.    But I am not sure about niether of them.