How can we see incoherent light at all if waves interact?

If we assume that a monochromatic source of light produces waves with uniformly distributed phase differences then the sum of all those waves should be zero and thus also the intensity?


Prove that $\mathbb{Z}$ is an integral domain

How would we prove that $\mathbb{Z}$ is an integral domain? That is, if $ca = cb$, where $a, b, c \in Z$ and $c \neq 0$, how would we prove that $a = b$? We cannot multiply by $c^{-1}$ as $c^{-1}$ may not exist.


Problems in Installing Ubuntu through wubi.exe file

I am using Windows 7 32-bit OS. I want to dual-boot Ubuntu alongside it.  I downloaded wubi.exe file but when I try to run it after asking for username and password details, I get an error message which says,  An error occured:  Could not retrieve the required disk image files  For more information, please see the log file c:\users\dell\appdata\local\temp\wubi-12.04-rev272.log   I don't understand the text in the log file.


How to change file ownership when chown says "invalid user: ‘–R'"?

ubuntu64@ubuntu:/$ sudo chown –R hduser:hadoop mongodbdata chown: invalid user: ‘–R'   When I try to change the ownership of the file, I am just getting invalid user: '-R' error.


Let's say I have a column not defined as NOT NULL, meaning that particular column may be null. If I insert a row with a null entry for that field, how many bytes does it take to store that entry?   In more general terms, if a table has lots of NULL entries in it, is it wasting storage space?


How can I execute function from the xhtml with frame?

As shown at diagram, how can I execute sample function in the x application?


Given a set of curved geodesics in 2D space, is there a way to determine the geometrical shape of said space?

I know that the geodesics for Euclidean Space are straight lines and likewise in the absence of forces like gravity, the geodesics are straight lines. But what if you took some curved lines and tried to work backwards to determine the geometry of the space consisting of the curved geodesics. How would one go about determining the shape of this space? Would this even be a possible or useful approach?


Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted environment.  The only idea I'm coming across is to use something like netcat but is there any reliable possibility?


How to unchecked duplicate account record that have opportunity/contact or both.  Default duplicate__c is false.  Example:  Suppose, there are total 3 duplicate name record, with one duplicate name record having either opportunity or contact or both and rest 2 duplicate name record don't have opportunity and contact then the result should marked two checkbox(duplicate__c) true. In my case it is returning 1 record as checked  Similarly for 4 duplicate name records , if one record is having opportunities or contact and the rest 3 don't have relationship with opportunity and contact.In my case it is marking 2 record true(checked). But it should be 3 record to be true(checked).  I cannot build up logic help me to sole above cases.  List<Account> actLst = new List<Account>(); Set<String> userNames = new Set<String>();  Map<Id,Account> accAll= new Map<Id,Account>();     for(Account a:[Select Id, Name from Account])         {accAll.put(a.Id,a);}  Map<Id,Account> accDup = new Map<Id,Account>();     for(Account a:[SELECT Id,Name,duplicate__c FROM Account where Id Not In (Select AccountId from Contact) And                      Id Not In (Select Account_Name__c from Opportunity__c)])         {accDup.put(a.Id,a);}  Map<Id,Account> accCont = new Map<Id,Account>();      for(Account a:[SELECT Id,Name,duplicate__c FROM Account where Id In (Select AccountId from Contact)])         {accCont.put(a.Id,a);}  Map<Id,Account> accOpp =new Map<Id,Account>();      for(Account a:[SELECT Id,Name,duplicate__c FROM Account where Id In (Select Account_Name__c from Opportunity__c)])         {accOpp.put(a.Id,a);}  for(Account account_i : accAll.values()) {     if(!(accCont.containsKey(account_i.Id)) )  //|| (!accOpp.containsKey(account_i.Name)))     {         if((accDup.containsKey(account_i.Id)) )         {             if(!(userNames.contains(account_i.Name)) )                {                 userNames.add(account_i.Name);                 system.debug('UserName');                 System.debug(account_i.Id);                  }             else             {                account_i.duplicate__c = true;                actLst.add(account_i);                System.debug('1');                System.debug(account_i.Id);              }         }        else          {             System.debug('Relationship record ' +account_i.Id);                 }    }     else     {        System.debug('2');        System.debug(account_i.Id);       }  }     system.debug('actLst >> ' + actLst); update actLst;


Why isn't there a continuously differentiable surjection from $I \to I \times I$?

I was asked this question recently in an interview. Why can't there be a a continuously differentiable map $f \colon I \to I \times I$, which is also surjective? In contrast to just continuous, where we have examples of space filling curves.  I have one proof which is direct via Sard's theorem. But the statement seems simple enough to have a proof using at most implicit (and inverse) function theorem.


Which one should I use when; ' to verb' vs 'verb(ing)'?

I came across a question in my ACT practice test which got me really confused as I was unaware of this rule. The question was:  I simply feel better to know a pen is handy.  a) No change  b) to know that  c) known that  d) knowing  Option 'd' is the correct answer but why can't I go with option 'a' or 'b'. I know that option 'c' can be ruled out but why does the answer need to be 'd' where 'a' and 'b' are valid as well...I think. Is there rule that can help me in future questions like this?


How would I see if a specific item is on a list in java script? [ANSWERED]

I have a list called usernames, that stores usernames. I want to see if the specific username is on the list and deny the person if it is.  Code: var usernames = ["someuser",""];  io.on('connection', function(socket){    socket.on("join", function(room, username == usernames){     if (username != "" || username == usernames){    // do something     }   })


Is there any way to request official feedback on what to do in order to graduate?

Let's say there's a site that I'd like to see graduate into a full SE site (I'm not going to mention Code Golf here). Now, I'm aware that the answer to "when will we graduate" is "when you're ready."  However, what if I have the question "what do we need to do to graduate?" What if I think we're ready to graduate, and I want to know why we're not? What is the process for asking that?   Do I ask on its per-site meta? If I do this, I'm not sure it will get the attention by the Official SE Graduation Committee of Officialness™. Ask on meta.SO (meta.SE soon)? This doesn't seem right either though, since it's site-specific. Something else?


This is just an example picture, but I keep running into this problem where i create a vert in edit mode and extrude it, then create faces, then merge the verbs/ filling holes to another object then subdivide it. And this is us the result. I made sure there were no faces in between. please help. I'm using Blender 2.8


OK here's a weird question.  I have like, 7 year old hardware. I have Ubuntu 12.10 installed. If I ever have a need to go into the BIOS, it's showing the time incorrect - I think it's showing it in GMT. I'm in EST. When I go into Ubuntu, it reflects the time accurately in the OS.  If I correct the time in the BIOS and go into Ubuntu then reboot into BIOS again, the time is once again set to GMT.  Is this normal behavior?


How far in advance should you book a domestic flight within Canada for best value?

Google revealed Cheapair.com articles about how far in advance to book a flight to get a good deal on average (, ), but are there any better articles specific to Canada?   I read , but its assertion below appears based only on personal experience:     If I had to pick a "good" time to buy domestic fares within Canada, I'd probably go with about a season ahead (for example, fall sales near the end of summer, or winter sales near the end of fall). Somewhere in the range of eight weeks before departure. It's around this time that it's most common for Air Canada or Westjet to get a little nervous about filling empty seats and perhaps offer a genuine sale. Don't expect miracles though; if you see a "sale" about a six to eight weeks before your departure dates, that's likely the best you'll do. I wouldn't hold out for much longer, because...


The local variable string may not have been initialized peculiarity

From what I know, initalizing a variable is when you set a value to it. For example:  String s;        // declaring the String (throws an error if you use in conditionals) String s = null; // declaring and then initializing the String (no error)   However, when a String is declared, isn't it automatically initialized to null? Therefore, the compiler shouldn't throw an error.  I also noticed that String s = new String(); does not produce any errors when used with conditionals but String s; does. I thought these two statements were essentially the same thing and the latter was even encouraged over the former.  My questions are, why does String s = new String(); work but not String s; (when using conditionals to set their value)? Shouldn't both strings be automatically initalized to null, therefore not causing an error?  Bonus question: Since String objects are automatically initialized to null, why does the following code print an empty String?  String s  = new String(); System.out.println(s);   EDIT: Apparently I don't think straight when I'm tired. This whole question is a mess, I have no idea what I was thinking. Apologies to those who had to try and understand it.  Also, the on default values:     Local variables are slightly different; the compiler never assigns a default value to an uninitialized local variable. If you cannot initialize your local variable where it is declared, make sure to assign it a value before you attempt to use it. Accessing an uninitialized local variable will result in a compile-time error.   Which answers the above question.


Proof of a theorem saying that we can make a measurable function continuous by altering it by a set of arbitarily small measure

I found the following problem in the book of kolmogorov fomin Introductory real analysis (p.293 problem 10) which I have no idea how to show. Prove that a function $f$ defined on a closed interval $[a,b]$ is $m$ measurable if and only if given any $\epsilon>0$ there is a continuous function $g$ on $[a,b]$ such that $m${$x:f(x)\neq g(x)$}$<\epsilon$ Hint use Egorov's theorem    Does anyone have any idea how to prove this Thanks in advance


How can I get custom code running at a specific path?

I am trying to add custom javascript to my Drupal 7 site which I need to run on the path /node/add/h5p-content. I have created a custom module (called mods) with the function: function mods_h5p_scripts_alter(&$scripts, $libraries, $mode) {     $scripts[] = (object) array(       // Path relative to drupal root       'path' => drupal_get_path('module', 'mods') . '/JSOverrides.js',       // Cache buster       'version' => '?ver=1',     ); }  The JavaScript code runs successfully on the front page, but not for /node/add/h5p-content. At this stage, the code is just a call to console.log(). I investigated other paths on my site and the code runs for some pages (for example /node/62) but not others (for example /node/25). How can I fix this issue?


How do you convince your son to poop in the toilet?

My four year old is completely pee trained, no issues when dealing with that. But when it comes to using the toilet for poop, he refuses. I'm constantly catching him going in his pants, leaving streaks in his underwear three or four times a day until he finally gets it all out.  Driving me mad. I've tried to reward him with candy, but that didn't help. I tried to eat his candy when he went in his pants, that didn't help. I always give him massive praise when he goes in the toilet.  I've resorted to just putting him back in pull-ups and forgetting about it for a month or two. What worked for you and what do you suggest that I try?


What causes this code to work only on some compilers (UD?)?

In my code I had this line:  f(t->a, t->b, destroy(t));   Where f is a function, t is a pointer to a struct and destroy is a function which frees the pointer t and returns NULL. The code compiled and run successfully on some compilers (cc, gcc, clang on OS X and clang on Linux) as I expected - t->a and t->b were evaluated before freeing t. However, when compiling with cc/gcc on Linux I got a segmentation fault, as if I was trying to dereference null pointer. What causes that?  Thanks!


Blender only portion of model being rendered

I am rendering a still scene of a house. it is quite a large mesh, the issue I have is that only half of it is showing up in the camera view and the render.    If you look at the screen shots you might see what you mean, it looks like half the mesh is being swallowed. I've been searching for answers and can't find. It's driving me mad. Thanks


I'm using Spring's MVC with JSP views. Every JSP page has similar structure - headers, content, footers, perhaps a sidebar, etc. Looking around for "best practices" people seem to "include" footers and headers, but that means that every JSP page includes these "include" statements, giving a fixed format. To my eye a better solution would involve nested views, where a base template is extended with information appropriate to the page in question. One advantage of this approach is that you can have default values assumed in the base template without repeating them elsewhere. Another advantage is that you can further separate structure and content ("header" and "footer" being structural, and so belonging in the base template) in pages which contain a lot of text (think of help pages - you could put all that in the database, but why bother, especially since with Spring you can resolve to different views via the locale?).  There doesn't seem to be any support for this at the MVC level in Spring, but it could be implemented in JSP using custom tags and, indeed, there's a rather clunky attempt  (that might explain what I want better than this question, although I think you could make it less intrusive).  Anyway, my question is - does this already exist as a (popular/standard) tag library? I'm happy writing custom tags, but my impression of this stuff (generating web sites) is that there's a huge range of solutions already out there, with most work going into choosing the correct tools (eg Spring). Thanks.


How to set the width of dates in moderncv?

How can you custom the with of this col/field to adapt "Jun-Sep,2011" in just one line.    The MWE is copied from   \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} % banking, casual, classic, empty, oldstyle options \moderncvcolor{blue}   % black, blue, green, grey, orange, purple, red options \usepackage[scale=0.85]{geometry} % default scale=0.7. height= scale * layoutheight  \firstname{John} \familyname{Doe} \title{R\'esum\'e}     % optional  \makeatletter \@ifpackageloaded{moderncvstyleclassic}{% \let\oldsection\section% \renewcommand{\section}[1]{\leavevmode\unskip\vspace*{-\baselineskip}\oldsection{#1}}% }{% } \makeatother  \begin{document} \makecvtitle \section{Professional Experience}     \cventry{Start--End, Year}{Intern}{Company}{Nowhere}{State}{     \begin{itemize}         \item Did something important here.     \end{itemize}}  % problem with vertical space------------------------------------------------- \section{Education}     \cventry{Jun-Sep, 2011}{Bachelor of Arts \LaTeX}{University of \LaTeX}{}{\textit{4.0/4.0}}{} %\vspace*{-6mm} %this will fix vertical spacing for \moderncvstyle{classic}, but create vertical spacing issues for other \moderncvstyle{xyz}.  % problem with vertical space ------------------------------------------------- \section{Skills}     \cvitem[-0.5em]{}{     \begin{itemize}         \item \LaTeX     \end{itemize}} %\vspace*{-6mm} %this will fix vertical spacing for \moderncvstyle{classic}, but create vertical spacing issues for other \moderncvstyle{xyz}.  \section{Languages}     \cvitem[-0.5em]{}{     \begin{itemize}         \item TeX-speak     \end{itemize}} % \cvitem{}{job description text here}  \end{document}


Partitions of $n$ into distinct odd and even parts proof

Let $p_\text{odd}(n)$ denote the number of partitions of $n$ into an odd number of parts, and let $p_\text{even}(n)$ denote the number of partitions of $n$ into an even number of parts.  How do I prove that    $|p_\text{even}(n) - p_\text{odd}(n)|$ is equal to the partitions of $n$ into distinct odd parts. Show that the number of partitions of $n$ for which no part appears exactly once is equal to the number of partitions of n for which every part is divisible by 2 or 3. Show that the number of partitions of $n$ for which no part appears more than twice is equal to the number of partitions of $n$ for which no part is divisible by 3.


The shortest distance between the parabolas $y^2=x-1$ and $x^2=y-1$ is.  Attempt: The shortest distance is along the common normal of the two curves.


Unable to search for files unless complete file name is entered

As a company, we store a large amount of product images on Google Drive. To illustrate the point: we have one product with multiple images (eg. from different angles) all saved with different suffixes e.g. 123456C.jpg, 123456Ca.jpg, 123456Cb.jpg etc.  Working from different browsers on both mac and PC, non of us can search for any file unless we type in the full file name. This makes workflow tricky when usually we'd type in the first 3 numbers or so and up would pop (in the dropdown) all related images.  The small dropdown arrow next to the blue search button with search parameters is set to all file types, unspecified and owned by anyone.  The design studio we work with and have images shared with does not have the same problem. They could start typing in 123... and all the files that start with 123 would pop up to select (below the search bar).  To confuse things further, if we type title: "123" and enter, this works. But it's a workaround, not a solution.Can anyone help?  EDIT: No duplicate qn. - I want to search with the beginning of a filename, not the middle. It seems to work with one account that has shared images with us, but not ours. I believe the problem lies in sharing and ownership but can't work out where.


points out that certain key and block lengths were a requirement for the AES submissions:     The candidate algorithm shall be capable of supporting key-block combinations with sizes of 128-128, 192-128, and 256-128 bits.   My question is this; how can having a key length that is greater than the block size enhance security?  If we look at ECB mode for simplicity, when the key length is equal to the block length we have a permutation relationship between the set of all plaintexts and the set of all ciphertexts.  Once you increase the key length beyond that, you start to introduce collisions. In fact, you only introduce collisions from then on don't you? Collisions in the sense that a key will create the same ciphertext-plantext relationship as another key.  This would lead me to believe that only part of the key-space is unique, and only that part of key-space needs to be brute-forced?  I know that I am clearly incorrect, I just don't understand why.


How to calculate mean and variance correctly when data is in frequency "bins"?

Education data was just released, providing counts for test results in bins corresponding to letter grades. The bins are given by the partition $m=[m_0,m_1,...,m_k]$ of the numerical grade scale, the frequency within each bin by $z_j=\#\{x_i|m_{j-1}\leq x_i<m_j\},\ j=1,...,k$, where $x_i, i=1,...,n$ are the individual student scores and $z_j$ is the count of observations in each bin. Only $m$ and $(z_1,...,z_k)$ are reported, the raw scores $\{x_1,...,x_n\}$ are not released.    Of course one could calculate the overall mean by assuming $\bar\mu_j=\frac{m_j-m_{j-1}}{2}$ and then aggregating  $$\bar\mu=\frac1n \sum_{j=1}^k z_j \bar\mu_j.$$ This implicitly assumes that the data are symmetrically distributed (e.g., uniform) within each bin, which is unreasonable given the unimodal nature of the overall distribution.   A similar  naïve formula for the variance, $$\text{Var}(x)=\frac1{n-1} \sum_{j=1}^k z_j(\bar\mu_j-\bar\mu)^2,$$ would underestimate the true variance. Assuming uniform distribution within each bin could be an improvement, but still ignores the fact that the the probability mass within each bin is likely higher at the boundary closer to the overall mean and lower at the bin boundary further away from the overall mean.   My hunch is that it would require either a parametric assumption for the overall distribution (which, given the data, I am reluctant to make) or estimating a kernel of some sort. Seems to me this is a fairly standard problem. Does someone have a solution?


How to add an **existent** security group to a folder?

How to add an existent security group to a folder with the read/write permissions?


Computing sums of divisors in $O(\sqrt n)$ time?

I have a sequence: $1,3,5,8,10,14,16,20,23,27,\dots$  I know that the recursive relation is:  $$p[i] := p[i-1] + \text{number of factors of $i$}, \quad \text{with $p[1]=1$.}$$  How do I solve this recursive relation in $O(n^{0.5})$ time? I have to write a program for it, and $n$ can be as large as $10^9$. So, some appropriate precomputation and prestorage is allowed, provided that they comply (memory and time wise) with the range of $n$.


This strange series : $\sum \frac{\sin(1/n)}{\sqrt{n}}$

I'm trying to demonstrate the convergence of the following series: $$\sum \frac{\sin(1/n)}{\sqrt{n}}$$  I know I can prove the convergence by the comparison test. I started like  $$\frac{\sin(1/n)}{\sqrt{n}} \le \frac{1}{\sqrt{n}},$$  but now I'm stuck because $\frac{1}{\sqrt{n}}$ diverges. With which sequence can I compare it to be able to use the comparison test?  Can you give me a hint?


On proving the surjectivity of the exponential map for compact Lie groups using properties of their Lie algebras

It is known that the exponential map is surjective for compact, connected Lie groups. This is generally proved through the introduction of some bi-invariant metric etc. etc. My question is related to the following: Can this be shown using only Lie theory and not deferring to other concepts like Riemannian geometry, etc.? In particular, can I use some properties of the Lie algebra of compact Lie groups? Details:  Let $G$ be a compact, connected Lie group.  We know $\exp:\mathfrak{g}\to G$ is a local homeomorphism. So I can find a subset of the Lie algebra, $S$, containing $0$ such that $\exp{S}\subset G$ is open in $G$. Now, consider an open subset of $\exp{S}$, $U$, with the property that $U^{-1}:=\{g^{-1}:g\in U\}=U$ and $e\in U$. Then, with a bit of work, you can show $\exists n\in\mathbb{N}$ such that $G=U^n$ (length $n$ words in the elements of $U$). This fact is equivalent to compactness (finite subcover).  So, given $g\in G, \exists g_1,...,g_n\in U$ such that $g=g_1g_2...g_n$. By local homeomorphism property of $\exp$, $\exists x_1,...,x_n \in \exp^{-1}{(U)}\subset S\subset \mathfrak{g}$ such that $e^{x_i}=g_i \forall i$. Therefore, $g=e^{x_1}...e^{x_n}=e^{\Omega_n(x_1,...,x_n)}$   where $\Omega_n$ denotes the Baker-Campbell-Hausdorff formula of $n$ elements. In particular, $$\Omega_2(A,B):=A+B+\frac{1}{2}[A,B]+\frac{1}{12}[A,[A,B]]+...$$   However, if $\exp$ is to be surjective, $\Omega_n$ must converge for all $x_1,...,x_n$ in $\exp^{-1}{(U)}$. But in order to prove surjectivity, is there any way I can use the properties of Lie algebras of compact Lie groups to show convergence of the BCH formula in this set?  Please let me know if this question is ill-posed/ill-formed. Thanks!


Proof that it is unsolvable whether there's an infinity between countable and uncountable?

I have recently watched a video by "Undefined Behavior", explaining countable and uncountable infinities, and showing why uncountable infinity is larger than countable infinity. He then stated that a question had been asked if there is some infinity that's in-between the two (larger than countable, but smaller than uncountable), and that it has been proven that this question in unsolvable. However, he did not mention any name of the theorem proving this, and also did not show any proof. What is the proof that this problem is unsolvable?


JavaScript: Can I declare variables inside switch cases?

In C language, you cannot declare any variables inside 'case' statements.  switch ( i ){ case 1:   int a = 1; //error!   break; }   However, you can when you use with curly parentheses.  switch ( i ){ case 1:   {// create another scope.     int a = 1; //this is OK.   }   break; }   In Javascript case, can I use var directly inside case statements?  switch ( i ){ case 1:   var a = 1   break }   It seems that there is no error but I'm not confident this is grammatically OK.


unfortunately you can't read the percentages in the small pie pieces. Is there an easy solution for that? Putting the percentages outside the pie or to the legend? \documentclass{article} \usepackage{pgf-pie,stackengine}  \begin{document} \begin{figure}[h!] \centering \begin{tikzpicture} \small \pie[radius=2, color={cyan!90, green!70, blue!40, magenta!90}, text=legend]{13.52/Opernveranstaltungen, 1.19/Operettenveranstaltungen, 3.58/Musicalveranstaltungen, 81.7/andere Veranstaltungen} \end{tikzpicture} \caption[Veranstaltungen]{Veranstaltungen} \label{fig:verteilung_theatertypen} \end{figure}   \end{document}


Euler theorem in determining the residue

Using the Euler's theorem: $x^{\varphi\left(m\right)}\equiv1 \pmod{m}$, we have: If $x\ =\ 12,\ m\ =\ 17,$ then ${12}^{\varphi\left(17\right)}\equiv1 \pmod{17}$. Now I have to use that fact to determine the residue of ${12}^{482}$ (mod 17). I'm thinking of this approach: $482=256+128+64+32+2=2^8+2^7+2^6+2^5+2^1$ Thus ${12}^{482} = 12^{256} \cdot 12^{128} \cdot 12^{64} \cdot 12^{32} \cdot 12^{2} $ So the residue of ${12}^{482}$ (mod 17) can be obtained by multiplying together the residues of $12^{256}$, ... above and then taking the residue of that product. But is this the simplest way? Have I made the best use of the Euler's theorem result above? Thank you so much!


What can we do to stop bad edits getting accepted?

A worryingly high number of bad suggested edits get accepted. For example:             (These are just examples of a few common patterns. The  exists too.)  What can we do to educate reviewers to do a better job?  This is an open question, not a feature request, because I don't have a good answer. Some possibilities:   Provide a way to notify the reviewers (“hey, check that proposed tag wikis aren't plagiarised”). Make the workflow for approval as long as the workflow for rejection, so that people don't blindly approve just because it's less work. (I don't know if some reviewers tend to do that.)


Apex trigger error for Static method cannot be referenced from a non static context

Public class CaseHandler{  Public static void updatecasefields(){ List<Case> lstcase = new list<case>();  for (Case cs: lstcase)     {         If(cs.Issue_Sub_Type__c != null && cs.Issue_Type__c != null)         {             List<custom_object__C> Casp = [SELECT Id, Carrier_Name__c, Category__c, Issue_Sub_Type__c,Issue_Type__c,Turnaround_Time_Days__c FROM custom_object__C WHERE Carrier_Name__c = :cs.CarrierName__c AND Category__c = :cs.Category__c AND Issue_Type__c = :GiDP_Issue_Type__c AND Issue_Sub_Type__c = :cs.Issue_Sub_Type__c];                                                      for(custom_object__C  CP: Casp)         {                cs.Turnaround_Time_Days__c = cp.Turnaround_Time_Days__c;                                                             }         }     }   }   }  //Trigger  trigger CaseTrigger on Case ( before update) { if (Trigger.isUpdate) {     CaseHandler CShandler = new CaseHandler();  CShandler.updatecasefields();  } }  *** Error****  Static method cannot be referenced from a non static context: void CaseHandler.updatecasefields()


I'm trying to get the deb repository for libjansson4 which includes version 2.6-1, but when I go to this page here  I can't get the PPA repository so I can add it to my repositories to download it to my system.  I currently have and old outdated version of libjansson4 on 2.4, and I need 2.5 or greater to try compile this software that depends on it. I did however come to another page which has the libjansson4 >=2.6-1 and it's amd64 build, but when I go to run that deb package I get error saying it has unmet dependencies because it requires libjansson4 to be >=2.5 and up.   Selecting previously unselected package libjansson-dev:amd64.  (Reading database ... 303860 files and directories currently installed.)  Unpacking libjansson-dev:amd64 (from .../libjansson-dev_2.6-1_amd64.deb) ...  dpkg: dependency problems prevent configuration of libjansson-dev:amd64:   libjansson-dev:amd64 depends on libjansson4 (= 2.6-1); however:     Version of libjansson4:amd64 on system is 2.4-1.  dpkg: error processing libjansson-dev:amd64 (--install): dependency problems - leaving unconfigured Errors were encountered while processing:   libjansson-dev:amd64   checking around and I can't seem to get a hold of the debian repositories so I can add them, just where are they and why is it so difficult to get a hold of?  it's really annoying that the current repositories are so outdated, yet on the actual main sources where they can be obtained they have them constantly updated as they release them, more so annoying they don't provide any instructions on how to add their ppa because they didn't say what their ppa repo is like most people put out.  I have considered the option of just taking RPM package and then re-compile that into a DEB package, although that just takes too much time and effort to do.


To start off I am not really sure if this is hardware (headphones or the phone) or android specific issue/feature. Maybe there is an android workaround for the hardware feature hence this kind of fits here the best.  Google is full of similar topics, but all I've seen are related to windows and not really this kind of delay.  Up until recently I've been using wired headphones, but I started using bluetooth ones and I hit this weird delay when using an app like Duolingo. When there is no sound for a few seconds playing there is a slight delay when the sound is actually played. Let's say I do 5 exercises in a row and I do it very quick- no issue. Then I come to a more complex one that I need more time to do, the sound that plays after submitting an answer is slightly delayed.  When listening to music there are no issues, which would point me to believe that the headset is actually going to some sort of sleep mode when there is no audio played from the source device.  Sony Xperia M2 android 5.1.1  Headphones are Marshall Major II wireless  Do you know of a way to fix/counter-act this annoying bug/feature?


Table gets shifted when using threeparttable

Hello I'm trying to use the threeparttable option but as soon as I do so my table gets shifted and is plotted at the left side of my page.. How can leave the table at the center of the page? Thanks a lot for your help]  \documentclass{article} \usepackage{graphicx} \usepackage{booktabs} \usepackage{tabularx}   \begin{table}[!ht]  \begin{threeparttable}   \footnotesize \centering     \caption[Parámetros físicos evaluados en el análisis de sensibilidad]{Parámetros físicos evaluados en el análisis de sensibilidad y coeficiente de variación CV ($\sqrt{\mathrm{MSE}}/\bar{O}$) para las variables $T_{m02}$, $H_s^{(ss)}$, $H_s^{(ig)}$, $R_s^{(ss)}$ y $R_s^{(ig)}$ del caso C15.}          \label{tab:sensibilidad_parametros_caso15}          \begin{tabular}{l|ccc|rrrrr} \toprule Run         & \multicolumn{3}{c|}{Parameters Hydrodynamics} & \multicolumn{2}{c}{Parameters Morphodynmics}                  \\                             & $Eq.$   & $k\textsubscript{str}\,\mathrm{[m^{-1/3}s]}$ & $\nu\,\mathrm{[mPa]}$ & BL\textsubscript{f} & SE\textsubscript{f} \\ \midrule  Eq.1 & FE & 84     & 1.0      &  MPM        &   $\beta_{KF}$                 =1.3 \\                   Eq.2  & FV & 84     & 1.0      &  MPM   &   $\beta_{KF}$ =1.3         \\  \midrule  $k_{str}.1$  & FV & 84    & 1.0      &  MPM   & $\beta_{KF}$ =1.3          \\                   $k_{str}.2$  & FV & 104     & 1.0      &  MPM   &  $\beta_{KF}$ =1.3  \\   $k_{str}.3$   & FV& 64     & 1.0      &  MPM   &  $\beta_{KF}$                 =1.3   \\ \midrule  turb  & FV & 84     & 1.56      &  MPM   & $\beta_{KF}$ =1.3          \\  \midrule  load1  & FV & 84     & 1.0    & MPM   & $\beta_{KF}$ =1.3                 \\   load2  & FV & 84     & 1.0      & V.R   & $\beta_{KF}$ =1.3                 \\   \midrule                     S1.1  & FV & 84     & 1.0      & MPM   & $\beta_{KF}$ =1.3                 \\                     S1.2  & FV & 84     & 1.0      & MPM   & $\beta_{KF}$ =3.5                 \\                     S2.1  & FV & 84     & 1.0      & MPM   & $\phi_{Soulsby}$=36.2$^{\circ}$                   \\                     S2.2  & FV & 104     & 1.0      & MPM   & $\phi_{Soulsby}$=36.2$^{\circ}$                   \\     \bottomrule      \end{tabular}      \begin{tablenotes}      \item \textit{Note: $\phi$ = Sediment intensity;}       \end{tablenotes}      \end{threeparttable}      \end{table}     \end{document}


Finite group with isomorphic normal subgroups and non-isomorphic quotients?

I know it is possible for a group $G$ to have normal subgroups $H, K$, such that $H\cong K$ but $G/H\not\cong G/K$, but I couldn't think of any examples with $G$ finite. What is an illustrative example?


My chicken breasts release a lot of fluid when cooked. How do I prevent this?

I notice when cooking chicken breast in a pan, or in the oven, the chicken releases a lot of fluid, watering down the flavour.  This happens with fresh chicken as well as frozen (de-frosted) chicken.  How do I prevent this?


How to use a custom, scalable, symbol in LaTeX

I want to use a custom symbol in my document that is treated like any other letter or math symbol by LaTeX. I do not want to  in order to create a new one but rather create one from scratch.  Is there a way to just create the symbol using, say, Inkscape and tell LaTeX to print that when I call a specific macro? There is of course the possibility of using \includegraphics[height=1em], but I imagine that that is not a very effective approach. Can I let LaTeX use my symbol like any other math symbol?  Do I have to  (consisting of only one character) or is it possible to this in a simpler manner?


403 Forbidden after changing DocumentRoot directory Apache 2.4.6

So I just installed a virtual machine with Ubuntu 13.10. I wanted to play with apache 2.4.6 before I update my ubuntu 12.04 servers. I want my document root to be in my home folder and so I changed it in the etc/apache2/sites-available/000-default.conf  When I did that I just get the forbidden message. I set the new folder permissions to 777 but still get forbidden. I even put an index.html file in the new directory that just says hello world but nothing still. Here is my 000-default.conf file.  <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com  ServerAdmin webmaster@localhost DocumentRoot /home/everett/webroot  <Directory /home/everett/webroot>     Options FollowSymLinks MultiViews     AllowOverride All     Order allow,deny     allow from all </Directory>   # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn  ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined  # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf </VirtualHost>  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet


I'm starting a project and want to have customized coffee mugs for people who support the project. I've never designed anything for a coffee mug before and am unsure of the typical standards. I know that print design is typically 300dpi, etc (I haven't done print design in forever, so it could have changed.)  But are there any standard dimensions, dpi, and colors for coffee mug printing? I don't really know how they print onto a coffee mug, so I'm very unsure of how to create it.  I need large portions of transparent parts for my ideal design. I'd like to just set up a wide graphic in photoshop, much like I would create a texture for a cup in 3DS Max.  So, summary of the question:  What dimensions, color mode(CMYK?), and other graphical considerations do I need to design for? Is there any kind of PSD template for a cup wrap? And for a bonus, do "cup printers(?)" print inside of cups as well? How would I create a template for that?


Why are airline passengers asked to lift up window shades during takeoff and landing?

I have always wondered why the windows shades have to be raised during take off and landing. I can't think of any safety issues by having a closed window.


In pgfplots, how to apply enlarge * limits to axis but not to grid?

I need to plot a pgfplot where the axis arrows “overshoot” the grid by 10pt. Using enlarge x limits I can enlarge the arrows, but then the grid gets enlarged too.   \documentclass[]{standalone} \usepackage{tikz} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0, xmax=1, ymin=0, ymax=1,     axis x line=middle, axis y line=middle,     enlarge x limits={abs=10pt}, enlarge y limits={abs=10pt},     minor tick num=1,     grid=both     ] \addplot+[smooth] coordinates{ (0,0) (0.65,.8) (1,1)};   \end{axis}   \end{tikzpicture}    \end{document}   produces     where the grid lines “overshoot” the intended area [0,1]x[0,1].   How can I tell pgfplots to apply enlarge * limits to axis but not to grids?


Center page content margin: 0 auto; not working?

I am trying to centre the content on this page   I tried adding the below but no luck.  .container_24 .grid_24 { margin: 0 auto; }   As I understand, if the margins are set to margin: 0 auto; and the width is defined which it is as per below, it should center?  .container_24 .grid_24 { width: 960px; }   I'm obviously going wrong somewhere, please enlighten me :)


Properties of a continuous map $f : \mathbb{R}^2\rightarrow \mathbb{R}$ with only finitely many zeroes

Let  $f : \mathbb{R}^2\rightarrow \mathbb{R}$ be a continuous map such that $f(x)=0$ only for finitely many values of $x$. Which of the following is true?   Either $f(x)\leq 0$ for all $x$ or $f(x)\geq 0$ for all $x$. the map $f$ is onto. the map $f$ is one one. None of the above.   What I have done so far is :   I would take polynomial in two variables.. This need not be like $f(x)\geq 0$ for all $x$ or $f(x)\geq 0$ for all $x$.So,first option is eliminated. The map is not one one assuming that $f$ has more than one zero. So, third option is wrong.   I could not think of an example in which it is not onto..  Only examples i am getting in my mind are polynomials and they are onto..  So, I am having trouble with surjectiveness of the function.  Please help me to clear this.  Thank you..


Self-Contained Proof that $\sum\limits_{n=1}^{\infty} \frac1{n^p}$ Converges for $p > 1$

To prove the convergence of the p-series   $$\sum_{n=1}^{\infty} \frac1{n^p}$$  for $p > 1$, one typically appeals to either the Integral Test or the Cauchy Condensation Test.  I am wondering if there is a self-contained proof that this series converges which does not rely on either test.    I suspect that any proof would have to use the ideas behind one of these two tests.


When doing electrical work, what do I use to check wires are safe?

If I am thinking of replacing a light switch, a light-fitting, a socket/outlet or doing other work with household wiring where there may be 120 Volts or 240 volts present ...  There is already a question on  which is mostly about procedures but ...  what types of tools are available for testing that wires are safe and, as an average householder, which type of tool should I buy to help avoid electrocution?


I'm 16, from India and I really want to be a web/graphic designer.I'm good with coding, Illustrator, Photoshop etc. Problem is, I only KNOW how to do stuff, like, I see a design and I can confidently say, I can recreate that. But how do I think of something new, something beautiful? I see posters and ads everywhere like 'we can create your website for Rs.50' or 'Making a website just became easy' and it really upsets me. I think how am I better from them? Who will want to work with me when they can easily work with people like them?  Moreover I participated in a few contests in 99designs and i got eliminated in the first round 12 times  People always comment not good enough, not what we are looking for etc etc.  Should I just quit because I can't think anything, I can just copy things. Should I just go back into trying to be a lame engineer as my parents want?  I'm even embarrassed in asking a question like this in a place where people talk about some serious design work. Please Help.


Let $f$ be a $C^2$ function in $[0,1]$ such that $f(0)=f(1)=0$ and $f(x)\neq 0\,\forall x\in(0,1).$ Prove that  $$\int_0^1 \left|\frac{f{''}(x)}{f(x)}\right|dx\ge4$$


How can I select a row in MySQL db where the value of a column contains ' and \ ?  For example, I want to select a column that matches this types of string:     \'s-disease/symptoms-causes/syc-20351556   What can I do to achieve what I want?


Understanding the maths behind the hackerrank problem possible path

So I was solving maths problems in Hackerrank and I found this problem :  . So this problem was little bit of maths so I was facing difficulties to solve this. The description of this problem: Adam is standing at point (a,b) in an infinite 2D grid. He wants to know if he can reach point (x,y) or not. The only operation he can do is to move to point(a+b,b),(a,a+b),(a-b,b),(a,b-a) from some point . It is given that he can move to any point on this 2D grid, i.e., the points having positive X or negative (or Y) co-ordinates. Tell Adam whether he can reach  or not. So I see the answer and the answer was: return gcd(a,b)==gcd(x,y) Which basically means if the gcd of the two initial points and the target points is the same then there exists a solution other there isn't. But I don't understand even a little bit of it why this is the answer.Can you explain me briefly? I understand the mathematical logics but I also wanna understand why it is mathematically correct.


How can I execute `date` inside of a cron tab job?

I want to create a log file for a cron script that has the current hour in the log file name. This is the command I tried to use:  0 * * * * echo hello >> ~/cron-logs/hourly/test`date "+%d"`.log   Unfortunately I get this message when that runs:  /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c: line 1: syntax error: unexpected end of file   I have tried escaping the date part in various ways, but without much luck. Is it possible to make this happen in-line in a crontab file or do I need to create a shell script to do this?


How can know if a ppa repository is a true repository or a malicious repository?

when I try to install software like a Gimp in the ubuntu I find the following steps   Add this repository Update Install the software   But of course when I find on the gimp page I didn't found any repository, so my question is how can trust that it is an official repository?  For example, I found this repository for gimp:      sudo add-apt-repository ppa: otto-kesselgulasch / gimp  But I cannot verify if this repository is fiable or if these binary files have not any malicious software  Is this technique a best practice, I think that if you install this and this source is a not a trusted source, you can take a virus or trojan.  Any idea?  Thanks


I have two objects called Opportunity and Tournee, with a date field and date field is a formula field which subtracts 10 days from date field in Opportunity and the trigger create events based on this dates and shows them in a calendar. Now, what I found is Tournee trigger is not being called on its date formula field update. Now how do i create Tournee events based on its date field?


Return everything after phrase, to end of string, excluding phrase

I have the following URL  https://website.com?id=XXXVVVCCCHHH   I only want XXXVVVCCCHHH, I've tried the following:  var phrase = 'https://website.com?id=XXXVVVCCCHHH';  var myRegexp = /id=(.*)/; phrase = myRegexp.exec(phrase);   But this is returning: id=XXXVVVCCCHHH;  How can Ii edit this to only return XXXVVVCCCHHH?


Excel destroying special character when saved as CSV

I am working on a project that uses a CSV file supplied by the client to populate a database. The client is to create the spreadsheet, then save it as a CSV to be uploaded, which is then parsed into a database.  The problem is, whenever the client saves the excel spreadsheet as an MS-DOS .csv file, many of the special characters get converted to question marks "?" (symbols such as ' " / ). However, if we then open the CSV file and manually replace each ? with the right character it works fine.  The problem is that the data file is HUGE, and we can't reasonably do this, so I was hoping there was a way to save it. We have tried exporting as Unicode and ASCII to no avail. We have also tried uploading to google docs, and re-saving, however, it also breaks those characters.


Error occurred when installing php-mcrypt on Centos 7

I'm completely new to Linux in general and using Centos as a server. I tried to install the php-mcrypt extension through yum, but i'm only receiving errors. I have some difficulty interpreting what the problem might be in this case. What should I do and how can i fix these errors?


I am trying to configure my Z shell to not show duplicate history entries with 'setopt HIST_FIND_NO_DUPS'.  HIST_FIND_NO_DUPS When searching for history entries in the line editor, do not display duplicates of a line previously found, even if the duplicates are not contiguous.   However, it does not work in the expected way. When I have this history:      1  history     2  cd /bin     3  cd /bin     4  cd /bin   I expect to press UP twice (which is set to 'up-line-or-history') and get 'history' in my prompt. However instead I get 'cd /bin'. If I press UP four times it goes to 'history' command, which is basically the default behaviour without HIST_FIND_NO_DUPS set.  I know that I could use other options that would prevent duplicate commands from getting saved in the first place (such as HIST_IGNORE_ALL_DUPS), but that is not the behaviour that I want.


I have a file in the following format:  1043481872 1043481872 1043481872 1043481872 1043481873 1043481873 1043481873 1043481873 1043481874 1043481874 1043481874 1043481875   My question now boils down to a simple graph where the X axis is the unique values in the table and the Y axis would be the number of values of each of them. Eg 1043481874 would be x axis and 3 would be Y axis. If anyone could tell me how to write a bash script to plot this, it would be very helpful


I need to find a list of all items starting with an underscore: _  The obvious doesn't work:  select * from role where Name like '_%'   This still returns all items.  The following also returns all items.  select * from role where Name like '\_%' select * from role where Name like '__%'   anyone knows how to escape a underscore? or how else I can achieve this StartWithUnderscore functionality?


Where is the script for alias command in Linux?

I want to add an argument to bash alias script so that i can just run  alias -p l='ls -l'   and it would get added to my .zshrc permenantly. But i am unable to locate the shell script for alias.  I tried whereis alias, but with no luck. even man alias shows alias has no entry.  I looked in /usr/bin, /usr/share/local/bin but with no luck. Can anyone pointout the location?  EDIT: I have also tried looking in all possible paths by ls $(echo $PATH| tr ':' '\n') | grep alias


replacing the default console emulator under Windows XP

How can I replace the default program providing console windows under Windows XP?  I know of , and I have a shortcut to start cmd.exe in . But now I want console applications to start in Console2 rather than the default console program, even when I have no control over the program that starts the console application. (I.e. a non-console program starts consoleapp.exe, and I can't change it to start Console2 instead, but I still want the application to be started inside a new instance of Console2.)  (Note that I want to replace the console itself, that is, the window in which console (i.e. text mode) applications run. And I must be able to run arbitrary, unmodified console applications: a substitute for a specific console program such as Cmd won't do me any good.)  EDIT: So what I'm after is a , which           OT: I want to know when Microsoft is going to make a decent CSRSS replacement. Not being able to adjust the width of a "terminal" by resizing the window is a complete joke.         Go download the ISE already. (It's included in Win7/2008R2.)   But as far as I understand this ISE is an , not a general console emulator.


I am trying to validate an email address to make sure its correct. e.g Includes "@" symbol. What do I add to my existing code?   Here is my code for the email address with other inputs in the form:     $(".next").click(function(){  //text inputs   if(!document.getElementById('fullname').value) {     alert('Full Name is required');     return false;   }    else if(!document.getElementById('email').value) {     alert('Email is required');     return false;   }    else if(!document.getElementById('phone').value) {     alert('Phone Number is required');     return false;   }    else if(!document.getElementById('age').value) {     alert('Age is required');     return false;   }


In short, how do you unit test an error condition such as EINTR on a system call.  One particular example I'm working on, which could be a case all by itself, is whether it's necessary to call fclose again when it returns EOF with (errno==EINTR). The behavior depends on the implementation of fclose:  // Given an open FILE *fp while (fclose(fp)==EOF && errno==EINTR) {     errno = 0; }   This call can be unsafe if fp freed when EINTR occurs. How can I test the error handling for when (errno==EINTR)?


Let $M$ be a finite type module over a local ring $R$. If the minimum number of generators equals the maximum number of independent elements, is $M$ free? If not, do you have a counterexample?


How to print next line on current line if next line contains some character?

If the next line is b, I want to add it to the AA line.  This is my file:  AA   b   b   AA   b   AA   b   b   b   Desired output:  AA b b   AA b   AA b b b   The below is the code I am trying.  paste -s -d" " file.txt | awk '{for(i=1;i<=NF;i++){if(i > 1 && $i == "AA")????}}'   I printed several line in one line and tried to run for loop to the last field and go down to the next line if $i is AA. But I do not know what to do after the 'if' statement.  Can anyone help me?


The ampere is still a base unit, according to the SI brochure. However, in my perception the recent redefinition of units effectively defines the Coulomb as e/(1.602 176 634 × 10^−19), and the ampere is derived as 1 A = 1 C/s. Why did they not make the coulomb a base unit, instead of the ampere, last year?


What to do when your questions are closed

My 2 questions were closed. Just closed. I disagree with simply closing because I'm ready to edit my question until it is accepted. If I would not do this I would agree with closure. Just closing someone's question is the simplest operation in the world, but explaining and helping a person to improve his question is cumbersome. So, some people do the easy stuff.    My recommendation to not allow people to close a question unless they make an effort to help. When help is given, but a person who asked a question has no response to it, I think then it's quite fair to be closed.    When a question is open and is improved, then many newbies can benefit from the answer posted. When it's simply closed, that is only garbage in the forum.    Let's help each other, my friends!


How to install ubuntu 14.04 along side windows 8.1 using doss partition

I have been using Ubuntu since a long time. I used to dual-boot it with Windows XP, which was very easy to set up via Wubi.   Now, with Windows 8.1,  I'm unable to install on DOSS partitions. How can I set up the dual-boot?


Show that a proper ideal I of a ring is equal to its own radical if and only it is an intersection of prime ideals

From the right side to the left side: Assume a proper idea of a ring is the intersection of prime ideals, then for r$\in$ rad I, there exists n' such that $r^{n'}\in I$ thus for each prime ideal p, $p|r^{n'}$ thus $p|r$. Therefore r is still in I. Therefore I=rad I. But for another direction, I am not sure how to prove.


TeX error: "Error occurred after last TeX file closed" How to fix this with emacs?

I have recently started to use Emacs editor to type latex documents. For a while everything was going smooth and fine but one good day I got this annoying error message while compiling my document. It says there is some error and tells to use key combo C-c'   to view the error. But when I do so, the message "Error occurred after last TeX file closed" keeps appearing. It doesn't show the actual error. What should I do to get the proper error message?


The question is vague, and I apologize for that. I don't know how to make the dot that has the transform tools, appear in the middle of the mesh like it is supposed to be. I would appreciate some assistance with this.  the dot with the arrows below the object


Someone mentioned it in the IRC as the slicing problem.


Two sorcerers duel whose willpower increases with distance

This is a short story I read more than 20 years ago, but I don't recall at all where.  It opens with a pair of sorcerers (with innate, mental-based powers like telekinesis) competing.  One pulls down some rocks from space at the other, and the target just barely manages to deflect them.  It is revealed that their mental powers are stronger the farther away they are exerted.  Thus it's easier to yank rocks out of space hundreds of kilometres away than it is to deflect them just a few kilometres away.  The two aren't really friends, but there's a certain amount of respect and camaraderie between them; they may be the two most powerful in the world, and it's basically by competing that they stave off boredom.  Somehow the idea comes up that if they are so powerful at short range, they would be vastly more powerful at huge range.  Each of them wraps the other in a shell of protection and then starts pushing the other away.  If I'm remembering correctly, by the time each had reached the opposite end of the field they were in they were able to levitate the other.  And they kept pushing.  Fast forward years (I'm probably missing bits of the story here) and they are (literally) light years apart; each is able to accelerate the other with immense power and still keep the other protected from the effects.  Their  is huge, and time is flitting by on the world they left behind.  (This question was inspired by  about two connected people moving apart.)


How to open the terminal from a folder by function key press?

As the title says I want to open the terminal from the folder itself.  For ex:- If I am in folder "A" and I press f12(function key 12) the terminal should open up IN the folder "A".


GeoServer doesn't recognize imagery in GeoPackage

I'm currently trying to upload a GeoPackage containing raster images to a GeoServer (v2.13) instance with the GeoPackage extension. The file contains ~425 layers but after I add the file to the server's data directory and attempt to add it to the data stores (GeoPackage Mosaic), I get a vague error message:   Could not list layers for this store, an error occurred retrieving them: null  I'm wondering if this is an existing error somewhere but I can't seem to find anything current in the GitHub repo issues or elsewhere on the net. The images are perfectly in QGIS 3 and in Python.  See the screenshot below (ignore the locale setting weirdness):


Retrieving Windows files with USB adapter; Linux install wiped out Windows

So long story short, I was told by other members on this forum that I completely wiped out windows while installing ubuntu, on my computer. Now, I would like to retrive as many windows files/docs/photos as possible. One of the options suggested was to use a USB to harddrive adapter. I removed my harddrive and hooked it up to an adapter I got from Amazon. Can someone please tell me where do I go from here? How do I use the adapter to retrive as many windows files as possible? ( I have a second laptop that has windows and Linux on it. It will be used to conduct the rescue mission ) Thank you


Why does my transparent PNG not look good?

I want to convert a JPG to transparent and using GIMP I added alpha layers and transparency same way I make a GIF transparent I converted it to PNG but it doesn't display well when I load it on my template:    The original image is  Why doesn't it look good when it's made into a transparent PNG? Could I have better luck making a transparent GIF? OR is it the blue colors that don't mix well with the black and I could have more luck using some of the other logos:    Thanks


Why $x<\tan{x}$ while $0<x<\frac{\pi}{2}$?

In proof of $\displaystyle\lim_{x\rightarrow0}\frac{\sin{x}}{x}=1$ is assumed that $\sin{x}\leq{x}\leq\tan{x}$ while $0<x<\frac{\pi}{2}$. First comparison is clear, arc length must be greater than sine value, but how about $x\leq\tan{x}$, why tangent is longer than arc?


how to "shrinkwrap" this wrap to a cylinder

Im making a katana, and modelling the wrap that goes around it. I finally got the shape down but i cant use shrinkwrap to shrinkwrap it to a cylinder because it comes out weird like this    Extruding wont help, heres what it looks like before:   one half of the mesh is supposed to be on top of the other, and when i shrinkwrap it, it turns the shape into a cylinder type and takes away the overlap. I can't use the curve modifier because it messes it up too.   As shown from top view:


XML Schema: Element that can contain elements or text?

How would I define an element that can either contain plain text or contain elements? Say I wanted to somehow allow for both of these cases:  <xs:element name="field">     <xs:complexType>         <xs:sequence>             <xs:element ref="subfield" minOccurs="0" maxOccurs="unbounded" />         </xs:sequence>         <xs:attribute name="name" type="xs:string" />     </xs:complexType> </xs:element>  <xs:element name="field" type="xs:string" />   ... so that both these elements would be valid:  <field name="test_field_0">     <subfield>Some text.</subfield> </field>  <field name="test_field_1">Some more text.</field>


how to remove all but top 10 records from database sql server 2012?

Of course I know I can issue delete statement for each table in DB but my question is  there any trick to do this automatically with one statement or not really. I have  large amount of data and for testing purposes I need a shrunk version os DB. top 10 records only will be fine.


Can't watch youtube videos with chromium on ubuntu 13.04 64-bit

I've digged all over google but I can't find any solution to my problem.   Firefox works pretty well. I have this issue only with chromium and only with youtube. I have no problem watching videos at any other site with chromium.   When I try to watch a video a black screen occurs and after a while it gives me the warning "an error occurred". Weirdly, sometimes when I try a couple of refreshing it starts to play but then the issue occurs again.  I tried removing-reinstalling chromium or the flash plugin but it did not do any good.


problem using option fleqn in amsmath package

I'm using the following code. What should I do if I don't want the fixed indent from the left margin of my page?   \documentclass[fleqn,oneside]{article} \usepackage{amsmath} .... \begin{align} a_1& =b_1+c_1\\ a_2& =b_2+c_2-d_2+e_2 \end{align}


Where can I find the Stack Overflow Markdown editor?

Where can I find / download the source code that is used for the Markdown editor used by Stack Overflow? This is what it looks like:


Can you float a div in the lower right of its parent div and have text wrap around it?

I would think this would be a common issue, but my search for a solution leads me to believe it may not be possible. I simply want to place a div in the lower right corner of its parent div, yet have the text in the parent div flow around it.   Although I've found many posts addressing this question, I have not found one that appears to work. Most of these posts were several years old, which gives me a sliver of hope that there may be a way to do it after all with HTML 5?  I should have mentioned that this is in pursuit of a responsive design, so a static solution will not work.   Here's what I'm attempting to do:   I have a background image in the lower right of the div. I would like the text within this div to not flow across the image, but around it instead.  I thought I'd be able to place an empty div (represented by the purple rectangle in the referenced page) in the lower corner to prevent text from flowing across the background image, but I can't seem to find a way to accomplish this.


How to detect a player holding a certain block in Minecraft Bedrock

I'm making a "Spectator Machine" and I need help with detecting if a player is holding a redstone block to return back to their original spot, Im in Minecraft Bedrock and I still don't know if I should use /testfor or /execute and I don't know which one works.


How to get from Delhi to Kathmandu overland?

I am going to Nepal and probably, same as everyone, through Delhi. I was considering going overland from Delhi to Kathmandu, however I have found many posts that advise against it in favor of a flight. The following concerns are the key to the proper decision, I think.  Does the overland route offer a good scenery and cultural experience or is it  better to spend that time in Nepal?  What is the rough cost of an overland journey and how does it compare with a flight?  In case of a flight, is the Indian visa necessary?


I am trying to create a table in views. My main problem is that I want to have a image in the label                       "CONTENT"     so far I've managed to add a space to the field and a custom class to it, and I've added background image to that field. It works but is not the best implementation. Can you point me in the right direction or it can not be done?  Thank you and keep up the good work. (i'm new to drupal but I know php css html javascript, mainly I've made small sites with custom cms and I'm moving go drupal)


$\beta +$ decay is where a proton gets turned into a neutron and a positron and a neutrino.  However, a neutron is heavier than a proton, so obviously this reaction is endothermic. So then, why does it happen? I've seen an explanation here in the question    It describes that the final binding energy of the nucleus increases, thus making it possible by becoming more stable. But what actually causes the reaction to go in the first place? It's like saying this ball will go down the hill because it will lose energy - what gives it the nudge required? Is it something like energy from external gamma rays or something?


The figure (p201.png) is on my desktop and I did simply as follows:  \documentclass{article} \usepackage{graphicx} \graphicspath{/Users/prinelo/Desktop} \begin{document}     content...     \includegraphics[width=0.5\textwidth]{p201.png} \end{document}   What have I done wrong?


Show that if $r \in \mathbb{Q}$ is such that $\phi(r)=r$, than $\phi$ is the classic affine function.

Let $\phi : \mathbb{R} \to \mathbb{R}$ a continuous function. Show that for all $r \in \mathbb{Q}$, if $r$ is such that $\phi(r)=r$, than $\phi$ is the classic affine function.  This is a personnel question, I am not able to answer. Any helps?


killing background processes when script exists

I have scriptA which will execute another script which will startup in the background. Now I need to make sure that when I kill scriptA (cmd+c) that the background processes are also killed.   #!/bin/bash echo "This script is about to run another script."   sh ../processes/processb/bin/startserver.sh &  FOO_PID=$!  echo "This script has just run another script." $FOO_PID   This script executes fine, but once I press cmd+c and do a 'ps' command on FOO_PID value , that process still exists. What am I doing wrong?  UPDATE-----------  So I tried out below code, but still scriptC's process is not getting killed. I think it just only terminates scriptA ( parent) when pressed ctrl+c and therefore trap command does not get executed?       #!/bin/bash  echo "This script is about to run another script."     ../common/samples/bin/scriptC.sh &  mypid=$! kill -0 "$mypid" && echo "My process is still alive."  echo "This script has just run another script." $mypid  trap "kill $mypid && kill $$" INT


apt-get update meaning of 1st. column of output

Can anyone tell me the meaning of the words Ign, Hit and Get in the first column of the output from apt-get update?


Date format to dd/mm/yyyy in a single object

I know that date format "dd/mm/yyyy" can be achieved like this:  var d = new Date(); var day = d.getDate(); var month = (d.getMonth() +1); var year = d.getFullYear();  document.write("Today is " +day+ "/" +month+ "/" +year+ "<br>");   Date picker   var x = new Date(document.getElementById("dateSelection"));   However how can I convert those to a single date object so I can then compare it against date picker in a simple statement like this:  if (d > x) {    document.write("Date from the past"); } else if (d < x) {    document.write("Date from the future"); } else {    document.write("Date equals today's date"); }   Thanks for help I'm novice at this.


Is there a command line way to change text in the file? Like say I would like to change all strings "lukuunottamatta" to the form "lukuun ottamatta" and "Lukuunottamatta" to the form "Lukuun ottamatta".


What is a word for someone who uses a word excessively in conversation? For example, using the same swear word in every sentence.


Why are only some questions highlighted?

When I am visiting , I see only some questions as highlighted. Why so?  "Ruby on rails" is added in my favorite tag list. So it should highlight all the questions..  A preview (see full image ):


Can a photon transmit a momentum to a neutron?

Is a photon able to transfer an impulse to a neutron or, and this is the same, can light accelerate a neutron?


What is the best way to generate a GUID/UUID from Apex code (such as a trigger)? Preferably in the following format:     nnnnnnnn-nnnn-nnnn-nnnnnnnnnnnnnnnnn   Example:     13219ec0-3a81-44c5-a300-de14b7d0235f


Transforming an equation to the co-vector version

Ok, this question is more a result of my lack of knowledge of how to manipulate equations involving index notation rather than about physics...  I have the geodesic equation with $U^\lambda\equiv\dot{x}^\lambda$:-  $$ \dot{U^\lambda} + \Gamma^\lambda_{\mu\nu} U^\mu U^\nu $$  And I want to transform to the co-vector $U_\mu=g_{\mu\lambda}U^\lambda$.  Can I simply multiply each vector by $g_{\mu\nu}$? Like so:-  $$ g_{\mu\lambda}\dot{U^\lambda} + \Gamma^\lambda_{\mu\nu}g_{\mu\alpha}U^\alpha g_{\nu\beta}U^\beta $$  Or do I need to use $g^{\sigma\nu}g_{\nu\mu} = \delta^\sigma_\mu$ to rewrite $U_\mu=g_{\mu\lambda}U^\lambda$ and then sub it in?  Edit: Here's my attempt at the sub in method  So using $g^{\lambda\mu}g_{\mu\lambda} = \delta^\lambda_\lambda$ to rewrite $U_\mu=g_{\mu\lambda}U^\lambda$ as $U^\lambda=g^{\lambda\mu}U_\mu$. (Is this even correct?). Then differentiate:- $$ \dot{U}^\lambda=\dot{g}^{\lambda\mu}U_\mu +  g^{\lambda\mu}\dot{U}_\mu $$ Can I assume that the differential of the metric wrt time is going to be zero? Obivously this is not going to be true in general since massive bodies move! But generally in simple problems would this be taken as true?


How does greatest common divisor effected by field extension

Let $p(x)\in K[x]$ and $q(x)\in K[x]$, $F$ is an extension of field $K$. Will $gcd(p(x),q(x))$ over $K[x]$ equal to $gcd(p(x),q(x))$ over $F$.  My guess is yes. I couldn't find an elegant way to prove it.


I was going to install an app to my device from Google Play on my desktop, when I noticed a "No carrier Samsung GT-N7000" in my device list:    (the Nexus 7 is mine)  Apparently this device is the original Galaxy Note. I've never even seen one of these devices, and there shouldn't be one registered on my account. It doesn't show on Android Device Manager.  Is someone else on my Play Store account, downloading apps/media on my credit card? I use 2FA, so I'm worried about how that could have happened. Is there anything I can do to find out more about this device?


I have been in a deep confusion for about a month over the topic of limits! According to our book, the limit at $a$ is the value being approached by a function $f(x)$ as $x$ approaches $a$.  I have a doubt that in real number line we can never ever reach the closest value to $a$ because always a more closer value will exist.  Now when talking about our methods for calculating limit, what method comes in our mind when we have to calculate where the value approaches? Let's say we have to find what value $f(x)$ approaches when $x$ moves from $[0,a)$.  So we calculate the value of $f(x)$ at $x=0$, say $4$, and then at $x\to a$.   But the problem is that we don't know the value $x\to a$, so we say the value is $a-h$ where $h\to 0$ and calculate the value of $f(a-h)$, say $5-h$.  Now here is where my doubt starts! In the final step we put the value of $h=0$ say in that it is an infinitesimal quantity.  My doubt is that $h$ was tending to $0$ means that it was never equal to zero  maybe it is infinitesimally small, not a stationary value, not an imaginable value, but we know for sure that it is not  equal to $0$. Maybe it is the point closest to zero, but it is not equal to zero and when we use the result $5-h=5$ we are actually making an error which is tending to zero. Maybe the error is very small, but still, there is some error in that we cannot calculate it but we can see that there is this infinitesimal error present.  That means we don't get the exact limiting value or last value of $f(x)$.  $x$ belongs to $[0,a)$ but a value approximate to infinitesimal? Isn't it right! We get an approximated value?


Disk Partition is disabled for newly format disk

I am using macOS High Sierra.  I erased my 1 TB disk using disk utility to using Mac OS Extended (Journaled) file system.  I want to perform partition on my disk and want to split into two parts, i.e. 500 GB both.  But I am unable to do it as partition symbol is disabled in disk utility.    Any help would be appreciated. Thank you.


I'm new with LaTeX and Tikz.  I would like to include a picture on my document by positionning its north west corner on the north west corner of my page.  \begin{tikzpicture}[remember picture, overlay]     \begin{scope}[shift={(current page.north west)}]         \draw (0,0) node {\includegraphics[scale=.07]{./figures/logo.jpg}};         \end{scope} \end{tikzpicture}   I wrote this but it includes the center of my picture on the coordonate (0,0). I don't know what I have to add to have what I would like to have.  How can I do that, please ?


Created shared library with below file  example.cpp #include <iostream> template <typename T> T  Max (T & a, T & b)  {      return a < b ? b:a;  }    I was trying to use above library in my code  test.cpp #include <stdio.h> #include <iostream> using namespace std;  template int  Max <int> (int & a, int & b); template double  Max <double> (double & a, double & b);  int main () {     int i = 39;     int j = 20;     cout << "Max(i, j): " << Max(i, j) << endl;      double f1 = 13.5;      double f2 = 20.7;      cout << "Max(f1, f2): " << Max(f1, f2) << endl;      return 0; }   when I compiled above code ,getting the following error  test.cpp:4: error: explicit instantiation of non-template ‘int Max’ test.cpp:4: error: expected ‘;’ before ‘<’ token test.cpp:5: error: explicit instantiation of non-template ‘double Max’ test.cpp:5: error: expected ‘;’ before ‘<’ token test.cpp: In function ‘int main()’: test.cpp:11: error: ‘Max’ was not declared in this scope*


Why do staff/students take the Hogwarts Express?

Is there any particular reason why everyone (or at least most people) use the Hogwarts Express to travel to the school?  It seems as though using portkeys or the flu network would be faster and more direct.  While portkeys can be tampered with (as shown in Goblet of Fire), trains could be attacked, have maintenance problems, or be derailed, so they are not infallible either.


public class ActivateServiceResources {    list<user> lstuser = [Select id,IsActive from user where IsActive = True];   list<ServiceResource> lstservice = [select id,RelatedRecordid,Isactive from serviceresource where RelatedRecordid IN:lstuser];  list<serviceresource> SRlist = new list<serviceresource>();  for (serviceresource SR:lstservice)     {         if (SR.Isactive != True)             {                 SR.Isactive = True;                 SRlist.add(SR);             }     }  update SRlist;  }


what is a word for sacrificing or giving up something as an act of remorse?

I am seeking potential options for words that can be used to sacrifices that we make as an act of remorse.   For e.g :   i. Giving up game night/TV on account of securing less marks in the last exams  ii. Sacrificing your favorite toy because you hurt your friend


How does controlling for variables work in multiple regression?

My question is not about statistical programming. We know how to code the software in a regression with many independent variables. My question is about how the computer software controls for all variables at the same time mathematically.  Simple correlation of two variables is easy to understand, as each variable has the other one's full attention. In multiple regression, however, multiple independent variables are "looking at" the dependent variable at the same time, and each one looks to "subtract out" or explain the variation, but they can't all be in operation with the dependent variable at the same time. If a single given independent variable is given priority to be the first to interact with the dependent variable, and it "takes away" its share of the dependent variable, then what it takes away won't be rightfully eligible to be explained by other independent variables, as it justly should.   My intuitive sense of what happens must be mistaken, and I need an answer that does not involve formulas. The challenge for the teaching profession is how to explain complex ideas narratively or metaphorically for analysts that don't have a fast, intuitive sense for symbolic explanation.  A related question is this: is the process iterative in that initial approximations (of betas) are made, and they incrementally adjusted as each of the other independent variables add more information to the initial beta estimates?


multi-hop tunnel in the background; killing local tunnel does not kill remote tunnel

Multi-hop tunnel:  I am opening a tunnel to a remote server via a jump server.  ssh ${JUMP_HOST} -l ${JUMP_HOST_USER} -L ${PORT}:localhost:${PORT} \     ssh ${REMOTE_HOST} -l ${REMOTE_HOST_USER} -L ${PORT}:localhost:${PORT}   Now when I open a connection to localhost:port it will forward to  jump:port which in turn will forward to remote:port  Run local tunnel in background:  The problem with this is that it opens a shell on remote, whereas I just want the tunnel to run in the background.  So I add the -f option to my local tunnel to request it run in the background  ssh -f ${JUMP_HOST} -l ${JUMP_HOST_USER} -L ${PORT}:localhost:${PORT} \     ssh ${REMOTE_HOST} -l ${REMOTE_HOST_USER} -L ${PORT}:localhost:${PORT}   This, however, returns an error:  Pseudo-terminal will not be allocated because stdin is not a terminal.   Presumably this error is coming from the tunnel from jump to remote, and is caused because stdin is closed when my local tunnel is daemonized.  Tell remote tunnel I won't be running a command:  I then tried running the jump-> remote tunnel with -N to tell it I'm not going to be running a remote command.  ssh -f ${JUMP_HOST} -l ${JUMP_HOST_USER} -L ${PORT}:localhost:${PORT} \     ssh -N ${REMOTE_HOST} -l ${REMOTE_HOST_USER} -L ${PORT}:localhost:${PORT}   This works great - the tunnel runs in the background and I can connect successfully to remote:port by connecting to localhost:port.  Problem:  The problem I'm having is when I want to close the tunnels.  If I send a kill signal to my local ssh tunnel's pid, it will close, but the ssh tunnel running on jump remains running.  It seems that when I daemonize my local tunnel, the tunnel on jump is also daemonized.  Question:  Is it possible to run my local tunnel in the background, but when I kill it, have it shut down all the tunnels it has spawned on all remote servers?


Google earth installation in Ubuntu 13.10 fail

I followed the instructions found in this site with no success. Here is the terminal window:  pierpaolo1942@ubuntuhome:~$ wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb --2013-10-28 15:36:10--  http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb Resolving dl.google.com (dl.google.com)... 2607:f8b0:4003:c02::88, 74.125.227.226, 74.125.227.238, ... Connecting to dl.google.com (dl.google.com)|2607:f8b0:4003:c02::88|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 45541972 (43M) [application/x-debian-package] Saving to: ‘google-earth-stable_current_i386.deb’  100%[=============================================================================================>] 45,541,972   657KB/s   in 77s      2013-10-28 15:37:27 (575 KB/s) - ‘google-earth-stable_current_i386.deb’ saved [45541972/45541972]  pierpaolo1942@ubuntuhome:~$ sudo dpkg -i google-earth-stable*.deb [sudo] password for pierpaolo1942:  Selecting previously unselected package google-earth-stable. (Reading database ... 338485 files and directories currently installed.) Unpacking google-earth-stable (from google-earth-stable_current_i386.deb) ... Setting up google-earth-stable (7.1.1.1888-r0) ... Processing triggers for man-db ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Processing triggers for mime-support ... pierpaolo1942@ubuntuhome:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   printer-driver-hpijs Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. pierpaolo1942@ubuntuhome:~$    Thank for your time.


Can't install any packages on Natty Server

Can't install upgrade or update any...  E: Some index files failed to download. They have been ignored, or old ones used instead.   --   E: Unable to locate package


Automatic boot when charging without root / fastboot

I have a Samsung Galaxy Folder 2 and trying to have it boot when the charging cable plugs in. The phone is not rooted (and probably not going to) and doesn't have fastboot (instead it has ODIN mode). Is there anyway to make it happen or rooting it is the only way? Thanks,


Just doing this for revision, seems much harder than it should be, should I use $x=\tan u$ ? Any help appreciated.


continuity of $f(x,y)$ in $\mathbb R^2$.

I have to prove that the function given below is continuous in $\mathbb R^2$:  $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$$f(x,y)$= \begin{cases}  e^{-\text(\frac{1}{|x-y|})} & \text{if $x\neq y$} \\ 0 & \text{if $x=y$} \end{cases}   I have just started learning continuity in two/more dimensions ,so please help how to prove that the function is continuous on any path I take in 2 dimensions...


GeoServer cutting off symbols close to tile edges?

When I use specific icons for point display using GeoServer, several icons are cropped automatically. This is may be because of tile size or else.   How can I resolve this?


Cannot execute QT console program in ubuntu

An error occurred.   Starting /media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test... Cannot execute '/media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test':  Permission denied /media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test exited with code -1   below is the mount information  /dev/sdc5 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/cgroup type tmpfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) none on /sys/fs/pstore type pstore (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=milo)   Can any1 tell me what's wrong? Thanks


I have following code snippet:  ...     <iframe id="srCashOverviewDashboard" class="srCashOverviewDashboard" width="100%" height="1000px" frameborder="0" name="srCashOverviewDashboard" scrolling="no" rdiframeadditionalscrollheightadded="" rdiframeadditionalscrollwidthadded="" onload=" iframeResize(this)" rdiframefixedwidth="True" data-hiddensource="rdPage.aspx?rdReport=Dashboard.CashLevel1&rdRequestCache=3707323034&rdSubReport=True&rdResizeFrame=True" src="rdPage.aspx?rdReport=Dashboard.CashLevel1&rdRequestCache=3707323034&rdSubReport=True&rdResizeFrame=True" style="overflow: hidden; width: 100%; height: 1000px;">   <!DOCTYPE html>

       <form id="yui_3_1_1454057078100_107" method="POST" name="rdForm">         <input id="rdCSRFKey1" type="hidden" value="cb35ed6b-fbd0-4f81-947f-db1b4e3a8531" name="rdCSRFKey">

         ...
   I want to add style for this rdMainBody. There are more specific #rdMainBody ID's on my webpage but I only want to add style to this one.  Everything from ID's and classes are auto generated, except the iframe, it contains an ID srCashOverviewDashboardand a class srCashOverviewDashboard.  So I was trying to add something in my css file like .srCashOverviewDashboard #rdMainbody or #srCashOverviewDashboard #rdMainbody  But this doesn't seem to work, do I do something wrong or do I need to do something else?  Greetings


Does optical fiber preserve the angles of incoming light?

I am reading up on optical fibers and there's one thing I haven't understood yet:   Does an optical fiber preserve the angles of incoming light?    For example, if we light two LEDs in front of an optical fiber (within its acceptance cone) and hold the other end of the fiber in front of a paper, would we see two separate light dots on the paper (because the angles of the incoming light were preserved), or just one (because the angles were messed up...)?  (Another way of posing this question: What would I see if I looked into the end of an optical fiber – would I see what's in front (within the acceptance cone) of the other end of the fiber or just a blurry dot? - disregarding I would need extremely good eyesight etc...)


Posting questions on different Stack Exchange sites

I asked a question on  and after not getting an answer for two days I asked the same question on . There I got an answer immediately. Should I now delete my first question, or should I copy the answer back?


I would like to resize ext4 partition in order to make place for windows storage. Unfortunately I can't resize it - gparted will not allow me to do that:    How to solve this problem?


Let $R=\prod_{n\in\mathbb{N}}\mathbb{Z}$ and $M$ be $R$ regarded as $R$-module is usual way.     Then the submodule $N=\bigoplus_{n\in\mathbb{N}}\mathbb{Z}$ is not finitely generated   Hint: for every $n\in\mathbb{N}$, $e_n=(0,…,0,1,0,…)\in N$ (the $1$ is on the $n-$th position).  Please help me to prove this result. Thanks in advance


This website states that the equivalent statement to if A then B is if NOT B then NOT A  This doesn't make sense.  I also am a bit confused about the truth table for an if then statement, as I have different answers from different websites.  UofT's website says in their "introduction to logic video" states that if A then B is impossible to answer if A is false.  But another website states this is false in their truth table:    Please ignore the second table, only look at the first  The truth tables are exactly the same for both statements.  But I do not understand the logic in the equivalent statement at all.


When I use numbers, when should I spell the word as opposed to just using the number?

I've just read this in a review:     Thankfully, the energy efficient Qualcomm chip helped the handset   reach a best-ever score of 17 hours and 30 minutes in our continuous   video rundown test. Compared to the outgoing model, which lasted ten   hours 43 minutes in the same test   The first part uses 17 hours while the second part uses ten hours.  Which is correct? What are the rules to determine when which should be used?


Is it possible to get the history of commands run with "at"?

I think the title says it. I would like to retrieve the history of commands run a few days ago with at to double check some error we got on an import process.


Possible to use draws from two distributions to get draw from distribution with density their product?

Suppose I have a set of draws from a distribution with density $f$ and a set of draws from a distribution with density $g$, where $f$ and $g$ are unknown. Is there some way to use these use these draws to get a (perhaps smaller) set of draws whose pdf is proportional to the product of the pdfs of these two distributions?   I know it will be possible to get draws with approximately this distribution by kernel smoothing to estimate the two pdfs, but i was wondering if there was a way of getting draws with exactly the correct distribution.


What kind of blood do they use in movies for bloody scenes?

I always wondered what kind of blood is used in movies. I thought it could be from animals or color or least possibly human blood which I am sure will not be legal. I ask because in a lot of movies actors spit blood from their mouths. If it is blood, then how do they do it?


Suppose $\lim \limits_{n \to ∞} a_n=L$. Prove that $\lim\limits_{n \to ∞} \frac{a_1+a_2+\cdots+a_n}{n}=L$

I haven't been able to solve this by using the definition of limit. I think maybe trying induction will work, though. Can someone help?  Suppose $\lim \limits_{n \to ∞} a_n=L$. Prove that $\lim\limits_{n \to ∞} \dfrac{a_1+a_2+\cdots+a_n}{n}=L$


How to compare two column of two file and print not matching pattern with awk

I have a data file A.tsv (field separator = \t) : id  clade   mutation 243 40A siti,toto,mumu 254      267 40B lala,sisi,sojo  and a template file B.tsv (field separator = \t) : 40A toto,xixi,saxa 40B lala,sojo,huhu 40C sasa,sisi,lala  Based on their common column (clade), I want to compare the mutation of A.tsv from the template B.tsv. I have two questions:  How to indicate in a new column named "missing_mutation" the name of the mutation in B.tsv that aren't present in A.tsv. How to indicate in a new column named "remaining_mutation" the name of the mutation that are present in A.tsv (and that start with the letter s, case-insensitive) but not present in B.tsv.  C.tsv looks like this: id  clade   mutation    missing_mutation    remaining_mutation 243 40A siti,toto,mumu  xixi,saxa   siti 254      267 40B lala,sisi,sojo  huhu    sisi  I know how to compare two files like this: awk -F"," -vOFS="," '         NR==FNR {      a[$2]=$3;      next     }          { print $0,a[$2] } ' B.tsv A.tsv > C.tsv  but I don't know how to print those who don't match. Do you have an idea?


How can a rotating cylinder produce lift?

In the air, the velocity and angular momentum that causes a force against gravity is lift. How can a rotating cylinder make lift with angular momentum?


Exercise problem. I do not need a full solution because I am trying to solve myself. Just a hint would be great. Let $f$ be a polynomial with real coefficients. How to show that $f(z) = f(i)$ for every complex $z$?


I don't know where to start with this one:  Let $f(z)=\sum_{n=0}^{\infty}{a_nz^n}$ be a series with radius of convergence $1$. a) Prove that $\frac{1}{2\pi}\int_0^{2\pi}{|f(re^{i\theta})|^2}d\theta=\sum_{n=0}^{\infty}{|a_n|^2r^{2n}}$ for all $0<r<1$.  If I plug the $f(z)$ expression into the integral, I have the square of a sum and I don't know if it's the easiest way to solve it. I'd appreciate any hint. Thanks for your time.


I'm looking for a tool that will allow me to create Windows shortcuts on a Unix (BSD) machine. Can anyone point me to one? Thanks in advance.


How can install FEniCS in my PC with ubuntu 18.04 O/S

I bough a brand new PC loaded with Ubuntu 18.04 O/S. Is FEniCS software in Ubuntu PPA?


Large difference between free space reported by disk utility and Apple

I tried deleting tm snapshots already. I had five of them. Three deleted and I cannot seem to delete the remaining two. Terminal tells me they are deleted, but I still see them when I list.


I came upon the following question:  A solid expands on heating because: a) the potential energy of interaction between atoms in the solid is asymmetric about the equilibrium positions of atoms; or b) the frequency of vibrations of atoms increases.  My attempt: I did not make a huge deal out of the question, and simply thought that it is due to the increase in frequency of vibrations, which now causes greater oscillations about the lattice points, which in turn increases the average volume occupied by atoms, leading to expansion. However the answer is a). Can someone explain, possibly using some model (like the spring-particle model of the lattice), why this is so, and why b) is NOT a cause of expansion?


Are there any mammals whose males can feed with milk?

Are there any mammals whose males can feed the offsprings with milk from the breasts?


Why does it seem like a broken magnet's poles flip?

I just took a rare earth magnet out of an old hard drive. Lacking an appropriate screwdriver, force was used, and the magnet broke into two pieces; one about a quarter of the original size and one about 3/4 the original size.  Let's say this is the magnet:  >>>>>>>>   and the arrows are pointing north, in the original magnet.  It broke into two pieces:  >>>>>}   }>   (where } represents the rough edge of the break).  I'd expect that the two magnets would keep their relative directions, so that the magnets would fit back together at the break, like this:  >>>>>}}>   But instead, the broken edges repel, and the magnet wants to come together so that formerly "north-facing" sides are now connected, like so:  >>>>>}<{   The obvious deduction here is that one of the pieces flipped polarities when the magnet was broken. I don't understand why this would be the case.  So why did one of the pieces flip polarities?  EDIT: To clarify, the actual magnet is a 120-degree arc of a circle. Thus, it's obvious what the original orientation of the pieces were. This isn't simply a case of me getting the pieces flipped over relative to each other.


I'm running a 3.5 campaign for a large group (8 players, I must be crazy), none of which have every played before, and several of which are quite young (ages 13-17).  I've got some ideas for changing up the set up to make it flow faster (mentioning who is "on deck," etc.), but I was wondering if there were any good rule changes / adjustments for 3.5 that would speed up combat and just generally make the game flow faster.


A polynomial is zero if it zero on infinite subsets

Let $f(t_1, ... , t_n)$ be a polynomial over a field $F$. Suppose there exist infinite subsets $X_1, ... , X_n$ of $F$ such that $f(x_1, ... , x_n) = 0$ for all $(x_1, ... , x_n) ∈ X_1× \cdots ×X_n$. Prove that $f$ is the zero polynomial.   Not sure how to start on this one!


How to make object appear in certain frame (scripting)?

Im learning how to use scripting in blender. I would like to know how could I make a certain object to appear only in a certain frame. I have been searching this for a long time and I still can´t manage to do it... Initially I have two primitive_cubes moving around. At the frame x, a third cube starts to move. The problem is, the third cube is all the time visible, and I want him to appear only in the frame he starts moving...


Does adding two linear equations will result in a line which will pass through an intersection of the linear equations?

I was wondering why it is almost impossible to find a geometrical explanation of why adding two linear equations helps us to find a solution of a system of linear equations? Am I right that adding two linear equations will result in an equation of a line which will pass through a point where two linear equations intersect?  If it is right then I completely don't understand why such a crucial point in understanding how to solve systems of equations is never properly taught even at a university level.


It's the first time I'm using Tikz on Latex. I have to draw this block diagram (this is a low resolution snip from a paper)   In Tikz I have done this:   That is very similar but I need some adjustments, like the u_i arrow and the node sum after the H(s) block.  Is there anybody that can help me with this?  my code:      \tikzstyle{block} = [draw, fill=white, rectangle,  minimum height=2em, minimum width=3em] \tikzstyle{sum} = [draw, fill=white, circle, radius=1mm, node distance=1.5cm] \tikzstyle{input} = [coordinate] \tikzstyle{output} = [coordinate] \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]  \begin{tikzpicture}[auto, node distance=2cm,>=latex'] \node [input, name=input] {}; \node [input, above of=input](input1) {}; \node [sum, right of=input] (sum) {}; \node [block, right of=sum] (controller) {$K(s)$}; \node [sum, right of=controller] (sum1) {}; \node [block, right of=sum1] (filterinv) {$H^{-1}(s)$}; \node [block, right of=filterinv] (system) {$G(s)$}; \node [output, right of=system] (output) {}; \node [output, above of=output] (output1) {}; \node [block, below of=filterinv] (filter) {$H(s)$}; \node [block, above of=controller] (delay) {$D(s)$}; \node [sum, below of=sum1] (sum2) {};  \draw [->] (filterinv) -- node[name=u] {$u_{i}$} (system); \draw [draw,->] (input) -- node {$s_{i-1}$} (sum); \draw [->] (sum) -- node {$e_{i}$} (controller); \draw [->] (system) -- node [name=q] {$q_{i}$}(output); \draw [->] (q) |- (filter); \draw [->] (filter) -- node {} (sum2); \draw [->] (controller) -- node {} (sum1); \draw [->] (sum1) -- node[name=xi] {$\xi_{i}$} (filterinv); \node [input, below of=sum1](input2) {}; \draw [draw,->] (input2) -- node {$r_{i}$} (sum2); \draw [->] (sum2) -| node[pos=0.99] {$-$}      node [near end] {$\tilde{s}_i$} (sum); \draw [->] (delay) -| node[] {}      node [near end] {} (sum1); \draw [draw,->] (input1) -- node[pos=0.15] {$u_{i-1}$} (delay); \draw [->] (u) |- node[pos=0.99] {$u_i$}      node [near end] {} (output1);  \end{tikzpicture}


I can't save changes after editing   sudo vi /etc/network/interfaces   Text before editing:    auto lo iface lo inet ...   Edited to:  auto eth0 iface eth0 inet dhcp   What key combination or sequence must I press to save this?


I've organised unofficial SOru event several month ago: . I've wanted to print SOru logo on T-shirts and give them to members, but CM told me that SO is against it. We periodically receive questions on our meta about SE merchandise. (e.g. ). Our 100k user still  (almost a year passed).    People, at least, want to print SE logo by themself.  So:   Can members print the SE logo by themself? If yes, could you provide high-resolution images?


Does the series $\sum \limits_{n=2}^{\infty }\frac{n^{\log n}}{(\log n)^{n}}$ converge?

I'm trying  to find out now whether the series $\sum_{n=2}^{\infty } a_{n}$ converges or not when $$a_n = \frac{n^{\log n}}{(\log n)^{n}}$$  Again, I tried d'Alembert $\frac{a_{n+1}}{a_{n}}$,   Cauchy condensation test $\sum \limits_{n=2}^{\infty } 2^{n}a_{2^n}$, and they both didn't work for me.  I can't use Stirling, nor the integral test.  Edit: I'm searching for a solution which uses sequences theorems and doesn't involve functions.    Thank you