Cardinality of a set of non-continuous functions

I have to find the cardinality of the set of the non-continuous functions $f:\mathbb{R}\rightarrow\mathbb{R}$.  I think we should look for function that at least have a point of discontinuity, but i don't have a clue, really. Any hint?


How to set per process swapiness for linux?

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn't prevent a program from being swapped out. And like nice, the user by default can't make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.


c# what is the best way to save configuration data in c# application.

what is the best way to save configuration data in c# application? note that those data maybe changed dynamically. as i know, ConfigurationManager class can be used. but i heard that this is not good way to do that.


Work computer shows "This connection is not private" warning on almost all sites

My workplace allows me to use a Mac, but doesn't have much experience with them; their support is minimal if well intentioned, and generally as much harm as help. This includes installing antivirus software etc.   Recently, both Safari and Chrome have started showing the "This connection is not private" error with most off-site URLs. This is a recent change, and includes web sites I was able to access last week. I'm running MacOS 10.14.6 (18G87) with all updates.   This isn't a question of our IT deliberately blocking sites, as I can access them from my Windows computer (and in any case it includes sites that are clearly work-related).    In some cases, but not all, I'm able to bypass the warning by following the accepted answer for  (i.e. clicking through the "show details" buttons and entering my password), but this doesn't always work, and is pretty inconvenient besides.  I've also tried the other answers from that question, but these do not work. This is perhaps not surprising as that question refers to development work which involves self-generated SSL certificates, and my situation doesn't involve these.  I've also tried turning off antivirus software (insert scare quotes as you like), and that didn't help.   Note: When I look at the certificates on the problematic sites, I see the site's certificate but it's underneath a certificate issued by my workplace, and the browser shows my workplace's certificate as "Untrusted". I don't know how certificates work, but I'm guessing this is the problem and what I need to do is somehow make my browsers trust my workplace's certificates.   Any suggestions for working around this problem?


Why are z-values replaced with zero after in_memory use in Python?

My script takes separate 3D feature classes, calculates a field, appends to a target feature class, and then deletes the originals. This is a huge data processing task of over 4700 mass point feature classes appending to a single one. I know it was a big mistake to put so many feature classes into SDE, but given they're in there now, I've got to deal with them there (yes, the sheer fc count is bringing SDE performance to its knees--hence my urgency).  Early on it worked great, in that the merged result showed valid z-values. I was able to build a terrain and it looked great. I'd been running this in the background for weeks, and have just noticed z-values of 0 in the output, where the originals were not 0! Oh no!!! I'm certainly glad I still have the file-based originals!  Pseudocode:     An in_memory feature class is created from a z-aware template      For each fc in the feature dataset:            It is appended to the empty in_memory fc          The TILE_ID field is calculated using a portion of the name of the source fc           It is then appended to the target SDE fc          The in_memory feature class is emptied          Each processed fc is then deleted     When I initially posted, I was curious if it was my use of in_memory that caused this trouble. I had not initially been using it, and only switched to it because performance was far too slow otherwise, and WAY faster in_memory. To find where trouble started, I ran the Add XY Coordinates tool, which proved the trouble started with in_memory use. At that time I had also switched from CalculateField_management to da.UpdateCursor, so that's likely the bigger reason for the performance enhancement. I will now change my code to avoid in_memory.


In most geometry courses, we learn that there's no such thing as "SSA Congruence". That is, if we have triangles $ABC$ and $DEF$ such that $AB = DE$, $BC = EF$, and $\angle A = \angle D$, then we cannot deduce that $ABC$ and $DEF$ are congruent.  However, there are a few special cases in which SSA "works". That is, suppose $ABC$ is a triangle. Let $AB = x$, $BC = y$, and $\angle A = \theta$. For some values of $x$, $y$, and $\theta$, we can uniquely determine the third side, $AC$.  (a) Use the Law of Cosines to derive a quadratic equation in $AC$.  (b) Use the quadratic polynomial you found in part (a) in order to find conditions on $x, y,$ and $\theta$ which guarantee that the side $AC$ is uniquely determined.  I have solved part (a) and gotten $z^2-2xz\cos (\theta) + (x^2-y^2)=0$.  I don't quite get part (b). It is obvious $90^{\circ}$ is a solution but do I have to prove that this is right? Or do I need to prove that this is the only solution? Or is there other answers?  My work: All I know is that the discriminant would be $4x^2z^2\cos^2 \theta-4(-x^2+y^2)$  P.S. My answer for part(a) is correct, right?


What resampling method is used in the raster 'Save as...' dialog?

I received a raster that was resampled using the Save as dialog in QGIS. Now I need to describe the resampling process in a report. But I could not figure out the method used in the resampling. Is it Nearest Neighbor? Bicubic?  This question has been asked before () but the answer does not specify the method used.   I also tried looking at the QGis source code in GitHub, but unfortunately, I could not find where the magic takes place (I'm not a programmer)


algorithmic package dont automatically break page when too long

I have an algorithm defined with algorithmc like this:      \documentclass{article}     \usepackage{algorithm}     \usepackage{algorithmicx}      \begin{document}      \begin{algorithm}     \begin{algorithmic}[1]     \Function{X}{ItemA, ItemB, ItemC}     \State {Lorem Lorem}     \State {Final}     \end{algorithmic}     \end{algorithm}       \end{document}   Suppose that this is a very long algorithm.  Is there a way to break algorithm to fit in many pages?


Is there a known set of closed form solutions to the functional equation f(f(z)) = sin z?

That is $$ f(f(z)) = \sin z $$ where $$ z \in \mathbb{Z} $$


Earlier this year I purchased my first road bike (a 2013 - Felt F75). I had never really ridden before, so I didn't want to spend too much money up front not knowing how much I would actually ride. All in all, I think I'm riding more than I really ever thought I would.  My question is this:  If I wanted to start upgrading components on my bike, generally speaking, where can I get the most bang for my buck right off the bat? I've heard that getting new wheels can make a night-and-day difference in some cases, but didn't hear much evidence to back that up.  What do you guys think? Here is the spec list for the F75 for reference:  broken link. For the 2016 edition see


Greatest common divisor addition of numbers

Show that $\text{gcd}(m+n,m) = \text{gcd}(m,n)$  Here is what I have so far, using the definition of $\text{GCD}$ for some integer d we have  $d = x(m+n) + y(m)=(x)(n) + (x+y) m$ Now let $x' = x+y$ and $y'=y$,  $d'= x'(m) + y'(n)=(x+y)m+y(n)$ where $\text{GCD}(m,n)=d'=d$  Is this reasoning sufficient?


URL for Google Drive plain text docs as, well, plain text

Someone has sent me a link to a publicly viewable plaintext file in Google Drive. I can see it in the viewer by appending /view to the url, and in a 'preview' mode by appending /preview. But how do I just get the raw text file (it's data file and I want to read it straight into R)? I'me loathe to heck it by extracting the text string out an html tag: there must be a simpler way.  Edit - it has been suggested that I try , but that doesn't work for files which cannot be converted to google docs. In my case the file is a large (2Mb) text file with ID 17iI2COb-KZfc0uJ6ocrtjxeCvevR51_m. The link  works, but the link  does not.


How to read input from JTextField on button click

gen.addActionListener(new ActionListener(){         public void actionPerformed(ActionEvent e){             String input = key.getText();             if(input.toLowerCase() == "c"){                 System.out.println("C major!");             }else{                 System.out.println("Invalid!");             }         }     });   Gen is a JButton while key is a JTextField Here I attempt to check the value of key but the output continues to display "Invalid!" I'm not sure if I'm missing something or if there is another approach to this.


query to find all tables which contains a particular test?

Is there any query to find all tables in oracle that contains a particular text?  similar to UNIX syntax grep -rls 'text'   I have used the query select * from user_source where text like '%text%'; to find the text in packages.


Sometime I see bounties are set to gain the attention plus adding extra features to the question.  I cannot see the bounty remark after it is awarded or ended. So the answer may not be valid if the extra feature is added to the answer.     So IMHO the bounty remark(user comment on bounty) should be kept as it is the part of question.


I'm trying to switch from BibTeX to biber and ran into the problem that biber does not produce any output file. I noticed several questions about problems with biber e.g.,            ,                       But none of them helped me in my particular situation (which was actually just an old version of biber somewhere in the path of my OS). Since I also noticed that several questions regarding problems with biber were closed as too localized since the underlying problem was due to formatting of a bib resource or similar simple issues, I would rather like to ask for a general troubleshooting guideline for using biber (since I saw many hints like "check/delete the cache", "check versions of this and that" etc.).  What steps are to be taken and what things (in particular files) to be checked if biber does not produce an output file (and its output on the command line does not directly give you the advice what to do)?


How to remove charactor '\' in NSString?

How to remove character '\' in NSString IOS  For example,  NSString *abc = @"bmcvn\nmsf;   I have tried:  NSString *stri = @"\rdffsdf"; NSString *str = [stri stringByReplacingOccurrencesOfString:@"\\" withString:@"123"]; NSLog(str);   but it didn't replace


Is ECC multiplication over real number also one-way?

ECC multiplication over GF(p) is clearly one-way.  How about ECC over real number?  Is ECC division over real number also practically impossible?


A bag contains 4 balls. Two balls are drawn at random and are found to be white. What is the probability that all balls are white.

this problem comes under the topic Baye's theorem. I have no clue how to solve this.  I found this answer from one book,but not sure whether its correct


I know its a silly question,but i want the search results to be intentionally inaccurate.  Sorry, i am not fluent in english,so i will explain using the  images below with Breaking Bad tv series as an example :      Using (-) sign I can exclude unwanted results,but dont want the other users become aware of it  Any script and software that can help me achieve this?   Edit- I am leaning more towards Fiddler,Are there any Fiddler Gurus around here that can help me,perphaps i can(please tell me if this is against the rules) hire someone.  @krowe - I think the Fiddler way  is more suitable for me,but really really thank you for helping me.


Undo an up/down vote after a comment is left

If I made a mistake downvoting or upvoting a post, there's no way for me to fix that unless asking the person to edit its answer.   Let's say I downvote something, then explain in a comment thinking that I'm right and the user's wrong. The user convince me that he was right in the first place and that I should not have downvoted him (everybody make mistakes or it could have been a misundertanding on words... whatever). Then I can't undo my downvote.   I get the point of forbidding removing up/down votes without edit, but in some cases it gets annoying.  Could it become so that one can undo his vote if a comment is left by someone else (to avoid dummy comments just to rollback a vote) ?  EDIT: Added a bounty to get more feedback


Probability statistics - probability that 10 or more of the donors are Rh-negative?

In a certain population, 18% of the people have Rh-negative blood. A blood bank serving this population receives 95 blood donors on a particular day.  So my teacher posted a solution to a problem below which solves the probability of getting 10 or less donors that are Rh-negative. I was wondering if I wanted to instead find the probability of 10 or MORE donors that are Rh-negative, how would I do so?  This was my attempt from following the teacher's logic  p(x≥10) = p(x>9.5) = 1 - p(Z>((9.5-17.1)/3.745)) = 1 - (Z>-2.03) = 1 - 0.2118 = 0.7882  Can someone confirm if I did this right, and if not, teach me how? I'm still a little lost.


A sequence $\{u_n\}$ is defined as $u_{n+2}=\sqrt{u_{n+1}u_{n}}$   $\forall n \in \Bbb N$ where $0\lt u_1\lt u_2$   Prove that  $\{u_n\}$ converges to  $\sqrt[3]{u_{1}u_2^2}$  $\mathbf{MY TRYING}$ Considering two real positive number $u_{n+1}$ and $u_n$ for any  $n \in \Bbb N$ and applying $AM \geq GM $ (I could show every term of the sequence is positive , using induction procedure) , $$\frac{u_{n+1}+u_n}{2}\geq \sqrt{u_{n+1}u_n} = u_{n+2}$$ or,$$u_{n+1}- u_{n+2} \geq u_{n+2} - u_n$$ So,$u_2-u_3 \geq u_3 - u_1$ i.e. $u_1\leq u_3 \leq u_2$     again,  $u_3-u_4 \geq u_4 - u_2$ i.e.  either     $u_1\leq u_4 \leq u_3 \leq u_2$   or   $u_1\leq u_3 \leq u_2 \leq u_4$   Thus we can not get  a specific order in the terms of the sequence.Then, how to proof the convergence of the sequence. Will Cauchy formula be helpful ?


I need to plot these values against time. Y are prices of an stock index and X are given in dates. When I highlight both the columns and insert line graph. The graph turns out wrong. Not sure why. Need some guidance.  Y 55.86 56.4831183 56.79287172 56.15020358 56.54651172 57.17813626 57.74751614 57.99484875 57.81842842 57.82525099  X 19620702 19620703 19620705 19620706 19620709 19620710 19620711 19620712 19620713 19620716   The graph looks like this:


$\sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k+1}$ to differential equation

I want to use $S = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k+1}$ and get the relation $(a^2+1) S'=1−aS$. So far I am just getting $\frac{dS}{da} = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k} (2k+1)$, which I am not seeing how to use with S to get that relation. What should I do to progress and get the desired relation?


“While” loop without “do”; “if” statement without “then”

I have a similar question as this :     How can I get rid of the do in a for loop and the then in an if   statement when typesetting algorithms using the algorithm and   algorithmicx packages?   but I want the same thing for algorithm2e package.  A minimal compilable example:  \documentclass[10pt]{article} \usepackage[linesnumbered,ruled]{algorithm2e} \SetKwRepeat{Do}{do}{while} \SetKw{KwGoTo}{go to}  \begin{document}  \begin{algorithm} \DontPrintSemicolon \KwIn{$A,B$} \KwOut{$C$} \While{$B > 0$} {      $C = C+1$;      $B = B-1$;     \uIf{$C > A$}        {            \textbf{break}\;        } } \caption{ABC} \end{algorithm}  \end{document}


All my javascript gets stripped away in Content builder / Cloud pages / Content areas

I had a plan to create drag and droppable forms in content builder in Marketing Cloud.  I created the forms and I saved them as content areas.  Now when I drop them in a Cloud Page content area all the javascript gets stripped away and the forms are unusable. Both links to scripts and all other javasscript blocks are just gone.  How on earth can I solve this and still let the customer really easy build their web forms by drag and drop?


Shortcut keys don't work in MS-Word on Win8

I've just upgraded to Windows 8 (from XP) and re-installed my copy of Office 2007. Now the common shortcuts (Ctrl-Z, Ctrl-C, Ctrl-V etc) don't work in Word, however other shortcuts (Ctrl-P) are fine.  These shortcuts do work in other applications (such as Chrome) and they even work in other office applications (PowerPoint).   When I go into the customize shortcuts option in Word I see that EditPaste command has Shift-Insert shortcut and I can add Ctrl-V but I can't find Undo and Redo.  BTW I'm using a Hebrew version of Office (I don't know if this is relevant).    Note: The accepted answer  after I accepted it. I didn't check that the modified answer is correct so be aware that the original answer (and the one that solved my problem) was to do with the currently selected input language when Word was launched, not the default keyboard language.


How do I identify the process that owns a spurious dialog box?

A spurious dialog box (informative, no?) keeps popping up on reboot.  What's an easy way to figure out what clearly-very-well-coded-piece-of-software threw it up there?  I've reduced the startup list to a minimal list to no avail.


Is the Canon EF 50mm f/1.8 STM compatible with the Canon 4000d?

I'm a photography enthusiast and I'm looking to buy a canon 4000d and a lens for it, but am not sure whether it's compatible with a canon 4000d or not.


How to switch between SLD styles geoserver of one layer

i have one layer published in geoserver and i added 4 styles(sld1, sld2, sld3, sld4) to the same layer, now how could i to switch between 4 styles each style with the legend use leaflet ? this wms of my layer: var mylayer = L.tileLayer.wms("http://localhost:8081/geoserver/map/wms", {     layers:'map:mylayer',     format: 'image/png',     transparent: true,     attribution: "mylayer" }); mylayer.addTo(map);


I have shell script for data entry. Same is made for various data entry which creates file and further for statement generation.i have a part as below where i want to ensure that entered value must be number e.g.130,1300,13500 or any thing but only number.currently i am doing this:  echo -e "Enter loan amount :\c" read amount case $amount in [0-9]) echo $amount >>manual-entry ;; *)echo " Entered value is not number" ;; esac   This allowed only one number to enter.  My enter value can 1 to 99999999999 anything. How can i fix this


What will Debian releases be called after they run out of Toy Story characters?

Perhaps not the most cardinal question on this site, but:   The Debian project has been  release names which are characters from the Pixar animation film 'Toy Story'. But - they're about to run out of characters soon. What will they use afterwards? I'm curious.


How to get the package containing a file?

I just installed firefox but it display the following error :  XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so: libwayland-efl.so.1: cannot open shared object file : no such file or directory Couldn't load XPCOM  Is there a way for me to find a package able to fix libwayland-efl.so.1 ? pkgfile doesn't return anything.


Is it mandatory to have a link to the theme designer?

I just wanted to know if it's ok to modify/remove links pointing to the designer of the theme.  In my case I have "theme by" and the site's logotype, would it be ok to remove the logotype and write the site's name? Or remove it altoghether?  Does it have to do with the particular designer of the theme?  Thanks


Can someone please provide the code of converting the GMT timezone to CST.  DateTime now = DateTime.now(); system.debug('>>>' + now); Long offset = DateTime.newInstance(now.date(), now.time()).getTime() - DateTime.newInstance(now.dateGmt(), now.timeGmt()).getTime();  system.debug('>>offset' + offset); Datetime local = now.addSeconds(offset/1000); system.debug('@@@@' + local);   I have tried the above logic and i require the CST hour and minutes.  It is throwing the below error for me.     Method does not exist or incorrect signature: void addSeconds(Long) from the type Datetime


I am trying to do an apt-get update in one ec2 instance and I get the following error:  W: GPG error: http://us-east-1.ec2.archive.ubuntu.com precise-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>   I tried to apt-get clean and remove /var/lib/apt/lists and then re create it but this did not work. Tried adding signature with   apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5   But this did not work either. Any ideas?


Why is frequency a fundamental property of waves?

We are taught that although wavelength can change from one medium to other, frequency of a wave doesn't whenever Velocity varies in different media.   But why at a deep level, is frequency so fundamental? Why can't both frequency and wavelength change? Or why isn't wavelength fundamental? Or velocity fundamental?


Is there miscegenation in the Star Wars universe? Not only between humans, but also between humans and aliens?


I am a student. I have been invited to attend a conference at Canada. It is an all paid trip so the company will bear all the expenses. I am confused about which category of visitor visa I should apply for. The two categories that apply to my case are:  1) Business: Conferences come under "Business" category but since I am a student, I have no employment to show for this category.  2) Tourist: If I apply under "Tourist" category, I don't have any assets or significant amount of money to show.   Please suggest the best category for my case.


I'm having an issue with this inside a method:     public Time getArrivalTime()  {    Time temp = this;    temp.doSomeThing();    return temp;  }   I want to use method doSomeThing() only on temp, but somehow I use this methon also on this obj. Can someone explane me please where is my mistake?


They are immutable value types on the stack. What keeps me from having them a const?  References:


Are $1$ and $3$ the only numbers of the form $2^n-1$ that exist in the Fibonacci sequence?  Then, if they are not the only ones, are there infinite cases?  I have tried finding another example using a program, but could not find any, thus my conclusion.  I think there might be a good proof in the fact that all Fibonacci numbers $Fn$ create perfect squares when $5{Fn}^2+4$ or $5(Fn)^2-4$.


I'm trying to convert rupee to paise. 1 rupee is 100 paise.   paise =  parseFloat("4532.6523").toFixed(2)*100 //453264.99999999994  How do I get only 453265 only


Is it possible to reset all folder permissions?

I was wondering if it was possible to reset all the folders' rights. I was having trouble when trying to install LAMP on my Ubuntu 11.04 installation, and I modified many permissions like /var /etc and I want to cancel everything I did and have permissions set to how they would be after a new install.


Let $R$ be the ring of all the real valued continuous functions on the closed unit interval. Show that $ M=\{ f\in R:f(1/3)=0 \} $ is a maximal ideal


If $a+b+c=3$, then show $\sqrt{a^2 + ab +b^2}+ \sqrt{b^2 + bc +c^2}+\sqrt{c^2 + ac +a^2} \geq \sqrt{3}$

If $a+b+c=3$, and $a,b,c$ are positive real numbers, then show $\sqrt{a^2 + ab +b^2} + \sqrt{b^2 + bc +c^2} +\sqrt{c^2 + ac +a^2}\geq \sqrt{3}$ Normally when I do inequalities I try to first find where equality would be achieved, but in this case I have no idea where to start to find it. From $a^2 - 2ab +b^2 \geq 0$ we can obviously get $a^2 -ab +b^2\geq 3ab$, and after substituting that, we can change the inequality to showing that $\sqrt{ab} + \sqrt{bc} +\sqrt{ac} \geq 1$, but clearly if a=b=c, then equality is not achieved. I wanted to try to use Cauchy-Schwarz or something of the sort, but those inequalities generally are used to find the upper bound of sums of roots.


I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command \titlespacing{\section}...  This is my code. Can anybody help?  \documentclass[10pt]{book} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage[compact]{titlesec} \usepackage{setspace} \usepackage{sectsty} \chapterfont{\huge} \sectionfont{\Huge} \begin{document} \chapter*{Kapitel 1} \section*{Einleitung} \begin{large} \subsection*{1.1 Motivation}


My friend just answered to one of my important questions. Now how should I reply to him?        That question had been in my head for a long time, finally, I got my answer      or        That question has been in my head for a long time, finally, I got an answer.      Basically, I am confused with had and have. Since that question is not anymore in my head after having got an answer, what should be used? (I am also confused whether it is possible to use having instead.)


Allow frame breaks in multicolumn environment

I want beamer to automatically split my text over multiple frames (as many as is required) while retaining the format of the specified number of multicolumns (in this case 3). I do not want to have to specify the column width that is why i have used "multicols." I found the question entitled  but this question is unique to the multicol environment.  \documentclass[gray]{beamer} \usetheme{default} \begin{document} \begin{frame}[allowframebreaks]{Example Frame} \begin{multicols}{3} \small\raggedright Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. \end{multicols} \end{frame} \end{document}


I have installed both Windows 7 and Ubuntu. But today when I turned on my PC it showed an error regarding GRUB RESCUE. So I solved it referring to a site. The site told the following steps:     If you have Windows 7:         Insert your Windows install disc   Press any key at the “Press any key to boot from CD or DVD” message    to boot from the disc Choose Repair your computer after you select   the language, time and keyboard method (for Windows 7 users)   Select your Windows installation drive (usually C:)   Click Next   Select Command Prompt in the System Recovery Options window   Write the following commands in the Command Prompt:  bootrec /fixmbr bootrec /fixboot bootrec /rebuildbcd       Press Enter after each command      After doing this steps my Windows 7 started loading without any problem, but I cant boot with Ubuntu now. Please help me with your valuable suggestions.


PHP sprintf gives incorrect integer value

I'm trying the following code:  <?php $test = "326101347676";  echo sprintf("%014d\n", $test);   But it's giving me 00002147483647 output.  What I expect is 00326101347676  I know it's causing by the sprintf function, but I don't know why, could you please help me to solve this problem.  FYI: I'm in PHP/5.3.0  Note: The referred post didn't help me to solve the problem, besides I already tried the bcmod command and didn't go well with my code. Now @devpro last snippet in the comment section working well for me.


How to check the value of an array in javascript?

I have my json. I have two object on it.   uid 0090000165 is on my json but when i check it, it return false.  here is my code     var conf_url = "http://192.168.236.33//confbridge_participants/conference_participants.json?cid=0090000007";   var uid = [];      getParticipant(conf_url, function(data) {         data.forEach(function(obj){            uid.push(obj['uid']);             console.log(uid)         })                    if(uid == '0090000165'){             document.write("true");          }else{              document.write("false");          }     });    function getParticipant(conf_uri, handleData) {     $.ajax({       type: "GET",       url: conf_uri,       dataType: "jsonp",       jsonpCallback: 'callback',       contentType: "application/javascript",       success: function(data) {         handleData(data);         //console.log(data);       }     });    }     How can i check the value to be true ? Why it is returning false?


If the product of two relatively prime elements is a cube then the factors are also cubes .

I am not really sure if it is correct. My idea is:  Let $ab=x^3 $ and $(a, b) = 1$ and $a, b, x$ are some elements in an arbitrary ring $R$.  Then $a|x^3 $ and $b|x^3$ which means there exists some elements $c,d \in R$ that satisfies $ac = x^3$ and $bd = x^3$. We then know that $a|d$ because $a, b$ are coprime and $a\space|\space x^3 = bd$.   For example: Consider the ring $R=Z[i]$   I want to  find all solutions $x,y \in \mathbb{Z}$ with $y^2=x^3-1$  Now the factored form in $R$ is $$x^3=(y+i)(y-i) $$  I would like to know why the factors have to be cubes .


Wifi problems with rtl8723be in Ubuntu 14.04

I have dual booted my Windows 8 laptop with Ubuntu 14.04. The wifi driver is Realtek rtl8723be. It didn't use to work but I updated the kernel to 3.18 and reinstalled the driver and that seemed to solve the problem for a few hours. Then it would be connected for around 30 minutes and then the connection would stop, even though the icon on the system tray would still indicate it's connected. The only thing that works is restarting the computer but then, again, after 30 minutes the connection stops.


Cannot mark question as answered on the Geographic Information Systems (GIS) Stack Exchange site

I want to mark a question as answered on the "" Stack Exchange site.  I marked the answer as accepted, and the green tick mark appeared:    However, when I am coming back to this page, the tick mark is not green, so it looks like I have not accepted the answer.


I might seem stupid and my request may seem obvious (that's what I hope) :   I found a .obj file of a wolf head i like a lot. The thing is, for what I'm trying to do, I would only need half its head. See the wolf there :     I tried following this tutorial :  ; but didn't get the results I hoped : on one side, only the silhouette was kept, no more details (vertices?); and on the other that's all that was left. See there :     If you're still with me now you probably guessed : I never used Blender before. Now as a perfect newbie I'm hoping there is a way to just cut trough that wolf like it's a cake. Is it the case ? Or am I gonna have to "try hard"? (How?)  Wishing anyone who read me all the best !  Stay safe.  Kendrick  EDIT : I managed to cut my wolf following Jachym's advices. So i do now have half my wolf :     My problem is now that when i export it, i lose every detail ! I only get the shape :     Are there any export settings i should consider ?


I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic"  My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both.  Sample code that doesn't work:  \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure}   If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.


Illustrator image viewed at 100% is "tiny"

I'm a web developer and I love Photoshop but unfortunately I have some design mock-ups sent over to me in Illustrator. When I viewed the document at 100% the text isn't even legible on my monitor. At 150% things looks like they could be an actual web page and everything is clear.  I'm thinking the designer used a screen resolution that really doesn't convert well for web.  How can I view/change the document's screen resolution to say, 72ppi from whatever it is now?  If you think I'm asking the wrong question then here is an alternate: How can I figure out what width (in pixels) the designer actually intended for design?


As the title suggests, I am blocked for 7 days for reviewing the posts!   Today when I clicked on the counter for reviews (I don't know the exact name for that), I was able to review the content. I reviewed 2 posts and responded as needed!   Here is the thing: I was able to review even while blocked for being stupid while reviewing!  Was it a bug or something else? It happened just a bit ago.        There are the reviews that I did just an hour ago. When I clicked the same link, it reminded me that I am not able to review posts for 3 days more. (7 was the real count!)        I have no idea if this was a bug! Can anyone tell me?


Automated georeferencing in ArcGIS Desktop?

I am attempting to fully automate the process of georeferencing a load of .png files - i have xml file containing the co-ordinates - but how can i use them?  Does anyone have any advice?


No Unity greeter after installing Xubuntu desktop

I installed xubuntu-desktop metapackapge on my system and after this action unity-greeter no longer appears. I've purged lightdm twice, then reinstalled lightdm and unity-greeter. But still no result. Copying all files from /usr/share/lightdm/lightdm.conf.d/ to  /etc/lightdm/lightdm.conf.d/ returned my Unity greeter but it works incorrectly, for example it asks for my password each time when locking the screen. I've rechecked this option in system settings many times, but it doesn't respond. How to get lightdm and Unity greeter back without reinstall of the system?


high school senior A division contest question

The product of my age 7 years ago and my age 7 years from now is a positive perfect square. Compute my age now. I set up the equation, $(x+7)(x-7)=a^2$, so $x^2 -49= a^2$. So I know that x has to be bigger than 7. But I don't know what to do next... Please help me!  Thank you very much!


is there a constant leakage current across axon even in absence of stimuli?

because of resting potential is their a constant leakage current across membrane due to resistance of membrane and ion pumps continuously pump restore the resting potential ?


Is there an intuitive explanation why multicollinearity is a problem in linear regression?

The wiki discusses the problems that arise when  is an issue in linear regression. The basic problem is multicollinearity results in unstable parameter estimates which makes it very difficult to assess the effect of independent variables on dependent variables.  I understand the technical reasons behind the problems (may not be able to invert $X' X$, ill-conditioned $X' X$ etc) but I am searching for a more intuitive (perhaps geometric?) explanation for this issue.  Is there a geometric or perhaps some other form of easily understandable explanation as to why multicollinearity is problematic in the context of linear regression?


I have a html file that I want to do some scrapping using python 3, this is the content of the table that I want to get the data
     a	     Date Registered	     04-JULY-2018	     &nbsp;
   This is my current code  import re ... html = html_content registered = re.search(r"""Date Registered<\/b><\/td>             (.*)	""", html).group(1) print('Registered Date : ' + registered)   I want to make the search only 1 line, is it possible and how to make it?


I am currently building a program and want to sort data (called component in the code) by week number.   wList = [] thing = [] Wstart = 0  for component in list:      curDate = component[0]      year, month, day = (int(x) for x in curDate.split('-'))         currentWeek = int(datetime.date(year, month, day).strftime("%V"))      if Wstart == currentWeek or Wstart == 0:         wList.append([component, component, component, component])         Wstart == currentWeek     else:         thing.append(Wlist)         wList = []         wList.append([component, component, component, component])         Wstart == currentWeek   Basically I want to reset the Wlist when a new week is available, and store the Wlist in a list called thing, but when I run print(thing) I got "[]".  I appreciate all the help I can get!


Is it possible to prove reflexive, symmetric and transitive properties of equality and the transitive property of inequality?

This may be a bit of a trivial question, but can one prove the reflexive, symmetric and transitive properties of equality and the transitive property of inequality of real numbers?(and if so, how? Is there a fairly straightforward, possibly algebraic method?) i.e. Is it possible to prove that $\forall\;a, b\in\mathbb{R}$ $$a=a,$$ $$\text{if } a=b \text{ then } b=a,$$  and $$\text{if } a=b \text{ and } b=c \text{ then } a=c.$$  Also, $$\text{if } a<b \text{ and } b<c \text{ then } a<b$$ The sources that I've read so far seem to have conflicting points of view.


Would the Skull Island be enough to feed King Kong?

It eats some epic monster for breakfast, then the next day it also kills some different epic monster.  This makes 365 epic monsters per year.  Epic monsters don't come out of thin air. They grow.  If island can sustain 365 epic monsters per year. It should also house thousands of gargantuan monsters. Then there would be hundreds of thousands of large monsters and also millions of normal sized monsters and tens of millions of normal animals non-monsters. Just to sustain the King Kong's consumption. What if there were 10 apes in family?  Maybe they grow in a few months or weeks (like in  the Alien(s) movie)?


I have already read similar questions, but they did not help.  I use \documentclass[12pt,a4paper]{book} and I would like footnotes without indention.  Using \noindent does not help. Using this package \usepackage[hang,flushmargin]{footmisc} solves the issue, but TeXstudio gives back an error and I can see a little black square at the end of the footnote, which should not appear.  EDIT:  \documentclass[12pt,a4paper]{book}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{FB01}{fi} \usepackage[italian,UKenglish]{babel} \usepackage{paracol} \usepackage{geometry} \usepackage{microtype} \usepackage{lmodern} \usepackage[hang,flushmargin]{footmisc} \author{Bla Bla} \title{Bla Bla}  \begin{document} \maketitle \begin{paracol}{2} \noindent bla bla  \bigskip \noindent bla bla \footnote{bla bla}.  \switchcolumn \noindent bla bla  \end{paracol} \end{document}


In gparted, why can’t I modify partitions that are in use, like root, but in Windows I can shrink the root partition while booted into it.   Is there any program I can use to modify a partition while it’s in use?


I couldn't install Ubuntu 18.04 from  a bootable USB drive. This error is being shown.   Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found Failed to start MokManager: Not Found Something has gone seriously wrong: import_mok_state() failed   I tried to do a system recovery of Windows 10 three times until now, but I still can't install Ubuntu. The same error is being shown.


What is the meaning of $* in a shell script?

In a shell script file i saw "$*", what does it mean and when we have to use it?


count the ways to fill a $4\times n$ board with dominoes

After solving  problem from SPOJ (count the ways to fill a 4xn board with 2x1 dominoes) I found a different solution while searching on internet.   solution uses the recurrence relation $f(n) = f(n-1)+5f(n-2)+f(n-3)-f(n-4)$ where $f(n)$ denotes the number of ways to fill the $4\times n$ board with $2 \times 1$ dominoes.  I don't fully understand how someone gets that kind of relation (I don't know almost anything of combinatorics or recurrence relations) but I think I understand something. The $f(n-1)$ term comes from observing that there is an unique way to fill the last column and the $5f(n-2)$ term comes from observing there are 5 different ways to fill the last two columns.    But i don't get where the terms $f(n-3)-f(n-4)$ come from. So I have two questions, the first one is where these terms come from and second I'd like to ask you for a reference to learn combinatorics and recurrence relations.  May you help me? Thanks in advance.  -edit-  For my solution I used a binary number to represent what configurations of the i-th column was valid. For example 1001 represent that rows 1 and 4 are blocked in the i-th row because in the (i-1)th there is an horizontal domino in that positions. I calculated all the valid transitions such binary numbers could go to (I did this by hand for all the binary numbers from 0000 to 1111). Then I got a function which I programmed using  and a technique called bitmask to represent the binary numbers as integers. The function is:  $f(i,mask) = \begin{cases} 0 &\mbox{if } i = n, mask \neq 0 \\ 1 & \mbox{if } i = n, mask = 0. \\ \sum f(i+1,mask') &\mbox{else} \end{cases}$  Where mask' is taken from the set of all valid masks from where mask could transition to, also i=n means the first column outside the board as I considered 0-indexing. The code for that is  (this is not actually mine, it's from a mate but it's the exactly same idea).


If X, Y, Z are independent random variables, then X + Y, Z are independent random variables.

I found the same question ( here), but the answer uses characteristic functions and fourier inversion theorem, but this is exercise in chapter long before characteristic functions.


Odds of Two People having one DOB and another two people having a different DOB in a Group

So the odds of in a room of 14, two people sharing a DOB, and another two people sharing another DOB is 4.97%.  However, I cannot figure out how to get to 4.97%. I calculated it being 1.9% by doing the following:  •the number of ways to choose the two duplicated birthdays: (365/2)  •the number of ways to assign the earlier birthday to two people, and the later birthday to two other people: (14/2)(12/2)           •the number of ways to assign 10 out of the remaining 363 days to the rest of the people: 363!/353!   Dividing this product by the number of ways to distribute birthdays without restrictions yields the final probability of 1.9%.  Where is the 4.97% coming from?


I've been trying to use lists of items in a table. This was easy to do but I could not find a way to align them in the same way as plain text in a table. Let me give an example:  \documentclass{article}  \usepackage{paralist}  \begin{document}  \begin{tabular}{|p{2cm}|p{10cm}|}     \hline     Blah blah &      \begin{compactitem}         \item First         \item Second     \end{compactitem} \\         \hline \end{tabular}  \end{document}   Instead of just itemize I used paralist so the list gets more compact, however there is still a lot of space added before and after the list. The result looks pretty awful, I would like to have the same spacing around "Blah Blah" as I have around the items in the right cell.    I've also found some tricks to reduce the space to the upper or lower \hline of the cell, but none of these could match the alignment with just plain text.


I am unable to install Ubuntu 16.04 in VMware Workstation 14 Player. I am stuck at the location option, and it is not going forward.


Double type arithmetic operation, weird result in .NET 2.0

This is a simple question. I have two double numbers in VB.NET 2.0.  A = 226.8 B = 224.4  Dim result As Double = A - B   And what I got in result is 2.4000000000000057  Why is .NET putting there all those zeroes???  Thanks a lot


I have a problem in installing SharePoint foundation 2013 on my Window Server 2012 R2. When i run SharePoint Product Preparation tool , i am getting error like "the tool was unable to install application server and web server (IIS) role.". please someone help me to out of these problem


I'm getting a Malformed line 2 in source list /etc/apt/sources.list.d error.  Error message:   E: Malformed line 2 in source list /etc/apt/sources.list (type) E: Malformed line 2 in source list /etc/apt/sources.list.d/official-package-repositories.list (type) E: The list of sources could not be read.    File Content from /etc/apt/sources.list:   deb http://archive.ubuntu.com/ubuntu bionic main universe ttp://archive.ubuntu.com/ubuntu bionic main #Added by software-properties universe properties universe .com/ubuntu bionic main #Added by software-properties universe properties universe properties universe   Note: I have tried many options, but nothing is working, so sharing the source.list file content.


Why cant I get libevdev-dev package on Ubuntu 20.04?

I'm new to Linux and I'm having a hard time with a package. I've been trying to run the ''cmake .'' and I can't because I don't have the libevdev package. ~/joycond$ cmake . -- Checking for module 'libevdev'  --   No package 'libevdev' found CMake Error at /snap/cmake/876/share/cmake-3.20/Modules/FindPkgConfig.cmake:556 (message):   A required package was not found Call Stack (most recent call first):   /snap/cmake/876/share/cmake-3.20/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)   CMakeLists.txt:10 (pkg_check_modules)   -- Configuring incomplete, errors occurred! See also "/home/louis/joycond/CMakeFiles/CMakeOutput.log".  When I try to run sudo apt install libevdev, it is unable to find it. ~$ sudo apt install libevdev Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libevdev  I saw online that what I needed was libevdev-dev, but... ~$ sudo apt install libevdev-dev Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libevdev-dev  If anyone could help it would be greatly appreciated since I am now completely lost.


\begin{equation}: "Display math should end with $$" error?

I'm pretty new to LaTeX, completely new actually, and there is one thing I can't quite understand.  I get the error "Display math should end with $$" when writing an equation like this:  \begin{equation}  $R_{2}$=$\frac{U_{R_2}}{I_2}$=$\frac{2,95\, \mathrm{V}$}{$0,03*10^{-3}\, \mathrm{A}$} = 7,10\,\mathrm{k}\Omega \,.  \label{eq:Bsp_OhmsLaw}\end{equation}   I tried a lot of things, I also skimmed these forums. Nothing seemed to help :-(  Thanks in advance!


How to draw open-close interval in LaTeX

I am using the following commands to have half-open interval in a real line:   \begin{tikzpicture}[scale=7] \draw[->, thick] (-0.1,0) -- (1.7,0); \foreach \x/\xtext in {0/8,0.2/$S_1$,0.4/$T_4$,0.6/$S_3$,0.8/$T_2$,1/$S_3$,1.2/14,1.4/$S_3$,1.6/16}     \draw[thick] (\x,0.5pt) -- (\x,-0.5pt) node[below] {\xtext}; \draw (0.2,0.5pt) node[above] {$c$}; \draw[[-), ultra thick, blue] (0.2,.01) -- (.4,0.01); \draw[(-, ultra thick, green] (0.6,.02) -- (1,0.02); \end{tikzpicture}   Now, I need to have an open-close interval, but I am not able to have that close interval at the end, using the following command:  \begin{tikzpicture}[scale=7] \draw[->, thick] (-0.1,0) -- (1.7,0); \foreach \x/\xtext in {0/8,0.2/$S_1$,0.4/$T_4$,0.6/$S_3$,0.8/$T_2$,1/$S_3$,1.2/14,1.4/$S_3$,1.6/16}     \draw[thick] (\x,0.5pt) -- (\x,-0.5pt) node[below] {\xtext}; \draw (0.2,0.5pt) node[above] {$c$}; \draw[(-], ultra thick, green] (0.6,.02) -- (1,0.02); \end{tikzpicture}   May I ask for anybody help?


Impact of a Salesforce Instance refresh or migration on Marketing Cloud Connect and Marketing Cloud org

A Salesforce instance change (refresh) will take place in production overnight from Saturday to Sunday. Salesforce will be "read-only" during the refresh period. What are the impact of a Salesforce Instance refresh or migration on the Marketing Cloud Connect Integration? What are the impacts regarding synchronization, Synchronized data extensions, Journeys, automations, any else on Marketing Cloud (SFMC) ? Will the connexion between SFMC and CRM still work correctly after that ? Do we need to make any changes or check anything that ? thank you Regards Ludivine


HTML for links is being escaped in 10k tools, duplicate answers

In the  for duplicate answers, the links that show the duplicates are being escaped instead of rendered.


I have a data similar to,  import numpy as np A = np.array( [['1','2','3'], ['a','3','5']] )   Now I want to identify the cell address of 'a'. I have tried the following code for that purpose,  for i in range(0,2):     for j in range(0,3):         if (type(float(A[i,j])) == float):             print(str(i)+str(j))   since, 'a' can't be converted into floating point it shows the following error.     00      01      02      Traceback (most recent call last):      File "", line 3, in       if (type(float(A[i,j])) == float):      ValueError: could not convert string to float: 'a'   Please help. Thank you in advance.


DNS just started resolving my server.prod addresses to 127.0.53.53

I have servers named like server.prod.example.com, and I regularly log into them as server.prod.  Recently, these hostnames started resolving to 127.0.53.53.  It turns out that ICANN recently enabled the .prod TLD.  In addition, every request that goes to the .prod nameservers get resolved to 127.0.53.53 instead of coming back as NXDOMAIN, which would allow resolution to continue to work properly.  (I'm guessing the point behind this is to let people know that their stuff will break worse before those start resolving to something real.)  How can I avoid having to type in my domain name for every host like this?  Is this still biting you occasionally?  I couldn't find a list of new TLDs and when they were added, so I set one up myself:


How do I iterate over the words of a string?

I'm trying to iterate over the words of a string.  The string can be assumed to be composed of words separated by whitespace.  Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, please give precedence to elegance over efficiency in your answer.  The best solution I have right now is:  #include <iostream> #include <sstream> #include <string>  using namespace std;  int main() {     string s = "Somewhere down the road";     istringstream iss(s);      do     {         string subs;         iss >> subs;         cout << "Substring: " << subs << endl;     } while (iss); }   Is there a more elegant way to do this?


How to withdraw a paper (under review) from fake journal

I have sent two research papers to an open-access journal. It seems a very good journal. One of my papers sent back to me for a minor revision (the condition for accepting my paper is the quality of the revision). The second paper is now under review. I just found that the publisher is fake. Hence, I would like to withdraw my papers. I could not find any way to withdraw my papers from the journal website. What should I do? I did not send the revised manuscript to the journal.


problem with c# logical operators & and |

| is an OR and & is AND. I have the following code and they works OPPOSITE.             int a = 0;             int b = 0;             int c = -1;             if ((a | b | c) == 0)              {                 textBox8.Text = "everything 0";              }             else             {                 textBox8.Text = "something is not a 0"; // <- code goes here             }                         if ((a & b & c) == 0)             {                 textBox9.Text = "everything 0";  // <- code goes here                         }             else             {                 textBox9.Text = "something is not a 0";                            }  why i have this result?


Let see if this is the right place...  I installed and have ran Android -x86 on a virtual machine. Everything works great until I have to force dismount the ISO file from the machine, so that it can load from the partition. Whenever I do this, I get the error GRUB Loader Error 17 or 15. It depends. I formatted the partition to ext4, mainly because it doesnt allow me to format in ext3.  Any help will be greatly appreciated!  Thanks again!


After finishing Blender Guru's both doughnut and anvil tutorials I conceived that I should keep mesh quad-only. Moreover, all edges of my final meshes were looping, which I took as a rule too. But is there such a rule or how strong this rule is? Sometimes I end up with meshes like on the picture below, where all the faces are quads, but not all edges are looping. How bad is it?    More specifically, should I keep all vertices always connect four other?


QUAD After a New Line Inside ITEMIZE Doesn't Work

I'm using quad inside itemize. In detail,  \documentclass{article} \begin{document} \begin{itemize} \item Item 1a\\Item 1b \item Item 2\\\quad Subitem 2a\\\quad Subitem 2b \item Item 3 \end{itemize} \end{document}   The quads in front of Subitems 2a and 2b don't work. Can I activate the quads by force? Thanks.


A discrepancy in the proof that 561 is Carmichael number.

The proof is given below:    But I do not understand the statement in the line before last which says "These give rise to the single congruence $a ^{560} \equiv 1 \pmod n$ where gcd(a, 561) = 1 ", I do not know why the previous mentioned system of linear congruences leads to this single congruence, what theorem is used to say this? is it the Chinese Remainder theorem ? if so how?


Finding the value of $\sum_{n = 1}^{\infty} \frac{(-1)^{n + 1}}{n}$

Does anyone know how to find the exact sum of  $$ \sum_{n = 1}^{\infty} \frac{(-1)^{n + 1}}{n} $$  I've only taken second semester calculus and don't see how to go about computing this sum. The only way that I know how to find the sum of an infinite series is if it is a geometric series.  Using WolframAlpha, I found that the sum for this series is $\log(2)$.


Do Photons interfere when it passes through a slit (one)?

When a light (photons) goes through two slits it creates interference patterns. if the light goes through a "single" slit, does it create interference patterns or does it behave like particles (photons)? is the pattern same for both particles and light waves if it is a "single slit"? In the double slit experiment, if you close one slit (or observe) it is said that light behave as particles (bullets) which means that through one slit light exactly behaves as stream of particles??


Beamer: PDF presentation viewer to play embedded videos and show elapsed time

I have been suffering from finding a PDF presentation viewer for beamer output on Windows that can play embedded videos (by media9 package) and show the elapsed presentation time. I have tried the following: Adobe Reader with tdclock package:  Pros: plays videos and loads tdclock properly Cons: sluggish and crashes frequently  Foxit Reader with tdclock package:  Pros: smooth viewer and plays videos  Cons: can't load tdclock clock/stopwatch despite enabling javascript   Impressive:  Pros: fast and has internal clock  Cons: can't play embedded videos   Dual-Screen PDF Viewer:  Pros: very fast, has internal clock and dual screen support  Cons: can't play embedded videos   Is there any other solution that can properly play embedded videos and show elapsed presentation time flawlessly and smoothly on Windows?  P.S. when I mean tdclock javascript is not loaded, those empty red boxes show up instead of the clock/stopwatch,  and when embedded video can't be loaded, a white page shows up.


Apache hogs cpu, most connections in waiting status

a few days ago my Apache server randomly started hogging the CPU during which time the site becomes sluggish and unresponsive.   Here is what mod_status shows during an incident:   Nearly all connections are in the waiting state A few connections are in the Keep-Alive state. All of them have Req column values (Milliseconds required to process most recent request) between 15 and 40 seconds, which is 10-20x longer than usual During this time, running top command shows 100% usage of all 4 CPUs, with 5-7 Apache child processes on top, taking 10-40% percent CPU each   Each incident lasts 15-30 minutes and then the situation returns to normal for a while, until another incident occurs.   Server configuration and stats:   Digital Ocean droplet with 4 CPU's, 8 GB RAM LAMP stack running a Wordpress site, about 40K hits per day (XMLRPC protected, wp-login protected) MySQL performance appears normal (slow query logging on, nothing unusual)   Any advice on debugging this would be appreciated as I don't even know where to start.     Server Version: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 Server MPM: prefork Server Built: Jul 24 2015 17:25:11 Current Time: Sunday, 02-Oct-2016 08:41:09 EDT Restart Time: Sunday, 02-Oct-2016 07:55:53 EDT Parent Server Config. Generation: 1 Parent Server MPM Generation: 0 Server uptime: 45 minutes 15 seconds Server load: 105.26 38.36 22.87 Total accesses: 32705 - Total Traffic: 367.2 MB CPU Usage: u455.08 s51.66 cu0 cs0 - 18.7% CPU load 12 requests/sec - 138.5 kB/second - 11.5 kB/request 144 requests currently being processed, 39 idle workers _WWWWWWWWW_WKWWWWW__WWWW._WW.WWWW___W.WWWW__WWW_W_WWWW_WW.W_WWWW _W.WCWW_WW.WKWWWWWWWWW_WWWKW.W_K_.KW__K.W._WWWWW__WWWWWWWWW._WKW WWWK.WW_WW__WWWWWWWW__WWW_WWWW_WWWWWW_._WWWKK___WWW_WWWWWWWWWWWW _.W..WW. Scoreboard Key: "_" Waiting for Connection, "S" Starting up, "R" Reading Request, "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup, "C" Closing connection, "L" Logging, "G" Gracefully finishing, "I" Idle cleanup of worker, "." Open slot with no current process


What comes after length, area and volume?

The length of the unit is 1.   The area of the unit square is 1.   The volume of the unit cube is 1.   The $\color{red}{???}$ of the unit tesseract is 1.   The $\color{blue}{???}$ of the unit 5-cube is 1.   So this is a fill in the blanks-question, but I've been wondering if there's a common term for this? I'd imagine it'd be "n-volume", but I cannot seem to find any uses of that term, so I'm guessing there is another term?


Alternating path from any vertex to any vertex

Statement: Given a connected graph with all edges coloured in one of two colours (red and black), so that for each vertex the number of incident red edges is equal to the number of black edges.  Proof: there is a color-alternating path between any pair of vertexes.  I had some thoughts on this problem in context of Euler cycle (I can even prove it in the other direction), also have found such theorem:  Theorem (2 colors): A 2-edge colored graph has an alternating Euler cycle if and only if the red degree=blue degree for every vertex  May be someone knows how to prove it ?


acpi ppc probe failed - how to hide this message?

I read other topics about this error:  acpi ppc probe failed    But I haven't found a solution how to turn it off. Can ignore it - I know, but I don't want it to display at startup. Console distorts my Plymouth themes.  I don't want to fix the problem if it isn't necessary, only to hide it.  Xubuntu 15.04 xfce 64 bit


Is there a ZIP code I can enter when paying-at-the-pump in the USA with a South Korean credit card?

Im trying to use my South Korean Visa credit card at the gas pump and it is asking for my zip code. What am I supposed to do? Is there a generic ZIP code I can use?


Do frozen vegetables have pesticides on them? Are you supposed to wash frozen vegetables before you cook them and eat them?


Creating schematic view of line feature in ArcGIS Desktop?

I have a line feature (polyline with curves) in ArcGIS Desktop, and I want to create a linear representation (straight line) of the feature, furthermore I want to be able to locate events in the linear representation. This is something like I would like:    Making some research I found something similar called "column view" unlucky my PC rebooted an does not saved the history of the browser... so I lost the document. (I have been searching for it again, but I have not been able to find it)  In the petroleum industry they call it "Alignment Sheet", is a representation of the objects that are located over a route but in a straight line. But keep in mind that is not linear referencing. Think in this way: you have a road, with its events, it is a curve, the idea is to straight it and view the event over that line.


Struggling to design a sliding 3x3 puzzle with methods to swap tiles

I am trying to design a simple 3x3 sliding puzzle game. The only tile you can move is a blank tile and this can be swapped with any of its neighbouring tiles. There is currently no final goal for the game but I have had trouble implementing the puzzle and being able to swap tiles. I keep getting java null pointer exception when I test out my swap methods and can't seem to fix this. I am aware what this error is but can't see why it occurs in my code.  public class Game() {      public Node[][] buildPuzzle() {          Node[][] puzzle = new Node[3][3];          Node One = new Node("1", 0, 0, null, puzzle[0][1], null, puzzle[1][0]);         Node Two = new Node("2", 1, 0, null, puzzle[1][1], puzzle[0][0], puzzle[2][0]);          Node Three = new Node("3", 2, 0, null, puzzle[2][1], puzzle[1][0], null);          Node Four = new Node("4", 0, 1, puzzle[0][0], puzzle[0][2], null, puzzle[1][1]);         Node Five = new Node("5", 1, 1, puzzle[1][0], puzzle[1][2], puzzle[0][1], puzzle[2][1]);         Node Six = new Node("6", 2, 1, puzzle[2][0], puzzle[2][2], puzzle[1][1], null);          Node Seven = new Node("7", 0, 2, puzzle[0][1], null, null, puzzle[1][2]);         Node Eight = new Node("8", 1, 2, puzzle[1][1], null, puzzle[0][2], puzzle[2][2]);         Node blank = new Node("blank", 2, 2, puzzle[2][1], null, puzzle[1][2], null);      }      public void swapAbove (Node[][] puzzle, Node blank, Node blankAbove) {          if (blank.getLabel() == "blank" && blankAbove != null){              Node temp = blank;             Node temp2 = blankAbove;             blank = temp2;             blankAbove = temp;              puzzle[temp.getX()][temp.getY()] = blankAbove;             puzzle[temp2.getX()][temp.getY()] = blank;          } else {               System.out.println("Invalid Move");          }      }      //also have swapUp swapLeft and swapRight methods }   Here is my Node class:  public class Node {      String label;     int x;     int y;     Node above;     Node below;     Node left;     Node right;      public Node(String label, int x, int y, Node above, Node below, Node left, Node right) {             this.label = label;             this.x = x;             this.y = y;             this.above = above;             this.below = below;             this.left = left;             this.right = right;     }      //also have accessor methods for my variables  }


Did Uncle Owen and Aunt Beru know who Luke Skywalker's father was?

In this scene, Uncle Owen says Obi-Wan Kenobi died about the same time as Luke's father. And Owen tells Luke to stop asking about his father.                                  Did Owen know Anakin was Luke's father? I think he would know since otherwise, why else would Kenobi ask him to adopt baby Luke? I can't imagine Kenobi getting away with some excuse like this. "Hey, here's some random baby. Why don't you look after him? Oh, his parents? Nevermind them. They were killed by Jawas on the south ridge." "But Mr. Kenobi, why are you giving us this baby?" "Oh, you look like nice people."  Kenobi surely had to say something about Luke's father. We know he chose Owen and Beru because of the family connection to Anakin. And if he said Luke's father was that local boy who became the galaxy-wide famous Jedi hero of the Clone Wars, then wouldn't everyone from Mos Eisley to Anchorhead know "Hey, there goes Luke. That's the son of Anakin, the Jedi hero. Remember when Anakin was a little slave boy and how he finally won the pod race?"  So what did Uncle Owen and Aunt Beru know of Luke's real father?  The video snippet indicates he seems to know, but didn't know the whole truth (maybe Kenobi lied to him or at least clearly didn't say everything about Anakin's true fate). But Kenobi telling Owen and Beru seems like a major risk given how famous Anakin was and even bringing the baby to them is a major risk.  Owen outright lies to Luke by saying Obi-Wan Kenobi died years ago - about the same time as Luke's father. He knew Obi-Wan Kenobi was that crazy old wizard, Old Ben Kenobi. He should have known that if Luke learned that Obi-Wan Kenobi was still alive, then Luke would not trust him.


Invite low rep users to participate in chat

I'm aware of the preference for 'general answers to general questions' attitude on SO, and wholeheartedly agree that questions that are focused on specific, one-time issues are not as valuable to the site.  However, where an issue is potentially useful but getting to the heart of it is taking some doing, the obvious option is to migrate the discussion to chat.  Once the user has a better understanding of their issue, the question can be edited to a useful form and answered succinctly for future readers.  The issue, as noted in other questions here, is that these situations most often occur with a sub 20 rep user, and so with the chat feature denied a long discussion in the comments becomes likely.  I totally understand the sentiments expressed here: , and I don't feel that a chat session should be used to completely solve a users problem, but it would be nice if the chat could be made available while a user's issue is being made clear.  And so...  The Actual Proposal  Would it be possible to enable the invite to chat feature for sub 20 rep users, based on an invite from a higher rep user who can be trusted to use the chat conversation in the correct manner and take the results back to the originating question?    The sub 20 rep user could be locked to that single chat instance, and still unable to participate in the main boards.  The inviting user should have a much higher rep, somewhere in the thousands, and so would hopefully use the feature responsibly in a way that was aimed at providing a worthwhile question and answer as the result.


Do Real Symmetric Matrices have 'n' linearly independent eigenvectors?

I know that Real Symmetric Matrices have real eigenvalues and the vectors corresponding to each distinct eigenvalue is orthogonal from . But what if the matrix has repeated eigenvalues? Does it have linearly independent (and orthogonal) eigenvectors? How to prove that?  PS: In the answer I referred to has another answer which might have answered this question. I'm not sure if it answered my question since I didn't understand it. If it did answer my question, can anyone please explain it?  Thanks!


Have got about 500 PDFs to go through and extract the first page of.  They then need to go through some time consuming conversion process so was hoping to try and save some time by have a batch process to extract just the first page from the 500 pdfs and place it in a new pdf.  Have had a poke around Acrobat but can find no real method of doing this for multiple files.  Does anyone know any other programs or methods that this could be achieved?  Free and open source are obviously more favourable :)  EDIT:  Have actually had some success using GhostScript to extract just one page.  Am now looking at how to batch that and take the list of files and use those.


Why doesn't the null-coalescing operator work in this case?

I am trying to fetch record into listarray as follows:  List<Car> lst = new List<Car>();  string str = "select * from Inventory";   using(SqlCommand cmd = new SqlCommand(str,this.sqlcon)) {     SqlDataReader rdr = cmd.ExecuteReader();      while (rdr.Read())     {         lst.Add(new Car                      {                         CarId = (int)rdr["CarId"],                         Make = (string)(rdr["Make"] ?? ""),                         Color= (string)(rdr["Color"] ?? ""),                         PetName = (string)(rdr["PetName"] ?? "")                      });     }      rdr.Close(); }   Make,color and petname may have null values and thus I used the ?? operator. I get the following error      Unable to cast object of type system.dbnull' to 'system.string'.    What is the correct way of checking for null in this scenario?


What should I look for in a polarising filter?

I am wanting to invest in a polarising filter for my camera (a Canon T2i/550D). What sort of things should I be looking for? What differentiates a good polariser from a bad one? Are there any brands to go for/avoid? Do you have any particular recommendations for specific filters?


Proof for this identity in an abelian group

I need to show the following identity in an abelian group. $$\Bigl(\prod_{g \in G}g\Bigr)^2 = e$$ I think I have the basic idea for the proof, in that you can reorder the factors of the product such that each element is besides it's inverse and then all of them cancel out. But I don't really know how I would go about making an actual proof out of that.


Error while adding WMS layer in QGis 2.18.13

I already set up a geoserver instance and add some raster stores to it. I want to use them as WMS service through different aplication like QGis and Autocad but when i try to add the WMS layer in QGis 2.18.13 i get this error:  Invalid Layer: WMS provider Cannot calculate extent Raster layer Provider is not valid (provider: wms, URI: IgnoreAxisOrientation=1&IgnoreGetFeatureInfoUrl=1&IgnoreGetMapUrl=1&contextualWMSLegend=0&crs=EPSG:32634&dpiMode=7&featureCount=10&format=image/png&layers=raster_utm:layer1_utm2&styles=&url=http://localhost:8080/geoserver/ows?version%3D1.3.0%26   This does not hapen in Qgis 3.0 or in Autocad map 2017. The EPSG used for the layer is 32634.


Having trouble getting my entire frame in focus!

I'm shooting a banquet room restaurant for website pitures and am having trouble getting the enitre room in focus. The shots Ive taken theres one set table in focus and the glasses and decor on the other table are really out of focus. How can I get everything in focus? I'm shooting with a Mark3 5D and lenes Ive used...70-200 mm 1.2, 50 mm 1.2,85mm 1.2, amd 24-105mm, Can someone please help me with settings and the best lense to use?


How do I tell if a variable has a numeric value in Perl?

Is there a simple way in Perl that will allow me to determine if a given variable is numeric?  Something along the lines of:  if (is_number($x)) { ... }   would be ideal.  A technique that won't throw warnings when the -w switch is being used is certainly preferred.


Why are my emissive faces of a different color than the light they emit?

I made a selection of faces on an object emissive. They radiate orange light. However, the faces themselves are still white. How can I make sure they are the same color as the light they emit?


Find the limit points of the set $\{ \frac{1}{n} +\frac{1}{m} \mid n , m = 1,2,3,\dots \}$

I need to find limit points of the set $\{  \frac{1}{n} +\frac{1}{m} \mid n, m = 1,2,3,\dots \}$.  My try :   If both $m$ and $n$ tend to very large values say $\infty$ then the value of $\{ \frac{1}{n} +\frac{1}{m} \}$ tends to $0$, and if only one of $m$ or $n$ tends to very large values, then the set $\{ \frac{1}{n} \mid n=1,2,3,\dots\} $ acts as limit points.   So is it true that a set of limit points is $\{0\}$ $\cup$  $\{\frac{1}{k} \mid k=1,2,3,\dots \}$?  How should I write this proof rigorously?


Please help regarding Ubuntu installation via wubi installer

I'm having Windows 10 on my system, but I want to dual boot my OS. For that purpose I installed Wubi Ubuntu installer but at the start of installation they are asking for EFI partition? Can anyone help me regarding this? help to install with wubi??


Calling constructor functions dynamically

I'm looking to call a constructor function dynamically based on an value I have in an object.   Let's say I have an object:  var food = {    pizzas:[     {       pizza: 'Pepperoni'     },     {       pizza: 'Vegetarian'     }   ]  }   Now, let's say I have a couple of Constructor functions bound to a global object.  window.pizzaConstructors.Pepperoni = function(){   // do something }  window.pizzaConstructors.Vegetarian = function(){   // do something else }   What I want to be able to do is cycle through the food.pizzas array and call the corresponding constructor function based on the type of pizza of the current index.  So, if I have:  (for pizza in food.pizzas){   var currentPizza = food.pizzas[pizza]    new pizzaConstructors.currentPizza();  }   Any idea how I can go about this?


Make rigid body collide with hair particles

I have a ground plane set up with a hair particle system, it is set as a passive rigid body. Now I want to be able to drop my Active rigid bodies, and have them collide and lay on top of the hair.  Further more I'm trying to find a way to make the hair particles mat down where the rigid bodies hit them.


Find all strictly monotone $f:(0,+\infty) \to (0, +\infty)$ such that $f(\frac{x^2}{f(x)})=x.$

Find all strictly monotone functions $f:(0,+\infty) \to (0,+\infty)$ such that $$f\left(\frac{x^2}{f(x)}\right)=x.$$ My try: it is clear that $f$ is surjective. And because it is monotone it must also be injective. Therefore we can take $f^{-1}$ from both sides: $x^2 = f(x) \cdot f^{-1}(x)$. We can take $x = f(y)$ (because of surjectivity) and get that: $\frac{f(y)}{y} = \frac{f(f(y))}{f(y)}$. So, if we define $g(x) = \frac{f(x)}{x}$ we have that $g(y) = g\big(f(y)\big)$ and I was hoping to prove that $g$ is injective so we would have $f(x) = x$ only. But I couldn't figure that last step. There may be a better way to deal with this problem. EDIT: There is another solution on AOPS, .


What to do with titles/keywords/description for multiple pages

First: I'm not looking for specific solutions, I'd like this to be a bit more broad to support other peoples similar situations.  I'll keep it short (unless more info is requested). I'm managing a webshop and there's a problem I keep getting, Google Webmasters gives me something along these lines:     3000 duplicate titles   3000 duplicate descriptions   95% of these are my product overviews. Some finctional examples:     example.com/products/watches (page 1)   example.com/products/watches (page 2)   example.com/products/watches (page N) Or example.com/products/bracelets (page 1)   example.com/products/bracelets (page 2)   example.com/products/bracelets (page N) Etc     I have no good solution thusfar to fix this. These pages are dynamic, I might have:     /men,watches,rings,brandname (page 1 - N)   /watches (page 1 - N)   /brandname (page 1 - N) /woman,bracelet,silver (page 1 - N)     As you can see, might be a brand, might be a category, or both. I can't just take a snippet of a brand, because that means every page containing that brand will have duplicate titles again. I cant take some text from the (first) category, because all combinations where that category is first will have, again, the same title.  I'm out of ideas. I have a canonical tag to indicate multiple pages, I have link rel="prev|next" in my head and I can't seem to find any good topics about this.  How can I fix duplicate titles for multiple product overview pages?


Are there any major differences between <button type="button" name="theButton">SUBMIT</button> and <input type="submit" value="SUBMIT" name="theButton" />  Also, can you use <button type="submit" name="theButton">SUBMIT</button>?


What is the advantage of measuring an angle in radian(s)?

What is the advantage and use of measuring an angle is radian(s) compared to degree(s)? My book suddenly switched to radian(s) for measuring an angle in this grade and I do not know why.


A friend asked me for help...  Problem  Given a document class like book.  Consider the package biblatex calling the option backend=bibtex.  (My .bib-file is written in bibtex format i.e. @article{...}.)  Is it possible to have the bibliography as follows:     Family Name, Initials. (Year). Title. Journal, Volume(Number), Pages.   Examples  As an example with one aurthor:     Porter, M. E. (1996). What is strategy? Harvard Business Review, 74(1), 61-78.   As an example with two authors:     McMullen, J. S. & Shepherd, D. A. (2006). Entrepreneurial action and the role of uncertainty in the theory of the entrepreneur. Academy of Management Review, 31(1), 132-152.   Code  The .tex-file looks like:  \documentclass[12pt]{book} \usepackage[backend=bibtex]{biblatex} \bibliography{Bibliography.bib} \begin{document} Reference:~\cite{ItemName} \printbibliography \end{document}   The .bib-file looks like:  @article{ItemName, title = {Title}, year = {Year}, journal = {Journal}, author = {Eisenhardt, Kathleen M. and Graebner, Melissa E.}, doi = {10.1098/rspb.2008.0355}, number = {Number}, pages = {Pages}, volume = {Volume}, publisher = {Publisher}, url = {http://www.google.de} }


I have the minimal document here: \documentclass{article} \usepackage{unicode-math} \usepackage{listings}  \setmainfont{Stix} \setmathfont{Latin Modern Math} \setmonofont{Fira Mono}  \begin{document} this is λ lambda $$\int_0^\infty λ\lambda$$ \begin{lstlisting} # some random pseudocode using unicode def function(λ):      αδ = βθ  def function( λ):      pass \end{lstlisting} \end{document}  producing with lualatex:  Look at how the unicode characters are rendered in the listing, but not in the right place.


Why are images from my brand-new Canon camera numbered starting in the 9000s instead of from 0001?

I just bought the brand-new Canon 80D from Amazon, along with new memory card 64GB. When I took the first few pictures, I see that the file names start from "IMG_9545.jpg", "IMG_9546.jpg" and so on ...  I suppose that if the brand-new camera with new memory card, then the pictures should start from "IMG_0001.jpg". I also formatted my card.  Does that mean my Camera already used? Or is it the normal way how file names should be?


How can I print the table of contents multiple times in my document?

I am using also titletoc to improve how my table of contents. I would like to print the table of contents several times. How can I do it?  It does not work in the MWE:  \documentclass{article} \usepackage[utf8]{inputenc}  \begin{document}  \tableofcontents  \section{Hello} \section{Bye}  \tableofcontents  \end{document}     PS: I have this code in my document, in order to have no title for the table of contents.  \makeatletter \renewcommand\tableofcontents{%     \@starttoc{toc}% } \makeatother   PPS: \renewcommand{\contentsname}{}% Remove \tableofcontents' title/name will not work since I am using [french]{babel}.


Shutdown, logout, restart not working in 13.10

I am using Ubuntu 13.10 and have installed compiz settings manager and cairo dock. The top right corner which gives you option for    about this computer system settings  shutdown  restart  logout and others seems to have a problem   All options are working except shutdown, logout, suspend, restart. Whenever I click on them nothing happens and sometimes this icon disappears from this tray.  How can I fix this?


Creating fishnet grid with specified rotation angle in ArcGIS Desktop?

I'm working on this project and I need a grid with a certain rotation, at about 60 degrees, for example.  Starting from that I need to make a block of 20mx50m, and the last thing is that inside each block there must be a small set of sub-blocks.   The result is this:    Of course it's been done manually, but I was thinking of a way of making it done automatically because I must do 30 blocks like this one, maybe more, and it is consuming a lot of my time.


java.lang.NullPointerException in Java ResourceBundle

I am trying to detect and set default browser language for our website and if program is unable to detect then set "en","US" as default.  Here is my code:  private static final Locale locale(){         HttpServletRequest req  = null;         Locale locale           = req.getLocale();                       if(locale==null || locale.equals("") || "".equals(locale)){                 locale = new Locale("en", "US");             }else{                 locale = new Locale(language, country);                          }     return locale;               }         public static String getProperty(final String key) {             ResourceBundle rb = ResourceBundle.getBundle("com.i18n.resource.bundles.LabelBundles.Labels",locale());          String str = null;                   try{             if (rb != null) {                 str = rb.getString(key);                     }                }catch(Exception e){             errorMsg("Resources.ResourceBundle.java:getProperty()", e);         }     return str;     }   Edit Sorry I forget to copy paste stackTrace  java.lang.NullPointerException         at com.i18n.resource.Resources.locale(Resources.java:52)         at com.i18n.resource.Resources.getProperty(Resources.java:60)         at com.site.pages.Home.doGet(Home.java:59)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at filters.charsetFilter.filter.CharsetFilter.doFilter(CharsetFilter.java:61)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)         at java.lang.Thread.run(Thread.java:744)


If something costs 45 euros and I will have 100 euro note how to say that I'll need 55 euro back(change)?

From googling I don't see that it's common to say 'I need change from 100 euros'.  So what's the proper way to say this?


I'm trying to create a new plugin to package my latest project.  I'm trying to have this plugin depend on the maven-dependency-plugin to copy all my projects dependencies.  I've added this dependency to my plugin's pom, but I can't get it to execute.  I have this annotation in my plugins main Mojo:  @execute goal="org.apache.maven.plugins:maven-dependency-plugin:copy"   I've tried a few other names for the goal, like dependency:copy and just copy but they all end with a message saying that the required goal was not found in my plugin.  What am I doing wrong?  Secondary to this is where to I provide configuration info for the dependency plugin?


How is the past tense of "error" spelt in British English?  Wiktionary  that it's "errored", but its entry for  doesn't explicitly say it's valid for British English, and I thought it'd get another "r" compared to American English.  This question is not a duplicate of  , because this is asking about spelling, and the other question is about whether using "error" as a verb is "correct" from a prescriptivist perspective.


Intuition behind the Epsilon-Delta definition of continuity?

I understand the epsilon-delta definition of a limit but I do not understand how that relates to continuity  Definition:  Let $f:X \rightarrow \Bbb R$ be a real function, and suppose that $a \in X$ then f is continuous at a if, given any $\epsilon$ in $\Bbb R^+$, there exists $\delta \in \Bbb R^+$ such that $$\lvert f(x)-f(a)\rvert \lt \epsilon\ \text{whenever}\ x \in X  \   \text{and}\ \lvert x-a\rvert \lt \epsilon$$   Would you be able to explain the intuition behind this definition? How does this show that a function is continuous?   Thanks!


Why is triple-DES using three different keys vulnerable to a meet-in-the-middle-attack?

Among other sources,  states that triple DES using three seperate keys (k1, k2, k3) is vulnerable to meet-in-the-middle-attacks, while triple DES using only two keys (k1, k2, k1) is not.  Why is this attack possible if all the keys are different, but not if the first and the third are the same?


If N Bayesians estimate the probability of something, how do you aggregate their estimations?

If N Bayesians all estimate the probability of some event, how do you aggregate their estimates to get a final estimate? (Assume they are all equally trustworthy, or at least you have no reason to favor one over another)  For example, if one says 50%, another 80%, and a third 70%, do you take the mean, median, geometric mean?


Can regularly added content improve SEO and achieve better ranking?

Let's say I add a blog to a mostly static website, or simply publish new content every week. Does that help the site rank better in search engines in any way?


Compute $\lim_{n \rightarrow \infty} \left(\left(\frac{9}{4} \right)^n+\left(1+\frac{1}{n} \right)^{n^2} \right)^{1/n}$

may someone show how to compute $\lim_{n \rightarrow \infty} \left(\left(\frac{9}{4} \right)^n+\left(1+\frac{1}{n} \right)^{n^2} \right)^{\frac{1}{n}}$?  According to W|A it's e, but I don't know even how to start...  Please help, thank you.


Is there a rule for how to handle creative use of spells?

During a fight in a semi-flooded room, one of my players wanted to use Shocking Grasp on the water:     Lightning springs from your hand to deliver a shock to a creature you try to touch. Make a melee spell attack...On a hit, the target takes 1d8 lightning damage, and it can’t take reactions until the start of its next turn.   Wanting to reward him for a creative use of the spell, I allowed it, using an attack roll of AC 10 and hitting all creatures within 10ft of the spot (including caster).  Is there any rule for these situations? I want to reward creativity without unbalancing spells that are meant for single-target use.


In the Avengers movie, was Thor going to kill Captain America during his woods battle with Iron Man?

Thor knew the tremendous and deadly force generated by pounding Mjölnir into something. It sure looks like he was bringing the hammer down on Cap with 'bad intentions'. He has killed many Frost Giants with it and who knows how many other foes have fallen to his onslaught. He even used it to destroy the Rainbow Bridge in the movie 'Thor'.   There's no indication that he knew about the energy/force dissipating quality of Cap's shield or its ability to survive such a powerful strike. He hit the shield hard enough that when the shield diverted the energy away from Cap, all the trees around them were leveled by the 'shockwave'.   Did Thor somehow pickup on Cap or the shield's abilities when Cap bounced his shield off of him and nimbly jumped to the ground from 20' up and was just going to show him who's boss, or was Thor intending to remove this new threat from the gene pool?


json parsing errors "NullPointerException"

I got error NullPointerException in Java.  I am just using JSONParser  String test is   {     "processGroupRevision": {         "clientId":"f98f0e63-0164-1000-6c10-442b4b1fbe8f",         "version":1         },         "variableRegistry":{             "variables": [{                 "variable": {                     "name":"123123123",                     "value":"12322",                     "pr": "..."                  }             }]         } }   And here is the main Code  String test = sb.toString(); System.out.println(test);  JSONParser jsonParser = new JSONParser(); JSONObject jsonObj = (JSONObject) jsonParser.parse(test); JSONArray jsonArray = (JSONArray) jsonObj.get("variable");  System.out.println("==================");  for (int i=0; i<jsonArray.size(); i++) {     JSONObject tempObj = (JSONObject) jsonArray.get(i);     System.out.println(""+(i+1)+" key : " + tempObj.get("name"));     System.out.println(""+(i+1)+" value : " + tempObj.get("value")); }   How can I fix this problem?  Is it in the For loop ?


Recently I have started playing with jQuery, and have been following a couple of tutorials. Now I feel slightly competent with using it (it's pretty easy), and I thought it would be cool if I were able to make a 'console' on my webpage (as in, you press the ` key like you do in  games, etc.), and then have it Ajax itself back to the server in-order to do stuff.  I originally thought the best way would be to just get the text inside the textarea, and then split it, or should I use the keyup event, convert the keycode returned to an ASCII character, append the character to a string and send the string to the server (then empty the string).  I couldn't find any information on getting text from a textarea, all I got was keyup information. Also, how can I convert the keycode returned to an ASCII character?


I need to run MySQL service for my linux 2.16 version with SUSE version 11 distribution. Downloaded the following files and installed all the rpms as under:  MySQL-server-5.5.27-1.sles11.i586 MySQL-client-5.5.27-1.sles11.i586 MySQL-devel-5.5.27-1.sles11.i586 MySQL-shared-5.5.27-1.sles11.i586 MySQL-shared-compat-5.5.27-1.sles11.i586   There was no error during installation and I have confirmed the installed packages via:  rpm -qa|grep -i sql   But the server is not getting started when trying to execute through:  $> mysql   M getting the following as eror msg:  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)   I have checked that in the /etc/init.d location, only mysql entry is there instead of mysqld, is this the reason of the server startup error.  On googling for hours, I have also tried ./mysql start from the same location but getting the following output:  Starting MySQL..The server quit without updating PID file (/var/lib/mysql/ABC2-rahul.pid).   I am new to mysql, any help will be appreciated. Thanks in advance.    I have cheked and found that some configuration files have been in the /usr/share/mysql loaction, and I have copied my-huge.cnf file to /etc location, any comments ?  Following is the content from the same my.cnf file:  [mysqld] port            = 3306 socket          = /var/lib/mysql/mysql.sock skip-external-locking key_buffer_size = 384M max_allowed_packet = 1M table_open_cache = 512 sort_buffer_size = 2M read_buffer_size = 2M read_rnd_buffer_size = 8M myisam_sort_buffer_size = 64M thread_cache_size = 8 query_cache_size = 32M  thread_concurrency = 8  log-bin=mysql-bin  server-id       = 1  [mysqldump] quick max_allowed_packet = 16M  [mysql] no-auto-rehash  [myisamchk] key_buffer_size = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M  [mysqlhotcopy] interactive-timeout


Attempt to invoke virtual method when displaying TOAST?

when you click a button in my activity it starts/displays a DatePickerDialog. When the user selects a date and clicks "ok" i want to run an AsyncTask in the original class (the activity where the button was clicked). Everything works but i want to display to the user a TOAST when the AsyncTask is finished but it keep on getting an error when doing so.  Heres my code:  Button method in the BuyerHomePage.java      public void MeetingCreator(){         CalenderImageButton =     (ImageButton)findViewById(R.id.CalenderImageButton);     CalenderImageButton.setOnClickListener(             new View.OnClickListener() {                 @Override                 public void onClick(View v) {                                 DialogFragment picker = new DatePickerFragment();                                 picker.show(getFragmentManager(), "datePicker");            }         }     ); }   DatePickerFragment.java code   public class DatePickerFragment extends DialogFragment     implements DatePickerDialog.OnDateSetListener {  public static String formattedDate;  @Override public Dialog onCreateDialog(Bundle savedInstanceState) { // Use the current date as the default date in the picker     final Calendar c = Calendar.getInstance();     int year = c.get(Calendar.YEAR);     int month = c.get(Calendar.MONTH);     int day = c.get(Calendar.DAY_OF_MONTH);  // Create a new instance of DatePickerDialog and return it     return new DatePickerDialog(getActivity(), this, year, month, day); }  @Override public void onDateSet(DatePicker view, int year, int month, int day) {     Calendar c = Calendar.getInstance();     c.set(year, month, day);      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");     formattedDate = sdf.format(c.getTime());      BuyerHomePage Meeting = new BuyerHomePage();     Meeting.new MeetingSender().execute(); } }   BuyerHomePage.java (post method in the AsyncTask)  @Override     protected void onPostExecute (String result){          if (result.equals("email sent")) {             //This is where i get the error             Toast.makeText(BuyerHomePage.this, "Email sent!", Toast.LENGTH_LONG).show();         } else {             Toast.makeText(BuyerHomePage.this, "Can't send email", Toast.LENGTH_LONG).show();         }     }   Error Logs:  04-23 02:25:31.631 22071-22071/com.wilsapp.wilsapp E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.wilsapp.wilsapp, PID: 22071     java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference     at android.content.ContextWrapper.getResources(ContextWrapper.java:87)     at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:81)     at android.widget.Toast.<init>(Toast.java:102)     at android.widget.Toast.makeText(Toast.java:259)     at com.wilsapp.wilsapp.BuyerHomePage$MeetingSender.onPostExecute(BuyerHomePage.java:930)     at com.wilsapp.wilsapp.BuyerHomePage$MeetingSender.onPostExecute(BuyerHomePage.java:836)     at android.os.AsyncTask.finish(AsyncTask.java:651)     at android.os.AsyncTask.-wrap1(AsyncTask.java)     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:148)     at android.app.ActivityThread.main(ActivityThread.java:5417)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   if there's any confusion or i need to explain anything please comment! Thank you!


Quick Look support for non-native video files (.avi, .mkv) on Mavericks

In the past, we've been able to get codecs for DivX/XviD/MPEG4 and support for containers like AVI, MKV in Mac OS X's Quick Look feature using  (as per ).  As noted on the Perian site, development has ceased, and future versions may or may not continue to work. It seems with the upgrade to OS X 10.9 "Mavericks", the OS or Quick Look API has changed sufficiently that Perian no longer works.  Are there any alternatives? Ideally a one-app-does-all like Perian, but even a list of individual codecs and/or plug-ins for video container files would be useful.  NB: This question isn't about video players—there are many that support more than those playable via the built-in QuickTime player. This question is about codecs/plug-ins for QuickTime on OS X to allow it and Quick Look (and apps which rely on the OS to play videos) to open/play video files/formats lacking native support.


I have the following question, from Isaacs' Algebra book.  Suppose $F\le E$ is a finite-degree normal field extension, and that $K$ and $L$ are intermediate subfields (between $F$ and $E$).  If $E$ is separable over $K$ and $L$, prove $E$ is separable over $K\cap L$.  I've tried to prove this by recognizing that $E$ is Galois over $K$ and $L$, and then showing $E$ is Galois over $K\cap L$.  Here is my attempt:  Let $M$ be the fixed field of $Gal(E/K\cap L)$, so that $K\cap L\subset M$. Now every element of $Gal(E/K)$ fixes $K\cap L$, and the same is true of $Gal(E/L)$. So $Gal(E/K)$ and $Gal(E/L)$ are subgroups of $Gal(E/K\cap L)$. By the fundamental theorem of Galois theory, $K$ (as the fixed field of the subgroup of $Gal(E/K)$) and $L$ (as the fixed field of the subgroup of $Gal(E/L)$) are fields containing $M$.  Then $M\subset K\cap L$, so $M=K\cap L$ and thus $E$ is Galois over $K\cap L$.  Can someone let me know if this proof works? Or if there is a different way to solve this exercise?


Difference between the use of "a" and "any" in these examples?

I didn't have an idea.      I did not have any idea.   I am much more familiar with the second one. The first one sounds a bit odd to me, but sounds fine if I say:     I did not have even an idea.   But, the first one is also one of the widely used sentences by natives. What is the difference between the two?


"ERROR: Extra }, or forgotten \right." in align* enviroment

Why do I get a "ERROR: Extra }, or forgotten \right." in the following align* environment?  \begin{align*}     \int\left[\left(\der{E_z}{y}-\der{E_y}{z}-\mu\der{\alpha}{t}\right)\alpha&+\left(\der{E_x}{z}-\der{E_x}{x}-\mu\der{\beta}{t}\right)\beta\\     &+\left(\der{E_y}{x}-\der{E_x}{y}-\mu\der{\gamma}{t}\right)\gamma\left.\vphantom{\left(\der{E_y}{x}}\right]d\omega=0.     \end{align*}   thanks