Jquery document.ready function doesn't load click event handler

I am new and I was wondering if you might be able to help.  I have  come across a situation that I have not been able to figure out for the last few days.  I have a dynamic div on my document that looks like this
Map
  In my javascript file I have  $('[id^="map_"]').click(function(){    alert('hello');  });   When the document is loaded ... even if I click on the link  nothing is detected but if I use for example firebug and actually enter that in the console ... then every link start to be detected.  Has anyone run into this before?  I am using Jquery 2.1 and I have tried the "on" and "click" functions and still doesn't get registered... but when I add it to the console and run it works.  I Dont think this is an issue of using a deprecated handler with the wrong version of Jquery.  I was able to find the answer to this.  Although the original review was not correct, I am going to document this here in case someone else has this issue. This issue can be resolved by using event delegation.  Please read more by following this link:


Ok, I have fully colored/textured a pretty decently sized hatchet I made in blender a few times now and each time I saved and closed my blender. When I reopen the blender file it is completely unpainted.... Being very frustrated what am I doing wrong? I've tried saving the image of the texture but it keeps telling me "invalid path:" and I can't see the rest of the error message. I think my problem is that I'm saving the blend but not the texture mapping thing. (sorry don't know the correct terminology for everything)


I try to use this function i have created when a post is published for the first time.  function a_new_post($post){   $post_id = $post->ID;    if ( !get_post_meta( $post_id, 'firstpublish', $single = true ) ) {       // ...run code once       update_post_meta( $post_id, 'firstpublish', true );   } } add_action( 'draft_to_published', 'a_new_post' );   I can't see anything wrong with it, but when i try to create some sample posts i check the database and the field "firstpublished" has not been created.  Does anyone see anything wrong?


For the provided string  how to Create a two variables and pass into next reqst

Assign month as one varaible and year as one variable pass into next requst  For the above thing needed using bean shell post processor  and dummy sampler


Latin (in wide use in English) for nonsensical response?

There is a Latin term or phrase (in wide use in English, esp academic discourse) that one uses in situations like the following:   one makes a statement or asks a question one's interlocutor makes a response that is simply nonsensical: either per se, or which does not relate to the statement or question   The Latin (--could be Greek) term or phrase is adjectival, in that it describes (and implicitly denigrates) the response. I suspect it begins with 's' (but ). I know I have used this in the past, but I simply cannot recall--please help!


Proving $x^\alpha-\alpha x \le 1- \alpha $

Prove: $$x^\alpha-\alpha x \le 1- \alpha  \\ \forall x\ge 0 \ ,  \ 0<\alpha <1$$   It does resamble Lagrange's MVT, in order to get to the RHS, say $\alpha\in[0,1]\Rightarrow \frac{1-\alpha-0^\alpha-\alpha 0}{1-0}=1-\alpha$.  But I'm not sure what to do about the LHS. I always get a negative value in the LHS and we know that the RHS will always be postive but that doesn't really help with proving it...  Edit: maybe define a function: $g(x) = x^\alpha-\alpha x - 1+ \alpha$ Derive it: $g'(x) = \alpha x^{\alpha-1}-\alpha $ but then I get to $x^{\alpha-1}=0$    Also, I had two questions when trying to figure this out:   Can we use deriviation of both sides of an inequality to prove it ? Can we use limit of both sides of an inequaltiy to prove it ?   Thanks.


email address validation in JavaScript using regular expression

I'm currently trying to validate email address using regular expression in JavaScript. These are the requirements of the Email address:   The email field contains a user name part follows by "@" and a domain name part. The user name contains word characters including hyphen ("-") and period ("."). The domain name contains two to four parts of alphabet characters word extension. Each word extension is separated by a period (".") and the last extension must have two to three characters.   Among four requirements, the third one is most confusing to me. I will be very appreciate if someone can help me. Thank you.  I have tried the first answer in  page, but this answer accept even 5 or more extensions, so it doesn't meet my third requirement.


I plan to use the member plugin by Justin Tadlock  I wish to know if how could I, on the front side, auto switch to a theme according to a role status.. for example authors would have the site presented using theme 1 while editor would have the site presenter using theme 2  I would rather have 2 different theme rather than conditionals within one theme structure  Thank you in advance


Text doesn't fit in the box when editing

When you are editing a post on the Android app, the text doesn't really fit in the box. It simply overflows like the box is just a background image and also there's a small empty space at the bottom of the screen for some reason.  Take a look at this screenshot:


I have a   It has 26" rims. Which of these spokes type do I need for my bike? Strongest or best match for the spokes I already have.  DT Swiss Champion Stainless PG Spokes DT Swiss Champion Stainless DB Spokes   thank you


I am creating a logfile from kermit named the current date (which is in the format of DD MMM YYYY - which can not be changed AFAIK), and using the file name as today's date.  I then have a Bash script to read the file and I want to tail -n1 the file.  if I do      filename=$(date +%d\ %b\ %Y) && echo $filename   I get      23 Feb 2015   which is what I want and expect. However if I then do      filename=$(date +%d\ %b\ %Y) && tail -n1 $filename   I get      tail: cannot open `23' for reading: No such file or directory     tail: cannot open `Feb' for reading: No such file or directory     tail: cannot open `2015' for reading: No such file or directory   I am not sure what is causing this, probably down to the the way I have string formatted I guess since I get the same if I use tail or cat?


regular expression matching - javascript

I have a string of html contained in between [marquee][/marquee] tags in the string like so:  var s = '[marquee]
some html here 1
[/marquee][marquee]
some html here again 2
[/marquee]';   what I would like to do is match each one of these marquees to create an array with each marquee as an array element.   What I've tried so far is:  var marqueeArray = s.trim().match(/\[marquee\][\s\S]*\[\/marquee\]/g);   but all i get back is and array with the length of 1. both marquees end up being included as one string like this:  ["[marquee]
some html here 1
[/marquee][marquee]
some html here again 2
[/marquee]"]   what i would like is this:  ["[marquee]
some html here 1
[/marquee]", "[marquee]
some html here again 2
[/marquee]"]   eventually i will need to remove the brackets ([marquee] and [/marquee]) from each element and replace with  and join one big string for use in the application. any point in the right direction on that would be great as well.


Bare metal to Big Data: Can all of these operate together on the same cluster?

I am a VERY new sysadmin (Class of '16) and I've been asked to create a big data cluster with 3 bare metal PowerEdge Servers. I have the following request to be put on the cluster:  *Hadoop2 *YARN *Java 7&8 *Spark *SBT *Maven *Scala *P7zip *Pig *Hive *R (libraries for Spark and Hadoop) *Zeppelin *Cassandra  I would like to know if these can all 'play well together' since I know very little of big data and searches result in a lot of "x VS y" pages rather than "x AND y". And is there a preferred industry standard?  Thank you in advance for your advice!


My definition for the essential supremum norm as follows. For measurable $f$ defined on a measurable set $E$, the essential supremum norm of $f$ over $E$ is $$ ||f||_{L^{\infty}(E)} = ||f||_{\infty} = \inf \left\{\sup_{x \in A} |f(x)|: A \text{ measurable}, m(E \setminus A) = 0\right\}. $$  I was reading a proof showing that $||f||_{\infty} = 0 \implies f = 0$ almost everywhere, which used the fact that   $$ ||f||_{\infty} = \inf \left\{ \alpha \in \mathbb{R}: m\left\{x: \left|f(x)\right| > \alpha\right\} = 0\right\}. $$  I am struggling to prove this alternate form of $||f||_{\infty}$ from my definitions of measurable functions, sets, etc. though, and would appreciate some help.


Nilpotent elements in a commutative ring

Let $R$ be a commutative ring. Show that for any $a,b \in R$ nilpotent that $a+b$ is also nilpotent in $R$.  We know $a^n = 0$ for some n and $b^m = 0 $ for some m, so consider $(a+b)^{m+n} = (a+b)(a+b)...(a+b)$  $n+m$ times.  I don't see how $R$ being commutative helps me here.


Why when I open my files in ubuntu 16.04, are hidden files always displayed?

Whenever I open my files in ubuntu, hidden files appear.  How can I do that when opening my files, the hidden files are not displayed by default?  THX!


Which free alternatives to Little Snitch can I use to block internet traffic per applications?

Little Snitch can block internet traffic of a particular app. Can I do something similar without (paying) Little Snitch, either by using free alternatives or configuring the OS X firewall directly?


Label rotation values in DXF imported into QGIS

When loading a dxf in QGIS, the line type files load in ok, however all text rotation values are lost when loaded into QGIS.  This is most obvious when you load in OStext.dxf (please see grab_Mar.22.jpg) this shows the same file open in AutoCAD and we can clearly see the selected “RICHMOND ROAD” with a rotation value of 314. When we look at the same record in QGIS (see attached grab2 Mar.22 13.43.jpg) we can see that the rotation value has changed to -0.80. So when I use that value to rotate the text, it doesn’t rotate to the correct place.  Why are the rotation values in the dxf files changing when we load into QGIS?


Every two-handed mace I find shows a red X for my Monk, as well as a red box around my current weapon in my inventory. The maces do not show class restrictions (example below). Are Monks unable to equip certain non-class restricted weapons?


How to prove that $|x^p-y^p| \leq p|x-y|(x^{p-1}+y^{p-1})$ when $x,y \geq 0$ and $p \geq 1$?

For $x \geq 0$, $y \geq 0$, prove that $$ |x^p-y^p| \leq p|x-y|(x^{p-1}+y^{p-1}). $$  I thought it would be simple but I messed everything up. Here are my attempts. Fixing $x > y \geq 0$, I thought about the function $$ h(p)=x^p-y^p-p(x-y)(x^{p-1}+y^{p-1}) $$ Then $h(1)=0$ and I wanted to prove that $h(p) \leq 0$ when $p \geq 1$ by discussing its derivative but the derivative is messy offering no way out. Also I thought about after fixing $y \geq 0$, consider the function $$ \varphi(x)=x^p-y^p-p(x-y)(x^{p-1}+y^{p-1}) $$ where $\varphi(y)=0$ and I want to prove that $\varphi(x) \leq 0$ when $x \geq y$ yet again it's a messy way. I also thought about restricting $p$ to $\mathbb{N}$ or $\mathbb{Q}$ using decomposition like $$ (x^p-y^p)=(x-y)(x^{p-1}+x^{p-1}y+x^{p-2}y^2+\cdots+y^{p-1}) $$ but the number of terms does not match.  But I do believe this should be a easy question with some special background. I must have missed something critical. Any hint/solution appreciated!


If $p(x) \in F[x]$ is of degree $3$, and $p(x)=a_0+a_1x+a_2x^2+a_3x^3$, show that $p(x)$ is irreducible over $F$ if there is no element $r\in F$ such that $a_0+a_1r+a_2r^2+a_3r^3 =0$.  If $p(x)$ is reducible, then there exists $ax + b$ such that $a, b \in F$ and $a\ne 0$. And $p(x) = (ax + b)(cx^2 + dx + e)$. Then an $r$ exists such that $p(r) = 0$. Is that how you're supposed to tackle it?


$$ = \lim_{x\to0} (\frac{e^x-1}{x} * \frac{1}{x}) -\frac{x}{x^2}$$  $$ = \lim_{x\to0} (\frac{e^x-1}{x} * \frac{1}{x}) -\frac{x}{x^2}$$  $$ = 1 * \lim_{x\to0} \frac{1}{x} -\lim_{x\to0}\frac{1}{x}$$ $$ = \infty -\infty$$  How do I actually solve this without using L'Hospital. I'm just looking for a hint, not a concrete answer.


How to measure power used to sustain something in a (gravitational) field?

I've read , but neither of the posts does seem to address my concerns. The problem is as follows:     Assuming a device that keeps something in a gravitational field on a constant height, like an electromagnet, how does one measure the required power?   I'm stumbling on that because the equation $P = Fv$ would mean that, assuming the object stays in place, the power is zero. That might be true for, say, a rigid construction holding something up. What if I am actively trying to keep something up, like holding it in my hand, or powering an electromagnet to create an electromagnetic field to keep something in the air? I am applying a constant force, but the object doesn't move!  I've tried to imagine it from the point of theoretical loss of potential energy I'm preventing, but it only got me to something like $P = g^2 m t$, which depends on time. In fact, every attempt to tackle the energy was in vain, because the velocity of the object in a gravitational field, if left without the support, wouldn't be constant (thus making the power depend on time), and is apparently not fit to describe the problem formally.


Is there a developers account  to use MobileConnect app provided by SalesTarget for PoC . I  could  not  find any link to create a login account for salestarget ?


Install Ubuntu in UEFI mode alongside Windows 8.1 without losing data

I have Windows 8.1 in my laptop in UEFI mode. Now I want to install Ubuntu in my laptop, also in UEFI mode, without losing data


Why doesn't Hawking radiation cancel itself out?

is formed when particle, anti particle pairs formed by the uncertainty principle are separated by the event horizon of a black hole.        It seems like an equal amount of particles and anti-particles should end up on each side of the event horizon. So why don't the particles and anti-particles annihilate with a new partner once separated from their original partner by the event horizon? Thus canceling out any radiation released.


Is there a proper notation for denoting subspaces? For example, if $U$ is a subspace of some vector space $V$. I would usually just write "the subspace $U \subseteq V$" but I'm wondering is there is a proper, more compact, notation.


Ubuntu 16.04 LTS GUI (Unity?) Files has 5 directories I don't understand

I have a pretty basic installation of Ubuntu 16.04 LTS.  When I go to the launcher and select FILES a new screen opens.  It has two parts to show some of the tree.  In the left sidebar are five directories with unusual icons tied to them.  I can delete the directories or rename them, but after deleting them they are still displayed.  There is a "remove" option, but they are removed temporarily.  As soon as FILES is re-opened the directories are back.  The directories are not recognized from the terminal.  I need to know how to eliminate them from appearing. Appreciate any answers.


Wiremock issue Caused by: java.lang.NullPointerException: Cannot invoke "java.nio.ByteBuffer.hasRemaining()" because "compressed" is null

Wiremock: This issue is occurring with Wiremock, and it is passing locally, but when I am facing this issue while running my ci/cd pipeline and this is an intermittent issue once in every 5 times it is failing. Caused by: java.lang.NullPointerException: Cannot invoke "java.nio.ByteBuffer.hasRemaining()" because "compressed" is null at org.eclipse.jetty.http.GZIPContentDecoder.decodeChunks(GZIPContentDecoder.java:259) if anybody has faced this please help.


How to tell if a command executed by `exec` runs successfully or not?

When running a command with exec, the parent shell will exit upon the command finishes running. How can I tell if a command executed by exec runs successfully or not?


"2-dimension array" access in a loop in bash

I want to implement a selection menu in bash (version 3.2 on macOS) which would output something like this: Select a fruit:   0  Nothing   1  A banana   2  An orange  When the user will choose an item, I want to be able to run an associated bash script. For this, I would need something like a 2-dimension array but if I am not wrong it does not exist in bash. I thought about using several arrays in a main array. Then I would use a loop to display the menu to the user: #!/usr/bin/env bash  item_nothing=("0" "Nothing" "") item_banana=("1" "A banana" "select_banana.sh") item_orange=("2" "An orange" "select_orange.sh") items=(     "item_nothing"     "item_banana"     "item_orange" )  printf "Select a fruit:\n" for item in "${items[@]}"; do     printf "$(\$$item[0])"     printf "$(\$$item[1])\n"     # $(\$$item[2]) done  When I run my script I get the following output: Select a fruit: ./fruit_selection.sh: line 14: $item_nothing[0]: command not found ./fruit_selection.sh: line 15: $item_nothing[1]: command not found  ./fruit_selection.sh: line 14: $item_banana[0]: command not found ./fruit_selection.sh: line 15: $item_banana[1]: command not found  ./fruit_selection.sh: line 14: $item_orange[0]: command not found ./fruit_selection.sh: line 15: $item_orange[1]: command not found  I have no idea what I am doing wrong. Would you have a solution to achieve what I describded? Also, if you have a better way than what I started to do, do not hesitate to suggest it.  EDIT: solution below in the for loop #!/usr/bin/env bash  item_nothing=("0" "Nothing" "") item_banana=("1" "A banana" "select_banana.sh") item_orange=("2" "An orange" "select_orange.sh") items=(     "item_nothing"     "item_banana"     "item_orange" )  printf "Select a fruit:\n" for item in "${items[@]}"; do     var_0=$item[0]     var_1=$item[1]     printf "  ${!var_0}  "     printf "${!var_1}\n"      # var_3=$item[3]     # do something with this later "${!var_3}\n" done


Ubuntu 16 LTS stuck on boot - /dev/sda5 clean

I can't properly enter the ubuntu 16.04 LTS anymore. The boot stops with this message:  /dev/sda5: clean, xxxxx/xxxxx files, xxxx/xxxxx blocks.   I've had the pc running normal for 3 years now, and 2 days ago there were a power outtage, which shutdown the pc. When the power was back on and I turned on the pc, fsck started and stopped at this line. The only possible actions that I can take is:   mannualy reboot - which will take me back to this message once the computer boots again.  ctrl + alt + F1 - which allows me to actually work with the computer in a line of command. However, with this option I can't run any kind of application that requires a GUI (gparted or gthumb, for example). But I see that all my files are preserved.  I did see a few answers to this problem, saying that the message xx/xx files xx/xx blocks is normal and it means that everything is fine, but I cannot get past this message unless I run ctrl + alt + F1, so there is clearly something wrong.  A few things that I tried:  login (via ctrl+alt+F1) and run fsck -f: returns a warning message saying that it may damage the computer.  Enter the pc via recovery mode and run the fsck for all filesystems: It stops the verification once it reaches "Reached target Swap." After this, I can only hit enter and go the recovery mode menu.  Enter the pc via recovery mode > root > hit enter (for maintenance) > run sudo fsck -f /dev/sda5  The results are:  Pass 1: Checking inodes, blocks and sizes; Pass 2: Checking directory structure; Pass 3: Checking directoru connectivity; Pass 4: Checking reference counts; Pass 5: Checking summary information;  /dev/sda5 xxx/xxx files (0.2% non-contiguous), xx/xx blocks    Which, at this time, to me it means that the problem is still there.  I don't know what to do. Can anyone help me?  Thanks  Edit for the blkid and cat commands, as requested.  sudo blkid:  /dev/sda1: SEC_TYPE="ms-dos" LABEL="Dell Utility" UUID "5450-4444" TYPE="vfat" PARTUID="2ac21a9f-01"  /dev/sda2: LABEL="RECOVERY" UUID="964A9B734A9B4F3D" TYPE="ntfs" PARTUUID="2ac21a9f-02"  /dev/sda3: LABEL="OS" UUID="085C9DD05C9DB8C0" TYPE="ntfs" PARTUUID="2ac21a9f-03"  /dev/sda5: UUID="541386d5-b86c-41ad-bd00-d8af887358a9" TYPE="ext4" PARTUUID="2ac21a9f-05"  /dev/sda6: UUID="806ceccd-9af2-48d1-8995-4ca5e48342ba" TYPE="swap" PARTUUID="2ac21a9f-06"   cat /etc/fstab output (ignoring the first paragraph):  < file system > < mount point > < type > < options > < dump > < pass > (this line is commented)   / was on /dev/sda5 during installation (this line is commented)  UUID=541386d5-b86c-41ad-bd00-d8af887358a9 / ext4 errors=remount -ro 0 1   swap was on /dev/sda6 during installation (this line is commented)  UUID=806ceccd-9af2-48d1-8995-4ca5e48342ba none swap sw 0 0


Einstein-Hilbert action as an effective field theory

I have read the following statement:      "The Einstein-Hilbert action can be seen as an effective field theory: setting $g_{\mu\nu}= \eta_{\mu\nu}+h_{\mu\nu}$, one gets a free Lagrangian for the field $h_{\mu\nu}$ plus interactions."   Now, how is it possible to define all the interaction terms?  EDIT: I ask apologize if my statement was appeared unclear: I have created a  which is more precise; please don't continue to consider seriously this one.


Multiplication of two successive Fibonacci numbers

Recall the Fibonacci function defined by $f(0) = 0; \\f(1) = 1; \\f(n) = f(n-1) + f(n -􀀀 2)$  for all $n \ge 2$ Prove that $f(n) \cdot f(n + 1) = f(1)^2 + f(2)^2 + . . . + f(n)^2.$


Using txfonts with Polish characters breaks tables

Restated Problem and a Solution  The use of a times font using the package txfonts will cause tables to be improperly displayed (see below for an image) if a character such as ę,ą or a different character with an ogonek is used.   This has something to do with the procedure involved not being local, that is, having unwanted side effects elsewhere.   An effective way of keeping whatever is done local is by enclosing it in brackets {ę}. This can be generally invoked for any mention of the character in question by mapping ę to {ę}, a to {ą} and so on in the preamble by the following:  \DeclareUnicodeCharacter {281}{{ę}} % 281 is the decimal utf-8 code of ę ...   This will solve the problem for the whole document  A more general solution still that fixes the error introduced in the source file of txfonts is described below under the heading WORKAROUND. However, if you do not want to fiddle with the way the package is called (possibly because it is called in a stylesheet you do not want to change) redefining the characters is a good solution  Initial question  I am typesetting a multilingual document with pdflatex (MikTeX, all packages up to date). I need to use Times font, and, for the time being, I cannot switch to LuaLatex or XeLatex since I am in the final phase of typesetting a book with a class provided by my publisher and I would need to adjust my code in order to use these above.   Using Polish characters with txfonts causes the tables to crash:   \documentclass{article}  \usepackage{txfonts} %\usepackage{mathptmx} \usepackage[polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\pl}{\selectlanguage{polish}\fontencoding{T1}} \begin{document} \textbf{A minimal example using a times font} As soon as I enter the Polish character \pl ę  \ee the tables crash  (the lines of the table get printed onto each other). \begin{table}\begin{center}\begin{tabular}{|l||l|l|} \hline type&n    &rel        \\ \hline \hline One line in the table &260& many  \\ Another line in the table      &792&49  \\ A third line in the table       &288&1  \\ \hline \end{tabular}\end{center}\caption{A test table.}\end{table} \end{document}   The alternative package mathptmx does not cause this problem; however, it does not provide the Greek characters I need. This is demonstrated in the following minimal example:  \documentclass{article}  %\usepackage{mathptmx} \usepackage{txfontsb} \usepackage[polutonikogreek,polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[LGR,T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\grrk}{\selectlanguage{polutonikogreek}\fontencoding{LGR}} \begin{document} \textbf{A minimal example using a times font} I need to  print polytonic Greek (and other special characters) using a  times font (e.g. \grrk ἐᾶν \textbf{ἐᾶν})! \ee   I use the \emph{txfonts} (or   \emph{txfontsb}) package, the alternative \emph{mathptmx} cannot find the metric files (``Couldn't find `grtm.cfg''').  \end{document}   How can I use txfonts and still prevent the tables from crashing? I have also tried out txfontsb!  Update: I see now the has nothing to do with Polish, it's the diacritic in ę (the ogonek) that causes the problem. The same problem appears in the following code with an ogonek on an m:       \documentclass{article}      \usepackage{txfonts}     \usepackage[T1]{fontenc}            \begin{document}     text with ogonek:        \k{m}       \begin{table}\begin{center}\begin{tabular}{|l||l|l|}     \hline     type&n    &rel        \\     \hline     \hline     One line in the table &260& many  \\     Another line &792&49  \\     A third line in the table       &288&1  \\     \hline     \end{tabular}\end{center}\caption{A test table.}\end{table}     \end{document}   If \k{m} is enclosed in brackets {\k{m}} the tables work fine. So it has something to do with  locality and the way txfonts apply the ogonek.


Cannot get my v600 usb scanner to work. Looking for epson drivers, I found . I downloaded drivers there :   iscan_2.29.1-5~usb0.1.ltdl7_amd64.deb iscan-data_1.23.0-1_all.deb   and installed them. But my scanner is still not recognized. I use ubuntu 13.04. simple scan, iscan or xsane scan  can not see the device.


Did any Sith switch for the first time to the Jedi?

Several Sith, including Tyranus and Vader, were former Jedi who became Sith after a fall/conversion to the Dark Side.  Did any Sith turn to the light side for the first time and become Jedi, having never previously been a Jedi? That is, these would be people who had been Sith for all, or most of their life, taking their first steps into the Jedi Order after a fall (or, if you will, a "rise") to the Light Side.  Darth Vader/Anakin's return to the Light Side does not count because he had been a Jedi first before he became a Sith - his conversion to the light side was a reversion to his former status.


90 days in USA then to holland for 3 weeks then back to USA for 90 days

I have been in the US for 90 days and I want to go to holland for 3 weeks. After that I want to return to the US for another 90 days. My question is, can I do this?


Headers of \chapters* take the headers of their previous \chapter

When using book.cls and using \chapter* after a \chapter, the header used in \chapter* is wrong. An example is pasted below.   Is there any known workaround for that? I have tried quite some tricks without success.   \documentclass[]{book}  \begin{document}  \chapter{First Chapter} aslkjdf  \chapter*{Unnumbered Chapter} The GNU General Public License is a free, copyleft license for software and other kinds of works.  The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.  When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.  To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.  For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.  Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.  For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.  Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.  Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.  The precise terms and conditions for copying, distribution and modification follow.  \end{document}


Can I reorder an application search result?

I want to open "LibreOffice Calc" and type in "Cal" in the search bar. I can see Calculator and LibreOffice Calc. Now I could use cursor keys or mouse to select LibreOffice Calc. But this is not what I want! What I want is to reorder the result! I want to have LibreOffice Calc BEFORE Calc, because this would be my preferred result (I just have to press enter if LibreOffice would be the first match).  Is that possible? Can I teach Unity to show result a certain way? Launchy (for Windows) e.g., a keystroke launcher, can do that! (Gnome-Do also works!)  Do you have some tips for me?


I want to add .gitignore file to my local repo. My local repo is a clone from my Drupal 8 distro from Acquia Cloud.  What are best practices for my .gitignore file for Acquia Cloud hosted sites? I followed .   For example: do i have to ignore settings.php and not settings*.php? Regarding this quote from :      Drupal 8 You can modify .gitignore so that it ignores settings.php   (not settings*.php). Then, you can update the standard settings.php   with the Drupal 8 local settings file checker:    Where is settings.local.php for, mentioned in the Quote above from ?   Currently my .gitignore file looks like this:  # This file contains default .gitignore rules. To use it, copy it to .gitignore, # and it will cause files like your settings.php and user-uploaded files to be # excluded from Git version control. This is a common strategy to avoid # accidentally including private information in public repositories and patch # files. # # Because .gitignore can be specific to your site, this file has a different # name; updating Drupal core will not override your custom .gitignore file.  # Ignore core and vendor when managing dependencies with Composer. # core # vendor  # Ignore configuration files that may contain sensitive information. sites/*/settings*.php sites/*/services*.yml  # Ignore paths that contain user-generated content. sites/*/files sites/*/private sites/*/files-private  cache/ files/  # Ignore SimpleTest multi-site environment. sites/simpletest  # If you prefer to store your .gitignore file in the sites/ folder, comment # or delete the previous settings and uncomment the following ones, instead.  # Ignore configuration files that may contain sensitive information. # */settings*.php  # Ignore paths that contain user-generated content. # */files # */private  # Ignore SimpleTest multi-site environment. # simpletest  # Ignore default text files /CHANGELOG.txt /COPYRIGHT.txt /INSTALL*.txt /LICENSE.txt /MAINTAINERS.txt /UPGRADE.txt /README.txt sites/all/README.txt sites/all/modules/README.txt sites/all/themes/README.txt  # ------------------------------------------------------------------------------ # SublimeText files # ------------------------------------------------------------------------------  # Workspace settings. *.sublime-workspace  # Project settings. *.sublime-project  # ------------------------------------------------------------------------------ # OSX # ------------------------------------------------------------------------------  # Common OSX files. .AppleDouble .DS_Store .LSOverride  # Thumbnails. ._*  # Files that might appear in the root of a volume. .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns  # Directories potentially created on remote AFP share. .apdisk .AppleDB .AppleDesktop Network Trash Folder Temporary Items  # ------------------------------------------------------------------------------ # Windows # ------------------------------------------------------------------------------  # Windows image file caches. ehthumbs.db Thumbs.db  # Folder config file. Desktop.ini  # Recycle Bin used on file shares. $RECYCLE.BIN/  # Windows Installer files. *.cab *.msi *.msm *.msp  # Windows shortcuts. *.lnk  # ------------------------------------------------------------------------------ # Linux # ------------------------------------------------------------------------------  # Tilde files. *~  # KDE directory preferences. .directory  # Linux trash folder which might appear on any partition or disk. .Trash-*   What do i have to change to make it perfect?


I have this error when i try sudo apt update command. E: The repository 'https://brave-browser-apt-release.s3.brave.com focal InRelease' is not signed. Err:4 https://brave-browser-apt-release.s3.brave.com focal InRelease   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4FE13824E3FFC656  I uninstall brave browser but still get this error. Can anybody help me. Thanks


How do I disable the on-screen keyboard in the unlock screen?

Somehow, I activated the on-screen keyboard (Onboard) in the unlock screen and I can't deactivate it now. I've restarted the computer, but it's still there in the unlock screen.   How can I deactivate the on-screen keyboard in the unlock screen?


Why is MiKTeX not pronounced as Miktek and is the former an allusion to the latter?

I recently watched a video of a singer introducing her new equipment, the Miktek CV4 microphone. It dawned on me that the spelling bears resemblance to MiKTeX and I became curious if MiKTeX is an allusion to Miktek. However, I have found no indication that one is named after the other, and in this , Christian Schenk explained the meaning of MiK in MiKTeX:     mik used to be my login name. It is an acronym for: Micro-kid. Hence the    capital K in MiKTeX.   But that leads to a question: the 'i' in Miktek is pronounced like the 'i' in microphone, but according to the  on the official MiKTeX website, MiKTeX is pronounced  mick-tech. If the name is derived from Micro-kid and the TeX program built for Microsoft Windows, wouldn't it be more natural to pronounce MiKTeX as Miktek?  While I'm at it, I remember reading somewhere that TeX is an acronym for Tau Epsilon Chi and the original pronunciation of TeX is tech with the ch sounding like that in loch (not lok). Can someone point me to a source? That would be much appreciated.


Why do some nicknames have no apparent relation with their original counterparts?

I find it unusual and rather contrary to common sense and logic that some nicknames should have no apparent relation to their original names, such as "Jack" for "John(eg. JFK)" or "Jonathan", "Patsy" for "Martha," or "Ted" for "Edward"(shouldn't it be Ed or Eddie?).  "Bill" for "William"(if someone could explain this to me, it would be great), "Jim or Jimmy" for "James" are still understandable as they rhyme in some degree with the pronunciation of the originals.  I wonder how this happened and why should the resulting tradition still be in use in today's English.  Can anyone enlighten me ?


Let's say, we are talking about folders in a computer. What is a correct way to refer to the names of multiple folders?  ex: - Folder names are incorrect. or - Folders' names are incorrect.


I remember watching this weird/freaky movie when I was a kid (maybe like 7-8, so perhaps around 7-ish years ago, give or take). I don’t remember a whole lot but from what I do remember is that it was about these people that had troubles with their ship and got stranded on the moon.    They explored as best they could and at one point found an old Russian spaceship that had been abandoned. There were some dead guys in it. Later on I vividly remember an alien that looked like a spider or a tarantula crawling under this guy's skin and eventually crawling into his helmet. (Those events might have been vice versa.)


i have a TextView which is set using...  // Declare view variables private TextView mInfoText;  // Assign views from layout file to cor. vars mInfoText = (TextView) findViewById(R.id.infoText);   how do i do an if else statement for the text inside it, i thought about doing it like this, but it doesn't work, i get a red line under the word "Sand".  if (mInfoText = "Sand"){                  //Show correct              } else {                  //Show incorrect             }   Any ideas?


7zip and Move Files with Spaces in Bash Script

I'm trying to 7zip and move some files that look like this:  ./[1998] - This year's book.pdf  ##note the brackets, spaces, and apostrophes  My script looks like this:  for file in `ls ./unprocessed/*.pdf`;  do      7z a -mx=0 -pMyPassword $file.7z $file ;     mv $file ./processed  done   (This is actually on Synology's linux, if it makes a difference.)  I've tried adding quotation marks around "$file", but that doesn't help on either of the two main lines.  I'm hoping I can do this without a lot of complicated grep or sed type stuff.  The main error I'm getting is that it's trying to split out the file names due to the spaces, and freaks out because it can't find "[1998]", etc.  I think 7z will be okay with it, once I work out the spaces/funky chars issue(?).  Has anyone else run into this?  Appreciate any advice!


Should I do obj = null after arraylist.add(obj)

I was just wondering if we should do obj = null after adding it into an array. Note that this is about a special case, read below.  First, let's consider class A like this:  public class A {     public void doSomething(B object) {         // some code here     } }   and class B like this:  public class B {     private final A a;     public B(A a) {         this.a = a;     }     public void aMethod() {         // Does something here         a.doSomething(this);     } }   Until now everything's ok. An object of type B can call the A's doSomething() method to edit the object based on some data there.  Now let's consider the following situation: the doSomething() adds the object B to an arraylist. Now which if these codes should I use:  public void doSomething(B b) {     arrayList.add(b);     b = null; } // or public void doSomething(B b) {     arrayList.add(b); }   In the first doSomething() we set the object to null, which means that the method caller becomes null. Well, that's OK to me as doSomething() call is the last statement I need to in my aMethod(). But is it good to do so?


Find the sum of $\sum \frac{1}{k^2 - a^2}$ when $0<a<1$

So I have been trying for a few days to figure out the sum of   $$ S = \sum_{k=1}^\infty \frac{1}{k^2 - a^2} $$ where $a \in (0,1)$. So far from my nummerical analysis and CAS that this sum equals  $$ S = \frac{1}{2a} \left[ \frac{1}{a} \, - \, \pi \cot(a\pi) \right] $$  But I have not been able to prove this yet. Anyone know how? My guess is that the  sum of this series is related to fourier-series but nothing particalr comes to mind.   For the easy values, I have been able to use telescopic series, and a bit of algebraic magic, but for the general case I am stumpled. Anyone have any ideas or hints? Cheers.


Supermartingale with constant Expectation is a martingale

In my lecture notes they use the fact, that every supermartingale $(M_t)$ for which the map $t\mapsto E[M_t]$ is constant is already a martingale. Unfortunately I can't prove it. Some help would be appreciated.   By definition of a supermartingale we have: $E[M_0]\ge E[M_s]\ge E[M_t]$ for $t\ge s\ge 0$. I also know that $M_s\ge E[M_t|\mathcal{F}_s]$. If I would take expectation I  would get an equality by assumption. However I do not see how this helps here to prove $M_s= E[M_t|\mathcal{F}_s]$


Why centering the data for machine-learning?

earners,  I thought Friday was a good excuse to do a very basic question, which still makes me wonder. Why do we need the centering part in standard normalization? Assuming normalization means here, centering plus scaling to the standard deviation.  If we want  fairness in the influence of the variables, eg distances, scaling has intuitive meaning. But why the centering matters? I have not found a satisfying answer 'in general'. That is, I am putting aside the cases the the actual algorithm requires such centering; I rather wonder whether centering, by itself, has a generic justification which applies to all or many scenarios. I presume such justification exists somewhere, as we all seem to follow the mantra of doing this standard normalization 'by-default'.  Thanks for sharing in advance, and have a great weekend.


What actually is the load capacitance of a quartz crystal?

I'm having hard time understanding the principles of piezoelectric crystal oscillators.  I've found this picture:   I understand that "load capacitance" is something you have to connect to a crystal. I understand that this basically means having to connect an external capacitor in parallel to the crystal. I also realize the basic principle of piezoelectricity; voltage/electric field across the crystal will physically deform the crystal, and the deformation also creates an electric field. So why is load capacitance needed? And if it's always needed and it's fixed, why is it not included in the crystal package? Is it because we need to sometimes operate it in series mode instead? In the equivalent circuit diagram, there is already a capacitance, Cp, parallel to the series resonant arm. Why do we need even more capacitance in parallel to that?  In the picture I provided, there is a curve showing impedance of the crystal with respect to frequency. Why isn't the load capacitance showing in the formulae for the resonant frequencies?


Symmetric encryption mode where ciphertext size is plain text size

I've had many questions on Stackoverflow on how to minimize the output of a cipher - during encryption of course - to the same size as the input. Obviously this is possible for a single block of plaintext, but it gets harder when the plaintext size is larger than one block. Using a stream cipher is possible, but you would need some kind of IV, and some place to store or derive the input data for the IV.  For now I am just looking for answers regarding confidentiality (authentication/integrity may be disregarded). Furthermore, I would like to focus on input that is bit or byte aligned and cannot be compressed. Obviously it would be nice to have obviously distinct results when using a different plaintext, even if it starts or ends with blocks of identical data. The key size should be manageable, say a maximum of 64 bytes.  Currently I presume that the best result can be achieved using a stream cipher and a nonce encoded to the minimum of required bytes. So then the encoded nonce would be the only overhead.  Note that I am very much aware that the solution space may be empty. In that case I very much would like to have this confirmed.


"You are not the owner..." message when trying to access folder

In the properties menu of this folder the permission is set to "root" user and group, it shows the message "you are not the owner, so you cannot change these permissions." I am indeed the owner and only user of the machine, how can I change the permissions?


What is meant by "object serialization"? Can you please explain it with some examples?


Is there any way to recover files from the informations in `/proc`?

I have just asked in an interview that if someone mistakenly deletes apache logfile from /var/log/apache/access.log while it's being written, can you recover it? After my answer interviewer said that we can recover the inode details of the apache process from the /proc file system and then can recover those files. I couldn't understand that properly as it was over the phone. So can anyone please explain how?


Visit to USA before F1 with a valid ESTA

I am French, and next month I will move to the USA to study there. I can enter the US with my F1 visa only 30 days before the date on I-20. However, I would like to go to the US before this date for a week, for holidays (but I also plan to view some apartments). I already have a valid ESTA. Do you think it is possible?


What dslr would best suit my needs? Switching from point and shoot

I currently have a point and shoot nikon p510 with 42x zoom. I actually use the zoom a majority of the time for wildlife photography (mostly birds). The only thing holding me back currently is image quality. Sometimes when I go to crop a photo the pixels are noticeable. I was looking into getting a nikon d5200 but I am really open to any camera around a similar price range. Also if I want to get the same zoom capabilities of my point and shoot, what mm lens would I need, and generally what is the cost of that? Thanks in advance!


Laptop utterly frozen on purple screen during boot

Please remove 'duplicate'; solutions in linked question did not help.  I've happily been living off other people's processing power by just plugging my Ubuntu-install-on-a-stick in their computers, but there's one machine that just does not want to cooperate: my partner's laptop.  Simply put, immediately after I have selected an option in the GRUB boot manager, the screen just goes purple and the computer no longer responds. I have to shut down the machine by pressing the power button.  The machine is an HP Envy laptop, it has UEFI and is only a few years old. There is no dedicated graphics card, just an Intel Integrated chip. The computer runs Windows 10 and does that just fine.  Tried solutions as of 31 August 2017:   Certain key strokes at the time of the purple screen: the computer seems to have completely stopped responding; nothing happens when pressing F4, F8, Ctrl+Alt+F2, Ctrl+Alt+Del or even the SysRq keys (the latter normally work even during boot). I don't expect anything to work as soon as this purple screen shows up. Recovery Mode, previous kernel version 4.10.0.28 instead of 4.10.0.32, adding kernel parameters nomodeset or nolapic. Waiting for 15 minutes Using a Live USB stick instead of a full install. Disabling Secure Boot. Booting in Legacy mode.   I have not tried all possible combinations of the above attempts (e.g. I did not wait 15 minutes for every new kernel parameter), let me know if there is a good reason to.  Any further ideas as to what might be wrong, or even just how I could somehow get diagnostic information about what causes the crash? Thanks in advance.


What is the $k-$th derivative of $ \frac{1}{1-x^2}$?

Let $f(x) = \frac{1}{1-x^2}$. How to find the $k-$th derivative of $f(x)$?   I thought it's an easy application of Taylor series.   $$f(x) = \frac{1}{1-x^2}=\sum x^{2k}$$.   On the other hand,   $$f(x) = \sum \frac{f^{(n)}}{n!}x^n$$  So I thought I just need to compare each terms. For example,  $$\frac{f^{(2)}}{2}x^2=x^2\Longrightarrow f^{(2)}=2$$  So I concluded that  $$f^{(2n)}=(2k)!,f^{(2n+1)}=0$$  But the solution gives me  $$f^{(n)}=\frac{n!}{2}\left( \frac{1}{(1-x)^{n+1}}+\frac{(-1)^n}{(1+n)^{n+1}}\right)$$  Where did I do wrong?


Will a Canon EF 28mm f/2.8 IS USM Wide Angle Lens - Fixed work on a Rebel T3i? What does IS UMS mean?


I need to be able to write this out in LateX or in maple or in tikz.


The Path of the center of a cutting tool that will cut out an ellipse (x/4)2+(y/2)2=1

I am currently stuck on this question and it's implementation on Mathematica. You are the chief engineer at the Badger Steel Plate Company in Madison, Wisconsin. In comes an order for 750 square steel plates, each measuring 12 inches wide and 12 inches long. Go to the drawing board plate = Graphics[{Blue, Thickness[0.01], Line[{{-6, -6}, {-6, 6}, {6, 6}, {6, -6}, {-6, -6}}]}];  plateplot = Show[plate, Axes -> True, AxesOrigin -> {0, 0}, AspectRatio -> Automatic, AxesLabel -> {"x", "y"}]  But here's the kicker: The plates are to have everything inside the ellipse $(x/4)^2+(y/2)^2=1$ cut out. Take a look: Clear[x, y, t];  x[t_] = 4 Cos[t];  y[t_] = 2 Sin[t];  hole = ParametricPlot[{x[t], y[t]}, {t, 0, 2 Pi}, PlotStyle -> {{Blue,  Thickness[0.01]}}];  Show[plateplot, hole]   You have a new robotic router that takes instructions from Mathematica and whose cutting center can be programmed to follow any curve you tell it to follow. If you are going to use a bit 1 inch in diameter, then what curve should you program in as the path of the center of the router to cut out the ellipse? After you have found the correct curve, add its plot to the plot above. Big Tip: If your curve is an ellipse, then you screwed up. The normal vector D[unittan[t], t] could be very useful. I was able to obtain the plot using normal vector D[unittan[t], t] for the plot which produced the Following plot Now I have the following question. Actually, the bit size of 1 inch in diameter used above was arbitrarily chosen by reaching into the  drawer and pulling out a bit. You could always get by with a smaller bit. Why? But you cannot use bits that are too large. Why? Try to estimate the diameter of the largest bit that you could use to do the job.  Any help on demystifying this question will be greatly appreciated


How to find out whether item is updating in SharePoint designer workflow?

Is there anyway we can get when list item updating in sharepoint designer workflow?. I have status ="New" it is need to send only one time when new item created.  But now it is sending emails when item is updating with status="New". So I want check if it is new then only check status="New" and send email. otherwise No.


Sending an E-mail to all addresses of all contacts in a contact group in Gmail

I'm trying to send an E-mail message using Gmail to a contact group where some of the contacts have more than one E-mail address and I want to send the mail to all of them.   Is there a way for me to do that?


Does name of sitemap file that Wordpress generates matter?

The Yoast SEO plugin for wordpress creates an XML sitemap with the file name sitemap_index.xml. There is another sitemap plugin (Google XML Sitemaps) in the Wordpress site I'm working on that creates a sitemap named sitemap.xml.   Unfortunately I don't know too much about SEO stuff. The top result in Google when searching for the answer to my question is this StackOverflow post that seems to say that it DOES matter for search engines other than Google: . It says to use sitemap.xml. But I'm doubtful of the accuracy of this claim. Also, the sitemap that YoastSEO generates is preferable for my client but it doesn't look like there is a way to configure the name of the sitemap file.  So I thought I would ask the experts here to get a definitive answer. Does it matter that the YoastSEO plugin generates a sitemap with a seemingly non-standard filename?


What does the 'k' prefix indicate in Apple's APIs?

I've run across many examples of Core Foundation variables named k + someVariableNameHere or k + APILibraryName(2Char) + someVariableNameHere.  What does this prefix K indicate?   Examples include:  kGLPFAStereo kCollectionLockBit kSetDebugOption


BibLaTeX won't work with MikTeX 2.9 on default settings and won't generate .bbl file

For whatever reason I'm unable to produce bibliography with the BibLaTeX package in MiKTeX. I'm running the 32-bit MiKTeX 2.9.5105 on Windows 7. I've conjured the simplest code I could think of and it still wouldn't work:  \documentclass{article} \usepackage{biblatex} \addbibresource{justin.bib}  \begin{document}  Hello! \cite{justinB}  \printbibliography  \end{document}   The bib file looks like this:  @article   {justinB,    AUTHOR  = "Bieber, Justin",    TITLE   = "{Baby baby baby (ohh)}",    PUBLISHER = "Ludacris Inc.",    YEAR = 2010   }   And this generates the next PDF (while not producing a .bbl file):    Now, I suspect it has something to do with the Biber package, which seems to me to be the default engine. I suspect this, based on similar threads I found regarding similar issues with Biber [] [] [], and from the fact that when I either force it to run with BibTeX or run it as-is in  it seems to work.  \documentclass{article} \usepackage[backend=bibtex]{biblatex} \bibliography{justin} \begin{document}  Hello! \cite{justinB} \printbibliography  \end{document}   Producing:    [] made me suspect the error may be due to me using a 64-bit installation of MiKTeX, but this persisted in the 32-bit version as well.  Neither could I find the temporary files suggested in [] and [], which point to different folders, making me suspect that Biber might generate a new folder name with a different number in each installation. I deleted whichever folders starting with the phrase 'par-' that I found on my hard drive but non of that helped to solve the problem.  Kind help would be appreciated :)


Searching for a string in a column in pandas not working

I am trying to search the following string in my pandas DataFrame but its not being able to find the string even though its present in the dataframe.  My code is:  df_temp = pd.DataFrame({'name' :['Wilkes, Mrs. James (Ellen Needs)']}) df_temp['name'].str.contains('Wilkes, Mrs. James (Ellen Needs)').sum()   This is giving me an output of zero where the expected output should be '1' . Is this because the string contains brackets or space or anything else? Is there a better method to search for strings in Pandas.  Any help would be really appreciated, Thankyou!


What effect does the lens hood have on pictures and how does its shape impact that?

I have a Sigma 50mm lens f1.4 and it has a lens hood that has a sine wave shape going around the perimeter of the lens.  I imagine this particular shape is useful for getting a particular effect and wonder what that is and how it would differ from just a straight edge.


ArcGIS 10.2 Windows 7 only uses 4Gb of RAM

I have 16Gb and have installed 64-bit background processing, but ArcMap seems to only be able to access 4Gb. I can use more in total with other programs. Is there a setting somewhere in Windows or ArcGIS that is only allowing it to access 4GB? Thanks.


I am writing a code for a Signals Software. The summary of logic goes as: users input --> String--> split at white spaces--> ArrayPerWord --> SignalArrayPerArrayPerWord. Output is loop. Up to here my code works well. Only the remaining part left is how to join this loop-output  in a sequence. I am searching  for concatenating these arrays like String concatenation as:    str=str+str1;   something like:  SignalArrayPerArrayPerWord=SignalArrayPerArrayPerWord   + SignalArrayPerArrayPerWord1;   in other words:  array=array+array1;   I need help at this last step.


Can the variance of a continuous random variable with known distribution be impossible to find?

I am solving a problem where the life expectancy of a microorganism can be modeled as having the PDF:  $ f(x)= \left\{ \begin{array}{ll}       kx^{-3} & x\geq 1 \\       0 & x \lt 1 \\ \end{array}  \right. $  Where $k=2$. I've calculated the average to be 2 hours, but when I try to calculate the variance as: $$\sigma^2=\int_1^\infty x^2f(x)dx - \mu^2$$  The integral doesn't converge. Am I doing something wrong? Thanks in advance!


Is this an instance of Priori Incantatem?

During the climax of Fantastic Beasts and Where to Find Them, Tina briefly duels with Graves and their wands appear to lock with each other (see picture). I believe this also happens some other times in the later Harry Potter films other than Harry and Voldemort's duel in the graveyard during Goblet of Fire.    We know that this is definitely a case of Priori Incantatem for the graveyard duel in Goblet of Fire, as the wands are locked for a sufficient amount of time for past spells to begin showing themselves (significantly, showing the people Voldemort had murdered), but is this the case for the other instances of wands locking? If so, does that mean there are a lot more wands out there with shared cores, as it was my understanding this could only happen if that criteria was satisfied?


Are these just objects, not arrays? How can I combine them into a new variable?  var common_options = {     'city': 'Baltimore',     'state': 'MD' } var other_options = {    'name': 'bob',    'job': 'cook' }   I tried this with no luck  var new_options = $.merge(common_options, new_options)   and  var new_options = common_options.concat(new_options)


Can't upgrade to 14.04 due to update-manager-kde being in the removal blacklist

Trying to upgrade to new LTS  Get error ... cannot calculate upgrade... and the upgrade stops.  In /var/log/dist-upgrade/main.log :   2014-08-22 03:42:25,357 ERROR Dist-upgrade failed: 'The package 'update-manager-kde' is marked for removal but it is in the removal blacklist.'   Too scared to manually remove a package that is named update-manager-kde!


How can i make my Cycles Cloth Shader to look Translucent

Hey i Created this Shader which i think really gives good results on cloth but i want to have a bit translucency in it but cant figure out the best way somethign with SSS maybe ? I dont know. You can Improve my Shader or give an even better Shader as Answer if you want.  PS: I figured out best way is with SSS just need to figure out the correct settings


Filtering 20GB of .csv files with grep: lookbehind doesn't seem to behave as expected

As per the title, I need to filter lines from about a dozen csv files totaling about 20GB.  The file contents are formatted as follows:  IdSensore,Data,Valore,Stato,idOperatore 2001,01/01/2019 00:00:00,3.4,VA,1 2002,01/01/2019 00:00:00,89,VA,1 2008,01/01/2019 00:00:00,0,VA,1 2039,01/01/2019 00:00:00,2.1,VA,1   I need to select all lines such that the first item is a specific ID of my choice, for instance 8010, and such that the next-to-last value (which is always a 2-character code) begins with V. I also need to only output the second and third values in each line (the date and the following number).  I managed to match the desired lines with:  grep -h "^8010,.*,.*,V.,.*" *.csv   However, this matches the whole line. I'd like to match only the parts I need, so that I can have grep output only the match and redirect it into a file.  I tried using lookbehind to check for the correct ID without matching it, as follows:  grep -h "(?<=^8010,).*,.*,V.,.*" *.csv   However, this appears to match nothing.  This is solved by using the -P option with grep, yielding the following final regex:  grep -Ph "(?<=^8010,).*,.*(?=,V.,.*)" *.csv   I now need to do this filtering for dozens of IDs: can I do this via the command line, or should I try and write a script?  Note that I am used to MATLAB and such, but resorted to the command line because attempting to import just 2GB of that data into MATLAB made my poor laptop run out of RAM - nevermind the minutes of waiting for MATLAB itself to get a grip.


Show that for any k∈N, if $2^{3k-1} +5\cdot3^k$ is divisible by 11 then, $2^{3^{(k+2)-1}} +5\cdot3^{k+2}$ is divisible by 11.  Base Case: k = 2  $\implies2^{3*2-1} +\cdot3^2 =77$  Since 77 is divisible by 11, the base case holds true  I.H: Assume it is true for  $2^{3x-1} +5\cdot3^x$,x∈N  Then; for k=x+1  $$\implies 2^{3(x+1)-1} +5\cdot3^{x+1}$$ $$\implies 2^{3x-1}\cdot2^3 +5\cdot(3^x\cdot3^1)$$ $$\implies 2^{3x-1}\cdot8 +15\cdot3^x$$  How do i proceed from what i have so far, also what variable do i use since k is already been used?


What's wrong with my XChartPanel constructor (Java Swing)?

The error is shown as,  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at org.knowm.xchart.internal.chartpart.Legend_AxesChart.paint(Legend_AxesChart.java:195)     at org.knowm.xchart.XYChart.paint(XYChart.java:254)     at org.knowm.xchart.XYChart.paint(XYChart.java:225)     at org.knowm.xchart.XChartPanel.paintComponent(XChartPanel.java:95)     at javax.swing.JComponent.paint(JComponent.java:1056)     at javax.swing.JComponent.paintChildren(JComponent.java:889)     at javax.swing.JComponent.paint(JComponent.java:1065)     at javax.swing.JComponent.paintChildren(JComponent.java:889)     at javax.swing.JComponent.paint(JComponent.java:1065)     at javax.swing.JComponent.paintChildren(JComponent.java:889)     at javax.swing.JComponent.paint(JComponent.java:1065)     at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)     at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)     at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)   Here is my code, where xyChart is declared as a field. I am convinced that it is the constructor part for XChartPanel gets wrong, but I simply don't know where to start.  /**      * Initialize the XYChart      */     private void initXYChart() {         // Create Chart         xyChart = new XYChartBuilder().width(800).height(800).title(getClass().getSimpleName())                 .xAxisTitle(xColName)                 .yAxisTitle("Y").build();          // Customize Chart         xyChart.getStyler().setLegendPosition(LegendPosition.InsideNE);         xyChart.getStyler().setAxisTitlesVisible(true);         xyChart.getStyler().setDefaultSeriesRenderStyle(XYSeriesRenderStyle.Line);          double[] yCoordArray = new double[xCoordArray.length];         // Loop through the series         if (!seriesList.isEmpty()) {             for (int i = 0; i < yCoordinates.size(); i++) {                 List<Double> yCoordOneSeries = yCoordinates.get(i);                 // Convert list to array                 for (int j = 0; j < yCoordArray.length; j++) {                     yCoordArray[j] = yCoordOneSeries.get(j);                 }                 xyChart.addSeries(yColNames.get(i), xCoordArray, yCoordArray);             }         }          xyChartPanel = new XChartPanel<>(xyChart);          add(xyChartPanel, BorderLayout.CENTER);     }


The sys.getsizeof() function returns the size of an object in memory, in bytes. As this function may return inaccurate results for third-party , how do I determine how much memory a BioPython object is using?  I loaded a 286MB file using  code (modified):  from Bio import SeqIO handle = open("example.gb", "rU") records = list(SeqIO.parse(handle, "genbank")) handle.close()   and sys.getsizeof(records) indicates that it is using 268KB.


I am looking to encrypt some data using  in  using a specific key and  value. Are there any good function libraries or COM components that would be good to use?  I looked at ; it allows a passphrase only, and won't allow setting specific key and IV values.


Show that the rings $2\mathbb{Z}$ and $3\mathbb{Z}$ are not isomorphic.

Here I am under the impression that $2\mathbb Z$ and $3\mathbb Z$ are the sets of even numbers and multiples of $3$ respectively and the operations are usual addition and multiplication. This is an exercise in Fraleigh Abstract Algebra.  I believe that $2\mathbb Z$ and $3\mathbb Z$ are isomorphic as groups on addition.  I started a proof by supposing that there was a ring isomorphism, $f$,  in hopes of finding a contradiction with $f(x\cdot y) = f(x)\cdot f(y)$.


If $a\equiv b \pmod{n}$ and the integers $a, b$, and $n$ are divisible by $d>0$ then $\frac{a}{d}\equiv\frac{b}{d} \pmod{\frac{n}{d}}$

this is related to my homework right now, i just don't have someone to ask  If $a\equiv b \pmod n$ and the integers $a, b$, and $n$ are divisible by $d>0$ then $$ \frac{a}{d}\equiv\frac{b}{d} \pmod {n/d} $$


Best way to declare functions on javascript objects

When defining javascript objects that behave like classes that have state and functions that manipulate that state is it better to define functions when defining the object like so:   function MyNewClass(){    //State    this.value = ""    this.otherValue = ""    //Functions    this.someFunction = function(){       //Some logic here    } }   Or it it better practice to define functions on the prototype of the object such as:   function MyNewClass (){    //state    this.value = ""    this.otherValue = "" }  MyNewClass.prototype.someFunction = function(){   //Some logic here }   Are there any advantages to defining object functions on the prototype?  Thanks!


Disable / Turn Off Windows 7 Search Prompt / Warning Banner About Indexing

Whenever a search is performed in Windows 7 on a folder that is not indexed, Windows throws up a banner at the top of the Explorer window (below the address bar) blabbing about Indexing and asking you to turn it on and index the folder:    After the thousandth or so time, that warning/prompt/banner flashing and its [x] needing to be clicked gets to be really annoying. I heard you the first time!!!  Worse, this still occurs even when the Indexing service is disabled, and Indexing is un-selected and all of the relevant options.  (Windows is acting like a stupid person who cannot understand a simple concept like yes, I heard you the first thousand times, but no, I don’t want to use it, now leave me alone! and so keeps bugging you anyway.)  Is there a way to disable the banner short of hacking explorer.exe?  What’s particularly aggravating is that I have already disabled and removed the Indexer from Windows and yet it still tries to use it and then complains when it can’t. Well duh; it’s been removed:


How to define comment delimiters of a table cell?

I would like to extend my  and know how to type a comment, using delimiters, in any table cell to be suppressed in the compiled PDF without the need to use, for example, \iffalse...\fi.  For instance, here, the comment delimiters are << and >>.  \documentclass[border=1cm]{standalone} \begin{document}  \begin{tabular}{cc}     \hline      1st entry <<1st comment>> & 2nd entry <<2nd comment>>  \\      \hline  \end{tabular}  \end{document}


How can I reduce the bitterness of onions?

Sometimes onions are too much better and can't use for salad. Then what should I do for reducing onions bitterness?


Not able to select the disk during Oracle 11g Installation

Hi All, During the installation, I am not able to select the available disks which are already stamped using ASM. Any idea what could be the reason? I have tried to select using keyboard space as well but doesn't work out. Appreciate your help. Thanks.


"Spending more time TRYING....." and "Spending more time TO TRY....."

Is there any difference in meaning between "Spending more time trying to....." and "Spending more time to try to....."? Below is the headline of an online news article I just read this morning, and I am wondering if the "trying" in the sentence is interchangeable with "to try" without changing any meaning of the entire sentence. If not, what's the difference?


I'm having performance oddities with Java2D. I know of the sun.java2d.opengl VM parameter to enable 3D acceleration for 2D, but even using that has some weird issues.   Here are results of tests I ran:  Drawing a 25x18 map with 32x32 pixel tiles on a JComponent Image 1 = .bmp format, Image 2 = A .png format  Without -Dsun.java2d.opengl=true  120 FPS using .BMP image 1 13 FPS using .PNG image 2  With -Dsun.java2d.opengl=true  12 FPS using .BMP image 1 700 FPS using .PNG image 2  Without acceleration, I'm assuming some kind of transformation is taking place with every drawImage() I do in software, and is pulling down the FPS considerably in the case of .PNG. Why though, with acceleration, would the results switch (and PNG actually performs incredibly faster)?! Craziness!  .BMP Image 1 is translated to an image type of TYPE_INT_RGB. .PNG Image 2 is translated to an image type of TYPE_CUSTOM. In order to get consistent speed with and without opengl acceleration, I have to create a new BufferedImage with an image type of TYPE_INT_ARGB, and draw Image 1 or Image 2 to this new image.   Here are the results running with that:  Without -Dsun.java2d.opengl=true  120 FPS using .BMP image 1 120 FPS using .PNG image 2  With -Dsun.java2d.opengl=true  700 FPS using .BMP image 1 700 FPS using .PNG image 2  My real question is, can I assume that TYPE_INT_ARGB will be the native image type for all systems and platforms? I'm assuming this value could be different. Is there some way for me to get the native value so that I can always create new BufferedImages for maximum performance?   Thanks in advance...


Is the declaration  public string FirstName;   equivalent to  public string FirstName { get; set;}   I believe there is no difference, but I found the following: when I created a model - something like this  public class Subject {     public string SubjectName;// { get; set; } }   and then posted this object using form in MVC, I get SubjectName value null. But if I remove commented accessors then I get a value. Is there any reason for such behavior?


Congratulation vs. congratulations — which one to use? How/when?


Interval of convergence of $\sum_{n=1}^\infty x^{\ln(n)}$.

What is the interval of convergence of this series or for what values of $x$ does it converge?   $$\sum_{n=1}^\infty x^{\ln(n)}$$   I tried the ratio and root test but they were inconclusive, any help would be appreciated.


What would most Americans call this: A pram, a stroller, or a baby carriage? Or something else?


Enable tab spacing for inserting programming code on Stack Overflow

I think writing code is pretty hard to write in the textbox, having to press spacebar so many times. Wouldn't it be great to have a shortcut of some kind? In all text editors, a tab is a shortcut. Spaces aren't really friendly.  For example, I press the TAB key, and it writes 4 spaces, writing code begins. Also, when you go to new line of coding, it would maintain the number of spaces you're currently at (nested code).


Is it okay to report classmates cheating on exams?

Is it acceptable or ok to report on students cheating?  Many times during a test or an exam, I have seen students in front of me either passing notes, or otherwise collaborating whenever the professor isn't looking.  I don't want to get into trouble, and I don't know if it's "alright" to rat on fellow classmates.  Part of me thinks they deserve being caught out, by virtue of trying to cheat their way through the course. However, I feel like I would get found out by other students if they were caught cheating.  What is the right course of action here? To be clear, I would never raise an accusation in the middle of an exam; it would only lead to me being ostracized by my peers.


Python: variable in the main program passing into the sub function

Python rookie question, in the following code,how does batch_size passing into sub function eval_on_data ? Is it global variable?   epochs = 10  batch_size = 128  def eval_on_data(X, y, sess):     total_acc = 0     total_loss = 0     for offset in range(0, X.shape[0], batch_size):         end = offset + batch_size         X_batch = X[offset:end]         y_batch = y[offset:end]         loss, acc = sess.run([loss_op, accuracy_op], feed_dict={features: X_batch, labels: y_batch})         total_loss += (loss * X_batch.shape[0])         total_acc += (acc * X_batch.shape[0])     return total_loss/X.shape[0], total_acc/X.shape[0]     ...     val_loss, val_acc = eval_on_data(X_val, y_val, sess)


Corollary of Noether's normalization lemma

Let $R\subset S$ be domains such that $S$ is a finitely generated $R$-algebra. Show that there exists $f\in R$, $f\neq0$, and elements $y_1,\dots,y_r\in S$ algebraically independent over $R$ such that $S_f$ is integral over $S'_{f}$, where $S'=R[y_1,\dots,y_r]$.   I am trying to prove it via Noether's normalization lemma; but I am not able to solve this problem, despite various attempts. Any help or hints will be appreciated. Thanks in advance.


3-4 old computers = general purpose cluster?

I have 3 old computers lying around right now running a P2 at 800 MHz(?), Intel Mobile 1.6 GHz, AMD Athlon XP 2000+ at 1.66 GHz, and (might not use this) P4 at 2.7 GHz, all with 512 MB Ram, and am considering clustering them together for fun/knowledge. They would be running an undecided version of linux, preferably ubuntu based.   The issue is what I want to use it for: general computing and occasional video encoding. By general computing I mean day to day tasks. However I'm not sure if every program started by a single X session is going to exist on the same machine, defeating the purpose of such a system. Will programs be split up or exist on one machine?  Second, assuming this is running 100baseT ethernet (not sure if the PCI slot itself could handle Gigabit), would the speed of having a program exist over the network be an issue? It seems that the constant asking of various things in RAM would be quite slow.  And before you say "buy another computer!", that's not the point of this question. I'm asking would it be usable, not necessarily practical. And yes I know, this is going to be extreamly power consuming.


How do I use nodes to combine two images when both have transparent areas?

Is there a way to use nodes to combine two images if both the images have transparency (i.e. alpha channels)?


Blender rendering video sequence instead of scene

This is an embarrassing basic problem, but I can't find the option to render my scene instead of what I'm working on in the video editor.  Every time I try to render my scene, it just renders what ever key frame I'm on in my video timeline.  Where is the option to switch between the two?  EDIT:  I found a Q/A for this.    In short Properties Panel > Render > Post Processing > Sequencer


Why does splitting hot tea from one glass in two glasses makes it cool faster?

For a while now I've noticed that if I take a cup of hot tea and pour it into two cups and leave it then both cups will cool faster than the single cup.  How is it that nature cools two cups of tea in parallel more quickly? It's still the same amount of tea but it gets cooled quicker if I have two cups.


From the command line, how do I set the Java CLASSPATH option to point to one or more directories containing multiple jar file? Are there wildcards for recursive directory and sub-directory support?  (My JAR files are sorted in several sub-directories.)


Proof Verification: Converse of Intermediate Value Theorem

A function $f$ is increasing on $A$ if $f(x)\leq f(y)$ for all $x<y$ in $A$. Show that the Intermediate Value Theorem does have a converse if we assume $f$ is increasing on $[a,b]$.  The converse of IVT along with the additional hypothesis would look like this: Lef $f:[a,b] \rightarrow \mathbb{R}$ be an increasing function on $[a,b]$ which satisfies: if $L$ is a real number such that $f(a)<L<f(b)$ (or $f(a)>L>f(b)$), then there exists a point $c\in (a,b)$ where $f(c)=L.$ If the preceding conditions are met, then $f$ is continuous on $[a,b]$.  The proof (if it's correct) I'm going to show is only for the $c \in (a,b)$, but I think for end points ($a$ or $b$), the method should be similar.  We want to show that given $c \in (a,b)$, for all $\epsilon>0$, there exists a $\delta>0$ such that $|x-c|<\delta \implies |f(x)-f(c)|<\epsilon$.  Since $f$ is increasing, we know that $f(a)\leq f(c)$. If $f(c)-\epsilon<f(a)$, then set $x_1=a$, if $f(c)-\epsilon\geq f(a)$, then we know by hypothesis that a $x_1<c$ exists such that $f(x_1)=f(c)-\epsilon.$ In either case, we have for $x \in (x_1,c]$ $$ f(c)-\epsilon \leq f(x_1) \leq f(x) \leq f(c) .$$  In a similar way, since we know that $f(c)\leq f(b)$, we can deduce that a $x_2>c$ exists such that, for $x \in [c,x_2)$ $$f(c)\leq f(x)\leq f(x_2)\leq f(c)+\epsilon .$$  Pick $\delta = \min \{c-x_1,x_2-c \}$, we then have $$|x-c|<\delta \implies |f(x)-f(c)|<\epsilon .$$  Is this correct? In the proof that I saw, they originally used $\frac{\epsilon}{2}$, instead of just $\epsilon$, but I think this one works just as well, what do you guys think?


FTP client on windows that save session password in encrypted text

Filezilla or WinSCP save password in plain text which is unsecured on public machines. Is there any FTP client can save and encrypt password so that people using it only can access to FTP but not able to see password? Thanks!


Movie with ogre-like creatures that capture humans

The only scene I remember is a bunch of humans being let out of somewhere so that the ogre-like creatures can see what they eat over a cctv I think. At one point a human finds a rat and starts eating it immediately. One ogre creature responds to this by saying something like "eww, don't they want to cook it first."   That's all I can remember.


Does "A guy named Tony" mean the same as "A guy who's called Tony"?

I know the passive structure and I know its application. But I've always noticed that a few sentences which have a structure similar to the passive, although they are not exactly passive. For example:     I met one really nice guy named Tony    according to my incomplete knowledge, I could rewrite it as      I met one really nice guy who is called (or) was named Tony   Now, I would like to know what the exact grammar point is here.   If I wanted to translate these two sentences in my own language, they would have exactly the same meaning, so do they really mean the same in English ?


How to delete my question if an answer already given? (Because I found I made a mistake somewhere else)  Say I asked "Error: code using algorithm-A went crash". And later I found it is not code's fault, but algorithm-A's fault.


Different answer with division and floor operator

I'm taking a large integer and dividing it by 5. answer provided by that operation is correct. But when I'm using floor operator then it rounds off it's digit at units place. Rest all digits are same in both cases. Can someone tell what is happening here? Code:    1 import sys   2    3 def gcd(a, b):   4        5     if b > a:   6         a, b = b, a   7    8     if b > 0:   9         return (gcd(a%b, b))  10       11     return a  12   13 def lcm(a, b):  14     return (a*(b//gcd(a, b)))    #floor operator  15       16 def lcm2(a, b):  17     return (a*(b/gcd(a, b)))    #division operator  18   19 a, b = 226553150, 1023473145  20 print (int(lcm(a, b)))  21 print (int(lcm2(a, b)))  user@ubuntu:~/py$ python3 findlcm.py 46374212988031350 46374212988031352


A box contains $200$ balls and $10$ of them are red. I need to pick up $20$ balls. What is the probability that $4$ of them are red?


See the whole HDRi image as cycles world

When I open a hdri image for a world background , I get an extremely enlarged image on the screen  , showing only a very small part of the image . What can I do to fix that problem ?


Checking whether toString has been assigned

I want a debugging output function to contain a test: if the object has a toString function, use it.  But then, every JavaScript object has a toString function, so what I really want is to check whether it has been assigned toString instead of just inheriting a default one.  What's the best way to do this? It occurs to me maybe you could exploit the fact that the inherited function isn't visible in for-in iteration, though it feels like there ought to be an O(1) solution.


20.04, keyboard swiss german macintosh, § and < are interchanged, everything else is correct

I like Ubuntu 20.04 (most times) and i like macintosh keyboards. At my keyboard I choosed swiss german macintosh. Everything else is correct, but § and < are interchanged. Of course ° and > are interchanged too. I tried some hours to help myself. I have two computes with the same problem. Perhaps someone could help me.


How does spectroscopy work if the atom will immediately re-emit a photon of the same frequency?

If a hydrogen atom in the sun absorbs a photon of frequency f that was heading towards the earth. Wouldn't the atom re-emit that shortly after in the same direction? (to conserve linear momentum) Why would see any gaps then in the emission spectrum in the sun that correspond to Hydrogen's spectral lines?


What can be done about the massive Close Votes queue on Stack Overflow?


Cuda error, Out of memory while I have 4GB of GPU

Many of the people have asked almost the same question.  I'm trying to render a big mesh + fur/grass file with a few characters on the screen.  when I hit render, after a number of processing, copying data to gpu etc... i get following error.  Mem: 2960.07M, Peak:2960.07M | CUDA error: Out of memory in cuMemAlloc(&device_pointer, size).  I'm using Geforce GTX 690 which contains 4GB memory.   Can somebody tell me how can i get GPU rendering, while 2960M is far less then 4196M of memory.   I know somebody would suggest me to use CPU.. but i'm curios why not GPU?   I've already compressed texture, etc   Edited  I don't think any other application is using any of my 1GB remaining memory. everything is closed but blender is there, also the GPU utilities are showing 2000/2000 MB are free on one card and 1900/2000MB is free on 2nd card.    i'm using GTX 690. with two GPUs of 2GB each. If somebody thinks that one GPU should have memory matching to the cuda memory/or Peak memory then I'm doubtful. Because in preferences Blender does know that I have 2GPUs where I can select either first GPU or second GPU or even both.   When I render some of smaller objects/scenes both of my GPU renders simultaneously with two blocks.  I'm running following specs  Xeon E5-1660 0 24GB - 1600mhz GTX690


I saw several posts about usage of "the" before acronyms, but I still haven't found any answer on my question. Let's say I developed a System for Definitions' Retrieval (SDR). So, should I refer to it as "the SDR" or just "SDR"?  The sentence is:     Integration of (the/a/?) SDR database with lexical (synonyms, antonyms, etc.) databases.


I'm trying to compile this code:  \documentclass{article}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @article{scottdemartinville1861, title = {Inscription automatique des sons de l'air au moyen d'une oreille artificielle}, volume = {53}, timestamp = {2017-03-16T21:21:25Z}, langid = {french}, journaltitle = {Comptes rendus hebdomadaires des séances de l'Académie des sciences}, author = {Scott de Martinville, Édouard-Léon}, date = {1861}, pages = {108--111} } \end{filecontents}  \usepackage[french,english]{babel} \usepackage{fontspec}   \usepackage[notes, natbib,doi=false,isbn=false,url=false,omitxrefdate=false,backend=biber,babel=other]{biblatex-chicago}   \bibliography{\jobname.bib}  \usepackage[autostyle]{csquotes}  \begin{document} \autocite{scottdemartinville1861} \printbibliography \end{document}   The italics disappear. If I remove \usepackage{fontspec} I get the right styling. Is there any solution to this?


What is SharePoint (on-prem) authentication realm?

Could anyone clearly explain    what is Sharepoint authentication realm (the one set by  cmdlet)? In what cases do I need to set this realm equal for 2 (or more) farms, and in what cases do I have to set the realm ID different for the farms? What are the possible usage cases of the authentication realm values?   As SharePoint's documentation, as usual, only covers the simplest and superficial terms/notions and cases, this info would be very useful.


"Unable to locate package" errors for all software

My apt-get doesn't install any programs. I try to install programs with apt-get install but always it shows same error: unable to locate package. For example I try to install the xbmc media center; here's what happens:  $ sudo apt-get install xbmc     Reading package lists... Done     Building dependency tree            Reading state information... Done     E: Unable to locate package xbmc   I have updated my package list with sudo apt-get update.


I was commanded by the administration to create a billboard-sized design for our marketing advertisement but this method is newly introduced to me as a graphic artist. My problem is that it's a 20x20 ft and I don't know the proper requirements for it not to be pixelated if printed. Here are my following concerns:    What software should I use? Should I stick with Photoshop or use other software?  If I use PS, what are the proper requirements to be inputted in terms of dimensions and resolution that will not hinder my computer's high-performance?  Specs: AMD A10, 16 GB Ram. Graphics: Radeon R7 12. Someone told me that it is done panel by panel. What is the process to be done when the output is ready for printing (or is it the printing house's concern to panelized the output?)


I can connect to my web server with my internal IP, but not my external IP?

I have recently installed a webserver, and port 80 is open. I can connect with 127.0.0.1 and 192.168.0.50, but I can't with my external IP. So, why is this?  I use a router from Ubee.


Proving that $\lim_{x \to 0} \frac{f(x)}{|x|}=1$ implies $f$ is not differentiable at $0$.

$$\lim_{x \to 0} \frac{f(x)}{|x|}=1$$ Then prove that $f$ is not differentiable at $0$. I was given this assignment and I'm not sure about my proof.. it feels like I'm assuming too much and not explaining with enough detail. Is there anything I need to add to make it sufficient? Assume toward contradiction that $f$ is differentiable at $0$. Then by definition we know that $f$ is continuous at $0$. Therefore $\lim _{x\to 0}f\left(x\right)=f\left(0\right)$ We know that $\lim _{x\to 0}\frac{\left(f\left(x\right)\right)}{\left|x\right|}=1$ Therefore we can conclude $\lim _{x\to 0}\frac{\left(f\left(x\right)\right)}{\left|x\right|}\cdot \left|x\right|=1\cdot 0=0$ But we can also rewrite this as $\lim _{x\to 0}\left(f\left(x\right)\right)\cdot \frac{\left|x\right|}{\left|x\right|}=f\left(0\right)\cdot 1=0$ Therefore $f(0) = 0$. Since $f$ is differentiable at $0$ we have $\lim _{x\to 0}\frac{\left(f\left(x\right)-f\left(0\right)\right)}{x-0}=\lim _{x\to 0}\frac{\left(f\left(x\right)-0\right)}{x}=\lim \:_{x\to \:0}\frac{\left(f\left(x\right)\right)}{x}\cdot \frac{\left|x\right|}{\left|x\right|}=\lim \:\:_{x\to 0}\frac{\left(f\left(x\right)\right)}{\left|x\right|}\cdot \:\frac{\left|x\right|}{x}$ Since the one sided limits of $\frac{f\left(x\right)}{\left|x\right|}$ exist, and are both equal to 1, we have $\lim \:_{x\to 0^+}\frac{\left(f\left(x\right)\right)}{\left|x\right|}\cdot \:\:\frac{\left|x\right|}{x}=\lim \:_{x\to \:0^+}\frac{\left(f\left(x\right)\right)}{x}\cdot \:\:\:\frac{x}{x}=1\cdot 1=1$ $\lim \:_{x\to 0^-}\frac{\left(f\left(x\right)\right)}{\left|x\right|}\cdot \:\:\frac{\left|x\right|}{x}=\lim \:_{x\to \:0^-}\frac{\left(f\left(x\right)\right)}{-x}\cdot \:\:\:\frac{-x}{x}=1\cdot -1=-1$ Since the limit doesn't exist, we have a contradiction to the fact $f$ is differentiable at $0$. Therefore $f$ is not differentiable at 0.


How to sort data by the numbers in third column?

If I have a file consisting of data that looks as follows, how would I sort the data based on the numbers in the 3rd column ? The space between the first two columns are NOT tab delimited but some number of spaces. The space between the second and third column varies based on the size of the number. Also note that there are spaces within some data of the second column ( like lp25( plasmid between ( and p) while other do not have any spaces( like chromosome).   HELIX       lp25(plasmid           24437 bp    RNA     linear       29-AUG-2011 HELIX       cp9(plasmid             9586 bp    DNA     helix       29-AUG-2011 HELIX       lp28-1(plasmid         25455 bp    DNA     linear       29-AUG-2011 HELIX       chromosome            911724 bp    DNA     plasmid       29-AUG-2011


I am a resident of Dubai (UAE). I am planning to go to the USA for a vacation. I am wondering if they are allowing tourists at this time.


I'm currently doing the Blender Guru donut tut and I'm experiencing a problem when putting the liquid in the cup. These black squares showed up after I applied the liquid. No idea what I did wrong. Would really appreciate any help!


“of my heart” vs “in my heart” and how to use prepositions correctly

I'm not a native speaker, and the uses of prepositions are driving me crazy.  I saw a post with the phrase "you are the champion of my heart" on it. I thought it should be "the champion in my heart", "of my heart" sounds like you have several hearts, and one of them is your champion... Then I googled it, found out this "of my hearts" usage got more results than "in". The same question goes for "Secret of my heart" and "secret in my heart".  I read some grammar books, there were a lot of examples for prepositions, but still cannot cover all of the situations. Are there any rules about how to use prepositions correctly or I just have to remember every case I've met?  Thank you.


Einstein's first postulate implies the second?

Einstein's two postulates of special relativity are as follows,     1. The principle of relativity: The laws of physics are the same in all inertial   systems. There is no way to detect absolute motion, and no preferred   inertial system exists.      2. The constancy of the speed of light: Observers in all inertial systems mea-   sure the same value for the speed of light in a vacuum.   Now for an exercise in my book, I am requested the following:     'Explain why Einstein argued that the constancy of the   speed of light (postulate 2) actually follows from the   principle of relativity (postulate 1).'   I have been trying to figure this out for a very long time now with no luck. I thought of identifying a physical law that if not the same in two different inertial systems leads to a contradiction, but I can't think of anything. Could you push me in the right direction?


Primitive element in $\mathbb{F}_9$, constructed with $f(t)=t^2 + 1$

Given $f(t) = t^2 + 1$ over $\mathbb{F}_9$, I first showed that $f(t)$ is irreducible over this field. $f(t)$ is not a primitive polynomial because $t^8 \ne 1$. So now I'm trying to find a primitive element $\alpha$ of $\mathbb{F}_9$.   $\mathbb{F}_9 = \{0,1,-1,t,t+1,t-1,-t,-t+1,-t-1 \}$. I know that I have to find a non-zero element in this set with order $8$ ($=9-1$). It's clear that $1,-1,t,-t$ cannot be primitive elements of $\mathbb{F}_9$. Let's look at the other four elements:  $(t+1)^8 = ((t+1)^2)^3 = (2t)^3=-t^3 = t;$     $(t-1)^8 = \dots= -t;$  $(-t+1)^8 = \dots = -t;$  $(-t-1)^8 = \dots = t;$  Does this mean that there are no elements of order $8$ and therefor no primitive elements in $\mathbb{F}_9$?


Units (invertibles) in a polynomial ring

I'm trying to determine $U(\mathbb{R}[x])$, where $U(R)$ denotes the unit group of a ring $R$.  I think the answer is all non-zero constant polynomials, but I'm having trouble showing that these are the only units.


Are there any differences between Gnu sed's "i text" and "i\ ...." commands?

Below is an excerpt from Gnu sed's documentation at   i text insert text before a line. This is a GNU extension to the standard i command - see below for details.  i\ text Immediately output the lines of text which follow this command.   The wording of these two syntaxes is quite different. In the past, I thought they have the exact same behavior and it's just the syntax is different. I did a bunch of experiment and all tests give the same result. I want to confirm, are there any differences between these two syntaxes? Thanks in advance.


Zero variance Random variables with density

I found  the question:      Can a random variable have a density function whose variance  is $0$ ?   I understood as a random variable which has a density.  What is your opinion on what I understood and if that is the case on the answer that was given


Setting margins for sections, subsections, and subsubsections

I'm currently writing a solutions manual for a textbook, and since the textbook has sections, subsections, and subsubsections, I need to make my book with those as well. But when i use all three, they don't auto-indent, so the levels of hierarchy (which is quite important for this book, trust me) are all jumbled up. How can I make a document so that it looks like the following?    (This example was made from Word '16, but since my manual has a LOT of equations and whatnot, I really need LaTeX)  I have a few ideas as to how I can do this, but currently all have either failed or I was not skilled enough to compile as such.   \newgeometry : I need several different margins on one page, but this command puts ever margin into its own page, which is DEFINITELY NOT WHAT I WANT. \def\changemargin : Since I use \section, this environment was "\renewcommand"-ed into the preamble, but this made my other "\begin~\end"s go haywire. It also puts enumerates, which ought to be in my (sub(sub))sections, back in the original margin geometry. Textboxes : Seems like the best answer to my question, but I don't know how to stick it inside the preamble.


How to exit VIM and get back to 'normal' terminal?

I did find this answer here:   However none of the commands listed worked for me. Exit, cntrl + [, cntrl + q  I'm totally a terminal newb, trying to learn how to setup git using homebrew. Watching this tutorial and I was able to set my global username and email, but I'm stuck in VIM.  I can get out of it by quitting the terminal, but I have to do this every time :(  Is there a better way?


Will a clean install of Windows 8 recognize an OEM license/product key?

As I understand it, OEM computers that come with Windows 8 preinstalled has the license/product key stored in the BIOS/on the motherboard somewhere.   If you do a clean install (*) of Windows 8 (for example with an ISO from MSDN) on an computer which came preinstalled with Windows 8, will it recognize that it already has a license? Or will it require you to purchase a new Windows 8 license to activate it?  (And excuse me if I have the terms confused, hopefully the meaning comes across.)    (*) Wiping the drive, perhaps because it has been corrupted in some way and ordinary recovery/repair is impossible.


Where can I find a stripped down version of Cinnamon for Ubuntu 18.04.5?

I have recently installed the Ubuntu environment Cinnamon and really like its look and feel but it is not without its issues and I have had to find patches or fixes.  This includes reinstalling.  sudo apt-get install cinnamon-desktop-environment  However, the only version I seem to find is the full suite distro (with Libro, a million little games and such) Wondering if there is a stripped down core of all necessaries without the bloat. Thanks! p.s.  If anyone has any reinstall fix it tips specific to Cinnamon - I'd be more than happy to hear about them.


If-statement doesn't respect my condition

I have an If statement in Java but it doesn't funtion correctly. I put a condition but the if doesn't respect that.  My code :  btnNewButton.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {             String name="";             String surname="";             name = txtName.getText().toString();             surname = txtSurname.getText().toString();             if (name!="" && surname!="") {                 msgAlarm.setText("<html>Insert all data<br/>before continuing!<html>");                  Runnable runnable =                          (Runnable) Toolkit.getDefaultToolkit().getDesktopProperty("win.sound.exclamation");                  runnable.run();             }else {             System.out.println("Else Started");             }   However when I run the program and the txtName and txtSurname are empty, Java run first statement. How can I resolve? Many Thanks.


I did some research and found that an earth-mass black hole, has theoretical mean density inside the Schwarzschild radius about 4•10^17 kg/m³. This is well within density of neutron stars which are almost entirely made of neutrons. So what kind of matter makes them? Is it the elementary particles or heavier elements?  PS: I found one very complicated answer on Reddit but I'm looking for a more elementary one, if possible at all. Thanks