Keyboard layout shortcut interferes with Firefox shortcut

I am multi-lingual, and I use several keyboard language layouts. I am used to using Ctrl+Shift in Windows to changue input language, so I want the same for my Linux. Default Alt+Spacebar is very inconvenient for me.  Ubuntu's vanilla settings app doesn't allow Ctrl+Shift combination, so I had to use the Gnome Tweaks application, which allows more flexible options--including Ctrl+Shift for shortcuts. However, I noticed that now Firefox's shortcut to undo closing a tab (Ctrl+Shift+T), which I use extremely frequently, stopped working. It seems that as soon as Gnome/Ubuntu registers a Ctrl+Shift key combo, it stops caring if any other keys are pressed as well. It just switches keyboard layout with Ctrl+Shift+T the same way it does with just Ctrl+Shift. This is a major quality of life issue for me. How do I fix this? Thank you.


If I share a site the email is not being sent.  This function does work with everything else like if you share a document or a list.  This is happening for all users and all sites. The relays on the email servers are setup correctly.


How to find all solutions of $4^x-3^x=1$?

I have problem with equation: $4^x-3^x=1$.   So at once we can notice that $x=1$ is a solution to our equation. But is it the only solution to this problem? How to show that there aren't any other solutions?


I use article document class and want to make a titlepage. But I need to put more than just author, year and title. I also need to put my university and my supervisor and that is my bachelor thesis. If I just write it there without anything like \author{}, in the .pdf it's on the page before the title page.  \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel} \usepackage[T1]{fontenc}  \begin{document}  \begin{titlepage}  Bachelorarbeit  \begin{center} University \end{center}  \title{Title}  \author{Frida}  supervisor: Prof XY  \date{\today}  \maketitle \end{titlepage}  \end{document}


I need to pass a batch of parameters to mysql in python. Here is my code:  sql = """ SELECT * from my_table WHERE name IN (%s) AND id=%(Id)s AND puid=%(Puid)s"""  params = {'Id':id,'Puid'  : pid} in_p=', '.join(list(map(lambda x: '%s', names))) sql = sql %in_p  cursor.execute(sql, names) #todo: add params to sql clause   The problem is I want to pass the name list to sql IN clause, meanwhile I also want to pass the id and puid as parameters to the sql query clause. How do I implement these in python?


I plan to go US, Can I take my portable charge to the airplane? It is a EasyAcc 20000mAh power bank

I plan to go US, Can I take my portable charger( lilon battery, portable power bank) to the airplane? the capacity is .Different countries make rules about whether Power Banks are allowed to be used on flights or not so please tell me.


What is blocking a deictic use of 'it' in this example?

Consider the following exchange:  [1] Q: Is your name Jane?      Aa: *Yes, it's right.      Ab: Yes, that's right.  Note that [1Aa] is simply not acceptable. It's not just that that is preferred to it; it's rather that, in Standard English, it simply cannot be used here.  Why not?   Yes, in the replies [1A], the reference is clearly (supposed to be) deictic rather than anaphoric (see below); and the characteristic usage of 3rd person personal pronouns he/she/it/they is anaphoric. But they certainly can function deictically at least sometimes;  gives the following example (p. 1469): Isn't she lovely! (uttered while looking at someone's baby).  So why is [1Aa] completely unacceptable, rather than just being less favored than [1Ab]?  I am well aware that Yes, it is would be completely acceptable... and I do understand why it would be. But [1Aa] is not, and my question is specifically about why it is not.  Some background on deixis  [1Ab] is a clear example of deictic use of that, very much like the [27ii] example from CGEL (p. 1461):     [27] i A: Kim has been falsifying the accounts. B: That's   terrible. [anaphoric]       ii A: Kim   has been falsifying the accounts. B: That's a lie.   [discourse-deictic]       In [i] A's utterance is the antecedent for B's that, which refers to   the situation that A has  described. But in [ii] that refers to A's   speech act, to a linguistic entity in the prior discourse.


I want to show $2^{ℵ_0}=\mathfrak c$.  I already showed $\mathfrak c \leq 2^{ℵ_0}$ as follows:  Each real number is constructed from an integer part and a decimal fraction. The decimal fraction is countable and has $ℵ_0$ digits. So we have  $\mathfrak c \leq ℵ_0 * 10^{ℵ_0} \leq 2^{ℵ_0} * (2^4)^{ℵ_0} = 2^{ℵ_0}$ since $ℵ_0 + 4ℵ_0=ℵ_0$  But how can I prove the other way $2^{ℵ_0} \leq \mathfrak c$?


I changed my documentclass from article to scrbook. Since I've done this, I am experiencing huge gaps on some pages, sometimes between items, sometimes between equations or paragraphs. I don't understand where this is coming from.  I am using the titlesec package and increased the space between equations slightly, no other modification. Here you can see what I mean:   And here is the corresponding latex code:  Der zweite Richtungsvektor der Ebene ist der Vektor $\overrightarrow{AB}$ \begin{align*} E: &\vec{x} = \vec{a} + s \cdot{\vec{u}} + t \cdot{\overrightarrow{AB}}\\ &\vec{x} = \vec{a} + s \cdot{\vec{u}} + t \cdot{(\vec{b}-\vec{a})} \end{align*} \begin{enumerate} \item \begin{align*}     &g: \vec{x} = \begin{pmatrix}         1 \\         -2 \\         1     \end{pmatrix} + s \cdot{\begin{pmatrix}         1 \\         3 \\         2     \end{pmatrix}}, \qquad B(3|2|2)\\\\     &E: \vec{x} = \begin{pmatrix}         1 \\         -2 \\         1     \end{pmatrix} + s \cdot{\begin{pmatrix}         1 \\         3 \\         2     \end{pmatrix}} + t \cdot{\Bigg(\begin{pmatrix}         3 \\         2 \\         2     \end{pmatrix} - \begin{pmatrix}         1 \\         -2 \\         1     \end{pmatrix}\Bigg)}\\\\     &E: \vec{x} = \begin{pmatrix}         1 \\         -2 \\         1     \end{pmatrix} + s \cdot{\begin{pmatrix}         1 \\         3 \\         2     \end{pmatrix}} + t \cdot{\begin{pmatrix}         2 \\         4 \\         1     \end{pmatrix}} \end{align*} \item \underline{Übungsaufgabe: E ist durch g und B festgelegt} \begin{equation*}     g: \vec{x} = \begin{pmatrix}         1 \\         2 \\         5     \end{pmatrix} + s \cdot{\begin{pmatrix}         -1 \\         2 \\         7     \end{pmatrix}}, \qquad B(2|5|-3) \end{equation*} \end{enumerate}


Can't find OTF (on the fly) check box in QGIS 3

Just updated to QGIS 3 and I am trying to sort out a projection issue.   I have 2 layers, same projection but hugely different scales. My research suggests that setting the OTF check box should solve this.  Sounds sensible, but I can't find the OTF check box! Any ideas?


How can I prove that $\lim_{n \to \infty} a_n = 21$ using the $\epsilon - N$ definition?

The exercise goes like this... Let $(a_n) \subset \mathbb{R}$ given by $a_1=\sqrt{21}$ and $a_{n+1}=\sqrt{21a_n}$ a) Find the value of $L=\lim_{n \to \infty} a_n$ b) Prove that $L=\lim_{n \to \infty} a_n$ I managed to prove that the sequence is monotonic increasing and bounded above by $21$ by induction so i can assume that $(a_n)$ converges and show that $L=21$ using a little bit of algebra. But for b) I'm asked to prove the fact using the $\epsilon - N$ definition of limit I'm used to struggle a lot proving limits for non-recursive sequences using the formal definition of limit, so in this case I don't really know how to proceed. Any suggestions?


Mail app opens randomly in MacOS 10.14.5

I have mail app open in background i.e. no window open. A new window randomly pops up without any conscious trigger by me. No new mail would have come.   Once it happened while I was in full screen mode of another app and the mail app split the window in half and got opened. This happens even when I am working in non Full-screen mode.  I presume that it has connection with notifications but other reasons are also welcome.   Once, it popped up above other apps, and some accounts were transitioning from offline to online state. I cannot confirm  about Google account as one answer mentions.   Why might this happen but more importantly, how to stop this other than quitting it properly? I want to stop it from opening it altogether, not only in split view.    The answer to  recommends to untick a Mail preference. Unfortunately I get the behaviour even thought the preference is unticked, so I look for other solutions.


Equation for a plane perpendicular to a line through two given points

The following type of question is quite popular with examiners at the institution where I study.  Find an equation of the plane containing the point $(0, 1, 1)$ and perpendicular to the line passing through the points $(2, 1, 0)$ and $(1, -1, 0)$  I start by calculating the the parametric equation of the line passing through $(2, 1, 0)$ and $(1, -1, 0)$, but after that I am lost.  I realize that I have to find the equation for the second line, and that the first plane will be perpendicular to it if the dot product of the vectors equal zero, but I cannot seem to put the pieces together.  Can someone please guide me in the correct direction for solving this type of problem?  Much appreciated.


There are two folders: C:\Program Files and C:\Program Files (x86)  Can I remove the folder "Program Files (x86)"?  Thank you.


Suppress extra inter-character horizontal space in lstlistings

When I use the lstlisting environment from the listings package, there is a bit of extra space between characters, even in a monospaced font.  For code, I use a monospaced font (basicstyle=\ttfamily), and I want to obtain the same horizontal spacing as in an ordinary verbatim environment.  For algorithms, I use a variable-width font, and I want to have the same horizontal spacing as in ordinary text.  MWE illustrating a code snippet in a monospaced font (I see the same output for the lstlistings blocks if I don't include the alltt package):  \documentclass{minimal} \usepackage{alltt} \usepackage{listings}  \begin{document} \setlength{\parindent}{0pt}  What I want to typeset: \begin{alltt} \textbf{int} hello_world = 3;      \textit{/* alltt */} \end{alltt} \vspace{1em}  What I want to type: \begin{lstlisting}[basicstyle=\ttfamily,language=C] int hello_world = 3;      /* lstlisting (ttfamily, C) */ \end{lstlisting} \vspace{1em}  Default listing, for reference: \begin{lstlisting} int hello_world = 3;      /* lstlisting (default) */ \end{lstlisting}  \end{document}     How do I obtain the desired character spacing?


How do I enter a file or directory with special characters in its name?

I want to enter the following folder in the terminal:  Milano, Torino (Jan)-Compressed   How should I write the command cd to enter this directory?  Spaces and several other special characters like \, *, ), ( and ? cause problems when I try to use them in the command line or scripts, e.g.:    $ cd space dir bash: cd: space: No such file or directory  $ cat space file cat: space: No such file or directory cat: file: No such file or directory  $ cat ( bash: syntax error near unexpected token `newline'  $ echo content >\ > ^C  $ ls ? (  )  *  ?  \   How do I enter file or directory names that contain special characters in the terminal in general?


How do I explain why an infinitive verb is important to this kind of sentence to a friend

I have a friend who has a grammar style I don’t understand. They use the setup “Noun Present-Tense Verb Past-Tense Verb-Turned-Subject.”  Some examples: I want laid.  You need hugged.  They like serenaded.   I feel like those sentences are grammatically incorrect. I feel the sentence structure should be: I want to get laid. OR I want a lay.  You need to be hugged. OR You need hugging.  They like to be/get serenaded. OR They like serenading.   But every time I try to explain this my friend says that my way sounds unnatural. Am I crazy? What rule of English am I thinking of? I feel like there is a tense agreement issue here and an issue of infinitives too but I cannot articulate it well enough.   Also we’re both native English speakers from America. Why is my friend convinced it’s “You want decorated.” Instead of “you want to be decorated”?


Let E be a measureable subset of [0,1] with positive measure. Let $E-E= \{ x-y | x,y \in E\}$Show that this set contains a neighborhood of 0. (hint use inner approximations)  I think : this set is measurable as it is a union of translates of E, 0 is contained in the set as $x-x \in E-E  $  ( $ \forall x \in E$),and I suspect that E-E is contained in E but am not sure about this. Thanks for any help or hints


I am trying to reopen the closed question but I am trying to do then it displays the message "You have already voted to reopen.." but see in the screenshot question does not show reopen vote count. I think this should show here like also reopen(1) and it does generally but not for me.


I have a problem with a data merge. On several tutorials if they selected the CSV file, all the data loads up separately but when I select the CSV file, all data loads like this:     So I can't load them up separately. What I'm doing wrong?  My steps:   make excel file with all my data  save this file save the CSV file open InDesign document select data source then I see this...


I know $$g(x) = \arctan(x)+\arctan(y) = \arctan\left(\frac{x+y}{1-xy}\right)$$  which follows from the formula for $\tan(x+y)$. But my question is that my book defines it to be domain specific, by which I mean, has different definitions for different domains:  $$g(x) = \begin{cases}\arctan\left(\dfrac{x+y}{1-xy}\right), &xy < 1 \\[1.5ex]  \pi + \arctan\left(\dfrac{x+y}{1-xy}\right), &x>0,\; y>0,\; xy>1 \\[1.5ex]  -\pi + \arctan\left(\dfrac{x+y}{1-xy}\right), &x<0,\; y<0,\; xy > 1\end{cases}$$  Furthermore, When I plot the function $2\arctan(x)$, it turns out that the book definition is correct. I don't understand how such peculier definition emerges. Thank you.


I wanted to use the "Randomize Transform" tool as described   Or in the first half of that .  Following the video, after seperation of each individual cube into single objects, when I want to use the tool, everything is greyed out, like in the attached screenshot.    What am I doing wrong here?


So I've done this so far, and  know one of the components is a 50ohm resistor. However I dont know where to go from here. How do i decide if its an inductor or a capacitor? This is a past paper exam so im aware the other component is a 125nH inductor... but how do i get to that?


I am six years into a business role and have a bachelor's in physics and applied math/stats. Sean Carroll's (Caltech physicist)  opened me to the idea that Bayesian statistics is one useful way of thinking about anything - inevitably you hold a prior and you should update your credence as additional information becomes available.   Is there a path to training your intuition to thinking this way? Critically, it would require repeated practice with verifiable answers through either a course, or self study that includes many problems and solutions. I do not believe simply reading will do.  Possible resources, having read every related question on this site I could find:   "Probability Theory" by Jaynes. Pro: analytic; intuitive explanation of bayesian statistics. Con: prerequisites; missing problems/solutions. "Doing Bayesian Data Analysis" by Kruschke. Pro: includes problems & solutions; requires only "algebra and rusty calculus". Con: works in R, which I think provides for less intuitive learning than the analytical (I may be wrong).   If it is a multi-year path I need to take, starting elsewhere, I am happy to do so! Ideally, I would avoid the frequentist methods, as I have no use for them.  My goal is not to be a scientist, but to leverage insight into how reality works to go above and beyond the established thinking in business.  Many thanks for any suggestions!


Let $\Gamma$ denote the positively oriented circle of radius $2$ with center at the origin. Let $f$ be an analytic function on $\{z \in\mathbb C : |z| > 1\}$, and let $$\lim_{z\to\infty} f(z) = 0$$ Prove that $$f(z) =\frac{1}{2\pi i}\int_{\Gamma}\frac{f(\zeta)}{z-\zeta}$$ for all $z \in\mathbb C$ with $|z| > 2.$ I tried to define a function $g(z)=f(1/z)$ and apply Cauchy Integral Formula on $g$, but could not come up with anything.


PDO exception error [database].semaphore doesnot exist

I created a website in drupal 7, tested it in my localhost and works good. Now, I want to host the site in our Main server. So, I uploaded the site directory to the server and created a corresponding database for that. Updated the settings.php file with the database name, user and password.   I do hope that the site install process is done. The site is deployed within the server, database created. When I give the address of the site, it shows some PDO exception error.  PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[database].semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 167 of /home/cpath/D-6.12/apache2/htdocs/[htdocs]/includes/lock.inc).   I tried re-installing the drupal site, it didn't work.  I even reviewed and tried all the solutions shown in , but no way I couldn't resolve the issue.   I appreciate your valuable suggestions.


Implementing Font Changes on Modern Pages

I'm attempting to implement font changes on a Modern page, possibly including webpart components.   The UI currently ignores changes to the site fonts.


Fast way of copying IMAP to IMAP on CentOS

I'm trying to copy of IMAP emails from one server to my new server but after Googling for hours and trying several tools, nothing is working. Is there a tool that actually works?  I am copying hundreds of thousands of emails so using a email client is out of the question, I tried it, and at the rate of a email per 2 seconds, it would take a few weeks or months!  www.linux-france.org/prj/imapsync/ is commonly mentioned, however, the tool is no longer available.  I tried www.athensfbc.com/imap_tools/ which just hangs and does nothing.  Any migration tools that work?


Delete all files except files with the extension pdf in a directory

I have a directory that contains the following:  x.pdf y.zip z.mp3 a.pdf   I want to delete all files apart from x.pdf and a.pdf. How do I do this from the terminal? There are no subdirectories so no need for any recursion.


I'm practicing rigging a finger. Why is the tip getting smaller when I rotate it? And hopefully someone has tips on rigging a hand/fingers.


Can't see my ignored tags anymore unless editing favorite tags

On Stack Overflow, I got bunch of favorite tags and couple of ignored tags. Both groups used to show in the front page, until today:        When editing the favorite tags they do appear though so not all is lost:        Can I see my ignored tags without having to edit?


What is the best way to draw four partially shaded venn-diagrams next to each other in the middle of a page? My goal is to depict the union, intersection, complement, etc.


How do I prove that the connected undirected graph having 10 nodes and 10 edges contains a cycle.


How Long Can I Store Seasoned, Vacuum Sealed Chicken

I'm trying to optimize making food for the week and one of the things I want to do is season chicken breast with salt/pepper/herbs/etc in advance and vacuum seal them individually so I can just drop them into a sous vide water bath and cook them on demand.  So, my question: how long can I store chicken (or steak) vacuum sealed after seasoning it, but before cooking it?  Or is it better to just cook the meat all at once and store it for the week in a cooked state and then reheat as needed.


Retrieving date in sql server, CURRENT_TIMESTAMP vs GetDate()

Using SQL Server - which is the fastest or best practice method to use for date retrieval? Is there a difference?


Are any fictional worlds available in some GIS format?

Is there any fictional world (e.g. ,  etc.) which could be used in a GIS context?  For example, an MBTiles archive and a shapefile or any other format usable with OpenLayers / Polymaps / Leaflet?


Best approach for SEO regarding multilingual website

I am creating a multilingual website and I would like what is the best approach regarding SEO: www.example.com/en/test or: www.example.com/test?lang=en


Is it possible to install MySQL Server 5.7 on Ubuntu 19.10? If yes, how?


How to update Google Chrome 70 after change in 'Origin' value?

I have Google Chrome Version 70.0.3538.77 (Official Build) (64-bit).  Today, after running sudo apt update and sudo apt full-upgrade, I saw:  E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.   I looked at the man page for apt-secure but it's pretty technical and difficult, at least for me, to follow.  So how do I fix this issue?    Edit: for now, I've removed the existing Google Chrome ppa from Software Sources and then ran sudo apt update and sudo apt full-upgrade successfully with the following being installed/upgraded successfully:  The following NEW packages will be installed:   python3-netifaces The following packages will be upgraded:   netplan.io nplan ppp 3 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.


How can I set Discord to always show a custom status message?

I've been looking for the solution to this for a while and even tried my own. I'm trying to change Discord to always show my custom message, but when I play games like Rocket league and LoL the game's name goes over my message.   Those are verified games so I can't change the name for those, I also can't change the file now for league because then the client won't work and idk what other files to change if I do change that. If you could help I would appreciate it but seems like there's no solution.


Wireless option gone from Network Center

I've got a Broadcom BCM4036 wireless card, as follows:  01:09.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02) Subsystem: Linksys Device 0013 Flags: bus master, fast devsel, latency 32, IRQ 5 Memory at fdefc000 (32-bit, non-prefetchable) [size=8K] Capabilities: [40] Power Management version 2 Kernel modules: ssb   I'm running Ubuntu 11.10.  My wireless card hasn't worked so far (I installed Ubuntu this afternoon), and I've tried various things to make it work (including the answer to , and this ), and it seems that one of them made the wireless option disappear. There's nothing in my additional drivers to enable (other questions mention needing to enable Broadcom STA wireless driver, but I don't see that option).  How do I get it back? More importantly, how do I get my wireless card working?  Do let me know if there's any information you need.


Excel: What formula to use to return the minimum or maximum of a set of lookup values?

I'm looking for a way to calculate the values shown in cols D & E in the below screengrab.  Column D contains the earliest date from column B where the name in column A matches.  Similarly, column E contains the latest date from column C where the name in column A matches.    e.g. For all instances of "Bob" in column A: column D should contain the earliest "Line from date" from column B where column A="Bob" (in this case 1st December 2013).  I know this can be done easily using a pivot table, however in this case I need to do it with either a formula or programatically.  The data is being generated using VBA so, in the absence of a formulaic solution, I will simply revert to calculating the required values as part of the program (NB: I am not asking how to do this).  Because of the dataset's complexity (the above example is a gross simplification) it would take me about a day to implement it in code so I'd rather avoid that if possible.  I'm guessing the way to go might be array formulas, but I am ashamed to admit I haven't the first clue how to use them.  Any and all help/pointers greatly appreciated.


How do I sum the series $\sum_{n=1}^{\infty} \left( n\cdot \log\frac{2n+1}{2n-1} - 1\right)$

How do I sum the series $$\sum_{n=1}^{\infty} \left( n\cdot \ln\frac{2n+1}{2n-1} - 1\right)$$  My attempts:   Then $nth$ term can be found to be $-\ln(3 \cdot 5 \cdots (2n-1)) + n\cdot \log(2n+1) -n$.    What to do after this?


In the final episode of season 6 of The Clone Wars, (spoilers)      The mystical priestesses conjure up an illusion of Darth Bane, the ancient Sith Lord who started the Rule of Two. Just by visual inspection, Yoda knows the ancient Sith Lord's name and that he was the one who started the Rule of Two.   Darth Bane was around roughly a century before Yoda was born. It also seems like all of the Jedi who ever encountered him did not live long enough to talk about it (for example, the duel on Typhon). By the time Darth Zannah took the mantle as Dark Lord of the the Sith, the Jedi were convinced that the Sith were extinct.   explains how the Jedi found out about the Rule of Two, but it doesn't explain how Yoda was able to learn about the identities of the members of the Order of the Sith Lords.


I have a Dell XPS 13 running Ubuntu 16.04. Over the last weekend, I've noticed that this laptop will shut down instead of suspending - whether it's a result of the lid closing or manually hitting suspend.   I have tried editing my /etc/systemd/login.conf (for HandleLidSwitch) as well as /etc/default/acpi-support (for SAVE_VIDEO_PCI_STATE), but neither approach has worked. I read  but there seems to be no answer.   What can I do here?


Can I replace  4GB 1Rx8  PC3L 12800S  with  8GB 2Rx8 PC3L 12800S RAM? I have Toshiba Portege R930-C086, core i5


I've edited my deleted answer to make it clearer, but it's still deleted

The questioner didn't understand my answer, so a moderator deleted it.  I've since edited by answer to connect the final pair of dots and make it crystal clear, but it is still deleted.  Can it be undeleted?  The question can be seen at  .  None of the earlier answers got it completely right, and the questioner seems to believe that nobody has really answered his question


Today I saw a sentence:  She surely can do it.  What does that mean? How does it differ from:  She certainly can do it. Surely she can do it.  This slight difference in meaning of those sentences I am not able to notice. Could you please help me? Thanks in advance!


I am new to regex. I am checking email ids using regex.  Following is my code to match <xyz@xyz.com> with xyz@xyz.com  Pattern p = Pattern.compile("\\<(.*?)\\>"); Matcher m = p.matcher("<xyz@xyz.com>");   And its working fine. Now I want to match either <xyz@xyz.com> or [xyz@xyz.com] with xyz@xyz.com.  Any suggestion will be appreciated.


How can I caption my figure in a right way?

I was writing an article and try to insert an image with a caption. So first I used the following codes,  \flashright \includegraphics[scale=0.25]{cantor.png}   which results in     Then I wanted to add a caption below the image, so I used the following codes  \begin{figure} \flushright \includegraphics[scale=0.25]{cantor.png} \caption{cantor set} \end{figure}   which gave me,    So my question is how can I fix this large gap and make the things look like the first image with the caption underneath the image?


Is there a way when exporting a .psd as a .pdf to make the file smaller?   My client always has me work in Photoshop and send them finished work as .pdf's, but they say the files are too big. These products are eventually printed out, so while I need to make the files smaller, they still need to have good quality. Everything is in CMYK mode already. I just don't know a lot about compression and changing file sizes


Now that quantum computers have been out for a while, has RSA been cracked?

D-wave systems has released . This means in theory, that all asymmetric encryption algorithms — such as RSA — are now useless due to the speed at which quantum computers can factor.  Has RSA been cracked yet? If not, why hasn't it?  The reason for our company's concern is an upcoming product that relies heavily on cryptography, and a significantly large number of hackers may attempt to break it. If the code was found to be insecure, it would be a huge problem for our company, our users, and anyone on the Internet if RSA was found to be insecure.   Update: article on D-Wave recent announcement


I want to change the ssh port from 22 to 2800. I tried to change the /etc/ssh/ssh_config and removed the # from Port line and changed the number to 2800. after trigger the command: service ssh restart The connection continued. When I tried to connect from the port 2800, It refused. The Content of /etc/ssh/ssh_config is: Removed commented lines  Host * Port 2800     SendEnv LANG LC_*     HashKnownHosts yes     GSSAPIAuthentication yes     GSSAPIDelegateCredentials no   The command service ssh status gives the following output:  ● ssh.service - OpenBSD Secure Shell server    Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)    Active: active (running) since Fri 2017-09-22 20:31:45 IRST; 1s ago  Main PID: 1825 (sshd)     Tasks: 1    Memory: 724.0K       CPU: 5ms    CGroup: /system.slice/ssh.service            └─1825 /usr/sbin/sshd -D  Sep 22 20:31:45 GoodMind systemd[1]: Starting OpenBSD Secure Shell server... Sep 22 20:31:45 GoodMind sshd[1825]: Server listening on 0.0.0.0 port 22. Sep 22 20:31:45 GoodMind sshd[1825]: Server listening on :: port 22. Sep 22 20:31:45 GoodMind systemd[1]: Started OpenBSD Secure Shell server.   I tried other ports too. But still it has the same status. What do I do wrong?


Using a variable for if window.location.href.indexOf()

What I want to do is use a variable with window.location.href.indexOf() This is my code right now, I want to be able to shorten it.  var urls  = [ 'https://www.example.com/'  ,'https://www.example2.com/'  ,'https://www.example3.com/'   ,'https://www.example4.com/' ,'https://www.example5.com/' ];    // if ((window.location.href.indexOf(""+urls+"") > -1) Does not work if ( (window.location.href.indexOf("https://www.example.com/") > -1) || (window.location.href.indexOf("https://www.example2.com/") > -1) || (window.location.href.indexOf("https://www.example3.com/") > -1) || (window.location.href.indexOf("https://www.example4.com/") > -1) || (window.location.href.indexOf("https://www.example5.com/") > -1)    ) { //do stuff  }   I've included what I've tried in the code but it doesn not work. javascript and jquery both work for me


Run specific scripts/settings on several occassions (connect mouse, connect screen etc)

I'm sure I'm not the only one in this situation: I run Ubuntu 16 on my laptop, and I use that to connect to my workstation in the office.   Now there are a couple things that I have to do every day when I connect to my workstation, such as fixing my bluetooth mouse speed, setting the right resolution for both screens and restoring my wallpaper with nitrogen. For each of these tasks I have a (startup) script which works fine, but when I connect my second screen, the laptop is already booted.  So my question is, next to start-up applications, how could I (i.e.) run nitrogen --restore and scale down the resolution on my laptop (from 2560x1600 to 1440x900) when I connect the second screen?  What I do now is run all seperate scripts again manually, which isn't a big deal, but we don't use Ubuntu to just accept how it is, right? ;)  To clarify; my question isn't too specific for these tasks, but more in a general sense; how could I fire anything from the terminal on specific actions like "input of display detected"?


Visualisation of formation of electromagnetic waves

Recently I am studying electromagnetic waves, and I am wondering why it is formed by acceleration of electric charges?  Can the EM waves be formed by other movements of electric charges, such as at a constant velocity?  And also, is there a way to visualize the formation of EM waves?


I unlocked the 'Files' button/icon from my unity launcher and now it disappearead and I cannot restore it or get it back

I unlocked the 'Files' button for the Ubuntu file manager from the unity launcher and I cannot get it back.   When I run the file manager from the dash, the icon does not appear on the launcher like it does for all other applications while they are running. I wanted to have an empty launcher when no applications are running, and just have the icons of those I am actively using there.  Any idea why I don't see it in the launcher when its running or how to lock it back?


alternative ways to take screenshots on Galaxy

When there is a rubber-protector around the phone or the tablet, I find it extremely difficult to do a palm-swipe-to-capture action,  to get a screenshot.   That's due to the fact that the raised edges of the screen protector prevents my palm to completely flush on the surface of the phone.   Is there a way to get the screenshot any other way and a more convenient way?  Or an app that will do that? matye thru share via route??


Which is correct in the following example?  "The following staff are/is (?) absent today:  John Doe Jane Doe Bob Doe"


Finding the minimal distance between two lines?

So I have a line that looks like this $\begin{pmatrix}1\\2\\-1\end{pmatrix}$ + t$\begin{pmatrix}1\\5\\1\end{pmatrix}$. And I'm trying to find the minimal distance between that line and the line x1 = x2 = x3. I know the find the distance between two lists would be to subtract the lists and the find the length of that but how would I find the distance for two equations like this?


How to script make menuconfig to automate Linux kernel build configuration?

I want to automate a Linux build but eventually get to a point where I need to run what seems to be a very manual step: make menuconfig.  This seems to synchronize configs between the OS and kernel configs?  cp git-tracked-config .config make defconfig  make menuconfig # <- how to automate/script this? make V=s   Basically, how can I remove the call to make menuconfig for a build script?  As an aside, this is in reaction to a build error that seems to happen when I run without ever calling make menuconfig:  make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.   Which seems to be there is a missing rule in a makefile perhaps because the makefile itself does NOT exist or the makefile has not been generated/morphed to contain that rule but that is a separate question.  There could be a smarter way to approach this alltogether.  Are there other configs that I'm not tracking but should (e.g. oldconfig)?


Matlab / M - pass a cell array into a function as input

I have a very basic Matlab/M function to take the first cell of a cell array, then return the cell removed and the rest of the cell array minus the first cell, like taking the first item out of a queue. Matlab seems to have a fit about the type of the input being a cell array. Is it possible to pass cell arrays into functions?  I saved the function with a filename the same as the function, i.e. fpop.m, and I double-checked my input, but I'm getting the error: Undefined function 'fpop' for input arguments of type 'cell'.  This is my simple function code:  function [cell, outqueue] = fpop(queue) % DELETE FIRST ELEMENT ONLY, RETURN REMAINDER %Queue  outqueue = {}; cell = {}; if size(queue,2) < 1     %do nothing elseif size(queue,2) < 2     cell = queue{1}; else     cell = queue{1};     for i = 2:size(queue,2)         outqueue{i-1} = queue{i};     end end   The code I used to call the function and the cell array input:  myqueue = {{1,2}, {3,4}, {5,6}, {7,8}, {9,10}}; [outpair, myarray] = fpop(myqueue);   I tested all the statements outside of the function, so I know everything is working. I just seem to have something wrong with the function call -- or perhaps passing a cell array into a function is just not possible.  I did some checking online, and the info I found says that I need to reference the specific part of the cell array I want to pass, essentially passing in not the cell array but the variable(s)/object(s) inside the cell. I don't want to pass in the objects individually though -- I want to pass in the entire array and then do work on the cell array. Is this possible?  Also, I found  here on SO, but none of the answers seemed to address the issue and since I don't know all the factors of the original issue, it seemed better to start a new question.


Perl scripts will not run in apache (Permission Denied)

I have LAMP installed on Ubuntu 14.04.1.  I want to be able to run cgi scripts from all directories that are within my website. So I added this to /etc/apache2/apache.conf      <Directory /var/www/>            AddHandler cgi-script .cgi .pl           Options FollowSymLinks +ExecCGI     </Directory>   I also did this edit in /etc/apache2/mods-enabled/mime.conf      # To use CGI scripts outside of ScriptAliased directories:     # (You will also need to add "ExecCGI" to the "Options" directive.)     #     AddHandler cgi-script .cgi .py .pl   But now when i visit my script it says     You don't have permission to access /hello.pl on this server.   But I have chmodded and chowned the script.. in fact look...  ls -la hello.cgi -rwxrwxrwx 1 www-data www-data 84 Jan 26 03:19 hello.pl


My system has libgmp.so.10.2.0 while  says current version is 6.1.2.  Is this specific to GMP? Would having libgmp.so.42.0.0 be OK?  Debian adds another number "2" to the mix (ignoring patches).  libgmp10:amd64  2:6.0.0+dfsg-6


I'm trying to mount the EFI Partition from Disk Management but all the options for the EFI partition are greyed out, so I can't do anything..  here's a screenshot from the problem :


The meaning of singleton and existence of $\{\varnothing, \{ \varnothing \}\}$

I can't understand difference between $\varnothing$ and $\{\varnothing\}$. What is difference between $x$ and set that has only $x$ as element? I think the concept of set is meaningful when it has more than 1 element. If "$\varnothing$ and $\{\varnothing \}$ is different" is right, then I have another question. When we see the set $\{\varnothing,\{\varnothing\}\}, \varnothing$ and $\{\varnothing\}$ exist simultaneously. It means two empty sets exist. One empty set exists as $\varnothing$ itself and one empty set exists as element of $\{\varnothing\}$. I can't understand this situation. What am i misunderstanding?


What is meant by 'intestinal fortitude'? 'ovariological fortitude'?

Is a good example of 'intestinal fortitude' when someone faces his/her fair share of adversity and bounces back from it? Or when a boxer is repeatedly pummeled and knocked down in a fight, and he keeps returning to his feet to continue notwithstanding the beating endured (he's showing a lot of heart, internal strength and 'guts')? Can you say 'He had the intestinal fortitude ('guts') to call me a buffoon'? Is 'ovariological fortitude' the female equivalent of this term?


The view through my canon 100D viewfinder is blurry

The title sums it up. I upgraded to full frame and when I reused my canon 100D I realized that I just could not see clearly through the viewfinder. Everything is blurry, even the parameters, even when the focus is clearly made on an object. The focus is clear however using live view.  I see well, on my 6D it is great but on the 100D it is very frustrating to just see everything blurry. Could it be something with the apparatus? (Else I suppose I will have to blame my eyes and the comfort of the bigger body's viewfinder)  Thank you for your answers


PGF Math error with blank node in forrest

\documentclass[12pt]{article}  \usepackage{forest}  \usepackage{gb4e,cgloss}    \forestset{  sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom{}}},  background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,}},     qtree/.style={ baseline, for tree={   parent anchor=south,   child anchor=north,   align=center,   inner sep=1pt, }},  nice empty nodes/.style={for tree={calign=fixed edge angles},delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}}}  }   \begin{document}   \begin{exe}  \ex  \begin{forest} qtree, nice empty nodes,    […, for descendants={l=0}, name=dots , tikz={\node [draw,green,inner sep=12pt, fit=(V)(dots)(book)(Erel)(v)(T)] {};} [ \emph{v}P     [DP         [Erel, triangle, name=Erel ] ]     [ {}, s sep=5em         [VP, name=VP, tikz={\node [draw,red,fit to tree] {};}                 [DP                     [ book-ACC, name=book, triangle ] ]                  [V\\buy, name=V] ]          [\emph{v}, name=v ] ] ] [T, name=T ] ]  \node at (dots)[above=5ex]{{\bf CP-phase}};  \node at (VP)[below=17ex]{{\bf VP-phase}}; name=VPnod  \end{forest}  \end{exe}   This gives me the following error message:  ./divide with zero.tex:39: Package PGF Math Error: You asked me to calculate `1  /0.0', but I cannot divide any number by zero.   See the PGF Math package documentation for explanation.  Type  H <return>  for immediate help.   ...                                                 l.39 \end{forest}   However if I change the empty node under vP to anything, the error is gone.


New lines in EOF multiline text produce errors in sed command using Unix shell

Here my run.sh file:  #!/bin/sh  before=$(cat <<EOF require SYSPATH.'core/Bootstrap'.EXT; EOF )  after=$(cat <<EOF if(strpos($_SERVER['SCRIPT_NAME'], 'phpunit'){ sometext # <= without it works fine! EOF )  sed -i.bak "s|$before|$after|g" "$2"   error  sed: -e expression #1, char 79: unterminated `s' command  Works fine but I want replace multiline text!  #!/bin/sh  before=$(cat <<EOF require SYSPATH.'core/Bootstrap'.EXT; EOF )  after=$(cat <<EOF if(strpos($_SERVER['SCRIPT_NAME'], 'phpunit'){ EOF )  sed -i.bak "s|$before|$after|g" "$2"


How do enzymes use quantum tunneling (also, please use relatively simple vocabulary)?

I already know how the Sun uses quantum tunneling to create nuclear fusion, but can't apply it to enzymes. Also, since I'm only in eighth grade, please use relatively simple language. Thanks!


is there anyway to get remote shell from windows to windows over WAN?

Is there any way to get remote shell (not RDP) from home PC to office PC? i have 2 pc's on 2 different places  pc number one ip : 66.33.22.885 ( home PC )  pc number tow ip : 77.13.85.676 ( office PC )  i want to connect from home to office via cmd not ( RDP ) how i can ???  and i dont know why they edited my post and delete it !!


How to repair a broken .EXE file association

After (hopefully) scrubbing viruses out of a Windows 7 installation (after deciding not to simply run over the laptop repeatedly with my car), I've got everything almost back to normal. The only lingering issue I have is that for my non-admin users, the ".exe" file extension doesn't work. That is, clicking on the various desktop application links results in a "How do you want to open this?" dialog.  I've been through the alleged registry fixing from "winhelponline" and that had absolutely no effect.  I've tried running "assoc" for the affected users, but it reports the .exe association to be "exefile" even though it persistently does not work.  Right-clicking on a desktop icon and then choosing "start" does successfully open an application, but that's clearly a terrible situation.  For my admin user, things seem to work fine.  What do I need to do to get things working?


How can I add SqlParameters without knowing the name / type?

I am creating a DB wrapper and am in the need of adding SQL paramters to my stament however I do not know the parameter names or type, how can this be done? I have seen many other libraries do this...  I just want the order of values to be mapped to the stored procedure...I thought the following code would work:  public DataTable ExecuteDataTable(string storedProcName, params object[] args) {     SqlCommand cmd = new SqlCommand(storedProcName, conn);     cmd.CommandType = CommandType.StoredProcedure;      // inserting params like this does not work...     for (int i = 0; i < args.Length; i++)     {         cmd.Parameters.Insert(i, args[0]);     }      DataTable dt = new DataTable();     dt.Load(cmd.ExecuteReader());      return dt; }   Any ideas of how to accomplish this? Note: I know there are other libraries such as the Enterprise Library that already does this, but I'm in a situation where that won't help...  Thanks.


How do I join an array of strings where each string has spaces?

My bash script:  #!bin/bash MY_ARRAY=("Some string" "Another string") function join { local IFS="$1"; shift; echo -e "$*"; } join "," ${MY_ARRAY[@]}   I want the output to be: Some string,Another string.  Instead, I get Some,string,Another,string.  What must I change to get the result I want?


How to prove that $\int_{0}^{\pi}\left|{\sin{nx}\over x}\right|\,\mathrm dx\ge{2\over\pi} \sum\limits_{k = 1}^n \frac1k$

How to prove $$\int_{0}^{\pi}\left|{\sin{nx}\over x}\right| \,\mathrm{d}x\ge{2\over\pi} \sum_{k = 1}^n \frac{1}{k}.$$  I have tried infinite series but absolute value and $n$ ruins it. Induction also didn't work very well.   Any hints?


Prove complete metric space for $I=]0,\infty[$ with $d(x,y)=\lvert\ln(x)-\ln(y)\rvert$

Let $I=]0,\infty[$ equipped with the metric $d(x,y)=\lvert\ln(x)-\ln(y)\rvert$, $\forall x,y \in I$. Prove that $(I,d)$ is complete. Any help, and thanks in advance.


Would someone be able to see where they are headed once they crossed the event horizon?

Let us say an explorer was studying a supermassive black hole and ended up blundering past the event horizon. From my understanding, which may be wrong, the only paths allowed after crossing the event horizon are paths that bring the object closer to the singularity. Therefore, if the hapless explorer faced the direction of travel, would none of the photons ahead of the explorer be able to reach the explorer's eyes?


Why is $\lim\limits_{n\to\infty}(n!)^{1/n}=\infty$   It is more or less clear that the sequence is increasing by ratio test $\frac{((n+1)!)^{1/(n+1)}}{(n!)^{1/n}}=\frac{\sqrt[n+1]{(n+1)!}}{\sqrt[n+1]{(n)!}}\cdot\frac{\sqrt[n+1]{(n)!}}{\sqrt[n]{(n)!}}=\sqrt[n+1]{n+1}\cdot(n!)^{\frac{1}{n(n+1)}}$  but left multiplicand tends to $1$, what about the right one ?   Is there convergence/divergence tests for sequences, I only found some for series ?


I have lists of files that contain a few columns of data. It is not sorted the way I want from the output, so I'm manually hunting for where a line should be. Is there a way in Notepad++ to sort the lines alphabetically? If so, how?


I just installed Texlive 2014, and ran into this problem: . The solution is apparently to remove LGRx from \usepackage[LGRx,T1]{fontenc}; but I'd rather use something like this:   \ifnum \texliveVersion<2013   \usepackage[LGRx,T1]{fontenc} \else   \usepackage[T1]{fontenc}   \usepackage[greek,english]{babel} \fi   Anything like this out there, which would not require me to run -shell-escape everytime - just in case I need to compile the same document on the machine that has earlier TexLive?    EDIT: this is what I meant - this should be the code in  , but with a conditional switch for Texlive2014; unfortunately it crashes with ! Undefined control sequence.  l.50 ...\bbl@monogreek \bbl@monogreek=\l@monogreek:  \documentclass[a4paper]{article}  % https://tex.stackexchange.com/a/16794/2595  \begingroup\makeatletter\endlinechar=\m@ne\everyeof{\noexpand} \edef\x{\endgroup\def\noexpand\TeXLiveVersion{\@@input|"pdflatex -version | awk '/TeX Live/{print substr($5, 0, length($5)-1);}'" }}\x  \typeout{TexLive version is: \TeXLiveVersion}  % https://tex.stackexchange.com/a/191705/2595  \ifnum\TeXLiveVersion<2014 %   \typeout{TexLive version is smaller than 2014, using LGRx} %   \usepackage[LGRx,T1]{fontenc} % \else %   \typeout{TexLive version is >= 2014, NOT using LGRx} %   \usepackage[T1]{fontenc} % \fi %  % \usepackage{xgreek} \usepackage[utf8x]{inputenx} \usepackage[english,greek]{babel}  \begin{document}  The starting verse of the Iliad is \begin{quotation}\greektext Μῆνιν ἄειδε, θεά, Πηληιάδεω Ἀχιλῆος \end{quotation} and it's really great.  \end{document}


I have this message in dmesg log with linux 3.11.6-1 (2013-10-27) (debian version).  I wonder how to fix/remove it?       [    5.098132] ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \PMIO 1 (20130517/utaddress-251)      [    5.098147] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver      [    5.098156] ACPI Warning: 0x0000000000000530-0x000000000000053f SystemIO conflicts with Region \GPIO 1 (20130517/utaddress-251)      [    5.098167] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver      [    5.098171] ACPI Warning: 0x0000000000000500-0x000000000000052f SystemIO conflicts with Region \GPIO 1 (20130517/utaddress-251)      [    5.098180] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver      [    5.098186] lpc_ich: Resource conflict(s) found affecting gpio_ich      [    5.099072] ACPI Warning: 0x000000000000f040-0x000000000000f05f  SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 1    (20130517/utaddress-251)      [    5.099085] ACPI: If an ACPI driver is available for this device,     you should use it instead of the native driver   lspci :   $ lspci 00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4) 00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 02:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35) 03:00.0 SD Host controller: O2 Micro, Inc. Device 8221 (rev 05)


Does light actually travel through glass?

I am currently reading about the interactions between light and matter, but I keep coming across conflicting explanations.  My initial understanding (using classical electrodynamics) was that light (EM) waves do not actually travel through glass. Instead, they are absorbed by the atoms and/or electrons within the glass, which then emit new EM waves. The new EM waves emitted by the energised particles make up the forward-radiation, which is the light observed from the opposite side of the glass. So it appears as if light is travelling through the glass, but it's actually being absorbed and then re-emitted with (mostly) the same properties.  The article  by Chad Orzel, based on a related SE question, confirms the above:      To understand the propagation of a wave through a medium, you can   think of each component of the medium– atoms, in the case of a glass   block– as being set into motion by the incoming wave, and then acting   as a point source of its own waves.   But an answer to a different but related question,  conflicts with the above:     the electrons in glass are tightly bound to atoms so they are not free   to move like the electrons in a metal and therefore they do not absorb   the photons.   I know the above is referring to the quantum electrodynamics understanding, but I think it still conflicts as it claims that EM waves are not absorbed by the electrons in glass because they are too tightly bound to their atoms.  Also, the  provides a small explanation of the mechanics behind refraction within glass, which kind of conflicts with both of the above:     In the case of dielectrics such as glass, the electric field of the   light acts on the electrons in the material, and the moving electrons   generate fields and become new radiators. The refracted light in the   glass is the combination of the forward radiation of the electrons and   the incident light. The reflected light is the combination of the   backward radiation of all of the electrons.   From my understanding, the above claims that some of the light is absorbed and re-emitted by the electrons (which conflicts with the linked answer), and that the rest of the incident light travels through the glass (makes up the rest of the refracted light) (which I think conflicts with the linked article, claiming the light is absorbed (although the article doesn't technically state whether all of the light is absorbed and re-emitted, so maybe that's where I'm going wrong(?))  I'm sure this is my misunderstanding, so I would be very grateful if you could clear it up for me:  When a light wave is incident on a sheet of glass, do the particles that make up the glass absorb the waves and re-emit them in the forward direction? Or do the light waves manage to travel through the glass, without being absorbed and then exit the glass?


How can I change the auto formatting positioning of curly braces?

From this:   if (condition == true) {    // do something }   to this:   if (condition == true) {    // do something }   In School the PC's are used to the second, and I prefer it more. Thought my Visual Studio automaticlly uses the first. How can I change it?


A book about explorers stranded on a planet with two computers

I have been looking for a book that I read in the 80's but it's probably older. It was about a spaceship from Earth in a very long mission to discover life? I don't remember, but they had been far too long in space without any results, so the crew was on the verge of mutiny.  They land on a planet, home of two super-computers called...? Alpha? Beta? One seemed more advanced than the other, the planet was void of any other life, and supposedly it was forseen that the planet would be struck by a comet, and the computers see the ship as a way to save or abandon the planet before the impact.  At some point one member of the crew is captured by the computers, and it's vivisected in an attempt to get data about humans. Then they "reassemble" the crew member before returning it to the ship, hoping that the humans could "reactivate it" since the computers were unable to do so. Which of course enrages the ship's crew.  The ship was unable to take off for reason that I don't remember and they must fight the computers to save themselves.  Does anyone know what this is?  Thanks, as soon as I read the names, they did ring a bell on my memory. The case it's closed then.


It seems to be generally well accepted that the correct way to typeset a value with units is to separate the number from the units by a space, and write the units in an upright font.  For example,  One hellameter is \( 1.0\times10^{27} \) m.   The symbol for 'micro-' is the Greek letter mu, but if you compile  At the telecom wavelength of \( 1.55\ \mu \)m ...   then the spacing will be correct and the 'm' will be upright, but the 'mu' won't be.     How do you produce an upright lowercase mu?  More generally, how do you make any Greek letter appear upright?


Incorrect C# syntax highlighting with @"\"

The title really says it all, but when I use the @ character to ignore escapes in a string literal @"Like This\", the \" is interpreted as a quote character belonging to the string rather than the terminating quote.


Accuracy Vs. Precision  What I would like to know is whether I should use System.currentTimeMillis() or System.nanoTime() when updating my object's positions in my game?  Their change in movement is directly proportional to the elapsed time since the last call and I want to be as precise as possible.  I've read that there are some serious time-resolution issues between different operating systems (namely that Mac / Linux have an almost 1 ms resolution while Windows has a  50ms resolution??).  I'm primarly running my apps on windows and 50ms resolution seems pretty inaccurate.  Are there better options than the two I listed?  Any suggestions / comments?


how to touch a file to a particular location which was #defined

Assume like I have a #define something like   #define LOCATION /usr/lib/siara/   Now i want to touch a file in that location provided I have permissions to create. I want to do something like this.  system("touch $(LOCATION)/myfile.txt")   But it is not working. Any idea how to resolve this issue


How to show that $$\lim_{\varepsilon\to0}\int_{\varepsilon a}^{\varepsilon b}\frac{f(x)}{x}dx=f(0)\ln(b/a)$$ where $a>0$ and $f:[0,1]\rightarrow\mathbb{R}$ a continuous function.  I tried integration by parts, but it doesn't work. Thanks!


I have More amount of Records in salesforce, i have created field as not Unique.So for account Records is created with duplicate Records also,I want to check how many Records contain dulplicate Records  for that I have wrote Query : I have lot of account records, i don't want to use limit for filtering the records when querying, i want to query all the records in salesforce.  But when i use:  SELECT JDE_ship_to_account_no__c, count(Id) records FROM account GROUP BY JDE_ship_to_account_no__c HAVING count(Id) > 1   for that they suggested answer for this question:    How to write a batch apex code for above scenario, account records contain duplicates or Not?  I want to check all the records whether the record contain duplicates or Not


How to stop MBP from disconnecting external display when screen is locked?

Setup   MBP, 13", 2017, with touch bar; MacOS 10.15.4 (Catalina); LG 27UD88-W external display; Display is connected over USB-C -- USB-C cable. Signal and charging over the same cable.   Problem  Every time I lock the screen, the external display loses signal a few seconds later. This is a problem to me because reconnecting the display on wake up causes numerous annoyances. Corporate apps like Citrix will even regularly crash when the external monitor gets disconnected.  I'd like to make my mac to keep signal with the display when locked.  I can't find any useful options neither in power not display settings. I can't find anything useful in the internets either.  More details  The MBP keeps getting charged through the monitor, so at least power is still on.  Even though I'm on MacOS 10.15.4, it's been a problem since at least 10.13.


I updated to Ubuntu 16.04 LTS and when trying to login into my account or Guest account this error appears and returning me to the login page :  /dev/sda7: clean, 213012/3170304 files, 1905582/12679168 blocks ubuntu 16.04


How can I remove a file named beginning with `#`?

I have a file named #%2Amerge%2A#4984jjK#.   # starts a comment in bash. So how can I remove the file?  Thanks.


I want to know if there is a way to decide if a cyclotomic polynomial is irreducible over a field $\mathbb{F}_q$?


Configuring Tomcat to not load web-app automatically at start up

I have a Java web app which I'm deploying using Tomcat but I'm having some trouble with this.  The problem is that my web app has to talk to some native libraries (via JNI) and those libraries do not handle errors that gracefully so if I try to start Tomcat and the native calls fail Tomcat startup halts partway through and does not start.  What I would like to do is have Tomcat not start this web app when it starts as I'll be using other means to start the web app which will ensure that the native calls will work.  Specifically the native calls are to talk to another system which must already be running for the native calls to succeed.  One interesting thing I've found is that if I reload the app once Tomcat is successfully running failures in the native libraries only cause the context to fail and Tomcat continues running fine.  I've googled around and seen pointers to the context.xml file but it is unclear to me if I can use this to achieve my aim as the Tomcat reference doesn't seem to list any properties which stop a context automatically being loaded at startup.


How to vertically align paragraph inside div

I'm having trouble getting this to vertically align automatically. I know I can add a padding-bottom to center it manually, but I'd rather it position vertically automatically. How would I go about doing this? And I need to keep the display: inline-block functionality.

title

                  text for paragraph goes here


How can I save my progress on GTA 5 in the middle of a mission?

Sometimes I need to get off of the game while I’m in the middle of a mission but I can’t find a way to save besides ending the mission.   Is this possible?


Star Wars Time Measurement and Dating Systems

I seem to remember several dating systems mainly in the Star Wars Expanded Universe. Furthermore, I was wondering if periods of time such as seconds, days, or months represent the same amount of time as they do in the real world.  So these are the main points of this question:   Which are the different dating systems (if there is indeed more than one) in the Star Wars galaxy? How are they related in regard to time offsets and such? (e.g. One system's year 5000 is another's year 268) An explanatory timeline graphic - perhaps including some important events - would be especially appreciated! Do amounts of time in the dating system(s) such as minutes or hours represent the same amount as in the real world? If more than one system exists, do the amounts of time carry over between them? (e.g. 1 minute is the same amount of time in all systems.) If the times carry over (or there is, in fact, only one system), what planet are the units of time based on? Coruscant?   Sorry if it seems I have asked too much in one question - splitting this question up into multiple questions did not appear to be a good idea as much of its content is very related.  Thanks for your time!


How can I avoid entering password every time after wakeup from suspending in Ubuntu 18.04?

In Ubuntu 16.04, I can easily cancel the option "lock screen after wakeup from suspending" in the unity settings. But in Ubuntu 18.04 I can't find this option anywhere from the gnome settings to the gnome tweak tools. Any advice?


Checking if two values are approximately the same in python

I have two functions which give me very small numbers. I want to define a IF statements in which If two values are approximately the same print them otherwise pass  a = (x, y) b = (h, p) If a == b:    print(a, b) else:    pass   for this we cannot use ==. How to define it to be close? Because the order of values maybe like a=7e-25, b=1.5e-26


I've just upgraded to Valmiera in QGIS, the only way to do spatial analyses appears to be with the experimental AniMove plugin (?) which is not appearing in my GUI.   Can anyone tell me where to find the plugin and how to make it work?


How should a bot earn enough reputation to perform the actions necessary for that bot?

We all know it: bots that chat. There are also bots that flag, or perform other actions. And usually we like them for doing that, like . So every now and then, a new bot is created, and usually you would ask a question using that bot or suggest enough edits to get the reputation necessary for that bot to operate. Instead of suggesting 100 edits, Undo has found a more efficient way, namely by . Now someone could frown on this action or not, actually it is the least intrusive way to get the bot the reputation necessary (I guess no one really likes a bot to suggest 100 edits just for the sake of earning enough reputation). The question is: is this actually the best way? Was this action allowed or should we look away because it is Smokey? Should we maybe have a special bot user status which derives the privileges from its master user? Anything else you want to share on this? Related:


Separate /var partition is still getting full

The /var partition on my intel SSD is getting full. Even though I have increased it size to 100GB, which is quite ridiculous.  The kern.log and syslog. files are each 31.7 GB big.   how can I remove the files? Because just deleting them is denied. What is the cause and how can I prevent this from happening?


Passive perception against hiding monster

Can someone explain how passive perception works against hiding monsters?  For example, the adventurers are walking down a road and there are goblins hiding up ahead.  Would I use a passive perception check here and if so, what do I compare the passive score to?


Hi am a beginner to blender and I am stuck at a tutorial can someone please I have a lot of vertices and i need to decrease them the video I am watching is   and I am stuck at 8:33 cause the blender guru has fewer vertices then me


Skylake integrated graphics on Ubuntu - Help!

I've searched everywhere for hours and can't find the solution. Using Skylake i5-6500 with Asus 7170 motherboard, Ubuntu 15.04. I have been unable to get the intel graphics working, even by editing grub in the terminal with the i915 preliminary = 1 setting (I did type it correctly on the screen). I can't find how to fix this. I am using Gallium graphics now, it is the only thing that works. I also have an Nvidia gtx 950, I presume once intel HD graphics are working I can then install the Nvidia driver using root .sh on the downloaded file.  If anyone can help I will personally offer to write a tutorial on how to fix it for other newbies. It seems thousands of people are having the same issue. Many, many thanks Tom


Default RNG used by openssl for certificate generation

I have generated a certificate using openssl with the below command.  openssl ecparam -out <output_file> -name secp256r1 -genkey   What would be the RNG used in this case? and is it cryptographically secure?


Recurrence relation using the master theorem $ T(n) = 4T(n/2) + n^2 \log n$

I am trying to solve the following recurrence relation using the master theorem:  $ T(n) = 4T(n/2) + n^2 \log n$  So: $a=4 ,b=2, f(n)=n^2\log n$ , then $n^{\log_2 4}=n^2 $  Now i know that $n^2 \log n $ is larger .  Can I apply the master theorem to this problem?  Thanks.


How to update profile photo on stackexchange.com (network profile)?

I have updated my profile photo in stackoverflow.com, but my profile photo (network profile) in stackexchange.com is not changed. I checked the stackexchange.com > network profile page to find any possible links or clue, but there weren't any.


I am came from Windows world and have a question about place to install applications. Some applications download to my Ubuntu desktop in tar.gz archives. I understand I can put these apps to any location. However, maybe there is a ideologically right place. For example, some apps installs to directories: /opt/, /usr/bin/, /usr/local/bin/. What should I prefer?


Stream cipher with Diffie-Hellman and Cryptographic Hash Function?

I know: Never do your own crypto. But this question is just theoretical.  Assume you do a Diffie-Hellman Key Exchange with a server to produce a shared secret $x$. Then use a cryptographic hash function like SHA3 to generate a pseudorandom bitstream like this:   $$p_i = \operatorname{SHA3}(x||p_{i-1}).$$  To encrypt $i$th packet of data, labelled $m_i$, compute  $$c_i = m_i \oplus p_i.$$  I realize that the key stream for a OTP must be completely random to ensure perfect secrecy, but would this scheme at least be as hard to break as the underlying hash function or Diffie-Hellman?  In my opinion, it should be, but I'm new to cryptography.  Since the shared secret is only used for one session, assuming the hash function is a random oracle, no keystream is ever used twice. By including $x$ in every $p_i$ an attacker has to break (not only find a collision) the first sent packet in order to decrypt the rest of the session, breaking any other packet will most likely be a collision and not give away the needed $x$, only the content of this packet. Also, breaking any packet requires at least plaintext knowledge but it gives you only this particular hash, not the previous/next hashes.


Two different definitions of locally compact spaces

There are two different definitions of locally compact spaces.  1.A topological space $(X,T)$ is said to be locally compact if for every $x\in X$, there exists an open neighborhood of $x$  whose closure is compact.  2.A topological space $(X,T)$ is said to be locally compact if every point in $X$ has a compact neighborhood.  Are they equivalent?  It is obvious that 1 implies 2.


Molecular level Fallout 4 bug - only showing one piece

I've played this game with 4 different characters that go up to level 85+ and i just ran into a unique problem.  When im in workshop mode in Sanctuary trying to build the molecular beam i only have one piece of the machine available to build.  STABLIZED REFLECTOR PLATFORM. The other pieces simply aren't there in the special section. I have the artillery piece, robot workbench, and then the stablized reflector platform. That's all.   So weird and so frustrating.    I disabled all the mods and went back to the Glowing Sea mission and worked my way back to molecular level and the problem persists.


I cant manage to get the right render settings for this image.   if you look at the render closely you cant see the poor quality. The denoiser in blender makes the image look smudged.  Here's the project file. You can mess around with it and see the results you get. Let me know what you did so I can make my render better.


Isn't there any other way of doing double quotes in LaTeX besides `` +  ''?

The standard way of writing quotes and double quotes in LaTeX is with `` and '', but I find them quite ugly. Isn't there something similar to \emph{}, but for quotes? I mean something like \quotes{quoted text goes here}.  I've been looking but couldn't find any, maybe you guys can.


Refer from this question () I am trying to reset the password of mysql installed.But run the third command mysql -u root mysql i will get the error  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: N O).   I have searched a lot but cant find  a solution.Currently the virtual machine is running in azure cloud service


Numbered list with roman numbers in HTML

I'm working on a work file and I have to make a numbered list with roman number in html but I don't now how I can do it. Is there someone that can help me?


Getting from Dublin Airport to Dublin Ferryport by public transport?

Are there any sensible ways to get from Dublin Airport to the Dublin Ferryport, without going via the city centre? Both are to the north of the city centre, so one might naively expect there to be an option. (That's no guarantee though!)  I've tried having a look on the , but that didn't mention anything about the Ferry Port, just Dublin itself and other towns/cities in Ireland. Since the airport buses carry a premium, and a trip via the city centre involves two sets of traffic, it'd be ideal to avoid having to go Airport -> City -> Ferry Terminal, if sensibly possible.


Is MySQL more efficient than a file system?

In a game with a client-server database management system, would it be more efficient to have this data stored with something like MySQL or would a file system with everything being saved and stored in the server files, considering that this will be intended for thousands of accounts to be created.


sudo apt-get install idle-python3.6 Reading package lists... Done Building dependency tree        Reading state information... Done   Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  idle-python3.6 : Depends: python3-tk but it is not installable               Depends: python3.6-tk but it is not installable E: Unable to correct problems, you have held broken packages.   --  I'm just trying to follow what the tutorial tells me to do, I don't have much knowledge of Ubuntu, as I just switched from Win10.  TYIA


Is the "live" in "He only lived a few days after the accident" intrasitive or transitive?

An example sentence from the :  [I] He only lived a few days after the accident.  [I] means "intransitive verb". He (subject) + lived (verb) + a few days (noun). What part of speech is a few days? From the :  number 5  way of life[intransitive always + adverb/preposition, transitive] to have a particular type of life, or live in a particular way   used 'transitive verb' like 'She lives a very busy life.' From the ELU question :  She is 16 year old.  '16 years' as acting as an adverb. My questions are:  In "He lived a few days.", is a few days an object (noun) or an adverb? How is it different from "He lived for a few days."? "I walked ten miles." Number + measurement — how can I deal with 'part of speech'?


What's wrong with my "proof" that the Lebesgue measure of $[0,1]$ is $0$?

Proposition. $\lambda [0,1] = 0$   Proof. Let $\varepsilon>0$ be arbitrary. We will prove that $\lambda[0,1] <\varepsilon$. Let $q : \mathbb{N} \rightarrow \mathbb{R}$ denote an injection with image equal to $\mathbb{Q} \cap [0,1]$. Let $p : \mathbb{N} \rightarrow \mathbb{R}_{>0}$ denote a sequence with $\sum_{i \in \mathbb{N}} p_i < \varepsilon$. Then $$\lambda [0,1] = \lambda \bigcup_{i \in \mathbb{N}} (q_i+[-p_i/2,p_i/2]) \leq \sum_{i \in \mathbb{N}} \lambda (q_i+[-p_i/2,p_i/2]) = \sum_{i\in \mathbb{N}} p_i < \varepsilon$$  So $\lambda[0,1] < \varepsilon$. Since this is true for all $\varepsilon>0$, we deduce that $$\lambda [0,1] = 0.$$     Question. What gives?


while executing below code i'm getting NullPointerException

While executing below code i'm getting NullpointerException.   public class SftpConn       {       public List<String> searchableFields(String sheetName, int column) {               if (sheet == null) {                   sftpConnect();               }               List<String> test=null;               sheet = wb.getSheet(sheetName);               int rowcount = sheet.getLastRowNum();               for (int i = 1; i <= rowcount; i++) {                   Row r = CellUtil.getRow(i, sheet);                   key = CellUtil.getCell(r, column).getStringCellValue();                   System.out.println("key = "+key);                   test.add(key);               }               return test;           }       }      2.Below is the main class where i'm calling "searchableFields" from searchableFields 3.every time i'm seeing same error please suggest"                 public class MyTest {                 public static void main(String[] args) {                     // TODO Auto-generated method stub                     SftpConn sftp = new SftpConn();                     List<String> list = sftp.searchableFields("Searchable Fields", 0);                     System.out.println(list);                 }             }                             Below is my Out put please suggest that what could be the issue.           Session connected  true               key = Check Document                Exception in thread "main" java.lang.NullPointerException                  at com.brcc.tool.Configuration.SftpConn.searchableFields(SftpConn.java:120)                  at com.brcc.tool.Configuration.MyTest.main(MyTest.java:10)   *


How do we prove that the normal vectors to the sides of a polygon add up to 0?

Given any triangle in the plane, associate to each side an outward pointing normal vector of the same length as the side. Show that the sum of these three vectors is always 0.


In an inner product space, can we have $\langle\sum_{n=1}^\infty x_n,y\rangle=\sum_{n=1}^\infty\langle x_n,y\rangle$?

In an inner product space $(X,\langle\cdot,\cdot\rangle)$, we have $\langle x_1+x_2,y\rangle=\langle x_1,y\rangle+\langle x_2,y\rangle$. If $\sum_{n=1}^\infty x_n$ is convergent in $X$, then can we have $\langle\sum_{n=1}^\infty x_n,y\rangle=\sum_{n=1}^\infty\langle x_n,y\rangle$?   Edit: If yes, how to prove it?


My blender file is rendering but the rendered images are all black. Here is the Blender file:


Conflict with ArcGIS for Desktop and Erdas Emagine on same PC?

I already installed ArcGIS 10.1 for Desktop.   The problem is when I install th Erdas Imagine 8.6 that specify above.   So, could you help me in order to run both software products in one PC.


Changed from sendmail to sengdrid, now mails end at spam

I'been sending emails through sendmail for a long time, I want to change to sendgrid, but my mails end up in the spam folder.  I been using sendmail so I suppose my domain already has some reputation, I don't know what else could be affecting my setup.  Any ideas?


I have a table from those I need to get the column field as row   course          |orderedid  |name   |address    |phoneNumber fairy           |1473       |john   |america    |   1234 tales           |1473       |john   |America    |   1234 Admin           |1473       |john   |america    |   1234    I need the result like the below:  course  course2    couse3   orderedid   name    address     phoneNumber fairy   tales      Admin    1473        john    america     1234   Please help me to write a sql query.


Differentiating between copy-by-value and copy-by-reference instances/objects

I am writing a static analysis tool for Java programs. And during analysis of assignment operators, for example, I want to know if underlying objects are using copy-by-value or copy-by-reference.   In case of primitive data types, I know, variables use copy-by-value.  int x = 5; int y = x; // Both are pointing to independent memory locations.   In case of objects, usually they copy reference value of other objects. For example,  MyClass obj1 = new MyClass(); MyClass obj2 = obj1; // Both instances pointing to the same memory location.    However, in special cases, such as  String str1 = "myString"; String str2 = str1; // Both pointing to independent memory locations. str1 = null; // Only str1 gets null   Objects use copy-by value, in my opinion. Please correct me if I am wrong. Similarly, StringBuilder and other java/lang/* classes that are declared with final keyword, their objects/instances behave like that. However, when being passed as parameter to a method, their reference values are passed.  So my question is that is there any way to find all such special cases where objects always use copy-by-value behavior? How can I find all such classes? This may not be an easy task, any kind of suggestion is welcome. Thanks.


What is Windows's default searching order for executable suffixes?

Assume I have a lot of files like these in a directory:  foo.exe foo.com foo.vbs foo.js foo.msi foo.bat foo.cmd   Now I run foo in Command Prompt in this directory. Which one will be executed? What is the searching order of the extensions of these executable files?


for loop doesn't work when "{0..$var}" is used

Simple problem but I don't know how to fix it. Here's the code: missing_filters=('Sort key' 'Page' 'Pagesize' 'Sort direction')  for level in {0..$((${#missing_filters[@]}-1))} do     echo "${#missing_filters[$level]}^|^${missing_filters[$level]}" done | column -tes "^"  It should show every element of the array with 1-4 before it like this: 1 | Sort key 2 | Page 3 | Pagesize 4 | Sort direction  However, I get the error ./advancedplexapi.sh: line 4608: {0..3}: syntax error: operand expected (error token is "{0..3}"). I find this strange as the error shows exactly how I want the shell to interpret it (that being {0..3}). I did nothing wrong because otherwise the shell wouldn't give me the correct output in the error. Why doesn't it work? And ofcourse how can I fix this?


Can I swap Control and Super keys using xmodmap?

I am trying to swap the function of CTRL left and Super Left so that I can summon lenses usng ctrl, and copy/paste using Super.  I created a .xmodmap file with the following content:  remove mod4 = Super_L remove control = Control_L add control = Super_L add mod4 = Control_L   Now Super works as control, but control doesn't work as Super.  Any advice?  PS: I've found other questions about this but none that addresses my issue s far.  Many thanks!


Connect multiple 3.7 V Lithium-ion Polymer Battery in parallel

If I connect 2 1000mAh battery in parallel would I get 2000mAh over 3.7V?     would it be safe to connect two of the above? i understand that i can buy 2000mAh battery but just want to understand the basic concept.  Should I add any safety mechanism for that?


Prove that there exists a $k$ such that $2^k-1$ is divisible by 11

How do I do this question using the pigeonhole principle? Of course, I could just list down values of $k$ such that $2^k-1$ is divisible by 11. For example $k = 10$ would nicely solve the question but it requires listing and when the divisor gets bigger (For example show that there exists a $k$ where $2^k-1$ is divisible by 21, it's harder and much more complicated to solve it.  Are there any hints how I can use pigeonhole principle to solve this question?


What purpose do the rubber 'hairs' have on new tyres?

Up close you can see at least three 'hairs' of rubber from this picture from the side of my tyre:    Why do they exist? I've heard they are just a bi-product of the manufacturing process.


The question:  Suppose John is my friend, and I am introducing myself to his brother, should I say      "I am a friend of John's"    or      "I am John's friend"   ??   I would use the former, but some think the latter is also correct. If both are acceptable, what are the differences? If we can already say John's friend, why do we need constructions like a friend of John's in English?    Note:  There are lots of question on this site asking about  and so forth. This however, is not one of those questions!


Getting an error (java.lang.NullPointerException) on following code

import javax.swing.JOptionPane;  public class SpeedOfSound {     public static void main(String[] args) {         String medium;         double time = 0;         double distance = 0;          medium = JOptionPane.showInputDialog("Please enter a medium\n" + "(air, water, steel)");         distance = Double.parseDouble(JOptionPane.showInputDialog("Please enter the distance the soundwave has to travel"));          if (medium.equalsIgnoreCase("air")) {             time = distance / 1100;         } else if (medium.equalsIgnoreCase("water")) {             time = distance / 4900;         } else if (medium.equalsIgnoreCase("steel")) {             time = distance / 16400;         }          System.out.println(time);         System.exit(0);     } }   I've never encountered this error and I can't point out what it even is given the code. Any help would be appreciated. Thanks.  Edit: someone mentioned that the question is a duplicate. I looked at that question before posting this. Again, I don't understand the context of my error. The previous question says the exception happens when the pointer points to "null" I can't seem to find an instance where I don't have anything pointing to the respective values.


Applet problem: login input is always incorrect, either conditional statement or TextField seems off

I have been given a short task to make a program that is supposed to have an applet that functions basically as a login screen, and that it gets disabled whenever 3 tries have been made. The problem is it always shows that the input is not equal to the username and password that I have pre-set, and I don't know why. x.getText() turns the input into a String, right? But it seems that it is not so. The If-else conditional statement does not seem to be the problem, but it is where the problem happens. The flow of the program skips to the else statement.  I think I have made this work earlier, I can't remember what I did to make it work and to make it not work. LOL. I am using eclipse, JDK 8. (Applets seem to work only on JDK8 and below). Previously, I was using JDK14 but changed it to JDK8 in my compiler and build path, so now Applets work. But could a step in that change have been the cause of the problem?  import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.JOptionPane;  public class easy extends Applet implements ActionListener {     Label labelusername = new Label ("Username");     TextField inputusername = new TextField ("", 20);     Label labelpassword = new Label ("Password");     TextField inputpassword = new TextField ("", 20);     Button buttonlogin = new Button ("Ok");     int ntries = 0;     String username, password; public void init(){     inputusername.setText("hello");     inputpassword.setText("there");     inputpassword.setEchoChar('*');     add(labelusername);     add(inputusername);     add(labelpassword);     add(inputpassword);     add(buttonlogin);     buttonlogin.addActionListener(this); }  public void actionPerformed(ActionEvent x) {     if(x.getSource() == buttonlogin) {         ntries++;         System.out.println(inputusername.getText());         System.out.println(inputpassword.getText());         System.out.println(inputusername.getText() + inputpassword.getText());         username = inputusername.getText();         password = inputpassword.getText();                  if(ntries != 3) {             System.out.println("yow");             if((inputusername.getText() == "hello") && (inputpassword.getText() == "there")) {                 JOptionPane.showMessageDialog(null, "Password Accepted");             }else {                 JOptionPane.showMessageDialog(null, "Invalid Password");             }         }else {             JOptionPane.showMessageDialog(null, "no more tries");             inputusername.setEditable(false);             inputpassword.setEditable(false);             buttonlogin.setEnabled(false);         }     } } }  EDIT: okay sorry, apparently you have to use .equals when comparing strings.


I've got 16.10 installed on a HP laptop for just a couple days now.  Yesterday, I had to do some re-configuring to my house Wifi system, and oddly now, when the laptop boots it does not auto-connect the wifi.  The box is checked to do that, and indeed if I click the drop box, it connects.  So why not the auto-connect?  What did I break?  WiFi: rtl8723be


Project only required shapefiles in folder - update

I have updated the script from my previous question;     I can't get the if fcspatialRef != spatialRef: to work. The script won't filter the shapefiles in ArcGIS, any advice/suggestions?  import arcpy  # Set Workspace   arcpy.env.workspace = arcpy.GetParameterAsText(0)  #Access shapefiles   fcList = arcpy.ListFeatureClasses()  try: # Projection template      template = arcpy.GetParameterAsText(1)   # Output folder     outFolder = arcpy.GetParameterAsText(2)  # Get the spatial reference    spatialRef = arcpy.Describe(template).SpatialReference    #Loop through shapfiles in folder and reproject    for fc in fcList:       fcspatialRef = arcpy.Describe(fc).SpatialReference       if fcspatialRef != spatialRef:               arcpy.Project_management(fc, outFolder + "\\" + fc, spatialRef)  # Return any errors    except:     arcpy.AddMessage(arcpy.GetMessages ())  # Print shapefile list   for fc in fcList:       print fc


"Daily vote limit reached; please come back in *x* hours" shows when you use your final vote

I just cast my last vote of the day. But when I did, I received this message:       Daily vote limit reached; come back in 2 hours   However, this was my last vote. I don't need to come back in 2 hours! The vote still stands.  The box should probably only appear if I cannot vote anymore, or the wording should be changed.


Show that the set of all finite subsets of $\mathbb{N}$ is countable.   I'm not sure how to do this problem. I keep trying to think of an explicit formula for 1-1 correspondence like adding all the elements in each subset and sending that sum to itself in the natural numbers, but that wouldn't be 1-1 because, for example, the set {1,2,3} would send to 6 and so would the set {2,4}.  Multiplying all the elements in each subset and sending that product to itself in the natural numbers wouldn't work either since, for example, {2,3} would send to 5 and so would the set {1,5}. Any ideas?


I am getting the following error frequently. (Example: when running zenity,firefox etc. commands / applications.)  Fontconfig warning: "/etc/fonts/conf.d/90-fonts-unfonts-core.conf", line 11: Having multiple values in <test> isn't supported and may not work as expected   Here is contents of file /etc/fonts/conf.d/90-fonts-unfonts-core.conf:  <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig>     <match target="font">         <test name="family" qual="any">             <string>은 바탕</string><string>UnBatang</string>                 <string>은 돋움</string><string>UnDotum</string>                 <string>은 궁서</string><string>UnGungseo</string>                 <string>은 필기</string><string>UnPilgi</string>                 <string>은 그래픽</string><string>UnGraphic</string>         </test>          <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>         <edit name="hinting"   mode="assign" binding="strong"><bool>false</bool></edit>         <edit name="autohint"  mode="assign" binding="strong"><bool>true</bool></edit>         <edit name="hintstyle" mode="assign" binding="strong"><const>hintslight</const></edit>     </match> </fontconfig>   How to solve it?


Prove that for $X\geq 0$ $\sum_{k=1}^{\infty}P(X>k)\leq E[X]\leq\sum_{k=0}^{\infty}P(X>k)$

Prove that for $X\geq0$ :$\sum_{k=1}^{\infty}P(X>k)\leq E[X]\leq\sum_{k=0}^{\infty}P(X>k)$  I know that :  $\sum_{k=1}^{\infty}P(X\geq k)=E[X]$ So I get:  $\sum_{k=1}^{\infty}P(X>k)\leq \sum_{k=1}^{\infty}P(X\geq k) \leq\sum_{k=0}^{\infty}P(X>k)$ Then: $\sum_{k=1}^{\infty}P(X>k)\leq \sum_{k=1}^{\infty}P(X\geq k) \leq\sum_{k=1}^{\infty}P(X>k-1)$  Then: $\sum_{k=1}^{\infty}(1-F(k))\leq \sum_{k=1}^{\infty}(1-F(k-)) \leq\sum_{k=1}^{\infty}1-F(k-1)$ Which implies that : $1-F(k)\leq 1-F(k-)\leq1-F(k-1)$ Which implies that: $F(k)\leq F(k-)\leq F(k-1)$ and is true for any $F(k)$ Is it a solid proof? Where should I improve it?


I am looking to set a proxy for terminal. What I need is I want to send all terminal communications to the internet through a proxy, say tor.   I tried to set a system wide proxy set up. But Terminal doesn't obey the system wide proxy configuration.  Is there any other way to do this?


Very new to blender so sorry if this is easy. I want to make the tiles on this plane smaller but I can't figure out how. I read about a mapping node, but can't figure out where to put it. If someone could explain how it works that would be great, thanks!


The square of any integer is either perfectly divisible by 4 or leaves a remainder 1 when divided by 4. Any number which on division by 4 leaves a remainder 2 or 3 is not a perfect square. Prove


Exclude from some of domains and websites referring my website

My website was referred and accessed through an unwanted website. Example:  My referrals: Facebook, Twitter, Particular etc.  Receiving referrals from social media sites such as Facebook and Twitter is intended but not from Particular. How can I block unwanted referrals?


Whenever a trigger command happens it shows in chat "Triggered objective name here" i was wondering if there was a way to make this message not show but not disable sendCommandFeedback. Would be very helpful


When creating tikz pictures I quite often think that it would be quite useful to display a coordinate grid like this  in the background of my picture in order to align certain points, lines, etc.    I found  in which plenty of ways were described for drawing a grid but each of those need an explicit specification on how big the grid has to be. However I want the grid to automatically span the whole image background without having to adjust its size whenever I add another point to the image.    After digging through the manual I found the backgrounds library which has an option (gridded) that almost fits my needs. The only thing missing are the coordinate labels.  \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{backgrounds}  \begin{document}      \begin{tikzpicture}[gridded]         \draw[red] (-1,0.7) -- (5,-2.3);     \end{tikzpicture}  \end{document}   produces     My question is: How can I add the coordinate labels to this grid? If someone can tell me how to get the image boundaries - that is the rectangle containing the current image - it should be rather trivial to add the coordinate labels...


Give an example of a series such that $\sum a_n$ is convergent but $\sum a_{3n}$  is divergent.  I am trying to construct an example such that $\sum a_n$ is convergent but $\lim a_{3n}$ is not zero. But I could not find such example. Give me some hints.


PGF Keys differences between .initial and .default

I am not too sure just by reading the manual as to the subtle differences between the .initial and .default PGF key types. Can someone explain and demonstrate the differences with a minimal example?


"We" meaning a group of people that I am not talking to and myself

Is there a word or phrase to express the idea of a group of people and the speaker, collectively, where the group of people is explicitly not the people who are being spoken to?  For example, consider the hypothetical situation where I am a representative of a country and I wish to talk about my country by saying we, us, and our.  Also consider that I am talking to group of other country representatives (the U.N. would be a good example) and that I need to go back and forth from addressing the group to addressing my country as a group.  In this scenario, I wish to use non-ambiguous pronouns for my country.  Is there a word or phrase that can help express this idea?


I saw this sentence in the book 1Q84:     It's not just you that don't know.   However, I am having trouble figuring out why (or whether) this is the correct way to write the sentence, as opposed to:     It's not just you that doesn't know.   Now, according to , we should use "doesn't" when the subject is singular (except when the subject is "you" or "I"), and "don't" otherwise. But in the example above, I am having a hard time figuring out what exactly the subject is and whether it is singular.    The reason my question is different from  is that in John's, the subject is clearly "you." However, as I tried to articulate above, I am having a hard time figuring out what exactly the subject is in the quotes I gave and whether it is singular.


Ubuntu 18.10 to 19.04, end of life version

I am facing this issue when attempting an upgrade to ubuntu 19.04.  Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Please install all available updates for your release before upgrading.   Apparently my release is not supported anymore... which doesn't allow me to upgrade. Seems like I am stuck.


New Lyx user, not very good in page formatting. whenever i insert an image, the whole page formatting get messed up. like in the below figure. In my code the above paragraph was after the pic. but in the output the paragraph has gone above the picture.  And start of every page has so much gap. I want this if the start of the page has new section. In the below pic, you can see the picture has taken the whole page. That's because the start of the page has so much gap. i could easily fit in couple of paragrah below the picture.  How do I magange this properly, except for this i am loving Lyx.


How much time have the Straw Hats spent with each other?

Rewatching a few episodes of One Piece made me wonder:  How much time did the Straw Hats spend with each other before the timeskip?  [It's not necessary for all of them to be present. I'm looking for the time span between the Episode 3 (when Zoro joins the crew) and Episode 405 (when the Straw Hats are separated by Kuma)]  How much time has it been since the timeskip (till the start of Zou arc)?


What is the difference between buy and purchase

When we use the word "to buy" and when the word "to purchase"? I do not understand the difference between these words.


Find all functions that satisfy $f(x+f(y))=f(x)-y$

here is the problem   Here is my solution :  $x=y=0$ gives $f(f(0))=f(0)$  $x=0; y=f(0)$ gives $f(f(f(0)=0=f(0)$ (because $f(f(0))=f(0) \iff f(f(f(0)))=f(f(0))=f(0)$)  $x=0$ gives $f(f(y))=-y$  $x=0 ; y=f(y)$ gives $f(-y)=-f(y)\iff f(-f(y))=y$  so $y=-f(y)$ gives $f(2x)=2f(x)$  now we can prove by induction that $f(nx)=nf(x)$  it is true for $n=2$   let's suppose that it is true for $n$   we have $f(nx+f(-f(x))=f(nx)+f(x)\iff f((n+1)x)=(n+1)x$  so it is true now we have $f(x)=xf(1)$   plugging this in the first equation gives $f(1)^2=-1$ which is impossible  I just want to know if my solution is right  In the official solution they prove that $f$ is bijective (which is true because $f(f(y))=-y$ ;) ) then they use cauchy function , they find that $f(x)=cx$ , plugging this in the first equation gives an impossible result.


Help trying to prove the existence of sequence limit.

So I'm trying to prove that  $$\lim_{n \to +\infty} \frac{2n - 4}{3n - 7} = \frac{2}{3}$$  using the formal definition of the limit of a sequence. Applying it I've got   $$\left|\frac{2n - 4}{3n - 7} - \frac{2}{3}\right| \lt \varepsilon,$$ $$\frac{2}{\left|9n-21\right|} \lt \varepsilon.$$ From here I don't know how to continue, I guess I have to get ripped of the absolute value but I don't know how should I do it. Thank you so much.