In Harry Potter and the Prisoner of Azkeban, Lupin, the werewolf, has to take a potion every full moon to keep his inner wolf under control. It causes him to miss class. Now, the first time it happens (the students are told he is sick), it's stormy outside, so the clouds would be covering the moon.      " 'Sorry I'm late, Professor Lupin. I --' 　　But it wasn't Professor   Lupin who looked up at him from the teacher's desk; it was Snape.   　　'This lesson began ten minutes ago, Potter, so I think we'll make it   ten points from Gryffindor. Sit down.' "   　     " 'D'you know what that --' (he called Snape something that made   Hermione say 'Ron!') '-- is making me do? I've got to scrub out the   bedpans in the hospital wing. Without magic!' He was breathing deeply,   his fists clenched. 'Why couldn't Black have hidden in Snape's office,   eh? He could have finished him off for us!'  　　Harry woke extremely   early the next morning; so early that it was till dark. For a moment   he thought the roaring of the wind had woken him. Then he felt a cold   breeze on the back of his neck and sat bolt upright -- Peeves the   Poltergeist had been floating next to him, blowing hard in his ear."   So when Lupin was "sick" the first time, it was storming really hard outside, so the moon wouldn't have been visible. But, later in the book it says      "A cloud shifted. There were suddenly dim shadows on the ground. Their   party was bathed in moonlight. 　　Snape collided with Lupin, Pettigrew,   and Ron, who had stopped abruptly. Black froze. He flung out one arm   to make Harry and Hermione stop. 　　Harry could see Lupin's silhouette.   He had gone rigid. Then his limbs began to shake. 　　'Oh, my --"   Hermione gasped. "He didn't take his potion tonight! He's not safe!"   　　"Run," Black whispered. "Run. Now.' "   It says that "A cloud shifted. There were suddenly dim shadows on the ground. Their party was bathed in moonlight." and "Harry could see Lupin's silhouette. He had gone rigid. Then his limbs began to shake." Meaning that it's direct moonlight that causes the transformation. So why did Lupin transform the first time, if it was stormy outside?

Researching another question, I came across a quote I was looking for that seems to show werewolves only transform in the moonlight:  A cloud shifted. There were suddenly dim shadows on the ground. Their party was bathed in moonlight. Snape collided with Lupin, Pettigrew, and Ron, who had stopped abruptly. Black froze. He flung out one arm to make Harry and Hermione stop. Harry could see Lupin's silhouette. He had gone rigid. Then his limbs began to shake. "Oh, my --" Hermione gasped. "He didn't take his potion tonight! He's not safe!"  I had always figured that when he was in the Shrieking Shack he was shaded from the moon, so it didn't affect him. But then I thought about his school days - where was he when he transformed? The Shrieking Shack!  And if it does take moonlight, why couldn't he just hang out in the dungeons or somewhere else in Hogwarts? Anyone see a way to reconcile these?


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

Help please solve the following situation:  There are two kinds of API where message history is stored, it's  and Chat2Desc (). While these two but can then others appear.  And my database with the users table:  Table users id , email, phone, ...   In Zopim, users are identified via email, and in Chat2Desc through the phone. For me, these two fields are important, whatever the chat was and how many would not be.  That is, if I receive an email or a user's phone in messages, I make a request to my database (table users) to identify my user.  And in principle, even the structure of chat rooms is not important.I'll somehow choose them.And here's how to properly save them, so much so that I had one structure for everyone.  And that's what I came up with (Something I don't like, especially the chat_clients table):   Explanation:  Table chats (Data for chat):   client_id   - indicates the id of the chat_clients table duration    - the duration of the chat (120 seconds) system_type - stores the name of the chat (Zopim, Chat2Desc, ...) created_at  - creation date   Table  chat_clients (information about users who were in the chat):   is_agent      - 0 | 1: 1 => my user, 0 => not my user_id       - is the user id. Contains either id from the users table or empty. assigned_data - those initials under which users were in the chat bean_module   - it does not matter (information about my user) unique_col    - There will either be a email (from Zopim) or a phone (from Chat2Desc, Or I think to store the id of the users table). Will guarantee the uniqueness of the values.   The users_id + unique_col bunch is unique (UNIQUE KEY user_id_unique_col_UQ (user_id, unique_col))  Table chat_messages:   text       - the text of the message. client_id  - indicates the id of the chat_clients table chat_id    - indicates the id of the table chats file_id    - indicates the id of the chat_files table transport  - the value will be for Chat2Desc (Viber, WhatsApp, ...), for Zopim, so it's not empty, Zopim   Table chat_files Information about the transferred files in the chat. Analogical tables may be not to store additional information.  In the future I'm going to select the history of correspondence for each user.  Q: How can I improve the structure of tables to get more flexibility ?  Thank you in advance.


What does the word 'sport' mean in the following sentence?  The day at school begins at 8:00am, when all the students sport sleepy faces and bleary eyes.  I don't quite understand, can you make up another sentence with the same meaning?

I found a phrase, ‘the new tablet of iPad can sport at least one camera for video conferencing’ in today’s  reporting iPad 2. I guess ‘Sport’ here implies ‘chase (move) after plural objects' or ‘Catch' them, because it says 'at least one camera.' But I’m not accustomed to the word, ‘sport’ used in a such way.   COD at hand gives only two meanings of ‘Sport’ as a verb, - 1. to have or wear sth in a proud way so that everyone can see. 2. to play in a happy and lively way. In addition to the above definition, an English Japanese dictionary (Readers Plus Dictionary) provides ‘play with other sex’ and ‘give’ as  slang usages, and I can’t find the definition anything near to the context used in the following sentence.   What does ‘Sport’ here exactly mean? Is this common way of using ‘Sport’ as a verb?     A report from the Wall Street Journal says that Apple has begun production of the next generation of the iPad. The Wall Street Journal, citing people familiar with the matter, claims that the new tablet will be thinner and lighter, will sport at least one camera for video conferencing and will have better graphics and a more memory.


I'm trying to compress an image using Run Length encoding and SAVE it as JPEG.  But when i try to read BufferedImage from BYteArrayInputStream the program fails, returning following at line below (BufferedImage bImage2 = ImageIO.read(bis);) cus the ImageIO.read(bis) returns null - bis is not null:  Exception in thread "main" java.lang.IllegalArgumentException: image == null! at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(ImageTypeSpecifier.java:925) at javax.imageio.ImageIO.getWriter(ImageIO.java:1592) at javax.imageio.ImageIO.write(ImageIO.java:1520) at Compression.main(Compression.java:17)   Here is the code I'm currently using:  File input = new File("testEmily.jpeg");     BufferedImage image = ImageIO.read(input);     byte[] byteArray = RunLength.toByteArrayAutoClosable(image, "jpeg");     byte[] compressedBytes2 = RunLength.compress(byteArray);     ByteArrayInputStream bis = new ByteArrayInputStream(compressedBytes2);     BufferedImage bImage2 = ImageIO.read(bis);     ImageIO.write(bImage2, "jpeg", new File("compressedEmily.jpeg") );   Also this is github repo link if someone wants to reproduce -

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?


What is best for which use, advantage, or application, especially for climbing.

What is the best way to determine the correct crank length for my height and more specifically my leg length?


I am learning how to write a package by looking at code from existing packages. A nice one on GitHub () uses a lot of  \newcommand definitions which contain the @ character (e.g. \bk@BW , \bk@doublestate etc.). Is this just a style of writing \newcommand or does the @ character have special significance?

The  mention commands such as \@author and \@director, and latex.ltx is full of them. However, when I use \@author in my document, it just outputs the word "author". What does the @ in command names mean?


"The theory of general relativity predicts that a sufficiently compact mass can deform spacetime to form a black hole".  Why does this happen? I mean, why something finite (like the core of a very masive star) should lead to an infinitly small point (singularity). For me it's like spacetime has a "wekness" and it breaks if a region contains to much mass/energy.  I imagined that the matter will just be very very compacted, but not infinitly compacted and the spacetime bent accordingly.  Neutron stars are also very compacted and they bend a lot the space time.   I don't understand why if we continue to compress the matter even more (and I don't say "compress it to an infinitly small point"), suddenly the black hole is created. Why is this happening?

Does the Schwarzschild radius exist at the exact tipping point where neutron degeneracy pressure fails?  For example, consider a hypothetical neutron star that is being held up just below the limit of neutron degeneracy pressure. If the neutron star gains enough mass (assume a constant radius), it will collapse into a black hole. Does neutron degeneracy pressure fail at the exact point where the neutron star gains enough mass appropriate for the resultant black hole's Schwarzschild radius (where the escape velocity = c)? If so, why do these seemingly unrelated limits match?  Or... does the existing neutron star's radius exceed the resultant black hole's radius? In other words, does neutron degeneracy pressure fail, and as the the neutron star's radius decreases when collapsing, does it eventually reach a smaller (than in the previous scenario) Schwarzschild radius? If this is the case, what is the "in-between" state of matter as the neutron star collapses into a black hole?  Thank you!


I'd like to launch a site in French: , but my proposal got blocked by a rule I wasn't aware of (since there exist foreign language SE sites that have been launched through Area 51) and that I don't understand. Why is this the case, and can it change in the future? Related questions and summary   that treats a similar subject. In the comments, I see that the sentence "English is also a foreign language to many of us" received nine upvotes. I would had that Python language math overflows are definitively written in totally different language, and this is not a problem.

I know of the following rules for creating a proposal on Area 51:  The scope must be reasonably well-defined, not too unclear (e.g. "cool stuff"), too opinion-based (e.g. "car reviews"), too broad (e.g. "life on Earth"), or too narrow (e.g. "The 1995 academic misconduct scandal at East Oak Mews High School"). One  come to Area 51 with an already existing community rather than hope to build one on Area 51. Proposals that are subsets of existing sites are not acceptable (e.g.  — deleted). These get closed as "This subject is already well-covered by a live Stack Exchange site. We generally do not split off subjects simply to give them their own space." Proposals for non-English sites .  Other than the criteria above, are there any per se restrictions on site content for an Area 51 proposal? If so, what topics are currently banned? I would expect a proposal for a "Let's organize a lawsuit against Stack Exchange" or "[Specific SE staff member] sucks, amirite?" would get closed for obvious reasons, but I'm interested if there are any non-obvious topics that are not currently allowed in proposals regardless of how well-defined, well-scoped, original, and well-supported by a community they are. Having a list of banned topics would be helpful to potential proposers as well as the communities that back them. For example, I wouldn't want to go to all the effort of organizing a community, bringing them to Area 51, etc., only to have my proposal closed with a curt "Sorry, due to the political climate, we are not currently accepting proposals for sites about real-life weapons." custom closure. To be clear, I am asking solely about topic restrictions (e.g. "no sites about fishing, hunting, or weapons"). I'm not asking about clarity requirements, the requirement to have a pre-existing community, not duplicating an existing site, or the requirement to not use sock puppets to artificially inflate proposal stats. Those requirements are already well-defined elsewhere or else are common sense. Also to be clear, I don't have a specific proposal idea in mind right now or the community to make it happen. I'm asking in general. The question could be rephrased as "What are those topics where I shouldn't even bother to try to define, gather a community, etc. because any attempt to propose a site will be summarily closed due to covering a banned topic?" This is not a duplicate of  because that question is about the appropriateness of expanding a proposal to cover things that are acceptable proposal topics but arguably don't make sense in combination with the original proposal scope. My question is about topics that are completely banned from proposals regardless of whether they are included in the original proposal description or tacked on by the community later.


I got a Tickr X heart rate monitor. It uses BTLE to interoperate with iPhone and Apple Watch. On the first day I got it, I paired it with my iPhone.  Then I decided to keep it paired with my Apple Watch instead, since that replaces the less-accurate optical heart rate monitor built into the watch.  But, it seems that my iPhone hijacks the Tickr before my Apple Watch can pair with it. When the iPhone shows “Connected” for the Tickr, the watch does not show the Tickr as a health device. When I turn off the iPhone Bluetooth, the Tickr appears on the Apple Watch.  So, to the best of my understanding, I need my iPhone to forget the Tickr and stop auto-connecting to it. But I can’t figure out how to unpair the Tickr from the iPhone — it is the only Bluetooth device that does not have the encircled “i”. How do I make the phone forget this device? Or am I misdiagnosing the situation?

I would like to remove my Raspberry Pi from my iPhone 8 (running iOS 11.2.1) as a connected bluetooth device.  Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue circled "i") to show the "Disconnect" and "Forget Device" dialogs:    Unfortunately, iOS does not give me this option for my device. The bluetooth device list does not contain an "i" for the item, and there is seemingly no other way to disconnect.    How do I unpair this device if there is no button to trigger to the unpair prompt?  Due to work restrictions I cannot completely reset the device.


How its works without error if we use both extends Thread implements Runnable together ?  public class MyThread extends Thread implements Runnable{  @Override public void run() {     // TODO Auto-generated method stub  } }   Edit: Thread already implements Runnable, so its meaning less to use both.  If I declare a class like this   MyThread extends implements Runnable, Runnable{    ... }   Its "Duplicate interface Runnable for the type MyThread", so we cant compile.  Then why we didn't get error for this  public class MyThread extends Thread implements Runnable{ .. }

From what time I've spent with threads in Java, I've found these two ways to write threads:  With implements Runnable:  public class MyRunnable implements Runnable {     public void run() {         //Code     } } //Started with a "new Thread(new MyRunnable()).start()" call   Or, with extends Thread:  public class MyThread extends Thread {     public MyThread() {         super("MyThread");     }     public void run() {         //Code     } } //Started with a "new MyThread().start()" call   Is there any significant difference in these two blocks of code ?


I live in the Northeastern part of the US. We've had a lot of snow recently. Part of living in a snowy area is clearing the collected snow pack from the wheel well so that it doesn't interfere with driving. The snow is usually filthy and ice-coated from where the tires have kicked crud up from the road surface.  We call these snow goblins and most people make it a habit to kick off the snow goblins before setting out in the car.  It's a common expression around here, but I'm wondering how far it extends regionally. Do most snow-experiencing regions in the US and Canada have snow goblins? Or are they called something else?  And I'm not asking what snow goblins are called, because they are called snow goblins, so the "duplicate" doesn't have an answer for me.

Snowy areas commonly see snow collect between a car body and tire. There is some strange satisfaction in kicking that snow off of the car and I've been in many conversations about miscellaneous details of this particular type of snow collection. Photographic example:    But is there a word I can use to refer to this clump? I am looking for a word similar to "icicle" or "stalactite" but a bit more specific.


Does anyone know how many suits of power armor I can leave at red rocket truck stop before I should worry that they will spawn away. Note that none have fusion cores in them as I took them out when I store them there. I'm looking at 9 suits of power armor there now

I've seen videos of some folks having several armor sets (4 is the most I've seen so far) standing about on their settlement. I'm wondering if having too many would cause some sets to disappear. They're not like guns/items that you can safely store in settlement crates, the suits kind of just... stand around. (I know there's the extra step of taking out the fusion cores, so that NPC's don't use them.)  Is there a limit to the number of Power Armor sets you can keep?


I have a commit that involves changes to several files. Now I want to remove the changes that I did to one of the files. More precisely, I want this file to be identical to its current version on the remote master. How can I achieve this?  I guess that   git checkout -- <filename>   might do what I need but I am not sure.  I have also seen this syntax:  git checkout <commit> <filename>   I guess that the last command removes the changes of the file introduce by a particular commit but what then the first command does? Does it remove the changes introduced by all commits performed after git pull?

I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous version.   I have done a git log along with a git diff to find the revision I need, but just have no idea how to get the file back to its former state in the past.


I have an array dataset of about 650.000 points. I want to test if the dataset follow a normal distribution or any other distribution. The first thing I did was to split the data in groups, find the frequency of each one and then create a simple chart. Here is the result:  LogY axis:   Normal axis:   Then, I tried to apply a statistic package in Python for Hypothesis null.  The first one:  with result (26576.286833062259, 0.0)  The second one:  with result (1.0, 0.0)  Both of them have p-value equal to zero which means that the data doesn't follow a normal distribution. Do you think that that this is valid or am I doing something wrong?  I tried it also with all the different distributions from this  and here is the results:  anglit (1.0, 0.0) arcsine (1.0, 0.0) cauchy (0.97256179317853242, 0.0) cosine (1.0, 0.0) expon (0.99998329829920973, 0.0) gilbrat (0.99251782771674257, 0.0) gumbel_r (0.99998329843868239, 0.0) gumbel_l (1.0, 0.0) halfcauchy (0.94812454120633505, 0.0) halflogistic (0.99996659715630376, 0.0) halfnorm (1.0, 0.0) hypsecant (0.9999893673670458, 0.0) kstwobign (1.0, 0.0) laplace (0.99999164914960492, 0.0) logistic (0.99998329857815205, 0.0) maxwell (1.0, 0.0) norm (1.0, 0.0) rayleigh (1.0, 0.0) semicircular (1.0, 0.0) uniform (1.0, 0.0) wald (0.99981187008374384, 0.0)

A former colleague once argued to me as follows:      We usually apply normality tests to the results of processes that,   under the null, generate random variables that are only   asymptotically or nearly normal (with the 'asymptotically' part dependent on some quantity which we cannot make large); In the era of   cheap memory, big data, and fast processors, normality tests should   always reject the null of normal distribution for large (though not insanely large) samples. And so, perversely, normality tests should   only be used for small samples, when they presumably have lower power   and less control over type I rate.   Is this a valid argument? Is this a well-known argument? Are there well known tests for a 'fuzzier' null hypothesis than normality?


Start up toward login screen lasts about 40sec on both(12.10 and 12.04). This is good for me.  But after login, there is quite difference. System will start up in:   Ubuntu 12.04: 10-13sec Ubuntu 12.10: at least 30sec   I have chromium in start up applications and this is the only non default app there. I also disabled some unneeded apps such as Bluetooth Manager, ... I also have installed preload.    Is there problem on my side or is the new Ubuntu slower in this way?  My PCs info: Intel® Pentium(R) CPU G840 @ 2.80GHz × 2 GeForce GTS 450/PCIe/SSE2 Memory 3.9 GiB Ubuntu 12.10 32-bit

I have seen many videos that make Ubuntu faster, but these methods only make desktop performance faster.  I am looking to make my computer boot faster. Is their anything I can do to make Ubuntu boot significantly faster?


I define a function from positive integers to positive integers as follows. First, write the number in decimal notation. Then, reverse the digits and delete any leading zeros, if any leading zeros are there. Then, the number you get is the output of the function. I denote this function by $\operatorname{rev}(x)$. For example, $\operatorname{rev}(2)=2$, $\operatorname{rev}(10)=1$, and $\operatorname{rev}(120)=21$. Does the function $\operatorname{rev}$ satisfy the functional equation $\operatorname{rev}(x)=\operatorname{rev}(\operatorname{rev}(\operatorname{rev}(x)))$?

I'm assuming this theorem was found by someone else before, but I found this relationship between square numbers of 3 digits or less. The theorem is this: If you reverse the digits in a square number, then the result will also be a square number. Take the square 961. It is 31 squared, and if you reverse the digits you will get 169, which is also a square number. Plus, 31 and 13(the roots of these reversed squares) are also reverses of eachother. The problem is this breaks with 4 or more digits. If I take the square 1024 and reverse the digits, I get 4201, which is not a square. How can I expand this theorem to fit 4 or more digits?


I have a table that looks like this (d could be the day, and h1 h2 h3 the values of the single hours of the day(assuming the day has 3 hours)):  d  h1 h2 h3 1  1  2  3  2  4  5  6 3  7  8  9   and I what an output like this (one row with all the hours):  d h value 1 1 1 1 2 2 1 3 3 2 1 4 2 2 5 2 3 6 3 1 7 3 2 8 3 3 9   Is there a way do this with MySQL?  Edit: Having to address every single column in the syntax should be avoided, because this is supposed to also work for a lot of columns.

I have a table with several columns which I want to SELECT:  SELECT his_name , her_name, other_name FROM foo;   Bu, I instead I want to combine the results all into a single column. As an example, I can do this with UNION ALL as   SELECT her_name AS name FROM foo UNION ALL SELECT his_name AS name FROM foo UNION ALL SELECT other_name AS name FROM foo   Is there more elegant way to do this operation?


The tracks appear to be visible out in the open; Ron and Harry could easily follow them in COS.

Can non-magical persons see the Hogwarts Express during its journey to and from Hogwarts?


The following code gives me an error "unable to match function definition to an existing declaration". Is my syntax correct?   CharPlayer.h  class CharacterPlayer     {     public:     template <class cType>         cType createCharacter(cType characterType);      };   CharPlayer.cpp  template <class cType> cType CharacterPlayer::createCharacter(cType characterType) {     return 3; }   Main  CharacterPlayer *controllerPntr = new CharacterPlayer;     controllerPntr->createCharacter(1);

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


Let $\theta \in \mathbb{R}$ and $X_1, X_2,..., X_n$ be independent and identically distributed with density \begin{equation}         f(x; \theta) = I\left(|x-\theta| \leq \frac{1}{2}\right)     \end{equation} as usual, denote the order statistics by $X_{(1)}<X_{(2)}<\cdots < X_{(n)}$. Letting $T_n = \frac{1}{2}(X_{(1)} + X_{(n)})$, compute $E(T_n - \theta)^2$ I know I can write this as $E(T_n - \theta)^2 = E(T_n^2) - \theta^2$, however, I don't know how to compute $E(T_n^2)$. I'm thinking I need $n$ nested integrals to take into account $X_2,...X_{n-1}$ as well even though we only care about the average of $X_1$ and $X_n$.

Let $X_1, \ldots, X_n$ be i.i.d. continuous uniform random variables on $\left[\vartheta-\frac{1}{2},\vartheta+\frac{1}{2}\right]$ for some $\vartheta \in \mathbb R$.    I am trying to solve $\mathbb E[(T-\vartheta)^2]$ where $T(X) = \frac{1}{2}\left(\min_{1 \le i \le n} X_i + \max_{1 \le i \le n} X_i\right)$ or simplify it such that it becomes clear that it is independent of $\vartheta$.   I have tried to approach this by a variety of conversion but always end up with a term that involes $\mathbb E\left[\left(\min_{1 \le i \le n} X_i\right)\left(\max_{1 \le i \le n} X_i\right)\right]$.  I can't find a way to actually calculate it. Do you have a hint or another way of approaching the task?


I have a static library test1.a built on linux. When I am trying to link against it, the linker throws undefined reference errors:  CMakeFiles/Testserver.dir/src/audio/TestEncoderFactory.cpp.o: In function TestEncoderFactory::GetSupportedEncoders(): TestH264BypassedEncoder.cpp:(.text._ZN10H264BypassedEncoderC2ERKN7cricket10VideoCodecERNS_14TestClientE+0x191): undefined reference to absl::EqualsIgnoreCase(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >)   TestEncoderFactory.cpp:(.text._ZN10TestEncoderFactory20GetSupportedEncodersEv+0x20b): undefined reference to `test::SdpAudioFormat::SdpAudioFormat(std::basic_string_view<char, std::char_traits >, int, unsigned long, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > >&&)'  But then I created a sample program using the same line of code leading to linker errors as shown below and when I build it by linking against the same test.a the executable is building perfectly fine: #include <string> #include <rtc_base/logging.h> #include <rtc_base/checks.h> #include <iostream> #include <absl/strings/match.h> #include <memory>  using namespace std;  int main() {  cout << "testing\n";  RTC_CHECK(absl::EqualsIgnoreCase("", ""));  //RTC_LOG(INFO) << "Testing libwebrtc linking";  bool res = absl::EqualsIgnoreCase("ab", ""); cout << res;  cout << "\nending";  }  I built above using g++ -I./include -I./include/third_party/abseil-cpp  test.cpp -L./lib -ltest1 -o final_ex the executable final_ex builds successfully. The other program is a bigger one(and is private and thus can't share) and trying to link against test1.a and other are .so as mentioned in the command below:  /usr/bin/g++ -pthread -g -rdynamic CMakeFiles/testServer.dir/src/Main.cpp.o testxyz.cpp.o -o bin/testServer  -L<lib_loc> -Wl,-rpath,<path....> -static-libstdc++ -static-libgcc -ltest1 -lprotobuf  -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ljson-glib-1.0 -lffmpeg -lX11 -ldl  I also checked many different questions on Stackoverflow but couldn't fix the issue. Can linking against static and dynamic libs be the cause behind the issue? Fix As question is closed so adding the fix details in question itself. One important detail I forgot to mention was I used cxx_std_17 to build my code. Also I was not aware that the static lib test1.a was built using cxx_std_14. Once I got to know this I used cxx_std_14 and all the linker errors were resolved. I didn't think about it earlier as I was of the understanding that it's safe to link C++17 and C++14 as mentioned in answer to  stackoverflow question. But found the hard way that it may not be the case.

Why does the order in which libraries are linked sometimes cause errors in GCC?


The relation  $$ \sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k\right)^2 $$  baffled me when I first found out (i.e. yesterday on a train trip). Writing an inductive proof is easy and I know that there is a recursive way to obtain a general formula for  $$ \sum_{k=1}^n k^j $$  for any $j \in \mathbb{N}$, but I feel like this relationship between the sum of the first n cubes and the sum of the first n integers should have some nice geometrical proof. The closest thing I found was the first answer to , but I still don't find it intuitively clear. Maybe I am asking for too much here.

I recently proved that  $$\sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k \right)^2$$  using mathematical induction.  I'm interested if there's an intuitive explanation, or even a combinatorial interpretation of this property. I would also like to see any other proofs.


I have a USB live key created with Linux Live USB creator. I used all the defaults, and got a standard version of Ubuntu. When I try to boot into it, I get the error above. I went through the rest of the threads with no avail.  Things I tried:   Renaming the files (my files were already syslinux.cfg, etc.) Typing in mboot.c32 -c boot.cfg into the boot:__ prompt   Any help would be appreciated!

I've tried to install Ubuntu on a VMWare Virtual Machine, but it never gets past the  bootloader :  ISOLINUX 4.01 debian-20100714 ETCD Copyright (C) 1994-2010 H. Peter Anvin et al No DEFAULT or UI configuration directive found! boot: _   I've also tried to burn this .iso image to a CD and go from therem but I got the same problem.  Some more details :   VMWare Server 2.0.2 Build 203138 on Windows 2008 R2 ubuntu-10.10-desktop-i386.iso image used (downloaded yesterday evening)


I am working on a project with multiple texture of different sizes for the same object. The textures have the correct scale in dpi.  I use a formula to calculate the UV scale of each texture. "pixel width of Texture" Divided by "DPI" Multiplied by "2.54" (inch to cm) Divided by "Width in cm of object's UV"  You gave me an answer using the MixRGB and Texture Cooridinate Nodes to create the vector. This is great for square textures.  What if the textures are rectangular. How do I create a vector with two input?    Thanks  EDIT  Not sure how to update the post. Just wanted to post the latest solution. This also resolves the issue of non uniform textures.    Basically, the first part gets the scale of the texture. (Math nodes) The second part scales the UV x and y axis. (Separate and Combine RBG)  Now i can input the dpi of the image, pixel height and width, and the UV dimension in cm. The textures all textures will be at the correct proportional.  I don't know the correct term for UV dimension in cm.

in my node setup I have a value node. I want this node to influence the scaling of my mapping node.  Is there a way to achieve this? Or is there a math/vector node setup I can use to manipulate the scale of my texture?      I found an answer to my question:   Because the original question here is another one, I won't delete my post. Maybe it is helpful for someone.


I am not sure if my understanding is correct on this behavior of log backups.  We believe the increase in traffic, as log backups have increased after migration event to cluster from stanadlone SQL 2012.  Per the monthly analysis of log backups running every 10 mins, in a day for an avg i calculated the log backup size to be 400-450 GB. Now post migration, its been week and i can see that log backup size has increased to an avg of 650-700 GB in a day.  App says there is no increase in volume, so i am wandering why there is sudden increase in log backups.  Log file is same before and after =200 GB and VLF's 300.  Database is 10 TB on SQL server 2012 and many a tables are partitioned.  Let me know if there is further details needed to understand this behavior? Or is there another way to analyse this? Please suggest

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?


I hope you are all doing well, I have this nav bar, which took me a very long time to figure out, how I could separate the padding from the logo and my "li" elements so I could have a nice centered menu. But I think I kinda have something working, but I like to do things the right way, does anyone has a better way to center all the "li" elements (Home, About...). Because at this current time I have padding-left: 30em; which give the feeling of the menu been centered, but is there a way to do it automaticlly ? I tried padding auto but that dosen't work. Thank your for helping a young dev.   @media screen and (min-width: 780px) {   * {     box-sizing: border-box;     margin: 0;     padding: 0;   }    body {     margin: 0;     min-height: 100vh;   }    ul {     list-style: none;   }    a, u {     text-decoration: none;   }    .header-menu {     background-color: grey;     padding: 1em 1em;     width: 100vw;     display: inline-flex;     align-items: center;   }    .header-flex, {     display: inline-flex;     align-items: center;   }    .logo {     cursor: pointer;   }    .main-nav {     cursor: pointer;     padding-left: 30em;   }    .main-nav li {     display: inline-block;     padding: 0em 1.2em;   }    .main-nav a {     color: #34495e;     font-size: .99em;   }    .main-nav a:hover {     color: #718daa;   } } <!DOCTYPE html>      <meta charset="utf-8">   <title></title>   <link rel="stylesheet" href="./css/home.css">

Logo

Home

About

Portfolio

Contact

           Thank for helping, How I solved the issue       @media screen and (min-width: 780px) {         * {           box-sizing: border-box;           margin: 0;           padding: 0;         }          body {           margin: 0;           min-height: 100vh;         }          ul {           list-style: none;         }          a, u {           text-decoration: none;         }          .header-menu, .header-flex {           background-color: grey;           padding: 1em 1em;           width: 100vw;           display: inline-flex;           align-items: center;         }          .logo {           cursor: pointer;         }          .main-nav {           cursor: pointer;           margin: 0 auto;         }          .main-nav li {           display: inline-block;           padding: 0em 1.2em;         }          .main-nav a {           color: #34495e;           font-size: .99em;         }          .main-nav a:hover {           color: #718daa;         }       }

How can I horizontally center a
 within another
 using CSS?

Foo foo


I'm using  to create a reg_exp that matches the content of xml.  I'm not trying to parse xml but only to extract it.  <xml> <balise1> </balise1> <table> <tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr> </table> </xml>   This is the pattern I wrote to match the content of tr tags.   (?<content>(<tr>(.)*</tr>))   So, the output of this regular expression gives :  {   "content": [     [       "<tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr>"     ]   ] }   When I want it to be :   {   "content": [     [       "<tr> <td> cas1 </td> <td> cas2 </td> </tr>"     ]   ] }   The problem seems to be that the first occurrence is not detected and only the last occurrence is.  How can I specify that "any number of char" must not contain a new tr tag ?  Do you have suggestions ?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I'm looking into some classification tasks at the moment. The test data is unbalanced where one particular class is half the data and the remaining 5 take up the remainder of the test data. When I look at the output for some of the classifiers I notice that the AUC is over .8 while the TPR and FPR might be something such as 0.4 and 0.0234 respectively.   So can anyone explain to me what might be going on here? I'm using the WEKA API so I'm assuming there evaluation code is fine. I'd of thought that a higher TPR would get me further along with a stronger AUC and that a lower TPR would return a lower AUC.

I just start to learn the Area under the ROC curve (AUC). I am told that AUC is not reflected by data imbalance. I think it means that AUC is insensitive to imbalance in test data, rather than imbalance in training data.  In other words, only changing the distribution of positive and negative classes in the test data, the AUC value may not change much. But if we change the distribution in the training data, the AUC value may largely change. The reason is that the classifier cannot be learned well. In this case, we have to use undersampling and oversampling. Am I right? I just want to make sure my understanding on AUC is correct.


Find the value of the following expression  $$ \prod^{\infty}_{n=0}\left(1-\frac{1}{2^{3n}}+\frac{1}{2^{6n}}\right)$$   What I tried:  If $\frac{1}{2^3}=x$, then we can write expression as   $$\prod^{\infty}_{n=0}(1-x^n+x^{2n})=(1-1+1)(1-x+x^2)(1-x^2+x^4)(1-x^3+x^6)\cdots$$  How do I find that infinite product

Find the value of the following expression  $$ \prod^{\infty}_{n=0}\left(1-\frac{1}{2^{3n}}-\frac{1}{2^{6n}}\right)$$   What I tried:  If $\frac{1}{2^3}=x$, then we can write expression as   $$\prod^{\infty}_{n=0}(1-x^n-x^{2n})=(1-1+1)(1-x-x^2)(1-x^2-x^4)(1-x^3-x^6)\cdots$$  How do I find that infinite product?


I recently partitioned my hard drive to create an empty 43 GB drive on my Windows 7 64-bit Compaq Presario.   After the partition was complete, I used the Windows Installer from the Ubuntu website (wubi) to install Ubuntu 12.04 LTS 64-bit.   With my Dual Boot configuration complete, I restarted my computer and chose the partition with Ubuntu installed on it.   The first time it seemed okay until the login screen, where it froze on the login screen with a dotted purple background and a continuous animated drum sound playing.   I rebooted it and the same thing kept happening.   On around the fourth time, Ubuntu booted correctly.   Then, I messed around with it for a bit when I decided I should install Adobe Flashplayer from the Software Centre. It gave me an “unmet dependencies” error.   So I have two problems :    Ubuntu only boots about one out of every four times correctly I cant download certain software from the software center, as i get an error message saying the dependecies are not met.

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Countless times we've been shown the Terminator's biological parts healing after damage. For example, in Terminator 2 after John and the T-800/101 rescue Sarah from Pescadero Mental Hospital and they're fixing their wounds:     Sarah: Will these heal up?   T-101: Yes   Sarah: Good. If you can't pass for human you're not much good to us.   So the tissues are definitely 'alive' in that sense. They even heal quicker than human injuries (Sarah Connor Chronicles):     John: You're healing.   Cameron: Faster than you.   But how exactly do these cells receive nourishment? There's obviously blood to carry nutrients and oxygen, as well as white blood cells to stave off infections. I'm assuming there's a pump somewhere pushing it around the body, but  where do the oxygen and nutrients required to keep the cells alive come from?

It is basic/common knowledge that our skin/flesh requires proteins etc carried by blood and pumped by a heart to travel around the body to live.  Its possible that Terminator's have blood underneath their living tissue, we certainlly have seen blood on Terminator's through out the universe cannon, but have not seen they have some sort of a heart to pump this blood around and they certainly do not eat.  So the question is: How does a terminators living tissue actually live?   Is there some EU information how it technically works?


I am trying to show cache size files in MB, used by my App. but my app crashing. Error : Caused by: java.lang.NullPointerException  private void initializeCache() {     long size = 0;     size += getDirSize(this.getCacheDir());     size += getDirSize(this.getExternalCacheDir());     this.text_view_cache_value.setText(getResources().getString(R.string.label_cache)  + readableFileSize(size));  }  public long getDirSize(File dir){     long size = 0;     for (File file : dir.listFiles()) {         if (file != null && file.isDirectory()) {             size += getDirSize(file);         } else if (file != null && file.isFile()) {             size += file.length();         }     }     return size; }

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?


I am site administrator for one of the sharepoint 2013 on-premise site and I would like to develop the custom webparts for communicating lists and libraries at site level using visual studio Community 2015.   Can anyone help me in knowing is it possible develop farm and sandbox solutions through visual studio 2015 community as it being providing free by microsoft.

I have installed SharePoint 2013 Enterprise and Visual Studio 2013 Community.  How do I create SharePoint projects? “New Project” shows many templates, but not the ones related to SharePoint.  Do I need Visual Studio Professional for SharePoint development (I mean development of .wsp solutions)?


I seem to be experiencing trouble using \MakeLowercase in a section heading when using the package hyperref. I've arrived at the following MWE:  \documentclass{article}  \usepackage{hyperref}  \begin{document} \section{\MakeLowercase{A}} Blah \end{document}   Attempting to compile this code produces an error. The code compiles if either  \section{\MakeLowercase{A}} or \usepackage{hyperref} is commented out.   I would still like to use \MakeLowercase in a section heading, as well as use \hyperref elsewhere in my document. Is there any way to remedy the situation?   Thank you!

I am quite newbie in LaTeX. Following examples in other questions for using lower case in titles, I tried to mimic them without success, when applying it to a section:  I am working in LyX2.0.  \documentclass{book}  \usepackage{textcase}  \begin{document} \chapter{X} \section{Y} \section{Introduction to A\MakeLowercase{g} compounds}  \end{document}   I get the error:  ! Undefined control sequence. \MakeLowercase ...owercaseUnsupportedInPdfStrings    l.17 ...roduction to A\MakeLowercase{g} compounds}   The control sequence at the end of the top line  of your error message was never \def'ed. If you have  misspelled it (e.g., `\hobx'), type `I' and the correct  spelling (e.g., `I\hbox'). Otherwise just continue,  and I'll forget about whatever was undefined.   Is this somehow possible to get?


I need a really quick way of showing there's a bijection from $\mathbb{Q}\cap(a,\ b)$ to $\mathbb{Q}$ for any real numbers $a < b$. I attempted a few ways but I'm drawing a blank right now .Nothing I've worked on is fruitful (it either goes nowhere or is much too complicated) so I'm omitting it from the question. Any simple ideas? Mainly I'm looking for something that can be rigorously justified and explained in a matter of no more than three to four lines.  Clarification: I don't need to construct a bijection, I just need to show that there is one.  Clarification 2: The context I'm working in doesn't have a definition of "countable", so I can't just say both sets are countable unfortunately.  Clarification 3: We know that there exists a bijection from $\mathbb{Q}$ to $\mathbb{N}$. Our construction was essentially that you can list all elements of $\mathbb{Q}$ in a grid and spiral outwards from the origin, ignoring duplicates, and assigning the next natural to the next unique rational in the spiral path.

While reading about cardinality, I've seen a few examples of bijections from the open unit interval $(0,1)$ to $\mathbb{R}$, one example being the function defined by $f(x)=\tan\pi(2x-1)/2$. Another geometric example is found by bending the unit interval into a semicircle with center $P$, and mapping a point to its projection from $P$ onto the real line.  My question is, is there a bijection between the open unit interval $(0,1)$ and $\mathbb{R}$ such that rationals are mapped to rationals and irrationals are mapped to irrationals?  I played around with mappings similar to $x\mapsto 1/x$, but found that this never really had the right range, and using google didn't yield any examples, at least none which I could find. Any examples would be most appreciated, thanks!


Tris are things you would avoid when it comes to shading, and good Topology, so do Tris do any good? Also I am currently working on Game Asset Creation and I would like to know if Tris are actually something I want definately to avoid.

I've read many times that triangles should be avoided in meshes, too give one reference: "Introducing Character Animation with Blender by Tony Mullen" says that equilateral triangles work fine as long you don't deform them.  It seems to be common in game development that the models are triangulated.   What issues are introduced by using triangles? Does the same apply for n-gons?


i'm trying to generate a simple subtotal amount for a small shopping cart project and it does not seem like the function can see the input value  my input HTML is: <input id="valueTest1" type="text" value="0" data-price="10.99">  and i just need simply the data-price to * the value entered and then show in my subtotal HTML (shown below)
£0.00
  here is my function..  function calculateSubTotal() {     let subtotal = 0;     for (i = 1; i <= itemTotal1; i++) {          itemID = document.getElementById('valueTest1');         if (typeof itemID === 'undefined' || itemID === null) {             alert("No such item - " + "valueTest1");         } else {             subtotal = subtotal + parseFloat(valueTest1.value) * parseFloat(itemID.getAttribute("data-price"));         }      }     console.log(valueTest1.value)     document.getElementById('itemTotal1').innerHTML = "£" + subtotal; }   I can console.log the input (valueTest1.value) outside of the function and it shows 0 but when i try to console.log the input in the function i get nothing, any help would be appreciated.

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


At ArcMap 10.7.1, I have created this custom toolbar, which contains a single tool:    I need that toolbar to "stick", so that it always appears when I open a new or existing map document (I think that means my new toolbar becomes part of normal.mxt?).  However, this toolbar does not appear when I subsequently open a map document.  According to , I need to have Customize > Customize Mode > Options > "Save all customizations to the document" checked off, as shown here:    However, I am unable to get it to "stick", no matter what combination of boxes I check and uncheck; the custom toolbar does not appear when I open a map document.  This issue was brought up in SE GIS  in 10.1.  Here we are six-plus releases later... is it still true that you cannot make a custom toolbar part of the ArcMap default view???  EDIT:  Here's a quote from  (my emphasis):  When you create a custom toolbar—in ArcMap, for example—it will save with the current map document by default. If you want to save a toolbar in the Normal template so that all documents see it, uncheck the Create new toolbars and menus in document check box on the Options tab on the Customize dialog box.

I am trying to save some tools that I have created into the default toolbar layout that is present when ArcMap 10.1 is launched.  It is possible to change the arrangement of toolbars, add new ones and even add in existing tools, but any custom tools I set in the commands category "geoprocessing tools" are gone and do not appear in the toolbar. How can I save these custom tools to the default layout that appears on startup?  Update:  Saving a document with the custom tools added and reopening it preserves the tools, but opening a template (10.1 mxd) containing the tools, then opening and older document will cause the tools to disappear. Oddly enough, any other changes made after the custom tools were added are preseved.  Update (03/18/2014):  I have upgraded to 10.2 and this has still not been fixed. I did not see this issue in the 10.21 changelog so I doubt it will address it. For those interested in this issue, I have started a forum post on the ESRI forums .


Here's an excerpt from my  page:   1  14132869 (2)  1  14132300 (15)  3  14138562 (-1)  2  14138574 (10)  2  14138574 (10)  2  14138746 (10)  2  14140825 (10)  2  14140825 (10)  2  14140825 (10)  2  14140825 (10)  16 14140805 (2)   From what I've gathered so far, the IDs are:   1: accepted an answer or have an answer accepted 2: upvote 3: downvote or downvoted 16: got a suggested edit approved   I see a few things missing:   deleted posts or removed votes - I can't seem to find any setting or earning a bounty - I've never done either the -100 penalty for getting a post deleted as spam/offensive - obviously never done that   What are the IDs for those? Are there any more I'm missing?

If I am concerned that my reputation score is incorrect, how can I audit it, or get a report of a detailed breakdown of my reputation?


Why is this coming out as false?   public class practice  {    public static void main(String [] args)     {       System.out.println(startHi("hi "));    }     public static boolean  startHi(String str)     {        System.out.println(str.substring(0,2));        if(str.length() < 2)         {           return false;        }        else if(str.substring(0,2) ==("hi"))         {           return true;        }        else         {          return false;        }    } }

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?


We built a website targeting different regions but with the same English language (Ireland, England and America). The content for the most part is the same set up on 3 different subfolders.  http://www.example.com/ - targeting the United States in WMT  http://www.example.com/ie - targeting Ireland in WMT  http://www.example.com/uk - targeting UK in WMT  Do I have duplicate content issues to be worried about?  If so, how do I get around this issue?   Also is there anyway of finding out if Google have in some way penalised these pages for having the same content on other pages trageting different countries? I have not received any messages from Google in WMT saying there is duplicate so I'm not sure if this is an issue.

When I set up a site in multiple languages, how should I set up my URLs for search engines and usability?  Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO?  Directory option:  http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html   Subdomain option:  http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html   Filename option:  http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html   Accept-Language header:  Or should I simply parse the  header and generate content server-side to suit that header?  Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines?    UPDATE 2011-12-06  Google has new recommendations for meta tags for explicitly pointing to other language content: .  UPDATE 2012-05-25  Related but not precisely:   UPDATE 2013-06-12  includes discussion of several URL schemes directly relevant to the question.


how can I upgrade from ubuntu 12.04 to 14.04 ?   using the update manager the suggestion is to upgrade to 12.10 but this does not work (fetching the upgrade failed).  Has someone an idea?  BR Andy

So I have Ubuntu installed on my pc, and I want to upgrade to the new Ubuntu which was just released. When I check for any new updates it doesn't show any upgrades to the new release. How can I fix this? Thanks!


I am creating case through trigger,but i am getting the   UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record:  can anybody help me...

Error Message:     Developer script exception from Nicomatic : quotepotential :   quotepotential: execution of AfterUpdate caused by:   System.DmlException: Update failed. First exception on row 0 with id   a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable to obtain   exclusive access to this record: [] Trigger.quotepotential: line 14,   column 1      Apex script unhandled trigger exception by user/organization:   00590000001A6jh/00D90000000bovq      quotepotential: execution of AfterUpdate      caused by: System.DmlException: Update failed. First exception on row   0 with id a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable   to obtain exclusive access to this record: []      Trigger.quotepotential: line 14, column 1   these mails are getting to my mail..........  trigger quotepotential on Quote_Line_Item__c (after insert,after update) {     Set<Id> quoteIds = new Set<Id>();     List<Quote__c> quotes = new List<Quote__c>();     for (Quote_Line_Item__c record: Trigger.new) {         if (record.Quote1__c != null){             quoteIds.add(record.Quote1__c);         }     }     for(AggregateResult ar:[                 SELECT                      Quote1__c,                      SUM(Max_Batch__c)sumMax                  FROM Quote_Line_Item__c                  WHERE Quote1__c=:quoteIds                  GROUP BY Quote1__c                 ]) {          quotes.add(new Quote__c(              Id=(Id) ar.get('Quote1__c'),              Potential__c = (Decimal) ar.get('sumMax')              ));     }     if (quotes.isempty() == false) {         update quotes;     } }


If you have not being logged to SE network and make a vote for some post you will see the following popup:        But if you already logged to some other site this popup looks differently:        Empty area below the "Join this community" link looks weird. I think the final dimensions of this popup should be reduced if it's possible.

While attempting to downvote something on a site I don't have an account on, I see this message, which has too much whitespace:    The same thing happens with upvotes (and プラス票が):    (I think it's safe to say that this is a network-wide bug, since I took these all on different sites.)  However, it looks more reasonable when you are not logged into the network at all (e.g. in private browsing):    An earlier version of this issue was reported at , but the difference is that there is no newsletter UI on the right anymore. (The extra space could have been justified before given the height of the newsletter; now it's definitely a bug.)  Also, is newsletter supposed to be gone?


I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions:     He does not want to destroy his parents' dream of him achieving a Cambridge degree.   I am especially interested in the: dream of him achieving a Cambridge degree.  I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


Prove:  $$\lim_{(x,y)\to (0,0)}\frac{xy}{(x^2+y^2)^\frac12}=0$$  Thanks for your help. Thanks ahead:)

What is the result of  $\lim_{(x,y)\to (0,0)}\frac{x+y}{\sqrt{x^2+y^2}}$ . I tried to do couple of algebraic manipulations, but I didn't reach to any conclusion.  Thanks a lot.


If gravity is directly related to mass, and mass increases as an object travels closer to light-speed, how can velocity not affect gravity?

I'm a big fan of the podcast Astronomy Cast and a while back I was listening to a Q&A episode they did. A listener sent in a question that I found fascinating and have been wondering about ever since.   From the show :      Arunus Gidgowdusk from Lithuania asks: "If you took a one kilogram mass and accelerated it close to the speed of light would it form into a black hole? Would it stay a black hole if you then decreased the speed?"   Dr. Gay, an astrophysicist and one of the hosts, explained that she'd asked a number of her colleagues and that none of them could provide a satisfactory answer. I asked her more recently on Facebook if anyone had come forward with one and she said they had not.  So I thought maybe this would be a good place to ask.


I have my page title on the home 'My siteMy site'. and other pages as 'Page title | My siteMy site'. I have checked in the header.php file for my theme and it look okay  <title><?php wp_title('|',true,'right'); ?></title>   I also checked in the settings for the site titly and it remains 'My site'  I have done my research on repeated titles and most people seem to have this problem because of a SEO plugin overrides the title. In my case I do not have any SEO plugins, below you can see a list of enabled plugins on my site:   Bootstrap 3 Shortcodes Contact Form 7 Custom Theme Options Food and Drink Menu Instagram Feed Ketchup Shortcodes Pack Meta Slider   None of them are supposed to have any affect on page titles, I tried disabling them to see one of them affects it and I haven't noticed any change. Has anyone else faced a similar problem before. Are there other things that my overwrite my page titles?

I'm building a child theme and it currently has a very simple <head> section in header.php:  <head>   <meta charset="<?php bloginfo( 'charset' ); ?>">   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">   <title><?php wp_title( '|', true, 'right' ); ?></title>   <link rel="profile" href="http://gmpg.org/xfn/11">   <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">   <!--[if lt IE 9]>   <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/html5shiv.min.js"></script>   <![endif]-->    <?php wp_head(); ?> </head>   I'm guessing wp_head() is responsible for the second <title> element (it appears just there in the final HTML), but other things I've read say this is impossible.  Should I be removing the <title> from my header.php, or should I be adding something to my functions to remove the title from wp_head() (eg. remove_action('wp_head', 'title') ?  Or should I be doing something else altogether?


I saw a fake proof using the power rule to show that $1 = 2$, thus disproving the power rule. It is obviously wrong but I can't spot the error. It goes something like this: $$\frac{d}{dx}x^2 = 2x \\ x^2 = x\times x = \sum_{n = 1}^{x} x \\ \frac{d}{dx}x^2 = \frac{d}{dx}\sum_{n = 1}^{x} x = \sum_{n = 1}^{x} 1 = x \\ \therefore x = 2x \implies 1 = 2 $$ Where's the issue here? It seems to be something on the $3^{\text{rd}}$ line (which I know also contains more than any other line; I'm not versed in stating proofs), but I can't see the contradiction.

Consider the following:   $1 = 1^2$ $2 + 2 = 2^2$ $3 + 3 + 3 = 3^2$   Therefore,   $\underbrace{x + x + x + \ldots + x}_{x \textrm{ times}}= x^2$   Take the derivative of lhs and rhs and we get:   $\underbrace{1 + 1 + 1 + \ldots + 1}_{x \textrm{ times}} = 2x$   Which simplifies to:   $x = 2x$   and hence    $1 = 2$.     Clearly something is wrong but I am unable pinpoint my mistake.


I want to uninstall Ubuntu 12.04 LTS and install windows 8 pro.  I have the Windows disc but an unsure if there is anything special that I need to do first.  Any help will be greatly appreciated.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


My macbook is consuming lots of internet data, but usually my work needs nearly 1 or 2 GB but it consumes 8 to 10 GB of internet data, I don't know which app is using internet in background. I can't find that, tried so many ways.. I am using VPN for my work, in activity monitor its just showing process sslvpnd. Installed wireshark too, but Don't know how to find which app is using lots of data in background, If I find that, If I really don't want I can disable it. If anybody had experience in my issue, kindly help me to resolve that

In my country, most of porn sites are banned, so i choose VPN & proxy to browse, it means my ISP get change if i connect to VPN or proxy, so my Internet bandwidth get used when I connect to vpn or proxy?


Let $a = p_1\cdots p_n$ and $b = q_1\cdots q_m$ be two non-zero elements of a unique factorization domain $R$ and their respective factorization in irreducible factors, such that no $p_i$ is associated with a $q_j$ (i.e., $\nexists k\in R^*:p_i=kq_j$). Let $GCD(a,b)$ be the set of all greatest common divisors of $a$ and $b$ in $R$. Then I want to conclude that $1_R\in GCD(a,b)$ Once $1_R$ divides all elements of $R$, it's equivalent to show that if $d$ is a common divisor of $a$ and $b$, then $d$ divides $1_R$, which is equivalent to $d$ be an unity element, or that $d$ is associated with $1_R$. In any if these ways I don't see how to use the hypothesis that $a$ and $b$ don't have associated irreducible factors. Can someone give me a hint on this?

Let $R$ be a unique factorization domain (UFD). Given $a,b \in R$ not simultaneously equal to zero, an element $d \in R$ is by definition a greatest common divisor (GCD) of $a$ and $b$ provided:   $d \mid a$ and $d \mid b$. For all $d' \in R$ such that $d' \mid a$ and $d' \mid b$, we have that $d' \mid d$.   Let $U(R) := \{\,\text{units in $R$}\,\}$ and assume $a,b \neq 0$, $a,b \notin U(R)$. Since $R$ is a UFD, there exist $u,v \in U(R)$, irreducible elements $p_1,\dots,p_s \in R$ which are mutually non associate, $d_1,\dots,d_s,e_1,\dots,e_s \in \mathbb{N}$ such that: \begin{equation}  a = u \cdot p_1^{d_1} \cdots p_s^{d_s} \, , \quad b = v \cdot p_1^{e_1} \cdots p_s^{e_s} \end{equation} For all $1 \leq i \leq s$, let $f_i := \min\{d_i,e_i\}$. We want to prove that a GCD of $a$ and $b$ is: \begin{equation}  c := p_1^{f_1} \cdots p_s^{f_s} \end{equation}


I have some trouble understanding the map on homology which is induced by a quotient map. If $(X,A)$ is a good pair, and $q:X\to X/A$ is the quotient map, is the induced map $q_*$ then given by the map $H_n(X)\to H_n(X,A)$ in the long exact chain, composed with the isomorphism $H_n(X,A)\cong H_n(X/A)$? If yes, why exactly? If no, then what is the best way to compute the induced map on homology of such a quotient map?  Thank you!

I read in Hatcher page 124 that      relative homology can be expressed as reduced absolute   homology in the case of good pairs $(X,A)$, but in fact there is a way of doing this for arbitrary pairs.    His argument goes as follows: $\displaystyle \tilde{H_n}(X/A)= \tilde{H_n}(X ∪ CA) = H_n(X ∪ CA,CA) = H_n(X ∪ CA − \{p\},CA − \{p\}) = H_n(X,A)$  Where $p$ is the apex of $CA$ the cone on $A$.  So I understand that the relation  $\tilde{H_n}(X/A)=H_n(X,A)$ holds without any condition on the pair $(X,A)$ where $X$ is a topological space and $A$ is any non empty subset of $X$. Is my understanding correct ? thank you for your help!


In an article I omit the section number for subsection titles, using:  \renewcommand\thesubsection{\arabic{subsection}}   However, when I now create a \label in a subsection and reference it using \ref in another part of the document, the printed reference only shows the subsection number, even in a totally different section! How can I show the section AND subsection number in references (as usual) while keeping only the subsection number in subsection titles?  MCVE:  \documentclass{article}  \renewcommand\thesubsection{\arabic{subsection}}  \begin{document}  \section{My first section}  \subsection{Foo}  \subsection{Bar} \label{ssec:bar}  \section{My second section}  \subsection{Misc}  \subsection{Notes}  See also subsection \ref{ssec:bar}.  \end{document}   The printed reference shows 2, however, I want it to be 1.2.

The below code produces    I'm wondering if it's possible to have the subsections show up as i, ii, etc, on the subsection title (because it's clear which section they're in when they show up), but as 1.i, 1.ii, etc. when I refer to them. (So that the reader can distinguish between 1.i and 2.i, for instance.)  Possibilities:   Just enter the section number manually when I refer to it. This is worst, since it isn't robust to renumbering the sections. Find a way to store the section number of Fruit Section, and use that when I make the reference. This is OK, but not robust to changing which section Apples is a part of. Inside Apples, get the current section somehow, store it, and then refer to it. This would be robust, but would have to be done every time I want to make such a reference. Better once-and-for-all solution to this problem.   .  \documentclass{article} \usepackage{hyperref} \renewcommand\thesubsection{\roman{subsection}} \begin{document} \section{Fruit Section} \subsection{Apples} \label{Apples-subsec}  \subsection{Bananas} \label{Bananas-subsec} \section{Vegetable Section} \subsection{Kale} \section{Conclusion}  As we recall from sections \ref{Apples-subsec} and \ref{Bananas-subsec}, apples and bananas are healthy to eat. \end{document}


On the new user profiles, there is a link for helpful flags. When you click on it, it takes you to your flagging summary.  If you have zero helpful flags, either because you've never flagged anything or because your flags are either pending or were not deemed helpful, it's not a link!  This should be a link regardless of whether you have any helpful flags or not. If you haven't flagged, it should just go to a blank page that says "This user has never flagged anything".

The Problem  Currently if I flag a post, I cannot check the status of the flag unless I have prior helpful flags. This means, for example, that a new user who wants to check the status of his first flag cannot do so while it is pending (active).  This feature request is based on my experience on MSO, where I wanted to check the status of my flag but could not get to the summary page without cheating (tweaking my SO link to work with MSO). It also stems from this question, where the OP indicates he had the same issue:   My Proposal  If I have flagged any post, then show me a "flags" link (red arrow in image below). If I have any helpful flags, then the number of helpful flags should be displayed (blue arrow). If I have not flagged anything, then neither should be displayed (as with current site functionality).


I have installed Ubuntu12. While installing I haven't created any Partition. I am trying to create one now, but it not allowing me to do that, saying, 'The device is busy'. Please help.

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?


Two tubes (infinite right circular cylinders) $A$ and $B$ of equal radii $3$ cross at the angle $90°$ (i.e. their axial lines cross at that angle). What is the volume of the intersection of $A$ and $B$? I figured it should be equal pir22r but just to cross check.

Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer)  I saw no example of this problem anywhere.. I saw an example how to solve it without calculus but I'm afraid that'll be deductions on my test.. I have the volume of a cylinder and the method of area between two curves but this is out of my reach.... I don't know what I can try...


I rebooted my system and receive a blank desktop after logging in. on getting into the shell with ctrl + alt + F1 and doing a "df" i see that my root partition is full with 100% usage.   I dont want to loose any data , how can i get my desktop back . Can someone please guide me through this.

Ubuntu server shows me that I  use allmost all disk:  Usage of /:   95.5% of 118.12GB   And I try to find big folders and files, run ncdu:  ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help                                                                                --- / ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------     5.5GiB [##########] /root                                                                                2.3GiB [####      ] /var   628.6MiB [#         ] /usr   209.9MiB [          ] /lib    28.2MiB [          ] /boot     8.6MiB [          ] /bin     7.7MiB [          ] /sbin     6.6MiB [          ] /etc   208.0KiB [          ] /run   112.0KiB [          ] /tmp    48.0KiB [          ] /opt e  16.0KiB [          ] /lost+found     8.0KiB [          ] /dev     8.0KiB [          ] /media     4.0KiB [          ] /lib64 e   4.0KiB [          ] /srv e   4.0KiB [          ] /selinux e   4.0KiB [          ] /mnt e   4.0KiB [          ] /home     0.0  B [          ] /proc     0.0  B [          ] /sys @   0.0  B [          ]  initrd.img @   0.0  B [          ]  vmlinuz   According to ncdu I use about 10 GiB of 128 GiB - it is about 10 %. Contradiction.  How to clean my ubutntu server without rebooting?  I thought that ncdu lies and used another apps to find big files and folders. All of them shows the same result as ncdu.  And df -h command shows that disk is full.  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/xvda       119G  113G     0 100% / udev            2.0G  8.0K  2.0G   1% /dev tmpfs           788M  212K  788M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G     0  2.0G   0% /run/shm   Update  sudo du -sch /* result:  /# sudo du -sch /* 8.7M    /bin 29M /boot 8.0K    /dev 6.6M    /etc 4.0K    /home 0   /initrd.img 210M    /lib 4.0K    /lib64 16K /lost+found 8.0K    /media 4.0K    /mnt 48K /opt du: cannot access `/proc/4470/task/4470/fd/4': No such file or directory du: cannot access `/proc/4470/task/4470/fdinfo/4': No such file or directory du: cannot access `/proc/4470/fd/4': No such file or directory du: cannot access `/proc/4470/fdinfo/4': No such file or directory 0   /proc 5.0G    /root 212K    /run 7.8M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 112K    /tmp 629M    /usr 2.3G    /var 0   /vmlinuz 8.1G    total   8.1G  total as usual. But I see cannot access rows, maybe problem because of them.  Then I checked the biggest folder in /. It is /root :  /# sudo du -sch /root/* 96K /root/Downloads 2.5G    /root/Dropbox 36K /root/nohup.out 4.0K    /root/npm-debug.log 4.0K    /root/readonly 980K    /root/redis-2.6.16.tar.gz 228M    /root/tmp 2.7G    total


I have created a new menu item and a callback function.    ...   $items['user/%user/enquiries'] = array(     'title' => t('Enquiries'),     'page callback' => '_client_enquiries',     'access callback' => 'user_access',     'access arguments' => array('view enquiries'),     'type' => MENU_LOCAL_TASK,     'weight' => 1   );  ...  function _client_enquiries() {    return t('Enquiries');  }   I am now going to CURL some json from a published google spreadsheet, and cherrypick, and then print some of it out in a table. My question.. what is the drupal way to do this? I think it would be to create a custom theme function which makes my processed json data available to a template, which I can somehow load onto my menu callback and output. If that is the case, could anyone give me some pointers/examples or a point in the right direction.

I'd like to implement a simple AJAX function locally that allows me to autocomplete node titles of already existing nodes as the user types. To that end, I need the ability to have an API that I can search on node titles. The problem is that when I output raw JSON, it comes surrounded by tags. So, no matter what I do, I keep getting...
 {json here}
         I've tried implementing a custom page template that only outputs content already, that produced the same results. Here is how I am currently doing this, in my module file...  <?php  /**  * Implementation of hook_menu()  */ function content_relation_menu() {     $items = array();     $items['api'] = array(         'title' => 'Search',         'page callback' => 'content_relation_get',         'access callback' => TRUE,         'type' => MENU_CALLBACK,     );      return $items; }  function content_relation_get($term = '') {     drupal_add_http_header('Content-Type', 'application/javascript; utf-8');     $var = json_encode(         db_query("SELECT nid,title FROM {node} WHERE title LIKE :title LIMIT 5", array(":title" => $term.'%'))->fetchAll()     );     echo $var;     exit(0); }   How can I return JUST raw JSON?


On Windows 10, a lock screen greets me as soon as I boot my computer or wake it up from sleep. It must be clicked before I can see the login screen (where I'll provide my username and password).  I realize that this pre-login screen prevents accidental unlocking on smartphones and tablets (because they have touchscreens), but it just hampers me on my desktop PC.  How can I permanently disable this lock screen (so that upon boot or wakeup, I can immediately enter my password)?   I know it's possible because I've done it before, but I can't remember how, and I've recently reinstalled Windows.  What I've tried recently is the "Do not display the lock screen" option within gpedit.msc and also the HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization value in regedit. (I followed .) I've also tried the Task Scheduler  and the Microsoft.LockApp_cw5n1h2txyewy folder .  In all cases, there is no error message and no effect (I still am greeted by the lock screen after boot or wake), although those settings persist.  P.S. My question is a duplicate of , but that one should not have been flagged as a duplicate of the others, because it is unique. And since I don't know how to give that question (#1074176) the attention it merits (and reopen it), I'm posting this one.  I have Windows 10 Pro (Version 1607, Build 14393.0).

The Windows 10 "anniversary update" is coming out tomorrow and according to some  the group policy to disable the lock screen is no longer effective on anything below the Enterprise edition. I'd like to know what options/workarounds are left to disable this nonsense on Pro editions.  Regards.


Consider this MWE:  \documentclass{article}  \usepackage{tikz}  % \gdef\myset{  %* \tikzset{ %   mystyle/.style={rectangle},   mycode/.code n args={2}{%     \typeout{YEAH! #1 #2} %   }, } % end tikzset % } % end gdef  %*   \begin{document}  \begin{tikzpicture} % \myset        %*  \node[mystyle,mycode={trying}{out}] (origin) at (0,0) {}; \end{tikzpicture}  \end{document}   If you compile it as is, it will print "YEAH! trying out" to stdout. However, if you uncomment the lines marked with %*, then compilation fails with:  ! Illegal parameter number in definition of \myset. <to be read again>                     1 l.9     \typeout{YEAH! #1                           #2} % ?    ... clearly, because Latex thinks the #1 is for the \gdef\myset, while I intend it to be for the \tikzset{ command inside it!  So, after checking out , and doing texdef -t latex \makeatletter and texdef -t latex \makeatother, and \typeout{catcode of #: \the\catcode`#}, I came up with the following analog to \makeatletter, called \makehashletter:  \documentclass{article}  \usepackage{tikz}  \typeout{catcode of #: \the\catcode`#} %catcode of ##: 6 \def\makehashletter{\catcode`\#11\relax} \def\makehashother{\catcode`\#6\relax}  \makehashletter \gdef\myset{  %* \tikzset{ %   mystyle/.style={rectangle},   mycode/.code n args={2}{%     \typeout{YEAH! #1 #2} %   }, } % end tikzset } % end gdef  %* \makehashother  \begin{document}  \begin{tikzpicture} \myset        %*  \node[mystyle,mycode={trying}{out}] (origin) at (0,0) {}; \end{tikzpicture}  \end{document}   ... and this does compile - but it dumps YEAH! #1 #2 to stdout, which is not what I intended.  So my question is - is there a way to protect the # in a macro like the above, such that when the macro is ran and calls tikzset, the tikzset will see the previously protected #s as arguments?   Would it also be possible to somehow use that protection only on certain arguments (e.g. \myset could itself accept #1, which I would use "unprotected"; and I'd protect/escape the tikzset specific ones )?  (Note that I've tried:  \edef\hashmark{\string#}   ... as in , and then using \hashmark1 instead of #1 where I want them "escaped", but that didn't work)

I've seen sometimes that people use a double pound sign (##) when defining/using arguments.  What is the difference between the normal argument, #1, and the double sign one, ##1? Are there any restrictions for its use? Can you list the good practices, if any, for this type of arguments.


I'm working with an API that returns time values in the following format:  2013:02:27T06:39:25   Note the lack of any identifier for timezone.  From the API Docs:    "Transaction timestamp of the ledger entry in the affiliate's time-zone.. The format is YYYY-MM-DDThh:mm:ss.. Example 2013:02:27T06:39:25"   Apparently the API response time zone is EST (the affiliate's time-zone). What is the best way to derive a UTC timezone value from this for storage in a MongoDB database.

I have a web page with three dropdowns for day, month and year. If I use the JavaScript Date constructor that takes numbers, then I get a Date object for my current timezone:  new Date(xiYear, xiMonth, xiDate)   Give the correct date, but it thinks that date is GMT+01:00 due to daylight savings time.  The problem here is that I then pass this Date to an Ajax method and when the date is deserialised on the server it has been converted to GMT and so lost an hour which moves the day back by one. Now I could just pass the day, month, and year individually into the Ajax method, but it seems that there ought to be a better way.  The accepted answer pointed me in the right direction, however just using setUTCHours() by itself changed:  Apr 5th 00:00 GMT+01:00    to  Apr 4th 23:00 GMT+01:00   I then also had to set the UTC date, month and year to end up with  Apr 5th 01:00 GMT+01:00   which is what I wanted.


Let $A$ be a square matrix. To show: Matrix exponential converges to some matrix $X$. $$ \lim_{N \rightarrow \infty} \sum_{k=0}^{N}\frac{A^k}{k!} =X  $$ In some proofs that I have seen it is stated that because (for a sub-multiplicative norm) $$ 0 \le  \sum_{k=0}^{\infty} \left\Vert  \frac{A^k }{k!} \right\Vert  \le  \sum_{k=0}^{N} \frac{\Vert A \Vert ^k }{k!}<\infty , $$ then the series $\sum_{k=0}^{N}\frac{A^k}{k!}$ has to be convergent. That however isn't clear to me. To me more intuitive way to show convergence would be to show that $$ \lim_{N \rightarrow \infty} \left\Vert \sum_{k=0}^{N} \frac{A^k}{k!} -X \right\Vert  =0$$ and use some intuitive matrix norm for which it is clear that all elements of $\frac{A^k}{k!} -X$ converge to zero. Any hints?

Help me please to prove that matrix exponential which defined as:  $e^{A}=\sum\limits_{k=0}^{\infty }\frac{A^{k}}{k!}$ converges for all matrix $A$  Thanks beforehand.


Hi I would like to render my scene as 360x20 degrees (or 360x30) panorama, but without the fisheye effect.  I'm looking for a way to render it so it'd look like that:   I've been trying with panorama - equirectangular, but It seems like I can't get the parameters right.  How would I go about doing this?.

Update This is now possibly natively as of 2.74. See my .  Is it possible to render a panorama in cycles that is not a full 360x180 view? E.g. 360° x 30°? How can I achieve this?


I am creating a lightning component that is a Day-of-the-Week picker widget. it will allow a user to enable or disable days from a list. My front has two attributes that are useful here - a list of available days and then the list of values.  <aura:attribute name="days" type="Object[]" default="['Mon','Tue','Wed','Thu','Fri']" /> <aura:attribute name="dayValues" type="Boolean[]" default="[true, true, false, false, true]" />   There is a 1:1 relationship between the two arrays. When displaying the list I am looping through the days list and outputting the day's name. I then want to use the index of the current day in the iteration to access the corresponding value from the dayValues list.  <aura:iteration items="{!v.days}" var="day" indexVar="idx">     <div>{!day} - {!v.dayValues[idx]}</div> </aura:iteration">   .. Salesforce throws up on this. The error 'expecting a positive integer, found 'idx' at column 13 of expression: v.dayValues[idx]' leads me to believe the issue is that the idx variable is a String and not an Integer.  How can accomplish this without combining the days of the week and the values into one object?

What is the way to refer index variable inside looping ?  The code below results in error:     Failed to save undefined: expecting a positive integer, found 'indx'   at column 10 of expression: v.labels[indx]: Source       <aura:iteration var="item" items="{!v.items}" indexVar="indx">
             {!v.labels[indx]}             {!item}
     </aura:iteration>


In Counterexamples in Topology Book by Lynn Steen i found that Telophase topology is arc connected. How can we build an arc in this topology ? And also could you give me an idea of how to prove that this space is sequencialy compact ?  Thank you very much!

While reading a book i found a topological space described as:     Let $(X,\tau)$ be the topological space formed by adding to the   ordinary closed unit interval $[0,1]$ another right end point,say   $1*$, with the sets $(a,1)\cup${1*} as a local neighborhood basis.   Then it says that such topological space is arc connected. I found almost exactly the same question  which has yet to be solve,however i'll provide some details.     The book itself states that since [0,1] and [0,1)$\cup${1} are homeomorphic as subspaces,and the subspace topology on [0,1] is   Euclidean,X is the union of two compact subspaces and thus compact,by   the same reasoning it is arc connected.*   How can such argument prove me that there is a injective path from $1$ to $1*$? Is it possible to explicit such path?  Further details: As the book states:     Path and arc connectednesss relate to the existence of certain   continuous functions from the unit interval into a topological   space.Continuous functions from the unit interval are called paths,if   they are one-to-one they are arcs.


I want to expand a function $\arctan(x)$ as a polynomial form. I know that I can use Taylor expansion in the case of x <1. But in my case, the x can be pretty large. Is there any way to expand or approximate arctan function?

I would like to know if there is reasonably fast converging method for computing large arguments of arctan.  Until now I've came across Taylor series that converges only on interval $(-1,1)$ and for increasing $|x|$ the rate decreases. Also I've found about continued fractions for arctan, which seems to converge more rapidly and can be used for any real number, but again with increasing $|x|$ I need to perform way too much iterations until I get at least 3 digits precision.  I'm therefore looking for a method that would allow me to compute arctan for large arguments with good precision and in reasonable amount of iterations.


I'm using Ubuntu 20.04 with Linux Kernel 5.7.10-050710-generic and GNOME Shell 3.36.3. I have set font scaling factor to 1.25 but lately when I restart while the scaling factor lasts to the UI, it is not applyed to gnome shell. To make it work again I have to manually reset it to 1.25 again. Any suggestions?

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor  I also tried using the command dconf reset -f /  Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU


For instance, a child whose parents have died is an orphan; while a woman whose husband has died is a widow...

Is there a word that describes a parent whose child has died?   Along the lines of "orphan", "widow", and "widower", is there a single word for a parent who has lost a child (of any age)?


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

In Nautilus, when you double click a file, it will open it with the default application associated with the file's extension. For instance, .html files will open in a web browser and .pdf will be opened with Document Viewer. Is there a way to reproduce the same behavior from within the command line (i.e. open path/filename)? I'm asking because I like to browse my file-system from the command line but sometimes don't remember which app. opens what.


Here is the photo:   Is there a name for this effect and is there any way to prevent this from happening? This photo was taken on a Nikon D60 with a Nikkor 50mm 1.8G lens.   The setting were f/1.8 1/40 ISO-400  This is not the same as the question is it normal to get significant lens flare with a 50mm f/1.8 Canon prime lens? as this question is mainly based on what this effect is called, not whether it is normal or not.

I've purchased a Canon EF 50mm f/1.8 II. But I'm really disappointed in the results, especially when using it for night photography. :(  In my night shots a lot of lens flare appears in my photos. I've tried to change the angle and position of the camera to no avail. Also I cannot do any night photo without directing my camera to direct light like in street photography!  This photo was taken with my Canon 650D and 50mm 1.8 Lens in a long exposure night shot, and as you notice there is a bunch of lens flare in it. Some people suggested I remove the UV filter. This decreased the lens flare a little but there is still some flare in the photo .    I want to know if there is a problem with the lens? Or is this normal for a $100 lens? Does anyone else have a similar experience with this lens?


This is part of a bash find loop, and I wondered which is more correct syntax and why?  filename="$(echo "$i" | cut -c5-)"; filename=`echo "$i" | cut -c5-`;   Both function for the purpose of getting the file name.

There are two syntaxes for command substitution: with dollar-parentheses and with backticks. Running top -p $(pidof init) and top -p `pidof init` gives the same output. Are these two ways of doing the same thing, or are there differences?


I want to split a mathematical function by the sign of the variables in it like this :  string input = x-5y+3z=10  output--> [x,-5y,+3z,=10]   i used to do this on java by using input.split() function , but because I'm a c++ beginner i cannot find a way to do it like in java.  Any help ?  Edit:  After a long a time i found a solution to what i want , maybe it's not the ideal solution and it could have more improvements but as i said before I'm a still a beginner in c++ ,here is it ->  std::string fun="-x1+2x2=10.";  std::string *arr=new std::string[20]; int index=0;  for (int i=0; i<=20; i++){     if(fun[index]=='.'){         break;     }     for(int j=index; j<fun.length(); j++){     if(fun[j]=='+' || fun[j]=='-' || fun[j]=='='|| fun[j]== '.'){         if(j!=index){         arr[i]=fun.substr(index,(j-index));         index=j;         std::cout<<"term is : "<<arr[i]<<"\t index is : "<<index<<"\t j is : "<<j<<std::endl;          break;         }     }   }   output is ->  term is : -x1    index is : 3    j is : 3 term is : +2x2   index is : 7    j is : 7 term is : =10    index is : 10   j is : 10   if there is any advice to improve it please say .

Java has a convenient split method:  String str = "The quick brown fox"; String[] results = str.split(" ");   Is there an easy way to do this in C++?


What is the transfer function and bode graph when k=0 and k=1?

I have also question about this question?  Q1.What factors mean that the potentiometer wiper position relating to k=o.5 is not necessarily equal to the mid point when measured outside the circuit?  Q2. Set the input frequency to ,firstly 25kHz and secondly 200Hz and observe the variation in output amplitude at these frequencies as you vary the position of the potentiometer. Discusssion the action of the circuit at different frequencies in relation to the frequency-dependent gain profile seen in your plots.


I am running macOS Mojave. I've downloaded Catalina, but I regret to install it. The download was completed. Where can I find the downloaded file(s) to free up the disk space?   I haves checked in Applications folder. I checked with find, couldn't find the files.

Every few days I get notices on my MacBook that it's running or run out of hard drive space. Curiously, restarting the computer will enable me to recover gigabytes of space (this past time, it was able to recover about 2.2GB). However, I can't identify anything in my personal activity that consumed that space.  It's possible that it's a rogue iTunes podcast or a huge software update that my Mac is automatically downloading - would either of these reclaim the space upon a restart?  One possibility that I can think of is that FileVault has some sort of disk leak, allocating but not freeing files. Does this make sense? Is there a tool that I can run to determine where this space is going? Assuming it is FileVault, should I try to disable it? What's the best way to turn of FileVault on a nearly full computer?


Let $X\subset \mathbb R^{n}$ be a compact set, and $f :\mathbb R^{n}\to \mathbb R $ a continuous function. Then, $F(X)$ is a compact set.  I know that this question may be a duplicate, but the problem is that I have to prove this using real analysis instead of topology.   I'm struggling with proving that $F(X)$ is bounded. I know that the image of a continuous function is bounded, but I'm having trouble when it comes to prove this for vectorial functions.   If somebody could help me with a step-to-step proof, that would be great.

How to prove: Continuous function maps compact set to compact set using real analysis?  i.e. if $f: [a,b] \rightarrow \mathbb{R}$ is continuous, then $f([a,b])$ is closed and bounded.   I have proved the bounded part. So now I need some insight on how to prove $f([a,b])$ is closed, i.e. $f([a,b])=[c,d]$. From Extreme Value Theorem, we know that $c$ and $d$ can be achieved, but how to prove that if $c < x < d$, then $x \in f([a,b])$ ?  Thanks!