I was curious if anyone else had run into this or knows what could cause this.  So basically I have a scene and in the middle of the render some particles are created.  However, during the part with the particles, every other frame shows them at the base plane they exude from instead of where they should be.  So when it's finally rendered it looks like its flashing, going back between how it should function and being stuck to the plane. Any help is appreciated. Thanks guys! I'm using the Cycles render engine.

I have implemented two identical particle emitters back to back so that i get a looping animation depicting low-poly smoke. I use a blend texture to resize the particles as they go through their life. I baked all dynamics using the button in the cache section of the simulation and everything loops nicely in the viewport.  The problem is that, although everything shows up correctly in the viewport, the particle system behaves weirdly for the last 60 frames or so of the animation when rendered. The smoke particles spawn more quickly and go through the resizing procedure dictated by the texture super fast, leaving the space empty.    As you can see the cursor is at frame 280 in the screenshot and both solid and rendered view show the smoke particles. When I render the image though, the result is this:    I have tried following solutions without success: - Use Cycles instead of Eevee - Have the particles emit only in positive frame ranges as opposed to emitting from -300 to 300 - Following this tutorial for baking particles:  - restarting blender    .blend file with only the particle system:


I am currently working on a project and I've written something that will do for what I'm trying to do but isn't perfect. It currently takes in 2 objects and merges them letting the second override the first if there is a property name conflict.   The code looks like this.   function appendObject(start, obj) {     var newObject = start;      for (var propName in obj) {         if (typeof start[propName] === "object" && typeof obj[propName] === "object") {             for (var propName2 in obj[propName]) {                 newObject[propName][propName2] = obj[propName][propName2];             }         } else {             newObject[propName] = obj[propName];         }     }     return newObject;  }   This will go one layer deep. So if there is a flat object as a property it will still be able to handle it. But what if there is a more complex object as a property in this object? I have not been able to figure out a good way to handle any level of complexity.   Perhaps I'm missing something basic and there is an easier way to merge objects like this. The practical application here is we have a 'default' set of properties we need on the json and then some possible initial values and user inputted values.   Any ideas?

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


Consider a non-decreasing continuous function $f:[0,\infty)\longrightarrow[0,\infty)$ with $f(0)=0$ and subadditive, i.e., $$f(x+y)\leq f(x)+f(y)$$ for all $x$ and $y$ in $[0,\infty)$. I am interested in showing that $f$ is $a$-subhomogeneous for $1<a\in\mathbb{R}$, i.e., $$f(ax)\leq af(x)$$ for all $x$ in $[0,\infty)$. If $a<1$, $f(ax)\not\leq af(x)$. For, taking $f(x)=\log(1+x)$ and $a=0.5$, we see that $f(ax)=0.438254930931155$ and $af(x)=0.370968672364689$. For $a>1$, numerical comparison of known functions points to $a$-subhomogeneity. Here is a partial answer to my problem by @https://stackexchange.com/users/4311758/kavi-rama-murthy. Choose rational numbers $b,c≥1$ such that $b≤a≤c$. Then $f(ax)$ lies between $f(bx)$ and $f(cx)$. Since $f(bx)≤bf(x)→af(x)$ and $f(cx)≤cf(x)→af(x)$ as $b$ and $c→a$ we get $f(ax)≤af(x)$. Hence the inequality is true. But I have problem showing that the inequality hold for rational numbers $a>1$. Thanks for your suggestion and help in advance!

Given a function on a closed interval $f\colon I\subset \mathbb{R}\to \mathbb{R}$ with $$f(x+y) \leq f(x) + f(y).$$ Moreover, I know that $f$ is    monotonic increasing continuous on all points except countably many continuous from the right such that the limit from the left at each point exists. $f(nx) \leq nf(x)$ for all $n\in\mathbb{N}$.   Can I say more on this function? In particular, I would like to show that $f(\lambda x) \leq \lambda f(x)$ for all $\lambda \geq 1$ or at least for all rational $\lambda \geq 1$.


I was having an earlier R version (R3.6) on my Ubuntu 18.04LTS machine. I tried installing R v4.0, by removing the previous versions and PPA links in my source. list file. I had unsuccessful attempt on R4.0 installation and Now I am not even able to install my previous R3.6 version too. Here are the errors I received:  r-base : Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I tried fixing broken packages using various suggested commands, however, I am getting only these errors and upon checking R cache using the command: sudo apt-cache policy r-base. I got the following: r-base:   Installed: (none)   Candidate: 3.6.3-1bionic   Version table:      3.6.3-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.2-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.1-3bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.1-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.0-2bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.0-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.3-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.2-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.1-2bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.1-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.0-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.4.4-1ubuntu1 500         500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages         500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I've just installed Ubuntu 14.10 and configured US international keyboard with dead keys.  In every app, when I type the ' char followed by a, I get a nice á char.  But in sublime-text-3 I get ´a...  And also the compose key is not working either...  Is there anybody else having the same problem?

I have quite a few custom compose key sequences.  I know I can get them working with an ~/.XCompose and switching the input method to xim.  However, Sublime Text 2 doesn't accept any compose key sequences when I'm using xim.  It does accept them when I'm using the default input method.  I think I reported this bug for Sublime Text 2 a while ago.  Using the default input method, I added the contents of my ~/.XCompose to /usr/share/X11/locale/en_US.UTF-8/Compose but this did not change anything.  Is there any way I can get the compose key sequences in my ~/.XCompose to work without relying on xim?


In  post there is a faulty derivation of:  $$f''(x)=\lim_{h \to 0} \frac{f(x+2h)-2f(x+h)-f(x)}{h^2} \tag{1}$$  What I would like to do is derive it soundly. Although Taylor series and L'hopitals rule are great for conforming the limit, I don't think they are great for finding the formula from scratch.   I've always noted something about this limit and the other limits for the other derivatives. If we define $\Delta_h$ to map  $f(x) \to f(x+h)-f(x)$. Then it seems as though $\lim_{h \to 0} \frac{\Delta_h^n}{h^n}=\frac{d^n}{dx^n}$. My question is why, and does this provide any insight as to how we may derive $(1)$ from scratch?

The function $f$ is differentiable twice at x. Prove that:   $$\lim_{h\to0}\frac{f(x+h)-2f(x)+f(x-h)}{h^2}=f''(x)$$   Hint: use Peano's remainder (if $f:I\to\mathbb R$ is differentiable $n$ times on $a\in I$ then $R_k(x)=o(|x-a|^k), \ x\to a$).   I just don't see the connection here between the second derivative and the Taylor series which has to do with Peano's remainder...  The remainder is defined to be the difference between the function and polynomial but what does it has to do in this case ?


Why take the square of the difference between the label and the prediction? What is the advantage of ?

In the definition of standard deviation, why do we have to square the difference from the mean to get the mean (E) and take the square root back at the end? Can't we just simply take the absolute value of the difference instead and get the expected value (mean) of those, and wouldn't that also show the variation of the data? The number is going to be different from square method (the absolute-value method will be smaller), but it should still show the spread of data. Anybody know why we take this square approach as a standard?  The definition of standard deviation:  $\sigma = \sqrt{E\left[\left(X - \mu\right)^2\right]}.$   Can't we just take the absolute value instead and still be a good measurement?  $\sigma = E\left[|X - \mu|\right]$


I am writing a validation rule as follows : AND(NOT(ISBLANK(LookupField__c)), checkField__c )  The above works fine and have no issues, but when I change it to as follows : AND(NOT(ISNULL(LookupField__c)), checkField__c ) the validation fails.  I observed that when I having ISNULL, even if the lookup field has no value its evaluated to false, does in turn evaluating to TRUE due to NOT check. Not sure why this is happening and what is the difference in evaluation of same criteria with ISBLANK since that works fine.

I am just wondering what could be differences between ISBLANK and ISNULL. I found following link   But I think ISNULL works on text fields. What you guys think? Which one is to be used?


I've recently started trying to dabble in custom ROMs, or even just trying to boost an old phone with a newer version of Android, but there doesn't seem to be a conclusive place online to find out what ROMs are supported by what phones (and how to root any given phone), what ROMs are available out there in the world in general, it all seems a bit... messy!  So here's my example for my question: I have an , how can I find out what ROMs I might be able to install?

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


What are indeterminate forms? And how are some usual and unusual? I know that indeterminate forms can be the ratio of two functions where the functions have a zero limit tendency, but I do not fully understand the concept.

We can apply l’Hôpital’s Rule to the indeterminate quotients $ \dfrac{0}{0} $ and $ \dfrac{\infty}{\infty} $, but why can’t we directly apply it to the indeterminate difference $ \infty - \infty $ or to the indeterminate product $ 0 \cdot \infty $?  Furthermore, why can’t we call $ \infty + \infty $ and $ \infty \cdot \infty $ indeterminate forms?  I’m new to calculus, so please clear up my concepts if you can. Thanks!


I'm working on the Gaussian elimination being implemented on gf(2). I have successfully reduced my 286*286 matrix into rref. Now I need to find the null space of this(please tell me how to do this effectively as I'm going to hardcode this in java). It would be a great help is someone could give me the gist of finding basis and then solution of this. Also as a extra detail I'm doing all this as a part of my attempt to implement Quadratic Sieve in java.

The following text is written in my textbook and I don't really understand it:     If $A = (a_{ij}) \in$ Mat$(m x N, F)$ is a matrix in reduced row echelon form with $r$ nonzero rows and pivots in the columns numbered $j_1 < ... < j_r$, then the kernel ker$(A)$ is generated by the $n-r$ elements $ w_k = e_k - \sum\limits_{1 \le i \le r, j_i \le k} a_{ik}e_{j_i}$ for $k \in {1, \cdots , n} \ {j_1, \cdots, j_r}$, where $e_1, \cdots, e_n$ are the standard generators of $F^n$.    There are no computational examples and the notation is a bit overwhelming so I don't know how I can use it. Can somebody give an example of this in practice?


I have a table of number entries. Say, for each Product (rows) a number of purchases on each Date (columns).      Date Date     Product 150 200   Product 350 400     I'd like to turn this into one entry for each number on the 2D table. Example:            Product Date 200   Product Date 200   Product Date 350   Product Date 400     Is there a way to do this with formulas, without having to dive into a script to run each time I update the data?


I was practicing for my English test then I came across this question.     This is one of the best novels that have appeared this year.         that   that has   to have   No improvement      According to me the answer to this question should be "that has" in place of "that have" but the answer is No improvement.  So I am a little confused that why is it not ("that has") the right answer because we are talking about one singular book out of so many.  I get confused a lot of times at such questions.

In the sentence      It's one of the best films that has/have ever been made   What should the verb agreement be?


This question is directed more towards the hobbyist developer rather than professional game developers.  Quite frequently while developing a game I'll get bored staring at the same exact game scene after days or weeks of work (while new features only slowly creep in) that I find myself abandoning projects and starting new ones, never really finishing what I've started.    How do you prevent yourself from getting bored with a hobby or side project?  What tips/tricks/techniques do you use to keep yourself motivated to actually finish a project?

How can I successfully finish a hobby game project in my free time?  How do I motivate myself to keep it up and drive right through to the finish without losing interest or motivation along the way?


I'm a member of Code Review; we have a very (star-happy) chat room called . It's not uncommon to want to make a reply to a message on the starwall and start a conversation based off of that message.  There's no option to reply to something on the starwall by using the drop-down menu for each message; you only have the ability to create a permalink, flag, star/unstar or view history of the comment, so in order to reply to a comment currently you have to hover over the timestamp (which has a link to the original comment) and copy the original ID into chat by hand.  Could an item be added to the dropdown menu that allows you to quickly reply to that specific comment? All I would expect it to do is just populate the chat box with :messageId (where messageId is the Id of the message you're replying to).

I've run into this a few times; I'll rejoin chat after being away for a while and notice something interesting in the starred section.  I'd like to reply directly to the message but there's no reply button.  Currently, the only ways to explicitly reply to one of those messages are either:-   find the message by scrolling up and looking for it, then click the reply button or; copy and paste the permalink, deleting all the way up to the fragment identifier and adding the colon at the start.   Please add a reply link, even if it just goes in the popup menu it's an improvement.


I am looking for a way to make it so no one can edit a small area of space I select. Is there a way to do this?  I'd prefer not to use any mods, I'm looking for a solution using command blocks. Is this possible?  I am using a Singleplayer world, not a server

Is there a way to set an "Adventure Mode Boundary" in Minecraft?  I am trying to create this village where players can spawn in, and then set out to explore the world and build and do normal minecraft stuff. I don't want them to destroy this village, so I want them to be in adventure mode when they are in the village and then switch them to survival when they leave, and vice-versa. When they return to the village, they get switched back to adventure mode.  In other words, I want to set an "Adventure Mode Boundary" to protect buildings. I am working without mods. I am hoping there is an simple way using command blocks.


This is a problem from mathematical analysis.  It is clear that we only need to discuss the the problem when $x_1$, $x_2$ are located in $[a,b]$ and $[c,d]$ respectively.  I have tried mark $x_0$ in $[b,c]$ as I think this may help me use the definition of convex function.  (I am sorry that my English is poor, thank you very much)

How to prove the real value function $f$ is convex on $[a,d]$ if $f$ is convex on both $[a,c]$ and $[b,d]$? ($a<b<c<d$).    I try to show that: for arbitrary $x\in(a,b), z\in(c,d)$, and for all $y\in (x,z)$ the inequality   $\dfrac{f(y)-f(x)}{y-x}\leqslant \dfrac{f(z)-f(y)}{z-y}$  holds. Then $f$ is convex on $[a,d]$.   But it seems to need some inequality tricks, I can't finish it.


Edit: The solution in  worked for me.  sudo apt install backport-iwlwifi-dkms     I am aware there are lots of other people complaining about this, so there must be something. I booted my Lenovo Yoga 900 with an Ubuntu 19.10 Live USB and I could connect my Bluetooth mouse without any problem. I installed the OS and Bluetooth worked no more. The switch ON/OFF moved, but no device discovery appeared to be running.  See the attached images. There is the Intel device firmware, and some commands to show additional info.

After updating to Ubuntu 19.10:    Clicking Continue using.. get resetted back to Do not use...  Tried to download drivers from the Microsoft website and put them into lib/firmware.   The WiFi works though.  What is the correct work-around to make sure correct driver is used?    rfkill list all 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   lspci -nnk | grep 0280 -A2 02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)     Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5110]     Kernel driver in use: iwlwifi   ls -al /lib/firmware | grep 7265 -rw-r--r--  1 root root  736844 Mar 30  2017 iwlwifi-7265-10.ucode -rw-r--r--  1 root root  880604 Mar 30  2017 iwlwifi-7265-12.ucode -rw-r--r--  1 root root  885224 Mar 30  2017 iwlwifi-7265-13.ucode -rw-r--r--  1 root root 1180224 Oct 17 21:10 iwlwifi-7265-14.ucode -rw-r--r--  1 root root 1180356 Mar 30  2017 iwlwifi-7265-16.ucode -rw-r--r--  1 root root 1180412 Oct  8 21:54 iwlwifi-7265-17.ucode -rw-r--r--  1 root root  690452 Mar 30  2017 iwlwifi-7265-8.ucode -rw-r--r--  1 root root  697828 Mar 30  2017 iwlwifi-7265-9.ucode lrwxrwxrwx  1 root root      21 Nov 17  2017 iwlwifi-7265D-10.ucode -> iwlwifi-7265-10.ucode -rw-r--r--  1 root root 1002800 Mar 30  2017 iwlwifi-7265D-12.ucode -rw-r--r--  1 root root 1008692 Mar 30  2017 iwlwifi-7265D-13.ucode -rw-r--r--  1 root root 1384256 Oct 17 21:10 iwlwifi-7265D-14.ucode -rw-r--r--  1 root root 1384500 Mar 30  2017 iwlwifi-7265D-16.ucode -rw-r--r--  1 root root 1383604 Nov 17  2017 iwlwifi-7265D-17.ucode -rw-r--r--  1 root root 1385368 Nov 17  2017 iwlwifi-7265D-21.ucode -rw-r--r--  1 root root 1028376 Apr 24  2018 iwlwifi-7265D-22.ucode -rw-r--r--  1 root root 1032740 Dec  5  2017 iwlwifi-7265D-27.ucode -rw-r--r--  1 root root 1036668 Oct  8 21:54 iwlwifi-7265D-29.ucode


Find the principal period of $$\sin\frac{3x}{4}+\cos\frac{2x}{5}$$    It was easy to find principle when single trigonometric function is given, but i don't know how to find principal period of sum of trigonometric function.  I have tried using . It didn't helped because it seems complicated to find the period using graph of this type of function.  My book has given solution, they have taken out period of each function and then assuming something m and n, seems too complicated because i think we can directly find the period, without assuming.

I want to know if there exists a general method to find the period of the sum of two periodic trigonometric function. Example:     $$f(x)=\cos(x/3)+\cos(x/4).$$


I am stuck with a problem where I have to get the contents (files and sub-directories) of a password protected folder from Network shared location. Given, I have the password to access the folder and the file path to get to that location. How can I implement this?  Suppose, this is the shared network- \Server\Sharedfiles\PasswordProtectedFolder I want to get the list of contents in it.

When connecting to a network share for which the current user (in my case, a network enabled service user) has no rights, name and password have to be provided.  I know how to do this with Win32 functions (the WNet* family from mpr.dll), but would like to do it with .Net (2.0) functionality.  What options are available?  Maybe some more information helps:   The use case is a windows service, not an Asp.Net application. The service is running under an account which has no rights on the share. The user account needed for the share is not known on the client side. Client and server are not members of the same domain.


I have built a script tool in ArcGIS Pro and I would like to set up one parameter as a drop down menu (the options in the drop down menu should be all the attribute values of one of the map layers).   I can't seem to find the right 'Data type' to pick up. If I choose 'Layer' as 'Data Type' and I run the tool I get a drop down menu with all map layers. I'm looking for something similar but specific to a layer field. If I choose 'field' in 'Data Type' and I run the tool absolutely nothing happens. What is this 'field' referring to? How could I achieve what I'm looking for?

I have a folder and it contains two feature classes, e.g., a.shp and b.shp. The script tool created has two parameters. The first one is the model location, and the second one needs a feature class (a.shp), as shown in the below picture.  What I really want is every time when I set up the model location for the first input, the second input will automatically find the a.shp as the input rather than the user needs to choose a.shp from that folder. I noticed that the dependency is probably what I really need, but there is no code example. Any suggestions?   I am using ArcGIS 10.3.1 Advanced License.


I'm using p{} format to adjust the width of a table.   I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the text width (1 > 0.1 + 0.2*4), but the result is not what I expect.     What might be wrong? Why the total width of the table is wider than text width?  This is the code.   \documentclass[oneside, openany, 10pt]{article} %\documentclass[article, oneside, openany, 10pt]{memoir} \newcommand{\HRule}{\rule{1.0\textwidth}{0.5mm}} \newcommand{\Hrule}{\rule{1.0\textwidth}{0.3mm}}  \makeatletter% since there's an at-sign (@) in the command name \renewcommand{\@maketitle}{%   \parindent=0pt% don't indent paragraphs in the title block   \centering   {\Large \bfseries\textsc{\@title}}   \HRule\par%   \textit{\@author \hfill \@date}   \par } \author{prosseek} \title{test}  \begin{document}  \maketitle  \begin{table}[hbtp] \footnotesize \centering \begin{tabular}{p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}}   \hline & Function & Pre conditions & Post conditions & Constraints \\ \hline\hline R1 & An election official is assigned for each precinct & Precincts and elections officials are created & Unique one on one mapping from an election official to precinct & Before voting starts\\  \hline \end{tabular} \caption{Requirements before voting starts} \label{eoRequirements} \end{table}  \end{document}

I have the following table:  \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l }   {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\\ Class that is large and complex & WMC is high\\ Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\\ \end{tabular} }; \draw [rounded corners=.5em] (table.north west) rectangle (table.south east); \end{tikzpicture} \caption{God class symptoms} \label{tbl:god_class} \end{table}   Now I want to force the width of the table to be the same as the \textwidth, either by linewrapping of table text or by scaling. How can I achieve that?


I want to develop an application for my Ubuntu desktop but i am not able to find anything like android studio to develop my own application. Please do suggest me how i can make a desktop application on my own desktop.

I want to write applications for Ubuntu. I do not know much about programming but I want develop for Ubuntu. I am trying to learn Python right now. What do you think is the best way to develop apps for Ubuntu? Can you point me to some resources that can help me get started with developing for Ubuntu?  Related .


Is it correct to say "one such family are..." as opposed to "one such family is..." in some circumstances?  Say, for instance, as used in  on gene families:     [...] One such family are the genes for human haemoglobin subunits; [...]   The problem occurs when the family is a collection of things. It sounds weird if you say "One such family is the genes for human haemoglobin subunits" and saying "One such family is the family of genes for human haemoglobin subunits" is too wordy.  Does the problem make sense?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


So I'm modelling this sardine can with a logo on it... I have created my own logo as a png file and I want to apply it on a red metallic material... I have already tried applying it on the subsurface but it doesn't make much of a change

I am trying to create a low poly face with a face from a .png file. The issue is I already have material placed for hair and skin, as shown in the picture below.   I have created a .png file with a face which I would like to overlay over the skin material on the front of the head.    All examples I searched so far assume I also want the color of the material from the .png texture.  Update:  I added UVMapping, changed view to texture, made sure one face is on the eye but nothing is displayed..... see image... I don't know what is going on.


Is there a C# equivalent of JS ES6's 'const'  for declaring local variables that don't change value?      I know there is a 'const' keyword in C# but this isn't the same thing, as the value of this can only be set at compile time, not runtime.     I have found the ES6 const useful for making JS easier to read.  Like seeing something declared as 'const' tells me that this is something that doesn't change. Likewise something declared as 'let'  tells me that this is expected to change.

Having a friendly debate with a co-worker about this.  We have some thoughts about this, but wondering what the SO crowd thinks about this?


What is the proper location for user defined environment variables in Ubuntu?  My first guess would be ~/.profile. Ubuntu already creates that file which conditionally sources ~/.bashrc and does some other things. That can't be it.  My second guess would be ~/.bashrc. Ubuntu also creates that and it contains even more than ~/.profile.

What are correct places for:   Global environment variables meant to affect all users? User-specific environment variables?


My app has a UITableViewController. I want to show an image in the first section and add some other cells in another section. Like this:  ------- |     |   <--- image |     | -------  blah blah blah   <--- some other cells -------------- blah blah blah -------------- blah blah blah   And I thought it is as easy as this:  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {     if indexPath.section == irrelevant {         let cell = UITableViewCell()         let image = UIImageView(image: someImage, highlightedImage: nil)         cell.contentView.addSubview(image)         return cell     }     // Code for the other cells, irrelevant }   But it came out like this:    As you can see, the image is out of the cell! What I want to do is to stretch the cell so that the image is actually "inside" the cell. I tried this:  cell.sizeToFit()   and this:  cell.frame = CGRectMake(cell.frame.origin.x, cell.frame.origin.y, cell.frame.width, image.frame.height + 15)   but both didn't work (The result stays the same)!  Is there a way to stretch it? If there isn't, how can I display an image in a UITableViewController?  Note: Don't tell me to set the imageView property of the cell. It's too small!

I am using a custom UITableViewCell which has some labels, buttons and image views to be displayed. There is one label in the cell whose text is a NSString object and the length of string could be variable. Due to this, I cannot set a constant height to the cell in the UITableView's heightForCellAtIndex method. The cell's height depends on the label's height which can be determined using the NSString's sizeWithFont method. I tried using it, but it looks like I'm going wrong somewhere. How can it be fixed?  Here is the code used for initializing the cell.  if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {     self.selectionStyle = UITableViewCellSelectionStyleNone;     UIImage *image = [UIImage imageNamed:@"dot.png"];     imageView = [[UIImageView alloc] initWithImage:image];     imageView.frame = CGRectMake(45.0,10.0,10,10);      headingTxt = [[UILabel alloc] initWithFrame:   CGRectMake(60.0,0.0,150.0,post_hdg_ht)];     [headingTxt setContentMode: UIViewContentModeCenter];     headingTxt.text = postData.user_f_name;     headingTxt.font = [UIFont boldSystemFontOfSize:13];     headingTxt.textAlignment = UITextAlignmentLeft;     headingTxt.textColor = [UIColor blackColor];      dateTxt = [[UILabel alloc] initWithFrame:CGRectMake(55.0,23.0,150.0,post_date_ht)];     dateTxt.text = postData.created_dtm;     dateTxt.font = [UIFont italicSystemFontOfSize:11];     dateTxt.textAlignment = UITextAlignmentLeft;     dateTxt.textColor = [UIColor grayColor];      NSString * text1 = postData.post_body;     NSLog(@"text length = %d",[text1 length]);     CGRect bounds = [UIScreen mainScreen].bounds;     CGFloat tableViewWidth;     CGFloat width = 0;     tableViewWidth = bounds.size.width/2;     width = tableViewWidth - 40; //fudge factor     //CGSize textSize = {width, 20000.0f}; //width and height of text area     CGSize textSize = {245.0, 20000.0f}; //width and height of text area     CGSize size1 = [text1 sizeWithFont:[UIFont systemFontOfSize:11.0f]                         constrainedToSize:textSize lineBreakMode:UILineBreakModeWordWrap];      CGFloat ht = MAX(size1.height, 28);     textView = [[UILabel alloc] initWithFrame:CGRectMake(55.0,42.0,245.0,ht)];     textView.text = postData.post_body;     textView.font = [UIFont systemFontOfSize:11];     textView.textAlignment = UITextAlignmentLeft;     textView.textColor = [UIColor blackColor];     textView.lineBreakMode = UILineBreakModeWordWrap;     textView.numberOfLines = 3;     textView.autoresizesSubviews = YES;      [self.contentView addSubview:imageView];     [self.contentView addSubview:textView];     [self.contentView addSubview:webView];     [self.contentView addSubview:dateTxt];     [self.contentView addSubview:headingTxt];     [self.contentView sizeToFit];      [imageView release];     [textView release];     [webView release];     [dateTxt release];     [headingTxt release]; }   This is the label whose height and width are going wrong:  textView = [[UILabel alloc] initWithFrame:CGRectMake(55.0,42.0,245.0,ht)];


Now that Windows 10 has the Windows Subsystem for Linux is it possible to connect to it remotely via SSH?  With the Bash shell up and running I tried connecting Putty (running on the same Machine) to localhost but the connection was refused.  Has anyone gotten this to work?

I have Windows 10 Anniversary Edition with "Bash on Ubuntu on Windows" installed and working. I'd like to be able to SSH into this Ubuntu instance, but although I have openssh-server installed and configured (and listening on port 2200), when I try to ssh to "localhost:2200", it tells me "Server unexpectedly closed network connection".  Has anyone been able to successfully accomplish this?


I'm would like to fetch some information(price, address, etc.) from this website:    using importxml function. I'm getting a message "Imported Content Empty" instead the value. Example: =importxml("https://www.realtor.ca/on/barrie/real-estate","//*[@id='SEOCardList']/ul/li[1]/div/a/div/div[2]/div[1]/div[2]") The solutions suggests in the other threads are not working for me, or maybe I missed other solutions. Any help will be appreciated.

Google Sheets has several import functions   IMPORTDATA IMPORTFEED IMPORTHTML IMPORTXML   Sometimes the above functions returns errors like #N/A Imported content is empty and would like to be sure that there isn't a problem with the resource content to be imported.  How do I know if these functions are able to get the content that I looking to import?  I know that there also exist IMPORTRANGE but that function only is able to import content from Google Sheets spreadsheets


I accidentally made a directory "~/" under a subdirectory in my home directory. How to safely remove this directory without affecting my home directory. rm -r ~ obviously won't work... Thanks!

I don't remember exactly how this directory got created. It's name is ~, the alternative we all use for home diretory. I also see a sticky bit attached with this directory. How shall I delete it? I fear running a normal rmdir would delete all the files from the home directory recursively. Here are the details :  mtk4@laptop:~/temp$ ls -l total 4 drwxrwxr-t 2 mtk4 mtk4 4096 Oct 17 2011 ~   How shall I proceed?  Another question : What does the total number specify on the first line of output of ls -l ? '4' in this case. There is just 1 directory as shown(other than . and ..).   I am using ubuntu 12.04.  Also asked same question on , as it seems to be relavant on both sites.


Stack Exchange successfully expanded beyond programming questions. It preserved high standards of discussion even in opinionated and ideological topics, such as politics and economics. There's a great community behind these achievements.  I'm sure this great community not only asks and answers questions, but also read news. And these news must be more reliable and objective that elsewhere. Just for the same reasons why questions and answers on Stack Exchange are more reliable and objective.  But there's no place on Stack Exchange to share these news. You can, of course, submit links elsewhere, but those places lack the culture of Stack Exchange. So, it doesn't work well.  Should Stack Exchange have its own news submission subsites, in addition to topical Q&A subsites? Something like news.stats.stackexchange.com for stats.SE, along with meta.stats.stackexchange.com and chat.stackexchange.com?  Technically, submission, commenting, and voting look exactly the same in the news submission process, as they do in Q&A. But news naturally require a separate listing.  And yes, by "news" I mean any link you'd like to share. Not only the recent stuff, but older publications as well.  Why not chat or blogs  After being sent to a duplicate  (which I don't consider as such because it suggests discussing news in the same listings with questions—I don't support that), I'd clarify a bit.  So, yes, there're tricks to add news right now (among suggested here: chats, blogs, masking your news as questions), but they are inefficient ways to manage news. From a news submission website, you'd expect two things: (1) inflow of good links, (2) voting and ranking on these links. Chats, blogs, and Q&A don't meet these requirements.  As an example, Stack Exchange is successful not because it forced users to use tricks on good old message boards, which don't suit Q&A needs, but because it designed an efficient way to manage Q&As. Apparently, this design is not far from an optimal design of a news submission service.  Objections like "I wouldn't use such a service" are fine here, but my suggestion is not about finding broken ways to submit links to Stack Exchange.

Can we discuss recent developments in the world of IT on Super User, recent programming news on Stack Overflow, etc.?  I can see reasons why this would be great. We have great informed communities and discussions would be in-depth and insightful. I think people would learn quite a lot, and the quality would be better than the usual found on forums.  On the other hand, we are at Q&A sites, and even with community wiki I imagine this could cause some issues.


Let $\mathbb{A}$ denote the field of Algebraic Numbers: the field of all complex numbers that are algebraic over $\mathbb{Q}$. Assuming that every polynomial over $\mathbb{C}$ has a $0$ in $\mathbb{C}$ how would you go about proving that every polynomial over $\mathbb{A}$ has a $0$ in $\mathbb{A}$? I've tried contradiction but all that has lead me to is concluding that the $0$ of some $p(x)\in \mathbb{A}[x]$, say $\alpha$, is transcendental over $\mathbb{Q}$, which doesn't help much. I'd appreciate a hint as where to start the proof.

I read that if $F$ is the field of algebraic numbers over $\mathbb{Q}$, then every polynomial in $F[x]$ splits over $F$. That's awesome! Nevertheless, I don't fully understand why it is true. Can you throw some ideas about why this is true?


I'm wondering if I've stumbled on a bug here.  I noticed recently that I'd achieved the silver badge on "concurrency" on SO.  Yay to me.        There are 3 other guys that have done so -- of course Jon is one.  So then I wondered who else is close to their silver for this category and so I go to the top-users page:        I was surprise to see Don Stewart above me at 450 points and yet has not gotten the silver badge for concurrency as far as I can tell.  It's not on his user page or in the concurrency badge page.  Is this a bug or am I not understanding how the badge is calculated?  As always, thanks for SO.  Always a great resource.

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


I'm trying to simplify a calculation by making a summation an algebraic expression:  $$ \sum_{i=1}^{n} a^i $$  I have no idea how to do this, since when I expand the sum's first few terms it's difficult to find aw simple expression for it, that doesn't expand with $n$.  Any help is appreciated.

This may be a simple question, but I was slightly confused.  I was looking at the second line $S_n(x)=1-x^{n+1}/(1-x)$.  I was confused how they derived this.  I know the infinite sum of a geometric series is $1/(1-x)$.  I just can't figure out how the partial sums, $S_n(x)$, have $1-x^{n+1}$ on the numerator.  How was this derived?  Thank you.     Example 5.20.   The geometric series   $$     \sum_{n=0}^\infty x^n   = 1 + x + x^2 + x^3 + \dotsb $$   has partial sums   $$     S_n(x)   = \sum_{k=0}^n x^k   = \frac{1 - x^{n+1}}{1 - x} \cdotp $$   Thus, $S_n(x) \to 1/(1-x)$ as $n \to \infty$ if $|x| < 1$ and diverges if $|x| \geq 1$, meaning that   $$     \sum_{n=0}^\infty x^n   = \frac{1}{1-x}   \qquad   \text{pointwise on $(-1,1)$}. $$   (Original image .)


As much as I know about Photoshop, we can change color mode (image->color mode-> cmyk). And cmyk is good for printing.So can I use .PSD file format for good quality printing purpose. Another question is that why CMYK is prefered for printing and rgb

Any of you who have at least little experience with graphic design software, photography or professional printing, must have -almost undoubtedly- have gone through this: 'the struggle' of RGB and CMYK colour spaces.  Now, there are many questions regarding matters of 'which should I choose', 'what is what' and converting problems, but that's not really what I'm after here.  As a graphic designer with only a couple of years of experience, I still have this struggle from time, and find the whole CMYK/RGB choosing/converting/saving situation quite confusing, to say the least. I do know that RGB is meant for digital end purposes, and CMYK is suitable for printing.  I have always been wondering about the neccesity of this whole thing. So, my question is: why are there these two colour profiles, instead of just having one?   Wouldn't it be a lot easier if printers or software could convert any RGB file to a CMYK printing document instead? I'm pretty sure it does already exist, by the way, because printing an RGB file sometimes simply prints the right colours for me. Alas, not always (doesn't seem to be related to the printer of software I print from).    I have gone trough some RGB vs. CMYK-related questions and found this, a.o., (), an answer of user DKuntz2 (thanks DKuntz2):     RGB is a light-based theory. All colors begin with black "darkness",   to which different color "lights" are added to produce visible colors.   RGB "maxes" at white, which is the equivalent of having all "lights"   on at full brightness (red, green, blue).      CMYK is a color-based theory. All colors start with white "paper", to   which different color "inks" are added to produce output colors. CMYK   "maxes" at black, at which point all "inks" are applied at 100% (cyan,   magenta, yellow, black).   Not sure if this is entirely right, though, because some people disagreed with DKuntz2:     I disagree. With RGB you start with black - the absence of light; with   CMYK you start with white paper.   – e100  Although this does clarify the differences fairly well, I still don't see the point of the two colour profiles(/spaces)    Side question: What happens when you work in an RGB document in photoshop, then press ctrl+y? Photoshop says the document is RGB/8/CMYK, but it can't be both. Right?  EDIT:  Big thanks for the answers, the (current) three below are very informative and interesting. I understand the whole thing a bit better, although it's all very complicated and in-depth to me. Especially when I read about terms like colour models, colour profiles, colour spaces, colour spectra and gamut all one after another.  As much as I would like to accept an answer as the desired one, I feel that my question in the core isn't fully answered yet. What I would really like to emphasize is what I asked about earlier: Wouldn't it be a lot easier if printers or software could convert any RGB file to a CMYK printing document instead?. As Alan Gilbertson explained, the reason is - if I understand correctly - basically a 'lost-in-translation' thing that makes the conversion not 100% accurate, and the colours to possibly be a bit distorted.  However, I still don't see how the solution cannot be an automated conversion done by a printer. Should be possible with modern technology; if you can convert RGB to CMYK in Photoshop, why can't a printer do the exact same for you? As was also said in the answers, the slightest differences in colours and colour spaces, can not be seen by the human eye. And that's what it all comes down to: what we want to see. Be it on a screen or on a sheet of paper.  The fact that this question has three very long answers, or even moreso the fact that there are so many questions about these two colour models (I now know the right term, yay) kind of proves that this is way more complicated than it should be.


I'm looking for a rigorous definition of the category defined (by handwaving) as such:   objects are "logical propositions" (first order formulas?), morphisms are "logical deductions" between them (inference rules?), composition is just concatenation of deductions (so I would say in general a morphism is a proof?).    Is it there some issue regarding the size of the objects collection? Can we speak of the "class" of all formulas about e.g. sets?

I am wondering if there is a standard definition for a category with objects as first order logical (FOL) expressions e.g. $\neg x \vee y$. It seems to me that these logical expressions would be part of a concrete category as they can be mapped (forgetfully) to sets, and as many concrete categories (groups etc.) have homomorphisms as morphisms that perhaps homomorphisms are the morphisms in this FOL category.  I am having difficulties visualizing what these homomorphisms would look like - perhaps just some operation $ (\circ,\bullet) $ such that   $f((x \wedge y) \vee z) \rightarrow (f(x) \bullet f(y)) \circ f(z)$ where $(\vee,\wedge) \rightarrow (\circ,\bullet)$  ?  Thanks,  Brian


Let $E$ be a normed space and $u,v \in E$ so that   $\|u+v\|=\|u\|+\|v\|$. Prove that  $\forall s,t \geqslant 0$ we have   that $\|su+tv\|=s\|u\|+t\|v\|$   Note: This is homework, so I'm looking for hint(s) only.  (some of) My attempts:  The trivial cases:   $u =0$ or $v = 0$. $\exists \lambda > 0$ so that $u=\lambda v$.   So we can assume that neither of those is true here.  It's easy to see that it's equivalent to proving that $\forall \lambda \geqslant 0$ we have that $\|u+\lambda v\|=\|u\|+\lambda \|v\|$, because if $s > 0$: $$s\|u+\lambda v\|=\|su+s\lambda\|=s\|u\|+s\lambda \|vu\|$$ So we can pick $\lambda=\frac{t}{s}$.   I tried to take the derivative of $\lambda \mapsto \|u+\lambda v\|$, but I could only prove that $$\left|\frac{\|u+(\lambda + h)v\|-\|u+\lambda v\|}{h}\right|\leqslant \frac{\|hv\|}{|h|}=\|v\|$$ But it's not enough to conclude that it's equals to $\|v\||$ in the limit $h \to 0$. Another idea was to assume that $\exists \alpha > 0$ so that $\|u+\alpha v\| < \|u\| + \alpha \|vu\|$ and prove that $\|u+v\| \neq \|u\|+\|vu\|$, but it was not successful. I was thinking about proving it for $\lambda \in \mathbb{Q}_+$ and use some kind of density argument, but it seems to be as hard as the $\mathbb{R}_+$ case.

If a norm on a vector space is given by an inner product then we have $\lVert x + y\rVert = \lVert x \rVert + \lVert y \rVert$ only when $x=\lambda y$ for some constant $\lambda$ (this follows from the Cauchy-Schwarz inequality). This does not hold for general (unitary invariant) norms. E.g. when considering generalised Ky Fan norms: $$ \lVert x\rVert_s = \sum_i s_i \lvert x\rvert_i^\downarrow$$ where $s_i\geq 0$ and $\lvert x\rvert^\downarrow$ is $\lvert x\rvert$ rearranged with the components from biggest to smallest. So for example the operator (sup) norm has $s_1 = 1$ and $s_i=0$ for $i>1$, while the trace norm has $s_i=1$ for all $i$. For these norms it is in general possible to find $x$ and $y$ so that the norm is additive for these vectors, while $x$ and $y$ are not multiples of each other.  Now my question is the following. Given a unitarily invariant norm and vectors $x$ and $y$ such that $\lVert x + y\rVert = \lVert x\rVert + \lVert y \rVert$, can we then conclude that $\lVert tx + (1-t)y\rVert = t\lVert x\rVert + (1-t)\lVert y \rVert$ for $0\leq t \leq 1$?   This is true for these generalised Ky Fan norms and for all norms that come from inner products. It is also true for all $p$-norms as this additivity still only holds for $x$ and $y$ that are multiples of each other (even though $p$-norms don't come from an inner product).  My intuition behind this is that this additivity property (when $x$ and $y$ aren't multiples of each other) forces the norm to be "linear" in a certain way, such that the norm has to be very similar to a generalised Ky Fan norm. So as a bonus question: If there are $x$ and $y$ that aren't multiples of each other, such that the norm is additive for these $x$ and $y$, show that the norm is a generalised Ky Fan norm. Note that this can only be true when we assume the norm to be unitary invariant since otherwise we can construct a counter-example of this (take $(X_1,\lVert\cdot\rVert_1)\oplus (X_2,\lVert\cdot\rvert_2)$ with the norm $\sup\{\lVert\cdot\rVert_1,\lVert\cdot\rVert_2\}$ where $\lVert\cdot\rVert_1$ is a Ky Fan norm and $\lVert\cdot\rVert_2$ is some other norm).


I firstly think c++ compiler like g++ generates different functions or classes for different templates in compiling stage, But when we use a lib, lib binary has been made, it has been a fixed binary, just for link, why template still works?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I'm holding a B1/B2 visa. My last visit to the USA was 3 months ago and I have stayed in the US for 1 and a half months. That means I visited the US in May and stayed until end of June. Then am I allowed to visit the US again in October? This time I'm only planning to stay for a week.   But I have planed to revisit next year in January and May. All these visits will be for a week or one and a half weeks.  Is this allowed with a B1/B2 visa? Is there a particular time period that I need to stay from my last visit to next visit?

I'm Canadian, entering the USA for the requisite maximum of 6 months. How soon can I re-enter the USA after crossing back into Canada?


How to add Word CHAPTER # for each chapter name in toc (for .sty file)  This code from .sty file    \renewcommand{\@makechapterhead}[1]{{     \setlength{\topmargin}{2in}   % really 1.5in, added by bph                                     % to meet OAP standards     \normalfont\normalsize\bfseries  %the size of the font of the headers   of the chapter     \begin{center}     \etchapterheadstyle{\@chapapp{ \thechapter}}  %  CHAPTER 1 or APPENDIX       \etchapterheadstyle{#1}                       %     TITLE OF CHAPTER     \end{center}     \setlength{\topmargin}{1.5in}   % back to 1in  }} \renewcommand{\@makeschapterhead}[1]{{       \setlength{\topmargin}{2in}   % really 1.5in, added by bph                                     % to meet OAP standards     \normalfont\normalsize\bfseries        \begin{center}     \etchapterheadstyle{#1}                       %     TITLE OF CHAPTER     \end{center}     \setlength{\topmargin}{2in}   % back to 1in }}   The TOC shown as follow    How to appear TOC as:  CHAPTER 1 INTRODUCTION  CHAPTER 2 Chapter 2 name  CHAPTER 3 Chapter 3 name  After I add the below code from Peter Wilson this toc appears  The Question is 1- How can I remove the word CHAPTER at the beginning of chapters toc 2- How can I make the title font smaller 3- list of figure - tables - symbols appear at the same page how can I make each of them in a single page?

I'm trying to use the titletoc package to add the word "Chapter" only to my numbered entries in my Table of Contents. I'm using a report document class. I'm really close (I think), I just need to know how to align the numberless entries with the word "Chapter" from the numbered entries.   Here's what I've got:  \usepackage{titletoc}%  \titlecontents{chapter}% <section-type>   [0pt]% <left>   {}% <above-code>   {\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>   {\bfseries}% <numberless-entry-format>   {\bfseries\hfill\contentspage}% <filler-page-format>   Which gives me:    I'd like to align those numberless chapters on the left hand side with the word "Chapter". Also, I'm receiving \hbox warnings for the page numbers with four or more characters (such as viii) and am not sure what to do about those. I'm new to LaTeX and am at a loss. I tried looking through the titletoc documentation but was unsuccessful. Thanks in advance!   EDIT: As requested, here is a MWE:  \documentclass[12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{titletoc}%  \titlecontents{chapter}% <section-type>   [0pt]% <left>   {}% <above-code>   {\bfseries\chaptername\ \thecontentslabel:\quad}% <numbered-entry-format>   {\bfseries}% <numberless-entry-format>   {\bfseries\hfill\contentspage}% <filler-page-format>  \usepackage{lipsum}  \usepackage{setspace}  \begin{document}  \pagenumbering{roman}       \clearpage                   \setcounter{page}{2}          \chapter*{Abstract} \addcontentsline{toc}{chapter}{\numberline{}Abstract} \lipsum[1]  \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{\numberline{}Acknowledgements} \lipsum[1]  \begin{doublespace} \renewcommand*{\contentsname}{Table of Contents} \tableofcontents \addcontentsline{toc}{chapter}{\numberline{}Table of Contents} \end{doublespace}  \pagenumbering{arabic} %\setcounter{page}{255}  % % Uncomment to see \hbox warnings due to long TOC page number  \chapter{Introduction} \lipsum[1] \section{Section one} \lipsum[1]  \chapter{Second Chapter} \lipsum[1] \section{Another section} \lipsum[1]  \end{document}   Note: remove the comment to receive the \hbox warnings. Thanks again


Let $(X,d)$ be any metric space and let $p\in X$ and let $d_p$ be the corresponding french railroad metric. That is, $d_p(x,y)=d(x,p)+d(p,y)$.  I'm supposed to show that $(X,d_p)$ is necessarily a complete metric space. So any Cauchy sequence in $(X,d_p)$ had better converge to some $x\in X$.  Can someone help me go about showing that there cannot be a Cauchy sequence whose limit is not in $X$?

Given that $(X,d)$ is a metric space, with $d$ the French railway metric. Show that $(X,d)$ is a complete metric space.  Suppose $\{x_n\}$ is a Cauchy sequence in $(X,d)$. Choose $N$ such that for all $m,n$ $\geq$ N: d($x_{n},x_{m}$) < $\epsilon$. (Note that: d($x_{n},x_{m}$) = d($x_{n},p)+d(p,x_{m}$) , $p \in X$).  Then for all $n \geq N: d(x_{n},x) \leq$ .....  Thats where im stuck. Help would be much appreciated.


In a metric space, a cluster point of a sequence $\{x_n\}$ is the limit of some subsequence. The only proof that I know works like this:  Construct a sequence $\delta _k \to 0$. For each $\delta _k$ find a point $x_{n_k}$ in the sequence which is within $\delta_k$ of the cluster point. Make sure that $n_{k} \lt n_{k+1}$, so that you really have a subsequence, and you can do this because there are only finitely many terms before index $n_{k}$.  Question: Is this using Countable Choice? If so is it because we're "picking" a sequence element for each $\delta_k$? If we are using Countable Choice, then is there a way to prove this without using CC?  I apologize if this is a duplicate question - I know there have been previous posts where it's explained why Sequential Continuity Implies $\delta - \epsilon$ Continuity requires Countable Choice. The argument used in that proof seems similar to this one.  Thank you very much.

Arthur's answer;   Let $\{p_n\}$ be a sequence in a metric space $X$.  Let $B=\{p_n|n\in\mathbb{N}\}$ and $p$ be a limit point of $B$.  It first seemed obvious that there exists a subsequence convergent to $p$, but i realized that  I can construct a 'infinite subset' of $\{p_n\}$ and form a new sequence convergent to $p$, but can't construct a 'subsequence'.  Help me how to construct a subsequence.  Additional Question; What is the precise definition of convergent? I think the definition should mention ordering of $\mathbb{N}$, but every definition i saw doesn't mention this. For example, let $p_n = 1/n$. Say $G$ is the usual ordering of $\mathbb{N}$ (i.e. Well-ordered by $\in$) If i follow this ordering, $\{p_n\}$ is convergent to 0. But if i follow $G^{-1}$, it's convergent to 1.  Or is it defined by the point where is the most, unofficially speaking, 'dense'?


Consider, for example, the renormalized free field $\phi$-scalar Lagrangian (The question applies also to interacting $\phi^n$ theories, but that's not the issue):  $$\mathcal{L}=Z_2 \left(\partial_\mu\phi\right)^2 -Z_mm^2\phi^2=\mathcal{L}_0+\delta_2\left(\partial_\mu\phi\right)^2-\delta_m\phi^2$$  Where: $$\mathcal{L}_0=\left(\partial_\mu\phi\right)^2 -m^2\phi^2$$  The Feynman rules are:   My question is why are they different in form? Why the original term $\sim\frac{i}{p^2}$, yet the counter term $\sim p^2$.  Remark: The mass term can be disregraded in the answer, since I've established that by taking the mass as an interaction to a free-massless theory, we can take the massive-interaction $\sigma(p^2)$ as:  $$\sigma(p^2)=\frac{i}{p^2}+\frac{i}{p^2}\left(-im^2\right)\frac{i}{p^2}+\frac{i}{p^2}\left(-im^2\right)\frac{i}{p^2}\left(-im^2\right)\frac{i}{p^2}\dots=\frac{i}{p^2-m^2}$$  Thank you in advance.

I am reading Peskin and Schroeder, chapter ten, and my Lagrangian is $$ \mathcal{L}=\frac{1}{2}(\partial_\mu\phi_r)^2-\frac{1}{2}m^2\phi_r^2-\frac{\lambda}{4!}z^2\phi^4+\frac{1}{2}\delta_Z(\partial_\mu\phi_r)^2-\frac{1}{2}\delta_m\phi^2_r-\frac{\delta_\lambda}{4!}z^2\phi^4. $$  It was my understanding that terms of power 2 in the fields always give Feynman rules that are propagators. However, it appears that the counterterms with power 2 in the fields give a Feynman rule looking like $$i(p^2\delta_z-\delta_m),$$ instead of something with a denominator that would be more familiar. Like $\frac{i}{p^2-m^2+i\epsilon}$, from the first terms. Why is this the case? Is the idea that any term with power 2 in the fields gives a propagator wrong?


I am using a minimal Debian system which does not have the top program installed. I tried to install top with sudo apt-get install top, but top is not a package name.  It seems that top is a part of some other package. How can I find out which package I should install to get it? More generally, how can I find the package that contains a program?

On Debian systems (and derivatives):  $ dpkg --search /bin/ls coreutils: /bin/ls   That is, the file /bin/ls belongs to the Debian package named coreutils.  But this only works if the package is installed. What if it's not?


$A$ and $B$ are $(n\times n)$ matrices and $AB + B + A = 0$. Prove that then $AB=BA$.  How should I approach this problem?

Given matrices $A$ and $B$, where that $AB = A + B$, prove $AB = BA$. I keep coming up with AB = AB. It seems like basic algebra, but for the life of me, I'm getting nowhere :/. Someone help please?


I'm currently writing 1s to a file using the following:  tr '\0' '\377' < /dev/zero > /dev/sdb   But this is a really slow method when I want to fill a 500GB disk. Is there a quicker way?

How can I put a bit mask on /dev/zero so that I can have a source not only for 0x00 but also for any byte between 0x01 and 0xFF?


I have a string which consists of numbers separated by either addition, subtraction, multiplication, division signs etc, eg:  "1+2*3"="7".   The maximum number of signs can be two. I want to compute this string as an arithmetic operation. How can I do this? My current thinking is to split this string into a list then calculate the result using the normal order of arithmetic operation.

I need to evaluate a mathmatical expression that is presented to me as a string in C#.  Example noddy but gets the point across that the string as the expression.  I need the evaluate to then populate an int.  There is no Eval() in C# like in others langugaes...  String myString = "3*4";   Edit:  I am on VS2008   Tried the Microsoft.JScript. = Its deprecated method (but still complies - warning)  However the Microsoft.JScript dll that I have doens work on      public object InvokeMember(string   name, BindingFlags invokeAttr, Binder   binder, object target, object[] args);   Complains that there is a missing ";"  go figure...  EDIT 2  Solution - was the codeDom one - it worked for as there are no security issue - only me ever going to be running the code.  Many thanks for the replies ...  And the link to the new Dragon Book  awesome   EDIT 3  Matt dataTable.Compute() also works - even better for the security conscious.  (parameter checking noted)


I’m currently trying to find the name of a book that wasn’t very old that I read about 10 years ago. It had a super genius industrialist, who reminded me of Bill Gates, who hired a woman computer expert to come and investigate his supercomputer which was becoming self-aware. His large company and home were on an island and he had his own rocket port. He was going to harvest asteroids and the government sent the military to try to stop him.

Can't recall what any of the title would be or who the author was. But the book involved the main character meeting a rich genius with a private island. He has an AI as his central computer, and it acted more like a teenage girl. His robots were emotional AIs too. And i remember a scene where part of their education was them in a room with a cow, they end up killing the cow and they learn how to control their robot bodies. Also the main character ends up learning about the rich guys' plan for mining an asteroid as she is in a holodeck type room. Seems like it should be easy to google this but my keyword combinations are coming up empty. EDIT: OK someone else must have read this book. Let me summarize some more information I remember and see if that helps jog anyone's memory about reading this book.  It is a full size novel, forgot the number of pages but definitely more than 100. It takes place in "the current day" or at least the near future, and on earth. Not sure if it was published in the 90s but i remember reading the paperback then. 94ish... The main character I think is a reporter, but maybe a graduate student. I remember the main character falling in love with the eccentric rich guy. The AI in the book is allowed to choose a gender. There are a large number of the robots I've mentioned living on the island. One of the robots runs out of power,that is sort of like death for them. But when they bring it back online it has some of its memories but it is a different personality. The rich guy is launching things into orbit from his island, part in the book where the main character gets too close to the launch site and is almost killed. The "holodeck" like room is more like current day VR. I remember the room changed shape and maybe had treadmill like properties to allow the person to move around and interact with objects. The end of the book or near the end has one of the robots observing the humans and thinking that they are different. Almost implying that different is bad or something. AKA robot uprising.  I'll keep updating this post with more information as I remember. But the critical pieces like character names I just can't recall.   adds:  The female protagonist has some sort of psychology background and has caught the attention of the wealthy genius telco/data magnate mentioned above.  He has an AI controlling his systems/satellites which is having some problems and needs a little 'help'. You're bang on with the holo deck and mining of an iron asteroid that he has towed in from the asteroid belt as iron in space in FAR more valuable than gold. If any of this helps please let me know the authors name and or the ISBN of the book.   adds:  I do remember the rich guy was wondering if someone with a psychology background (the female main character, who jumped into this assignment because of something that happened in her professional of personal environment) could help his robots to overcome some mental problems. She doesn't know upfront what she's stepping into, and has to discover for herself what's really happening on the island, namely robots who procreates themselves, and learn by trial and error. I remember the book giving examples as how a human would not calculate exactly how much coffee he can put in a cup without spilling it while walking around with it, we learn by trial and error, sort of "fuzzy logic" (don't know if that term is used in the book).


I am trying to debug a scanner install failure and when checking if the required packages were present or not I saw a difference in the package architecture.  $ dpkg -l | grep Brother ii  brscan-skey           0.2.4-1 amd64 Brother Linux scanner S-KEY tool ii  brscan4               0.4.2-1 amd64 Brother Scanner Driver ii  mfcj6910dwcupswrapper 3.0.0-1 i386  Brother CUPS Inkjet Printer Definitions ii  mfcj6910dwlpr         3.0.0-1 i386  Brother lpr Inkjet Printer Definitions ii  printer-driver-ptouch 1.3-8   amd64 printer driver Brother P-touch label printers   Knowing I have an intel CPU (and also the printing is working + scanning failing) Do I need to replace the amd64 packages with their i386 equivalents?

What is the difference between standard i386 download and the amd64 download of Ubuntu 11.04? I am currently running the i386 on an amd machine, would my system work better with the amd64 download instead? (my machine was running Windows 7 64bit, but I neglected to look at that prior to installing Ubuntu).


Find all seventh-power residues modulo $29$.   I have an indices table to refer to in the back of my book but have to solve this by hand. I am under the assumption this involves Fermat's Little Theorem but still quite lost. Any help is greatly appreciated.

Find all solutions to $x^9 \equiv 25 \pmod {29}$   I referred to a table of indices in the back of my book for help but am still a bit confused, any help/hints are greatly appreciated.


sigma_n = np.array([0.01, 0.1])  ls = np.array([0.1, 0.2])  for sigma_ni in sigma_n:     for ls_i in ls:         print("{},{}".format(sigma_ni, ls_i))  I was hoping to find out if there is any way I could print out the above in a pythonic way instead of 2 loops.

How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


How can I compare data in 2 files to identify common and unique data ? I can't do it line by line because I have file 1 which contains say 100 id/codes/number-set and I want to compare a file 2 to file 1.  The thing is that file 2 contains a subset of data in file 1 and also data unique to file 2, for example:  file 1      file 2 1            1 2            a 3            2 4            b 5            3  6            c   How can I compare both files to identify data that is common and unique to each files? diff can't seem to do the job.

I have 2 big csv files, file1.csv which looks like this  1,2,3,4 1,4,5,6 1,7,8,9 1,11,13,17   file2.csv which looks like this  1,2,3,4 1,7,8,9 2,4,9,10 13,14,17,18   These are just random numbers that I made up, basically the two numbers where identical, and sorted. I want to compare file1.csv and file2.csv and then copy the rows that are present in file1.csv but not in file2.csv to file3.csv. the delimiter is comma obviously  I tried   comm -2 -3 file.csv file2.csv > file3.csv   and I tried  diff -u file.csv file2.csv >> file3.csv   Both didn't work because file3 was bigger than file1 and file2. I tried different diff and comm commands, sometimes it's bigger than file2 and about the same size as file file1, I know that file3 has to be significantly  less in size than file1 and  file2. And of course I looked at file3, not the results I wanted  At this point, I know it could be done with diff or comm but I do not know the command to use.


I often see users asking for batch programming on Windows and they try to solve rather complex tasks. A lot of these tasks would be better solved with a different technique that is also built-in to Windows, but often users simply don't know it exists.  Are there means to attach a kind of "redirect" to a tag ? In this situation the user should be informed that he is better off using the socalled Windows Scripting Host. Or is this a situation where a Wiki could be linked to the tag and one of the first lines could describe the alternatives ? I only recently learned about the "tag-wiki", but I think it might be too hidden.  I have an example for such a post. The OP confirmed he didn't know of the alternative:

What is the XY problem?  When asking questions, how do I recognize when I'm falling into it?  How do I avoid it?


I use my Mac for personal, school, and work use and as you can imagine it's really easy to get cluttered up with a ton of windows. The solution I devised is separate desktops for home and work, separate full screen safari tabs, separate Xcode windows, etc. The only problem is macOS loves to jumble to ordering around. When I click links in mail they will open in safari, but then the safari window will move around in mission control. I don't want that. I want the work windows to stay together and the home windows to stay together. Is there any way to keep these windows in their place?

You may have encountered a situation in which Mac changes the order of desktops based on some events like alerts on a program or a web page in browser. How could I disable this logical change? Note: I'm using El Capitan, but I had this problem since Mavericks.


I was studying the proof of $e$ number when I noticed something:  Why is the sequence $(1+\frac{1}{n})^{n+1}$ descending? It starts ascending with grater n but in one moment it starts descending? Why is that? On what $n$ this happens?  Edit: Let me try to rephrase the question... How come  that sequence $(1+\frac{1}{n})^n$ rises, but the sequence $(1+\frac{1}{n})^{n+1}$  falls, just because of the one more 1+1/n multiplication (power)?

Given  $$ y_n=\left(1+\frac{1}{n}\right)^{n+1}\hspace{-6mm},\qquad n \in \mathbb{N}, \quad n \geq 1. $$ Show that $\lbrace y_n \rbrace$ is a decreasing sequence. Anyone can help ?  I consider the ratio $\frac{y_{n+1}}{y_n}$ but I got stuck.


Would a darkness cast at 4th level be dispelled by daylight?  The text suggests that the spell must be of higher than 3rd level, but I am unsure.     If any of this spell's area overlaps with an area of darkness created by a spell of 3rd level or lower, the spell that created the darkness is dispelled.

If I cast Darkness at 4th level and someone else casts Daylight at 4th level, how do the two spells interact?  I found  back in October 2014 that says the spell does not get stronger when upcast, but as is written in the Player's Handbook (p. 201):     When a spellcaster casts a spell using a slot that is of a higher   level than the spell, the spell assumes the higher level for that   casting.   Therefore, if we both cast Darkness and Daylight at 4th level, they do not dispel each other - but how would they interact when they meet each other?


I use Safari because it supports most of Emacs keyset in textareas. Unfortunately, Stack Overflow breaks that. (Especially annoying are strong text (C-b, left-arrow), followed shortly by enter code here (C-k, cut line).)  Anyway, I would like to request a preference to turn off the keyboard shortcuts.  Note: In another question, somebody mentioned disabling Javascript, but that sounds like it would break the rest of Stack Overflow.

I navigate with Ctrl-n,p,f,b (readline/ keys), so that I don't have to move my hands too much and get  again. Is there a way to disable Ctrl-b being hotkey for bold?  Note that this is not just an Emacs thing. Standard web browsers, like Firefox and Chrome, use things like  Ctrl + K and Ctrl + L to navigate to the Google search bar and address bar respectively.


When I am working in QGIS I have the option to catogorize the symbology by attribute and that I can turn off the symbols in the layerspanel on and off easily like in the image below.    However, when I use ArcGIS Pro or ArcGIS online I want to do this too. But in the contents pane there is no option for this. Is there an easy fix for this?

I'm trying to migrate from QGIS to ArcGIS Pro (still on trial version) and I have really basic problem.   How to quick toggle visibility of object with certain symbology (unique values symbology)?   In QGIS there is option to on/of visibility for symbol of every unique attribute value on Layers Pane. However, in ArcGIS PRO there is no option like that.  Here is how it look on QGIS:    ArcGIS Pro Contents pane:


How can I see all messages between me and moderators?  Where are they stored?  I know that they have links like:     [natural number]   But, how can I get them?

I've got a message sent to me from a moderator which appears in the top-left notification dropdown box.  Clicking on the "item" brings me to a page where the message is shown. But after reading it I've closed the browser tab.  How can I get to the message page again?


Is there a single word or a short phrase to better describe a consumable item (e.g. drink or food) that has already been nibbled or sipped at? The relevance of this word or phrase would be in a situation where someone has eaten or drank some food such that it cannot be given to someone else, due to, for example, saliva.

:     "Food left on plates after eating is   defined as garbage (jutha) because it   has been polluted by the eater’s   saliva. It may be handled in the   family.   Is there an English word for something that is not eatable or usable by others because it has someone's saliva on it?


People who have given an interview test maybe familiar with the "substring" question. The question is, as follows:  "For string find the largest substring from the right that has at most two different characters.  I have written a small code to achieve this:  def generate_substring(givenstring):     givenstring_list = []      for i in range(0, len(givenstring)):         for j in range(0, len(givenstring)):             if i != j:                 givenstring_list.append(givenstring[i:j])      return_list = [givenstring_list[i] for i in range(0,len(givenstring_list)) if givenstring_list[i] != '']      return reversed(return_list)   def main():     code_input = raw_input("Enter a string: ")     substrings_list = generate_substring(code_input)     temp = ""      for substrings in substrings_list:         for i in range(1, len(substrings)):             if substrings[i - 1] != substrings[i]:                 temp = substrings                 break #Notice This!      print(temp)   main()   Notice the for loop with a break. I don't know why is this, but break cannot manage to break out of the loop. Therefore I get the leftmost substring instead. Why is that?

Given the following code (that doesn't work):  while True:     #snip: print out current state     while True:         ok = get_input("Is this ok? (y/n)")         if ok.lower() == "y": break 2 #this doesn't work :(         if ok.lower() == "n": break     #do more processing with menus and stuff   Is there a way to make this work? Or do I have do one check to break out of the input loop, then another, more limited, check in the outside loop to break out all together if the user is satisfied?


And how to build a model to study of it?

What is the reason?  Is it caused by their narrow shape, the soft material, walking vibration or something else?


I can't get Skyrim guards to stop attacking me. I'm doing the Thieves Guild quest line and I'm just going into Markarth for the FIRST TIME, and the guards attack me immediately. All other guards in other cities (Whiterun, Riften, Winterhold) attack me too. I tried doing the thing where you sheath your wapons over and over, I've tried waitng 3 days, taking off my Thieves Guild armor, letting Uthgerd the Unbroken go, I don't know what to do next.  Added note, I haven't done a lot of the main quest so I technically don't even know I'm Dragonborn yet.

I accidentally killed a noble, now every guard wants to kill me. Is there any way I can get rid of the bounty?


I am an undergraduate taking a second semester course in Abstract Algebra. We just got started on Field and Galois theory, and my professor told us that he will teach us Grothendieck's formulation of Galois theory. He started talking about (basic) category theory, étale algebra, separable extensions, category of finite G-sets.  Can someone point me in the direction of one or several self-contained expositions of this approach to Galois theory that is suitable for a relatively inexperienced undergraduate? I have taken all the basic courses (calculus, linear algebra etc) plus a semester in topology and algebra, and I would like to see clear exposition with lots of examples if possible. Thank you.

I have background in category theory and I am familiar with the very basics of algebraic geometry - Chapters I and II of Hartshorne. What would be a recommended (self-contained, maybe?) text for learning about Grothendieck's Galois theory ?


Suppose i want to make a Picture of a Tiger,in the National park or in wild life safari,and to  fill in the Frame with my Aps-c Eos Camera with  Focal Length at 300mm,how close or far i need to Approach the subject,I would Like to Know the Distance in meters or in Foots Roughly?

I am thinking about buying a new lens specifically to take photos of distant targets (birds, bears, etc). I currently own the Canon 70-300 IS USM, which is a nice lens, but I find that if I want to take a photo of anything further away than about 10 meters, the target does not fill a large amount of the frame (meaning I have to significantly crop in post production).  I am currently looking at the Canon prime 400mm, however I would like to determine at what distance an object will fill a reasonable proportion of the frame.  Is there a formula or rule of thumb I can apply that will help me in this situation? I realise the size of the target I am shooting will play a role here, so if we need to make an assumption about the size of the target please let me know.


I use a url like this:  to pull up a csv file from SEDE, but every week it doesn't pull up the csv unless I run the query. Running the query takes about 2 minutes every new week I run it. Is it possible to have a url to the csv that already exists, or is it deleted until the query is run again [every new week]?

I've created   which works nice. I would really like to download those results as an CSV file. Therefor I click on the provided link on the right hand side of the screen called Download CSV. The result is:  The webpage cannot be found  https://data.stackexchange.com/stackoverflow/csv/202355?UserId=187606 I expected: A file in CSV format. It looks like a regression of  Queries without a parameter work as advertised. Can this be fixed?


In Ubuntu 18.04, Audacity is in a loop, where no matter what location I type into the dialog, it keeps saying  Audacity could not find a safe place to store temporary files. Audacity needs a place where automatic cleanup programs won't delete the temporary files. Please enter an appropriate directory in the preferences dialog.

When trying to launch Audacity, I get the following error:  Audacity could not find a place to store temporary files. Please enter an appropriate directory in the preferences dialog.   No files or folder have been moved.   I have purged Audacity, deleted any files, etc manually and re-installed   In terminal:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised  ** (Audacity:16390): WARNING **: Owner of /tmp/orbit-pst007x is not the current user  Segmentation fault pst007x@pst007x-Serval-Professional:~$    I have not changed any users or added any additional users. All privaleges, etc are default.   Ubuntu 13.10 64bit (all updates applied)  ADDITIONAL:  I can open as gksu audacity  So it looks like privileges is an issue somewhere. I have checked all privileges and all seems ok, but clearly not....  I tried changing the Directory in Preferences to a directory in my home folder:  /home/pst007x/Music/audacity_temp/  but when starting again (not in root) same error...  Any ideas what files could be lacking privileges?   After changing the Directory, when running I get this:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    I checked installed files using Synaptic Package Manager, then checked permissions:  pst007x@pst007x-Serval-Professional:~$ sudo chmod -R 777 /usr [sudo] password for pst007x:  pst007x@pst007x-Serval-Professional:~$ audacity  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    EDIT. After the above, I rebooted and was no longer able to login. So I did a fresh install. Not a bad thing since the original install on the this system was 10.10. Working ok after fresh install.  Thank you for taking the time to post answers and suggestions..


At the end of Star Wars The Last Jedi, Luke       became a Force Ghost and vanish lefting only his clothes.   But what happens with his bionic hand?      It dissapear with him? It was counted as part of Luke's organic body?

At the end of the Last Jedi, Luke      disappears. Luke, of course, lost his arm at the end of Empire...and in the previous two examples of this particularly tidy death tradition, it's clear that only the body, and not the clothes, for example, disappear. His mechanical arm didn't clatter to the stone beneath, as one would expect.   Is this simply an oversight?


I am practicing the first writing task in IELTS. My concern is specifically related to the usage of the article "the" while writing about pie charts. Should I use this article every time I mention the name of a specific portion of the pie or should I stop after the first mention? Thanks in advance!

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


sometimes after playing Warzone 2100 for long time,when i exit the game,the desktop screen just zooms largly,and only 1/4 th screen is visible.the top bar is visible completely,but is inoperable.    i would have shared the screen shot,but the save or copy buttons are in the invisible 3/4 th part of the screen.  There is an answer already present .But it is not perfect solution,because it only allows me to restart the system,which causes certain important tasks(like downloading files) to end.  I wish to know if there is another way to zoom out the screen,which will allow me to use my pc correctly(and not just allow me to restart it).

I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640x480. It happened with Neighbours From Hell also, using Wine, and well... Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?


I am writing a program to download file from SFT URL     sftp://demo.wftpserver.com:2222/upload/10MB.zip   but the java URL class doesn't support SFTP as I read multiple post on stackoverflow.  The problem is I have a written a generic URL downloader which downloads file from all other protocol but only sftp is the problem.  Is there anyway I can use URL class itself to download the file or if i have to do it using some other way can I use that to download file from all the sources.  Program I am using  try {     bis = new BufferedInputStream(url.openStream());     String fileName = DownloadSourceUtils.getUniqueFileName(DownloadSourceConstants.DOWNLOAD_LOCALTION, url.getFile());      File directory = new File(DownloadSourceConstants.DOWNLOAD_LOCALTION);     if (! directory.exists()){         directory.mkdir();         // If you require it to make the entire directory path including parents,         // use directory.mkdirs(); here instead.     }      fos = new FileOutputStream(DownloadSourceConstants.DOWNLOAD_LOCALTION+File.separator+fileName);      byte dataBuffer[] = new byte[1024];     int bytesRead;     while ((bytesRead = bis.read(dataBuffer, 0, 1024)) != -1)      {         fos.write(dataBuffer, 0, bytesRead);     }     fos.flush();     output = url + " downloaded successfully";     return output; }  catch (IOException e) {     output = e.getMessage();     return output; } finally {     if(bis != null)         bis.close();     if(fos != null)         fos.close(); }

I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?


I have a javascript object that maintains an internal array of objects. I have a method that returns the array but I need to prevent external manipulation of the array and the objects inside it.  Trying slice to copy the array but I've noticed that the objects inside are still references to the originals while the array itself is new. I've never noticed this before, but I've confirmed it:  function test(){      // I want this to be safe from outside influence     var a = [{         val: 1        },{         val: 2        }];      return {         all: function(){             return a.slice();         }     } }  var instance = test(); var copy = instance.all();  // This affects both "copy" and the original copy[0].val = 'wrong';  // This clears "copy" but doesn't affect the original copy = [];     I need to have a truly new copy so an outsider can't modify the array without using the API methods I've designed. I assume all I can do iterate the array and use $.extend (or similar methods from other libs) to clone the objects individually - is there any easier/native alternative?

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


I have written this regex to validate an email address. The rules I have to follow are:  The recipient name may be a maximum of 64 characters long and consist of:   Uppercase and lowercase letters in English (A-Z, a-z) Digits from 0 to 9 Special characters A special character cannot appear as the first or last character in an email address or appear consecutively two or more times   [a-zA-z0-9]{1}?![a-zA-z0-9]?[a-zA-z0-9]{1,63}@[a-zA-z0-9]+\.[a-zA-z0-9]+  I am obviously new to Regex. What I meant by this line was, the first character has to be one of the [a-zA-z0-9] then, it is optional to use any special character by negating the [a-zA-z0-9] and then again use [a-zA-z0-9] before @.  Please help me to fulfil the above expectations.   Tnx

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I would like to thank all of Stack Overflow for already having solutions to so many of my problems that I almost never have to post a question.

Is there a way to send a thanks message to Stack Overflow or any of the individual Stack Exchange sites, aside from sending an email? I want to thank Stack Overflow for being an awesome live QA site. It helps people a lot.


Trying to add UNIQUE attribute to existing column, getting syntax error smartbrain=# ALTER TABLE users ALTER COLUMN email VARCHAR(100) UNIQUE NOT NULL;  ERROR:  syntax error at or near "VARCHAR" LINE 1: ALTER TABLE users ALTER COLUMN email VARCHAR(100) UNIQUE NOT...

I have a table in PostgreSQL where the schema looks like this:  CREATE TABLE "foo_table" (     "id" serial NOT NULL PRIMARY KEY,     "permalink" varchar(200) NOT NULL,     "text" varchar(512) NOT NULL,     "timestamp" timestamp with time zone NOT NULL )   Now I want to make the permalink unique across the table by ALTER-ing the table. Can anybody help me with this?  TIA


I have a .tif file that contains all the elevation of a country.   How can I convert that to a CSV file that contains x,y,z values where x and y are the latitude longitude respectively and the z column is the elevation using QGIS?

I have been able to import into QGIS a set of raster topographic maps and the associated DEM raster maps. It registered the two for me. From there I have calculated the associated slope raster map. Now I want to export the data to a CSV file (or similar format) for processing in a program that I am writing. Ideally the data would be structured in a way that would permit me to query for the slope and elevation data for any given point on the map.   If this is possible, then how do I do it?  Specifically, I have been able to export the data (slope & DEM) to two different CSV files. However I would prefer the data in one file if possible.


How does gedit detect the encoding of a text file when opening it? I notice that gedit can always find the correct encoding when opening a text file of mine, while chardet can often fail to and emacs can sometimes fail too. Is it because I created the text files under gedit, and gedit might save some encoding information as metadata to the text files during their creation?  Can I run gedit in command line to detect encoding of a text file, just like chardet does? That will be convenient when I want to write shell commands for batch processing text files.   Thanks.

It appears that there are at least two questions here on Ask Ubuntu that are similar to this, but neither has been answered.       Text files can be valid under multiple encodings simultaneously. I would like to know the exact encoding gedit uses to decode a given file. Can this be done in the recent versions of gedit?  (I'd like to note that I am aware of other tools that can determine the encoding of a given file. However, I want to know the encoding as detected by gedit specifically)


I have a dummy Java function here. If p is a valid object, t should point to it.  private void turhake(Piece p, Piece t) {     if (null == t && null != p) {         t = p;         if (null == t) System.exit(44);     } else System.exit(43); }   In the following code I ensure that the above function is only called if p is non null and t is null.      if (threatener != null) System.exit(42);     if (board[row][col] != null) {         turhake(board[row][col], threatener);         if (threatener == null) System.exit(41);     }   The result should be that both p and t (board[row][col] and threatener) point to the same object. However my program exits with the code 41, indicating that t got nullified after the function call. Piece class has a few enum variables, nothing special. If I replace the function call with the following, all is good.      if (threatener != null) System.exit(42);     if (board[row][col] != null) {         threatener = board[row][col];         if (threatener == null) System.exit(41);     }   What makes t point to null after it has successfully been assigned a non null object?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I'd like to know where is the mistake in my code. I just started learning C and I just got to pointers and arrays so I have no idea where the mistake is. The problem seems to be in the part where I use struct to create my own data type because none of the debug texts that I've put in show themselves in console when I run the program. I've looked on the internet for an answer but haven t found anything. Any help would be appreciated.  #include <stdio.h> #include <stdlib.h> #define MAX_size 2000 typedef struct TMatrix{     int grid[MAX_size][MAX_size];     int sizex;     int sizey; } TMATRIX; int readSize(TMATRIX *matrix);  int main(void){     TMATRIX matrix;     printf("DEBUG\n");     if (readSize(&matrix)==1){         printf ("Invalid input.\n");         return 1;     }      printf("%d %d\n", matrix.sizex,matrix.sizey);      return 0; }  int readSize(TMATRIX *matrix){     printf("DEBUG\n");     if (scanf("%d %d", &matrix->sizex, &matrix->sizey)!=2) return 1;     if (matrix->sizex<1 || matrix->sizey<1) return 1;      return 0; }

The following code is generating a stack overflow error for me  int main(int argc, char* argv[]) {     int sieve[2000000];     return 0; }   How do I get around this? I am using Turbo C++ but would like to keep my code in C  EDIT:  Thanks for the advice.  The code above was only for example, I actually declare the array in a function and not in sub main.  Also, I needed the array to be initialized to zeros, so when I googled malloc, I discovered that calloc was perfect for my purposes.  Malloc/calloc also has the advantage over allocating on the stack of allowing me to declare the size using a variable.


I want to trigger elements while my Checkbox is checked or not checked. it works perfectly fine with :  $('.myCheckbox:checkbox').change(function () { //.. }   the thing is, that if I create a new checkbox on client, the .change() doesnt trigger.  I tried also :  $('.myCheckbox:checkbox').live('change',function () {   and it doesnt work as well..  does anyone knows whats wrong ?

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 want to say that just in case we want to rename something (in programming) we should do something. Which of the sentences is correct?        In case we need just to rename the message...   In case we just need to rename the message...   In case we need to just rename the message...      I asked some colleagues but we couldn't agree which is the correct answer for this scenario where I want to emphasize that just in case of renaming we should do something.

I'm a bit confused about this. Which expression is correct?     You can't just do that.    or      You just can't do that.   I'm trying to say:     You can't just bash an ideology because of what someone has said/done.