How to apply material selectively on a single object for a downloaded 3d model

Hi I am new to blender and am trying my hands on creating a house from different 3d models imported from freely available websites.  So I downloaded a few study rooms and bedrooms from . However now when I try to apply texture specifically to (say) a bedsheet, it is commonly applied to all the walls and the floors and a lot of furniture around.  How do I unlink all these objects and apply materials specifically to individual components of the house?


For which values of $x$, $0$°$≤x \cos x$?

For which values of $x$ such that  $0$°$≤x<360$°, we have: $\sin x > \cos x$?   The answer is "When $45$° $< x < 225°$, the $y$-coordinate of the point on the unit circle is greater than the $x$-coordinate", but I don't understand why this is the answer and how the book got it.


how to show first 2 and last 2 line of all the files whose name starts with “file”. with Command in ubuntu


How to generate or smooth really large procedural terrain?

I'm currently trying to generate a really large procedural terrain in WebGL. I use a quadtree for LOD and plan to generate 1 heightmap for each quadtree node (terrain patch).  The heightmaps are generated on the GPU and with such a large terrain, 32 bits floats don't have enough precision for the smaller terrain patches. This results in terrain becoming "blocky".  uses bicubic surfaces to smooth things out.  I thought a lot about it and the only other solution I have is to generate the smallest terrain patche on the CPU (with double precision) instead of the GPU, but continue to generate the larger patches on the GPU. But this doesn't seem like the best thing to do. Does someone have an idea for a better solution?  Also, I can't use double precision on the GPU because I'm using WebGL, which doesn't support it.  Thanks a lot :)


Why can't Vulcans lie given that it is logical to tell a white lie?

Adult humans know it is logical to tell white lies in some situations. Every one of us does that. See what happened in the movie "Star Trek Into Darkness" when Spock refused to lie and wrote truthfully in his report how Kirk broke the Prime Directive. Kirk did it to save Spock's life. For saving his friend's life, Kirk lost his ship and job as Captain of the Enterprise because his Vulcan friend cannot lie.   Kirk: Where I come from, if someone saves your life, you don't stab him in the back. Spock: Vulcans can not lie.  Why can't Vulcans lie when it is a logical thing to do sometimes? Why can't Vulcans, with all their powers of logic, cannot see the logic?


Unable to clean ^[(B control characters from log file

I am trying to clean all color control characters from log file. I am able to clean all other control characters except ^[(B . Please help me to clean this control character also.  I am using these combination to clean control characters.  cat $LOGFILE | sed -e 's/\x1b\[[0-9;]*m//g' > $LOGDIR/Temp.txt


Debian: How does apt verify downloaded packages?

I can see from my firewall that apt is downloading packages using http. Considering this is an insecure protocol, how does apt verify the integrity of the downloaded package?


Lost in the introduction discussing probability/likelihood

I have some questions about the following paragraph which introduces a masters level course.  In this unit we consider the Frequentist (i.e. counting) approach to statistical inference and computing the probability/likelihood of the data $y$ given the parameters $\theta$, $P(y|\theta)$. Under this approach we use Maximum Likelihood Estimation (MLE) to estimate the parameters of probabilistic/likelihood models, i.e. $\hat{\theta} = > arg max_{\theta}P(y|\theta)$. If we are dealing with a known probability distribution of the data then we use $P(y|\theta)$, but in general we are interested in the probability $P(y|x, u, \theta)$ where $u$ can be 'predictor' variables and $x=x(u,\theta)$ can be intermediate variables dependent on $u$ and $\theta$. In this unit we primarily focus on the cases of $P(y|\theta)$ and $P(y|u=x, \theta)=P(y|x, \theta)$.  Q1) I understand that big P means a discrete distribution. Does this statement only apply to discrete distributions? Q2) Why is it talking about likelihood of data? I understood likelihood to pertain to parameters as in MLE?


Let $f:\mathbb{N}\to \mathbb{N}$ be bijection such that $\sum_{n=1}^{\infty} \frac{f(n)}{n^2}< \infty$

Let $f:\mathbb{N}\to \mathbb{N}$ be bijection such that  $$\sum_{n=1}^{\infty} \frac{f(n)}{n^2}< \infty$$  Then numbers of such bijections is zero, or one or finitely many but more than one or infinite such bijections. I think there will be no such bijection . Am i right ? if yes how to prove that ? any hint


how to execute a command after resume from suspend?

I've got a script that is executed in order to have suspending/resuming working in my laptop. Then I have another series of xinput,xkbset and xmodmap commands that are executed when I initiate a session to have two-finger scrolling and keyboard shortcuts set up. When I resume from suspend, two-finger scrolling and my keyboard shortcuts won't work. I need to manually execute the commands in the second file again. How can I add those to the suspend/resume script to have this done automatically? See below:  suspend/resume script  /etc/pm/sleep.d/20_custom-ehci_hcd  #!/bin/sh #inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19 #...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug     # tidied by tqzzaa :)  VERSION=1.1 DEV_LIST=/tmp/usb-dev-list DRIVERS_DIR=/sys/bus/pci/drivers DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd HEX="[[:xdigit:]]" MAX_BIND_ATTEMPTS=2 BIND_WAIT=0.1  unbindDev() {   echo -n > $DEV_LIST 2>/dev/null   for driver in $DRIVERS; do     DDIR=$DRIVERS_DIR/${driver}_hcd     for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do       echo -n "$dev" > $DDIR/unbind       echo "$driver $dev" >> $DEV_LIST     done   done }  bindDev() {   if [ -s $DEV_LIST ]; then     while read driver dev; do       DDIR=$DRIVERS_DIR/${driver}_hcd       while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do           echo -n "$dev" > $DDIR/bind           if [ ! -L "$DDIR/$dev" ]; then             sleep $BIND_WAIT           else             break           fi           MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))       done       done < $DEV_LIST   fi   rm $DEV_LIST 2>/dev/null }  case "$1" in   hibernate|suspend) unbindDev;;   resume|thaw)       bindDev;; esac   touchpad two-finger scrolling and keyboard shortcuts script  xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1 xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 8 1 1 xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 10 xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 32 8 setxkbmap -layout gb xkbset m xkbset exp =m xmodmap -e "keycode 135 = Pointer_Button2"


The editor should be able to convert multi-line blocks to lists

Let's say I write up a bunch of rows and decide I want to make it a list:  Item 1 Another Item Something Else   When I mark each line and click the "List" button (doesn't matter which one), the Editor takes all three rows and makes one list item out of them, ignoring the line-breaks.  The output will simply be:  - Item 1 Another Item Something Else   It would be far more useful and less buggy if it would instead create one list item for each line:  - Item 1 - Another Item - Something Else


Number of Derangements of the word BOTTLE

I am wondering how to calculate the number of derangements for the word BOTTLE. I understand how to actually do the formula for derangements already. My issue is what do you do with repeated letters. Obviously, I will be over counting if I do the typical formula. Makes me think it is the number of derangements with the letter T in their original space, but I am not sure. Can anyone help, as I am wondering if I am supposed to use PIE to solve this. Thanks.


Is it possible to composite multiple .exr files into a single .exr file?   For example, if one .exr file contains several passes and another contains only one pass could they be combined to contained all in one file?


Why does an X-Wing have this name when there is no "X" in the Aurebesh alphabet?

I was reading about , the standard language in Star-Wars. This lead me to the article about , the alphabet that is used to write it, and that is used all over the Star-Wars franchise.    I noticed that there is no X shaped letter in this alphabet. This seems to cause a problem for the name of the , which got its name from the "X"-shape of it's four wings.   The out of universe reason behind that is obvious, but is there a in universe explanation for the name of the X-Wing, and the others [letter]-Wing starfighter, which take in to consideration the Aurebesh alphabet?


How to create the case with an attachment and topics using Test class?

I want to create a case which has an attachment, Billing Account, and topics. Given below is the code from my Test Class:  Scenario: Once user submit the case request and ask for approval. The request goes to the Manager for approval, once the request approves, an email goes to Legal team with an Case attachments in an email.  Topic__c tc = new Topic__c(Name ='My New topic'); Attachment att = new Attachment(Name = 'sample.pdf');  Case c = new Case(Origin = 'Phone',                           Subject = 'New Testing',                           Department__c = 'XXXXXXX', Priority = 'Normal',                           Topic__c = tc.Id,                           Risk_Approval__c = true); insert c;   I am getting the below error:     System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseTrigger: execution of BeforeInsert   My Trigger class:  trigger sendEAttachmentsInMail on Case (before insert, before update){  for(Case casevar : Trigger.new){          Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();          mail.setBccSender(false);         mail.setUseSignature(false);         mail.setTargetObjectId(casevar.Id);         mail.setTemplateId('XXXXXXXXX');         mail.saveAsActivity = false;        //Set email file attachments         List<Messaging.Emailfileattachment> fileAttachments = new List<Messaging.Emailfileattachment>();         for (Attachment a : [select Name, Body, BodyLength from Attachment where ParentId = :casevar.Id])         {         // Add to attachment file list         Messaging.Emailfileattachment efa = new Messaging.Emailfileattachment();         efa.setFileName(a.Name);         efa.setBody(a.Body);         fileAttachments.add(efa);         }         mail.setFileAttachments(fileAttachments);       //Send email         Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });          } }


Deleting all files except a specific one?

How do I delete all files that start with 'labtest,' but keep the file 'labtest' itself undeleted?  I was trying  rm labtest*[!"labtest"]   But that didn't work out too well.    Question 5  Enter a command to delete all files that have filenames starting with 'labtest',  except 'labtest' itself, from the current directory (Delete all files starting with 'labtest' followed by one or more characters).  You entered: rm *labtest?![labtest] Please try again.


I installed MikTex on my PC.  Now I want to create a document. Always if I want to include tikz I get the following Error:     File `tikz.sty' not found. \author   But MikTex didn't tried to install tikz. Because of that I tried to install tikz with the console manually.  MikTex says it worked. But If I trie to compile the document the same error apears. So I searched in my filesystem. But I can't find tikz.  There is the same problem If I want to use pgfplot.  Why does MikTex doesn't install pgf and tikz anymore? And how to solve this problem?


How can Adobe Acrobat Reader be installed in Ubuntu 15.04?

It's getting silly that there doesn't seem to be alternative that can deal with JavaScript-driven vector animations in PDFs, but c'est la vie: how can Adobe Acrobat Reader be installed in Ubuntu 15.04?  Roughly what I did previously was something like the following:  # Get AdbeRdr9.5.5-1_i386linux_enu.deb. sudo apt-get -y install gdebi sudo gdebi --non-interactive AdbeRdr9.5.5-1_i386linux_enu.deb sudo apt-get -y install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns* libxml2:i386 libxslt1.1:i386 libstdc++6:i386   This approach doesn't seem to work anymore. I see errors like the following for dependencies:  The following packages have unmet dependencies.  libgtk2.0-0:i386 : Depends: libcups2:i386 (>= 1.6.2) but it is not going to be installed   and like the following for installation of the package itself:  This package is uninstallable Cannot install 'libgtk2.0-0:i386'   Could anyone suggest an approach for installation?


Why centrifugal force (not centripetal force) is considered while deriving the effect of rotation of Earth on "g"?

As I was trying to work out the expression for the apparent "g"-in case of the rotation of Earth-I was considering the centripetal force (m$w^2$r) and the weight (mg) all the time, thinking these were the forces that were acting on the body.     But later I found out that it should have had used centrifugal force instead of centripetal force. But why? We should be considering the forces acting on the body right? And it's the centripetal force that is acting on the body (with direction towards the center of the small circle).


Why the 20.04.1 is still not available in the update manager?

Why the 20.04.1 is still not available in the update manager ?


What does it mean a value is statistically significant and when does it occur? For example, at a 5% level of significance, do p-values above or below 0.05 indicate significance?


The equation of a family of circles passing through two given points

We have to write the equation of a family of circles passing through two given points $(x_1,y_1)$ & $(x_2, y_2)$   From these points , I only know one circle that is  $$(x_1-x)(x_2-x)+(y-y_1)(y-y_2)=0$$  But now how Can I write other equations .


Using setminus notation with set elements

The "correct" way to write a set without a specific element is as follows: $S \setminus \{s\}$  But in some contexts this is cumbersome to write/type or read, and it detracts from the flow of the writing. Is it acceptable to just use $S \setminus s$?  Edit: By "cumbersome" i mean they look bad when you're trying to inline formulas in LaTeX.


Seeing below error. Any suggestions please? sudo apt install xpdf  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  xpdf : Depends: libpoppler90 (>= 0.80.0) but it is not installable E: Unable to correct problems, you have held broken packages.


How to walk second by second a range of hours? MYSQL


If Macbook has been wiped, will "find my iPhone" still work?

Possible Duplicate:          My MacBook was stolen last week, and I have just realized that I had set up iCloud and "find my iPhone".  It is currently showing up as off-line. I do not know whether it will connect if the thief has already wiped the system. I've set up to get an email alert if it connects.  If my MacBook has been wiped by a thief will the "find my iPhone" app still work to locate that hardware?


Finding all integers $n$ such that $\left(\mathbb{Z}/n\mathbb{Z}\right)^\times$ has exponent $2$

This problem is from a past qualifying exam.  Definition A group $G$ has exponent $e$ if $g^e=1$ for all $g\in G$.  Problem     Let $G=\left(\mathbb{Z}/n\mathbb{Z}\right)^\times$. Find all the integers $n$ for which $G$ has exponent $2$.   My work so far: Need to find $n$ such that $\overline{b}^2=\overline 1$ for $\overline{b} \in G$. So I need to find $n$ such that $n \mid (b^2-1)$ and $(b,n)=1$. Well, how do I now go about finding all the $n$'s. I tried a few examples like $n=1$ etc. But then I still have to deal with $b$. This kind of problem is new to me. Can somebody kindly show me what I've done wrong/right here?  May be suggest a way to go about finding these $n$'s.  Thank for your help.


The section/subsection starts enumeration with a 0.X.X

I am not able to understand how to disable the feature that makes the enumeration of the sections as shown within the following image:    As you can see the enumeration is preceded by a 0.  The package used are:  \documentclass[12pt]{report} \usepackage[a4paper]{geometry} \usepackage[myheadings]{fullpage} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{graphicx, wrapfig, subcaption, setspace, booktabs} \usepackage[T1]{fontenc} \usepackage[font=small, labelfont=bf]{caption} \usepackage{fourier} \usepackage[protrusion=true, expansion=true]{microtype} \usepackage[english]{babel} \usepackage{sectsty} \usepackage{url, lipsum} \usepackage{tgbonum} \usepackage{hyperref} \usepackage{xcolor} \usepackage{floatrow} %\input{./acronyms.tex}   \newcommand{\HRule}[1]{\rule{\linewidth}{#1}} \onehalfspacing \setcounter{tocdepth}{5} \setcounter{secnumdepth}{5}   Any Idea on how to fix this?


Is there a way to produce this "little planet"-type self portrait in a single-exposure?

The BBC News article  shows this ultra wide angle and likely "little planet"-type of self portrait. I can't understand how this effect is produced.  While example images given in in answers to a previous question  show only the ground at the bottom:   These show the photographer and another person - there were only two people on this magnetic meteor-hunting arctic expedition. There's no evidence of stitching or movement of the subjects during multiple exposures The formats are rectangular (though that could be imposed for publication)   Could these have been imaged with a single, extremely wide format lens and a single exposure?  If so, what kind of lenses, optics, or other equipment are used to do this? While it seems that stitching several images together might be the solution, would the subjects simply hold very still as a drone rotates? Or is there a pole supporting the camera that's been edited out (a bit like the Mars Rover "selfies")? I've cropped a bit of the photo - there seems to be something in one person's hand.         Most of the space rocks in collections were picked up in the Antarctic. KATHERINE JOY / UNIVERSITY OF MANCHESTER


Do we say and write 21 / 31 / 41 item or itemS?

I've been wondering, since these example numbers end with 1, isn't it natural to use the following noun in its singular form?  From what I've been seeing around on the web this does not seem to be the case. All numbers except for 1 are followed by plural nouns.  In some languages you do need to use the singular form with the numbers ending with 1.  How is it supposed to be in English?


I'm trying to compile my LaTeX file (an article), but I keep getting a Windows API error: my synctex file is busy - the filename has been changed and appended with (busy).  I'm using TexMaker to compile the file, but it occurs in TeXStudio as well.  When I create a new file I can compile it once before this issue occurs.  The API error is     pdflatex: Windows API error 4350:  This file is currently not available for use on this computer. pdflatex: Data: Report4.synctex.gz


Why does the outside temperature feel cooler when the humidity is low as opposed to average or higher humidity levels?


Fixed width table with variable width columns

What I'm trying to achieve is a fixed width (full width of the page or column) table with variable column widths. Here's what I've got:  \usepackage{tabulary}     % Table Environment \newenvironment{dndcustomtable}[1]{   \vspace*{8pt}   \fontfamily{lmss}\selectfont %Select font   \rowcolors{1}{bgtan}{commentgreen} % Alternate colors   \noindent\tabulary{\textwidth}{#1} } {   \endtabulary   \vspace{8pt plus 1pt}   \noindent }  % Usage \begin{dndcustomtable}{LLL} lorem ipsum &   foo bar &   baz \\ lorem ipsum lorem ipsum &   foo bar &   baz \\ lorem ipsum &   foo bar &   baz \\ lorem ipsum &   foo bar lorem ipsum&    baz \\ \end{dndcustomtable}   What I'm getting:   Desired Result:   Any ideas?


correlation between categorical(ordinal) and discrete(continuous) value

I am doing my bi variate analysis  but right now looking to see the correlation between  my atributes  some are categorical 5 levels and others amount of money.  how can I see the correlation between them ?  do I have to create class for my money amount?


Block Diagram of Transmitter and Receiver with Channel

I am trying to create a dia gram like that.   I am here till now, can someone help?  \documentclass[12pt,a4paper]{article} \usepackage{circuitikz} \usetikzlibrary{positioning} \usetikzlibrary{shapes,arrows} \tikzset{block/.style = {draw, fill=white, rectangle,               minimum height=3em, minimum width=2cm}, input/.style = {coordinate}, output/.style = {coordinate}, pinstyle/.style = {pin edge={to-,t,black}} } \begin{document} \begin{tikzpicture}[auto, node distance=2cm,>=latex'] \node[block](tx){Radio\\transmitter}; \node[antenna] at (tx.east) {}; \node[block,right = 5cm of tx](rx){receiver}; \node[antenna,xscale=-1] at (rx.west) {}; \end{tikzpicture} \end{document}


How to Show that $\frac{1}{\sqrt{n}}\|A\|_2\leq \|A\|_1\leq \sqrt{n}\|A\|_2$

I am trying to show that   $$\frac{1}{\sqrt{n}}\|A\|_2\leq \|A\|_1\leq \sqrt{n}\|A\|_2.$$ I start with the definition $$ \|A\|_2=\max_{v\neq 0}\frac{\|Av\|_2}{\|v\|_2} .$$ I know that $\forall v\in\mathbb{R}^n$, $\|v\|_2\leq\|v\|_1$. But I do not know how to relate this property to the question at hand. For instance, is $\|Av\|_2\leq\|Av\|_1$?


What is the method to tell the console to wait for x seconds. Is there a built in method or must I make one.


Are there any positive integers such that $\frac{x}{y} + \frac{y}{z} + \frac{z}{x} = 1$?

Are there any positive integers $x,y,z$ such that $$\frac{x}{y} + \frac{y}{z} + \frac{z}{x} = 1?$$ Prove/Disprove.   I've plugged in random positive integers for $x,y,z$ and I have not been able to get the equation to equal $1$.


How to provide a package bugfix if the package maintainer does not respond?

After a question here, a bugfix was developed for the tikz-timing package (subpackage advnodes).   I posted this question and also it's solution as an issue on the original code repo, but go no response. I additionally wrote a email but got no response.   How can I update the package?  Moreover, there is a new feature which was also developed at tex.se, that could be added to tikz-timing.


Sometimes, I come across this weird usage of the definite article with the word 'Ukraine'. Keep in mind, it's a peer-reviewed scientific journal. Is it grammatical, and what is the origin of this unusual practice?  As this paper will show, states such as Georgia, the Ukraine and the Baltic States have been punished with supply interruptions and higher prices after their governments turned toward the West.  (from )


What combinations of realism, non-locality, and contextuality are ruled out in quantum theory?

Bell's inequality theorem, along with experimental evidence, shows that we cannot have both realism and locality.  While I don't fully understand it, Leggett's inequality takes this a step further and shows that we can't even have non-local realism theories.  Apparently there are some hidden variable theories that get around this by having measurements be contextual.  I've heard there are even inequalities telling us how much quantum mechanics does or doesn't require contextuality, but I had trouble finding information on this.  This is all confusing to me, and it would be helpful if someone could explain precisely (mathematically?) what is meant by: realism, locality (I assume I understand this one), and contextuality.  What combinations of realism, locality, and contextuality can we rule out using inequality theorems (assuming we have experimental data)?


Simple method the show that a group of order 15 is cyclic

How can i show with quite simple methods that a group of order 15 is cyclic?


In Mathematical Logic, What is a Language?

I've been reading about mathematical logic and computability theory, but I'm somewhat confused on one note: what exactly is a language? What does it mean when I am told "let $\langle 0, +, \leq \rangle$ be a language"? I looked this up everywhere I could, but haven't found a satisfactory/clear answer.


Prove that: $(f(x))^{2} + (f'(x))^{2} \leqslant \max(a,b)$ where $(a,b) \in \mathbb{R}^2$

Let $f\in C^2(\mathbb{R},\mathbb{R})$.   Assume there exist  $(a,b) \in \mathbb{R}^2$ such that  $\forall x \in \mathbb{R}, (f(x))^{2} \leqslant a$ and $(f'(x))^{2} + (f''(x))^{2} \leqslant b$.   Prove that: $$(f(x))^{2} + (f'(x))^{2} \leqslant \max(a,b)$$ for all $x \in \mathbb{R}$.   I tried to use taylor lagrange with the integral form of the remainder but I did not succeed.  Ì really don't know how to tackle  the problem.   Any suggestion, Hint (or Answer) will be very helpful,  Thank you in advance,


Please I need a help about co-authors roles?

I am a PhD student. I thought about 4 main top interesting objectives in my area. I also have done 3 of them totally alone. I have two main supervisors. They only give me a very general comment and feedback such as the English language (they ask me to edit my writing). They also asked me to increase the number of observation of my data. Sometimes they asked me to do something which is not accepted in my topic. I mean it is wrong. I then discuss that with them. I have done the first paper. I did all the computation, Literature review, main idea of my paper, result and everything in the paper.   Now one of my supervisors asked me to join him as a co-author. He said that due to his feedback and comment.!! I sware his comments are very very general.   Is that acceptable? Must I include him as a co-author? Did he have a right to be a co-author in my paper?   Please help me?


The [ifs] tag is used for 2 separate things

I think  might correspond to IBM's  according to this .   But currently out of the 27 question tagged with , most of it have to do with the 's "Internal Field Separator".  What should be done here?   create a new tag for "Internal Field Separator" e.g. , and keep the IBM's under ? create a new tag for "Integrated File System" e.g. , and keep the other one under ? just remove the  tag from the  questions?


Why is my text not being added to the textarea after the second change event?

I am trying to add text in the the <textarea> when an on change event occurs.   It works perfectly fine in the first change event. But when I delete the text inside the text area and preform another change event it does not work add the text anymore?  I am really confused on why its not working. Below is a snippet of what I am trying to accomplish.     $("#test").on("change", function() {    $("#textarea_test").text("Hello");  }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="test" id="test">   <option value="Test1">Test 1</option>   <option value="Test2">Test 2</option>  </select>  <textarea name="textarea_test" id="textarea_test" cols="30" rows="10"></textarea>


Hello I'm new in blender api. I know python good but I can't start to make some changes for example with Screw modfier. How to edit the source on this type or try to write own version of this modfier. I found definition in:  2.71/scripts/startup/bl_ui/properties_data_modifier.py   I found in doc   but cant find in blender files the class implementation.


Today when I turned on my macbook I could see that the Desktop Background has been changed to Yosemite picture. Then right after clicking on Change Desktop background... the background changed to the one I had, which was a green background with a dog in the center, except for the dog picture, it was only the green background. After this I clicked again on Change Desktop background... and it changed again to the Yosemite picture. Finally I went to finder file to see where the picture of the dog was, and when I clicked to see it, it was opened but at the same time 2 more pictures were opened. After all this, I clicked again on Change Desktop background... but nothing happened. The Yosemite background didn't change this time. All the time when this happened, my mac didn't have connection to internet. Why? Is my mac hacked? Does it have a virus? What do I do? Notes.  Every once in a while I see a message on the upper RHS (in the corner of the screen) telling me that I should update something related to the system but I always click on later and then the message vanishes.  Update More details of the situation above. 3 pictures were opened by itself at the same time. I did not chose to open 2 of them, had I chose them then they weren't be displayed in the way they did because there is a standard way when one open several pictures at once. There 3 pictures displayed like  if I were selected 1, then the other and then the other within milliseconds. That above plus the change of desktop background, it's 10000% strange. I know that is stupid to think that I am hacked but have I another option than to this so? So, how can I know if someone,  from another part in the world, is in my macbook? Footnote. Related question of mine


Negative ICC value. Wrong test or wrong interpretation?


What exactly does sudo apt-get -f install do?

I have seen it before. I am just wondering what exactly does it do?


The definite article before superlative degree

What are the special cases when we can't use "the" before superlative degree? I'd like the answers with proper explanations. Some of the examples:    He is most likely to succeed. It is fairest of all methods. I have read many books. "Against all odds" is best of all.


Finding languages such that $L_{1} \subseteq L_{2} \subseteq L_{3}$ where $L_{1}, L_{3} \notin \mathbb{R}$, $L_{2} \in \mathbb{R}$

I am struggling to find such languages $L_{1}$, $L_{2}$, and $L_{3}$ such that  $$ L_{1} \subseteq L_{2} \subseteq L_{3} $$ where $L_{1}, L_{3} \notin  \mathbb{R}$ and $L_{2} \in  \mathbb{R}$.  I know they exist, I need help finding them.


Does one "drive" a motorcycle or "ride" it?

When you are the one steering the motorbike/motorcycle, are you driving the motorcycle, or riding the motorcycle? I am asking because someone tried to correct my status update. Here's my status and the comment:  Today, after 6 years, I drove a motorcycle on a long route. Great Feeling. Loved it! Comment: you don't drive a bicycle or motocycle... You ride a motorcycle... You drive a car...  Is that right?


Imagine that you have two typewriters on the other side of the galaxy. Their typebars are connected by ropes (stretched to the maximum), so anything you type will instantly appear at the second typewriter.  Are the sentences information? If so, why not send information faster than light? If not, I'd at least ask if such a transfer is actually immediate.    Thank you very much.


How do I play a Keynote slideshow without going fullscreen?

I am running Keynote 6.5.3 on OS X 10.10.5.  Is there a way to play a slideshow in Keynote in non-fullscreen mode?  Edit: I have edited my question slightly, since the suggestion to convert my Keynote files to Quicktime does not answer the question I had intended.  Edit2: I would prefer to not have to deal with the complexity of multiple file formats and apps for the simple task of reading through a large set of Keynote files, some of which I need on the screen at the same time due to diagrams etc.


Help with simple macro for ubuntu/centOS

I have always used autoIt for windows for this but i need to do it on ubuntu or centOS now. Basicly what i want is to send an mouseclick or button after an randomized time example:  ~  HotKeySet("{ESC}", "Terminate") ; hotkey for stopping script  While 1  Sleep(Random(120000, 180000)) ;waits random between 2 and 3 minutes before sending a left mouse click   MouseClick("Left")  Sleep(Random(60000, 120000)) ; wait random between 1 and 2 minutes to send O  Send("O")  Sleep(Random(10000, 20000)) ; waits random between 10 and 20 seconds to send a left mouse click  MouseClick("Left") WEnd  Func Terminate()  Exit EndFunc   ~  is there an program wich can do this? i have looked around but i couldn't find something i can understand. Thanks in advance


Sous vide air bubble, still safe to eat?

I am making this  for pulled pork, planning to do 24 hours at 75 deg C. After coming home from work, I discovered I did not suck the air out properly and there is a big bubble in the bag, causing it to float to the top and for the top of the meat to be not submerged properly. I have now put a bowl on top of it to weigh it down for the next 12 hours. Will it still be safe to eat? Will it taste good?


Getting relative links between two paths

Say I have two paths: <source_path> and <target_path>. I would like my shell (zsh) to automatically find out if there is a way to represent <target_path> from <source_path> as a relative path. E.g. Let's assume  <source_path> is /foo/bar/something <target_path> is /foo/hello/world  The result would be ../../hello/world Why I need this: I need  like to create a symbolic link from <source_path> to <target_path> using a relative symbolic link whenever possible, since otherwise our samba server does not show the file properly when I access these files on the network from Windows (I am not the sys admin, and don't have control over this setting) Assuming that <target_path> and <source_path> are absolute paths, the following creates a symbolic link pointing to an absolute path. ln -s <target_path> <source_path>  so it does not work for my needs. I need to do this for hundreds of files, so I can't just manually fix it. Any shell built-ins that take care of this?


Python if, else and pass through list of files

I have created a script which includes the below.  The idea is to go through a list of excel files (Countries) in a folder and then, if it exists already to pass through and ignore, if it does not exist then to create it. In both cases, it will then move on to the rest of the script. I want to create it this way because I do not want to overwrite the other countries files every time as there will be data dating back a few months in each file (so overwriting will lose this). I would like to just create a new file for when one new country gets added to the list.  I cannot just create a file manually, as the rest of the script takes into account all files.  if ''.join(Countries) in path:     pass else:     for x in Countries:         workbook = xlsxwriter.Workbook(path + x)         worksheet = workbook.add_worksheet(sheetname)          FirstSheet = ([firstMes])          row = 0         col = 0          for y in (FirstSheet):             worksheet.write(row, col, y)             row += 1          workbook.close()


How to draw modules homomorphism diagram?

This diagram is in Fuller's book "Rings and Categories of Modules". Could you help me to draw this diagram? Thank all!


Can any Christian action truly be morally good?

If someone does a morally good action because they fear God, which is a selfish motive, surely this means it is not a morally selfless action. In the same way, if any morally good action is not spontaneous, is it truly morally good? Jesus telling people to show god's love and those people then going out and feeding the hungry, means those helpers have an ulterior motive and may have not helped if Jesus had commanded otherwise. So in conclusion: are all Christian selfless acts of kindness truly selfless or even morally good? Can you be selfish and morally good?


I'm trying to find explicit form of volume of "deformed torus":  Suppose we have a curve $\gamma(t)$ in $\mathbb{R}^n$, $t\in[0,1]$. The curve closed and smooth : $\gamma(0)=\gamma(1)$,$\gamma'(0)=\gamma'(1)$. I'm defining "deformed torus" as $T_r=\{x\in\mathbb{R}^n \mid |\gamma(t)-x|\leq r\}$ for some $t$.  I guess that volume must be something like $\approx A r^{n-1}$.   So I understand that I need to integrate volume form. I always do it by pullback volume form in parameter space and integrate then. But here I have difficulties with entering any parametrization. Could you help me here?


I submitted my paper in a hijacked journal

I encountered a huge problem, I submited my paper in a . I sent them several times about the result of reviewing process. The email answer was:     Dear Author   Please clarify what exactly is your problem regarding your paper.   We are at your service and ready to assist.        Regards    Ciencia e Tecnica Vitivinicola Journal Editorial      They told me also if I have submitted successfully I will get the review answer at most after 2 weeks, but I have the proof of a successful submitted paper. Now what should I do? I want to resubmit it in another journal, I have an examination in the summer and I need a published paper in my resume.


Problem on a subfield being dense in $\mathbb C$

Let $K$ be a subfield of $\mathbb C$ not contained in $\mathbb R$. Is $K$ always dense in $\mathbb C$?   I have studied to show a set $A$ is dense in $B$  we will have to show that for any element $x$ in $B$ there exists a sequence in $A$ converging to $x$.But dont know what should be my approach here?


I know that $\int{\frac{1}{x}}dx$ is simply $\ln{(x)}+c$ (-which is clearly unrelated to the problem but I just thought I would share anyway) but I am not sure how to approach $e^{x{^2}}$. Perhaps a substitution?


(Ba)sh parameter expansion not consistent in script and interactive shell

I encountered the following issue with parameter expansion while trying to write a script for setting the metric of my VPN's default route. For testing purposes, I've simplified the code to the following: vpn_route='default via 10.106.160.1 proto static metric 50'  echo ip route del "$vpn_route" echo ip route add "${vpn_route/metric +([0-9])/metric 101}" echo ip route add "${vpn_route/%metric */metric 101}"  Once I remove the echo commands, this should  delete the existing default route Create a new route with the metric <number> part replaced by metric 101  For testing, I added a second variant with a less specific pattern. If I execute this code in an interactive bash shell, it works as expected: $ vpn_route='default via 10.106.160.1 proto static metric 50' $ echo ip route del "$vpn_route" ip route del default via 10.106.160.1 proto static metric 50 $ echo ip route add "${vpn_route/metric +([0-9])/metric 101}" ip route add default via 10.106.160.1 proto static metric 101 $ echo ip route add "${vpn_route/%metric */metric 101}" ip route add default via 10.106.160.1 proto static metric 101  However, if I execute the script, I get the following: $ cat lower-vpn-priority.sh #!/usr/bin/env bash  vpn_route='default via 10.106.160.1 proto static metric 50'  echo ip route del "$vpn_route" echo ip route add "${vpn_route/metric +([0-9])/metric 101}" echo ip route add "${vpn_route/%metric */metric 101}"  $ bash lower-vpn-priority.sh ip route del default via 10.106.160.1 proto static metric 50 ip route add default via 10.106.160.1 proto static metric 50 ip route add default via 10.106.160.1 proto static metric 101  Can anyone explain to me what's going on here? :)


Tokenization settings in Salesforce marketing cloud

I am having encrypted data in SFDC stored and using encryption/decryption gateway(cipher cloud) i am using the data to be transferred to marketing cloud, Using the tokenized setting , Email field will be used to get the data against that field from salescloud to marketing cloud, what settings needs to be done in Salesforce marketing side ? Kindly help with screenshot ,  Thanking you!


walk-through, walkthrough, or walk through?

Referring to something that means a step-by-step tutorial, which is the correct word / term ?  walk-through  walkthrough  walk through  I'm under the impression that the dash version "walk-through" is correct as that seems to be the most commonly used.  Most spell checks flag "walkthrough" as not a word, so I'm pretty sure that's out.  Most grammar checks to not seem to flag the spaced version "walk through", however, so I'm not 100% sure.  Thoughts on this?  -- EDIT -- Not sure why somebody linked to a post about "well-being" vs "wellbeing" clearly not the same word(s) I'm asking about.


computer crashed OS reloaded: recover mysql

Due to a stupid mistake of mine I had to reload the OS (xubuntu 16.04). Before doing this I backed up /var/lib/mysql folder to a safe place. (I booted up from live CD and was able to access files on the hard disk.) However, now I'm unable to restore my database. After installing the same version of mysql I copied back the backed up /var/lib/mysql folder but then the server fails to start. When I go back and use the original, virgin /var/lib/mysql folder (which I retained in renamed fromat) then I can use the sql server but of course with empty database. I googled and researched answers, but finally resorted to ask for help. Could this be due to some apparmor or other "under-the-hood" peculiarity? Important: my backup is fresh, the newly installed mysql server is the same version of the one prior to the crash. It should work, shouldn't it?


If you use the bobblehead stand or magazine racks do I assume correctly that they still work for you?

I am probably unnecessarily concerned, but if you use the bobblehead stand or magazine rack instead of keeping them in your inventory, do you still receive the benefits of the items? It would be counterproductive if that were not the case. I have not seen any thing that states they work the same on the stand/racks as on your character so just  wanted to ask. Thanks!


I'm new to Swift! I'd like to know how I can use custom fonts in my swift application in Xcode 6.


Meta.*.stackexchange.com sitewise certificate issue

There is a bug where I see a privacy error on all meta.foo.stackexchange.com sites. For example, if I try to enter meta.retrocomputing.stackexchange.com into my browser, I get this warning:  Can someone check this out?


Prove subspace of finite dimensional vector space is finite dimensional

Prove that any subspace, W, of a finite-dimensional vector space V must also be finite dimensional.


What's the probability that a sequence of coin flips never has twice as many heads as tails?

I gave my friend  as a brainteaser; while her attempted solution didn't work, it raised an interesting question.  I flip a fair coin repeatedly and record the results.  I stop as soon as the number of heads is equal to twice the number of tails (for example, I will stop after seeing HHT or THTHHH or TTTHHHHHH).  What's the probability that I never stop?  I've tried to just compute the answer directly, but the terms got ugly pretty quickly.  I'm hoping for a hint towards a slick solution, but I will keep trying to brute force an answer in the meantime.


Is it acceptable to post an answer to my own question?

I spent many hours researching on Stack Overflow for help on a particular programming challenge. I didn't find an answer close enough to what I was looking for. I was going to post a new question, but as I was writing it up I kept thinking of new approaches. Eventually I was able to write a function to solve the problem.  My question is, for the benefit of the community, can I post a question and the answer immediately?  Is this frowned upon? Can I accept my own answer?  A secondary question, and maybe unrelated to Meta, is there a place on Stack Exchange to share code snippets? In this case my question relates to VBA and regular expressions.


So here's the problem - I have 3 COC accounts on 3 devices (iPhone 4 and 2 iPads). All use different Apple IDs. My main base is on the iPhone and it always said welcome back 'username' - which I assumed meant it was linked to that Game Center account. So I was out the other day and our clan was warring - I logged out of my account and signed in on one of my other accounts (Note: I have never done this before but I figured it'd be alright since all three were under different Apple IDs and linked to their respective game centers). Once I signed out of the second account and logged back in under my main account, it did not give me the option to load my main base back in. Even though it still shows my Game Center as my main account, it loads the base from the other accounts. I am lost! I've spent 2 years on my main account and it is a high level TH10. Can anyone give me guidance on how to fix this?


Unresolved external symbol in template class?

In attempt to compile to code, I get the following error:  Error   5   error LNK1120: 2 unresolved externals   C:\Users\---\VSworkspace\Work\Debug\AbstractTypes.exe   AbstractTypes Error   3   error LNK2019: unresolved external symbol "private: void __thiscall Vec<int>::create(void)" (?create@?$Vec@H@@AAEXXZ) referenced in function "public: __thiscall Vec<int>::Vec<int>(void)" (??0?$Vec@H@@QAE@XZ) C:\Users\---\VSworkspace\Work\AbstractTypes\main.obj    AbstractTypes Error   4   error LNK2019: unresolved external symbol "private: void __thiscall Vec<int>::uncreate(void)" (?uncreate@?$Vec@H@@AAEXXZ) referenced in function "public: __thiscall Vec<int>::~Vec<int>(void)" (??1?$Vec@H@@QAE@XZ)    C:\Users\---\VSworkspace\Work\AbstractTypes\main.obj    AbstractTypes   Here is the code  Vec.h  #pragma once #ifndef GUARD_VEC_H #define GUARD_VEC_H #include <memory> #include <cstddef> //FOR: size_type  template<class T> class Vec {     public: //interface         typedef T* iterator;         typedef const T* const_iterator;         typedef size_t size_type;         typedef T value_type;          Vec() { create(); }         explicit Vec(size_type n, const T& val = T()) { create(n, val); }         Vec(const Vec& v) { create(v.begin(), v.end()); }          Vec& operator = (const Vec&);         ~Vec() { uncreate(); }         T& operator[] (size_type i) { return data[i]; }         const T& operator[] (size_type i) const { return data[i]; }          void push_back(const T& t) {             if (avail == limit)                 grow();             unchecked_append(t);         }          size_type size() const { return avail - data; }          iterator begin() { return data; }         const_iterator begin() const { return data; }          iterator end() { return avail; }         const_iterator end() const { return avail;  }     private: //implementation         iterator data;         iterator avail;         iterator limit;          std::allocator<T> alloc;          void create();         void create(size_type, const T&);         void create(const_iterator, const_iterator);          void uncreate();          void grow();         void unchecked_append(const T&); };   #endif   Vec.cpp  #include "Vec.h"; #include <memory> template <class T> void Vec<T>::create() {     data = avail = limit = 0; }  template <class T> void Vec<T>::create(size_type n, const T& val) {     data = alloc.allocate(n);     limit = avail = data + n;     uninitialized_fill(data, limit, val); }  template <class T> void Vec<T>::create(const_iterator i, const_iterator j){     data = alloc.allocate(j- i);     limit = avail = uninitialized_copy(i, j, data); }  template <class T> void Vec<T>::uncreate() {     if (data){         iterator it = avail;         while (it != data)             alloc.destroy(--it);         alloc.deallocate(data, limit - data);     }     data = limit = avail = 0; }  template <class T> void Vec<T>::grow() {     size_type new_size = max(2 * (limit - data), ptrdiff_t(1));     iterator new_data = alloc.allocate(new_size);     iterator new_avail = uninitialized_copy(data, avail, new_data);      uncreate();      data = new_data;     avail = new_avail;     limit = data + new_size; }  template <class T> void Vec<T>::unchecked_append(const T& val) {     alloc.construct(avail++, val); }   *Main.cpp**  #include "Vec.h" #include <iostream>  int main(){     Vec<int> vector;     return 0; }   I did a bit of research on this error and might have something to do with that fact that this is a template class. I pray that it is not a silly mistake which is likely. All help appreciated, thank you.


Can anybody explain which are the optimization algorithms used in latex, that make the difference with wysiwyg editors, like msword?


It should be very basic, but I'm struggling to understand the solution. I'm trying to prove that to group $\mathbb{Z}_{n}$ is cyclic. Everywhere I tried to find a solution I came across of the saying      $\mathbb{Z}_{n}$ is cyclic because it has a generator $1$ (meaning $\mathbb{Z}_{n} = \langle 1 \rangle$).   I understand the meaning of generator, but I don't understand why the generator is $1$. Probably I'll feel stupid when I'll finally understand. Why $\mathbb{Z}_{n} = \langle 1 \rangle$ when $\mathbb{Z}_{n}$ is the Sum group of integers modulo $n$.


How come the number variable getting its value where is it defined?

In the below function assigning the multiplier function on twice variable so the factor parameter 2 should be replaced by 5 & how the number getting defined? The value of number is 5 and factor is 2 but how? Please explain.    function multiplier(factor) {   return number => number * factor; }  let twice = multiplier(2); console.log(twice(5));


Why is voltage same across a parallel circuit? I mean what makes the voltage remain same across two resistors connected in parallel?  If an electric heater  is connected in parallel with a bulb and if the bulb is then switched off, will the power dissipated in the heater increase?


I am facing a problems with this question : Prove that If x and y are integers and x + y is odd , then x−y is odd. , any suggestions ?


How to play an original DVD (.VOB file) in VLC after copying it to my PC?

I have copied an entire DVD to my PC but when I try to play it in VLC it does not play perfectly and sticks every time. When it is played directly i.e. from the disc, it is played perfectly but in Windows Media Player. Does VLC not support original DVDs and .VOB files? Is there any way to play .VOB video files in VLC?


More transcendental numbers than natural numbers

Are there any simple proofs that obtain this result? I haven't been able to find one online.


Water + Wheat + Salt + Baking, is necessary / sufficient for bread?

I'm having a hard time to distinguish "necessary and sufficient" in this case.  I think it's necessary. For bread to exist, all the above elements are necessary.  I also think that is sufficient. Just have these elements that bread comes up.  Am I right?


Yesterday I installed Ubuntu 12.04 for the first time (I've always been a Windows user) as I was at the office and I had the Ethernet connected. At home I only use WI-FI. When I started Ubuntu it didn't connect or try to connect with any network. By google, I found the command rfkill and these are the results: 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no  1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no  2: dell-wifi: Wireless LAN     Soft blocked: yes     Hard blocked: yes  3: dell-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no  Well, the WI-FI is blocked by hardware, so I tried the command rfkill unblock 2 and it didn't work. As I didn't know even my Broadcom model, I found lspci and the result for the WI-FI is: 0e:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)  My laptop is a Dell Vostro 1520 with WinXP also installed. Thanks for the help! PS: It also may help that when I enter System Settings > Network (it may be different, my Ubuntu is in Spanish) "Airplane Mode" is connected. When I try to unlock it, it goes to its original place after I close that window and open it again and when I reboot.  Update added from comment to an answer The Broadcom "Additional Drivers" are turned on and enabled.


Let $G=\mathbb{Z_{10}}\times \mathbb{Z_{15}}$. Then find the number of elements.

Let $G=\mathbb{Z_{10}}\times \mathbb{Z_{15}}$. Then,    $G$ contains exactly one element of order $2$. $G$ contains exactly $5$ element of order $3$. $G$ contains exactly $24$ element of order $5$. $G$ contains exactly $24$ element of order $10$.   I know how to calculate number of elements when external direct product of groups is given. But in this case I don't know how to proceed. Please give me some hints. Thanks.


Is there a specific module or a definied mechanism to connect a given external data base to a view?    settings.php  $databases = array (   'default' => array (     'default' => array (       'database' => 'd3js',       'username' => 'root',       'password' => '',       'host' => 'localhost',       'port' => '',       'driver' => 'mysql',       'prefix' => '',     ),   ),    'NewDataBase' => array (     'default' => array (       'database' => 'NewDataBase',       'username' => 'username',       'password' => 'password',       'host' => '131.188.76.40',       'port' => '3306',       'driver' => 'mysql',       'prefix' => '',     ),   ),  );   This is the module that is related to the view.   /**   * @file   * D3 views module file.   */   /**   * Implements hook_views_api().   */   function d3_views_views_api() {    return array(    'api' => 3,    'path' => drupal_get_path('module', 'd3_views') . '/views',   );  }   /**   * Implements hook_theme().   */ function d3_views_theme() {     return array(    'views_ui_style_d3_options_form' => array(    'render element' => 'form',    ),  );  }  /**  * Implements template_preprocess_views_ui_style_d3_options_form().  */  function d3_preprocess_views_ui_style_d3_options_form(&$vars) {    drupal_add_css(drupal_get_path('module', 'd3_views') . '/css/views_ui_style_options_form.css');  }  /**  * Theme the form for the table style plugin.  */  //declarition of the variables related to form (tree)  function theme_views_ui_style_d3_options_form($variables) {  $form = $variables['form'];   $output = drupal_render($form['library']);   $header = array(  t('Field'),  t('Display'),  t('Aggregation'),  t('Data type'), );  $rows = array();  foreach (element_children($form['columns']) as $id) {  $row = array();  $row[] = drupal_render($form['columns'][$id]['name']);  $row[] = drupal_render($form['columns'][$id]['display']);  $row[] = drupal_render($form['columns'][$id]['aggregate']);  $row[] = drupal_render($form['columns'][$id]['type']);   $rows[] = $row;  }   $output .= '<fieldset><legend>Data</legend>' . theme('table', array('header' => $header, 'rows' => $rows)) . '</fieldset>';   $output .= drupal_render_children($form);  return $output; }   This module also has and I didn't know exactly where to connect to the database.


I'm trying to make an orbit animation and I did so by using this video:   When the keyframes were set I went to graph editor. There I used the key option to make the movement linear by using the interpolation mode, and I add a cycles modifier like this to keep the motion going[ for both objects (small and big sphere, I'm not refering to the objects in the centre). The difference is that I can't seem to get the big sphere to keep on turning after the offset of the object has achieved 100% (one round around the orbit) while the little one just keeps going until the end of the animation. The orbits are made with BezierCircles and I noticed that the orbit with the ongoing animation also had an animation:   When I go to the graph editor I see the following differences:   I also noticed that the correct working orbit in the dope sheet editor has an keyframe at the start of the timeline while the incorrect working orbit does not. Maybe somebody in here knows what I'm missing or how to fix the problem so I can keep them both spinning even after they reach an offset of 100%?


How can I prevent analysis paralysis when choosing spells?

Recently I played a game of D&D 5th Edition. While we liked the simplicity and made characters quickly, there was one big bottleneck: the Wizard (and to a lesser extent, the Cleric) kept having analysis paralysis over the spell choices!  Most of my players were more familiar with 4th Edition in which a Wizard or Cleric had only a handful of spells to choose at first level (without supplement books). We really didn't have analysis paralysis because it was generally "here's four powers, pick one of them". We've also played some systems with moderately more complicated spell systems (e.g. Savage Worlds), but didn't really have analysis paralysis there either.  However in D&D 5th Edition, there are many more spells (about a dozen cantrips and another dozen first level spells). It seems that we've come across analysis paralysis with spell selection pretty hard. This has exhibited itself in several ways:   After reading the dozen cantrips & dozen 1st level spells, picking which ones should be purchased as players were constantly waffling between each one. They kept wondering if they would regret not taking a certain spell because it would be expensive to purchase later. Out of all those we purchased, picking which spells to prepare for the day. They kept wondering if they would regret it if they needed a spell if they came across a situation.   After about 15 minutes of waffling back and forth with their spell selection in what felt like  (to the annoyance of the Fighter and Rogue who had been ready to go for a while), we threatened to just make them randomly choose spells if they couldn't decide (they finally did pick, but kept feeling like they might have made the wrong choice).  The only difference I see between this system and others is the amount of spells, but perhaps there are other aspects too, like complexity of spells. At any rate,  what can we do in the future? How can we prevent choosing spells from leading to analysis paralysis?


Active transformation and passive transformation of a scalar field

For the Lorentz transformation $x \to x'=\Lambda x$,  the active transformation is $\phi(x) \to \phi'(x)=\phi(\Lambda^{-1}x)$  and the passive transformation is $\phi(x) \to \phi'(x)=\phi(\Lambda x)$.  I know that the active transformation changes the field and the passive transformation changes the coordinate.  But how can I understand the difference between these two equations, especially the second equation for a passive transformation?


Find all positive integer that $2^{2^n}+5 $ is a prime number.

Find all nonnegative integer that $2^{2^n}+5 $ is a prime number.  For $n=0$ we have $7$ - correct For $n=1$ we have 9 - false For $n=2$ we have 21 - false For $n=3$ we have 259 ...  Maybe any ideas how to do it in general?


Is it intentional that profile website links aren't nofollowed?

Pretty much exactly as the title says, the website link you can put into your profile isn't rel='nofollow'ed.  Is this intentional, or should this be fixed?


Why don't cyclists wear all-encompassing motorcycle-style helmets?

It is possible to get a helmet that covers your entire head and face, and in theory would protect you against more kinds of falls. In particular, Why don't bicyclists wear them, and why do motorcyclists wear them?   I'm not asking whether helmets are a good idea in general. (Please try to answer this with complete answers, rather than the single-point style of the currently running helmet thread.)


How to use /testfor command on a specific location 1.9

I'm making a custom map and I needed some help from you guys! I'm trying to use the /testfor command in 1.9 and here's what I've tried:  /testfor @a[-47,10,-37,1]  /testfor @p[-47,10,-37,0]  /testfor @p[-47,10,-37]  /testfor @p[x=-47,y=10,z=-37,r=1]   Any suggestions? Thanks in advance! :)


Prove that $c_0$ is complete by showing that $c_0$ is closed in $l_\infty$.

Question: How do I show that $c_0$, which is shorthand for $C_0(\mathbb{N})$, is closed in $l_\infty$?  I've tried to work with the fact that if $(f_n)$ is a sequence in $c_0$ converging to $f \in l_\infty$, $|f(k)|\leq|f(k) - f_n(k)| + |f_n(k)|$ and that I can choose n so that $|f(k) - f_n(k)|$ is small independent of k. However, I don't get very far..  Thanks in advance!


How can I prove that a Gaussian integer is prime? For instance, how can I prove that $7+0i$ is a prime number?    On wikipedia, I found that a Gaussian integer is prime either if its norm is a prime in the real numbers, or if either the real or imaginary part of the number is zero, while the other part is of the form 4+3n, but this doesn't seem like a sufficient proof.


Convergence or divergence of the integral $\int\limits_{10}^\infty \frac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)} \,dx$

I want to calculate $  \displaystyle \int_{10}^\infty  \cfrac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)}dx = \lim_{R \to \infty}\int_{10}^R  \cfrac{e^x}{x^{1 + \frac{1}{x}} (e^x -1)} \, dx $. I think that it will diverge by bounding it below with $\frac{1}{x}$. So how do we calculate this integral?


I built the following circuit, a reference VIPer22A circuit.    It works fine but I have a little problem. It gives an electric shock on the secondary side. It's not a "line" shock (sticking your fingers into an outlet), but rather, a "tingly" shock if you touch the device while you're grounded.  It's the same thing that happens when you have an PC power supply not connected to mains earth.   The obvious solution would be, of course, to connect the secondary GND to Earth. The problem I have with this is that this is an audio amplifier, so I'd rather leave GND floating.  Is there a way to eliminate this shock? Capacitively connecting GND to EARTH? Or should I just connect my circuit's ground to Earth?


Show that there is no integer n with $\phi(n)$ = 14

I did the following proof and I was wondering if its valid. It feels wrong because I didn't actually test the case when purportedly $n$ is not prime, but please feel free to correct me.  Assume there exists $n$ such that $\phi(n) = 14$. Assume $n$ is prime. Then $\phi(n) = n-1$. Then here, n-1 = 14, so n = 15.  We know since Euler's totient function is multiplicative that $\phi(xy)$ = $\phi(x)\phi(y)$, so $\phi(15) = \phi(3)\phi(5)$, but alas $\phi(3)\phi(5) = 2\cdot4 = 8 \ne 14$. If $n$ is not prime a similar argument follows since we know then that $n$ must be composed of prime numbers by the prime factorization theorem.


What’s name of the planet from monsters inc?

Monster’s planet is Earth like planet from Monsters inc. their race is Mons. The monster went to Earth and scare the children. Every monster who growing, growing, and growing as well. In “History of the Monster World.”


How can I show:      $$\lim_{x\to\infty}x^{2/3}((x+1)^{1/3}-x^{1/3})=1/3$$   I've tried multiplying with its "conjugate" but that doesn't seem to help that much.  Thanks!


Does $n^{1000000}/2^{n}$ converge as $n\rightarrow+\infty$?  To solve this problem, I am only allowed to use elementary properties of limits. This is what I tried. For $n > 1000000$, one has that \begin{align*} \frac{n^{1000000}}{2^{n}} = \left(\frac{n}{2}\right)^{1000000}\times\left(\frac{1}{2}\right)^{n-1000000} \end{align*}  But then I get stuck. This is not homework. Could someone help me out?


Can I change the processor in a soledered-in laptop

I own a HP-Laptop db1005nv with an amd Ryzen 5-3500U is it possible to change the processor?(sorry for bad english,it is not my 1st language!)


Why does closing a tkinter child window with `frame.quit` exit my application?

I have a tkinter application with two windows: A MainWindow that is created on startup, and a ChildWindow which is opened after clicking a button.  The ChildWindow should close itself if the user presses a button. However, when I try calling frame.quit, it terminates the entire application instead.  import tkinter as tk  class ChildWindow:     def __init__(self, master):         self.top = tk.Toplevel(master)         self.frame = tk.Frame(self.top)         self.frame.pack()         # BUG: Clicking "Close" will fully exit application         self.close_button = tk.Button(self.frame, text="Close", command=self.frame.quit)         self.close_button.pack()  class MainWindow:     def __init__(self, master):         self.master = master         self.frame = tk.Frame(self.master)         self.about_button = tk.Button(self.frame, text="Open child window", command=self._open_child_window)         self.about_button.pack()         self.frame.pack()      def _open_child_window(self):         self.about_window = ChildWindow(self.master)  root = tk.Tk() lf = MainWindow(root) root.mainloop()   Screenshots:     Why does frame.quit exit my application? How can I close the child window without exiting?


Table with cell Inside cell (upper corner) and side annotations

I would like to create a table or array with the layout in the figure below, ideally with the nicematrix package wich allows the marginal annotations. I've read the package documentation and there is maybe a couple of solutions to my question one involves tikz and \CodeAfter, the other \newcolumntype{x}{!{\OnlyMainNiceMatrix{\vrule somelength}}}, I don't know enough of tikz, or how to you get the right somelength, Asking because of exhaustion, no more limit breaks :)  Some ugly latex with NiceArray $\begin{NiceTabular}{| c c| c c| c c | }[columns-width = 0.5cm,     cell-space-top-limit = 0.15cm, cell-space-bottom-limit= 0.15cm]  \hline   6 &  &  8 &  & 10 & \\ \cline{1-1} \cline{3-3} \cline {5-5}   & 0 & & 0 & & 150 \\    \hline   7 &  & 11 &  & 11 & \\  \cline{1-1} \cline{3-3} \cline {5-5}   & 175 & & 0 & & 0 \\    \hline   4 & & 5 & & 12 & \\  \cline{1-1} \cline{3-3} \cline {5-5}   & 25 & & 100 & & 150 \\   \hline \end{NiceTabular}$  With NiceTabular \begin{table} \label{lab} \centering \begin{NiceTabular}{@{}Wl{2.5cm}|Wl{0.5cm}Wr{0.5cm}|Wl{0.5cm}Wr{0.5cm}|Wl{0.5cm}Wr{0.5cm}|Wl{2.5cm}l@{}} \toprule & \Block{2-2}{A}  & & \Block{2-2}{B} & &\Block{2-2}{C} & &\Block{2- 2}{D}\\  & & & & & & & &\\ \midrule \Block{2- 1}{E} & 6 &  &  8 &  & 10 & &  \Block{2- 1}{5}\\ &  & -- & & -- & & 15 & &\\ \hline \Block{2- 1}{F} & 7 &  & 11 &  & 11 & & \Block{2- 1}{1}\\ & & 175 & & -- & & -- & &\\ \hline \Block{2- 1}{G} & 4 & & 5 & & 12 & & \Block{2- 1}{2}\\ & & 25 & & 100 & & 5 & &\\ \hline \Block{2-1}{Demanda} & \Block{2-2}{200}  & & \Block{2-2}{100} & &\Block{2-2}{300} & &\Block{2- 2}{600}\\  & & & & & & & &\\ \bottomrule \end{NiceTabular} \caption{Cap} \end{table}


The problem:  Consider the smooth quadric $Q=V(X_{0}X_{1}+X_{2}X_{3}+X_{4}^{2})\subset\mathbb{P}^{4}$ and the line $L=V(X_{0},X_{2},X_{4})$ contained in it. Prove that there exists a vector bundle $F$ on $Q$ with a section vanishing exactly at $L$.  The hardest thing is to get the transition matrices. Any help is appreciated.


I hear and read the term all the time, but what does it mean?   I just accidentally mounted a shared folder hosted on a remote computer.  The only difference I see is the presence of a desktop shortcut.  I was able to access the folder before I mounted it with no problems.  So What does it mean to mount something?


I wanted to try out rsh (or rshell?) - the old, insecure way of logging in remotely.   On my Ubuntu 11.04, it turns out an rsh command exists:  $ which rsh /usr/bin/rsh   ... however, it turns out it is a mere symlink for ssh:  $ ls -la `which rsh` lrwxrwxrwx 1 root root 21 2011-03-25 16:07 /usr/bin/rsh -> /etc/alternatives/rsh  $ ls -la $(readlink -f `which rsh`) -rwxr-xr-x 1 root root 391580 2011-04-02 12:16 /usr/bin/ssh   Does this "old" rsh exist in Ubuntu repositories - and if so, how do I install it? Also, is rsh also split in client and server packages - and if so, which packages are those?


Mid-80s novella about interstellar colony ship with a caretaker/troubleshooter awakened from suspended animation?

I recall this one from the mid-1980s.  I read it in one of the sci-fi magazines of the day, (i.e. Asimov, Analog, etc.), though I do not recall which one.  It was presented in parts, over several issues of the magazine.    The story is about an interstellar starship carrying colonists in search of a suitable planet. All the passengers and crew are kept in cryogenic suspended animation, except when a particular member is needed to handle something the automated systems cannot.     The protagonist is a human male who is, IIRC, either the captain or other senior authority.  He's revived several times by the ship's computer.  I can recall three specific instances where he is revived:   He is revived to check on a malfunction in another passenger's cryo-pod.   The compartment is currently at near absolute zero temperatures, so the protagonist has to put on a bulky foam envirosuit. He finds a young woman, who was frozen half-outside of her sleeping pod.  He revives her, and discovers she was caught outside the pod because she wanted to spend a few more moments up and about, and ignored the warnings that the automatic freezing process was about to begin.   The woman is dying, but the man comforts her and lies to her that she will be fine. IIRC, he also violates the rules on food rationing and heats her up some hot soup to comfort her in her final moments. Another occasion, the man is revived because the sensors have detected a possible colonization site.  The planet is an Earth-type moon in orbit around a supergiant planet.  It looks like they have found a new home, until the man notices the computer's note that the moon would make an acceptable temporary settlement.  It is then that the man examines the telemetry and realizes the moon is in a decaying orbit, and will plunge into the supergiants atmosphere within the next 200 years. The final occasion involves the ship passing through a solar system with a hostile alien race.  The inhabitants of the system launch interplanetary range nuclear missiles at the vessel.  The man is trying to use the ship's engines to outrun the missiles, or something like that.   That's all I have.  I never read the final installment, so I do not know the ending of the story.   Any guesses?  Thanks in advance.


Do I put vinegar in the water when poaching an egg?

Does the water need to boil or just be hot? Do I need to put salt and vinegar in the water or just salt? And if it needs vinegar, what kind? How long do I leave it in the water to get the white solid but not the yolk? I do not like raw egg white, so this is very important for me. But the tricky part is to have the yolk nice and runny though...


How to overcome "Edits must be at least 6 characters"

On Stack Overflow, there was a question with an incorrectly formatted list, which lacked a newline before it and thus came out like this: 1. Hello 2. Something else 3. Goodbye  I changed it to the right formatting by inserting a newline:   Hello Something else Goodbye   And I got the "Edits must be at least 6 characters" error message. Is there an OK way to trick this rule?


Let $G:=(\Bbb Z,*)$ where $a*b:=a+(-1)^ab$ for any $a,b\in\Bbb Z$. Show that $G$ is a group.  But, in my solution, $G$ is not a group. Group operation is not associative.  $a$ must be even integer for associative. Am I wrong?  I am new in algebra, i would appreciate it if you help.


Is it "everyone's life" or "everyone's lives"?

Which is correct: "everyone's life" or "everyone's lives"?  I know that  (as in the sentence "Everyone was there"). But this by itself doesn't seem to show that the possessive form "everyone's" always acts like a singular possessive noun.  An example of the reverse situation: , but the possessive form their can be followed by a singular noun. So the verb agreement that a pronoun takes isn't always the same as the grammatical number of a noun after the possessive forms of the pronoun.


How to formalize "It doesn't matter how places the brackets"

Let $X$ be a set and $X\times X\to X: (a, b)\mapsto a\cdot b$ an associative operation on $X$. Now one can prove by induction that it doesn't matter how one places the brackets in a product $x_1\cdot x_2\cdot\text{ }\dots\text{ } \cdot x_n$, the product always evaluates to the same value. This result justifies the notation of a product $x_1\cdot x_2\cdot\text{ }\dots\text{ } \cdot x_n$ without any brackets. But how can one formalize it?


Is it possible to annotate equations (i.e. arrow signs/curly braces) to define each variable?

I have quite a simple question. I was wondering if it was possible to do something like this in LaTeX:    But formatted a little more nicely.  It doesn't need to be arrows necessarily. Just some form of annotation marker.


I am using Ubuntu 12.04.5 LTS Release:        12.04 Codename:       precise    I want to install Virtualmin on my VPS, but I am getting errors while installating. Check the below errors:  INFO - Removing Debian standard Webmin package, if they exist... INFO - Removing Debian apache packages... INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libapache2-mod-php5 php5-mysql ...in progress, please wait... .E: Unable to correct problems, you have held broken packages.  /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libapache2-mod-php5 php5-mysql failed.  Error (if any): 0  Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: sasl2-bin is already the newest version. unzip is already the newest version. php5 is already the newest version. php5-cgi is already the newest version. php5-cgi set to manually installed. php-pear is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libapache2-mod-fcgid : Depends: apache2.2-common but it is not going to be installed  libapache2-svn : Depends: apache2.2-common but it is not going to be installed  FATAL - Fatal Error Occurred: Something went wrong during installation: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - re-attempted after any problems have been resolved. FATAL - Removing temporary directory and files. FATAL - If you are unsure of what went wrong, you may wish to review the log FATAL - in /root/virtualmin-install.log   I have also tried apt-get update and apt-get -f install. I have removed Apache but no success. Please help me out with this issue.


Ethical Problems Brought by Academic Paywalls

The question is simple. I am working on a topic. I came across a paper that is behind a paywall which my research institution (i.e. university) has no access to it and it may or may not be relevant to my research. If I skip it and some reviewer says that work is quite close to the work I have submitted and I should cite it, or even worse it is so close that it is on the edges of plagiarism.   I have the option of obtaining it from different sources without paying. Should I take it to avoid such claim? If I pay there is a good chance that I wasted money. In today's world literature is so vast and there are so many false positives and a paper might cost up to 40 bucks.  Let me flip that question. Suppose I created a publishing firm. I and my mates do superb research and publish on a journal of our publishing firm. (Assume our research quality is good, so omit academic nepotism.) One catch, our firm charges and exorbitant fee (say millions) for granting access to libraries and universities. Then we start waiting. When I see other research quite similar to ours, I press charges that our work has not been cited or acknowledged and the situation is plagiarism. I am the academic equivalent of a patent troll, except that you cannot see my work until I sue you. Should the poor guy suffer a plagiarism charge just because I kept my research behind a paywall that he/she cannot reach?  Professors and other academic people I ask about it pretend to be either unconscious or dead. Just kidding, they usually offer to send the papers that I cannot reach. But it does not answer my question.  p.s. There is a similar question here citing the problem but not the ethical dilemma.   EDIT due to possible duplicate reports: There are three questions which all refer to the same problem: unfettered access to academic research. I paraphrase and summarise three questions below. Suppose there is a body of research (say, group of articles) that are beyond the researcher's reach due to lack of resources (no ILL, no institution access, no sufficient budget etc). Should the researcher take the "gray" ways to obtain it? If not is he/she responsible for research he/she does not have access to? If so, where do we draw the line? How much is too much to pay to access research? (hence the publisher question) It is not the 80s anymore. Research is published almost faster than one can read and it is readily available (at an inflated cost). So, thorough examination of literature to conduct original research is unjustifiably more expensive than before.


Getting list of selected features in ArcGIS for Desktop using Python code?

I have a question regarding selections in ArcGIS for Desktop. Assumed I have one layer in ArcMap and I have selected two of five features.   Is it possible to get a list of all selected features by using Python?   It would be fine if there is a way to get one special (or all) attribute(s) of the selected features stored in a list that can be written into a txt file.  Is it possible to do this in ArcGIS for Desktop?


Canon SX240HS: Worth using modes other than Auto?

Until now, I only used the Auto mode on my el cheapo .  I read up about the non-auto modes (P/Av/Tv/M)… but, considering the camera, was wondering if they're actually worth using.  Thank you.


In Blade Runner 2049, so why is Dr. Ana Stelline in a bubble?  To clarify I'm not asking about her supposed weakness that has her in a bubble.  I mean if she is the key link to both sides issue, then why is she in a bubble.  We basically have two sides opposing each other in this sci-fi.  One side is driven to find the child so that they can make more slaves faster.  The other side so that they can have children and become "more than human" and have freedom.  Both sides have placed huge importance on the child.  One side to protect her, the other to obtain her and dissect her, or whatever, to figure out how this was possible.  I fail to understand how the side that has her in a bubble, making memories, is moving forward with their (the replicants') plan?  She's now 30 years of age and they are no closer to finding out how to have children of their own.  Are they just having sex with each other for 30 years hoping to hit the jackpot again?  Is she just important to them because she's naturally born... I mean they lead us to believe she's more important than that yet, they're not using her in any way to figure it out.  Given, I'm not sure how they could without putting her through some type of distress.  But 30 years now and she's still in there and their whole plan of a rebellion is hanging on the hope of having kids some day..


I came across this Lemma:  "Let $R$ be an integral domain, and let $a,u\in R$ such that $u$ is invertible. Then $a$ is a prime if and only if $au$ is a prime.  I tried to prove it unsuccessfully, but would appreciate your help with a formal proof.  thanks :)


Dell Inspiron 3551 Unresponsive Touchpad

I just got my laptop in the mail and I installed Ubuntu 14.04 LTS. It all went smooth until it booted up and I noticed my touch pad doesn’t work at all. It works perfectly on Windows and when I use a wireless mouse it works as well.  Here's my xinput:  ⎡ Virtual core pointer                          id=2    [master pointer  (3)]   ⎜   ↳ Virtual core XTEST pointer                    id=4    [slave  pointer  (2)]   ⎜   ↳ 2.4GHz RF  KEYBOARD  AND  MOUSE               id=11   [slave  pointer  (2)]   ⎜   ↳ DLL06AB:00 06CB:78F1                          id=13   [slave  pointer  (2)]   ⎜   ↳ SynPS/2 Synaptics TouchPad                    id=15   [slave  pointer  (2)]   ⎣ Virtual core keyboard                         id=3    [master keyboard (2)]       ↳ Virtual core XTEST keyboard                   id=5    [slave  keyboard (3)]       ↳ Power Button                                  id=6    [slave  keyboard (3)]       ↳ Video Bus                                     id=7    [slave  keyboard (3)]       ↳ Power Button                                  id=8    [slave  keyboard (3)]       ↳ Sleep Button                                  id=9    [slave  keyboard (3)]       ↳ 2.4GHz RF  KEYBOARD  AND  MOUSE               id=10   [slave  keyboard (3)]       ↳ Integrated_Webcam_HD                          id=12   [slave  keyboard (3)]       ↳ AT Translated Set 2 keyboard                  id=14   [slave  keyboard (3)]       ↳ Dell WMI hotkeys                              id=16   [slave  keyboard (3)]     I would love to have my track pad working and I've done some googling and browsing of this site and nothing I've tried has worked. Any input would be great. Let me know if there’s any other information that can help remedy this. I'm pretty new to Linux. Thank you very much.  Edit: I've updated the kernel to 3.19 and checked my Additional Drivers which had nothing for me. Neither of which worked.


Javascript: push new array if at least one value is unique

I have a grid data and I push new data to him. The new data must contain at least one value to be different.  I've try this:  vm.checkUnique = function () {     var gridData = vm.sanctionReferencesGridOptions.data;     var formData = vm.editableGrid.newRowForm;     for (var i = 0; i < gridData.length; i++) {         var rowData = gridData[i]         for (var key in rowData) {             console.log('rowData: ' + key);             for (var formKey in formData) {                 console.log('formKey: ' + formKey);             }         }     } }  vm.sanctionReferencesGridOptions.data = [     {         "code": 1111,         "listName": "List 1",         "sinceDate": "2017-08-23",         "endDate": "2017-08-23"     }, {         "code": 2222,         "listName": "List 2",         "sinceDate": "2017-08-23",         "endDate": "2017-08-23"     }  ]  vm.editableGrid.newRowForm = {     code: "1111",      listName: "List 1",      sinceDate: "2017-08-23",      endDate: "2017-08-23" }   So in this example I must show an error message with duplicated row data..  Thanks for any help!


I just received my Schengen visa to visit France with multiple entries. I want to travel to Czech Republic after visiting France and I was wondering if I have to produce hotel reservations and return plane tickets at the Czech border control? As I have never been to Europe before I don't know how Schengen visa works.


Manuscript status "Submitted to Journal" over a week in an Elsevier Journal

I submitted a manuscript to an Elsevier journal on 8 days ago. However, the "Current Status" of the manuscript is still "Submitted to Journal".   Is it common that the status "Submitted to Journal" lasts over a week?   When I click "Send E-mail" in the "Action Links", it shows that "This letter should not be used at this time. This submission is not in a status that would allow this letter to be sent to the intended recipient."  I cannot even withdraw this manuscript now because the Action Links do not contain "Withdraw" button. I submitted several manuscripts to this journal about three years ago. I checked the email at those moments. When I approved the submission of PDF files built by the submission system, I would receive a confirmation email from the editorial office. However, this time I did not receive any such email.   What should I do at this moment?


do-release-upgrade from 20.10 to 21.04 on Raspi not working?

I get a message that no new versions are available. Any idea, why this happens?


I applied for a business Schengen visa for the first time. I was refused the visa, stating that I have no proof of sufficient means of subsistence, for the duration of the intended stay or for the return to the original residence as the reason for refusal.   What does the refusal reason mean? Can I reapply? If yes, how do I reapply (What is required?)


Which question is more proper?     [some statement], is it right?      [some statement], is it correct?


This is excerpted from ~/.bashrc on a RasPi.   if [ -z "${SSH_TTY}" ]; then   startx > /dev/null 2>&1  fi   I'm fairly sure the if statement means not for ssh tty sessions ie when establishing a remote console.  Obviously it starts x-windows and discards console output, but what does 2>&1 mean?  The ampersand probably means it forks, but what are the numbers? And what are some keywords for next time I need to read up on this?


Which pronoun best completes the sentence? Every woman received ____ prize. Is it her or their? Please explain


Which of these relationships are dichotomies?

Are these dichotomies in the context of software engineering?   Precision vs Accuracy (concensus so far: NO, and I agree) Authorization vs Authentication (concensus so far: NO, and I agree) Validation vs Verification (concensus so far: NO, and I agree) Security vs Convenience MAYBE (when making engineering decisions it is important to identify which is more important depending on the problem being solved. Adding Convenience does not necessarily diminish security, but it seldom improves it. But these aren't quite complementary.. I think?) Space vs Time tradeoff YES (as far as I can tell, trade-offs are good examples of dichotomies if they complementary, such as: mind vs body, nature vs nurture, good vs evil, memory heap vs stack. Source:  - I was tempted to include "male vs female," but these days gender is, uh, complicated)


How soon can one return to US with visitor visa?

How long do you have to be out of the country before you can return on a visitor visa?  My sister in law will be traveling from a Central American country that requires a visa to visit the USA (she does not qualify for the Visa Waiver Program).  Ideally, I'd like her to stop by for a few days as she travels to Europe for a couple months and then stay for a longer visit when she returns back from Europe.


What is the best strategy in choosing between the various package types?

What is your strategy in picking between appimage, snaps, flatpak or anything else ? Does it matter with the type of app or do you just devote yourself to one packaging system entirely ? My first instinct would be to go to the developers website and see if they recommend any package type over the other or if there is any "official" package. (I'm a current windows user soon to install Ubuntu) I would mostly download IDEs/text efitors like vscode, Android studio, pycharm, etc and sdks and probably some software u for setting up local servers. I would like to enjoy timely automatic updates but at the same time would prefer if the apps open quickly so that I boost my productivity. It just feels like every time a universal packaging system is proposed, it ends up being just another added to the ones that already exist.


Why does a fixed key not make MACs like CBC-MAC or GMAC into secure hash functions?

Why does setting the secret key to a fixed, public value not make MACs like CBC-MAC or EMAC into secure unkeyed cryptographic hash functions?  In other words, why is the resulting hash function not 1st pre-image, 2nd pre-image, and collision resistant?   What about HMAC? Still not pre-image and collision resistant?


I have an assignment question that I have no idea how to solve. It goes like this:  The multiplicity of the zero $x^*$ is the least integer $m$ such that $f^{(k)}(x^*)=0$ for $0 \le k \lt m$, but $f^{(m)}(x^*) \neq 0$. Show analytically that in the case of a zero of multiplicity $m$, the modified Newton's Method $$x_{n+1}=x_n-m \frac{f(x_n)}{f'(x_n)}$$ is quadratically convergent.  I have no clue how to solve this. Any help would be much appreciated. Thank you!


How can I change the Keyboard Layout on login screen?

I changed my Keyboard Layout from Swedish to English, but now my password doesn’t work and I can’t login. I need a way to change the keyboard layout at the login screen without having access to the keyboard or a way to enter the password using characters not available on the keyboard itself.


What paths to choose to prove that $\lim_{(x,y) \to (0,0)}\frac{xy^2}{x^2 - y^2}$ does not exist?

It's a quite simple question. But I couldn't see it... How to prove that $$\lim_{(x,y) \to (0,0)}\frac{xy^2}{x^2 - y^2}$$ doesn't exist? It's sufficient to show that for different paths through the origin this limit has diferent values (or doesn't exist in some of them). But, what paths to choose?!


For how long were Accelerator and the Sisters doing the Level 6 experiment?

He's killed about ten thousand sisters, if he did it at a rate of 8 sisters per day, that would be:  10000 / 8 = 1250 days   Or about 3 years and 5 months.  Could the experiment have been running for that long?


Adjusting graphics cards settings in Mojoave to reduce overheating with external monitor (MacBookPro2018)

It seems common for MacBookPros2018 overheating when connected to external display (see other info about the general problem , or ).  Despite there is no risk for HW, it's quite uncomfortable for who works on them.  I noticed that if I connect my MBP to an external display when it runs with battery, it does not get (so) hot.  I suppose that the MBP uses another configuration of its graphics framework when it is not connected to power adapter. Therefore, I hypothesize that if it used the same graphics configuration when it's plugged to the power, then the overheating would be reduced.  Is there a way to make the MPB use the same graphics configuration for external displays also when it is connected to the power?


In French Voldemort means "flight from death". Was Voldemort aware of that fact when he created it?


ConcurrentModificationException thrown in a multithreaded program

I am trying to make a simulation of a program which simulates different threads removing and adding objects in an ArrayList. However, late in the simulation I get concurrentModificationExceptions (when the threads are trying to access and modify the same variable while an iterator is being used to iterate through the data). I have searched it up and seen some topics about this saying that I needed to use locks/synchronization and/or using ListIterators instead of enhanced for-loops, however, none of these options seemed to fix the problem. Here is what I have tried to do so far:  public Object removeSomething1(){     synchronized(this){ //Also tried only putting it around the remove block         for(Object o : myList){             myList.remove(o);             return o;         }     }  }  //This is another variaton which did not yield any improved result  public Object removeSomething2(){     ListIterator<Object> iter = myList.listIterator();         While(iter.hasNext()){             Object s = iter.next();             synchronized(this){                 iter.remove();              }             return s;          }      }  //After some request here is also the simple code which adds to the list  public addSomething(Object o){     myList.add(o); }   I execute 5 threads which calls upon these methods in their run() method in an interval of 500ms (using Thread.sleep()). If I increase the sleep timer in each thread and put a Thread.sleep() between each instanciation of threads, the problem seems to go away, but I want the threads to run at (closely) the same time without them interfering with the iterator at the same time which envokes the ConcurrentModificationException.


Running ERDAS Imagine and ArcGIS Desktop on same machine?

ArcGIS Desktop 10 and ERDAS 8.7 were already installed in my computer. But I want to open both programs at the same time. If ArcGIS can open properly, ERDAS cann't open and vice verse, showed that following error (Fig.1).     IF I switch off ERDAS using License Manager Tools "LMTOOLS" (Fig.2), then ArcGIS can open properly, If I switch off ArcGIS using the same way above, ERDAS can open properly.     So what I want to ask are what is the reason for this problem and how to fix it?     I've changed "any" into 27002 and both "this_host" and "son" into "user_PC" which is my computer full name. This time Erdas can open correctly, but arcgis cannot. The following image is a problem with opeining ArcGIS Desktop.     Can you tell me what this means?    Thank you for your answer, U2ros. Here I'm adding some more photos of license files. According to your advice, when I opened both license files for arcgis and erdas, they look like this. First image is ArcGIS license file which is very similar with you described above except "son". I think I can change 27001 into 27005 etc.      Next image is license file of Erdas. This looks totally different from you described above. Here I'm fully confused which one is port number that I need to change to something like 27002. Can you give me further advice to for this.   .


Assigning incrementing id for each feature group in attributes with QGIS expressions

I have a layer with a repeating field name, thus different groups of features (I also have a numerical group field). How can I add a field group_id, using QGIS expressions? What I want is kind of a uniqe identifier per group, counting from 1 to the last element contained in the group (see screenshot). What I tried: Using array_length (array_agg( "group", "group")), I get the number of features per group (field no_in_group). With  generate_series (1, [features per group]), I get an array, counting from 1 to the last no. of each group. However, I'm stuck how to assign each element of the array to one feature of the group. I suppose that array_foreach () will do the job, but I'm unsure how to use it in this case. Screenshot: the field with red outline is what I want to get: a unique, incrementing id, starting from 1 for each group. Here, I introduced the values manually to make clear what I'm looking for:


implementing multiple Buttons for one actionListioner

Please note that I am new to programing, thus my code is probably incredibly redundant and hard to read, but I REALLY need help!  Im trying to create a matching game, so that when the user picks two buttons that relate to one another, you get a match! I'm currently trying to get the action listener to work properly, but whenever I run the code every if statement implements and all the buttons turn green.   public class Panel extends JPanel {    int[] num = new int[2];    private JButton movie1;    private JButton movie2;    private JButton movie3;    private JLabel question;   private JButton name1;   private JButton name2;   private JButton name3;    public Panel()   {      ImageIcon movie1pic = new ImageIcon("movie1.jpg");      movie1 = new JButton (movie1pic);      movie1.addActionListener(new ButtonHandler());        ImageIcon movie2pic = new ImageIcon("movie2.png");      movie2 = new JButton (movie2pic);      movie2.addActionListener(new ButtonHandler());        ImageIcon movie3pic = new ImageIcon("movie3.png");      movie3 = new JButton (movie3pic);      movie3.addActionListener(new ButtonHandler());        question = new JLabel ("match");      ImageIcon name1pic = new ImageIcon("name1.png");      name1 = new JButton (name1pic);      name1.addActionListener(new ButtonHandler());       ImageIcon name2pic = new ImageIcon("name2.jpg");      name2 = new JButton (name2pic);      ImageIcon name3pic = new ImageIcon("name3.jpg");      name3 = new JButton (name3pic);      setLayout(new BorderLayout());      JPanel southPanel = new JPanel(new FlowLayout());      JPanel northPanel = new JPanel(new         FlowLayout());      southPanel.add(name1);      southPanel.add(name2);      southPanel.add(name3);      northPanel.add(movie1);      northPanel.add(movie2);      northPanel.add(movie3);      add(question, BorderLayout.CENTER);      add(northPanel, BorderLayout.NORTH);      add(southPanel, BorderLayout.SOUTH);           private class ButtonHandler implements ActionListener      {         public void actionPerformed(ActionEvent e)         {             if ( e.getSource() == "movie1.jpg" );            {               num[0] = 1;               ImageIcon green = new ImageIcon("green.png");               movie1.setIcon(green);            }            if (e.getSource() == "movie2.png");            {               num[0] = 2;               ImageIcon green = new ImageIcon("green.png");               movie2.setIcon(green);            }            else if (e.getSource() =="movie3.png" );            {               num[0] = 3;               ImageIcon green = new ImageIcon("green.png");               movie3.setIcon(green);            }             }      }   }


Safest way to let an user set data to database

Little background. I'm making a forum with an account system.  So naturally they have to insert data to the database whilist speaking in the forums.   What is the safest way to let the user input data in an textarea?   Is there away so they can't just type in DROP TABLE 'USERS', or something else that might effect my forum?  Now I know there is some solutions to this, but how can I do this so that they're able to make their text look nice (<h1>,<img>) etc, but not do a proper SQL query?  Kinda like this page is made, I can type here with all sorts of looks but I cannot do anything to harm the page.  Thanks.  -Kevin