I am still creating an adventure map for minecraft, but in order to do it I need to make a chest pop up with items in it. I have the code for that already, but I don't know where the chest is located in my world. I was wondering if anyone knew how to find an object's location in minecraft. I know how to find the player's location, but not a chest's. Thanks!

Is there a way to search through world data to find instances of a given type of item (e.g., gold horse armor) and/or to find an item with a particular name?   My goal is to find the item's location within the in-game world, ideally with an X/Y/Z coordinate. My specific application is locating stolen items, but I can imagine other uses for such a search, for example, locating mob spawners.  Hopefully there's already a utility or technique available to help with this. But if not, some documentation on the structure of world data might do the trick, as I'm a programmer and could probably write the search myself.


I would like to make all symbols, numbers, letters etc to match the font of the rest of my document. Currently, the X-axis and title has the correct font. But the y axis and the numbers for "nodes near chords" do not. How do I do this?  This is how it currently looks like with my code:   Here's my code:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pdflscape} \usepackage[table]{xcolor} \usepackage[landscape, a4paper, bottom=0.0in, margin=0in]{geometry} \usepackage{pgfplots} \usepackage{array} \usepackage{caption} \usepackage{subcaption} \usepackage[T1]{fontenc}   %Customization \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \pgfplotsset{compat=newest} % Allows to place the legend below plot \usepgfplotslibrary{   units, % Allows to enter the units nicely   groupplots }    \pagenumbering{gobble} \renewcommand{\familydefault}{\sfdefault} \definecolor{customgreen}{RGB}{21,155,151} \definecolor{custompink}{RGB}{230,55,148} \definecolor{customlightblue}{RGB}{207,210,235} \definecolor{customlighterblue}{RGB}{232,234,245} \definecolor{custombrown}{RGB}{194,181,155}    \title{test} \author{sinasohi} \date{January 2017}  \begin{document} %\maketitle  \include{Page1} \include{Page2} \include{Page3} \include{Page4} \include{Page5}  \end{document}   Page3 code:  \pgfplotstableread[row sep=\\,col sep=&]{     interval    & a     & b     \\     K74         & 32.9  & 27.5  \\     K76         & 23.5  & 22.5  \\     K75         & 25.7  & 25.0  \\     K77         & 22.3  & 30    \\     K89-90      & 30.6  & 30    \\     K92         & 19.3  & 15    \\     }\mydata  \pgfplotstableread[row sep=\\,col sep=&]{     interval        & a     & b     \\     K78             & 18.8  & 20  \\     K85, K86, K87   & 66.3  & 60  \\     }\yourdata  \begin{figure} \centering \begin{tikzpicture}     \begin{groupplot}[             group style={group size=2 by 1},             legend style={at={(0.5,1)}, text width=6em, text height=1.5ex, anchor=north,legend columns=-1},             ybar,             /tikz/bar width=.6cm,                         xtick=data,             ymin=0, %ymax=40,             ,height=10cm,             nodes near coords,             every node near coord/.append style={color=black, font=\footnotesize}                     ]  \nextgroupplot[    title=\textbf{Kardiovaskulære diagnoser},    width=.55\textwidth,    symbolic x coords={K74,K76,K75,K77,K89-90,K92},    ymax=40 ]         \addplot[red!20!customgreen,fill=customgreen!80!white] table[x=interval,y=a]{\mydata};         \addplot[red!20!custompink,fill=custompink!80!white] table[x=interval,y=b]{\mydata};         \legend{Klinik 12345, Landsrapport}  \nextgroupplot[     symbolic x coords={K78, {K85, K86, K87}},     width=.3\textwidth,     enlarge x limits=0.7,     title=\textbf{Yderligere diagnoser},     ymax=80,     /tikz/bar width=.7cm,     ]          \addplot[red!20!customgreen,fill=customgreen!80!white] table[x=interval,y=a]{\yourdata};         \addplot[red!20!custompink,fill=custompink!80!white] table[x=interval,y=b]{\yourdata};         \legend{Klinik 12345, Landsrapport} \end{groupplot} \end{tikzpicture} \end{figure}

For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by  \renewcommand\familydefault{\sfdefault}    However when I use mathematical symbols like $p_{s}$, they are still typeset in roman font and that looks weird:    So I wonder:   how could I force mathematical expressions also be typeset in \sfdefault if I do, are there any negative sideeffects to expect (with greek signs or other special symbols?) OR should I typeset all "mathematical" graphs (axis labels etc.) in roman font, and only make the other graphics like flow charts and sketches with sans serif font?


I know that memory will be swapped whenever RAM usage is high. And I read that we need to set swap to be twice of the amount of RAM. But why? How will it shift from RAM to swap? If we do not have swap what will happen?

When we want to setup a linux system, there is a common a suggestion to set the swap space  twice as big as your physical memory. I want to know why do we need this, and how it is this suggestion come to be?


I asked a question with bad grammar and poor quality because I have poor English skills. Another experienced user edited my question. I really appreciated his editing and am very grateful to him.   But one day later, my question is not on the "Active" list. I would like my question to still appear active, so I edited it. The question lost the previous question editor. My question status has changed to active and shows it was edited by me just a few seconds ago.  I don't want this because I assume the previous question editor has lost some reputation.  How can I make my question active without losing the previous question editor? I know I could add a bounty, but I don't want to do that.

It is possible for users to edit an existing post.   How do edits work? Who may edit a question or answer? How can you tell what has been changed between edits?      For more information, see "" in the .     Related:


I have this equation:    which must be inserted in a Office document. But it is too large, so I want to add a line return in the middle of the 2nd and 3rd condition such that the new line starts exactly at the same point as before (not in the left area of the "equation system").  s(g) = \begin{cases}   q_i / n   & se \; \exists i:1 \leq i \leq k \enspace t.c. \enspace g \in [x_{i-1}, x_i] \\   q_1 / n - P \left(q_1/n, x_0 - g \right)   & se \; g \notin [x_{i-1}, x_i] \: \forall i: 1 \leq i \leq k \;\; e \;    \left( x_0 - g \right) \leq \left( g - x_k \right) \\   \left q_k / n  - P \left(q_k/n, g - x_k \right)   & se \; g \notin [x_{i-1}, x_i] \: \forall i: 1 \leq i \leq k \;\; e \;    \left( x_0 - g \right) > \left( g - x_k \right) \end{cases}

I'd like to have a cases environment with some cases that are too long to fit on one line. I tried this:  \begin{cases}   \begin{split}     long expression \\ second line of long expression   \end{split} & condition \\   ...   but I get the warning     Package amsmath Warning: Cannot use 'split' here;   trying to recover with 'aligned' on input line 201.   It automatically replaces the split with an aligned environment, which looks like this:    Is there any way to get these long expressions to behave like they were in split or multline environments, with the top line flush left and the next line indented a little?


I am a little confused since I am a beginning. I just started learning JQuery using Codecademy's tutorial.  They say I should put all Scripts just before the end of the </body> tag of an HTML document.    I then read what W3SChools have said and they recommend putting this in the <head> of an HTML document.    If someone could clarify what the best practice is that would really help. Unless there isn't a difference, then I apologise for my naivety.

When embedding JavaScript in an HTML document, where is the proper place to put the <script> tags and included JavaScript? I seem to recall that you are not supposed to place these in the <head> section, but placing at the beginning of the <body> section is bad, too, since the JavaScript will have to be parsed before the page is rendered completely (or something like that). This seems to leave the end of the <body> section as a logical place for <script> tags.  So, where is the right place to put the <script> tags?  (This question references , in which it was suggested that JavaScript function calls should be moved from <a> tags to <script> tags. I'm specifically using jQuery, but more general answers are also appropriate.)


How can I update the environment variable PATH using java. With the same code I should be able to update the PATH variable in Windows and Unix when I run the code in respective OS.  Thanks in advance.  regards, San

How do I set environment variables from Java?  I see that I can do this for subprocesses using . I have several subprocesses to start, though, so I'd rather modify the current process's environment and let the subprocesses inherit it.  There's a System.getenv(String) for getting a single environment variable. I can also get a Map of the complete set of environment variables with System.getenv(). But, calling put() on that Map throws an UnsupportedOperationException -- apparently they mean for the environment to be read only. And, there's no System.setenv().  So, is there any way to set environment variables in the currently running process?  If so, how?  If not, what's the rationale?  (Is it because this is Java and therefore I shouldn't be doing evil nonportable obsolete things like touching my environment?)  And if not, any good suggestions for managing the environment variable changes that I'm going to need to be feeding to several subprocesses?


To find the critical points of any given function $f$, we should first set the first derivative $f'=0$ and solve to find the values of x. Now to find at which x=a we have a maxima or a minima, we should find the $nth$ derivative such that $f^n(a)≠0$.        if n is odd, a is neither a local maximum nor a local minimum.   if n is even and $f^n(a)>0$, then f has a local minimum at a.   if n is even and $f(n)(a)<0$, then f has a local maximum at a.       What is the intuition behind these 3 points, in other words why these rules work out.  N.B. - I understand how it works till n=2. But when $f''$ turns out to be zero and we continue to find the next derivatives, that's when I start to feel I don't understand what is actually happening.

I'm an AP Calculus BC student, so all I know about derivatives is the increasing/decreasing/ relative max/min function relation with first derivative (first derivative test), concavity (second derivative test). I showed that you can create a third derivative test to my teacher (by showing that if the critical numbers of the second derivative = 0, and if the third derivative is non-zero, then it must be a point of inflection as the function is either increasing or decreasing on the second derivative graph), and he said it was right and to think about derivatives at higher orders like x^5 only has a derivative at x = 0 with the fifth derivative).   When i googled it, i found the higher order derivative test. Is there a logical explanation for why this test works? I dont understand why if n-1 derivatives = 0 and the nth is non-zero, you can find max/mins/inflection points.


UFD imply ACCP (ascending chain condition for principal ideals). But is it necessarily UFD implies ACC also (ascending chain condition for ideals)?

An example of a non Noetherian UFD.     I know an example is $$K[x_1,\ldots,x_n,\dots]$$ with $K$ a field, but I don't know why. Can someone give another example or better an explanation?   Is it not Noetherian because it's not finitely generated? And why do you know it is a UFD?? My question now is how to prove this is a UFD.


I was researching sinusoidal functions when I realized that the wave produced by a wave function looks exactly the same as a light wave. Is a light wave a sinusoidal wave, and can a light wave be described as a sinusoidal function?

Electromagnetic waves have a physical crest and trough as observed in microwaves and radio waves. I understand that is electromagnetic field vectors that wave, not the photon. But how do they wave? What does causes them to change direction?


I need to create new item to list..  $.ajax({         url: appWebUrl + "/_api/SP.AppContextSite(@target)" + "/web/lists/getbytitle('NewList')/items?" + "@target='" + hostWebUrl + "'",         method: "POST",         data:  JSON.stringify({ '__metadata': { 'type': 'SP.Data.NewListListItem' },         'Title': "TitleVal", 'Name':"Vikash"}),                headers: {              "Accept": "application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val(),             "content-Type": "application/json;odata=verbose"             },         success: function (data) {               success(data);         },         error: function (xhr, status, error) {              console.log( " xhr.responseText: " + xhr.responseText + " //status: " + status + " //Error: "+error );             alert("error");         }     });   It shows error:-     Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The   security validation for this page is invalid and might be corrupted.   Please use your web browser's Back button to try your operation   again."}}}   How to solve this error?

I need to do insert operation to SharePoint list. Below is my code..  $.ajax({         url: appWebUrl + "/_api/SP.AppContextSite(@target)" + "/web/lists/getbytitle('NewList')/items?" + "@target='" + hostWebUrl + "'",         type: "POST",         data:  JSON.stringify({ '__metadata': { 'type': 'SP.Data.NewListListItem' },         'Title': "TitleVal", 'Name':"Satya"}),                headers: {              "accept": "application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val(),             "content-Type": "application/json;odata=verbose" },         success: function (data) {             success(data);         },         error: function (xhr, status, error) {              console.log( " xhr.responseText: " + xhr.responseText + " //status: " + status + " //Error: "+error );             alert("error");         }     });   It throws error:     Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The   security validation for this page is invalid and might be corrupted.   Please use your web browser's Back button to try your operation   again."


Is there a way to search through a friend’s Facebook profile for a post you remember some of the words of? I've tried using Ctrl+F but it appears only part of the posts get loaded each time you view a profile. Is that right? I've tried scrolling really far down in the history but wasn't able to find it and the post was made recently.

I'm trying to find a post I made on my timeline (aka wall) several months (or even years) ago, but can't find a way to search for it. I , but that's very heavy.   Currently, I open the activity log (e.g., https://www.facebook.com/username/allactivity) and start scrolling down to get some info on the page. Then I use my browser to search for the text. But this is slow and, depending on how far back I want to go, tedious. Clicking on the earliest month/year in the filter only loads those periods specifically.    Anyone know of a better way that will find the search words anywhere on your activity log quickly?    Edit: There's a  (not really a bug, but lack of a feature) related to this on Facebook's developers forum.


I am interested in the question of, if a particle is initially localised at some position $x_0$ what it will evolve to at a later time assuming a free Hamiltonian $H = p^2 /2m$. Long story short, I find that I am roughly able to get a result but what I get is nonsense.  In momentum-space, the TDSE is simply $$i \frac{\partial}{\partial t}\psi(p,t) = \frac{p^2}{2m} \psi(p,t)$$ This has the solution $\psi(p,t) = f(p)\exp(-i\omega_p t)$ where $\omega_p = p^2 /2m$. If the particle is initially localised in space at $x_0$, then $f(p) = \exp(-ipx_0)/2\pi$ (i.e. a delta function in position space). Thus we have the solution in momentum space $$\psi(p,t) = \frac{1}{2\pi}\exp(-ipx_0 - i\omega_p t)$$  However if I transform this back into position space I get (after completing the square in the exponent) $$\psi(x,t) =  \frac{1}{2\pi} \sqrt{\frac{2m}{t}}e^{im(x-x_0)^2/2t} \int_{-\infty}^\infty  e^{-is^2} ds$$ Aside from the fact that the integral over $s$ doesn't converge to anything, we have the additional problem that $|\psi(x,t)|^2 \propto 1/t$ doesn't depend on $x$. In other words, for all times the particle is completely delocalised in position-space. Have I made a mistake or is there a deeper problem with what I'm doing?

I want to ask if it is reasonable that I use the Dirac-Delta function as an initial state ($\Psi (x,0) $) for the free particle wavefunction and interpret it such that I say that the particle is exactly at x=0 during time t=0? If I use this initial state, can I also use it to predict how the wavefunction should evolve in time? That is, if $\Psi (x,0) = \delta(x) $, then, $$ \phi(k) = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{\infty} \delta(x)e^{-ikx} dx=\frac{1}{\sqrt{2 \pi}} $$ then, $$ \Psi(x,t)= \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{\infty} \phi(k)e^{i(kx-\omega t)} dk $$ or, $$ \Psi(x,t)= \frac{1}{2 \pi} \int_{-\infty}^{\infty}e^{i(kx-\omega t)} dk. $$  Is the above wavefunction a valid expression to see how a particle that is initially localized in the origin evolves in time?


I have a rechargeable vacuum cleaner with NiMH batteries, 1800mAh and 14.4 volts, 12 cells. The charger is 18v 200mA. The batteries have now died.  Can I replace the batteries with 4 cell Li-ion in series?   That will be 14.4 volts, if considered 3.7v each. Of course, I know it will be roughly 4 volts when fully charged.  Li-ion batteries in my mind: 18650, 2500mAh.  Also, can I charge them with the same charger?

Below is a picture of a battery shell for a NiMH circuit for a power assist wheelchair battery.  I'm taking a guess that each of the 20 batteries is 1.2V because the entire circuit is 24V.  These are rechargeable.  I'd like to convert this circuit to the same voltage (24V) and same capacity (3Ah).    First, is this possible given the space you see in this wheelchair battery shell, and the circuit board in the pictures?  Second, what are the material requirements to be able to convert this circuit from NiMH to Li-Ion and the type of charger as well?  What materials will I need to solder/weld the materials together, etc.. for the actual labor?  I'm an electrical novice, so please ask me more questions (as comments) and I'll do my best to answer.  Note: right click image and open in a new window to make it larger!


Hi can anyone help me with css positioning please? I have this layout  And I want the TITLE to be vertically centered, but I don't know how to do it when the higth of its parent can isn't fixed

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


In Linux, would it be possible to create a multi-pipe command, serving the same type of command ie: grep however different output alteration done to it?  Strict example:  grep 10-Feb file.txt | awk '{print $2}' | cut -d . -f 1,2 | sort | uniq -c | sort -rn | head -20 ;  grep 10-Feb file.txt | awk '{print $2}' | sort | uniq -c | sort -rn | head ;  grep 10-Feb file-txt [..]   Would it be possible to make the first grep and path an argument, and make it automatically apply to the following commands?   $=[grep 10-Feb file.txt] | awk '{print $2}' | cut -d . -f 1,2 | sort | uniq -c | sort -rn | head -20 ;  $ | awk '{print $2}' | sort | uniq -c | sort -rn | head ;  $ [..]   As an edit:  I cannot set-up the above command in a bash script since I have limited access to root from which I can call the scripts from.  I am interested in assigning a command as a variable from the command line solely.

I would like to use the same pipe for different applications, like in:  cat my_file | {   cmd1   cmd2   cmd3 }   Cmd1 should consume part of the input. Cmd2 should consume another part and so on.  However, each cmd eats more of the input then it read really needs due buffering.  For example:  yes | nl | {    head -n 10 > /dev/null   cat  } | head -n 10   Outputs from line 912 instead of line 11.  Tee is not a good option, because each command is supposed to consume part of the stdin.   Is there a simple way to get this working?


In a multi user environment, how do I get a panel to display the node content form (to enter text) of a user knowing that each user has such a (separate) node. In other words, a visitor on Jack's panel page would be presented with Jack's form and be able to write something there, but if visiting John, he would be presented with John's form.  I tried the Form Block module but it shows the node of the viewing user, not the user being viewed, on all users' panel pages.  Is there a way for this to add an argument or contextual filter in panels so that each user's form displays appropriately?  I should add that the nodes are back linked (Entity Reference) to their users.  Any help would be greatly appreciated. Thank you. :)

Given two pieces of data, for example two entities, two nodes; when viewing one of them, how do I pull in data for the other one into Page manager/Panels?


I have a blender file with this scene (below) seen from the camera. Now I need to get the 3D points of the mesh (the doughnut) in world space according to the camera perspective, pragmatically. Meaning I need a python script I can run to save a text file with the list of 3D points I need. I also need to know the camera direction vector. I'm using Blender 2.83 and I have python 3.7 installed. Thanks in advance.

How do I convert from object-space to world-space?  I suspect it is:  vert_os = obj.vertices[foo] vert_ws = vert_os.getPositionFromMatrix(obj.matrixWorld)   but does the matrix also handle translations, or do I need to handle that separately?  Can someone link to the relevant documentation?


String parkingStringChoice; System.out.println("Would you like to purchase parking? (Y or N)"); parkingStringChoice = scnr.nextLine(); int parkingChoice;  switch(parkingStringChoice) {     case "Y":         System.out.println("You have parking");         parkingChoice = 1;         break;     case "N":         System.out.println("You dont have parking");         parkingChoice = 0;         break;  }  if (parkingStringChoice != "Y" && parkingStringChoice != "N") {     System.out.println("Reenter valid input.");     System.exit(0); }   The above portion is my code for a portion of my program asking if the user wants parking or not.  I am trying to write an if statement to make sure if the user does not input Y or N it will print an error and then exit.  Instead of this, it is currently executing the if statement at all times, whether Y, N, or some other string is entered.  Any help is appreciated, thanks.

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


As you can see in the screenshot, the fonts for the title bar (any window) and for the icons within the file browser (as well as in the navigation pane to the left) are very very small, I have tried to fix this by a number of ways including using MyUnity, but to no avail. Could someone please help me with this as it can render my PC unnavigatable unless I'm sitting right up against it, and even then I struggle. I am using Ubuntu 12.04.

The icons in the panel are way too large for my preferences, how can you resize them?


Is quantized spacetime more like a chessboard or a matrix of lights? I have heard two analogies, the light bulb one appears to allow for movement whilst the chess piece one seems to violate zenos paradox. Whilst is a better example?

Is the spacetime continuous or discrete? Or better, is the 4-dimensional spacetime of general-relativity discrete or continuous? What if we consider additional dimensions like string theory hypothesizes? Are those compact additional dimensions discrete or continuous?   Are there experimental evidences of continuity/discreteness?  When particles move inside space do they occupy spacetime by little chunks? What would imply if spacetime is discrete on continuous theories?  I've found little information on the web and books.  Probably my question is ill-posed and I apologize for this.


I don't use any 32-bits app on my 64-bits Vivid so i want to remove all i386 packages but I wonder if this can be done safely. Thx for help !  Edit : Here's the return from the 'dpkg -l | grep i386' command >

Over the time I installed many i386 packages, which I no longer need. How can I clean up the system and stay only with the amd64 packages?


I have this bike:    I want to swap out the forks for some rigid forks.  Please tell me what specs I should be looking at to get the right fit.  Thanks!

I have an older version of this bike:    They have made some changes to the components since I bought my bike but it is more or less the same.  Here are the .    I was hoping to put a solid fork on my bike for the winter.  I want to keep the mountain feel and have lots of clearance for wide tires, etc but I want to get rid of the weight and give my fork a rest.    When choosing a solid fork what do I need to know?     Will any solid fork fit onto my bike?  Do forks come in different sizes?  Different diameters?  Different lengths?  I heard something like you need a special fork if you are going to put it on a bike that was designed to be used with shocks.   I know that I want a fork with disk break mounts so this makes the search slightly more difficult.  Ideally I would also like rack/fender mounts.  (For future touring).   My wheel size is 26 inches, what would happen if I used a 700c fork on my bike?  This seller claims thats what he was using  for.    Edit:  Thanks for the great information.  After reading I have been looking around for a used local fork.  I think that I found one possibility.  But any feed back would be appreciated.     The fork was designed to be used with 700C or 29 inch wheels but it has an axel to crown length of roughly 17 inches (431 mm).  I currently have 100mm Travel in my suspension fork so  that I should get a fork with a length of 455 mm (17.9 inches).  Is this reasonable?  Does it matter if it was designed for a 700C tire if the fork length is correct? As you can see in the picture of the fork the fork has some rake.  Is this a problem?  Will that amount of rake make the bike ride strangely/differently? The steer tube/ headset size is 1 1/8th standard size which is the same as my bike so no concern there.     Here is a picture of the fork:


In my UITableViewCell subclass, I have the following code:  -(void)updateConstraints {        static dispatch_once_t once;     dispatch_once(&once, ^ {     // Set constraints here     });      [super updateConstraints]; }   The constraints are only set for the first instance of the custom cell class. I don't really understand what's happening with the static token. I was under the impression that it is an instance-specific variable, but apparently it is class-scoped. Can anyone explain this?

I've seen the word static used in different places in C code; is this like a static function/class in C# (where the implementation is shared across objects)?


I have some windows 7 systems and a slow internet connection, is there anyway I can copy downloaded updates (security) from one machine to another and make them install on the second machine?

I have multiple machines at home. All of them are running Windows 7 x64. Due to limited bandwidth and slow connection, I want to make them download updates just once and apply to the rest of them. What's the easiest way to accomplish that without resorting to Windows Server specific solutions (WSUS)?


Is there a way to label an equation with letters instead of numbers?  For instance,    \begin{equation} \label{Problem} \phi'(t)=f(t, \phi(t)). \end{equation}

I would like to label an equation with an arbitrary symbol, rather than a number, or letter.  Is this possible?


I hold refugee status in Germany and I have a refugee travel document under the 1951 convention but my national passport was returned to me back by the foreign office and it's still valid for 5 more years.  I want to visit Kenya. If I use the passport of my country of origin, I don't need a visa but with the blue passport (refugee document), I need to apply for a visa. However, in my blue passport, it states that I also hold a national passport.  Can I travel with both, or should I just destroy the national passport and use only the refugee travel document (blue passport)?

I hold refugee status in the EU and I have a refugee travel document under the 1951 convention. I want to visit a specific country but this country doesn't accept refugee travel documents.  If I used the passport of my country of nationality, I wouldn't need a visa to travel to this country, but my passport is expired.  If I renew my passport at the embassy and use it for traveling, would it affect my refugee status in EU?


I need help with generating a random string using C++11.  I don't know how to continue with that, if you can help me please.  #include <random> char * random_string() {          static const char alphabet[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";     static const MAX_LEN = 32;  //MAX LENGTH OF THE NEW CHAR RETURNED     int stringLength = sizeof(alphabet)/sizeof(alphabet[0]);      for (int i = 0; i<=MAX_LEN;i++)     {         //now i don't know what i need to do help!     }      static const char test[MAX_LEN];      return test;  }

I'd like to create a random string, consisting of alpha-numeric characters. I want to be able to be specify the length of the string.  How do I do this in C++?


I prematurely accepted a LinkedIn connect invitation. The invitation had contact information, but I can no longer access the message. Is it lost forever? How can I access the message?

I have accepted a few invites from the top navbar button, but then I realised some had possibly useful or interesting messages attached.  How can I retrieve LinkedIn invitation messages in the 2015 redesigned messaging system?


Using a trick (described by ), I can determine whether a class has a type defined:  template<typename T> struct hasType {     template<typename C> static char test( typename C::Type );     template<typename C> static char* test(...);     enum{ Value= sizeof(test<T>(0))==1 }; };   I can also determine whether a class has a variable:  template<typename T> struct hasType {     template<typename C> static char test( decltype(C::var) );     template<typename C> static char* test(...);     enum{ Value= sizeof(test<T>(0))==1 }; };   However, neither decltype(c::func) nur decltype(c::func()) (which depends on the parameters) works for member functions. Is there a way to do this or will I have to create a functor in every class and detect it with typename C::functor?  Edit: You're both right, but since I'll also have to test for a type I'll use decltype(&C::func) (which should obviously be a pointer).

I'm asking for a template trick to detect if a class has a specific member function of a given signature.  The problem is similar to the one cited here  but not the same: in the item of Sutter's book he answered to the question that a class C MUST PROVIDE  a member function with a particular signature, else the program won't compile. In my problem I need to do something if a class has that function, else do "something else".   A similar problem was faced by boost::serialization but I don't like the solution they adopted: a template function that invokes by default a free function (that you have to define) with a particular signature unless you define a particular member function (in their case "serialize" that takes 2 parameters of a given type) with a particular signature, else a compile error will happens. That is to implement both intrusive and non-intrusive serialization.   I don't like that solution for two reasons:   To be non intrusive you must override the global "serialize" function that is in boost::serialization namespace, so you have IN YOUR CLIENT CODE to open namespace boost and namespace serialization! The stack to resolve that mess was 10 to 12 function invocations.   I need to define a custom behavior for classes that has not that member function, and my entities are inside different namespaces (and I don't want to override a global function defined in one namespace while I'm in another one)  Can you give me a hint to solve this puzzle?


I am having a weird issue with my terminal wrapping, and after reading online I have found out it is likely because of my PS1 setup, however, I looked at it, and it seems to match what people are saying, so I am not sure whether or not I am doing something else wrong.  PS1='\[\e[1;36m\]\u\[\e[m\]\[\e[0;31m\]\a@\[\e[m\]\[\e[1;36m\]\aubuntu\[\e[m\]\[\e[1;31m\]\a:~>\[\e[m\]'   Anyone to possibly identify what might be wrong?   One way I tried to combat this was to set stty columns to 1000 but that made a lot of other things worst (such as ls and vim).

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following:  username@someserver ~/somepath $ ssh -i /path/to/private/key myusername@something.someserver.com  The command should render on two lines. Instead it will often wrap around and start writing over the top of my prompt, somewhat like this:  myreallylongusername@something.somelongserver.comh -i /path/to/private/key  If I decide to go back and change some argument there's no telling where the cursor will show up, sometimes in the middle of the prompt, but usually on the line above where I'm typing.   Additional fun happens when when I Up to a previous command. I've tried this in both gnome-terminal and terminator and on i3 and Cinnamon. Someone suggested it was my prompt, so here that is:  \[\033[01;32m\]\u:\[\033[01;34m\] \W\033[01;34m \$\[\033[00m\]  Ctrll, reset, and clear all do what they say, but when I type the command back in or Up the same things happens.  I checked and checkwinsize is enabled in bash. This happens on 80x24 and other window sizes.  Is this just something I learn to live with? Is there some piece of magic which I should know? I've settled for just using a really short prompt, but that doesn't fix the issue.


I have a function that gets values using for loops and puts them into 1 variable. This variable is them stuck in a form where its is then submitted. But the problem is that the for loop would finish looping by the time the value is entered and submitted. So everytime I test it, the variable "value" = 9999. Can anyone please tell me how to add 1 to variable every time the function loops? Thanks in advance.  function myFunction() {   var value1;  var value2;  var value3;  var value4;  var value;   for (value1 = 0; value1 < 10; value1++) {   for (value2 = 0; value2 < 10; value2++) {    for (value3 = 0; value3 < 10; value3++) {     for (value4 = 0; value4 < 10; value4++) {      value = value1.toString() + value2.toString() + value3.toString() + value4.toString() + '@2018';      document.getElementById('pswd').value = value;      document.getElementById('uid').value = 'test';      document.getElementById('commentForm').submit();     }    }   }  } }  var loop = setInterval(function() {  myFunction();  }, 2000);

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I guess I have a complicated case..   Well, my dad is a private lawyer and he invests the money earned rather than setting money aside in a bank. So, he has a lot of shares in primary and secondary market, but he hasn't been able to maintain a good bank balance as he takes in hand cash for his services and invests in real estate / share market within little to no time. Therefore, I opted not to show his bank account and put in my paternal uncle as my sponsor.  My paternal uncle has a reputable job in the banking sector and earns close to 6 figures. He has regular transactions coming in and going out of his account and has done the same in last 2 years as well. He has a good travel history to US, Australia, and several places round the globe, where he hasn't overstayed, ever. Now, like his previous transactions, he'll have a huge amount of money in his account from real estate, and it just so happened that it kind of coincided nearing my visa application date.   My query is whether he could back up his transactions for last 3-6 months ( major ones) including the last one in his sponsorship letter and provide in share papers, land ownership documents, etc. OR should I get the bank statements and transactions approved by chartered accountants??  And second query:  Will shares serve the same/  similar purpose of "liquid assets" as cash in bank and whether i should show in my father as my sponsor instead?   Both of them have acres of land and houses in their names as well..   Please shine some light into this question of mine.

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


What is the difference?   He is not home. He is not at home.   Can I use these two phrases interchangeably?

Consider this question:  Where are they (things or people)?  Would the following answer be with (at), without it or either one?  I left them (at) home  I have done a quick Google search and found quotes for both cases, with and without:  This Widow's 4 Kids Were Taken After She Left Them Home Alone. Leaving Your Child Home Alone - KidsHealth Gerry said, "I left them at home." Gerry sat down and turned on the TV set just as Mark would have done.  I read about "home" being an adverb but also know "stay at home moms" for example. So you see I need definite answers.


If one considers the metric space $\mathcal{K}$ of all compact subsets of $\mathbb{R}^2$ endowed with the Hausdorff distance (that is $\Delta(A,B)=\inf \{ \delta: A\subset B^{\delta},B \subset A^{\delta} \}$). Is it true (and how can it be shown in that case) that the function $\mu: \mathcal{K} \to \mathbb{R}^2$ ($\mu$ is the 2-dimensional lebesgue measure) defined by $A \mapsto \mu{(A)}$ is continuous w.r.r the metric $\Delta$?

Consider the space $\mathcal{K}(\mathbb{R}^{n})$ of compact subsets of $\mathbb{R}^{n}$ endowed with the Hausdorff metric $\rho$, and let $\lambda$ denote the $n$-dimensional Lebesgue measure on $\mathbb{R}^{n}$. Now, I understand that $\lambda$ is not continuous with respect to $\rho$, i.e. that $[ \lim_{k \to \infty} \rho(K, K_{k}) = 0 ] \not \Rightarrow [ \lambda(K) = \lim_{k \to \infty} \lambda(K_{k}) ]$. But my question is: Suppose $\lambda(K_{i}) = \lambda(K_{j}) = C$ for every $i, j \in \mathbb{N}$, i.e. the sequence $k \mapsto \lambda(K_{k})$ is constant; does this imply that $\lambda(\lim_{k \to \infty} K_{k}) = C$? If not, I'm interested to see a counterexample.  Thanks.


I want to write a html code to enable downloading a user entered input value saved in a text file. As in the below html, when the 'Save' button is pressed, the input value should save in the user computer as a .text file.                    <form name='write' onsubmit='return write_below(this);'>         <input type="text" name='input_to_write'>         <input type="button" value="save" />     </form>

      Can anyone help me in this problem?

Can anybody give some sample code to read and write a file using JavaScript?


Is it possible to add an image to the Windows 8 boot menu for Linux/Ubuntu?

Which OSes can be put into the new bootloader that Windows 8 provides?   It seems to be quite pretty and consistent with the rest of the new Windows 8 design, so it would be cool to put Linux (Ubuntu) into it instead of using  or . Besides on my personal system, Linux will be put on a hard drive and not the , so it would be a bit faster.


When Tony took the stone from 1970, it was in the form of the Tesseract but at the end of the movie Captain America goes back to return the stone which is not its original form. How's this possible?

At the end of Avengers: Endgame, Captain America is given the job to go back in time and restore the Stones to where they stole them originally. The question: what exactly happened?  Did he plan on restoring them to right after they were stolen to make it as if they were never taken, or before? And either way, according to their time travel rules -- changing the past doesn't change the future, only create a new alternate universe. So how could they possibly travel back into that same alternate universe, if every time a new alternate reality is created?


In  I was trying to do "". It took me 3 tries and what I finally had to do is suboptimal. SE can choose whatever parsing rules they want. I won't debate my desire to emphasize a portion of a word in this thread. What I do think is a problem is that I expect that I can use the answer editor to preview my comment before copy-pasting it into the comment box (and get the same rendering).  I will add 3 comments to this question to demonstrate the differences between how comments and answers/questions are rendered.  Code  1 Ugh! That is even more confusing. My brain wants to associate `shopt` with $**SH**ELL**OPT**S rather than $BA**SHOPT**S.  2 Ugh! That is even more confusing. My brain wants to associate `shopt` with $SHELLOPTS rather than $BASHOPTS.  3 Ugh! That is even more confusing. My brain wants to associate `shopt` with $ **SH**ELL**OPT**S rather than $ BA**SHOPT**S.   Renderings  1 Ugh! That is even more confusing. My brain wants to associate shopt with $SHELLOPTS rather than $BASHOPTS.  2 Ugh! That is even more confusing. My brain wants to associate shopt with $SHELLOPTS rather than $BASHOPTS.  3 Ugh! That is even more confusing. My brain wants to associate shopt with $ SHELLOPTS rather than $ BASHOPTS.    In case this behavior changes in the future, I want to document how it renders at the time of my asking.    What you should notice   It's not that HTML doesn't render in attempt #2. The literal text displays consistently. That is by design and that is okay. It is that in attempt #1 the placement of the $ changes the rendering. It seems to nullify the first ** which in effect inverts what is bold and what is not. If it rendered the literal text, again I would say "that is by design and that is okay." But that is not the case. In attempt #3 it renders correctly in the comment the same as it does in the question because there is a space after the $.   Why this is not a dupliacte  It has been suggested that this is a duplicate of . The rendering example above demonstrates that it is not. In that question he states that the double asterisks show up in the comment. That may have been true at the time that he asked the question (I don't know because he didn't include a screenshot of the rendering), but it is not today. So, I'd suggest that it is not  but rather . Here it is today:

I just tried to comment multiple times on "".  The intended comment was to be rendered as:     not "maderator nominations"   But instead, it was rendered as:  not "m**a**derator nominations"   I also tried the following variants, with no effect (rendered as you see here):  not "m*a*derator nominations" not 'm**a**derator nominations' not 'm*a*derator nominations'   Note there were other posts about similar behavior, but they were either marked as  or were specific to placement of the bold/italics in relation to the quotes (usually right before/after them).


Say I have the following three phase wye configuration:      Let’s also assume that all three loads have the same constant resistance, therefore in this case the system is balanced and the neutral wire is not carrying any current.   The line to neutral voltage is 230v and the line to line voltage is 400v. The loads are purely resistive, they have no reactive components. Let’s say they each have \$1k \Omega\$ of resistance.  In this case we can calculate the power by simply doing \$P = \frac{V^2}{R} = \frac{230^2}{1000} = 53W \$ . Since we have 3 loads on three different phases, we can multiply 53 by 3 to get the total power; \$53 \cdot 3 = 160W \$  Now instead of wiring up three loads with 4 different cables (even though the neutral isn’t needed in this case) why don’t we try to connect one load in between two lines, i.e, connecting a load using the line to line voltage which is 400v. If we do this the total power is: \$P = \frac{V^2}{R} = \frac{400^2}{1000} = 160W \$  We seem to have the same power as our other configuration.  This of course is no coincidence due to the fact that line to line voltage is \$ \sqrt3 \cdot V_{phase} \$.  So the question is, why always use a 4 wire system (L1, L2, L3 and neutral) as opposed to using a two wire system since both systems deliver the same power? Isn’t it cheaper and easier to wire up some power hunger appliance with 2 wires instead of 4?   I’m aware that 3 phase ac motors require 3 phase in order to function and probably other appliances can’t handle 400v but they can 230v on three different sections.   So what is the main reason why this two wire line to line voltage system is practically never used?  Thanks

Is there a reason, beyond historical reasons, that three phases has become the dominant number of phases?  I am aware of the advantages against one phase and two phase, namely the reduced amount of conductor needed, and that motors can provide torque when stalled (and less pulsation).  Is this solely due to diminishing returns, with only a small increase in smoothness of torque application, at the cost of increased complexity (increased number of wires (albeit of smaller CSA)).  To be clear, the phases are all evenly distributed, that is, five phases separated by 72 degrees.


In film Avengers: Infinity War we see that all members of the Black Order      are dead when Thanos snaps his fingers. But we can assume that it is possible for them to also randomly disappear after snap if they were still live.   If so - why are they helping him? When Thanos      snaps his fingers he could also be randomly chosen to die, but he has the Infinity Gauntlet, he can resurrect himself after that. The members of the Black Order couldn't.   Does Thanos ensure that the Black Order will be omitted by his actions or are they rather fanatically devoted to Thanos's mission and also take the option that they disappear? Why somebody knowing Thanos plan and his random killing procedure still want to serve him. What're the benefits?  Do we know any motivation of that devotion in comics?  P.S. It's not question about who decides which half of the universe will die but why people who know this plan and also can be effected by this plan, still want to serve Thanos.

Although my question is based on the comic mini-series Infinity Gauntlet issues #1 through 6, I'm open to any and all answers (i.e Movies, other comic books etc. etc.) across the Marvel multi-verse.   It was elegantly presented in the Infinity Gauntlet series how Thanos, after collecting all the soul gems snaps his fingers and destroys half the universe.  Additionally, in the recent movie Avengers: Infinity War,       Thanos does it again! He snaps his fingers and destroys half the universe.   However, one thing is unclear to me. In both cases,      Half the universe is destroyed (or obliterated, or erased from existence).   But who decides which half of the universe should not exist anymore? Does the wielder of the Gauntlet choose, or is the Gauntlet (along with the stones) sentient enough to make the decision?


I have a sidewaysfigure, however I'd like to rotate the pdf page containing this table, avoiding the use of pdflscape package. How can I do this?  \documentclass[12pt,a4paper]{article} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{rotating} \begin{document} \blindtext\par % \begin{sidewaysfigure} \centering I'd like to rotate this page \caption{An example} \end{sidewaysfigure} \Blindtext \end{document}

I got a Latex document which renders fine, some content is rotated using the turn environment from the rotate package. Everything works like it should.  Except: It know that it is possible to display a single page in a pdf in another orientation. The document viewer then rotates this page when viewing. This would help the readers of my document to read the turned text.   How is this possible? Perhaps somehow using the pdfpageattr command?   Again: I do not to want to rotate the content, I just want to tell the PDF-Reader that it should rotate the page when displaying.


When we run apt-get update and if it fails, a non zero error code should be returned, but in my case its still 0. See below:  root@ubuntu-base:/home/user# apt-get update Err http://security.ubuntu.com trusty-security InRelease  Err http://packages.siawai.com:8085 trusty InRelease  Err http://ppa.launchpad.net trusty InRelease  Err http://ppa.launchpad.net trusty Release.gpg   Could not resolve 'ppa.launchpad.net' Err http://security.ubuntu.com trusty-security Release.gpg   Could not resolve 'security.ubuntu.com' Err http://packages.siawai.com:8085 trusty Release.gpg   Could not resolve 'packages.siawai.com' Err http://in.archive.ubuntu.com trusty InRelease  Err http://in.archive.ubuntu.com trusty-updates InRelease  Err http://in.archive.ubuntu.com trusty-backports InRelease  Err http://in.archive.ubuntu.com trusty Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://in.archive.ubuntu.com trusty-updates Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://in.archive.ubuntu.com trusty-backports Release.gpg   Could not resolve 'in.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease    W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://packages.siawai.com:8085/repos/dists/trusty/InRelease    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'  W: Failed to fetch http://packages.siawai.com:8085/repos/dists/trusty/Release.gpg  Could not resolve 'packages.siawai.com'  W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/Release.gpg  Could not resolve 'ppa.launchpad.net'  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Some index files failed to download. They have been ignored, or old ones used instead. root@ubuntu-base:/home/user# echo $? 0   What could be the issue? I am running ubuntu 14.04.

Strange thing I have here, when apt is locked by something. Respectively, the error codes don't match up. apt update seems to always return success 0, whereas apt-get update returns a proper error code.  vlastimil@vb-nb-mint ~/Development/bash $ sudo apt-get update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/  vlastimil@vb-nb-mint ~/Development/bash $ echo $? 100  vlastimil@vb-nb-mint ~/Development/bash $ sudo apt update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/  vlastimil@vb-nb-mint ~/Development/bash $ echo $? 0   apt's location:  vlastimil@vb-nb-mint ~/Development/bash $ which apt /usr/local/bin/apt   apt's version:  vlastimil@vb-nb-mint ~/Development/bash $ apt-show-versions apt apt:amd64/xenial-updates 1.2.12~ubuntu16.04.1 uptodate   I originally wanted to use apt for the manual upgrade script, but this changes the situation. Does someone understand error codes and such in order to help me with this?


In the code below, the diamond characters (\4) are not printed immediately but after the loop is completed. Any ideas why?  from os import system from time import sleep  def load():     system('cls')     i = 0     sleep(1)     print("\n\n\n\n\n\n\n\n\n\n\n\t\t\t Loading ", end=' ')     for i in range(6):         sleep(1)         print("\4", end=' ')         sleep(2)  load()

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


Is there any command line to see the missing files on Linux. I have a list of files start from 000 to 073 in the terminal folder on MobaXterm. But as you see in the picture below 070 is missing. Thanks

I have thousands of files named 1.txt 2.txt and so on. Some of those files are missing. Which would be the easiest way to find out which files are missing?


This would go in the recent activity page.

I think it would really help if you get notified that a question of yours was closed.  Especially for the multi-site power user, usually (at least for me) a question is asked and then left alone for while. I rely on the network-wide inbox to tell me when someone has commented or answered, but if I don't receive any messages then I tend to assume that the question wasn't answered or even noticed. It's only when I check the question a day or two later to see what I can add do I find out it was closed.  This would be especially helpful for duplicates, where the answers you need are already there. A message to the effect of, "Closed as duplicate of question" is just like notifying me that a new answer has been added!  Unfortunately, question closures can remain unnoticed by their askers until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason. We should notify users of these question closures so that they can improve them and learn from their mistakes.  Could closed questions get added to the inbox?


Free modules over a commutative ring $R$ with $1$ have well-defined rank.      I have been wondering if there is a ring $R$ such that there are free modules $M'\subset M$ with $\operatorname{rank}(M')>\operatorname{rank}(M)$ for a while, but can't come up with examples or a proof of the contrary in general.    All I know is that this never happens if $R$ is a domain, since you can consider $M'$ and $M$ as vector spaces over the fraction field of $R$.

I'm trying to prove that if $A\neq 0$ is a commutative ring and there is an injective $A$-module homomorphism $A^m\hookrightarrow A^n$ then $m\leq n$ must necessarily hold.    This is exercise 2.11 from Atiyah and MacDonald's Introduction to Commutative Algebra, but unfortunately all the solutions available online are either very sparse with regard to this question or seem to use (to my surprise) a generalized version of Cramer's rule. Is there perhaps some other "cleaner" approach to solving this problem?


Look at the endings of the following words:  blight, bought, breadth, brought, caught, delight, depth, fifth, fought, fourth, fright, freight, height, light, plight, taught, thought, width, ...   As you may have already noticed, some of the words in that list end in ht, whereas the rest of them end in th. I have some questions regarding those endings:  I. Do all words of the English language that end with ht end, actually, with ght?  II. Is there any rule of thumb out there that helps one to recall (or determine) when the ending of a given word is th and not ht (or the other way around)?  Thanks in advance for your insightful replies!

Some words end in th (length, width), and others end in ht (height, fight, tonight, caught).    I sometimes have difficulties in spelling such words because I don't know which ending to choose. Is there any rule or pattern (even localized) in choosing one or the other?


How are you supposed to to start a new paragraph or line break on here using a basic keyboard? Or maybe I should ask "What's the preferred method?", as using the normal button (Enter) will post a question or comment and not a line break.  This happens when using Chrome or the Stack Exchange app on Android. The Enter button posts on either questions, answers, or comments. I have figured out to now do what I want using basic HTML, however not everyone will do this. It could also be the reason why I am seeing extremely long questions that are quite hard to read.  I understand about not having breaks in the comments. It's the answer and questions part I can't work out.

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


When I lived in there, I got to know John  When I was living in there, I got to know John.  While I was living in there, I got to know John.  While I lived in there, I got to know John.  I have been long confused by the usage of when and while, and I'm not sure whether the four sentences are totally correct. Please explain in detail, thanks!

He left the house _ I was still sleeping   Would this sentence be better completed with when or with while?


This is basically the opposite of   I'm not looking for an antonym. I'm looking for a synonym for inquisitive or curious that is more negative, like the second definition here:   I realize that this is a secondary definition of inquisitive itself, but in common usage the term is used in either a positive or neutral tone. The second definition is not usually inferred in written language.  The phrase might be "Asking too many questions might make you seem _____ to a potential employer". Currently I'm using "overly inquisitive" but it feels redundant based on the true second definition of inquisitive.  EDIT: The suggested duplicate is slang which is not what I'm looking for. See  which also notes the issue with "inquisitive" and the need for the redundant "overly" modifier.

What is a good word(s) for someone who excessively asks for information that they have no business knowing?  This person constantly asks what other people have on their schedule. This same person (and I apologize if I am getting too personal) was recently caught rifling through other employee schedules. I have terminated the employee and was issuing a termination letter.


This is the message you get when you try to vote comments more than once in fifteen seconds, in the android app:     A vote of comment can only be submitted every 15 seconds   Shouldn't it be:       A comment vote can only be submitted every fifteen seconds.   OR     You can only submit a comment vote every fifteen seconds   ?

I came across this interesting toast message when voting on comments in the Stack Exchange Android app:     A "vote of comment"? Perhaps the message should be the same as on the site: You may only submit a comment vote every X seconds. Additionally, on the site I am rate-limited to five seconds, so the message is doubly wrong. Yet, the rate-limit doesn't seem to be strictly enforced. Sometimes I get this message, and at other times it lets me vote as many times as I like. There is no toast message, or any indication really, when you try to upvote a comment that you have already upvoted. Edit: this has been fixed.


In the following codes, I kept on getting the same error although I rechecked it for more than 15 minutes. For your info, I ran it on sublime text and the error:      TypeError: super() takes at least 1 argument (0 given)     The code is as shown below:  class Car(): """A simple attempt to represent a car."""      def __init__(self, make, model, year):         self.make = make         self.model = model         self.year = year         self.odometer_reading = 0      def get_descriptive_name(self):         long_name = str(self.year) + ' ' + self.make + ' ' + self.model         return long_name.title()      def read_odometer(self):         print("This car has " + str(self.odometer_reading) + " miles on it.")      def update_odometer(self, mileage):         if mileage >= self.odometer_reading:             self.odometer_reading = mileage         else:             print("You can't roll back an odometer!")      def increment_odometer(self, miles):         self.odometer_reading += miles  class ElectricCar(Car):     """Represent aspects of a car, specific to electric vehicles."""      def __init__(self, make, model, year):         """Initialize attributes of the parent class."""         super().__init__(make, model, year)  my_tesla = ElectricCar('tesla', 'model s', 2016) print(my_tesla.get_descriptive_name())

What's the difference between:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   and:  class Child(SomeBaseClass):     def __init__(self):         SomeBaseClass.__init__(self)   I've seen super being used quite a lot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation.


Lagrange's theorem states that if $G$ is a finite group, the order of every subgroup $H<G$ must verify that $|H| \mid |G|$ (the order of $H$ divides the order of $G$)  The reciprocal result is not true, but the only example I could find is the group of even permutations $A_4,$ which has order $12$ and does not have any subgroup of order $6.$    Is there any other 'easy' counterexample of this?

I know that $A_{4}$ is a counterexample to the converse to Lagrange's Theorem. I was thinking that I don't know another one. What other examples are possible?


I tried to open a lot of files (10,000+) with cat and them merging them into one like this:  cat * > ~/Desktop/lol.xml   But it returned this error:  -bash: /bin/cat: Argument list too long   This means that its too long/large, what other way could I do this?

I have a folder with more than a million files that needs sorting, but I can't really do anything because mv outputs this message all the time  -bash: /bin/mv: Argument list too long   I'm using this command to move extension-less files:  mv -- !(*.jpg|*.png|*.bmp) targetdir/


How can you prove (using high-school-knowledge) that the force which acts on one plate of a parallel capacitor is equal  $F = \frac{E \cdot Q}{2}$  Where $E = \frac{U}{d}$ is the magnitude of the electric field beside the plates and $Q$ is the charge on each of the plates?   I can calculate basic integrals (although they're not in high school).

A textbook question requires me to calculate the force of attraction between plates of a parallel-plate capacitor. The answer provided is $\frac{1}{2}QE$.   I am not entirely sure how they arrived at it. The charge on each plate will be $Q=CV$ so from , won't the force be defined as $$F=\frac{1}{4\pi\epsilon_0} (\frac{CV}{d})^2 = \frac{1}{4\pi\epsilon_0} (\frac{Q}{d})^2~ ?$$


Hello i am trying to do so when line that is drawn as the finger moves on the screen (red line in image below) and when the finger is taken off the screen while the red line has crossed the black line i want an integer variable to increase with 1. Both lines has been drawn using UIBezierPath. But i don't know the most precise way to do this.  edit - The black line comes in from the left side.

How do I determine whether or not two lines intersect, and if they do, at what x,y point?


I am able to connect to almost every Minecraft server that I have tried, such as Hypixel and some random ones. However, very few have an issue where I get an error on connect. "io.netty.channel.... Connection refused: no further information." When trying a VPN, I am able to connect just fine. However, a VPN isn't a good option since many servers have a list of IP's from known VPN's to prevent entry to the server. Does anyone know a fix to the problem?  In the video here it shows that I can not connect with a VPN. With one, I am able to connect. The kick saying no VPN's allowed means I have connected, just was kicked in the login event. This happens on Optifine 1.8.8 and the latest release, 1.16.3.

I am getting the following error when I try to connect to a Minecraft server:  This is all servers, not just one. The error says:  io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: Version 1.12  I've tried:  Restarting Minecraft Restarting Computer Uninstalling and Reinstalling Mincraft Uninstalling and Reinstalling Java Altering Firewall Restarting Internet I've messed with my port, made a second windows account, reset netsh winsock Checked hosts Made a new WINDOWS account  The overlay in the bottom right is Geforce's Overlay for game capturing. I don't have any mods installed. A Mojang support ticket wouldn't help. Im desperate.


I have a question concerning Ubuntu folder action ,  I need a script to notify me when a file is add to a folder or the folder changes ,  is there any possibility for that.  I found some articles about cron and inotify but it was complicated .. i need an easy   method can any on help me .

The situation is:  I have a shared directories from many other machines where other users work on.  I need to be notified whenever a user create, modify or delete a directory or file from his local directory which I share using smb...  It looks like the folder actions in the MAC systems..  Is there a software that do that?!  If there is no such application, any help in writing a script for that is appreciated..  Thanks in advanced...


I need help to prove this: If $\gcd(a,b)=1$ then $\gcd(a+b, a^2-ab+b^2)$ is equal to $1$ or $3$. I have done this: Let $d$ be the g.c.d. of $(a+b, a^2-ab+b^2)$, then $d$ divides $a+b$ and $d$ divides $a^2-ab+b^2$. That implies $d$ divides $(a+b)n + (a^2-ab+b^2)m$, for some $n,m$ integers. Let $n$ and $m$ be $a$ and $1$ respectively, then $d$ divides $2a^2+ b$. With the same argument but with $n=b$ we get $d$ divides $a^2+2b$. Then $d$ divides $3a^2+3b^2$. That implies $3a^2+3b^2 \geq d$, and we get that $3 \geq d$, because $\gcd(a^2+b^2)=1$. So $d$ must be $3$ or $1$ because if $d =2$, $d$ has to divide $a^2+2b$ and $2a^2+ b$, but we see that no. So $d=3$ or $1$. I don't know if I did it well.

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


As per my understanding of the big bang theory, it stipulates that the entire universe was contained in this single point of "pure energy" and that the big bang happened when the universe rapidly expanded out. This, again as per my understanding, is derived from the observation that the universe seems to be expanding right now (Red-shift etc.) and so if we were to go back in time, the universe would be smaller and at some point back in the past, the universe would've been contained in one single point.   However, my question is that if the universe turns out to be infinite then how can something infinite be smaller or contained in a single point? If you go back in time, the universe should be the same size as it is now (infinite) because it has always been infinite. An expanding universe would not be infinite but be finite, you would be able to traverse the entire diameter of it. A universe that expands out of something has a boundary, and so by definition should not be infinite. So, if the universe turns out to be infinite, will we have to look for an alternative to the big bang theory? I hope my question based on a meagre understanding of physics is clear.

TV documentaries invariably show the Big Bang as an exploding ball of fire expanding outwards. Did the Big Bang really explode outwards from a point like this? If not, what did happen?


I am interested in clarifying the distinctions between the two terms in the title to this query, the problem being that they can and have been used interchangeably in the literature. Links to similar CV questions give a clear meaning to relative importance as a within model metric summarizing the magnitude or impact of a feature; this is distinct from but relatable to the statistical significance of that parameter. Also of note is the apparent fact that relative importance can be readily estimated within the context of statistical models but much less so, if at all, wrt many black box machine learning algorithms (NNs, RFs, xgboost, etc.). Effect size can be used, on the one hand, wrt "the magnitude of the differences between groups" (); as well as, on the other, for determining optimal sample sizes as a function of the magnitude of a desired effect () If there are additional uses for effect size, I'm interested in learning about them. Ok, so both concepts evaluate the magnitude of something but effect size has wider meaning and uses than relative importance. What is a precise definition of effect size?

The effect-size tag has no wiki. The  does not provide a precise general definition. And I have never seen a general definition of the effect size. However when reading some discussions such as  I am under the impression that people have in mind a general notion of effect size, in the context of statistical tests. I have already seen that the standardized mean $\theta=\mu/\sigma$ is termed as the effect size for a normal model ${\cal N}(\mu,\sigma^2)$ as well as the standardized mean difference $\theta=(\mu_1-\mu_2)/\sigma$ for a "two Gaussian means" model. But how about a general definition ? The interesting property shared by the two examples above is that, as far as I can see,  the power depends on the parameters only through $\theta$ and is an increasing function of $|\theta|$ when we consider the usual tests for $H_0:\{\mu=0\}$ in the first case and $H_0:\{\mu_1=\mu_2\}$ in the second case.    Is this property the underlying idea behind the notion of effect size ? That would mean that the effect size is defined up to a monotone one-to-one transformation ? Or is there a more precise general definition ?


For the bare version of Vim that comes with WSL on Windows 10, attempts to "yank to registry *" will fail with the following error message:    One way to reproduce the symptom is to assign the following mapping, and invoke it by pressing Y in normal mode.  nnoremap Y :let @* = expand("%:p")<CR>

To get this off the table now and avoid any confusion ... This is for Linux running in Windows 10(ubunutu), also known as WSL. Its not the same as cygwin and windows or stand alone linux. It is it's own beast.  So please keep the above in mind before I am referenced with all the articles I have already read or comment that this has been asked before.  Does anyone know how to make the copy and paste work off of the windows clipboard OR the WSL Ubuntu Linux emulation? I am using set clipboard=unnamedplus. It's not working, not matter what combinations I use like yy, "+yy, etc.  Yes, it's vim-gtk with +xterm_clipboard support.


If two equal and opposite forces act on a surface, can I say the pressure is zero because the net force is zero? How can pressure be non directional when force as a direction? How can the pressure of a liquid be explained at the molecular level in liquids? If I exert a force vertically on a liquid, why does it move sideways?

I have a final exam tomorrow for fluid mechanics and I was just looking over the practice exam questions. They do not provide solutions. But pretty much I have to define pressure at a point and also say why pressure is scalar instead of a vector.  I am thinking pressure at a point is $P=\lim_{\delta A \to 0} \frac{\delta F}{\delta A}$. Please let me know if I am wrong.   But I do not know at all why pressure is a scalar instead of a vector. I know it has something to do with $d \mathbf{F}=-Pd \mathbf{A}$


The apacite package does not fully handle the apa requirements for capitalization, how can I fix it?  The correct citation looks like this     Stevenson, R. L. (2004). Dr. Jekyll and Mr. Hyde. New York, NY: Random House, Inc. (Original work published in 1886)   However in my entry, the capitalization of the title is messed up. As Jekyll and Hyde are proper nouns  My .bib entry:  @book{JekyllHyde,     title={Dr. Jekyll and Mr. Hyde},     author={Robert Louis Stevenson},     publisher={Bantam Dell},     address={New York, New York},     year="2004",     isbn={0-553-21277-X},     note="Original work published in 1886" }

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


When I tried to solve some certain math problem (an inequation) for pivate exercise purposes, I had to prove that  $x+\frac{1}{x} \ge 2 \quad ∀x\in ℝ^+$, I solved it with tools from differential calculus (prooving that there is a local minimum at $(1,2)$ etc), because this was my only concept. But I guess one can prove this in a much simpler way, but I strangely do not get it — So: How can one prove this the most effective way?

I was asked to prove that:   $$x + \frac{1}{x}\geqslant 2$$  for all values of $ x > 0 $  I tried substituting random numbers into $x$ and I did get the answer greater than $2$. But I have a feeling that this is an unprofessional way of proving this. So how do I prove this inequality?


First post as a complete beginner. Following Blender Guru's Coffee cup tutorial. Modelled the cup, everything seems to be going well but my render output is rubbish and I'm struggling to fix it. I've spent the last 2 hours searching the net/spent 2 hours trying to sort the handle out. Lots of black spots/areas on the render:     If anyone can help these are my settings:   Reflective Caustics On  Refractive Caustics On Max Bounces 8  Diffuse 4 Glossy 4 Transparency 8 Transmission 8 Volume 0 Denoise On In Layers -I've upped Min Light Bounces & Min Transparent Bounces to 5  Normals facing the right way. Blender 2.80 Cycles - GPU rendering Tried 256 / 512 rendering samples too.   I've even just created a new project, simple cone and set it to glass and same issue.

I was messing with UV unwrapping, and this is what happened:    I reset the UV map, but to no result. For reference, I have older render of the same glass (the version which was unfortunately overwritten):    How to make it smooth again?  It looks like there are two faces in the same place oriented other ways.  That's how face orientation view looks like: How to rotate these faces?


I'm trying to call a function one argument is current time and Date and other is a file name, They both are strings. How can I convert Date() to a string. I tried:  writeToFile(content: Date(), fileName: "jm.txt")   but it gave me error:     Cannot convert value of type 'Date' to expected argument type 'String'

How do I convert, NSDate to NSString so that only the year in @"yyyy" format is output to the string?


I want a button on a custom object (which is similar to standard Contact object) to send email. On button click, an email should be sent. I tried with location.replace('/email/author/emailauthor.jsp?retURL=/{!Temporary_Contact__c.Id}&rtype=003&p2_lkid={!Temporary_Contact__c.Temporary_Contact_Email__c}&template_id=00X1F000000DbdC&p5=&save=1'); but on button click, an email screen page appears to select additional details. Like this- I do not want this screen. I appended &save=1, yet the screen appears. Please someone guide me how to send email just on a single button click!  Thanks in advance.

I have created custom button to send visualforce page url with opportunity id in opportunity detail page. How can i send URl like '' with creating controller or page.


Using Postgres:  SELECT users."name" AS "name"     , array_to_json(array_agg(sites)) as sites FROM remodel.users AS users JOIN remodel.user_sites AS user_sites     ON users.id=user_sites.user JOIN remodel.sites AS sites     ON sites.id=user_sites.site GROUP BY "users".id ;   currently produces  "Toby";"[{"id":1,"name":"Village","created":"2015-08-10T15:22:36.622298"},          {"id":2,"name":"Manor","created":"2015-08-10T15:22:43.614551"}]" "Amy";"[{"id":3,"name":"Park","created":"2015-08-10T15:22:48.810872"}]" "Anne";"[{"id":2,"name":"Manor","created":"2015-08-10T15:22:43.614551"},          {"id":1,"name":"Village","created":"2015-08-10T15:22:36.622298"},          {"id":3,"name":"Park","created":"2015-08-10T15:22:48.810872"}]"   however I would like not to have the "id" field in the JSON output.  changing the sites selection to  array_to_json(array_agg(row(sites."name", sites.created))) as sites   causes the fields to lose their names   "[{"f1":"Village","f2":"2015-08-10T15:22:36.622298"},   {"f1":"Manor","f2":"2015-08-10T15:22:43.614551"}]"   and attempting (what would be a horrible) sub selection  , array_to_json(array_agg((SELECT "name", created FROM sites))) as sites   understandably throws an     ERROR: relation "sites" does not exist   And removing the id with a select in the from clause prevents joining the tables.  I'm looking to preserve the column information as well as I can,  not just for conversion to JSON but for inclusion in much larger and complex queries,  so performing the array selection without using JSON is preferred.

I have a query like:  SELECT a.id, a.name, json_agg(b.*) as "item"   FROM a   JOIN b ON b.item_id = a.id  GROUP BY a.id, a.name;   How can I select the columns in b so I don't have b.item_id in the JSON object?  I have read about , but it returns a JSON object like:  {"f1": "Foo", "f2": "Bar"}   I would need to remap the JSON object once it is fetched to match the proper column keys. I'd like to avoid that and keep original column names.


Let us say that $n = 5$. The number of generators of a finite cyclic group would be the number of numbers that are relatively prime to $n$ and the identity element.   Here, when $n=5$, the number of generators would be $2,3,5$. We would also have to include the identity element generator, $e$ for each finite cyclic group. Thus the number of generators of a cyclic group with order $5$ would be 4.  Similarly, when $n=12$, the number of relatively prime generators would be $2,3,5,7,11$ and $1$ for a total of 6.    I think I understand how to find the number of generators of a cyclic finite group, but I can't really explain why.  I also can't draw the connection to this statement:      The order of an element in a finite cyclic group is the smallest positive integer $n$ such that $a^n=e$, denoted ord $a$.  How would I prove that the order of an element $a \in G$ equals the order of $G$? What am I failing to consider?

How many generators does a cyclic group of order $n$ have? I know that a cyclic group can be generated by just one element while using the operation of the group.  I am having trouble coming up with the generators of a group of order $n$.  Any help would be great!  Thanks!


Assume I have a MacBook Pro 2019 with Big Sur installed. My goal is to have two different partitions on the same physical SSD. I want to have two separate installations of Big Sur. My question is: How can I make sure, that nothing I do on either of the partitions has an effect on the other partition? Assume I install some software with admin rights on partition B. Can it be made sure, that the program installed on B has no possibility to read or manipulate any data from partition A, for example system files?

I have a MacBook with 1TB SSD. I want to have two separate partitions with two independent macOS installations. I want to make sure that none of the partitions have any kind of possibility to interact with the other, I want them to be as separated as if they were physically separate. Is this achievable with, for example, FileVault for each of them? Edit: My question is neither "how can I install two different macOS versions on two different partitions on one SDD", neither "how do I use FileVault", etc. I know how to do all of that. I want to make sure that there is no interaction between the partitions possible. Can this be made sure with the above approach? Is it sufficient?


My professor gave us the following definition: Let $R$ be a commutative ring. $r \in R$ is prime if $r.R$ is a prime ideal. Then he concluded that this definition tells us $r \notin R^*$ but I do not understand why, could anyone explain this to me please? Answer(based on comments given below the question): A prime ideal is by definition a proper ideal, and if $r$ is a unit then $rR = R.$ The proof can be found in this link  and here it is: Proposition. Let $I$ be a left or right ideal of a ring $R$ with unity. Then $I = R$ if and only if $I$ contains a unit. Proof: Let $I$ be a left ideal of $R$. If $I = R$ then $1 \in I$, so $I$ contains a unit. Conversely, if $u \in I$ is any unit, let $u^{-1}$ be its inverse. For any $r \in R$, we have $r = r (u^{-1} u) = (r u^{-1}) u \in I$, because $I$ is a left ideal. Thus $I = R$. This logic is easily adapted for right ideals to show the same result. Certainly it then is true for two-sided ideals and ideals of unital commutative rings.

I have to prove that if $I\subseteq R$ is an ideal, and $1\in I$, then $I=R\,$. So I know $I\subseteq R$ is an ideal if $a,b\in I$ implies $a+b\in I$, and if $a\in I$, $r\in R$, then $ra\in I$. I'm finding it hard to put this into words. Since $1\in I$ and $I\subseteq R$ is an ideal, then let $a=1$ and $r=1$ so $1\cdot 1\in R\,?$


Looking for a simpler method here.  I am trying to split up / cut / slice existing polygons by using existing poly-lines. An example would be splitting a water body or land parcel at the point where a bridge/road crosses it. But the road network may not necessarily result in a closed loop.   Since the poly-lines are not necessarily interconnected or continuous, creating a polygon from them is not an option (which eliminates using the split tool). Also, I have tried using a topology with the geometry, but it keeps failing, probably due to the large/complex geometry.  Current Workflow: I have accomplished this with the Feature to Polygon tool, combining the lines and polygons together, but it creates additional unwanted polygons anywhere a loop closes. I created a mask of the original polygons, and used this with the overlay->erase tool to remove the unwanted polygons. This still leaves some unwanted geometry (mostly slivers), but is somewhat workable.  This seems like an extremely convoluted and round-a-bout way to accomplish (what seems like it should be) a very simple task.  Other than manual edits, or using a topology, is there is tool that could accomplish this in a single step?  Using: ArcMap \ ArcInfo Desktop 10 SP5  Edit 1: In my case, it is not actually roads as mentioned above. I have water polygons for a coastal area, and need to split the polygons where rock dams or levees have been put across the waterways. Which are typically not interconnected.   The water polygons have been simplified and repaired, to the point where I would no longer call the data "dirty" just complex and large. But I've got the workaround mentioned above working for this case.  I'm looking more "in general" for a tool that can simply divide polygons using polylines.  Edit 2:   Mapperz:Thanks for the Model Builder suggestion. I am going to use that as a stop gap solution, for now.  Jakub: Thanks for the suggestion. I'm not opposed to a programmatic solution or developing a custom tool, although I've never made one before. I have programming experience, but not in conjunction with Arc. I'd prefer something that directly cuts the geometry though, instead of following the roundabout logistics above. In theory that should reduce resultant gaps, since it wouldn't be subject to multiple iterations of cracking/clustering. Although, I'm not sure that would be as easy or even possible.  Edit 3: I'm looking for something to function like on the left in the image.

In looking at , it occurred to me that I am not sure how one would go about using geoprocessing tools in ArcGIS to split a polygon with a line programatically.  Manually, you would use the  or the , but how would you accomplish the same task using modelbuilder or python groprocessing scripting tools?  Right off the bat I think of all of the tools in the  like Union, Identity, etc, but those are all Polygon-Polygon tools, NOT Polygon-Line tools.  Even the  is Polygon-Polygon.  Any ideas?


I have some Canon APS-C cameras which only have 9 or 11 AF points and I find the focus points are mostly in the center of the view finder. I work around it by finding the closest point, half-pressing the shutter to focus, then reframing and taking the shot. Sometimes the movement or 1/8 second delay costs the photo.  Is this the best technique for taking sharp photos with only a few auto focus points? I'm mostly interested in shooting people during events/weddings or on the street.

What is the best way to get tack sharp portraits with shallow depth of field when lacking an auto focus point where I want to focus. I don't want to crop and "focus and recompose" is not an option since the shallow depth of field will throw the person out of focus. Of course a precise measurement of the distance is possible, but also very cumbersome and to do manual focus is a bit of a guessing game. Any ideas or do I have to relax my requisites?


Hi developers on Stackoverflow! I have a problem on this exercise:  "Write a program that asks user to input a list of N names using the keyboard, then user continues inputting a name for searching. The program should print out the position of this name in the list. In case the name doesn’t appear in the list, the program should print out value -1."  Here is my code:   package Tut_01;  import java.util.ArrayList; import java.util.Scanner;  public class Ex_04 {     public static void main(String[] args) {         Scanner sc = new Scanner (System.in);         ArrayList<String> elements = new ArrayList<> ();         System.out.print ("How many numbers do you want to input: ");         int n = sc.nextInt (); // Count numbers that user want to input          // Ask the user input values          for (int i = 0; i < n; i++) {             System.out.print ("Enter your name " + (i + 1) + ": ");             String name = sc.next ();             elements.add (name);         }          System.out.println ("Which name do you want to search ?");         String searchName = sc.next ();          // Problem?         for (int p = 0; p < n; p++) {             if (searchName == elements.get (p)) {                 System.out.println ("Your name is at index " + p + ": " + elements.get (p));             }         }      }   Here is my console:  How many numbers do you want to input: 2 Enter your name 1: Hoa Enter your name 2: Hieu Which name do you want to search ? Hoa  Process finished with exit code 0   I mean I don't know why my code stops there instead of printing the position of the index. Anyone knows this issue? Thanks for showing me!

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


I have upgraded the kernel to linux 4.2.5-040205-generic,this problem will not cease to bug me  I am currently running my laptop on the nomodeset kernel parameter,and am not able to do anything worthwhile on my laptop

My system freezes completely at random, frequent intervals. I started to have the same problem in Ubuntu 14.04 but after recent upgrade to 16.04 there is no improvement, in fact it seems worse.  When it happens, it's impossible to do anything. I've tried everything in this thread:  but nothing works, I have to hard reset. I have read all the system logs and journalctl but there is never any information that could help diagnose the problem.  This is a dual-boot system with Windows 10 and there's no problem there, so it's not defective hardware.  My laptop has an Intel Bay Trail processor (Pentium N3540)


I have to solve this exercise WITHOUT Sylow theorems and Cauchy Lemma. In fact this exercise is given in the Cayley's theorem section.     let $G$  be a group of order $2^mk$, where $k$ is odd. Prove that if $G$ contains an element of order $2^m$, then the set of all elements of odd order in $G$ is a normal subgroup of $G$.   The author gives this hint     Consider $G$ as the permutations via Cayley's theorem, and show that it contains an odd permutation   now by Cayley I have an imbedding of $G$ in $S_{|G|}$ (call $\varphi$ the injective homomorphism) using the left regular representation. Now, let $g \in G$ be the element of order $2^m$. Considering that $\alpha := g \mapsto L_g \in \text{Im}\varphi$, then $\alpha$ is a regular permutation composed by $r$ disjoint $2^m$-cycles, and so $\alpha$ is odd (an odd number of odd cycles)  but then? I don't know how to use the hint that I hope I've proved:(  I checked for similar question and I didn't found any, if someone think this is a duplicate,link the question and I'll delete this immediately:)

I searched in the existing post and didn't find this problem. I am sorry if someone else have already posted.     Let $G$ be a group of order $2m$ where $m$ is odd. Prove that $G$ contains a normal subgroup of order $m$.   There is a hint:     Denote by $\rho$ the regular represetation of $G$: find an odd permutation in ${\rho}(G)$.   I don't know how to find an odd permutation in the regular representation. I am wondering whether all the elements of $G$ of odd order form this subgroup in this case.  Thanks.


How can I make only the subsection headings italic and remove boldface in article document class ?

Are there some magic lines to be placed in the preamble that would, like in CSS,  specify how each generic section or subsection in the whole document should be formatted?


My website has a message on the index file and it will be shown on a special condition. When I search for my site via keywords, google search shows the message.  My code looks like as below

For               instructions on how to resolve this issue contact admin . Thank you!.

   On some special condition, the message "For instructions on how to resolve this issue contact admin. Thank you!" will be displayed on the index page.  By default, the div will be display properly will have the value none via JavaScript and users will not see the div and the message. For special users who access our website via query parameters like index.html?cc=splashMessage will able to see the message by enabling the div display with value block.  In the google search engine, when I search about my website it always shows my website with the splash message. Google indexed my index file with the splash message, also via Google analytics I didn't see traffic via query parameters.  How to ignore this splash message on google search results from SEO?

According to Google Webmaster guideline "Hidden text" is not acceptable. Which means I do have a dov containing some good amount of title or paragraph with link or images if I make it display:none in my CSS, it is against Google crawl policy (thats how it seems).  My question is if I use it within media queries how Google will react? I mean   @media handheld, only screen and (max-width: 767px) {     body {     }     .mobile-friendly{ display:none;} }   for fluid website development we often have to hide certain contents to make the site mobile friendly. Rather than making css for each browser we now code css within same file and define browser behaviour using media queries.  So is google take any action against it?  --Additional Piont/Question Thanks @John Conde; You are right. Google still is not taking much action against Hidden text. But still pro SEO suggest not to use it. In Example using logo within tag on wordpress and text-indenting them to -9999px ... there are more of the tricks involved.  As I am trying to play safe; this is annoying me a lot.    You see they clearly mention CSS display properties. They didn't explain about these media query exception! As I am trying to be over sure and as Google didn't mentioned anything about it I'm still confused on this question. Any Advice?    Thanks for the edits by editors. I'm new here sorry for any inconvenience.  Why you may require to hide few contents? The blog I'm desiring is responsive. I want to let my visitors know about it's mobile friendly design. I have placed few mobile icons for better user experience and usability assurance. But I want them visible only on desktop browser not on mobile. Because if they are already browsing from mobile they don't needed to be notify. Infact I can rather tell them this site can be used as web apps while they are on mobile.


Let $f : \mathbb{R}\rightarrow\mathbb{R}$ be a function with the property $f(x + y) = f(x) + f(y)$ for all $x,y\in \mathbb{R}$. Assume that $\displaystyle\lim_{x\rightarrow 0}f(x) = L$.  1.Calculate $L$.  2.Show that $f$ is continuous at all points in its domain.

The  asks about functions $f \colon \mathbb R \to \mathbb R$ such that $$f(x+y)=f(x)+f(y).$$ It is a very well-known functional equation, which appears in various areas of mathematics ranging from exercises in freshman classes to constructing useful counterexamples for some advanced questions. Solutions of this equation are often called . Also a few other equations related to this equation are often studied. (Equations which can be easily transformed to Cauchy functional equation or can be solved by using similar methods.) Is there some overview of basic facts about Cauchy equation and related functional equations - preferably available online?


I am trying to understand the precencehow limit orders are fulfilled.   Example: Let's say on a given day only Alice and Bob send a sell order for Apple stocks.   Alice, sell APPL at least: 450 Bob, sell APPL at least: 500   Joe sends a buy bid of at max: 550, now what happens? Does Joe get Alice or Bob's share, and at what price?  P.S. the latest selling price of APPL is irrevelant I guess, since there are only two sellers.

Say a security has been trading at under $20.10, and there are limit orders selling at $20.10 and $20.21. Then Simon issues a limit order to buy at $20.21. According to , Simon would end up buying shares at $20.10.  Why does the exchange favor the buyer here?  I.e., why does the transaction execute at the seller's limit of $20.10 instead of the buyer's limit of $20.21?  (I.e., why don't Inara/River get to sell at $20.21 / above their limit, but Simon gets to buy at $20.10 / below his limit?)  Is the example flawed?  If it makes a difference, I'm mainly curious about NASDAQ and NYSE.  I tried Googling for specs (e.g. ), but couldn't find anything.  Only found that some  implementation executes the average of the buy/ask.  Just curious how the system works.