I have a spinner inside a AlertDialog. That will appear when the FloatingActionButton is clicked.  final AlertDialog.Builder mBuilder = new AlertDialog.Builder(Main2Activity.this); View mView = getLayoutInflater().inflate(R.layout.add_connection, null); area = (Spinner) mView.findViewById(R.id.addArea);   and an array that has to be displayed in the spinner.  final ArrayList<String> areaList  = (ArrayList<String>)getIntent().getSerializableExtra("areaList");("Outside the onclick function of FloatingActionButton")  ArrayAdapter<String> adapter = new ArrayAdapter<String>(Main2Activity.this, android.R.layout.simple_spinner_dropdown_item, areaList); area.setAdapter(adapter);   Now when I run the app and click the FloatingActionButton the app crashes and the following error appears.  java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference at android.widget.ArrayAdapter.getCount(ArrayAdapter.java:344) at android.widget.AbsSpinner.setAdapter(AbsSpinner.java:115) at android.widget.Spinner.setAdapter(Spinner.java:520) at android.support.v7.widget.AppCompatSpinner.setAdapter(AppCompatSpinner.java:389) at trickandroid.cablevasul.Main2Activity$1.onClick(Main2Activity.java:56) at android.view.View.performClick(View.java:5637) at android.view.View$PerformClick.run(View.java:22433) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6126) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)   Help me with it..

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 happens to the W-Function in the expression ${x}^{x^{x^{x^...}}}=a$ and what values for $a$ and $x$ they take ? it seems there is a maximum value for $a$ that can take and which? Really I can't solved it using W-Function  Note We may avoid triviality case $x=a=1 $

Find the value of $\large i^{i^{.^{.^.}}}$ ?  How should we start to solve it ?  Also you can see  if it helps.  Thanks


I am trying to get started on  $$\int_0^\pi{x\sin{x} \over 1+\cos^2x}dx$$ The usual trick I am familiar with would be to substitute $y=\tan{x \over 2}$. This doesn't seem to work in this case.

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


I need to solve the indefinite integral:    $$\int \frac{\sqrt{x^4+x^{-4}+2}}{x^3} dx,$$   but I can not find any technique which could solve it.   Can you help me please?

The integral to be solved is $\int \sqrt{x^8 + 2 + x^{-8}} \,\mathrm{d}x$. I tried substitution $t=x^8$ which got me to $\frac{1}{8} \int \sqrt{t + 2 + \frac{1}{t}} t^{-7/8} \,\mathrm{d}t$ and I'm stuck. Can you help?


My bike is locked to an indoor bike rack with a folding ABUS keyed bike lock. Today I couldn't turn the key to release the lock after work. No problem locking it in the morning.  Tried wiggling, banging, twisting and pulling on "link".  Any suggestions?

I'm currently trying to unlock my bike that has been sitting on my porch for a while, the key works and turns, and I can hear the lock engaging/disengaging, however I cannot get the shackle to come out. I think their might be dust/sand stuck in the mechanism however I'm not sure how to get it off now to check.


I've heard more and more people saying "A is N times less than B" in many contexts.   I even saw in a news journal (forgot whether it was Time or Newsweek), "The object was 3 times closer than the moon".     I cannot bring my self to say this.  It just seems wrong.   If "2 times closer" or "5 times slower" mans "half as fast" or "a fifth as fast", then why not just say that?   Besides to me it seems logically that "A is 5 times less than B" ought to mean "A = B - 5*A".  I also speak French, and the French say this all the time (in French and in English).  QUESTION.  Has this horrible formulation become common place, and we just need to accept it and start using it?   Or is it still regarded as ambiguous and should be avoided in scientific writing?  (this question is related to  but it different because it asks a different question.)

I’m not sure of whether this is grammatically correct, although I've encountered the same expression many times before.     Most Google searches show it produces 35 times less carbon than the report suggested.   Does 35 times less have a precise meaning in this context, or is it ambiguous here? Does either of these two possibities apply?   the original amount minus 35 times the original amount (35 times less than 100 units would be −3400 units) ¹⁄₃₅ of the original amount (35 times less than 100 units would be  2 ⁶⁄₇ units)


There is a solution which starts by taking $\langle 2+i\rangle$ as a subset of $\langle a+ib\rangle $ and then proceeds as, Hence $(2+i)$ can be represented as multiple of $(a+ib)$. I understand till this part.  Next it proceeds, $(2+i)=(a+ib)(c+id)$. I don't understand this line.  Shouldn't it proceed by multiplying $(a+ib)$ with an integer.  Why is $(a+ib)$  multiplied with another complex number?

I have to find an easy ring which this ring is isomorphic with.  I can prove that $5 = (2+i)(2-i) \in (2+i)$ but this doesn't help me further.  My book says the answer is $\mathbb {Z_5} $


in my notations, $S_n$ is the symmetric group and $A_{n+1}$ the alternating group.  I showed that if $n$ is even it is never possible because you need to have $n! | n! \cdot\dfrac{n+1}{2}$.   So we need $n$ odd.  I also showed that it is impossible for $n=3$ because $A_4$ has no subgroups of order 6.  Now, for other odd values of  $n\ge 5$, we can use the fact that $A_{n+1}$ is simple, but how to go on from here ?   The links given as duplicate do not provide a clear answer and I am still stuck on this. Here is what I have :  If you consider transposition $(1\quad 2)$, the permutations that commute with this transposition are the ones that fix 1 and 2, and the ones that switch 1 and 2. So that the size of the centralizer of $(1\quad 2)$ is $2(n-2)!$.  Now, because $(1\quad 2)$ is of order 2, it's image must also be an element of order 2 in $A_{n+1}$, so that it must be the product of $2k$ disjoint transpositions. If we now consider the centralizer of the product of $2k$ disjoint transpositions in $A_{n+1}$, we find that a permutation in the centralizer must fix or switch each of the transpositions, leaving $2^{2k}$ choices. Then, we must either pick a permutation of $A_{n+1-2k}$ or $S_{n+1-2k}\setminus A_{n+1-2k}$ to make sure the parity is even. Leaving in total : $$ (n+1-2k)!\cdot 2^{2k-1}$$  Permutations in the centralizer of the product of $2k$ transpositions.  If we had $(n+1-2k)!\cdot 2^{2k-1}< 2(n-1)!$ we would be done, but it is not always true.

I'm working through Rotman (1994). It's the 2nd chapter where my curiosity lead me to a question that is not from the book. Here's the problem that inspired the question:      2.8. Imbed $S_n$ as a subgroup of $A_{n+2}$, but show, for $n\ge2$, that $S_n$ cannot be imbedded in $A_{n+1}.$    Since the alternate subgroup has the property of even parity, I thought that a little investigation of parity for the second and third symmetric groups was in order. So I constructed a table for each of them, grouped by even and odd number of disjoint products.   I'll forego writing the actual table and simply provide the answers. In symmetric groups with an even idegree, two even permutations come together under composition to produce an even permutation. Two odds also make an even. Two different parities produce odd elements.   When the symmetric group has an odd degree, e.g. $S_3$, two odds make an odd, two evens make an odd, and two different parities make an even element. Exactly the opposite results from the symmetric groups with even index.   Two questions: is this enough to prove the $A_{n+1}$ case? And can this be generalized modulo 2 e.g. $A_{2n+1}$?


I already googled lots of thing about prevention of hair fall,but did not get any satisfied solution,can any one suggest me best thing to prevent hair fall,thanks in advance

I'm 28, male, and the hair above my forehead started to fall about 2 years ago and my scalp is finally starting to shine out.  I believe this has to do with genetics etc. but still, are there any natural ways to prevent or delay this?


I'm studyding Field and Galois Theory and I need to practice doing exercise, to or to be more specific, algebraic extension, normal extension, ... Can someone represent a book of this kind with (many) exercises and solutions to do?   Thanks in advance!

I need a source for exercises on classical Galois Theory, or to be more specific, Galois extensions of finite fields and the rationals as well as applications (solvability by radicals, for example). So far, I have worked with Tignol's "Galois Theory of Algebraic Equations". Any additional suggestions would be appreciated, whether it is a textbook or a website, but the language should be English. Solutions are welcome, but no necessity.  Thanks in advance!


I have an array with names of constructors var arr = ['Class1', 'Class2', 'Class3'].   function Class1() {      this.name = 'class1'; }   Is it possible to dynamically create instances of these classes? I mean something like  var class1Object = new arr[0]();   I tried that but it isn't working (Uncaught TypeError: string is not a function).

I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?  Depending on the circumstances, I may need to pass various arguments into the method too.  Some of the functions may take the form of namespace.namespace.function(args[...]).


I have an inbox, and a label (let's call it label x). When I get an email that matches the filter for label x, I want it to appear in the 'x' folder, and NOT appear in the inbox. And if possible, not get push notifications to my phone for it.  How can I achieve this in Gmail?  Basically this is for things like confirmations from Venmo or Amazon. Things I don't wanna NOT get the emails for, but things I don't necessarily need to see either.

I created some filters to label my e-mails in Gmail, but all of these multiple label mails have the "inbox" label too!   How can I remove the inbox label on labeled emails? (With this configuration labeled e-mail will not show in inbox.)


I am selling an old Mac with OS X 10.4 (Tiger), and I don't have the installation CD anymore so I can't format and re-install; I have to leave the current installation intact.  Obviously, I'd like to remove any personal data from it. What I've done:   Move out all important data Delete my old account (and entire home directory) Create a new account for the new owner Delete unused space in Disk Utility Delete Spotlight index Delete /var/db/locate.db   Is there anything else I should do to ensure that no personal data is available on the machine?  For example, I have never stored any personal data outside the /Users folder. But is there anything that OS X stores there, caches or similar things?

I have a Mac that runs Snow Leopard and I intend to upgrade it to Mountain Lion and sell it on ebay. However, I only have one hard-drive, and I'm sure I can't use something in my OS to delete my OS and all user data.  Is there something for this that's built into the firmware that I can do on boot, or otherwise?   I have source code on my Mac for multiple corporations' proprietary software and I can't risk somebody gaining access through the use of any sort of disk recovery tool. I plan to use a 7 pass erase rather than simply deleting the directory.


Should I use "is increasing" or "are increasing" in this sentence:  Second, the frequency of attacks and number of deaths is increasing.   The original post uses "is". Is it British English?  SOURCE FinancialTimes The ‘war on terror’ is going backwards By Gideon Rachman January 19 2015

I am in doubt as to whether the subject-verb agreement of the second sentence of this paragraph is correct :  Unfortunately, there is no such thing as the ideal home workshop because most people are limited by the space available and by their budget. However, the information and diagram here acts as a guide to help you formulate a sensible workshop layout and a machinery “wish list”.  I suppose if the compound subject is seen as a single unit, then the sentence can be considered as correct. A little further in the same book, another sentence has a singular verb with a compound subject :  Alternatively commandeer a garage, or build yourself a substantial workshop if outdoor space and permission allows – however, do consider the impact of machinery noise on your neighbours.  Can "outdoor space and permission" be seen as one thing, or would this be considered a mistake ?


Code:  SqlCeCommand addBookHistoryQuery = new SqlCeCommand("INSERT INTO rooms_history (room_id,[user],data_wynajecia,data_zwolnienia,id) VALUES (@room_id, @user, @data_wynajecia, @data_zwolnienia, @id)", connection);   Can anyone remind me what was doing [ ] with parameter? ([user])  Thanks.

I've noticed that Visual Studio 2008 is placing square brackets around column names in sql. Do the brackets offer any advantage? When I hand code T-SQL I've never bothered with them.  Example:  Visual Studio:  SELECT [column1], [column2] etc...   My own way:  SELECT column1, column2 etc...


I'm looking for a single word to describe a person who is a good wordsmith or orator, but who doesn't believe in the ideas behind their words. Any ideas?

I am looking for a word to let others understand that somebody is a person who does exactly the opposite of what he speaks. Is there any word for this?


The response variable is binary (dead="1" or not="0"),and there are 4 numeric independent variables. I tried logistic regression and 2 of independent variables are significant. However, the prediction is bad because all the predict outcome went to "0".  I think that is because there are a lot of more "0"s than "1" in the data.  Is there any package in R contains some kind of correction? Or should I use logistic model at all? If I use classification methods like LDA, will it have the same problem?

I would like to study rare events in a finite population. Since I am unsure about which strategy is best suited, I would appreciate tips and references related to this matter, although I am well-aware it has been largely covered. I just don't really know where to begin.  My problem is a political sciences one and I have a finite population comprising 515,843 records. They are associated to a binary dependent variable with 513,334 "0"s and 2,509 "1"s. I can coin my "1"s as rare events since they account for only 0.49% of the population.  I have a set of around 10 independent variables I would like to build a model with to explain the presence of "1"s. Like many of us, I read  about rare events correction. Their approach was to use a case-control design to reduce the number of "0"s, then apply correction to the intercept.  However,  that King & Zeng's argument was not necessary if I already collected my data over the whole population, which is my case. Therefore, I have to use the classical logit model. Unfortunately for me, although I obtain good significant coefficients, my model is completely useless in terms of prediction (fails to predict 99.48% of my "1"s).  After reading King & Zeng's article, I wanted to try a case-control design and selected only 10% of the "0"s with all the "1"s. With almost the same coefficients, the model was able to predict almost one third of the "1"s when applied to the full population. Of course, there are a lot of false-positive.  I have thus three questions I would like to ask you:  1) If King & Zeng's approach is prejudiciable when you have full knowledge of the population, why do they use a situation where they know the population in their article to prove their point?  2) If I have good and siginificant coefficients in a logit regression, but very poor predictive power, does that mean that the variation explained by these variable is meaningless?  3) What is the best approach to deal with rare events? I read about King's relogit model, Firth's approach, the exact logit, etc. I must confess I am a lost among all these solutions.


It is not uncommon for travel or holiday accommodation companies to ask for a scan of your passport by email. Sometimes local laws require them to keep a record of the passport numbers of all visitors. I'm happy to provide that information but you usually have to send it in an unsecured email, which may have consequences .  Could these companies be more responsible, and provide a public cryptographic key at least?  Are there other steps you should take to protect yourself, if you do send by unsecured email?

In one of the questions on this site, it was suggested the use of  to save a backup copy of your passport, in case you need to proof who you are if your original document is lost.   I like the idea, but what if someone gets access to your Dropbox folders and is able to acquire the copy of your passport.  The same goes for when you leave a copy of your passport at a hotel receptions desk. Once someone has the info printed on that copy, would that make it easier to steal your identity?


I have a form on index.php which takes two fields, i want to display a message as 'You will get an email' when user submits the form. And i want to process the form in the background as it will take more than 15-30 mins. The script shall run even if the users close their browser. I have tried doing it using ajax but the ajax returns message only when the AJAX function succeeds. Is there any way to display the message before the AJAX function succeeds and the script keeps running even after the user close their browser.

I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it takes for the copy to complete.  Any suggestions would be much appreciated.


Considering, i have declared variable name as a numeric with underscore.  #include <stdio.h>  int main() {    char _3 = 'c';    printf("%c\n",_3); }   I wonder, It's working fine in C and C++. So,is it valid?

It's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC background, you'll probably use m_foo. I've also seen myFoo occasionally.  C# (or possibly just .NET) seems to recommend using just an underscore, as in _foo. Is this allowed by the C++ standard?


i am using the C23-L33 model.  if i rotated the motor at the rated speed of 3000RPM, how much voltage will i generate?  can I please know the exact steps of finding the answer out using the datasheet above?   thank you.

Is there any way to calculate the expected voltage and current, assuming I am turning it at the specified RPM value, when using a DC motor as a generator without physically testing it?  In my case I wanted to use a DC motor with the following parameters:  DC 6V 6300 RPM Torque: 0.1Kg.cm


My code is as follows:  import java.util.*;   import java.io.*;   public class Buffer {     public static void main(String args[]) throws Exception     {                     int T;         Scanner sc = new Scanner(System.in);         T = sc.nextInt();         while(T > 0)         {             InputStreamReader r = new InputStreamReader(System.in);                 BufferedReader br = new BufferedReader(r);                        String no = "";              no = br.readLine();              char ch = no.charAt(0);              if (ch == '0')             {                 System.out.println("YES");             }             else             {                 System.out.println("NO");             }             T--;         }                   }     }       Please help me with my code, what is wrong exactly?   I am getting the output:   Run Time Error Exception in thread "main"<br>       java.lang.NullPointerException  at Buffer.main

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've done this by hands. Can be this done otherwise easily?

I'm wondering how to approach duct work, piping, and wiring? In the past, I have used the spin tool to make corners, but I find it very cumbersome. How do you do duct work and piping? I have seen people use curves, but I find it's hard to get straight 90 degree angles or just uniform angling across the whole model. It's also hard connecting piping together if they started from different locations. Here's some reference:


I have a website and a blog.  My website generates business directly, my blog indirectly. These are currently on two different domains. My website consistently ranks 2-3 for relevant search terms in my area. My blog ranks 7-9 for the same terms.  I'm considering moving (completely) my blog to a subdomain of my main site.  My question is whether you think this would have a good chance of pushing my main site up to the number one spot. I estimate I'd have tripled my traffic to the one domain in this case.  Any advice appreciated.

I am planning to have my own website and would like to ask some questions regarding about the organization (I don't know if this is the right term for it) of domain names.  Let me give an example:  If I have a domain named “www.joe.com” but is planning to have different websites or categories for my varied interests but would still retain the  “joe” name on my domain, would it be better to have a sub-domain instead?  Is that it?  Is this what would turn out:  www.joe.com             = my main site bookworm.joe.com        = a blog for my love of books travel.joe.com          = a blog for my travel experience food.joe.com            = a blog for my love of food and cuisine  I also notice that there are other websites that are like this: (this is just an example, but you get the idea)  www.personname.com          = main site www.personname.com/blog     = a blog for his site ( is this a subdomain now)  Everytime you go to the www.personname.com, you are then redirected to the www.personname.com/blog address.  Is it safe to say that the blog address is a sub-domain and for blogging only and then the www.personname.com is the main site?  What is the difference of this approach compared to the first example I've given above?  Cheers!


Let $G$ be a group and $H$ be a subgroup. Consider the following set: $$\hat{N}(H):=\left\{g\in G: g^{-1}Hg \subset H\right\} $$ The normalizer of $H$ is usually defined as $$N(H):=\left\{g\in G: g^{-1}Hg=H\right\} $$ My question is: are these two sets equal? If $H$ is finite, then the answer is certainly positive. The map $x\mapsto gxg^{-1}$ is an injective map from $H$ onto $H$, so if $H$ is finite, it is also invertible. Thus $g^{-1}Hg\subset H$ implies $g^{-1}Hg=H$, and $\hat{N}(H)=N(H)$.   In the general case, my guess would be no. The normalizer is a subgroup of $G$, whereas $\hat{N}(H)$ possibly isn't. While $1 \in \hat{N}(H)$ and $g,h \in \hat{N}(H)\Rightarrow gh \in \hat{N}(H)$, if $g\in \hat{N}(H)$ i cannot deduce that $g^{-1}\in \hat{N}(H)$.  I couldn't find any counterexample, though. I know that $H$ would have to be infinite and nonabelian (otherwise $g^{-1}Hg=gHg^{-1}$). I tried to use some subgroups of $\operatorname{GL}_2(\mathbb{C})$, but all the ones I could construct had the whole $\operatorname{GL}_2(\mathbb{C})$ as their normalizer.

Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$?   If $H$ has finite index or finite order, this is not possible.


I'm trying to delete a file called lic98.dll and I fail to do so, I tried cutting the file somewhere else in it works, then I tried deleting and nothing happens, so I'm kinda stuck now on how to delete it.

When I try to delete the file, using the GUI it says      The action cannot be completed because the file is open in another   program   And using the del /f /q command line it says     Access is denied   I have tried unlocking the file with Unlocker, as well as trying to locate which process is using the file with the Resource Monitor or the Process Explorer, but no locking handle was found in either case.  I am able to rename or move the file, but not to delete it or change its content.


When running tlmgr updateerror all (with TeX Live 2013 distribution) in Windows OS, I get the following message:  TeX Live 2013 is frozen forever and will no longer be updated.  This happens in preparation for a new release.  If you're interested in helping to pretest the new release (when pretests are available), please read http://tug.org/texlive/pretest.html. Otherwise, just wait, and the new release will be ready in due time. tlmgr.pl: package repository http://ctan.imsc.res.in/systems/texlive/tlnet tlmgr: saving backups to C:/texlive/2013/tlpkg/backups  tlmgr: all mentioned, but neither new nor forcibly removed tlmgr: no updates available   What should I do?

I recently installed TeX Live 2011 (basic) and ran tlmgr command. The output said No command 'tlmgr' found, did you mean..... As a remedy I exported the directory where tlmgr is located to $PATH variable by running export PATH=/usr/local/texlive/2011/bin/i386-linux/:$PATH. After doing this if I run tlmgr --self --all update, I get following message:  tlmgr: package repository http://get-software.net/systems/texlive/tlnet TeX Live 2011 is frozen forever and will no longer be updated.  This happens in preparation for a new release.  If you're interested in helping to pretest the new release (when pretests are available), please read http://tug.org/texlive/pretest.html. Otherwise, just wait, and the new release will be ready in due time. tlmgr: saving backups to /usr/local/texlive/2011/tlpkg/backups tlmgr: no updates available   I installed TexLive 2011 using sudo command and sudo version of above command does not help either. Please let me know what I am missing.


I am trying to get a deeper mathematical understanding of regression, beyond just applying it and interpreting the output. Can somebody provide me with the mathematical rationale for why interaction terms in a regression equation are defined by the product of the involved independent variables? I assume it has to do with calculating the model sum of squares, and the portion of variance in the IV which cannot be independently attributed to the IV alone (as a main effect), but I do not understand the underlying mathemathics.

Moderated regression analyses are often used in social sciences to assess the interaction between two or more predictors/covariates.   Typically, with two predictor variables, the following model is applied:  $Y = β_0 + β_1*X + β_2*M + β_3*XM + e$  Notice that the test of moderation is operationalized by the product term $XM$ (the multiplication between independent variable $X$ and moderator variable $M$). My very fundamental question is: why do we actually calculate a product term between $X$ and $M$? Why not, for instance, the absolute difference $|M-X|$ or just the sum $X + M$?   Interestingly, Kenny alludes to this issue here  by saying: "As will be seen, the test of moderation is not always operationalized by the product term XM" but no further explanation is given. A formal illustration or proof would be enlightening, I guess/hope.


I am trying to query on history object. I want to query records which have specific old value on Lead Status Field.   I have already checked    It is anytype datatype not text area as shown in Image.    Expected SOQL Query is (Query Editor):   SELECT  OldValue,Id, LeadId, CreatedDate FROM LeadHistory Where Field='Status' AND OldValue = 'New'   Error is:   [object Object]: LeadHistory Where Field='Status' AND OldValue = 'New' ^ ERROR at Row:1:Column:84 field 'OldValue' can not be filtered in query call

Here is my SOQL code for finding records to update but it is generating a compiler error like "field 'Chatter_Monitor_Policy_Keyword__c' can not be filtered in query call". Why can't I filter by this field?  string abc = obj[0].Chatter_Monitor_Policy_Keyword__c; string s ='%'+ abc + '%';  List<Chatter_Monitor_Policy__c> records = [SELECT Id, Chatter_Monitor_Policy_Keyword__c from Chatter_Monitor_Policy__c where Chatter_Monitor_Policy_Keyword__c Like:s and CreatedById =: UserInfo.getUserId()]; if(records.size()!=null) {   for(Integer i=0; i<records.size(); i++)   {     records[0].Chatter_Monitor_Policy_Keyword__c = s;     update records[0];   } }


I need some help with the following task: Show that  for all $n\geq2$ is $D_{2n}/Z(D_{2n})\cong D_n$ $D_n$ is the dihedrial group with $2n$ elements and looks like $D_n=\{id,r,...,r^{n-1},s,sr,...,sr^{n-1}\}$ Sadly I have no idea how $D_{2n}/Z(D_n)$  looks like but I guess I need to know that to show that it is a homomorphism and bijectiv. Thanks for helping me

What is the center of $D_{2n}/Z(D_{2n})$. I see that when $n=2^k$ then I have a $p$-group so the center is not trivial. But when $n$ is not power of $2$ how can i know what is the center of this group?. Surely when $n$ is odd then the center is trivial.


In my SQL Server I tried to truncate all tables, but there have some constraint.  So I running this  EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all" -- Disable all constraints for database EXEC sp_MSForEachTable 'TRUNCATE TABLE ?'   but still I get error as     cant truncate table ... because it is being reference by a FK constraint   Why?

I have sysadmin rights on a SQL Server 2008 R2 box. I found a script that can drop all foreign keys and re-add them for us when we need to after a testing import. So I execute the below code with no syntax errors as it displays the msg that says "Alter Table [ParentTable] Drop Constraint FK_Name"... for a total of 23 keys, but yet when I refresh the Server or the DB, and Tables, I still see them when I expand the Keys node for each table? so why its not dropping them? Also, do I need to convert it to a permanent table or put the script in a stored procedure in case if I want to run it again for testing purposes? Please advice.  I used the following script from "Swastik Mishra" posted by "Pinal Dave"        SET NOCOUNT ON DECLARE @table TABLE( RowId INT PRIMARY KEY IDENTITY(1, 1), ForeignKeyConstraintName NVARCHAR(200), ForeignKeyConstraintTableSchema NVARCHAR(200), ForeignKeyConstraintTableName NVARCHAR(200), ForeignKeyConstraintColumnName NVARCHAR(200), PrimaryKeyConstraintName NVARCHAR(200), PrimaryKeyConstraintTableSchema NVARCHAR(200), PrimaryKeyConstraintTableName NVARCHAR(200), PrimaryKeyConstraintColumnName NVARCHAR(200) ) INSERT INTO @table(ForeignKeyConstraintName, ForeignKeyConstraintTableSchema,     ForeignKeyConstraintTableName, ForeignKeyConstraintColumnName) SELECT U.CONSTRAINT_NAME, U.TABLE_SCHEMA, U.TABLE_NAME, U.COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE U INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS C ON U.CONSTRAINT_NAME = C.CONSTRAINT_NAME WHERE C.CONSTRAINT_TYPE = 'FOREIGN KEY' UPDATE @table SET PrimaryKeyConstraintName = UNIQUE_CONSTRAINT_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS R ON T.ForeignKeyConstraintName = R.CONSTRAINT_NAME UPDATE @table SET PrimaryKeyConstraintTableSchema = TABLE_SCHEMA, PrimaryKeyConstraintTableName = TABLE_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS C ON T.PrimaryKeyConstraintName = C.CONSTRAINT_NAME UPDATE @table SET PrimaryKeyConstraintColumnName = COLUMN_NAME FROM @table T INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE U ON T.PrimaryKeyConstraintName = U.CONSTRAINT_NAME --SELECT * FROM @table --DROP CONSTRAINT: SELECT ' ALTER TABLE [' + ForeignKeyConstraintTableSchema + '].[' +      ForeignKeyConstraintTableName + '] DROP CONSTRAINT ' + ForeignKeyConstraintName + '  GO’ FROM @table –ADD CONSTRAINT: SELECT ‘ ALTER TABLE [' + ForeignKeyConstraintTableSchema + '].[' +   ForeignKeyConstraintTableName + '] ADD CONSTRAINT ‘ + ForeignKeyConstraintName + ‘ FOREIGN KEY(‘ +   ForeignKeyConstraintColumnName + ‘) REFERENCES [' + PrimaryKeyConstraintTableSchema + ']. [' + PrimaryKeyConstraintTableName + '](‘ + PrimaryKeyConstraintColumnName + ‘)  GO’ FROM @table GO


I'm doing some tests on postfix and I've read the following log message: status=sent (delivered via filter service) Can someone tell me what does that mean?

I always see the below line in my postfix logs,  status=sent (delivered via filter service)  Does that mean message reached mailbox ?  There are other logs like   Accepted for delivery Delivered to mailbox


This is one of the most famous and trending question in today's world. Well , before you answer this question I want to say that before answering this question you must know about the Big Bang Theory & Big Bang Theory .  { My motive to ask this question is that think deeply to answer this question and not by guesses .}

Did spacetime start with the Big Bang?  I mean, was there any presence of this spacetime we are experiencing now before big bang? And could there be a presence/existence of any other space-time before the big bang?


I want to create a outline like this in my slide deck, but between every subsection of my talk. (Instead of between sections). Any ideas of how I accomplish this? Thanks!

I am currently making a presentation using Beamer. I have section, subsection, subsubsections in my presentation. I want to achieve the following:   The TOC at the starting of the presentation won't show subsubsections. Starting of a subsection, I need a TOC of that subsection as well as subsubsections.   I know the first can be achieved using \setcounter{tocdepth}{2}. But I can't get the second one. It would be better if the subsubsections of the current subsection is highlighted and others are faded.  Please help me out.   note: I have checked this: . However, the difference is I want a TOC at the starting of subsections.  I also have checked this:  However, the difference is this shows the whole TOC (although shaded) at the starting of each subsection. I wanted a mini-TOC, particularly for the current subsection. If a subsection doesn't have a subsubsection, no TOC should be generated.


I recently found my old Raspberry Pi laying in a drawer and I took a look at it. I noticed that the conductor traces are in a zigzag form.    What's the reason behind this? Especially because there's plenty of space to just make a straight trace.  I am sure there has to be reason for this because I have never noticed this on the PCBs I deal with at work.

First, let me say that I'm no electrical engineer, I'm just a curious student.   Here's a photo of a Raspberry Pi A+.    I (as one completely ignorant of PCB design) would expect the electrical paths to be as simple as possible, which normally implies using the shortest path from the source to destination. Here, the printer can clearly print straight diagonal paths, but some other nearby paths are stair-stepped, or even take bizarre roundabout paths to their destinations.  I've seen this on a variety of PCBs, including other models of the Raspberry Pi, some Arduinos, computer motherboards...  Can you explain, in layman's terms, why these more complex paths are chosen?


Following on from an earlier question where the implementation was flawed, can anyone advise if the below is a viable implementation of a circuit to handle a matrix keypad?  The idea is that one keypad column and one GPIO pin (1, 2 or 3) will be 'active' at any one time. This will sequentially flick between the 3 column/pin combinations. The optocoupler will turn on when a keypad button is pressed which will 'activate' (i.e. trigger a change) in GPIO 4.  There would be an optocoupler for each row - I have only included 1 on the diagram to keep it condensed. "in" is the LED anode/cathode and "out" is the photo transistor collector and emitter.  It's a learning exercise on the 555 and 4017, more than anything so any other pointers would be much appreciated.

Is the below a valid circuit implementation and are there any things to watch out for? It's a simplification of the larger circuit but the crux of it is that I need to sink current into two GPIO input pins. The pins are signified by the 1 and 0.  Also, would a diode on the pins be advisable?    Edit: Here's the non-simplified circuit. The question relates to the 3.3v part of it. In essence, the timer and decade counter sequentially pulse current, 'activating' the transistors one at a time. The keypad is a simple matrix keypad. What I'm wondering if I can do is to put a GPIO pin on the line between the keypad and ground. The intended effect is that, when a button on the keypad is pressed, 2 pins will change state - this signifies the row and column.  Note that some of the resistance and capacitance values are notional at the moment.


I am reading an one-dimensional barrier problem. To evaluate the unknown constants $A,B,C,D$, the continuity of $\Psi(x)$ and $\frac{d\Psi}{dx}$ is used at $x=0$ where the potential has a discontinuity. I understand continuity of $\Psi$. But why is the derivative of $\Psi$ continuous at $x=0$? It has a step function which is not differentiable at $x=0$.

Is there anything in the physics that enforces the wave function to be $C^2$? Are weak solutions to the Schroedinger equation physical? I am reading the beginning chapters of Griffiths and he doesn't mention anything.


I just finished my MA in Global Affairs, and I am applying to several International Relations PhD programs, one of which is very competitive. I have a 3.9 GPA, 1 1/2 years of experience in research including an internship at a very respected research center, and very strong LORs. My writing sample was recently accepted to a conference, and I have received great feedback on it otherwise. However, my GRE scores suck. I took them before I applied to my MA program, and despite studying like crazy for close to 3 months, I bombed. My combined score, converted to the older system is 1020, and I somehow got a 3.5 on the analytical writing section. This last part really shocked me, since writing is one of my strongest skills, and any professor I've had can attest to that. I wanted to retake the test before applying, but my last semester was very hectic and I could not carve out the time to study. Admittedly, I have had very little guidance on the application process, so I told myself that the rest of my application would make up for it. Recently I have begun to worry that this assumption was wrong.  Since I have made it this far in the application process, I am still going to apply. However, I want to have realistic expectations. Am I doomed, or do GRE scores not necessarily make or break a holistic review?

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I recently replaced my hubs, and not-so-recently the front brake rotor.  In dry conditions, everything works fine, brakes well and makes almost no noise. In rainy conditions, however, the front disk tends to vibrate and make a huge, horn-like noise.  Is there something wrong with my brake installation that I should fix, or is this normal? I've never experienced such behavior before.

I recently bought a new bike. It is a Scott bike with disc brakes. The bike went in for it's service and now it has problems braking. As soon as I pull the brake leavers the front brakes makes a loud squeaking noise. The front brake disc is a blueish color from trying to brake.   The back brake works perfectly. I took it back to the people who serviced it, and they were unable to solve the problem. Do you know what the problem could bee and how to correct it?


I created a simple script on Ubuntu Server 18.04:  #!/bin/bash apt update apt upgrade   then I changed the owner to root  # chown root update.sh   then I added SUID bit and execution bits for user and group  # chmod u+xs,g+x update.sh   and this is what I have:  -rwsrwxr-- 1 root  me  35 Mar 21 09:48 update.sh*   So I was expecting that by running this script which I have permission to run (it belongs to my group), it gets the root UID and it will execute as root, but I get permission denied.

I want to ensure that my program can only be run by user xyz using root privilege. To do this, I set the setuid bit with:  chmod u+s program1.sh ls -l program1.sh rwsr-x--- 1 root house 1299 May 15 23:54 program1.sh   Also, I added user xyz to the house group so that only xyz and root can run program1.sh.  In program1.sh there is  id -u   so that it can show me the effective ID.  Running program1.sh as root, it shows root. But running with the xyz account, it shows xyz. It seems that it didn't run with root privilege. I don't know what's wrong here.


In my map, every street segment is an entity. So each one is labelled as you can see in the picture. I'm trying to remove duplicate street labels within a given radius in QGIS, but I can't find how to do it. I know how to do it , but in QGIS I cannot find the option.

I followed instructions in  to  to add directional arrows to the one-way streets on a map I'm creating.   I've currently created a marker line with the standard arrow marker but there are a lot of one-way streets (and one-way street segments). So even with just a marker on the centerpoint of each line, I get something like the below image    I'm worried that if I dissolve streets together by name, that the direction of their drawing might get muddled (and the labels point in the wrong direction).   Do tutorials exist for labelling one-way streets in QGIS?


The numbers in the app and the main site are not the same. (Both on MSO)  Main :        App :

I checked yesterday and today the new homepage in the Android app. Very surprised I saw that I would almost reach a silver tag badge, that confused be because I always take a look on possible badges I can get. However I compared the score with the website and I got a total different results. See this two screenshots:


I'm creating a report that uses roman numeral section numbers (requirement for the conference that I'm submitting to). When I create the table of contents, I'm having the following problem:   With the section numbers overlapping the section names. Is there a simple fix for this, perhaps by adding more spacing between the number and name for every section? I'm no expert with style files, but with some instruction I could find what I need and change it.

Following minimal document:  \documentclass{report}  \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} \chapter{Eight} \section{Eight-one} \section{Eight-two} \end{document}   yields this output (cut to size for your convenience):    Clearly, the chapter (and section) headings hang into the chapter (section) numbers. For the previous chapter numbers, this isn’t a problem since all chapter titles are aligned to the same column and the numbers I–VI are sufficiently narrow.  (The same happens regardless of document type, I’m actually using scrreprt with the same result.)  How can I prevent this?


I am working with a company of 7 employees distributed throughout the U.S., each with basic cable internet connections, who need to share about 15 GB of thousands of documents (mostly Word and PDF files). Solutions we have tried include:   Dropbox (too slow to sync; also, folder structures are not synced across all shares) An NFS share hosted on an Amazon EC2 instance (lag is too great in saving documents, especially large Word documents) BitTorrent Sync (SUPER fast, but has serious bugs that have caused data loss)   Is there a practical way to share the documents, given constraints regarding network speed?

I am in the process of creating an offsite backup, and need to do a initial load of data. Currently, that's about 400Gb, give or take 10Gb or so... The backup system is producing files which are about 4Gb each, and has some other, smaller related files also. So, i need to transfer all 400ish gigs to a remote server, but how? What is the best method?  I have full remote access to the server, so i can install anything i need to install. There are Windows, Linux and a Solaris VM running on the box itself, so any of those can be used there, and i have Windows and Linux at home. I have 2 internet connections in house, 10Mb/s uploading on each, so something that could potentially split the number of connections would be handy (kind of like GetRight, but in reverse... PutRight?).   [Update] I have tried the option below of using RSync, but there is only one connection being made between my workstation and server. When uploading large files to Amazon, there is an option of breaking them apart locally and unbreaking them on the server end. multiple files are also send over multiple connections. so, a 4Gb file could be split into 800 ish 5Mb chunks, and sent 4 or 8 at a time, using as much of your upload bandwidth as possible. So, how would i do this automatically? I could hack something together to do it and use SFTP to send the files, but is there an automagic option?


I think I found a bug, although it can be circumvented quite easily and not many users will be affected.  I often use tags, instead of bug I write . Followed by a link, it won't work. If one types  [tag:bug] [meta stackoverflow][1]   it becomes:   [meta stackoverflow]  Two spaces between the tag and the link fixes this, one can type:  [tag:bug]  [meta stackoverflow][1]       Maybe this can be fixed to not confuse users (like me).

Links in [link text][number] format don't work properly if they follow a tag using the new [tag:tagName] format. Here's the result of [tag:python] [gold badge page][1]:      [gold badge page]   Putting the tag inside the link is worse. Here's the result of [[meta-tag:bug] some text][2], where [2] is google.com:        The part of the link outside the tag just disappears silently.  EDIT: To be more precise, the entire link to [2] disappears. The markup that is produced contains (invalid) nested anchor tags, as shown here from Firefox's "View Source":  bug some text   So the tag is still a link, but it is a link to the tag page, which is the behavior it would have if the link to [2] didn't exist at all. The user's desired behavior in this case is... ambiguous, to be charitable.  EDIT 2: I briefly included markup from Firebug here, but it turned out to be irrelevant. It has now been removed to improve readability. See  if you're interested.


OK, I understand how to get a list of installed packages on my system.  Now how can I get a list of all available packages from the list of repositories configured?

I have successfully installed some packages using the command line 'sudo apt-get install packagename' when I have known in advance that those packages are available.  But how can I search for or get a list of what is available in the repositories?


It's been a month or so that I have started using Stack Exchange. Almost everytime I have noticed that my profile pic is different than it was before. The geometry as well as the color.  Can anyone explain why and how is it done? (for every user I guess?)

Is there a name for the default avatars that are generated for users who do not assign one themselves? Not the avatar of the blank user, but the one made up of shards, shapes, and colours:      Is there an online generator for something like that? See also:


I need to make a statement regarding whether the mean of this data is significantly different from zero. The data can not be described by a normal distribution.  The population's size is 27, mean is -0.265, and standard deviation is 0.193.  My questions would be:    How would you quantify the compatibility of the data with zero? Can I say with X % confidence that the mean is -0.265 and not 0? What is the typical way to approach this small-sized non-normal population diagnose problems?   Please provide detailed examples and references if possible.

Imagine you have to do reporting on the numbers of candidates who yearly take a given test. It seems rather difficult to infer the observed % of success, for instance, on a wider population due to the specifity of the target population. So you may consider that these data represent the whole population.   Are results of tests indicating that the proportions of males and females are different really correct? Does a test comparing observed and theoretical proportions appear to be a correct one, since you consider a whole population (and not a sample)?


I'm currently using the method :  String.format("%.4", myDouble);   The trouble with this is that if I get a number with less decimals, such as 2.34, it will display 2.3400 . Is there a way to avoid that ?

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I always seem to get downvoted when my answer is not "rigorous" enough.  I have started to get a feel for this "rigor."   There should be a proof element, nothing can be assumed, and the proof should be near purely mathematical and rigid.  My english teacher even got mad at me for using "rigor" incorrectly today, so that reminded me of this site.  What defines mathematical rigor?

I'm an undergraduate mathematics student who has received some constructive feedback from two instructors at the end of my exams. Namely, that I am a bit hand-wavey and not always very rigorous. While I greatly appreciate this feedback since I intend to apply to graduate school, I worry because when I hand in assignment, I generally feel the proofs are rigorous already, and I'm not sure what I'm missing. Obviously I will be engaging in a dialogue with my professors about what I can do to be more rigorous, but I'm hoping the experts on this forum can provide some examples or distinctions between rigorous arguments and arguments that are close, but maybe gloss over important details so I can more clearly see the difference.  It is worth noting that I have taken a course in mathematical reasoning and logic and did very well in it. Something has happened in the last year or so to reduce the quality of my arguments, or rather, the expectation has gone up and my level of rigor has not matched it.  I think another aspect of what makes this a troublesome problem for me is that i typically do really well on homework problem sets. 90% consistently, sometimes with little mistakes. I feel like I am getting mixed signals from some of my classes when I am consistently told I am doing well, but am given this advice. All of this is said without spite or malice, I just sometimes feel confused about my own level of understanding.  So if anyone has any general advice, or useful examples of arguments that look rigorous but need to be patched up, that would be greatly appreciated. I want to get a sense for what a really solid proof looks like compared to a less polished argument that looks passable to someone still with naivete in them.  Edit: Here is an example of one such question in which I struggled for a long while to produce the proof posted, and even then I was missing something to be fully rigorous.


I tried and failed . Please tell me, what am I doing wrong?

The  says:  Hyperlinks can be formatted as [basic links](http://example.com)  Then I write [This is a link description](http://linkurl.com) and the result is unexpected.  (You can see my comment .)  What am I doing wrong?  If the comment help is ambiguous, how do I notify StackOverflow to turn it better?


im not new in php coding and have a problem. I need insert data to sql (czech language encoding).  I wanna input this string: +ěščřžýáíéůú  My DB output is: +ì¹èø¾ýáíéùú  So, im trying this solutions:  1) My config.php has this one:  header('Content-Type: text/html; charset=utf-8'); ini_set("default_charset", 'utf-8');   2) On top of the page is this meta-tags:   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  <meta charset="utf-8" />   3) When im connecting into db, im using:   @define("DB_Connect_Charset", "utf8");      $dsn = 'mysql:dbname='.DB_Connect_Database.';host='.DB_Connect_Hostname.';charset='.DB_Connect_Charset;   +  $this->pdo = new PDO($dsn, DB_Connect_Username, DB_Connect_Password, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES ".DB_Connect_Charset));   Im trying some php functions like: iconv OR mb_convert_encode()  Database has utf8_czech_ci coding, when im trying to change it into windows-1251 or latin.. it doesnt help.  I spend a lot of time on stackoverflow and cannot find a solution about this problem, some problems will be deleted with SET NAMES UTF8.  Problem must be in part when im sending data to SQL, because if im put data manually into sql, im fetching it correctly.  Thank you for your time and help. Have a nice day!

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I have noticed that on the door to microwave ovens there is a metal gridded screen. Is the purpose of this screen to construct a Farraday cage so none of the radiation can escape? If so, does this make standing in front of the microwave perfectly safe?

If I look through the microwave window I can see through, which means visible radiation can get out. We know also that there is a mesh on the microwave window which prevents microwave from coming out.  My question is how does this work? how come making stripes or mesh of metals can attenuate microwave radiation yet allow visible radiation?  Looks like an electrodynamics problem to me with periodic boundary conditions (because of the partitions on the microwave oven window). Is it discussed in any textbook?


If a person takes a brick, and lifts it to a height of 1 m, will the mass of the brick increase?

The mass of a helium nucleus is less than the mass of two isolated protons and two isolated neutrons.  When the component hadrons are assembled, this mass is lost as energy ($E=mc^2$).  This makes it (at least sort of) seem like mass is a kind of potential energy.  Matter and antimatter can annihilate each other, releasing energy ($E=mc^2$).  This also makes it (at least sort of) seem like mass is a kind of potential energy.  If I have a mass at approximately sea-level on Earth, will flying it away from Earth increase its mass?  (If so, is this related to relativistic mass?)  EDIT:  The original question doesn't really ask what I mean to ask.  Suppose that, after the mass has been flown into space, it is stopped relative to Earth.  (I think that would require a geosynchronous orbit.)  Would its mass be different than it was before it left Earth?


I am using Ubuntu 14.04 LTS. Since an update late yesterday, my wi-fi does not  work. I receive the following message Under System Settings ==> Network  "The system network services are not compatible with this version"  The wi-fi worked well previous to the update. Seems like the update had a problem.  The problem was at least partially corrected temporally by using the Advanced  Features on the GRUB menu and pick the Network option. This must be done on each boot.  I then ran Software Updater. It looks like the system update fixed this network problem,

When I started my laptop, there was no network service, and also no network icon in the top bar. It gives an error when I start OS like "Sorry, Ubuntu 14.04 experienced an internal error". When I click details, it says the error is occurred in the executable path usr/sbin/NetworkManager. Also, when I try to enter Network in the System Settings, it says "the system network services are not compatible with this version"  How can I solve this shocking issue?  p.s. I didn't install any third party packages/apps related with networking. Only system updates are installed.


When scrolling down while editing a question (, though that's probably not relevant), I noticed that the short help on the right side overflowed into the page footer:    I think it shouldn't do that. I'm using Firefox 22 on Windows 7.

When "Questions that may already have your answer" (similar questions) appear as a right column, it overflows and overlaps the footer.  (shown in the figure)        This happens on all SE network sites on which I have asked questions.  Also this happens to other columns also like "How to Format".


This is a nickname for a cute dog. So I think "fluffy" means "furry" but what's the whose phrase?

There are combinations like sugar mugar that people use in their speech while the second word has no meaning and only adds a rhythm. What is this called in English?


Went on mobile, I have more free moments here and there – as compared with when I'm at my desk. I could use the time to moderate and perform reviews.  Maybe this could be limited to a subset of reviews, initially, and the quality of feedback compared with desktop users.  This would help  determine suitability of the mobile context as an environment for reviews.

I enjoy reviewing on SO, is it currently possible to review on the iOS app? If not, is it planned to be implemented?


I have a bathtub with a plastic (I think) surface layer which has a small crack in it. The crack is at the bottom, on the inside. Some sort of rusty liquid has now started to ooze out from the crack, which feels less than hygienic.  Before I replace the whole bathtub, I'd like to try to repair the crack. What approach would be the best here? What sealant would be recommended? It obviously needs to be both water-resistant and non-toxic.  I'm thankful for any advice!

Close examination of the floor of my bathtub has revealed a long, thin crack in the bathtub itself.  The bathtub is one of the common plastic-feeling variety (though I am not sure if it is actually a plastic.)  What is the best way to patch this crack?


I have run into a problem which reads:  "Any finitely generated module $M$ over a commutative ring $R$ is Hopfian, i.e., any $R$-epimorphism from $M$ to itself is one-to one."  I think the problem could be associated with the following well-known fact:  "Let $R$ be a commutative ring, and $M$ be a finitely generated $R$-module. If $I$ is an ideal in $R$ with $M=IM$, then $(1-a)M=0$ for some $a\in I$."  I am stuck in finding the ideal $I$, and have no alternative try. Thanks for any help!

I am revising for my Rings and Modules exam and am stuck on the following two questions:  $1.$ Let $M$ be a noetherian module and $ \  f : M \rightarrow M \  $  a surjective homomorphism. Show that $f : M \rightarrow M $ is an isomorphism.  $2$. Show that if a semi-simple module is noetherian then it is artinian.  Both these questions seem like they should be fairly straightforward to prove but I cannot seem to solve them.


If I install Ubuntu in C-drive containing windows using option ' Erase disk and Install Ubuntu' will my personal files,folders,photos, music will be lost?  It's ok that windows will be removed from my desktop. Please help me out

I'm considering ditching Windows 8 and doing a fully clean install of Ubuntu. However, I'm concerned because my computer came with a built-in 16 GB recovery partition that would need to be erased as well.   If I pick the "erase entire disk" option during installation, will it wipe out this recovery partition too?


Is there a way to disconnect eth0 (wired connection) for just until I reboot? Or even a way to just bring it down then up again before I shut the computer down? I want to do this because sometimes I want to be on Wi-Fi and when the signal gets low, it hops back to eth0, even if I manually disconnected from it. Using Ubuntu MATE 15.04

How can I restart a network interface? I have a vm that doesn't update its IP address correctly when switching between home and work. The vm runs Ubuntu server and uses a bridged network adapter.


I'm trying to show that  $$\tan\frac{\pi}{7}\tan\frac{2\pi}{7}\tan\frac{3\pi}{7}=\sqrt 7$$  My attempt: Since $\tan x=\frac{\sin x}{\cos x} $ so immediately the denominator is recognized as $$\prod_{k=1}^{3}\cos\frac{k\pi}{7}=\frac{1}{2^3}=\frac{1}{8}$$ as known since elementary classes. To tackle with sine product I tried as $\sin(x)=\cos\left(\frac{\pi}{2}-x\right)$. But I fail with this ideas. How do  I deal with $\sin x$ product?

I tried in this way.$\tan(a+b)=\frac{(\tan a + \tan b)}{1 - \tan a \tan b }$value of $\tan \frac{\pi}{7}$ is coming in decimal.what to do


I'm stuck on the following problem:       The function $f(z)=|z|^2$ is:           Differentiable only at the Origin      Not differentiable anywhere          I have to determine which of the aforementioned options is true. The answer key to the problem says option 2 is true whereas I think option 1 is correct.   We see that: $$ f(z)=|z|^2 \implies u(x,y)+iv(x,y)=x^2+y^2,\;\text{where}\:z=x+iy,\:\text{say}. $$  Then: $$ u(x,y)=x^2+y^2,v(x,y)=0.\;\text{So at the Origin}\;u_x=u_y=v_x=v_y=0 $$  So, C-R equation is satisfied, and hence option 1 holds true.   Am I going in the right direction?

I think I am a bit confused about the definition of (complex) differentiability. Yes, I know that's stupid, but I am hoping that someone could clear it up for me. I know that the definition of (complex) differentiability is when $\lim\limits_{h\to 0}{f(z+h)-f(z)\over h}$ exists.  So, is $|z|^2$ considered differentiable? What I think is it is only differentiable at $z=0$ since at any other point if we take $f(z+h)-f(z)\over h$  as $h\to 0$ along a contour line of $|z|^2$ then the limit is $0$ whereas if we take a path say perpendicular to the contour lines, the "gradient" wouldn't be $0$, right? But then if this is true then all complex functions that are "not flat" would not be differentiable, so I must be wrong. Could someone kindly explain to me what is going on? Sorry for my stupidity!


The home in question is in Orange County California. I believe most upstairs floor joist are 2"x10" 16" on center. What is the pounds per square feet.  If my box foot print 60"x80"and weighs 2000lbs would it be safe at 30psf

I have a 12'x12' upstairs bedroom. Can a 2000 lbs safe be placed in that room? The dimensions would be the same size as a queen size bed (60"x80").  Can you supply the math in your answer.  Thank you in advance  Danny


I'm fairly confident that some of the grammatical advice I've been reading recently is arrant balderdash. It relates to the distinction between the ‘who’ and ‘whom’. I'm sure this is a classic case on this forum, and I'm curious to see if I'm mistaken or misleading information has been disseminated. Both examples are from Quora. The first instance where a Quora thread contains possibly erroneous advice is when a user (Melanie Lee) implies that ‘you know who I'm talking about’ is grammatical. However, this appears to be the grammatically correct version: ‘you know whom I'm talking about’. In the relative clause of the example sentence, there is a subject pronoun, so the relative pronoun should take the accusative (a.k.a. objective) case. I'd also commonly say, 'I'm talking about him/her/them’, so I could easily say ‘whom’ instead. This rephrasing of the relative clause into a sentence should show my logic. The thread:  In another thread, a different Quora user (Warren Sentes) claims that ‘"Do you know whom it is from", is actually the incorrect use of the object pronoun’. I disagree! It seems absurd, as ‘it’ is the subject of the relative clause! The gender-pronoun test for grammatical cases can even be used here: it is valid to say that ‘it was from him/her/them’, so it is actually grammatically correct to also write ‘whom’ there as well. How can this be taken on as the top answer? The thread:  Is there something I'm missing? I thought I properly understood this rule. I appreciate any answers. Thanks in advance.

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


Column header (of a specific column) should only be displayed/rendered when in that specific column at least one row in detail band has a value.  I have already a variable which counts the rows where this column has a value. When I print this value in the column header band, it shows "null" - (because column header band is evaluated before details). When I print it in the summary band (which gets evaluated after all the details are rendered, then I get the correct value (e.g. 11 rows of this column have value).  I want to use this value in the print when expression of the column header of this specific column (e.g. $V{MeetingPointCounter} > 0).  I have tried already:  --> setting evaluation time of a test text field in column header band to "report" ($V{MeetingPointCounter} is null)  -> setting evaluation time of a test text field to "column" (getting here the correct number in column header band - e.g. 11 - but when I using the expression $V{MeetingPointCounter} > 0 ? true: false within print when expression of the desired header text field (and the evaluation time of this field is also set to column), it still does not get displayed)  -> If I put the following expression in a test text field within column header band: "$V{MeetingPointCounter} > 0 ? true: false" and put the evaluation time to column, I get "true" displayed  -> If I just put "true" statically in the print when expression of the desired column header, this column header gets properly displayed  This is with jasper reports 5.6.0 (can't go to any newer version. This is given by the product we use).  Desired result:  Display/hide column header of a specific column on condition set by its detail column rows.

I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.


i have list below    l = ["a1", "MYSQL1","emp", "b1", "MYSQL2","dep"] for a, b,c in zip(l[::2], l[1::2], l[2::3]):     print(a, b, c)   I got the first line properly but rest is coming wrong  My expected out  a1 MYSQL1 emp b1 MYSQL2 dep

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


First I installed Windows 10 on my hp PC, and then I installed Ubuntu in dual boot. The installation was successful but when I restarted I ended up with a screen saying     no bootable device -- please insert and press any key   I restarted my pc again but I get the same screen I am also not able to start Windows 10. What can I do about this?  For open Ubuntu I need to go boot option and choose boot from efi file than salect one file of Ubuntu than I can open Ubuntu how can I make this a normal starting.  In a Ubuntu I can open my whole files which are in windows 10.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I was setting up a cloud server and saw that I accidentally added a folder named ^[[4~ (with escape code). I want to see what is inside and if that was just a mistake then remove that directory. However I cannot cd nor ls the contents. I tried finding out the escape code so that I could enter a command like cd \x1b[30m; and hope that it would get me in the directory.  What if I was to cd or remove by searching for the first directory listed with ls. Would that be possible? Because when I do a ls |grep 4 two results come up and one of them is the one I'm trying to access.  Either finding out the folder name in escape string or changing the directory to the first directory ls finds might be a solution here. How can I approach this problem?

I have a stubborn folder that someone must have created accidentally and that has persisted all this time. I can see it with:  # find /var/www/html -maxdepth 1 -type d   which gives me:  /var/www/html /var/www/html/files /var/www/html/.?   unfortunately the question mark there is not the actual character ?, it merely seems to denote that there is no proper glyph and/or translation for that character. So something like rmdir is out of the question. My system has UTF-8 as the default locale as so many modern Ubuntu systems, but admittedly the folder in question may have originated on a RHEL or CentOS box (tared up and unpacked).  # env|grep LANG LANG=en_US.UTF-8   When trying to cd .\? (as mentioned before it is not actually ?) I get auto-corrected to . by bash and actually end up in /var/www/html/. for some reason. Now if I can't "name" this folder usefully, I cannot access it in any way. How can I get rid of it without putting the whole system in jeopardy?  Now I installed detox already but that only seems to act on files, not folders, according to its documentation and besides it still requires that I be able to name the object somehow to do something with it.


I usually create EC2 instances on AWS using Ubuntu 14.04 LTS. Now they change the standard edition to 16.04 LTS, that I never used before.  I need to put /var in a greater disk, to support logs, etc.  As usually, I've created the instance, mount a disk on /mnt and copy the /var to it.  After that, I remove original /var and mount the device on a new /var. It's a simple procedure.  On Ubuntu 14.04 I never had any kind of problem to do it, but on 16.04 I've had a lot of error messages like this:  cp: cannot open '/var/lib/lxcfs/cgroup/devices/user.slice/devices.allow' for reading: Permission denied  I'm doing this by root.  Any idea?  Thanks a lot.

I'd like to store /var on a separate partition from /. What is the correct way to set this up?


I'm using Google App Engine to retrieve data from database. when I retrieve arabic texts, it returns something like that "?§?? ?¹????????"  here is HttpServlet:  public class MyServlet extends HttpServlet { @Override public void doGet(HttpServletRequest request, HttpServletResponse response)         throws IOException {     PrintWriter writer = response.getWriter();      final String contentType = "text/plain;charset=UTF-8";     final String characterEncoding = "UTF-8";      response.setContentType(contentType);     response.setCharacterEncoding(characterEncoding);      writer.println(response.getContentType());     writer.println(response.getCharacterEncoding());     writer.println("السلام عليكم:"); } }   the output is:  text/plain; charset=iso-8859-1 ISO-8859-1 ?§???³???§?? ?¹????????:   appengine-web.xml:  <?xml version="1.0" encoding="utf-8"?>  <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">      <application>myApplicationID</application>      <use-google-connector-j>true</use-google-connector-j>      <version>1</version>      <threadsafe>true</threadsafe>      <system-properties>           <property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />           <property name="file.encoding" value="UTF-8" />           <property name="appengine.file.encoding" value="UTF-8" />           <property name="DEFAULT_ENCODING" value="UTF-8" />      </system-properties>      <env-variables>           <env-var name="DEFAULT_ENCODING" value="UTF-8" />      </env-variables> </appengine-web-app>   I'm using: Android Studio - Runtime: JAVA 7 - Environment: Standard  this is from My Browser Chrome:

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases.  My setup is the following:   Development environment: Windows XP Production environment: Debian   Database used: MySQL 5.x  Users mainly use Firefox2 but also Opera 9.x, FF3, IE7 and Google Chrome are used to access the site.  How to achieve this?


Suppose $A$ is a $n \times n$ matrix i.e. $A \in \mathbb{C}^{n \times n}$, prove that rank($A^{n+1}$) = rank($A^n$). In other words, I need to prove that their range spaces or null spaces are equal. If it helps, $A$ is a singular matrix. Note that, I don't want to use Jordan blocks to prove this. Is it possible to prove this without using Jordan form? I can use Schur's triangularization theorem. Also, it's not known if A is diagonalizable.

Given $A\in F^{n \times n}$ prove:  $$\operatorname{rank}(A^n) = \operatorname{rank}(A^{n+1})$$  $\operatorname{rank}(A^{n+1}) \leq \operatorname{rank}(A^n)$ is easy, just from:    But how can I prove the other direction? or should I do it otherwise?


I want to mention the name of an specific function (or method) that I used in a experiment in a normal paragraph in my dissertation. What is the best way to do it? Considering that the official dissertation format that my teachers gave me doesn't mention how to do it.  For example:       "... with the Java programming language we can use System.nanoTime ..."

From my thesis:     In this method, the get_config_value function is used that is defined within the PyWPS API.   How should I format the "get_config_value" variable?  It should be formatted differently than the rest of the text, but I don't know what the conventions are.  Using italic or bold fonts doesn't look right to me.


I was reading a book "Call me by your name" and I was so confused by the tense they use in the book. It is obviously the story they tell happens in the past but they use present tense. I am trying to understand but have not figured out yet. Someone please takes a look and help me:  "Later!" The word, the voice, the attitude. I'd never heard anyone use "later" to say goodbye before. It sounded harsh, curt, and  dismissive, spoken with the veiled in-difference of people who may not care to see or hear from you again.  It is the first thing I remember about him, and I can hear it still today. Later! I shut my eyes, say the word, and I'm back in Italy, so many years ago (IT IS OBVIOUSLY IN THE PAST BUT THEY USE PRESENT TENSE) , walking down the tree-lined driveway, watching him step out of the cab, billowy blue shirt, wide-open collar, sunglasses, straw hat, skin everywhere. Suddenly he's shaking my hand (WHY DO THEY USE PRESENT TENSE????) , handing me his backpack, removing his suitcase from the trunk of the cab, asking if my father is home. It might have started right there and then: the shirt, the rolled-up sleeves, the rounded balls of his heels slipping in and out of his frayed espadrilles, eager to test the hot gravel path that led (WHY IS THERE A PAST TENSE IN PRESENT TENSE???) to our house, every stride already asking, Which way to the beach? This summer's houseguest. Another bore. Then, almost without thinking, and with his back already turned to the car, he waves (WHY DO THEY USE PRESENT TENSE) the back of his free hand and utters a careless Later! to another passenger in the car who has probably split the fare from the station. No name added, no jest to smooth out the ruffled leave-taking, nothing."

in Macbeth, Acte III -scene 6,  In this portion of the scene: «  Lennox- Sent he to Macduff?  Lord -  He did, and with an absolute 'Sir, not I,'         The cloudy messenger turns me his back,         And hums, as who should say 'You'll rue the time         That clogs me with this answer.' »  Why does Shakespeare use present tenses : « turns » and  « hums » to narrate a past event ?  Thanks by advance,  Julien


In a common experience, an intermittent issue will frustrate someone for a long time, and then when s/he gets frustrated enough to spend the money and hire a professional, the symptoms of the issue will not be present.  For example, a car makes a strange sound most of the time, but doesn't do it when the mechanic is around.  Another example might be some intermittent medical symptom that disappears at the doctor's.  The lack of ability to reliably reproduce the problem in front of an expert who might be able to fix it helps ensure that the problem will "survive" to another day.    Is there a word or few-word name for this concept?  I'm guessing that this is a phenomena perceived to be more common than it actually is.    It's almost the opposite of Murphy's Law because it's about something that can go wrong but doesn't, and it doesn't seem to fit the "simultaneous apparent opposites" that would categorize it as a "paradox" of any sort (e.g. it doesn't seem like mechanic's paradox would fit).

For example, the car mechanic can't replicate the problem you are having every day, but when you drive it off the service dept, there it is again. Or, when seeing the dentist, the tooth ache goes away, and comes back when you leave.


I am trying to write an buffered image into a file that appends the next buffered image bytes.I have the following code for which some runtime exception is thrown. when i run this code i get the following exception. Why and what has to be changed?   import java.io.File;     import java.io.FileInputStream;     import java.io.FileOutputStream;     import java.io.IOException;     import java.io.InputStream;     import java.io.OutputStream;     import java.awt.image.BufferedImage;     import java.io.ByteArrayInputStream;     import java.io.ByteArrayOutputStream;     import java.io.File;     import java.io.IOException;     import java.io.InputStream;     import javax.imageio.ImageIO;           public class FileT     {         public static void main(String[] args)         {                try {                 BufferedImage originalImage = ImageIO.read(new File("ani.jpg"));                 int i=0,c=0;                 // convert BufferedImage to byte array                 ByteArrayOutputStream baos = new ByteArrayOutputStream();                 ImageIO.write(originalImage, "jpg", baos);                 baos.flush();                 byte[] imageInByte = baos.toByteArray();                 byte[] copybuf = new byte[1024];                 baos.close();                  while(i<imageInByte.length)                 {                     copybuf[c]=imageInByte[i];                     c++;                      if(i%1023==0)                         {                         // convert byte array back to BufferedImage                        InputStream in = new ByteArrayInputStream(copybuf);                        BufferedImage bImageFromConvert = ImageIO.read(in);     ImageIO.write(bImageFromConvert, "jpg", new FileOutputStream(new File("ani1.jpg"),true));                             }                         copybuf = new byte[1024];                         i++;               }             }             catch (IOException e) {                 System.out.println(e.getMessage());             }             }     }     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:1578)     at FileT.main(FileT.java:45)

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 would like to use a developer org for development. Can anyone let me know how data and meta data of the production org be copied to the developer org?

How to move all org data (Objects, records, Apex classes, VF pages, Triggers, Validation Rules) from Sandbox to Developer Edition?


in a few hours we have in middel europe an total sun eclipse. And as in the titel you can read I want to know how to photograph the sun eclipse.   Please note that I do not have any experience or knowledged about cameras, photography etc. BUT I KNOW THAT FOR THIS KIND OR RECORD IS A SPECIAL FITER REQUIERD TO HOLD IN FRONT OF THE CAMMERA, and I have this filter.  For an beginnner like me, a generally explantion or a link to a tutorial/ instruction would be nice ;-) thx  But to be more detailed my questions are:   What would be the best camera device?[1] What are the best configuartion for the camera device? [2] Is it better to photograph or to film a sun eclipse? What/ Where would be the best place to make this record? For example, Mountain or Roof or Surface?   [1]: I have a samsung Galaxy note 2 (8 MPx); Samsung Galaxy note 1 (8 MPx); Rollei Powerflex 820; Sony slt-a58k (with dt 18-55mm f3.5-5.6 sam ii). So whitch one would be the best?   [2]: How to config the best camera above?  As you know I am a absolut beginner, so moderators and commuity feel free to correct or improve me

This upcoming May parts of the USA will experience  a . So this leads to me wondering how you photograph the sun/solar eclipses and ensure that you do not damage the camera (or your eyes)?


Question: calculate $8^{126} \pmod{9}$.    My try:  $$ 8^2 \pmod{9} = 1\\ 8^3 \pmod{9} = 8\\ 8^4 \pmod{9} = 1\\ .... $$  So for every even power the modulo is 1, otherwise it's 8. However, what is the common path normally to follow when we have to deal with modulo power something?   Thank you!  I have no idea how to solve that problem, what path should i follow for modulo powers? thank you!

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


I'm currently on a four-week trip with my parents. I have all flight, accommodation and transport booked up for our trip in Germany, Italy, Austria and Switzerland. We have just started our trip and I got pickpocketed and lost my passport.   Anyone know if it is possible to continue doing the trip with an emergency travel document?  According to the Malaysian government website the emergency travel document is not recognized in Germany, Italy and Switzerland. It's my parents first trip in Europe and they really need me with them.

I am a British national living in Spain and my passport is either lost or stolen. I noticed this two days ago when I was intending to take a trip to Salzburg. As it happens, I managed to travel using my UK Driver's Licence. I think a severe mistake was made, as was pointed out to me in Austria, but as they were Schengen Countries, apparently all that is needed is a proof of identity, not a 'travel document'.  My question, therefore, is this. I have business trips over the next three weeks taking me from Spain to Germany, Czech Republic, Austria, and Italy, then back to Germany, and then to the UK. If I obtain an Emergency Passport from the Consulate here in Barcelona, would this be valid as an identity document within Schengen, before I eventually 'cash it in', so to speak, as a travel document when I make my trip from Germany to the UK?  I am hoping so, as I don't fancy my chances of getting back to the UK in time to secure an appointment for a fast-track passport. I am going to call the consulate tomorrow, but would appreciate any advice or prior experience.


I'm trying to add two objects together, one being a face and the other being an apple. I have it all lined up so I can put them together but I can't edit more than one object at once to do so. Is there any way I can edit these both at the same time or combine them into the same object?

I'm creating side skirts for a truck and I am duplicating the frames I want. The problem is it's making the duplicated object into another object. How do I put it into the same one?


I'm using the listing package for displaying source code in my document. I want to use the minipage environment to avoid page breaks within the listing, but I don't want to write, at every listing,  \begin{minipage}{\linewidth} \begin{lstlisting} ... code goes here ... \end{lstlisting} \end{minipage}   I've tried to define a new environment, like so  \newenvironment{codeListing}{\begin{minipage}{\linewidth}\begin{lstlisting}}{\end{lstlisting}\end{minipage}}   for using it like this  \begin{codeListing} ... my code ... \end{codeListing}   What am I doing wrong?

I have a problem with the lstlisting package. I want to define an \newenvironment with one obligatory parameter, which will be the caption name for the lstlisting. I will also have other lstlisting environments, that is why I am trying to define them separately.  I am also having some difficulties with \lstinline command (I set up a \newcommand to gain easier coding), which typesets keywords in normal text. Why can't it be in captions and similar?  I suppose something could be wrong with the preamble, that's why all the packages used are listed.  \documentclass{book} \usepackage[a4paper, top=3cm, bottom=3cm, heightrounded, outer=3cm, inner=3cm, marginparwidth=1.5cm, marginparsep=0.5cm]{geometry}  \usepackage{tocloft} \usepackage{amsmath}  \usepackage{eurosym} \usepackage{url} \usepackage{array} \usepackage{tabularx} \usepackage{multirow}  \usepackage{multicol}  \usepackage{graphics} \usepackage[dvips]{graphicx}  \usepackage{epstopdf}  \usepackage[dvipsnames]{xcolor}  \usepackage{verbatim} \usepackage{fancyvrb}  \usepackage{fancyhdr} \usepackage{paralist}  \usepackage{listings}  \usepackage{pifont}  \usepackage{indentfirst}   \lstset{language=[Visual]Basic, % keywordstyle=\color{blue},commentstyle=\color{ForestGreen},stringstyle=\color{Maroon},% basicstyle=\ttfamily\normalsize, frame=lines, % showspaces=false, showstringspaces=false,% tabsize=4, aboveskip=10pt, belowskip=10pt, % lineskip=2pt, numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt,% numberblanklines=false, % breaklines, breakatwhitespace, prebreak=\_, breakindent=0pt % }  \lstset{morekeywords={Or, Loop, Until, To, As, Single, Module, Double, ByVal}}  \lstset{emph={Console}, emphstyle=\color{Aquamarine}}  \newenvironment{case}[1]{\renewcommand\lstlistingname{Case}% \begin{lstlisting}[caption={#1}]}% {\end{lstlisting}}  \newcommand{\code}[1]{\lstinline[basicstyle=\rmfamily\normalsize, prebreak=, keywordstyle=\ttfamily]{#1}}   \begin{document}  Example with inline, that works: \code{Console, Sub in Module}.  \begin{case}{Hello world} %doesn't work Module Module1     Sub Main()         Console.WriteLine("Hello World!")         Console.ReadKey() End Sub End Module \end{case}  \end{document}   Thank you in advance!


Most electronic devices use 3.3V, 5V (all USB devices), 9V or 12V (very often for electronic music gear), and we usually all have dozains of such wall adapters at home. Even desktop computers have usually 5V and 12V power supply ().  Is there a historic reason (or electronic reason) why laptop computers are usually around 20V?  Why don't they use a quite standard 12V?  Linked question:  but here a bit different, I'm not looking for the reason about the voltage being different from the laptop's battery, but rather why it's different to the standard 5V / 12V  used in desktop computers.

I hope you will not mind answering. This question has long been on my mind.  Normally, the adapter output voltage is higher than that of the battery. In my laptop's case, the output voltage of the adapter (or charger or power supply) is 19.2V. (That .2V itself is also a big question for me. Is that so sensitive?) But the voltage of the battery is 10.8V.  My question is, why is the adapter output voltage different from the battery's voltage?  This is not about asking how it is regulated by the internal circuitry, but asking why.


Currently on my machine there were multiple os like windows and ubuntu16.04. Now i want to install kali linux on machine. is it possible for 3 os in one machine. my machine consist od 1 tb,  4 gb ram..

How many operating systems are allowed in a single computer. Is any extra RAM is need for each extra operating system?


How do I show that $$ ||x| - |y||\leq|x - y| $$  I can see obviously that  $ ||x| - |y||\le |x|-|y|.$ I just can't figure this one out.

I've seen the full proof of the Triangle Inequality  \begin{equation*} |x+y|\le|x|+|y|.  \end{equation*} However, I haven't seen the proof of the reverse triangle inequality:  \begin{equation*} ||x|-|y||\le|x-y|. \end{equation*} Would you please prove this using only the Triangle Inequality above?  Thank you very much.


First of all, sorry for my bad english, I'm a foreign.  I'm new at sous vide world, and have a doubt, and I'm wondering if someone more experienced can help me.  For days I was looking for the ingredients to make this recipe:   I did all like the recipe says, including using the Prague Powder nº 1 (very difficult to buy in Brazil since the sell was restricted by law).  The Problem:  After the meat rested for 3 hours with Prague Powder, was a little late, about 12:00 am, than at 12:30 am I put pre-heated water over 50ºC (122ºF) on the container, and also the meat, programed to cook at 68ºC (154,4ºF), timed for 24 hours. About 01:00 AM, the water reached the target temperature and cooked ok until about 9:00 am, when power was out and obviously turned off the equipment.   I wasn't at home and just figured out when was already 06:00 pm and the water was at 35ºC (95ºF) when immediately I started to heat the water again, with take about one hour to reach 68ºC (154,4ºF), after reached the temperature I let it cook for more 16:30.  Relevant Facts:   I tested, in same container, with same water volume that was cooked the meat, how long it takes to drop the temperature to the critical 54,4°C (130ºF), and the answer is at least 55 minutes; Based on that test I think the meat keeped in critical temperature for about 8 hours; I used well-prepared vacuum packaging, which left almost no air inside. The meat has about 70 mm thickness.   Questions:   The first cook (8 hours at 68ºC (154,4ºF)) was enough to pasteurize the meat? Prague Powder can help to prevent pathogens? Is it safe to eat this meat? What can I expect with the interruption of cooking in terms of loss?   I appreciate if someone with more experience than me can help me.  Thx.

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I have referred to some questions posted earlier about this same topic, namely  and  for fitting a table into a page. The code is taken from a guide I found online. \documentclass{article}  \usepackage{booktabs} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}  \begin{document}  \begin{table*}\centering \ra{1.4}     \begin{tabular}{@{}rrrrcrrrcrrr@{}}\toprule & \multicolumn{3}{c}{$w = 8$} & \phantom{abc}& \multicolumn{3}{c}{$w = 16$} & \phantom{abc} & \multicolumn{3}{c}{$w = 32$}\\ \cmidrule{2-4} \cmidrule{6-8} \cmidrule{10-12} & $t=0$ & $t=1$ & $t=2$ && $t=0$ & $t=1$ & $t=2$ && $t=0$ & $t=1$ & $t=2$\\ \midrule $dir=1$\\ $c$ & 0.0790 & 0.1692 & 0.2945 && 0.3670 & 0.7187 & 3.1815 && -1.0032 & -1.7104 & -21.7969\\ $c$ & -0.8651& 50.0476& 5.9384&& -9.0714& 297.0923& 46.2143&& 4.3590& 34.5809& 76.9167\\ $c$ & 124.2756& -50.9612& -14.2721&& 128.2265& -630.5455& -381.0930&& -121.0518& -137.1210& -220.2500\\ $dir=0$\\ $c$ & 0.0357& 1.2473& 0.2119&& 0.3593& -0.2755& 2.1764&& -1.2998& -3.8202& -1.2784\\ $c$ & -17.9048& -37.1111& 8.8591&& -30.7381& -9.5952& -3.0000&& -11.1631& -5.7108& -15.6728\\ $c$ & 105.5518& 232.1160& -94.7351&& 100.2497& 141.2778& -259.7326&& 52.5745& 10.1098& -140.2130\\ \bottomrule     \end{tabular} \caption{Caption} \end{table*}  \end{document}    (ignore the red circle) I tried applying the solutions proposed in the above links to the current example:  p{width} as in \begin{tabular}{@{}rrrrcrrrcrrr@{}p{0.8\textwidth}} tabularx environment as in \begin{tabularx}{@{}rrrrcrrrcrrrX@{}} tabular* environment as in \begin{tabular*}{0.8\textwidth}{@{}rrrrcrrrcrrrX@{}}  Edit I am using a simple article class with no packages other than booktabs. But they did not work? Any thoughts ?

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met:   The table is too wide to fit within the text block or page. That is, I'm exceeding some horizontal restriction. The table is too tall to fit within the text block or page. That is, I'm exceeding some vertical restriction.   What are my options to make this table fit? If it doesn't fit, regardless of my attempts, what other options exist?


I've been trying to prove that $\left\Vert\dfrac{\vec{v}}{\Vert\vec{v}\Vert}\right\Vert=1, \quad \vec{v}\ne \vec{0}$. This is my attempt:  \begin{align} \vec{v}&\in \mathbb{R}^n, \quad \vec{v}=\begin{pmatrix}v_1 \\ \vdots \\ v_n \end{pmatrix} \\ \Vert\vec{v}\Vert&=\sqrt{\sum_{i=1}^nv_i^2} \\ \frac{\vec{v}}{\sqrt{\sum_{i=1}^nv_i^2}}&=\begin{pmatrix}\frac{v_1}{\sqrt{\sum_{i=1}^nv_i^2}} \\ \vdots \\ \frac{v_n}{\sqrt{\sum_{i=1}^nv_i^2}} \end{pmatrix} =\vec{u} \\ \\ \Vert\vec{u}\Vert^2&=\sum_{k=1}^n\left(\frac{v_k^2}{\sum_{i=1}^nv_i^2}\right) \end{align}  I think it is the last step that is either overcomplicated or wrong.

I am given the information that $ \vec{u} = \langle 1, 1/2 \rangle$ and $\vec{v} = \langle 2,3 \rangle$.   There are a few pieces I am asked to find, and these are the one I am having trouble with:   $\left\Vert \large \frac{\vec{u}}{|| \vec{u}||}\right\Vert$  The magnitude of vector u is $ \sqrt{5}/2$, of which I correctly calculated; the unit vector is then $ \langle \large \frac{2 \sqrt{5}}{5}, \frac{ \sqrt{5}}{5} \rangle$. However, when I go to find the magnitude of the unit vector, I get $ \sqrt \frac{3}{5}$, which is clearly not one. What did I do wrong?


Are mathematical entities necessarily existing objects? That is to say, it is impossible for e.g. the real numbers not to exist. Have any philosophers talked about this topic?

When I make a claim in a proof that a mathematical entity exists, is this no more than saying that the theory I'm working within is consistent, and that all the steps upto that point in the proof are allowed moves in the theory?   By mathematical entity I mean a number, say 3; or an algebraic system such as the group of rotations of the square or the ring of natural numbers; or the category of varieties (a variety is an algebraic system with a fixed number of operations). It could also be a circle, or the category of all manifolds. It could be set theory axiomatized in ZFC.  Not only do these entities relate to each other (for example, after 2 is 3; the group of rotations of a square is related to that of a cube) but also they have structure (3=2+1 in the ring of natural numbers; or the circle, a 1-dimensional manifold is made up of 0-dimensional points)    Existence is a loaded word, we experience in our everyday lives with the existence of chairs and tables or the colour red. It seems very odd that the same word is used for entities that are unavailable directly to the senses, but at the same time it is 'oddly' appropriate.   Taking the platonic perspective - that these entities exist in their own world - and that we access this world through an effort of will. Then supposing that our own physical universe does have a complete mathematical theory. Then the entities in this theory, as well as the theory itself appear to exist in this other separate world, and our own physical world (with us in it as we are physical beings) appears to be incarnated in someway in this other world. This seems odd. Perhaps this suggests that the universe cannot have an underlying mathematical theory?  On the other hand, taking an entirely formal point of view seems (to me) deeply unsatisying. Its an interesting/entertaining point of view, granted.   For one thing, a formalisation appears to be only a perspective or an approximation. For example I have a circle in mind, I could choose to formalise this as a figure of plane geometry as Euclid originally did or a 1-dimensional smooth manifold. It is approximate, as formalisations have changed over time, and are likely to keep on doing so.