Does the light speed change? The Theory of Relativity says that the speed of light in vacuum is the same and unchangeable, while I read that the speed of light in glass is lower than in air, and that it's the maximum in vacuum.  If so that the speed of light in media changes, then we can conduct the following suppose a media as air, and a body is moving through it in a uniform velocity, we get that time relative to this body dilates because of it's motion, $t = \dfrac{t'}{ \sqrt{1- \dfrac{v^2}{ c^2}}}$  Now suppose another media as $CO_2$ gas, and the same body is moving through it with the same regular velocity, time also dilates relative to it.  So, since the velocity is the same, Time must dilate with the same value, but the speed of light is different, So time dilation has to be different. So which one is correct? Does this dilation of time change or no?  I'm really confused.


KDE: URLs are opened by Kate instead of the browser

Kate is registered as default application for *.html-files. This has the unwanted effect that html files as well as http-URLs are opened in Kate instead of Firefox.  The strange thing now is that when I move Kate down in this list and press the Apply-button, after a second or so it appears again at the top of the list. I tried also with sudo, but it had the same effect.  I could uninstall Kate and everything went back to normal. But as soon as I've re-installed Kate URLs are getting opened by Kate again.  How can I change the priority of the applications here?


At the risk of sounding completely stupid: How exactly do I make skill checks correctly?  Nobody in our game can work it out and I've read the books front-to-back.     It seems to just say 'the relevant modifiers' but it's still unclear.    I have 17 Dex(+3) and my acrobatics with proficiency is +5.    Does this translate as a d20 +3 for dex then +2 for proficiency?     I think some people in my game are playing +3 for dex, then +5 for acrobatics, then +2 for proficiency for a total of d20 +10   Also, If I don't have proficiency, so if I make a survival(wisdom) check, my wisdom AND my survival is -1... I'm assuming it's just the wisdom score without a prof. Addition? I don't have -1 for wisdom and -1 for survival for a total of d20 -2?  It's only -1 for survival, because it's the modifier of wisdom?   Does this make sense? I think we're all confused with all the + and - all over our character sheet, when in fact it's already calculated


Which is better for using Ubuntu server - CLI or GUI mode

I installed Ubuntu Server, and found that it only provides a command line interface  I know how to install a GUI, but I want to know whether I should do so. Am I better off sticking to CLI-only?


For some reasons not related to the battery life, I need to disable the battery charging when a USB host is connected to my phone (a rooted Nexus 4). Taking a look around on the internet (, ), it looks like I should modify a system file. I have found a series of interesting files located in /sys/class/power_supply/battery and /sys/class/power_supply/usb, that could be the right ones to be modified in order to achieve the usb charging disabling (e.g. /sys/class/power_supply/usb/present 0/1).   Has anyone tried something like that (control the usb charging via software and modify such system files)? Which is the best way to modify those system files? Should I use the adb shell or another tool?  I tried the "root explore" app in order to modify those files, however when I modified a file (after changing its permissions), it was automatically kept back to its original value.


How do I choose a macro lens for a Canon APS-C camera?

I have a Canon 40D and like taking macro shots sometimes, so I'm thinking of buying a macro lens. I'd also like the lens to double up as a portrait lens. I'm not a super serious photographer, so my budget is not huge, but I'm considering the Canon EF-S 60mm f2.8 USM Macro Lens and the Canon EF 100mm f2.8 USM Macro Lens. I also note that Sigma and Tamron have lenses in that focal range and price range.  So reasons I can think of to go for the 60mm would be:   smaller and lighter probably a better focal length for portraits bit cheaper   While the 100mm would be better for:   insect photography, as I could keep my distance a little better.   Are there other key factors to consider? Would you recommend one of the third party lenses as particularly good? Are there any of these lenses to avoid?


incorrect tables and figures numbering in memoir class

I have maybe a silly question. I am trying to write my class notes as a future book, I am using memoir class, but I have just noticed that my figures and tables are labeled like "figure 11" or "table 11" instead of the right way "table 1.1" or "figure 1.1". I am trying to use the recommendatios of previous post but I guess that maybe ¿is my mixtex 2.9 corrupted? this is a sample tex that I am using. Thanks in advance   \documentclass{memoir} \usepackage{chngcntr} %\counterwithout{figure}{chapter} %\counterwithout{table}{chapter} \renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}} \begin{document}     \mainmatter    %when using this the numbering changes \chapter{Test Chapter} \section{Test Section}     \begin{figure}     \caption{Caption 1}     \end{figure}     \begin{figure}         \caption{Caption 2}     \end{figure} \end{document}


UK Visitor Visa: Required Time or Interval Between Visits?

I am a US citizen and have recently visted the UK  with simply a passport which allowed me to vist for 6months I have heard rumors that I am obligated to stay in the US for a Equal amount of time that I have visited the UK before I am able to return, but I am struggling tour no any proof of this obligation .. Am I missing somthing or is it simply not true


Is there a name for a topological space $X$ in which every proper closed subset is compact?

Is there a name for a topological space $X$ in which every proper closed subset is compact$^{(*)}$?  in a compact topological space, every closed set is compact. Hence, the class of compact spaces is contained in the class of spaces with $(*)$ property.


TypeScript Math: How does 1 - (80/100) = 0.19999999999999996? Why Doesn't it equal .20? I'm confused how this is happening with such a straightforward math equation. CalculateDiscount.tsx: // Helper Function: Calculate Discount (Percent) export const calculateDiscountPercent = (price: number, salePrice: number) => {   return 1 - (salePrice / price); };  Repl.it:


TikZ: anchors of special node “current page” seem to be incorrect in landscape

I've got a document that I wish to format in landscape in conjunction with some material added as an overlay via TikZ.  I can get everything correct if I create a portrait page, but not if I create a landscape page.   Here's my MWE for portrait which shows what I want (except for page orientation)  \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage{tikz} \usepackage{lipsum} \begin{document}  \lipsum[1-4]  \begin{tikzpicture}[remember picture,overlay]     \node at (current page.south west) [text width=5cm,fill=red!20,above right] { This material is in the south west corner of the page }; \end{tikzpicture}  \end{document}   But when I try to get the same effect in landscape, the .south west anchor is apparently off the page.  This seems to happen regardless of whether I pass landscape through the optional argument to the class declaration or through geometry.  Here's my malfunctioning MWE:  \documentclass{article} \usepackage[margin=0.5in,landscape]{geometry} \usepackage{tikz} \usepackage{lipsum} \begin{document}  \lipsum[1-4]  \begin{tikzpicture}[remember picture,overlay]     \node at (current page.south west) [text width=5cm,fill=red!20,above right] { This material is in the south west corner of the page }; \end{tikzpicture}  \end{document}   Any ideas?  Following @HarishKumar's suggestion, I can see that my compilation route is part of the problem:  I'm compiling by: latex → dvips → ps2pdf instead of just pdflatex.  However, I was under the impression that I need to go the more round about way if I'm incorporating PostScript commands in my LaTeX document.  Does anyone know anything about this and care to explain why I should always use pdflatex?


I want to start a WiFi service in my village so that I can provide WiFi to every one but there is one problem. I want to give each and every user a different password so that they can never use another network, in short term one network but different password for every one need help.


Are there any existing tools which take as  input: TypeSet Math Formula  output: LaTeX code which produces something similar to the existing math formula?  Googling "inverse LaTex" gets answers about inverse/matrix symbols.   Googling "image to LaTeX" gets answers about inserting images in LaTeX  Thanks!  EDIT: Not duplicate of "OCR -> TeX". I don't need "handwriting -> TeX", for me, it suffices to do "rendered math formula -> TeX"


How do you configure IIS 7 to use a subdirectory as the default document?

So I have a website running on a discount asp.net account, and I put an asp.net mvc app in a subdirectory. If my url is 'www.website.com' and my app is in directory 'sample', then 'www.website.com/sample' will execute the mvc app.  My problem is that I want the app to be shown when you go to 'www.website.com' not just 'www.website.com/sample'.  I have access to the IIS Manager, and I'm sure there are many ways to do this.  What's the best way to do this?


How to keep figures before the references in a paper in LaTeX?

I have a paper with 30 figures. I added all the figures before conclusion section. But after compiling the document, 10 figures are placed into the middle of the document and after the references. I applied \begin{figure}[!htbp] in the first of the figures definition.  How can I force the figure to stay in the place where I defined it in the paper, for example before  the references or conclusion sections?


Find the sum of the series  $1+\frac{1}{3^2}+\frac{1.4.1}{1.2.3^4}+\frac{1.4.7.1}{1.2.3.3^6}+...$  I cant guess the general term for this series.But i think this is a type of arithmeticogeometric progression


How to use \date{\today} without using \maketitle?

I am making my own title page. I'd like Latex to display the date automatically using \date{\today} but this does not work, since I am not doing \maketitle  So instead of setting the date manually myself and worry about updating it, is there a way to make Latex use \date{\today} in my own title page?  MWE  \documentclass[12pt,notitlepage]{article}% %\usepackage{datetime} did not help \newcommand*{\myTitle}{\begingroup  \centering  \vspace*{\baselineskip}   {\LARGE My Title}% Title \vspace*{1\baselineskip}     \scshape % Small caps My project     \vspace*{1\baselineskip} University of Main Street\\[\baselineskip]  \vspace*{5\baselineskip}   Written by \\[\baselineskip] {\Large John Due\par}      \vspace*{1\baselineskip} \scshape \date{\today} %\date{\currenttime}  does not work      \endgroup}  \begin{document} \pagestyle{empty}  \myTitle \clearpage  This is my report \end{document}     I googled and gave up after 15 minutes search.


\tableofcontents and \listoffigures help

I'm trying to format the front matter of a thesis and am running into trouble with both the table of contents and the list of figures.   The current table of contents looks like this:   List of Figures   List of Tables   Chapter   1. Introduction   2. etc.     What I want to do is get rid of the "Chapter" heading in the above, so right after List of Tables, it starts with "1. Introduction". Any ideas?   Also, for the list of figures. It automatically puts the figure caption when generating the list, but my captions are long. I want to keep them long in the text, but short in the generated list of figures. Is it possible to, say, just include the first sentence of the caption for the list of figures?   Thanks for your help.


Find a continuous function $f:[1,\infty)\to\Bbb R $ such that $f(x) >0 $, $\int_1^\infty f(x)\,dx $ converges and $\int_1^\infty f(x)^2\,dx$ diverges

I'm trying to find an example of a continuous function $f:[1,\infty) \to \Bbb R $ such that  $$f(x) >0 $$  $$\int_{1}^{\infty} f(x) \ dx \ \text{converges and } \int_{1} ^{\infty} f(x)^2 dx \ \text{diverges}.$$


How can I grep the PS output with the headers in place?  These two process make up an app running on my server....  root     17123 16727  0 16:25 pts/6    00:00:00 grep GMC root     32017     1 83 May03 ?        6-22:01:17 /scripts/GMC/PNetT-5.1-SP1/PNetTNetServer.bin -tempdir /usr/local/GMC/PNetT-5.1-SP1/tmpData -D   does 6-22:01:17 mean that it's been running for 6 days?  I'm tring to determine the length of how long the process has been running...  Is the 2nd column the process id?  So if I do kill 32017 it'll kill the 2nd process?


Create a CMOS circuit from a logic function

I have to create a CMOS circuit from the logic function: F= ~A + B (notA or B). I made the truth table but I'm stuck here trying to make the CMOS circuit. Any ideas anyone? Thanks!    I know it's the CMOS circuit for the NAND gate. I tried to change to get the results I want but I'm stuck.


I commonly want to use the phrase "we have" when writing mathematics, to mean something like "most readers will know this thing and I am about to use it". My primary question is whether this is too colloquial. My secondary question is what the alternatives are if it is too colloquial.  For example, right now I have a sentence "Given a point $P\in X$ we have the residue map ${\text {res}}_P \colon \Omega_{K(X)} \rightarrow k$, as defined in ...". I don't feel saying "there exists the" is quite right. Even if it is grammatically correct, I don't think this conveys the implication that it will be almost certainly familiar to the expected audience.  I have seen  but I feel this is slightly different. If not then my apologies.


Arrange windows within the same application in the taskbar of Windows 7

Is there a way to arrange windows within the same application in the taskbar of Windows 7?  Right now we can freely adjust each application's position in the taskbar, but within the app itself the windows can't be reordered, for example multiple windows of firefox or chrome.


My project is open sourced, except for a single module where I don't want people to know the implementation. Actually, I don't mind one or two people cracking the thing open if they are determined enough, but I want most to give up at the first sight. I only want the implementation of that single module to be hidden, the interface still fully usable if people want to contribute to the project. That is to say, I want people to be able to do things like:   import my_hidden_module  my_hidden_module.do_stuff()    My project mostly runs on Windows so Windows-exclusive suggestions are ok. I'm totally new to this hiding code thing so I don't know where to start. It would be appreciated if someone could give me a direction to look into.


How can I show this inequality with $\lim\sup$ and $\lim\inf$?

This is what I have to prove:  $\lim_{n\rightarrow\infty}\inf a_n\leq\lim_{n\rightarrow\infty}\inf(\frac{1}{n}\sum_{i=1}^na_i)\leq\lim_{n\rightarrow\infty}\sup(\frac{1}{n}\sum_{i=1}^na_i)\leq\lim_{n\rightarrow\infty}\sup a_n$  Note, that $a_n$ and $b_n$ are bounded sequences. I'm gonna be totally honest: I have no clue where to even start with this proof. Can someone give me some advice?


Difference when ignoring files in folder with git

What is/are the difference(s) when writing this in .gitignore:  /tmp/* /tmp /tmp/   I noticed that if I create a folder tmp, no matter what I write in my .gitignore it does not appear when I do git status. What is the difference between those three, and what should I write if I want the folder to be commited, but not the files within it.


So I already asked this question, but I couldn't respond to the answers. I can't hear out of the left ear of any headphones/earbuds because I have to push the jack towards the Earth to hear out of it. It seems you guys think the jack is the problem when I'm pretty sure it's the computer (my Acer laptop). I also forgot to mention the headphones (PX22 Turtle Beaches) work with both ears, but I have to plug in the usb extension cord in order for that to work (it's also the same cord that enables the mic on my headphones), plus I lost the cord. Thanks 4 hewps.


When reviewing answers, add the entirety of the question in the reading pane?

Sometimes it is difficult to tell whether or not an answer (especially for first post users) has already been addressed by previous answers. An example here:    Here I am reviewing a user's first post.   It seems to simply answer the question asked. However, when navigating to that very same question...    As you can see, the currently accepted answer to that question has already listed what this new answer has, so this post brings nothing to the table. That said, for a person who has just been granted privileges to use the review queue, they may not be as able to understand the context within the question and its answers and could have trouble determining if this was a legitimate answer.  Could it be possible to at least add some context from the question to the review reading pane?


Makefile rule that writes to /dev/tty inside a subshell?

$ cat Makefile clean:     find . -print0 | grep -z pattern | tee >\(tr '\0' '\n' > /dev/tty\) | xargs -0 rm $ make clean /bin/sh: /dev/tty): Permission denied   Previous question:


Words to describe a person who frequently asks questions even though they know the answer

I have an annoying friend that he frequently asks me questions in which he'll be the one to answer at the end if I can't answer his questions. Here the situation goes:       Friend: Hey Jay, do you know the medical term where the nerves intersect, i.e. in the spinal column, that's why right brain hemisphere controls the left side of the body and vice versa?   Me: No. I really have no idea. Sorry.   Friend: It is called "decussation".   Me: Oh okay.   Friend: Now, what do you call a person who frequently asks questions even though they know the answer?   Me: Hmmm I don't have the slightest idea.   Friend: It is ______, Jay. You really need to read books.   Me: WTF!   (annoyed)   Is there a way to describe this kind of personality?


This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  I'm testing asynchronous code - like Batch Apex, Queueable Apex, @future methods, or Scheduled Apex - and I'm getting unexpected results. It seems like portions of my code aren't running, or I'm getting confusing errors about batch invocations. How do I effectively test this kind of code?


How do you know what development packages to install before compiling a program from source?

An example for Python:   At this point, the only way I know is to ./configure and wait for it to stop at errors, try to understand the error, and google the error message to find out which development package to download.  That's inefficient.  Which part of the documentation or code should I look? Is there some standard location?


Story about post-apocalyptic simulated reality.

Basically a guy comes to the other guy, who offers him a second virtual life for everything he has got. He agrees puts on some sort of helmet and experiences his second life where everything is nice and dandy. He then is taken out of that reality. The guy asks him "What did you see?". To which the main character replies something like nothing special. Pays him everything he has got, which is pretty much a bunch of post-apocalyptic garbage and exits.  Thanks in advance.


Can some one explain this terminology please I think I understand it but not completely sure.   I think pull down is where you place a resistor between +V and the other component and pull up is where you place the resistor between 0v and the component.    If I am completely wrong then let me know!


I have a CentOS 7.2 (minimal) VM running in a vSphere cluster, which has a 16G drive formatted as XFS under the default full-disk usage partitioning scheme from the CentOS installer. The system is running a test httpd service (all software from the default centos repos), but its space usage on disk is growing. This is in part from problematic apache error/access logs (2+GB in size), and removing these longs frees up some space. What is eating the drive space isn't so much a concern for me (I'll just nuke and pave this eventually). However, when I run df an du to check file sizes, I get a discrepancy and this is what's confusing.  First I run df -h to view filesystem usage:  [root@svrhttp03 httpd]# df -h Filesystem                         Size  Used Avail Use% Mounted on /dev/mapper/centos_svrhttp03-root   14G  4.8G  9.1G  35% / devtmpfs                           902M     0  902M   0% /dev tmpfs                              912M     0  912M   0% /dev/shm tmpfs                              912M   97M  816M  11% /run tmpfs                              912M     0  912M   0% /sys/fs/cgroup /dev/sda1                          497M  169M  329M  34% /boot tmpfs                              183M     0  183M   0% /run/user/0   This is showing 4.8G used on the root FS.  I then run the following to view the size of all items at the root of the filesystem:  [root@svrhttp03 httpd]# du -a -h -t 10K / 2> /dev/null | grep -v -E "[A-Z,a-z,0-9]/." | sort -h 16K /home 7.4M    /root 31M /etc 97M /run 143M    /boot 324M    /var 1.3G    /usr 1.9G    /   This shows only 1.9G in use, and the reported size of all directories add up to ~1.9G, as expected.  So how can I find that ~2.9G discrepancy between what df and du are claiming for data on disk?


I downloaded the Ubuntu desktop torrent (Alternative), now what?

I selected Alternative and then Ubuntu 16.04.3 LTS desktop version. I planned on downloading the server version ( I thought I needed the both of them), but I stopped it after learning that only one of them was needed. Okay, the torrent download is completed, I opened the file, all I see  is a desktop image file ( and the server file for some reason as well), also the torrent file for the server. What do I do now?  Apologies, I'm new to this changing OS thing...


Ordnance Survey grid reference in QGIS print composer

Is there a way of inserting Ordnance Survey grid reference in a print composer? I know that a grid can be created but I don't wish to insert a grid, I just to need to include the eastings and northings as a text string in the title block.


is 1.5V accepted tolerance for amplifier power supply

I have A200 Creative speakers with 10.5 V, 1 A transformer which not working, and i can buy 12V-1A transformer only. Is 1.5 V accepted tolerance for the amplifier power supply?


Converting a Java Keystore into PEM Format

I am trying to convert from a Java keystore file into a PEM file using keytool and openssl applicactions. But I could not find a good way to do the conversion. Any ideas?   Instead of converting the keystore directly into PEM I tried to create a PKCS12 file first and then convert into relevant PEM file and Keystore. But I could not establish a connection using them. (Note that I just need a PEM file and a Keystore file to implement a secured connection. There is no restriction like "Start from a java keystore file". :) So starting from other formats is acceptable with my case)  But a direct conversion method from jks to pem is preferable.


Why does `ps -e | less` show 'less' among processes?

I run ps -ejH | less. The output includes ps and less as well.  What is the reason? I thought it would work as follows:   First, ps will run and it will list all processes existing at that moment. Then, the output of ps will be fed into less.   But according to this logic, neither ps not less should appear in the output of ps.  So, why are these processes included in the output of ps? Does ps work a bit differently that I have described?


Difference Boolean causes problem with smooth shading

I've only recently started using blender and have been using the difference Boolean quite a bit. Most of the time there are no problems, however when trying to create a hole in a phone model I'm working on the result in smooth shading is a massive dark shape across the object. This does not appear when using flat shading.   Like I said, I'm new to blender so any help would be appreciated! I've looked through forums and videos but have found no answer.  Thanks.


BACKGROUND According to Oxford Dictionaries Online:   means "(In systemic grammar) a verb phrase considered as a constituent of clause structure, along with subject, object, and adjunct."  means "The part of a sentence or clause containing a verb and stating something about the subject (e.g. went home in John went home)."  In the latter example of John went home, it seems, the predicate is went home whereas the predicator is went, home being an adjunct and thus not part of the predicator as defined. Now, I looked further in  to better understand the difference. The article recognizes two competing notions of the predicate in theories of grammar:  (1) Predicates in traditional grammar (e.g., went home in John went home) (2) Predicates in modern theories of syntax and grammar (e.g., went in John went home)  Which, according to the article, causes confusion as to what exactly the term predicate mean, and some grammarians came up with a new term "predicator" specifically for use (2), says the article. No problem thus far. What bothers me: The article in its explanation of (2) says, "Other function words -- e.g. auxiliary verbs, certain prepositions, phrasal particles, etc. -- are viewed as part of the predicate." (Emphasis mine.) Now, remember this definition of the predicate, i.e., (2) above, corresponds to the new term "predicator". I understand that auxiliary verbs are part of this definition of predicate, because an auxiliary verb can be part of a verb cluster. But can certain prepositions and phrasal particles also? The article has these example sentences (Words belonging to "predicate" (2) are boldfaced as in the article itself; My comments in parentheses.):  The butter is in the drawer. (preposition in being part of the predicate) You should give it up. (particle up being part of the predicate) Susan is pulling your leg. (I don't know why leg is marked as part of the predicate. Maybe a typo?)  QUESTION Except for the last one, which I suspect is a typo, I'd like to know whether the preposition in and the particle up belong to the predicate as presented in (2) and thus belong to the new term "predicator".


I am working on a project that's a bathroom, it's supposed to fit real world scale, the size of the bathroom should be 2,50х1,5 and the height 2,2. How am I supposed to use these numbers in Blender in order to get the size right?


In this circumstance, which would be the most correct / natural answer?     Person 1: I don't eat meat   Person 2: Neither do I / Nor do I / Me neither / Me either    says both "neither do I" and "Me neither" are often used. But I have also heard / read "me either" and "nor do I" in multiple scenarios. Which then is the correct way of saying it? Are the others wrong or just not used?


I have just updated (through Software Update) to Ubuntu 16.04 LTS from 15.10. There are random instances of screen flickering throughout usage. After noticing this issue, I installed Compiz Config Settings Manager, selecting Force fulls screen redraws (buffer swap) on repaint, which did nothing.   Is there any way this could be related to compiz settings or is this another issue?    EDIT: not fixed after clean install, upgrade to kernel 4.5.2, however screen flickering is reduced, it is every now and then (10 minutes apart). I will see if upgrading to kernel 4.6.0-994-generic will fix this.     EDIT: fixed as of kernel 4.6.2 generic,  currently running 4.7.2 without any issues.


How can I reverse too many subdivisions?

i have added too many subdivisions and do not know how to reverse these. i need help with this    this would help understand the issue


Commutativity of matrix and its transpose

If a matrix is symmetric or skew-symmetric it commutes in the obvious way with its transpose. (For symmetric: $SS^T=S^2$ and $S^TS =S^2$)  The less obvious is the case of commutativity  for orthogonal matrix but such matrix also commutes with its transpose because $RR^T=RR^{-1}= I= R^{-1}R=R^TR$.  Questions:   Are there  other cases when a matrix commutes with its transpose ?    What is the general property of such matrix which allows it to commute with its transpose ?


I'm using Blender 2.77 and i can't find the Alpha Over Node.  I'm getting crazy.  Thanks for any help


How do I center table headings including line breaks?

\documentclass[11pt]{article}    \usepackage{geometry}                        \geometry{a4paper}    \usepackage{mathpazo}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{booktabs} \usepackage{tabularx}  \begin{document}  \begin{table}[htdp]  \centering \caption{Absorbances of samples of different Concentrations\label{mytable}} \begin{tabular}{lll}  \toprule Sample & Concentration \linebreak (mg/L) & Absorbance at \linebreak $\lambda_{max}$ \\  \midrule blank  & 0.0000   & 0.000 \\                                                                    a      & 0.2849   & 0.059 \\                                                                    b      & 0.7122   & 0.160 \\                                                                 c      & 1.424    & 0.311 \\                                                                 d      & 2.137    & 0.468 \\                                                                   e      & 2.849    & 0.608 \\  \bottomrule \end{tabular} \end{table}  \end{document}     Why don't my \linebreaks work?  EDIT: I tried to change the code to a two column table  \documentclass[11pt]{article}   \newcommand{\specialcell}[2][c]{\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}  \usepackage{siunitx} \usepackage{amsmath} \usepackage{booktabs}  \begin{document} \begin{table}            \centering     \caption{Absorbances of 20 \si{\ml} sample at different Wavelengths}     \label{mytable}     \begin{tabular}{lS[table-format=1.3]}          \toprule         {\specialcell[t]{Wavelength \\in \si{\nano\meter}}}  & Absorbance   \\          \midrule         400      & 0.240  \\                                                                            425      & 0.382  \\                                                                            450       & 0.486  \\                                                                         475      & 0.574  \\                                                                         500      & 0.608  \\                                                                           505      & 0.608 \\         510      & 0.602 \\          525      & 0.508 \\         \bottomrule     \end{tabular} \end{table}  \end{document}       But it throws and error when I add an 'e' to Absorbance


How to refer to a figure or table and have its number printed instead of the section number?

In a LaTeX document I have several figures and tables and I need to reference some of them. I tried putting the label in different positions and figured out that it worked when I put the label next to the caption. However, when the hyperlink is clicked it goes to the caption and the next table is in view which might confuse the readers of the document. Furthermore, when I put the label code after the table environment, the number displayed in the pdf is the section number (and subsection if available). How can I make the references point to the actual graphics and have their number?  EDIT: I have solved the problem by using the package "hypcap" and using the command /capstart at the point I want the "hyperref" to anchor.


Replacing spaces with underscores in JavaScript?

I'm trying to use this code to replace spaces with _, it works for the first space in the string but all the other instances of spaces remain unchanged. Anybody know why?  function updateKey() {     var key=$("#title").val();     key=key.replace(" ","_");     $("#url_key").val(key); }


What directories on Ubuntu aren't actually on the Hard Drive?

What directories on my Ubuntu computer aren't actually on my hard drive? I am making a personal backup software, and some of the directories are not "real" Which directories aren't actually on my hard drive?  Thanks


Trying to find largest palindrome, variable not updated

So I'm trying to find the largest product of 2 3-digit numbers that is a palindrome.  Here's my code:  class project_euler4 {     public static int largest_palindrome = 0;      public static boolean isPalindrome(int number) {         String original = Integer.toString(number);         String reversed = new StringBuffer(original).reverse().toString();         return (original == reversed) ? true : false;     }      public static void main(String[] args) {         for (int i = 100; i < 1000; i++) {             for (int j = 100; j < 1000; j++) {                 int candidate = i * j;                 if (isPalindrome(candidate) && candidate > largest_palindrome) {                     largest_palindrome = candidate;                 }             }         }         System.out.println("The largest palindrome made from the product of 2 3-digit numbers is " + largest_palindrome);     } }   When I compile and run, I get:  The largest palindrome made from the product of 2 3-digit numbers is 0   So for some reason, my largest_palindrome variable isn't getting updated when a product is a palindrome.  I suspect it has something to do with my isPalindrome() function, but am not sure.  Any ideas?  Thanks for the help, Mariogs


Probability of selecting each item at least once when sampling with replacement

Sampling with replacement $N$ items from $K$, where $N \geq K$, what is the probability that each item in $K$ is selected at least once?  For example, from $10,000$ individuals, what is the probability that every birthday is represented? (assume each birthday $p = 1/365$)  I've been using simulations to work this out, but would like to know the general solution. Thanks!


How to mount read-write an ext4 partition on Windows?

I want to use ext4 on my external HDD, but it must be cross-platform. (At least Linux, Win7 & WinXP).  Unfortunately, I haven't found any proper driver allowing Windows to WRITE to ext4. I've found , but it only reads ext4.     9. ext4 extent read-only, no  size truncating and expanding support   More:     Supported Ext3/4 features:         flexible inode size: > 128 bytes, up to block size   dir_index:    htree directory index   filetype:     extra file mode in dentry   large_file:   > 4G files supported   sparse_super: super block backup in group descriptor   uninit_bg:    fast fsck and group checksum   extent:       reading, writing with no extending.   journal:      only support replay for internal journal         Unsupported Ext3/4 features:         journal: log-based operations, external journal   extent: size truncating & expanding, file deletion   flex_bg: first metadata group   EA (extended attributes), ACL support      Also, I have found a patch for Ext4Fsd v0.50 ():     New: Matt Wu has made a new release 0.50 at   ext2fsd.com.  Support for ext4 extents and fix   for BSOD on Windows 7.   I don't think it will be safe. Also I've read some words about writing ext4 in Windows could cause data loss on the disk...  What is the External HDD used for? - First, it will store backups, then family movies, pictures. Some music, and etc. It will be connected to a Raspberry Pi, if I finally receive it. It won't really move, just when it is used to migrate computer's data to a new one. The largest files it will store are Clonezilla disk images (I don't know, if they will be large files or not).  Can someone provide a solution for this problem? Or is there NO important enough difference between ext4 and ext3, and I should use ext3? - (If yes, then can I use Ext2Fsd for that ext3 mount?)  Thank you!


How do they decide Blu-ray/DVD release date?

I think my question is different from .  Some movies' productions release Blu-ray/DVD so early after theatrical release, others will take time. How do they decide for the Blu-ray/DVD release date?


Existence a diffeomorphism on $\mathbb R^n$

How may I show that for any $p,q\in\mathbb R$, there exist a diffeomorphism $F:\mathbb R\rightarrow\mathbb R$ such that $F(p)=q$ and $F$ to be an identity function outside of a some neighborhood of $p$ ?  My attempts:  By the bump function $\varphi$ such that $\varphi_{\bigl|[-1,1]}=1$ and $\varphi_{\bigl|\mathbb R-(-2,2)}=0$, I defined $g(x):=a\varphi(x)+x$ for a fixed parameter $a$. If I can show $g'(x)>0$ then inverse function theorem and a change of variable solve it.  1- Why $g'(x)>0$?  2- How can I prove it for $\mathbb{R^n}$ ?


Not sure where to post a question about finding a mentor

I am a college student looking for a mentor and I am not sure how I should go about doing it. I want to post this question but I do not know where to post it or even if this is the right forum for this question.


A question regarding the definition of localization of ring

Let $S$ be a multiplicative system. Then the localization of $R$ is defined by an equivalence relation on $R \times S$. The relation is $(a,b) \sim (c,d)$ if there is an $s \in S$ such $s(ad-bc)=0$.  Regarding this, I can't show that transitivity works. Could anyone show me how to prove that $(a,b) \sim (c,d)$ and $(c,d) \sim (e,f)$ then $(a,b) \sim (e,f)$?


Grub options are not visible on booting on Samsung ATIV Book 9 Lite running Ubuntu 14.04

I've managed to install Ubuntu 14.04 on my new Samsung ATIV Book 9 Lite ultrabook. After updating some configuratiosn in the UEFI installation was very easy. The only questions and issue I believe I'm still experience is when booting.  I believe when the laptop would be displaying the grub boot options I see the following. There is a black screen with a purple border of 10px around the screen. I'd like to know how I can update my system so that I see the grub boot manager.  I've run these commands:  sudo cat /etc/default/grub  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"   The command was not possible, sudo efibootmgr.


Should I cite a paper that I haven't read if I use a theorem in it?

In my Master's thesis I use a theorem that is recent enough that I could find the article where it is proved, but I've actually learned the theorem and its proof in two books by other authors. Is it necessary to cite the original article, knowing that I haven't actually read it?


why plants cannot use atmospheric nitrogen?

Earth's atmosphere constitutes 78% of Nitrogen, then why do plants need to absorb Nitrogen from the soil. Why couldn't it possible for them to absorb the atmospheric Nitrogen like they do in the case of CO2.   Most of the plants relies on other sources to fix their Nitrogen, why couldn't be there a single plant which can absorb atmospheric Nitrogen ?  Is there any ancient plant which is considered to be using atmospheric Nitrogen ?     I have done a simple research, I could only find that previously   atmosphere is not so abundant with Nitrogen and plants developed   mechanisms to use Nitrogen fixed in soil. So now they are following   the same mechanism when Nitrogen is abundant in the atmosphere. Is   this a valid answer ?


Windows 10 Alt+Tab can't switch to desktop

In Windows 8, when Alt+Tab, the desktop would appear as an option to switch to at the end of the list of open programs (thus Alt-Shift-Tab helpfully took you right to the desktop).  In Windows 10 that desktop option is gone. Is there any way to get it back?  I know about Windows+D but Alt+Tab is just more convenient in my opinion. And  also has no desktop and is uglier.


Language Options -> Spell Checking in Windows 10 version 1803

What's the difference between the Spell check settings in the Language Options of Windows 10 version 1803?  The options I see are as follows:   Full Partial Mixed Mixed Authorized


Is radioactive decay able to be used for true randomness? And do we know if radioactive decay is truly random?  Edit. Here is a example true random number generator made using radioactive decay.  Would this be truly random if the first two questions are true?


Prove the inequality $|xy|\leq\frac{1}{2}(x^2+y^2)$

How can I prove the inequality $|xy|\leq\frac{1}{2}(x^2+y^2)$  I have tried substitute $x,y$ for numbers, which turns out right, but I don't know how to reason here.  Thanks in advance!


I have a table and I want to rotate it. The table has 3 rows and 4 columns, and I want to rotate the text inside this table as well. How can I do this?


I've inserted my bacon into the Delectessan Variety Dispensor, but I didn't get my unicoins

After selecting from the unicoin menu to buy unicoins with bacon, I don't receive my unicoins and my computer smells funny.  Steps to reproduce:   From the unicoin menu -> Buy unicoins select "Alternative Payments" select "Valuables" select "Bacon" (very valuable) Press the button on the Delicatessen Variety Dispenser. Wait for bacon accepting tray to fully eject. Carefully place bacon on tray, avoiding the over-sized drain. Gently push the dispenser closed. Observe no additional unicoins. Observe nice, tasty smell. Observe bad, smoky smell.   I've tried a variety of bacon, from Back Bacon to Slab Bacon, with no success.  Perhaps the transaction processing is caught in an infinite loop, as the dispenser won't eject anymore?


Why isn't causal inference a simple specialized regression problem?

I am often told that the crucial difficulty in causal inference is that we only observe one value between $Y(1)$ and $Y(0)$ while we want to estimate $E[Y(1) - Y(0)]$. There is always an unobserved value.  Here is my problem: why don't we simply use the samples with treatment $z_i = 1$ to regress $y(1) \sim x$ , and similarly use the samples with treatment $z_i = 0$ to regress $y(0) \sim x$, and combine them to estimate $E[Y(1) - Y(0)]$?  From this perspective, causal inference is just two regression problems and needn't be treated as a special area. I am sure that there must be something wrong, but what is it?


I am working on an IA (in Python) for small board game, and I need to do a lot of pathfinding per round in order to find the best move I can do (minmax implementation).  My problem is that even if the board is small (9*9), I am able to run it (only) approx. 10000 per second, and I don't know how to speed it. Do you have some advise?   def shortest_path(self, start, goal):     elements = []     heapq.heappush(elements, (0, start))      came_from = {}     cost_so_far = {}     came_from[start] = None     cost_so_far[start] = 0     current = None     while len(elements) > 0:         current = heapq.heappop(elements)[1]         if goal.is_on_goal(current):             break         for next in self.edges[current].neighbors:             new_cost = cost_so_far[current] + 1             if next not in cost_so_far or new_cost < cost_so_far[next]:                 cost_so_far[next] = new_cost                 lowest_priority = new_cost + goal.heuristic(next)                 heapq.heappush(elements, (lowest_priority, next))                 came_from[next] = current     way = []     if goal.is_on_goal(current):         reverse_edge = current         while reverse_edge in came_from:             way.insert(0, reverse_edge)             reverse_edge = came_from.get(reverse_edge, None)     return way


How to install ubuntu 13.04 in ativ book 9 lite

im trying install ubuntu 13.04 but when installation finished cant start ubuntu please help with bios configuration and how to install ubuntu on this ativ book 9 lite.  i try disabling fast boot, disabling secure boot, etc but no result.


Why do we test electric fields with positive charges and not negative ones?

Is there any difference between using a positive versus a negative charge to test an electric field?


How to check if field is of formula type or not in dynamic apex?

public static void getFieldNames(String objName){      Map <String, Schema.SObjectField> fieldMap = Schema.getGlobalDescribe()         .get(objName).getDescribe().fields.getMap();      for(Schema.SObjectField sfield : fieldMap.Values())     {         schema.describefieldresult dfield = sfield.getDescribe();         system.debug(dfield.getname() + ': '+ dfield.getType());     } }   I have the above code where it takes the object name as the argument and prints all the fields for that object along with their data types. But I am also looking for a way to know if any of those fields are formula fields.  Looks like the getType method returns result of the formula field but I need to know if that field is a formula field or not?


Transit between T3 to T2 at DXB Dubai Airport

My wife with an infant is arriving at Dubai airport at 07:50am on an Emirates, then travelling further to Faisalabad on FlyDubai from terminal 2 at 11.40am. Will her luggage be transferred automatically to that flight? And where will she get her boarding card from for FlyDubai? Somebody please reply thank you.


I have updated to LTS 20.04 and tried to update GIMP to no avail because I get this message. I also tried through Software but it did not work either. The following packages have unmet dependencies:  gimp : Depends: libgimp2.0 (>= 2.10.18) but it is not going to be installed         Depends: libgimp2.0 (<= 2.10.18-z) but it is not going to be installed         Depends: libgegl-0.4-0 (>= 0.4.22) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I tried the fix command but it didn't help. Did I miss something in my updating to LTS 20.04? Thanks for the help. I first made sure I had the repository with sudo add-apt-repository ppa:otto-kesselgulasch/gimp then sudo apt install gimp when i got the error message I did sudo apt-get update --fix-missing I hope this is a better description of my problem. As suggested I used Synaptic to fix the issue and tried to install Gimp sudo apt install gimp and now it is typing over and over Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15511 (synaptic) and It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. trying to upgrade by typing first sudo apt-get update then sudo apt-get upgrade I get the following messages E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15511 (synaptic) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? I also tried replacing apt by aptitude as suggested in previous and this command is no longer existing in LTS 20.04 apparently


unbiased estimator for bernoulli variance

Given $X_1,X_2,...X_n$ IID  from a Bernoulli distribution while $n>2$.  If I want to find an unbiased estimator for $$(1-p)p$$ as a function of $X_1, X_2$ and the use    I realize this is the $\mathbb{E}[Var(P)]$  not sure if this implies anything instantly.  My question is what is the pmf  for bernouli here to get the unbiased estimator?  What I thought of so far:  $\theta  = p(1-p)$  $\mathbb{E}[\hat{\theta}] = \sum_{i=0}^{\infty}T(i)(1-p)^ip^i = p(1-p)$  Any hints are appreciated!


How to open a multiple page PDF file as artboards in Illustrator CS6

I'm trying to open a PDF file with 7 pages and need to adjust each page in Illustrator CS6.  How do I open the PDF file in one single AI files with all artboards within it?


How to install CUDA Toolkit 7/8/9 on Debian 8 (Jessie) or 9 (Stretch)?

How to install  or 8 on Debian 8?  I know that Debian 8 comes with the option to  using apt-get install nvidia-cuda-toolkit, but how do you do this for CUDA toolkit version 7.0 or 8?  I tried installing using the Ubuntu installers, as described below:  sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb  dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb  sudo apt-get update  sudo apt-get install -y cuda   However it did not work and the following message was returned:  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:  cuda : Depends: cuda-7-0 (= 7.0-28) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


When I press the Super key, my search panel does not come up and my side apps list is not showing. What can I do? I am new to Ubuntu and Linux in general.


JSFiddle and other Live Code Services in New Tab

Quite often, a user will use a service such as JSFiddle to demonstrate their point, and some answerers use it in return for a live demonstration of their code.  I'm not just talking about JSFiddle either, there are a number of services that allow links as part of a support to the OP's question or an answer.  Can these links open in a new window/tab?    I often find myself trying things in these services and testing code through a number of revisions and when I've finally solved the OP's issue, I have to use my back button to navigate through everything I've just done, just to post it back to them.  Yes, I could open in a new tab through browser functionality, but it's my own fault that I forget to do this all the time, I'm only human.  Is this possible?


Change directory of Ubuntu www web server?

I'm wondering if I can change the root directory of an Ubuntu web server from:  /var/www/html   to:  /home/Janderson/magento   How would I do this? I want to access Magento when I go to localhost in my web browser, and not anything else.  This is not a production environment, it's a local development environment.


I have a Java project witch consults an API which returns a String like:  "['test1', 'test2', 'test3']" // the array is a string   So basically an array object parsed to a String. I would like to know the best way to convert it to a real Java List.


A capacitor has insulating material between plates and this insulting material does not provide any electrical or conducting path between capacitor plates. But still, capacitor allows DC or/and AC current to flow through it, How?


Can I make `cut` change a file in place?

The  doesn't give me much hope, but I'm hoping it's an undocumented (and/or GNU-specific) feature.


Is it correct to turn the sentence "He'll be her sixth husband" into a question like this:Which successive/consecutive husband will he be? Best wishes, Boguslaw


The Time Freezing Room - Theoretically possible?

Imagine a room in your basement with a very special property: The time inside this room runs 60 times faster compared to the outside world. That means when you enter the room and spend there 1 day with working, reading, etc., only 24 minutes are gone in the outside world. Wouldn't such a place be wonderful:   You would be done with all your university exercises in just a few hours. You could read so many books and become one of the most educated people. You could practice many skills... you could become a great musician and learn any instruments in just a week (1 week = 14 month), or become expert in any other skill... You could run your simulations on a computer in this room and they would be done in little time. You could maybe even grow some food in such a room.   The concept of such a room sparked my imagination, so my first question is:     For what would You use such a room? What great possibilities are there?   However, I study physics and I am very curious for the (theoretical) ways to actually build such a room. Of course this room is more like a thought experiment, but: Is it possible to build such a place in accordance with the laws of physics? Or:     How to build such a room?   Thank you for your answers.   Note: Before I asked this question I checked if it matches the physics category, but according to  it should be fine: "For example, a question that proposes a new concept or paradigm, but asks for evaluation of that concept within the framework of current (mainstream) physics is OK."


Alternatives to the expression "poor man's "

I'm looking for a more politically correct substitute for the expression "poor man's", meaning an inferior improvised or makeshift substitute. Usage examples:   "Guncotton is the poor man's TNT" "Poor man's oyster" (mussels, or coughed up phlegm)    My hesitance is mainly because it is not as gender neutral as perhaps it once was. The closest I can think of is "pauper's", but I don't know many examples of usage.


Template check if container has a find function

I want to execute the specific method of the template if a container has his own find method. For example for set it will execute the first. And for vector the second. Because vector does not have a find method. namespace tools {     template<class TSource, class Ty>     auto exists_in(const TSource &source, const Ty &item)         ->decltype(source->find())     {         return source.find() != source.end();     }      template<class TSource, class Ty>     auto exists_in(const TSource &source, const Ty &item)     {         return std::find(source.begin(), source.end(), item)             != source.end();     } }  int main() {     std::set<int> vector= { 1, 2, 3 };     std::vector<int> set = { 1, 2, 3 };     std::cout<<tools::exists_in(vector, 1);///should execute the first **tools::exists_in** method     std::cout<<tools::exists_in(set, 1);///should execute the second **tools::exists_in** method }


I need a .bat file compatible from windows 7 to windows 10 which concatenates 2 files  For example  file1.txt:  hello   file2.txt:  world   After running the batch script, a new file called file3.txt will contain the contents:  hello world   A newline should be added after the contents of file1


strong text Whenever i'm trying to update sudo apt update  It cant update Properly... It shows this message Err:12 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04  Release   404  Not Found [IP: 2001:67c:2178:8::13 80] Then at last it give 4 other stuff.. N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386' E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04  Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  How i get relive from this Please help me to solve THANK YOU...


I'm analyzing a C program in which I find a strange fucntion call here is the function definition :  static void endSignal (int32_t dummy) {   if (nTerminating) return;   nTerminating=1;   printf("terminating....\n");   terminateDLNAsystem();   sleep(1);   exit (0); }   This function takes an int32_t parameter ! Now this the main function calling "endSignal"  int32_t main (int32_t argc, char **argv) { /*Statements . . */ signal(SIGINT, endSignal); signal(SIGABRT, endSignal); signal(SIGQUIT, endSignal); signal(SIGTERM, endSignal);  return 0; }   the main function call endSignal without any parameter, what happen in this case ?


Basic Programming Concepts  Lab # 9 – Arrays Write a cinema reservation program to allow customer to reserve cinema seating. At the beginning of the program, ask the customer to input the name and display customize greeting message. Once the seat is reserved, it should be marked as ‘**’. If customer chooses a seat that has been reserved by other customer, display a message to inform customer and suggest the next available seat.  Sample output:  Hi, what is your name? Amy  Welcome, Amy!    CINEMA 1 SEATING PLAN    00  01  02  03  04 05  06  07  08  09 10  11  12  13  14 15  16  17  18  19 20  21  22  23  24 25  26  27  28  29 Which seat do you want? 21  Would you like to make another booking?(Y or N)  If seat chosen has been reserved by others, advice next available seat.  Now for the code. The problem with the code is because I probably don't know how to change someone's "y" into a "true" for boolean. Why can't coding ever be easy?  import java.util.*;  public class cinema {  public static void main(String args[]) {     Scanner input = new Scanner(System.in);      int booking;     String name;     int suggestion = 0;     boolean check1 = true;     String check2 = "_";     String check11 = "_";      //create array     final int ARRAY_LENGTH = 30;     int[] array = new int[ARRAY_LENGTH];      String[] seats = { "00", "01" , "02" , "03" , "04" , "05" , "06" , "07" , "08" , "09" , "10"                          , "11" , "12" , "13" , "14" , "15" , "16" , "17" , "18" , "19" , "20" , "21"                           , "22" , "23" , "24" , "25" , "26" , "27" , "28" , "29"};      System.out.println("Hi, what is your name?");     name = input.nextLine();      System.out.printf("Welcome,%s!\n",name);      System.out.println("*********************");     System.out.println("CINEMA 1 SEATING PLAN");     System.out.println("*********************");      do{      for(int a = 0; a < 30; a++ ){     System.out.printf("%s\t", seats[a]);     if (a % 5 == 4){     System.out.printf("\n");     }     }     System.out.println("Which seat do you want?");     booking = input.nextInt();      if(seats[booking] == "**"){         System.out.println("Sorry! Seat taken.");         for(int b = 0; b < 30; b++){             if(seats[booking + b] == "**"){                 check2 = seats[booking + b];             }             else if(seats[booking - b] == "**"){                 check2 = seats[booking - b];             }             else{             }         }//end for loop         System.out.printf("Suggest to take seat:%s\n", check2);     }//end if      seats[booking] = "**";      System.out.println("Would you like to make another booking?(Y or N)");     check11 = input.nextLine();      while(check11 == "y"||check11 == "n"){     if(check11 == "y"){         check1 = true;         System.out.print("a");     }     else if(check11 == "n"){         check1 = false;         System.out.print("b");     }     else{     System.out.println("Would you like to make another booking?(Y or N)");     check11 = input.nextLine();     }     }//end while       }while(check1);//outer while   } //end main }   Please don't flag it as a duplicate. The problem in it is different. I can't get the   "Would you like to make another booking?(Y or N)"  to work. When I meant I couldn't get it to work, I meant that the program wouldn't let me have the opportunity to enter y or n. The true problem is the check11 = input.nextLine();. Anyone can tell me what's wrong with it?  Also, the previous reference really didn't help. I didn't understand how it refers to my quetion.


Creating DEM raster from ASCII .xyzi LiDAR

I was passed along some LiDAR data that is in .xyzi ASCII format. I am having trouble figuring out a way to build a TIN or DEM from this data. I brought it in using "ASCII 3D to feature", and subsequently attempted to build a terrain dataset with the new feature. "Create Terrain" seems to work, but when I attempt to "Build Terrain", I am given an error that says "The terrain definition is incomplete or invalid".   I am not sure where I have gone wrong. Should the ASCII data be imported as point or multipoint data? Is there a better way of doing this?


Why doesn't accepting an answer count as an upvote?

When you accept an answer, it seems you should also (by etiquette?) upvote the answer. Why doesn't the checkmark count as an automatic upvote?


picture taken from this video for those who do not like to click on youtube links    The answer will probably be no, but i am interested to know WHY this would/would not work.  He is using a nonlinear crystal to create two entangled photons, one of which he is sending through the Einstein-Bose condensate, hence it will arrive much later at the double slit. (other similar experiments use lasers or specific fiber optics cables to delay the photon(1))  He then decides in the future on if to break the delayed photon's wave function or not, by observing some quantum state/states.  According to the video, this will lead to the earlier arriving photon(2) to not create an interference pattern in case it has been collapsed in the future.  Now i am not sure how he would be able to tell from just one photon if it does interfere with itself still when going through a double slit or not, but one can easily imagine to do this on a hundred or more photons. If just one of the hundred photons would appear on the screen where it should not appear, hence where there would be gaps normally because of the interference, we would know that one of the 100 delayed photons at least was detected(it's which path was/will be known)  By timing this properly, one could then send messages in the form of yes/no or 1/0 or heads/tail if he was to make his decision on either to observe the which path of the 100 delayed photons or not.  You could of course build a second such device, and send the information you receive another time back, going even further back in time, then a third and so on.  OR you could simply use the same machine and do it again, looping the output into the input.  You would be only restricted to the point where you created the device and wouldn't be able to send information back any further, should this work, which i doubt.  I cannot imagine any restro-causality to be possible. Imagine if you got the information you wanted from the future, but then decided to destroy the machine in the past, therefore you could not possibly ever have received the message in the first place.   It would mean that you cannot possibly act on the information you receive, like if you were a Zombie. Or if you tried, then the universe would make sure that something really really bad happened to you, and the sender in the future is actually someone else or other far fetched, impossible sounding explanations.  I wouldn't consider this a duplicate as i created this thread to discuss this specific experiment using the Einstein-Bose-Condensate, plus my question tries to answer other considerations(indirectly) about what it would mean if it WAS actually possible. Furthermore,  i find this specific case more accessible to some, including myself. So yes, maybe the other thread does answer some of the questions but i think answering the question from the perspective intended in this thread might be useful to many.


, I'd like to know what example sentences distinguish the meaning of the words lept, leapt, and leaped from each other?


In 2018, Kyle Reese (a normal civilian who wasn't part of Resistance) was on the top in the hit list of Skynet. It means that Skynet of that time had information from future about Kyle Reese being father of future leader of human resistance. Right?  Why didn't Skynet kill Kyle Reese instantly after his detection kicking John Connor out of existence?


I always forget this, when a trig function has an exponent does that mean multiply itself or apply itself to the result recursivly?  e.g. does $\sin(x)^2=\sin(x)\sin(x)$ or $=\sin(\sin(x))$? What about $\sin^2x$?


Is there a maximum number of devices allowed on a Google Play Account?

Many schools are looking at using Android tablets in classrooms.  Some have classroom sets of 35-40 tablets.  As a means to manage apps, having them tied to a single Google Play account would be ideal.  Is there a maximum number of devices allowed?    This setup would also be cost effective, if the school uses any pay apps, as the app is linked to the account, not the devices.  Does anybody have any experience or knowledge beyond, "I have 5 devices in my family all synced and it works."?


Why do prcomp() and eigen(cov()) in R return different signs of PCA eigenvectors?

I understand the sign of the eigen vectors / PCA rotations can be positive or negative (see  or ).   But I am curious why the following two approaches yield different results, from numerical method perspective?  > d = iris[,1:2] > pca = prcomp(d) > r = eigen(cov(d)) > r$vectors             [,1]        [,2] [1,] -0.99640834 -0.08467831 [2,]  0.08467831 -0.99640834 > pca$rotation                      PC1        PC2 Sepal.Length  0.99640834 0.08467831 Sepal.Width  -0.08467831 0.99640834


Featured blog in Stack Exchange app appears to be part of Italian SE

Right now, when I look at the feed in the Stack Exchange app, the featured blog  seems to be part of . It's not just the logo; when I tap on it, it takes me to the Italian SE questions. This behaviour occurs both on iOS and Android, so it's probably an API issue.


sci-fi animated series from 80s-90s identification

Can anyone help me identify an animated series I remember from the early 90s. Below are few highlights I remember about it:   action took place in space and/or planets (for sure there was some shooting with fancy fighter-ships in space) protagonists were a team of people serving in some kind of (military?) organization (some of them used nicknames at least in the dubbed version), but I don't remember anything more specific antagonists had a mother ship from which they launched their assaults (they also had triangle-shaped fighter-ships from which they launched smaller triangle-shaped ships) graphics similar to "Centurions," so nothing too cartoonish and nothing 3D (and I'm rather sure it wasn't anime)   I remember the series because at that time I was hyped about fighter planes and fighter pilots (regardless if it was in space or not).  It's not "G-force" or "Jayce and the Wheeled Warriors."


Problem mounting partition after Gparted

I had 3 partitions on my hard drive and I tried  to merge sda5 with sda6 but for some reason gparted crashed. Now when I try to mount sda5, all I find in it is lost+found. I’m running Lubuntu 14.04.


$ \int_{-2}^{0} \frac{x}{\sqrt{e^x+(x+2)^2}} dx $ = -$  2.887270... $  The function has no antiderivate and there's no symmetry here to help, if you solve this I would be thankful if you would for a highschooler ^^


How to boot to Ubuntu ISO image on drive?

I can't boot to the Ubuntu 14.10 ISO I have on my drive (running Ubuntu 14.04 as my main OS btw). I added these lines to the bottom of /etc/grub.d/40_custom:  menuentry 'ubuntu-iso' {     set isofile="/boot/ubuntu-14.10-desktop-amd64.iso"     loopback loop (hd0,1)$isofile     linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject     initrd (loop)/casper/initrd.lz }   The Ubuntu ISO is at /boot/ubuntu-14.10-desktop-amd64.iso, and I've verified its checksum. /dev/sda1 is mounted at /boot, which is why I've done (hd0,1)$isofile above.  Then I run sudo update-grub. The new menu entries show up in the grub menu screen, but when I select it and try to boot it just boots to my existing OS instead of the ISO.


Momentum measurement of a particle in an infinite well

After measuring a quantum state for a particular measurable, the state collapses to one of the eigenstate of that measurable. If we measure for momentum in an infinite square well, the system will collapse to a momentum eigenstate. But uncertainty in position is not arbitrary large (it's $2L$). So we are left with finite uncertainty in momentum and position at the same time. Does this mean that we aren't supposed to make such measurement? Or something else.


I'm looking for a query to achieve the following:  Current table format   user_id   meta_key    meta_value -------   --------    ---------- 1         address1    abc street 1         city        austin 1         state       TX   Desired output  user_id   address1    city         state -------   --------    ----------   ----- 1         abc street  austin       TX


What do you suggest to keep track of new published papers?

I already know of the app Researcher, but lately I found it is quite buggy and was wondering what people do to keep updated. Do you just join mailing list from selected journals or search daily for some keywords? Or is there something else I could use?


What does "execute" permission mean on a folder?

I have read , which gave me some info but I feel I am not fully getting it. What does the execute permission actually mean on a folder? I fully understand what it means on a file, but on a folder.


Is there a difference in performance (in mysql) between  Select * from Table1 T1  Inner Join Table2 T2 On T1.ID = T2.ID   And  Select * from Table1 T1, Table2 T2  Where T1.ID = T2.ID   ?


What hours do researchers work in the Unites States?

After staying in a US university (specifically MIT) as a visiting scholar, a colleague of mine says that most of research labs are still working at midnight. I suspect that he is exaggerating. Don't Americans have life?  I know that there is no working hour limit for research, but based on my experience in UK, people used to leave following the official working hours.  Apart from exceptional cases, is it really common for research labs in the US university to work at night?  NOTE: I did not mean competition of early-stage researchers, I mean the common working styles. In any country, student might be in the library during the night (and similar in the lab). I meant does a US university professor expect to keep his lab active during the night? And does he visit the lab at night?


Multilingual HTML structure to correctly be indexed by Google

I have a page example.com that includes a language file based on visitor's country (through IP). There is only one page but several language files.  Scenarios:  visitor in UK or any other country not supported by my languages -> example.com (language in English)  visitor from IT -> example.com (language in Italian)  The UK visitor changes the language to Italian -> example.com/it  The IT visitor changes the language to English -> example.com/en  The IT visitor who sees tha page in English, deletes the /en from the browser -> example.com (language in Italian)  HTML  I have set it like   <html lang="en"> <link rel="alternate" href="/it"  hreflang="it">   Questions   Should I also add the "en" version, that means all the available languages? Is my structure the correct way of doing this?   Thank you


I have an input POINT-layer with lots of features in it. What I am trying to do is to calculate the azimuth for two features. And the way I am doing this is the following:  geomFrom = (...).geometry()     # this variable holds the geometry of the first point (the starting point of the imaginary line which connects both points.) geomTo = (...).geometry()       # this variable holds the geometry of the second point (the end point of the imaginary line which connects both points.)  # Now I am trying to get the Point out of the geometry for calculating the azimuth.  # the method asPoint() causes the Minidump in C!  # Although I store it in a separate variable!! fromPoint = geomFrom.asPoint() toPoint = geomTo.asPoint()  # If the asPoint() method wouldn't cause the minidump crash, I would now calculate the azimuth like this: azi = fromPoint.azimuth(toPoint)   In order to solve the problem, one could probably say: Upgrade to QGIS 3!  But I have to solve this in QGIS 2.18. Otherwise, I will have to rewrite the whole algorithm in QGIS 3 again as the python scripting has changed fundamentally.  Therefore, I am looking for a workaround. How can I calculate the azimuth without calling the asPoint() method? What came in my mind: Is there a way to get the x and y-coordinates of a geometry variable? Maybe I can then create a new point variable like this:  from_X = geomFrom.getXCoord() from_Y = geomFrom.getYCoord() fromPoint = Point(from_X, from_Y)  to_X = geomTo.getXCoord() to_Y = geomTo.getYCoord() toPoint = Point(to_X, to_Y)  azi = fromPoint.azimuth(toPoint)   Any suggestions?


How many different mutually noncongruent trapeziums can be constructed using 4 distinct side lengths from the set {1, 3, 4, 5, 6}?


Getting pixel value of GDAL raster under OGR point without NumPy?

I am working on a computational model of the abundance of wild pollinators across a landscape.  The model itself is complete, and I am now struggling with a post-processing step.  I have my GDAL pollinator supply raster that looks something like this (lighter colors mean higher pollinator visitation to a pixel):    And I have an OGR shapefile of points representing sample locations on the landscape:    I'm trying to run some analysis on the pixels under these points, but to do so, I need to be able to extract the value of a pixel under a point.  Is it possible to extract the value of a pixel under a point using only OGR and GDAL through Python?  I would prefer to avoid reading the entire raster into memory through ReadAsArray(), as my output rasters are very, very large (too large to fit into memory).  I noticed , which is similar, but requires a command-line call.


bit computer in java and i have run into a weird problem. i have a binary number stored as an integer and i needed to convert it to a string but when i do the Integer.toString() returns 9 when i gave it 00000011 but it should have returned 3 right? here's the function i was making  static int binToInt(int bin) {     String binary = Integer.toString(bin);     return Integer.parseInt(binary, 2); }   Can someone explain?  i have been trying for over an hour to find a solution. either i find a page with something else or a tutorial of how to use Integer.toString()


How do I stop PDFs opening in RollerCoaster Tycoon?

I have an unusual problem with Chrome when I try to open PDFs. If I have already downloaded a PDF and try to download it again, I can open it by tapping its name; in the screenshot below, I could tap "pdf.pdf" to open the file.   The issue is that tapping this link actually opens RollerCoaster Tycoon Classic! If I choose to download again, Chrome redownloads and opens the PDF correctly, so it's not a huge issue, but still an inconvenience.  In Settings, it says that RollerCoaster Tycoon Classic has no defaults, and I am unable to change the "open supported links" setting.    How do I stop RollerCoaster Tycoon  trying to be a PDF reader?


I Installed Ubuntu 16.04 LTS next to Windows 10. I decided to increase my Ubuntu partition because I don't have enough space for apps, So i went to Windows 10 and shrink my larger Partition and now I have 50 GB of unallocated space.. So my question is:  How can I safely expand my Ubuntu partion using this unallocated space? I also have a bootable pendrive with Ubuntu .iso


Long exposure closing the view finder and producing blank white photo

I have recently brought a DSLR with intervalometer and trying to take a long expxosure photo.  But when I set the shutter to 'BULB' mode, F5.6 and ISO AUTO in Manual mode.Now, with all settings at 00:00:00, am getting a nice clear picture.  But when I set the LONG to any value and start the timer, my view finder gets closed, the resulting photo is nothing but full white.  To check any problem with the intervalometer, disconnected it and set the shutter speed to 30 sec.  Even now the photo is nothing but white.  How do I get the effect desired?


Why can my servers not access their own addresses?

I have two VMs on CentOS 6.5, running Plesk 12, and the webserver is Apache 2.2. One is a clone of the other, and I inherited them setup by someone else. My problem is that I can access my sites hosted on the servers from any computer other than these servers themselves.  Say example.com points to one of my servers. If I am SSH'd into either of the servers and run  wget example.com I will get back:  --2014-10-20 18:01:42--  http://example.com/ Resolving example.com... <ip address> Connecting to example.com|<ip address>|:80... failed: Connection timed out. Retrying.   The IP address it resolves to is correct. If I run wget on the servers using the IP address directly I have the same result negative result.   If I run wget to the same domain on a computer outside these VMs I resolve to the same correct IP, and I am connected. Using localhost on the VMs does work fine:  wget localhost --2014-10-20 18:12:35--  http://localhost/ Resolving localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:80... connected.   The problem seems to be that the servers don't know what to do when they get to the IP address, and I'm at the end of my knowledge in this area. Any direction on this is appreciated!


After updating an older computer from v12 to v14 it is very slow

Everything is slowed WAY down - 5 to 10 seconds just to open something from the task bar. Then it slowly fades in. Totally destroyed my confidence in Ubuntu as a viable alternative to WinXp. This has been an ongoing thing with Linux actually being a operating system for normal people and not just for geeks. Until A normal non geek can actually just install a working version without having to resort to the command line to actually get stuff to work. It will not be used by anyone other than the geeks that like to play around with the OS. I wanted to give this system to a NORMAL person ( non geek) but now - I will just have spend another couple of hours trying to reinstall the older v12 or to go back to Windows because they don't have the technical know how to jump through the hoops to get Ubuntu to actually work. They don't want to 'play' with the OS, they just want to run fairly standard programs.


Convert letters to lowercase from an array in JS

I have the following code:  var str = "abcabcABCABC" var chars = str.split(""); var lettersCount = {}; for (var i = 0; i < chars.length;i++) {     if (lettersCount[chars[i]] == undefined )         lettersCount[chars[i]] = 0;     lettersCount[chars[i]] ++; } for (var i in lettersCount) {     console.log(i + ' = ' + lettersCount[i]); }   This code is counting how many same letters are in a word. What am I trying is to convert the uppercase letters to lowercase so it should show like this: a - 4, b -4, now it shows: a - 2, A - 2. I've just started with Js so please be good with me. :)


How to stop using built-in home directory encryption?

I have a new Ubuntu 10.04 installation with encrypted home directory (using the built-in encryption offered by Ubuntu installer).   What's the easiest way to stop using encryption? (I.e., to decrypt my home directory permanently.)   (It's giving me problems with kernel updates, and I'd just like to cut down on all the hassle I'm having with this installation.)


Creating new li elemnt on last li change

I have this ul element
                                     <?php for($i= 1 ; $i <= $total_items ; $i++ ) : ?>                                        <li id="rmv_cam<?= $i ?>"><button type="button" id="rmv_cam<?= $i ?>"  class="btn btn-error btn-sm remove_cam"> </button>  פריט מחסן  :&nbsp<input type="text" name="cam[]" id="get_prod<?= $i ?>" data-i = "<?= $i ?>" class="form-control w-25 mt-3 prod"  >
<span class="prd_info" id="pdr_info<?= $i ?>">

                                     <?php endfor; ?>
   and I have this script that creates a new li on change   $( "li" ).last().on('change',function () {     num++;     $('#cams_ul').append('
<button type="button"  id="rmv_cam'+num+'"  class="btn btn-error btn-sm remove_cam"> </button>  פריט מחסן  :&nbsp<input type="text" name="cam[]" id="get_lens'+num+'" data-i = "'+num+'" class="form-control w-25 mt-3 prod"  >

'); } );   my problem is that when the new li is created the last function is not responding to the last append elemet that created


How can I search within the output buffer of a tmux shell?

I can't get this to work. How can I search the buffer of a tmux shell?


Bash - reverse order of curly bracket resolution

Such code  $ ls {a,b}{c,d}   runs ls command on following files: ac, ad, bc, bd. Is there a simple way to reverse resolution order and generate such sequence: ac, bc,ad, bd?  edit I want to run grep on particular subset of files inside a subset of directories like this:  $ grep 'find this' {sub_dir_one,sub_dir_two}/some_loc/{file_one,file_two}   I want lines from both file_one, then both file_two with respect to sub_dir_one and sub_dir_two order.  I just wonder if there's some nice trick which prevents me from using loop.


Does a logistic regression maximizing likelihood necessarily also maximize AUC over linear models?

Given a data set with binary outcomes $y\in\{0,1\}^n$ and some predictor matrix $X\in\mathbb{R}^{n\times p}$, the standard logistic regression model estimates coefficients $\beta_{MLE}$ which maximize the binomial likelihood. When $X$ is full rank $\beta_{MLE}$ is unique; when perfect separation is not present, it is finite.  Does this maximum likelihood model also maximize the ROC AUC (aka $c$-statistic), or does there exist some coefficient estimate $\beta_{AUC} \neq \beta_{MLE}$ which will obtain a higher ROC AUC? If it is true that the MLE does not necessarily maximize ROC AUC, then another way to look at this question is "Is there an alternative to likelihood maximization which will always maximize ROC AUC of a logistic regression?"  I am assuming that models are otherwise the same: we're not adding or removing predictors in $X$, or otherwise changing the model specification, and I'm assuming that the likelihood-maximizing and AUC-maximizing models are using the same link function.


Are there any examples of "level requirements" that can be ignored with Use Magic Device?

The Thief Rogue's 13th level feature allows them to ignore requirements on the use of magic items:  Use Magic Device. By 13th level, you have learned enough about the workings of magic that you can improvise the use of items even when they are not intended for you. You ignore all class, race, and level requirements on the use of magic items.  I've found examples of items that have class requirements (e.g. a Rod of the Pact Keeper) and of items that have race requirements (e.g. a Moonblade). However, I couldn't find any examples of items that have level-based requirements on their use. Are there any, or is this a redundant (/future-proofing) clause in the feature? Items from any published 5th edition material would be welcome as answers; if the only examples are in UA that would be useful information as well.


A paradox between quantum and statistical mechanics?

The Boltzmann distribution function tells us what is the probability of a given particle with a given energy to be at a certain state.  Now, this is in contrast with the state function the Schrodinger equation gives us. I mean, the quantum state gives us a probability distribution in energy space, and the statistical mechanics also gives us such a distribution, but why the two distribution differ?


Editing large question crashes SE app for iOS

Attempting to edit  causes the iOS mobile app (1.4.5) to crash. I'm using an iPhone 6 with iOS 9.3.1.


I have Ubuntu 20.04 LTS installed alongside Windows 10 on Lenovo Flex laptop. The wifi works fine on Windows but when i switched to Ubuntu the wifi is not showing. I have tried many of the instructions on how to fix it but still the problem is not solved.   The output I get from lspci shows Realtek RTL8822BE wifi adapter present.   I really need my ubuntu wifi back, I have trying for 2 days to fix this problem. Thank you for the help!


Is there a way to disable the duplicate check for an apex class?  I have an insert of contacts, where I have a custom duplicate check. Now I would like to disable the standard duplicate check for only that apex class.


.NET DateTime.Now returns incorrect time when time zone is changed

This problem occurred during daylight saving time change. After the change occurred, we've noticed that our server application started writing into the log incorrect time - one hour ahead which means that .NET caches time zone offset. We had to restart our application to resolve this problem. I wrote a simple application to reproduce this problem. When I change the time zone while application is running, DateTime.Now property keeps producing the time in the old time zone. Does anybody know if there is a workaround for this problem apart from restarting the application?


Why do spaceships in Star Wars have wings?

Many of the spaceships in Star Wars, e.g. X-wings, have wings as part of their design. If there's no air resistance in space, why would wings be at all beneficial? Wouldn't it be better to have a small, compact shape to a make a star fighter easier to cram through small spaces?


Does Google parse SVG images as value of the Schema.org 'image' property in JSON-LD?

Structured data markup is a standard way to annotate your content so Google can understand it. However, I am not sure, if Google will accept and parse svg+xml images as a value for the .  The  shows no errors:        Snippet:  {   "@context": "http://schema.org",   "@type": "SoftwareApplication",   "name": "Our application name",   "image": "https://my.company/files/images/desktop-icon.svg",   ... }   There is a , but it does not apply the new application/ld+json format.


I'm finding myself wondering about which of these you'd find more correct:  "I went to dinner last night with two young men neither of whom was correctly dressed for the occasion" "I went to dinner last night with two young men neither of whom were correctly dressed for the occasion"  The first one sounds right to me, but I don't know why.


A +30 question closed as not constructive although there is much agreement it should be kept open?

was closed and locked by a moderator with the remark "open a meta question on it and if we can reach agreement, it will be reopened"  I'd like to point out that this question had numerous up-votes and was actually flagged to be put as a community wiki, which is something completely different from being closed and locked. So I ask you very gently if you could please unlock and reopen that question, as:   the people that are on the  tag are very appreciative about that question it is completely in line with a lot of other questions, as pointed out in the comments it is about programming and developing, and not a copy of another question like that closing of these questions directly lead to questions such as  and


In Skyrim, where is a good place to sell dragon bones and scales.  I'd like to know of a city and store that will take them.  I'm having trouble finding one.


What's the best method in ASP.NET to obtain the current domain?

I am wondering what the best way to obtain the current domain is in ASP.NET?  For instance:   should yield   should yield   As a guide, I should be able to add a url like "/Folder/Content/filename.html" (say as generated by Url.RouteUrl() in ASP.NET MVC) straight onto the URL and it should work.


I just installed Chrome on a new laptop and now every time I start Chrome the first page that appears is a Google sign in page. The url in the address bar is -   chrome://signin/?source=0&next_page=chrome%3A%2F%2Fnewtab%2F   My home page is set to www.google.com but this Sign in page still shows. How can I get rid of the sign in page and get www.gooogle.com as my startup page?


How to completely reset ubuntu networking settings?

I would like to reset my network settings and services entirely as if starting from scratch. I had recently installed Ubuntu a few days ago, and deleted a important boot file.  After installing Ubuntu again, my network was not auto configured like my previous install. And my network did not work. Then I think I messed up the network settings too much in attempting to fix it, and now I would like to completely reset network settings. My system is an old HP Pavilion dv8 running Ubuntu 14.04 and Windows 8.1 dual boot.


I have a list and a string below:  fruits = ['banana', 'apple', 'plum'] mystr = 'i like the following fruits: '   How can I concatenate them so I get (keeping in mind that the enum may change size) :  i like the following fruits:   banana apple plum   I need the mystr in the starting and fruit names one by one as shown


Can newsletters take into account a user's favorite tags on that site?

Stack Overflow is huge and varied. Wouldn't it be great if I could just subscribe to a newsletter with a list of my favorite tags? If I love dealing with , I think it would make sense for my version of the newsletter to focus more on Android questions.  Or, if I sign up for the  newsletter, but don't own a Mac, it would be nice if I my newsletter would focus on the part of the site I do follow (i.e., iOS).  So I would like to suggest that the newsletters for each site (optionally) take into account the user's favorited and ignored tags for that site.  I know that you can receive emails about specific filters, but I don't think that's a good solution for users who already receive the newsletter. Most of the questions it highlights cover topics that I have no interest in. It would be much better if I could filter out all the noise and get down to my likely favorites.


Can you equip multiples of the same item?

If a survivor has an item equipped (the lighter, for example), can that character equip identical items and would they be able to use all of them as normal?


I have the follow code in a js file:      $(".dropmenu").on("click", function(event){       event.preventDefault();       $(this).parent().find("ul").slideToggle();     });   And i have the follow code in my webpage:  var append="
";  $.each(items, function(i, v){   append += "
 Option " +               "
" +                  "
somelink
" +               "

";  }  $("div").append(append);   The point is when my ul tag its filled, the click event doesn't fire. I think because the class into anchor is dynamic.  How can I add the click event after the append function?


how to have internet access in ubuntu in virtualbox via bridged network?

how my laptop is using a wireless network adaptor for internet connection. How may I configure my Ubuntu in virtualbox to have internet access via the wireless network adaptor?


Can you restrict a list to add item only but not read?

Is it possible to create a list where you can add items to a list but not view items in a list?


Combinatorial proof that $\frac{({10!})!}{{10!}^{9!}}$ is an integer

I need help to prove that the quantity of this division :   $\dfrac{({10!})!}{{10!}^{9!}}$  is an integer number, using combinatorial proof


If your visa is on an expired passport but still valid, can you still use it with your new passport, or does the old passport have to have a recent expiration date? If so, how do you transfer your visa to your new passport?


How can I check if this file name is created or not in c#

I'm trying to create a method that checks if this file ( todayfile.txt)  is created if not I need it to create it. Here is what I thinking of :  private void ReadWater()     {         try         {             StreamReader inputFile;              // I want to check if there is a file named ( Todayfile.txt )              if (// if this file ( Todayfile.txt) is founded)             {                 // Do this             }              else // if there is no file in this nmae ( Todayfile.text )             {                 // create a new file              }          }         catch (Exception ex)         {          }      }


nginx config fails with SSL key/pem (unique case)

I am trying to install SSL on my nginx reverse proxy with certified ssl keys but i get this message when i try to restart server:  Restarting nginx: [emerg]: SSL_CTX_use_PrivateKey_file("/etc/nginx/conf.d/cert.key") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib) configuration file /etc/nginx/nginx.conf test failed   everyfiles are root:root with 600 permissions i've tested the certificats and they are validated with this website:   there are no trailing weird caracters in my keys, and has 64 caracter per line  here is my config file  server {     listen   443;     server_name     my.domain.com;     ssl on;     ssl_certificate      conf.d/cert.pem;     ssl_certificate_key  conf.d/cert.key;      location / {          proxy_pass         http://upstream1;          proxy_redirect     off;          proxy_buffering    off;          proxy_set_header        Host            $host;          proxy_set_header        X-Real-IP       $remote_addr;          proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;     }   }  Any ideas? Thank you


Lubuntu or Debian? Which one is the lightest?

I got a notebook from around 15 years ago, and I wanted to save it with Linux. I literally don't understand nothing of Linux, so I wanted to ask which distro is better to this notebook: CPU: Intel Pentium M 1.50GHz 32 bits RAM: 512mb That'll be my first time using linux, I never used this before, only Windows, but it seems to be nice too. Thank you so much, I hope you have a nice day!


What was Gandalf's motivation to help the dwarves with their quest?

Gandalf is charged to aid the world in their fight against Sauron, Smaug had been peacefully sleeping for a very long time. Why would he encourage the dwarves to go and risk waking him?   Once unleashed Smaug could attack anywhere from Rivendell to Rohan and seriously weaken Middle Earth. Worse still with such a known affinity for jewels he could be bought or corrupted into serving evil.  Why not let sleeping dragons lie? Did he have any evidence that the One Ring lay somewhere within Smaug's treasure?


Converting x,y coordinates to longitude,latitude using QGIS

I'm working with  that has X Y coordinates. They are akin to '3672187.92698000, 534175.72095400'.  I would like to convert them to longitude latitude so they are more like '-90.097017, 29.963176'.  I've seen this  however I don't have that software. I was able to download and install  but I am unfortunately perplexed by its complicated interface. Would like to do the conversion with it, if possible.


To modify a host's resolved address we can change /etc/hosts I want to have that functionality when running a single script without actually modifying /etc/hosts Something   $HOST=foo.bar:10.0.1.256 ping foo.bar  would be the same as having an entry in /etc/hosts  10.0.1.256 foo.bar and $ ping foo.bar  Is this doable?


Microsoft recommends using Rowversion over timestamp, but I can not find "rowversion" data type inside my sql server 2008 R2

Microsoft  mentioned that we should use the rowversion data type over Timestamps. Now inside my SQL Server 2008 R2, I want to create a column with the Rowversion data type. But in my SQL Server 2008 R2 Management Studio, I cannot find such a data type:  Also when I tried altering existing column named timestamp which is of type timestamp using this statement: ALTER TABLE [SkillManagement].[dbo].[Customer] ALTER COLUMN timestamp rowversion   I get this error: Msg 4927, Level 16, State 1, Line 1 Cannot alter column 'timestamp' to be data type timestamp  Can anyone advise? EDIT


Center a section that is inside a div with an image

How can I center a <section> vertically and horizontally inside a div?  jsFiddle:


"A great deal of thoughts(are/is) into the designing of the auditorium". Is it "is" or "are"?give explanation for the correct answer.My book says it is "is".I think its a typing mistake of my book.


Is it a good idea to focus on dividend income when investing in stocks?

I am 30 years old (can hold to stocks for longer) and currently invested in 11 different stocks positions in the US and EU - all of these companies are in the S&P500 and in the DAX and are in 7 different sectors like Energy, Consumer Staples, Banking, Logistics and Communications - and I have an annual dividend yield of 7,5% before taxes. These are the only things I am financially invested in and I wonder, is it a good idea to keep looking for good dividend yields? Looking at the skyrocketing non-dividend-paying stocks like Tesla and Amazon, I feel a bit like I am missing out my strategy was wrong. But I always saw stocks as a mean to participate in the financial success of companies - which is if I am not mistaken only realized by dividends. If I buy a stock only hoping that I can sell it for a higher price to somebody later - isn't it kind of playing a greater fools game if no dividends are involved?


error : no such device:.... Entering rescue mode... grub rescue

Ok so I installed Ubuntu dual boot with Windows 7 last year. But I found out I never used it so I decided to wipe the Ubuntu drive from Windows. Next startup I got this error, note the grub partition has been wiped and I have no way to booting into Win 7 now cuz of this grub rescue error. I have a Kali Linux live USB, so I can boot and do some changes (although this is technically not a Ubuntu live USB)  Edit: I can't boot into neither Windows or Ubuntu (It's deleted) now, so commands to run in Ubuntu won't work for me. And btw the grub files are gone.  Any idea how to fix this? Thanks :)