How would you transform a percentage dependent variable to fit a logistic regression?

I have a outcome variable that is a percentage (proportion).  According to this, I should probably use a logistic regression:  My goal is interpretation and my goal is to interpret actually only a single variable.  So for example, Y = X1 + X2 + X3 + X4, I only care about the coefficient of X2. Now, because my Y is actually a percentage and NOT a binary value, how would someone use a logistic regression to solve this problem?  It doesn't make sense to transform my Y to 0s and 1s with a threshold of 0.5, partly because the range of Y is between 0 and 0.3 and Y is not a binary variable.  It is literally a proportion (think how full a glass of water is) and so something binary just doesn't make sense. Is there a way to transform Y to fit a logistic regression?  How would one model such a proportion? Thanks!


How do I stop my LED strip from getting too hot?

When I plug A 12V DC 8" LED strip into my car, it gets too hot to touch, but when I plug it into A 110V AC to 12V DC 120mA transformer, it works great; "cool to the touch".   So do I go buy a resister and put it in line? If so, what resister do I ask for and which band goes to the LED side?


Blender 2.8 carving a circle out of the face of a cube using the knife tool

In Blender 2.8, I am trying to cut a circle out of one face of a cube, but for some reason I can't get it to work.  My procedure thus far:  (a) Add the cube (add -> mesh -> cube) (b) Add the circle (add -> Curve -> Circle) (c) Position the circle in front of the face to be carved (d) Select the circle; while holding shift add the cube as a selection (e) Switch to edit mode (f) Select the knife project (mesh -> knife project)  And I get the result below.  My challenges are:  (1) The cut lines are wrong (the only cut lines should be the circle itself; the straight lines running from the circle to the cube's two vertices are unwanted) (2) I have no idea how to make the cut actually happen at this point if I had the cut lines that I wanted.  Thanks in advance!


Proving an equality regarding fully independent events

I was asked to prove the following:  If $\{ E_1,E_2,\ldots,E_n\}$ is a fully independent set of events, prove that:  $$ P\left(\bigcup_{i = 1}^n E_i \right) = 1 - \prod_{i = 1}^n \left[ 1 - P(E_i) \right]  $$  (Hint: use complements)  I got the following:  Let $\alpha = E_1\cup E_2 \cup \cdots \cup E_n = \{E^C_1 \cap E^C_2 \cap \cdots\cap E_n^C\}^C$. Then, $\alpha^C = \{ E^C_1 \cap E^C_2 \cap \cdots \cap E^C\} $.  Assuming that the set of complements of each ${E_i}$ is also fully independent, we have:  \begin{align} & P(\alpha^C) = \prod_{i = 1}^n P(E_i^C)  = \prod_{i = 1}^n \left[ 1 - P(E_i) \right] \\ & P(\alpha) = 1 - P(\alpha^C) = 1 - \prod_{i = 1}^n \left[ 1 - P(E_i) \right] \\ & P(\bigcup_{i = 1}^n E_i) = 1 - \prod_{i = 1}^n \left[ 1 - P(E_i) \right] \end{align}  However, even though I know (by Googling it) that my assumption is true, I'm unable to prove it so I could validly use it as a lemma. Is there another way to prove this equality?


I have 2 divs on my 100% screen. One of them is aligned to bottom and has different heights on different devices. i need to set the height of the second div to be equal to the remaining space of the page and into this div i added an img that is also aligned to bottom of its own div. I am using flexbox but my first div has height as whole flexbox.   I need exactly this    here is html :

                 some text

   And there is my css :  .flexing{     display: flex;     height: 100%;     flex-direction: column; }  .div1{     width: 100%; } .div2{     width: 100%;     position:absolute;     bottom:0; } .background {     position: absolute;     width: 100%;     bottom: 0; }


Why can't I join mincraft to the other one on 0.11.1

I can't join my iPod to my iPad with the latest version of mcpe I was wondering if The message came up to you :logged in at at her location ?


I've been a Windows power user/administrator and professional tech for years, I just made the decision to go Linux, and wow, what a difference.     Is there any decently easy way to encrypt external volumes (i.e. USB keys, external hard drives, memory sticks, etc.) that works under Ubuntu 14.04?


How dangerous is a neutrino experiment near human habitation?

I just read about people trying to capture neutrinos and study them. America has a lab in Antarctica and France deep under the ocean. Is it dangerous to conduct such an experiment where people live or near a river that people use for living? How dangerous could it be?


If Hubble parameter varies with time how much it differs for low distances (present) and deep space (past)?

If deep space is shown as it was in the past how can we calculate this time lagging regarding the  which is a variable of time?


Variable with Var and without Var in Function

Local variable oopsGlobal, gives an error when used outside of function fun1 but the other variable name defined in the same way does not give an error and is accessible outside of the function?   Am I missing something here?    function functionName() {   // variables created without Var always global scope   var name = "sudeep";   console.log("myfirst function"); }  function functionName1() {   // variables created without Var always global scope   console.log("Local variable with var:" + name); } // Declare your variable here var myGlobal = 10;  function fun1() {   // Assign 5 to oopsGlobal Here   var oopsGlobal = 5; //local scope to variable when accessed outside gives error so working fine }  functionName(); functionName1(); console.log(name); // **does not give error at all** fun1(); console.log(name); //**does not give error at all** console.log(oopsGlobal); //give error so works fine


How do popular free RAW editor/converter compare to each other on Windows?

I'm looking for a free RAW editor/converter on Windows. Can you tell me some strong/weak points of them comparing with Capture NX and/or Adobe Photoshop Elements?       - conversion & EXIF  - white balance  - registration not possible anymore   EXIF editing would be a nice bonus.  Related:


Why does my kettle only make a noise when it is turned on

Almost as soon as I turn my kettle on it starts to make the familiar kettle noise, yet very shortly after turning off the power the boiling noise stops and the kettle is totally silent. The temperature of the water is (almost) the same as when I turned it off. So why is there only noise when energy is being added to the water?


why i can't mutually include c++ classes

having 2 header files:  header1.h #pragma once #include "header2.h" class A {   public:    B b; };  header2.h #pragma once #include "header1.h" class B {   public:    A a; };   running such code in visual studio gives several error like 'B' unknown override specifier. Why is it that including the two classes mutually in each other gives error?


I installed Sp 2013 farm into a local machine e now I Installed Active Directory with domains controller. SP Central admin doesn't work now. Should I re install everything or is there any workaround?


How to keep layer style/symbology when saving as KML?

When saving as a kml, is it possible to keep the style of the QGIS layer?  I have tried a couple plugins that have been mentioned on here: qgis2kml ('format not yet supported') and qgis2google2 (crashed QGIS upon activating). Is there anything else?


Images are inserted into the wrong place

When inserting an image, I often type some text and then leave 3 blank lines:    I position the cursor on the second of those three blank lines. The I click the image button and select an image. The image is not inserted at the cursor, it's inserted here:    It's a network wide issue - it did it as I was writing this post.


Genetically modified humans study insectoid alien miners with super-intelligent hive-mind

This is a short story that appeared in a collection. Two genetically-modified humans (corporate anthropologists, basically) travel to a planetoid inhabited by an insect race that is mining the planet in order to study the race. While there, they are practically ignored, as the individual members of the race lack consciousness. The humans determine a type of pheromone is used to control the worker caste, and co-opt several members to create a living area. They make plans to put the mining towards human ends, but before that can happen they are discovered. The presence of the artificial pheromones wakes up a hive-mind, super-intelligent bug, who then bargains with the surviving member of the team (the man) after killing and taking over the female member of the team.  The collection was read at some point between 2000-2005.


In Excel - how to countif() for " (double quotes)

I can use =countif() to find cells with special characters. For example, If I'm looking for cells with '!' I can use =countif("*!*").  How do I do this if I'm looking for cells with '"' (double quotes).  I tried the following but they don't work:  =countif("*"*") =countif("*~"*") =countif(~"*"*")


I have a directory that is set up as \server\\year\month\day\x, .../y and .../z. I need a batch file that will delete videos located in the x folder in each user's directory for each month day and year based on a retention period (IE 60 days). Then delete the files in Y based on a different period (IE 730 days)  I have forfiles -p "\\server\username\year\month\day\x" -s -m *.* -d -60 -c "cmd /c del @path" but I am not sure how to do the loop in the path to search all of the sub directories from the network folder to find only the X folders.   Is there a way to do this without using the created on date attribute, just in case the camera's date/time was incorrect when the video was taken. Thanks in advance for the help! (If anyone knows a syntax that I could research I would greatly appreciate it)


Maximum of the Variance Function for Given Set of Bounded Numbers

Let $ \boldsymbol{x} $ be a vector of $n$ numbers in the range $ \left[0, c \right] $, where $ c $ is a positive real number.  What's is the maximum of the variance function of this $ n $ numbers? Maximum in the meaning what spread of the number will maximize the variance? What would be a tighter bound for other assumptions on the spread of the numbers.  The variance of the vector $ \boldsymbol{x} $ is given by:  $$ \operatorname{var} (\boldsymbol{x}) = \frac{1}{n} \sum_{i = 1}^{n} {\left( {x}_{i} - \overline{\mathbf{x}} \right )}^2 $$  Where the mean $\overline{\boldsymbol{x}}$ is given by:  $$ \overline{\boldsymbol{x}} = \frac{1}{n} \sum_{i = 1}^{n} {x}_{i} $$


I am using Ubuntu 16.04 on an ASUS N61JQ laptop. When I use video call from viber or facebook (through chrome) my webcam feeds an inverted image. I am wondering how to fix it. Because two separate applications (Viber and Chrome) have this I am thinking it is not application specific.  While looking for a fix in the internet I have found many cases giving instructions on how to fix this for skype. I have run  sudo apt-add-repository ppa:libv4l/stable sudo apt-get update sudo apt-get upgrade   which installed libv4l-0 libv4lconvert0 and retested but no fix.  I have not followed further those solutions (e.g.  ) because viber and chrome are not 32-bit applications. I did check that viber is indeed 64-bit with the method provided .   I am including the lines of the files that I expect I should change if I were to do something similar to the skype fix:  $ cat /usr/share/applications/viber.desktop | grep Exec Exec=/opt/viber/Viber   and  $ cat /usr/share/applications/google-chrome.desktop | grep Exec Exec=/usr/bin/google-chrome-stable %U Exec=/usr/bin/google-chrome-stable Exec=/usr/bin/google-chrome-stable --incognito   I am not sure how to modify those lines and where to find libv4l package for 64-bit, in order to implement a workaround that will make viber and chrome work properly.  In my quest to fix the underlying problem I started by looking for camera/video settings in Unity's "Search Your Computer" System Settings. But I found nothing. I also run:  $ ls /dev/video* /dev/video1   but I don't know what to make out of that result. Also after running   sudo lshw -sanitize   I get, somewhere along a huge output:  *-usb:0                   description: Video                   product: USB2.0 UVC 2M WebCam                   vendor: USB2.0 UVC 2M WebCam                   physical id: 2                   bus info: usb@1:1.2                   version: 2.02                   serial: [REMOVED]                   capabilities: usb-2.00                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s   I tried to find the driver from this but found nothing. For example:  $ ll /lib/modules/4.4.0-28-generic/kernel/drivers | grep uvcvideo   returns nothing.  I also run:  $ lsmod | grep uvcvideo uvcvideo               90112  0 videobuf2_vmalloc      16384  1 uvcvideo videobuf2_v4l2         28672  1 uvcvideo videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2 videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2 media                  24576  2 uvcvideo,videodev   which (according to the internet) shows the status of the drivers. Can't interpret it though.  There should be a file of a driver somewhere that I could tinker to fix it but how do I find it?


Calculate: $$\lim_{x \to 0}\frac{x- \sin{x}}{x^2}$$  I would like to try but i don't find any idea i don't know how to use Hopital rule i tried to return $\cos$ to $\sin$ But it doesn't work a help


I'll be travelling to Europe from 30th May to 13th June. I plan on reaching Vienna on the morning of 30th and leaving for Prague on 2nd July. From there, I'll travel to Krakow on 5th July. From there on 8th July, I'll leave for Bratislava. And from Bratislava to Budapest on 10th July. I'll leave Budapest on 13th July.   Since my time of staying in each country is almost the same, should I apply at the Austrian Embassy since they'll be my point of entry?  Also, I haven't purchased tickets for flights yet. Is it necessary or just giving the itinerary of flights I plan to use work? I came across websites offering flight reservations for a nominal fee. Should I use that?


I can calculate $\sum_{i=0}^k \binom{n}{i}\binom{m}{k-i}$ using $(1+x)^{n+m} = (1+x)^n(1+x)^m$.  I would like to calculate the two sums $\sum_{k=0}^n (-1)^k \binom{n}{k}^2$  and $\sum_{k=0}^n k \binom{n}{k}^2$  with the same method.  I don't see what polynomial I have to consider.  For the first one, if i consider $(1-x)^n(1+x)^n=\sum_{k=0}^n \sum_{i=0}^{k}(-1)^i \binom{n}{i} \binom{n}{k-i} x^k$ and the sum we want doesn't appear.  EDIT : indeed, I only have to look at the coefficient of $x^n$, which is $\binom{n}{i}\binom{n}{n-i} = \binom{n}{i}^2$.


I have auto fill option activated on my chrome browser. I use Windows 7. I ma looking for the file that stores the data previously recorded as "Auto Fill" such as login username.  I know that such data is stored in C:\Users\Username\AppData\Local\Google\Chrome.  But there are so many files in it and I have already wasted a lot of time looking. Can some one point me in the right direction?


What will a photon say about the motion of other photon?

I have read that speed of light remains constant in every frame. If a frame moves with some noticeable velocity ( with respect to some other frame),  Then in that frame ; time slows down, length contracts up, as velocity of light is same in both the frames.   I want to ask that what will a photon say about the velocity of another photon who is moving with the velocity of light.?


Why does Obi-Wan-Kenobi touch Luke Skywalker's head at the rock canyon in Tatooine?

In Star Wars: A New Hope (1977), after been attacked by Sand People, we see Luke Skywalker laying inert in the ground, then,  we hear a great howling moan echoing throughout the canyon which sends the Sand People flees in terror. After that, a shabby Kenobi leans over Luke and touches his head for few seconds. Why?  It looks to me that he was evaluating Luke's temporal pulse but also could have been that he tried to read Luke's mind or used the Force to heal/awake him.       Regarding the :  It asks for a description of the action about doing/touching; but instead, my 'why does Kenobi touch...? differs from it because it asks for an explanation about touching.  The chosen answer to the other question, besides showing other characters' similar actions/behaviors, was rightly: Kenobi was possibly checking for a sign of life by using a technique.  Regarding my question, as you surely have noticed, it has arisen interesting potential responses which include, for example, one of the first uses of the Force in the Star Wars film saga.   In view of the above, I believe that there is no duplication of posts here.


Connecting multiple screens to the 2016 MacBook Pro with Touch Bar

I'm thinking about buying the new MacBook Pro with 4 USB-C ports.  I want to attach two screens, mouse and keyboard and ethernet to the MacBook Pro while using the fewest number of USB-C ports possible.  So what I need is an adaptor with:   two DP or HDMI ports (or one DP port with daisy chaining support) two or more USB ports an ethernet port   Best case would be a hub to which all devices are connected with a single connection to the MacBook Pro, including power supply. Worst case if attaching the MacBook Pro to the devices would require me to use all four of USB-C ports.  Given the answers up to far, I can tell that:   Daisy chaining might or might not work with the MacBook Pro (since it requires DP1.2 which is supported by the graphics chipset, but it's uncertain if it's supported by the MacBook Pro itself) I can attach the monitors with two cables as a last resort, leaving me with two ports for the remaining peripherals.   What I still don't know:   Would daisy chaining work with a hub or does it require the first monitor to be directly attached to the MacBook Pro? Does some kind of hub exist supporting attachment of all listed devices with a single upstream connection to the MacBook Pro?


I read this question  and became very worried when I saw everyone blasting the OP for contemplating graduating in three years. The general consensus was that there was no reason at all to graduate early and that the lack of additional experience would hurt your chances at graduate school. I am concerned because I am graduating with only 2.5 years because I can only barely afford this by maxing out all loans.  I would love to be able to develop greater depth in my field. Instead it has been a constant sprint to finish before I run out of money completely. I was rejected from every top ten university, and the one token safety school I got into jacked up the price as soon as they found I had nowhere to go.  Are the criticisms that finishing too fast valid in the context of extreme debt? I am saving over $100,000 by finishing early, will this reason be accepted by graduate schools? I see that graduate students do not have to pay tuition and get a small stipend, this sounds like a wonderful way to pursue an education and is very attractive to me right now. I feel that my education is rushed and I have not had the time to contemplate open research questions which are very important for graduate admissions. Graduate school is also the path to a job in research labs or academia.  edit: I have done well enough (6th in graduating class unless I mess up). They offer to tack on a year for a masters at your current rate, which is touted as a way extend finiancial aid. This is untenable for me.


I have a LAMP server with following configuration.  CPU : Intel(R) Xeon(R) CPU   RAM : 32 GB  HDD : 80 GB  Running on virtual environment.  All the things in the server are running smoothly. But I have noticed that the RAM usage is the server is increasing each day without any reason.   This is the current memory usage on my server.  # free -g              total       used       free     shared    buffers     cached Mem:            31         13         17          0          0         10 -/+ buffers/cache:          1         29 Swap:            2          0          2   And you can see the last 8 weeks memory usage below.   And i have executed the following command to find how much memory each process is consuming.  # ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'          0.00 Mb COMMAND        2253.62 Mb /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock        1171.66 Mb java -jar /etc/vmagent/bin/VMAgent.jar         138.27 Mb /sbin/audispd         127.75 Mb /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/named/run-root          74.29 Mb auditd          73.03 Mb automount          43.14 Mb /usr/bin/spamd --username=popuser --daemonize --nouser-config --helper-home-dir=/var/qmail --max-children 5 --create-prefs --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_full.pid --socketpath=/tmp/spamd_full.sock          43.14 Mb spamd child          43.14 Mb spamd child          37.13 Mb /usr/sbin/httpd          37.02 Mb /usr/sbin/httpd          36.52 Mb /usr/sbin/httpd          36.46 Mb /usr/sbin/httpd          36.23 Mb /usr/sbin/httpd ................   For troubleshooting , i have restarted the MySQL and APACHE servers. But the result was same. Restarting the entire server will fix the issue, but i want to know what is the real issue.  Let me know if you have any idea about this issue.  Thanks,  Arun S


polytopes as inequalities sistem solutions in R3 (x-y-z) cartesian space

i'm here to ask if there's a TikZ/pgf support to draw areas resulting from a system of linear inequalities, into a xyz cartesian space. i found examples of my needs for xy plan at , but i also need to draw some 3d polytopes.  the problem is coordinate system as i found in pgfmanual.pdf seems not suited for R3: only (,) support but i need something like (,,).  As an example, i need to do drawings like this:    but i also need to get a colored surface with a 50% transparent color.  The system which generated that polytope is quite simple and is a linear programming problem:  x_1 + x_2 + x_3 <= 4 x_1             <= 2             x_3 <= 3     3*x_2 + x_3 <= 6 x_1             >= 0       x_2       >= 0             x_3 >= 0    Can you advise me some url/article/doc which can help me, or make me some example to lead me to learn how to reach my target?  Thank you for your attention


Can a word be contracted twice (e.g. "I'ven't")?

I've seen a contraction of two words.  I can't see why it wouldn't've been possible to have been contracted twice.  Is it possible and how should it be punctuated?  Update:  Ok, to sum up the answers so far   This appears in spoken British and American English It is from one of the lower  Even if spoken this way sometimes, it isn't really written as a double contraction, except as written speech in fiction. And from my own googling in , it appears most written forms are old British words, often nautical like fo'c'sle.


The formula for computing a k-combination with repetitions from n elements is: $$\binom{n + k - 1}{k} = \binom{n + k - 1}{n - 1}$$  I would like if someone can give me a simple basic proof that a beginner can understand easily.


How do I extract the initramfs from a kernel image?

An initramfs, as opposed to an initrd, is built-in to a kernel file. How do I go about extracting and unpacking an initramfs from a given kernel file?


I'm trying to make table of contents manually, I mean I set the page of each of sections one by one. Here's my target:  and I'm using book class here.  Here's the code that I found   \documentclass[oneside]{book} \renewcommand\contentsname{CONTENTS} \renewcommand\listtablename{LIST OF TABLES} \renewcommand\listfigurename{LIST OF FIGURES} \addtocontents{toc}{{\bfseries Contents\hfill Page No.\bigskip\par}} \addtocontents{lot}{{\bfseries No.\hfill Title\hfill\hfill Page No.\bigskip\par}} \addtocontents{lof}{{\bfseries No.\hfill Title\hfill\hfill Page No.\bigskip\par}}  \usepackage[titles]{tocloft} \usepackage{xcolor,xpatch} \renewcommand\cftbeforechapskip{0ex} \renewcommand\cftchapfont{\mdseries} \renewcommand\cftchappagefont{\mdseries} \renewcommand\cftchappresnum{Chapter~} \renewcommand\cftchapaftersnum{. } \newlength\tocindent \settowidth\tocindent{\cftchapfont\cftchappresnum9\cftchapaftersnum} \edef\cftchapnumwidth{\the\tocindent} \edef\cftsecindent{\the\tocindent} \advance\tocindent2.3em \edef\cftsubsecindent{\the\tocindent} \advance\tocindent3.2em \edef\cftsubsubsecindent{\the\tocindent} \renewcommand\cftsecdotsep{\cftnodots} \renewcommand\cftsubsecdotsep{\cftnodots} \renewcommand\cftsubsubsecdotsep{\cftnodots} \newcommand\tocmainmatter {\renewcommand\cftchappagefont{\color{white}}% } \xapptocmd\mainmatter{\addtocontents{toc}{\protect\tocmainmatter}}{}{}   \newif\ifschaptertoc \makeatletter \renewcommand\@makeschapterhead[1]% {{\parindent \z@ \centering     \normalfont     \interlinepenalty\@M     \Large \bfseries  #1\par\nobreak     \vskip 20\p@ }% \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}% \ifschaptertoc \addcontentsline{toc}{chapter}{#1}% \fi } \makeatother  \usepackage{blindtext}  \begin{document} \frontmatter  \tableofcontents \schaptertoctrue  \chapter*{ACKNOWLEDGEMENTS} \blindtext  \chapter*{ABSTRACT} \blindtext  \listoftables  \listoffigures  \chapter*{ABBREVIATIONS} \Blindtext  \chapter*{NOTATIONS} \Blindtext  \mainmatter  \chapter{INTRODUCTION} \blindtext  \section{General Background} \blindtext  \section{Objective} \blindtext \subsection{Objective 1} \blindtext \subsection{Objective 2} \blindtext \subsection{Objective 3} \blindtext  \section{Scheme} \blindtext \end{document}


How many elements are there in  $\Bbb Z_5[i]/\langle 1+i\rangle$?   Any element of  $\Bbb Z_5[i]/\langle 1+i\rangle$ is of the form $a+bi+ \langle 1+i\rangle$   Now $1+i=0\implies i=-1\implies 2=0$  $a+bi+ \langle 1+i\rangle=a-b+ \langle 1+i\rangle$.  Since $2=0$ so we can take $a-b$ to be odd (say $1$)and hence the only elements are $  \langle 1+i\rangle,1+ \langle 1+i\rangle$  and hence $\Bbb Z_5[i]/\langle 1+i\rangle\cong \Bbb Z_2$  Is the solution correct? Please help


Reputation histogram shows rep changes for the Nth-1 day

When I click on the histogram's bars, it shows me the changes for the day before that. In case of rep changes after a day of nothing, it says "There were no net reputation changes on this day" when there actually were. And when you click the next day's bar, it shows you what you want to see.  See this screenshot:


Show that $\mathcal D_{12}\cong C_2\times \mathfrak S_3$

Let $\mathcal D_{12}=\left<a,b\mid a^6=b^2=1,b^{-1}ab=a^{-1}\right>$, $\mathfrak S_3=\left<(12),(123)\right>$ and $C_2=\left<g\mid g^2=1\right>$. I would like to show that $\mathcal D_{12}\cong \mathfrak S_3\times C_2$. I set $c=(12)$ and $d=(123)$. Then, $$\mathfrak S_3=\{1,c,d,d^2,cd,cd^2\}$$ $$\mathcal D_{12}=\{1,a,a^2,a^3,a^4,a^5,ab,a^2b,a^3b,a^4b,a^5b\}$$ and $$C_2=\{1,g\}.$$ So, I can easily make association, like $$1\longmapsto (1,1)$$ $$a\longmapsto (cd,1)$$ $$a^2\longmapsto (d,1)$$ $$a^3\longmapsto (c,1)$$ etc... but is there an isiest way to do it ?


In a book on Classical Electrodynamics we meet fonts for r and  r as shown in the image below    Do there exist these math symbols in LaTeX ?


I am running 16.04 and I want to encrypt my computer. How can I do that?  I haven't had much luck searching online.


I currently have HDD (500GB) with only 35GB used space. I want to clone the existing HDD to a new empty SSD (256GB). What's the easiest way to do that??


Best way to get improve SEO ranking for image-based site

How do I best approach common SEO techniques for a website with images as the main content?  The problem here is the content is all image based, so other than Friendly URLS, H1/H2 tags, Sitemap, RSS Feed, Alt Img, what else can be done to gain search rankings?  I realise most search engines (if not all) are text based and text is how they better understand the business and "usefulness" of a site and therefore compare it with other sites, but other than social media and driving constant traffic what is the best thing to do or focus on?


I'm not really sure since I'm still new to Linux distros in general


Use shorter home screen app title so that it doesn't get truncated

Change the CFBundleDisplayName to be something shorter so the app name is not truncated.    App version: 0.1.19


Is there a word that means "outdated name"? For example:   Record, although very little music is on vinyl Film, although most movies are digital Horsepower, although no one uses horses as a metric anymore Phone, although it's mostly used to access the web   and so on.


Finding distance of point along polyline using ArcGIS Desktop?

We need to find the distance of a series of point along a given polyline.  We have a polyline dataset repsenting rivers in a catchment, broken up into river reaches (FID 1 through 35 for example).  We also have a point dataset of abstraction licenses within this catchment, some of which are situated along rivers - we can tell from the attribute table which these are as they are defined as groundwater or surface water licenses.  The two are not related - i.e. one has not been derived from the other.  Therefore not all the surface water licenses lie exactly over the river polylines, despite in 'reality' being on these rivers.  We need to be able to see which points are "upstream/downstream" of each other, and so wanted to have a list of which river reach the point is on, followed by the distance downstream from the start of this reach. We can then compare the downstream distances of two point to see which is upstream and which is downstream - the desired outcome!  To solve the problem of finding points on/very close to the rivers we were told to use a (small) buffer around each river reach and then to query the buffer to find the points within it.  This is fine but we are then left with an area (buffer), not a line, so we can't measure a distance along/within this.   Can we use a buffer as described to find out the points on/near the river reach in question and then, somehow (?!) query these points for distance along the river reach (polyline segment)?


Can someone please identify this literary device

"Mike-schmike." I muttered, preoccupied by the way he'd said "you and I." I liked it more than I should.   This is a line from Stephanie Meyer's Twilight novel (page 25). How would we describe 'Mike-schmike' in terms of a literary device. Is there a special name for the rhyming pejorative here?


Showing popup on mouse-over, not on click using Leaflet?

Is it possible in Leaflet that popup opens on mouse-over, not on click?  This is working for just one marker at a time, but I need it for a bigger number of markers:  marker.on('mouseover', function(e){     marker.openPopup(); });


As very first task in our analysis I class we got the following task which gives (only) 1 of 16 points. I add the points in order to calculate the needed effort to solve this task...      So let $n,m\in\mathbb{N}$ and $a_n:=\sqrt[n]{b_1^n+...+b_m^n}$, with $b_i\geq 0$ and $i=(1,...,m)$ We have to prove if this sequence converges and determine the limit (by using $\epsilon$ definition).     After running a simple R simulation I found out, that this sequence seems to converge against m.     As I have learned so far, the first step is to determine an $N\in\mathbb{N}$ so that $\forall n\in\mathbb{N}, n\geq N : |a_n-m|<\epsilon$, but while searching for that $N$ I began to struggle. $|a_n-m|=|\sqrt[n]{b_1^n+...+b_m^n}-m| < \epsilon \Leftrightarrow ... \Leftrightarrow b_1^n+...b_m^n<(\epsilon+m)^n$. After some research I found, that the LHS can be expressed by polynomials using . At this point I am afraid to be on the wrong track.     Can somebody give me a hint which respects the limitations (having only 1 lecture and it is the first task regarding sequences)?  The R-Code    m_max = 20 m=seq(1,m_max) sumOfPowers=function(n){sum(m^n)} n_max = 50 n=seq(1,n_max) temp=sapply(n,sumOfPowers) a_n=nthroot(temp,n) print(data.frame(n,temp,a_n))


Retrieving the entire row of the latest version for each filename given an id

Given a TASK_ID, what is the most efficient way to retrieve the latest version of each file?  Here is an example table I am working with.  ID    TASK_ID    FILENAME    VERSION_NUMBER    RANDOM_COLUMN 1     1          a.txt       1                 112 2     1          b.txt       1                 231231 3     1          c.txt       1                 234356 4     1          a.txt       2                 35 5     1          b.txt       2                 84 6     1          b.txt       3                 97604 7     2          aa.txt      1                 6956 8     2          bb.txt      1                 9760054   This is what I have so far.  SELECT FILENAME, TASK_ID, MAX(VERSION_NUMBER) FROM TABLE_NAME GROUP BY FILENAME, TASK_ID HAVING TASK_ID = '1';   Unfortunately, the above only gives me the 3 columns I have in the SELECT statement instead of the entire row and adding more columns will give me an error.  FILENAME    TASK_ID    MAX(VERSION_NUMBER) a.txt       1          2 b.txt       1          3 c.txt       1          1   How might I go about getting the entire row?  I plan on adding this SQL query to a Query annotation within a Spring Repository and run it as a native query. Is that the best way?  EDIT: I ended up with this SQL query, which gets what I want, but I am not sure whether this is correct or how efficient it is.  SELECT ta.* FROM TABLE_NAME ta INNER JOIN (SELECT FILENAME, TASK_ID, MAX(VERSION_NUMBER) vn   FROM TABLE_NAME   GROUP BY FILENAME, TASK_ID   HAVING TASK_ID = '1') sq ON ta.FILENAME = sq.FILENAME AND ta.TASK_ID = sq.TASK_ID AND ta.VERSION_NUMBER = sq.vn;   Result of above SQL query  ID    TASK_ID    FILENAME    VERSION_NUMBER    RANDOM_COLUMN 3     1          c.txt       1                 234356 4     1          a.txt       2                 35 6     1          b.txt       3                 97604


Hey i'm trying to center my images when someone is using an ipad basically below 780px but i am not able to get them to center no matter what i try? My menu and navigation bar are all centered just these images won't      My code here

Current News

   CSS here  @media screen and (max-width:979px){     /*Global */     .container {     width: 95%;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px; } .box img{     width: 300px;     height: 300px;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px;     }     .box {     padding-bottom: 15px;     margin: auto;     overflow: hidden;     padding-left: 15px;     padding-right: 15px;     } }


The chapter "Citadel of Gith Reborn" from the 2nd edition adventure book  says that Githyanki lay eggs despite being humanoid.  The 5e  doesn't say much about their methods of reproduction. Is there any 5e material that addresses this issue?


I have been receiving countless ddos attacks the last couple of weeks. Just now I caught one while I was running iptraf. Normally 99.9% of the packets used on my server are TCP packages, and not UDP. A few are used I see, but normally hardly any.  Now while the attack happened I noticed thousands of incoming UDP packets per second. Also tcpdump was showing this: .   I run CENTOS 5.6, and I only use it for nginx (80,443), ssh (22), ftp (21). I dont run nameservers, email or anything like that.  My question is. Can I block all incoming UDP traffic via iptables? Would this be effective against UDP ddos attacks? And if I can block all UDP traffic, would this cause any problems in linux?


We're in the process of deploying a private openstack instance but don't have the Swift object storage service available yet. Can juju bootstrap launch a utility instance without swift? I see that the openstack configuration control-bucket is a container id.


Why doesn't Smaug die in the 2nd Hobbit film if it was titled the 'Desolation of Smaug'?

Doesn't desolation mean a state of complete emptiness or destruction?   So why doesn't Smaug perish by the end of the 2nd Hobbit film if the film's title was made to describe his end? He only dies at the start of the 3rd film: Battle of Five Armies. Does Jackson say why?


Doubt in Application of Integration - Calculation of volumes and surface areas of solids of revolution

I am using two books for my calculus refresher.   Thomas' Calculus  Higher Math for Beginners by Ya. B. Zeldovich   My question is : When applying Integral Calculus for calculation of volumes of solids, generated by curves revolved around an axis, we use slices of 'cylinders' to approximate the volume of the resulting solid and then integrate the sum of those infinitesimal cylinders. However, when we are using the same techniques to calculate the surface area of the surfaces generated by revolving curves around an axis, we consider the 'slope' of the differential length of curve 'dx', calculate the total length of the curve and derive the required surface area.  Are we not supposed to use the same 'slope' for calculating the volumes of the infinitesimal 'cylinders' for calculation of volumes? Shouldn't we use 'sliced portions of 'cones' as the infinitesimal volumes?? When it come to calculation of volumes of solids of revolution, why are we neglecting the slope of the curve for the differential length and simply assume that it is an infinitesimal cylinder??  Ex: Let us say we want to calculate the surface area and the volume of the solid generated when the parabola y = 10 . x^2 is revolved about the y-axis, with limits of x from 0 to 5.  In such cases, when calculating the volume of the solid, we consider infinitesimal 'cylinders', ignoring the 'slope' of the curve for the differential element 'dx', but when calculating the surface area, we consider the 'slope' of the differential element 'dx'.


If a photon has no mass why doesn't it have infinite speed?

Please help a naïve layperson understand -- if a photon has no mass, why is its velocity limited at all? Shouldn't a particle with no mass be able to travel at an infinite speed?


Let $f:\mathbb{R}\rightarrow\mathbb{R}$ and $g:\mathbb{R}\rightarrow\mathbb{R}$ continuous functions; if  $f(x)=g(x)$ $\forall x\in\mathbb{Q}$ then $f(x)=g(x)$ $\forall x\in\mathbb{R}$


Highlight the selected feature with different colors

Is it possible to change the color of a selected feature in qgis 2.2.0 Valmiera? To highlight a feature I use:  aLayer.Select(feat.id()) box = vlayer.boundingBoxOfSelected() qgis.utils.iface.mapCanvas().setExtent(box) qgis.utils.iface.mapCanvas().refresh()   But the selected featue is colored yellow. Is it possible to define a different color for this feature?


Notify when someone edits an answer to your question

Possible Duplicate:          When an answer is edited and editor hasn't notified me about edit (using comment), there's no way of knowing about this edit. When question is new, I came to know about it most of times because I check answers often. But, when question is old, I miss edits most of times.  So, it'd be nice if you add this feature.


I have an SObject called Team_Member__c  It has a lookup field Manager__c pointing to Team_Member__c, so the Team_Member__c SObject is related to itself. The relationship represents a management structure in an organization, where one team member may manage zero or more other team members.   I am trying to create a SOQL query to get a list of Team Members which do not manage anyone. I think I should be able to achieve this using a subquery and an aggregate function, but nothing I've tried has worked.  The only working solution I have so far is this:  List<Team_Member__c> tms = [select Manager__r.id from Team_Member__c];  List<Id> ids = new List<Id>(); for (Team_Member__c tm : tms) ids.add(tm.Manager__r.id);  List<Team_Member__c> drones = [select name from Team_Member__c where id not in :ids];   But I'm thinking there must be a way to do this with just one SOQL query?


Please explain the difference between X's Y and Y of X. Example: "The building's roof" and "roof of the building". Is there a "correct" form? When is the former used and when the latter?


Weird Java's typesafety not working for collections

public static <T> List<T> toArray(JSONArray array) {         if(array == null) {             return Collections.emptyList();         }          List<T> o = new ArrayList<>();          for(int i=0, l = array.length(); i < l; i++) {             o.add((T) array.get(i));         }          return o;     }      public static void test() {         List<Object> values = new ArrayList<>();         values.add("Product");         JSONObject jsonObject = new JSONObject();         jsonObject.put("key", values);         List<Long> test = new ArrayList<>();         test = toArray((JSONArray) jsonObject.get("key"));         System.out.println(test);     }  The above code allows storing String values in a List<Long>, totally absurd. Any help much appreciated?


What's the difference between "die from", "die by" and "die of"

What's the difference between "died from", "died by" and "died of" in the following examples?  died of an old age died by poison died from hypertension


How to change RGB to CMYK without affecting blending mode?

In Illustrator, I create some designs in RGB mode (eg: glow effect and blending mode), If I drag and drop the CMYK document some blending options are changing. So please give me the solution for this problem, I am very confused by this problem...


Which is the best way to bring money in USA

In a few weeks I'll travel from Europe to USA. I'll stay there for some months and in my fisrt period there I'll need a large ammount of money for living there (let's say 2000-3000$). So my question is: which one is the best way (trade-off between cheapness and security) to have money there? (Assuming that I'll open an account as soon I'll arrive there.)   Bring cash and deposit them in the American bank when I will arrive? Make a money transfer from my country back to the American one?


Why is the contribution of a path in Feynmans path integral formalism $\sim e^{(i/\hbar)S[x(t)]}$?

In the book "Quantum Mechanics and Path Integrals" Feynman & Hibbs state that  the probability $P(b,a)$ to go from point $x_a$ at time $t_a$ to the point $x_b$ at the time $t_b$ is $P(b,a) = \|K(b,a)\|^2$ of an amplitude $K(b,a)$ to go from $a$ to $b$. This amplitude is the sum of contributions $\phi[x(t)]$ from each path. $$ K(b,a) = \sum_{\text{paths from $a$ to $b$}} \phi[x(t)]$$ The contributions of a path has a phase proportional to the action $S$: $$ \phi[x(t)] = \text{const}\ e^{(i/\hbar)S[x(t)]}$$  Why must the contribution of a path be $\sim e^{(i/\hbar)S[x(t)]}$? Can this be somehow derived or explained? Why can't the contribution of a path be something else e.g. $\sim \frac{S}{\hbar}$, $\sim \cos(S/\hbar)$, $\log(S/\hbar)$ or $e^{- (S[x(t)]/\hbar)^2}$ ? Edit: I have to admit that in the first version of this question, I didn't exclude the possibility to derive the contribution of a path directly from Schrödinger's equation. So answers along this line are valid although not so interesting. I think when Feynman developed his formalism his goal was to find a way to quantize systems, which cannot be treated by Schrödinger's equation, because they cannot be described in terms of a Hamiltonian (e.g. the Wheeler-Feynman absorber theory). So I think a good answer would explain Feynman's Ansatz without referring to Schrödinger's equation, because I think Schrödinger's equation can only handle a specific subset of all the systems that can be treated by Feynman's more general principle.


$$\frac{\partial \mathcal{L}}{\partial \eta_1}= -\sum_{i=1}^{n}\frac{\frac{\eta_1}{c}-\cos(y_i-\beta_i X_i)}{c-\eta_1\cos(y_i-\beta_i X_i)-\eta_2\sin(y_i-\beta_i X_i)} $$   I need a big denominator and numerator.


Itemization will be interrupted when I insert an equation

When I insert an equation in a item, there will be no indent for the next items just like this.    There are some head file included.  \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp}  \usepackage{algorithm}   \usepackage{algpseudocode}   \usepackage{amsmath}   \renewcommand{\algorithmicrequire}{\textbf{Input:}}  % Use Input in the format of Algorithm   \renewcommand{\algorithmicensure}{\textbf{Output:}} % Use Output in the format of Algorithm \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document}  \begin{itemize} \item \textbf{Support Vector Machine (SVM).} SVMs are a set of supervised learning methods, and a SVM constructs a hyper-plane or set of hyper-planes in a high or infinite dimensional space, which used for classification, regression and outliers detection. Intuitively, a good separation is achieved by the hyper \begin{equation} \[\begin{align} \text{minimize  }& \frac{1}{n}\sum\limits_{i=1}^{n}{{{\zeta }_{i}}+}\lambda  {{\left\| \mathbf{w} \right\|}^{2}} \\  \text{subject to  }& {{y}_{i}}(\mathbf{w}\cdot {{\mathbf{x}}_{i}}-b)\ge 1- {{\zeta }_{i}} \\ & {{\zeta }_{i}}\ge 0,i=1,...,n \\  \end{align}\] \end{equation} where $ \mathbf{x}_i $ is a $ p $-dimensional real vector; $ y_i $ is either  -1 or 1, denoting the different classes respectively, and $ n $ is the  length of a training dataset. $ \mathbf{w} $ is the normal vector to th  hyperplane. For each $ i\in\{1,...,n\} $, a variable $ \zeta_{i}=\text{max} (0,1-y_i(\mathbf{w}\cdot {{\mathbf{x}}_{i}}-b)) $ is introduced and it is the  smallest nonnegative number satisfying {{y}_{i}}(\mathbf{w}\cdot  {{\mathbf{x}}_{i}}-b)\ge 1-{{\zeta }_{i}}. Moreover, $ \lambda $ is a  sufficiently small value yields the hard-margin classifier for linearly  classifiable input data. This is called the primal problem [].   \item \textbf{Nearest Neighbors.} The principle behind nearest neighbor methods is to find a predefined number of training samples closest in distance to the new point, and predict the label from these.  \end{document}


In the classic American children's show Spongebob Squarepants, one line in the theme song goes like this:     If nautical nonsense be something you wish   and it is then followed by the chorus.  My question is on the use of the word be in this context. Although it could simply be a form of silly, "pirate-speak" to be entertaining, I am wondering if this could be a form of the subjunctive. The sentence is asking if you might want to watch a show about hi-jinks in in the ocean (hence the phrase "nautical nonsense") and so thus is a hypothetical and in my understanding, hypothetical statements are supposed to be used with the subjunctive.  So, is this proper English grammar, or simply a sentence intended to sound funny? If it is proper grammar, then why has this usage largely disappeared?


Is that true that all the prime numbers are of the form $6m \pm 1$?

Is that true that all the prime numbers are of the form $6m \pm 1$ ?  If so, can you please provide an example?  Thanks in advance.


Stansted (London) airport needs transit visa for Indian Citizen?

I am Indian citizen, and flying thru Stansted (London) with 3 hour layover, flying to the US.  Does this require transit visa?


Prove that $x_n\to x\implies \liminf\limits_{n\to\infty}f(x_n)\leq f(x)$

Let $\{f_n\}$ be a sequence of real-valued functions on $[0,1]$ and let $M$ be a real number such that:  (i) for each $n,$ $f_n$ is continuous; (ii) for each $x\in[0,1]$ and for each $n,$  $f_n(x)\leq f_{n+1}(x)\leq M.$  Prove that $\{f_n\}$ converges pointwise on $[0,1]$ to a function $f$ which is lower semicontinuous.  (that is for all $\{x_n\}\subset [0,1]$ and for all $x\in [0,1],$ $x_n\to x\implies \liminf\limits_{n\to\infty}f(x_n)\leq f(x).$  Please, can anyone help me out with this?


Object is rendering in viewport but not in final render

I have a downloaded object that I placed on the stage and textured. An object in the "Material Preview" and "Render" modes in the viewport is displayed, but upon final rendering, the object disappears. What could be the problem?


How to create the long equations in two columns paper

The equation I want to display is too long to put in one column, so I prefer to make it in the whole two columns like the following format of equation(47)   including the two lines above and under equation (47).  Thank you for your assistance.


Windows 7 unidentified network (or limited access) after hibernate

My windows 7 network will show limited access or unidentified network after coming up from hibernation.  In the office I normally use LAN connection, I turn-off my wireless card (DELL Latitude has on/off switch for the wireless card). When I back at home I will turn on the wireless card, but it will take about 15 seconds to detect my home WIFI and then show limited access. I will have to restart the notebook and it will be able to connect to my WIFI and internet.  The problem will be solved if I restart the notebook, but that defeats the purpose of hibernation doesn't it?  I have tried uninstalling the wireless card driver but still does not solve it. I also tried updating my network card driver but windows says I am using the latest driver. On support.dell.com also showing I am using the latest driver.


I am a freelance graphic designer, but also a full time student with a full time retail job. In my regular job I do no design work. The freelance has not been very often, because of how busy I am.   I was recently recruited to design a logo and entire interface for a new app that's being developed. I'm not sure what I should charge, because I haven't designed an app interface before. I was offered what seems like an obnoxiously low payment for the entire job.   Is it unreasonable to require hourly payment, or is it better to be payed by the job? What would be a reasonable amount to charge by the job (in an L.A. suburban area)? I am very skilled but like I said, don't do this very often.


iOS seems to refuse to allow me to email "long" voice memos, and I'm unaware of any way to extract them from iTunes backups of my phone. How can I retrieve entire voice memos that aren't really short?


What's the word for using the names of letters and numbers to sound out a word?

For example, LXS = Alexis, or RTQL8N = articulatin'. I seem to recall there being a word for this.


Novel: Wizard's memoirs, servant to a god, long timespan

I'm trying to find a fantasy novel I read about the life of a wizard. He started out as a normal person, but became a servant of a god (I think the god treated him as a friend and student). He played a kind of puppet master role in the history of the world he lived in, which he affected over a long timespan (thousands of years?). There were other wizards who were also servants of this god, and I seem to remember that one of them was or became a rival or the bad guy, potentially serving another god in the process.  I think the book was published in the 90's, but I'm not certain of it. I also think there were other books in the series after it, or that this book was a prequel of some kind.


Why does the set of all singleton sets not exist?

Proposition: For a set $X$ and its power set $P(X)$, any function $f\colon P(X)\to X$ has at least two sets $A\neq B\subseteq X$ such that $f(A)=f(B)$.   I can see how this would be true if $X$ is a finite set, since $|P(X)|\gt |X|$, so by the pidgeonhole principle, at least two of the elements in $P(X)$ would have to map to the same element.   Does this proposition still hold for $X$ an infinite set? And if so, how does this show that the set of all singleton sets cannot exist?


Is removing an app any different from disabling an app?

One of the main advantage of rooting is removing bloatware [I guess]. Is removing unwanted brand-based or operator-based app any different from disabling it from All Application in Settings? I don't find any improvement in memory too since these apps were pre-loaded in OS and you can't use those space any way.


Conformal Maps onto the Unit Disc in $\mathbb{C}$

I am interested in finding explicit formulae for (better yet characterizing) conformal functions from various domains onto the open unit disc $\mathbb{D}\subset\mathbb{C}$, and in understanding the key ideas necessary to establish such functions.  Specifically, what can $f$ look like when $f:G\to\mathbb{D}$ is conformal and  (1) $G=\{x+iy~|~x,y>0\}$ is the open first quadrant.  (2) $G=\{x+iy~|~x>0,~0<y<1\}$ is an open horizontal strip in the first quadrant.  (3) $G=\{z\in\mathbb{C}~|~\frac{1}{2}<|z|<1\}$ is an annulus.  (4) $G=\mathbb{D}\cap\{|z-\frac{1}{2}|>\frac{1}{2}\}$ is something else (torus?).


How to calculate square matrix to power n with induction

How could i possibly calculate square matrix to power n with induction for lets say this square matrix $A =\begin{bmatrix}  1 & 2\\   0& 1 \end{bmatrix}$I cant use Cayley-Hamilton theorem and i need to use induction.Any ideas on what i could do?


Collinearity in the complex plane with the unit circle

(a) Suppose p and q are points on the unit circle such that the line through p and q intersects the real axis. Prove that if z is the point where this line intersects the real axis, then   $z=\frac{p+q}{pq+1}$  (b) Let $P_1P_2...P_{18}$ be a regular 18-gon. Prove that $P_1P_{10}$, $P_2P_{13}$, and $P_3P_{15}$ are concurrent.   As for (a), I knew that z must be real given that it is on the real axis. Also, I can use the collinearity equation $\frac{v-z}{u-z} = \overline{\left(\frac{v-z}{u-z}\right)}$ and plug in values p, q, and z. Given that z is real, $\overline{z}=z$ so our equation for collinearity is now $\frac{v-z}{u-z}=\frac{\overline{v}-z}{\overline{u}-z}$. Past here I'm not really sure.  As for (b), I believe I need to use something from what is proved in (a) and therefore have not made any progress. Any help would be much appreciated!


How can I force clients to refresh JavaScript files?

We are currently working in a private beta and so are still in the process of making fairly rapid changes, although obviously as usage is starting to ramp up, we will be slowing down this process.  That being said, one issue we are running into is that after we push out an update with new JavaScript files, the client browsers still use the cached version of the file and they do not see the update.  Obviously, on a support call, we can simply inform them to do a ctrlF5 refresh to ensure that they get the up-to-date files from the server, but it would be preferable to handle this before that time.  Our current thought is to simply attach a version number onto the name of the JavaScript files and then when changes are made, increment the version on the script and update all references.  This definitely gets the job done, but updating the references on each release could get cumbersome.  As I'm sure we're not the first ones to deal with this, I figured I would throw it out to the community.  How are you ensuring clients update their cache when you update your code?  If you're using the method described above, are you using a process that simplifies the change?


How we can find currentDate is in date range or not

I get three dates: From date, To date and current date.  I want to find whether current date is in between From and To dates. If current date is in between these two dates then I want to create two new From and To dates.  Example:   From Date = 15 march  To Date = 25 march  current date = 21 march   Expected result should be:   From Date= 15 march,  To Date=21 march From date= 21 march,  To Date=25 march   To implement this logic I want to check my current date status whether it's in middle of date range or it's before or after.


What are the numbers next to player names?

In the lobby there are tags with numbers on against some player names - what are they?


Last night I got the dataup adware on my PC, I've done virus and malware removal before, but this one won't go away and is proving to be quite stubborn. I've used Malwarebytes, HitmanPro, and Norton Security Suite on it and none of them view it as a threat. I've even tried removing it from scheduled tasks, but it manages to put it's self back in there on each reboot afterwords. I have also used Unlocker to try and either delete or rename the executable upon system reboot, but that also doesn't work. I'm not too worried as most articles and documentation on the program say it's basically a nuisance more than anything else. Thanks in advance.


I vaguely remember reading a novel with a similar setting to "", but the nothingness was delivered via injection rather than a daily pill.  About all I can recall is that the hero is given the advice "leaves keep you dry from the rain" which he interprets correctly as instruction to place a few layers of cloth on his arm so the injection doesn't reach his skin.  The story then has him going on a trek to try to find and destroy the master computer-ish thing which runs the pseudo-utopian society.


Create the hashCode and equals method for the following class.  private static class MyOb {      private String name;     private Integer quality;     private final int MAXIMUM = 23;  }   I could not solve this question


What to do with a question that has only received comments

I have recently made a post on one of the other groups that I follow. I received a bunch of comments, and a few that actually solved my problem, but no answer to close off the question.  Question What should I do with this question?  Should I remove my question and assume it was too trivial (as it was a quick fix), or leave it up even though I have not officially received an answer at this time?  ALSO  What is the protocol on this kind of thing should it happen again in the future?  Do I wait a short period of time and just remove it if no official answer comes in (assuming that the problem was small, or that I probably needed to revise it)?


Table in beamer says that something's wrong

Following this question and its answers: , I am trying to fit a table in the presentation, so I did this:  \documentclass[table,dvipsnames,svgnames]{beamer}  \usepackage{multirow}  \begin{document}  \begin{frame} \begin{table} \begin{tabular}{|c|cccc|cccc|cccc|} \hline               & \multicolumn{3}{c|}{Sphere $n = 10^3, d = 10^4$} & \multicolumn{3}{c|}{Klein $n = 10^4, d = 10^2$} & \multicolumn{3}{c|}{MNIST $n = 60$k$, d = 784$} \\ \hline $\epsilon$    &  0    &  0.1  &  0.5  &  0.9  & 0    & 0.1  & 0.5  & 0.9  & 0    & 0.1  & 0.5  & 0.9  \\ \hline\hline {\tt BBD}     &  1.25 &  1.26 &  1.30 &  1.25 & 0.13 & 0.14 & 0.17 & 0.14 & 187.5 & 184.3 & 185.1 & 185.6 \\ {\tt LSH}     &  0.21 &  0.16 &  0.18 &  0.31 & 0.11 & 0.07 & 0.03 & 0.05 &  1.47 & 69.76 & 48.47 & 14.35 \\ {\tt FLANN}   & 25.0  & 25.4  & 25.5  & 25.6  & --   & --   & --   & --   & 244.6 & 217.2 & 157.3 & 142.0 \\ \geraf        &  0.06 &  0.06 &  0.06 &  0.06 & 0.06 & 0.06 & 0.06 & 0.08 & 8.167 & 8.567 & 8.579 & 8.565 \\ \hline \end{tabular} \caption{Build time (s) for three representative datasets. {\tt FLANN} does not finish after $4$~hr, which is indicated by `--' on Klein bottle or build times in gray on SIFT, where we have skipped configuration and used default values. {\tt BBD} runs out of memory on SIFT, as well as {\tt LSH} for $\epsilon = {0, 0.1}$.} \end{table}  \end{document}   However, I am getting this:     LaTeX Error: Something's wrong--perhaps a missing \item.   How to fix this please?    Edit:  If someone can provide another method of putting a table into the presentation with that format, this would also be acceptable, of course!!!


I have dozens of text reports that come in every day and I need to store them. I cannot just zip them and put them on the hard drive because the users aren't sophisticated enough to figure that out. I need to be able to associate some data with the report so they can look up report ABC for any given date. These files range in size from 11K to 1GB. Mostly they are less than 3 MB and many are less than 1MB.  What is the best way to store these? The options I am looking at are using Filestream or storing it in a varchar(max) field or zipping it and storing it in a varchar(binary) then unzipping it to display. I am open to any other options as well. Space efficiency is a high priority.   Thank you for reading this. I would truly appreciate any help or advice.  ** The other post is very interesting and I learned a lot from it - thank you for referencing it.  This is different from the other post in that my files are plain text files -- they are not binary files.


From a particle's point of view is his temperature absolute zero

Since the vibration of the particles is what cause temperature and a particle from its own point of view is not moving, is its temperature 0°K from its own point of view?  Is there a thing like relativistic temperature at all? If not, Why not?


How do I rotate and scale edges in Edit Mode?

mentions that it's possible to rotate and scale a selection while in Edge Select mode in the Properties panel. However, I can only find the option to transform the selection's median. There is no rotation or scale option in the panel.    How can I rotate and scale by entering a value in the panel in Edit Mode?


I'm interested in learning more about the Jacobi Elliptic Functions and the associated theta functions. For instance, what was the initial motivation for defining them? What are some applications? Is there a good book on this subject I can look at?


How to prove $f(A\cap B)=f(A)\cap f(B) \quad \text{for every} \quad A,B⊂X$ when $f: X\rightarrow Y$ is injective?

To prove $f(A\cap B)=f(A)\cap f(B) \Longleftrightarrow \text{f is injective}$  Beginning:  $f(A\cap B)=\{f(x): x\in (A\cap B)\}=\{f(x): x\in A ∧ x\in B\}$ Is that correct and how can I proceed?


how can I make an alias that does not fully remove the file like rm

how can I move a file to trash using an alias?


Is there any way to draw chemical structures using latex? Like , naphthalene?

Draw some examples with napthol, phenol etc


If the integral linear combination of some $n$th roots of unity has magnitude 1, does this necessarily imply that this linear combination is some root of unity as well? More precisely,      Let $\zeta_1, \ldots \zeta_k$ be $n$th roots of unity. If   $$|\sum_{i=1}^k n_i \zeta_i| = 1,$$   where $n_i \in \mathbb{Z}$, does this imply that $\sum_{i=1}^k n_i \zeta_i$ is an $n$th root of unity? What about if the $n_i$ are Gaussian integers?


I am trying to solve the following problem using strong induction, the problem is the following:  For any positive integer $n$, let $T_n$ be the number $1$ if $n<4$ and the number $T_{n − 1} +T_{n − 2} +T_{n − 3}$ if $n\ge 4$. We have $T_1 =1, T_2 =1, T_3 =1, T_4 =T_3 +T_2+T_1=1+1+1=3$, $T_5 =T_4 +T_3 +T_2 =3+1+1=5$, etc. Prove that: $\forall n \in \Bbb{Z}^+$, $T_n <2^n$ $\;$  Sadly, I don't even know where to start this question!


In what kind of rings a divisor of a product is a product of divisors?

In a , if $a|bc$, then $a$ can be written as $a = a_1a_2$ so that $a_1|b$ and $a_2|c$.  Is this property of a commutative ring strictly weaker than the property of being a UFD?  If so, does it have a name, or is it equivalent to some other well-known property?


What is the general solution to the differential equation:  $$\frac{\partial^2 u}{\partial y^2}=\frac{\partial u}{\partial x}$$  I'm a little stuck because all the techniques I know are unable to solve it.


So I am trying to make a glassy transparent cup according to a tutorial but I seem to have misclicked something and now every default material when I change the viewport into preview material is the default forest one that comes with BLENDER 2.90. However, when I render the object with the camera it shows the way I want it. I have tried removing the material from the cup or the liquid and adding a new one with the default white color. when I turn the Transparency to 1 and Roughness to 0 it becomes the forest HDRI again. This is what I mean  blend file:


How to change the projection and resolution of a file using gdal?

I have a file with these information:    lat_min -60.0 lat_max 80.0 lon_min -180.0 lon_max 179.9 lon_sampling 0.1 degree lat_sampling 0.1 degree samples = 3600 lines   = 1401   I want to re-project the file to   I tried    gdalwarp -of "ENVI" -t_srs `EPSG:3410`  -ts 1383 586 but give error  gdalwarp -of "ENVI" -t_srs "+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs" -ts 1383 586 -ot Float32  file.envi file_1383586.envi  ERROR 1: No PROJ.4 translation for source SRS, coordinate transformation initialization has failed


Flying from Heathrow on United Airlines, changing planes at Newark then taking another United Airlines flight to Costa Rica.  Do I still need a US visa.  Also, returning via Toronto, will I need a visa for Canada.  I am British.


Legally possible to re-create/remake an old game?

Recently I started remaking an old game on Unity. Basically I want to remake an old RPG that was released for Playstation 1. I'm not ripping anything from the old game, all the assets are being created by me. I'm creating everything from the scratch, music, 3D models, gameplay however I will keep the (copyrighted ?) names, I will try to create the characters and maps/levels as they were in the original version of Playstation 1 but with better graphics.  I'm not planning on selling it or adding in on a platform like Steam (for obvious reasons, copyrights etc), just giving it for free. But I wanna know when I will finish the development, can I share the game on public with other people so they can download it?  Can the company that made the original game sue me/fine me because of copyrights reasons even though I'm not planning on selling for money?  tl;dr Remake an non-profit game of PS1 from the scratch, can the company that holds the copyrights of the game sue me/fine me?


How can I camera track this scene better?

I have spent a while trying to track this shot. I am very new to blender camera tracking, though. Even though most of my trackers are doing a good job of staying on target, I am still getting large reprojection errors. I'm getting a solve error of around six, and it's getting to be pretty frustrating. I just don't know how to make my track better, and I'm tired of wasting time. I have attached the .blend file (I am using version 2.93) as well as the video file. If you could take a look and give me some feedback, that would be really helpful! I just want to get better at motion tracking! Let me know if I need to provide any more information. Thanks!


How do you mark a bulleted list with a common stem sentence? For example:  Do you capitalize each item and use a colon?  This Summer we should:   Go to the beach. Eat a sandwich. Visit the library.   Do you use ellipsis?  This Summer we should...   ...go to the beach. ...eat a sandwich. ...visit the library.   I feel like I've seen it both ways, I don't know if there's a convention or not. Is it possibly a regional thing?  Edit: The possible duplicate, which funnily enough is marked as a duplicate itself, doesn't talk about ellipsis. Am I just making that part up?  Edit 2: The second possible duplicate does not address ellipses either


I was having issues with pulseaudio and had to every time type in 'pulseaudio -D' in terminal each time I booted up. However, this was quite frustrating and so I was looking forward to make pulseaudio to startup each time at bootup by editing .bashrc  I added these lines at the end of the .bashrc file :  until [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -eq 1 ]] do     pulseaudio -D >/dev/null 2>&1     if [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -gt 1 ]]     then         kill -9 `pidof pulseaudio`         pulseaudio -D     fi     But since after that I have been getting the error of 'unexpected end of file' as enclosed in the .   How can I solve it?


What is $\lim_{n \rightarrow \infty}\sum\limits_{k = 1}^n\frac{k}{n^2}$?

We have $$\dfrac{1+2+3+...+ \space n}{n^2}$$  What is the limit of this function as $n \rightarrow \infty$?  My idea:  $$\dfrac{1+2+3+...+ \space n}{n^2} = \dfrac{1}{n^2} + \dfrac{2}{n^2} + ... + \dfrac{n}{n^2} = 0$$  Is this correct?


Why do research faculty pursue administrative positions, such as dean, provost, president, etc. ? Do such positions spell the end of one's research?

At a recent seminar talk, I was amazed to note that one of the two coauthors (not the presenter) was the , since I had always assumed that taking on such a position would necessarily mean the end of a research career.    Are there m/any examples of people that continue to do substantial amounts of research when in a senior administrative position, such as dean, provost, president, etc.?  Do research faculty often become deans, presidents, etc.? Why do faculty usually do this? (I understand that there might be a pay increase, but does it usually indicate that they no longer want to do research as intensely?)


Chat input is not visible while using some third-party keyboards on iOS

The first screenshot is using the default keyboard. You can see the input fixed to the top of the keyboard.  I'm using Gboard in the second screenshot. No matter how far I scroll, I can't see my input.


Why does my Samsung S7 with fixed focal length of 26mm have a wider angle of view than my 18-55mm DSLR lens?

Maybe I am missing some camera basics, but from experience with both devices, i notice that with my Samsung S7, I am able to take full buildings in pictures at a close range. It has a wider field of view. But with my Nikon Lens which has a shorter Focal length 18mm, I have to take a few steps back to capture a whole building. That is, it has a narrower field of view. Why is this happening? What am i missing?  So what makes the difference between a fixed 26mm on a phone and an 18-55mm lens on a DSLR?


Which review action on an edit that introduces good and bad changes?

Every now and then an edit will be suggested that introduces both good changes and bad ones, and I'm not sure which of "Improve Edit" or "Reject and Edit" actions is better suited to such a case.  I understand that "Improve Edit" is counted as an accepted edit for the user that suggested the changes, but removing information from an edit is closer to rejecting it than improving it, so "Accepting" such an edit feels misleading and might not give proper feedback to the suggester.  On the other hand, "Rejecting" the edit just to add some of the changes back into the post myself seems unfair to the user that suggested the edit, and it's clear the user cares about the post's quality, though they might have misunderstood some edit guidelines or some information in the post.  What's the better way to handle these situations?  . The first change is bad, the second is good.  Related:


I came across this sentence:  "His memory was like that of a baby."   I was wondering why the possessive "baby's" wasn't used and why "baby" is acceptable whereas the possessive form is required in this sentence:   "Ian's car was like that of his."


He had 4 sons. What is the meaning of this sentence?

He had 4 sons. Does this deliberately mean that the sons are dead now?


Browser doesn't recognize html files written with node file system

I'm building an application using React an Apollo 2 and I'm trying to write a script to generate static html files for server-side rendering.  I'm currently using this logic to render my React component on the server and it's working fine:  export default (Page) => (req, res) => {     const App = (         <ApolloProvider client={client(fetch)}>                              <Page />                      </ApolloProvider>     );      getDataFromTree(App).then(() => {         const data = {             html: ReactDOMServer.renderToString(App),             seo: { title: "Home", description: "" }         };         res.render("index", { data });     }); }   But I wanted to generate the .html files so I could serve them statically, without running this method every time. I tried to compile the result of renderToString to an .ejs file and then write to a file using fs, but it didn't work. This is the code:  const component = ReactDOMServer.renderToString(App); const template = ejs.compile(fs.readFileSync(path.join(__dirname, 'landing_template.ejs'), 'utf-8')); const html = template({ component });  fs.writeFile(     path.join(__dirname, "../views/landing.ejs"),     html,      err => {         if(err) console.log(err);         else console.log("done."); });   The file was written successfully but If I open my Page Source the part added by the compile method is grayed out and seems to be ignored:    I also tried just reading the file and replacing the string using .replace and inserting a dummy div, but it's always the same result.  // using compile const template = ejs.compile(fs.readFileSync(path.join(__dirname, 'landing_template.ejs'), 'utf-8')); const html = template({ component });  const template = ejs.compile(fs.readFileSync(path.join(__dirname, 'landing_template.ejs'), 'utf-8')); const html = template({ component: "
teste
" });  // using readFile const template = fs.readFileSync(path.join(__dirname, 'landing_template.ejs'), 'utf-8'); const html = template.replace("<%- component %>", component);  const template = fs.readFileSync(path.join(__dirname, 'landing_template.ejs'), 'utf-8'); const html = template.replace("<%- component %>", "
teste
");  // maybe this is the problem? fs.writeFile(     path.join(__dirname, "../views/landing.ejs"),     html,     { encoding: "utf8" },     err => {         if(err) console.log(err);         else console.log("done."); });     I guess the browser is not recognizing this new text as HTML and failing to parse it. Does any one know a way I can make this work?  Thanks!


When I try to load expl3.sty from l3kernel the following error appears "! Missing = instered for ifnum.

I have installed and deleted the package several times with Miktek. I am writing in TexMaker editor for Windows. Also it does not work for WinEdt. The code is.  \documentclass[article] \usepackage{expl3} \begin{document} 111 \end{document}   The complete error reads  ! Missing = inserted for \ifnum. to be read again  l.283 } I was expecting to see `<', `=', or `>'. Didn't. ) ! Missing = inserted for \ifnum. to be read again   Thanks in advance


Accessing context variable (a list) in Django Views in Javascript HTML

I am facing some problems trying to access a context variable in my django views in my html javascript. I would like to access 'unclean' context which is a list and USE IT AS A LIST in my html script tag. Any help is appreciated. Thank you. Below are some of my code:  views.py  context = {    'unclean' : unclean        }


Ignored user in chat messes up user list

When an ignored user joins a chat room, their avatar is shown in half size in the user list to the top right. The container that contains the avatar retains its full height, so everything is pushed down by half an avatar's height on my screen when an ignored user joins.    More specifically, the ignored class seems to be added on the user container. It resizes the avatar, but the height of the container is governed by #present-users > .present-user, #present-users .more, which makes the height 32 pixels. I believe .present-user.ignored should set the height to 16px to match .ignored .user-gravatar32.


Pandas: How to discover the encoding of characters

I was attempting to convert all the characters in a Pandas column into strings, in this manner:  df_sample1['county'] = df_sample1['county'].astype(str)   While doing so, I encountered the following error:     UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in   position 38: ordinal not in range(128)   A similar problem has been discussed on  and the suggested solution included "You have to discover in which encoding is this character at the source."  I don't know what encoding my column is in - I was expecting only  ASCII Character given that they are county names. Is there a way to find out which characters are the truant ones, and if so, can I convert them all to UTF-8? Or in general, how do I find out what the encoding of the characters is?


The center of a direct product of groups and Abelian groups

Claim. The center of $(G_1\times G_2,\star)$ is $Z(G_1)\times Z(G_2)$, where $Z(G_i)$ is the center of $G_i$, for $i=1,2$.  I'm trying to figure out a proof for this and got myself a little bit confused. My thought process was to show that if the two groups $G_1$ and $G_2$ are Abelian groups that the direct product of these two Abelian groups is also Abelian, then the claim would follow by the result of them being Abelian.   If that is the correct way to approach this proof, what does this then say about the center of the direct product if they happened to not be Abelian groups? Is that possible? Does it mean there only exists a center if it's Abelian?  Sorry if my question is kind of stupid. Just trying to understand the problem and how to proceed.


How to change the width of remote serial console?

I followed  and now I'm able to connect to serial line. Now I want to change the width of terminal. How can I do this by using screen or minicom or something else?


VSE: disable snapping to frames for sound?

Is there any way to move a sound strip or slide its content without snapping it to the frames? It makes no sense for a sound strip to behave like that.


What can I do to solve this NullPointerException error in Java?

I am making this very basic profile creator in java and as I was debugging I kept ending up with a NullPointerException error. I don't know how to solve this and I would appreciate it if someone could please tell me how to solve this. Here is the code: import java.util.Scanner;  public class Creator {     String[] userNames;     int[] birthYears;     String[] genders;     String userCommand;      Scanner scanner1 = new Scanner(System.in);     Scanner scanner2 = new Scanner(System.in);      public void create()     {         System.out.println("What is your name?");         userNames[0] = scanner1.nextLine();         System.out.println(userNames[0]);          System.out.println("In what year were you born?");         birthYears[0] = scanner1.nextInt();         System.out.println(birthYears[0]);          System.out.println("What is your gender?");         genders[0] = scanner2.nextLine();         System.out.println(genders[0]);     } }  In the main method, I just created a Creator object and used it to call the method create(). The code never gets past the "What's your name?" block of code and every time I run it I end up with this error: Exception in thread "main" java.lang.NullPointerException at Creator.create(Creator.java:19)  The error is referencing to this line: userNames[0] = scanner1.nextLine();  I have no idea how to fix this and I would appreciate it if someone told me how to fix it.


Word for who professes discrimination based on culture

A person that professes discrimination based on race is a racist.  What is the word for defining a person that discriminates based on culture (pretty sure it is not culturist) or social habits?  E.g., Eric Cartman doesn't like hippies, he discriminates against them. But a hippie is not a race, an ethnic, a religion or a nationality. It is a life style not related to any of these.


Convert titlesec titleformat to KOMA Script

Im quite new to Latex and i have created a document template based on several code snippets. The result looks not that bad but now i switched to KOMA Script scrreprt class. Not my titlesec part is not any longer "supported".   I have the following code:   \titleformat{\chapter}[display]% {\usekomafont{chapter}}% {\vspace{-8em}\raggedleft{%         {\color{chaptercolor}%             \rule[-5pt]{1mm}{5cm}}\quad%         {\color{chaptercolor}             \fontsize{60}{60}\selectfont\thechapter}%     }% }% {-1.8em}% {\parbox[b]{\dimexpr\textwidth-3em\relax}{\raggedright#1}}% [\phantomsection]   \titlespacing*{\section}{0mm}{8mm}{3mm}   I would like to create an equivalent result with KOMA-Script compatible code. Can anyone help me to rewrite the sections?  I think the only part that must be changes is \titleformat{\chapter}[display]% and \titlespacing*{\section}{0mm}{8mm}{3mm} true?  Im thankfull for every input you give to me.  Thank you.  Here is how it should look like:


When should \cdot be used to indicate multiplication?

Is this purely personal style, or are the generally accepted guidelines? Clearly, when dealing with numbers either $2 \cdot 2$ or $2 \times 2$ is needed, but within formulae where an absence of an operator implies multiplication, when should a \cdot be used? I tend to use it only sparingly if it aids in grouping. (Of course, barring the cases where it's required, e.g. a dot product.)


Is that true that not every function $f(x,y)$ can be writen as $h(x) g(y)$?

If not, why? Here $h$ and $g$ are two general function.


How to ignore invalid geometries in performing spatial join in QGIS 3.0?

I am attempting to perform a very simple join attributes by location between two shapefiles in the same projection. When I run it, I get an error message indicating that the algorithm could not be run because of errors in geometry. It further states that I can ignore errors by choosing that option. But I don't see that option in the window to run spatial join.  Error message [running a French QGIS here]:     L'entité (1771) a une géométrie non valide. Veuillez réparer la   géométrie ou modifier le paramètre de traitement dans l'option   "Ignorer les fonctionnalités d'entrée non valides". Execution failed   after 2.58 seconds   Screenshot of options for running join by location:    One of the shapefiles (the target shapefile) has features where one polygon is located inside the other polygon. (When I run validate geometry, the error messages look like this: Le polygone 2 est à l'intérieur du polygone 0 [Polygon 2 is inside polygon 0].) This isn't an geographical "error" in the sense that a single feature in the database has some smaller polygons within larger polygons that should be considered a single feature and should not be considered as two separate features in the data table. Thus, I can't "fix" the geometry error without creating a database error. As mentioned in this , this is common in my file and difficult to work around.


The condition is not checking. Java, AWT

I am writing a small login form at Java using AWT. Faced a problem while checking user input for login: I need, when user inputed "admin" as login and "password" as password, program outputting "Succes!", but anyway I get "Wrong!" message, even if inputed data meet the condition.    So, what should I do so that the program checks the condition correctly?  Code:  import java.awt.*; import java.awt.event.*; import javax.swing.*;  public class Login extends JFrame {     private JButton button = new JButton("Confirm");     private JLabel label1 = new JLabel("Login:");     private JTextField login = new JTextField("", 8);     private JLabel label2 = new JLabel("Password:");     private JTextField pswrd = new JTextField("", 8);      public Login() {         super("Please log in");         this.setBounds(100, 100, 250, 100);         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);          Container container = this.getContentPane();         container.setLayout(new GridLayout(3,2,2,2));         container.add(label1);         container.add(label2);         container.add(login);         container.add(pswrd);         button.addActionListener(new ButtonEvent());         container.add(button);     }      class ButtonEvent implements ActionListener {         public void actionPerformed(ActionEvent e) {             if (login.getText() == "admin" && pswrd.getText() == "password")             {                 JOptionPane.showMessageDialog(null, "Succes!", "Output", JOptionPane.PLAIN_MESSAGE);             }             else             {                 JOptionPane.showMessageDialog(null, "Wrong!", "Output", JOptionPane.PLAIN_MESSAGE);             }         }     }      public static void main(String[] args) {         Login app = new Login();         app.setVisible(true);     } }


how to password protect a folder in ubuntu 18.04

I am new and using Ubuntu 18.04.1 LTS. I want to protect a particular folder with a password. so that no one can access the folder without the password. Is there any software or process to do so? I tired cryptkeeper but I failed to install with following error:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package cryptkeeper


Prove that for any $n \in \mathbb{N}$, $\sum_{k=1}^{n} \frac{1}{k^2} < 2 $

The method I used: Mathematical induction I am aware that $\sum_{k=1}^{n} \frac{1}{k^2} = \frac{\pi^2}{6}$ Wanted to find a general proof than going from that level of specificity. It is trivial to prove the case for $n=1$ We need to prove $$\sum_{k=1}^{p} \frac{1}{k^2} < 2 \implies \sum_{k=1}^{p+1} \frac{1}{k^2} < 2 \tag{1}$$ Assuming $$\sum_{k=1}^{p} \frac{1}{k^2} < 2 \tag{2}$$ Then $$\sum_{k=1}^{p+1} \frac{1}{k^2} < 2 + \frac{1}{(p+1)^2} \tag{3}$$ We know, $$p \geq 1 $$ $$ p+1 \geq 2 $$ $$ (p+1)^2 \geq 4 $$ $$ \frac{1}{(p+1)^2} \leq \frac{1}{4} $$ $$ 2+\frac{1}{(p+1)^2} \leq 2+\frac{1}{4} \tag{4}$$ By inequalities 3 and 4: $$\sum_{k=1}^{p+1} \frac{1}{k^2} < 2 + \frac{1}{(p+1)^2} \leq 2+\frac{1}{4} \tag{5}$$ Therefore we get $$\sum_{k=1}^{p} \frac{1}{k^2} < 2 \implies \sum_{k=1}^{p+1} \frac{1}{k^2} < 2 +\frac{1}{4} \tag{6}$$ Anything I've missed to reach statement 1?


How many solutions exists for this equation?

$$x_1 + x_2 + x_3 + x_4 = 28$$ I tried to solve it with generating functions. Is it correct to get to the form of   $${(1 + x + {x^2} + {x^3} + ....)^4}$$  and this equals to:  $${(1 - x)^{ - 4}}$$  and then solve it with binomial expansion ? Is this correct ?  every question similar to "how many solutions are axsist to this equation?" can be solved this method?  I know there're a lot of methods and manipulations for this kind of problem. Can you confirm it's the right path for this kind of problems?  It's like distribute 28 things into 4 objects.  This is why I used generating functions.


I want DE. If I am attacking a village which has 1000 DE available for loot, do I get it all if I destroy his de storage or do I also need to destroy his de drill and Town hall. What if I use lightning spell on his storage only and demolish it completely... How much I will get?


Last name typo on a Saudia Airlines flight from Bangalore BLR to Los Angeles LAX

I have my last name typed in wrongly(xxx Tumakuru instead of xxx yyy Tumkur)  while I was booking the ticket on Saudia for my trip on OCt 1, 2017 from BLR to LAX.  The reason being my passport was recently received from a Visa stamping and the sticker on the back of the passport had Tumakuru written on it, I saw that and used it. Tumakuru is how it's spelled on my passport for my place of birth but my last name on passport has Tumkur (they both mean the place name). Also while booking the ticket on Saudia I couldn't add the second part in my first name as the system showed an error due to spaces in first name so I skipped adding the second word.   Has anyone had issues travelling from Bangalore with a slightly misspelled name and a missing middle name on the boarding pass but all these present on the passport?   Thx...


Prove that $SL(2,\mathbb{R})$ acts transitively on the upper half plane

I want to prove $\mathrm{SL}(2,\mathbb{R})$ acts transitively on the upper half plane $\mathbb{U}:=\{z\in \Bbb C\ |\ \mathrm{Im}(z)>0\}$ by  $$z\longmapsto \dfrac{az+b}{cz+d}.$$  Is it enough to say that since $\begin{pmatrix} a & b\\c & d \end{pmatrix}\in \text{SL}(2,\mathbb{R})$ is always invertible, for $x,y\in \mathbb{U}$, we can always find a matrix $A\in \text{SL}(2,\mathbb{R})$ such that $Ax =y$?  I feel like there should be more to it.


Sum of Determinants of two Orthogonal Matrices

If $A$ and $B$ are two orthogonal matrices of rank $n$ and $Det(A)+Det(B)=0$,then prove or disprove that $Det(A+B)=0$.  My attempt: Since the two matrices are orthogonal the value of their determinants will either be $1$ or $-1$. But how to prove that $Det(A+B)=Det(A)+Det(B)$


This is the definition used to numerically calculate the maximal Lyapunov exponent: $$ |\delta Z(t)| \approx e^{\lambda t} |\delta Z_0| $$ $$ \lambda \approx \frac{1}{t} \ln\left(\frac{|\delta Z(t)|}{|\delta Z_0|}\right) $$ Consider a system to be bounded in a region of space, like two balls moving inside a room, where we want to see if the dynamics are chaotic or not. We start recording the trajectory of a ball and after a good amount of time, we go back and start from a tiny dislocated initial position. We see that the trajectories diverge and we may conclude that the system is chaotic. Like the following:  But here is what I do not understand. If the room is bounded, then these two trajectories cannot get arbitrarily far from each other and their distance would not be larger than the size of the room. So in the formula for the Lyapunov exponent, $t$ would get larger and larger over time so $\lambda$ would become smaller and finally zero, no matter if it was positive at first. Would this mean the Lyapunov exponent decays with time in bounded systems? A double pendulum is a bounded system, two trajectories (angles) can not be more than $\pi$ apart at any moment, so does its Lyapunov exponent decay to zero over time?


Is ‘folk’ a plural form for ‘person’ or not?

In "I Keep Six Honest Serving Men" of Kipling there is a line:      But different folk have different views;   Notice, the word folk here is obviously in plural, but has not -s ending. Kipling had no need to change the grammar in that point - folk instead of folks does not change neither rhythm nor rhyme.  That means, he felt this variant as more suitable for plural here. So, it is absolutely English, I only have to understand it.  But in dictionaries I see:     folk or folks [PLURAL] INFORMAL people in general (Macmillan)    gives more interesting variant:     folk (also folks) informal [treated as plural] People in general.   So, according to the last, ‘folk’ can be considered as plural of ‘person’. But in the same dictionary, or in several others that I checked, (including paper big Macmillan or Concise Oxford), in the article for ‘person’ you will never see ‘folk’ as a plural form for it.   The question  has nothing in common with my question. The mentioned problem is about the plural form of the word folk. It is NOT the case of the mentioned Kipling's line. And it is already written in the question. (Obviously, somebody reacts to the titles not reading the content.) I am talking about the folk as plural for the person -the problem never touched in that other question.


I am using simple package \bibliographystyle{plain}. However, the bibliography get printed with lines as seen in the image.    My code is below   \cleardoublepage  \pagenumbering{arabic}  \include{theory/intro} \include{theory/Pre-Processing} \include{theory/Processing} \include{theory/post-processing}  \include{theory/LKW-Stone-Trapping} \include{theory/Results_Comparision} \include{theory/Hypothesis_Evaluation} %\include{theory/result_discussion} \include{theory/Conclusion_and_Outlook_2} \include{files/Appen_2} \bibliographystyle{plain} \bibliography{bibliography} \end{document}   I did not use any packages above.  How can I remove those lines? What steps should be taken?


If $a_n\leq b_n$, then $\lim \sup a_n \leq \lim b_n$

Hello I want to make sure my work is correct!  Suppose that $\{a_n\}$ and $\{b_n\}$ are sequences such that $a_n \leq b_n$ for all $n $ and $b_n \to b$. Prove that $\lim \sup a_n \leq b.$    Let $\epsilon > 0$ be given. Choose an $N$ s.t. $|b_n-b|<\epsilon$ for $n\geq N$ where $b = \lim \sup b_n$.  $a = \lim \sup a_n$.   Proof by contradiction: If $a \geq b$, then, since $a_n\leq b$,   $b\leq a\leq b_n$, meaning $|b_n-a|<|b_n-b|<\epsilon $, implying $b_n \to a$. This is a contradiction,   therefore, $a\leq b$.


Is It Possible to NSLog C Structs (Like CGRect or CGPoint)?

I want to be able to debug C structures without having to explicitly type every property that they consist of.  i.e. I want to be able to do something like this:  CGPoint cgPoint = CGPointMake(0,0); NSLog(@"%@",cgPoint);   Obviously the '%@' won't work, hence the question.


I want to install clamav. I follow the  by doing $ sudo apt-get install clamav  After confirming with y, the following happens at the end of the installation process: Selecting previously unselected package clamav. Preparing to unpack .../clamav_0.102.4+dfsg-0ubuntu0.20.04.1_amd64.deb ... Unpacking clamav (0.102.4+dfsg-0ubuntu0.20.04.1) ... Setting up libtfm1:amd64 (0.13-4) ... Setting up libclamav9:amd64 (0.102.4+dfsg-0ubuntu0.20.04.1) ... Setting up linux-image-5.4.0-45-generic (5.4.0-45.49) ... Setting up clamav-base (0.102.4+dfsg-0ubuntu0.20.04.1) ... id: ‘clamav’: no such user Setting up clamav-freshclam (0.102.4+dfsg-0ubuntu0.20.04.1) ... Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service → /lib/systemd/system/clamav-freshclam.service. Setting up clamav (0.102.4+dfsg-0ubuntu0.20.04.1) ... Processing triggers for systemd (245.4-4ubuntu3.2) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... Processing triggers for linux-image-5.4.0-45-generic (5.4.0-45.49) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.4.0-45-generic /etc/kernel/postinst.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 12: /etc/default/grub: snd_hda_intel.dmic_detect=0: not found run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.4.0-45-generic (--configure):  installed linux-image-5.4.0-45-generic package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  linux-image-5.4.0-45-generic E: Sub-process /usr/bin/dpkg returned an error code (1)  What is going on? Is clamav not being maintained for Ubuntu 20.4 anymore?


Completed master level study in bachelor second year can i do direct Phd

Can one do Phd in mathematics directly after completing bachelors in mathematics


Executing echo Command Using Launcher Icon

I am controlling the fan speed on my notebook using acpi and the command:  echo level n > /proc/acpi/ibm/fan    where level n is a number between 1 and 7.   It works, and after I changed the permissions of the fan file I was able to write to it from a terminal screen.  However, when I create a new launcher to do this from the desktop it doesn't work. The above line is in the 'Command' section and I have set permissions so that the icon is executed as a program but when I double-click on it nothing happens. There are no error messages displayed.  Is there something special about using the echo command in a launcher or am I doing this totally wrong?


How can I suggest the DM stop trying to kill us?

We have been playing a game for a while now, and while the game itself is quite enjoyable, the only problem is that the DM seems to be aiming to kill us. Sort of.  For example, there have been three situations where a player has been caught in a fight that there was no way they could manage:   One PC (a Rogue with incredibly low AC and HP) was targeted by an enemy forcing everyone to leave the room, and locking them out, then grappling the PC and slowly draining the life from him (dealing HP and CON damage). Another PC was forcibly injected with Bugbear blood (being an elf, started to turn)*, and the time between being infected and finding a cure effectively turned him into one. It got to the point where the player was still in control of the character, but he was attempting to kill the rest of the party. We did finally manage to restrain him and force the cure on him. A third PC, while having decided to go ahead of the party, was attacked by a mimic. This player had worse AC and HP than the Rogue, and was quickly downed. In the same situation, my character nearly fell to his death (though I believe that was due to a misunderstanding, rather than the intent of the DM himself).   We all agreed (while not directly to the DM) that the third situation was incredibly harsh. There was no way the player could deal with that situation on his own, and it would have been better if he had removed the monster completely, or moved it to a situation where more players could have been involved.  The DM is not inexperienced (he has been DMing for almost 30 years), so we believe that this is his aim. 90% of the time, even if we get good rolls, we all end up a lot more worse for wear, and the other 10%, one or more of us is incapacitated, and needs to be revived. It's starting to have an effect on the group.  How can we talk to the DM, and what might we suggest in hopes of changing his attitude toward “killing” player characters?    *Turns out this is plot device devised by our DM alone, I don't think there's anything in the rules about this.


Does 0% APR mean I'm not charged interest?

If a credit card says you get something like, "0% APR for the first 12 months," does that mean you can get by with paying only minimum payments and not have any accrued interest build up?  If so, wouldn't it be better if they just advertised it as being of no interest?  If not, what's the difference  between 0% APR and whether or not you pay interest?


How do I set a password for guest login?

I'd like to set a password for the guest account.  How can I do this? (This question is not answered under the similar question in this forum, see below.)  The last time this was asked on this forum it was suggested that there was no reason to set a password on guest as it was equivalent to set up a new, regular account with a password.  It seems to me that this is not the same thing.  The guest account is secure by default, limits access to the file system and is self-cleaning, regular accounts are not.  By self-cleaning I mean that it leaves no loose files, no internet history, no potential viruses (I know, Linux has none), etc. since it all takes place in temporary space.    It is good to have the guest account protected, too, in some situations. For example, if you live in a group house and have a common computer you may want to share freely with people you know but otherwise limit expensive internet access. Not everyone has the same situation.  One suggestion last time was to "Open a terminal ... Then type passwd and the user name. So it should be passwd guest"  This didn't work in my hands, even with sudo. Linux replied "user 'guest' does not exist"  Am I doing something wrong?  If Ubuntu is not designed to allow a password on the guest account then, in the spirit of Linux, if you think this is a reasonable thing to do, let's look for a workaround.    Anyone?  (I'm a newbie, so let me know where I'm being naive.)