is it possible in latex to write a word within some text either by introducing a white figure and then wrapping the text around it or some other maybe more clever way. I want something like this, where I have tried using simple spacing to write "LA":  kesf kng k nrkeh ekrhgek elkrgn rkngel gnekgk bwngenw alsmf kanskgna  sakng ksng-   a kang nknga kakg me fw aklgn rgn ngsk  ks skgnd-  sl   nsgk dn ldgk nskgds l dskg nlsrgn l-  rkgngrn           nrlnr nrkn rllsngrgj  lfdnggnel rng-      ek   krgn kl   rkkf lrnmgl hfhj hj ksgks lrnglkrg negk lke kenler lkerng ke nrkle ngrle l   I believe this question is similar to the following .  however, in my case I am not interested in just any shape, but letters only. And I would like to be able to write any word of any length. Is there any tool out there that can do this task automatically instead of one having to define the length/shape of every letter.

I'd like to write something in the shape of this "coat of arms".    I'd like to have the text filling the coat but with a hole roughly in the shape of the sword. I know there is the \shapepar command to create paragraph shapes so I tried to , a patch for XFig that allows you to draw the shape you want but it never worked on my computer (Mac OS X). I also know I can build the shape by myself with shapepar syntax but it seems really complicated and I don't think I'll make a lot of shapes. So if anybody has ShapePatch working on his computer or knows shapepar syntax very well, could he give me the code?


I used the media creation tool kit to create a windows 8.1 pro boot dvd from Microsoft's website.  I booted off of it, wiped my drive and partitions, recreated the partitions, and proceeded with the install.  I have an Asus Q400A...I called Microsoft support and the guy told me that my product key was an OEM key good for 3 computers and for windows 8!  (To get through the 8.1 install I had used a generic key.)  How am I supposed to activate Windows now? I have a key, but it is OEM, and I think when I wiped the partition it got rid of any recovery partition that came with the Asus laptop.  I called Asus and he told me that I would have to pay them and send it in. I really do NOT want to do this.  Any suggestions? I just wanted a fresh install (I had already backed up my files on an external drive) AND I wanted that fresh install to NOT include asus bloatware.  Any suggestions on where to go from here?   Thank you!

I purchased Windows 8 online from Microsoft a while ago. Today Windows 8.1 was released as a free update to Windows 8 users over the Windows Store.  I was planning to do a fresh install of Windows 8.1 to have a clean system again and UEFI support because I got new hardware since the Windows 8 installation.  So my questions are:   Where do I get the ISO installation medium for Windows 8.1 64-bit? I tried  where I initially got my Windows 8 ISO from, but when entering my Windows 8 key in the Windows 8.1 installer, it says the key is wrong. Even if I get the ISO, will my old key work? I'm concerned because it didn't work in their installer (see previous point)   Do they seriously want me to reinstall Windows 8 and after that upgrade to Windows 8.1 through their Store?!


I cannot recall precisely, but while attempting to type "9" or "0" or hit the Delete key or other keys in that area of the top row, I just fat-fingered my headphone volume to maximum on the touch bar. It greatly startled me and caused me to shout out loud at work.  I love using the touch bar. I am never going to improve my clumsy hand movements. I require constant headphones at work to concentrate. I need my headphones plugging into my laptop so I can hear the occasional audio cue from other apps.  However, I absolutely cannot let this happen again. I scared all my nearby teammates with my sudden loud shout. I had to assure them it was OK, explain what happened, and apologize for the disturbance.  I recalled my iPod shuffle has a feature to limit the maximum volume on it, and I figured an even more feature-full OS would surely also have that feature, but I cannot seem to find it in System Preferences.  Am I missing the feature? Is there a Terminal command I can type that limits the maximum volume to a lower level?

So I hurt my ears from excessively loud music last week at work. I'm well aware of the volume down key of course, but I tend to crank it up too much throughout the day without noticing it.    I need a limiter and it needs to be system-wide, since I listen to various other sound sources aside from iTunes. This isn't really an issue on my phone, since I can set a volume limit in the iOS settings.  Is there an equivalent built-in or third-party fix for OS X Lion?


I  and then continued to clarify things for the asker, both by editing my answer and by answering directly in the comments.  Now the original asker has deleted his questions, perhaps as he learned a bit more, thinking they looked like stupid questions, so the conversation is broken and my comments don't make much sense. They were actually good questions and cast light on the problem, the conversation might have been useful to a later reader.  So my question is, should I now go back and re-format my comments to make them general clarifications, or delete them and embellish my answer, or just leave them?

Commenting is one of the unsung heroes of Stack Exchange. :   Request clarification from the author; Leave constructive criticism that guides the author in improving the post; Add relevant but minor or transient information to a post (e.g. a link to a related question, or an alert to the author that the question has been updated).   These are all essential for coordinating the creation of useful questions and answers, but originally comments were not part of the design for this system! During the beta period, it was observed that, without a way to annotate or discuss specific posts, answers became noisy and tangential. Therefore, a separate space was carved out for this purpose below each post, leaving answers free for content that, y'know, actually tries to answer the question. This created a problem, however: how do we expose useful comments inline with answers without adding back the same amount of noise comments were created to alleviate? . This simple strategy proved to be quite durable, working admirably in most common cases - but it suffers from a few drawbacks:  Comments can become obsolete, addressing issues or concerns long ago addressed via edits to the post itself. Those one-liner contests Jeff alluded to don't always produce results as  as one might like. With the addition of comment replies and real-time notifications, comments can be used for casual conversation and debate - fun and perhaps even enlightening for those involved, noise for those just looking for an answer.  Thus the need for comment moderation. This involves three groups of people:  The authors of the comments themselves can clean up after they're done, if they so desire.  can flag comments in response to the issues noted above, bringing them to the attention of the moderators. (They can also vote on comments, controlling to a degree which ones are shown)  can remove individual comments or entire comment threads, , and even  posts if comments are getting unruly.  This raises several questions, which I'll try to address below:        These guidelines are based on the authors' experience moderating comments on various sites. Individual communities, particularly on meta sites, may benefit from additional guidelines - this guide is intended as a baseline.


I'm trying to show that any group of order 24 is solvable. I know $G$ is solvable if and only if both it's normal subgroup $N$ and $G/N$ is solvable. I have proved previously that a group of order 24 has a normal subgroup of order 4 or 8. But I'm stuck.. how do I proceed here? How do I show that $N$ is solvable and $G/N$ is also solvable?

Consider the following question:     Show that a group $G$ of order $8p$ is solvable, for any prime $p$.   I am kind of stuck, but here are my first attempts:  I chose the series of subroups $G>H_8>H_4>H_2>H_1=\{e\}$ where $H_k$ has order $k$. All of these subgroups exist due to Sylow's Theorems. We have the quotients $H_8/H_4\cong H_4/H_2 \cong H_2/H_1 \cong \mathbb Z/2\mathbb Z$, so $G>H_8\rhd H_4\rhd H_2\rhd H_1=\{e\}$. Only the factor $G/H_8 \cong \mathbb Z/p\mathbb Z$ is causing me a headache, because although its of prime order (and hence abelian) I don't know whether $H_8$ is normal in $G$ (unless $p=2$).  If $p\ne 2$, then the number $k$ of Sylow $2$-subgroups is $1$ mod $2$. Since $k$ divides $|G|$ we might have $k=1$ or $k=p$. If we had $k=1$ then $H_8$ would be the only Sylow $2$-subgroup (and hence normal in $G$). But how could we show this?  Or is there even an easier way to approach this problem?  $\ $  edit: I am going to try a different approach: The case $p=2$ is clear. When $p=3$ or $p=7$ the group has order 24 or 56 and since the smallest simple non-abelian group has order 60, the group must also be solvable in these exceptional cases (as Mariano pointed out).  In any other case we get a Sylow $p$-subgroup $H_p$ of order $p$, which is is normal in $G$. The quotient $G/H_p$ has order $8=2^3$; and prime power order implies solvable. So $G/H_p$ is solvable and $H_p$ is also solvable. And since the composition factors of $G$ are those of $H_p$ together with those of $G/H_p$, we conclude that $G$ is solvable iff $H_p$ and $G/H_p$ are solvable, which is the case. Hence $G$ is solvable if $|G|=8p$.


Let $I[x]$ be subset of $\mathbb{Z}[x]$ where $I[x]$ is the set of polynomials with constant term is even.  Show $I[x]$ is an Ideal of $\mathbb{Z}[x]$    Def of $I[x]$  Ideal of $\mathbb{Z}[x]$ that is $I \subset \mathbb{Z}[x]$ where  $$ \begin{align*}         &i)\forall a,b \in I[x]\Rightarrow a-b \in I[x] \\ &ii)\forall r \in Z[x], \forall i \in I[x]:ri \in I[x] \wedge ir \in I[x] \               \end{align*}    $$  [Showing i)]  Assume $a\in I[x], b \in I[x]$ that is                $$ a=a_nx^n+\dots+a_0 \text{ and }  b=b_nx^n+\dots+b_0$$ Now, $a-b=\dots+(a_0-b_0)$ is even since $\exists k_1,k_2 \in Z:a_0=k_1*2,b_0=k_2*2$.  That is $$\begin{aligned} a-b=&\dots+(a_0-b_0)           \\=&\dots+2k_1-2k_2\\              =&\dots+2(k_1-k_2)              \\=&\dots+2(k_3) && \text{ where } k_1-k_2=k_3 \end{aligned}$$ So, a-b has an even constant.  [Showing ii)]  Assuming $a\in Z[x],b\in \mathbb{Z}[x]$ where  $$ a*b=\dots +a_0b_0$$ $b_0$ is even and $a_0$ is even or odd. Either way even times even is even and even times odd is even. So $ab \in I$    appreciate critique on the work, or some weird way of answering the question

Hi I don't know how to show that $\langle 2,x \rangle$ is not principal and the definition of a principal ideal is unclear to me. I need help on this, please.   The ring that I am talking about is $\mathbb{Z}[x]$ so $\langle 2,x \rangle$ refers to $2g(x) + xf(x)$ where $g(x)$, $f(x)$ belongs to $\mathbb{Z}[x]$.


Edit: it was suggested that there is a case of duplication. There is no case of a duplicate, because this question specifically concerns only removing page numbers on supposedly empty pages, while the suggested earlier question concerns removing every element on a supposedly empty page. Obviously, as reason dictates, these are not the same nor can they ever be. Furthermore, to then explain why the suggested possible solution did not work is irrelevant. End Edit.  Arrgh!  That was an expression of my real physical groan.  After having looked around the internet for a long time, my LaTeX manual, and after having wrestled with the markup code, using LuaLaTeX, I still haven't come to a solution for such a simple matter.  I have a book document, where there is for example a titlepage starting on the right odd-numbered page, after which there is immediately a copyright page on the left, a blank page or two or so, and then an introductory text, and then the start of a chapter after some blank pages starting on the right, and at the end of it all a bibliography.  The problem is that it seems so tedious or cumbersome to easily remove the page numbers off pages supposed to be blank.  I had managed to do it to some extent (after looking around), for example, between the copyright page and the introductory page, using things like \break and \pagenumbering{gobble} and \setcounter (EDIT: and \pagestyle{empty}) (and so on) but sometimes, for example between the introductory text and the first chapter, the text of the ending page of the introductory text gets torn apart over the whole of its ending page. (The same kind of problem I had at the end of the document, where I inserted some new pages (with a custom command I will show in this post) to have a total page amount directly divisible by two: in this case the text on the ending page of the bibliography gets torn apart.)  Sometimes the wrong page number was removed, so I had to play with the code to get the desired effects, but then that may still leave the above problem.  There has to be some person out there who, by reading this post, already has a good idea of what's going on. I have the suspicion that the solution is very simple.  Let me post a few snippets of code:  \documentclass[12pt, a4paper, titlepage]{book} \usepackage{polyglossia}  \setmainlanguage{english} \usepackage{paracol,fontspec}  \usepackage{etoolbox}  \usepackage{fancyhdr} \pagestyle{plain}  %% make new command for empty page \newcommand*\NewPage{\newpage\null\newpage}   The fontspec and paracol packages are not used in this document, and never seemed to give me any problem with compiling.  Arrrrgh! (Another expression of my physical groan.) I've become tired of it.  What is the most straightforward, easy, proper way to remove page numbers on (in-between) pages supposed to be blank?  Possible subquestion: is there a simple overall/general command to automatically suppress such page numbers?

To ensure that a new chapter starts on a right-hand page, the book class (and the report class with the options twoside and openright) will insert blank pages between chapters if necessary. However, these pages still contain the headers and footers as defined by the class. How can I remove those?  Note: I know that I can manually add \clearpage\thispagestyle{empty} at the appropriate points of my document. However, this seems awkward and is prone to fail if I change my document later. I'm looking for automatic solutions.


I've been reviewing whilst semi-watching videos on my laptop so I don't quite have the full 1000 or so pixels of width free to fit StackOverflow in all its glory. The page scrolls horizontally and I end up scrolling back and forth left to right to hit the various action buttons.  Currently the top bar and the footer are set to 100% width, so as soon as you scroll to the right, the black background stops despite the content continuing. As shown here:    Obviously this is purely cosmetic, but in Web Inspector it can be fixed by simply setting a min-width on the
 and
 elements. I know very little about css and cross browser compatibility so there may be more to it but to an untrained eye it appears trivial.  Reproduced in Safari 7, FireFox 26, Chrome 32 - Mac OS X Mavericks.  Almost certainly a duplicate, can't find it myself though.

Update  A month Several months later, a new top bar, and the bug still exists. An answer has already been posted that would fix the bug, so is this something that the dev team plans on fixing?  There are also a host of other problems caused by this, especially on the  and . Again, this would be fixed with  html{min-width:1000px;}   There is a slight bug with small windows on both the new meta and main site(s)?, shown here. The problem is that the top bar coloring doesn't stretch across when you resize and scroll left or right.        On Meta, when a horizontal scroll bar is needed, the black background will only be as wide as the width of the viewport, but when you scroll the coloring will not shift.  To reproduce:   Make screen as large as possible, or wait until the menu bar starts expanding Make it smaller and smaller until horizontal scrollbar appears, then scroll left and right.


I came across two different situations which seem to require a reasonable duplication of a question:  Is it allowed to post the same question related to the same issue, but in two different languages? For example, I don't live in an English speaking country and I have a laptop that may require country specific model information or I want to make the search for my answer more efficient, making it visible to a greater number of people.  Is it allowed to post the same question (but maybe with different emphases) when the question requires a multidisciplinary approach? As an example, I want to make a question about bio programming languages which lies in a tiny line between two subjects involved.   To be more general, when can asking a duplicate question be considered acceptable? Edit The first situation is the point that I want to consider with more details, since this question was flagged as a duplicate and I read all answers of the original question but it doesn't seam to be clear about the different languages and countries issue. I have an Inspiron 14R 5437, which I think appears only in Brazilian market, its default ps/2 keyboard keeps pressing its keys randomly. I followed the most voted answer of this question:  I ended up with both, my touchpad and keyboard disabled and I don't have an external mouse to plug-in and the cursor wasn't showing up anyway. I applied the previous configuration and the touchpad, cursor and default keyboard are back, with the same problem back indeed. I am posting this here before to do it at Super User, because I want to be sure that it won't be flagged as a duplicate there (it happens to be a question with many duplicates) and to address more general cases of non-English speaking users.

It is possible to migrate a question from one Stack Exchange site to another by closing, but if I have a question that I think is on-topic for multiple Stack Exchange sites, is it OK to post it on both (multipost)?   For example, I have a question that's earned me the tumbleweed badge on SO and I'm not sure what the best thing to do with it is. It's about a web server so it might be answerable on Server Fault but it's really more of a programming thing, hence the posting the question on Stack Overflow.    Is there any way to make the question visible on multiple sites (crosspost) and then accept the answer wherever it came from?


My question is very simple: How insects move opposite to gravity?  please dont tell me that they  have Sucks because my comment will be what about insects if move on smooth walls like glass.

Pretty simple question, but not an obvious answer at least not to me.  I mean you can't just place a dead fly on the wall and expect it to stay there, he will fall off due to gravity.  At first I thought it maybe friction, but that would require a normal force (i.e. perpendicular to the wall), and then I remembered spiders, geckos etc, they like to walk around on the ceiling.    How is it possible?  What kind of forces are involved?  Would these creatures still be able to do it on a hypothetical surface which was perfectly flat?


Question:  Let $n \in \mathbb N$ not a prime power and not twice a prime power. Let $s \in \mathbb Z_n$ such that $s^2 \equiv 1 \pmod n$ but $s \not\equiv \pm1 \pmod n$. Is it true that always there exists a factorization $n = n_1 n_2$ with $n_1, n_2 > 1$, $(n_1,n_2)=1$, $s \equiv -1 \pmod {n_1}$ and $s \equiv 1 \pmod {n_2}$?  My partial answer:  If there exist, the numbers $n_1,n_2$ satisfy $(n_1,n_2)\in\{1,2\}$. In fact, if $d \mid (n_1,n_2)$ then $d \mid s+1$ and $d \mid s-1$, so $d\in\{1,2\}$. Let $n_1=(s+1,n)$ and $n_2 = n/n_1$. If $(n_1,n_2) = 1$, then we are done. Otherwise, suppose that $(n_1,n_2)=2$ and let $n_1 = 2m_1$ and $n_2 = 2m_2$, where $(m_1,m_2)=1$. The latter implies, for example, that $4 \mid n$, $s \equiv 1 \pmod 4$, and either $m_1$ or $m_2$ is odd. Afterwards, I considered the parities of $m_1$ and $m_2$. I tried to check if the factorization $n = t_1t_2$ works, where $t_1 = (\frac{s+1}{2},n)$ and $t_2 = n/t_2$, but it will depend on other parities and I wasn't able to complete all the cases.   Can someone provide a hint that works?

Coming from an understanding of Fermat's primality test, I'm looking for a clear explanation of the Miller-Rabin primality test.  Specifically: I understand that for some reason, having non-trivial square roots of 1 mod p means that p is definitely composite; and I gather that you can find these non-trivial square roots by squaring x, but I don't really understand what these reasons are. Specific examples of non-trivial roots of a composite number would be helpful.  Cheers!


I'm extracting some performance metrics from "top" and saving them into file  top -b | grep 'tesseract\|node\|java\|beam.smp\|dockerd' > testm.txt   so for every second I'm getting next output:     535 rabbitmq  20   0 1246756 128432   5536 S   1.3  3.4 618:33.41 beam.smp    589 root      20   0  351040  47836  25740 S   0.0  1.3  12:38.72 dockerd   1980 root      20   0 2236796  36844  15980 S   0.0  1.0   6:11.59 java   1995 root      20   0 1766008 241428  21844 S   0.0  6.4  11:26.85 java  29965 root      20   0 1107460  63732  19328 S   0.0  1.7   0:01.69 node   I'm curious how to add timestamps for every chunk of this output, because when running this script for a long period of time it become impossible to find out when some random data chunk had been collected.  Thanks in advance!

The time(1) command allows you to time any command, by passing it as arguments to time.  I know it's possible to redirect stderr and stdout to a file via 2>&1, and there's also tee(1) which allows one to copy its input to both the screen and a file.  However, I do not know how to add timestamps to logs.   Is there a tool to redirect stderr and stdout to a file, AND append timestamps to it for logging purposes?


I use jQuery to create HTML elements (specifically, to add a row to a table), but I want to use the generated elements in jQuery. What I came up myself is this:  function add_row() {     var id = Math.floor(Math.random() * 100000);      $("#properties").append('
'+         '<input id="'+id+'" type="text" name="myInput">	'+     "
");      $("#"+id).bind('keydown', hotkey.toLowerCase(), function() {         do_stuff();     }); }   Note that I use  to bind to the input. It doesn't seem to support the on way.  But this feels a little clunky. Is there a better way?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


An online quiz told my sister she would be best suited to the profession of Minister of Magic. The only problem I saw with that is that she is not British (she is American). I am not aware of anything in the canon works that enforces this belief, however, I’m simply basing it on the idea that this is a general rule for electing top officials in (Muggle) governments across the world.  Is there any basis for thinking this that anyone might know of?

Is there an election process for the Minister for Magic? Or is the Minister appointed? If he/she is appointed, by whom is he/she chosen? Aside from being, obviously, a witch or wizard, what minimum requirements (education; career track; nationality; etc) are there for being eligible for Minister for Magic? Policy-wise, are the Ministers for Magic just successive permutations of each other, or has any Minister brought a progressive and fresh point of view to the office?


I have a standard page that i have been injecting javascript into. It is using requirescript to require static resources in salesforce. This saturday we updated to salesforce 16 and it has stopped automatically running this code. I can click on the custom link and the the JS will run. Is there another work around for this that i can implement or a salesforce standard i can use?  The end goal is to add a drop down menu that groups all related custom buttons together into one menu that on hover shows the related buttons.   Any help would be appreciated, leave a comment if more information is needed!

Reading through this doc:      We replaced the rich text editor in HTML Area home page components   with a new version that supports more markup but doesn’t allow HTML to   be manually entered.      In Summer ’15 we will start removing unsupported code from HTML Area   home page components. As a result, components that contain JavaScript,   CSS, iframes, or other unsupported markup might stop working properly.   To use JavaScript or other advanced HTML elements in your home page   component, we recommend that you use a Visualforce Area component   instead.   With Visualforce homepage component the best we could do is design fancy home page components, which has not been the big use of sidebar amongst developers. How do we do the fancy hack we do today using html components since visualforce is hosted in a different domain will the sidebar hacks even work after summer 15?     You can include JavaScript in your Visualforce page, but because the   component is rendered in an iframe on the home page layout, the   JavaScript can’t interact with the page that contains the component.   Finally why this move :(?


I'm currently trying to validate email address using regular expression in JavaScript. These are the requirements of the Email address:   The email field contains a user name part follows by "@" and a domain name part. The user name contains word characters including hyphen ("-") and period ("."). The domain name contains two to four parts of alphabet characters word extension. Each word extension is separated by a period (".") and the last extension must have two to three characters.   Among four requirements, the third one is most confusing to me. I will be very appreciate if someone can help me. Thank you.  I have tried the first answer in  page, but this answer accept even 5 or more extensions, so it doesn't meet my third requirement.

Is there a regular expression to validate an email address in JavaScript?


We have to show that the degree sequence (n,n,n-1,n-1,...,3,3,2,2,1,1) is graphic for all n bigger or equal to 1. I used the technique where you delete the first degree (n) in the sequence and then for the next n degrees you substract one, but I get stuck at actually subtracting 1 from n degrees. Not sure if I’m on the right path.

A sequence of non-negative integers is called graphic if there exist  a graph whose degree sequence is precisely that sequence.  For example, $(1, 1, 1, 1, 1, 1)$ is a graphic since it's the degree sequence of graph    and $(3, 1, 0, 0, 0)$ is not a graphic since there is no graph with one vertex of degree 3, one vertex of degree 1, and three vertices of degree 0.  Now, the question is prove that  $$(n, n, n-1, n-1, \ldots, 4, 4, 3, 3, 2, 2, 1, 1)$$  is always a graphic.  My attempt is by construct the simple graph and find some pattern for building a larger one. Starting with $n=1$, then I try to construct $n=2$. Now, based on the result $n=2$, then again I construct for $n=3$, and so on.  But, after doing that process, I don't get at all the pattern for building such larger graph from previous graph. Everything seems randomly yet beautifully constructed. Here is my drawing process:    Please help me to prove this. Thanks before.


Forgot my Android encryption password, only have 10 tries left before data wipe, how can I backup my phone to get 10 more tries if I don't manage to find the password within 10 tries? For context:  ROM: Lineage 14 official build Custom recovery: TWRP Bootloader: Unlocked The phone is not rooted. No SD card port.  *The phone is encrypted with a password (not a PIN) *I don't remember the exact encryption password, so I can't get past the password prompt after booting. But I am sure I can find it if I keep trying. It might take me more than 10 tries to enter all variations though. *I can't access or mount /data from TWRP (nor can I get past the password promt after booting) without the password. *After entering the wrong password multiple times, the password prompt says I only have 10 tries left before the data gets wiped, and I must avoid this at all costs. (Since Android 6 or 7, there is a limited number of tries before the phone gets wiped) My question is: How can I make a backup of the phone in it's current state, so that even if I don't manage to enter the right password after booting the phone 10 times, I can restore the phone in it's current state and still have 10 more tries (and eventually repeat this if I still don't manage to find the password after 20 tries)? I have found some tutorials that show how to backup /dev/block/mmcblk0, but they require root (I can't install anything in my phone since it's encrypted...). And I am not even sure if it will work to restore the phone in it's "10 tries left". I also don't have access to /data partition from TWRP without entering the password (it shows "0MB") so I can't backup the /data partition from TWRP. Thanks

My phone doesn't have enough space to store backup files so I wonder if there is a way to do Nandroid backup and restore with files stored on pc.


I was reading through The C++ Programing language 4th Edition by Bjarne Stroustrup and i was not able to fully understand the following paragraph mentioned in Page 141.     Each character has an integer value in the character set used by the  implementation. For example,   the value of 'b' is 98 in the ASCII character set. Here is a loop that outputs the the integer value   of any character you care to input:   void intval() {     for (char c; cin >> c; )         cout << "the value of '" << c << "' is " << int{c} << '\n'; }      The notation int{c} gives the integer value for a character c (‘‘the int we can construct from c’’).   The possibility of converting a char to an integer raises the question: is a char signed or unsigned?   The 256 values represented by an 8-bit byte can be interpreted as the values 0 to 255 or as the values −127 to 127. No, not −128 to 127 as one might expect: the C++ standard leaves open the possibility of one’s-complement hardware and that eliminates one value; thus, a use of −128 is nonportable.   Unfortunately, the choice of signed or unsigned for a plain char is implementation defined.   C++ provides two types for which the answer is definite: signed char, which can hold at least the values −127 to 127, and unsigned char, which can hold at least the values 0 to 255.   What is the possibility of one's complement hardware that c++ standard leaves? Is it to avoid the same representation of +128 and -128 in 8 bit?

I'm reading The C++ Programming Language and in it Stroustrup states that the int value of a char can range from 0 to 255 or -127 to 127, depending on implementation. Is this correct? It seems like it should be from -128 to 127.  If not, why are their only 255 possible values in the second implementation possibility, not 256.


This is my first time using Linux and I am having difficulties with my Wireless. The Network Manager does not show any Wireless Network options, nor does the Wlan LED light up on my Laptop.  I searched the internet for sollutions and I tried a few Terminal commands to fix Wlan somehow, neither did work.  Here is my lspci output if it helps:   00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RS480/RS482/RS485 Host Bridge (rev 10) 00:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Bridge [int gfx] 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 1 00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 2 00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 3 00:12.0 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 Serial ATA Controller (rev 80) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB Host Controller (rev 80) 00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB Host Controller (rev 80) 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB2 Host Controller (rev 80) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 SMBus Controller (rev 82) 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 IDE Controller (rev 80) 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 High Definition Audio Controller (rev 01) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 PCI-ISA Bridge (rev 80) 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 PCI-PCI Bridge (rev 80) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control 01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS482M [Mobility Radeon Xpress 200] 02:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03) 02:04.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller 02:04.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller 02:04.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) 02:04.3 SD Host controller: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller 30:00.0 Network controller: Broadcom Corporation BCM4311 802.11a/b/g (rev 01)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


Here what's happening when I try to log in.  I'm entering the right password      It brings me back me to the login screen.  I tried to change password via another user but it didn't help.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I have a question regarding setters for a returned object.  I have a class with a private HashMap and a get method. The HashMap contains Minions (a class also having private values with getters and setters) as values.  When I now do  Minion testMinion = MyClass.getMinion(somestuffhere); testMinion.setLevel(9);   Does only the level of the variable testMinion change so I'd have to update the HashMap with the new Minion or does this modify the original Minion in the HashMap since testMinion is just a reference to it?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I want to split the subfigure in figure into two pages. My first page is just contain two paragraph and after it, has empty spaces. So I want to split the figure into two pages. I try to give \ContinuedFloat and it doesn't work. \documentclass[twoside,12pt]{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{amsmath} \usepackage{lipsum}  \begin{document}     \lipsum[1-2]     \begin{figure}[htbp]     \centering      \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2a}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2b}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2c}     \end{subfigure}      \medskip     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2d}     \end{subfigure}\hfil      \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2e}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2f}     \end{subfigure}      \medskip \begin{subfigure}{0.25\textwidth}\ContinuedFloat     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2g} \end{subfigure}\hfil  \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2h} \end{subfigure}\hfil \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2i} \end{subfigure}      \medskip \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2j} \end{subfigure}\hfil % <-- added \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2k} \end{subfigure}\hfil % <-- added \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2l} \end{subfigure}      \caption{Manually Segmentation Tomatoes leaves.  (\subref{2a})-(\subref{2f}) healthy  leaves for $1^{\text{st}}$ data until $6^{\text{th}}$ data. (\subref{2g})-(\subref{2l}) leaves infected by disease for $1^{\text{st}}$ data until $6^{\text{th}}$ data.}     \label{Gambar2} \end{figure} \end{document}  The result is The first page:  The second page:  I want: The first page is  And the second page is  Anyone can help me?

I have the following code for a Figure with 4 subfigures:  \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption}  \begin{document}  \begin{figure}[b]     \centering     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm1.pdf}         \subcaption{$Q^{*}$ values for arm 1}         \label{fig:arm1}     \end{subfigure}     ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm2.pdf}         \subcaption{$Q^{*}$ values for arm 2}         \label{fig:arm2}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm3.pdf}         \subcaption{$Q^{*}$ values for arm 3}         \label{fig:arm3}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm4.pdf}         \subcaption{$Q^{*}$ values for arm 4}         \label{fig:arm4}     \end{subfigure}      \caption{$Q^{*}$ values for different arms}     \label{fig:arms} \end{figure}  \end{document}   This results in   But this way, the 4 subfigures are too large to fit on 1 page. I would like to split this over 2 pages, keeping the subcaptions a, b, ... How can I do this?


If the strength of gravitational influence exerted by a body is derived from its mass and energy then is it true that a moving object which has some kinetic energy should also produce stronger gravitational pull than a static/slower one?  If that's correct then would it be also possible for an object moving fast enough to produce gravity so strong that it would collapse into a (fast moving) black hole?

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


I am a Bangladeshi national traveling from London to Toronto, Canada through CDG Paris, France by Air France. My transit time at CDG is 4h55m. Do I need an airport transit visa for this travel?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Is the following phrase correct (in whatever sense):     Geometries passed to this function must have same length   the phrase is used in technical documentation so it would be especially useful to get comments from people who come from a technical background  The following question gives details about the usage of word same with a definite article:    however there is a statement "The word same is usually used with the definite article. However, it can be used with any central determiner which marks the noun phrase as definite."

I've been racking my brain trying to think of a grammatically correct sentence that uses same without the earlier in the same (see!) phrase.  It is the same It is the very same I have 10 things all the same I have 10 of the same things The same boy as last time did it again The boy did the same thing as last time  I am discounting same-day dry cleaning and any similar phrases that might crop up because using a hyphen is acceptable which suggests it's an atomic phrase and it sounds awkward if inverted:  They have a same-day dry cleaning service. Their dry cleaning service is same-day. - Sounds odd but might be acceptable in some situations Their dry cleaning service is done on the same day. - Sounds better  So I don't think it's possible when same is used by itself. Can someone either explain why same must always have the before it or provide a grammatically correct counter-example?


How do bonus spells work?  Bob is a Level 2 Cleric with a 16 Wisdom.  The class table grants him the following spells per day  [O:4] [L1:2+1]  But his high casting stat grants him the following Bonus spells per day  [O:0] [L1:1] [L2:1] [L3:1]  What is the earliest level that Bob can cast a level 2 spell?  Is there a citation for this in the actual rules?

This question is inspired by discussion , about how Heighten Spell works with Reserve Feats.  The question that I am asking here deals with whether or not players can cast spells using spell slots for spell levels that they don't have access to yet.    I feel like an example would explain this concept best.  Take Xylitol, the first-level wizard with an intelligence of 18.  He has 5 0th-level spells per day and 3 1st level spells per day from his class.  He also has 1 bonus 1st level spell per day from his high intelligence.  The  table says that he also has 1 bonus spell of each 2nd, 3rd, and 4th levels.  The question is this:  Can Xylitol cast 1st level spells using the bonus slots for his 2nd, 3rd, and 4th level spells?  He clearly can't cast spells that are inherently higher level than 1st, since he can't learn them, but can he cast 1st level spells using bonus 2nd, 3rd, and 4th level slots?  This has come up on these boards before, .  What I'm looking for here is a clear rules citation that clarifies this one way or the other.  The wording in the section on ability scores makes it quite clear that characters cannot cast spells that are actually higher level than their class allows them to cast, but it is not clear that these higher level slots are barred until the appropriate spell level is unlocked.  If a character has access to a spell level that they can't use because their ability score isn't high enough, they can freely use those slots for lower level spells, so why can't they use their bonus spell slots for lower level spells?  As KRyan's answer says, the Basics section covers this.  Based on questions and comments both here and elsewhere, that section seems to be worded ambiguously enough that it's caused confusion.  I'd like to find another, more clear wording to this rule if at all possible.  Answers from either D&D 3.5 or Pathfinder are acceptable, but please note which one your answer applies to.  N.B. I'd like to note that I personally don't feel that players should have access to higher level slots like this.  There are a large number of locations where it's heavily implied that this is not the case, but I feel that finding a clear rules citation here would be helpful.  I can't find one that is clear for either interpretation here.


What would we see if we place a mirror 1 light year away? Would we see the present or the past?

By analogy with the sun, whose light is apparently reaching us in 8 minutes, it means that we are only viewing the sun 8 minutes ago when we look up at it. However, what if we were eventually able to build powerful machines that could view light from say hundreds/thousands of years ago, wouldn't that mean we would be able to observe what anyone did at any given time (given that we know their rough whereabouts at that time, e.g. where they lived). I think this is more a question of: Do things we can observe die out immediately, or travel as light, or get stored somewhere?  (Sorry, I know next to nothing about Physics so please cut me some slack if I said anything naive/silly)


Suppose that $x_1, x_2, x_3, . . . x_n$ are real numbers between 0 and 1 with sum $s$.  Prove that   $$\sum_{i=1}^n \frac{x_i}{s+1-x_i} + \prod_{i=1}^n (1-x_i) \leq 1$$  Is there any method without using set theory to solve this problem?  I tried to prove by induction .     n=1 is true (trivial) Assume n=k is true and $s= x_1+ x_2+ x_3 . . . +x_k$ Consider n=k+1, $$\sum_{i=1}^{k+1} \frac{x_i}{s+x_{k+1}+1-x_i} + \prod_{i=1}^{k+1} (1-x_i)$$ $$=\sum_{i=1}^k \frac{x_i}{s+x_{k+1}+1-x_i}+\frac{x_{k+1}}{s+1} + (1-x_{k+1})\prod_{i=1}^{k} (1-x_i)$$ $$\leq \sum_{i=1}^k \frac{x_i}{s+1-x_i}+\frac{x_{k+1}}{s+1} + \prod_{i=1}^{k} (1-x_i)$$ I don't know how to proceed....

Assume $0 < a_i\leq 1$ for $i = 1,2,...,n,$ and $$\sum_{i=1}^{n} {a_i} = a.$$ Show that $$\sum_{i=1}^{n} \frac {a_i}{1+a-a_i} + \prod_{i=1}^{n} {(1-a_i)} \leq 1.$$   I first substituted $b_i = 1-a_i, 0 < b_i\leq 1$ to simply the problem to $$\sum_{i=1}^{n} \frac {1-b_i}{a+b_i} + \prod_{i=1}^{n} {b_i} \leq 1.$$ Rearranging: $$\sum_{i=1}^{n} \frac {1-b_i}{a+b_i}  \leq 1 - \prod_{i=1}^{n} {b_i}.$$  From here I thought about trying to telescope the sum and but didn't really get far, and I'm not sure how to deal with the product and sum in the same inequality.


Which of the following sentences would be correct?   "Your attitude and work ethic reflect your desire to succeed."  "Your attitude and work ethic reflects your desire to succeed."

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


I cannot delete or quarantine.    /usr/share/mime/mime.cache PUA.Win.Exploit.CVE_2012_01

I recently scanned my system with (I am running the latest version of ClamAV and my definitions are up-to-date):  sudo clamscan -r --detect-pua --infected --bell /   And this one was of the results:  /usr/share/mime/mime.cache: PUA.Win.Exploit.CVE_2012_0110 FOUND   I have not seen anything like this before, so what is this, is this anything to worry about, and should I do anything about it? Also, what is the purpose of the location that it was found in?  Additional Information:  You can download the mime.cache file here:   And I appear to have found what this CVE_2012_0110 is, as it is one of the vulnerabilities listed on .  I have scanned the file on VirusTotal, and although the only thing which detected something bad was in the Additional information section at the bottom, I don't necessarily trust that all is well because if something was say injected into that file or something, then perhaps it would be more heuristics that would detect it rather than matching MD5 sums. Here is the report:     OS Information:  Description:    Ubuntu 14.10 Release:    14.10


For example, can I run Android, which is mostly run on ARM processors, run on VirtualBox on x86 Intel processors?  I am aware of Android x86, however, that is not a viable solution.

Someone told me that a virtualizing program like VirtualBox does not work like an emulator does in the sense that it doesn't emulate registers and uses the actual ones for the virtualized data that are on the CPU. Emulators must emulate the registers since they are mostly to execute software that depends on a foreign environment (e.g. a Genesis emulator needs Motorola 68000's registers and memory addresses, so developer must make these resources available as emulated registers).  My main question is, how is virtualization developed? How do we enable an entire OS to run as a process in a virtual machine, but get it to run independently while still making use of the actual CPU? I only know emulation, not virtualization, so if anyone could help that'd be nice!  PS: I am not asking solely what the difference is, but differences in how they run software.


From time to time, the reputation notifier in the top bar notifies me of a +1 reputation change, which I am pretty sure is due to an answer having been deleted on which I had cast a downvote. However, it does not show me this, let alone which answer was deleted.  While I am happy about every drop of reputation, this positive effect gets more than compensated by the negative effect that I cannot directly figure out which of my many downvotes is responsible for this and just got alerted for pretty much nothing.  I can also imagine that this is somewhat confusing for users who are not sufficiently familiar with the system yet.  I thus propose to disable notifications of such events or at least include the information, which question the deleted answer belonged to. Note that I am fine with this reputation being calculated into the next “big” event, I just oppose the alert.

Fine, the 's math  did in the old pop-up. That makes sense. But this is just silly. Why do I need to be notified that a post I downvoted got deleted?    (The title links next to the red -1s were removed from the screenshot by me. They're present in the real pop-up.)  So I can break out a bottle of the '82 Rothschild? It's especially pointless because there's  that caused the change.  Please don't display the Rep Signal when the change is only due to someone else's deleted posts.


I need a piece of Python code that loads (stresses?) CPU for a short moment. I would also like to get some output like counter printed during stressing CPU. Seems simple enough: N=32  def fib(n):     if n < 2:         return 1     else:         return fib(n-1) + fib(n-2)   def main(num):     for i in range(1, num+1):         fib(N)         print(i, end=' ')  if __name__ == '__main__':     main(10)  However, when I use print(i, end=' '), it does not output counter as it executes, it only outputs 1 2 3 4 5 6 7 8 9 10 once it completes. If I use regular print (print(i)) it prints the counter as it goes. First of all, I want to know why this weird effect takes place, and second, how to make print with end behave in this regard like print without end keyword.

How do I force Python's print function to output to the screen?


Is it possible to record playing audio on an Ubuntu 16.04 laptop? I mean part of audio the from a video file or playing music.  As requested in comments:  Output of arecord -l  $ arecord -l **** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: 92HD87B1/3 Analog [92HD87B1/3 Analog]   Subdevices: 1/1   Subdevice #0: subdevice #0   I tried   ffmpeg -f alsa -i hw:0 -t 360 na_re_full.wav   The output was just a blank file (of chosen length) with some random noise. Nothing was recorded from the streaming music :(  $ arecord -L default     Playback/recording through the PulseAudio sound server null     Discard all samples (playback) or generate zero samples (capture) pulse     PulseAudio Sound Server sysdefault:CARD=PCH     HDA Intel PCH, 92HD87B1/3 Analog     Default Audio Device front:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     Front speakers surround21:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     2.1 Surround output to Front and Subwoofer speakers surround40:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     4.0 Surround output to Front and Rear speakers surround41:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     5.0 Surround output to Front, Center and Rear speakers surround51:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     Direct sample mixing device dsnoop:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     Direct sample snooping device hw:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     Direct hardware device without any conversions plughw:CARD=PCH,DEV=0     HDA Intel PCH, 92HD87B1/3 Analog     Hardware device with all software conversions

Is there an application that allows me to extract the audio from a MP4 or FLV video file and store it as an MP3 file for use in a portable media player?


I need an equation that outputs the digit in the slot of my choosing  EX1: I want the 10's slot in 1837  EX2: I want the 10's slot in 123456789  EX3: I want the 1000's slot in 93037352  I also need it to be super simple, preferably only using +,-,/,x

I need an equation that can be easily changed to output the digit which is held in the 1's slot, 10's slot, 100's slot, etc.  EX. I want the 100's digit in 6810 EX2. I want the 1's digit in 29115  What the equation should do is that once it is done calculating, all that is left is the selected "slot" or whatever it is called, nothing else, no other numbers, just the number in the slot I wanted  It would help if the equation was really simple, but anything helps


So I have Button_1 that when click, it will request a new button_2 using ajax. Both button has click event on my jquery(document).ready but when the button 2 added to the page, it doens't have jquery event on it. Is that possible?  Here is my code on page load:  jQuery(document).ready(function($){  $('#button_1').click(function(e){     e.preventDefault();     var id = $(this).data('id');      $.ajax({         type: 'POST',         url: 'get_button_2.php',         data: 'id='+id,         dataType: 'html'     })     .done(function(response){         $('#button-container').html('');         $('#button_1').remove(); // remove button 1         $('#button-container').html(response).show('500');     })     .fail(function(){         $('#button-container').html('Something went wrong');     });  });   $('#button_2').click(function(e){     e.preventDefault();     alert ('Thank You!'); });  });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Recently I asked about   I shall come, not will  whether it could be used instead of  I will definitely come, not maybe  How I came to such a question.  Here   I asked about "Shall I win?" pointing that it could have some variants of understanding:  1) Shall I win? = Should I win? (suggestion)  2) Shall I win? = Will I win? (archaic with 1st person)  3) Shall I win? = is it 100% that I will win? (predestination\inevitability)  The excellent guy Mixolydian said either variant was possible, that it didn't matter what person you used "shall" with, it could have this "predestination\inevitability" anyway. Out of this we're getting that nowadays we can use "will" for simple future actions and "shall" for almost predicted (almost 100% surety of happening) future actions.  If I want to say to someone:  Don't be afraid, I will come anyway.  Don't get panicked, I will definitely come  Be sure, I will come in any case  I can use "shall" for it meanining an action into which I will put 100% effort:  I shall come!  And what if my original sentence is  Don't doubt, I will definitely come, not maybe or probably  Can I use  I shall come, not will  pointing that "shall" guarantees me putting all my strengths into it while "will" doesn't give any assuarance that I will do everything to finally come.  As I understood, it wasn't very easy to ask such a question because English was different everywhere - US, UK, Australie, Ireland etc. I heard it was acceptabse to use even "thee\thou" in Ireland or somewhere like that while all other world has already forgotten such words...

Native speakers, how can you comment such a sentence:  I shall come, not will  Can I use it for  I will definitely come, not maybe    Adding some information other people asked me about.  How I came to such a question.  Here   I asked about "Shall I win?" pointing that it could have some variants of understanding:  1) Shall I win? = Should I win? (suggestion)  2) Shall I win? = Will I win? (archaic with 1st person)  3) Shall I win? = is it 100% that I will win? (predestination\inevitability)  The excellent guy Mixolydian said either variant was possible, that it didn't matter what person you used "shall" with, it could have this "predestination\inevitability" anyway. Out of this we're getting that nowadays we can use "will" for simple future actions and "shall" for almost predicted (almost 100% surety of happening) future actions.  If I want to say to someone:  Don't be afraid, I will come anyway.  Don't get panicked, I will definitely come  Be sure, I will come in any case  I can use "shall" for it meanining an action into which I will put 100% effort:  I shall come!  And what if my original sentence is  Don't doubt, I will definitely come, not maybe or probably  Can I use  I shall come, not will  pointing that "shall" guarantees me putting all my strengths into it while "will" doesn't give any assuarance that I will do everything to finally come.  As I understood, it wasn't very easy to ask such a question because English was different everywhere - US, UK, Australie, Ireland etc. I heard it was acceptabse to use even "thee\thou" in Ireland or somewhere like that while all other world has already forgotten such words...  P.S. What I got from the answers ias that it was better to forget about the existence of "shall" cause it created so many misunderstandings:D


How can I check if a date is between two other dates, in the case where all three dates are represented by instances of java.util.Date?

I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.  Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode:  boolean isWithinRange(Date testDate) {     return testDate >= startDate && testDate <= endDate; }   Not sure if it's relevant, but the dates I'm pulling from the database have timestamps.


I'm looking into setting up a re-write to ignore the case of the directory name of the URL.  For example, I have  example.com/TestDirectory   I want to ignore the case so the URL will still direct to   example.com/testdirectory   Here is what I have, but it doesn't seem to be working:  # rewrite rules for example.com/TestDirectory RewriteCond %{http_host} ^example\.com [NC,OR] RewriteCond %{http_host} ^www\.example\.com\TestDirectory [NC] RewriteRule $ http://www.example.ccom/testdirectory/   Am I missing a step?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I'm going over the implementation of positional lists and I am confused on why we are able to pass in an "instance" of an interface to a certain functions inside a class that implements it.   For the interface Position :      public interface Position <E>{             public Object getElement ();     }   And a Node Class that implements this interface  private static class Node<E> implements Position<E> {           private E element; // reference to the element stored at this node          private Node<E> prev; // reference to the previous node in the list          private Node<E> next; // reference to the subsequent node in the list          public Node(E e, Node<E> p, Node<E> n) { element = e; prev = p;next = n;}          //other functions }   If we were to use the Node Class in a seperate class, I saw functions that seem to pass in an instance of a Postion interface to the function. For example, a function might look like:   private Node<E> validate(Position<E> p) throws IllegalArgumentException {     if (!(p instanceof Node)) throw new IllegalArgumentException("Invalid p");     Node<E> node = (Node<E>) p; // safe cast     if (node.getNext( ) == null) // convention for defunct node          throw new IllegalArgumentException("p is no longer in the list");     return node; }   Another example  public Position<E> before(Position<E> p) throws IllegalArgumentException {        Node<E> node = validate(p);      return position(node.getPrev( ));  }   I'm not sure what is actually happening when we are passing in an instance of an interface into a function. If we called the function and passed in a Node variable, how is that related specifically to an interface? As stated above, this is an excerpt from my textbook on Positional List and I can't seem to understand how this abstraction works.   EDIT:  In this function, we set the parameter as a node instead of the interface. If a Node implements Position anyways, what is the point of returning a Position from the function?      /** Returns the given node as a Position (or null, if it is a sentinel). */     private Position<E> position(Node<E> node) {         if (node == header || node == trailer)        return null; // do not expose user to the sentinels        return node;  }

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


In an academic paper, I need to use the term peer-review many times. However, not 100% sure when to include hyphen. Normally, I do not use hyphen when I say, for example:     When students participate in peer reviews...   However I include a hyphen in such cases:     When students participate in peer-review activities...   I wonder if the way I use the hyphen is correct or not.

When should we use "object-oriented" and when "object oriented" when talking about programming?  An example:     Why should I start writing object oriented code?   I personally think that there should be a hyphen, because "oriented" connects to the word "object", but I am not sure.


I created class Class and I want the function PrintObjectName to print out the object name.   By calling "SomeObject.PrintObjectName();" I'm expecting that console will print "SomeObject". How to achieve this?  class Class { public:     PrintObjectName()     {         cout<<OBJECTNAME;     } };  int main() {     Class SomeObject;     SomeObject.PrintObjectName();      return 0; }```

I'd like to be able to introspect a C++ class for its name, contents (i.e. members and their types) etc. I'm talking native C++ here, not managed C++, which has reflection. I realise C++ supplies some limited information using RTTI. Which additional libraries (or other techniques) could supply this information?


I am struggling with small problem here. I have a table with 4 columns   Column1 | Column2 | Column3 | Column4 NULL.........NULL.........NULL.........NULL ABC..........NULL..........XYZ...........NULL    Column 1,2 & 3 may have some value or null, column4 is null When any of the column1,2 or 3 are not null, I have to update column4 with that column name. I am expecting following result   Column1 | Column2 | Column3 | Column4 NULL.........NULL.........NULL.........NULL ABC..........NULL..........XYZ...........Column1,Column3    Can anyone guide me how can I achieve this result. Any help is appreciated. Thanks in advance.

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I am trying to access Salesforce resources , through another application using an integration user. There is no user intervention to click/approve/allow the authentication. All needs to happen through program. My ask is-  Can I use Web Server authentication flow or User-Agent authentication flow? I want to avoid UserName-password flow.

I'm trying to post to a Salesforce Rest Resource from a java console app. Currently I'm exposing it as a public resource via custom portals.  I'm looking for suggestions for a way to implement the authentication without passing username, password. I have checked OAuth flows but I believe all of them require a callback implementation to read the tokens. It will be helpful if you can suggest a way to authorize in an implicit manner.


The QGIS user guide section  has not yet been updated for QGIS 3 and while a  will do the trick with some extra work, it is not as easy and user friendly as the old alglist()  In the user guide the following commands are presented, resulting in a user-friendly list:  import processing processing.alglist()   This still works in the QGIS 2.18.18 python console. Using an algorithm's id one can then use e.g.  processing.alghelp("qgis:dissolve")   to learn about the algorithm's required parameters etc.  Are there any equivalent functions in QGIS 3?  Using something like print([str(e.provider().name()) + ":" + str(e.name()) for e in QgsApplication.processingRegistry().algorithms()]) gets me closer, but still not equivalent in readability to alglist().

Accessing the new QGIS 3.0 processing scripts through the Python console is proving to be a challenge for me, especially since the old processing.alglist() and processing.alghelp() commands appear to be defunct.    How does one call up a list of processing scripts?  How does one call up the help info for an individual script?


Do the collisions of atoms in a gas have the effect of reducing the number of electrons whose wavefunctions are in superposition states? The idea is that these collisions are effectively interactions with the environment, which will cause superpositions states to decohere to energy eigenstates. Is that the case? Or is something else, or something more complicated, taking place?

For an individual free particle that starts localized, the wave function packet spreads over time, so the particle becomes less localized.  Suppose now that we have a gas of those particles inside a box, and we allow them to collide (using some potential): will the wave function of each particle still spread indefinitely, or do collisions act as a source of decoherence and the wave function relocalizes again? I have heard both arguments by different colleagues, even in textbooks. Has anybody made a computer simulation that shows what would be the best picture?


Is there a general expression for the volume of an truncated elliptical cone, that is a cone in which both the base surface and top are elliptical and not circles? Both of the ellipses are parallel surfaces if that helps. I have managed to find a general expression for a normal truncated cone at $[\frac π 3(r_1^2+r_1r_2+r_2^2)h]$. Would it be possible to approximate by using the average volume of 2 normal truncated cones calculated by using the 2 sets of radii in the ellipses?

I wish to calculate the volumes of a truncated cone whith asymetry over all axes and ellipses as base and top - how do I do that?  I have height and radii of the corresponding ellipses. (I assume correctly I need the geometric means of the 2 radii describing the ellipsis.)  Kind Regards


In Blender we have built-in 3D models (such as Cube, Cone, Suzanne, etc.). These models are placed into the scene by a simple mouse click on a button or a menu item.  Is it possible to use our very own 3D model that can be called when clicking on a specific button in Blender?

I want to add things like basic tables/chairs/houses I have made over the past year to my ShiftA menu. Is it possible to do this?


I partitioned my Vista drive and installed 16.04 on second partition and it was working fine. The small boot window at startup listed Vista to boot first and I wanted it to boot Ubuntu first. At some point I had a window offering me, what I thought was an option to boot Ubuntu first and I used the option and afterward I had no option to boot to Vista. I have tried a new grub menu tool and boot repair but they did not work. I am not at all familiar with how to use them. The "Disks" utility" shows just one partition. Is there any way to rescue the Vista? I have some important info on it Thanks for the reply. fdisk info: Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x4801b076  Device     Boot     Start       End   Sectors  Size Id Type /dev/sda1  *         2048 115230719 115228672   55G 83 Linux /dev/sda2       115232766 117229567   1996802  975M  5 Extended /dev/sda5       115232768 117229567   1996800  975M 82 Linux swap / Solaris   Disk /dev/sdb: 7.5 GiB, 8002732032 bytes, 15630336 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000  Device     Boot Start      End  Sectors  Size Id Type /dev/sdb1  *       32 15630335 15630304  7.5G  b W95 FAT32  Also, my question is not the same as , because I partitioned my drive and installations were fine. My mistake was trying to change the boot order.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


YA novel about a world where art, music, etc is totally forbidden. The story follows a pair of twins who are separated in their youth because one draws a picture in the dirt, I think the other twin reported their brother to the authorities? The artistic twin is saved from death/punishment by a resistance (i think) and lives in a safe, magical world. The story follows the twins as they grow up and train for the day when the artistic world will be attacked by the unartistic. At some point they realize the other is alive (i think they both assume eachother to have died?) and impersonate them.

The first book starts where the main character shows creativity, and is sent presumably to his death. He then ends up in a secluded area run by a caretaker where they learn to use their creativity and art as magic. The two sides go to war, one led by the main character and the other by his twin on the other side. In later books, they learn that they live on an island in a chain, and multiple books deal with those other islands. They learn from someone from our world that they live in the Bermuda Triangle, and they also wrap around to the other side of the island chain if they go to the end via a giant waterfall. Some random things in there are magical sentient whiteboards and statues. A sequel series was released recently, detailing the children and their adventure. That's about all I can recall, can't remember names of anything.


A colleauge and I are in disagreement. Before Darth Vader died in Episode VI did he revert back to the light side of the Force? I have aggressively argued that he did not as it was only a momentary realisation of his errors and could have been a feign attempt at gaining some form of redemption. Whereas my colleague, who favours Star Trek to Star Wars and doesn't understand the intricacies of the Force, believes that he had in fact transcended sides.  It took Anakin years to be completely consumed by the dark side, yet Vader made the same switcheroo in 2 minutes? Questionable to say the least.

In Empire Strikes Back and Return of the Jedi we see Yoda, Obi Wan and Anakin reappear as a Force Ghost/Spirit.  The overall objective of the Sith was the achieve immortality, this was one of the reasons why they detached themselves from the Jedi Order.  Immortality seems achievable on the light side of the Force, yet not on the dark side, or at least in canon. Have there been any Sith who achieved this?


What is the smallest (either in terms of perimeter or area) convex shape in $R^2$ such that all curves of length 1 are properly contained within it ? I'm thinking a right triangle with sides of $1/\sqrt(2)$, but I'm not sure how to reason about this rigorously. Any pointers would be appreciated.

I try to understand: is there a smallest in area convex set that every smooth curve with length 1 can be placed inside it by translation and rotation?  I only have a upper bound $S \leq \frac14+\frac{\pi}{16}$ because of convex hull of two circles radius $\frac14$ and simple lower bound $S\geq\frac1{4\pi}$.  Does this set exist and what is its length?


Whether I write a long paper or presentation, or am reviewing one, after looking it it many times, it seems impossible to notice any additional issues. For example, I am helping a client prepare a document for external audit. I am one of the internal auditors asking for information to put in the document and reviewing to ensure that it meets the needs of the external audit. After many working sessions and revisions, I can no longer see any issues. My friends and co-workers say the same thing. That's one reason why we always have a 2nd (and 3rd) person review everything after it is "done". Every new reviewer finds something new. What is it called when we can't stop "reading between the lines", or whatever it is that keeps us from seeing more?

Back in the day, I used to do a lot of CAD drafting.   There is a well known phenomena whereby your ability to see mistakes, errors, omissions or plain nonsense in your drawing diminishes sharply after working more than a couple of hours on the same drawing or draft.   Our engineering department even had a policy, that required every drawing, no matter how simple, had to be reviewed or "Redlined" (used a red marker on a printout to circle mistakes) by at least one peer drafter before submitting it to your supervisor, This saved a lot of embarrassment to everyone, especially the company (it saved a lot of money too) since simple mistakes were caught even before hitting version control or structural assessment, even production line assembly, let alone the final customer.  Most of the errors caught by peer re are simple, basic omissions like a missing dimension, missing notes boilerplate required by specification, etc. Sometimes glaring errors are caught like personal work-notes or calculations making it to the final document, duplicating sections of the drawing, etc... however the drafter that had been working on the drawing was simply "blind" to the error until someone else pointed it out.  Also, incidence of this is noticeably higher when working on a computer (v. gr. CAD Drafting) vs doing "old school technical drafting" by hand on paper using a drawing board.  Quite frequently, simply printing or plotting your CAD draft to paper, will make you see and catch some errors, invisible to you on-screen, but a "fresh pair of eyes" will catch some that you yourself can't see even on paper.  This also known to happen in other professions that require working for extended periods on a computer document, for example, Software programmers, lawyers, technical writers, etc.   In spanish we call this phenomena "Ceguera de taller" literally "Workshop blindness" however my research (below) shows it does not translate well to english.  I thought of "Mental fatigue" however I don't think it conveys the same meaning, since mental fatigue reduces your overall awareness and acuity, and you would be blind to other's mistakes on a similar drawing or document, however (surprisingly) if you look at a document that you didn't work on yourself, you'll notice immediately any mistakes even if you have just committed them on your own work.  I came up with 3 alternatives for a literal translation (Workshop Blindness, Drafter's Blindness, and Drafter's fatigue) and , but none of them yielded any results, so they are probably meaningless or nonsense. Ceguera de taller, however,  which matches the time period when PCs became affordable.  so, in short:  What would be a well understood term or idiom for the inability to see your own mistakes or omissions after working for some time on the same document.    Many thanks to everyone for all the wonderful and enlightening anwers! I tried several in actual conversation and tunnel vision required the least explanations, although several ideas here work in different situations. Like "Im having tunnel vision issues with this document” when explaining I am having the condition, or the very friendly, funny and kinda ice-breaker captain obvious!  Again, thank you to this wanderful community


I am looking for introductions and reviews (papers or books) on the possible observation and the nature of dark matter. This  seems to be a good start, but I would be grateful for any other recommendations  that are accessible to people with knowledge of physics at the undergraduate level.

I've been looking for questions about dark matter, and I've read some very interesting answers. However, I desire too look into it deeply.   This is not actually a question. I'm asking the community to recommend interesting references to understanding dark matter and dark energy.   I accept all sort of references: notes, books, scientific papers etc.  Let us assume some background on classical physics, thermodynamics and basics about quantum theory.


I'm getting a little bit overwhelmed with pointers.  Lets say I have an array of chars  char arrayOfChars[50];   and I want to pass it to some function that will manipulate it.  The way I pass it would be by reference:  someFunction(char &arrayToManipulate) {}   but I also often see this:  someFunction(char *arrayToManipulate) {}   What's the difference between the two,  And bonus question; is there any problem if in the parameter list of someFunction, I name the local variable by the same name? I.e.  someFunction(char &arrayOfChars) {}   Many thanks.

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


I am trying to make a row into a column. That is, I have row = [2, 4, 8], and I need [[2], [4], [8]]. So I made this code:  row = [2, 4, 8] column = [[]] * 3 for y in range(3):     column[y].append(row[y])   column has to be [[2], [], []] after the first loop. But it was [[2], [2], [2]]. Does anyone know what's the matter?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I want to write a new class based on the article class for student home-works that needs a modified title page.  Is it possible to create new macros like \title{} and \author{} that can be used in the modified \maketitle code (e.g. \tutor{} and \dueDate{}) without editing the latex.ltx file?  In the question  the class that is worked on is memoir.cls while I'm trying to modify the article.cls. Furthermore the best solution given is by adding new information to \author macro and not on how to add new macros that are ready to use in the preamble.

I'm preparing a new template for our students' projects based on memoir. All this projects are supervised (directed) by one or more professors so I would like to declare a command like \author but called \director.   This way the student can declare \director{My professor} and the template will place and format the name.   I would like to be like \author and not just a simple \newcommand because it can include affiliation, several names, etc.  I don't know where is \author declared, where should I look?


I have copied this code from hackerrank. It is working correctly when I run this kind of code (this kind of means, used the System.getenv("OUTPUT_PATH") keyword) but I copy this code to my pc and tried to run that code. But I got the error which is below. Is this System.getenv("OUTPUT_PATH") keyword working only in Hackerrank? I know how to print to a textfiles using buffered writer class but I can't understand about this code line. Please help me to improve my knowledge. public static void main(String[] args) throws IOException {         BufferedWriter bw = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));         String s = "Hello world";         bw.write(s);         bw.newLine();         bw.close();     }  I see this code in more hackerrank problems and I need to know why we use this... this is the error message, Exception in thread "main" java.lang.NullPointerException     at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:226)     at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:124)     at java.base/java.io.FileWriter.<init>(FileWriter.java:66)     at com.company.Main.main(Main.java:8)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm following the online qgis manual available on qgis website. I'm doing the step 21.11.3. ().   To make it simple : I have a raster converted to vector, so now it is a polygon (several polygons). I'm doing an interior buffer exactly how it is described in the manual. I didn't obtain the same result. I can see the interior buffer just in some polygons, not in all of them ->    The interior buffers appear just for those polygons, that don't contain a hole. I use qgis 2.18.3.  This is how i created the interior buffer ->    In green you see the input layer : suitable_terrain, in blue the output layer, the interior buffer.   It is not a problem of a projection. I use WGS84 UTM Zone 34S where the units are in meters. I did also the Check validity and i obtain the same result.

In QGIS I am trying to run a buffer on a polygon layer for 100 meters, it is based on a tutorial so it is supposed to work but it doesn't work.  Someone in another forum suggested that I merge the polygons first but it actually didn't make a buffer at all after that.  I am using WGS84 UTM Zone 33S, the tutorial link is here


Say I have a file "foo_whatever.ttf"  Is there a command line tool to get the actual font name from the file?    The below link does contain the answer but I didn't turn it up in my search results, in particular "/fonts name".  Looking back, I could have used a more general search.  What is mod policy on this?    This is in fact the link I found that led me to the correct answer (where I learned of the rest of the fc- commands:

Given a directory of font files (TTF and OTF) I'd like to inspect each font and determine what style (regular, italic, bold, bold-italic) it is. Is there a command line tool for unix flavored operating systems that can do this? Or does anyone know how to extract the metadata from a TTF or OTF font file?


I've implemented a live search basing on the string written in an input form. Results are displayed correctly in this way:  <input type="text" class="form-control" name="search_client" id="search_client" required autocomplete="off">

 Joo Fogn

 Peter Nash

   However I'd like to autocomplete the input with the showed result when a user click on one of the possible results.  To do it, I though to intercept the click on the result and give the result value to the input, as follows:  $(".result_name").click(function(){          $("#search_client").val($(".result_name").data("value")); });   However when I click on a result, nothing happens. How can I fix it?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I frequently see questions on Stackoverflow.com that belong on Superuser or here on Meta. Prior to being moved or migrated, they are frequently down-voted.   Should they be down-voted for such a condition? What if the question is legitimate and well-worded, just posted on the wrong site to begin with? And finally, are the votes for the question reset to 0 when it is migrated?

I suggest that when a post is migrated from one site to another, that the question vote score get reset to zero (or perhaps only a negative vote score is reset to zero). Often people will downvote a question when the only thing that's "wrong" with it is that it's posted on the incorrect site. After migration, those downvotes hang around as a negative score and may unfairly bias the treatment of the question.


so i have a class customer, the constructor customer has 5 parameters    class customer     {         public customer(string fname, string lname, string address,DateTime dob, int phone, string email  )         { }   parameters email and phone can be blanks. is there a way to accomplished it without creating another constructor that only takes the necessary fields?

Note: This question was asked at a time when C# did not yet support optional parameters (i.e. before C# 4).  We're building a web API that's programmatically generated from a C# class. The class has method GetFooBar(int a, int b) and the API has a method GetFooBar taking query params like &a=foo &b=bar.   The classes needs to support optional parameters, which isn't supported in C# the language. What's the best approach?


Is there any reason why an MC simulation may still be preferred? In particular is there any benefits for posterior inference?

Let's say that I want to calculate the probability of achieving more than 8 heads in 10 coin tosses. The easiest and most accurate way will be to simply use the binomial distribution and sum the probability of getting 9 an 10 heads.  However, it is also possible to simulate numerous coin tosses and then see which proportion of those answers our question. In which general scenario (doesn't have to be restricted to coin tosses) would this method of simulation be better than using the binomial and why?


In the following code, I have two different ways to instantiate an object of class B.  public interface A {}  public class B implements A {}  public static void main(String[] args) {     A test1 = new B();     B test2 = new B();   }   What is the difference between the variables test1 and test2? When should I instantiate using the Interface type (type1) and when should I not?

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


I'm trying to understand the following code and a little bit confused. After some Googling, I found Anonymus Classes In OOP. But can't understand why in this code they declared Sorting object and calling an instance of MergeSort with sorting = new MergeSort(); ? Can someone explain to me?  interface Sorting {    List sort(List list); } class MergeSort implements Sorting {     public List sort(List list) { // sort implementation         return list;     } } class QuickSort implements Sorting {     public List sort(List list) { // sort implementation         return list;     } } class DynamicDataSet {     Sorting sorting;     public DynamicDataSet() {         sorting = new MergeSort();     } // DynamicDataSet implementation } class SnapshotDataSet {     Sorting sorting;     public SnapshotDataSet() {         sorting = new QuickSort();     } // SnapshotDataSet implementation }


I searched quite a bit and I'm very new to java so I'm trying to create a basic program that will do the following  User will insert birth date or horoscope sign  The program will then tell the user what their sign is or what range of dates that particular horoscope goes through.   I'm currently at the point where this line... "     ourDate.getIndexByDate(myDay); " Gives a null pointer exception.  At the same time, so does the method that ourDate is calling.   java.lang.NullPointerException     at Dates.getIndexByDate(Dates.java:68)     at Dates.main(Dates.java:49)   I have the following code:  import java.util.ArrayList; import java.util.Scanner;  public class Dates {      private static ArrayList<Double> zodiacDates;     private static ArrayList<String> zodiac;      public static void main(String[] args) {         ArrayList<Double> zodiacDates = new ArrayList<Double>()         {{              add(1.19);             add(2.18);             add(3.20);             add(4.21);             add(5.20);             add(6.20);             add(7.22);             add(8.22);             add(9.22);             add(10.22);             add(11.21);             add(12.21);         }};         ArrayList<String> zodiac = new ArrayList<String>()         {{             add("Capricorn");             add("Aquarius");             add("Pisces");             add("Aries");             add("Taurus");             add("Gemini");             add("Cancer");             add("Leo");             add("Virgo");             add("Libra");             add("Scorpio");             add("Sagittarius");              }};         Scanner keyboard = new Scanner(System.in);         System.out.println("Enter your birthdate in the form of a double");         Double myDay = keyboard.nextDouble();         System.out.println("Enter your horoscope sign if you know it");         String ourSign = keyboard.nextLine();         Dates ourDate = new Dates();         System.out.println("Enter your birthdate in the form of a double");         ourDate.getIndexByDate(myDay);         ourDate.getIndexBySign(ourSign);         }      public int getIndexBySign(String pName)     {         for (int w = 0; w < zodiac.size(); w++)         {             String sign = zodiac.get(w);             if (pName.equals(sign))             {                 return w;             }         }           return -1;     }      public int getIndexByDate(Double myDay)     {         for (int i = 0; i <= zodiacDates.size(); i++)         {             Double variable = zodiacDates.get(i);             if ((myDay <= variable && myDay > zodiacDates.get(i-1)) || (myDay < 1.19 || myDay >= 12.22 ) )             {                 return i;             }            }         return -1;     } }


I repaired my 32gb flash drive with UP tool. Then i try convert the file system to NTFS using EaseUs. My flash drive broken after convert to NTFS with EaseUs partition wizard. The file system being "unknown" and showing 0mb space. There is 32gb unlocated space showing in disk management and its unusable.  Tried to use diskpart. Tried a lot of tools. UP tool wont detect phison ps2251-68 after using EaseUs. Any solution?

When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.