I currently have something like this. I am attempting to find a process with a certain name  >:~# ps | grep avahi-daemon 12499 avahi     3048 S    avahi-daemon: running [BlahBlah.local] 12500 avahi     3048 S    avahi-daemon: chroot helper 12538 root      2672 S    grep avahi-daemon  <---What is this   What is the 3rd line ? Why does it say grep avahi-daemon

I have cobbled together a command to return the process ID of a running daemon:  ps aux | grep daemon_name | awk "{ print \$2 }"   It works perfectly and returns the PID, but it also returns a second PID which is presumably the process I'm running now. Is there a way I can exclude my command from the list of returned PIDs?  I've tested it a few times and it appears my command is always the second PID in the list, but I don't want to grab just the first PID in case it's inaccurate.


I am doing an animation with a camera to add 3D elements to it (don't really know what it is called) when I press shift z to render my scene, things look great.  but when I try to actually render an image from my animation it only shows the monkey with the shadow, but no background.  I know that it has something to do with compositing nodes and stuff, but I am not sure how to works.. could someone please help? A also I used the new shadow catcher thing to make the shadow appear. Thank you.

So two problems I am having. First, I have a background image with it set to all views. I went into the node editor and added the image and connected it to the alpha over node along with the render layers node. No background image! it does show on up the camera view (numpad 0).   Second problem I'm having is that the side of the cylinder is all charcoal looking when the texture is set to be just gray. The gray rings are suppose to be mirrored glass and reflect the background, that may be working? Hopefully it reflects my background image once it's working.   I am on Blender 2.69


I'm doing my PhD in physics (experimental physics/materials science with a lot of programming) with more than one year to go. I'm not 100% sure if I want to stay in academia, but if so I would like to do multidisciplinary research, working mainly on the computational part. I changed research field multiple times and I'm not too scared to do that again.   When do you think I should start to look for a postdoc?

My earliest PhD graduation date is 10 months away. Funding permits me to stay 1–3 months longer, so the final date is still uncertain.  It is never too early to make contacts for possible post-docs. But how long in advance is too early to formally apply to post-doc job openings or funding opportunities? Depending on the bureaucracy, the path from applying to starting can probably be anything from a week up to a year — someone I know is applying with  which had the opening advertised in August, application deadline in October, will have interviews in December/January, and the commencement of work only in September, 13 months after the initial job advertisement. My personal guess is that the long time between interviews and starting is to create a level playing field between those who do and those who don't need to go through a visa application procedure.  If I'm too early in applying for a post-doc, a hosting institution might prefer someone who can start earlier and where the graduation date is more certain. For example, in my case the graduation date is still uncertain, so there is a risk in accepting even if they are willing to wait. Project funding might also require the money to be spent rather soon.  If I wait too long, there might be a considerable period where I'm between jobs. Having a long (>6 months) period between jobs is a disadvantage for me. Maybe it's also a disadvantage for a hosting institution (I'm not sure).  How do I find the balance? For example, considering the duration of funding and visa applications, does it make sense to apply e.g. ? Or is it in any case virtually inevitable to have at least several months before my PhD graduation and the start of a post-doc?


So I'm new to C++ and Visual Studio and I'm trying to implement a hash table using templates. I have four files: main.cpp, HashNode.h, HashTable.h, and HashTable.cpp.  main calls the HashTable constructor with a paramenter (the definition is in HashNode.h, with the implementation in the cpp file), but this throws 2 unresolved external errors: one for the called constructor, and one for what I assume to be the default constructor.  However, main also calls the HashNode constructor with no problems. HashNode has its implementation and declaration all in the HashNode.h file, but moving HashTable's implementation to its .h file didn't clear the error. So I'm very confused lol.  I'm running Visual Studio 2019, fresh install, and using the default build button to build it. It does compile and run other things (like hello world), just not this.  I've also tried adding random garbage into HashTable.cpp to see if the compiler just didn't see that it existed, but that's not the case. It also throws a compilation error then.  HashTable.h:  #pragma once #include "HashNode.h"  template <typename T> class HashTable {     public:         void AddItem(int key, T item);         T* GetItem(int key);         HashTable(int buckets);         ~HashTable();         int print();     private:         HashNode<T>** elements;         int buckets; };   HashTable.cpp:  #include "HashTable.h" #include "HashNode.h" #include <stdexcept>  template<typename T> HashTable<T>::HashTable(int buckets) {     elements = new HashNode<T> * [buckets];     for (int i = 0; i < buckets; i++)     {         elements[i] = nullptr;     }     HashTable::buckets = buckets; } ... //other methods defined below   HashNode.h  #pragma once  template <typename V> class HashNode { public:     HashNode(int key, const V value) : k(key), v(value), next(nullptr) {}     int getKey () const { return k; }     V getValue() const { return v; }     HashNode* getNext() const { return next; }     void setNext(HashNode* next) { HashNode::next = next; }     void appendToChain(HashNode* last)     {         HashNode* curr = this;         while (curr->getNext() != nullptr)         {             curr = curr->getNext();         }         curr.setNext(last);     } private:     int k;     V v;     HashNode* next; };   Main.cpp:  #include <iostream> #include "HashTable.h" #include "HashNode.h"  int main() {     std::cout << "Hello World!\n";     HashNode<int> node(1,1); //works fine     std::cout << node.getValue() << std::endl; //prints fine     HashTable<int> table(5); //throws error on compilation }   It's probably just something stupid or that I'm blind, but here's the errors:  Error   LNK1120 2 unresolved externals  HashTable   D:\C++\HashTable\Debug\HashTable.exe    1     Error   LNK2019 unresolved external symbol "public: __thiscall HashTable<int>::HashTable<int>(int)" (??0?$HashTable@H@@QAE@H@Z) referenced in function _main    HashTable   D:\C++\HashTable\HashTable\Main.obj 1     Error   LNK2019 unresolved external symbol "public: __thiscall HashTable<int>::~HashTable<int>(void)" (??1?$HashTable@H@@QAE@XZ) referenced in function _main   HashTable   D:\C++\HashTable\HashTable\Main.obj 1      Also, please don't hesitate to give me pointers if my code's bad. I've never really programmed anything in C++ before so any help is welcome!

When I write C++ code for a class using templates and split the code between a source (CPP) file and a header (H) file, I get a whole lot of "unresolved external symbol" errors when it comes to linking the final executible, despite the object file being correctly built and included in the linking.  What's happening here, and how can I fix it?


How can I get the list of cross product pairs from a list of arbitrarily long lists in Python?  Example  a = [1, 2, 3] b = [4, 5, 6]   crossproduct(a,b) should yield [[1, 4], [1, 5], [1, 6], ...].

How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


My site is working if i type it as domain.com. But If I type it as www.domain.com I get an error 404 page.  The domain is registered with Google Apps for Business and the hosting is done with another company. I have some A records that are pointing the site to this server. However, as it appears the A records are only working halfway.  What do I have to do to make it working for both http:// and http://www ?

Right now my site runs on http://www.example.com but I need to run that without www also i.e example.com  Can some body tell me here that how can i do that?


my 3d view window seems to cut off the view   is there a way to fix this

Zooming in to inspect texture details in 3D view clips some closer faces like shown in the image. It's not the camera view so changing camera settings doesn't help.   Where can the distance to the clipping plane be adjusted?


I can't remember much about the book.  I read it when I was in middle school.  What I do remember is that a human kid finds these tiny aliens - one of which can stop/slow time.  The one scene that sticks out in my memory is a bully trying to punch the kid, and the alien stops or slows down time enough that the kid has time to easily dodge the punch.  Honestly can't remember much more from the book.  Any help would be appreciated.

It was a book I read when I was a kid, so I am assuming it was a book aimed at kids/young adults. A whole crew of aliens of different species meet an Earth kid. He befriends them. One of the aliens comes from a planet with dozens/hundreds of different sexes/genders. At one point, the Earth kid is talking about a swamp:  Alien: "I live in/near a swamp on my home planet" Kid: "Oh, do you come from a swamp planet?"  The alien points out that just because there is a swamp on his planet doesn't make it a swamp planet, there are dozens of biomes on his planet, just like Earth. Earth isn't just a swamp planet.


I have a directory of pictures.  I need the MD5-hash of each file in that directory and the name of the file placed into a .txt document. This file is to be read at a later time to reference the MD5 and file name together.  Note: I would like this to just pull all directory files with me specifying them. I have tried playing with tar and find and I just cannot seem to find a good solution...  This is a directory example:  /Desktop/testing RandomFilename1.png RandomFilename2.png RandomFilename3.png   The .txt output is:  RandomFilename1,da39a3ee5e6b4b0d3255bfef95601890afd80709 RandomFilename2,da39a3ee5e6b4b0d3255bfef95601890afd80709 RandomFilename3,da39a3ee5e6b4b0d3255bfef95601890afd80709   I've looked everywhere online with no luck. This will be on a Linux terminal.

I would like to create a md5 checksum list for all files in a directory.  I want to cat filename | md5sum > ouptput.txt. I want to do this in 1 step for all files in my directory.   Any assistance would be great.


Suppose we have an EMPLOYEE and a DEPENDENT table. Each employee has an identifier Ssn and possibly a dependent with identifier Essn. Are the following two queries equivalent?  SELECT DISTINCT E.Lname, D.Dependent_name FROM ((EMPLOYEE E) LEFT OUTER JOIN (DEPENDENT D) ON E.Fname=D.Dependent_name);  SELECT DISTINCT E.Lname, D.Dependent_name FROM ((DEPENDENT D) RIGHT OUTER JOIN (EMPLOYEE E) ON E.Fname=D.Dependent_name);   In general, is it true that  (TABLE A) LEFT OUTER JOIN (TABLE B)   is the same as  (TABLE B) RIGHT OUTER JOIN (TABLE A)   ?

Do any queries exist that require RIGHT JOIN, or can they always be re-written with LEFT JOIN?  And more specifically, how do you re-write this one without the right join (and I guess implicitly without any subqueries or other fanciness):   SELECT * FROM t1 LEFT JOIN t2 ON t1.k2 = t2.k2 RIGHT JOIN t3 ON t3.k3 = t2.k3


I ran across an apparent paradox which I then located in the paper  as such:     Imagine that you are shown two identical boxes. You know that one of   them contains. \$b and the other \$2b. Picking one at random and opening   it, you must decide whether to keep it (and its contents), or exchange   it for the other box.   In short, when you find $x dollars in a box, the expected value of the other box is .5*.5x + .5*2x = 1.25x, meaning that it's always better to switch. This appears to violate the symmetry of the problem and the fact that you still know nothing meaningful about either box.  The paper goes another direction with it, talking about how having prior knowledge of expected values gives a more meaningful analysis (along with other discussions). However, what if there's no prior knowledge, and we have the original problem as stated. Can anyone give me some intuition to make sense of this?  EDIT: Someone found  which asks a slightly different formulation, but an identical problem. The accepted answer there just points to , and I'm having difficulty understanding the paper. It explains away the paradox by noting the expectation is based on an infinite sum, and the value depends on the order the sum is evaluated. I'm not familiar with how the order of a sum can change a value, and I also don't see talking about a different way to evaluate the expectation explains the strange result outlined above. My math understanding is primarily based on reading textbooks as a hobby, and I haven't yet worked up to fully understanding math academic papers, so a simpler explanation would be helpful.

Suppose there are two face down cards each with a positive real number and with one twice the other. Each card has value equal to its number. You are given one of the cards (with value $x$) and after you have seen it, the dealer offers you an opportunity to swap without anyone having looked at the other card.  If you choose to swap, your expected value should be the same, as you still have a $50\%$ chance of getting the higher card and $50\%$ of getting the lower card.  However, the other card has a $50\%$ chance of being $0.5x$ and a $50\%$ chance of being $2x$. If we keep the card, our expected value is $x$, while if we swap it, then our expected value is: $$0.5(0.5x)+0.5(2x)=1.25x$$ so it seems like it is better to swap. Can anyone explain this apparent contradiction?


Show that if $x$ and $y$ are nonnegative reals, then $$\frac{x + y}{2} ≥ \sqrt{xy}$$ Can anybody help me?, I'm not quite sure how to prove this.

I am having trouble with this problem from my latest homework.  Prove the arithmetic-geometric mean inequality. That is, for two positive real numbers $x,y$, we have $$ \sqrt{xy}≤ \frac{x+y}{2} .$$ Furthermore, equality occurs if and only if $x = y$.  Any and all help would be appreciated.


That's the question.  I try to explain this to myself I can't find any good resources.  Note: I have researched for about 15 mins and yet haven't found the answer. I do apologize for any inconveniences.

I am currently in high school and we are studying radicals. I had asked my math teacher why $\sqrt{ab}=\sqrt{a}\sqrt{b}$ (for all a,b>0) and he tries to prove it by arguing that $a^{1/2}*b^{1/2}=(ab)^{1/2}$ (an exponent law). However, I find this proof problematic since $x^{1/2}$ is simply defined as $\sqrt{x}$, so the reasoning is circular.   My view is that $\sqrt{ab}=\sqrt{a}\sqrt{b}$ because once we square both sides we get $ab=ab$. Since we're obviously referring to the positive root, and the function $f(x) = \sqrt{x}$ is injective, it necessarily follows that the original expressions $\sqrt{ab}$ and $\sqrt{a}\sqrt{b}$ are equivalent because for injective functions it is not possible to map distinct elements in the domain to the same element in the range ($ab$). Hence they are equivalent expressions.   My question therefore is, is my proof valid and/or rigorous (I find it convincing but maybe it's wrong; I just want to be clear) and secondly was my teacher's proof correct?


my skype crashed i tried to uninstall/re-install it through the software center but then that crashed.... I was told that line 57 is malformed in source.list. The source list could not be read I am told that there may be unmet dependencies.... I have no idea what this is about. can  someone tell me precisely what to input at the console step by step, paint by the numbers otherwise its off to the repairman $$$$ or a complete re-install of the entire system

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I am using Ubuntu 14.04. I can't get the external monitor to stay on if I close my laptop's lid. I have been using Ubuntu since 12.04 and I have always had the same problem. Can anyone help? Thx.

I would like closing the laptop lid to be a no-op. How can I do that?


Show $(1+x_1)(1+x_2)...(1+x_n)\geq2^n$ given $x_1x_2...x_n=1$ and that all $x_i $ are positive reals.   I think simple AM-GM-HM must work, but I am missing on something trivial.

Let $a_1,a_2,\dots,a_n$ $\in$ $\mathbb{R}^+$ and $a_1\cdot a_2\cdots a_n=1$, , prove that $(1+a_1) \cdot (1+a_2) \cdot \dots \cdot (1+a_n) \geq 2^n$ I have tried factorising but it just lead me to extremily complicated equation that were extremily difficult to understand... Could someone help me?


I am trying to setup a PPTP VPN server on Ubuntu Server 12.10. I had a few errors and by observing the logs, I managed to solve them.  Now, I get this error, and it seems I am not able to find a solution to it.  Here is the out put of tail -n 30 /var/log/syslog | grep -i ppp:  Jan  7 22:55:17 MyServer pptpd[32719]: CTRL: Starting call (launching pppd, opening GRE) Jan  7 22:55:17 MyServer pptpd[32720]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Jan  7 22:55:17 MyServer pptpd[32720]: CTRL (PPPD Launcher): local address = 192.168.0.1 Jan  7 22:55:17 MyServer pptpd[32720]: CTRL (PPPD Launcher): remote address = 192.168.0.234 Jan  7 22:55:17 MyServer pppd[32720]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded. Jan  7 22:55:17 MyServer pppd[32720]: pppd 2.4.5 started by root, uid 0 Jan  7 22:55:17 MyServer pppd[32720]: Using interface ppp0 Jan  7 22:55:17 MyServer pppd[32720]: Connect: ppp0 <--> /dev/pts/3 Jan  7 22:55:17 MyServer NetworkManager[1122]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jan  7 22:55:17 MyServer NetworkManager[1122]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Jan  7 22:55:46 MyServer pptpd[32719]: CTRL: Reaping child PPP[32720] Jan  7 22:55:46 MyServer pppd[32720]: Hangup (SIGHUP) Jan  7 22:55:46 MyServer pppd[32720]: Modem hangup Jan  7 22:55:46 MyServer pppd[32720]: Connection terminated. Jan  7 22:55:46 MyServer NetworkManager[1122]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jan  7 22:55:46 MyServer pppd[32720]: Exit.   Can anyone help me with this?  Edit As I said my server is Ubuntu Server 12.10. Client is Kubuntu 12.10. I have successfully set up a PPTP VPN server on CentOS 6, but I failed to do so on Ubuntu.

I know there are many tutorials on the net for setting up VPN client and server.  I you find one that is simple/short, I am interested only in the server part.   For client, I will use OS X so I prefer a solution that uses L2TP over IPsec or PPTP because I suppose Cisco IPsec would cost something.  I don't want to spent too many hours setting it up. You know, maybe someone already made a setup script :)  Note: I am using an EC2 micro instance running Ubuntu 12.04 on it.


thanks for submitting your paper to XXXXX Journal. It is an explicit and interesting analysis of a natural problem. However, in my opinion, it does not reach the level of XXXXX Journal. I therefore have decided not to pursue the evaluation process in order not to delay the publication of your paper elsewhere. Please don’t take it too bad, XXXXX Journal receive a lot of very very strong submissions in every aspect of mathematics and we publish only 700 pages per year, so we have to make some hard choices. Best regards, XXXXX (Editor-in-chief)   Dear Professor XXXXX, The XXXXX Journal of XXXXX recently received a very large number of submissions.  We are also attempting to reduce our publication backlog. Consequently, the editors are unable to consider every manuscript for further review.  So we regret to inform you that we will not be able to publish your manuscript. We hope that you will submit your paper to a more specialized journal where your work may be more fully appreciated. Sincerely, The Editors XXXXX Journal of XXXXX  Are both of these are just boiler plate or anything to salvage from them. I must say both are really top journals in mathematics.

I had submitted a paper manuscript to JAMS (J. of Amer. Math Soc) and recieved the following email 2 months after the submission. Can you help me interpret this email, as to what the situation is and what would be the best way moving forward. Are there any positives/negatives that can be taken. I have not received any referee reports or any technical points on my work, which is what disappointing me. I would like to understand the circumstances/rationale behind this decision.  I am new to journal publishing. I want to know how i can take this decision moving forward, while choosing another journal for submitting. And also self evaluating my work from this. Is there anything to loose heart?  email : (names and references removed for privacy reasons)     Dear Professor XXXX,      This message concerns the manuscript       XXXXX    by XXXX      submitted to the Journal of the AMS.       We regret to inform you that we cannot accept this paper for   publication in JAMS. The reviewers who evaluated this submission did   not think that it meets the acceptance standards at JAMS.      JAMS is the premier journal of the AMS, with extremely selective   acceptance criteria. A paper must be truly exceptional to obtain the   unanimous approval from the editors, which is required for   publication. We publish fewer than 30 papers per year in all of   mathematics. As a result, less than 10% of submissions are accepted   for publication, and many excellent papers are rejected.      One reviewer suggested that the discussion in your paper should   include a comparison with the following reference:      XXX, XXXX, XXX. XXXX: XXX.XXXXX XXXXX XXXX, Journal of XXXXX.   5555;5(XXX):5555-4444.      Sincerely,      XXXXXX, Editorial Assistant Journal of the American Mathematical   Society      --- Sent via EditFlow by JAMS Editor  <journal.american.math.society@gmail.co        Dear Professor XXXXX,      The reviews we received were intended for the editors' eyes only, so   we are unable to send them to you.       Apologies, XXXX


I have a string representing HTML, and I am trying to use str.replace(regex, "") to replace all instances of regex in a string with an empty string.  The substring that I need to replace begins with <!--[if and ends with <![endif]-->, and there are multiple occurrences in the string. Here is the regex that I tried: const regex = /^(<!--\[if).*(<!\[endif]-->)$/g  To me, this says "a string that begins with <!--[if and ends with <![endif]--> and has any number of characters in between, while escaping the opening square brackets and using the global flag."  That's what I want, so I can use str.replace: const newString = oldString.replace(regex, "")  I'm not catching any matches.  I can only think that I'm missing something about the grouping of the sequence of characters at the beginning and end.

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


By the reduction criterion, I mean the following test for the irreducibility of polynomial with Dedekind domain coefficients.      Let $\mathfrak{m}$ be maximal in Dedekind domain A and $f(X)\in A[X] $. If $f$ reduced modulo $\mathfrak{m}$ is irreducible in $A/\mathfrak{m}$, then $f$ is irreducible in $A$.   I know that the converse doesn't generally hold. There are irreducible polynomials with integer coefficients that is reducible when reduced modulo $p$ for some prime $p$.  So I conjecture the following for polynomials with integer coefficients.      For monic polynomial $f(X)\in \mathbb{Z}[X]$, if $f(X)$ modulo $p$ is reducible for all prime $p$, then $f(X)$ is reducible in $\mathbb{Z}[X]$.   I have thought of some galois theoretic approach but couldn't quite reach the conclusion. How would I prove or disprove this statement?

Let $f(x) \in \mathbb{Z}[x]$. If we reduce the coefficents of $f(x)$ modulo $p$, where $p$ is prime, we get a polynomial $f^*(x) \in \mathbb{F}_p[x]$. Then if $f^*(x)$ is irreducible and has the same degree as $f(x)$, the polynomial $f(x)$ is irreducible.   This is one way to show that a polynomial in $\mathbb{Z}[x]$ is irreducible, but it does not always work. There are polynomials which are irreducible in $\mathbb{Z}[x]$ yet factor in $\mathbb{F}_p[x]$ for every prime $p$. The only examples I know are $x^4 + 1$ and $x^4 - 10x^2 + 1$.  I'd like to see more examples, in particular an infinite family of polynomials like this would be interesting. How does one go about finding them? Has anyone ever attempted classifying all polynomials in $\mathbb{Z}[x]$ with this property?


I recently read the first Dune book, and I liked it. I knew there was some movie version of it and looked around and found a 1984 movie, and other that I think is a series from the year 2000.  I haven't watched them yet, just a little from the beginning, and in both of them what I think is a member of the Spacing guild emerges from some kind of container. In the movie it talks with the emperor, tells him to kill Paul, and looks like a giant monster head. In the series it looks like a weird giant bat, and concentrates to make the space ship go into hyperspace.  My question is: Did the first book say how they looked like? All I remember is that is was a mystery. Was there some hint that they looked like that and I missed it? Is it made up? or are they using information from the other books?  Thanks.

I finished the first book recently, and am watching the movie. It threw me that the navigators look like they do in the movie.  I don't remember them being non-humanoid, and if they were I missed it.  So, in the novels, are they? And if so, where is it first mentioned? Please avoid spoilers.


Assume $X \in \mathbb{R^{n \times n}}$. I could not found particular formula to calculate the Derivative of $X^{-1}$ with respect to $X$, but I found a formula related to inverse of matrix as follows:  (1)$\frac{\partial}{\partial X} (a^TX^{-1}b) = -X^{-T}ab^TX^{-T} \quad a, b \in \mathbb{R}^n$   Can anyone give an insight on how derive a formula for derivative of $X^{-1}$ or formula (1) please?  Thank you in advance.   ======  This  shared and discussed the same topic and I was asked if the current post is redundant. I believe the way the problem stated and discussed in these two posts is different. Specifically, I was trying to learn a simple approach for finding the derivative of a matrix expression that contains inverse of a matrix. I believe the detailed answer and discussion in the post is helpful to other learners like me(with an elementary calculus and matrix understanding).

Cliff Taubes wrote in his differential geometry book that:  We now calculate the directional derivatives of the map $$M\rightarrow M^{-1}$$ Let $\alpha\in M(n,\mathbb{R})$ denote any given matrix. Then the directional derivatives of the coordinates of the map $M\rightarrow M^{-1}$ in the drection $\alpha$ are the entries of the matrix $$-M^{-1}\alpha M^{-1}$$ Consider, for example, the coordinate given by the $(i,j)$th entry, $(M^{-1})_{ij}$. The directional derivative in the drection $\alpha$ of this function on $GL(n,\mathbb{R})$ is $$-(M^{-1}\alpha M^{-1})_{ij}$$ In particular, the partial derivative of the function $M\rightarrow (M^{-1})_{ij}$ with respect to the coordinate $M_{rs}$ is $-(M^{-1})_{ir}(M^{-1})_{sj}$.   I am wondering why this is true. He did not give any deduction of this formula, and all the formulas I know for matrix inverse does not generate anything similar to his result. So I venture to ask.


Ulrike Fischer's answer shows the previous similar questions are all out of date.  The latest of them,    refers to AcroviewA17 and AcroviewR17 and these have already been replaced by versions numbered 18.  Other advice in the answer to that question also has not worked for me but I think it not worth detailing the reasons since it is out of date.  I am using WinEdt 10 Build: 20170413 (v. 10.2) - 64-bit, and fully updated MiXTeK 2.9, with Acrobat Pro DC continuous release version 2018.009.20044.  In fact the problem just appeared on another of my machines this morning, immediately after updating everything.  I had been using the options Start Viewer and Forward search.  But just now PDFLaTeX and PDFTeXify have become unable to close the pdf for a file if it is open.  And so they cannot do forward search.  If I left the pdf open from a previous run then, though nothing shows in the log file, a dialogue box opens saying     Warning      Cannot open DDE link to "C:\Program Files (x86)\Adobe\Acrobat   And a file called PDFCloseDoc.edt has this:     // DDE ==============================================================    DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-DDE_Topic');");   IfOK(!"Relax;",!"DDEClose;JMP('Done');");   DDEExe('[AppHide()]');   // As of Acrobat 8 DocOpen must be done twice or else Adobe Crashes!   DDEExe('[DocOpen("%P\%N.pdf")]');   DDEExe('[DocClose("%P\%N.pdf")]]');      And even if no pdf is open, but I have the option set for forward search PDFTeXify creates a new pdf and opens to the first page but then when it would do the forward search it gives those same messages.  Is there an easy fix or should I try reinstalling something?  Questions   and    Describe essentially the same problem 4 and 5 years ago.  Are those fixes still best or do they even work now?

While using the 2017 release of Adobe Acrobat DC, I get the error    every time I run PDFLatex with my PDF open. When I use PDF Search, I get the same error.   Does anybody know what do I have to change in the .edt files to make it work?


What do you think is the fastest method to find the limit $$\lim _{x\to 0}\frac{(1+x)^{1\over x}-e}{x}$$ (without using series expansion)?

I tried to evaluate $$\lim_{x\to0}\frac{(1+x)^{1/x}-e}x$$but all my efforts were in vain . L'Hospital rule becomes very complicated.


In my project there are two types of user.   Normal User Lawyer   I create a registration form using profile 2 module. Now problem is I want to send promotion email to Lawyer after registration so I create Action for send email and then create trigger for user. In send email I choose [user:profile-lawyer-registration:user:mail] for email address. registration has done successfully and receive email about registration link, but not receive the promotion email. They gives following error:     Error: Unable to send e-mail. Contact the site administrator if the problem persists.   Status message:     Success: A welcome message with further instructions has been sent to your e-mail address.

When my web form is filled and submitted, I get redirected to a page that says:     Thank you for submitting.   but theres a red warning box there that says:     Unable to send e-mail. Contact the site administrator if the problem persists.   I think its the SMTP server, but I don't know how to fix that.


I'm working on a Connect 4 game. So the issue I'm having is that for some reason I can't use getIcon as a String and compare it to another String. Essentially, what I've done is that whenever someone presses the first column, I use a loop to check if the bottom piece has a blankImage slot, and replace it. But the issue is that it even though it always starts as true, (meaning I can place a piece), it returns the if statement as false.  Here's the code for what happens if the first column is pressed.  //Executes this code if the first column is activated if (e.getActionCommand ().equals ("a")) {    //Checks if there is a possible move to place a piece from the bottom, moving it's way up   for (int i = boardHeight - 1; ((i >= 0) || (exitStatement == "exit")); i--) {      //Sets the image source for the piece equal to tempImage     String tempImage = "" + boardSlots[0][i].getIcon();      //If the image is blank, we set the image to be the appropriate image for the player's piece (either player 1 or player 2)     if (tempImage == "blankSlotImage.png") { //<-----THIS IS ALWAYS FALSE??? WHYYY?!?!        //boardSlots and playerImage are already a globally declared variable       boardSlots[0][i].setIcon(new ImageIcon(playerImage));        //An exit variable is provided to end the loop so other pieces aren't added       exitStatement = "exit";      //Otherwise this should mean the column is full     } else {        //Checks if the top slot is empty or not; if it is the user is indicated that they cannot go there       if (blankSlots[0][0].getIcon() != (new ImageIcon("blankSlotImage.png")) {          //A JOptionPane goes here telling the user they can't place their piece in this column        }     }   } }   Something I've tried is instead of comparing the slots' given image as a string, my comparison looked like this:  if (boardSlots[0][i].getIcon() == (new ImageIcon("/Users/rishabchopra/Desktop/BlankSlot.png"))))   But that hasn't worked either:/  So once again, if you could enlighten me on what I'm doing wrong or a way I could improve this, I would really appreciate it. Thanks!  P.s. I realized that a slight flaw is that if the column is full, we get about 7 or so JOptionPanes, but that shouldn't really matter...

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Does there exist a non constant entire function $f: \mathbb C \to \mathbb C$ which is  i.e. $\int_{\mathbb C} \vert f(z)\vert^2 dz< \infty$ ?   I think that answer to above question is no and this should be direct application(probably by power series expansion of $f$) of some theorem but i am unable to solve this.Any ideas?

Suppose $f$ is entire and    $$\iint_\mathbb{C}|f(z)|^2dxdy < \infty$$Prove that $f\equiv 0.$   So far I have:  Suppose $f$ is bounded.  Then $f$ is constant by virtue of Liouville and so the conclusion is obvious.  Thus, assume $f$ non-bounded.  Then  $$\Big|\iint_\mathbb{C}f^2(z)dA\Big| \leq \iint_\mathbb{C}|f(z)|^2dxdy < \infty$$ We can parameterize \begin{align*} \iint_\mathbb{C}f^2(z)dA &= \int_0^{\infty}\int_0^{2\pi}f^2(re^{i\theta})\;d\theta\;rdr \\ &= \int_0^{\infty}\int_0^{2\pi}f^2(re^{i\theta})\;ire^{i\theta}[-i\frac{1}{r}e^{-i\theta}]d\theta\;rdr \\ &= \int_0^{\infty}\oint_{C_R}f^2(z)\;[-i\frac{1}{z}]dz\;rdr \\ &= \int_0^{\infty}2\pi r dr\frac{1}{2\pi i}\oint_{C_R}\frac{f^2(z)}{z}dz \\ \\ &= 2\pi f^2(0)\int_0^\infty rdr  \end{align*}  Whence f(0) = 0.  And I have no idea where to go from there.  The "entire" bit seems to suggest Liouville but I have already dealt with the bounded case.  Please advise ...


I wanna include a bash script in a black box in a pdf using latex. I achieved everything I want, except bold commands in the script using the following code:  \documentclass[11pt,a4paper,DIV=15]{scrartcl} \usepackage[ngerman]{babel}  \usepackage[utf8]{inputenc}  \usepackage{amsmath} \usepackage{graphicx} \usepackage{float} \usepackage{xcolor} \usepackage[colorlinks,linkcolor=blue]{hyperref} \usepackage{listings}  \lstset{language=bash,backgroundcolor=\color{lightgray},frame=lrbt,basicstyle=\ttfamily}   \begin{document}   \begin{lstlisting} #!/bin/bash  pdflatex  $1 echo Anstatt  dieses  Skriptes  haettest  Du  pdflatex echo auch  einfach  direkt  aufrufen  koennen  ... \end{lstlisting}  \end{document}   I dont get why listing automatically writes my comments italic, but doesnt recognize echo as an command. As commands should be written bold when using language=bash.

How can I use bold text inside a code listing? I wanted to make some parts of the code bold.


I have two shell script abc.sh and def.sh. abc.sh executes def.sh inside it and the control comes back to abc.sh through a return statement.  I have an echo command followed by an exit command which is apparently not working.  Below you will see content for abc.sh  sleep 60; bash ./gen_files/def.sh ./gen_files/regress_rpt_1_0.txt sleep 60; bash ./gen_files/def.sh ./gen_files/regress_rpt_1_1.txt sleep 10; echo "COMPLETED **** EXITING NOW ****"; exit 0;   Please find the content for def.sh  #!/bin/bash  function build_status()               {                 FILE=$1                 if test -f "$FILE"; then                   echo "$FILE File Exists"                   if `grep -q "Build Job" $FILE`;then                     echo "Build found,Continuing to next launch statement"                     return                   else                     echo "Build Not Found,Waiting for the build"                     sleep 120                     build_status $FILE                   fi                 else                   echo "$FILE Not Found"                   #build_status $FILE                 fi               }             FILE=$1             build_status $FILE   I expect the script to exit after the print COMPLETED **** EXITING NOW **** and come back to terminal. However what I am seeing now is the script doesn't exit by its own. I can see the print in the terminal and shell script is still running with no activity

Consider the simple script hello:  #!/bin/bash  echo 'hello world!'   Now from bash if I try to run this in the background:  $ hello & [1] 12345 $ hello world! █ <--- prompt is stuck here until I hit enter! [1]+ Done $ █ <--- prompt back to normal   What I would rather see:  $ hello & [1] 12345 [1]+ hello world! [1]+ Done $ █ <--- prompt normal the whole time   How can I change the behavior?


My question hails from    Let's take one of the examples mentioned there.     Seven steps to reaching your goals   Non-native speakers like me can identify if the sentence is already written. Say the one I just quoted. I see that 'to' is followed by 'verb-ing' and therefore, it's a preposition and not an infinitive marker.  But, I'm pretty sure that if I were to write this sentence, I'd have gone for...     Seven steps to reach your goals    Now, the question is, how to identify whether we use 'to' as an infinite marker OR a preposition? I repeat, I'm asking about writing on my own, and not something that is already written.     The  and the answer says that 'there's no such rule'. But then, Damkerng has come up with a very useful comment. I'm looking forward to having such kind of answer to this. If there's no one rule, at least something that helps us decide it?

Is there a rule for using gerunds and infinitives instead of memorizing the verbs? I mean when to use gerund or infinitive just by looking at the sentence.


I have a simple absolute div and an image inside it.  I don't know why there is this strange small gap/empty space underneath the image. I used other images in the same div and it seems to be the same!  This is what I have:    .adHolder {   width:100%;   /*height: auto;*/   position:absolute;   bottom:0;   left:0;   /*border-top:solid 1px #fff;*/   padding:0;   margin:0;   z-index:1; }  .adHolder img {   width:100%;   height:100% !important;   padding:0 !important;   margin:0 !important;   border:none; }

     if you look at the bottom of the image, there is a small line (empty space) which I need to get rid of.  Any pointers would be appreciated.

When my browser renders the following test case, there's a gap below the image. From my understanding of CSS, the bottom of the blue box should touch the bottom of the red box. But that's not the case. Why?  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   <title>foo</title>


I have created a multi-site  Drupal 7 in my localhost environment  with a main-site and a sub-site in it with a single database, with table names of sub-site prefixed with 'sub_'. If I tried editing the setting.php of sub-site, altering 'prefix' value in database array  to a shared table I cant access the sub-site own table. I need the sub-site to access both shared table and its own table.  So that if any content/content-type created in main-site has to be reflected in sub-site.But the content/content-type created in sub-site should not be reflected in main-site.  How to achieve it?

I want to create a multisite with Drupal 7: Every site works separately but users, and nodes must be shared among the sites.   How do I achieve it?


When we describe the working principle of the transformer, we say that we want to minimize the loss of electrical energy, therefore we reduce the current Q=I^2Rt, so heat reduces as well, but to keep the same power we increase the voltage, but Q=U^2/R *t. so why voltage doesn't give us the heat effect.

Since Power = V*I increasing voltage reduces current and so it is better to have a higher voltage. My question is, since voltage is potential difference i.e. joules per metre, increasing the voltage also increases the heat lost so why is this beneficial?  In addition to this, since we are trying to make the transfer of electricity more efficient and this means moving more electricity with less heat loss. Power is the heat loss per second and since we're dealing with a fixed power wouldnt we want to increase current rather than voltage so that we move more electricity in less time?  I know that my reasoning is wrong somewhere so can someone clarify why this is wrong and provide background information about voltage/current etc. as well as any relevant maths to back it up. Thanks in advance


What's the difference between 'the Earth' and 'Earth'? Why is there an article before Earth on the first sentence, and none on the second one?  1) Sputnik, Russian for fellow traveller around the Earth marked the beginning of Space Age.  2) It took about 98 minutes for Sputnik to make one complete orbit around Earth.

I'm reading :  Earth [...] is the third planet from the Sun[...] The Earth's human population is [...]   Then the   The Earth is certainly the most familiar planet [...] Apollo 11 shot of Earth Galileo shot of the Earth and Moon   I think no other planets have this problem. Nobody would say "The Mars is certainly the first planet that humans will travel to", so what's happening here?  So what is the correct way of referring to the planet that i'm on right now? Does it require "THE" or not? How come English-speaking Earthlings keep changing the rules in the middle of a paragraph?


While I check for update, it doesnot show any update.

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


Does $\int_{ - 1}^1 {\frac{1}{x}dx} = 0 \text { or } \infty $? Is that integral equal to $0$? I think it is because $\frac {1}{x}$ is an odd function. But it may as well be divergent or, equivalently, $\infty$, or it doesn't exist.

Isn't $$\int_{-1}^{1} \frac{1}x \mathrm{d}x=\lim_{\epsilon\to 0^{+}} \int_{-1}^{-\epsilon} \frac{1}x \mathrm{d}x+\int_{-\epsilon}^{\epsilon} \frac{1}x \mathrm{d}x+\int_{\epsilon}^{1} \frac{1}x \mathrm{d}x=0 ?$$


I have successed in installing the Ubuntu appliance with Plex on a Raspberry Pi 2. I plugged an external drive to the Pi, and successfully added it to the plex media library. I want to share this drive on my private network so I can add files on it. How can i do it ? I 'm not familiar with ubuntu core and haven't found any solution. Thank you.

I am trying to set an entire hard drive as a share using Samba on our server running Ubuntu Desktop 16.04.  I have been able to successfully set up a shared folder, but I am having problems setting up the drive.  Here is what I have in the smb.conf file, where [share] is the shared folder and [share2] is what I have set for the hard drive:  [share] path = /home/craig/desktop/share available = yes valid users = craig-pc read only = no browsable = yes public = yes writable = yes  [share2] path = /media/craig/Seagate D1 available = yes valid users = craig-pc read only = no browsable = yes public = yes writable = yes   Another question I have is on the valid users statement, currently I have it set for only my windows 7 pc which is user craig-pc, when I wish to add additional users do I add them in the same line using a comma like valid users = craig-pc, bob-pc, etc.?  What is the correct method of adding additional valid users?   I deleted the Share2 info from my smb.conf file and then set up the hard drive as a share using the Samba GUI (system-config-samba), what follows is the information it placed in the smb.conf file for the share:  [Seagate D1] path = /media/craig/Seagate D1 writeable = yes valid users = craig-pc, craig, marcy     PLEASE NOTE: the path does not have the quotation marks around it because of spaces in it, so I am not sure if they are needed as suggested it should have by Terrance (BTW - Thank you for your comment).


I duplicated a football player but when I wanted to work in only one of them the changes of materials happend to both of them ! Please tell me how to work on materials seperatly !!!

I've a sphere and then duplicated it. In object tree they are displayed as three siblings. I selected on of them and created a green glass material through node editor however this material was assigned to all three spheres. I confirmed that my selection is only on one sphere. What am I missing?


Edit: I believe this is not a duplicate of , because that question asks about citing Wikipedia for knowledge that is very basic but is nonetheless highly relevant to the core subject of the paper. My question is about citing  Wikipedia for something that is, by contrast, unrelated to the core subject matter of the paper, and thus is trivial in the sense of being unimportant rather than trivial in the sense of being common or basic knowledge.  Many previous questions on this site touch on citing Wikipedia, but none of them seem to me to address this specific issue.  I am writing a statistics paper. The focus and original work of the paper is abstract and theoretical. To introduce some of those ideas, I have a silly little thought experiment involving golf, and choosing which properties one wants one's club to have.  To be clear, nothing about the paper's actual focus is relevant to golf. The golf example is just a helpful, concrete way to introduce the perspective I am taking in the paper on certain statistical techniques.  To flesh out this example, I need to be able to describe the various options one has when choosing a golf club (head material, shaft length, etc.). I have learned from Wikipedia everything I need to know about these options in order to describe my silly little thought experiment. Would it be inappropriate to cite Wikipedia in a case like this? Would reviewers/readers raise an eyebrow at my doing so? Do I really need to spend time reading primary sources on various golf head materials just to be able to include this silly thought experiment in my paper?

For example, suppose you're writing an article about triangles, and you want to include a short proof of Pythagoras' theorem, but you can't quite remember how to derive it, so you pop over to:  and check the proof there. It works mathematically, makes sense and is as far as you can tell, correct, so you include it. Now the proof on Wikipedia doesn't have a citation because probably someone has been taught it and copied it over to Wikipedia, but it's still correct. The only thing you could cite for the proof would be Wikipedia, would a citation be ok or should it just be copied down without a citation?  Edit: Ok, there have been many responses. Most with a firm "no", but some giving the reason: "Just get the proof from a book" since it's so common, but suppose then it wasn't a common proof of something. Maybe it's not very well known or something but suppose there is a small Wikipedia page with the correct mathematical proof. How much effort are people going to go to to find a proof in a book when there's a (correct (which we know, becuase it's maths and we can check it)) proof on Wikipedia? Why is it so bad to say: "I found this proof on Wikipedia, and the maths checks out so it doesn't matter who wrote it, it is correct, but that's where I found it." Or if you do find it somewhere else why not say: "Proof taken from Wikipedia and verified by the proof shown in "Triangles and their properties, Nature, 2014, p113 etc..."


For example in a Hilbert system for propositional logic, one sample system uses modus ponens along with three axioms:  I. $A \to (B \to A)$  II. $(A \to (B \to C)) \to ((A \to B) \to (A \to C))$  III. $(\lnot B \to \lnot A) \to (A \to B)$  How did Hilbert come up with these axioms as enough to represent an entire logic system?   Is it mostly trial and error to come up with a set of axioms or is there a method to the madness?

How might I go about getting some intuition on the typical axiom schemes given for propositional logic? They seem rather mysterious at first glance.  For example, these are taken from:    $\phi \to \phi$ $\phi \to \left( \psi \to \phi \right)$ $\left ( \phi \to ( \psi \rightarrow \xi \right)) \to \left( \left( \phi \to \psi \right) \to  \left( \phi \to \xi \right) \right)$ $\left ( \lnot \phi \to \lnot \psi \right) \to \left( \psi \to \phi \right)$


What does E = [[0] * m] * n do exactly? I though it would give me an n x m list of lists of 0.  I narrowed down the problem so the code has lines that are missing but I am trying to fill the table for edit distance which is in Chapter 6 of Algorithms by Dasgupta et al.  What I wanted to do with the for loop for i was to store the index number in the first column but I am puzzled. def minDistance(self, word1: str, word2: str) -> int:         n = len(word1) + 1         m = len(word2) + 1          E = [[0] * m] * n          for i in range(1, n):             E[i][0] = i          print('\n'.join(['\t'.join([str(cell) for cell in row]) for row in E])   However, I got 11 which is the last index of i on the entire first column. 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0  I made a substitution to E = [[0] * m for _ in range(n)] following code from  and got the right answer. 0       0       0       0       0       0       0       0       0       0       0 1       0       0       0       0       0       0       0       0       0       0 2       0       0       0       0       0       0       0       0       0       0 3       0       0       0       0       0       0       0       0       0       0 4       0       0       0       0       0       0       0       0       0       0 5       0       0       0       0       0       0       0       0       0       0 6       0       0       0       0       0       0       0       0       0       0 7       0       0       0       0       0       0       0       0       0       0 8       0       0       0       0       0       0       0       0       0       0 9       0       0       0       0       0       0       0       0       0       0 10      0       0       0       0       0       0       0       0       0       0 11      0       0       0       0       0       0       0       0       0       0

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I'm confused because in my textbook there's a sentence:  He is small enough to walk.  because baby was so small that he couldn't walk. Why didn't they just use small instead of small enough?

My question is what is the difference among these three sentences.   He is big enough to do such  heavy works. He is not big enough to do such heavy works. He is small enough to do such  heavy works.   I am so much confused between 2 and 3.Also, I don't get what the 3rd one means.


I obtained a finished with exit code 2 using kile when compiling the bibliography. I presume there is an error in how I've written the bibliography (.bib) file.  Is there a sort of debugger which indicates what is actually the error?

For some reason, I am not able to do any citations or even my bibliography. I get a "[BibTeX] finished with exit code 2" message when I compile in Kile. Yet, all seems to be ok in my bibliography.   Here is what I'm doing in my document:  \documentclass[12pt,oneside]{article} \pagestyle{plain} \usepackage[sort,round]{natbib} %package for bibliography \bibliographystyle{authordate1}%unsrtnat sets as sorted by order of appearance  \begin{document} \section{This is a section}  Citation: \nocite{*}  Citation with something: \citep{CHANCE1952}  \section{Bibliography} \bibliography{/home/my/path/to/library/test} \end{document}   Which outputs    Here is what my library has (yes, only one reference for testing purposes)  @article{CHANCE1952,    author = {Chance, B. and Greenstein, D. S. and Roughton, F. J.},    title = {The mechanism of catalase action. I. Steady-state analysis},    journal = {Arch Biochem Biophys},    volume = {37},    number = {2},    pages = {301-21},    note = {CHANCE, B GREENSTEIN, D S ROUGHTON, F J W Not Available Arch Biochem Biophys. 1952 Jun;37(2):301-21.},    keywords = {*Oxidoreductases Testis/*anatomy & histology},    year = {1952} }   and I'm compiling by doing PDFLatex > Bibtex >pdflatex > pdflatex >viewpdf. Could someone please help me out?  Thank you in advance!  Edit: here is part of Bibtex's output to the file .blg  ... The top-level auxiliary file: test.aux I couldn't open style file authordate1.bst ---line 2 of file test.aux  : \bibstyle{authordate1  :                      } I'm skipping whatever remains of this command I found no style file---while reading file test.aux You've used 1 entry, ...


When do we use rms value or mean value in calculations? What are their physical significance, if any?

What makes it a good idea to use RMS rather than peak values of current and voltage when we talk about or compute with AC signals.


Suppose you have two fully finished thesis, with their own bibliography and their own appendices. When I include one into the other, there is (obviously) some interference between the two different bibliographies and two different appendices.   So my question is: what is the optimal solution so that I get only one bibliography and one appendix. Also, I would like the included file to consist of one large section with subsections and not as it is at the moment, which is: each sections of the included file gets a section of its own.   Happy for any advice.

There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?


As a majority of webmasters already know that  anymore to help index a website properly. Which is understandable by people exploiting the system to try to gain a better ranking for keywords that they don't use with their sites.  My current thoughts of this questions are:   Writing good content. Meta description should still work Allowing for the site to be easily indexed thanks to HTML markup Google Webmaster Tools gives insight Google Analytics tells me where my users are going and why... ? HTML Breadcrumbs   What do we replace with the keywords to help Google index out sites accordingly and more accurately?

What are the best ways to improve a site's position in the Google search results?


What is the most natural sentence from among the listed sentences bellow:  Note: all the sentences are self-made.  Example one) Suppose a student says:        I got a very low mark in the midterm test.   I got a very low grade in the midterm test.   I got a very low score in the midterm test.   I got a very low point in the midterm test.       For me only the first one sounds natural.   Example two)  here suppose a teacher is talking to their students:        I want to read out the test marks to you.   I want to read out the test grades to you.   I want to read out the test scores to you.   I want to read out the test points to you.       For me in this specific sentence, all words work the same and convey the same message.

Let's suppose a teacher wants to punish a student and wants to decrease his / her achieved points on a test paper; he would say something to the student; I would like to know which one of the following self-made examples may work here:        I have to take two marks of you.   I have to take two grades of you.   I have to take two scores of you.   I have to take two points of you.      For me all the first three mean the same and though the last one is not the same, but works here either. I need to get your feedback.


If you search for something on "all sites" (using the searchbox at the top of , you'll reach the search results, e.g.  .  If you click directly on a tag on that page, e.g.        You get 404 Page Not Found error, e.g.     Steps to reproduce   Go to  and enter e.g. "keyforge" into the "Search all sites" field. Arrive at  Click on the "keyforge" tag below a search entry. Reach  (404 page not found)   Expected behaviour  Reach   System Info  Happens in both Firefox and Vivaldi browsers on Windows 10.

When you visit the global search page:        and want to search for a tag like we used to do on the site search like so:     [haskell] pattern   you're directed to the error page with the Panda.  If tag search is supposed to work, can this be fixed? If tag search is not supposed to work there can you at a minimum not throw an error?


I´m writing a document in parts, and until now I did not have any problems. However, I just compiled the document and it has created a big space between the title of the section and the paragraph. I do not have any warnings. Preambule code: \documentclass[a4paper, twoside, 12pt]{report} \usepackage[letterpaper, left=2.9cm, right=2.9cm, top=2.5cm, bottom=2.5cm]{geometry} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{hyperref} \hypersetup{colorlinks=true, urlcolor=violet, linkcolor=Blue, citecolor=Sepia} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsfonts} +\usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage[square,sort,comma,numbers]{natbib} \usepackage{fancyhdr} \usepackage{appendix} \usepackage{float} \usepackage{caption}  \usepackage{float} \usepackage{booktabs}     \usepackage{xltabular} \usepackage{calc} \usepackage{makecell} \usepackage{appendix} \usepackage{import} \usepackage[final]{pdfpages} \usepackage{lscape}  \usepackage{longtable} \usepackage{ltablex} \titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}  \section{Contexto educativo} \label{sec:contexto} El contexto educativo actual español, es complejo y su abordaje es difícil pues hay diferencias muy grandes incluso entre centros de la misma zona geográfica. Como docentes, debemos estar atentos a los factores socioeconómicos de nuestros estudiantes, dado que sabemos que éstos juegan un papel clave en su rendimiento académico: son responsables de hasta un 70\% de la nota \citep{garcia2007fracaso, diaz2009educacion}. Ahora bien, siendo conscientes de esos factores principales, también se deben tener otros aspectos en cuenta.

I'm using minipages to keep related questions together on a test that I'm writing. When I make a 2-sided document some of my spacing gets messed up before the section break. It works fine if I leave out the twoside option. What's going on here?  \documentclass[12pt,twoside]{article}   \begin{document}  \section{test} asdf  \section{More test}  \begin{minipage}{\textwidth} text \vspace{7in} \end{minipage}  \end{document}


I have about 5 drupal sites on in motion server but for some reason all sites are showing me the same error which is   "PDOException: SQLSTATE[HY000] [2002] No such file or directory in lock_may_be_available()  My host is telling me that there is nothing out of the ordinary, but clearly some thing is wrong, all 5 websites are showing me this error simultaneously. I need a to resolve this issue , I need some help.

I installed Drush for the first time (so it may be a configuration error) and I'm trying to update to the latest core version of Drupal.  Drush is giving me this error - I'm on an OSX box.  dev5:clientnamedirectory my.name$ drush pm-update projects drupal-7.25
Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000] [2002] No such file or directory in drupal_get_installed_schema_version() (line 155 of /Users/my.name/Sites/proface/includes/install.inc).

Additional

PDOException: SQLSTATE[HY000] [2002] No such file or directory in system_list() (line 165 of /Users/my.name/Sites/clientnamedirectory/includes/module.inc).

  Drush command terminated abnormally due to an unrecoverable error.


I have a question regarding priority. Do players have to get it the same numbers of time during a step? I mean, for example, it's my turn, after declaring blockers, I get priority and decide to cast a spell. My opponent passes, and I get priority again, because all of players have to pass, right? And in this scenario I would have priority one time more than my opponent. Or maybe I don't get priority again?

I have a two questions connected with priority and stack:   It's my turn, during the combat phase, after the declaring blockers step. Blockers are declared. At the Combat Damage step, I get priority and I pass. My opponent gets priority and decides to put a spell on the stack. Can I respond to him, adding my spell to the stack? And generally, do I always get a chance to respond after spell is put on a stack, independently from the situation? Can I hold priority during opponent's turn? By hold i mean for example when my opponent in his turn cast an instant, i decide to respond, and now basically he would get priority again, and my question is can i hold it by telling that i hold and cast second instant after first one. I know that there is possibility to do it.


I want to increase the size allocated for Ubuntu, but for this I need to reduce the size for Windows. Gparted does not allow managing Windows partitions. What to do?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I'm stuck on the last exercise of the level 14 in Vim-Adventures. According to the following picture, could anyone be able to tell me what I have to do here? Which command do I have to use (c,y,a,d or i) and how ?    Thanks in advance!

I've already defeated the Big Bug.   I see the hint that the small bugs disguised as cursors are vulnerable to the three words "Charity", "Uganda", and "Bram".  I think I have all keys available, I've tried undoing with the bugs on the three words, I've tried motions which include the three words in their range, I have each of the three words stored in a named register, but I haven't figured out how to defeat the three small bug minions underground in Level 14 of Vim Adventures.  I suspect I should have defeated them before defeating Big Bug, maybe even before finding 'undo'. Is there instead something I should do in the 'lorem' buffer where I found the three cursors (Blue, White, and Pink) at the beginning of the level?  How does one defeat the three small bug minions in Level 14?


Is there any way to repair a pre-existing UV map after deleting some unnecessary faces and replacing them by a simpler geometry? Everything of the old mapping works fine. Unfortunately my new vertices are all positioned at the bottom left of the UV map. This leads to rather odd textures in the front of my car model. (See screenshot below reference.) Unfortunately I don't understand yet how customized uv-mapping works. I just want to adapt pre-existing models. I expect I would need to add the new faces to the proper selection group. But how can I do that?

I modified an existing model by removing unwanted vertices, then selecting surrounding vertices and creating faces one triangle at a time (By pressing 'F').  On UV unwrapping the mesh, the faces which were added by me seem to stretch from the very bottom left of the map, shown below.    How do I create a face so it appears on the UV map as expected?


I'm about to release an app that sends data to an online MySQL database, but I'm worried that it will be vulnerable to SQL injection, on the app I run this: URL:  Data: "ID=" & URLEncode(ID) & "&IE=" & URLEncode(IE) Method: POST This is the getsolution.php file:   <?php     header('Access-Control-Allow-Origin: *');     $host = "mywebsite.com";     $username = "YYYY";     $dbname = "ZZZZ";     $passwd = "XYZ";      $con = mysqli_connect($host, $username, $passwd, $dbname);     $ID = filter_input(INPUT_POST, "ID");     $IE = filter_input(INPUT_POST, "IE");     $SQL = mysqli_query($con, "INSERT INTO TABLE (ID, IE) VALUES ('".$ID."', '".$IE."'");      mysqli_close($con); ?>    Is this vulnerable to SQL injection? Thanks

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


Has anyone tried automatic Java to C++ conversion for speed improvements? Is it a maintenance nightmare in the long run? Just read that is used to generate the HTML5 parsing engine in Gecko

I always asked myself if it would be possible to make a Java to C++ converter.  Maybe a tool that converts the Java syntax to the C++ syntax?  I am aware that the languages differ, but simple things like loops where the semantics match 1 to 1.  Is there such a tool? Or is it possible to make one?


How does   apt install chromium   install chromium. All I understand about apt is that it downloads the .deb files and then runs dpkg. Is there anything else apt does?

What does the apt-get install ... command do?  When I enter apt-get install ... command, there are some texts appearing on the screen, but that does not have enough information for me. I want to know if any file is created / edited, any service is started and other activities...  Is there any .sh file executed when the apt-get install ... run? If so, how can I see the content of that sh file?  The reason for this question is recently I tried to install tomcat7 with apt-get install tomcat7. Everything works fine until I install tomcat7-admin (manager web application), the server became unresponsive to any request. I tried this many times, and this always happen.


I am currently undergoing a course on introduction to quantum mechanics and we took the historical approach. I'm currently at DeBroglie wavelength. He introduces the wave particle duality in matter, from which will arise the wavefunction of a particle for example. And we have seen that this wave can take a lot of forms and shares most properties of other waves that we have seen (e.g. water waves, electromagnetic waves, and so on), but I can't seem to grasp two things:   We know that physical waves (water waves or sound) need a physical mean of propagation in order to transfer its energy, but electromagnetic radiation doesn't. It can propagate in vacuum! However, this idea that waves propagate in nothingness does not fit in my mindset, it just can't be! Although, one could argue that, for electric charges, the waves travel due to perturbations in their own field, since it extends itself to infinity and so any changes in the field would be noticeable (for photons I'll guess its a bit different, but that's another question). And so, it kind of has some "mean" to propagate, but I can't see where or "on what" do the wave functions live or travel! Do they simply "exist"? That can't be. What created them? and this leads me to the next question; What is the wavefunction driving force? we can easily create sound, and electromagnetic waves by applying some driving force to their system. But for a particle we assume that it merely has a wave associated to it. But how did it even get there in the first place? Does this wave exist from the beginning of time? We could say and argue intensely "It's a property of the particle!!! and when we "mess" with the particle we change the wave function so this wavefunction is always changing, but where does it come from??   I know that it will always be impossible to answer all the why's but if we have a theory that fits beautifully to our experimental data it's worthwhile to answer as many fundamental questions as possible

In thinking how to ask this question (somewhat) succinctly, I keep coming back to a Microwave Oven.  A Microwave Oven has a grid of holes over the window specifically designed to be smaller in diameter than the wavelength of the microwaves it produces, yet larger than the wavelengths of the visible light spectrum - this is so you can watch your food being heated without getting an eye full of microwaves.  The "realness" of electromagnetic waves seems indisputable - both from the microwave example above, and also because if I want to broadcast a radio wave with a certain wavelength, then I need to make sure I have an antenna of corresponding length to produce the wave I'm looking for.  Furthermore, we discuss and treat these waves as real, measurable "objects" that exist and can be manipulated.     Now, if I want to describe the behavior of my Microwave Oven in the framework of QM (let's pretend my oven is going to only produce 1 photon of energy corresponding to a wavelength of the microwave spectrum for simplicity) then I'll describe the behavior of that photon as a wavefunction that evolves over time and gives a probability distribution within my microwave that similarly does not allow the photon to pass through the safety grid and exit the oven cavity giving me a retinal burn.  The difference is, the wavefunction is never treated as something "real" in this description.  When the safety grid is described as working to protect you because it has holes smaller than the wavelength of the classical waves it's blocking, this is a useful description that seems to describe "real" objects/be-ables.  While it is possible to describe why an individual photon has low probability of passing through the same grid but extended physical properties such as wavelength (in space) are treated as non-real because we're dealing with a point particle and with behavior described by something we also treat as non-real (the wavefunction); it seems unclear to me why we insist this wave function which predicts behavior of physical measurements so well is somehow "non-real."    Put another way, if we have no problem treating EM waves as "Real," then why do we insist on treating the wavefunction that describes the same behavior as "unreal?"  I understand there is recent research (Eric Cavalcanti and his group for one) trying to argue this point, but as every respectable physics professor, I've ever encountered, has treated the wavefunction as an indisputably non-real mathematical tool, I needed to ask this community for an answer.


Does this integral have a closed form?  $$\int \frac{1}{1+ \tan x}\,dx$$  My attempt:  $$\int \frac{1}{1+ \tan x}\,dx=\ln (\sin x + \cos x) +\int \frac{\tan x}{1+ \tan x}\,dx$$  What is next?

$$\int \frac{1}{1+\tan x}dx,$$  A substitution like $t = \tan x, \;dt = (1+t^2)dx$ etc. immediately comes to mind, but I find this method a bit lengthy with the partial fractions. Is there a more concise solution to this?


Using a type from a List for a generic method, like this         Preparing data:       List<object> all = new List<object>();      all.Add(new CustomClass());      all.Add(new ...());   Excecution statements:     foreach (Type item in all)             {                 temp.GenerateDocument<typeof(item)>(item);             }   This should excecute my statement with different types.

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


Are assumptions for multiple linear regression basically the same as simple linear regression? One has to check for linearity for each of the continuous predictors versus the outcome variable? If there are categorical variables, one has to check the linearity between each of the continuous predictors with the outcome variable for all levels of the categorical variables?

What are the usual assumptions for linear regression?   Do they include:   a linear relationship between the independent and dependent variable independent errors normal distribution of errors homoscedasticity   Are there any others?


I am trying to solve the following exercise:  Let $\alpha$ be algebraic over $F$. Suppose the degree of $\alpha$ over $F$ is odd. Show that $F(\alpha)=F(\alpha^2)$  It's not clear to me how to solve this. I've been thinking and I guess that $F(\alpha^2)\subset F(\alpha)$ but I don't know about the other direction. Can you help me?

Suppose that $[F(\alpha):F]$ is odd. Show that $F(\alpha)=F(\alpha^{2})$. Generalize this statement if possible.    Clearly, we always have that $F(\alpha^{2}) \subset F(\alpha)$ by definition of the field generated by $F$ and $\alpha$ (assuming that we have a field extension $K/F$ where $\alpha \in K$). However, how can we show the other inclusion? If the degree is odd, then it follows that $\alpha$ will solve a polynomial of odd degree in $K[x]$ (for the coefficients in $F$). What would be a way to proceed from here? (and as well to generalize the statement?)  I was thinking of using the formula: $[F(\alpha):F]=[F(\alpha):F(\alpha^{2})][F(\alpha^{2}):F]$ and maybe proceed from there.   Thanks for the help.


is there any chance to bypass google pixel FRP for februrary security patch level ? any signs ?

I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it.  Now the person can't get past setup because it's saying he must login with an account previously synced to the phone.   Is there anything I can do from my side to remove this lock?


I presented the following problem to some of my students recently (from Senior Mathematical Challenge- edited by Gardiner)  In the Fibonacci sequence $1, 1, 2, 3, 5, 8, 13, 21, 34, 55,\ldots$ each term after the first two is the sum of the two previous terms. What is the sum to infinity of the series: $$\frac{1}{2} + \frac{1}{4}+ \frac{2}{8} + \frac{3}{16} + \frac{5}{32} +\frac{8}{64} + \frac{13}{128} +\frac{21}{256} +\frac{34}{512}+ \frac{55}{1024} + \cdots$$  Now, I solved this using an infinite geometric matrix series (incorporating the matrix version of the relation $a_n= \frac{a_{n-1}}{2}+ \frac{a_{n-2}}{4}$), and my students, after much hinting on my part, googled the necessary string to stumble across Binet's formula (which allows one to split the series into two simple, if rather messy, geometrics). Both of these are good methods, but neither really seems plausible for a challenge set for 15-18 year olds under exam conditions. So how is one supposed to do it?

We are familiar with the nifty fact that given the Fibonacci series $F_n = 0, 1, 1, 2, 3, 5, 8,\dots$ then $0.0112358\dots\approx 1/89$. In fact,  $$\sum_{n=0}^{\infty}\frac{F_n}{10^n} = \frac{10}{89}$$  How do we prove that, more generally, for $p > 1$ then,  $$\sum_{n=0}^{\infty}\frac{F_n}{p^n} = \frac{p}{p^2-p-1}$$  (The above simply was the case $p = 10$.)


For any given file in the web root, the permissions are initially set to me:www-data with chmod 750. Opening a file in an editor and saving via the editors save command changes the group to me:me. How do I prevent group changes on save?

I don't want the shared folder to be accessible by anyone on the system, I want it to be accessible just to a restricted set of users.  How to I do that?


I have a string array and a for loop to add items to list.  Here is my code:  //customers table :  // Firstname, Lastname, Age, BrowserName, Date  string[] browsers = {"chrome", "Firefox", "Edge"} var users = db.customers.ToList();  list<string> names = new List<string>();  for(var i = 0; i < browsers.lenght; i++) {      names.Add(users.where(x => x.BrowserName == browsers[i]).FirstName); }       Is there any way to use Linq method or something else instead of for ?

I'd like to do the equivalent of the following in LINQ, but I can't figure out how:  IEnumerable<Item> items = GetItems(); items.ForEach(i => i.DoStuff());   What is the real syntax?


I have seen the hat leaderboard, and here's how it looks like: 1. Alecxe, a member for 7 years, 7 months, 29 hats 1. eLRuLL, a member for 7 years, 5 months, 29 hats 3. Eran, a member for 6 years, 10 months, 28 hats  As you can see, Eran got 3rd, instead of 2nd place. Is there a logical reason for this?

I thought that they represented the rank of the person by the number of hats they have collected. The numbers "jump" however, they do not follow an unbroken order:  There are also really big gaps:  What do these number mean? Are they supposed to be like this?


All mass with a temperature creates infrared light, but what is the cause of this? How is it created?

By conservation of energy, the solid is left in a lower energy state following emission of a photon.  Clearly absorption and emission balance at thermal equilibrium, however, thermodynamic equilibrium is a statement of the mean behaviour of the system, not a statement that the internal energy is constant on arbitrarily short timescales.  The energy has to come from somewhere during emission, and go somewhere during absorption.  Energy in a solid can be stored as kinetic and potential energy of electrons and nuclei, either individually or in collective modes such as phonons and plasmons.  In thermal equilibrium energy will be stored more or less in various forms depending on the temperature and material.  However, even if most of the thermal energy in a particular solid at temperature $T$ is stored in the form of phonons, it could be that phonons primarily interact with light indirectly via electrons, e.g. a phonon excites an electron in a phonon-electron interaction, which can interact with light via the EM field.  Given that light is an EM field, it makes sense to me that it is emitted and absorbed by charged particles.  The electron-photon interaction is probably dominant for visible and ultraviolet light, given that metals are opaque, while semiconductors and insulators are transparent to (visible and UV) light with energy lower than their bandgap. However, once you get into energies in the IR and below, or X-rays and above, other mechanisms apparently take over.  For example, on the high-energy end of the spectrum I've heard that gamma rays can interact directly with nuclear degrees of freedom, which is reasonable considering that gamma rays are emitted during a lot of nuclear reactions.  A review of  might give clues to important light-matter interactions over a broad range of wavelengths.  Whether all of the these processes are involved in blackbody emission is a somewhat different question.  What physical processes mediate energy transfer during blackbody emission, and in which energy ranges are the various processes dominant?


Is there a law or anyway to know the factorial of a fractional number, because as I see the law of factorization n! = n x (n-1) x (n-2) x ... x 3 x 2 x 1 isn't saying that the number should be an integer. If it does require an integer then shouldn't the law be [n]! = [n] x ([n]-1) x ([n]-2) x ...?

From what I know, the factorial function is defined as follows:  $$n! = n(n-1)(n-2) \cdots(3)(2)(1)$$  And $0! = 1$. However,  seems to be saying that you can take the factorial of a fraction, like, for instance, $\frac{1}{2}!$, which they claim is equal to $\frac{1}{2}\sqrt\pi$ due to something called the gamma function. Moreover, they start getting the factorial of negative numbers, like $-\frac{1}{2}! = \sqrt{\pi}$  How is this possible? What is the definition of the factorial of a fraction? What about negative numbers?  I tried researching it on Wikipedia and such, but there doesn't seem to be a clear-cut answer.


I have made on click function for dynamic elements but its not working, Is there a way around it?  $( "p" ).on( "myCustomEvent", function( event, myName ) {    $( this ).text( myName + ", hi there!" );    $( "span" )     .stop()     .css( "opacity", 1 )     .text( "myName = " + myName )     .fadeIn( 30 )     .fadeOut( 5000 ); });  $( "button" ).click(function () {   $( "p" ).trigger( "myCustomEvent", [ "John" ] );   //alert(1); });  var loop = setInterval(function(){     $('.box').append('<button>Trigger custom event</button>');  },1000);  window.setTimeout(function(){ clearInterval(loop); },2000);   For code

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


I want to calculate the size of $GL_n(\mathbb{F}_p)$. Originally I was locking specifically for the size of $GL_2(\mathbb{F}_5)$ but I managed to calculate it by directly calculating ${\{A\in M_2(\mathbb{F}_5)\mid detA=0\}}$ and some arithmetic. I was wondering if there is a generalization and couldn't find one. Thanks in advance!

$F$ is a finite field of order $q$. What is the size of $\operatorname{GL}_n(F)$ ?  I am reading Dummit and Foote "Abstract Algebra".  The following formula is given:  $(q^n - 1)(q^n - q)\cdots(q^n - q^{n-1})$.  The case for $n = 1$ is trivial.  I understand that for $n = 2$  the first row of the matrix can be any ordered pair of field elements except for $0,0$. and the second row can be any ordered pair of field elements that is not a multiple of the first row.  So for $n = 2$  there are $(q^n - 1)(q^n - q)$ invertible matrices.  For $n\geq 3$, I cannot seem to understand why  the formula works.  I have looked at Sloane's OEIS A002884.  I have also constructed and stared at a list of all $168$ $3\times 3$ invertible matrices over $GF(2)$.  I would most appreciate a concrete and detailed explanation of how say $(2^3 - 1)(2^3 - 2)(2^3 - 2^2)$ counts these $168$ matrices.


I been searching a lot lately about header files and stuff and i always see the same things, but i dont get something, why use the .h header file when you can just throw the code on the .cpp file?  Why do this?:  //getten.h #pragma once int GetTen();  //getten.cpp #include getten.h int GetTen(){ return 10; }  //main.cpp #include "getten.h" printf(GetTen());   When you can do:  //getten.cpp int GetTen(){ return 10; }  //main.cpp #include "getten.cpp" printf(GetTen());

Why does C++ have header files and .cpp files?


This command I've been trying to perform. I got the code from minersneedcoolshoes.com I used the banner maker, made a bunch of banners, and clicked export to chest. It says that there is unbalanced curly brackets. My eyes have issues focusing on all the brackets, which makes me unable to see the issue. I hope you can help me.  Command (I've split it up to different banners)  /setblock 13 65 9 minecraft:chest 0 replace  {Items: [{id:minecraft:banner,Count:1,Slot:0,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ts,Color:4},{Pattern:rs,Color:4},{Pattern:hhb,Color:15},{Pattern:ms,Color:4},{Pattern:ls,Color:4},{Pattern:drs,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:1,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ts,Color:4},{Pattern:bs,Color:4},{Pattern:ms,Color:4},{Pattern:ls,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:2,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ls,Color:4},{Pattern:rs,Color:4},{Pattern:ts,Color:4},{Pattern:ms,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:3,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:bo,Color:15},{Pattern:ls,Color:4},{Pattern:bs,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:4,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:drs,Color:4},{Pattern:dls,Color:4},{Pattern:hhb,Color:15},{Pattern:ls,Color:4},{Pattern:rs,Color:4}]}}}, {id:minecraft:banner,Count:1,Slot:8,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:9,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:bo,Color:15},{Pattern:ls,Color:4},{Pattern:bs,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:10,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ls,Color:4},{Pattern:rs,Color:4},{Pattern:ts,Color:4},{Pattern:ms,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:11,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ls,Color:4},{Pattern:rs,Color:4},{Pattern:drs,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:12,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:bo,Color:15},{Pattern:cs,Color:4},{Pattern:ts,Color:4},{Pattern:bs,Color:4},{Pattern:bo,Color:15}]}}}, {id:minecraft:banner,Count:1,Slot:13,tag:{BlockEntityTag:{Base:15,Patterns:[{Pattern:ls,Color:4},{Pattern:rs,Color:4},{Pattern:ts,Color:4},{Pattern:ms,Color:4},{Pattern:bo,Color:15}]}}},}]}   I always split my commands like this, so that its easier to read.

I am trying to make a chest that is called 'I' that has another chest inside called 'II' that has another chest inside called 'III' that has another chest inside called 'IV' that has another chest called 'V' that has a piece of paper called 'An important message...' and it has a lore saying      自分自身を解放する方法があります。呪文はもう一度私たちの魂を得る。しかし、我々はそれを話さなければならない - 私たちは話すないとき - 音が出ないを。我々は、すべての耳が聞こえています。だから、失敗は避けられない。そして、私は今まで私の中の悪魔で、私の内部賭けに入る後悔。不滅か。魂のひったくり。ジェイク対ゲイリー·クルック。野望は過大評価され。   I keep getting 'Unbalanced Curly Brackets' every time I try use this command. I checked with Notepad++, I'm pretty sure the curly brackets are right? Here's the command below, but what am I doing wrong?  /setblock ~ ~ ~ chest 0 replace {Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"II"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"III"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"IV"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"V"},Items:[{id:339,Count:1,Slot:13,tag:{display:{Name:"An important message...",Lore:[自分自身を解放する方法があります。呪文はもう一度私たちの魂を得る。しかし、我々はそれを話さなければならない - 私たちは話すないとき - 音が出ないを。我々は、すべての耳が聞こえています。だから、失敗は避けられない。そして、私は今まで私の中の悪魔で、私の内部賭けに入る後悔。不滅か。魂のひったくり。ジェイク対ゲイリー·クルック。野望は過大評価され。]}}}]}}}]}}}}],display:{Name:"I"}}}


I'm using Linux console for years, but currently started thinking of how it actually works. Typing a command as a string and pressing Enter returns its output in the same terminal window. Opening a new terminal window and executing tty shows the following result: $ tty /dev/pts/10   defines that:  A process that expects to be connected to  a  terminal,  can  open the slave end of a pseudoterminal and then be driven by a program that has opened the master end.  Anything that is written on the master end is provided to the process on the slave end as though it was input typed on a terminal. [...] Conversely, anything that is written to the slave end of the pseudoterminal can be read by the process that is connected to the master end  My understanding: The actual terminal window is connected to a slave /dev/pts/10 and all the input I type into the terminal window is written on the slave end and then read on the master end. A process connected to the master end knows what to do with all the strings user type, executes them and write commands results on the master end which are then read on the slave end and displayed in the terminal window. The question: What is the process connected to the master end which knows how to execute commands which users type as strings?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas.  This is what I understand so far:   The emulated terminal makes different system calls to /dev/ptmx, the master part of the pseudo-terminal. The master part of the pseudo terminal allocates a file in /dev/pts/[0-N], corresponding to the obsolete serial port, and "attaches" a slave pseudo terminal to it. The slave pseudo terminal keeps information such as session Id, foreground job, screen size.   Here are my questions:   Has ptmx any purpose besides allocating the slave part? Does it provide some kind of "intelligence", or the emulated terminal (xterm for instance) has all the intelligence of behaving like a terminal? Why does xterm has to interact with the master part, as it only forwards the stdout and stdin of the slave part? Why can't it directly write and read from the pts file? Is a session ID always attached to one pts file and vice versa? Could I type a ps command and found 2 sessionId for the same /dev/pts/X? What other information does the pts store? Does Xterm update all fields by himself, or does the ptm add some "intelligence" on it?     1. I base my understanding on the , and the  posts, as on several other


Well my English not very good and I am a beginner of C pls don't mind.Here's the questions , when I put in ++a and a-- at the same program ,the second always read the forward one , can someone help me to figure it out im will appreciate it. #include<stdio.h> #include<stdlib.h>  int main() {     int a = 8;     printf("a=%d\n", ++a);    printf("a=%d\n", a--);     system("pause");    return 0; }  it output a=9 a=9

In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?


I need advice on how I can avoid java.lang.NullPointerException when dealing with JDBC result set which I put on Swing components such as JTable  I have written a method which gets the result set encapsulated in an object from a DAO Implementation which I populate inside a DefaultTableModel.  The problems is, the object returned by the dao implementation service may or may not have data/result set if the database table has no record yet.  This results to a NullPointerException  public DefaultTableModel getMiscellaneous(int gradeLevelId){         DefaultTableModel defaultTableModel = new DefaultTableModel();         String[] columns = {"Name","Amount"};         MiscellaneousFees miscellaneousFees =  schoolFeesDaoImpl.getMiscellaneous(gradeLevelId);         List<Fee> feeList = miscellaneousFees.getFees();         for(Fee fee: feeList){             Object[] rowData = {fee.getName(),fee.getAmount()};             defaultTableModel.addRow(rowData);         }         defaultTableModel.setColumnIdentifiers(columns);         return defaultTableModel;     }  public MiscellaneousFees getMiscellaneous(int gradeLevelId) {         MiscellaneousFees miscellaneousFees = new MiscellaneousFees();         List<Fee> feeList = new ArrayList<>();          String SQL = "{CALL getMiscellaneousFeesByGradeLevelId(?)}";         try (Connection con = DBUtil.getConnection(DBType.MYSQL);                 CallableStatement cs = con.prepareCall(SQL);){             cs.setInt(1, gradeLevelId);             try(ResultSet rs = cs.executeQuery();){                 while(rs.next()){                     SchoolYear schoolYear = new SchoolYear();                     schoolYear.setSchoolYearId(rs.getInt("schoolyear_id"));                     schoolYear.setYearFrom(rs.getInt("yearFrom"));                     schoolYear.setYearTo(rs.getInt("yearTo"));                     schoolYear.setIsActive(rs.getBoolean("isActive"));                     schoolYear.setStart_date(rs.getDate("start_date"));                     schoolYear.setEnd_date(rs.getDate("end_date"));                     schoolYear.setIsCurrentSchoolYear(rs.getBoolean("isCurrentSchoolYear"));                      GradeLevel gradeLevel = new GradeLevel();                     gradeLevel.setId(rs.getInt("gradelevel_id"));                     gradeLevel.setLevel(rs.getInt("grade_level"));                     gradeLevel.setIsActive(rs.getBoolean("isActive"));                      FeeCategory feeCategory = new FeeCategory();                     feeCategory.setCategory(rs.getString("fee_category"));                     feeCategory.setId(rs.getInt("fee_category_id"));                      Fee fee = new Fee();                     fee.setId(rs.getInt("fee_id"));                     fee.setName(rs.getString("fee_name"));                     fee.setDescription(rs.getString("fee_description"));                     fee.setAmount(rs.getDouble("fee_amount"));                     fee.setFeeCategory(feeCategory);                     fee.setGradeLevel(gradeLevel);                     fee.setSchoolYear(schoolYear);                     feeList.add(fee);                 }                 miscellaneousFees.setFees(feeList);             }         } catch (SQLException e) {             JOptionPane.showMessageDialog(null,e.getMessage());         }         return miscellaneousFees;     }   Any suggestion or advice of how I can prevent the NullPointerException when result set contained in the miscellaneous object is empty?  I get the NullPointerException error in this line of code   MiscellaneousFees miscellaneousFees =  schoolFeesDaoImpl.getMiscellaneous(gradeLevelId);   Thank you.

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