biblatex: Handling secondary ("quoted in") citations

This question and the answer became part of a package:      How can I qoute secondary quotes which I’ve taken form another book.  Example  Jon Doe writes a book an cites Fred Bloggs in it. Now I read the book of Doe an want to cite his cite of Bloggs. So my bibliography entry must look like     Bloggs, Fred: A nice old book, 1850, p. 35. Quoted in Doe, John: A bad new Book, 2011, p. 67.   Doe’s book should not be listed separately in the bibliography.  I know that there’s a bibstring quotedin containing “quoted in” (p. 159 of biblatex’s manual) but I don’t know if theres a (predefined) way to use it …  Update  It seems that there’s no predefined way, so I decided to use userc for crossreferences like this. This works for the bibliography but not for cite commands. At the moment I create the “in text cite” manually.  It would be great to have a macro like  \QIautocite[<prenote a>][<postnote a>]{<author a>}[<prenote b>][<postnote b>]{<author b>}   that expands to the above given example.  That’s my new code, which gives the right results for bibliography and “in text cite” but the latter not automatically …  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @BOOKLET{autora,   title = {A nice old book},   userc={autorb},   author = {Fred Bloggs},   year = {1850}, } @BOOKLET{autorb,   title = {A bad new book},   author = {Jon Doe},   year = {2011}, } \end{filecontents}  \documentclass[ngerman]{scrartcl}  \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc}  \usepackage{babel,csquotes,blindtext}  \usepackage[%     bibstyle=authortitle,     citestyle=verbose-ibid, ]{biblatex} \addbibresource{\jobname.bib}  \NewBibliographyString{bibcitedas} \DefineBibliographyStrings{german}{%   bibcitedas = {{zitiert als}{zit. als}}, }  % Put the 'quoted in text' behind the bibentry. \renewbibmacro*{finentry}{%   \ifbibliography{%     \iffieldundef{userc}{}{%       \newunit\bibstring{quotedin}\addspace\fullcite{\thefield{userc}}     }   }{}%   \finentry% }  \begin{document} \blindtext \begin{quotation}     \blindtext\footnote{\cite[36]{autora}. Zit. nach \cite[89]{autorb}} \end{quotation} \blindtext\footnote{\cite[36]{autora}. Zit. nach \cite[89]{autorb}}  \printbibliography \end{document}   Example 2  In addition to my comment (Hi @Audrey. This works fine :-) but theres a little thing …) on Audrey’s answer:  If I use the quotecite command like this  \quotecite[1]{reese}[5]{weinberg} \quotecite[1]{reese}[5]{weinberg} \pagebreak \quotecite[1]{reese}[5]{weinberg} \quotecite[1]{reese}[5]{weinberg}   the footnotes should look like       1 Reese [full cite], p. 1. Zit. nach Weinberg [full cite], p. 65   2 Ebd.   ———— page break ————   3 Rese [short cite], p 1. Zit nach Weinberg [short cite], p. 65   4 Ebd.   Everything works like expected except footnote 3 which is     3 Rese [short cite], p 1. Zit nach Weinberg [full cite], p. 65     at the moment  Update 2  Since it seems not possible to react to autocite I created a new plain command with  \DeclareMultiCiteCommand{\quoteciteplain}[\cbx@qcwrapperplain]{\cbx@quotecite}{\cbx@qcdelim}  \newrobustcmd{\cbx@qcwrapperplain}[1]{%   \global\toggletrue{cbx@isquote}%   #1%   \global\togglefalse{cbx@isquote}%   \global\togglefalse{cbx@iflastibid}%   \global\togglefalse{cbx@ifquoteepost}%   \global\togglefalse{cbx@ifquoterpost}}


How to identify the correct power supply for a device

I imported a lamp from China to the UK, which came with a power supply terminated with a Chinese 2-pin plug. I'd like to use a UK-made power supply, but am not sure what I need to purchase.  I have been browsing for "12V 1A" power supplies on eBay/Amazon, and some mention a Wattage (e.g. 12W). Is this also a factor I need to consider?  The base of the smart lamp mentions "9W":    I can see "0.5A" mentioned on the Chinese power supply, which is obviously not the same as the "1A" written below it, so presumably refers to another variable that I need to consider.    not my pictureAlternatively, I could source a "travel adapter" and use the original power supply through a China to UK plug adapter, however I do not know how safe this is for long term use. I have read many scare stories online about "Chinese" plugs being unsafe and a fire hazard, but without much information as to what makes them "unsafe" so what to look for in a "safe" plug!  (not my picture)


I'm trying to get the https://domain.ltd redirected to https://www.domain.ltd on Nginx (note the www), here's the config:  server {     listen 80;     server_name domain.ltd;     return 301 https://www.$host$request_uri; } server {     listen 443;     server_name domain.ltd;     return 301 https://www.$host$request_uri; } server {     listen 443 ssl;     server_name www.domain.ltd domain.ltd;     ...main config goes here }   What I found strange is that all other options work fine:  http://domain.ltd redirects to https://www.domain.ltd  http://www.domain.ltd redirects to https://www.domain.ltd  https://www.domain.ltd works too  But no way for https://domain.ltd, it only shows ERR_CONNECTION_REFUSED.  What's the problem with configuration? How do I solve it?  UPD. I have both www.domain.ltd and domain.ltd included in my SSL cert, so there's no reason not to work


Installed Ubuntu (dual boot) and now Windows 8 doesn't boot

It shows this whenever I try to boot Windows from grub  error: can't find command 'drivemap'. error: invalid EFI file path.  Press any key to continue...   I've tried the automatic boot repair and that didn't work. Anyone know how to fix this? I did make a seperate partition in my D drive for Ubuntu so Windows should still work.  Boot repair info here:


How do i create a flow line map for my data?

I am trying to illustrate a passenger travel flow map from a road terminal to several destinations on a road layer.  I have QGis and ArcGIS, but I don't know much on how to start the work.  I already have the road terminal and all the various destinations datasets. I also have data on the number of passengers moving to all the various destinations.  Can someone assist me with some guide?


Fix blank database entries on page load?

I have a form on an HTML webpage that sends a user's comment and name to a MySQL database table, where it is stored, and then included back onto the page. The problem is, if the user's name has an apostrophe in it, the server (I pay for hosting, it's not my server and I can't change the configuration on it) is sending them to a error page that says:  "The requested URL was rejected. If you think this is an error, please contact the webmaster. Your support ID is: 13509873612934211694"  UPDATE:  I just completely rewrote the page using a different php format. Now the apostrophe issue and the server error is fixed. However, the page is sending blank entries to the database on every page load. Any ideas?    <?php    $servername = "my_server";   $username = "my_username";   $password = "my_password";   $dbname = "my_database";   $users_name = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8');   $users_request = $_POST['requests'];   if ($_SERVER["REQUEST_METHOD"] == "POST") {      }   try {      $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username,      $password);      $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);      $conn->beginTransaction();      $conn->exec("INSERT INTO submissions (requests, name)      VALUES ('$users_request', '$users_name')");      $conn->commit();          header("Location: clv3.php");      }  catch(PDOException $e)      {      $conn->rollback();      echo "Error: " . $e->getMessage();      }  $conn = null;  ?> <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Make A Request:
 <textarea name='requests' id='requests'></textarea>
 Your Name (a-z only):
 <input type='text' name='name' id='name'/>
 <input type='submit' value='Send' class='button'>   </form>


Spivaks Calculus. Conics Section. Change of coordinates system

I have a question regarding the conics section of Spivak calculus and  the way he derives the final equation. I understand everything that he is doing up until:  Now we have to choose coordinate axes in the plane P. We can choose L as the first axis, measuring distances from the intersection Q with the horizontal plane (Figure 5); for the second axis we just choose the line through Q parallel to our original second axis. If the first coordinate of a point in P with respect to these axis is x, then the first coordinate of this point with respect to the original axes can be written in the form $$\alpha x+\beta$$ for some $\alpha$ and $\beta$  Now, I understand everything before that, and why he is changing coordinates from the 'standard' ones, xyz, to coordinates within the plane, so he can express the intersection of the cone and the plane in a equation. But the thing is how does he justify that there is some $\alpha$ and some $\beta$ that satisfy this condition for all x ? He just claims that such values exist, with no proof.  For anyone not familiarized with this chapter, i leave it down here so you can read it.   One of the simplest subsets of this three-dimensional space is the (infinite) cone illustrated in Figure 2; this cone may be produced by rotating a "generaling line," of slope C say, around the third axis.  For any given first two coordinates x and y, the point (x,y,0) in the horizontal plane has distance $$\sqrt{x^2+y^2}$$ from the origin, and thus $$\tag1 (x,y,z)\text{ is in the cone if and only if }z=\pm C\sqrt{x^2+y^2}$$. We can descend from these three-dimensional vistas to the more familiar two-dimnensional one by asking what happens when we intersect this cone with some plane P (Figure 3).  If the plane is parallel to the horizontal plane, there's certainly no mystery--the intersection is just a circle. Otherwise, the plane P intersects the horizontal plane in a straight line. We can make things a lot simpler for ourselves if we rotate everything so that this intersection line points straight out from the plane of the paper, while the first axis is in the usual position that we are familiar with. The plane P is thus viewed "straight on," so that all we see (Figure 4) is its intersection L with the plane of the first and third axes; from this view-point the cone itself simply appears as two straight lines.  In the plane of the first and third axes, the line L can be described as the collection of all points of the form $$(x,Mx+B)$$, where M is the slope of L. For an arbitrary point (x,y,z) it follows that $$\tag2 (x,y,z)\text{ is in the plane }P\text{ if and only if }z=Mx+B.$$ Combining (1) and (2), we see that (x,y,z) is in the intersection of the cone and the plane if and only if $$\tag{$*$} Mx+B=\pm C\sqrt{x^2+y^2}.$$ Now we have to choose coordinate axes in the plane P. We can choose L as the first axis, measuring distances from the intersection Q with the horizontal plane (Figure 5); for the second axis we just choose the line through Q parallel to our original second axis. If the first coordinate of a point in P with respect to these axis is x, then the first coordinate of this point with respect to the original axes can be written in the form $$\alpha x+\beta$$ for some $\alpha$ and $ \beta$. On the other hand, if the second coordinate of the point with respect to these axes is y, then y is also the second coordinate with respect to the original axes.  Consequently, (*) says that the point lies on the intersection of the plane and the cone if and only if $$M(\alpha x+\beta)+B=\pm C\sqrt{(\alpha x+\beta)^2+y^2}.$$ Although this looks fairly complicated, after squaring we can write this as $$\alpha^2C^2y^2+\alpha^2(M^2-A^2)x^2+Ex+F=0$$ for some E and F that we won't bother writing out. Dividing by $\alpha^2$ simplifies this to $$C^2y^2+(C^2-M^2)x^2+Gx+H=0.$$


Is there a conflict between the xkeyval and alterqcm packages?

When I try to compile the code for this  or its , I have an error. A year ago, I didn't have that mistake.     Package xkeyval Error: language' undefined in familiesglobal'.   \documentclass[12pt]{article} %\usepackage[utf8]{inputenc} %\usepackage[upright]{fourier} \usepackage{alterqcm}  \parindent0pt \begin{document} \begin{alterqcm}[lq=8cm,language=english]   \AQquestion{Question}{%   {Proposition 1},  {Proposition 2},  {Proposition 3}}   \end{alterqcm}  \end{document}   What's the problem now?


What does 1 with an inequality in the subscript mean?

I have not seen the following notation before (the 1 with a subscript in the density):     Consider the problem of sampling from the truncated normal   distribution $\mathcal{N}_t (\mu, 1, a)$, given by the random variable $X ∼ \mathcal{N} (\mu, 1)$ conditional on the event $\{X \geq a\}$. Its density is proportional to      $$f(x) \propto \mathrm{exp}\{-\frac{(x-\mu)^2}{2 \sigma^2}\}1_{x \geq a}$$   What exactly does that mean?


Prove that $$\sin(x) +\sin(3x)+\cdots + \sin((2n-1)x) = \frac{\sin^2(nx)}{\sin(n)}$$ where $n=1,2,3,\cdots$  This was done by my prof in lecture, but he went pretty quickly and I didn't really grasp what he was saying. Can anyone explain the proof for this problem?


Explain why $\int_0^\infty\frac{\sin{4x}}{x}\prod\limits_{k=1}^n \cos\left(\frac{x}{k}\right) dx\approx\frac{\pi}{2}$

Why do we have, for every $n\in\mathbb N$, $$\int_0^\infty\left(\prod_{k=1}^n \cos\left(\frac{x}{k}\right)\right)\frac{\sin{4x}}{x}dx\approx\frac{\pi}{2}\ ?$$


I am from Singapore and I am about the graduated from PhD. My field is in software engineering, computer science.  I plan to further my study as postdoc in US, looking at my friends, it seems that although some of them have 1-2 top ranked publications in  conference, but they are hard to secure a desired postdoc position in US.   I wish to get a postdoc position in US, hopefully in some top research labs, is there anyone has some general recommendations on how to improve one's chance in getting those labs in US?


How set terminal to show previous command with up arrow only once if the same command was ran multiple times

With an up arrow, I can get the previous command but the same command show multiple times. What can I do to make every command show only once and navigate through them faster?


I have been running MAMP Pro (1.9.6.1) on a 2011 MacBook Pro for the last three years. PHP 5.2.17 / MySQL 5.5.9  I wrote a .php-driven site to store info about my radio show. It has run without any problems or any errors.  I have upgraded to a new MacBook Pro running MAMP Pro 3.0.7.3 - PHP 5.6.2 / MySQL 5.5.38. The scripts that were running solidly, without error, in the first set up are producing unexpected results in the second set-up.  I am 90% certain that this is due to how either .php or MySQL are handling single quotes / apostrophes in my new set up.  INSERT queries that feature ' characters aren't being successfully inserted into the database.  e.g  INSERT INTO song_info      (artist_id, title_id, composer_id, publisher_id, album_id,      album_track, label_id, cat_no, format, howsent, song_rating,      duration, intro, fade, year, medium, release_date, recommended,      cymraeg) VALUES      ('2', '2', '2', '2', '2', '99', '2', 'voom001', 'album_track',      'direct', '6', '3'01', '0'36', '2'50', '2015', 'vinyl',      '2015-03-19', '0', '0')   The queries execute successfully if there are no ' characters within the values I want to insert into the database.  The queries with ' characters in the values I want to insert into the database execute successfully on the previous set-up.  The scripts are exactly the same.  I don't want to start changing the scripts - escaping the ' characters within the .php - because I'm pretty sure this is a config issue, I just don't know where / what to change.  These scripts run locally on the laptop. They're not accessible to anyone else, nor will they be.  So although I'm aware there are real security issues inherent in coding like this, I'll address those when I upgrade the (thousands of lines of) code in due course.  I need to quick temporary fix so that I can complete my work. Then I'll begin work on upgrading the code properly.  I'm using the mysql_ functions. Again, will upgrade to mysqli_ when I have an opportunity to do so.


When someone tries to connect my server he gets "connection times out". I know this question was asked a lot, but any other solution didn't help for me.  So the common problem is that the port is blocked so I've tried this.   My server.properties is:  #Minecraft server properties #Tue Nov 04 21:09:39 IST 2014 spawn-protection=16 max-tick-time=60000 generator-settings= force-gamemode=false allow-nether=true gamemode=0 enable-query=false player-idle-timeout=0 difficulty=1 spawn-monsters=false op-permission-level=4 resource-pack-hash= announce-player-achievements=true pvp=true snooper-enabled=true level-type=DEFAULT hardcore=false Minecraft=server properties enable-command-block=true max-players=20 network-compression-threshold=256 max-world-size=29999984 server-port=25565 texture-pack= server-ip= spawn-npcs=true allow-flight=false level-name=world view-distance=10 resource-pack= spawn-animals=true white-list=false generate-structures=true online-mode=true max-build-height=256 level-seed= enable-rcon=false motd=A Minecraft Server


how to change the onclick javascript button to lightning component?

can any one help in changing the onclick javascript button to lightning component?..becasuse javascript button are not supported in lightning.  {!REQUIRESCRIPT("/soap/ajax/37.0/connection.js")}  var Suite = '{!Contract__C.Suite__c}'; var check = '{!Contract__C.Notification_check__c}'; var amount= '{!Contract__C.amount__c}'; var blackReview = '{!Contract__C.black_Review__c}';  var blackReview= blackReview!= '' && blackReview!= 'No'; var Suite = Suite != ''; var amount= Number(amount.replace(/[^0-9\.]+/g,"")); amount = amount>=1000.00; //alert(blackReview+" "+ amount+" " +Suite );  if ((amount|| blackReview|| Suite)&& check == 0){ var con= new sforce.SObject("Contract__C"); con.id = "{!Contract__C.Id}"; con.Notification_check__c = 1; result = sforce.connection.update([con]); }


I am trying to make an array of N+1 bins for a distribution of N discrete scores.  I assumed numpy's arange could be used for that. However, the function gives me odd values, which have a significant effect on the resulting numpy histograms. Here's a minimal example:  n = 10 a = np.arange(0, 1.01 + 1/n, 1/n)  print(a) for i in a:     print(i)     [0.  0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.  1.1]  0.0 0.1 0.2 0.30000000000000004 0.4 0.5 0.6000000000000001 0.7000000000000001 0.8 0.9 1.0 1.1   The fact that simply printing the array outputs seemingly normal values is extra misleading. This is a big issue if I want to use this array as a bins argument to numpy's histogram() function because my values are k/10 decimals. In particular, all data points with the value of 0.7 will be placed in the [0.6000000000000001, 0.7000000000000001] bin, whereas I'd expect them to be inside [0.7, 0.8], as per np.histogram() documentation.  The question is whether this is a bug or a feature.


$f$ be a continuous function on $\mathbb{R}$ st $\lim\limits_{x \to \infty} f(x) = L^{+}$ and $\lim\limits_{x \to -\infty} f(x) = L^{-}$

I'm working on this problem  Let $f$ be a continuous function on $\mathbb{R}$ such that $\lim\limits_{x \to \infty} f(x) = L^{+}$ and $\lim\limits_{x \to -\infty} f(x) = L^{-}$. Prove that for any real $c$ strictly between $L^{+}$ and $L^{-}$ there exists $x \in \mathbb{R}$ such that $f(x) = c$   Edits: assume $L^{-}$ and $L^{+}$ are real numbers, $L^{-} < L^{+}$  This is trivial if we could get this into the form of $f:[a,b] \rightarrow \mathbb{R}$ and $f(a) < c < f(b)$ because we could use the intermediate value theorem. To get it int that form, my intuition says that we can pick an $a, b \in (-\infty, \infty)$ such that $L^{-} < f(a) < c < f(b) < L^{+}$ and then apply IVT, but I was wondering if one would need to show that more rigorously, and if so, how? My attempt Show that exists $a \in (-\infty, \infty)$ such that $L^{-} < f(a) < c < L^{+}$. Proof by contradiction, assume $\forall a \in (-\infty, \infty) \; f(a) \leq L^{-}$. But $$\begin{align} \lim\limits_{x \to \infty} f(x) = L^{+} &&\text{given}\tag{1}\\ \forall \epsilon > 0 \; \exists X, \forall x \geq X \; &&|f(x) - L^{+}| < \epsilon &&\text{definition of limit}\tag{2} \\ \forall \epsilon > 0 \; \exists X, \forall x \geq X \; &&-\epsilon + L^{+} < f(x) < \epsilon + L^{+}&&\text{expand abs value}\tag{3} \\ \forall \epsilon > 0 \; \exists X, \forall x \geq X \;&&L^{-} < -\epsilon + L^{+} < f(x) < \epsilon + L^{+} &&\text{choose epsilon, archimedean property}\tag{4} \\ &&f(a) \leq L^{-} < -\epsilon + L^{+} < f(x) < \epsilon + L^{+} &&\text{assumption}\tag{3} \\ \end{align}$$ Then we have $\forall a \in (-\infty, \infty) \; f(a) \leq L^{-}$ but this contradicts, for the right choice of $\epsilon$ and $X$ $\forall x > X, \; L^{-} < f(x)$ Therefore must exists $a \in (-\infty, \infty) \text{ such that } L^{-} < f(a)$. By similar argument we can say, $\exists a \in (-\infty, \infty) \text{ such that } L^{-} < f(a) < c$ and $\exists b \in (-\infty, \infty) \text{ such that } c < f(b) < L^{+}$. Finally we get to $f(a) < c < f(b)$ and we know that $f$ is continuous on $[a, b]$ since $[a, b] \subset (-\infty, \infty)$. Then we apply IVT to finish.


Software for drawing the shape of magnetic fields for different shaped magnets

I've been looking for some time on the Internet, for software or some system in order to  draw magnetic fields based on the geometry of a magnet. Is there a specific software for this? I hope this won't be a silly idea but how will be the geometry of the magnetic field of a Moebius strip? Or other shapes?


How to Calculate the Complexity of an Algorithm

I'm completely new when it comes to computational theory, and I've been asked to describe what the computational cost (as a function of n) is for a python function. I'm a bit confused on how to do this. Am I to plug in different inputs and then calculate the difference between the run time of the algorithms? And if I did that how would I describe it as a function of n? Sorry if this is a very beginner level question, I'm very new to this topic and I'd love some further explanation as well as some guidance on how to apply it to a real function using python.


I am on 19.10 release which is not LTS, 20.x will be released in April, that time will I able to upgrade directy from 19.10 or I do downgrade to latest 18.x release for next LTS upgrade ?


Why does byte[] value change on return from SQlite DB [Android]

I'm saving captured fingerprint image into my SQLite db as a byte array cos it really small size wise like this.  byte[] template = new byte[....];   Then i log and get a value like [B@41d25378. That's what's sent it my sqlite db in a blob column.  The problem now is that when i retrieve this value from my db,   byte[] photo = cursor.getBlob(cursor.getColumnIndex("fingerprint"));   i log the value and its totally different [B@420447f8 but this is what i want [B@41d25378. As such, i'm unable to match finger print as what is being returned is different. How can i get the same byte[] value back.   I've tried using strings too but can figure out a way to get an exact match back. Thanks in Advance...


Suppose square matrix $A$ with order-n, and $A^*$ is it's adjugate matrix, when $n>2$, prove: $\left(A^*\right)^*=\left|A\right|^{n-2}A$  Proof:     when $A$ is invertible, $A^{-1}=\frac{1}{|A|}A^*$, so $A^*=|A|A^{-1}$, and then   \begin{align}  \left(A^*\right)^*   = \left|\left(|A|A^{-1}\right)\right|          \left(|A|A^{-1}\right)^{-1}   = \left|A\right|^n\left|A\right|^{-1}A|A|^{-1}   = \left|A\right|^{n-2}A \end{align}   how about the case $A$ is not invertible?   $|A|=0$, then seems we should show $\left(A^*\right)^*=0$


How to install hp scanjet 200 in Ubuntu 12.04?

Unable to scan with hp scan-jet 200. When I type lsusb command in terminal it shows the scanner details.  I opened the simple scan which displays no scanners found, and x sane image scanners also displays the same error.


Calculate center of mass multiple integrals

Can you help me with this problem?  Find the center of mass of a lamina whose region R is given by the inequality:   and the density in the point (x,y) is :    The region r is this one:    Is this the proper way to set up the integral for m:  $$\int_{-1}^{1}\int_{-x-1}^{x+1} \ e^{x+y} \ dy \ dx$$  Any help?  Thanks


RegEx to matching phone numbers with specific pattern

I want to be able to catch these type of phone formats  +xxx xxx xxx xxx +xxx.xxx.xxx.xxx +xxx xxxxxxxxx +xxx-xxx-xxx-xxx +xxxxxxxxxxxx xxxx xxx xxx xxxx xxxxxx xxxx.xxx.xxx xxxx-xxx-xxx xxx-xxx-xxx xxx.xxx.xxx xxxxxxxxxx xxxx xx xx xx xxxx.xx.xx.xx xxxx-xx-xx-xx   For the moment I am having this regex  /^[+]?(\d{1,2})?[\s.-]?\(?\d{4}\)?[\s.-]?\d{3}[\s.-]?\d{3}$/   which catches some of the examples, but no idea how to make it work for the other formats too


\documentclass[a4paper,12pt, twoside]{article} \usepackage{enumerate} \renewcommand{\baselinestretch}{1.5} \usepackage{amsmath,  amsthm,  amsfonts, mathrsfs, latexsym, amssymb, pstricks,graphicx,setspace,textcomp} \usepackage{pdfpages,caption} \usepackage[round]{natbib}  \bibliographystyle{apa} \usepackage{cite} \usepackage{nomencl} \usepackage{graphicx} \usepackage{float} \usepackage{underlin} \usepackage{url} \usepackage{longtable} \usepackage{titletoc} \usepackage{titlesec} \usepackage[normalem]{ulem} \usepackage{hyperref} \usepackage{caption} \usepackage{parskip} \setlength{\parindent}{20pt} \usepackage{setspace}  \usepackage{lipsum}  \usepackage{pdflscape}  \usepackage{multirow} \usepackage[utf8x]{inputenc} \begin document \begin{landscape} \chapter*{Plan of work} \begin{tabular}{|c|*7{p{32mm}|}} \hline \multirow{2}{*}{Task}  &  \multicolumn{6}{c|}{Duration}\\ \cline{2-7}  & Jan-15 to May-15 & June-15 to Dec-15 & Jan-16 to May-16 & June-16 to Dec-16 & Jan-17 to May-17 & June-17 to Dec-17\\ \hline \multirow{2}{*}{Course Work} &   &  &&&&\\ \cline{2-7} &  &  &&&&\\ \hline \multirow{2}{*}{Literature Survey} &&&&&&\\ \cline{2-7} &&&&&&\\ \hline \multirow{2}{*}{Develop CZM }   &&&&&&\\ \cline{2-7} &&&&&&\\ \hline \multirow{2}{*}{Fracture Toughness}  &&&&&&\\  \cline{2-7}  for pure modes &&&&&&\\ \hline \multirow{2}{*}{Applying to mixed }  &&&&&&\\ \cline{2-7}   mode cases &&&&&&\\ \hline \multirow{2}{*}{Publications and }  &&&&&&\\ \cline{2-7}  Thesis Preparation &&&&&&\\ \hline \end{tabular} \newpage \end{landscape} \end document


Why can't lualatex in MiKTeX find stmaryrd fonts unless pdflatex is run first?

MNWE: \documentclass{acmart} \usepackage{stmaryrd} \begin{document} $\Mapsto$ \end{document}  Running lualatex on this file gives a log containing luaotfload | cache : Lookup cache loaded from C:/Users/Jason/AppData/Local/MiKTeX/2.9/luatex-cache/generic-dev/names/luaotfload-lookup-cache.luc. luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "Font stmary9  not found.". luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate. luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate. Missing character: There is no Z (U+005A) in font stmary9!  What does this mean?  And, perhaps more confusingly, why does it disappear if I run pdflatex on my document before running lualatex? (Perhaps this last has something to do with the pdflatex log entry miktex-maketfm: security risk: running with elevated privileges Making stmary9.tfm from "D:\Program Files\MiKTeX 2.9\fonts/source/public/stmaryrd\stmary9.mf"... Running miktex-mf.exe... miktex-mf: security risk: running with elevated privileges This is METAFONT, Version 2.7182818 (MiKTeX 2.9.7400 64-bit)  (D:\Program Files\MiKTeX 2.9\fonts/source/public/stmaryrd\stmary9.mf  ?) Full lualatex log available , full pdflatex log available .


$$\sum_{k=0}^\infty \frac{k+1}{3^k}$$  Steps:  $$\sum_{k=0}^\infty \frac{k}{3^k} + \sum_{k=1}^\infty \frac{1}{3^k}$$  $$Sn = \frac {a1(1-r^n)}{1-r}$$  $$r = \frac{second term}{first term}$$ $$a1 = \frac {1}{3^0}$$ $$a2 = \frac {1}{3} + \frac {1}{3^1}$$  $a1 = 0+1 = 1$ a2 = $\frac{2}{3}$  r = 2/3  $$S∞ = \frac {a1(1-r^∞)}{1-r}$$ $$S∞ = \frac {1(1- (2/3)^∞)}{1-(2/3)}$$ $$S∞ = \frac {1(1- 0)}{1-(2/3)}$$ $$S∞ = \frac {1}{1/3}$$ $$S∞ = 3$$  Here I get the sum being equal to three when in fact it is apparently 9/4. I am finding very limited information on how to solve infinite sum of series.


What are the Yongnuo flash naming conventions?

I'm trying to get an idea of which Yongnuo flash will fit my requirements. I'd like to have a flash to pair with my SB-900 with TTL support for use both on and off camera (Nikon CLS-compatible). My camera is the Nikon D7000.  Power and flash zooming are not really important to me.  I'd be much happier with answers that let me understand Yongnuo's flash lineup. Thank you in advance!


Easy way to use variables of enum types as string in C?

Here's what I am trying to do:    typedef enum { ONE, TWO, THREE } Numbers;   I am trying to write a function that would do a switch case similar to the following:   char num_str[10]; int process_numbers_str(Numbers num) {   switch(num) {     case ONE:     case TWO:     case THREE:     {       strcpy(num_str, num); //some way to get the symbolic constant name in here?     } break;     default:       return 0; //no match   return 1; }   Instead of defining at every case, is there a way to set it using the enum variable like I am trying to do above?


My university has a captive portal login. Each user is given a username and a password. For Wpa, if you go to Edit-> Preferences and type IEEE 802.11, you can decrypt wireshark data. How can i decrypt data that is on a captive portal? Since everyone has their own username and password to access the internet, data will also be encrypted in 802.11 frames right? If anything doesn't make sense, please ask?  Thank You


When a new tag is created, should there be some kind of notification to the user?  This could serve a dual purpose:   To make the user check that this tag is really required.  Is it spelt right? Might there be a more appropriate tag to use instead? - See  To promote the creation of tag wikis.   These are both beneficial to the site.  Making users think twice about their tags reduces the amount of retagging edits that are needed and reduces noise.  Promoting tag wikis means that more new tags would come with explainations, making them more user-friendly for others.  Creating a new tag is a privilidge earned at 1500 reputation.  Hopefully the user has gained a feel for the ethos of SO by this point, and is either enjoying being a contributer or is mainly asking good, well recieved questions.  The user is probably also wanting to contribute to the site further (even if just to gain reputation), and so it makes sense to me that there should be a gentle push towards taking a little bit of time to write a short wiki for the tag you just created.  By no means should this be mandatory, and the precise format of this gentle push is more in the scope of UX guys to think up, but I wanted to see how people felt about some kind of discreet notification.  I thought of two forms this notification could take:  Option 1 - at the time of tagging      Option 2 - after posting      Update: Raphael has suggested in the comments that this could be implemented as a 10K user tool.  While I think that's a good idea on its own, I don't think it should be used instead.  I think that encouraging users with less than 10K to complete wikis for their own tags is likely to get some wikis written because there is a sense of ownership over your own tag, and by giving it a wiki you are giving it a better start in life. As with a child, users will want to equip their tag with the tools it will need to survive in the big wide world.


Maximum number of files in one ext3 directory while still getting acceptable performance?

I have an application writing to an ext3 directory which over time has grown to roughly three million files. Needless to say, reading the file listing of this directory is unbearably slow.  I don't blame ext3. The proper solution would have been to let the application code write to sub-directories such as ./a/b/c/abc.ext rather than using only ./abc.ext.  I'm changing to such a sub-directory structure and my question is simply: roughly how many files should I expect to store in one ext3 directory while still getting acceptable performance? What's your experience?  Or in other words; assuming that I need to store three million files in the structure, how many levels deep should the ./a/b/c/abc.ext structure be?  Obviously this is a question that cannot be answered exactly, but I'm looking for a ball park estimate.


I found an article and they described different characteristics in table without using common variability measures like SD, IQR, 25-75th precentile but Bootstrapped bias  corrected and  accelerated 95%  confidence intervals. Unfortunately, the article's method section did not add any clarification.  I find this really clever since p-values can be avoided and all one-by-by one comparisons are possible by eyeballing. How can it be calculated in R? Any table or crosstable package allowing to calculate these CIs automatically? Could the same CIs can be calculated for proportions? In this paber, they reported patients as N and measures as mean (95% CI lower-upper).


How to pick a specific Pantone color in Photoshop? What about finding a Pantone that is close to a specific CMYK color?

How would I select a specific Pantone color in Photoshop, e.g. PMS 5625?  Also, how do you pick a Pantone colour that is similar to a specific CMYK color, e.g. C61, M41, Y58, K16 green?    In this case Pantone 5615C looks closest to the CMYK color.


In Java, this code throws an exception when the HTTP result is 404 range:  URL url = new URL("http://stackoverflow.com/asdf404notfound"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.getInputStream(); // throws!   In my case, I happen to know that the content is 404, but I'd still like to read the body of the response anyway.  (In my actual case the response code is 403, but the body of the response explains the reason for rejection, and I'd like to display that to the user.)  How can I access the response body?


How would I prove there is no smallest positive rational number? what is the best method to prove this statement?


Georeferencing system of rivers using XY To Line tool?

I have a State Water Hydro layer from our GIS county office that does not have georeferenced attributes (It is sitting on top of a State Plane county basemap). Looking at the XY to Line tool I need Start/End XY fields to run the tool. Problem is that there are no such attributes, and I'm looking at an entire county's worth of streams & rivers. Is there a way to determine these XY values without manually going through every stream feature? Also, I'm trying to suggest to my department why having all of our dept. specific features georeferenced is useful for future analysis, but I'm a bit green in the when it comes to justifying the ends to some of our work. Any suggestions on top of the XY to Line tool help would be great.


Can I buy a stock immediately prior to ex div date, then sell after and still get dividends?

Stock market noob here.  Can I invest in a stock prior to it's ex-dividend date, then sell after and still get the dividend payout?  Let's say for example the ex-dividend date for Stock ABC is Aug 31st. Can i buy stock in it Aug 30th, turn around and sell Sept 1st and still get the dividend payout?  Is there any benefit to buying the stock way earlier -- say, in January?    Thanks for the responses!


I have made a web browser without using web browser class(Displaying html response on textbox).I m dynamically creating tab pages by programming on CREATE NEW TAB event.Now i want my browser to have a separate thread for each tab.I used asyn and await for the implementation of new thread for each tab but it gave me error "Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on." Here is my code:     async void navigateToPage(string s)     {         Uri uri = null;         if (!Uri.TryCreate(s, UriKind.Absolute, out uri) || null == uri)          {             //Invalid URL             MessageBox.Show("Please Enter valid URL");}         else         {            HttpWebRequest request = WebRequest.Create(s) as HttpWebRequest;            HttpWebResponse response =  (HttpWebResponse)request.GetResponse();               if (response.StatusCode == HttpStatusCode.OK)             {                 // Contains protocol headers associated with a request or response                 WebHeaderCollection header = response.Headers;                 var encoding = ASCIIEncoding.ASCII;                 using (var reader = new System.IO.StreamReader(response.GetResponseStream(), encoding))                 {                     string responseText = reader.ReadToEnd();                     if (focussedTab == null)                     {                         textBox1.Text = responseText;                          }                     else                         {                          if (focussedTab.Controls.ContainsKey("outputBox"))                             {                                 TextBox textBox = (TextBox)focussedTab.Controls["outputBox"];                                 textBox.Text = responseText;                             }                     }                      using (tw = new StreamWriter(@"history.txt", true))                       {  //writing history on a file                         tw.WriteLine(s+"" +System.DateTime.Now);                         tw.Close();                     }                     // adding url to the list for the back/fwd                      backStack.Push(s);                     fwdStack.Clear();                 }             }             else if (response.StatusCode == HttpStatusCode.NotFound)             {                 MessageBox.Show("Not Found");             }             else if (response.StatusCode == HttpStatusCode.Forbidden)             {                 MessageBox.Show("Forbidden");             }             else if (response.StatusCode==HttpStatusCode.BadRequest)                     {                 MessageBox.Show("Bad Request");             }               await DisplayNewTab();                }             Task DisplayNewTab()      {         return Task.Factory.StartNew(() =>         {             try             {                 TabPage newTab = new TabPage();                 newTab.Name = "tab";                 newTab.Text = "New Tab";                 TextBox txtbx = new TextBox();                 txtbx.Name = "outputBox";                 txtbx.Multiline = true;                 txtbx.Size = new System.Drawing.Size(754, 259);                 tb1.Text = "https://";                 newTab.Controls.Add(txtbx);                 focussedTab = newTab;                 tabControl1.TabPages.Add(newTab);             }             catch (Exception excMsg)             {                 MessageBox.Show(excMsg.Message.ToString(), "Error");             }             });          }     }        }


How do I make a call to add the status-completed tag?

I raised this  for a bug, I just noticed that bug was resolved, I tried to add the  tag, but it not allow me to add. Now how do I make a call to add the tag or will I leave it as it is.


C# Why do I get the "Error creating windows handle" while having parent form?

I'm creating a child form inside a parent form, and it gives the error(Error creating window handle). But if it's not a child form inside a parent form it Works.  I've tried more code options for creating child form, but non of them worked  private void ClanoviToolStripMenuItem_Click(object sender, EventArgs e)     {         Clanovi NewMDIChild = new Clanovi()         {             MdiParent = this         };         NewMDIChild.Show();     }


proving periodic function f is uniformly continuous

So I'm new to uniform continuity and this is just an exercise that was scribbled on the board in my real analysis class. But it's is a tricky question for me:  if $f:R\to R$ is periodic with period P (so $f(x+P)=f(x)$) and $f$ is continuous on $(0,p+a)$ for some $\epsilon >0$, then $f$ is uniformly continuous  how can we go about proving this?


Delphi - inconsistent floating point roundoff when using FormatFloat('0.##',argValue)

Trying to round off double values to two decimal places using function FormatFloat (Format string '0.##').  Below are the input and output values  231.545 -> 231.54 (but expected output is 231.55)  2.315   -> 2.31 (but expected output is 2.32)   23.045  -> 23.05 (gives expected output 23.05)  23.145  -> 23.14 (but expected output 23.15)   23.245  -> 23.25 (gives expected output 23.25)  23.345  -> 23.34 (but expected output 23.35)   23.445  -> 23.45 (gives expected output 23.45)  23.545  -> 23.55 (gives expected output 23.55)  23.645  -> 23.65 (but expected output 23.64)   23.745  -> 23.75 (gives expected output 23.75)  23.845  -> 23.84 (but expected output 23.84)  23.945  -> 23.95 (gives expected output 23.95)   why this strange behaviour happening? am using Delphi 7.


I am trying to set up my printer HP ENVY 4520 to my computer and I am using a USB cord. I have tried everything and I don't know where to go from here.  Is it possible for you to go step by step on how to hook up my printer to my computer?  I am not that familiar with computers but my friend owns a computer business and he is even stumped.  Is there an easy way to set it up.  PLEASE HELP!!!


Suppose we have a matrix A. We have decomposed A into a sum of the identity matrix and the product of two column(G) and row(H) matrices. In general, how can we calculate $A^{-1}$?


How to find the number of anti-symmetric relations?

I know that given a set $A = \{1, 2, 3, ... , n\}$, the total number of relations on $A$ is $$2^{n^2}$$ The number of reflexive relations is $$2^{n^2 - n}$$ The number of symmetric relations is $$2^{{n+1}\choose 2}$$ But how can I find the number of anti-symmetric relations? With a small set, say $n = 4$, it can be easy to just brute force it. Is there another way (perhaps using the inclusion-exclusion principle?)


Cartoon or anime in which gems turn into monsters

A cartoon in which gems turn into monsters. I remember a monster that can use vine whip and he had a horn he had a green gem, this is not Pokémon. The cartoon was based in magical world. In the first episode a girl steals a book. I believe this show was on cartoon network.


Why can I no longer easily navigate inside of this mesh?

While originally modeling a mesh, I was able to easily re-orient my view to inside of the mesh.  In the process, I made the following changes:   made the mesh completely hollow (removed some extraneous faces from the inside) added texture   Now I can't seem to navigate or zoom into the mesh like I was doing earlier.  All I can do is get ridiculously close to the outer surface.  Even in wireframe mode, I either can't do this or it seems as if everything is zoomed in much too close to do anything productive.


Why I'm seeing a lock besides the partition I'm trying to modify with gparted?

I wanted to create more space for Ubuntu on my hard disk in favor of my Windows partition. I booted the livecd and resized the NTFS partition to 100 GB. Then I wanted to resize my Ubuntu (ext4) partition to fill up the created unallocated space.  A screenshot of my current disk. (With the livecd there's no 'key' icon after sda6)    My first thought was just right click on sda6 → move/resize → done. Unfortunately I cannot resize or move the partition. However I can resize the NTFS partition.  I guess it is because the extended sda4 partition is locked. I couldn't see an unlock possibility though…  So how do I resize the ext4 partition anyway, probably by unlocking the extended partition, but how?


Without using man and in a single command from --help, I'd like to know further information for certain options. I know that for every command, by default the option -h or --help will print a help page with a list of available options. But how can I get only the description of a particular option?   In the web and here in particular we see a lot of instructions and commands and I'd like to read more about it without searching in the full list.  For example, I know that rsync -h means  -h, --human-readable        output numbers in a human-readable format   or that ls -l means  -l                         use a long listing format   How to get that specific information in a short command?


proper way of attributing a writer's note within a quote

In journalistic writing, if I need to attach some necessary background information within a quote, what's the proper way to do it? I want to indicate that the information is something that I've produced, and not the person that I'm quoting. Here's an illustration:     Israel has strong companies that plan to go public in 2015, and   that’s one of the reasons I came to Israel. Furthermore, the biomed   and hi-tech sectors are still strong. We feel that the Fintech   (financial-technological) sector is on the move. We recently witnessed   a merger if Fintech companies (Fundtech, an Israeli company, was sold   to D+H ), so we feel optimistic in this regard.   The author of the text is a journalist (his name is Nir Zalik), and the quoted individual is Bruce Aust. The added information (Fundtech, an Israeli company, was sold to D+H) is background information added by the journalist. How would I indicate that? In Hebrew a journalist often adds his initials to a background note within a text.   Thanks!


When is $\mathbb{Z}[\alpha]$ dense in $\mathbb{C}$?

Let $\alpha$ be a nonreal algebraic number. I'm interested in conditions that imply that $\mathbb{Z}[\alpha]$ is dense in $\mathbb{C}$. I'm particularly interested algebraic integer $\alpha$.  This is what I know so far:   if there is a $n \in \mathbb{N}$ such that $\alpha^n \in \mathbb{R} \setminus \mathbb{Z}$, then $\mathbb{Z}[\alpha]$ is dense in $\mathbb{C}$; algebraic integers of degree two don't satisfy the condition, although algebraic nonintegers of degree two may.   Many thanks in advance.


How do I find the inverse of $f(x) = \frac{x}{x^2 + 1}$

$f(x) = \frac{x}{x^2 + 1}$.  How do you find $f^{-1}$?  Is try and solve for y and I get the following:  $y = \frac{x}{x^2 + 1}$  $y(x^2 + 1) = x$  $yx^2 + y = x$  $y = -yx^2 + x$  $y = x(-yx + 1)$  It seems whatever I do I can't isolate the x variable, I just go in circles...


How do I save a file with managed_file in a theme?

I'm developing a theme that it requires to have a header image on the front page, so I have this.  casper.theme  function casper_form_system_theme_settings_alter(&$form, &$form_state) {  $form['theme_extra']['front_page_background_image'] = array(     '#type' => 'managed_file',     '#title' => 'Front Page Background Image',     '#description' => 'Add background image for the front page',     '#required' => FALSE,     '#weight' => -4,     '#upload_location' => file_default_scheme() . '://theme/backgrounds/',     '#default_value' => theme_get_setting('front_page_background_image' , 'casper'),     '#upload_validators' => array(         'file_validate_extensions' => array('gif png jpg jpeg'),     ),  ); }   However, after it, while the file been missing and after some reading, I find out that is because managed_file does not save your image permanent.   There are similar questions:    is specified to Drupal 7.  is using "file" type instead of managed_file. I already tried something similar to what the Mayo theme is doing, but I was not able to successfully figure it out.   How can I save my image permanently?


Find relative path from one URL to another in Java

Given two paths, how can I compute the relative path from one to another?  I thought about using split in fancy ways, but it seems kind of hacky, especially in cases like: "http://foo.com/bar/baz#header" or "http://foo.com/bar/baz"?param=value.   An example would be:  String url1 = "http://foo.com/bar/baz"; String url2 = "http://foo.com/bar/qux/quux/corge";  System.out.println(relative(url1, url2)); // -> "../qux/quux/corge"


Searching for emoji in chat is 💩 (broken)

Recently, I've been  in chat, 'tagging' it with emoji (🎶).  But they don't come up in search!   Yea, this is probably waaaaaaaay down the priority list. But it's a nice-to-have.


Stack Exchange API: Is there a way to post things?

It would be nice if there is a way to post questions via HTTP calls, like with . But it doesn't seem to be available. Is it?


Prove that each natural number has a multiple solely consisting of digits $0,1$ I have really no idea for this!!


I want to know if it's possible to simulate perspiration on a surface in cycles such as in the following images:      If so what techniques should be used?


My Android phone stuck at optimizing apps again and again

My Yu Yureka with Cyanogen Mod is Optimizing apps again and again but not starting. Is there a way to fix this? Is tjere a way I can somehow enter safe mode and delete few apps??  Please help.


In the Raildex Setting, How Did Accelerator Manage to Kill over 10,000 Clones in the Sister's Arc?

Assuming that the project went on for 6 months before Touma stopped it, Accelerator would have had to kill roughly 55 clones each day to kill 10,000 in time. That seems fairly ridiculous. Assuming he sleeps for 8 hours each day, he would then need to kill about three and a half clones every hour, and that is if he does not eat, use the bathroom, go to school, or do anything besides kill clones. Given that each one still took him a few minutes to kill (because he toyed with them) and that he needed to transit between the scheduled combat locations, the rate of killing just seems infeasible. Additionally, I severely doubt he could psychologically deal with so much killing. Even a sadistic maniac would probably get bored after killing a few hundred people, and Accelerator seems more uncaring than outright sadistic. Did Kamachi just not do his math when figuring out how many clones there were?


how to install windows 10 on laptop that has ubuntu installed on it?

I coudnt find any working method on internet,I had windows 10 on my laptop previously, but I wanted to make switch to linux because on numerous reasons. I installed ubuntu without windows at all on HDD, after few weeks I realesed that linux os just is not for me so I tried to install windows 10 again (single boot),but I dont know how. can you help me please?


Was Tolkien's "round-world version" really his definitive view of Arda?

I've heard many times that, in his final years, Tokien rejected the idea of a flat Arda, and embraced a new story in which the world was always round and the Sun and Moon existed from the beginning. However, the only texts I've found with this new version are an old Ainulindalë (which was substituted by later ones that returned to the flat-earth) and some texts in HoME: Morgoth's Ring (Myths Transformed). But all of these texts look very incomplete and/or abandoned. While, on the other hand, the Annals of Aman and Grey Annals of the same years tell the old story of the Sun and Moon coming after the Trees. Am I missing then something important? Is there some other text that proves that the round earth was the "true" version?


I am trying to build my own DNS. I have one server which I would like to use as DNS server.   Why, according to RFC2182 section 5 () I must have TWO servers (3 recommended)?   I tried creating ns1.example.com and ns2.example.com pointing to same IP and it works for some TLDs fine but for my .us domain it doesn't open the website.   Why some TLDs does not work with just one server (two ns pointing to same IP)?   Sorry if the quiestion is boring. Thanks!


One-liner to generate an easily memorable password?

What's a good one-liner to generate an easily memorable password, like xkcd's correct horse battery staple or a Bitcoin seed?  EDIT 1:  This is not the same as  since random strings are not at all memorable. Compare to the ...


Same error message at end of every update run

Each and every time that I run update, the last 4 lines read as follows:  Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en%5fCA E: The package lists or status file could not be parsed or opened.   What can or must I do to resolve this problem?


GPG error: The following signatures were invalid: ########

I got this issue while running apt update command :       Err:12 http://us.archive.ubuntu.com/ubuntu precise-security InRelease   The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 Get:15 http://us.archive.ubuntu.com/ubuntu precise-updates InRelease [55.7 kB] Err:15 http://us.archive.ubuntu.com/ubuntu precise-updates InRelease   The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 Get:21 http://us.archive.ubuntu.com/ubuntu precise-backports InRelease [55.7 kB] Err:21 http://us.archive.ubuntu.com/ubuntu precise-backports InRelease   The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 Get:27 http://us.archive.ubuntu.com/ubuntu precise Release.gpg [198 B] Ign:27 http://us.archive.ubuntu.com/ubuntu precise Release.gpg Reading package lists... Done    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx> W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 E: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://archive.canonical.com/ubuntu precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://archive.canonical.com/ubuntu precise Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-security InRelease: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://us.archive.ubuntu.com/ubuntu precise-security InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-updates InRelease: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://us.archive.ubuntu.com/ubuntu precise-updates InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-backports InRelease: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://us.archive.ubuntu.com/ubuntu precise-backports InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://us.archive.ubuntu.com/ubuntu precise Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   I have run some commands to fix another issue after that I don't know which file has been deleted and this update issue occurred. Please help me to solve this problem


When does CR become an issue in the absence of magic items?

I'm interested in running a Hexcrawl Sandbox style game in pathfinder. The hexes would dictate what range of CR the encounter tables would contain. What I'm wondering is at what CR magic items start becoming a major factor in the balance. And in what way do these issues affect the game.   There will be spell casting classes allowed for PCs and there will be magic items out there to be found and so I am apprehensive to call it "low magic".   Where this style of game will differ is in how gold and magic won't be awarded for each and every encounter by the virtue of it being an encounter. Wealth and magic as a reward won't be a guarantee for facing an encounter.  If players find through exploration some ancient ruins and choose to face the risks inside it then they could find wealth and magic. Though if the players don't find such locations, or choose to play it safe and not enter, they might end up facing many battles with wolves and spiders and gain enough experience to start levelling up without having found magic items or large sums of money.  Additionally there won't be spell casters in the towns capable of crafting magic items should the players find wealth.  Because of these structures there is a chance but not a guarantee that the players will get magic items. It is far more likely that players will gain experience faster and more consistently than magic items.  This is why I'm interested in the relationship between CR and magic items. But I'm not interested in "rebalancing" encounters or rebalancing the classes. I'm curious to hear about people's experiences with this relationship and specifically when the balance issues become apparent and in what ways they impacted game play.   I would like to see if it is feasible to do with pathfinder, but I'm starting to lean towards dnd 5e as its encounters aren't balanced with magic items in mind (from what I understand).  Thanks in advance for your thoughts!


\dots versus \ldots - is there a difference?

Is there a difference between \dots and \ldots, the ellipsis?  If yes: Which? When to use \dots and when to use \ldots?  If no: Why are there both at all?


I recently bought a cast iron wok and attempted to season twice.  The first time i seasoned it i think i overheated the wok and it started to smoke when i added oil and some shiny black stains which looks like patina formed.  I tried seasoning a second time but after seasoning, it didn't seem that non stick to me.  Here are the steps i took to season the wok.  1) Scrub thoroughly with hot water and soap  2) on low to medium heat evaporate all the water   3) add in oil and stir fry some onions (some videos say it gets rid of the initial metallic taste)  4) after 5-10 mins i took it off the heat and let it cool  5) i rinsed it with water after and applied a thin layer of oil  This is the first time i'm seasoning a wok and i have no idea if is working out but i noticed that everytime i wipe it with some tissue paper, the tissue paper turns black! I'm considering throwing it away and any help would be appreciated.


How to prove with matematical induction: $\cos1 + \cos 2 + \cdots + \cos n = -\frac{1}{2} + \frac{\sin(n+\frac{1}{2})}{2\sin\frac{1}{2}}$

I'm having truble calculating right side of this equation  $$\cos1 + \cos 2 + \cdots + \cos n = -\frac{1}{2} + \frac{\sin(n+\frac{1}{2})}{2\sin\frac{1}{2}}$$ for $n = 1$.  I've managed to reach that $$cos1 = -\frac{1}{2} + \frac{\cos^2 1 -\cos1 -\sin^2 1}{2(1-\cos1)}$$  Can i get any tips on how to solve this equation? (If it's even correct at this point).  Thanks.


calculate seo return on investment in actual dollor

is there any way to calculate SEO campaign investment in the actual dollar?  I had run some campaigns for generating content and content-backlink for one year and now I want to know the return on investment for my SEO activities


Interpreting two linear regression outputs - one generic, one "faceted" (R, ggplot)

I am trying to analyse the potential relationship between Unemployment Rate and the occurrences of three types of crime (namely Anti-social behaviour, Theft, and Violence & Sexual Offences). First, I plotted a linear regression model of Unemployment rate and ALL crime types (indistinctively). PLOT 1:  OUTPUT: Call: lm(formula = Crime_occurrences ~ Unemployment_rate, data = df)  Residuals:    Min     1Q Median     3Q    Max  -27148  -7191   2708   6467  33154   Coefficients:                   Estimate Std. Error t value Pr(>|t|)    (Intercept)          70916      23671   2.996  0.00389 ** Unemployment_rate    -3508       5835  -0.601  0.54989    --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 11550 on 64 degrees of freedom Multiple R-squared:  0.005614,  Adjusted R-squared:  -0.009923  F-statistic: 0.3613 on 1 and 64 DF,  p-value: 0.5499  My interpretation: There is no apparent relationship between the two variables because:  t value is extremely low Pr(>|t|) is >0.05 Residual standard error is considerably high Multiple R-squared is extremely low (i.e. residuals are all over the place) F value is extremely low p value is > 0.05  Question: What else can I add to my interpretation? Also, what does it mean if the intercept Pr(>|t|)  is <0.05? Plotting a faceted scatter plot and linear regression for each crime type proved more difficult: PLOT 2:  Output 2: Call: lm(formula = Crime_occurrences ~ Unemployment_rate + Crime, data = df)  Residuals:    Min     1Q Median     3Q    Max  -20871  -6755    362   4597  32818   Coefficients:                                   Estimate Std. Error t value Pr(>|t|)    (Intercept)                          71252      21686   3.286  0.00168 ** Unemployment_rate                    -3508       5327  -0.658  0.51267    CrimeTheft                           -6613       3180  -2.080  0.04169 *  CrimeViolence and sexual offences     5606       3180   1.763  0.08287 .  --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 10550 on 62 degrees of freedom Multiple R-squared:  0.1972,    Adjusted R-squared:  0.1584  F-statistic: 5.077 on 3 and 62 DF,  p-value: 0.003301  My interpretation:  The only significancy I can see is with THEFT since Pr(>|t|) is <0.05 However, why is t value negative? That should suggest no relationship, but it clashes with Pr(>|t|)  Questions:  Where is Anti-Social behaviour? It is in the data frame df I specified in the code but not in the output The p value is < 0.05, which suggests significancy, but which crime type does it suggest significancy with? Is it theft?  Any help would be greatly appreciated!!!


Validate that the phone number only contains only numbers

I need to do a phone number validation that the tel# contains only: numbers 0-9 left and right parenthesis hyphen blank space  in c#  this is my code for now:  //ValidatePhoneNumber     public static string ValidatePhoneNumber(string v_strPhoneNumber)     {         const string strPHONE_NUMBER_BLANK =            "Phone Number cannot be blank";         const string strPHONE_NUMBER_TOO_LONG =             "Phone Number cannot be longer than 24 characters";          if (v_strPhoneNumber.Trim().Length == 0)             return strPHONE_NUMBER_BLANK;         if (v_strPhoneNumber.Trim().Length > 24)             return trPHONE_NUMBER_TOO_LONG;          return String.Empty;      }//end ValidatePhoneNumber   I need to add that validation into that code, I am a beginer so the easiest way possible would be great. If you can give me the answer please if you could at least point me in the right direction, Thanks!


Can the mesh select mode menu converted to a pie menu in Blender 2.72?

The  mention that it is possible to add pie menus. But I'm not sure how to do it.  How could I convert the mesh select mode menu's appearance:    to this?


What is the correct timeline for Captain America: Civil War and Guardians of the Galaxy: Vol. 2?

We saw Stan Lee appear twice in Guardians 2; the first time is during the 700 hyperspace jumps, with one of the realms they speed through featuring Lee telling stories to a trio of Watchers (specifically when he was a FedEx agent in Captain America: Civil War.)  Now, it was revealed to us that Guardians 2 took place in 2014. However, Captain America: Civil War was released in 2016. We know that most MCU movies take place during real life present time. If this is the case for Civil War, is there any explanation for this?


I am considering buying my first DSLR.  How do I know whether I need a 18-200 lens, 17-85, or 18-55? Or something else?


Distribution of lengths of randomly cut string

If I cut a string at random (uniformly distributed) positions, what is the distribution of lengths of the resulting fragments?  From what I understand the lengths should be distributed as a negative exponential (which my simulation below appears to confirm). I intuitively understand this as the probability of having encountered a break increases exponentially with length. Is this correct as this ?  I have a collaborator who suggests this should be a Poisson distribution, is this incorrect? I assume the number of breaks in a region of the string is Poisson distributed is this correct?  Simulation I've simulated this with a string of length 1000000 and 100000 random cuts (I have also simulated with a fixed cut probability at each point and get similar results). I only cut at integral positions (my simulation creates a sequence, then adds cuts and calculates the length).


Are compact subsets of metric spaces closed and bounded?

Rubin's Theorem 2.34 says that "Compact subsets of metric spaces are closed." But I'm wondering should it also be true that, compact subsets of metric spaces are closed and bounded at the same time? The closeed-ness comes from Rudin's proof, and the bounded-ness comes from the fact that for a compact subset $E$, we can take the finite open cover and than this open cover is what bounds $E$? Discussions are welcomed! Thank you!!!


In Unity3D, how can I improve image clarity?

The same images that appear clearly in Adobe Flash appear blurry in Unity.  My game uses quads, cubes and sprites. I've tried the game on Android, iPhone, Mac  and PC, but the image appears poor-quality on all of them.  A sample screenshot:    What can I do about this?


I have tried this on my Windows 7 calculator with $\sqrt9 -3 $ it too gives some weird answer- ie$1.1546388020691628168216106791278e-37$. And so for any $n$(positive) $\sqrt n^2-n= wierd_ .answer$ Why does this happen?


Calculation of the avalanche effect coefficient

Given a  matrix/dependence matrix for a hash function,how do I calculate the avalanche coefficient for it. I want to calculate a single parameter(value) which represents the amount of avalanche effect for the given hash function.  I have thought of computing mean all over the matrix but am not sure that's the correct thing to do.  The  talks about the avalanche coefficient but they haven't mentioned the way they calculate it.


Is there a way to stop running SQL scripts if we get an error?

I am developing a program for my final project of college that consists of taking several SQL scripts from a fixed folder and executing them. In a meeting with my project supervisor he said that it would be a good idea to make sure that if an error is detected while running one of the scripts the program should stop running the script and stop. And i'm having problems with the part of stopping the program after it detects the error. Help would be very appreciated. Btw this is all done in C# (WindowsFormsApp(.NET Framework)). The script that i'm showing works perfectly.         public string ExecuteFiles(string connectionString, string fileName)         {             var result = string.Empty;             //var error = ">> [" + MethodBase.GetCurrentMethod().Name + "]\n";              try             {                 string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Updates", fileName);                  string script = File.ReadAllText(path);                  using (SqlConnection connection = new SqlConnection(connectionString))                 {                     Logger.Debug("Script a ser executado: " + fileName);                      connection.Open();                      Server server = new Server(new Microsoft.SqlServer.Management.Common.ServerConnection(connection));                      server.ConnectionContext.ExecuteNonQuery(script);                      Logger.Debug("Script executado: " + fileName);                 }             }             catch (Microsoft.SqlServer.Management.Common.ConnectionFailureException cfe)             {                 Logger.Error("Message: " + cfe);                 lblmsg.Text = ">> [Message] => " + cfe.Message + "\n";              }             catch (SmoException se)             {                 Logger.Error("Message: " + se);                 lblmsg.Text = ">> [Message] => " + se.Message + "\n";              }             catch (Exception ex)             {                 Logger.Error("Message: " + ex);                 lblmsg.Text = ">> [Message] => " + ex.Message + "\n";                  if (ex.InnerException is SqlException)                 {                                   SqlException sqlex = (SqlException)ex.InnerException;                     lblmsg.Text = ">> [Message] => " + sqlex.Message + "\n";                     Logger.Error("Message: " + sqlex);                 }             }             return result;         }


Do stays in Canada/Mexico automatically count towards the US admission period under the VWP?

According to numerous online reports (e.g. ), a VWP national who enters the US by air solely in transit to Canada or Mexico, and then spends over 90 days in Canada/Mexico, unless a resident of Canada/Mexico, will be in violation of the VWP, refused re-entry to the US and barred from future travel under the VWP. Is this really correct? It would imply a VWP national wishing to spend e.g. 4 months in Mexico would need a tourist/transit visa for the US if both the trip to and from Mexico takes place with a flight connection in the US. This would frankly be ridiculous. My understanding is instead that stays in Canada/Mexico do not count towards the VWP admission duration on an automatic, strictly binding basis (as the reports suggest); rather, if the stay in Canada/Mexico is sufficiently short that it can reasonably be considered a mere side trip from the US, the CBP is likely not to grant a new 90-day admission period, but only the remainder of the original 90 days.


I have an old Acer travelmate 8371 with 1.4ghz processor. Which version of ubuntu, xubuntu or lubuntu would one recommend? Or is this too old a laptop? Thanks


What are good books for graduates/undergraduates in Astrophysics?

There are no book recommendations for Astrophysics here. I will write my own answer, but I am also interested in what are others' views on the question (I will NOT mark my own answer as the best one).


Let $A$ and $B$ be $m \times n$ and $n \times m$ real matrices.  I proved that if $\lambda$ is a nonzero eigenvalue of the $m \times m$ matrix $AB$ then it is also an eigenvalue of the $n \times n$ matrix $BA$. But I am having trouble finding an example showing that this need not be true if $\lambda=0$  Thank you in advance


How to release a hydraulic brake (tightened with wheel off)

On my fairly new bike, I had to remove the front wheel on storage. I must have accidentally pressed the brake lever or so, because now the brakes are tight so that the disc won't fit in the brake (see the picture below). Is there any easy way how to release the brakes now? It should be Shimano BR-M396 180 160 mm if the catalog is correct.


Short way of using comment character `%` in multilines

I have a long calculation in my document that starts and ends with several \align environments. But now, I want to make all these lines to appear as a comment since there is a possibility for them to be wrong. I know I can delete them, but I want to keep them for future reference and also I will use some parts of it in my new calculation (which I hope will be correct this time). I have tried to put % in front of the \begin{align} lines but it didn't work. I don't want to put the symbol % in front of all the lines one by one, so is there a short way of making a huge part of the code to appear as a comment in LaTeX?


How to add to an element in char Array in C#?

I want to know how to add a value to an element of an array. This is not a duplicate as i don't want to add a new elemnt or assign an entirely new value but want to edit an existing value in the array. I'd imagine it would look something like this:  textArray[i] = currentElement + variable;   The example above does for some reason not work though  Thanks in advance! :)


How do I write Itô's with the special symbol?

I am writing my thesis on latex but I do not know how to write Itô's in latex with the symbol on the 'o' . Could someone tell me how can I do it? Do I need a special package?


Which compact camera to buy for starry skies, city lights and close ups?

I'm looking to purchase a compact camera that has all the common features e.g. portrait, landscape, video etc. But can also allow me to take pictures of stars and city lights, and will allow close close up shots (e.g. single flower).   I relatively new to photography, so I'm not looking for the best out there, but I don't want a cheap one either. I'm looking for one in the middle in terms of the ratio of image quality to price.  Currently I am looking at the Canon s120, Canon G series (trying to figure out which one would be for me), Sony DX100 (but i'm not sure which one to buy as I see there are multiple versions, and the latest one isn't always the best one), but would love for some help on which cameras I should look into or opinions on the listed cameras.


"Recommend to have" vs. "recommend having"

I am writing my bachelor dissertation and several times Microsoft Word has corrected me from "to have" to "having". One of the sentences, for instance, goes like this:      The author recommends to have ‘(...)'. Bugeja further recommends having a student blog where prospective...   Can anyone enlighten me?


here is how I do it right now:  public static getConfs(Connection conn, String confNo){     ResultSet rs = null;     try{         rs = conn.createStatement().executeQuery("select col1,col2 from table1");         ... // do something with rs         rs.getStatement().close();         rs = conn.createStatement().executeQuery("select col1,col2 from table2");         ... // do somthing with rs         rs.getStatement().close();         rs = null;     }catch(Exception e){         throw e;     }finally{          if(rs != null){              try{                  rs.getStatement().close();              }catch(SQLException se){                  se.printStackTrace();              }          }     } }   two questions: 1. should I reuse result set variable like that ?  2. is that good to close result set like that ? any smarter way?


I write the codes below to get a square as if to say q.e.d.  $$equation$$\textbox{\hfill\square}  Text\textbox{\hfill\square}   I want the square at the right extreme of the same line. I succeed only when the rest of the line has text and/or an equation within $ $, but not when it has an equation within $$ $$. In this case the square appears in the extreme right but in the next line but I want it on the same line.  Any help is appreciated.


insufficient space on the device in my Micromax canvas 4 what to do

What to do ? I can not install any application in my device?  I have tried clearing cache of all the applications .


́╗┐' is not recognized as an internal or external command

When executing certain files (mainly batch) using PsExec I get these weird ́╗┐' symbols before my command. My initial thought was, that I were using wrong encoding, but after checking, I realized that all my files were using UTF-8.


I have the following two xml links, each of which I want to use as the file parameter to :  table1 = 'https://www.sec.gov/Archives/edgar/data/1103804/000110380417000040/xslForm13F_X01/Form13fInfoTable.xml' table2 = 'https://www.sec.gov/Archives/edgar/data/1103804/000110380417000040/Form13fInfoTable.xml'   What I have tried:   Using raw strings (r'https:// ...) Excluding https:// in each of the path names (to get rid of the colon on a Windows system) Using 'r' within open(), which should be unnecessary anyway because it is the default   There are a number of similar SO questions, none of which offer solutions that get rid of this error.  Although the following is seemingly innocuous I cannot get past the error.  For instance,  d = open(table1, 'r') --------------------------------------------------------------------------- FileNotFoundError                         Traceback (most recent call last) <ipython-input-110-07d32326a11e> in <module>() ----> 1 d = open(table1, 'r')  FileNotFoundError: [Errno 2] No such file or directory: 'www.sec.gov/Archives/edgar/data/1103804/000110380417000040/xslForm13F_X01/Form13fInfoTable.xml'


Run another command when previous command completes

Today I opened gnome-terminal and I wrote   ls && sleep 4 && gnome-terminal   to open another terminal after the completion of ls command and waiting for 4 seconds. So it successfully opened a new terminal after previous commands completely ran (including sleep 4).  After that, next time I typed a new command   ls -lR && sleep 4 && gnome-terminal   The command ls -lR completed after 3 seconds, but after that none of the commands sleep 4 and gnome-terminal ran successfully.  What is the problem?


I'm following this tutorial:  But I have different options in Voronoi Texture node. How can i get this result?


Should I pay off my student loans or keep it in the bank?

The interest on my student loans are ~ 2%, should I take the money that I have in my savings and pay more than my monthly payments? I have enough to pay off one loan and still have a nice safety cushion    Should I pay off that loan?


Sometimes I look a question that interests me, but I don't have the answer or would like to follow up later. Normally I just bookmark it, which then ends up in a big pile.  It would be great if there was a way to put a question in follow up, that I could later check my profile and get updates on the things I follow up.


Does LiveUSB work on computer with different processor?

I want to create liveUSB on part of my flash stick. I made a partition with GParted and downloaded .iso file of Ubuntu 19 from the official website to mount with gnome-disk-utility.  I noticed that the iso file has "amd64" in the name. But I intend to use this USB not only on amd computers!  Is that important? Will the live USB work on PC with Intel/other processor?


Testing a Java method's execution time and memory consumption via JUnit

I want to profile how a method's execution time and memory consumption scale depending on the method's parameters. So far, I have come up with testing the method via JUnit and running several tests for different sets of parameters (e.g. using ). In order to abstract from overhead due to setting up tests etc. the time is calculated by a difference in System.currentTimeMillis right before and after the step I am interested in. This seems somewhat hacky, is there a more natural way to do this?  I would furthermore like to see how memory consumption behaves with different parameters. JVisualVM comes to mind, but is there a more elegant way to automatically get what I want?


How can I stop getting notifications when my friends start games?

Like the question  is there a way to stop getting a popup when a friend starts playing a game?    I tried following the global method as outlined above, as that is what I want:     Either notifications need to be turned off globally (View -> Settings -> Friends -> Uncheck all the "Display a Notification" check boxes)   However I can't see the 'Friends' tab.


so this is my first post over here.   I install WSL linux on my windows to use gnuplot.  but i plot something i get this message anyone is familiar with such a problem   qt.qpa.xcb: could not connect to display   qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.  and please if so write the commands i should write because i'm still beginner in using bash scripting   `


Getting odd/even part of a sequence with LINQ

Say I have a list of all Projects, and that I group them by Category like this:  var projectsByCat = from p in Projects                     group p by p.Category into g                     orderby g.Count() descending                     select new { Category = g.Key, Projects = g };   Now I want to display this as a list in a web page, where first I create the left side div, secondly the right side div. I am ordering by number of Projects in each Category to show the Categories with the most Projects on top - thus I would like to split projectsByCat in two - if I put all the "odd numbered" Categories on the left and the "even numbered" categories on the right, I think I will get a reasonably sane view.  So I thought I could do this to get the odd and even members of projectsByCat:  var oddCategories = projectsByCat.Where((cat, index) => index % 2 != 0);  var evenCategories = projectsByCat.Where((cat, index) => index % 2 == 0);   And it compiles - however, when I run it, I get an exception such as this:     Unsupported overload used for query operator 'Where'.   And I thought I was safe since it compiled in the first place.. ;)  Is there an elegant way to do this? And also, is there an elegant explanation for why my creative use of Where() won't work?  Thanks in advance!


Let $G$ a group and its order is $255$.   Prove that $G$ is cyclic.   I easily demonstrated that the group has only one $17$-Sylow subgroup $P$ that is normal in $G$ and it's cyclic since it is of a prime order. Then $G/P$ is also cyclic since a group of order $15$ is cyclic. Then $G$ can be seen as $G=P(G/P)$ since the orders are coprime and then $G$ is cyclic. Is it correct?


How to resolve "AWT-EventQueue-0" exception while running applet launched via JNLP

I am getting Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException while running applet launched via JNLP.  My applet code is  package com.oprs.common;  import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.MalformedURLException; import java.net.URL;  import javax.jnlp.*; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel;  import org.jfree.util.Log; /**  *  * @date Aug 29, 2012 11:33:16 AM  * @version 1.0  */ public class OprsJNLP {      /**      * @param args      */     static BasicService basicService = null;      public static void main(String[] args) {     JFrame frame = new JFrame("OPRS");     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     JLabel label = new JLabel();     Container content = frame.getContentPane();     content.add(label,BorderLayout.CENTER);     String message = "Download OPRS Application";     label.setText(message);      try {         basicService = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");     } catch (UnavailableServiceException e) {         Log.error("service not available", e);     }      JButton button = new JButton("http://google.com/");      ActionListener listener = new ActionListener() {          public void actionPerformed(ActionEvent event) {         URL url;         try {             url = new URL(event.getActionCommand());             basicService.showDocument(url);         } catch (MalformedURLException e) {             e.printStackTrace();         }                }     };      button.addActionListener(listener);      content.add(button, BorderLayout.SOUTH);     frame.pack();     frame.show();     } }   I tried to debug and found that basicService is returning null always. In place of google.com i tried with the other url's but still getting the same error. The line basicService.showDocument(url); is where it throws null pointer because my basicService is null. Can some one point out where exactly i am going wrong ?  Including my .jnlp  <?xml version='1.0' encoding='UTF-8' ?> <jnlp spec='1.0'       codebase='http://localhost:9999/'       href='oprs.jnlp'>   <information>     <title>OPRS</title>     <vendor>OPRS</vendor>     <description kind='one-line'>       OPRS WEB START     </description>     <shortcut online='false'>       <desktop/>     </shortcut>   </information>   <resources>     <j2se version='1.4+' />     <jar href='oprs.jar' main='true' />   </resources>   <application-desc main-class='com.oprs.OprsJNLP' /> </jnlp>


Are We Allowed To Discuss Malware Creation

I do not want to get in trouble  for it, so I decided to check here first. I have a code that I think is a legit virus, but on many forums I have been bashed for the discussion of malware creation. Would I get in any sort of trouble for posting about these things? Do you have a rule against it? I also know that many noobs come asking about how to create the (not) virus that just deletes a system file. I am not here to do that. My question is for purely research ans intellectual purposes.


Can you steep tea for longer in more water instead of doing multiple steepings?

I make jasmine green tea sorbet… anytime I run out of the previous batch, and then use the remaining steepings of the tea to make iced tea. (Usually steep for ~10 minutes each time, starting a bit lower than the recommended temperature; at a guess this works out to compensate all the sugar and lime juice and cold temperature dulling the tea flavour.) The tea I use is good for about 2-3 steepings this way. However, doing this in multiple steepings is a bit of faffing around I’d like to dispense with. Is it possible, instead of using say (just shy of) an ounce of tea for four cups of water three times in a row to use a bigger pot, put the same amount of tea into three times the amount of water, and steep for longer until basically the tea is spent in one go? It’s a lot easier for me to keep the pot of water in a given temperature range than to heat it up to said range. (What I do is I stick my Thermapen into the steam venting hole in the lid, heat up the water to say 65C, move pot to smallest burner on low, and it works out that the temperature rises by about 1C in one minute. I set a timer for five minutes, turn off the burner which makes the temperature drop at around the same rate, restart the five minutes, strain. What I want to avoid is the part where I have to keep watching the Thermapen constantly to arrive at said 65C. Maintaining the temperature afterwards means I can do whatever else until my timer beeps then run off to the kitchen for one second.)


"I can't write on file ..." when installing class from a .ins file

I'm trying to install the elsarticle class manually on MiKTeX 2.9 (Windows) from the .ins file. However, when I type latex .\elsarticle.ins, I get the following:  This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9) entering extended mode ! I can't write on file `elsarticle.log'. Please type another transcript file name:   When I type any other file name, I keep getting the same error.


postfix filter "Do you want to have more lovers?"

My postfix is currently set up to check email content and reject by keywords. However, I can't think of a good way to block this kind of emails:  Return-Path: <gievcyopa@beamtele.com> Delivered-To: xxx Received: from beamtele.com (unknown [183.82.3.184])     by XXX (Postfix) with ESMTP id 3FCAACD1FDD     for XXX; Tue, 15 Dec 2015 13:09:36 +0800 (HKT) From: Jilli M. Gillenwater <gievcyopa@beamtele.com> To: xxx Subject: Do you want to have more lovers? Date: Tue, 15 Dec 2015 10:39:34 +0530 MIME-Version: 1.0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Message-Id: <20151215050936.3FCAACD1FDD@xxx>   Good d̞ay my b̻oy .are you availaḃl͒e? I'm  realֱly h~rny and  want to h00ku֨p  t֧onight! s֯en̗d a  mٌsg so we can  meet!!M͐y  nic̽knͧame is  Jilli88 :PMy account is  here: http://upqepohh.yoursexychick.ru


He went fishing in the creek nearby the grocery store.  He went fishing in the creek near by the grocery store.  He went fishing in the creek near to the grocery store.    Could anyone please show me if there is any difference semantically?


I'm fairly new on PHP. I'm trying to sanitize my input before UPDATE it on myqsql. If my string is something with apostrophe, like  " I'm new on Php" it not works with this code $description = $_POST['description'];  $description = htmlspecialchars($description);  $description = mysqli_real_escape_string($description);  $description = trim(preg_replace('/\s+/', ' ', $description));  It didn't work: my field in table result empty If i use $description = $_POST['description'];  $description = htmlspecialchars($description);  $description =  str_replace("'","\'", $description);  $description = trim(preg_replace('/\s+/', ' ', $description));  It works. Why  $description = mysqli_real_escape_string($description) won't work ?


Is it possible to have a monoid with a proper class as the collection of elements?

My question if it possible for us to have, for example, a monoid(any algebraic structure really) with a class as the collection of the elements, instead of a set.  An example would be the class of sets and set union as addition. Clearly, it is closed under the operation, is associative and it has an identity element, so it is a monoid. Is it possible to say so?


Is there an intuitive explanation for Newton's Third Law?

Why does nature follow Newton's third law? I understand that when we apply a force there would be a reaction due to mass/inertia but why is it equal in magnitude?   I know the derivation from Newton's second law but I'd like a more intuitive explanation for this. (I have taken the first and second law as true and as axioms)


I didn't see this listed on the books page so here it is. I'm currently in an introductory Solid State course, and we are using Kittel's book. I have been having a rough time with this book although I am starting to get used to it as we get farther in. What are good introductory solid state books?


Calculate the probability that the exponential random variable $X$ is greater than the exponential random variable $Y$?

Suppose we have two independent random variables X and Y with exponential probability distributions with two rates $\lambda_x$ and $\lambda_y$, respectively. Also, we have $\lambda_x>\lambda_y$. How can the following probability be calculated? $P(X>Y)?$ can i write as follows? $P(X>Y)=\int_0^\infty P(X>Y|Y=y)dy=\int_0^\infty P(X>y)dy$


Best way to evaluate integral with contour integration?

I'm trying to evaluate the integral:  $$\int_{-\infty}^{\infty}\frac{\sin^2{x}}{x^2}dx$$ with contour integration and am not sure if the basic idea of what I'm doing is correct.  I know that $$\sin{x} = \frac{e^{ix} - e^{-ix}}{2i}$$ and thus $\sin^2{x} = e^{2ix} + e^{-2ix} -2$.  Thus, can I solve  $$\int_{\infty}^{\infty}\frac{e^{2iz}+e^{-2iz} -2}{-4z^2}dz$$ using the indented semicircle contour and take its real part to obtain the solution to my original integral?


How to Calculate days between two dates using Python?

I want to calculate Number of days Between Two Dates using Python Django. Here is my code In my Html, <form method='post' action="something">   <input type="date"  name="firstdate">   <input type="date" " name="lastdate">   <input type="submit"> </form>  i am sending this form data to view function,i am getting date overthere in dd-mm-yy formet. and if i print  overthere, i am getting firstdate and lastdate in below formet, 2020-01-01  2020-02-01  i want to calculate number of days between these two dates.How to Do that? i will be thankfull if anyone can help me with this issue.


What is the difference between '' and null in sql

There are 2 simple queries  --Query returns results count > 0 select 1 from ordine where DateField between nvl(null, to_date('01/01/1900', 'dd/mm/yyyy')) and nvl(null, to_date('31/12/2999', 'dd/mm/yyyy'));  --Query returns results count = 0 select 1 from ordine where DateField between nvl('', to_date('01/01/1900', 'dd/mm/yyyy')) and nvl('', to_date('31/12/2999', 'dd/mm/yyyy'));   Only difference between these 2 queries is that One is having empty string('') and other is having null.  I thought that it could be possible '' is not equal to null in sql. So I tried following query:  select  nvl(null, to_date('01/01/1900', 'dd/mm/yyyy')), nvl(null, to_date('31/12/2999', 'dd/mm/yyyy')) from dual;  select  nvl('', to_date('01/01/1900', 'dd/mm/yyyy')), nvl('', to_date('31/12/2999', 'dd/mm/yyyy')) from dual;   It was very strange that both of above queries returned same result. But still I wasn't sure so I tried another query to make sure '' is same as null or not. And I tried following 2 queries:  select  1 from dual where '' is null; /* returned 1 record*/ select  1 from dual where '' is not null; /* returned 0 records*/   At this point I was so confused, I have now following questions Is '' equal to null? Is if '' equal to null then why it doesn't work with where conditions? please note: I have also tried >= <= instead of between and, but still it's seems to not work.  I hope my question is clear and I am not missing anything.


For $x,y$ in G, prove that $x = y =e$ if $xy^2=y^3x $ and $yx^2=x^3y$  where $e$ is the identity element in G.  I have filled pages trying to solve but unable to reach the solution.  Also, Is there any general method to approach such questions?


how do torrent clients circumvent router's firewall?

Could anyone please explain me how the deluge torrent client can get incoming requests to my local machine from the Internet, while I'm behind router's firewall and do not have any port forwarding etc.?  Initially I was going to ask about a strange network activity in my LAN, namely continuous incoming requests to 6881 port from different ip addresses, whereas I'd already stopped my torrent client deluge. But while I was composing the question I spotted that these requests ceased, so I concluded that the reason was in the deluge torrent client and the requests continue to come for a while after program's quit. Then I changed ports in the program's settings and the destination port of these requests changed too. So the reason of these requests is deluge.  So here is the situation. I was trying to setup the deluge torrent client, and opened ufw.log file. And what it showed to me surprised me a lot. It was showing constant incoming requests from different ip addresses to 6881 port. Here is an output of tail -f /var/log/ufw.log (I've cut sensible data):  Dec 28 18:13:32 foo-host kernel: [44034.890870] [UFW BLOCK] IN=eth0 OUT= MAC=xx:xx SRC=46.182.x.x DST=192.168.xxx.xxx LEN=131 TOS=0x00 PREC=0x00 TTL=50 ID=13882 PROTO=UDP SPT=59696 DPT=6881 LEN=111  Dec 28 18:13:32 foo-host kernel: [44035.682998] [UFW BLOCK] IN=eth0 OUT= MAC=xx:xx SRC=111.240.x.x DST=192.168.xxx.xxx LEN=294 TOS=0x00 PREC=0x00 TTL=113 ID=4012 PROTO=UDP SPT=17621 DPT=6881 LEN=274  Dec 28 18:13:34 foo-host kernel: [44037.400502] [UFW BLOCK] IN=eth0 OUT= MAC=xx:xx SRC=210.187.x.x DST=192.168.xxx.xxx LEN=131 TOS=0x00 PREC=0x00 TTL=55 ID=25753 PROTO=UDP SPT=57274 DPT=6881 LEN=111  Dec 28 18:13:47 foo-host kernel: [44050.142172] [UFW BLOCK] IN=eth0 OUT= MAC=xx:xx SRC=118.81.x.x DST=192.168.xxx.xxx LEN=129 TOS=0x00 PREC=0x00 TTL=46 ID=29946 PROTO=UDP SPT=59765 DPT=6881 LEN=109  Dec 28 18:13:54 foo-host kernel: [44056.727176] [UFW BLOCK] IN=eth0 OUT= MAC=xx:xx SRC=128.127.x.x DST=192.168.xxx.xxx LEN=131 TOS=0x00 PREC=0x00 TTL=113 ID=37504 PROTO=UDP SPT=13835 DPT=6881 LEN=111   So could anyone please give me an answer to this: how do torrent clients (may be only deluge) circumvent router's firewall?  Here is my router's configuration screen shot, so I suppose that the firewall is running. Also I cannot access a local webserver from the outside without port forwarding, so this convinces me more in this conclusion.


Why does the number of results in Google can sometimes drastically depend on the browser? (e.g., 61,800,000 results vs 78 results) E.g., with the query "By the end of today", on Chrome:  on Firefox:  Both screenshots are from the 1st page.


For SQL Server 2012 where is better way to restrict rows (WHERE or JOIN)?

I still don't get it - is it better for performance to restrict data inside WHERE clause or inside JOIN clause. Which is the better way? I've read a long time ago that there is no difference, but I am still not sure. I am speaking about INNER JOIN - in which case the result is the same.  EXAMPLE:  SELECT * FROM A JOIN B ON (A.X = B.Y) WHERE (A.Z = 5);   vs  SELECT * FROM A JOIN B ON (A.X = B.Y) AND (A.Z = 5);


How to remove in correct way qt4 development libraries?

Since I am using Qt5 stuff which installed in /opt directory and about to install Ubuntu SDK seems like Qt4 packages will be redundant in my system. Moreover I am not in need exactly Qt4 libs. So how can I do that (subject)? Thanks!  Ubuntu 15.04


Is the Awesomium help QA system a clone of StackExchange?

Page:   Even the hint on question submission is practically the same.  Furthere investigation shows that has been made by these people:


VoiceOver on iOS app does not read comment content

Using VoiceOver (iPhone 4s, iOS 7.1.2) in the StackExchange app, it works fairly well, except the content of comments (when viewing an answer or question) is not announced. It will just say the number of votes that comment has.


I'm using sudo su to start mysql and do some homework with it.  When I finish with mysql (or any other command), then I'm still in sudo.   How do I "log out", so my prompt changes back from # to $?


Total width of element (including padding and border) in jQuery

As in the subject, how can one get the total width of an element, including its border and padding, using jQuery?  I've got the jQuery dimensions plugin, and running .width() on my 760px-wide, 10px padding DIV returns 760.  Perhaps I'm doing something wrong, but if my element manifests itself as 780 pixels wide and Firebug tells me that there's 10px padding on it, but calling .width() only gives 760, I'd be hard pressed to see how.  Thanks for any suggestions.


dpkg: error processing package djview-plugin (--configure):

After installing some apps I am getting this error while trying to upgrade :    package is in a very bad inconsistent state; you should reinstall it before attempting configuration   its happening for sudo apt-get autoremove too. I tried solutions given in .  Please Help me.  NOTE: This error is occurring  after installing GIMP, WINE , Playonlinux , and reinstalling of Mozilla (I did all these continuously one after the other so I don't know specifically.)