What are your thoughts on epigraphs in theses?

I am wondering if there is a general consensus as to the suitability of epigraphs in a thesis, either a single one at the start of the document, or an appropriate quote to begin every chapter.  For example, at the start of a technical chapter describing some code, I could write     Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald E. Knuth   I am lucky to have complete freedom over how I choose to typeset my thesis (Master's thesis in astronomy) and I like the idea of a thematic quote to begin a chapter. However, I am wary of seeming unprofessional or tacky so I am curious to get some more thoughts on the matter.


When I type $RTD$ in LaTeX, in the output I am feeling like I am getting space between RT and D.  Will it happen due to the format of letter D?  Can it be avoided or we have to go with it?


Substring of string matching regex in a bash shell

In a bash shell, I want to take the take a given string that matches a regex, and then take the part of the string.   For example, given https://github.com/PatrickConway/repo-name.git, I want to extract the repo-name substring.   How would I go about doing this? Should I do this all in a shell script, or is there another way to approach this?


HTML Improvements Duplicate title tags in images

For my website Google Webmaster Tool is showing more than 700 duplicate title tags. All are images url. I am in a trouble, because I have uploaded all images to wp-content/uploads. But in WMT the link of images are indexed as url of the post added with alt text of the image as attribute. I don't know from where they are coming from, as I have uploaded them on wp-content/uploads. What should I do to get rid of. Anyone who helps me will be appreciated. This website is on WordPress.


One common math puzzle I've seen around asks for how many zeros are in the product of "100!"  Usually, the solution everyone gives goes something like try to match pairs of 5s and 2s that factor out of the numbers, which ends up being 24 zeroes (you can factor a 5 out of 20 of the numbers, and factor 2 5s out of 4 of the numbers; you can factor more than  24 2s out).   This however as far as I know gives the number of trailing zeroes at the end of the number, but does not account for the zeroes that are within the number. My question is, is this answer correct anyways? Can there be zeroes that aren't trailing that are inside? Why or why not and if there can be can we somehow figure out how many are within the product?   Thanks


What is the word for "Unnecessary detailed information"?

Can you tell me what the word is for "Unnecessary detailed info on a topic which is given after the prominent parts is given"?


I'm using GNU Emacs from  After Migration to OSX 10.11 "El Capitan", Auctex can't run the *tex utilities anymore:  Running `LaTeX' on `poisson' with ``pdflatex  -file-line-error   -interaction=nonstopmode "\input" poisson.tex'' /bin/sh: pdflatex: command not found   There is no problem running for example pdflatex on the shell:  #pdflatex This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)  restricted \write18 enabled.   but it seems that auctex calls /bin/sh pdflatex instead, and that does not work anymore:  /bin/sh pdflatex /Library/TeX/texbin/pdflatex: /Library/TeX/texbin/pdflatex: cannot execute binary file   maybe due to El Capitan's changes to Gatekeeper sandboxing.  How can I configure auctex to run pdflatex again?


separable Banach space with Banach-Mazur distances to $\ell_2^n$ bounded must be isomorphic to $\ell_2$?

If $X$ is a separable infinite-dimensional Banach space and $C\in\mathbb{R}^+$ is an upper bound for the Banach-Mazur distance $d(E,\ell_2^n)$ for all $n\in\mathbb{N}$ and all $n$-dimensional $E\leq X$, why must $X$ be isomorphic to $\ell_2$?  I've been thinking along the following lines: let $\{x_n:n\in\mathbb{N}\}$ be a countable, dense, linearly independent set in $X$ and let $E_n=\langle x_1,\dots,x_n\rangle$ for all $n$. Now for each $n$ there's a linear isomorphism $T_n:E_n\rightarrow\ell_2^n$ such that $\|T_n\|\|T_n^{-1}\|\leq C$. If we can somehow put together these $T_n$ to form a linear isomorphism $T:\cup_nE_n\rightarrow\cup_n\ell_2^n$ = {finite-length sequences in $\ell^2$}, then this extends by continuity to a linear isomorphism $\bar{T}:X\rightarrow\ell_2$.  But how do we get $T$ from the $T_n$? Each $T_n$ is only defined on finitely many of the $x_i$. Maybe some sort of infinite series? Or can we choose each $T_n$ so as to agree with $T_{n-1}$, and still keep the $\|T_n\|\|T_n^{-1}\|\leq C$ property?  Many thanks for any help with this!


A crossbowman fires three coloured bolts, then spends one minute searching the battlefield, which bolt(s) does he recover?

At the end of the battle, you can recover half your expended   ammunition by taking a minute to search the battlefield. PHB.146   A ranger PC with a crossbow has three ordinary bolts. He's very creative and painted the bolts different colours, the primary colours. One bolt is red, one bolt is yellow, one bolt is blue.  The ranger fires the three bolts at an opponent. He then spends one minute searching the battlefield, what is the ranger able to recover?  Each coloured bolt has a different but equal sentimental value to the ranger PC.


Is there a built in .NET exception that indicates an illegal object state?

What exception should I throw if I encounter an illegal state - for instance, an initialization method that should only be called once being called a second time?  I don't really see any built-in exception that makes sense.  This seems like something that should be in the framework - am I not poking in the right spot?


In the movie Cobb (DiCaprio) tells Ariadne (Page) that the most important rule in choosing a totem is to make sure that no one else has ever touched it.   This is emphasized with flashbacks showing him changing his wife's dream by using her totem which is the spinning top. If the most important rule is to use your own totem and never let anyone else touch it then why is he using his wife's totem? Is there anywhere that mentions what his original totem was?


My info@ email address keeps sending SPAM mails

Since somewhere in april my info@ email address is being used to send SPAM emails. I first noticed it when I received a 'Mail Delivery System' email with the message that an email couldn't be sent because the mail had "550 High probability of spam".  So, I contacted my website hoster (Versio).   Seeing that the emails that were being sent out on the local host (127.0.0.1) had no authentication, they advised me to change the password I used with that email address. (I use apple mail to send my mails, so it had a different sender host) See the image below. The only ones I've sent myself are the 4th of May ones.   I changed all passwords I use for my website / the website hoster, just to be safe. Used Safari-recommended passwords.  This didn't stop the sending of the emails, so Versio thought that there was a script on my website that was sending those emails. They ran a few scans but couldn't find any infected files.  Since I'm not that happy with the support they've given me, I hope to find some tips here. Can I do anything myself to stop these emails?


A question about the Littlewood-Paley decomposition.

Let $\{f_k(x)\}_{k=0}^\infty$ be a Littlewood-Paley decompositon, that is,  $$ f_k \in C_c^\infty $$  $$ \sum_{k=0}^\infty f_k (x) = 1,$$ $$ \text{supp} f_0 \subset \{ |x| \leq 2 \},$$ $$ \exists f \in C_c^\infty   \; \text{such that}\; \text{supp} f \subset \{ 2^{-1} \leq |x| \leq 2 \} \; \text{satisfying}\; f_k (x) = f(x/2^k).$$ Then I hope to show that there exist $C, C'>0$ such that $$ C' \sum_{k=0}^\infty \| f_k(g) \|_{L^2}^2 \le \| g \|_{L^2}^2 \le C \sum_{k=0}^\infty \| f_k(g) \|_{L^2}^2$$ for $g \in L^2 (\mathbb R)$. Here $C_c^\infty$ means $C^\infty$ functions with compact support and $\text{supp}$ means the support.


If $(x_n)$ converges and $x_n>0, y_n \geq 0$ then $\lim \sup (x_n y_n) = a\lim \sup y_n$

I am trying to show:  If $(x_n)$ converges to $a>0$ and $x_n>0, y_n \geq 0$ then $\lim \sup (x_n y_n) = a\lim \sup y_n$. But have not been able to make much progress.  I can show that if $p$ is a limit point of $a(y_n)$ then it is a limit point of $(x_n y_n)$ but I cannot show the converse of this, which would complete the proof. Any hints?


Suppose I have a em wave train.How do I know how many photon does it contain?And where are the photons?(like in the middle or more toward the end of the wave train)The frequency of light that we get from bulbs or sun can be measured so we can accurately state its energy .In this case where does the uncertainty in time ?Moreover when it hits the detector we know about its position so how it causes the uncertainty in momentum?


How to delete a values from json file and pass it as request in Cypress

I am learning Cypress and automating API tests. I have a JSON file in the fixtures folder and I want to pass this JSON file as a request body. {   "name": "Harry",   "email": "hello@cypress.io",   "mobile": "1234" }   so if I want to change the mobile value to something else then I can do like cy.fixture('request.json').then((requestBody) => {       requestBody.mobile = '5678'       cy.request({         url: requestUrl,         method: 'POST',         body: requestBody     }) })  If I want to delete the mobile value and just want to pass name and email from request.json then can I do this from the same file or I have to create a separate file. Is it possible in cypress?  requestBody.mobile.delete() //something like this


Cannot detect wireless driver intel ac wireless 9560 [logs included]

Currently using Ubuntu 18.04, and my wireless driver is not being detected.  I've included a .  $ dmesg | grep iwl [    6.212724] Loading modules backported from iwlwifi [    6.212724] iwlwifi-stack-public:master:6988:0d8892f2 [    6.224583] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002) [    6.229811] iwlwifi 0000:00:14.3: Direct firmware load for iwl-dbg-cfg.ini failed with error -2 [    6.230540] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-39.ucode failed with error -2 [    6.230547] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-38.ucode failed with error -2 [    6.230552] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-37.ucode failed with error -2 [    6.230557] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-36.ucode failed with error -2 [    6.230562] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-35.ucode failed with error -2 [    6.236670] iwlwifi 0000:00:14.3: loaded firmware version 34.0.0 op_mode iwlmvm [    6.248314] iwlwifi 0000:00:14.3: Detected Intel(R) Dual Band Wireless AC 9560, REV=0x318 [    7.264081] iwlwifi 0000:00:14.3: SecBoot CPU1 Status: 0x3, CPU2 Status: 0x2477 [    7.264084] iwlwifi 0000:00:14.3: Failed to start INIT ucode: -110 [    7.276165] iwlwifi 0000:00:14.3: Failed to run INIT ucode: -110   sudo modprobe iwlwifi returns no output.


Do I need a visa to travel to Paris from London if I am a U.S. citizen?

I am going on a trip to London, and then I will be going directly to Paris. I am an American citizen; therefore, I do not need a visa to go to London, but I am not sure about Paris.


Add posibility to add biography elements to profile from application

Add biography elements from stackoverflow application


Is there anyone who cares about the site being friendly for beginners?

One of the stack sites I'm a member of has always made me feel that it is too harsh on beginners. Those with several Ks of reputation act too strictly on beginners in comments. For example, in some questions which are not asked in proper technical language, but it is very apparent that what one beginner is trying to ask, they'll show-off some "heavy"  words and/or try to troll the questioner and are more likely to demoralise than help an individual. It adversely affects both, questioner and impression of the stack community on a visitor.   Like come on,  we all once started from beginning, why can't we be kind? Until when are we going to allow bullying in comments? Haven't you felt that trolling anytime? Am I the only one who feels like that?


List<Event> newEventModuled = new List<Event>();     newEventModuled = [select Ownerid,Subject,what.name,Description__c,ShowAs,Time_Spent_In_minutes__c,                          StartDateTime, EndDateTime,IsAllDayEvent,Description,Location,IsPrivate,account.Name,                         Activity_Type__c,Channel_partner_Visit__c,Customer_Partner_Visit_Activity__c,                         Location__c,Daily_Activity__c,OwnerComments__c,DescriptionEvent__c,UndecidedEventInviteeIds,                         AcceptedEventInviteeIds,(select relation.name from EventWhoRelations)                          from event where id IN :eventIds];   Looking at this query can someone tell exactly where my query is fetching extra data or where do i have to put limit?  Its givinh Too many Soql query 101 error in handler!


2.92, Simple Boolean, Won't Work... Why?

I am no stranger to booles, but this one won't work and it is driving me crazy. What am I missing here?


Why would I want to install a snap if I can install via apt instead?

This is not a duplicate of the following questions     because:  My question specifically states that I am interested in end-user experience, not ease or efficiency of development, which is what the other question largely refers to.  As has been noted, development/deployment affects end-user experience, but it is not all there is to it, and neither of the referenced questions address issues that directly impact an end-user's ability to use the application (e.g. trouble accessing data on other partitions, sluggishness, etc.) Maybe "compelling" wasn't the right word to use; my intent was to ask about real-world, experiential consequences, i.e., things that happen or  don't happen, as opposed to theoretical/architectural statements that, while presumably accurate, don't appear to be backed up with any real-world examples to support the statement. I should have stated more directly that my intention was to get answers that consider the balance of "advantages" to snaps against the real-world downsides experienced by end-users. The "duplicate" question is largely theoretical, and doesn't discuss end-user experience at all. The "duplicate" question makes no mention of anything remotely similar to the example I used here, i.e., that there is an end-user downside to snaps (in this case, lack of access to data on other partitions and snap app performance) that isn't discussed in any available documentation that I can find.   While I understand that snap has a big advantage in making apps more widely available, is there any compelling reason to choose snap over apt, if the app is available for my distro/version via an apt package? I am curious because I've been doing some reading about snaps, and all the excitement about the method seems to be about things that are advantageous for app developers, but I've seen virtually nothing on how this makes life easier for end users (aside from the obvious; that they may be able to install apps that aren't otherwise available on their distro/version). I installed snapd and installed a couple of snaps and was really frustrated and disappointed.  The snap apps are slow and it's difficult, if not impossible, to access files on other partitions from within the snap. While I've seen plenty of info that says snaps are "faster," "easier," "safer," etc., I haven't been able to find anything that explains why or how this is actually the case. Being very new to Linux, I am wondering if maybe I'm just missing something obvious? To be clear, I understand why the technology might be useful overall, but I can't find anything that explains whether/why it is a better option even when the app in question is available for install via a more traditional method, and all dependencies are met.


Detailed Bathymetric/Bathymetry contour data (0-200M)

I am looking for free Bathymetric contour data in shapefile format for depths between 0-200 meters for North America. I prefer contours at 10 meter increments, but will take whatever I can get.  I have found Bathymetric layers for 0 and 200 meters from . However, I need more detail within that range.   My questions are:    Where can I find freely available Bathymetric data between 0-200 meters for North America? How did you find the data and what did you use to search for it?


Why an eigenspace is a linear subspace, if the zero vector is not an eigenvector?

I've started studying Eigenvector and Eigenvalue.   It says in my book that 0 is excluded from being an eigenvector because it breaks the uniqueness of eigenvalue associated with each eigenvector.   But, there is a proof in my book showing that Eigenspace is a subspace. In order for it to be subspace, does that mean that there must be a zero element? But, Eigenvector can not be zero... Am I misunderstanding something?


Can an indefinite integral have multiple answers? (Besides the ' + C')

So I came across with this integral today in my midterm:  $$ \int \frac {\tan(\pi x)\sec^2(\pi x)}2 $$  And I got two correct answers:  $$\frac {\sec^2(\pi x)}{4\pi} +C$$  And  $$\frac {\tan^2(\pi x)}{4\pi} + C$$  The first one, I get it by substituting $u=\sec (\pi x)$ and the second one, by substituting $u=\tan (\pi x) $  I already differentiated both answers and got to the same integral, but my question is, if both answers are correct and if it were a definite integral, which answer should I use? Wouldn't they give different results?


Capacity Error (with isolated problematic excerpt from code/minimal non-working example)

I am working on an article in XeLaTeX and I am getting this error: capacity exceeded main memory size=5000000 By moving around \end{document} and by cutting and pasting various parts of the document, I have isolated the problem to the following section. Could someone point me towards the problem? Sorry if this is a stupid question. I believe this to be the minimum (non-)working example: \documentclass[12pt, letterpaper]{article}  \usepackage{gb4e} \noautomath  \usepackage{libertine}  \begin{document} \begin{exe} \ex \gll suk hapáng\footnote{corresponds to the proclitic /hap=/} \\ house above \\ \glt 'on top of (a) house' \end{exe}  \begin{exe} \ex  \gll yątci kį sukhǫ́\footnote{corresponds to the proclitic /suk=/} wąre \\ stream the over sit.{\Ind} \\ \glt '[It] sits over the stream.' \end{exe}  \begin{exe} \ex yancámǫntu \\ \gll yancá mǫntu \\ creek in \\ \glt 'in [a] creek' \end{exe} \enddocument


having a question on the symbol $dN_p$ when writing down its correspondence matrix

My question is about the differential of the gauss map $dN_{p}$, to start the convenient expression of the symbol and formula, I have to construct some functions(maps).  First, there is a one dimension parameters line and I use the parameter as $t$, and the function $\overline{α}(t)=(u(t),v(t))$ maps $t$ to $uv$ plane, and which is a plane curve on $uv$ plane.  Second, there is a function $\mathbf{x}$ that takes $\overline{α}(t)$ to a curve on a regular surface, $α(t)=\mathbf{x}(\overline{α}(t))=(x(u(t),v(t)),y(u(t),v(t)),z(u(t),v(t)))$.  Final, there is a map $\mathbf{N}$ represents the unit normal vector on each point of the surface (x,y,z), $N(x,y,z)=(X(x,y,z),Y(x,y,z),Z(x,y,z))$.  If $p$ is a point on the surface(i.e.,$p=α(0)$),then, the linear map $dN_p$ corresponds a 3x3 matrix: \begin{bmatrix}X_x&X_y&X_z\\Y_x&Y_y&Y_z\\Z_x&Z_y&Z_z\end{bmatrix}  The matrix derive from the chain rule in calculus: $\frac{dN(α(t))}{dt}=(X_{x}*x'(t)+X_{y}*y'(t)+X_{z}*z'(t), Y_{x}*x'(t)+Y_{y}*y'(t)+Y_{z}*z'(t), Z_{x}*x'(t)+Z_{y}*y'(t)+Z_{z}*z'(t))=\begin{bmatrix}X_x&X_y&X_z\\Y_x&Y_y&Y_z\\Z_x&Z_y&Z_z\end{bmatrix}\pmatrix{x'(t)\\y'(t)\\z'(t)}=(dN)_{3x3}(α'(t))$, here, $x'(t)=\frac{dx(u(t),v(t))}{dt},y'(t)=\frac{dy(u(t),v(t))}{dt},z'(t)=\frac{dz(u(t),v(t))}{dt},$  Now ,I have the question about the partial derivative $\pmatrix{X_x\\Y_x\\Z_x}$,  the definition of it is  $$\lim_{\Delta t\to 0} \frac{(X(x+Δt,y,z),Y(x+Δt,y,z),Z(x+Δt,y,z))-(X(x,y,z),Y(x,y,z),Z(x,y,z))}{\Delta t},$$  but even $(X(x+Δt,y,z),Y(x+Δt,y,z),Z(x+Δt,y,z))$ may not defined because the domain of the map $\mathbf{N}$ is only defined on the surface, not a solid domain, so if we move a little $Δt$, it may go out of the domain(the domain is only on the surface).So, I'm not really sure how we interpret the correspondence matrix of the linear map $dN_p$, maybe there are some concepts need to be clarify, thanks for help.     Thanks Andrew and janmarqz, I think that we couldn't express the correspondence of the linear map $dN_p$ in this way(using (x,y,z) domain when we want to differentiate it at a point on the surface) because as I mention above, the partial derivative column vectors may not exist.   Instead, we can explained the $dN_p$ is in the form: $dN_{\{u,v\}} \circ \mathbf{τ_{β}}$ where $β=\{x_u, x_v\}$ is the basis of $T_{p}(S)$, and $τ_{β}$ is a linear transformation that express the vector in $T_{p}(S)$ in the basis $\{x_u, x_v\}$ as its coordinate.      $dN_{\{u,v\}}\circ τ_{β}(x_{u}*u'+x_{v}*v')=dN_{\{u,v\}}\left(\begin{array}{c} u'\\ v'\end{array}\right)=N_{u}*u'+N_{v}*v'$, so in this way, the problem is solved and $N_u$ and $Nv$ both exist because $N_u=\frac{\partial\frac{x_{u} \times x_{v}}{\|x_{u} \times x_{v}\|}}{\partial u}$, and I think that it exist.    Do others agree with my explaination?


I've got a list of links which have a click event attached to them, I need to get the ID from the child A link. So in the example below if I clicked the first list element I'd need google retuned.   I've tried '$this a' but can't quite work out the syntax.  $("ul li").click(function(event){   $("input").val($(this).html());              });

Google


Confused about permission of group `www-data` for `/var/www/html'

My /var/www is this (permissions 755)  drwxr-x---  3 www-data www-data 4096 gen 11 16:27 www   My /var/www/html is this (permissions 755)  drwxr-xr-x  2 www-data www-data 4096 gen 11 16:27 html      NOTE: if it's important, I installed php 7.2 and nginx on a Ubuntu 16.04.5; that for say that I manually created /var/www and /var/www/html because not created from nginx's installation   My user is named mirko  And using command group mirko I can see I am member of www-data  mirko : www-data adm cdrom sudo dip plugdev lxd lpadmin sambashare   But I cannot write files in /var/www/html. Of course, it because of 755 permissions.   question: the 755 is the suggested permission for /var/www/html in a lot of tutorials; but in this way, how is supposed I manage file into this folder?  My user must be able to run a composer create-project for example, and also git pull and so on.  What's the right settings for shell user and folder?     I know I can simply add +w recusively. My question was: if suggested permissions for html folder is 755  (or even 750) and suggested ownership is www-data:www-data...  how can a shell user access html subofolders?   Thanks in advance


While using a brand new MacBook Pro, with Touch Bar, somehow the Dock got locked.  I didn't do anything that I know of.  Nothing moves at all, in or out.  I'm trying to remove and add items, apps, and nothing takes.


I had about $10.5K in my Fidelity 401K account invested in their target fund. I started it a year ago. This is my first time with investing in the stock market.  For the past 2-3 months, it keeps going down. Now it's at $9K. Lost $1.5K.   I don't need this money for next 20 years. Question is, is this normal? Should I pull the money out? I had seen the fluctuations in the last year, but that was like losing $200 to $300 and coming back up. But for the last few months, it keeps going down.   What's your advice?


I would like to edit the metadata of several mp3s at once (say Album, Artists etc.). What is a quick and easy way to do that? I have Windows, OS X and Ubuntu available, so I don't mind using any of these OSes, as long as it's easy and quick.


How to set the font for a \section title (and chapter etc)

How do I specify the fonts, and general font size, for the titles, chapters and sections in my document  Update:  I can see how my question is confusing.  I use \section and \chapter etc. to organise my document, and I would like to change the way the section and chapter titles are displayed.


Does unprotecting a question bump it to the front page?

I did quite some research but didn't find a post or FAQ that explained that detail.  I ask this because, in case it does bump it, wouldn't that make the question a target for noisy/shallow answers from new users again? Although, I also suppose that bumping it is the only way for other users to find about it again, but as you can see I am caught in this dichotomy.  This is the reason why I didn't unprotected a post just to find out if it does, as this makes me unsure how to properly handle an carry out an effective unprotection.  I already read the FAQ and other posts, but do you have any other tips and insights you think are good for an effective protecting/unprotecting?


How do I move the "Show Applications" icon in Ubuntu Dock?

Ubuntu 17.10 introduces the GNOME Shell with the  (based on  GNOME Shell extension) and it allows you to put the Dock on the bottom of the desktop:    However, there is no easy way to move the Show Applications icon (shown on the right) to the left of the Dock. There is no such setting in GNOME Control Center. There is already a  filed, but does anybody know any workaround until it gets fixed by Ubuntu Dock developers?


Successful AJAX request breaks jQuery funtion

First of all I have read about Event Delegation in several stackoverflow posts and articles like this: , and it makes sense, it just isn't working in this instance. I am working on a Rails 3 application. I have a nested form using the simple_nested_form gem that submits a new record via ajax and upon success, renders a partial containing new record(s) and the form on a #show template. The design requires: The user arrives on the page and can see the records (if there are any) and a button to Enter/Edit Timecard. The button will toggle between showing the records or the form, but not both. This works fine. The user clicks the button, is presented with the form, then adds, updates or deletes a record. They click submit, the ajax updates the page, but now the Enter/Edit Timecard button no longer works. The following is edited for brevity.  The partial rendered in the show template

     <%= render partial: 'timecards'%>

   The contents of the partial
  # Display records

   # The from

       # Link that when clicked either displays the form or the records but not both   Enter/Edit Timecard
   Relevant SCSS that hides the form on initial page load  #update-timecard-area {   #timecard-form-area {     display: none;   } }   Function that hides/shows parts of the form  $( document ).ready(function($) {   $("#timecard-partial").on( "click", "a#toggle-timecard-form", function(e) {     e.preventDefault();      if ($("#timecard-display-area").is(":visible")){         $("#timecard-display-area").hide();         $("#timecard-form-area").show();     }     else if ($("#timecard-form-area").is(":visible")) {         $("#timecard-display-area").show();         $("#timecard-form-area").hide();     }   }); });


What's the best way to draw UML class diagrams in LaTeX?


Gparted will not allow me to unmount partitions

I am having a problem in Gparted. I am running Ubuntu 16.04. I need to expand my main partition, containg "/", into unallocated space. I have used a live DVD with 18.04 to try to use Gparted to expand the partition. I believe that I have unmounted the partition because the "lock" symbol disappeared and I swich linuxswap partion to Off. Despite my best efforts the partition is not changeable in size. It's shown as Full in Gparted and I am wondering if this condition is somehow inhibiting my desired expansion of the partition. Can anyone suggest what I am failing to do correctly?


Integration practice of $\int \frac{\sqrt{25-y^2}}{y}dy$

I need to solve $\int \frac{\sqrt{25-y^2}}{y}dy$.  I originally thought IBP, but that led to a very large and confusing algebra problem.   Then I started to look at the $\sqrt{25-y^2}$ and started to consider doing a $u$-substituion, and letting $u=\sin\theta$ and $du=\cos\theta d\theta$. Once I started playing a bit, the intuition was lost.  Any and all help is appreciated.


How does Extra attack interact with multi attack?

I've got a barbarian 5/druid 3 multi class in my game and I'm trying to figure out how extra attack and multi attack, say from being a bear, will stack. 3 attacks total? 4? The PHB bursts into flames and summons a dread elder ruleset?


If $x$ and $y$ are positive integers, then when is $2^x+3^y$ a perfect square?   I tried this question a lot but failed. I tried dividing cases into when $x,y$ are even/odd, but still have no idea what to do when they are both odd. I tried looking into when is  $2^x+3^y$ is of the form $6k+1$ and so on .. but couldn't succeed. Can anyone help?


Will generated tokens be progressively stronger when using Cathar's Crusade and Sorin, Grim Nemesis?

I played a game yesterday where I had  and  on the battlefield. I managed to activate Sorin's -9 action:      Put a number of 1/1 black Vampire Knight creature tokens with lifelink onto the battlefield equal to the highest life total among all players.   One of my opponents had 35 life at that point, so I got 35 tokens.  Cathar's Crusade says:     Whenever a creature enters the battlefield under your control, put a +1/+1 counter on each creature you control.    How will this play out? As far as I can tell, this will result in one of the following scenarios, ranging from the least to the most powerful:   I put 35 tokens on the battlefield at the same time. This will trigger the effect once, giving all of them one counter. I put the first token on the battlefield, it gets one counter. I put the second token on the battlefield. It gets one counter, and the first token will get one counter for a total of two. Continuing this pattern will end with a battlefield with 35 tokens with an increasing number of counters (ranging from 1 counter on the last token to 35 counters on the first token) I put 35 tokens on the battlefield at the same time. This will trigger the effect 35 times, giving all the tokens 35 counters.   We went with option 2, but I had some other bolster cards on the board (,  and  with three counters) so I would have easily won even if we had chosen option 1, but I'm still curious which option is the correct one.


Very low wiper resistance Digital Pots - Anyone know of any?

I am trying to find a 1k linear digital pot which has a very low (preferably 0) wiper resistance. Any interface would be ok (apart from just up/down).   I found this article:  resistance  which could be a way around the issue.   What I am trying to do, is substitute the 1k pot in the classic fuzz circuit     with a digitally controlled one, and it needs to pretty much go down to 0 Ohm to get the full fuzz effect. I am not sure if the above 'trick' may interfere the fuzz's simple circuit which is extremely sensitive.  Does anyone have any suggestions, feedback or alternative idea?   Thanks!


How to report that a Sentinel-2 Level-1C granule is not georeferenced accurately (Google Earth Engine)

I made some greenest pixel composites in GEE and they looked odd--like a river showing up in a town. I found that a granule from 2015 is not georeferenced accurately...then I found another from the same date.      Is there a process for reporting this sort of thing?


"Born in a City" or "Born at a City"? Uncommon Usage by Edward FitzGerald

I was reading Rubaiyat of Omar Khayyam, translated by Edward FitzGerald. In introduction, the translator writes:     Khayyam was born at Naishapur.   I always thought that we needed to use in in such a case. Am I wrong, or is the usage of at legitimate but perhaps old-fashioned?  Edit: A similar  was asked before, which lead people to think that mine is a duplicate of that. However, it is not, because that question asks In which case should we use 'in' or 'at' for a city?", while what I am asking is Why 'at' is used in a case we are taught 'in' would be appropriate? To be more specific, I was born in a city is the widely accepted usage today, probably due to the fact that we perceive a city as a three-dimensional space in that context, referring to the most upvoted answer to the referred question. My question should be seen as a counter-example to the answers given to that question, because I provide an example, where FitzGerald wrote born at a city, and wonder if that is just an old-fashioned usage that we no longer use or there is more to it.


All the ternary n-words with an even sum of digits and a zero.

I'm trying to find a recursive formula for all the ternary (using ${0,1,2}$) sequences of length $n$ which contain at least one zero, and have an even sum of digits.  My attempt so far is added below. I think the idea is right, but the recurrence relation I get fails when setting in numbers (and it's not always an integer..). any ideas?     Denote with $f\left(n\right)$ the number of legal sequences as in the question, $\bar{f}\left(n\right)$ as the number of sequences with at least one 0 with an odd number of digits, and as $g\left(n\right)$ the number of sequences with an even sum of digits and with no zeroes.      For any sequence, the sum of digits would be even if and only if there is an even number of 1s, therefore any legal sequence of length $n$ can be achieved in a unique way out of the following:      • Starting from a sequence where the digits are even and there is no zero, append zero at the end. There are $g\left(n-1\right)$ such sequences.      • Starting from a legal sequence of length $n-1$, append 0 or 2 at the end, adding $2f\left(n-1\right)$ sequences.      • Starting from a sequence with a zero where the sum of digits is odd, append 1 at the end, adding $\bar{f}\left(n-1\right)$ sequences.      These gives us that $$f\left(n\right)=2f\left(n-1\right)+\bar{f}\left(n-1\right)+g\left(n-1\right)$$      Considering $g\left(n\right)$ first, we are interested in strings of length n from $\left\{ 1,2\right\} $ with an even number of 1s. There's a simple bijection to the set of strings of length $n$ with an odd number of 1s by “flipping” the first value, and as these sets include all possibilities with no overlap, it follows that $g\left(n\right)=2^{n-1}$.      Next looking at $\bar{f}\left(n-1\right)$. We can use the fact that the sequences with a zero where the sum of digits is odd and the sequences with a zero where the sum of digits is even are exactly a disjoint union of all the sequences with a zero.      As there are $n\cdot3^{n-1}$ such sequences (we first choose one location to be 0, and fill the rest normally), we get that $\bar{f}\left(n\right)+f\left(n\right)=n\cdot3^{n-1}$, or $\bar{f}\left(n\right)=n\cdot3^{n-1}-f\left(n\right)$      Putting this all together we get that $$f\left(n\right)=2f\left(n-1\right)+\left(n-1\right)\cdot3^{n-2}-f\left(n-1\right)+2^{n-2}  or f\left(n\right)=f\left(n-1\right)+\left(n-1\right)\cdot3^{n-2}+2^{n-2}$$


why `dpkg -l | grep package` is showing a package after being purged

To uninstall a package (Ex: tor) installed from repository one should use   sudo apt-get remove tor   I did this but dpkg -l | grep tor shown something against the package. Next I try   sudo apt-get purge tor   But when I check dpkg -l | grep tor I got,   reza@reza-N43JM:/$ dpkg -l tor     Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name           Version        Description +++-==============-==============-============================================ un  tor            <none>         (no description available)   I think when I uninstall any package I should not get anything in dpkg -l list. Is it true? Or apt-get remove or purge does another work but not uninstall?


I am trying to show that how the binary expansion of a given positive integer is unique.  According to this link, , All I see is that I can recopy theorem 3-1's proof?  Is this polished enough of an argument. Thanks


I want to start learning the math part of machine learning so that i can optimise models with my sense of understanding . Any good sources you can recommend


I would just like to know how to upgrade Xubuntu 18.04 to Xubuntu 20.04 Thank you Thank you


What is the physical meaning of the characteristic impedance of a transmission line?

If it was per unit length, I'd understand, but apparently it is a constant of the whole line.   Consider if I change the length of the transmission line, the impedance of the whole thing should increase since more power is dissipated, but the characteristic impedance doesn't change. So, what exactly is the characteristic impedance?


How long should my newborn baby be in a car seat

I am planning an hour and a half ride with my 1 month old baby girl. I heard that being in the car seat for a long time is not good for newborns.  Is an hour and a half too long? Should we do a stop in the middle of the trip?


How to prove a complex function is constant

Consider a complex function $f(z)$. Suppose it's analytic in $|z|<1$ and continuous in $|z|\leq 1$. If $f(z)\in\mathbf{R}$ on the boundary $|z|=1$, how to prove it's a real constant in $|z|\leq 1$?


What kind of formula should I type in order to get these values? I know that this is exponential growth and growth rate is 0.42. I appreciate if someone can help me with this.


“Members’ gallery” vs. “members gallery”

What would I use when setting up a gallery for many members to submit to?  I am thinking, Members’ Gallery, as it is a gallery belonging to all the members, but I frequently see the use of just Members Gallery.


What is / how can I get a student-safe power supply for electronics projects?  I'm looking for a student-safe power supply for solder less breadboard.  I'm developing a course to teach electrical engineering to grade school students as an after-school program.  I'm wrapping up the first course and I've learned a lot, including that I need to find a safer power supply.  We're mostly using 9V batteries and connecting them to the breadboard via alligator clips.  After lots of searching, I'm realizing that I need to turn towards the expert community for guidance.  I hope that with the rise of the Makers  this question will become increasingingly relevant with time as more kids get into electronics.  Inextricably linked to this question is what is the minimum power source to use.  I've liked using 9V batteries since we can connect to them using alligator clips; but I worry that they are just a little too powerful.  I can imagine them somehow starting a fire with them.  My #1 priority is to keep the students safe.  Kids just have no concept that they can cause damage to themselves and property.  When I ask "where is that smoke coming from?" I'll get a gleeful response from the student that is seeing how many batteries he could hook together and short out.   I really need to limit the damage they can do.  I mainly don't want anyone electrocuted or anything to catch fire.  Kids will routinely attach LEDs backwards, leave them like that and then act surprised when they explode.   After safety, I want to protect the equipment.  Kids will hook up a LED backwards all the time.  After protection, I want to give the kids feedback as to what is going on.  A light that indicates power is on would be awesome.  A light or siren or circuit break that indicated a short would be awesome too.  Battery powered supplies are slightly preferred, just to keep upfront costs low and to avoid having to run outlets to each table.  Boundaries:   We are only using simple LEDs, BJT transistors, resistors and maybe a timer IC.    Similiar Questions:       References:  Course details are here:   We currently sometimes use  from the Squishy Circuits Store and/or a 9V battery with alligator clips.  Epilogue  I found it tougher than expected to find a suitable wall wart, so I'm listing what I finally found for future reference.  I'm about to test the following combination:         Epilogue 2  A year-plus in, I've decided to drop the in-line power switch since it wasn't obvious when it was 'on' vs. 'off'.  I'm instead relying upon the students to unplug the rat-tail from the supply, which is quick and easy.  Also, since I'm primarily using this for a squishy-dough project, I'm experimenting with with using two button batteries instead of a wall power.


a='0123456789'  >>> a '0123456789'   >>> a[1:-6:1] # working as expected '123'  >>> a[2:-1:-1] # i was expecting '210' as answer based on start index=2 end index=0 ''   Please help in understanding how the second slice operator returned nothing


Problem 4.6, I. Martin Isaacs' Character Theory

Let $n>0$ and assume that $\chi^{(n)} \in \mathrm{Irr}(G)$ for every $\chi \in \mathrm{Irr}(G)$. Show that $G = H \times A$, where $A$ is abelian and $(|H|, n) = 1$.  $\chi^{(n)}$ is defined by $\chi^{(n)}(g) = \chi(g^n)$. $\mathrm{Irr}(G)$ is the set of all irreducible characters of $G$.  Here are the hints in the book:   Let $d = (|G|,n)$. Show that it is no loss to assume that $(|G|/d,n) = 1$. Let $A = \bigcap_{\chi \in \mathrm{Irr}(G)} \mathrm{ker} \chi^{(n)}$. Show that $A = \{g \in G | g^n=1\}$ and $|A| = d$. Let $H = \bigcap \{\mathrm{ker} \chi | \chi \in \mathrm{Irr}(G), \chi^{(n)} = 1_G\}$. Show $|G : H| = d$.   Hint 1 and 2 are easy, and it is easy to deduce the result from the hints. As for hint 3, I have proven that $\{ g \in G | (o(g), n) = 1 \} \subseteq H$, and that $|G : H| \mid d$. And I am stuck here.  Can anyone help me?


If $f$ is continuous on $[a,b]$ and $F(x) = \sup f([a,x])$. Prove that $F$ is continuous on $[a,b]$ .

Exercise:   Suppose that $f$ is continuous on $[a,b]$ and that $F(x) = \sup f([a,x])$. Prove that $F$ is continuous on $[a,b]$ .  Attempt of proof: Suppose that $f$ is continuous on $[a,b]$ and that $F(x) = \sup f([a,x])$. Then since $f$ is continuous on [a,b]. Then by definition  $f$ is continuous at a point $c$ in $(a,b)$ iff for every $ε > 0$ there is a $δ > 0$ such that $|c-x| < δ$  $→$ $|f(c) - f(x)| < ε$.  Then we need to show $F$ is continuous.   Then let $ε > 0$, then there is a $δ>0$ such that $|c-x| < δ$.   Then, $|F(c) - F(x)| = |\sup f([a,c)] - \sup f([a,x)]|$.  Can someone please help me? I am stuck and don't know how to continue. Thank you in advance.


Ubuntu for an old laptop with 2gb ram, 1.8ghz processor

first I have searched for a few hours for the answers but can not find,  so any help would be appreciated.  My friend told my to download Ubuntu onto my old pc because it doesn't require a lot of RAM?  My old laptop has 2gb ram 1.75 ram usable, 1.8ghz,  Currently my nephew updated it to windows 10 32 bit and I can not downgrade back to 7,   also the computer now runs super slow so this I why I am wanting to install Ubuntu.  the problem is when I go to downloads it say the system requirements are 2ghz and 2gb ram? that is worse then the 32bit windows?    so I ask my friend and he said it should be faster?  I am wondering if there different version is faster then the newer version or requires less ram/ghz?  which one should I download for my computer?  also I will be using some small .exe files and will need to download something called wine I read?


Luggage transfer in Dubai between flights, without a visa

I am traveling from Stockholm to Dubai and Dubai to Nairobi using two different airlines. I have Kenyan nationality and can't go through Immigration because I don't have a Dubai visa.    How I will get my luggage?


How to get execution time of a script effectively?

I would like to display the completion time of a script.   What I currently do is -  #!/bin/bash date  ## echo the date at start # the script contents date  ## echo the date at end   This just show's the time of start and end of the script. Would it be possible to display a fine grained output like processor time/ io time , etc?


Can a Byte[] Array be written to a file in C#?

I'm trying to write out a  Byte[] array representing a complete file to a file.  The original file from the client is sent via TCP and then received by a server. The received stream is read to a byte array and then sent to be processed by this class.   This is mainly to ensure that the receiving TCPClient is ready for the next stream and separate the receiving end from the processing end.   The FileStream class does not take a byte array as an argument or another Stream object ( which does allow you to write bytes to it).  I'm aiming to get the processing done by a different thread from the original ( the one with the TCPClient).   I don't know how to implement this, what should I try?


How to upgrade from vivid? Where is the repository for vivid?

Edit: This is not a duplicate question. The vivid folders in  are simply not there.  I understand that this is not directly supported, but I want to upgrade first to wily then to xenial.  I ran:  $ sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list   In order to be able to upgrade to wily, but there seems not to be a vivid folder in old-releases.ubuntu.com/ubuntu/dists/ though wily is there.  How do I upgrade to wily? Will vivid appear in old-releases with time?


What determines the height at which a superconductor hovers?

What determines the height at which a superconductor levitates? Can you just place it randomly in the magnetic field? What are the limits of superconductors?


I'm showing my references at the end of my beamer presentation.  \documentclass[compress]{beamer}  \begin{document} \frame{      \begin{thebibliography}{1}\scriptsize         \bibitem{Test} Test, Me, 2015.      \end{thebibliography} }  \end{document}   I'd like to change the color of every whole \bibitem line to something else, black for example. How can I do that without affecting the rest of my presentation? I've been looking and Googling for hours, but I can't find a way to do it. I tried things like  \setbeamercolor{structure}{fg=black}   and   \setbeamercolor{bibliography item}{fg=black}   but the first one changes about my whole colour palette and the second one doesn't do anything. What am I missing?


How to compute the marginal likelihood given two multivariate Normal distribution?

Given that $a$~$\mathcal{N}(\mu, \Sigma)$ and $\mu$~$\mathcal{N}(0, \sigma^2 I)$, Is $p(a|\Sigma, \sigma)=\int p(a|\mu, \Sigma)p(\mu|\sigma)d\mu$ again a Normal distribution? And how to estimate the mean and variance respectively? Thanks a lot!


Can anyone tell me the difference between function defined in function and adding function using prototype

I am trying to differentiate between first block and second block of code.  //first block  function xyz(){    this.callXyz=function(){      console.log('callXyz inner');    } } // second block xyz.prototype.callXyz=function(){      console.log('prototype function');    }


United Kingdom transit visa for 4-5 days

I'm travelling from India to Canada and I have Canada visa with me. I haven't buy ticket yet. I want to stay 4 to 5 days in United Kingdom. And I'm planning to buy British Airways ticket which has 1 stop at LHR.   Is there anything like that transit visa available?  Can I apply for it?  How much does it cost?


I have a latex file that uses some of my own macros (a mix of tex & latex macros). I need to post the latex source, but don't want to expose the macros (some of which are nasty hacks that just get the job done). Is there any way to get a file without these macros, so that they will have been expanded? In programming language jargon one could say that I would like to inline the definitions of specific macros while keeping all else in tact.  There are tools to handle latex macros (defined with \newcommand and \renewcommand), and there is some discussion and a link to a tool that handles tex macros (defined with \def, etc). But the only link for the tex tools is broken.  TeX macros permit one to write tail-recursive loops. Those can be unfolded for specific input. This is what I'm looking for.


I was wondering if it's possible to hide the icons in the right (between the headphones and hour):   I'm using Ubuntu 19.10 with GNOME Shell 3.34.3.


Difference b/w Taylor and Maclaurin Series

How is Maclaurin Series different from Taylor Series?  With a little bit of surfing, I figured out that Maclaurin series is an approximation about the point $0$. Does that mean that Maclaurin series would give correct answers only about $x=0$ and, for example, if we need to calculate bigger values we will need to use Taylor theorem and approximate about that big value to get our result?


How to group jquery objects to apply css together?

Say I have a function that accepts multiple jQuery objects:  workWithThreeObjs($('.content'),                   $('h1'),                   $('input[type=button]'));   I define my function like this:  function workWithThreeObjs(p, h1, buttons) {     ... }   Inside this function, I want to apply border to all of them like this  $(p, h1, buttons).css(...);   How do I do that? Right now it only applies to p.   My function code does not control what is passed into it, so I cannot change the selectors used to create the arguments. I must operate only on the jQuery objects provided.


Help to reduce formula field compiled size

Continued from   Am trying to calculate remaining response time for the case.   Based on the priority of the case we are setting the remaining time to respond the case(in hours and mins).  Please see .   Important thing is, we need to show the remaining time dynamically. That is, when the page is refreshed after 10 min, it should change the remaining time dynamically. So went for the formula field to calculate. Here is my formula,  IF( caseOwnerChanged__c ,  IF(FLOOR((((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60) / 60) = 0, LEFT( TEXT(MOD((((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60) ,60)),2 )  &' min', (TEXT(FLOOR((((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60) / 60))  &' hr'&  LEFT( TEXT(ABS(MOD((((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60) ,60))),2 )  &' min') ),   IF(FLOOR((((CreatedDate + ( ResponseTime__c /1440 )) - NOW() ) * 24 * 60) / 60) = 0, LEFT( TEXT(MOD((((CreatedDate + ( ResponseTime__c /1440 )) - NOW() ) * 24 * 60) ,60)),2 )  &' min', (TEXT(FLOOR((((CreatedDate + ( ResponseTime__c /1440 )) - NOW() ) * 24 * 60) / 60))  &' hr '&  LEFT( TEXT(ABS(MOD((((CreatedDate + ( ResponseTime__c /1440 )) - NOW() ) * 24 * 60) ,60))),2 )  &' min')  ) )      caseOwnerChanged__c - Checkbox field, which returns true if owner   changed. When the case owner changes, response time should stop    wherever it is.          ResponseTime__c - formula field which returns 30 for P1, 120 for P2,    480 for   P3...          caseOwnerChangedOn__c - Returns datetime when owner changed   So, am trying to save this formula but am getting      Error: Compiled formula is too big to execute (9,018 characters).   Maximum size is 5,000 characters   I tried putting the formula's   (((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60) TEXT(MOD((((CreatedDate + ( ResponseTime__c /1440 )) - caseOwnerChangedOn__c ) * 24 * 60)   in seperate formula fields and referenced in the current main formula but it is reducing only less number of characters.   So, Any other way to simplify this formula?.


Why do we divide the standard deviation by $\sqrt{n}$?

I've been studying experimental physics on the book "The art of experimental physics" and on the chapter about error analysis there's something that has been bothering me. The author says:  Now that we have determined the "best value" for the measurement, that is, $\bar{x}$, we need to estimate the uncertainty or error in this value. We start with defining one way in which the spread of data about the mean value can be characterized. The standard deviation $s$ is defined as $$s = \sqrt{\dfrac{1}{n-1}\sum_{i=1}^n (x_i-\bar{x})^2}$$ If the standard deviation is small then the spread in the measured values about the mean is small; hence, the precision in the measurement is high. Note that the standard deviation is always positive and that it has the same units as the measured values. The error or uncertainty in the mean value, $\bar{x}$, is the standard deviation of the mean, $s_m$, which is defined to be $$s_m = \dfrac{s}{n^{1/2}}$$ where $s$ is the standard deviation and $n$ is the total number of measurements. The result to be reported is then $$\bar{x}\pm s_m.$$  Now, why to get the error on the quantity measured we must divide the standard deviation by $\sqrt{n}$ instead of just using the standard deviation? Why things are done in this way?


I have some pretty invasive adware going on right now. It is in both Safari and Chrome, so I don't believe it is an extension (I have also looked through all extensions). I have also tried searching for all the recommended adware agents found on the Apple Support Forum (). I have also looked at recent downloads and I can't find anything suspicious.   I am wondering if anyone can recommend some safe software to target the adware.


How can I make up for weak grades while applying for a masters?

I feel I've received poor grades in my bachelor's degree in Mechanical Engineering - Second Class Second Division as per UK grading system. Having finished my bachelors in the UK I wish to enroll into a masters program in Systems or Mechanical Engineering in the US. I am currently employed by a logistics company in Dubai.   How can I improve my chances of getting into a grad school in the US with what I consider as poor grades? What other factors can strengthen my application?


Calculating ratio between rows using ArcPy module

I want to calculate the ratio between the rows (i.e., row1/row2, row2/row3 and so on..) of the 'Frequency' column based on the 'Id' column and want to assign the values to a separate column. As expected there will be no ratio for the 1st row. Here is my data- OID Id  Frequency 0   1   50680 1   2   49740 2   3   48620 3   4   48300 4   5   48004 5   6   45600 6   7   44384 7   8   42720 8   9   41890 9   10  39700 10  11  38530 11  12  38207 12  13  38106 13  14  37303 14  15  37205 15  16  36527 16  17  35301 17  18  31674 18  19  28890 19  20  24612


Partitions not showing while installing (K)ubuntu 14.04

Im trying to install Kubuntu 14.04 along-side Windows 7 x64 but there are problems in Disk Setup section, installer does not show my drives properly as they are, i left drive empty to install Kubuntu but this drive does not shown at all and all drives are listed some way un-regular.   this is how my drives really are:    i want to install Kubuntu in my drive D but this is how Disk Setup is showing my drives:    and when i click on manual:    i even shrink-ed my drive D to assigning for root, home and swap but there are bot shown to be chosen. where is the problem? how can i tell installer to assign the drives that i want?


How does the strength of magnetic field at the center of current carrying circular coil depends on the radius, number of turns and current

How and why does the strength of magnetic field at center of current carrying circular coil depend on the radius $r$, number of turns $N$ and the current flowing in the coil $I$. I know that $B \propto \frac{1}{r}$, $B\propto N$ and $B \propto I$.


How can I stop being prompted to unlock the 'default' keyring on boot?

Whenever Ubuntu boots up, a dialogue pops up asking me to unlock my default keyring. Is there some way this can unlock automatically through PAM or some other magical way?


Method of calculating eddy currents of a conductor, is this correct?

I have a conductor with volume $V$, passing a magnetic field($B$) with velocity($v$):   I'm trying to calculate the Eddy currents to figure out the magnitude of the drag force($F_d$) generated the Eddy's, how can that be done?    I could not find a direct formula, I noticed from a lot of sources that it seems to be a difficult task.  The conductor is in an open circuit(I don't think it makes a difference if it was in a closed circuit). Please let me know of any additional information I'm missing(not sure of all the required variables). I'll add them as an edit.


When looking for jobs on  I can sort the job list by date, job name or company name.   But since jobs have tags it would be great if there were another sort option that takes the tags into account I answer the most.  For instance Jobs having the most tags in common with my top 10 tags on Stack Overflow should be first in the list.


How can i take a photo of a moving object with the object in focus and the background having motion blur?

I have seen pictures that must of been taken with a slow shutter speed, the car was in focus but the background had motion blur, how can this happen?


SciFi book where scientists learn to peek through time (possibly controlled miniature wormhole?). Computer screens were carried like a handkerchief

Read it in the 90's. I remember one specific part where the inventor of the peeking mechanic has his Eureka moment, and has the presence of mind to give a thumbs-up/wave to the future, when they look back on his Eureka moment.  I also remember that they had computer screens that were like plastic cloth that they would just unfold on whatever surface was handy.  Sorry I don't have much more to go on.  Please and thank you!


I want to convert my text object to mesh. In 2.79 it was Alt-C, are the keys changed for 2.80?    I browsed it externally and I got some thing like this image as answer..   but any shortcut-keys will be easy to work! If you know one, you can comment below.


Python: Setting value of array at position of another array


Has close-flag behavior changed with new closing overhaul?

It used to be that when a question was flagged for closing, if the question was closed, the flag was automatically marked as "helpful." Since the recent closing overhaul, I have seen at least a couple questions that I have flagged get closed, without any action taken on the flag. Is this the intended behavior?  I am tagging this as a bug because I do not remember seeing any discussion of this behavior changing.  Example:  I flagged  for closing on Islam.SE. Nobody acted on my flag for a few hours. I mentioned it to one of the mods in chat, and he said that he never saw my flag, but after I linked to the question, he closed it. Currently, though, the flag still seems to be open in my list of flagged posts. The mod says that, as far as he can tell, nobody has taken action on the flag.


How to Convert PDF containing Math (made from LaTeX) to Word

I'm writing here following  and .  1. My main goal is just to use MathType in Word and to edit with Word. Therefore, what is the best way to convert an Adobe PDF containing math (equations, symbols, tables, etc.) into a Word document?  2. Is there another way to make the PDF appear in Word? I was thinking that maybe the PDF doesn't need to be converted. Instead, each page of the PDF could be convertered/terated as a picture which could then be pasted onto a Word document. This process takes too long to do for each page. What program or recourse is available? Thank you very much!  Unfortunately, it would take too much time for me to retype the PDF, because it is essentially a free textbook containing maths on which I must annotate. Also, I do not have the LaTeX source file for the PDF, only the PDF itself.  I've spent at least 3 hours trying to research and resolve this question, including reading  and  .  I've tried the following PDF to Word converters, but ALL of them deform, disfigure, and distort the math, the fonts, and the formatting: Zamzar.com, Wondershare PDF to Word Converter 4.0.1, Able2Doc PDF to Word Converter v7.0.34, and UniPDF.


Proving an inequality involving a product of n terms

The inequality is as follows: $$a_1,a_2,...,a_n \in\Bbb R ; \prod_{i=1}^n a_i=1 \Rightarrow \prod_{i=1}^n (a_i+1) \ge 2^n$$  What I've tried:  I've seen that as you multiply each term you get a 1, wich means you will eventually get to a one on the left side after you multiply n terms, so the right term would turn into a $2^n-1$. I've noticed also that as you multiply the terms you get a product of all the terms you multiply, wich would mean that as you get to n terms multiplied, you would get something like $\prod_{i=1}^n a_i$ on the left side, wich is 1, according to the problem. so in the right side you would have $2^n -1 -1 = 2^n - 2$. And that's it, I don't know what to do now.


New privilege tracker - 'Track the next one' banner misplaced when you've also earned a new badge

I'll admit that this is a rare case, but when you've earned a new privilege and a badge you've tracked, the dark blue 'banner' which contains the 'Track the next one' button seems to be positioned too high, leaving an 'empty' gray line at the bottom of the widget. I suspect this happens because the height of the badge tracker widget in this case is higher than would be normally.    Tested with the latest Safari and Firefox on macOS Mojave.


Why am I prompted to accept a Microsoft EULA when I run apt-get install?

Whenever I use sudo apt-get install packagename, it will start installing. I will type "Y" when prompted then this will pop up:    TrueType core fonts for the Web EULA  END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE  …                            <Ok>   Why does this happen?


Is there a word in English for a joke that isn't funny?

There are words like dad joke, lame joke, pj (poor joke) for a joke that isn't funny at all.  Is there a single word for such jokes that are not amusing?


PHP Subtracting two numbers should return zero, but it doesn't

I have a function written in PHP that calculates account balances by subtracting all payments from all charges.  Unfortunately I have one account that is returning a value of  -4.5474735088646E-13 when I subtract 2716 from 2716.  I was kind of expecting a 0.  I calculate the value in my function like so  $accountbalance = (float)$totalcharges - (float)$totalpayments; return $accountbalance;   The secondary issue is that when I format the account balance with two decimal places I end up with -0.00  number_format($accountbalance,2)   weird, or what?  What is causing this and how do I prevent it?


Given an Annulus with $A(0,r,R)$ show by considering Cauchy's Theorem for primitives that there is no holomorphic function with $f'(z)=1/z$  I am struggling to picture this since but it seems like there are issues because $f(z)=log(z)$ isn't well defined in the same range as $1/z$.  Is it worth considering $f(z)$ as anything other than just a function? e.g setting $f(z)=log(z)$ and proving it this way?


I was searching for a way to connect to one of my servers who is behind a jumpbox via SSH. I was able to do so by running the following command:  $ ssh -tt ptitpou@jumpbox ssh -tt ptitpou@targetserver   Now, I want to be able to use that server to access webservers on targetserver's network. For that, I followed  and I was able to successfully access the websites. The command I used was:   $ ssh -L 127.0.0.1:9999:localhost:9696 -tt ptitpou@jumpbox ssh -D 9696 -tt ptitpou@targetserver   The question I want to ask is how to use the ssh -o ProxyCommand to command in a slightly cleaner way. I tried to put the second part of the command as the proxy command and I had a successful SSH connection, but I was unable to use the proxy after that.   I've also tried  but the command line hangs after connecting to targetserver.  How can I do that? Am I wrong to try to use ProxyCommand option for this task?


Prove that $x - \frac{x^3}{3!} < \sin(x) < x$ for all $x>0$   This should be fairly straightforward but the proof seems to be alluding me.    I want to show $x - \frac{x^3}{3!} < \sin(x) < x$ for all $x>0$.  I recognize this shouldn't be too difficult but perhaps finals have fried my brain.


Set up an iPhone 6 with non-working Home button

My brother recently gave me and iPhone 6 and he reset it before before handing it over. I turned it on and it says "Hello, Press home button to unlock and get started". But the Home button on the iPhone isn't working.  How can I get past this without replacing the Home button right now, and set it up with the Assistive Touch, until I get it fixed.


I asked .  Before asking that question, I had 101 points, one for joining and 100 bonus.  Now I have 113, although I cannot tell how many positive or negative votes I have on my question.  Did I get to keep the first 10 points and got voted down thereafter and lost subsequent points, or what?


How to make a good glow effect around a sun?

I am trying to figure out how to make the space around the sun glow and than fade away into darkness.  The sun was made in blender using cycles render and several noise textures. The glow I have around my sun was made using Blenders Gurus tutorial for earth, atmosphere effect, to create a red glow. The sun will be animated so using composition is not going to work for me (sadly);  I realized one of the reasons why the method is not working is I am using surface rather than a volume shader, but As I tried to do it using volume shaders, I could not figure out what direction to take.


I am currently solving problems on Schwarz's Lemma from Conway's book and stumbled in one problem (prob-3,Page-133). Let $D=\{z\in \mathbb{C} \mid |z|<1\}$ be the open unit disk and $f:D\to \mathbb{C}$ be an analytic function such that $Ref(z)\geq 0$ for all $z\in D$.Then show that  Re$f(z)>0$ for all $z\in D$.  If $f(0)=1$,use appropriate Möbius Transformation and Schwarz's lemma to show that $|f(z)|\leq \frac{1+|z|}{1-|z|}$ for all $z\in D$.  Also show that $\big|f(z)\big|\geq \frac{1-|z|}{1+|z|}$ for all $z\in D$.   I could solve the first two problems but can't solve the third. The first one I solved by Using Open Mapping theorem and the second one by using the Möbius Transform $T$ which maps the imaginary axis to $\partial D$ and right half plane to $D$ given by $T(z)=\frac{z-1}{z+1}$ and applying Schwarz's lemma to $T\circ f$. But can't think of the third one. Any suggestion will be appreciated. Thanks.


If $A$ is a square complex matrix with $A^k = I$ (where $I$ is the identity matrix of the same size as $A$) for some positive integer $k$, does it follow that $A$ is diagonalizable?


Showing $a^n + b^n \ge (a+b)^n$ for $a,b > 0$ and $0 \le n \le 1$

Initially I had to show that for $0\le n \le 1$ and $a,b > 0$:  $$a^n + b^n \ge (a+b)^n$$  I made $u(x) = a^x + b^x - (a+b)^x$  $$u'(x) = a^x \log a + b^x \log b - (a+b)^x \log (a+b)$$  Now I get stuck. Cannot find where to go. please help me.


Unable to install Quickly on Ubuntu 16.04

Can't install Quickly with sudo apt-get install quickly quickly-ubuntu-template this command. It's showing   Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package quickly E: Unable to locate package quickly-ubuntu-template   What to do now?  I saw that  but I am confused whether it is also not available for 16.04.


I'm building a computer mainly for gaming and developing games.  It's going to be a three screen system with two GeForce GTX 460's and a quad-core i7.  The newegg wattage calculator says I need around 900W.  The case I intend to get is .  Full specs if you need 'em are at the end of this post.  I have no intentions to overclock the system at the moment, but this may change in the future.  I've done a lot of research on the subject, and the answers I've found indicate that it takes a heck of a lot of power to require liquid cooling, and most non-overclocked systems don't need it.  But I haven't seen a question about a system with two GPU's, so I ask you the following two questions:  Assuming that the system is used for gaming for very extended periods of time (say 4-6 hours at a time, nonstop) with all three screens running at full 1080p, would the fans installed in the system suffice?  Or would I need more fans and/or liquid cooling?  If the system is used under the same circumstances as above, and is overclocked to a reasonable level, would the fans installed in the system suffice?  Or would I need more fans and/or liquid cooling?  Specs:     Intel Core i7 16GB DDR3 Two nVIDIA GeForce GTX 460 3TB HDD Two DVD-RW writers Thermaltake 1050W power supply Case is linked above


I am building a paginated  from ajax-sourced data:  let table = $('#userTable').DataTable({   destroy: true,   "ajax": {url: url, type: 'GET', "dataSrc": ""},   "pagingType": "simple",   "columnDefs": [     // ...   ],    "order": [[3, "desc"]],   "columns": [     { "data": "view", "defaultContent": "" },     { "data": "username" },     { "data": "email", "defaultContent": ""},     { "data": "lastActive"},     { "data": "completed" },     { "data": "_id" }   ],   "fnInitComplete": function(oSettings, json) {     console.log("Finished drawing table");     $('#spinner').addClass('d-none');     $('.view-profile').on('click', getProfile);     $('.btn-delete').on('click', purgeUser);     $('.page-link').on('click', () => {       console.log("Clicked on paginate button")       $('.view-profile').on('click', getProfile);       $('.btn-delete').on('click', purgeUser);     })   } });   I add buttons (.view-profile and .btn-delete) to each row, and add a listener only after the table is initialised using [fnInitComplete][2].  However, on clicking on a paginate button .page-link, the buttons are no longer clickable - how can I re-listen for clicks on paginating?   I've tried adding a timeout function to first wait for buttons to be drawn (.view-profile) and then wait for 1s after clicking on a .page-link before adding $('.view-profile').on('click', getProfile) - but this isn't working. What am I missing?  if($('.view-profile')){   setTimeout(() => {     $('.page-link').on('click', function() {       setTimeout(() => {         console.log("Next page")         $('.view-profile').on('click', getProfile);         $('.btn-delete').on('click', purgeUser);       }, 1000);     })   }, 1000); }


Where does Hestu go after the first encounter?

Hestu, as in the guy you give Korok seeds to. After I first met him and completed his quest, he's no longer in that same spot. Where can I find him?


Why does TLS do Authenticate-then-Encrypt instead of Encrypt-then-Authenticate?

Encrypt-then-Authenticate (EtA) seems to generally be considered the better option, compared to Authenticate-then-Encrypt (AtE) (see this  question, for example). The people writing the RFC for TLS 1.2 , but have chosen to use AtE anyway.  Is there a reason why this is the case? Is this a case of "Someone standardized something at some point and now we're stuck with it for backwards compatibility, even though we know it's bad", or is there a good reason why AtE is better for TLS?  Clarification, because this wasn't very well-written originally: I am referring to the actual encrypted channel after the handshake has finished. It's clear that you have to authenticate the server and perform a key exchange before you can perform any useful form of encryption.


I am not confident about my judgement as to whether or not "the" is required if a relative clause is used in a sentence. For example,      The data can be collected on all the computers on which the software is installed.   I think it must be "all the computers " and not be "all computers" because "computers" is specified  by  "on which the software is installed".  Please help me confirm that I am right.


How to get a variable name as a string in PHP?

Say i have this PHP code:  $FooBar = "a string";   i then need a function like this:  print_var_name($FooBar);   which prints:  FooBar   Any Ideas how to achieve this? Is this even possible in PHP?


Can my Lost Mines PCs survive Venomfang?

My players have saved Thundertree for last      Rumors of there being a Dragon in the area enough to provide them caution.   They have cleared the Mine, driven away the bad guys, and found every existing magic item except one.      Of note, one has the Dragonguard armor that grants advantage against breath weapons.   They have been level 4 since entering the Mine, not quite level 5 however, obtaining level 5 only at the END of this adventure, this encounter/area included within that variable exp amount. They all took average HP each level up and are competent though not yet always tactical combatants. They know thier strengths, not how to compensate for weaknesses.  The party includes:     A Goliath Totem Barbarian A human Vengeance Paladin A Gnome Assassin Rogue A Gnome who is a Divination Wizard, and  A Human Life Cleric in heavy armor.   The party is not meant to kill Venomfang, only wound it enough to send it fleeing and survive long enough to do such. My concern is their survival given the CR, damage potential, and breath weapon of Venomfang. I could normally fudge rolls...or not even roll at all...to ensure proper tension while still allowing survival in this encounter that will link them directly to Tyranny of Dragons; but we use a Virtual Tabletop and have asked that I don't hide my rolls. Letting the dice fall where they will with no "divine intervention".   A Flameskull nearly took them out while inside the Mine....with my fudge option taken from me, what chance do they have at bringing Venomfang to 1/2 HP?      Venomfang is a Young Green Dragon with 160 HP and an 18 AC with a Breath Attack that would be devastating in the tight tower that serves as it's lair:  The dragon exhales poisonous gas in a 30-foot cone. Each creature in that area must make a DC 14 Constitution saving throw, taking 42 (12d6) poison damage on a failed save, or half as much damage on a successful one.  42 (provided I take the average) is enough to kill all except the Barbarian.  Hence my conflict.   To add clarity to what I'm asking, as it has seemingly been found unclear:  Can this level 4 party survive long enough to drive off or slay Venomfang?


How to prove that $(k_{1}k_{2}...k_{n}) \equiv (z_{1}z_{2}...z_{n})\mod n$ if they are both complete system of residues modulo n.?

Prove that if $(k_{1},k_{2},...,k_{n})$ and $(z_{1},z_{2},...,z_{n})$ are both complete system of residues $\bmod n$ then $$(k_{1}+k_{2}+...+k_{n}) \equiv (z_{1}+z_{2}+...+z_{n})\mod n$$  and $$(k_{1}k_{2}...k_{n}) \equiv (z_{1}z_{2}...z_{n})\mod n$$ can you give me some hints to complete this proof? I know that proofs are not obvious but in this case $(k_{1},k_{2},...,k_{n})\mod n$  and   $(z_{1},z_{2},...,z_{n}) \mod n$ I probably need to apply some theorems in number theory for complete system of residues.


Determining a matrix from its characteristic polynomial

Let $A\in\mathcal{M}_{n}(K)$, where $K$ is a field. Then, we can obtain the characteristic polynomial of $A$ by simply taking $p(\lambda)=\det(A-\lambda I_n)$, which give us something like $$p(\lambda) = (-1)^n\lambda^n + (-1)^{n-1}(\text{tr } A)\lambda^{n-1} +  \cdots + \det A$$ Now, how can we obtain the matrix $A$ knowing the characteristic polynomial?


The following code does not create a wrapfigure within the thm environment. Is that because the latter is a list?  \documentclass{book} \usepackage{amsthm} \usepackage{wrapfig} \theoremstyle{plain} \newtheorem{thm}{Theorem} \begin{document} \begin{thm} \begin{wrapfigure}[7]{l}{2cm} \rule{2cm}{2cm} \end{wrapfigure}% text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \end{thm} \end{document}


Is it standard to say $-i \log(-1)$ is $\pi$?

I typed $\pi$ into Wolfram Alpha and in the short list of definitions there appeared  $$ \pi = -i \log(-1)$$  which really bothered me. Multiplying on both sides by $2i$:  $$ 2\pi i = 2 \log(-1) = \log(-1)^2 = \log 1= 0$$  which is clearly false.  I guess my error is $\log 1 = 0$ when $\log$ is complex-valued.  I need to use $1 = e^{2 \pi i}$ instead.  So my question: is it correct for WA to say $\pi = -i \log(-1)$?  Or should be they specifying "which" $-1$ they mean?  Clearly $ -1 = e^{i \pi}$ is the "correct" value of $-1$ here.


Buzzing/Vibration in body under power lines

I am hoping someone can please give me an answer.  I was at a dog park with my dog and son (hes 12), which is directly under high/loud voltage power lines.  I went to brush some dirt of my sons neck when I felt his neck "buzzing".  He didnt feel it. I felt all over him, and he was buzzing/vibrating all over his entire body, head, legs arms. It was not due to a vibraton from the ground. We could not feel it on myself. I had someone else come over and feel his arm to conrim I wasnt loosing my mind!  I had him take everything out of his pockets to see if that was the cause, and he was still buzzing. We went back to the car, which was not directly under but still close enough to power lines and he continued buzzing until we left the vicinity of the power lines.  Can someone please help and explain this weird situation that has happened. I am very concered/worried/etc.


In c# does foreach call method in each loop?

I came across this in our codebase:  foreach (var evtType in EventLocator.GetTypes())   and remembering Shlemiel the painter's algorithm does the method EventLocator.GetTypes() get called on each loop or just the once?


How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height automatically with reference to the content?  I know LaTeX is telling me the head height is too small and I should change it to xx pt, but I would like to not have to do it manually.  A little excerpt of the beginning of one of my documents:  \documentclass[pdftex,12pt,oneside]{report}  \usepackage[pdftex]{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{color}  \usepackage[paper = a4paper, tmargin = 2cm, bmargin = 2cm, lmargin = 2.5cm, rmargin = 2cm]{geometry}  \usepackage{fancyhdr} \fancypagestyle{titlepage} {     \fancyhf{}     \fancyhead[L]{~\\[0.5cm]\includegraphics[height=2cm]{./dhbw_logo}}     \fancyhead[R]{~\\[0.5cm]\includegraphics[width=2cm]{./cz_logo}}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt} }


Derivation of the method of Lagrange multipliers?

I've always used the method of Lagrange multipliers with blind confidence that it will give the correct results when optimizing problems with constraints. But I would like to know if anyone can provide or recommend a derivation of the method at physics undergraduate level that can highlight its limitations, if any.


Where does "pay through the nose" originate?

Where does the saying  " pay through the nose" originate?


Can Ubuntu be installed on any hardware?

I have my new laptop :   Lenovo ideapad 330 15AST Processor is AMD A6 With Windows preinstalled   Questions :   Now I want to use Ubuntu and Windows also. I tried to dual boot my pc. While dual booting, my pc displays a message that, there is no os installed on selected USB drive. How can I solve it? I contact to Lenovo adviser and they told me that, if you run Linux on this laptop, it can corrupt your pc or Windows too. Is this right?


I reinstalled my computer and I did a back up of the Outlook pst data files. Now I installed Outlook and added my email account. I told it to use the existing data file.   Then it started to download the messages. It downloaded the same messages from the server again!  I use POP3 but I have set it to keep the messages on the server, because I have multiple computers so I need to access the messages everywhere. I don't want to use IMAP, because then it requires an Internet connection to get the emails.  How to get it working?


My question is very simple: How insects move opposite to gravity?  please dont tell me that they  have Sucks because my comment will be what about insects if move on smooth walls like glass.


Spatio-temporal interpolation in R or ArcGIS?

I'm trying to calculate average rainfall value from a number of points using Inverse Weighted Distance tool in ArcGIS 9.3.   My problem is that: each point has it own time series, therefore the interpolation process should be able to carry out for all years (kind of iteration so to speak).   Following is a sample attribute table:  ID X Y Name Rain1990 Rain1991 Rain1992 Rain1993 .... Rain2010  1 xx1 yy1 AA 1210 1189 1863 1269 ......   2 xx2 yy2 BB 1492 1502 2187 1923 ...... ......   Could anybody show me how to do that?    Edit 1: I finally did this by using C++ code which required ArcGIS mask grid, data files & locations of all the points.    Edit 2: I recently used R to do this interpolation task. You can use either hydroTSM, gstat or spacetime packages. Few example links below:             Edit 3: Added a working example below for future readers


Let $X$ and $Y$ be i.i.d $U(0,1)$ random variables. Then $E(X|X>Y)$ equals?  The way I interpreted it is as follows: $E(X|X>Y)$ is $E(X)$ realizing $X>Y$ so $E(X)=\int_{0}^{1}\int_{y}^{1}xdxdy=\int_{0}^{1}(\frac{x^2}{2})_{y}^{1}dy=\frac{1}{2}\int_{0}^{1}(1-y^2)dy=\frac{1}{2}(y-\frac{y^3}{3})_{0}^{1}=\frac{1}{2}\cdot\frac{2}{3}=\frac{1}{3}$ What can be a better alternative to solve this problem? I tried so hard but couldn't get the answer using the proper definition of expectation, can anyone help me?And can we use law of total expectation here?


How do I make HTTP request in javascript?

I have got "localhost/management". I have got my site for customers: "localhost/website". So I got 2 websites (one for management, one for customers). Now I have made a javascript which causes to show a popup onload. The javascript is included into the customer side. Now what I need to do is make an HTTP request from my javascript to the management side (which is connected to database) and get a value from that. So when a value is (1 - show popup at customer side) (0 - not show popup at customer side). The value has to come from the database. When I'm at the management side and when I made some changes (like updating info) then the value has to change too. I'm working with localhost.


Setting to only show applications of current workspace in launcher?

Is it possible to have the opened applications of the current workspace in the launcher but not the ones from other workspaces?


Give an example of a non-abelian group G containing a proper normal subgroup N such that $G/N$ is abelian.  I KNOW THERE IS A QUESTION OF THE SAME NAME.   However, I need more involved assistance.  My professor suggested looking at the dihedral group $D_6$. I intend to find a homomorphism with a kernel that is the subgroup. The kernel of this homomorphism is a subgroup of G and is obviously normal.  However, why does this imply that $G/N$ is abelian, esp. since G itself is non-abelian?


Why do attacks function differently to spells?

In D&D 4E as with many RPGs, characters have a fixed armour value or AC. When attacking, the attacker must roll a die to overcome the target's AC. In 4E offensive magic works the same way: the target has a fixed Fortitude/Reflex/Will defence determined by their stats, and in order to hit, the attacker rolls to overcome whichever defence is relevant.   However it was not always like this. Some spells in 3E and now again in 5E work the opposite way. In those editions the target is the one who rolls against a fixed value determined by the caster's stats, in order to avoid spell-damage.  Both methods compare the attacker and target's stats, and have an element of randomness. I personally like the 4E system as it simplifies combat without leaving anything out. Why was the decision made, when designing the early D&D editions (and still when iterating upwards into (A)D&D 1e–3e), to use saving throws to control spells?  Answers should consist of designer quotes and not personal opinions.


Is it possible to run FreeDOS via Bootcamp on a Mac?  If so, what are the instructions for doing so?


Is there a way to toggle between Fn (multimedia keys, brightness, etc) and F keys (F1, F2, ...) per app? I used to use an app that could perform this but now I just can't remember it's name.   As a developer I use a vmware fusion virtual machine to maintain some windows apps, and it would great if I could just enter the VM with the keyboard toggled to F keys, and when I get back to the OSX the keyboard gets toggled back to Fn keys.  Any ideas?


JQuery - how to determine if a dom element is "hidden"?

So I have some logic that relies on JQuery's element.width() method. The logic is failing on me sometimes. I noticed that it is only failing when the element is hidden (inside a bootstrap collapsible element). I looked in the docs and they say:     The value reported by .width() is not guaranteed to be accurate when   the element or its parent is hidden. To get an accurate value, ensure   the element is visible before using .width(). jQuery will attempt to   temporarily show and then re-hide an element in order to measure its   dimensions, but this is unreliable and (even when accurate) can   significantly impact page performance. This show-and-rehide   measurement feature may be removed in a future version of jQuery.   So I know my problem. My plan is to check if the element is "hidden" and if so, instead of executing the logic right away, I will search for the collapsible parent and subscribe the logic to the shown.bs.collapse event.  My issue is how to check if the element is considered "hidden" by JQuery's width method (as mentioned in the docs). Is it as simple as:  element[0].style.display == "none"   I would like a check that captures all cases.   Thanks in advance.


Why running `cat /etc/localtime` on PuTTY puts a stream of "PuTTY" in the prompt?

I was randomly experimenting and I found that running cat /etc/localtime on PuTTY and on xterm have different effects.  Example:  root@webtest:~# cat /etc/localtime TZif2       ▒       ▒▒Kmp▒▒ǀ▒▒▒p▒Ƀprp▒▒▒▒_Tp▒▒▒p▒A▒p▒nop▒# ▒O▒▒▒p▒▒▒ɧ▒#▒Op▒▒▒k▒p"p▒r▒p▒Pp▒2Lp▒▒p▒▒▒p▒▒p▒ȷ𽸨▒_p▒▒▒▒▒▒▒▒xl▒▒h]▒▒XN▒▒?p▒80▒▒:▒▒▒X▒p▒▒▒p▒/p▒▒ p▒▒b▒˵R▒▒▒▒̀K▒▒ܢ▒͕4▒▒▒K`▒r▒▒▒ſp▒u▒Ϭg▒▒R▒▒Х▒p▒T▒▒ьI▒▒2f▒҅▒p▒Y▒▒▒I▒▒▒9▒ ▒)▒ ▒▒ ▒      PuTTYPuTTYPuTTY▒ ▒▒ ▒▒ ܹY ݲ▒▒ޢu▒ߒf▒▒W▒▒rH▒▒b9▒▒R*▒▒B▒2 ▒▒!▒▒       ▒▒          ▒▒▒ ▒▒▒ ▒▒▒ ▒▒ ▒▒   ▒z▒ ▒j▒ ▒c▒▒▒S▒▒▒C▒▒▒3▒▒▒#s▒▒d▒▒U▒▒▒F▒ ▒* ▒7▒t(▒d▒T▒C▒3▒#▒ܐ͐▒㽠Ӡ▒Ñ▒▒▒▒▒▒▒▒|▒ lr!\c"LT#<E$,6%'& 'C▒'▒4▒(▒%▒)▒▒*▒▒+▒▒,▒▒-▒ڐ.▒ː/t▒▒0d▒▒1]▒2r▒3=▒4R▒5▒62x68▒8▒a9▒v▒:▒C;▒X▒<▒_▒=▒:▒>▒A▒?▒▒@f#▒A▒9BF▒Cd                   %▒EC▒FɐG#▒G▒▒I▒I▒▒J▒K▒▒L̿▒M▒▒N▒▒▒OnnP▒▒▒QW▒▒Rle▒S7l▒TLG▒UN▒V,)▒V▒0▒XFX▒▒Y▒(Z▒▒[▒ \▒]▒▒▒_▒▒`_▒a}▒b?▒c]̐d▒e=▒▒▒▒g▒▒g藐h▒r▒i▒y▒j▒T▒k▒[▒l▒qm▒=▒n▒Soh▒p▒5qQ<rfs1tE▒uv/▒v▒▒x▒x▒▒y▒ِz▒▒{λ▒|▒�}▒▒▒~y▒▒     PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY                                           ▒▒c    LMTWESTWETWEMTCETCESTTZif2                                    ▒                                    ▒▒▒▒▒▒▒▒▒▒Kmp▒▒▒▒▒▒ǀ▒▒▒▒▒▒▒p▒▒▒▒▒Ƀp▒▒▒▒rp▒▒▒▒▒▒▒▒▒▒▒▒▒_Tp▒▒▒▒▒▒▒p▒▒▒▒▒A▒p▒▒▒▒▒nop▒▒▒▒▒# ▒▒▒▒▒▒O▒▒▒▒▒▒▒▒p▒▒▒▒▒▒▒▒▒▒▒▒ɧ▒▒▒▒▒▒▒#▒▒▒▒▒▒▒Op▒▒▒▒▒▒▒▒▒▒▒▒▒k▒▒▒▒▒▒p"p▒▒▒▒▒r▒p▒▒▒▒▒Pp▒▒▒▒▒2Lp▒▒▒▒▒▒p▒▒▒▒▒▒▒p▒▒▒▒▒▒p▒▒▒▒▒ȷ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒_p▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒xl▒▒▒▒▒▒h]▒▒▒▒▒▒XN▒▒▒▒▒▒?p▒▒▒▒▒80▒▒▒▒▒▒:▒▒▒▒▒▒▒X▒p▒▒▒▒▒▒▒p▒▒▒▒▒/p▒▒▒▒▒▒ p▒▒▒▒▒▒b▒▒▒▒▒˵R▒▒▒▒▒▒▒▒▒▒▒▒̀K▒▒▒▒▒▒ܢ▒▒▒▒▒͕4▒▒▒▒▒▒▒K`▒▒▒▒▒r▒▒▒▒▒▒▒ſp▒▒▒▒▒u▒▒▒▒▒Ϭg▒▒▒▒▒▒R▒▒▒▒▒▒Х▒p▒▒▒▒▒T▒▒▒▒▒▒ьI▒▒▒▒▒▒2f▒▒▒▒▒҅▒p▒▒▒▒▒Y▒▒▒▒▒▒▒I▒▒▒▒▒▒▒9▒ ▒▒▒▒▒)▒ ▒▒▒▒▒▒ ▒▒▒▒▒   ▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒ܹY ▒▒▒▒ݲ▒▒▒▒▒▒ޢu▒▒▒▒▒ߒf▒▒▒▒▒▒W▒▒▒▒▒▒rH▒▒▒▒▒▒b9▒▒▒▒▒▒R*▒▒▒▒▒▒B▒▒▒▒▒2 ▒▒▒▒▒▒!▒▒▒▒▒▒▒▒▒▒                   ▒▒▒▒▒▒                          ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒z▒ ▒▒▒▒▒j▒ ▒▒▒▒▒c▒▒▒▒▒▒▒S▒▒▒▒▒▒▒C▒▒▒▒▒▒▒3▒▒▒▒▒▒▒#s▒▒▒▒▒▒d▒▒▒▒▒▒U▒▒▒▒▒▒▒F▒ ▒* ▒7▒t(▒d▒T▒C▒3▒#▒ܐ͐▒㽠Ӡ▒Ñ▒▒▒▒▒▒▒▒|▒ lr!\c"LT#<E$,6%'& 'C▒'▒4▒(▒%▒)▒▒*▒▒+▒▒,▒▒-▒ڐ.▒ː/t▒▒0d▒▒1]▒2r▒3=▒4R▒5▒62x68▒8▒a9▒v▒:▒C;▒X▒<▒_▒=▒:▒>▒A▒?▒▒@f#▒A▒9BF▒Cd                   %▒EC▒FɐG#▒G▒▒I▒I▒▒J▒K▒▒L̿▒M▒▒N▒▒▒OnnP▒▒▒QW▒▒Rle▒S7l▒TLG▒UN▒V,)▒V▒0▒XFX▒▒Y▒(Z▒▒[▒ \▒]▒▒▒_▒▒`_▒a}▒b?▒c]̐d▒e=▒▒▒▒g▒▒g藐h▒r▒i▒y▒j▒T▒k▒[▒l▒qm▒=▒n▒Soh▒p▒5qQ<rfs1tE▒uv/▒v▒▒x▒x▒▒y▒ِz▒▒{λ▒|▒�}▒▒▒~y▒▒                                           ▒▒c    LMTWESTWETWEMTCETCEST WET0WEST,M3.5.0/1,M10.5.0 PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYroot@webtest:~# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY   But when I run on xterm, it gives me this:  root@webtest:~# cat /etc/localtime TZif2       Ý       æmpÇíppêp¢AÙp£nop¤#                          ð¥O¢ðªïpªôðÉ§ð®§#ð¯ Op°ð±kð²p"p³rp´Pp·2Lp¸Èp¸ÿ¹p¹ïªp¼È·ð½¸¨ð¾ðÀððÁxlðÂh]ðÃXNðÄ?pÅ80ðÆ:ðÇX¬pÇÙßpÉ/pÉñ pÊâbðËµRðËì£àÌKàÌÜ¢ðÍ4ðÍÃK`Îr¢àÎÅ¿pÏuðÏ¬gàÐR            àÐ¥¡pÑTøðÑIàÒ2fàÒ pÓYÄðÔIµðÕ9Ñ Ö)Â ×³ Ø^[[?64;1;2;6;6;9;15;18;21;22c      ¤ Øù Ùé Ü¹Y Ý²                                                                        Þ¢u ßf àW árH âb9 ãR* äB2                  æ!ý ç                        èû                           éêü êÚí ëÊÞ ìºÏ íªÀ î± ï¢ ðz ñj                                                           òc¯ óS  ôC õ3 ö#s ÷d øU øóF        «*  7t(dT3úã½ Ó Ã½¬® lr!\c"LT#<E$,6%'&                                   'CÚ                                      Ë5A                                         9BF                                            %çN¬¡leÎ`_Õa}êe=®=5qQ<rfs1tEùuv/Âæÿÿÿ   Why is PuTTY putting PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY on the prompt?    Edit: This question isn't a duplicate of   The linked question asks why the ouput is different, even when redirecting the output to a file.  My question is asking why it is showing PuTTY in the prompt (note: on the prompt, where we type the commands), on PuTTY.  I'm really sorry, but I'm not being able to express my doubt any better.


I am running Ubuntu 18.04 and every time I run sudo apt-get upgrade, I get this error:  dpkg-deb: error: tar subprocess returned error exit status 1   dpkg: error processing archive /var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb (--unpack):  dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb  E: Sub-process /usr/bin/dpkg returned an error code (1)   In addition to this, when I try to install any .deb file with sudo apt install. I get this error:  Reading package lists... Error! E: Sub-process Popen returned an error code (2) E: Encountered a section with no Package: header E: Problem with MergeList /home/paras/Downloads/code_1.37.1-1565886362_amd64.deb E: The package lists or status file could not be parsed or opened.   Please help.


prove that: $\lim_{x \to \infty} [f(x+1)-f(x)] = 0$ just by using definitions of limit and definition of derivative.

Let f(x) be a differentiable function such that that $\lim_{x\to \infty} f '(x) = 0$.  I have to prove that:  $\lim_{x\to \infty} [f(x+1)-f(x)] = 0 $ just by using definitions of limit and definition of derivative.  I have no idea how to begin this...any hints?   i found some posts similar to this but i need a more specific explanation.. any help ? I would be grateful.  EDIT may i use MVT in some specific space?  EDIT2 : im yet confused. is it better to use MVT insted of intermediate value theorem?  EDIT3 : still cant get to a conclusion .....


Why output for this code is Class A I expected to see "Class AAA"  #include <iostream>     using namespace std;  class A {     public:     A(){}     virtual int Method1(int a, int b){cout << "Class A" << endl; return a+b;    } };  class AA:public A {     public:     AA(){}     int Method1(int a, int b){cout << "Class AA" << endl; return a*b;} };  class AAA:public A {     public:     AAA(){}     int Method1(int a, int b){cout << "Class AAA" << endl; return a/b;} };  class B { public:    B(){}    B(A a):obj(&a){}    int Method2(int a, int b){ return obj->Method1(a,b);}  private:     A *obj; };  int main() {     A *a = new AAA();     B *b = new B(*a);     b->Method2(2,1);     return 0; }   I have new AAA object passed to class B and assigned to  *obj. What is wrong with this ?  Best Regards,


Considering $A^b$, we have a nice definition and properties when $A$ is a matrix and $b$ is a real (or field) value.  We also have a fairly useful definition for $e^B$, where $B$ is a matrix and $e$ is the Naperian base.  I imagine this can be extended to an arbitrary base using logarithms.  My question is whether there is a general definition for $A^B$ with $A$ and $B$ as matrices with some suitable properties.  Some properties might be:   $A^b$ and $e^B$ are special cases of the definition of $A^B$ $A^I = A$ $A^{B + C} = A^BA^C \text{ under suitable conditions }$ $(A^B)^C = A^{BC} \text{ under suitable conditions }$   Is any such definition known?  Can computations be done with it?  What properties do we get and under what conditions?  Thank you, this is for my own curiosity.    Edit : Fly by Night found this previous question: , but it doesn't really address the properties that I was asking about.  The real usefulness in a definition is in what you can infer from it, so I want to keep this question open.


I am trying to download ubuntu 14.04 from the ubuntu site. Though my internet speed is fairly good, it becomes too small <14kb/sec when the ubuntu download starts and the download never completes. I have downloaded ubuntu many times before too but sucha  problem never came. What should I do?


how to alter variable value in java? Why some work, some fail?

I'm trying to alter the variable value in java?  The following code works, it changes x,y value from 0 to 100:  public void tricky(Point arg1) {   arg1.x = 100;   arg1.y = 100; } public static void main(String [] args) {   Point pnt1 = new Point(0,0);   System.out.println("X: " + pnt1.x + " Y: " +pnt1.y);    tricky(pnt1);   System.out.println("X: " + pnt1.x + " Y:" + pnt1.y);  }   But why the following code doesn't work?  public class Solution {     public static void tricky(int arg1)     {       arg1 = 100;     }     public static void main(String [] args)     {       int pnt1 = 0;       System.out.println(pnt1);        tricky(pnt1);       System.out.println(pnt1);      } }


Why doesn't this input added with jquery after my page has loaded trigger a keyup event?

So the page I'm creating has a button which will add input fields as needed. It looks like  <!DOCTYPE html>        <meta charset="UTF-8">     <title>Document</title>        <input type="text" placeholder="Name">     <button id="add-name" type="button">+</button>

       Then there's some jquery to make the button add a new input field, and for any values in the input fields to be reflected in the preview div.  $(document).ready(function () {      $("#add-name").click(function () {         $(this).before("<input type='text' placeholder='Name'>");     });      $("input").keyup(function () {         $("#preview").html($(this).val());     });  }   When I add another input via the button, that input doesn't trigger the keyup event when I type into it. Why is this, and what can I do about it? Thanks!  Also, this is a heavily oversimplified example I wrote for this question. I know this doesn't look too pretty but it's simple to help me understand what's happening.


From :     The statistic $s$ is said to be complete for the distribution of $X$ if for every measurable function $g$ (which must be independent of parameter $θ$) the following implication holds:    $$     \mathbb{E}_\theta[g(s(X))] = 0, \forallθ \text{ implies that }P_θ(g(s(X)) = 0) = 1, \forall θ. $$    The statistic $s$ is said to be boundedly complete if the implication holds for all bounded functions $g$.   I read and agree with  that a complete statistic means that "there can only be one unbiased estimator based on it".   But I don't understand what Wikipedia says at the beginning of the same article:     In essence, it (completeness is a property of a statistic) is a condition which ensures that the parameters of the probability distribution representing the model can all be estimated on the basis of the statistic: it ensures that the distributions corresponding to different values of the parameters are distinct.    In what sense (and why) does completeness "ensures that the distributions corresponding to different values of the parameters are distinct"? is "the distributions" the distributions of a complete statistic? In what sense (and why) does completeness "ensures that the parameters of the probability distribution representing the model can all be estimated on the basis of the statistic"?  [Optional: What does "bounded completeness" mean, compared to completeness?]


How can I disable the 2nd hard drive in my 27" iMac?

I have an 2010 27" iMac with an SSD and a regular hard drive. Now that I've been using the machine for some time and have not come close to filling the SSD, I'd like to disable the spinning hard drive completely. Why? It makes a loud humming sound when it runs, and I don't use it for anything. Anything I can do short of taking apart this monster and ripping it out?  UPDATE: As of 3-Apr-2012 and OS X 10.7.3, the solution below works. Some programs occasionally spin up the drive, but it only hums for about 5 minutes then goes back to sleep.


How to switch from Linux mint 9 isadora to ubuntu 14.04.1-desktop-i386.iso. I do not have a cd.   I have a Acer Netbook with usb.    Is this ubuntu 14.04.1-desktop-i386.iso the correct version to download?  I am new to ubuntu.  Thanks!


imgur profile pictures loading over http on https pages

I noticed on  page all of the gravatars are loaded from imgur using http instead of https, is there a reason for this or is it a bug?


Background  I have a project named PersonLibrary which has two files.   Person.h Person.cpp   This library produces a static library file. Another project is TestProject which uses the PersonLibrary (Added though project dependencies in VS008). Everything worked fine until I added a non-member function to Person.h. Person.h looks like  class Person { public:     void SetName(const std::string name);  private:     std::string personName_; };  void SetPersonName(Person& person,const std::string name) {     person.SetName(name); }   Person.cpp defines SetName function. When I try to use SetPersonName from TestProject, I get error LNK2005: already defined. Here is how I used it  #include "../PersonLibrary/Person.h" int main(int argc, char* argv[]) {     Person person;     SetPersonName(person, "Bill");     return 0; }   Workarounds tried  1 - I have removed the Person.cpp and defined the whole class in Person.h. Error gone and everything worked.  2 - Changed the SetPersonName modifier to static. Like the below  static void SetPersonName(Person& person,const std::string name) {     person.SetName(name); }   Questions   Why the code shown first is not working as I expected? What difference static made here? What is the approapriate solution for this problem?   Thanks