We have several validations that we run on some of our custom objects in triggers (e.g., after update, after insert, etc.). Many of these validations are one time validations from a system perspective that the user inserting or updating the record does not need to know about. The validations also work with custom fields that should not be visible to the user but we have to make it visible/writeable because the trigger is run from the users perspective.   1- Main Validation: that runs from the users perspective  2- System Validation: that runs from the system/admin perspective and is completely hidden from the user.   suggests that the validation rule is blocking what the user wants to achieve and the focus of the topic is Validation Rules while we do not use Validation Rules at all and have everything in the triggers.  Using system.runas(admin) obviously does not work in production as it only works with tests.  Another option is using without sharing in the trigger, which will bypass the FLS but cannot be done because as far as I know it will fail the package in security review.  What is the best solution here?

Is this possible?  I'm not finding help, Google or otherwise, for this.  Situation:  A trigger runs and cycles through groups of Opportunities.  Some of these Opportunities are Closed Won, and most users of the system are not allowed to Edit Closed Wons (especially the Sales team).  But I need this trigger to be able to touch the Opps (it's fired when the User touches the Account and subsequently a group of Opps under that account gets touched).  It is a VALIDATION RULE blocking them.  Ultimately, I may investigate, if no other option, setting a HIDDEN FIELD on the Opp before updating, then clearing if after, and putting bypass code in the Validation rule.  This is a backup plan.  I'd like to know how to "Run As" a specific profile though.  Anyone have an example of this?  I have three profiles out of twelve that can touch Closed Wons...


Both laptops have Windows 7. I want to use Laptop B as extended monitor to Laptop A. At the same time, I should be able to use Laptop B as a standalone laptop.  Also, I do want to use this connection through USB or any wired means. But definitely not WiFi or any wireless connection.  How to do it? Any software? Which cord do I need?

Is it possible to make my laptop's screen act as a second monitor for my desktop computer?


I have several instances of an object:  function objectname=(prop1,prop2){     this.prob1=prob1     this.prob2=prob2 }  var object1=objectname(     "11",     "12"); var object2=objectname(     "21",     "22");   Now i want to output it. This works:  document.write(object1.prob1); //output 11   Now i want a loop over all different instances like  for (var key in objectname){     document.write(objectname.key.prob1)}  //Does not work   The problem is that an easy example also does not work:  document.write(objectname.object1.prob1); //Does not work   Why?

How do I enumerate the properties of a JavaScript object?  I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.


In Peskin and Schroder's Quantum field theory text (page 28, the passage below Eq. 2.53), it asserts that for a spacelike interval $(x-y)^2<0$, one can perform a Lorentz transformation taking $(x-y)\rightarrow -(x-y).$ This is argued by noting that both the points $(x-y)$ and $-(x-y)$ lies on the spacelike hyperboloid.   The specific Lorentz transformation matrix $\Lambda^{\mu}{}_{{\nu}}$ that acting on $(x-y)^\mu\equiv \Delta x^\mu$ takes it to $-\Delta x^\mu$ is given by $\Lambda=diag(-1,-1,-1,-1)$. Is that correct?   For $(\Delta x)^2\equiv \Delta x_\mu\Delta x^\mu>0$, why the Lorentz transformation $\Lambda=diag(-1,-1,-1,-1)$ will not take $\Delta x^\mu$ to $-\Delta x^\mu$?

Related post   In Peskin and Schroeder's QFT p28, the authors tried to show causality is preserved in scalar field theory.  Consider commutator $$ [ \phi(x), \phi(y) ] = D(x-y) - D(y-x) \tag{2.53} $$ where $D(x-y)$ is the two-point correlation function,  $$D(x-y):= \langle 0 | \phi(x) \phi(y) | 0 \rangle  = \int \frac{d^3 p}{ (2\pi)^3} \frac{1}{ 2E_{\mathbf{p}}} e^{-ip(x-y)}\tag{2.50}$$  P&S argued that each term in the right-hand-side of (2.53) is Lorentz invariant, since $$\int \frac{d^3p }{ (2\pi)^3} \frac{1}{2E_{\mathbf{p}}} = \int \frac{ d^4 p }{ (2\pi)^4} (2\pi) \delta(p^2-m^2)|_{p^0>0} \tag{2.40}$$ is Lorentz invariant.  Since there exists a continuous Lorentz transformation in the spacelike interval $(x-y)^2<0 $ such that $(x-y) \rightarrow - (x-y) $ and $D(y-x)=D(x-y)$, (2.53) equals zero in the spacelike interval. In timelike interval, since such continuous Lorentz transformation does not exist, (2.53) is non-zero in general.  My question is, consider a non-continuous Lorentz transmation in the timelike interval, $PT$, namely time reversal times parity transformation. I can also let  $(x-y) \rightarrow - (x-y) $. Why (2.53) in the timelike interval is non-zero?  I guess $PT$ will let (2.40) go to $p^0<0$ branch. But I am not sure if it breaks the Lorentz invariant of (2.40) and (2.50).


This is similar to , but for adjectives instead of nouns. I'm looking for an adjective that describes objects that are safely edible and drinkable, and are meant for consumption (e.g. something that is explicitly called "non-toxic" would not be covered). "They're advertising <adj> supplies for camping."

Is there a word that best describes food and drink taken at the same time? I've thought of refreshments and consumables but neither seem right to me.


I'm learning Java and I'm struggling to understand why a simple program I'm wrting is not working the way it should.  import java.util.Scanner;  class CarApp{ String carMake; String carColour; String features; int carPrice;  void carFinal(){     System.out.println(carMake);     System.out.println(carPrice);     if(carMake == "ford")     {         carPrice = 120000;     }     else if(carMake == "porsche")     {         carPrice = 1000000;     }     System.out.println(carPrice);     System.out.println("Thank you for choosing your car with the car chooser app!" + "\n");     System.out.println("You have chosen a " + carColour + " " + carMake + " with " + features + "\n" );     System.out.println("Your car will be delivered to you in 7 working days. At a price of R" + carPrice + "."); } }  public class App { public static void main(String[] args) {     Scanner carChooser = new Scanner(System.in);      CarApp carApp = new CarApp();     System.out.println("Please let us know which car you would like, porsche or ford:");     carApp.carMake = carChooser.nextLine();     System.out.println("Please say which color car you would like:");     carApp.carColour = carChooser.nextLine();     System.out.println("Which features would you like added to your car:");     carApp.features = carChooser.nextLine();     carApp.carFinal();  } }   The system doesn't seem to print the price? So I always get the following:  Your car will be delivered to you in 7 working days. At a price of R0.   Any help would be greatly appreciated, I'm sure it's something quite trivial, maybe something I've overlooked. Thanks in advance,  Fred

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I use Ubuntu 20.04.1, Gnome 3.36.3 on Lenovo ideapad L340 (UEFI, Dual boot with Win10) GeForce GTX 1650 with nvidia-driver-440 My desktop UI (top bar, popups, Applications screen) and login screen are twice larger that they should be. But all other applications work correctly. To fix this problem I tried:  To use open source driver - the problem is fixed, but I have very low performance with this driver.  To run with grub option acpi=off - the problem is fixed, but there's a lot of critical issues appears.  To set display scale to 200% and than revert - the problem is fixed until restart.  To reinstall Gnome with commands apt purge gnome-shell apt install gnome-shell ubuntu-gnome-desktop  nothing is changed at all.   Do you have any ideas how to fix this?

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor  I also tried using the command dconf reset -f /  Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU


The latent variable motivation for losgistic regression goes thus. There exist $Y^*=\beta^tX+\epsilon$ which is continuous. We can only observe $Y$ at specific thresholds of $Y^*$, say at $Y^*\leq \alpha_1$, $\alpha_1<Y^*\leq \alpha_2$, $\alpha_2<Y^*\leq \alpha_3$ and $\alpha_3<Y^*\leq \alpha_4$, with $Y=1, 2, 3,4$ respectively  Therefore $P(Y\leq j)=P(Y^*\leq \alpha_j)=P(\beta^tX+\epsilon\leq  \alpha_j)=P(\epsilon\leq  \alpha_j-\beta^tX)$  Assuming  that $\epsilon$ is logistic then we have: logit$(P(Y\leq j))=\alpha_j-\beta^tX$  My question goes like this: With only one threshold say say $\alpha$: We get a binary logistic model of the form  logit$(P(Y=j))=\alpha-\beta^tX$.  and with $n$ thresholds for large $n$ we observe almost all of $Y^*$ so we can use  ordinary least squares regression for modeling. Can someone illustrate to me in a nice way what we gain and what we loose for large $n$ and for small $n$ where $n$ refers to the number of thresholds?.

We all know that logistic regression is used to calculate probabilities through the logistic function. For a dependent categorical random variable $y$ and a set of $n$ predictors $\textbf{X} = [X_1 \quad X_2 \quad \dots \quad X_n]$ the probability $p$ is  $$p = P(y=1|\textbf{X}) = \frac{1}{1 + e^{-(\alpha + \boldsymbol{\beta}\textbf{X})}}$$  The cdf of the logistic distribution is parameterized by its scale $s$ and location $\mu$  $$F(x) = \frac{1}{1 - e^{-\frac{x - \mu}{s}}}$$  So, for $\textbf{X} = X_1$ it is easy to see that  $$s = \frac{1}{\beta}, \quad \mu = -\alpha s$$  and this way we map the two fashions of the sigmoid curve. However, how does this mapping works when $\textbf{X}$ has more than one predictor? Say $\textbf{X} = [X_1 \quad X_2]$, what I see from a tri-dimensional perspective is depicted in the figure below.    So, $\textbf{s} = [s_1 \quad s_2]$ and $\boldsymbol{\mu} = [\mu_1 \quad \mu_2]$ would become  $$\textbf{s} = \boldsymbol{\beta}^{-1}, \quad \boldsymbol{\mu} = -\alpha\textbf{s}$$  and $p$ would derive from the linear combination of the parameters and the predictors  in $\textbf{X}$. The way the unknown parameters of the logistic regression function relate to the cdf of the logistic distribution is what I am trying to understand here. I would be glad if someone could provide with insights on this matter.


I am using TeXWorks and running pdfLaTeX + MarkeIndex + BibTeX. I made my .bib file with the newest version of JabRef for PC. Here is my MWE:   \documentclass[notitlepage]{article}   \usepackage[backend=biber, style=alphabetic, citestyle=authoryear]{biblatex}  \usepackage{amsfonts} \bibliography{/C:/Users/Ryan Schiller/Kannai} \begin{document}  \printbibliography{} \end{document}   I get the following error:      No pages of output.   Transcript written on "try it.log".      Sorry, but "MiKTeX Compiler Driver" did not succeed.      The log file hopefully contains the information to get MiKTeX going   again:      C:\Users\Ryan   Schiller\AppData\Local\MiKTeX\2.9\miktex\log\texify.log   But as you can see, I do have a .bib file:  So I renamed the document to "tryit" without a space. Then I deleted my aux files. Then in command line I ran pdflatex tryit.tex, pdflatex tryit.tex,biber tryit.tex, pdflatex tryit.tex  But on the first run, I got the error:     LaTeX Warning: Empty bibliography on input line 10. (tryit.aux) LaTeX Warning: There were undefined references. Package biblatex Warning: Please (re)run Biber on the file: (biblatex) tryit (biblatex) and rerun LaTeX afterwards. ) No pages of output. Transcript written on tryit.log   How do I get my references?

I have used quite some time searching for a solution to my compile problem. The document worked fine untill yesterday. After adding some new references, compiling stoped working properly. I have however used latex only for a few months, so the error might be an easy fix.   My error code in the blg file is:    [836] Utils.pm:209> ERROR - BibTeX subsystem:  C:\Users\andre\AppData\Local\Temp\yb9w7ETEpQ\thesisbiblo.bib_16800.utf8,  line 1375, syntax error: found ",", expected one of: number, name (entry  type, key, field, or macro name), end of entry ("}" or ")") or quoted string  ({...} or "...").    I have biber 2.11 and miktex 2.9 and thought it could have been the cache file as suggested in a previous thread with 2.11 versions, but it did not do the trick to delete that either.  Thanks  This is how my "main" document looks like:  \documentclass[man,12pt,a4paper,babel,english]{apa6}  \usepackage{babel,duomasterforside} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref}  % Math syntax  \usepackage{siunitx} \usepackage{upgreek} \usepackage{gensymb} \usepackage{amsmath} \usepackage{mathtools} \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}  % Figures \usepackage{graphicx} \graphicspath{{Figures/}} \usepackage{float} \usepackage{subcaption}  % Biblography and citing \usepackage[style=apa,backend=biber,sortcites=true,sorting=nyt,autocite=inline,uniquename=false]{biblatex} \addbibresource{thesisbiblo.bib}  % Frontpage \usepackage{pdfpages}   \begin{document}  % Frontpage      \includepdf[pages=1-]{titlepage.pdf}  % Abstract \input{Abstract} \newpage  % Table of contents \tableofcontents \newpage  % Document \input{Introduction.theory} \newpage \input{Methods} \newpage \input{Results} \newpage \input{Discussion} \newpage \input{Conclusion} \newpage  % References                         \printbibliography  \end{document}


Is it possible to have some code let the compiler generate a compile warning or error?  Maybe with Attributes?  ** Having the first answer and a few comments I realize my question is not as a clear as I expected and wanted it to be. I apologize. Hopefully all contributers are still with us. **  So I am more looking towards an internal DSL.  S.Th. like  [MustAssign] public string Val {get; set;]

When using the ObsoleteAtribute in .Net it gives you compiler warnings telling you that the object/method/property is obsolete and somthing else should be used. I'm currently working on a project that requires a lot of refactoring an ex-employees code. I want to write a custom attribute that I can use to mark methods or properties that will generate compiler warnings that give messages that I write. Something like this  [MyAttribute("This code sux and should be looked at")] public void DoEverything() { }   <MyAttribute("This code sux and should be looked at")> Public Sub DoEverything() End Sub   I want this to generate a compiler warning that says, "This code sux and should be looked at". I know how to create a custom attribute, the question is how do I cause it to generate compiler warnings in visual studio.


I want verification that my windows 8.1 instalation disk will run if i uninstall ubuntu

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


Is there a way to change the “from” name/email address on a canned response auto responder?  I have one account setup with a nickname and a filter with a canned response (an ex employee), but when the canned response is sent, it comes from currentuser+canned.response@domain.com.  Is there any way to make it come from the regular nickname address?  Or even from the regular account address instead of the canned email address?

If I set up a filter and send it a canned response, Gmail appends +canned.response to my username in the reply.  For example, given the filter "from:foo@example.com to:me@example.com" set up to send a canned response, when foo@example.com sends me an email the canned response comes from me+canned.response@example.com instead of me@example.com, exposing that I'm using a canned response.  Is there a way to avoid this?


I am using scale= option to scale a tikzpicture and wondeing what is the best way to propely handle the scaling of the red horizontal line in such a case.  Code: \documentclass{article} \usepackage{tikz}  \newcommand*{\MyTikzPicture}{%     \begin{tikzpicture}[scale=\Scale]         \def\@HalfLineWidth{20pt}%         \draw [line width=2*\@HalfLineWidth, line cap=round] (2.0,3.0) -- (2.0,6.0)             node [below, pos=0] {scale=\Scale};                  \begin{scope}[xshift=-\@HalfLineWidth]             \draw [line width=2.0pt, red] (2.0,3.0) -- ++(2*\@HalfLineWidth,0);         \end{scope}     \end{tikzpicture}% }%  \begin{document}  \def\Scale{1.0} \MyTikzPicture \quad \def\Scale{2.0} \MyTikzPicture  \end{document}

I have some tikzpictures that were designed for a4 paper and that should now be used on an a0 poster. All the coordinates in the picture can be scaled up with the option scale=4, but this leaves the line widths untouched.  Can I scale the line widths, even those set directly and not using styles like thin, in the entire tikzpicture? Text contained in the picture should not be scaled by this.


I would like to show that a countable product of sequentially compact spaces is a sequentially compact space.  To show that a product of N sequentially compact spaces is sequentially compact, I think that we can take a sequence $(x_1, x_2, \cdots, x_N)$ in the product of sequentially compact spaces, and say that each sequence $x_1, x_2, \cdots, x_N$ is in the sequentially compact space $X_i$, so has a convergent subsequence. Then the global sequence converges to the sequence of  limits of the sequences $x_1, x_2, \cdots, x_N$.  I don’t understand why this reasoning would not work in the case of an infinite product space and how to prove, then, the result.

I would like to prove that a countable product $$\prod_{i \in \mathbb{N}}X_i $$ of sequentially compact spaces $X_i$ is sequentially compact. That is, any sequence in the product space has a convergent subsequence (where the product has the usual product topology).   The result is easily proved for a finite product: a sequence in the product space is a sequence of sequences. Looking just at the "first component", this forms a sequence in $X_1$ which has a convergent subsequence in $X_1$. This allows us to consider the corresponding subsequence in the "second component", which again has a convergent subsequence. After a finite number of steps we end up with a subsequence in the full space, each component of which converges in its corresponding factor space.  For a countable product, the proof uses a "diagonal argument". I read a vague description of the argument but am unable to follow it through. Please prove nicely!


I have a class library that is either called from a webservice, a service or a windows forms app.   For the windows forms application I want to show a yes / no messagebox for the webservice and the service I just want to assume yes.  I know I can refactor my code to use an abstraction layer, e.g.  var provider = new MessageBoxProvider(); // Or other implementation var result = provider.QueryResult(...);   but besides that:   Is there a better way to check if code is called from a windows application? Currently I am doing  System.Windows.Forms.Application.OpenForms.Count > 0

Is there any way to know in C# the type of application that is running.  Windows Service ASP.NET Windows Form Console  I would like to react to the application type but cannot find a way to determine it.


Assume I have the following table schema and data  create table categories(     id integer primary key,     parent_id integer );  insert into categories values     (1,0),     (2,0),     (3,1),     (4,1);   I need to count the number of children for each entry, i.e. the result should be   id | parent_id | count ----+-----------+-------   1 |         0 |     2   2 |         0 |     0   3 |         1 |     0   4 |         1 |     0   The following query produces the correct result but I'm worried about the performance. I guess that it loops through the table as many time as there are rows in it.  select *, (select count(*) from categories b where a.id=b.parent_id) from categories a   It is possible to optimize it?

I'm trying to get the count of child of a parent row. The sql query I'm using as follow only pulls the immediate count, how can I get total count as childs can have more childs.  select  c.id, c.base32_id, c.author, c.message, c.title, c.type, c.datetime, (select count(*) from comment where parent_id= c.id ) as ChildCount from comment c where c.parent_id is null order by id asc limit 25


Let $G$ be the group generated by $a,b,c$ with relations $ab=b^2a$, $bc=c^2b$, and $ca=a^2c$. Show that $G$ is trivial.    A related problem is that for $G_1$ generated by $a,b,c,d$ with similar relations is NOT trivial.   I'm not sure how to start. I know that word problem for groups does not have algorithm to solve. But we should be able to tackle this particular case.   Elementary method is preferred. I am not familiar with advanced methods for word problems.

Problem: Show that the group given by the presentation $$\langle x,y,z  \mid xyx^{-1}y^{-2}\, , \, yzy^{-1}z^{-2}\, , \, zxz^{-1}x^{-2} \rangle $$ is equivalent to the trivial group.   I have tried all sorts of manners to try to show that the relations given by the presentation above imply that $x=y=z=e$. However, I am stuck and would appreciate any hints as to how I should move forward.


I am trying to make a Minecraft Animation using Cycles Render. Everything is fine, but when I try to render or animate the animation, the background is empty or black.     The only nodes that I used for the environmental texture are the 3 default ones, texture coordinate, and mapping (to move the background down and rotate a bit so that the sun would align with the HDRI image).    I have used this image before on other animations, and this is the first time this had happened. One thing that is different is the Blender version, but other than that everything is the same (file location / name, image location / name, etc.). The regular image and camera settings are shown below.     If anybody knows how to resolve this problem, help would be gladly appreciated!

I have an object with an hdr for the background. What do I do in Cycles to render the background with my object?  How is this different from an ordinary render in Cycles?  The hdr is a big one, 350MB.


I'm from Mexico and planning a trip to Japan, and so me is a few thousand dollars cheaper and way faster to do it from LAX, than from my own country. I do have an American Visa B-2 type (Tourist).  What problems could there be regarding my situation?  and Are there any extra steps in me taking an international flight within the US as a foreigner? Thank you so much in advance, I really don't want to have an issue and have never done a flight like so.

My nationality is Vietnamese and I have a flight heading to Vietnam. I have to transit in New York, Los Angeles, and Shanghai on the way (each will be just max 5 hours). Can I use my valid US B1/B2 visa for transit through those two American cities? What about Shanghai; do I need the transit visa for there also?


I am trying to answer problem 3.3 part b in :     (b) Show that the total energy $Q=\int \mathcal{T}^{00} d^3 x$ is invariant under the addition of a total derivative to the Lagrangian, $\mathcal{L}\rightarrow \mathcal{L}+\partial_{\mu} X^{\mu}$.   When I try to show this, I find that it is in general not invariant, meaning I am making an error somewhere. Here is my attempt:  The (canonical) energy-momentum tensor $\mathcal{T}^{\mu \nu}$ is defined by:  $$\mathcal{T}^{\mu \nu}\equiv \sum_{i} \frac{\partial \mathcal{L}}{\partial (\partial_{\mu} \phi_i)}\partial^{\nu}\phi_i - \eta^{\mu\nu}\mathcal{L}$$  Since a total derivative $\partial_{\mu}X^{\mu}$ doesn't change the action, and $\mathcal{T}^{\mu \nu}$ is defined through the action, the new energy-momentum tensor will simply be the old one with $\mathcal{L}$ replaced with $\mathcal{L}+\partial_{\mu}X^{\mu}$.  $$\begin{align} \mathcal{T'}^{\mu \nu}&=\mathcal{T}^{\mu \nu}+ \sum_{i} \frac{\partial \left(\partial_{\rho}X^{\rho}\right)}{\partial (\partial_{\mu} \phi_i)}\partial^{\nu}\phi_i - \eta^{\mu\nu}\left(\partial_{\rho}X^{\rho}\right)\\ &=\mathcal{T}^{\mu \nu}+  \sum_{i} \partial_{\rho}\left(\frac{\partial X^{\rho}}{\partial (\partial_{\mu} \phi_i)}\right)\partial^{\nu}\phi_i - \eta^{\mu\nu}\partial_{\rho}X^{\rho}\\ \end{align}$$  The new energy $Q'$ is given by:  $$\begin{align} Q'&=\int d^3 x \mathcal{T}'^{00}\\ &=Q+\int d^3 x \, \left[ \sum_{i} \partial_{\rho}\left(\frac{\partial X^{\rho}}{\partial \dot{\phi}_i}\right)\dot{\phi}_i -\partial_{\rho} X^{\rho}\right] \end{align}$$  So I need to show that the second term vanishes, but I don't know how. That's a 4-derivative sitting inside the integral, so if it was $d^4 x$ I'd just use the divergence theorem and say "oh well assuming $X^{\rho}$ vanishes at infinity we get our desired result". But it's an integral over $d^3 x$.   What do I do?

There is a problem 3.3 in :     Ambiguities in the energy-momentum tensor:      (a) If you add a total derivative to Lagrangian ${\cal{L}} \rightarrow {\cal{L}} + \partial_\mu X^\mu$, how does the energy-momentum tensor change?      (b) Show that the total energy $Q = \int d^3x \; {\cal{T^{00}}}$ is invariant under such changes   Given the definition of energy-momentum tensor:  $$ {\cal{T}}^\mu{}_\nu = \sum_n \frac{\partial{\cal{L}}}{\partial \left( \partial_\mu \phi_n \right)} \partial_\nu \phi_n - g_{\mu\nu} {\cal{L}} $$  It changes as:  $$ \delta {\cal{T}}^\mu{}_\nu =  \sum_n \left( \partial_\rho \frac{\partial{X^\rho}}{\partial \left( \partial_\mu \phi_n \right)} \right) \partial_\nu \phi_n - g_{\mu\nu} {\partial_\rho X^\rho} $$  $T^{00}$ changes as:  $$ \delta {\cal{T}}^{00}= \sum_n \left( \partial_\rho \frac{\partial{X^\rho}}{\partial \dot{\phi_n}} \right) \dot{\phi_n} - \partial_\rho X^\rho $$   From this point I’m stuck. The first term doesn’t seem to disappear at all after integration over space, and the second disappears only partially:  $$ \int d^3x \; \dot{X^0} $$  So even if I’d have assumed that $X$ depends on position, and not on the fields - the total energy doesn’t seem to be invariant under it.  What is the best way to proceed forward with this?


When connected to the Internet, the system checks if it's in a walled garden, which is simply trying to connect to Google. If it fails, in Android 5, there'll be an exclamation mark on the WiFi icon or signal icon.   In some situations, this is annoying. Say, in China, Google is blocked, the exclamation mark will always be there, which is meaningless.  How can I disable this check, and make the system assume, connected WiFi/mobile data is connected Internet?

Android 5.0 has a new "feature": If a wifi network has no connection to the internet, it will remain connected to it but route traffic over mobile data instead. A small exclamation mark shows in the status bar over the wifi symbol.  Unfortunately, for some reason Android has decided that my home wifi does not have a good internet connection - which is not true, as I'm using it to access Stackexchange at the moment - and is, instead, trying to send everything over GPRS.  With mobile data disabled, things work over wifi just fine, despite the exclamation mark - so it isn't a problem with the wifi not working, per se.  Is there any way to override this "smart" feature? The only way I have found to make things work at the moment is to disable mobile data while I am in my house - which is not a practical long-term solution.   EDITING to add that I have now solved this problem by buying a new router! I was using something very old... But, I'll leave the question here for the benefit of anybody else with the same difficulty.


Here's the error log that it directed me to. I'm very new to coding and have no idea what it's asking me to fix. I tried to look it up but the few solutions I could find didnt't help. I changed the environment variable HOME to %USERPROFILE% but I don't think that was the right thing to do. Please help!  I've tried re-installing Eclipse but it still won't work.       !SESSION 2017-03-28 10:56:50.318 -----------------------------------------------     eclipse.buildId=4.6.2.M20161124-1400     java.version=1.8.0_112     java.vendor=Oracle Corporation     BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA     Framework arguments:  -product org.eclipse.epp.package.java.product C:\Users\ssfro\OneDrive\Fanshawe\INFO-1150 Programming\workspace\School     Projects\src\Spencer_Frost_INFO1150_Project.java     Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product C:\Users\ssfro\OneDrive\Fanshawe\INFO-1150 Programming\workspace\School Projects\src\Spencer_Frost_INFO1150_Project.java      !ENTRY org.eclipse.core.resources 2 10035 2017-03-28 10:56:52.694     !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.  !ENTRY org.eclipse.osgi 4 0 2017-03-28 10:56:52.842 !MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (84).

I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is:       !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801     !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.   Googling reveals  that I remove the folder:  workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes   This does not appear to have helped.  Short of starting with a new workspace (something which I am not keen to do, as it takes me hours to set up all my projects again properly), is there a way to make Eclipse start up properly?


JS fiddle:   let album_images_slider = new Swiper("#album_images_slider", {     direction: "horizontal",     slidesPerView: 1,     loop: true,     allowTouchMove: false,     speed: 600,     autoplay: {         delay: 3000     },      navigation: {         nextEl: ".swiper-button-next",         prevEl: ".swiper-button-prev"     } });  $(function() {     console.log("hello");       $("#album_images_slider").click(function(e) {         console.log("hello, mate!");         console.log(e.target.className);         if (e.target.classList.contains("swiper-slide")) {             console.log("hello!");             $("body *").hide();             $("body").before(`<div class="layer">Hey!</div>`);         }              });          $(".layer").on("click", function() {         console.log("Hi");         $(".layer").remove();     }); });  Block .layer is succesfully displayed on the screen, but for some reason when I click on .layer, .layer click handling isn't invoked. What is the problem? And how can I solve that? Any help would be highly appreciated!

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am trying to print a progress bar in shell as follows  #!/bin/bash  sleep $1 & PID=$! printf "[" counter=1 while kill -0 $PID 2> /dev/null; do      percent_done=$(echo "${counter}*100/${1}" | bc -l )     printf  "▓%.0f" $percent_done     sleep 1     counter=$counter+1 done     printf "] done!"   and i call it as  myScript.sh 10  so the script will invoke a sleep of 1 sec for 10 seconds. On each iteration of the loop, i want to print   ▓<the percentage of the loop completed>  for instance i expect  ▓10▓20▓30▓40▓50▓60 and so on. but i get  ▓10▓11▓12▓13▓14▓15 instead  what am i doing wrong? am i not updating the counter properly? also, if i do   percent_done=$(echo "${counter}/${1}" | bc -l )  then i get  ▓0.1000000000000▓1.100000000000000000▓2.10000000000000000000▓3.10000000000000000000▓ and so on.   Since I dont want the long floating point value, i added the *100 in the expression.  What am i doing wrong?

When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed.  For example, copying a big file, opening a big tar file.  What ways do you recommend to add progress bars to shell scripts?


Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?

How do I get the path of the directory in which a  script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash script is located, so I can operate on the files in that directory, like so: $ ./application


A couple minutes ago, I was mining in minecraft and then there was about ten seconds of creepy music. Whats going on? I'm freaking out!

Apparently it means there is a dungeon around but I can never find any?  If it does mean dungeons how far away will it trigger?


Unarmed strikes already count as "attacks", "melee attacks", and even "melee weapon attacks" as the , version 2.3, states this on page 11:     For example, an unarmed strike counts as a melee weapon attack, even though the attacker’s body isn’t considered a weapon...   I was wondering if there are unforeseen consequences of letting unarmed strikes simply count as weapons in general.

In the latest errata for the D&D 5.0 PHB, unarmed strikes apparently ceased to count as weapons, being something you use instead of weapons:  Equipment Weapons (p. 149). Unarmed strike doesn't belong on the weapon table. Combat Melee Attacks (p. 195). The rule on unarmed strikes should read as follows: "Instead of using a weapon to make a melee weapon attack, you can use an unarmed strike: a punch, kick, head-butt, or similar forceful blow (none of which count as weapons). On a hit, an unarmed strike deals bludgeoning damage equal to 1 + your Strength modifier. You are proficient with your unarmed strikes."  Is this a significant change, or just a relatively benign clarification or error-fix, particularly with regards to how it affects Barbarians, Monks, and Brawlers? Is this a major nerf or empowerment in any way, and if so why? How much does this actually affect characters who fight unarmed — does it break or change a lot, or only a limited obscure amount? Does this break popular character builds? (Is it doing enough I should be letting my players reroll?) If it's hard to tell how much this affects, I'd be interested to know that as well.


I need to know the importance of DOCTYPE..  Which will be good for tables?  when specifying doctype 4.01,table structure changes sometimes..  if we remove doctype,it is working perfect..  so i need help guidelines for usage of tables and doctype from stackoverflow users

What is DOCTYPE and why do I want to use it? What are the different DOCTYPEs I can use? What is the difference between standards and quirks mode, and what are some quirks I may run into with differently set DOCTYPEs?   Lastly, what is the proper DOCTYPE that I should be using?


The question:   Let $a,b \in  \mathbb{Z}$ with $a$ and $b$ not both zero, and let $d = (a,b)$. Prove that $d$ is the least positive integer linear combination of $a$ and $b$; ie ,for all $c \in  \mathbb{Z}^{+}$, if $c$ is an integer linear combination of a $a$ and $b$, then $d \leq c$  I tried finding similar examples of this proof on stack exchange and google but found nothing.

Given $a_1, a_2, a_3, \ldots , a_n$ not all zero, show $\gcd(a_1, a_2, a_3, \ldots , a_n)$ is the least positive integer that can be expressed in the form $a_1x_1+a_2x_2+ \ldots +a_nx_n$. Also deduce $a_1x_1+a_2x_2+ \ldots +a_nx_n = b$ has solutions $\iff \gcd(a_1, a_2, a_3, \ldots , a_n)|b$.   I know that $ax+by=n$ has integer solutions $\iff \gcd(a,b)|n$. I'll need to use induction to show $a_1x_1+a_2x_2+ \ldots +a_nx_n = \gcd(a_1, a_2, a_3, \ldots , a_n)$ has solutions, and then I will be able to say that as $\gcd(a_1, a_2, a_3, \ldots , a_n) | a_1x_1+a_2x_2+ \ldots +a_nx_n $ for any $x_1,x_2, x_3 \ldots x_n$ then $c \leq \gcd(a_1, a_2, a_3, \ldots , a_n)$ and $c \geq \gcd(a_1, a_2, a_3, \ldots , a_n)$, and thus $c=\gcd(a_1, a_2, a_3, \ldots , a_n)$.


I am interested in developing for Xamarin, but I only have a W10 laptop and no MAC. I have seen different answers to questions very similar to this one like these: , . Even though the accepted responses say it can't be done there are some others good answers that say it can be done. So my question is:  How can I develop iOS apps in Xamarin for Visual Studio 2015 without a MAC available, using some virtualization technology (thinking VMWare/VirtualBox since I don't have any experience in Hyper-V)?

Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?  The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is.


I try this:  int yourProcess = Process.GetProcessesByName( "notepad.exe" )[0].Id;   all i get is this error:      System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'   can anyone help?

When I get a reference to a System.Diagnostics.Process, how can I know if a process is currently running?


We are given $k$ urns labeled from $1$ to $k$. What is the number of ways to put $n$ indistinguishable balls into the $k$ (distinct) urns, given that each urn has a limited capacity equal to $c$, namely the maximum number of balls that can be put in the same urn?

How many solutions are there to $x_1 + x_2 + ... + x_n = S$ for given $S$ assuming that $0 \le x_i \le 25$? I can solve it when there are no constraints on $x_i$ other that $x_i$ must be non-negative.


I have an Indian passport and a European residence permit card. I was travelling from Amsterdam to Abu Dhabi with a 2 hours transit time in London Heathrow without any change of airport. I was however denied boarding at Amsterdam for lack of UK transit visa. According to the UK website, it says I am exempt from a transit visa requirement due to the EEA residence permit. Did this happen to anyone else? Why was I denied boarding?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I recently installed Ubuntu 20.04 in 'Dual boot mode' alongside W10. Internet connectivity is working as usual/expected within browser and terminal while browsing as well as downloading or upgrading packages, with exception to 'Ubuntu Software' store from the day of installation it is not working as expected! Update: I am using a VPN connection in my machine, does it have any relation with this? Any comments/suggestions please? It always shows a loading scree(black screen with 3 dots) i guess,  After many hours also, it shows the same. If I tried to search for any particular app, at times only it shows the result most of the time it shows only the spinner icon

After installing 16.04, Ubuntu Software is always empty as shown in the screenshot. How can I fix this?


When I use Fedora if I press the super key I get the view of all the applications i'm using, and it's very comfortable, is there a way of having this on Ubuntu?  Thanks.

I followed the instructions for compiling GNOME Shell and it did compile with a few errors here and there but it didn't run. I installed GNOME Shell using sudo apt-get install gnome-shell but I got version 2.31.x, while the latest is 2.91.5 or something. So is there a way for me to install the latest build?   Is there some repository available for the latest build?


Prove that If $p$ and $q$ are distinct primes then for any integer $a$, $$pq\mid (a^{pq}-a^p-a^q+a)$$  I start by using Fermate little theorem and I am looking for $\bmod p$ and looking for $\bmod q$  is that correct for mod p $$p\mid ((a^{q}-a)^{p}-(a^q-a_)$$ then $$p\mid (a^{pq}-a^p-a^q+a)$$

If $p$ and $q$ are distinct primes and $a$ be any integer then $a^{pq} -a^q -a^p +a$ is divisible by $pq$.  Factorising we get $a^{pq} -a^q -a^p +a =a^p(a^q -1) - a(a^{q-1}-1)$ and we know $p \mid a^{p-1}-1$ and $q \mid a^{q-1}-1$.  I can't proceed further with the proof. Please Help!


I'm traveling from Bangkok to Auckland, changing flights in Sydney, the stop over is 5h and 10m and the flights are both with Qantas. I hold an Italian passport.   Do I need a transit visa? Is it possible to check-in for both flights in Bangkok, if not and I have to exit

I am landing in Sydney at T1 from Fiji. 3 hours later I need to have collected luggage and checked in for my Sydney to UK flight, still at T1, just a different carrier. Does this mean I will have to go through customs and immigration? I’ve no idea.  Basically, I need to know if I need a transit visa. The immigration website states that if I'm in transit and don’t leave the transit lounge then it’s fine but... what’s the transit lounge? The terminal?


I read a short story in English class around 1998-2001.  The main character was a girl named Margot.  The setting was a settlement on another planet - maybe Jupiter or Mars? The planet was excessively rainy, and the sun shone once every few years (i don't remember how many years).  Among her classmates, Margot was the only one who talked about the sun and what it was like - warm, bright, shiny, etc. - but the other kids didn't believe her.  It was hinted Margot may have lived on Earth, and that's why she knew what the sun was like, but most of the kids had lived their entire lives on this other planet, so that's why they didn't believe any of it. On the day the sun was going to shine, the kids tricked Margot and locked her in a closet.  At the time of the sun glimpse, the kids filed outside to watch, forgetting about Margot.  They enjoyed their time outside in the brief glimpse of sun, and then suddenly remembered Margot.  Humbly they let her out of the closet to face x number of years before the next sun viewing.

I read this short story about 20 years ago, and I'd love to find the title and author. This is what I can recall about the story:   It takes place in a classroom full of kids (around 10 years old?) The planet always gets rain The kids lock the main character (a girl, I think) in the closet during the very rare occurrence of sunlight and she misses the entire event.    I know it's not much to go on, but I hope it rings a bell for someone!


I acctualy work on C project compiling with gcc. I can do error checking thought file, but I want to know how to do it inline. gcc -o test.exe test.c;./test.exe  I want to exec test.exe only if no errors in compilling. Like if [gcc -o test.exe test.c no error] => ./test.exe

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


I have the following style:     Anderson, E. (1988), 'Transaction costs as determinants of opportunism in integrated and independent sales forces', Journal of Economic Behavior & Organization Vol. 9 No. 3, pp. 247-264.   How do I make changes to get the following punctuation format?     Anderson, E. (1988), “Transaction costs as determinants of opportunism in integrated and independent sales forces”, Journal of Economic Behavior & Organization, Vol. 9 No. 3, pp. 247-264.   I use the following codes to import from JabRef  \bibliographystyle{agsm} \bibpunct{(}{)}{;}{a}{,}{,}

I am using LaTeX with the article document class. The Bibtex bibliography style that I am using is agsm, part of the Harvard family of bibliography styles.  I have two questions:  (1) If I cite an entry of type @book, then in the reference list I get publisher, address. I would like to re-arrange this order to address: publisher. Which part of agsm.bst should I modify?  (2) I would like to change single quotation marks ' ' to double quotation marks " " for setting off the title of entries of type @article. Which part of agsm.bst should I focus on?


How can I prove that $n(n+1)(2n+1)$ (where $n$ is a positive integer) is divisible by 6? As the product is even it is divisible by 2. But I do not know how to prove that it is divisible by 3

I've been asked to show that:  $n(n+1)(2n+1) \equiv 0 \pmod 6$  I found in a previous question that:  $n(n+1)$ was divisible by $2$ and resulted in an even number e.g  $n(n+1) \equiv 0 \pmod 2$  so I figured I needed to find:  $(2n+1) \equiv 0 \pmod 3$ in order to complete  $n(n+1)(2n+1) \equiv 0 \pmod 6$  but I am unsure on how to find $(2n+1) \equiv 0 \pmod 3$  Is this the right way to find the mod 6 and if so could you tell me how I could find  $(2n+1) \equiv 0 \pmod 3?$


I set my hostname in the /etc/sysconfig/network file to host.example.com  HOSTNAME=host.example.com  Fyi, I then issued a reboot on the machine. I have a problem with Puppet: when I run Facter on this machine, it returns the following information :  #facter fqdn host.com  So puppet generates a wrong certificate and so on... Here is what happens on my host :  # hostname host.example.com # hostname --fqdn example.com # hostname -y (none) # dnsdomainname com  I don't understand why Facter is getting the wrong information... What did I do wrong?

I've noticed that the "preferred" method of setting the system hostname is fundamentally different between Red Hat/CentOS and Debian/Ubuntu systems.   and the  say the hostname should be the FQDN:     HOSTNAME=<value>, where <value> should be the Fully Qualified Domain   Name (FQDN), such as hostname.example.com, but can be whatever   hostname is necessary.   The  is slightly more ambiguous:     Setup prompts you to supply a host name for this computer, either as a   fully-qualified domain name (FQDN) in the format hostname.domainname   or as a short host name in the format hostname.    says the hostname should not use the FQDN:     3.5.5. The hostname      The kernel maintains the system hostname. The init script in runlevel   S which is symlinked to "/etc/init.d/hostname.sh" sets the system   hostname at boot time (using the hostname command) to the name stored   in "/etc/hostname". This file should contain only the system hostname,   not a fully qualified domain name.   I haven't seen any specific recommendations from IBM about which to use, but  seems to have a preference.  My questions:   In a heterogeneous environment, is it better to use the vendor recommendation, or choose one and be consistent across all hosts? What software have you encountered which is sensitive to whether the hostname is set to the FQDN or short name?


I thought Ubuntu asked for files to import from the along-side operating system on installation. But it didn't, so how can I move them over to Ubuntu after installation?  The files I wanted to import are basically my browsers and bookmarks, along with passwords that are located in Win 10. Both operating systems are on the same computer.

I have a desktop (Ubuntu 13.04 & Win 7 Home Premium) and a Laptop (Ubuntu 12.04), both having WiFi adapters. I also have a WiFi router connected to internet which both my computers can access.  I want to share files between my desktop and my laptop using WiFi (similar to Homegroup on Windows 7 but without using Ethernet cables).  How do I set-up that?  I want to share files using both OSs, if anyone have have information about sharing files with any of the OS please answer!


Strangely, I only got this when accessing RPG.SE. (Nothing else, even meta.RPG.SE.)  First image:    Second image for comparison:    Any ideas?  Note: Awards, profile, and badges that have something to do with RPG.SE is in mobile view.  My clock is +7 GMT.

I seem to have clicked on something that changed my display preferences. The main site is now very minimalistic, with fewer controls and different fonts.  I want to change it back, but where is it?


I have two tables User_details and Level_details. User_details table: ID     Name 1       A 2       B 3       C 4       D 5       E  Level_details table: trns_id    Lvl   usr_id 66          1      1 66          1      5 77          1      2 77          2      3 66          2      4 66          2      3  I am expecting the result like: trns_id   Lvl    name 66         1     A, E 66         2     D, C 77         1     B 77         2     C  Please suggest the query that should work in lower version of SQL server(below SQl 17).

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I'm looking for some resources for learning PyQGIS.  It would be interesting having a collection of books or websites that provide some practical examples for learning the syntax or accomplishing specific tasks.  Ideally, these resources should give a general guidance for both beginner and experienced users.   is a very similar question, but it gives help for learning QGIS, and not specifically PyQGIS (in fact, it doesn't have the PyQGIS tag).  Any help?

After a few hours I am about to give up on finding a kind of documentation for the QGIS Python API that actually works/gives the correct information. It is obvious that there is no actual code documentation besides the one for the C++ API which differs from what works in Python. Ok, there is the help()-function, too, to get information about classes which is more than ust tedious to use. As an entry point, I thought I could use the tutorials/cookbook: . Even simple things like adding features does not work the described way in the current QGIS Version 2.4.0-Chugiak (there is no addFeature-function for example).  I wonder how working with the Python console and writing plugins makes sense under such unfavorably conditions.  What sources can actually be used to lookup and learn the Python API for QGIS for current versions?


So I have stayed in the US for a period of 10 weeks on my B1B2. My purpose is genuine. I was starting my company's base in a particular city and meeting clients and onboarding them. And now, I need to come back to the US after 4 weeks outside the US, but this time for a period of 3 weeks. This is because the clients already onboarded need to have a single round of meetings.  Is this okay? Will they stop me at immigration? Will it affect my visa?

I'm a 24 year-old Australian traveller. I just spent a full 6 months in the US, mostly around LA. I stayed the full length of my allowed stay on a B2 tourist visa. I'd never ever been the States before!  I'm now back in Australia and wondering if I should wait another 6 months before coming to the US. I understand that is the general suggested guideline and that there are no real rules. I met a girl I really like there and would love to see her again. I'm not sure if anyone has any experience telling that to immigration on their next arrival.


I have a set of points in a text  that define the edges of a solid object. Each line in the file is a collection of points (x,y,z) which form a closed loop. Stacking these loops forms the object.  I am trying to create a surface mesh of the object and write it to an.STL file. What would be the best way to do it in Blender? Can the process be automated with a script?  I am totally new to blender and have no idea where to start. Any pointers are much appreciated.   Thanks!  Edit: I understand that once all the points are loaded into Blender, I can connect the vertices in each layer to form edges. But, how are the vertices defined?  Here is what I have:   with open('contoursb1_0.25res_60SCD.txt','r') as file: test = [[[float(i) for i in pt.split(',')] for pt in line.split()] for line in file]   Now for each layer, I would like to go across the list and create vertices and edges. How should I proceed? I found this  helpful, but am unable to create vertices. I am also a novice in python. So if you have any suggestions or see any errors and point them out, I would be greatful.

I'm trying to create a 3D heat map model out of data that I have from a csv file. I have a few thousand data points with XYZ coordinates.  I'm able to import the data into blender as a point cloud with , however I would like to create a model with solid faces. Is there a way when importing the data to somehow join the points to create faces instead of generating thousands of separate points?  Currently, this what I have in terms of point cloud  The end product would look something like this (minus the texture) and obviously the model wouldn't be as regular as this one  Any help is greatly appreciated!


My T-SQL query generates following result set  ID        Date 756 2011-08-29 756 2011-08-31 756 2011-09-01 756 2011-09-02   How can I convert like this  ID                Date 756 2011-08-29, 2011-08-31, 2011-09-01, 2011-09-02   Any suggestion would be appreciated.

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


I was helping my mother troubleshoot a problem with her Gmail and now every time I go to use Gmail, her account comes up as the default one. I don't know her password, but I can't sign out of her account without signing in first, so I can't remove it from the list.  This is really annoying.  Is there any way I can remove this entry without having to log in to her account?  All other solutions I have seen to this issue involve somehow signing out of the account before being able to remove it. I cannot do that because when I go to click on the account to switch to it, I am asked to verify that it's me (which it isn't) and type a password (which I don't know.)

When signing in with Google (OAuth), it shows a list of accounts it already knows about. How can I remove some accounts from this list?    I know I can nuke all of them by deleting all cookies, but I'd prefer to remove one account that I don't want there, rather than all of them.  There used to be an ability to edit this list in the older version of this screen, but in 2018 redesign Google has removed [×] buttons next to the accounts.


Prove that if in a certain set with associative operation $*$ defined, $ax = b$ and $ya = b$ have solutions, then that structure is a group.   My attempt:  $$ax = b \Rightarrow (\exists e )(axe = x \land be =b)$$  $$ya = b \Rightarrow(\exists n)(nya = y \land nb = b)$$ Now, I'm stuck - I don't know how to prove that $e$ and $n$ are the same thing and that if $be = nb = b$ then $e=n$.

(Reference : Fraleigh, A first course in abstract algebra)     Prove that a nonempty set $G$, together with an associative binary operation * on $G$ such that $a*x=b$ and $y*a=b$ have solutions in G, $\forall a,b\in G$, is a group.   Because * is an associatie operation, we have to prove that: there exists $e\in G$ such that $e*a=a=a*e$ for any $a\in G$, and that for any $a\in G$ there exists $\alpha \in G$ such that $a*\alpha=e=\alpha *a$.  This is very confusing, first I tried to prove the identity exists. If we consider a=b, then $a*x=a=y*a$, and because of the hypothesis $x,y\in G$ always exists, now we have to show that $x=y$, but I just can't do this with out inverses, so I tried to prove that the inverses exists, however I have no idea how the identity looks like, I'm stuck.  And I tried to get unstuck, so I thought particular cases, first if $G$ had only one element, then what would happend if it had just two elements... but I remembered that we don't know if G is finite or not, and I think this makes things a little bit more complicated.  What can I do?


@Override     public void onFragmentSelected(int position, Bundle bundle){         Fragment curFragment=null;          if(position==0){             curFragment=fragment1;             toolbar.setTitle("first page");         }else if(position==1){             curFragment=fragment2;             toolbar.setTitle("second page");         }else if(position==2){             curFragment=fragment3;             toolbar.setTitle("third page");         }          getSupportFragmentManager().beginTransaction().replace(R.id.container,curFragment).commit();     } }  I'm learning android with a book. I wrote right same to the code of a book. but, it doesnt' work in a partial code, I exactly pass that strings "first page" ~ "third page" but, error occured... the eroor is lke that my title 'on a null object reference' I tried something that I deleted that three code(toolbar.stTitle();). and it worked. I don't know why. help me...

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Each time when I type some non-existing domain name in Chrome bar address, I'm redirected to  .  For example when going to: , I'm getting the immediate redirect to: http://searchguide.level3.com/search/?q=http%3A//javauto.org/&r=&t=0 with some ads and meaningless results.  I don't know how this got installed. I don't have any Level3 extensions and I use DuckDuckGo as my default search engine.  How can I remove this Level3 search engine from Chrome? As this is very annoying.      To clarify, my default search engine is set to DuckDuckGo:    And Level3 doesn't exist on the main search settings list, either on Other search engines list.      Here is my DNS configuration:  $ cat /etc/resolv.conf  nameserver 4.2.2.1 nameserver 8.8.8.8 nameserver 8.4.4.2     I've checked the other , but it's not duplicate, because:   It talks only about Windows workarounds. DNSUnlocker and Malwarebytes are Windows apps. The first answer is actually one sentence question. To clarify, I don't have any fishy extensions or malwares. It also happens in incognito mode.   Yes, I'm using Google DNS, but I don't know how removing it would solve the issue.    This is also not duplicate of , because I don't have any malware on my macOS. Believe it or not, I really know when I have one (already checked with launchctl and ps). So this problem has nothing to do with viruses as linked Windows post says. In this post at  it's suggested that it's caused by using free DNS and that ISP is forcing the redirect (NXDOMAIN record). Please reopen, so I can share my solution once I find one.

If I enter a URL incorrectly, my Firefox browser occasionally redirects me to    This occurs in Chrome too. I've restarted Firefox in safe mode, and it still happens I've restarted Windows 10 in safe mode, and it still happens I've installed Hitman Pro Alert. The scan found nothing, and could not prevent the redirect. My HOSTS file is clean. My ethernet settings IPv4 properties use Google's DNS: 8.8.8.8 and 8.8.4.4 The only other issue I have is when visiting  which produces numerous pop-up windows, unless I disable scripts. I have Comodo Internet Security (antivirus and firewall) installed, and it identifies nothing.   Any other suggestions?


I would like to change the desktop from what it is to the old look. I don't like the new look. Hope it can it be done on the usb?

I'm used to GNOME Classic and personally don't want to change to anything else, but it seems there is no more GNOME Classic in the Oneiric release. After apt-get installed gnome-session and all, though there comes back the GNOME Classic option in the session listbox, however, after logged in, it seems not the expected one.  There is no System menu in the top bar, and I couldn't customize panels at all. I want to change the appearance(theme), but I can't find Appearance menu at all. And much more differences to my previous experience of GNOME classic shell.    There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:    and up      &


I have an organic group with a file field that stores its files in a private directory (sites/default/files/private/). These files are visible only to members of that group. But, as is commonly known, if someone guesses the Drupal path even if he is not a member of that group or not even logged in, he can access that file by using the correct file link directly.   How can I restrict file access to group members?


I have wifi adapter TP-Link TL-WN722N I want to use it to access internet and to share wifi access point at once.  I did it on windows 8:  netsh wlan set hostednetwork mode=allow ssid="APname" key="mykey" keyUsage=persistent  wlan start hostednetwork   How can i do this from ubuntu 14.04?

If I try to set up a hotspot in GNOME, I get the following message:  If you have a connection to the Internet other than wireless, you can use it to share your internet connection with others. Switching on the wireless hotspot will disconnect you from <network name>. It is not possible to access the internet through your wireless while the hotspot is active.  What are the technical reasons why I can't set up an Hotspot and be connected to the Internet at the same time?


Let $G$ be a solvable group. It is a well-known Theorem that "the index of every maximal subgroup of $G$ is a power of prime or infinite". I want to find an example of infinite case.

My question is very simple and maybe trivial. Here it is.  Is the index of a maximal subgroup in a finite group always a prime number?  Thanks in advance.


All the shapes in every .ai file that I have created now appear distorted around the edges where I have  used the anchor point tool . Please check the image around the characters neck and the curves used for the couch. Can anyone please help. This has never happened before.

After creating a path with rounded corners in Illustrator, I added a dashed stroke and aligned it inside the path (but the problem is the same when aligning outside). Strangely I ended up with a lot of strange 'glitches' (?) along the path:    When aligned centered, the stroke looks neat and sharp:    I've tried changing stroke properties but nothing really helps. Has anyone ever experienced similar behaviour? How can I get those sharp strokes back?  To create this symmetrical shape I first created the left half, copied it, reflected the copy and united the both parts with Pathfinder.  Here's the actual document in case someone is interested:


I have a C# application which calls a function in a C++ dll. This function can throw various exceptions which inherits std::exception. I currently catch these exceptions like this:  try {     //Call to C++ dll } catch (System.Exception exception) {     //Some error handling code }   My first question is will this code catch all std::exception? My second question is how can I retrieve the std::exception::what string, if I examine exception.Message I only get "External component has thrown an exception".  EDIT: The function in question is in a non managed C++ dll, and imported like this in the C# class:  [DllImport("SomeDLL.dll")] public extern static void SomeFunction();

In C# code can you catch a native exception thrown from deep in some unmanaged library? If so do you need to do anything differently to catch it or does a standard try...catch get it?


It's easy to represent (via fractions) numbers like $2,34$ or $2,\overline{34}$ and even $2,3\overline{4}$. But what about $2,\overline{3}4$?  $2,3333333333333333333333333333333333....$ and I'll never be able to write the number $4$!!  Does it exist with this notation?  Is a rational number?  Notation: The top bar represents periodic numbers.

Does $1.0000000000\cdots 1$ (with  an infinite number of  $0$ in it) exist?


I'm looking for a story where humans fight against aliens. The plot is, the aliens discovered gravitational space travel early in their history, and although being very advanced in space travel technology, the aliens are really late against human warfare technology.

I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development.   What I remember:   The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s.


Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I was looking at the datasheet of AD620 instrumentation amplifier. It had a circuit for measurement of EMG signals.     The gain of 7, as written on the amplifier, is justified for this amplifier configuration, as Gain= (1+ 49.4kohm/Rg)  with Rg=8.25kohm. But what's the purpose of adding this additional circuit here (highlighted in green). I think it is for creating some reference. But how? And won't it cause any deviation from the gain of 7?

I would like create an ECG circuit based on this schematic (from the AD620AN datasheet):    I don't know this part of the circuit and how it works. I know this is called a right leg driven circuit which is reducing the effect of the noise. But I don't know exactly how negative feedback works in this case. Can someone help me?


I'm having a issue with apps turning up that use data in the background. I have no idea what the are or where they came from. I have factory reset my phone several times. The phone is a ZTE from straight talk. The link above shows what the apps look like only my numbers are 12437, 12984, 19154. Before I reset my phone there where a lot more of them. About 15. Is there anyway to get rid of them? Are they harmful to my phone? The phone is not rooted. And since the last reset u have uninstalled nothing. Can anyone help? Edit They also seem to be heating up and slowing down my phone due to the fact that so many are running in the back round  Edit the numbers continue to grow. Edit in now have about 15 is there anything I can do can anyone help or am I just screwed?

A mysterious app named "10102" shows up in my data usage. It bears only the standard Android app icon (the Bugdroid logo with a cube on its torso). From what the graph tells me, it has used 36 megabytes of data in the background and zero on the foreground. I think I haven't uninstalled anything for months. Is it malware? I haven't sideloaded anything and only authorized my laptop as a USB debugger. If it's malware, how do I remove it? I have no idea how to find its package name and 10102 isn't in the list of downloaded apps in settings. I'm running stock & never-been-rooted Android 4.4.4 on Nexus 4.


How to create a box like parbox which automatically resizes to the length of its content and can contain multiple lines? I tried mbox but it can contain one line of text only; on the other hand, parbox requires a fixed width.

I've seen hbox, vbox, mbox, parbox and others used in various code samples. What are the different kinds of box in (La)Tex? Which are suitable for use in LaTeX, as opposed to plain TeX?


Show that every finite integral domain is a field.  I have shown that every nonzero element in a finite ring with an identity is either a zero divisor or a unit.

This is how I'm approaching it: let $R$ be a finite integral domain and I'm trying to show every element in $R$ has an inverse:   let $R-\{0\}=\{x_1,x_2,\ldots,x_k\}$,  then as $R$ is closed under multiplication $\prod_{n=1}^k\ x_i=x_j$,  therefore by canceling $x_j$ we get $x_1x_2\cdots x_{j-1}x_{j+1}\cdots x_k=1 $,  by commuting any of these elements to the front we find an inverse for first term, e.g. for $x_m$ we have $x_m(x_1\cdots x_{m-1}x_{m+1}\cdots x_{j-1}x_{j+1}\cdots x_k)=1$, where $(x_m)^{-1}=x_1\cdots x_{m-1}x_{m+1}\cdots x_{j-1}x_{j+1}\cdots x_k$.   As far as I can see this is correct, so we have found inverses for all $x_i\in R$ apart from $x_j$ if I am right so far. How would we find $(x_{j})^{-1}$?


I have experienced, and read in several articles that LED’s get dimmer “over time”. I’m looking for a clarification: is it really over time, or is it hours of usage?  So if I put an LED bulb in a cabinet (with no power on it) for 10 years, and then power it on, will it be noticeably dimmer than when it was new?  All the articles I’ve read (even one that gave a pretty good laymen’s description of how LEDs work at the electron valence level) simply say “dimmer over time”, and not “dimmer with use”, so I’m guessing that the answer to my question is “yes”, I just wanted to verify that.

I am trying to develop a very high reliability product, with a MTBF exceeding 100,000 hours, hopefully in the 250,000 hours range. Yep, I know - stupidly high reliability, at least 10 years.   Most LED's I've seen have a reliability rating of only 20,000 hours. What happens after this? Do they reduce in output too much? Are they usable as power indicators past this point?


Suppose $X$ is a scheme, $\operatorname{Spec} A$ and $\operatorname{Spec} B$ are two affine open subsets such that their intersection, say $U$, is not empty. Then let $f$ be an element in $A$ such that $D(f)$ is contained in $U$, then we know $D(f)$ equal $\operatorname{Spec} A_f$. Now since $D(f)$ is also an open affine subset of $\operatorname{Spec} B$, can I find some $g$ in $B$ such that $D(f)$ equal $D(g)$ and $A_f$ isomorphic to $B_g$? If this is not sure, does a weaker statement that there exist some open cover of $U$ by distinguished open subset $D(f_i)$ such that there are $g_i$ in $B$ and $D(f_i)$ = $D(g_i)$ hold?

Suppose $X$ is an arbitrary scheme and $U \cong \operatorname{Spec} A$ and $V \cong \operatorname{Spec} B$ are affine upon subsets of $X$.  It's not true in general that $U \cap V$ is affine, so if we want to prove basic results about general schemes (e.g. the stuff in section II.3 of Hartshorne), we need some technical means of understanding what goes on on the intersections of open affines.  I've heard that this can be done by covering $U \cap V$ with open sets which are distinguished in both $U$ and $V$, i.e. sets $W \subseteq U \cap V$ with $W \cong \operatorname{Spec} A_f \cong \operatorname{Spec} B_g$ for some $f \in A$ and $g \in B$.  I'm having trouble actually proving this.    So, questions:   Is this actually true? If so, how are these sets constructed?


I'd like F2 to used as a standard function key. (ie, when I press F2 my screen won't brighten it will send an F2 to the application)  At the same time I'd like the rest of the function keys to do their respective special operations, such as lowering/increasing volume.  Is this possible?

I want to override F1 and F2 behavior, since I have external display and Mac can't control display's brightness. The rest of the keys should retain their non Fx  I know about "Use all F1-F12 keys as standard function keys.", but I don't want to change all of the keys to be F when pressed, just some of them. (For me single press music and volume control is necessary.)  Is there a way to pick some of the function keys to default to numbered function instead of the "Apple" definitions system wide?


If you delete a question with a positive score will you get reputation back? Basically what I'm asking is, suppose you have a question with a score of 22, and I delete the question. Would I lose reputation? If so, how long does it take  for it to re-calculate the reputation?

Update (March, 2012): This has been rolled out to all sites in the network.    Behind the scenes we've been hard at work making some changes to how we track reputation.  Here are some of the issues we're aiming to address with these changes:   Reputation Skew (your actual reputation doesn't match what's shown) Up/Down votes oddities (mostly with the daily rep cap, the magical +2) Historical Deletes (not impacting rep immediately, contributing to skew) Unaccepts (display issues in the profile) User Deletion (magically missing rep, another skew contributor)   To be clear: reputation values are not changing, every action in the system is still worth the same amount.   Here’s what will be different:   Your reputation will be correct at all times Deletions will have a much more immediate effect on reputation, not waiting on a recalc  (but reputation sync takes up to 5 minutes on a delete/undelete action; as to not block the user's response thread, it's offloaded to a background queue) Recalcs will no longer be necessary Up/Down vote reversals will restore the correct reputation amount Up/Down vote reversals will correctly adjust to the reputation cap The reputation history in your profile will be more detailed and accurate (e.g. when a post is deleted, you'll see that in the reputation tab of your profile)   This means your reputation will go up and down more than it has previously, but it will be in sync.  To think of it more easily: imagine that a recalc will be done after every action in the system.  Probably the biggest impact many will be concerned with is that you may see your reputation drop in cases where it didn't seem like it did before  This was effectively happening before, but the results of that change were not applied immediately, but on the next rep recalc.  Post deletion is the biggest factor here, previously it didn't (immediately) account for the reputation impact...that will no longer be the case.  Reputation changes from the deletion will now be applied within the hour, and most other changes will be instant.  Now the part that will make everyone throw vegetables our way:  this will require a global recalc to get everything in sync.  We'll be rolling it out first here on meta, then the rest of the network...the enabling of the detailed rep view and global recalc on each individual site will coincide.  During the rollout you will see empty reputation tabs on profiles as we transition to the new storage behind the scenes, they'll be restored as the recalc rolls though each user.  We’ll put up a blog post on  before the network-wide rollout.  If you have any questions about this change or details I may have left out, please do so in answers below so that we can clear up as much as possible before this rolls out.


I have developed a modular javafx application using eclipse, jdk14 and javafx14. However, when i try to run the application from the IDE i am getting an exception stated below. This started happening after i made attempts to modularize fontawesome-8.2 jar so that i can use it in my modular application. The modularization seem to have worked except for the exception i am getting when i try to run the application. I have googled but i don't seem to find a working solution to this problem. Your assistance and guidance will be appreciated. Below is an excerpt from the stacktrace: Caused by: java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because the return value of "java.lang.Class.getResource(String)" is null at fontawesomefx/de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon.(FontAwesomeIcon.java:31) ... 23 more

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Dad doesn't let me watch that program.    Can we use "allow" or "permit" instead of "let"? What are the differences in grammar? Which one is common use?

Which of the following sentences is/are incorrect? Why?   The visa permits you to study for two months. My father would never allow me to study English Let me to go. You're hurting me.   This is question from an English learning book. All the sentences seem right to me. Do you know which one is incorrect and why?


I would appreciate it if you could please help me with the following issue: I want to write a dissertation in Lyx using university provided LaTex template. The provided class file, dissertation.cls, includes everything, which is based on a report layout. I therefore tried to create a custom layout by something like   #% Do not delete the line below; configure depends on this #  \DeclareLaTeXClass[dissertation]{custom made}  # Read the definitions from report.layout  Input report.layout   I save it locally, and therefore I can pass it to lyx by selecting it. It seems that, it partially works, because I can compile the thesis, however, spacing and sizing is not the same as what is provided in the class file. I am very confused at this point. Thanks in advance.

I'm trying to download a document class from a university, and would like to use this for my thesis. However I'm very new to all of this, and so really have little clue on where to start.  The document class package is located below, I've downloaded the 'ecsdocs.zip' file under the 'installation' heading:   When unzipped, I am able to extract 5 folders, but can't seem to find my the right local texmf directory to place them in.  I have previously placed the files in usr>local>texlive>texmf-local>tex>latex, but can't seem to find the document class after a lyx reconfigure. Is this even the right folder to place the files in? And once placed into the correct folder, what would be the next steps? Would very much appreciate some detailed guidance.   Thanks.


I have following image files in some directory which I want to be renamed:  8 -rw-rw-r-- 1 6661 sep 24 10:28 dbConnectionOkBostjan.png 8 -rw-rw-r-- 1 6548 sep 24 10:29 dbConnectionErrorBostjan.png 8 -rw-rw-r-- 1 5708 sep 24 10:29 btConnectionErrorBostjan.png 8 -rw-rw-r-- 1 5911 sep 24 10:30 btConnectionOkBostjan.png 8 -rw-rw-r-- 1 6916 sep 24 10:31 userLogOkBostjan.png 8 -rw-rw-r-- 1 6924 sep 24 10:44 userLogErrorBostjan.png   Now, I know how to use mv command to rename file and I even know how to rename multiple files, but in this case I want to rename every this file with new name same as original file, but without word Bostjan. For example, dbConnectionOkBostjan.png must rename to dbConnectionOk.png and same for all other files. How do achieve this task using terminal? I wish to solve this using ordinary mv command. If I use proposed solution from Answer 1, I get following errors:  user@testcomp:~/Pictures/testAppIcons$ for i in *Bostjan*; do mv $i $(echo $i | sed @Bostjan@@); done sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘btConnectionErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘btConnectionOkBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘dbConnectionErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘dbConnectionOkBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘userLogErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘userLogOkBostjan.png’ Try 'mv --help' for more information. user@testcomp:~/Pictures/testAppIcons$   I am using KUbuntu 15.04.

I need to rename files in batch--the other questions I browsed don't exactly address my problem. The names of my files are generated non-deterministically, so I can't predict what they will be named. I do know that they will start with NORMAL and end with -lib*. I'd like to replace everything in between with some string X. For example,  |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.concordant |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.deletion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.divergent |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.inversion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.translocation |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.concordant |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.deletion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.divergent |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.insertion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.inversion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.translocation   So it will probably be of the form rename "s/something/X/", but I don't know what that something should be, as I don't know how to use regex.


Let, $f(x,y)=|xy|$, Show that $f$ is differentiable at $(0,0)$   I started with by trying to prove $\lim_{h\to 0,k\to 0}\dfrac{f(0+h,0+k)-f(0,0)}{hk}$ exists. Then, $\lim_{h\to 0,k\to 0}\dfrac{|hk|}{hk}=\lim_{h\to 0,k\to 0}\dfrac{|h||k|}{hk}=\lim_{h\to 0}\dfrac{|h|}{h}\lim_{k\to 0}\dfrac{|k|}{k}$  Can I do this? Because, if I do this, $f$ may not be differentiable, but I have to show the converse. Thanks, for any help!

Is $f(x,y) = |xy|$ differentiable in $(0,0)$? I have no idea how to approach this problem.


Any ideas why this label is not showing up transparent? I believe I have all my nodes correct. These nodes are so complex someone should start a online Blender NODES academy...

I'm trying to overlay an image on top of a shader to create the effect of having printed onto metal like so:    I'm using an Anisotropic shader for the underlying brushed metal and have UV Mapped a PNG (with alpha channel) for the printed portions. I've tried using a Mix and an Add shader to combine the two but it doesn't give the effect I'm after. Instead, it looks like the metal was stained with a translucent film, rather than over-printed with an opaque ink/paint.  Here's my shader so far:   How can I achieve this over-printed effect?


function wrapValue(n) {   var localVariable = n;   return function() { return localVariable; }; }  var wrap1 = wrapValue(1); var wrap2 = wrapValue(2); console.log(wrap1()); // → 1 console.log(wrap2()); // → 2     In this example how is it allowed to access localVariable, which is local to wrapValue() function, from the global environment? The book, included this example, stated the reason as follows: "multiple instances of the variable can be alive at the same time". But I didn't understand.

I asked a question about Currying and closures were mentioned. What is a closure? How does it relate to currying?


Many words have several meanings and some even have two converse meanings. Two examples of such words are amateur and literally as illustrated by the following:   She is an art amateur. This is amateur work.   and   Don't take my remarks literally. He literally lost his mind for a few seconds.   Which other words from the common vocabulary do display this feature? (Less common examples are also welcome!) Does this feature have a name?

I am looking for a list of all English words that are their own antonyms. Off the top of my head, I can only think of "either", "fast", "to dust" and "to lease", but there must be dozens more. Can you provide a link to a comprehensive list, if such exists?  Also, what are such words most commonly called? I like the term "Janus word" I once heard, but is that widely understood?  Edited by popular demand to make it absolutely clear that this is not a community wiki poll.


Is there any way to shorten this copy-paste code? The 26 words that follows contain actually just 4 piece of information:  The visibility, the type, the name of the property and the behavior (which is the same for every property all over the world).  private PrinterInfo _currentConfiguration;  public PrinterInfo CurrentConfiguration {     get { return _currentConfiguration; }     set     {         if (_currentConfiguration != value)         {             _currentConfiguration = value;             OnPropertyChanged("CurrentConfiguration");         }     } }

Is there any way to automatically get notified of property changes in a class without having to write OnPropertyChanged in every setter?  (I have hundreds of properties that I want to know if they have changed).    Anton suggests .  I've actually used the "Castle" library for something similar in the past, and while it does reduce the amount of code I've had to write, it added around 30 seconds to my program startup time (ymmv) - because it's a runtime solution.  I'm wondering if there is a compile time solution, maybe using compile-time attributes...    Slashene and TcKs give suggestions which generates repetitive code - unfortunately, not all my properties are a simple case of m_Value = value - lots of them have custom code in the setters, so cookie-cutter code from snippets and xml aren't really feasible for my project either.


I am new to Python, so I apologize if this question is naive.  I consider a list elements = [3, 6, 7]. I would like to write a series of instructions which transform the list l = [[], [], []] into l = [[3], [6], [7]]. If I write the (naive) code below :  pos = 0 for i in range(3):     l[i].append(elements[i]) print(l)   then the output is not as I expected. Indeed, the list l becomes l=[[3, 6, 7], [3, 6, 7], [3, 6, 7]]. My reasoning was the following one : when i=0 only l[0] (the first element of l) should be modified. However, it is not the case. After the first run in the loop, the list l is : l = [[3], [3], [3]]. Where am I wrong ?  Of course, this could be easily solved using list comprehension:  l = [[elements[j]] for j in range(3)]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I recently installed Ubuntu 16.04 in my machine, however when trying to perform sudo apt-get update I got the following message:  W: The repository 'http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease  Connection timed out after 120000 milliseconds E: Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found W: Some index files failed to download. They have been ignored, or old ones used instead.   After some research I thought it would be useful to change my download mirror, however after selecting the recommended mirror and trying to update I get the error message:     Failed to download repository information.Check your Internet connection.   with the following details:    W:The repository 'http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial Release' does not have a Release file.  W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details.,  W:Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease  Connection timed out after 120000 milliseconds E:Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found  W:Some index files failed to download. They have been ignored, or old ones used instead.   Any idea how I might solve this problem? Thanks in advance.

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


$F(z)$ = $u(z)$ + $iv(z)$ where $F(z)$ is non-constant and entire. Show that $u(z)$ is not bounded.   My intuition is that Liouville's theorem should help or I should make $F(z)$ equal a non-constant function then go from there.  Any pointers would be appreciated, thanks!

Greets  This is exercise 15.d chapter 3 of Stein & Shakarchi's "Complex Analysis", they hint: "Use the maximum modulus principle", but I didn't see how to do the exercise with this hint rightaway, instead I knew how to do it with the Casorati-Weiestrass Theorem, here is my answer:  Define $g(z)=f(1/z)$ for $z\neq{0}$,then by the hypothesis we must have that for any $\epsilon>0$ $g(D_{\epsilon>0}(0)-\{0\})$ is not dense in $\mathbb{C}$, then the singularity at $0$ of $g$ is not essential, this implies $f$ must be a polynomial, but if $f$ is a non-constant polynomial, it is easy to see that its real part must be unbounded, so $f$ must be constant.  I would like to know an answer with the the maximum modulus principle.  Thanks


I want to subtract n days from a file's timestamp, but it doesn't seem to be working. I have read , and I think I'm close.  This is an excerpt from my code:  import os, time from datetime import datetime, timedelta  def processData1( pageFile ):     f = open(pageFile, "r")     page = f.read()     filedate = time.strftime('%m/%d/%Y', time.gmtime(os.path.getmtime(pageFile)))     print filedate     end_date = filedate - datetime.timedelta(days=10)     print end_date   Printing filedate works, so that date is read correctly from the files. It's the subtraction bit that doesn't seem to be working.  Desired output: If filedate is 06/11/2013, print end_date should yield 06/01/2013.

I have a Python  object. What is the best way to subtract one day?


I have Windows and Linux installed on SSD, and then, I have second HDD with data. There is no Windows installation on it, just NTFS partition with data (and second partition Lenovo Recovery, but that's all and I don't need it). When I try to open it in Linux, I get folowing error:  Error mounting /dev/sda2 at /media/adam/Data: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/adam/Data"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   But there couldn't be any hiberfile, as there is no Windows installation on this drive. I need to have read and also write permission on this drive. How could I do it? Another thing I noticed is that the partition has msftdata flag, but when I open gparted and choose "Manage flags" and remove it, it doesn't remove. How to mount the partition in write mode? Thanks.  EDIT: This is not duplicate of  as there are no Windows or hiberfile.

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I'm don't know from where to start in this problem. I have to prove that     $(a+b,a^2-ab+b^2)=1 \text{ or } 3$   knowing that $(a,b) = 1$.  I've tried using the method they taught us on class, so I've written that:     $d\ |\ a+b \Rightarrow d\ | a^2 + 2ab + b^2$  and $d\ |\ a^2-ab+b^2 $   $\Rightarrow d\ | \ 3ab$   But from here, I dont know where to go. Usually, I should be able to  find that d divides something in terms of a, and something in terms of b, and therefore, using that $(a:b)=1$ I would get the solution. But this is not the case. Any operation I've tried between the two terms, gives me an other term, but always in terms of a and b, and no a or b, so I'm not able to prove what I'm asked.  Any ideas?

Hint:  $a^2 -ab +b^2 = (a+b)^2 -3ab.$  I know we can say that there exists an $x,y$ such that $ax + by = 1$.  So in this case, $(a+b)x + ((a+b)^2 -3ab)y =1.$  I thought setting $x = (a+b)$ and $y = -1$ would help but that gives me $3ab =1.$  Any suggestions?


I have below operation. "result" always return null pointer exception. How to resolve this issue where if "anotherMap" contains null values, I want to return empty string. I do not want to modify newMap since that is dependent data.  I want handle null cases in the last operation below. import java.util.HashMap; import java.util.Map; import java.util.List; import java.util.ArrayList; import java.util.stream.Collectors;   public class Class1 {       public static void main(String []args){         Map<String, String> newMap = new HashMap<>();          List<String> keys = new ArrayList<>();         Map<String, String> anotherMap = new HashMap<>();          newMap.put("key1", "1");         newMap.put("key2", "2");         newMap.put("key3", "3");                  keys.add("key1");         keys.add("key4");         String value = newMap.get("key4");         anotherMap.put("key4", value);         Map<String,String> result = keys.stream()                 .collect(Collectors.toMap(key -> key, key -> anotherMap.getOrDefault(key, "")));         System.out.println(result);      } }  Stack Trace: Exception in thread "main" java.lang.NullPointerException     at java.util.HashMap.merge(HashMap.java:1224)     at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)     at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)     at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)     at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)     at Class1.main(Class1.java:23)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


$$\int \sqrt{cot\theta} d\theta$$ I tried to set $t=\sqrt{cot\theta},t^2=cot\theta$ and substitute into the original integration and get$$-\int\frac{2t^2}{1+t^4}dt$$, but then what can I do?

Find the integral  $$\int\!\sqrt{\cot x}\,dx $$ How can one solve this using substitution?  Can this be solved by complex methods?


I've got a HP probook 430 g4 with an 64x architecture. I deleted (accidentally) the OS that it had. I tried to install Ubuntu 20.04 Desktop with the “try Ubuntu” and something else way. The HDD was empty so I partitioned the disk into /boot (1Gb), / (10Gb), /home (970Gb), /var (12Gb) and swap area (2Gb). The installation goes well until the “running dpkg” part after “looking for other OS”. What could I do ? I've been four days doing what I read on internet and nothing works. Graphics: Intel graphics 620. I try with internet conection and without.

I want to partition my hard disk, but I don't have any other software running(like dual booted).  And I do not know how to do it. Can you send the instructions?