How to achieve fall-off-the-bone lamb with browned bits in oven?

I am trying to replicate a method to cook lamb I experienced in a North African restaurant in Paris. The dish was called "mechoui" (which is a whole-hog ... hmm... lamb outdoor roasting tradition), but when I asked the chef he said all he did was cook the lamb pieces at 300F (180C) for 1hr in the oven with no fat, just some coarse salt. The lamb (typically a sub section of lamb shoulder with some bone) was served just about fall of the bone tender, with plenty of delicious browned bits. It was clearly roasted and not braised. Each time I have tried to replicate this I end up with a messy & disappointing situation: plenty of liquid released in the pan, no browning, and tough meat. What would people recommend?


How do I stop an interval from another function in javascript?

So, my problem is that I am trying to make a program that increments a number every millisecond, but when I run the code and press the stop incrementing button, it does not do anything to clear the interval. It just continues incrementing, completely ignoring the clearInterval(). I have tried executing the si function in the oc function, but then I thought how stupid that was. I looked online, and I just found how to run a function from another function, but it would not work. Here is the html: <button onclick="oc()">   Start incrementing number </button> <button onclick="si()">   Stop incrementing number </button> <div id="d1">  </div>  And here is the Javascript: function oc() {   var d1 = document.getElementById("d1")   var incremental = 0   var i = setInterval(function() {     incremental++;     d1.innerHTML = "Number: " + incremental   }, 0.01) }  function si() {   clearInterval(i) }  Please make the answer as simple as you can.


146x = 12 (mod 421) I found out that 421 is a prime number and I still did not know how to start after going over the notes I feel like it is similar to solve 7x = 1 (mod 180) if I know how to solve one of them, any tips? Thank you.


Identify a card game where players are asked questions about life situations

Loved playing a board game back in early 90s. On your turn, you would pick a card which asked various questions on life situations. Then you had to pick someone playing who you thought the card would best apply to.  Examples:   Who's most likely to commit murder. Who's most likely to have an affair. Who's the kindest person here.   Everyone else playing had to make their guess and then you would read out your choice. Made for a lot of debate.  Loved it and would love to try and find it again but cannot remember what it's called. Can anyone please help? Thanks all.


help to understand some present simple examples

These examples i am taking from a grammar book. I want to know why we use past particle from in this instead verb first foam and also mention which type of sentences is it.  1)the garden is filled with men, women and children in the evening. 2)New York is the busiest city in USA. it is always crowded with people.


I just upgraded my Ubuntu 17.04 to 17.10 and I found that it is no longer accepting password in the gksudo nautilus password window. I get this error instead  (nautilus:18063): Gtk-WARNING **: cannot open display: :0 not connect: Connection refused


Bad interaction between babel and xypic?

I'm writing an elaborate in Italian, and I'm using  to draw some diagrams. Unfortunately it seems that babel is interacting with XY-pic, making it impossible to group elements.  Here is a MWE:  \documentclass[a4paper,10pt]{article}  \usepackage[italian]{babel}  \usepackage[all]{xy}  \usepackage{amssymb}  \begin{document}  \xymatrix @R=1pt{ a & \mathbb{N} & \Rightarrow & \mathbb{N} & e & f & g \\ 1 & 2 & 3 & 4 & 5 & 6 & 7  \save "1,2"."2,4"*[F.]\frm{} \restore }  \end{document}   Which outputs:    While this is the expected output:    Which is the output I get removing the \usepackage[italian]{babel} line.  Is there anyway to use both babel and xy-pic and avoiding this interaction between the two?


I think that a searching-favorite-posts feature is needed

Sometimes I want to find a topic in favorite posts. So I think that a searching feature can be added in the future to all communities.


$|A\times B|= \text{max}(|A|,|B|)$ for infinite sets

I am fairly sure, given examples $\Bbb{R}\times \Bbb{R},\Bbb{R}\times \Bbb{Q},\Bbb{Q}\times \Bbb{Q} $, that this is correct, but do not know how to prove it.   In my cited examples the proof has always used some specific property of $A,B$, leaving me clueless as to the general method of solving this. I am especially interested in the case were $|\Bbb{R}|>A>|\Bbb{Q}|,|B|=|\Bbb{Q}|$, though ideally the answer would be more general.  To be explicit, I'm asking for a proof of the statement in the question title, where $A,B$ are sets with infinite cardinalities.


Does this sentence use a nominative absolute phrase?

Does the following sentence end with a nominative absolute?     The term was coined nearly 40 years ago by a prominent cardiologist, who noticed that all of his heart disease patients had common behavioral characteristics, the most obvious being that they were in a chronic rush.     Is the most obvious... the absolute phrase?


Two questions.  It is said that time can only go slower in gravity fields and if you move faster.  I have heard that when a gravitational wave pass earth then the space/time vibrate and time change for an instance.  But a wave is often with a top and a valley.  They have now atomic clocks that might be able to detect time variations, placed in satellites around the sun and "quantum entangled". "Using Atomic Clocks to Detect Gravitational Waves"   So what if we could compare time ticks between clocks in space at "absolute frame of reference" where time has its maximum universal speed as time in deep space between Galaxy Filaments.  Will we only detect that time ticks slower for an instance when the gravational wave pass?  1. Or will we detect that time tick slower AND faster than normal time also, as compared to zero gravity time and no movement time in "absolute frame of reference"?  2. Can time go let's say 10 times faster by theory/mathematics, by a extreme theoretical gravitational wave, than time in "absolute frame of reference time"?


Postgresql CPU usage out of control, unknown commands in htop

I see random commands in the htop output where postgresql user is consuming more than 200% of CPU all the time. I am new to postgresql and have inherited this setup. I've tried killing the process, the query pid and it just comes back up. Here's what it looks like. It is postgresql 12.4  How do I find out what's causing this and get rid of it? Much appreciated.


How can I install Whatsapp web app on Ubuntu? I found a similar question , but here I am asking for the WhatsApp desktop webapp so that I can directly access the application without opening a browser.


Repeat password field necessary in a signup page?

Possible Duplicate: Why should we ask the password twice during registration? When designing a new and simplified signup page I got into an argument with a colleague about the necessity of the "repeat password" field. We designed the signup process in such a way that the ...


I have a shapefile, imported in PostgreSQL using PostGIS when this shapefile is published in GeoServer it didn't show any layer.   I had used EPSG:4326..


How many solutions of the equation $ax^2 +by^2 = 1$ are there with $(x, y) ∈ \mathbb{F}_{p} ×\mathbb{F}_{p}$ where $a, b$ are integers whose product is not divisible by $p$?  This was a recommended problem from my professor for algebraic number Theory, any insight into the best method of solving this or similar problems would be appreciated.  edit: $p \in \mathbb{Z}$ is a prime edit 2: I do not believe this is a duplicate. In the claimed possible duplicate, you assume the number os solutions and go about proving $gcd(ab,p) = 1$. My proof would go the other way, and still the questions differ in the fact


How can I delete the word `Category:` from page titles?

If I installed a new WordPress with twentysixteen theme and went to uncategorized page, I will see at the title something like  Category: Uncategorized   how can I remove the category: word from pages titles?


I am learning single variable calculus now, and I am wondering if any of you know of a book/website that contains all of the major calculus proofs. I will use this book as a reference, rather than solely learn from it. I am looking for it to contain proofs such as for the power rule, chain rule, fundamental theorems of calculus, etc. I am not looking for a textbook though. Just the proofs, no other explanations, or problems.


I have put this methods in loop, and the stream method is 3 to 4 times slower than old fashion way one...  Is it normal ?      static double sumUtilStream(ArrayList<Toto> stats) { // Return the util of each stats         return  stats.stream().mapToDouble(Toto::util).sum(); // That is slow !!!!     }      static double sumUtil(ArrayList<Toto> stats) { // Return the util of each stats         double utils = 0;         for (int i = 0; i <  stats.size(); i++) {             utils = utils + stats.get(i).util();          }         return utils;     }   Here the complete code test :  class Toto {     private double util = 0;      public Toto(double value) {         this.util = value;     }      public double util() { return this.util;} }  class Main {     static double sumUtilStream(ArrayList<Toto> totos) { // Return the util of each stats         return  totos.stream().mapToDouble(Toto::util).sum(); // That is slow !!!!     }      static double sumUtil(ArrayList<Toto> totos) { // Return the util of each stats         double utils = 0;         for (int i = 0; i <  totos.size(); i++) {             utils = utils + totos.get(i).util();          }         return utils;     }     public static void main(String args[])  {          ArrayList<Toto> totos = new ArrayList<Toto>();          totos.add(new Toto(50));         totos.add(new Toto(50));         totos.add(new Toto(50));         totos.add(new Toto(50));         totos.add(new Toto(50));          for (int i = 0; i <  100000000; i++) {             sumUtil(totos);         }         System.out.println("finish");       }    }


Calculating eigenvalues for $N \times N$ matrix

I have a question where I am asked suppose we have an $(N \times N)$ matrix with one's on the diagonal, and constant, $c$ everywhere else. What would you expect the eigenvalues to be ?  I tried calculating it using a $(2\times 2)$ matrix, but I then got stuck for $(3\times 3)$ and so forth. Is there some sort of trick that can be used here ?


terminal start to give error bash: /usr/bin/lesspipe

I searched and read all possible pages here but I could not find the exact problem.  When I open my terminal I am getting:  bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: No such file or directory   then when I use apt-get update I am getting following errors.  Fetched 39,9 MB in 53s (747 kB/s)                                               Reading package lists. . .  Done W: GPG error: http://archive. canonical.com/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.  N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.  N: See apt-secure(8) manpage for repository creation and user configuration details.  W: GPG error: http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) ....... W: The repository 'http://us.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed.  N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.  N: See apt-secure(8) manpage for repository creation and user configuration details.  E: Problem executing scripts APT::Update::Post-Invoke-Success 'touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true' E: Sub-process returned an error code     $ namei -lx /bin/sh f: /bin/sh Drwxr-xr-x root root / drwxr-xr-x root root bin                      sh - No such file or directory   Does any one know why this error occurred and how can I solve it?


Android-'int android.graphics.Bitmap.getWidth()' on a null object reference

I'm trying to resize bitmap............on click its working bt in idle time when click on view..." 'int android.graphics.Bitmap.getWidth()' on a null object reference " this error occurs. here is resize code for my bitmap...........how to solve this ??      public static Bitmap resizeImage(Bitmap source, int w, int h) {     int width = source.getWidth();     int height = source.getHeight();     float scaleWidth = ((float) w) / width;     float scaleHeight = ((float) h) / height;     Matrix matrix = new Matrix();     matrix.postScale(scaleWidth, scaleHeight);     return Bitmap.createBitmap(source, 0, 0, width, height, matrix, true); }   code :      public static int getScreenWidth() {     WindowManager wm = (WindowManager) FusionMusicApplication.getInstance().getSystemService(Context.WINDOW_SERVICE);     return wm.getDefaultDisplay().getWidth(); }   here is usage code:  bitmap = resizeImage(bitmap, getScreenWidth()/2, getScreenWidth()/2);   how to fix this ?


Lets say I have a table to hold Tasks and then I have a table to hold Sub Tasks, is it better to break Tasks and Sub Tasks into separate tables or keep them both in the same table with a possible ParentId column.  What if a Parent Task could also be a Sub Task, does this change the design?


I am doing an exercise from "an introduction to homological algebra by Charles A.Weibel" and I am not able to get it, but if the following comes true then I think I can solve the exercise, but I don't know whether the following is true or not.   Let $M$ and $N$ are free $R$-modules. Let $L$ be an $R$-module such that $M \cong L \oplus N$. Does it implies that $L$ is a free $R$-module.  Please help me.


Is $\int_{-\infty}^{\infty} \sin x \, \mathrm{dx}$ divergent or convergent?

I was determining whether   $$\int_{-\infty}^{\infty} \sin x \, \mathrm{dx}$$  was divergent or convergent. So, I did the following steps:  $$\begin{align} \int_{-\infty}^{\infty} \sin x \, \mathrm{dx} &= \int_{0}^{\infty}\sin x \, \mathrm{dx}+\int_{-\infty}^0\sin x \, \mathrm{dx} \\ &=\lim_{t\rightarrow\infty} \left(-\cos x |^{t}_{0}\right) + \lim_{a\rightarrow-\infty} \left(-\cos x |^{0}_{a}\right)\\ &=\lim_{t\rightarrow\infty} -\cos (t) + \cos 0 + \lim_{a\rightarrow-\infty} -\cos 0 + \cos a\\ &=\lim_{t\rightarrow\infty}1 - \cos t + \lim_{a\rightarrow-\infty} -1+\cos a \end{align}$$  Now, at this point, it would be reasonable to say that both the limits are undefined and therefore, the integral is divergent but then if I try something like the following   \begin{align} \quad\quad&=\lim_{t\rightarrow\infty}1 -\cos t + \lim_{a\rightarrow\infty} -1+\cos a \\ \quad\quad&=\lim_{t\rightarrow\infty}-1 -\cos t + \lim_{a\rightarrow\infty} \cos a+1 \\ \quad\quad&=\lim_{b\rightarrow\infty}-1 +\cos b - \cos b+1 \\ \quad\quad&= 0 \end{align}  So, as you can see, it was shown before that the integral is divergent but with some manipulation, we came at an answer of $0$ but is that valid? I assume, a similar technique can be applied to $\int_{-\infty}^{\infty} \frac{1}{x} \, \mathrm{dx}$.


Are ($Q$, $\leq$) and ($Q \times Q$, $\leq _e$) isomorphic?

I can't really tell if ($Q$, $\leq$)$\cong$($Q \times Q$, $\leq _e$), where $\leq_e$ denotes the left lexicographic order. Neither have a last/first element, both are dense and have the same cardinality, so intuitively they are isomorphic. If so, how can I construct such an isomorphism? If not, why are they not isomorphic?  Generally speaking, what are the "criterions" for the existence of an isomorphism between two totally-ordered sets? As far as I have seen, if two sets are isomorphic then they preserve density (If one is dense then so is the other), a first/last element is mapped to a first/last element, open intervals are mapped to open intervals, and if each open interval has an inf/sup then so does its image. What other "criterions" are there?  Would appreciate any help.


How do I search for questions that include tag X, but exclude tag Y?

I want to find questions that include a certain tag but exclude a separate, different tag.  For example, suppose I wanted to find and read all questions that include a javascript tag, but I don't even want to see any question from that set that includes a jquery tag.  How would I go about that?


Why am I not seeing encryption as an option in file roller?

Ubuntu 18.04.1 LTS  I've done:   sudo apt-get install p7zip-full    ...but when I launch file roller, I don't see any encryption options and the UI seems very basic.


How would neutron matter appear to the naked eye?

Neutron matter is matter comprised entirely of neutrons, as it exists in .  Most optical phenomena encountered in everyday life, such as light reflection and spectral absorption (i.e. color appearance) are the result of mechanisms involving electrons.  My simple question: How would a macroscopic sample of matter consisting entirely of neutrons (without electrons) appear to the naked eye?  Assume the matter is  and stable.  Let me add here that I'm not specifically asking about the appearance of a neutron star, as Wikipedia states that it would radiate so much that it appears white.


We have a very large staging table (> 80 GB). From our source system we load invoice data in the staging table. From the staging we transform the data and load into DWH/Fact. Every day we delete the current month, then reload from source into stage. The stage contains complete history over time.  In some DW loads we only need the current month. Sometimes year and previous year.  What is a better index strategy:   Clustered index on a date column (Fiscal Period) Primary key with IDENTITY as surrogate key Clustered index for natural key (some kind of line item e.g. invoice number)   All queries contain the date column (Fiscal Period) and sometimes additional columns like Invoice type as non-clustered index. In the ETL we can disable the non-clustered index but not the clustered index.  Which of the three types has the best performance for:   Insert into Stage table Query the Stage table


I would the page x of x in the right side (foot) of each page. I have the following code:  \documentclass[a4paper]{article} %sætter dansk standard, a4 papir. \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Some name} \rhead{Some title} \usepackage{lastpage} \rfoot{\thepage\ af \pageref{LastPage} }  \begin{document} \title{A title} \date{Some date} \author{some name}  \maketitle  \newpage   hello world  \end{document}   I would like page X of Y on everypage (also title page). But when i compile the above it adds a pagenumber in the middel of the foot (as pr. standard article), but it also puts the page X of y in the right side. How can i fix this?


How to set background image for JPanel in netbeans?

i am using netbeans IDE problem is how to set background image for JPanel without using JLabel. Can anyone tell me how to do this?


"Find a Stack Exchange community" search box clipped in Firefox

On all sites (as far as I've tested), the search text in the site selection dropdown clips off the top and bottom:    Setup: FF 58.0.2, Windows 10. Doesn't occur in Edge, haven't tested in Chrome.


I'm trying to merge two directory trees that have many common elements but also each have elements that are only present in one of the two trees. The main issue I am having is that when mv encounters two sub-directories with the same relative paths it either keeps the source (with -f) or the destination (with -n) but I can't make it take the union of both sub-directories. I could of course use rsync with --remove-source-files but this will actually copy the data and then delete the old files as opposed to a true move. The two directory trees contain several hundred GB of data and are both on same partition so I would love to do a true move if possible for the sake of time.   Right now I have find * -type file -exec mv -n {} /destination/{} but this only moves  files from the source to the destination when the target directory already exists. I can preface this command with something like mv -n * /destination/ but this only brings over the top level directories. Is there any way to do this in a single line? I could  always write a script to check if the directory exists before copying the file but this seems like such a basic task, it seems like there should be an easier way.


Dual Booting Win10 and Ubuntu 17.10 on and SSD and HDD

I recently built a PC and installed Windows 10 on a 512GB SSD, I recently shrunk that partition to about 256 GB so I had room to install Ubuntu 17.10.   I have two 2TB hard drives, one of which is being used by Windows and the other is just free space. What should be my partition schemes for Ubuntu?  Should I:   Shrink the Free Space on the SSD just to put /boot and put / and swap space on the HDD Keep the Free Space on the SSD the Same and put / on the SSD, and have /home and swap on the HDD Some other combination   Thanks


When to choose em dash over parenthesis for parenthetical phrases?

According to :     The em dash, m dash, m-rule, or "mutton" (—) often demarcates a break   of thought or some similar interpolation stronger than the   interpolation demarcated by parentheses   Okay, but what constitutes "stronger"? Does the length of the parenthetical phrase come into play? The distance of the diversion from the main thrust of the sentence? Some kind of qualitative gut feel? All of the above?


Why does find not match repeat / quantifier expressions with emacs regular expressions?

I have a file 'abcd' in my current dir. Using find -regex '\.\/[a-d]\{4\}' gets me no results. While the regex works fine in emacs itself.  find, however, does find my file when I add -regextype posix-basic option to it.  Yet, the find manual specifies that find uses emacs regex by default. So why don't the quantifiers work?


Please remove the top bar indicator after completing review limit

It's glad to see the .  But, the top bar still indicating the items count to be reviewed after completing daily limit(20 for suggested edit).  I requested not to show the review indicator after limit reached.


Undo "Don't trust this website" in Firefox?

I mistakenly clicked "Don't trust this website" on a website which has a certificate issue. This is a local website, and the admins are too lazy to fix this issue, but I need to access it anyways.  Now I keep getting an "Secure Connection Failed" error in Firefox.  How can I fix this?


I had that some days ago (I removed the tags then), now I see that from someone else:  4th comment to the question.


Write down all the eigenvalues (along with their multiplicities) of the matrix A = (aij ) ∈ Mn(R) where aij = 1 for all 1 ≤ i, j ≤ n.  My attempt ; first i take A = (aij ) ∈ M2(R) where aij = 1 for all 1 ≤ i, j ≤ 2.                 here i got Rank A =1 and nullity =1. i got the two eigenvalue ie,  λ=1 and λ= 0.....in this pattern i find A = (aij ) ∈ Mn(R) i got two eigenvalue  with λ = 0 with multiplicity n − 1 and λ = 1 with multiplicity 1.  Is my answer is correct or not,,pliz verified my mistakes...


Proof that the mean of predicted values in OLS regression is equal to the mean of original values?

I was reading this page and came across the fact that the mean of the predicted target values for an OLS regression is always equal to the mean of the original target values. That is, for the set of predicted values $\{\hat{Y}_1, \hat{Y}_2, ...\}$ and the set of original values $\{Y_1, Y_2, ...\}$, the means of the sets are always equal.  Is there a simple proof of why exactly this holds true?


So I don't have an option to turn on GPU rendering in settings. I only have the option for CPU rendering. Here's my specs:   ATI Radeon HD 7770 1GB  GDDR5 1GH AMD Phenom II 4x 960T 3GHz 4Gb DDR3 1600MHz RAM   My GPU driver is version 13.9. I see people running fine with this GPU, but for some reason I don't have an option to turn it on.  I need to deliver my design tomorrow so I need this fast and CPU just can't render it that fast.  I'm running Blender 2.69 on Windows 8.1.


a function PHP to prevent SQL injection and xss

I want a function to prevent SQL injection and xss atacks using php like   function name($inp){   return sql(xss($inp)); }   Thanks


I made a list of synonyms of the word 'good' and I even told the program not to append a word, if it is already in the list. Unfortunately, I still have dublicates. This is my code:  import nltk from nltk.corpus import wordnet synonyms = [] for syn in wordnet.synsets("good"):     for l in syn.lemmas():         if str(l) not in synonyms:             synonyms.append(l.name()) print(synonyms)   And the output is the following  ['good', 'good', 'goodness', 'good', 'goodness', 'commodity', 'trade_good',  'good', 'good', 'full', 'good', 'good', 'estimable', 'good', 'honorable',  'respectable', 'beneficial', 'good', 'good', 'good', 'just', 'upright',  'adept', 'expert', 'good', 'practiced', 'proficient', 'skillful', 'skilful',  'good', 'dear', 'good', 'near', 'dependable', 'good', 'safe', 'secure',  'good', 'right', 'ripe', 'good', 'well', 'effective', 'good', 'in_effect',  'in_force', 'good', 'good', 'serious', 'good', 'sound', 'good', 'salutary',  'good', 'honest', 'good', 'undecomposed', 'unspoiled', 'unspoilt', 'good',  'well', 'good', 'thoroughly', 'soundly', 'good']   Does somebody know why this is happening?


Baby born in UK. Can it travel to the USA on a British passport before getting a USA passport/SSN?

The baby's father is American, the mother is British. We are supposed to be travelling in a couple of weeks, and do not have time to wait for the US consulate appointment and application for a passport, which takes another month. The British passport process is faster.  Is it possible to apply for a US passport/SSN once we are back in the States? Even if the baby arrived on a British passport with ESTA?


Why javascript function can be invoked before it is defined?

<html>     <head>         <script type="text/javascript">             f();             function f() {                 alert('in f()');             }         </script>     </head> </html>   This block of javascript will work. But the following cannot:  <html>     <head>         <script type="text/javascript">             f();             f = function() {                 alert('in f()');             }         </script>     </head> </html>   With the following error from Chrome:   Uncaught ReferenceError: f is not defined   My questions are:   Why in the first case, we can access f before define it? What's the different between the two cases?


Drawing balls with replacement - Probability

I'm having trouble with the following problem     There are 4 different colored balls: Red, Green, Black, Blue what is the probability that I will get 2 of the same colored balls by drawing 4 balls with replacement.   I attempted to solve this problem by splitting the question into two parts. First I calculated the probability of drawing 4 balls where I have 2 of one color and 2 of another color. Call this event $A$.  $$P(A) = \frac{4 \times 1 \times 3 \times 1 \times \binom{4}{2}}{ 4^4}= \frac{72}{4^4}$$  Next I calculated the probability where 2 balls are the same color and the other 2 are different. Call this event $B$ $$P(B)= \frac{4\times1\times3\times2\times4P2}{4^4}$$ I understand that if I sum these two probabilities I should get the answer but for some reason the event B was not calculated correctly. Any feedback and help is appreciated.


Adding the full text of the articles that I manually added to Google Scholar

How can I add the abstracts and/or the full text of the articles that I manually added to my Google Scholar account?


What's the difference between user experience and usability?

Is there a difference? Does one fall under the other?


Calling a Method from another Module's Class

I'm dumb and this is embarrassing, but I'm trying to figure out how I properly use a method from a class in other parts of my code. I need to understand the Drupal way, if not just the php way. I have a class like this... namespace Drupal\module_name\Utilities;  use GuzzleHttp\Exception\RequestException; use Drupal\Core\Logger\LoggerChannelFactory; use Drupal\Core\Messenger\MessengerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use GuzzleHttp\ClientInterface; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;  class Example implements ContainerInjectionInterface {    private $client;   protected $loggerFactory;   protected $messenger;   protected $config;    public function __construct(     LoggerChannelFactory $loggerFactory,     MessengerInterface $messenger,     ClientInterface $client,     ConfigFactoryInterface $config   ) {     $this->loggerFactory = $loggerFactory->get('simple_mailchimp');     $this->messenger = $messenger;     $this->client = $client;     $this->config = $config->get('module_name.settings');   }    public static function create(ContainerInterface $container) {     return new static(       $container->get('logger.factory'),       $container->get('messenger'),       $container->get('http_client'),       $container->get('config.factory')     );   }    public function request() {     return 'whatever';   } }  What's the proper way to use this class somewhere else? For instance, in another module, I want to call the request() method shown above.   $example = new Example();   $x = $example->request();  This doesn't work, as shown above. I get this... ArgumentCountError: Too few arguments to function Drupal\module_name\Utilities\Example::__construct(), 0 passed... and exactly 4 expected  (Even though it seemed to have worked at one time.) That said, what's the right way to go about this with Drupal, or in general, I guess?


Solve $a!b!=a!+b!+c!$ where $a$, $b$ and $c$ are nonnegative integers.

My teacher in Math Team gave the following question to us.     Solve $$a!b!=a!+b!+c!$$ where $a$, $b$ and $c$ are nonnegative integers.   I found only one solution by trial and error and it is $(a,b,c)=(3,3,4)$.  Any help is appreciated!


LocalDate has private access in LocalDate

I am trying to find out someones age. I am following the answer given in here:   This is what I have so far:  public void setDOB(String day, String month, String year){      LocalDate birthDate = new LocalDate(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(day)); }   I am getting a an error when declaring the birthDate variable. I am getting the following error:     LocalDate(int,int,int) has private access in LocalDate   . I don't know what this error means but I am assuming its to do with data access (e.g. private, public, etc)


Condition "Sample size > 30" for infering population proportion or mean

to use statistical inference, when estimating the proportion of a population based on the sample proportion, is that:  The data's individual observations have to display normality. This can be verified mathematically with the following definition: Let $\displaystyle n$ be the sample size of a given random sample and let $\displaystyle {\hat {p}}$ be its sample proportion. If $\displaystyle n{\hat {p}}\geq 10$ and $\displaystyle n(1-{\hat {p}})\geq 10$, then the data's individual observations display normality.  , it says that the sample size $n \ge 30$, which  this rule-of-thumb was developed by having a computer do what are called “Monte Carlo simulations”  So far, I haven't found a source that formalize any of these assumptions. Could someone provide some references (articles, books) about this?


`*` in the `glob.glob(pathname, *, recursive=False)`

I read  about glob.glob(pathname, *, recursive=False), but have no idea of the symbol *, It seems not necessary, because  In [6]: glob.glob("*")                                                                                Out[6]: ['third.html', 'test.sh', 'second.html', 'first.html'] In [7]: glob.glob("*","/Users/me/Desktop/draft")  TypeError: glob() takes 1 positional argument but 2 were given   glob takes 1 positional argument and 1 option recursive.  What does * mean ?


Beginner : Interpreting Regression Model Summary

> sal <- read.csv("/Users/YellowFellow/Desktop/Salaries.csv",header   = TRUE) > regressionModel = lm(sal$Salary~sal$Yrs.since.phd) > summary(regressionModel)  Call:  lm(formula = sal$Salary ~ sal$Yrs.since.phd)  Residuals:    Min     1Q Median     3Q    Max  -84171 -19432  -2858  16086 102383   Coefficients:                   Estimate Std. Error t value Pr(>|t|)     (Intercept)        91718.7     2765.8  33.162   <2e-16 *** sal$Yrs.since.phd    985.3      107.4   9.177   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 27530 on 395 degrees of freedom Multiple R-squared:  0.1758,    Adjusted R-squared:  0.1737  F-statistic: 84.23 on 1 and 395 DF,  p-value: < 2.2e-16   The above is my result from the basic linear model that I've created. I've been trying to interpret these results for some time but I don't understand the mathematical formula's behind them or how to explain results such as Coefficients, Residuals & Multiple R-squared. Please be kind enough to explain this to me in a simplified manner.


Can anyone assist me regarding the design of a circular polarized rectangular patch antenna that is driven at adjacent sides through a power divider?   I already calculated the parameters of the width and length of the patch and the substrate size. However, I am having difficulties calculating the positioning of the microstrip transmission line in order to get a circularly polarized antenna. I am running at a frequency of 915MHz, using FR-4 substrate and a height of 1.6mm.


Why doesn't saturation current in the photoelectric effect depend on the frequency of light absorbed ny the metal emitter?

If current I is given by I = nAev, where n is the number of electrons per unit volume, A is the area, e is the charge of an electron and v is the velocity of the electron, it means that current increases with increase in velocity of the electron which increases with the frequency of light incident on the metal emitter. Why then doesn't saturation current increase with increase in frequency?


Why a continuous function cannot map rational numbers to irrational numbers

There is a question in Goldbergs analysis book as below:     Prove there is no continuous real-valued function f on real numbers such that f(x) is rational if x is irrational and f(x) is irrational if x is rational.   But why should the statement above be correct? Let $f(x)=\pi x$ , continuous -real valued; and let $x=1$, a rational number; then $f(1)=\pi$ is irrational.  Clearly I must show the statement in that question is correct. But I do not know why?


Your (honest) opponent choose a random number from 1 to 13 inclusive. You have to guess the number, and you win if the guess is correct. If not, your opponent either reduces the number chosen by one or increases it by 1, and you guess again.  The question is, what is the minimum # of attempts necessary to guarantee a win for you.  I am not able to get a handle on the problem.  Also, (a new variant just thought of), how many guesses should be allowed for a fair or "nearest to fair" game ?


I'm studing the UWP coding in C#. I've done a little Grid with some rectangles:  Rectangle r = new Rectangle();   I've done it in many methods of class. I would create a generic type (for example as class or a variable) to fast change all Rectangles in Ellipse (for example), not at runtime. I mean something like:  Type ShapeType = typeof(Rectangle);   and create:  ShapeType figure = new ShapeType(); ...   but tomorrow be able to change  Type ShapeType = typeof(Rectangle);   in  Type ShapeType = typeof(Ellipse);   and change all the shapes in my code. Is this possible? How can I create a class "Rectangle-like" or "Ellipse-like" ?  Thank you  Marked as duplicate of:  "Get a new object instance from a Type One may not always know the Type of an object at compile-time, but may need to create an instance of the Type. How do you get a new object instance from a Type?"  Where I've written that I want create an object at runtime? Or also only that i want create an object?  My question is about "How to change (from code) easily the type defined in many line of code creating a generic type?"


How do you type the '§' symbol (section sign) in Minecraft?

At the moment I'm copying and pasting it but you cant copy and paste in Minecraft. How can I type it on a QWERTY keyboard?


How to execute DOS command and retrieve result

My C# application requirement is to issue dir command from command line (with J:\MyFolder> as current directory) and receive output from that command in my C# application.   I tried MSDN where issuing command line examples are there like "/c dir" but I would like to retrieve result also.    Can somebody help me with that? Thanks in advance.


I m under debian8 and some (important) files have been deleted. I m trying to restore my machine and almost everything works except dpkg-query -l, it returns me those lines :  root@minos:~# dpkg-query -l dpkg-query : erreur : la lecture du fichier « info » « /var/lib/dpkg/status »  du paquet a échoué: Aucun fichier ou dossier de ce type   It looks like the file at /var/lib/dpkg/status doesn't exist anymore. Is that possible to 're-create' one ? Thanks  EDIT  root@minos:~# ls -lrt /var/lib/dpkg/ total 156 drwxr-xr-x 2 root root   4096 mai    3  2016 parts drwxr-xr-x 2 root root   4096 mai   18 09:26 updates drwxr-xr-x 2 root root   4096 mai   23 16:25 alternatives drwxr-xr-x 2 root root   4096 mai   23 16:25 triggers drwxr-xr-x 2 root root 139264 mai   23 16:25 info -rw-r----- 1 root root      0 mai   24 11:45 lock   This doesn't work..  root@minos:~# cp /var/backups/dpkg.status.0 /var/lib/dpkg/status cp: impossible d'évaluer « /var/backups/dpkg.status.0 »: Aucun fichier ou  dossier de ce type root@minos:~# ls -lrt /var/backups/ total 64 -rw------- 1 root root     870 mai   17 11:42 group.bak -rw------- 1 root shadow   728 mai   17 11:42 gshadow.bak -rw------- 1 root shadow  1445 mai   17 11:42 shadow.bak -rw------- 1 root root    1821 mai   17 11:42 passwd.bak -rw-r--r-- 1 root root   33242 mai   18 09:08 apt.extended_states.0 -rw-r--r-- 1 root root   10240 mai   25 06:25 alternatives.tar.0


Why does the magnitude of linear momentum of a particle in circular motion change with radius?

My problem is with linear momentum of a particle in circular motion. If we imagine a particle moving around a circle, if there are no torques acting, then we can say its angular momentum is conserved, i.e. $mvr=k$ (where $m$ is the mass, $v$ the velocity, $r$ the radius and $k$ a constant value). It means that if the radius decreases, then the velocity will increase and viceversa.  Since during all the process the force (which is centripetal) is only responsible for changing the direction of the velocity the particle (it makes it move around a circle) and is always perpendicular to it, the magnitude of linear momentum should not change. Then why does the velocity (or momentum) change with a change in the radius (by conservation of angular momentum)? Why is linear momentum not conserved in circular motion? Correct me if something of what I said is wrong. If you are able to explain this, please try to give an intuitive explanation.


What is the maximum length for a scheduled job name?

The question itself is relatively simple.   If I call System.schedule(String jobName, String cronExpression, Object schedulableClass), what is the maximum length for a scheduled jobname parameter?  The answer wasn't immediately apparent in the System class .  As an aside, I'm asking because I've run into a scenario where I need to go to extra lengths to ensure the scheduled job name is unique.   The current code I have takes into account the time when the job was scheduled. However, I've run into a scenario where a subscriber org has spun up all 50 Queueable jobs in one transaction. When each job runs it is trying to schedule another class to run. Depending on the exact timing, some of those resulting jobs end up with the same name. Exceptions are thrown. Jira tickets are raised.  Short of having the  available in Apex to ensure uniqueness I'll need to burn some more characters in the job name. I just need to know how many characters I have to work with.


Problems with function : cv2.GaussianBlur

I need your help, I have an error with the following function:  blur = cv2.GaussianBlur(res, (15,15),0)                                           ^ IndentationError: unindent does not match any outer indentation level  Can anybody help me? I have the opencv 3.0.0  my code is :  import cv2 import numpy as np   cap = cv2.VideoCapture(0)  while True :      _,  frame = cap.read()     hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)       # hsv hue sat value     lower_red = np.array ([50,0,0])     upper_red= np.array([100,255,255])      mask = cv2.inRange(hsv, lower_red, upper_red)     res= cv2.bitwise_and(frame, frame, mask= mask)      kernel = np.ones((15,15), np.float32)/ 225     smoothed = cv2.filter2D(res, -1, kernel)      blur = cv2.GaussianBlur(res, (15,15),0)       cv2.imshow('frame',frame )     #cv2.imshow('mask', mask)     cv2.imshow('res', res)     cv2.imshow('smoothed', smoothed)     cv2.imshow('gaussian', blur)      k = cv2.waitKey(5) & 0xFF     if k==27:         break        cap.release()     cv2.destroyAllWindows()


I have installed Geary mail client 0.4.0 from software center. After I read there is a new version, 0.4.1, I added the PPA through terminal.  sudo add-apt-repository ppa:yorba/ppa sudo apt-get update   Still, I am stuck with 0.4.0.  Have I done something wrong?


Visa rules for South African nationals transiting through the US?

I am a South African travelling to Toronto, I have a visa for Canada  but my flight back is from Toronto to Washington DC Dulles international airport onward to OR Tambo in Johannesburg. Do I need another visa ?


Dynamically-generated heatmap WMS tiles on GeoServer/Leaflet displays wrong

I am using a GeoServer to calculate dynamically a heatmap on points coming from a postgresdatabase with the SLD style presented there :   However, if the result is okay in OpenLayer preview in GeoServer, the WMS tiles are totally wrecked when requesting them from Leaflet like here :     I kind of understood that the problem was due to tiles calculating only points in their tile, leading to this, and that single-tile mode was a solution.  However, while OpenLayers provides the possibility to request WMS in single tiled mode, Leaflet does not.  There are plugins developed here and there but I am working with VueJS so I can't use them directly.  As a consequence I am looking for a way in GeoServer to correct this behavior but i don't know if there is a way and how to do it. I tried to add tiled=false in parameters of the URL but it doesn't seem to work and the tile caching  tutorials are aimed at saving tiles which is different from what I want.


I am new to LaTeX and was wondering whether anyone knew how to apply the conversion. I've attached the following code as a reference:   \documentclass[12pt]{article}  \usepackage[margin=1in]{geometry}  \title{Rules} \author{Mohamed Mirza} \date{}  \begin{document} \maketitle  \section{Essentials}  \end{document}


I want to arrange three pictures drawn with tikzpicture horizontally.  Unfortunately I can't make it work using any of the threads on a similar topic.  Thank you a lot for your help, best regards  Code:  \begin{figure}[!h]  \centering  \begin{subfigure}[b]{0.3\textwidth}      \resizebox{\linewidth}{!}{     \begin{tikzpicture}     \draw plot[domain=-1.3:1.3]  ({\x,{(\x)^(2)+0.1*(\x)^(4)}});      % Optional: Add axes     \draw[-stealth] (-1.7,0) -- (1.7,0) node[right] {$M$};     \draw[-stealth] (0,-1.7) -- (0,1.7) node[above] {${\cal L}$};      \end{tikzpicture} } \caption{$T>T_c$}   \end{subfigure}  \begin{subfigure}[b]{0.3\textwidth}      \resizebox{\linewidth}{!}{     \begin{tikzpicture}     \draw plot[domain=-1.4:1.4]  ({\x,{0.5*(\x)^(4)}});      %Optional: Add axes     \draw[-stealth] (-1.7,0) -- (1.7,0) node[right] {$M$};     \draw[-stealth] (0,-1.7) -- (0,1.7) node[above] {${\cal L}$};      \end{tikzpicture} } \caption{$T=T_c$}   \end{subfigure}  \begin{subfigure}[b]{0.3\textwidth}      \resizebox{\linewidth}{!}{     \begin{tikzpicture}     \draw plot[domain=-1.6:1.6]  ({\x,{-2*(\x)^(2)+(\x)^(4)}});      % Optional: Add axes     \draw[-stealth] (-1.7,0) -- (1.7,0) node[right] {$M$};     \draw[-stealth] (0,-1.7) -- (0,1.7) node[above] {${\cal L}$};      \end{tikzpicture} } \caption{$T<T_c$}   \end{subfigure}  \caption{Plot of the Landau free energy for different values $M$ and $t=\frac{T-T_c}{T_c}$ around criticality.\label{fig:phasetrans}} \end{figure}


How Many Variables to use In Real Life Models

This is a question for those out there working in data scientist roles within your organizations. How many variables in acceptable to use within models that are going to be deployed in production for marketing or other purposes?  The reason I ask is this, we have four analysts, two of whom have been with the company for 10 years, and two of us who are recently graduated with our Masters in Predictive Analytics. Our senior analysts primarily build with linear / logistic regression models, and think that using the least amount of variables (regardless of technique) is always best, usually trying to use around 10-15 variables.  Us newer analysts work primarily with random forest and xgboost, and are comfortable using 100-800 variables in our models. I havnt encountered anything to say that using this many variables in random forest or xgboost should cause any concern, but we cannot come to an agreement. Even if holdout results are better using 100+ variables, we are still encouraged to use less.  Can anyone provide any information regarding this topic that might help shape our decision making progress?  Thank you,  Nate


Clarification requested on putting class instances in array and using virtual methods

Note:  I do not agree this is a duplicate of the linked issue.  While that is an issue, that is not the question.  Please see below.  When I assign a new class instance to an array, the base class' virtual function  is used instead of the overridden derived class virtual function.  I was told the problem with the code below is .  However, according to , this should work.  I am a beginner at C++, so I'm not sure who is right.  Can someone point me in the right direction or tell me what's wrong?  Is this because I'm copying the object to the array instead of "pointing" to it?  However, I can't figure out how to do this correctly.  See code below for what I've tried.  Addendum:  There is in fact an object slicing problem here.  However, the purpose of my question and what I did not understand is that overriding only works if you use pointers or an array of pointers and not if you declare an array of instances.  #include <iostream>  // I know these should be structs since they're all public! class Animal {   public:     Animal() { std::cout << "Animal constructor\n"; }     virtual void speak() { std::cout << "Animal/Hello!\n"; } };  class Dog: public Animal {   public:     Dog() { std::cout << "Dog constructor\n"; }     void speak() override { std::cout << "Dog/Bark!\n"; } };  int main() {   const int Size = 4;    Animal* Kingdom = new Animal[Size];   Dog* rover = new Dog;    // Legal because of polymorphism:   Animal* spot = new Dog;    // Legal because of polymorphism;   // Believe this is wrong - I think I'm copying the value rather than   // pointing to it, but not sure what the right way is...   Kingdom[0] = *(new Dog);   // &Kingdom[0] = new Dog;  // Error - left operand must be l-value   // Kingdom = new Dog;  // Wrong - changing array base, leaking memory    Kingdom[1] = *rover;   Kingdom[2] = *spot;    // Virtual method followed here:   std::cout << "\nIndividual invocations:\n";   rover->speak();   spot->speak();    std::cout << "\nInvocation from array:\n";   for (int i = 0; i < Size; ++i)     // Doesn't work - virtual method not followed, not sure why...     // Kingdom[i].speak();     // No difference between these two forms:     (Kingdom + i)->speak();    // PS - I know I should put deletes in here not to leak memory! }


As I undersand in thermodynamics, a gas with an equation of state $f(V,T,p)=0$ will need only 2 variables (e.g $V$ and $p$) to determine its state.  Regarding this question:    if we fix the entropy $S$ and the volume $V$, the state of gas can still change. Why is that possible? If $f(T,p)_V=0$ and $S(T,p)_V=S$ fixed, then is it not true that the state of gas is fixed?  I know I'm wrong somewhere, please correct me.


What precautions should I take with .debs I find on the internet?

So I was browsing the web the other day, and I came across a few places that wanted me to download .deb files - and since those are installed by root (and as such have the "powers" and capabilities of root), I wasn't sure about that.


How can I encrypt plain text with a password on Linux?

takes a plaintext message + password input and encrypts the plaintext. I want to do this locally on Linux. Is there a one-line command that will compute an encrypted version of my message that I can then email?  My goal is for the receiver to be able to decode the message with nothing but the password.  To be clear, I have no idea what various encryption schemes are (AES, openSSL, RSA, GPG, salt, base64, DES, CBC, reentrant) and not really interested in a research project. I just want a one-line command like  encrypt message.txt -password=secret.txt  which would be decoded like  decrypt message.txt -password=secret.txt    (Yes, I did use google first.  is not showing me anything I understand / think I can use.)


Add different textures to front and back of plane with solidify?

I have a map; a plane and a Solidify modifier. I have already applied an Image Texture to one side, but Blender is obviously applying the texture to both sides.  I want to add a different Image Texture to the other side of the plane, however. Is there a way to do this?  I have tried to add another one using the Geometry > Backfacing feature, but it did not work.  Map mesh and .blend file's material:    Viewport render of map mesh and Backfacing material (not working):


I am trying to run Jupyter notebook from my Ubuntu subsystem in Windows 10. I've installed numpy, scipy, and pandas using the following commands:  pip install scipy numpy pip install pandas   When I load python in Ubuntu, there is no issue importing numpy in Ubuntu cmd.   But, when I run my Jupyter Notebook from Ubuntu terminal, and try to import numpy as np, or import pandas as pd, they report  ModuleNotFoundError                       Traceback (most recent call last) <ipython-input-1-a9340201ed9f> in <module>       5 import dash_html_components as html       6 import plotly.graph_objs as go ----> 7 import numpy as np       8 from dash.dependencies import Input, Output       9   ModuleNotFoundError: No module named 'numpy'   Is there anyway to solve this issue? Thanks a lot.


I need to validate an integer to know if is a valid enum value.  What is the best way to do this in C#?


Prove: $(na_n)$ converges to 0 if $(a_n)_{n=1}^\infty$ is a monotonously falling sequence of non-negative real numbers

Prove: Let $(a_n)_{n=1}^\infty$ be a monotonously falling sequence of non-negative real numbers, so that $\sum a_n$ is convergent. Then $(na_n)$ is a sequence converging to 0.  Well, no idea. All help is greatly appreciated!


The ::after selector for external links is positioned with the text

I was editing my profile when I noticed this:  On SO        On Code Review.SE        The ::after content should have a little margin from the text itself. Currently, it hinders the readability.


Does holding an action change your order in inititiative?

I play in a group that has different levels of D&D experience from first time players to those that have been playing since the inception of D&D. We are currently playing in 5th edition. When we are in a combat setting, if a player holds their action in combat, they are told by the more experienced players their initiative changes to 0 and they now go last in initiative order for the remainder of combat. Is this correct or is this a rule from a different edition?


Why are bash tests so picky about whitespace?

As a primarily Java programmer, I find the bash if-then construct quite confusing, especially regarding whitespace. Can anyone explain why the first one works, but not the second or third?  #works if [ -n $1 ]; then echo "parameterized"; fi  #output: ./links: Zeile 1: [-n: Kommando nicht gefunden. if [-n $1 ]; then echo "parameterized"; fi  #output: ./links: Zeile 1: [: Fehlende `]' if [ -n $1]; then echo "parameterized"; fi


I see some mismatch with the Stack Exchange site counts. In  page it shows "A list of all 151 Stack Exchange" sites In  page it shows "A list of all 153 Stack Exchange" sites And in the Stack Exchange  section it describes "Stack Exchange is a network of 150 communities that are created ... " Is this a bug or cache? Or the shown communities are calculated in some other way? Screenshot from Meta Stack Exchange:    Screenshot from Stack Exchange Tour page:


Deleting a question which is answered and must be deleted for company reasons

I want to delete my question which is answered.  I breached my company policy by sharing the original code! Now my account is  suspended for 2 days! How do I delete an answered questions?


The set of all n×n matrices having trace equal to zero is a subspace W of $M_{n\times n}(F)$ . Find a basis for W. What is the dimension of W?. A good hint would be helpful, thanks.


How can I pad an integer with zeros on the left?

How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001).


For any given set of 13 distinct real numbers, prove we can always find two numbers $x$ and $y$ that $0<\frac{x-y}{1+xy}\leq 2-\sqrt{3}$.

For any given set of 13 distinct real numbers, prove we can always find two numbers x and y that $0<\dfrac{x-y}{1+xy}\leq 2-\sqrt{3}$.  I knew we can always make $0<\dfrac{x-y}{1+xy}$ happen. Since x and y are distinct, we can just switch the order of x and y to change the sign of $\dfrac{x-y}{1+xy}$, but what should I do for the right hand side?


Is there a convenient way to lower the resolution of pictures without additional software?

Background is that in my lab it is common and convenient to document stuff by simply making a picture of it. Once a project is finished, I will merge these pictures into one file which I will give to other group members so they can work with it. Since these files often contain 20+ images where each image is a few Mb the PDF-File gets quite large (>100Mb).   That is why I am wondering: Is there any convenient way in LaTex to lower the resolution of pictures without having to run them through another software beforehand ?


How to scan Windows Partition using ClamAv? "Could not mount OS"

I am new to Ubuntu. I was trying to scan my Windows 10 partition using ClamAv but whenever I select the Windows Partition, this message pops up:  Could not mount OS.  Error mounting /dev/sda3 at /media/username/OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda3" "/media/username/OS"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option."   I have restarted the computer, with Windows fully shutdown.


Jquery injected dom not available for process.

I have iterated new DOM using jquery. But the newly manipulated DOM are not available as normal DOM. DOM is properly written to browser yet functions on those elements not working. Code is given below.

                  <select class="drcr">             <option value="dr">Dr</option>             <option value="cr">Cr</option>         </select>                    <input class="jvamt" name="parrot[]" type="text">


Underfull \hbox (badness 10000) using double backslash to separate paragraphs

I am quite new to LaTex. I separate each of my paragraphs with a double backslash (\\). However, for every paragraph I do so, I get the following error: Underfull \hbox (badness 10000) in paragraph Can I ignore this error? Or is there an alternative/better way to use \\? Thanks!


Is there an easy way to see that binary expansion is unique?

Let $n \in \mathbb{N}$. Using the Euclidean algorithm, it is straightforward to see that every natural number can be written as  $$n = \sum_{j=0}^m \epsilon_j(n) 2^j $$  where $\epsilon_j(n) \in \{0,1\}$.   Is there an easy way to show that this way of writing the number is unique?


How are temporary suspensions by one's own request handled?

In  I can see maybe it is possible, although I think it could be an over-use of the SE team. I think, they are for exceptional technical problems over the influence of the mods.  Maybe an automated solution could be developed for this?  If somebody asks for an irreversible, temporary suspension (if he has account on multiple SE sites, then network-wide), how is it handled? Is it even possible?  What is the best way to ask for this, if it is possible?  Also I think a suspension at one's own request shouldn't be counted as if it had been a punishment. In these cases, the punishment had been if the user hadn't been suspended.


How did the displaced persons know how to carry on once Sam Beckett jumped out of their bodies?

In Quantum Leap, Sam Beckett switched into other peoples bodies and changed, or restored, or ensured history that was guided to the history as it was known in Sam's own timeline. These people seemed to be kept isolated in a lab in Sam's (their future) timeline. Once Sam did his thing as dictated by that weeks mission, he leapt out and the displaced person returned to their place in time. Since they were unaware of the decisions and actions Sam performed in their name, how did they continue the altered timeline without unraveling Sam's activities?


$f \in K[X]$ is irreducible and separable. $L$ the splitting field of $f$. Show:  $[L:K] > \text{deg}(f)$  $\Rightarrow$ $\text{Gal}(L|K)$ is not abelian


Viewing thumbnails of RAW, DNG, PSD, TIFF, and other files in Windows 7

I am curious if there is a way to see thumbnails for more than the default file types (i.e. GIF, JPG, BMP, PNG) in Windows 7. I tend to use other formats like DNG, CRW, CR2, TIFF, etc., and sadly, Windows does not support thumbnail previews of these images by default.  I used to use a few registry hacks in previous version of windows, however they no longer seem to work for Vista/7. I currently run Windows 7 64bit.


Does LaTeX takes into account the DPI of an image ? Or just the pixels?

Two images with same resolution (nb of pixels width and height) but with a ration of 2:1 in DPI one will display two times bigger than the other ?


Compute the integral $\int_{0}^{\infty} \exp(in\omega t-\gamma^2 t^2)dt$

How to compute the following integral?   $$\int_{0}^{\infty} \exp(in\omega t-\gamma^2 t^2)dt$$   Please help me.


Proving the inequality for all positive reals

For any positive reals  $\frac{b^2+c^2}{b+c}+\frac{c^2+a^2}{a+c}+\frac{a^2+b^2}{a+b} \ge a+b+c$  After some work this equality boils down to proving $ab^3+b^3c+a^3c+bc^3+a^3b+c^3a-2abc^2-2ab^2c-2a^2bc \ge 0$ which I am struggling to prove. Any hints


Reliable sources to know if a country is "safe" to visit?

I'm from the US and interested in traveling to the Balkans.  I checked the US Embassy government website for certain countries in the Balkans, and they are apparently deemed safe. But numerous people have told me of issues like sex trafficking that happen in that region, suggesting I'm at risk if I travel there. Part of me thinks that is unnecessarily cautious, but at the same time, I wouldn't want to be putting myself in that situation if more reliable sources would have confirmed that to be a real risk.  Is it safe to trust just the US Embassy website? Or are there other places I should check for this type of information? What about political issues?


The equivalence relation generated by a relation

Let $X$ be a non-empty set and let $r\subseteq X\times X$ be a relation on $X$. Let $R$ be the intersection of all equivalence relations on $X$ that contain $r$.   Prove that if $xRy$, then one of the following is true:   $x=y$; $xr'y$ or $yr'x$;  There exist finitely many elements $z_0,\ldots,z_n$ such that $xr'z_0, z_0r'z_1,\ldots,z_nr'y$,   where $ar'b$ means that $arb$ or $bra$.


How to remotely distribute an iOS app for testing without App Store?

I am building an iOS app and it is still in early stage for testing. My QA actually lives in another state and I can't install my app to his iOS device with physically connected option.  Is there a way that I can send the iOS app package to my QA and he can install it somehow in his physical device? Also, this app is still in early testing phase so I don't think we are ready for app store approval.


Any website to look up words with similar pronunciation or spelling?

Is there any website(s) to look up words with similar pronunciation or spelling?  For example: stack, steak, stake, stick.  (It can help me as a non-native English speaker to learn confusing words.)


i saw multiple questions dealing with the topic. But they were bit old and i would like to ensure that there hasnt been any rule changes  My parents are Indian citizens and they have bank account in India. I am an Indian citizen too. But i have been in USA for last 12 years and planning to settle here. I am working in USA. I am on EAD right now . I am very close to getting my green card  My questions below   I have NRE/NRO accounts in an Indian bank. My parents have normal accounts in that same bank. How could My parents transfer money to me ?  I read that there is no annual cap to money transferred. Is that correct? is there any lifetime cap on money transferred  My CPA told the money transferred by parents is not my income, i dont have to pay tax on it. is it correct?


Best practices for monitoring Scheduled Apex and Batch Apex?

We have multiple Apex jobs running, both from Schedulable and Batchable code. While an attentive SA could examine the Apex Jobs list to check that everything is OK, it seems a better idea to have explicit notification of errors (and more detailed error information).  We've tried a number of approaches to this in the past, but are now thinking of creating standard Document objects to log into (as that can be done from both Schedulable and Batchable code with no new dependency introduced) that follow a naming pattern and then having one Schedulable that merges these once a day into a single notification email.  But before making this change I'm interested to know if anyone has a better idea they are willing to share?


In a bash script, how do I check if "-e" is set?

I use set -e in scripts quite often, but sometimes, it's ok for a script to fail in some of it's commands. I tried checking if set -e was ON, but couldn't find a way to do it - there's no option (that I know of) in set that will provide the current value. Also tried this: set | grep errexit (errexit is the option name for -e) and set | grep "-e", no luck there. I would like to check if the errexit option is set, so I could temporarily disable it in some of my library functions that I built over time (using set +e and re-applying set -e if needed). Something like: if [ errexit is set ]; then    ERR_EXIT=1    set +e fi ... run some code that may fail ... if [ "${ERR_EXIT}" = 1 ]; then     set -e fi


I'm trying to upgrade Ubuntu 13.04 to 13.10.  I have executed the terminal command :  sudo apt-get dist-upgrade  I've got the following error :  dpkg: error processing /var/cache/apt/archives/linux-image-3.8.0-35-generic_3.8.0-35.52~precise1_amd64.deb (--unpack): trying to overwrite '/lib/modules/3.8.0-35-generic/kernel/mm/hwpoison-inject.ko', which is also in package linux-image-extra-3.8.0-35-generic 3.8.0-35.50 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.8.0-35-generic_3.8.0-35.52~precise1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Community accepted answers after a period of time and tipping point

I know there's been pretty substantial discussion regarding Moderators being able to accept unaccepted answers, but the obvious issue with that is Moderator workload, purpose, and expertise.  For an example just check out   I'd propose that another direction be taken, after a period of say 6 months, the question is then opened up to users with a particular reputation level (you pick), and that after a certain number of these super-users vote to accept a particular answer, that the question be closed off as accepted.    This would address the workload issue by distributing it, it would address the expertise issue but requiring essentially peer review, and it would attack the growing problem of unanswered questions.  I believe an incentive could be awarded to those super-users for being part of an accepted answer to encourage the gradual cleanup of unanswered questions, maybe even a new badge of some sort.  Thoughts?    EDIT: As I've mentioned in response to comments below, sometimes, the most upvoted answer isn't the best practice, as a user, I'd like to know what the pro's do more than what the masses do, and so in limiting this particular ability to those with higher rep would tend to lean in favour of a best-practice rather than popularity.    EDIT 2: I see that some have already decided that this is a duplicate simply because the question was asked, but my contention is that none of the others have proposed viable methods, I think this does, and it does it differently.    EDIT 3: The question of what if the OP still wants it open came up below, I would propose that the OP then have the ability to reverse the community selected answer, and lock it from further community closing's.    EDIT 4: Based on the discussion below, it's clear that this isn't just a repeat of past questions and that there are some good ideas here, I BEG those who marked this question as a duplicate to read on and reconsider so that we can continue to have a conversation on the merits, or at the very least point out why you don't believe it deserves to be heard out.  I don't believe you gave it a fair shake.    Final Edit: Long live the popularity contest!


Let $F$ be a subfield of a field $K$, $a$ an element of $K$.  Prove that $a$ is algebraic over $F$ iff $F[a]=F(a)$.  For the first direction I've tried this: $a$ is algebraic over $F$ $\Rightarrow$ there is a polynomail $f$ over $F$ such that $f(a)=0$ $\Rightarrow$ $1,a,a^2,...,a^m$ are linearly dependent $\Rightarrow$ $\deg(F[a])<m$.    but it contains $f(a)$ so they are equal..  is that correct? about the other direction.. i simply have no clue


Prove that $\lim_{n \to \infty} \frac{n}{(n!)^\frac{1}{n}} = e $

I have solved the problem in just 2 lines using a theorem which asserts that  "Let ${u_n}$ be a real sequence such that $u_n > 0 \forall n \in \mathbb{N}$ and $\lim_{n \to \infty} \frac{u_{n+1}}{u_n} = \ell$ (finite of infinite). Then $\lim_{n \to \infty} (u_n)^{1 \over n} =\ell$ "  To prove the aforesaid limit, I fix $u_n={n^n \over n!}$. Then $u_n>0 \forall n \in \mathbb{N}$ and $\lim_{n \to \infty}\frac{u_{n+1}}{u_n}= \lim_{n \to \infty}(1+{1 \over n})^n=e$.  Then it follows from the above theorem that $\lim_{n \to \infty} (u_n)^{1 \over n} =e$  i.e. $ \lim_{n \to \infty} \frac{n}{(n!)^\frac{1}{n}} = e $. (Proved)  But I am trying to prove it without using the theorem. I am trying to get a generic proof.  Can anyone provide a proper wayout for this?  Thanks for your help in advance.


What is the type/shape of the Star Wars galaxy?

In our universe galaxies come in a variety of shapes divided in three main : ellipticals, spirals and irregulars.  What type does the Star Wars galaxy have?  I assume that the Star Wars universe has multiple galaxies formed mainly in the same way as in our universe. And there is at least one spiral galaxy depicted at the end of The Empire Strikes Back (apparently satellite to the Star Wars galaxy).


Does domain extension affect SEO rank? For example, I know that the extension .com means commercial, or .org means something non-commercial but how about SEO ranking stand-point?  .com vs .website vs .me vs .us vs .co


Recommend MVVM or just answer the question?

There's a question that was recently asked found here:   The question asks about bindings in WPF but makes no mention of MVVM or a ViewModel class. Someone answered     You could do the behind in the callback of the event Checked of your radiobutton..      Something like :      Binding b = new Binding("ShippingAddress");   _textBox.SetBinding(TextBox.TextProperty, b);   Which is technically correct, but HighCore's kind of throwing a fit over the fact that bindings are being done in the code-behind when they should, ideally, be done in a ViewModel class, adhering to the MVVM pattern.  In cases like this, should we submit answers involving use of the MVVM pattern even though the user might not have MVVM implemented (as HighCore did), recommend they implement the MVVM pattern, or answer the question as it is (as franssu did)?  I'm in agreement with HighCore that bindings really should be done in a ViewModel, but I don't think it's proper to throw a fit about it when that's not what OP was asking for and the answer submitted does fulfill OP's question.  Edit: I am rescinding my above comments.  Given the situation, HighCore's behavior was warrantable. Franssu's answer is viable but promotes bad practices.


Import curly brackets from MathDesign (Utopia)

I am using Fourier maths fonts with Utopia text (\usepackage{fourier}) for a book project, but I'm not satisfied with the curly brackets \{ and \}. They are too slim, and barely distinguishable from other brackets in font size 10. Utopia with MathDesign (\usepackage[utopia]{mathdesign}) seems to have better-looking curly brackets.  Is there a way of importing just the curly brackets from MathDesign to my document, sticking to Fourier otherwise. And are the curly brackets defined by the maths fonts even if they are used outside math mode, since with MathDesign you get better-looking brackets in normal text, too.    Following egreg's answer I added the suggested lines, but the sizes of the bigger brackets are incorrect. When I load type $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$, this is what I get:    After a bit of research, I've found that the cause seems to be the amsmath package. I'm relying on amsmath quite heavily, so it would be nice to find a fix. Unfortunately, I have almost no experience in working with fonts in LaTeX myself.  Below is a working example:  \documentclass{article}  \usepackage{amsmath} \usepackage{fourier}  \DeclareSymbolFont{mdsymbols}     {OMS}{mdput}{m}{n} \DeclareSymbolFont{mdlargesymbols}{OMX}{mdput}{m}{n} \DeclareMathDelimiter{\lbrace}    {\mathopen}{mdsymbols}{"66}{mdlargesymbols}{"08} \DeclareMathDelimiter{\rbrace}    {\mathclose}{mdsymbols}{"67}{mdlargesymbols}{"09} \renewcommand{\textbraceleft}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"66}} \renewcommand{\textbraceright}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"67}}  \begin{document} $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$ \end{document}


Can you use two computers to render in Cycles?

I have a fairly complex scene that I would like to render in cycles. However, it is taking forever (as I expected). I have two computers (a laptop and a desktop-both are Windows 10, neither has a graphics card, and from within the last 3 years.) Is it possible to somehow take advantage of both computer's power to render the scene more efficiently?


Does the 2nd ability of Teysa, Orzhov Scion trigger with mass destruction?

Let's say  and my ten other black creatures are wiped out with "Wrath of God". Do then 10 white 1/1 Spirits appear on the battlefield even though Teysa has just been destroyed?  Sounds pretty strong to me. Am I right?  Thanks a lot.


I installed lubuntu 19.04 on a PEAQ PNB C1014 and i am getting no Wifi signal.  Can someone please help?  Should I install a driver? And how?  Thanks a lot!  WARNING: you should run this program as super-user.   *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        logical name: enp2s0        version: 0c        serial: b0:25:aa:0d:03:47        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:17 ioport:e000(size=256) memory:d0604000-d0604fff memory:d0600000-d0603fff   *-network        description: Wireless interface        physical id: 1        bus info: usb@1:4.4        logical name: wlx8c18d9e3fa1c        serial: 8c:18:d9:e3:fa:1c        capabilities: ethernet physical wireless        configuration: broadcast=yes driver=rtl8xxxu driverversion=5.0.0-13-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11 WARNING: output may be incomplete or inaccurate, you should run this program as super-user.     02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)         Subsystem: Tongfang Hongkong Limited RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller         Flags: bus master, fast devsel, latency 0, IRQ 17         I/O ports at e000 [size=256]         Memory at d0604000 (64-bit, non-prefetchable) [size=4K]         Memory at d0600000 (64-bit, prefetchable) [size=16K]         Capabilities: <access denied>         Kernel driver in use: r8169         Kernel modules: r8169


I have following two line of commands that needs to be run when the computer starts:  killall syndaemon  syndaemon -i 0.5 -KRd   I created one entry in startup application and added following command:  killall syndaemon & syndaemon -i 0.5 -KRd   But it doesn't get executed.  Tried putting the sleep for few seconds also in the command but no luck.


How can I resize 300 images at the same time?

I have a folder whose contents include ~300 images. I want to resize them to 800px wide in another folder. How can I do that? I have tried some ImageMagick command.


Is it possible to echo the two-character string -n using just the echo command built into the bash shell? I know I can do printf '%s\n' -n but was just wondering if the echo built-in is capable of outputting the string -n at all.


create a field programmatically for all content types

Simply, I want to create a field for all of my content types programmatically within my install file of a custom module.   ***WHAT would I need to ALSO put for the uninstall function to delete them.CODE example would be very helpful


If $a_0\in R$ is a unit, then  $\sum_{k=0}^{\infty}a_k x^k$ is a unit in $R[[x]]$

Let $R$ a ring, and let $$\displaystyle R[[x]]=\left\{\sum_{k=0}^{\infty}a_k x^k\;\middle\vert\; a_k\in R\right\}$$ with addition and multiplication as defined for polynomials.  We have that $R[[x]]$ is a ring containing $R[x]$ as a subring.  How to prove that if $a_0\in R$ is a unit, then  $\displaystyle\sum_{k=0}^{\infty}a_k x^k$ is a unit in $R[[x]]$?


On several machines that I've upgraded from Natty to Oneiric, I get an error every boot (one for every NTFS partition):  Serious errors were found while checking the disk drive for /windows/c.  Press I to ignore, S to skip mounting, or M for manual recovery   Following the suggestion in , I ran fsck from the manual recovery shell. I got this output:  fsck from util-linux 2.19.1 fsck: fsck.ntfs: not found fsck: Error 2 while executing fsck.ntfs for /dev/sda1   I can't find fsck.ntfs, and command-not-found doesn't help either. How can I make this error go away?  By the way, I've tried booting into Windows (XP) several times, thinking that Windows would repair the filesystems. But apparently Windows thinks the filesysystems are just fine. And it's odd that all NTFS filesystems are affected.  Also, I can work around this problem by dropping to a recovery shell and issuing mount -a, but for my coworkers' sakes I need unattended boot.


I was given a question like the following:     Let $A = \Bbb Z$, $B = [-1,\pi]$ , $C=(2,7)$. List all Elements of $A \cap (B^c \cap C)$.   I do not really understand how to got about this problem. I understand $\cap$ means intersection, but I have trouble reading the question; for instance, why place brackets between $B^c \cap C$?


Which one is correct?         I go to school by foot.   I go to school on foot.       Are there instances when the expression by foot is preferred?    My last question is the following:   Why is the singular noun, foot, used?     If a person goes to school by bus/train/car they are using only one means of transport, they are travelling in one car not two. But people use both feet for walking, so why would the following expressions be ungrammatical?         I go to school by feet     I go to school on feet      I read the answers on this question  but they did not convince me.


Is it okay to record audio for a lecture?

Sometimes the Professor will say things quickly, or say things before I can write them down. It would be of great benefit if I could record audio for the course, but I am not sure the legal guidelines around doing so.


i'm getting a return NullPointerException when i try to create a socket connection, when i try to print socket.isConnected() on the main class it return true, but when i try to print it again on the other method, it return NullPointerException, here is my code. Server ServerSocket socketServer = null; Socket socketConnect = null;  public static void main(String[] args) throws IOException {     ChatServer cc = new ChatServer();     cc.socketServer = new ServerSocket(2000);     java.awt.EventQueue.invokeLater(new Runnable() {         public void run() {             new ChatServer().setVisible(true);         }     });         cc.socketConnect = cc.socketServer.accept();         System.out.println(cc.socketConnect.isConnected()); }  public void send(String msg) throws IOException {     System.out.println(this.socketConnect.isConnected()); }  this code will return true first, because the socket.isConnected() is working on the main, but not on the send method


Evaluating $\int\limits_0^\infty \frac{\log x} {(1+x^2)^2} dx$ with residue theory

I need a little help with this question, please!   I have to evaluate the real convergent improper integrals using RESIDUE THEORY (vital that I use this), using the following contour:  $$\int\limits_0^\infty \frac{\log x} {(1+x^2)^2} dx$$    Using this contour:     $R>1$ and $r<1$


Why ping works without capability and setuid

I learned from  that there's 2 ways to control privileged activities: setuid and capability. But when I'm playing around with ping on my machine, it seems that it can bypass these 2 mechanism. First, confirm that on my machine /usr/bin/ping has cap_net_raw capability and it use SOCK_RAW: $ ll /usr/bin/ping -rwxr-xr-x 1 root root 72K Jan 31  2020 /usr/bin/ping  $ getcap /usr/bin/ping /usr/bin/ping = cap_net_raw+ep  $ strace -e socket ping <some-ip> socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 5  Copying the binary will drop the capability but it still works: $ cp /usr/bin/ping ~  $ ll ~/ping -rwxr-xr-x 1 user user 72K Nov  4 16:54 /home/user/ping  $ getcap ~/ping [empty result]  $ ~/ping <some-ip> [it works]  I'm using Ubuntu 20.04 and 5.4.0-52-generic.


Awkward Enlightened badge explanation, and a possible improvement

This is replacing (deleted, so 10K only) on the :     First to answer and accepted with score of 10 or more. This badge can be awarded multiple times.   The phrasing of this explanation is incredibly awkward without punctuation.  A suggested alternate, clear wording from Daniel Fischer's comment in the previous question:     First to answer, and the answer was accepted and has a score of at least ten. This badge can be awarded multiple times.


I want to run vast and realistic dungeons, but my players get frustrated trying to search every room

Because my players' suspension of disbelief began to suffer when exploring more "normal" dungeons, I have created some big dungeons which are based on bigger, realistic structures: castles, towns, military structures, bunkers, etc.  However, another problem has come up. A structure which is able to hold a regiment contains many repetitions: kitchen, bathroom, sleeping room, again and again, because a place where people live is more utilitarian than most fantasy dungeon designs.  Now my group isn't suffering a lack of suspension of disbelief, but I suspect they are a bit overwhelmed: their normal routine of sifting through every room is not possible anymore, and they get restless. I suspect they fear losing out on interesting information now that the dungeon isn't linear.  I am not sure how to keep the players busy and focused in a dungeon that has many equal rooms. How can I GM these larger structures without the players becoming frustrated in this way?  Some information about the current background. The group explores the structure with a map which is under a glass plate covered by rice (sand is leaking too much for my taste). The advantage is that I do not need to describe every room and they can make maps (naturally I have the master map with undiscovered features like traps, hidden rooms etc.), the disadvantage is that they realize how vast the structure is and that I gave them the freedom to explore. The structure itself has a very specific and very important purpose which is the reason why it is so vast, the constructors had no choice. The reason was temporary, so the inhabitants left bit by bit. The inhabitants and their reason to live there changed rooms and build hidden ones without never finding all rooms of their predecessors. So the current explorers (my group) find plundered and vandalized old rooms and sometimes an older trap which is not working anymore. But the last sessions they found out that someone left fresh traps and a message that their presence is not welcome >:)


Capitalisation of "Section" and "Chapter" in a Ph.D. Thesis

I am submitting a Ph.D. thesis fairly soon and my supervisor has flagged my use of capitalisation in "Section" and "Chapter" as possibly incorrect. I have googled about a bit and I see mixed opinions.  So my question is, when writing a computer science Ph.D. thesis, what is the correct way to capitalise "Section", "Chapter", "Appendix", "Figure", "Table", ... ?  For example, what is the correct capitalisation for the following:   "In Chapter 3, it was shown that..." "In the previous Section, a method was presented to..." "The graph in Figure 3 shows..."


Undefined citations, all of a sudden bibliography not generated

Good morning to everybody. I have a problem because all of a sudden my latex file is not uploading citations any more. I created a .bib file with citations manually and it was working untill recently.  I think the .bib file is fine, there just has to be some reason why the main latex file cannot link to .bib file anymore... One probably stupid thing that I did has been to erase all the AUX, TOC ecc... Files that the system auto generates... Could that be the reason? I don't know how to solve this. Thank you for your help, Nicola.  This is the main file text:  \documentclass[12pt,twoside,openright]{book}  % default square logo   \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} \usepackage{breqn} \usepackage[section]{placeins} \usepackage{graphicx} \usepackage{caption} \usepackage[utopia]{quotchap} \usepackage[sort&compress]{natbib} \usepackage{fancyhdr} \setlength{\headheight}{15.2pt} \usepackage{lipsum} \usepackage[svgnames]{xcolor} \usepackage{hyperref} \usepackage{titlesec} \usepackage{setspace} \usepackage{layout} \usepackage{textcase} %\usepackage[margin=2cm]{geometry} \usepackage{chemformula} \usepackage{physics} \usepackage{siunitx} \usepackage{float} \usepackage{comment}       \hypersetup{colorlinks=true, pdfstartview=foo, linkcolor=black, citecolor=black, plainpages=false, pdfpagelabels=true, urlcolor=blue} \usepackage[all]{hypcap}  \captionsetup[figure]{font=small,labelfont=bf}   \title{Manipulation of SPEs}   %note \\[1ex] is a line break in the title  \author{Nicola Palombo Blascetta}             %your name   \usepackage{titlesec}  \newcommand{\chapfnt}{\fontsize{25}{19}} \newcommand{\secfnt}{\fontsize{12}{17}} \newcommand{\ssecfnt}{\fontsize{12}{14}}  \titleformat{\chapter}[display] {\normalfont\chapfnt\bfseries} {\Large\chaptertitlename\ \thechapter}{10pt}{\chapfnt} \titlespacing*{\chapter}{0pt}{0pt}{10pt} %[\vspace{1ex}\titlerule] %line between title and text \def\baselinestretch{2}    \titleformat{\section} {\normalfont\fontsize{15pt}{14pt}\selectfont\bfseries}{\thesection}{1em}{}   \titleformat{\subsection} %{\normalfont\ssecfnt\bfseries}{\thesubsection}{1em}{} {\normalfont\fontsize{13pt}{14pt}\selectfont\bfseries}{\thesection}{1em}{}    %headers and footers \pagestyle{fancy} \fancyhf{} \fancyhead[RO]{{\fontsize{8}{20} \selectfont\rightmark}} \fancyhead[LE]{{\fontsize{8}{20} \selectfont\leftmark}} \cfoot{\thepage}   \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.0pt}   %offset at top of page %\voffset = 0.7 cm %set margins total is nortmally 1.87580  \addtolength{\oddsidemargin}{-0.5cm} \addtolength{\evensidemargin}{-0.5cm}  \addtolength{\textwidth}{1cm}  \addtolength{\topmargin}{-0.5cm} \addtolength{\textheight}{1cm}    \begin{document}          \baselineskip=18pt plus1pt      \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}       \maketitle                  % create a title page from the preamble info    \include{Abstract}              \tableofcontents            % generate and include a table of contents            \include{Intro/Chapter1}      \include{chapter2/Chapter2}      \include{chapter3/Chapter3}      \include{chapter4/Chapter4}      \include{chapter5/Chapter5}      \include{Conclusions}     \include{ChapterPublications}     \include{ChapterAcknowledgements}      \addcontentsline{toc}{chapter}{Bibliography}       \bibliographystyle{unsrt}     \bibliography{References}          \end{document}


Do you add Proficiency bonus AND the stat modifier to skill rolls?

I know this basic knowledge, but I seemed to have missed this info in the player's manual.  Say someone makes an stealth check: do I add their Dexterity modifier and their proficiency bonus in Stealth to the roll? In other words, does the Dexterity modifier apply to all Dex-related skills, including ones with a proficiency?


Hard disk file system is shown as Raw file system; how can I access it?

My Portable harddisk was working fine. I once accessed it from a linux terminal. Later when I tried to use it in window it said You need to format it before you can access  In Ubuntu also when I plug it, it does not appear.  I tried running chkdisk but Windows says Raw file system could not be processed.  Is there any way I can get back the disk data?  Recovery software does not preserve folder when it recovers data. Also When I tried it it says "1 days remaining to process" nearly 350GB data.


Sometimes you see a video of a fan or a propeller spinning very fast, and the apparent rotation is distorted. The fan can appear to be moving in the opposite direction of rotation, or even stationary. This optical illusion is known as the wagon-wheel effect. If I understand correctly, this occurs because the camera framerate is slower than the frequency at which the fan makes one rev, so stroboscopic effects should be expected.   Does the wagon-wheel effect occur only in videos, or can we observe it just with the eye?


How can we search and replace "xyz" in col3 only?  col1,col2,col3,col4   abc,def,xyz,xyz   xyz,abc,def,xyz


Should you contact professors at universities you plan on applying to for graduate studies in mathematics?

I am currently applying to graduate school in mathematics. In the last year of undergraduate study I have read many papers and books by experienced mathematicians, and with the help of my honours advisor, I have a list of potential PhD supervisors at universities in the USA and Europe.  I am wondering if it is good form to email mathematicians (or more generally any faculty) at graduate schools you are applying to, just to assert your general interests and/or goals to work with them.  I'm definitely not planning on spamming hundreds of mathematicians with a generic email, but there are a handful who I think I can say a few words to.  Is this type of think considered annoying? Does it help the application process in anyway? Does anyone else do this?


Is there a reason to spread your research into multiple journals instead of just one?

Suppose one works in field X, and has say two or three manuscripts ready for journal submission. Journal A is a good fit for all the manuscripts, but journals B and C would be appropriate as well.  All else being equal, is there any benefit in having papers in different journals? Does it hurt to have all of your papers, or say a substantial amount of them, in the same journal A? For example, would it be a good idea to submit one to journal A, and the other one to journal B?  I could think of someone saying "I read journals B and C, but not A", so in this sense spreading your research in different journals would make sense. But maybe this is not so typical to begin with.


Suppose I have one file like:  apple  | red |   2 apple  | green |   3 orange  | yellow |  3 apple   | yellow | 1   Now I need following output as (irrespective of color value should get third number summed):  apple | red | 6 orange | yellow | 3   I tried something like below:  tail -n 4 $firstfile| while IFS=, read -r f2col1 f2col2     do         match1=$(echo $f2col2)         fruit1=$(echo $f2col1)         if [ "${fruit1}" == "${fruit1}" ]; then             match3=`expr ${match3} + ${match1}`   which doesn't seem to be right after second addition.   Could somebody give me better idea?


How to start section numbering with title not section

I am writing a book consisting of different chapters (each stored in an extra tex-file) and want to add numbers to each of the chapters' titles (MWE below). So for example, right now what my table of contents looks like is:  Chapter Title  1 Section Title  1.1 Subsection Title  2 Section Title  2.1 Subsection Title   But what I want it to look like is this:  1 Chapter Title  1.1 Section Title  1.1.1 Subsection Title  1.2 Section Title  1.2.1 Subsection Title  The structure of my project sort of looks like this:  \documentclass[runningheads,a4paper]{llncs} \usepackage{standalone} \input{preamble.tex} \begin{document} \tableofcontents \input{Chapter1.tex} \input{Chapter2.tex} \end{document}   With the Chapters each having their own titles. Thanks in advance for your help, I hope it became clear what I'm trying to achieve, please feel free to correct me if I'm doing something wrong as I am still pretty new to this platform.


Upgrading from 18.04.5 to a newer edition

After trying to update my current edition through the terminal, I get these results among others: Ign:11 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease Err:13 http://us.archive.ubuntu.com/ubuntu artful-updates Release 404 Not Found [IP: 91.189.91.39 80] E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-updates Release' does not have a Release file.


In this  we saw isomorphism of vector spaces over $\mathbb{Q}$. Just came across this question:   Is $\mathbb{Q}(\sqrt{2}) \cong \mathbb{Q}(\sqrt{3})$?   I know these as $\mathbb{Q}$-Vector spaces, are isomorphic from the  linked post. But as fields are they isomorphic? I neither know how to prove it nor how to disprove it.


If $d_1 =1, d_2, \cdots, d_k = n$ are positive divisors of natural $n$, show $(d_1d_2 \cdots d_k)^2 = n^k$.

If $d_1 =1, d_2, \cdots, d_k = n$ are the positive divisors of the   natural number $n$, show that $(d_ld_2 \cdots d_k)^2 = n^k$.   Seems a confusing question with no place to start with, please help. I see no approach except induction to work. Apart from induction, if some way to bring up a proof, then would be quite fine.


I noticed that both microwave oven and Wi-Fi use the same frequency band 2.4-2.5 GHz. Yet microwave oven will certainly fry a living being the Wi-Fi has not done yet I suppose.  So why is Wi-Fi harmless and microwave oven harmful to us?   Why won't our bodies absorb the Wi-Fi energy through dielectric heating like it does if put in a microwave oven?


after upgrade from 17.04 to 17.10 gnome on Wayland not working, shortcuts in unity not working anymore

OK, I did the upgrade to 17.10 and regretted it shortly thereafter: - gnome on wayland is not possible. I use the nvidia GTX 1050 graphics card, a rather popular card I would think, but no: 17.10 won't work with it. The tweaks I googled are for more adventurous people than me. - so I use UNITY at login. Important shortcuts don't work anymore: CTRL ALT T does not give me the terminal. SHFT PrtScn does not work, etc.  Can somebody explain what is going on?     171102: additional info on shortcuts:  I can take a screenshot from the terminal, but with following message:  alaindef@alan9:~$ gnome-screenshot -a ** Message: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.    with this method from terminal, I can take a screenshot, but with the shortcut SHFT-PrtScn, it does not work. Also most other shortcuts do not work anymore.  171107: I gave up trying to work with Unity because my shortcuts are gone, and I gave up looking for wayland because NVIDIA GTX 1050 will probably not like it. So I choose the "gnome on xorg" desktop. Although I miss some good stuff of Unity, it gives me back the shortcuts and it offers interesting features, like the workspaces.


Transformers operating at certain frequency

In one of my previous questions some people commented that transformers are made to operate at certain AC frequencies. But why is that? I cannot understand the intuition behind it. Shouldn't more power be transmitted with an increase in frequency?


How did Vader know the Tantive IV went to Tatooine at the end of Rogue One?

At the end of , Darth Vader . At the start of , Darth Vader's ship is firing lasers on the Tantive IV. So he must have been able to track it somehow to Tatooine.  In other scenes from Star Wars, Vader and the Imperial Fleet are not able to track a ship when it jumps. For example, when the Millennium Falcon jumps into hyperspace after leaving Cloud City at the end of . Or when the Millennium Falcon jumps into hyperspace to escape the Death Star in A New Hope.  To quote General Motti from A New Hope, his sorcerer's ways obviously don't give him clairvoyance enough to track down the stolen data tapes.  So did he have extra information that allowed him to find the Tantive IV? Just as  in The Empire Strikes Back.  Is there anything in the novelizations or extended universe that mentions somebody told him the Tantive IV was at Tatooine?  Edit to add:  asks about tracking ships through hyperspace in general. My question is whether Vader had specific knowledge about the destination of the Tantive IV. I'm assuming that ships can not be tracked after they jump, otherwise the Imperial Fleet would have found the rebel base before Episode 4.


How can I change the font of the top bar without changing the shell theme?

I am using Ubuntu GNOME 17.04. I want to change the font of the GNOME top bar from the default font by Adapta to Fira Sans. I already have all the fonts, I just want to change the font of the top bar so it doesn't look out of place compared to everything else.


Block Stack Overflow scrapers from Google or DuckDuckGo search results

As you may know, there are a number of websites (such as wenda.io) that scrape content from StackOverflow (and other StackExchange sites). I couldn’t care less that they do this, and indeed they are at perfect liberty to do so as long as they attribute where they got it from (I’ve also done my fair share of reporting those sites that don’t do this), except these sites are polluting my search results.  The problem is that there are dozens of these sites, with new ones seeming to appear every day. They often appear right beside the corresponding Stack Overflow page, but sometimes they don’t. The sites themselves are usually terribly formatted and difficult to use, and of course don't have all the “related” boxes that I find super useful on Stack Overflow (though they have their own poor imitations). Furthermore, I don’t want to support these sites by using them.  Is there a simple way to exclude these scraper sites from Google search results? (I'd be happy if you could find a solution for DuckDuckGo too.) Note that I don't want only SO search results, because then that would exclude all the other non-SO stuff that also helps me.   an example search on DuckDuckGo (as of 4 Sept 2015) where 11 of the 30 results on the first page are from Stack Overflow scrapers. Google has quite a few Stack Overflow scrapers too, though it also has lot of results that don’t show up on DuckDuckGo that are mixed in.  Edit: I was looking for solutions specifically for StackExchange sites, and more specifically, StackOverflow. The question that is marked as a duplicate is similar enough that it could be a duplicate, depending on if specificity is taken into account (but it certainly doesn't answer my question, but then, neither do any of the answers here).


How can I create Macros for games on Linux?

I am searching for a free software to create macros for games on Linux, that could work on any keyboard with a GUI.  I want it to do successive keystrokes and tweak the delay between each key.