Should I get the Dungeon Master's Guide, the Player's Handbook, or the Monster Manual?

So I'm a fairly new player in the game Dungeons & Dragons (D&D). I'm known about the game/played a very loose version of the game a little over a year ago and I started getting serious about ten-eleven months ago. Currently, I am still learning about the game, its concepts, and how to play. Something I would love to try is DMing. But there are a few problems with that:  I'm still not a master at the game and I'm still learning I'm not sure if I have all the resources.  So I'm asking you guys! What would be the most important to get for an inspiring world builder and D&D player? The Dungeon Master's Guide, the Player Handbook, or the Monster Manual? I currently have some beginner level stuff that just teaches you the basics, but what if I want to go deeper?


Can anyone tell me why Vito would send Luca to Tattaglia's night club under the ruse of being a traitor in The Godfather? The relationship between Vito and Luca must have been well known in the mob community and Vito would have known that. Are you going to tell me that Vito didn't consider the fact that Tattaglia wouldn't buy that his story of being unhappy with the family? If Vito is as sharp as they would have us believe, why then would he send his most trusted soldier to his death? I believe this is a flaw in the plot.


Im using virtual server on hosting. There is Ubuntu 12.04 LTS. Im building pool websites, and stratum mining. I can connect to stratum on port 3333 via minerd on server, but cant connect from outside cpu miner, like mine. Here is a list which i get when trying this command netstat -ntlp | grep LISTEN :  root@vm9807:~# netstat -ntlp | grep LISTEN tcp        0      0 0.0.0.0:3334            0.0.0.0:*               LISTEN      1757/python      tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      1219/master      tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      987/mysqld       tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      1219/master      tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      1121/memcached   tcp        0      0 0.0.0.0:8332            0.0.0.0:*               LISTEN      1721/python      tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN      1757/python      tcp        0      0 0.0.0.0:32333           0.0.0.0:*               LISTEN      1686/betacoind   tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      969/dovecot      tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      969/dovecot      tcp        0      0 0.0.0.0:9333            0.0.0.0:*               LISTEN      1678/litecoind   tcp        0      0 31.31.75.108:53         0.0.0.0:*               LISTEN      999/named        tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      999/named        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      856/sshd         tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1219/master      tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      999/named        tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      969/dovecot      tcp        0      0 127.0.0.1:7777          0.0.0.0:*               LISTEN      1117/python      tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      969/dovecot      tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      969/dovecot      tcp        0      0 0.0.0.0:3333            0.0.0.0:*               LISTEN      1721/python      tcp6       0      0 :::32332                :::*                    LISTEN      1686/betacoind   tcp6       0      0 :::32333                :::*                    LISTEN      1686/betacoind   tcp6       0      0 :::80                   :::*                    LISTEN      1319/apache2     tcp6       0      0 :::9333                 :::*                    LISTEN      1678/litecoind   tcp6       0      0 :::53                   :::*                    LISTEN      999/named        tcp6       0      0 :::9334                 :::*                    LISTEN      1678/litecoind   tcp6       0      0 :::22                   :::*                    LISTEN      856/sshd         tcp6       0      0 ::1:953                 :::*                    LISTEN      999/named        root@vm9807:~#    My vserver hosting is not blocking any ports, im not using any firewall. Help me please thankx


Where is Ubuntu Desktop for 64 bit i386?

As a disabled vet I cannot switch hardware to something Ubuntu finds more agreeable due to cash restraints. Will there be an i386 Desktop version?


Looking for succinct way of describing the act of solidifying an idea into reality

Looking for a succinct way of describing the act of solidifying an idea into reality. "Building [idea] out" seems too generic but I'm trying to avoid a long winded, step by step explanation of the process.  Any ideas would be greatly appreciated. Thanks!


Is expression for law of equipartion of energy valid for real gas?

I know that according to law of equipartion of energy ,energy per molecule per degree of freedom is 1/2 Kb T I wanted to know if it is true for a real gas ?


Identify Book: Boy Taken as Apprentice by Wizard in a City Taken Over After Queen is Assassinated

I remember there was a book series about a boy who came from a family of wizards, living in a small room/apartment in a city that was taken over by some "evil" people after they assassinated the queen, but when they tried to shoot the princess, the master/head wizard at the time took a bullet to himself (if I remember right) and died, his apprentice becoming the head wizard. The family in question adopted the young princess.  Later, the boy is taken on as an apprentice by the new (but by this time fairly old) head wizard. The head wizard lived in a tower. I also believe the boy's brother became a dark wizard and was later exiled from the kingdom, that there were some delivery mice, one of the books in the series was called "Flight" or something and also that there was a magic shop with some kind of magic-proof room.


Notify-send not working when run from apache

I have the following script (alert.sh) which has been setuid'd:  DISPLAY=:0.0 notify-send --urgency=low -i python "The job has finished"   and the following PHP file alert.php:  <?php echo exec("/path/to/alert.sh")   When I su to www-data and run php alert.php, I get an alert on my screen. All good.  However, when I open alert.php in the browser, nothing happens.  I suspect some environment variable needs to be set, but I'm not sure which.


What constitutes an observation/measurement in QM?

Fundamental notions of QM have to do with observation, a major example being The Uncertainty Principle.    What is the technical definition of an observation/?  If I look at a QM system, it will collapse. But how is that any different from a bunch of matter "looking" at the same system?  Can the system tell the difference between a person's eyes and the bunch of matter?  If not, how can the system remain QM?  Am I on the right track?


Is there a system where multiple people can encrypt a message and then decrypt it in any order?

For example, A encrypts a message.  B encrypts that.  C encrypts that.  Then B decrypts, followed by A then C.  Are there systems that allow this? Does such a property have a name?


I am trying to make a photo brighter by doubling the photo's RGB values, to ensure the numbers are within the parameters of 0-255 I made a separate method, however when I call this method it is not updating the RGB values.  public static int safe(int colorNumber) {         if (colorNumber < 0) {             colorNumber = 0;         }         if (colorNumber > 255) {             colorNumber = 255;         }     return colorNumber;     }      public static Picture bright(Picture picture) {         Picture pictureCopy = new Picture(picture);         for (int row = 0; row < pictureCopy.height(); row++) {             for (int col=0; col < pictureCopy.width(); col++) {             Color c = pictureCopy.get(col, row);             int brightBlue = (c.getBlue() * 2);             int brightRed = (c.getRed() * 2);             int brightGreen = (c.getGreen() * 2);             safeColor(brightBlue);             safeColor(brightRed);             safeColor(brightGreen);             Color newColor = new Color ((brightBlue), brightRed, brightGreen);             pictureCopy.set(col, row, newColor);             }         }     return pictureCopy;


How do you convert a pandas dataframe column from a date formatted as below to a number as shown below:         date  0 4/5/2010      1 9/26/2014      2 8/3/2010       To this         date newFormat 0 4/5/2010     40273 1 9/26/2014    41908 2 8/3/2010     40393  Where the second columns is the number of days since 1/1/1900.


How will tiny scratches on rear element affect image quality?

I have found a rather cheap Mamiya G 50mm f4 lens on ebay that has some tiny scratches on the rear element of the lens. Now, I have done some research on how much such scratches could affect the quality, but I have basically read everything from 'completely unusable' to 'absolutely no effect whatsoever'.   My question is: How much will such scratches generally affect the image? Will there be less of a problem since it is Medium Format? The scratches seem to be visible only from a certain angle as well.  The scratches are only really visible in the third image:


If $B$ is finitely generated as a $k$-algebra, and $\phi:A\to B$ is a $k$-algebra map, is $\phi^{-1}(M)$ maximal for any maximal $M\subset B$?

Suppose that $A$ and $B$ are commutative rings containing a field $k$, and $B$ is finitely generated $k$-algebra. Let $\phi: A\rightarrow B$ be a ring homomorphism with $\phi|_k =\mathrm{Id}$. I am trying to prove that if $M\subset B$ is a maximal ideal, then $\phi^{-1}(M)$ is a maximal ideal of $A$.    The case when $A \subset B$ is an integral extension of rings is well-known. I think I can also prove the result when $\phi$ is surjective.    discusses the case when $B$ is a finitely generated $\mathbb{Z}$-algebra but I am not sure how to generalize this.


@isTest public class ContactTriggerHandlerTest {     @isTest static void contactTriggerHandlerTest2(){         Boolean exceptionThrown = false;         try{             Contact c1 = new Contact();             c1.LastName = 'ABC';             c1.test = 'xyz';             c1.Start_Date__c = Date.newInstance(2019, 11, 20);             c1.End_Date__c = Date.newInstance(2019, 11, 24);             insert c1;             Contact c2 = new Contact();             c1.test = 'xyz';             c2.LastName = 'ABC';             c2.Start_Date__c = Date.newInstance(2019, 11, 21);             c2.End_Date__c = Date.newInstance(2019, 11, 26);             insert c2;         }         catch(Exception e){             exceptionThrown = true;             Boolean expectedExceptionThrown = (e.getMessage().contains('You cannot overlap dates in same Contact')) ? true : false;              System.AssertEquals(true, expectedExceptionThrown, e.getMessage());          }     } }


I have found the following example: #include <stdio.h>     // Space optimized representation of the date  struct date {      // d has value between 1 and 31, so 5 bits      // are sufficient      unsigned int d : 5;         // m has value between 1 and 12, so 4 bits      // are sufficient      unsigned int m : 4;         unsigned int y;  };     int main()  {      printf("Size of date is %lu bytes\n", sizeof(struct date));      struct date dt = { 31, 12, 2014 };      printf("Date is %d/%d/%d", dt.d, dt.m, dt.y);      return 0;  }   The results are Size of date is 8 bytes Date is 31/12/2014  I cant understand the first result. Why is it 8 bytes? My thoughts: y is 4 bytes, d is 5 bits and m is 4 bits. The total is 4 bytes and 9 bits. 1 byte is 8 bits, then the total is 41 bits.


I've been thinking of introducing multiple tables each of which will store the chat history between two users in an attempt to not have a big table that would eventually be slow and hard to maintain.  Is there any limitation in having 1000s of seperate tables and if not, since each table is seperate doesn't that mean that queries on individual tables are unaffected by the existence of others?


Proving $ 1+\frac{1}{4}+\frac{1}{9}+\cdots+\frac{1}{n^2}\leq 2-\frac{1}{n}$ for all $n\geq 2$ by induction

Question:     Let $P(n)$ be the statement that $1+\dfrac{1}{4}+\dfrac{1}{9}+\cdots +\dfrac{1}{n^2} <2- \dfrac{1}{n}$. Prove by mathematical induction. Use $P(2)$ for base case.   Attempt at solution:  So I plugged in $P(2)$ for the base case, providing me with $\dfrac{1}{4} < \dfrac{3}{2}$ , which is true.   I assume $P(n)$ is true, so I need to prove $P(k) \implies P(k+1)$.   So $\dfrac{1}{(k+1)^2} < 2 - \dfrac{1}{k+1}$.  I don't know where to go from here, do I assume that by the Inductive hypothesis that it's true?


Why scaling is important for the linear SVM classification?

When performing the linear SVM classification, it is often helpful to  normalize the training data, for example by subtracting the mean and  dividing by the standard deviation, and afterwards scale the test data  with the mean and standard deviation of training data. Why this process  changes dramatically the classification performance?


What does `mv ./*` without specifying destination do?

I accidentally forgot to specify destination before hitting the Return key. Where does mv ./* without specifying destination move the files and directories under current directory to?


Libcurl 4 installation is working for 18.04. We require Libcurl3 to work on Ubuntu 18.04. Since this isn't backward compatible. We want to how to resolve this issue.


Difference between ClassPathXmlApplicationContext and ClassPathResource

What is the difference between the following two statements though both are apparently used to load the xml configuration?  ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");   and  Resource resource = new ClassPathResource("applicationContext.xml"); BeanFactory factory = new XmlBeanFactory(resource);   Is there any difference (wrt performance, usage) between these two?


I had Ubuntu 16.04 or whatever running on my system (off a RAID disk pair). I tried to upgrade to 18.04 over it. Eventually I had the upgrade say that it is broken, can't finish, possibly left in an unstable state. I tried to 'repair' the problem, but -- stupidly -- uninstalled ubuntu-desktop (or whatever) & then rebooted.  Now 18.04 tries to boot, says that it is starting Light Desktop (or whatever) & the text cursor is blinking in the upper left corner on an empty screen & nothing happens. Obviously the desktop sw is broken, but I don't know what to do. I have no install CD for 18.04 (& my setup is RAID, so I would need the server install CD, I think), & when I boot into recovery mode then the package manager can't find some ubuntu server to fix the broken display package (I guess).  I would greatly appreciate some handholding. Right now I'm running 14.04 off another drive & I don't even see the other system because it is on those RAID pair of disks & this install has no support for those disks (this install happened in another machine).  Please, please help!


This is a view of when I am in my Thunderbird inbox?  What's going on?


We have downloaded OSM data for our region and loaded them into PostGIS using osm2pgsql. So far so good. On top we have GeoServer and we would like to expose the OSM data using WMS. We would as well like to style data like in "standard" OpenStreetMaps (e.g. osm.org) as this cartography is well designed. We have tried to download som standard SLD for OSM data, but there seem to all sorts of problems using these SLDs (XML parsing errors, invalid content, etc.).  Any good ideas how to reuse an OSM SLD to style OSM through WMS?


If $f\in L^{\infty}(E)$,then $\|f\|_{ \infty}=\lim_{p\to \infty}\|f\|_{ p}$.

Let $E$ be a measurable set with $m(E)< \infty$.Then   $L^{\infty}\subset L^p(E)$ for each $p$ with $1\le p\lt  \infty$.Furthermore,if $f\in L^{\infty}$,then $$\|f\|_{  \infty}=\lim_{p\to \infty}\|f\|_{ p}$$   .  Proof:Let $f\in L^{\infty}(E)$ and $\mu=\|f\|_{\infty}$   $\implies \vert f(x)\vert^p \le \mu^p$ a.e. on $E$  $\implies \int_E \vert f(x)\vert^p \ dx \le \mu^p.m(E) \lt \infty$ a.e. on $E$  $\implies f\in L^p(E)$  $\implies L^{\infty}(E)\subset \ L^p(E)$.  How to show if $f\in L^{\infty}$,then $\|f\|_{ \infty}=\lim_{p\to \infty}\|f\|_{ p}$?  I've tried hard to prove this. My professor suggested  me to use the concept of limit superior,but i'm failing to make that idea practical.I know it is easy as it is consequence of above result but i'm lacking somewhere.So it will be heplful to give the detailed explanation of proof.  Thank you!  This is Davide Giraudo's answer for   Fix $\delta>0$ and let $S_\delta:=\{x,|f(x)|\geqslant \lVert f\rVert_\infty-\delta\}$ for $\delta<\lVert f\rVert_\infty$. We have  $$\lVert f\rVert_p\geqslant \left(\int_{S_\delta}(\lVert f\rVert_\infty-\delta)^pd\mu\right)^{1/p}=(\lVert f\rVert_\infty-\delta)\mu(S_\delta)^{1/p},$$ since $\mu(S_\delta)$ is finite and positive.   This gives  $$\liminf_{p\to +\infty}\lVert f\rVert_p\geqslant\lVert f\rVert_\infty.$$ As $|f(x)|\leqslant\lVert f\rVert_\infty$ for almost every $x$, we have for $p>q$, $$ \lVert f\rVert_p\leqslant\left(\int_X|f(x)|^{p-q}|f(x)|^qd\mu\right)^{1/p}\leqslant \lVert f\rVert_\infty^{\frac{p-q}p}\lVert f\rVert_q^{q/p},$$ giving the reverse inequality.  My question is how $\left(\int_X|f(x)|^{p-q}|f(x)|^qd\mu\right)^{1/p}\leqslant \lVert f\rVert_\infty^{\frac{p-q}p}\lVert f\rVert_q^{q/p}$ happened?


How can I export a flowchart as an image on ShareLatex?

I have built a flowchart on a ShareLatex project using tikz library and it's working fine.   I need to put this flowchart on a slide for a presentation (using PowerPoint, Google Docs or whatever), so I would like to export my flowchart as an image (png, jpeg, ...).  Is there a method which can help me with this issue?  I know that I can take a screenshot of the flowchart but I would like to know if a better solution exists.


Why don't wizards use more than one wand in casting spells for battle?

In the Harry Potter and the Deathy Hallows, Harry used three wands to perform the Stupefy Charm to Fenrir Greyback, who was lifted off his feet by the triple spell, flew up to the ceiling and smashed the ground.  Having said this... using more than wand is ABSOLUTELY a quite huge advantage for wizards and witches to win a battle or a duel. If someone tries to cast a spell on someone, particularly the stunning spell, the one that receives the attack will surely fly high up into the air.  The question is, if every wizard in the books wants to win every single battle blocking their way, why don't they use more wands? That will surely help them a lot!


Unable to access LastViewedDate on Account object SQL

I am trying to get the list of last 10 accounts viewed. The code seems to be working in sandbox and workbench but when I try deploying it in production, I get the error: No such column 'LastViewedDate' on entity 'Account'.  SELECT Id, Name, LastModifiedDate                             FROM account                             WHERE LastModifiedDate !=null ORDER BY LastViewedDate DESC limit 10  <apiVersion>31.0</apiVersion>   Attached the error messags


I have a query:   DECLARE @str NVARCHAR(max) SET @str = 'SET QUOTED_IDENTIFIER ON' + CHAR(13)+ CHAR(10) + 'GO' + CHAR(13) + CHAR(10) + 'Select 1 from MyTable' PRINT @str EXEC (@str)   It returns an error:     Msg 102, Level 15, State 1, Line 2 Incorrect syntax near 'GO'.   But if I exec the printed query in a new query editor it works fine.  I am using SQL Server 2014.


What is the correct method to locate and throw away unnecessary files when your disk is full on Mac OS X?

Looking the size of each file in your system manually in order to find the bottlenecks is, obviously, too inefficient. What is the correct way to have a good overview of which files are consuming most of the resources of your disk, in order to decide which ones to discard?


I have QGIS 3.4.14-Madeira installed. I'm trying to access OpenStreetMap using QGIS.    The instructions at  go to Vector → OpenStreetMap but this is not in the drop list that appears under Vector.   Instead I see:    Geoprocessing Tools   Geometry Tools   Analysis Tools   Data Management Tools   Research Tools   How do I access OSM data from QGIS?


More privileges for reputation between 5K and 10K

I just turned 10K in Stackoverflow. I was quite impressed to see how many privileges you get when passing this threshold: .  At the same time, I felt that some of these privileges could be gradually moved to lower reputation, so that we have more features given on the loooong path between 5K and 10K, for example on 7,5K.  For example, this is the one I think that could be moved:     Aside from this, you get the ability to do inline tag edits on   questions. Hover your mouse next to the tags and you should see a   "edit tags" button:   Do you agree with me?


Introduce Ctrl + Arrow to reply to messages in chat

Currently, Ctrl + ↑ / ↓ has the same effect as ↑ / ↓, it edits messages.  It would be nice, if Ctrl + ↑ / ↓ could be changed to quick-respond to other messages instead. This avoids having to switch from keyboard to mouse everytime one wants to respond to a specific message.


What range must a spell cast "on" a Shield Guardian have?

The "Spell Storing" ability of the Shield Guardian says:     To do so, the wearer must cast the spell on the guardian.  The spell has no effect but is stored within the guardian.   This seems to indicate you cannot cast, for instance, Fire Shield on the Guardian, because that has a range of Self.  This seems different than what is intended, as the wording for a ring of spell storing is:     This ring stores spells cast into it, holding them until the attuned   wearer uses them....Any creature can cast a spell of 1st through 5th   level into the ring by touching the ring as the spell is cast.  The spell has no effect, other than to be stored in the   ring.   The use of the word "into," which does not seem to indicate any range, versus the use of the word "on," which seems to mean the guardian is a target of the spell.    Which is the correct interpretation, grammatically, versus what is the RAI?


At the beginning of an Ubuntu installation, what means the ”keyboard = human“ symbol?

At the very beginning of the booting of an installation media (typically a USB stick), before even choosing your language, there is an intriguing symbol. It represents a keyboard, an equal sign (=) and a circled human. This circled human is similar to the accessibility symbol in GNOME.  What does the symbol mean and what would happen if I press a key at that time?


i'd like to use ajax to reload only part of my webpage. The problem after reload is that i lose the 'click' event on the link element  code:
     //html/php code to get the action     if ($action==1)          echo 'activate';     else echo 'desactivate';     //...
   i had the js script in separate js file and removed it in the html to add the click event every time i reload "#content1". The event works the first time, but doesn't exist after #content1# reload. Any help for this ?  BTW, is there important browser issues when using this instead of usual reloading of the page?


Sorry about the title i didn't know what to call this other than "analytic number theory"  I am asked to show that $\pi (x) = -1 + \pi(\sqrt x) + \sum \mu (d)\lfloor \frac {x}{d}\rfloor$, where the sum is over all d for which ever prime factor is less or equal to $\sqrt x $  The furthest right hand part of the equation looks like a mobius inversion but im not sure how to do it over root x and the rest i am completely lost on.


how can i know the number of elements in array

i run the following code but it kept printing "4"     why its printing "4" and not "12"? and can I use malloc and then sizeof?(if i can then how)   #include<stdio.h> int main() {     int arr1[3]={1,2,3};     int *arr2=arr1,i;     printf("%d",sizeof(arr2));     return 0; }


Showing that $\lfloor\frac{x-1}3\rfloor=\lfloor\frac{x}3+\frac23\rfloor-1$ and $\lfloor\frac{x+1}3\rfloor=\lfloor\frac{x}3+\frac13\rfloor$

I have 2 questions about the floor functions:  1) $\left\lfloor \frac{x-1}{3}\right\rfloor =\left\lfloor \frac{x}{3}+\frac{2}{3}\right\rfloor -1$  2) $\left\lfloor \frac{x+1}{3}\right\rfloor =\left\lfloor \frac{x}{3}+\frac{1}{3}\right\rfloor$    As we know that the definitions and properties of floor functions are:   1) $\lfloor x\rfloor =m$ if $m\leq x<m+1$ and   2) $\lfloor m+x\rfloor =\lfloor x\rfloor +m$ if $m$ is an integer.  Questions:   1) Why the first floor function above has to +1 inside the floor brackets and -1 outside the floor brackets:    $\left\lfloor \frac{x-1}{3}\right\rfloor$ = $\left\lfloor \frac{x-1}{3}+1\right\rfloor -1$ = $\left\lfloor \frac{x}{3}+\frac{2}{3}\right\rfloor -1$  2)Why the second floor function above doesn't need to add or minus 1 inside or outside the floor brackets:    $\left\lfloor \frac{x+1}{3}\right\rfloor$ = $\left\lfloor \frac{x}{3}+\frac{1}{3}\right\rfloor$   Does anyone here know the reason? Thank you.


I've wrote a program that it needs to store client usage in MB. The program downloads/uploads files that user sends.I want to save the usage in MB with 2 decimal places.  For example 1.234 >> 1.23  Every client has a usage and I'm having a total usage that is means that I store sum of usages to total usage.The issue is that after using the program a few times, one of the clients usage got too many decimal places! That was 102.39000000000001 instead of 102.39 and also the total. Now what is going wrong?  Note that I don't want to use toFixed because it make the variable string.  These are some parts of the code that I think the problem is: let fileSize=Math.round(res/10485.76)/100 'res' is in bytes user.usage+=fileSize; totalUsage+=fileSize;


Can you completely permute the elements of a matrix by applying permutation matrices?

Suppose I have a $n\times n$ matrix $A$. Can I, by using only pre- and post-multiplication by permutation matrices, permute all the elements of $A$? That is, there should be no binding conditions, like $a_{11}$ will always be to the left of $a_{n1}$, etc.  This seems to be intuitively obvious. What I think is that I can write the matrix as an $n^2$-dimensional vector, then I can permute all entries by multiplying by a suitable permutation matrix, and then re-form a matrix with the permuted vector.


Regex not working to match any word in a list

Regex r = new Regex(Regex.Escape("(st)")); //or Regex r=new Regex(@"\(st\)"); int c = r.Matches("test string").Count;   The result should be c=2, but c is 0.  also gives 2 matches.   Regex("st") will give 2 matches with no doubt. But what is needed here is to match a word in a list and after the failure, to be simple the above test code has only one entry.


I have a presentation that I would like to include some matlab code in. For that purpose I have included the , that basically configures the listings package.  My problem is that the environment mode does not work inside a frame.  When I run the code below as it is (or with article documentclass) everything is as expected.  \documentclass{beamer} \usepackage[framed,autolinebreaks,useliterate]{mcode} \begin{document} %\begin{frame} % code breaks if I include theese \begin{lstlisting} for i = 1:3     disp('cool'); % comment with some §\mcommentfont\LaTeX in it: $\mcommentfont\pi x^2$§ end  \end{lstlisting} %\end{frame} % code breaks if I include theese \end{document}   If I uncomment the begin/end frame lines I get the following error:  Runaway argument? ! File ended while scanning use of \lst@next ! Emergency stop !  ==> Fatal error occurred, no output PDF file produced!   The same happens if I use \frame{...} instead of \begin{frame}...\end{frame}.


Reflection of HDRI in Cycles not working?

I added a HDRI as enviroment on cycles, but the model that i got here (an Eye) isnt reflecting good, at least, not a definite picture.  That's what i have:    But this is what i need:    Can someone help me with this? :( i'm a little lost on Cycles and materials..


Good morning to all. I cannot make my system boot. I went into recovery mode and I always get the same message:  The system is running in low graphics mode. Your screen graphics card and input device settings could not be detected correctly. You need to configure these yourself.  I press enter. Next message: What you like to do?  1. Run in low graphics for just one session     2. Reconfigure graphics 3. Troubleshoot the error 4. Exit to console login  I choose option one Next screen Stand by for one minute while the display restarts  I wait two or three or more minutes nothing happens. If I press ok, Ubuntu 12.04.4 LTS asks me to login. I put my password (the one I use for installing apps) and then it asks me for password,but I do not have a second password 😊 If I put the same or nothing out says login incorrect. And I am stuck. In addition I ran memory test start up test hard disc test everything is ok


For example ;   Ethical reasons such as religion, have a huge part in abortion.


Sci-fi film with humans with blades for hands

A few years ago, I watched a sci-fi movie, but I forgot the title, and I only remember a few things about it:   It takes place in the future. Human things with blades on their hands come out from a giant machine in the ground. They put humans in the machine, and then the humans are transformed into those things. A man tries to save his family.   I hope this is enough information to find the movie title! Sorry for my bad English; I'm not that old and I’m from Germany. Thanks for the answers in advance!


How should I insert an image in a beamer file?

I know how to make a presentation by tex; but I don't know how to insert an image?    What is the code of inserting an image?


Find the cardinality of this set: $\{x \subseteq \mathbb R : |x| < \aleph_o\}$

Find the cardinality of set $A$: $$A = \{x \subseteq \mathbb R : |x| < \aleph_o \}$$   I have thought about it for a while and I've come to the conclusion that the cardinality of this set will be at least continuum, because every real number singleton is in this set. However, the only upper-bound of this cardinaltiy that I can think of is $\mathbb R^{\mathbb R}$ whose cardinality is more than continuum.   Any suggestions and hints would be most appreciated.


Which actions using the 10k-moderator-tools do really help the diamond moderators?

So, I'm now (for some weeks) a user with more than 10k reputation (on Stack Overflow). I can access the moderation tools, one of them is the . This lists some of the flags on posts (questions and answers) which were not yet handled by a moderator, as I understand.  In the time since I had the right, I often looked through this list, and reflagged some of the flagged posts. This rapidly raised my flag weight from 150 to 500 (I got the deputy badge yesterday) ... but I'm not sure this really helped the work of the diamond moderators.  So, which of my possible actions really do help the moderators?   If I see an answer flagged not an answer, it often is something that either should be a comment or an edit to the question. I then (after looking at the question page) flag it again, and some time later a moderator has to press the right buttons to convert it - i.e. the same actions he/she would have to do without my flag. Does my reflag really help here (apart from raising my flag weight)? If I see a question flagged as duplicate, not a real question or off topic, I check the question (and maybe the linked duplicate), and if the flag is right, I vote to close with the right reason. I can see that this would be useful, if enough people are doing this to close/migrate the question without moderator intervention. I often see very low quality flags (both for questions and answers). What am I (or moderators, really) supposed to do here? Vote to close/delete? Edit it to make it better quality? (Then it would be useful to have a filtered view of these, just for my tags.) Simply downvote (maybe with a comment, if there is not already one)? Sometimes there are flags where I think they are not justified, and then I flag invalid flag. What is the effect on this (other than raising my flag weight when I'm right or lowering it when I'm wrong)? As I understand, a moderator still has to review it (at least, the message Thanks, we will take a look at it seems to indicate this). Sometimes I see possible vandalism of own posts - someone deleted his own posts, and the system autogenerated a flag here. Is there something useful I could do here, as a non-moderator? Vote to undelete if there is something useful? Vote as invalid, if it is nothing useful? Does my vote/flag here actually help the moderators? Sometimes there are duplicate posts - usually the same user answering two similar questions with exactly the same text. Where I understand the topic, this is most often a valid answer for both questions. Should I mark this as invalid flag? Does this actually help? (Once I found someone just posting a link to a blog entry to several related questions, then I flagged as spam.)   There are some related questions, but those did not really help me here:         (I did not view the video yet, though)


Vandermonde Determinant with one column replaced

How to calculate the A(n) Vandermonde matrix determinant if the column with powers n-1 is replaced with powers n?


Find integral solution of $a^{b} - b^{a} = 3$

Find the integral solution of $$a^b -  b^a = 3$$ I am a student of class 10 and got this question in a maths competetive exam.  I have tried converting into a log equation in one variable, or solve it by using parity but couldn't solve it.  Thanks in advance


I need to know which is this font (latex)

i'm writing an essay, and i would like to write with these fonts in math style.. (see the image below). Anyone know it? Thank you :)


Proof of inequality involving positive number

Let $x$ be a real number such that $x> 0$.   Prove that $x + \frac{1}{4x} \geq 1$.  I tried to do this but cannot prove it.


Definition of "Up to" (homeomorphism,isotopy, etc), and Examples?

I've tried googling this usage and understanding the results but I'm struggling to make intuitive sense of it. So my question is, what is the phrase "up to" understood to mean, and what are some prominent examples of this?


Cronjob saves json into a wrong directory

There is a Cron job on Ubuntu 16.04 which runs a PHP script  $parseinfo = 'parseme.json'; $handle = fopen($parseinfo, 'w'); fwrite($handle, json_encode($res));   to parse data into a JSON file. The PHP script is supposed to write data within the same folder where this PHP script is located in but I've faced a problem that JSON is being saved into root's home directory:    This is how I set Cron job:  */10 * * * *  root    /usr/bin/php    /var/www/somederictory/somefolder/parse.php > /dev/null   From terminal:  ssh root@example.com cd /etc crontab -e :x   In short words: JSON is being saved into /root while I want it to be saved into /var/www/somederictory/somefolder/ What should I do to fix it?  Edit: It is not a duplicate, PHP works, JSON is being saved, but in a wrong way. And I'm asking to help me understand what's wrong with current Cron settings.


Show that if $p$ is prime, $S_p$ is generated by any transposition and any $p$-cycle.

I have a question on the following exercise presented in Dummit and Foote, $\S 3.5$. The exercise is stated as follows:   Problem:  Show that if $p$ is prime, $S_p = \langle \sigma, \tau \rangle$ where $\sigma$ is any transposition and $\tau$ is any $p$-cycle.   My question is how can any $p$-cycle be an element of $S_p$? Since $\sigma$ is a generator of $S_p$ we must have that $\sigma \in S_p$. But consider $(4\ 8\ 9\ 10\ 11)$. This is a $5$-cycle but it is not a member of $S_p$. What am I missing here? It would seem this is a counter example showing the theorem to be false, which I am skeptical of!   Thanks


I'm working on a project where I have to use the last created file.  For example, when I run the application I have only file1 so the application uses only this file and when I create a new file2 I want that the application moves from using file1 to file2 automatically.  I hope that you help me.


Community is inconsistent with account lists

Here we see Community's list of accounts. She has 106 communities (does that exclude beta sites?) and has 1 rep on all of them.  But over at her , she only has one account, on Area 51:  I guess it is showing Area 51 because of the strange old code that Area 51 uses, but is is odd that she shows 106 accounts (when there are 138 sites officially) and that she only shows one on the Accounts tab... Why is this, and should it be changed? Is it to do with the new user profile? Update: It's not because of the new profile, this is the image on Stack Overflow. Clicking view more ironically shows less.


So, I am attempting to add an image to a post and I get an error the image of which, ironically, I have posted along with this post.   What is causing this error ??    Link here:


Assign int value to the custom enum property

I have property   public Enums.CustomEnumProp MyEnum { get; set; }    which is of type CustomEnumProp  public enum CustomEnumProp { A = 1, B = 2, C = 3}   and I need to use passed int value as a user selection and assign it to the MyEnum property.  forexampe: is user is selected 2 from combobox then assign this int to the MyEnum.  Thanks


thanks for attention, I struggled with such issue: I packed a JAR file with external libraries in Intellij Idea but when I am trying to lounch it, I see error:    The file "city-data.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. Exception in thread "Animation Thread" java.lang.NullPointerException         at processing.core.PApplet.join(PApplet.java:8950)         at de.fhpotsdam.unfolding.data.GeoJSONReader.loadData(Unknown Source)         at Map.setup(Map.java:45)         at processing.core.PApplet.handleDraw(PApplet.java:2361)         at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)         at processing.core.PApplet.run(PApplet.java:2256)         at java.lang.Thread.run(Unknown Source)   But I see this file in this Jar   When i lounch project from Intellij or Eclipse all works good. Please, help, what problem it can be.  Also i will be very grateful if somebody tell, how I can to collect all project to Jar file from the command line. I tried to make it with the help of commands such as   jar cvfe MyJarName.jar MyMainClass *.class   but it don't work too, command line answered with a lot of errors like


Calculate all $n \in \Bbb N \setminus \{41\}$ such that $\phi(n)=40$?

I'm looking for an $n \in \Bbb N$ for which $\phi(n) = 40$ where $\phi$ is a Euler-Totient Function    I already found one, namely, $n=41$  How the calculate the $n's$?


How to convert this shell code string to an integer

I am working on an information security course and have an element of code that I need to understand:  "\x66\x68\xb0\xef". # PORT   My understanding is that this should translate to an integer value > 1024 but Im not sure how to calculate this.  I can see this string contains separated HEX values so tried printing the respective HEX values that are separated by \x and get the following:   >> print (int('66',16)) 102 >>> print (int('68',16)) 104 >>> print (int('b0',16)) 176 >>> print (int('ef',16)) 239   Obviously this gives me four separate values, so is not what I need, which is a single integer value.


About free modules and finitely generated modules

Module theory was covered in our class in only two lectures and I am not comfortable in solving problems of modules. This is one such question.  Can someone help with a detailed argument.  Question is:      Show that every finitely generated module is a homomorphic image of a free module.


Computation of the maximal ideal of a localized quotient ring

Let $A$ be a ring, $\mathfrak{q}$ an prime ideal and $\mathfrak{p}$ a maximal ideal such that $\mathfrak{q}\subset \mathfrak{p}$. Consider now the localized ring   $$(A/\mathfrak{q})_{\mathfrak{p}}$$  and denote by $\mathfrak{m}$ its maximal ideal. I saw somewhere that we have   $$\mathfrak{m}=(\mathfrak{p}+\mathfrak{q})/\mathfrak{q}$$   and so   $$\mathfrak{m}/\mathfrak{m}^2= \mathfrak{p}/(\mathfrak{p}^2+\mathfrak{q}).$$  I have two questions:   I dont understand how to get the expression of $\mathfrak{m}$ from the expression of the maximal ideal of a localization. So far I got something like $\mathfrak{m}=\mathfrak{p}(A_{\mathfrak{p}}/\mathfrak{q}_{\mathfrak{p}})$. Assuming the expression of $\mathfrak{m}$, I dont understand the computation of the vector space $\mathfrak{m}/\mathfrak{m}^2$.   For the sake of completeness this is part of the proof of the Jacobian criterion for singularity of varieties.


Ordered a new laptop; it came with a stuck red pixel. Can it be fixed?

I ordered a new laptop and it came with a stuck pixel. It's a red one, so I think it can be fixed. Although, the methods don't seem to be permanently fixing it. I'm using a program, UDPixel, and it makes the pixel less apparent, but after the screen turns off for a while, it comes back.  I tried pressure, but that doesn't seem to work either. I contacted the company and according to their manufacturer's warranty, 5 or more pixels need to be present for them to fix it. Am I out of luck or should I be persistent?


Dual booted Ubuntu 19.04 with Windows 10

Yesterday I dual booted Ubuntu 19.04 with Windows 10.I was able to work with Ubuntu for some time,today when I load Ubuntu I'am getting the following message.   (My laptop is Lenovo Ideapad 330 Ryzen 5 Quad Core - (8 GB/1 TB HDD/DOS) 330-15ARR U )  Now even my Windows is crashing often and I'm not able to open Apps like Chrome,Mozilla etc.Can someone tell a safe method to get rid of Ubuntu 19.04


Are sufficient statistics for regression equivalent in the frequentist and Bayesian cases?

If I have a Poisson regression such that $\lambda = \alpha + \beta t$, $\alpha + \beta t \geq 0$ $\forall t, \alpha, \beta$ and $Y_t \sim \textrm{Poisson}(\lambda_t)$ for which I have 10 observations from $t=0$ to $t=9$ then the likelihood is:  $$\prod_{t=0}^9 \left\{\frac{(\alpha+\beta t)^{y_t}}{y_t!}e^{-(\alpha+\beta t)} I_{\alpha+\beta t} \geq 0\right\}$$  If I set the prior to be proportional to 1, then the likelihood is proportional to the posterior, so mathematically the expressions for deriving the MLE of $(\alpha, \beta)$ and the posterior distribution are the same.   However, are the sufficient statistics the same? I know that sufficient statistics for $(\alpha, \beta)$ with regards to obtaining the MLE in the linear model are:  $$\sum_{t=0}^9 y_t\ \text{ and }\ \sum_{t=0}^9 y_tt$$ for $\alpha$ and $\beta$, respectively (which I also have trouble seeing). But does this also apply for the posterior distribution?


Where are Obi-Wan Kenobi's and Qui-gon Jinn's Lightsabers?

In Star Wars Episode 1: The Phantom Menace, when Darth Maul kills Qui-Gon Jinn, Obi-Wan Kenobi starts a saber duel with Darth Maul, and Darth Maul uses Force Push on Obi-Wan Kenobi. Obi-Wan hangs on that deep and dark big pipe. Then, Darth Maul kicks Kenobi's lightsaber into that hole. After that, Obi-Wan uses Qui-Gon Jinn's lightsaber to defeat Darth maul.     My questions are   Where Is Obi-Wan's Lightsaber? Does he build a new one or retrieve it from somewhere like from bottom of that big pipe or etc.? What about Qui-Gon Jinn's lightsaber? Where it is ?


gimp 2.8 install problem on ubuntu 14.04

In a terminal,i wrote this command:  apt-get install gimp   And it returns with this output:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   I'm new to ubuntu and been using ubuntu 1 week.


How do sacrifices affect the Temple of the Sun God?

So after round 101 I Upgraded a "Sun God" Super Monkey to a "Temple of the Sun God" Super Monkey. If you didn't know this makes it consume, or "sacrifice" as the game calls it, all the surrounding towers gaining different qualities dependent on the towers "sacrificed".  My Temple consumed a very large of amount of towers of every kind, and it only acquired 3 noticeable abilities doing so. One was it shot out a missile, another it threw out tornadoes and it shot an Area of Effect of Razors (this didn't make sense since my tack towers had been upgraded to shoot fire). I did however have a missile turret (although it had been upgraded differently then the missile the temple was shooting), and I did have a monkey apprentice that shot out tornadoes.  I also noticed it did significantly more damage and the Temple's range covered the entire map almost. So my question is, How does the Temple of the Sun God determine its new abilities, range, and damage depending on the amount and variety of towers it has sacrificed?


Prove or disprove: $\big\{\sum_{i=1}^n x_i^2 = 1\big\}$ is convex.

I have to prove or disprove that $$    \left\{x \in \Bbb R^n : \sum_{i=1}^n x_i^2 = 1\right\}\text{ is convex.} $$ I already know that it is not convex, so a disprove is the right way.  I know that I gotta use the following for a prove: $$ \text{A set }\Omega\subset\Bbb R^n\text{ is convex if }\alpha x+(1−\alpha)y\in\Omega,\forall x,y\in\Omega\text{ and }\forall\alpha\in[0,1]. $$ For a disprove I could take two points and show that the above condition is not met. But what confuses me is that the statement also depends on the value of $n$. If I choose e.g. the two points $\sqrt{\frac{7}{10}}$ and $\sqrt{\frac{3}{10}}$, how do I could use them to disprove it?


How can it be that the beginning universe had a high temperature and a low entropy at the same time?

The Big Bang theory assumes that our universe started from a very/infinitely dense and extremely/infinitely hot state. But on the other side, it is often claimed that our universe must have been started in a state with very low or even zero entropy.   Now the third law of thermodynamic states that if the entropy of a system approaches a minimum, it's temperature approaches absolut zero.  So how can it be that the beginning universe had a high temperature and a low entropy at the same time? Wouldn't such a state be in contradiction to the third law of thermodynamics?


How to replace LaTeX commands with Unicode symbols?

Often, during a conversation or an email, or at a forum, I would like to type some math, but I don't need full equation support. Unicode symbols should suffice.  What I need is an easy way to type math-related Unicode symbols. Since I already know LaTeX, it makes sense to use the LaTeX symbol mnemonics to type the math symbols.  What I currently did is to write an AutoHotkey script which automatically replaces LaTeX symbol names preceded by \ with the corresponding Unicode symbol, using the hotstring AutoHotkey feature. However, the AutoHotkey hotstrings proved unstable for many strings. Having a couple of tens lines would cause AHK to fail recognizing the strings from time to time.  Any other solution? (No, Alt+(Unicode number) isn't convenient enough.)  Attached is my AHK script. The PutUni function is taken from .  ::\infty:: PutUni("e2889e") return ::\sum:: PutUni("e28891") return ::\int:: PutUni("e288ab") return ::\pm:: PutUni("c2b1") return ::\alpha:: PutUni("c991") return ::\beta:: PutUni("c992") return ::\phi:: PutUni("c9b8") return ::\delta:: PutUni("ceb4") return ::\pi:: PutUni("cf80") return ::\omega:: PutUni("cf89") return ::\in:: PutUni("e28888") return ::\notin:: PutUni("e28889") return ::\iff:: PutUni("e28794") return ::\leq:: PutUni("e289a4") return ::\geq:: PutUni("e289a5") return ::\sqrt:: PutUni("e2889a") return ::\neq:: PutUni("e289a0") return ::\subset:: PutUni("e28a82") return ::\nsubset:: PutUni("e28a84") return ::\nsubseteq:: PutUni("e28a88") return ::\subseteq:: PutUni("e28a86") return ::\prod:: PutUni("e2888f") return ::\N:: PutUni("e28495") return


Intel HD Graphics 620: Does my display adapter support HDMI 2.0 necessary for a 4k display?

I want to connect my laptop (Inspiron 15 5000 Series) to a 4k display. When I read online about this it seems that HDMI 2.0 is a necessaity to handle the large resolutions / refresh rates involved to get full benefits of a 4k display.  Use case: I'm not going to use this to play games. Most of my use-case is editing documents, emails, spreadsheets and some engineering drawings and video (watching not editing).   The goal behind going 4k is to boost productivity by having more things open at once to read side by side.   I looked into the Dell specs and they only mention an HDMI without going into the details of what type or whether it will support HDMI 2.0 / 4K TV.     How do I tell whether my Dell Inspiron Laptop (i7 7500 U processor) supports this?  I looked under the Display Adapters and can see that I have an "Intel HD Graphics 620"  listed.   Will this suffice to tell me if this display adapter will support HDMI 2.0 / 4k display?   Or should I be checking out some other settings?  Thanks!


How can I reset a lot of SQL sequence values to 0?

I want to reset 170 SQL sequences to 0. I have heard that this is not easy, but there are "hacks" possible like:  select SEQ_P_1.CURRVAL from dual;   remember this value, say 111 and then  alter sequence SEQ_P_1 increment by -111 minvalue 0; select SEQ_P_1.NEXTVAL from dual; alter sequence SEQ_P_1 increment by 1;   As a result, the sequence SEQ_P_1 is set to 0. That works for me! Now comes my questions about the other 169 sequences. I don't want to type all that... Now  select 'alter sequence '||sequence_name||' minvalue 0 increment by '||     select sequence_name.CURRVAL     from dual||';' from dba_sequences where sequence_name like '%SEQ_P_%';   does not work. Something must be wrong with the inner select..? Please help :) I want to get a result of 170 lines that I copy paste into SQL developer so that it does all those 4 steps i did manually above for each line.  SOLVED:  I compile the procedure given in  and then execute all statements that I get using     select 'exec reset_seq('''||sequence_name||''');'    from dba_sequences    where sequence_name like '%SEQ_P_%';


$4$ vectors in $\mathbb{Z_4}^9$that sum to $0$.

Problem:  Given $2018$ elements not necessarily distinct from $\mathbb{Z_4}^9=\mathbb{Z_4} \times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}\times \mathbb{Z_4}$, Prove that there exist 4 elements from these $2018$  which sum to $\text{0}= (0,0,0,0,0,0,0,0,0)$. Obviously you cant use an element more than the number of times it is available. Origin: This problem originates from a 'number theory' question: Given $2018$ integers all of whose prime factors are $\leq 23$ show that there are $4$ whose product is a fourth power. My attempt:  The only slightly fruitful approach I had was to attach this problem coordinate-wise.. Since, there are 2018. There will be an integer in $\mathbb{Z_4}$ that occurs at least $2018/4$ that is $505$ times. Now starting with these $505$ we go to the next coordinate and so on. But in this way I will need about $4^9 > 2018$ integers to do my job. I feel a more global approach is needed. I tried some contradiction but that also didnt bear any fruit. Please help. Thanks.


Why don't X and Y make a plural subject in "There is X and Y?

Subjects usually agree with verbs and series of nouns usually make a plural subject as far as I know. Thus in sentences like "A book, two pencils and a pen are lying on the table." we use are and not is. So why does "there" seem to break the rule in the sentence "There is a book, two pencils and a pen on the table."? Is there any logic behind it? Or maybe some history?


I'm dynamically creating a Lightning Component to display a link. The link is on a field on the record. This component will be called from a parent component that exists on the Record Detail page (on the community record detail page). The problem is that this dynamically created component doesn't seem to get the recordId from the detail page.    Component markup:    <aura:component access="global" implements="force:hasRecordId" controller="My_Controller">      <aura:attribute name="myLink" type="string"/>     <aura:handler name="init" action="{!c.doInit}" value="{!this}"/>      Component works     <aura:if isTrue="{!v.myLink}">         Click my link!     </aura:if> </aura:component>   Component controller:    doInit : function(component, event, helper) {     var recordId = component.get("v.recordId");     if (recordId){         var action = component.get("c.getMyRecord");         action.setParams({objId: recordId, fields: "MyLink__c"});         action.setCallback(this, function(response){             var state = response.getState();             if (state === "SUCCESS"){                 var record = response.getReturnValue();                 var link = record.MyLink__c;                 component.set("v.myLink", link);             }             else{                 console.error("Failed with state: " + state);             }         });         $A.enqueueAction(action);     } }       The component works, I can see the text. But there is no value in myLink. Using the Chrome debugger I see that it fails because recordId is undefined. So is this a thing, dynamically created components don't get the RecordId, even thought they implement="force:hasRecordId"?


Is there any difference between MOSFETs with a diode in their symbol and the HEXFET?   Also, is there a difference between MOSFETs with a diode in their symbol and other MOSFETs?


Effect of Prolonged Vibration on Mechanical Hard Drive

I often travel by train with my laptop which has a mechanical hard drive.  I'm careful not to use the laptop during travel since there is a constant vibration that the drive experiences throughout. The magnitude is not much, but the vibration is prolonged (18 hours at a stretch).  Can prolonged vibration slowly kill the hard drive? Should I avoid taking my laptop when traveling by train? Or, if I do not use the computer and the head and the disk do not move during this period, is it safe?


filling missing data with other than mean values

What all options are available for filling missing data ?  One obvious choice is the mean, but if the percentage of missing data is large, it will decrease the accuracy.  So how do we deal with missing values if they are in great number ?


How to prove $f(x) = \ln x$ continuous by proving first that $f(x)$ continuous at $1$, and then by using $\ln (xy) = \ln(x) + \ln(y)$.

I have a question concerning the proof of the continuity of $f(x) = \ln x$.     I read in a comment by Pedro Tamaroff to ncmathsadist's answer to  that this can be proved in two steps:   first by proving that $f(x)$ is continuous at $1$,  and then by using $\ln (xy) = \ln(x) + \ln(y)$.    However, I do not really see how to do it.   How does it actually work?


What is the most pythonic way to have inverse enumerate of a list?

The first thing that comes to mind is:  >>> l = list('abcdef') >>> for i in range(len(l)-1, -1, -1): ...   item = l[i] ...   print(i, item) ... 5 f 4 e 3 d 2 c 1 b 0 a   I tried using the following:  >>> l ['a', 'b', 'c', 'd', 'e', 'f'] >>> for i,ch in reversed(enumerate(l)): ...   print(i,ch) ... Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: 'enumerate' object is not reversible   but apparently 'enumerate' object is not reversible. I can trick it with:  >>> for i,ch in reversed(list(enumerate(l))): ...   print(i,ch) ... 5 f 4 e 3 d 2 c 1 b 0 a   but that doesn't feel right - it's a bit cumbersome. Is there a better way to do this? Maybe some "inverse_enumerate" hidden is a lib like collections or itertools?  Thanks.


Python - How to Add a Text Field to the UI?

I'm trying to create a text field in the UI that will allow users to enter a directory path, then press a button to export an fbx file to that path.    The Button creation into the UI works great.  But I can't find information on setting up the text field for users to enter information. I took a try at it, but my setup isn't working for the String text input, only the button works.  What am I doing wrong?  (Page has been update to reflect comments below changes)      import bpy   class WorthGroupToolsSettings(bpy.types.PropertyGroup):     file_path: bpy.types.StringProperty(name="File path",                                  description="Test",                                  default="",                                  maxlen=1024,                                  subtype="FILE_PATH")   class WorthGroup_Panel(bpy.types.Panel):     bl_idname = "WorthGroupTools_PT_Panel"     bl_label = "WorthGroup Tools Panel"     bl_category = "WorthGroup Tools Addon"     bl_space_type = "VIEW_3D"     bl_region_type = "UI"      def draw(self, context):         layout = self.layout         row = layout.row()          worth_group_tools = context.scene.worth_group_tools         row.prop(worth_group_tools, "file_path")          # This creates the button.  Works great!         row.operator('view3d.export_fbx', text="Export Selected")   I modified my page, it should work but I get the following error message from this code:  class WorthGroupToolsSettings(bpy.types.PropertyGroup): file_path: bpy.types.StringProperty(name="File path",                              description="Test",                              default="",                              maxlen=1024,                              subtype="FILE_PATH")   The error message is:  File "C:\Users\WG\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\Blender\WorthGroupTools_panel.py", line 4, in <module> class WorthGroupToolsSettings(bpy.types.PropertyGroup):   File "C:\Users\WG\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\Blender\WorthGroupTools_panel.py", line 9, in WorthGroupToolsSettings     subtype="FILE_PATH") TypeError: bpy_struct.__new__(type): expected a single argument   I also want to note I also have a __init__.py page and a operator page.  This is what the __init__.py page appears as:      import bpy  from . WorthGroupTools_op import WorthGroupTools_Operator from . WorthGroupTools_panel import WorthGroup_PT_Panel from . WorthGroupTools_panel import WorthGroupToolsSettings  bl_info = {     "name": "WorthGroup Tools",     "author": "",     "description": "",     "blender": (2, 80, 0),     "version": (0, 0, 1),     "location": "View3D",     "warning": "",     "category": "Generic" }   classes = (WorthGroupTools_Operator, WorthGroupToolsSettings, WorthGroup_Panel)  # register, unregister = bpy.utils.register_classes_factory(classes)   def register():     for cls in classes:         bpy.utils.register_class(cls)     bpy.types.Scene.worth_group_tools = bpy.props.PointerProperty(type=WorthGroupToolsSettings)   def unregister():     for cls in classes:         bpy.utils.unregister_class(cls)     del bpy.types.Scene.worth_group_tools   if __name__ == "__main__":     register()


$$\int \dfrac{1}{1+\sqrt{\tan x}}\quad dx$$ $$\int \dfrac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\quad dx$$ It is difficult for me to solve this integration.


Let $G$ be the Symmetric group $S_4.$ Give a representative of each conjugacy class of $G.$ Then calculate the size of each conjugacy class.  I have no idea how to do this.


The trace functional and its scalar multiples

I am trying to solve the following problem:  Show that the trace functional on $n \times n$ matrices is unique in the following sense. If $W$ is the space of $n \times n$ matrices over the field $F$ and if $f$ is a linear functional on $W$ such that $f(AB)=f(BA)$ for each $A$ and $B$ in $W$, then $f$ is a scalar multiple of the trace function.  I know that one way to prove this is to show that the null space of $f$ equals the null space of the trace function, but I found this solution rather complicated; any other suggestions?


I understand the difference between LET and LET* (parallel versus sequential binding), and as a theoretical matter it makes perfect sense.  But is there any case where you've ever actually needed LET?  In all of my Lisp code that I've looked at recently, you could replace every LET with LET* with no change.  Edit: OK, I understand why some guy invented LET*, presumably as a macro, way back when.  My question is, given that LET* exists, is there a reason for LET to stay around?  Have you written any actual Lisp code where a LET* would not work as well as a plain LET?  I don't buy the efficiency argument.  First, recognizing cases where LET* can be compiled into something as efficient as LET just doesn't seem that hard.  Second, there are lots of things in the CL spec that simply don't seem like they were designed around efficiency at all.  (When's the last time you saw a LOOP with type declarations?  Those are so hard to figure out I've never seen them used.)  Before Dick Gabriel's benchmarks of the late 1980's, CL was downright slow.  It looks like this is another case of backwards compatibility: wisely, nobody wanted to risk breaking something as fundamental as LET.  Which was my hunch, but it's comforting to hear that nobody has a stupidly-simple case I was missing where LET made a bunch of things ridiculously easier than LET*.


Apa style bibliography with author year footcite

So for a report my teacher gave us exact prerequisite for the layout. He wants in text footnote citations in the author-year style and the bibliography in  the APA (5th) style. EDIT: The reference list should be numberd and sorted according to the appearence and I think corresponding to the footnote number.  Because I do not want to merge 5 .doc (MS Word) files from my group members and format everything in MS Word I need to get this to work in LaTeX.  Currently I am trying to get this to work with biblatex and Biber, but the combination of the two styles turns out to be very difficult to me. I am not set on biblatex. So, if it can be done with BibTeX or whatever, that is fine.


Installing Python 3.5.6.1: python contains a recursive dependency on itself:

I am trying to install Python 3.5.6.1 with:  $ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb $ brew switch python 3.6.5_1   But this gives the following error:  ==> Consider using `brew extract python ...`! This will extract your desired python version to a stable tap instead of installing from an unstable URL!  ######################################################################## 100.0% Error: python contains a recursive dependency on itself:   python depends on sphinx-doc   sphinx-doc depends on python   How can I install it ?


How to find condition of three planes intersecting at a point (according to vector approach)?

For example, if   Plane 1: $2x+y+z=1$  Plane 2: $x-y+z=2$  Plane 3 : $4x-y+3z =5$   How to check if these planes intersecting at a single point? I want to check the coordinates of intersection , from scalar triple product or solving from normals of the planes .


Omitting common word in all but last item in a list?

I'm wondering if lists comprised of similar or related words/phrases can be shortened by omitting the root/suffix/word that they have in common except in the last item in the list.   Examples:    "We were best-friends through elementary, middle, and high school." "I received checks in amounts of five-, six-, and seven-thousand dollars." "He works with para and quadriplegic patients."    I feel if any of the examples is permissible, it would be example 1.  In example 2, although riding the line of ambiguity as to the amount on the checks (it could be "$5, $6, and $7,000" OR "$5,000, $6,000, and $7,000") it seems to be a reasonable sentence that would be easy to understand in context. However, I am unsure my use of hyphens would be proper in this sentence.  In example 3, the prefix "para" is isolated from "paraplegic"   I don't think the sentence in example 3 is anywhere close to proper but I read it in a document that was sent to me for work and it prompted me to ask questions concerning similar language situations. Thanks for any replies!  -Ian


Before everyone starts explosively typing essays about why a stock's price is virtually impossible to predict, I want to iterate that I am not asking how to know what a stock's price will be. I am asking what mechanism is actually responsible for changing the stock's price. Not the multitude of factors that influence it, but literally what is changing the number. Why is a stock's price $43.56 one second, and then $43.57 the next? What changed the number? A computer program? If the answer is something like 'an algorithm changes the number based on what people are willing to pay for it', what does that even mean? What number would anybody be paying for the stock other than its instantaneous price? Does more and more people purchasing at $43.56 tell the algorithm 'lets move it to $43.57 and see if people continue to buy at the same/increased rate'?


How to disable popup messages in Windows 8?

Windows 8 keeps popping up irritating messages at all odd times at the top of the screen:    These seem to be like some sort of new balloon tips. How do I get rid of these permanently?


Difficulty installing JSON module for Perl on Mac

I'm having difficulty installing the JSON module (Perl version) on my Mac. Per the CPAN website's recommendations, I installed the "XCode" package and the "cpanminus" tool app before attempting to install the JSON module. I do not have the "local::lib" app installed. Anyway, after downloading JSON::PP to my "Downloads" folder, I opened the README file, which simply says: To install this module type the following:    perl Makefile.PL    make    make test    make install  Type where? I suppose on the terminal command line? So I pasted "perl Makefile.PL" on the terminal command line and got: "Can't open perl script "Makefile.PL": No such file or directory jdm@Jeffs-iMac ~ %. Thinking that the pathway to the file was required, I then entered the following on the terminal command line: /Users/jdm/Downloads/JSON-PP-4.05/perl Makefile.PL". That also failed to run the "perl Makefile.PL" script, returning "zsh: no such file or directory: /Users/jdm/Downloads/JSON-PP-4.05/perl". I'm just beginning to learn Perl, and this hurdle needn't be. There must be an easier, less frustrating way to install this JSON module. Please help. Thanks.


We're a small company without enough employees to run a large scale beta in house.  The app is geo-location based so we're trying to recruits some beta testers from all over that aren't "friends and family".  Are there any sites or communities dedicated to something like this?


Seeking a random number generator in Java working with any range

I need a very simple random number generator function that takes a input parameter as a range something like:  int randomNumberGenerater(int range) {     return (int) (Math.random() * range); }   The trouble is when the range is equal to 1, it will always output 1 instead of alternating between 0 and 1. How can I fix that with a generic solution that works with any range if possible.


Here's my situation: I'm trying to make a page with two DIVsfilling whole page (height 100%, width 50% each). Also, the content in the DIVs is to be vertically aligned to middle.  Is there an easy way to achieve this without hacks or javascript?  I've tried body,html{height:100%;} .mydiv {display:table-cell;height:100%;vertical-align-middle}  but that doesn't work...and with that code, i have to specify width in pixels instead of percentage


How to use parameter expansion with find -exec {}?

I want to incorporate something like:    for f in */*; do mv "$f" "${f%/*}/foo.${f##*.}"; done     Into my find x -exec y {} \;-style workflow.     The for loop construct & "$f" variable will likely be omitted; the loop will be substituted by standard -exec iterating behaviour, and the variable (containing the filename of the current iteration), by {}. But it seems like these two different syntaxes are incompatible/problematic. Especially because of the conflicting braces and semicolons, etc.


Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?

Why do I get different values for $x from the snippets below?  #!/bin/bash  x=1 echo fred > junk ; while read var ; do x=55 ; done < junk echo x=$x  #    x=55 .. I'd expect this result  x=1 cat junk | while read var ; do x=55 ; done echo x=$x  #    x=1 .. but why?  x=1 echo fred | while read var ; do x=55 ; done echo x=$x  #    x=1  .. but why?


Transparency group and decoration markings

How can I set the transparency so that the arrow belongs to the same transparency group as the path?    \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture}   \tikzset{%     > = stealth,     arrow over path/.style = {%       decoration = {%         markings,         mark = at position .5 with {\arrow {>};}       },       postaction = decorate     }   }   \draw[arrow over path, semitransparent] (0,0) -- (1,1); \end{tikzpicture} \end{document}


Limit $\lim_{n \to \infty} \int_{0}^{1} n x^n f(x) dx $

I am unable to solve this limit of integral asked in a quiz and so looking for help here.  Question : Let $f:[0,1]\to \mathbb{R}$ be a continuous function. Then what is the following limit: $\lim_{n \to \infty} \int_{0}^{1} n x^n f(x) dx $. Give the reasons.  If $n {x}^n f(x) $ was uniformly convegent then $\lim_{n \to \infty }$ could be taken inside the integral  but there is not enough information regarding the behaviour of $f(x)$ to check for uniform convergence. So, Kindly tell how should I proceed. Thanks!!


Why did Jon Snow want to join the Night’s Watch?

Early in the book and the show we hear of Jon’s determination to join the Night’s Watch. However, most people seem to regard the brothers as a bunch of thieves, scum, and rapists.  However, it seems to be all Jon wants. Did he come to this decision by himself or was he encouraged by Ned so that      He would give up his birthright and no longer be a threat to King Robert.   I wonder because Ned tells him they’d talk about his mother once he’s said his vows. Obviously this never happened.  Did Jon come to his own decision to joint the Night’s Watch or did Ned plant the idea in his mind to keep him safe?


Making SSD & HDD work together like a hybrid

I have a 90GB SSD but 90GB soon gets filled up.  My users folder alone is 26GB.  To get round this I use Symlinks (read the  for more).    Is there any way to make a separate SSD and HDD work like a hybrid so that frequently accessed files are moved to the SSD automatically?  This would be a nice addition to Windows 8 but I'm not holding out my hopes.    I guess ReadyBoost is a bit like this but its more designed for USB sticks I think.  I did try installing Windows 7 with the SSD as a readyboost but didn't really notice any much improvement over just using the HDD.


Can a wizard using an arcane focus quarterstaff and a shield still cast somatic component spells?

If there is a wizard that, by some means, has acquired proficiency in the use of shields, can said wizard use his shield in one hand and his arcane focus quarterstaff in the other and still cast somatic component spells?  Since the quarterstaff has been crafted to also be an arcane focus, and the Sage Advice Compendium states that you can provide the somatic components of spells with the same hand wielding the arcane focus, in this case an arcane focus quarterstaff, could that wizard still be able to perform somatic component spells while using a shield in the other?  I understand War Caster is the feat that allows you to cast somatic component spells even while using a shield and weapon or two weapons in each hand, but is this a simple way around those rules seeing as this "weapon" is your arcane focus? I would like to believe it is not, but I'm not fully fluent in the ways of spellcasting.


My Son's bike has slime inner tubes.  The bike has been sitting in the garage since last summer and the front tyres valve now seems blocked.  Its has what feels like 15-20 psi in it but I can not get the valve to let any air out or take any more in.  I have no idea at this point how to get it to unblock the valve so I can use it again.  For that matter I don't know how I could get the tire off as it has a reasonable (not ridable) amount of air in it without slashing the tyres (nice kings 2.2 which are pretty new).  I have tried putting the pump on it and putting a bit of air into it to try and clear the blockage but that didn't do anything.  Any ideas please?


Generate random numbers with weighted probabilites

I want to select a number randomly, but based on probability from a group of numbers; for example (2-6).  I'd like the following distribution:   6's probability should be 10% 5's probability should be 40% 4's probability should be 35% 3's probability should be 5% 2's probability should be 5%


creating a list of tuples from a list in Python

I have my first question here. I'm writing a code in Python. I have following list  X = [0.2,0.3,0.2,0.3,0.2,0.3,0.2,0.3,0.2,0.3]   I would like to create a new list made by tuples of two or a different number of elements of the first list as follows.  newList = [(0.2,0.3),(0.2,0.3),(0.2,0.3),(0.2,0.3),(0.2,0.3)]   I'm looking for a function of the lists or tuples. or maybe something easy, without the use of a big "For"


How to show $\lim_{n \to \infty} \sqrt[n]{a^n+b^n}=\max \{a,b\}$?

Let $a\geq 0$ and $ b\geq 0$. Prove that $\lim_{n \to \infty} \sqrt[n]{a^n+b^n}=\max \{a,b\}$. [Hint: Use the identity $(a^n -b^n)=(a-b)(\sum_{i=0}^{n-1}a^ib^{n-1-i})$]    I need some help! I cannot do it even with the hint... :(


Why does reversing serial upvoting not reverse the Mortarboard badge?

user has serial up-voting reversed, but he still have badge Mortarboard.   Is it correct behavior of badges? I suppose it should be reversed too.  And will this 200 daily reputation (2012-03-20) score for the Epic, and Legendary badges?


Conveying "under the radar" in a less colloquial way

I am searching for a word to contrast with iconic  I want to characterize views of the city as both iconic and under the radar, maybe "non-iconic."  I was thinking about saying that a view of the city was undiscovered, but I think that maybe that overstates what I'm think-- I more mean under-appreciated. Are there any other words that come to mind?


Disclaimer: I don't know anything about graphic desiging.  Hi all, I was going through some web designs on dribbble.com. Most of them had a peculiar type of images in their hero area :          What are these types of images called ?   How can I make them ?


How to show a dot over the name of an author (for a single letter) of latex bibtex?

I have tried the following by modifying the name of the authors. Everything was fine, except the first name of the second author. I want a dot to be displayed over only I of Ihsan. Any help is appreciated, the MWE based on the bib file is displayed for the reference.  @article{18, title={Developing a fuzzy analytic hierarchy process (AHP) model for behavior-based safety management}, author={Da{\u{g}}deviren, Metin and Y{\"u}ksel, {\.{I}hsan}}, journal={Information Sciences}, volume={178}, number={6}, pages={1717--1733}, year={2008} }


I have a lot of photos in different folders. Some of them are copies of each other. I want to put those photos in one folder and I want a tool to identify the duplicate files.   I also want some photo managers.  I'm using Ubuntu 14.04


What would diffraction of a macroscopic object look like?

I read an interesting question here in the forum () and came up with the following doubt: even though its diffraction angle is too small to be detected, if we had the possibility to detect it, what would the diffraction of a soccer ball through a pair of posts look like? I mean, in the case of electrons, there is a screen in which the diffraction pattern can be appreciated. But what about this case? Would we see lots of soccer balls in different places or what?


My goal is to display source code (awk, Python, R and SAS) and text (their output) side-by-side. Both are loaded from external files, and can be pretty long sometimes (pagebreaking is inevitable), the source code should be syntax highlighted. The source code should stay on the left side, and the output should stay on the right side, even if there is a pagebreak.  I'm using the listings package for its syntax highlighting.  I can't find an environment to behave right when there's a pagebreak.  Some of what I've tried already:   multicols: this environment is fine, until there's a pagebreak (left side breaks to the right side and messes up everything) minipage: no pagebreak yet


I have created a graph but i'm not able to add the label in the node, below my code  \begin{tikzpicture} \SetGraphUnit{4} \SetVertexArt \renewcommand*{\VertexInnerSep}{8pt} \renewcommand*{\VertexBallColor}{blue!50} \Vertices{circle}{1,2,3,4,5,6,7,8} \AddVertexColor{blue}{1,2,3,4,5,6,7,8} \SetUpEdge[style={->,ultra thick},color=blue!50] \Edge(1)(2) \Edge(1)(3) \Edge(1)(4) \Edge(1)(5) \Edge(1)(6) \Edge(2)(3) \Edge(2)(4) \Edge(2)(5) \Edge(2)(6) \Edge(3)(4) \Edge(3)(5) \Edge(3)(6) \Edge(4)(5) \Edge(4)(6) \Edge(5)(6) \Edge(2)(6) \Edge(2)(3) \Edge(2)(1) \Edge(2)(8) \Edge(6)(3) \Edge(6)(1) \Edge(6)(8) \Edge(3)(1) \Edge(3)(8) \Edge(1)(8) \Edge(7)(8) \Edge(5)(1) \Edge(5)(6) \Edge(5)(2) \Edge(5)(7) \Edge(1)(6) \Edge(1)(2) \Edge(1)(7) \Edge(6)(2) \Edge(6)(7) \Edge(2)(7) \end{tikzpicture}   Can you help me? Thanks in advance


I accidentally changed my GRUB options to boot from memtest instead of the correct linux kernel.  Holding shift, esc, arrow keys, and every other combination will not bring up the GNU GRUB as desired.  Is there any other option besides reinstalling and starting over with a new linux version?


How do you change your minecraft realms world into a single player world?

I know you can turn your single player world into a Minecraft Realm world but how do you do it the other way around?


How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?

I have a sine wave of 100 mV and 50 Hz. I want to design a circuit that converts this sine wave into a square wave as shown in a figure.


Adding a third bootable OS to 16.04 and Windows 10

Goal: add Windows XP (32-bit) bootable partition to an existing dual boot system. Ghost or clonezilla (preferable) the image of a XP desktop to the third parition.   Is this possible? (assume XP drivers for the target PC are available) Is there a term \ word for ghosting a system into a multi-boot  partion? Is there a good example (link \ video \ procdure) on the web?   If you have experience performing this task, please state this and the details (context) of the initial state and outcomes.  Any lessons learned and pitfalls to avoid are appreciated: thank you  UPDATES  The insightful comments are appreciated: thank you.  The reason to avoid XP in a VM is that it running a computationally intensive algorithm and speed is important.  Target system does not use UEFI.  The task the XP drive performs takes hours on a 3Ghz desktop


I recently missed parenthesis in an if statement in the code and code still works.     a = True   b = False   c = True   if a if b else c:       print 'Hello'   I used K-map to get the solution and this statement is equivalent to    (a and b) or (not b and c)     Can anyone explain why is this happening?


How to factor $x-y$ out of $x^n - y^n$ for some arbitrary $n\in \mathbb{N}$

As the title states. I don't quite understand how this factoring would work even though I'm fairly certain it can be done. Additionally, a follow up would be how does factoring $x^{n-1} - y^{n-1}$ out of $x^n - y^n$ work.


Why does $1+2+\dots+2003=\dfrac{2004\cdot2003}2$?   Sorry if this is missing context; not really much to add...


I need to take the 'Office' display of the 'Created By' column and display the first 5 digits of it so that my flows can run a conditional check on it. The reason is that Microsoft flows has all the 'Created By' dynamic contents besides 'Office'.  I figured simple enough I'll just do a calculated column on the SharePoint list. Then I find out that 'Created By' cannot be used in calculated columns.   So I figured I'll have my PowerApp write the Users 'Office' as a default to a field when submitting a form and calculate it off that column. Unfortunately PowerApps only has User().FullName, Email, and Image.   I have pretty much exhausted the options for a workaround that my knowledge will allow. Hopefully someone might have some ideas.


Ubuntu 20.04 boots to blinking cursor. Can get into tty2 but can't get desktop back

I allowed Ubuntu to automatically install updates today. Upon rebooting, I know longer get a GUI desktop. Only a blinking cursor. I can get into tty2 with Ctrl + Alt + F1 I tried purging gdm/gdm3, apt update, reinstalling gdm/gdm3, reinstalling xorg/xserver, per some suggestions on other threads I found. Any advice? Running on an older machine, Dell Precision T7500 (nvidia gpu, xeon cpu)


How does the "Revive at Corpse" option work?

With the new patch 2.0, Diablo 3 introduced multiple ways to revive once you've been killed. One of the options is "revive at corpse". When I've been on this screen, I've noticed that after I've done it a couple of times, I get a message that says I have a limited number of times left to select this option. When I run out of them, my only choices are to revive in town or at my last check point. I'm wondering if the number of corpse revivals is limited per game or if it's on a timer. If it is per game, how many do I get before I run out? And if they renew on a timer, how much time needs to pass before I get more?


How can I get arcpy.TraceGeometricNetwork_management results?

I have geometric network and try to launch Python script with tracing    gdb = "C:/Users/my_user/Documents/ArcGIS/gn/gn.gdb" gdb += "/gn/" geometric_net = gdb + "gn_Net" flags = gdb + "flags" result_name = "gn_Net2"  mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0]  result = arcpy.TraceGeometricNetwork_management(geometric_net,                                        result_name,                                        flags,                                        'FIND_CONNECTED'                                        )  gl = arcpy.mapping.Layer(result_name) arcpy.mapping.AddLayer(df, gl, "BOTTOM")   This script do nothing (as I see in ArcMap) - no new group layer in ArcMap, no new layers/feature classes/other instances in current geodatabase.  result variable have some value after last row execution, but I can't determine its type - debugger says thatresult.__class__ returns <class 'arcpy.arcobjects.arcobjects.Result'>, and result returns {geoprocessing server result object} gn_Net2  From  I presumed that result is group layer that I must to add to map. But I can't find Arcpy method which can add group layer to map - only layer adding to map or existing group layer (arcpy.mapping.AddLayer).  What really arcpy.TraceGeometricNetwork_management returns? Did I understood correctly that it's group layer? And it's ready for add to ArcMap via arcpy.mapping.AddLayer method? If no, where is tracing result? How can I see it? What is the arcpy.TraceGeometricNetwork_management result?  Edits: I added   ArcMap document (mxd) and data frame (df) getting Group layer adding   to script. I launches my script from ArcMap via toolbox-script object.  Result of my changes is: Group layer adds to ArcMap document, but without found path (no new layer, selectiong or highlighting). Only geometry network and its layers was added. When I run geometry tracing manually with same conditions (Utility Network Analyst - Solve), found way highlights at map.


"Autobiographer" Badge now only requires sharing what YOU want with the community

As of today, "Autobiographer" will be awarded to anyone fills out the free-form "About Me" field on their profile.  We will be awarding it retroactively, so you don't need to do anything if you already filled out your "About Me" to receive it.  (But be patient, we're awarding them in batches for the next day or two.)  Why the change?  Previously, getting the badge required you to fill in all the profile fields, some of which were public (website, location, etc.) and some of which were private (age, real name, etc.).  But, those requirements weren't aligned that well with the two main goals we have for Autobiographer:   It's a great introduction to the Badge system. It's one of only two badges ("Informed" is the other) that a new user, with no rep, can go earn instantly, without relying on others doing something, or having a specific question or answer. It did a nice job of giving those users who click the (top-level) "badge" tab on the home page a way to experience the re-enforcement system at work: Do something the community encourages, get a shiny thing as feedback - "keep that up." We think having an "identity" in online communities increases your desire to treat those communities with respect, and care about how the community views them. Don't get me wrong, we have some amazing users who are completely anonymous, but at the end of the day, we think the more you have an "identity" here (even if it's not linked to your real-world one), the less likely you are to be a jerk.  At least in ways you think are jerky, anyway. For the most part, the more anonymous a system is, the higher the percent of nonsense and nastiness gets.   So if you like identity so much, why not encourage more of it, by giving the badge for filling out all the fields?  There were a few things that felt off with the old requirements:   "Website" was a frustrating, dumb requirement, since many people don't have one (using the traditional meaning).  So they either put gibberish, a twitter handle, hacked the system with a space in the field, or just figured they must not belong here, since everyone else here must have one. A lot of the fields felt too personal to many people.  "Age" and "Real Name" in particular rubbed some people the wrong way as a "requirement" for anything, even something as silly as a badge. It made some people's first introduction to the "feedback reinforcement system" (okay, the "game") feel like the game was to drive behaviors that help us gather data, maybe so we can someday turn it into data-dollars.     The last one is particularly unfortunate for two reasons:   The game is supposed to reinforce behavior that supports the community.  We have to make a buck to keep things going, but the reinforcement system shouldn't go anywhere near that side of the business. And it wasn't - we don't use that data in any real valuable way. Or almost any way at all.  The only thing I could find that we ever use most of it for is an annual aggregate survey/report on what our users look like.  Put another way, we don't even care much about it, so making users think the game was part of some monetization scheme made them less enthused about the system based on something we weren't even doing intentionally.   If the badge is supposed to encourage you to feel more like you've chosen an identity here, it should be based on what you choose to share, not a bunch of stats that we might think are useful to others.   So, those of you who took the time to share something about yourself in "About Me" in the past, but didn't fill out some other fields, your day has come. And if any of you dreamed of seeing that badge glinting on your profile page, but resented some of the fields, go put what you want to share with the community in the "About Me", and it's all yours.  Note: We're awarding these in batches, so it may take a day or two for it to show up on your profile.


How to search for articles citing a certain combination of papers?

It is often the case that the proposal of a specific idea or approach to a problem (or whole field of research)  triggers a sequel of papers discussing and extending this idea. In this sequel there are papers (probably two or three) that are established as "basic", as points of reference. Each one of them may be usefull in more than one directions of research. However  the  whole set of "basic" papers is characteristic of the discussion.  In this perspective the most efficient way to follow an approach or school of research is to search for articles that cite these (two or three) "basic" papers.  However, according to  question this option is not available, but one has to write some Python code.  That was a year ago.  Is there any new  user-friendly alternative?


When referring to parties hosted for players should you use an apostrophe? How if so should you use it?

I want to refer to parties that are hosted for players.   Which of the following phrases is grammatically correct?    "Player Parties" "Players Parties" "Players' Parties" "Player's Parties"   A sentence where I might use this phrase is as follows:      "We host [...]"    Intended usage:  I want to use the phrase in a promotional clip alongside a party that is taking place. The clip will show the party happening, and the phrase will appear over the video to describe the event taking place in the clip.  The parties are put on for players to provide an opportunity for them to socialize, meet other players and relax.    cites the two main uses of the apostrophe that we are all familiar with (the possessive and to indicate omitted letters).     In the context I have used the phrase, do the parties belong to the players? Which of the four above phrases would best match my intended meaning?   This is most certainly not a duplicate of the question related by Edwin, I am referring to the specific case I have outlined above, which is dependent on the correct meaning to be ascribed to this phrase, as per my intended usage.


Software or hardware solution for virtual monitors, on one physical monitor

So here's the situation: I run live streams of video games, and I'd like to be able to read the stream chat and control my broadcast software while streaming, but with a fullscreen game this is extremely difficult. Some games can't be minimized, others will cause the stream to freeze while I'm minimized.  A lot of livestreamers use dual monitors to deal with this, they can stream from one monitor, and do the other things the audience shouldn't be watching on the other monitor, and it has the added effect of not breaking fullscreen games.  Unfortunately, due to space constraints it's not really feasible for me to get a second monitor right now. I figure there has to be someone else out there who had the same thought I did: virtual monitor. Is there anything that exists, software or hardware that would allow me to have two "virtual" monitors on one physical monitor? I figure I could use something similar to a KVM switch, or a software solution, but I don't really know.  Thanks in advance!


I do not know how else to put the question.  On my third attempt, what is the origin of the word "pink" in the English language?


How can I insert a new line in a cmd.exe command?

I'm trying to execute a command on cmd.exe, with a line break or new line as part of the command, like below:  command -option:text   whatever   But every new line executes the command, instead of continuing the command on the next line.  So how can I input a new line character, or create a multi-line command in cmd.exe?


I currently have a machine running Windows 7 on it and would like to set up a dual boot with Ubuntu (14.03). The computer is an all-in-one and therefore came preassembled and preinstalled with the OS. It also has 4 partitions: 1 System partition (I think Windows creates this upon installation automatically), 1 Boot partition on which the main part of my OS resides, one Recover partition (20GB) and one OEM partition (I think this might have been created by the manuacturer of the HDD). I also shrunk my Boot partition and created some unallocated space to install Ubuntu in. Now as I understand it, I will not be able to install Ubuntu with 4 (primary?) partitions already on my system. I don't know if the OEM partition for example could be removed without causing damage so that I can install Ubuntu. Also one quick question to the installation itself: Should I choose install alongside Windows? Will Ubuntu automatically install in the unallocated space if I do that? Any advice is greatly appreciated!


How to emulate SOQL LIKE matching in Apex?

I have a need to replicate SOQL's LIKE behaviour in Apex:  The % wildcard matches zero or more characters The _ wildcard matches exactly one character Case insensitive  including for cases where characters that have special meaning in regular expressions are used e.g. ( and ). What code do I need?


Good afternoon everyone! I am only 17 years old, and this may sound like a stupid question...     First way   Anyway, we currently calculate the "case fatality rate" by dividing the number of patients who have died from a specific disease by the total number of those who got infected.      Second way   However, why don't we calculate the CFR by dividing the number of patients who died by the number of patients who had been successfully healed plus the ones who have died?       Explanation   I understand that maybe the data we have isn't enough nor accurate to use that reason once a country could have only 100 cases, which out of them, 70 died, and only 30 recovered - giving a false CFR having in count time.   Besides that, I also have read this article:  , in which they explained why the second way of calculating CFR approaches the first one.  But that isn't necessarily true. Let's take, for example, the case of COVID-19 in Italy. Because of the older population, the mortality rate is expected to be a lot higher in Italy than in China (about 7.2% compared to 2.1%). Nevertheless, the statistics have been constant for a long time, remaining at almost 45% of death ratio (if calculated using the second way). This doesn't make any sense, but it also looks more accurate than 7.2%. If we take on mind that only 10,950 people recovered from the 20,084 closed cases, the numbers seem right.    I also have in mind that the second way of calculating the CFR doesn't apply to all ages and genders once a 40% mortality rate can't be applied to people <20 years the same way it is to people >60 years. The second way doesn't assume all of the population from a specific country. Although, neither does the first one. If we have to count the real consequences in a general way, isn't this the most appropriate way of calculating it?       Question   Why should we use the total number of cases (active cases + deaths + recoveries) to calculate CFR if the active cases didn't have an outcome yet?


Insertion in the middle of ArrayList vs LinkedList

Talking in Java's context. If I want to insert in the middle of either an ArrayList or a linkedList, I've been told that Arraylist will perform terribly.  I understand that it is because, we need to shift all the elements and then do the insertion. This should be of the order n/2 i.e. O(n).  But is not it the same for linkedList. For linked List, we need to traverse till the time we find the middle, and then do the pointer manipulation. In this case too, it will take O(n) time. Would not it?  Thanks


Console flashes on launching, then closes (ms-windows)

I installed blender on a windows 7 64 bit system.  I opened it one time then went to the tutorials.  in the meantime I had a power failure and when I tried to start blender again I get a dos window that closes itself then nothing.  I reinstalled Blender and get the same thing.  I am going to try to uninstall then reinstall but in the mean time, any other suggestions are welcome.


Why does bash show 'Terminated' after killing a process?

Here is the behaviour I want to understand:  $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash  4268 ttys000    0:00.00 xargs $ kill 4268 $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash [1]+  Terminated: 15          xargs $ ps   PID TTY           TIME CMD   392 ttys000    0:00.21 -bash   Why does it show the [1]+  Terminated: 15          xargs after I kill a process, instead of just not showing it as it was just killed?  I'm using bash on Mac OS X 10.7.5.


Do spells learned from Magic Initiate work with Metamagic?

I have been searching on here and other sites and I can't find the answer. If i were to take Magic Initiate on my sorcerer would I be able to use metamagic on the spells?