I cannot create a partition on free space, neither can I delete the extended partition.  Disk utility says  Cannot delete extended partition while logical partitions exist

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I'm using SDL 2 to create a small 2D game. Based on the docs, this is what I would do:   SDL_Surface *surface = SDL_LoadBMP("image.bmp");  SDL_Texture *texture = SDL_CreateTextureFromSurface(renderer, surface);  SDL_FreeSurface(surface);  ...  SDL_RenderCopy(renderer, texture, NULL, &dest);   Since I have every single sprite in a different bmp, this would cause hundreds of texture objects to be created.  Another solution would be to create a single SDL_Surface based on all the bmp files, create a single texture object from it and then blit it with something like this:  SDL_RenderCopy(renderer, texture, &src, &dest);   I use  src to select the sprite I'm interested into blitting.  I know SDL 2 takes advantage of 3D acceleration and I'm not an expert of 3D graphics programming, but I do know that selecting the current texture is an operation that is very expensive. However, I'm not sure that a SDL texture is translated into a real Texture.  So my question is: are these 2 approaches the same in terms of performance, when using SDL 2?

I have been programming a 2D game in C++, using the SDL2 graphics API for rendering. My game concept currently features effects that could result in even tens of thousands of  sprites being drawn simultaneously to the screen. I'd like to know what can be done for increasing rendering efficiency if the need arises, preferably using the SDL2 API only. I have previously given a quick look at OpenGL-based 2D rendering, and noticed that SDL2 lacks a command like  int SDL_RenderCopyMulti(SDL_Renderer* renderer,   SDL_Texture* texture,                         const SDL_Rect* srcrects, SDL_Rect* dstrects,   int count)   Which would permit SDL to benefit from two common techniques used for efficient 2D graphics:   Texture batching: Sorting sprites by the texture used, and then simultaneously rendering as many sprites that use the same texture as possible, changing only the source area on the texture and the destination area on the render target between sprites. This allows the encapsulation of the whole operation in a single GPU command, reducing the overhead drastically from multiple distinct calls. Texture atlases: Instead of creating one texture for each frame of each animation of each sprite, combining multiple animations and even multiple sprites into a single large texture. This lessens the impact of changing the current texture when switching between sprites, as the correct texture is often ready to be used from the previous draw call. Furthemore the GPU is optimized for handling large textures, in contrast to the many tiny textures typically used for sprites.   My question: Would SDL2 still get somewhat faster from any rudimentary sprite sorting or from combining multiple images into one texture thanks to automatic video driver optimizations? If I will encounter performance issues related to 2D rendering in the future, will I be forced to switch to OpenGL for lower level control over the GPU?  Edit: Are there any plans to include such functionality in the near future?


I've seen several times before that I got many upvotes on questions that are marked as duplicates, even after the mark.  Does it make any sense? I mean, is it constructive? Why should we upvote duplicates if there have been a better explanation of the same problem before? Why don't you upvote it instead?

Is upvoting duplicate questions really following the guidelines of the all mighty alt text?     The question shows research effort; it is useful and clear   I raise this question after recently receiving this comment on a  question.     @FreshPrinceOfSO Then close-vote on that basis, please. At the same time, there's nothing wrong with up-voting a question that has already been asked. – Jonathan Sampson   I don't believe the question shows research effort because the OP would have discovered the duplicate questions. Further, I don't think it's useful being a duplicate. Given these two criteria, it seems like the question merits a downvote and a close.   In my opinion, upvoting the question just raises the question to be "valid," which I don't feel supports the principle of voting up.     Voting up is how the community indicates which questions and answers are most useful and appropriate.   ... and it should be discouraged.


I have installed Ubuntu 20.04 alongside Windows 10 (dual boot). I did it by installing Ubuntu on a USB and then I installed Ubuntu from the USB. I have already done it for my old pc and, in that case, both the Operating Systems worked perfectly (was it just the begginner's luck?) ! In this latest case (my new pc), instead, Ubuntu is really slow and I do not understand why ! When I say that Ubuntu is slow, I mean that everything is slow: if I open the broswer web, if I open applications like RStudio, Spyder etc... If I do all these things too fast together, it crashes ! Is it maybe due to the characteristics of the pc ? What can I do to fix this issue ? I have also to say that I have installed also xubuntu (for a mistake... I did not remember how it happened). Also this fact could be a source of slowness ? Below are the infromation about my pc:  RAM: 4,00 GB (3,83 usable) CPU: Intel(R) Celeron(R) N4000 CPU @ 1.10GHz   1.10 GHz System type: 64-bit operating system x64-based processor Card name: Intel(R) UHD Graphics 600  Sorry if I am not very precise in the description but I do these things without a deep consciousness and knowledge. Thank you in advance !

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


When the water is diverted to the shower, water leaks back from inside the faucet towards the wall.  How do I fix it?

Here's a photo of my setup:    The hose and nozzle hanging down in the picture make up the shower head assembly (it is a hand shower that can hang up on the wall or be removed for directed use). You'll note that the shower is running, but a good portion of the water flow is still leaking through the faucet (with a corresponding loss in pressure at the shower outlet) even though I have the diverter set as forcefully as possible to direct water to the shower head.   I'm assuming that there is some component inside the faucet that needs to be replaced, but I'm not sure which and/or how to go about it. Any suggestions?


As far as I know, Version 1809 of Windows 10 was the last version that worked for my EMU1212M sound card and EmulatorX3.  Both of these are fairly expensive to replace.  I have both of them working in Version 1809 right now; unfortunately, my Windows 10 1809 has become corrupted and the Microsoft store and Windows Update no longer work.  Is there somewhere I can legally get Version 1809 of Windows 10?  I got Windows 10 for free many years ago after upgrading from XP (Paid big Bucks) to Win 7 (Paid Big Bucks) to Win 8 (Was pretty cheap) and finally Win 10 (which was free for me).  I don't see an install.ESD file in the $WINDOWS.~BT folder on my 1809 instance:   NOTE: I also have Emulator X3 and my 1212M working in a test copy of Windows 7 right now; unfortunately, I'm afraid if I upgrade that working Windows instance, I will be forced to select a version later than 1809 that will not support my EMU1212M.  I do have valid Win XP, Win 7 and Win 8 license keys but they were all used to upgrade to Windows 10 so I don't THINK I am technically allowed to use them for an extended length of time unless I perform a permanent downgrade.  I did not get a Windows 10 license key.  I got Win 10 through a free upgrade offer and it is tied to my Windows Live email account.

I need to repair my Windows 10 installation. Where can I get a clean ISO (with install.wim, no Install.ESD, so that I can run DISM against the WIM) of the specific Windows 10 build required for this?  In my case, I need the Anniversary update (Build 14393), Creators Update (Build 15063) or Fall Creators Update (Build 16299.15).


I'm currently running Railo 4.0.4.001 final on an Amazon 64-bit Linux m1.medium cloud instance which has 3.75Gb of memory.    My setenv.sh script is currently starting Railo / Tomcat with ...  JAVA_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=256m ";   My questions is this ... Can/should I use higher memory settings?  This machine is strictly an Apache/Tomcat/Railo web server with no other applications running.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I wanted to use 3D MAX to create architectural renders, but I have a Mac, so I am looking into Blender as an alternative solution.  The models look amazing and the rendering is fab, but I am struggling to find a tutorial to help me superimpose my model onto the photograph of a street or equivalent. I have to supply images of the model in situ, so I am really hoping there is a way. Please can someone help me?  Thank you

I'm trying to "add" an 3D object onto a photo. I have added the photo to the scene in three ways so far, but none of them render (eevee):   Camera > Background Images Empty a. Add > Empty > Image (Empty gets added to current Collection) b. Add > Image > Backround (Empty gets added to Scene Collection)   These all show up in the 3D View and I was able to align the camera and the object so its perspective matches the scene in the photograph. But when I Render the scene, I only see the object, not the background image.  For the latter, it's simple: Empties are not rendered at all. There are few questions about this, since 2.8 has changed how it handles background images. The most popular seems this one (it includes references to others):      But I seem not to be able to find a method to have the background image render.  Another method might be to use the Compositor (Nodes) to Mix or Alpha Over an Image with the Render Layers. But this does not give the same alignment as achieved with the background image (also this requires that the World background does not get rendered (Alpha channel); for Eevee, this can be achieved by checking Film>Transparent).  What other options are there?  Docs:


I'm using QGIS 2.18.9 on Windows 10. I've created an atlas in composer and when exporting images, the first few will export fine and then the map image becomes corrupt or fills as completely blank. Here is an example of a corrupted image (colored right-side of main map)    I'm using the OpenLayers Statmen plugin for the basemap. I've tried a few others and they either fail as well or do not allow the map tile to be printed at the scale. If it clear cache and reboot it will work for about 7-10 images and then fail again.

I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.


I am using Dell Inspiron 15 R:   4GB RAM  500GB hard drive i5 processor   While using Android studio I generally use these three programs    Firefox browser Genymotion emulator Android studio   While doing this I end up using ~3.7 gb of my physical memory. Will adding more RAM make the system faster?

Apparently, you can speed up your computer by adding more RAM. Is the amount of ram to be added is directly or indirectly related to the amount of hard-disk  space, processor speed, Motherboard etc... Can the memory of a RAM be compared with Virtual Memory and Cache Memory?  Note: About my PC Configuration: Intel core i5 processor, Motherboard DP55WB 4GB RAM, 700 GB Hard-disk space.


In the following Tikz-Codes, there is this line  \draw [thick] (dd|-\nn) node[above]{\nn}-- (\nn-|ff);   I know that this draws each horizontal axis above the x-axis. But what does this  (dd|-\nn) -- (\nn-|ff) mean? (\nn is the label of the coordinate, but what are dd|- and -|ff?) Thanks in advance.  (original codes are from )    \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usepackage{verbatim} \usepackage[margin=15mm]{geometry} \usetikzlibrary{shapes,arrows,fit,calc,positioning}   \begin{document}  \begin{tikzpicture}[xscale=1,transform shape]  \draw [-latex](-0.5,0) coordinate(dd)-- (0,0) coordinate (O1) -- (17,0)coordinate(ff) node[above]{$t$}; \draw [dashed,thick] (O1) -- (0,1) coordinate(S3) -- (0,3) coordinate(S2) -- (0,5) coordinate(e3) -- ++(0,1)coordinate(ff2);  \foreach \nn in{S3,S2,e3}{ \draw [thick] (dd|-\nn) node[above]{\nn}-- (\nn-|ff); }  \foreach \xx in{1,2,...,16}{ \draw[dashed] (\xx,0) -- (\xx,0|- ff2); }  \foreach \xx in{0,4,8,...,16}{ \draw[dashed] (\xx,0.2) -- (\xx,-0.2) node[below]{\xx 0}; }  \begin{scope}[shift={(e3)}] \node[ above right=0.4cm and 0cm of e3,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n3a) {$3=f(e_3)$}; \draw[-latex,thick] (n3a.north west) -- ++(0,0.5)node[right]{$a^{e3}_{3=f(e3)}$}; \end{scope}  \begin{scope}[shift={(S2)}] \coordinate(O2) at (2,0); \node[ above right=0.4cm and 0cm of O2,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n4a) {$4=f(s_2)$}; \draw[-latex,thick,green] (n4a.north west) -- ++(0,0.5)node[right,fill=white]{$a^{S2}_{f(S2)}$}; \draw[-latex,thick,blue] ([xshift=2.7cm]n4a.north west) coordinate(bb1)-- ++(0,0.5)node[right,fill=white]{$a^{S2}_{3=f(e3)}$}; \draw[dashed,red] (n3a.south east) -- (bb1); \node[right=0cm of n4a,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n3b) {$3=p(e_3)$}; \end{scope}  \begin{scope}[shift={(S3)}] \coordinate(O3) at (0.5,0); \node[ above right=0.4cm and 0cm of O3,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n1) {$1=f(s_2)$}; \node[right=0cm of n1,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n5) {$5$}; \node[right=0cm of n5,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n4b) {$4=p(S2)$}; \node[right=0cm of n4b,right,draw, minimum width=4cm,minimum height=0.8cm,fill=white](n3c) {$3$}; \end{scope}  \end{tikzpicture}  \end{document}

I am currently trying to work out how the perpendicular arrows  work, and I fail.  Taking:  \draw [arrow] (node1) -- node[sloped, above] {Caption} (node1 |- node2.north west);   I suspected that the notation meant: Draw an arrow from node 1, to the north-west corner of  node 2. Make the arrow perpendicular to node 1.  Further attempts to draw arrows told me: No, that's not it. I have sadly failed to figure out what exactly the notation is supposed to be doing though! Is there any "explanation for dummies" that will lead me to understand what exactly    node1 |-   Is supposed to do?  Thanks!


I am in the starting zone and level 11 but can't seem to find the specialization trainer that should be available at level 10.  Where do I find the specialization trainer for troopers?

Where is the advanced class trainer for smugglers?  I can't find where I am supposed to choose my specialization.


I want to know what the name and command of the symbol next to the infinity is. This is a partial screenshot from my homework. I'm expected to submit a typeset homework that requires this symbol in the answer.  Anyone know what it is and its command?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


My tree currently contains around 1500 people and I would like to be able to browse the WHOLE tree; I like the way the tree displays on Ancestry.co.uk but find it a little limiting (especially when checking some of the data) that I can only see a few generations and limited number of people, in one view.  Is there anything out there, which will give me a comprehensive view of the tree?

Is there a computer program that allows you to see a whole family tree, on screen, and expand, compact and shift, vertically and horizontally, just as you can in Google Earth?


I am creating a list of items using 'itemize'. The lines in the item have the sign "%" after a figure. The given lines are:   The revenue has increased by 27% YOY and that has resulted in increase of income by 15%. This impact has resulted in increase of the MOM growth by 20% and WOW growth by 10%.   Now, 'itemize' is omitting everything after % sign. So the output is coming out to be:   The revenue has increased by 27 This impact has resulted in increase of the MOM growth by 20   Can someone explain why? And how do I correct this?  The code I am using is:  \begin{itemize} \item The revenue has increased by 27% YOY and that has resulted in increase of income by 15%. \item This impact has resulted in increase of the MOM growth by 20% and WOW growth by 10%. \end{itemize}

I need to output the below text but since \ is a special character, I cannot:  [RegularExpression(@"\d+")]   Also sometimes I need use dollar sign $ as well but it seems to be a special char, too.  What is the way to escape those in LaTeX?  UPDATE:  I used \verb as suggested but I am unable to run commands inside it. Also, in the output the font and the opacity of the text is different than the default one:  \verb|[RegularExpression(\newline @"\d+")]|


I have a textbox with both letters and numbers in and other symbols in which you can find on your keyboard. I have this code which works fine when I manually put the data in and it only lets me put numbers in and deletes letters. Everything what I want, apart from none of it works if the data is copied and pasted in. Below is my code.  private void textBox7_TextChanged(object sender, EventArgs e) {     Exception X = new Exception();      TextBox T = (TextBox)sender;      T.Text = T.Text.Trim();     try     {         if (T.Text != "-")         {             int x = int.Parse(T.Text);         }     }     catch (Exception)     {         try         {             int CursorIndex = T.SelectionStart - 1;             T.Text = T.Text.Remove(CursorIndex, 1);              //Align Cursor to same index             T.SelectionStart = CursorIndex;             T.SelectionLength = 0;         }         catch (Exception) { }      } }

I have a windows forms app with a textbox control that I want to only accept integer values. In the past I've done this kind of validation by overloading the KeyPress event and just removing characters which didn't fit the specification. I've looked at the MaskedTextBox control but I'd like a more general solution that could work with perhaps a regular expression, or depend on the values of other controls.  Ideally this would behave such that pressing a non numeric character would either produce no result or immediately provide the user with feedback about the invalid character.


Say I have something simple such as  #!/bin/bash  echo "Enter process name to kill: ";  read -r process;  pgrep "$process" | xargs kill;    let's say this script has an alias of 'kp'  What do I have to do to remove echo "Enter process name to kill: "; and replace it with an argument that the command can take such as kp firefox rather than the input method.

I am taking the Linux Essentials class and was doing well until I hit the scripting chapter. I simply do not understand these concepts.  Wondering if someone can break the following down into ultra simplistic terms or point me to a better reference to learn it. I'm currently using netacad's curriculum.        From the text book (with minor formatting changes):     There are some special variables in addition to the ones you set. You   can pass arguments to your script:  #!/bin/bash echo "Hello $1"       A dollar sign followed by a number N corresponds to the Nth argument   passed to the script. If you call the example above with ./test.sh the   output will be Hello Linux. The $0 variable contains the name of the   script itself.      After a program runs, be it a binary or a script, it returns an exit   code which is an integer between 0 and 255. You can test this through   the $? variable to see if the previous command completed successfully.     I understand how to assign variables and how they work with the $ but the whole issue with $0 and $1 -- I just don't get it.    Any help would be much appreciated.


Currently, I'm trying:  for address in master_locations:     try:         search = geocoder.get(address)      except ValueError:         coordinates.append(['0', '0'])         break       xyz....   Basically, if I want the entire iteration of the loop to stop. If there's an error, it currently "stops" by finishing up the try/except argument and going on to "xyz". How can I get it to stop and go to the next iteration of the loop WITHOUT going to xyz?

I have a loop going, but there is the possibility for exceptions to be raised inside the loop. This of course would stop my program all together. To prevent that I catch the exceptions and handle them. But then the rest of the iteration runs even though an exception occurred. Is there a keyword to use in my except: clause to just skip the rest of the current iteration?


I have recently brought a DSLR with intervalometer and trying to take a long expxosure photo.  But when I set the shutter to 'BULB' mode, F5.6 and ISO AUTO in Manual mode.Now, with all settings at 00:00:00, am getting a nice clear picture.  But when I set the LONG to any value and start the timer, my view finder gets closed, the resulting photo is nothing but full white.  To check any problem with the intervalometer, disconnected it and set the shutter speed to 30 sec.  Even now the photo is nothing but white.  How do I get the effect desired?

I would like to take a picture of a street during the day to depict how much traffic and cars there are on the street.  Is there anyway to do this with a long exposure photograph?  I have a Nikon D90 and I set the f stop down to 1/16 (the lowest of my lens) and set the time to 2 seconds. Doing this, the exposure is almost saturated when taken around 5pm with the sun setting behind a tree. Doing this, the cars passing by were very hard to make out against the stationary background, being visible as a blur in the color of the car.  Perhaps this is not possible and I should just do this at night where the cars lights are much brighter than the background.  Please suggest how else I might depict the traffic in a photograph?  Are daytime long exposure photographs even possible?


I have two datasets ():   1) A shapefile of buildings containing the height of each building.  2) A parcel shapefile. Several buildings are assigned to a single parcel.   I am interested in calculating the sum of the surface of external walls of buildings (m2) in each parcel. In other words, I want to know how many square meters (m2) of external walls I have in each parcel.  However, it is important for me to exclude those walls which are in common in between buildings. For instance, if two buildings with the heights of 10 m and 6 m are attached from one side, the goal would be to include 4 m of the 10 m external wall and exclude the 6 m which both walls are attached with each other. I hope I was successful in describing the question.

I need to calculate the surface (m2) of external walls of all the buildings in a town. By external walls I mean all the walls of a building or parts of a wall which are not in contact with another building. I have a 2D shapefile of polygons with the cadastral footprint of the buildings, which includes information of the building’s height in the attribute table.  I don’t really know how can I do it… My idea is to convert the 2D file to 3D and use the 3D shapefile to distinguish the external walls from the shared walls (parts of a building that are shared with other buildings) of all buildings, and from there, calculate the total area but I’m not sure whether this can be done with ArcScene.  Anybody knows how could it be done and if there is an automate way to do it?


in my latex document I have two bibliographies. First is for theoretical part of thesis and second is my articles. I don't want to reference or cite from the second bibliography. Is there a way how to create (render) a fake bibliography without bibliography command ? I mean I want only render this without numbering :  \bibitem{blabla} Jon Doe \newblock {Article title}. \newblock {\em SpringerPlus}, 2015.  Thank you for your responses in advance.

I'm using a simple bibliography like this  ... \nocite{*} \bibliographystyle{acm} \bibliography{refs} ...   and I would like to either replace the numbers ([1], [2], ...) in front of each reference with some other symbol (e.g. dots) or just remove them altogether.  Any ideas?  Edit: I am using the article class.


I've recently received an image of CentOS 7 and I'm having issues with resolving hosts. I'm currently on a company's VPN and all company's resources are available to me.   The problem is: nothing else is available. I've been trying to access websites like google.com and github.com and I'm getting errors like  unknown host google.com   How do I configure my resolver to fix this?  Contents of my /etc/resolv.conf:   # Generated by NetworkManager search vbox nameserver 10.3.1.1 nameserver 10.3.1.2 nameserver 172.23.28.7 # NOTE: the libc resolver may not support more than 3 nameservers. # The nameservers listed below may not be recognized. nameserver 172.23.28.8   Result of host google.com 8.8.8.8   Using domain server: Name: 8.8.8.8 Address: 8.8.8.8#53 Aliases:  google.com has address 216.58.208.142 google.com has IPv6 address 2a00:1450:4009:803::200e google.com mail is handled by 10 aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 50 alt4.aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com. google.com mail is handled by 30 alt2.aspmx.l.google.com.   Result of dig @8.8.8.8 google.com  ; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> @8.8.8.8 google.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57064 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;google.com.                    IN      A  ;; ANSWER SECTION: google.com.             299     IN      A       216.58.208.174  ;; Query time: 25 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Dec 02 11:13:43 GMT 2016 ;; MSG SIZE  rcvd: 55

Right now, my /etc/resolv.conf looks like this:   # Generated by NetworkManager nameserver 10.165.246.33 nameserver 192.135.82.60 nameserver 10.165.74.2   The first two nameservers are automatically configured through DHCP; the last one is the one I added manually, in NetworkManager. It's also the most important one, since it resolves our internal domain names (e.g. build-server-17.our-company-domain.com).  The trouble is, NetworkManager adds it to the bottom of /etc/resolv.conf, so when accessing an intranet URL, my browser tries to resolve it using the first two servers, and it takes ages.  How do I make NetworkManager add the manually-configured DNS server before the automatically-configured ones?


This might seem like a stupid question but I've been stuck with it all day. It seems to me that $c|\frac{a}{b}$  iff $c|a$ & ${c\not{|}{b}}$ but I can't prove it.

how do i find lcm of two fractions?  For example:  $\frac{2}{3}$ and $\frac{5}{8}$


I'm trying to get both elements, one centered, one flushed right on the same horizontal line. I've tried  \begin{center} stuff \end{center} \hfill more stuff   But "more stuff" would appear on another line instead. Thanks.

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that?


Every time I set up new project I have the same problem, but now It's time to do this right.  In my .gitignore I have paths like this: /assets/css/* /assets/images/* /assets/js/* /system/cache/* ...etc.  Now when creating and pushing to repository those paths are missing, so for example, there is no images, css, js folder in repository and when I pull the repository from other computer those files/folders are missing and the system doesn't work.  I would like to achive that those paths are on repository but it's files are ignored.   Any suggestion on how to start this repository would be more than welcome.  Cheers

How can I add an empty directory (that contains no files) to a Git repository?


I've been thinking that sometimes here on Stack Exchange, people make very good questions and give very good answers, in my case, I have learnt a lot from the community and when I post a question I try to make an effort to formulate it in a proper manner to avoid downvoting, so, when applying for a job or an academic position, would be correct to also make a reference of your Stack Exchange profile? I believe that people that are hiring you, may have a better glimpse of you interests, what you know and what you don't know from the answers and questions that you make, so, is it a good idea to also show it?

I think contributions to StackExchange constitute a valuable thing for an academic to do. In many cases such contributions are directly related to the aims of an academic department: community engagement, building new knowledge, etc. This is particularly clear for sites that directly align with a particular academic discipline (e.g.,  , , ).  However, many people in academia have not heard of StackExchange. They often won't have heard about the reputation system. They may not be aware of the high quality content that often appears.  Thus, as an academic, how should you share your achievements on the StackExchange network in contexts where how your performance is evaluated has material consequences? (e.g., a CV, job interview, grant application context, promotion context)


I use the Gnome Shell (11.10) but am not liking its notification system. Is it possible to return to lucid - style notifications?  Like this    instead of this

How I can replace **notification-daemon** (ugly notifications at bottom of screen) by   NotifyOSD (modern bubbles in right upper corner) ?    I found some posts about this, but GNOME at default mode don't have Default Provider in  gnome.session (only in fall-back mode).


I just started to work with blender, finished my first models and i want to do some advanced things.  My question is pretty simple: please see attached image. How do i achieve such rendering style in blender ( solid, plain cartoon-style colors) ? I'm not even sure how to google this, since i have no idea how this style is properly called.  Thanks!

How to render perfect cartoons in blender? Whatever the engine is (internal or cycles) I always get that shading transition somewhere on the model.      The first picture is in blender internal render engine with the toon shading material and the second picture is in cycles render engine with the toon shader.    How can I get completely flat colors with no fancy shading variation?


I believe this is different from other similar questions such as   My question is not about encouraging politeness, it is about providing a simple automated way to increase positive, constructive feedback.  My suggestion is that a down-vote could be required to have an associated comment so that the down-voter is identified.  You might object that this would encourage revenge voting. Not so IMO. The revenge voter would also have to provide sensible reasons for their down-votes. It would be obvious if someone was doing it vindictively.  Please discuss both the benefits and drawbacks of this idea.  Thank you.

Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see .   I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too.  Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong.  So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote?  I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.


I have situation when i have click main menu options it will be display 10 different sub-menu options. In all sub-menu section is available 2nd sub-menu options which is available more than 20 menu options and all are dynamic.   Helmets    This above sub-menu - my xpath is - //*[@id='ui-id-11']/span   Riding Gear    This above sub-menu's if- my xpath is - //*[@id='ui-id-12']/span  How to handle all the sub-menu options to the single Xpath?

How to Handle Dynamic Changing IDs In XPath? for example :   //div[@id='post-body-3647323225296998740']/div[1]/form[1]/input[1]   In this xpath id "3647323225296998740" is changing every time when reloading the page.   Is there any way to handle this type of situation in Selenium?


I'm a bit confused, so I looked it up, and I found this:   FILE1=$1 wc $FILE1    this is a bit confusing to me, what does assigning the variable expression operator, followed by the number 1 to FILE1, but FILE1 is just a variable, and we're assigning what? The number 1 to the variable expression operator?   How does this work exactly?   What can I do to better understand this concept?

What's the difference between temp=$1 and temp=1? Why do I need the dollar sign?  For example:   #!/bin/bash  temp=$1 cell=$((($temp-32)*5/9))  echo $cell


By mistake, I changed my Display name. I want to change it again now. Is there a way to change it within 30 days?

I have a  on Stack Overflow. I recently decided to change the name on my profile. I did this, but I made a spelling mistake! I wrote "Kryton" instead of "Kryten"! When I tried to fix this, a message came back saying that I can only change my profile name every 30 days. Why? Is there any way I can fix my profile name?


In a question like this (I took it from an English course):     Can you tell me if there's anything you don't have any doubts about?   Is this correct? (grammatically speaking)  Because for me it seems that I should use the question structure in the second part two, looking like this:     Can you tell me if is there anything you don't have any doubts   about?   Which one is right?

We always change subject and verb positions in whenever we want to ask a question such as "What is your name?". But when it comes to statements like the following, which form is correct?        I don't understand what are you talking about.   I don't understand what you are talking about.      Another example        Do you know what time is it?   Do you know what time it is?      Another example        Do you care how do I feel about this?   Do you care how I feel about this?


Edit: This is not a duplicate of the marked issue above. The marked issue is about Win7 being installed and the PC directly booting to Windows... This is about nothing booting (i.e. Ubuntu) at all after deleting the Windows partition...  So I had Windows 10 and Ubuntu 18 parallely installed. Yesterday my Ubuntu ran out of memory on my hard drive - as I have stopped using Windows in the past couple of months I decided to simply delete it and make more space for Ubuntu. I followed a well-rated Tutorial on Youtube () where I just had to delete the Windows Bootloader and Windows partition in GParted. After that I'd just stretch out my Ubuntu Partition over the now free space. My problem now: Ubuntu won't boot after I restarted my PC! It goes to black screen and then straight to BIOS. I opened Ubuntu live-version from an USB   As you can see for my Ubuntu partition, Boot sector type and Boot sector info are empty, so I must have messed something up... Did I delete the Ubuntu GRUB by accident? Can I fix this problem without losing my Ubuntu data? I am fairly inexperienced with Ubuntu, so please excuse any inaccuracies on my side.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I have a problem with GRUB. I've removed it from my system since i use a Refind and yet when i want to upgrade it tells that GRUB will be installed again: root@ubuntu:~# apt upgrade Чтение списков пакетов… Готово Построение дерева зависимостей        Чтение информации о состоянии… Готово Расчёт обновлений… Готово Следующие НОВЫЕ пакеты будут установлены:   grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common libnvidia-common-450 linux-headers-5.4.0-54 linux-headers-5.4.0-54-generic linux-image-5.4.0-54-generic   linux-modules-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic os-prober   But i have no GRUB in my system: root@ubuntu:~# apt list --installed | grep grub  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.  root@ubuntu:~# apt list --installed | grep os-prober  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.  root@ubuntu:~# apt list --installed | grep efi  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.  efibootmgr/focal,now 17-1 amd64 [установлен, автоматически] libefiboot1/focal,now 37-2ubuntu2 amd64 [установлен, может быть обновлён до: 37-2ubuntu2.2] libefivar1/focal,now 37-2ubuntu2 amd64 [установлен, может быть обновлён до: 37-2ubuntu2.2] python3-olefile/focal,focal,now 0.46-2 all [установлен, автоматически] refind/focal,now 0.11.4-1 amd64 [установлен]

I am trying to block GRUB packages from being installed (after having purged them).  The problem is virtually identical to  and even involves GRUB which is exactly what the selected answer illustrated doing.  However, it does not work in 12.04 LTS using the cloud-image edition.  In my scripts to do all this, I first delete the packages involved.  It has an annoying UNinstall prompt, but I finally figured out how to feed it answers (see  for my older question) to make it move along.  After that uninstall is done, I run commands to edit the /etc/apt/apt.conf.d/01autoremove file to add the grub blacklist line as shown in the answer for the question above.  EXECUTING: diff -U999999 /root/etc_apt_apt.conf.d_01autoremove /etc/apt/apt.conf.d/01autoremove --- /root/etc_apt_apt.conf.d_01autoremove       2012-04-20 10:21:55.000000000 +0000 +++ /etc/apt/apt.conf.d/01autoremove    2012-10-03 16:28:17.000000000 +0000 @@ -1,26 +1,27 @@  APT  {    NeverAutoRemove    {         "^firmware-linux.*";         "^linux-firmware$";         "^linux-image.*";         "^kfreebsd-image.*";         "^linux-restricted-modules.*";         "^linux-ubuntu-modules-.*";         "^gnumach$";         "^gnumach-image.*";    };     Never-MarkAuto-Sections    {         "metapackages";         "restricted/metapackages";         "universe/metapackages";         "multiverse/metapackages";         "oldlibs";         "restricted/oldlibs";         "universe/oldlibs";         "multiverse/oldlibs"; +       "grub*";    };  };   FYI, the commands are prefixed with "EXECUTING" and shown that way as part of the mechanism of my script to show what it is doing.  The file /root/etc_apt_apt.conf.d_01autoremove in this case is a backup of the original, being compared with the changed file already in its place.  It looks right to me.  Then I do the command with the same package names being negated with the "-" suffix.  And yet it still installs them as new packages:  EXECUTING: apt-get --yes dist-upgrade grub-common- grub-gfxpayload-lists- grub-legacy-ec2- grub-pc- grub-pc-bin- grub2-common- Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed:   grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common linux-image-3.2.0-31-virtual The following packages will be upgraded:   apport apt apt-transport-https apt-utils dbus gnupg gpgv isc-dhcp-client isc-dhcp-common libapt-inst1.4   libapt-pkg4.12 libdbus-1-3 libgc1c2 libxml2 linux-firmware linux-image-virtual linux-virtual multiarch-support   ntfs-3g openssl python-apport python-problem-report resolvconf tzdata ubuntu-keyring 25 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 45.4 MB of archives. After this operation, 35.1 MB of additional disk space will be used.   One reason I do not want to have them installed here is the unpredictability of prompts that my script has to feed input answers to.  And this just makes no sense for them to be installed when they have been blacklisted, and not really needed.  FYI, for reference on why GRUB is not needed, I am using the recommended option 2 in AWS EC2 PV-GRUB kernel images (AKIs) as described in this document at AWS:   So the big question:  how to prevent these packages from being installed whatsoever?


How do you revert or reinstall a configuration file in Debian/Ubuntu?  I accidentally overwrote the file /etc/bluetooth/main.conf. Running dpkg -S /etc/bluetooth/main.conf shows that the package bluez provides it, but when I run sudo apt-get install --reinstall bluez, it doesn't get reinstalled.

After trying to delete apache and tomcat, and now trying to reinstall apache 2, I am missing the init.d/apache2 file to start/stop my server.  I am not sure if the new install actualy worked, and my apt-get purge apache2 didn't remove everything in the first place!  How can I get the init.d/apache2 file to test if server starts / is installed properly (I had removed files and directories manually)?


Everyone should be familiar with how Kylo's main blade differs aesthetically with Anakin/Luke/Finn/Rey's lightsaber blade.  What is the cause of the shaky fizzling effect? The ancient hilt design, or the flawed crystal? If it's due to the crystal, is the use of a flawed crystal intended (Snoke has special reason for this choice of crystal) or unintended (eg. Snoke ran out of good crystals or Kylo broke it somehow)?

Kylo Ren's lightsaber is very confusing. It has a cross-guard, which was discussed in another question, but I don't think this was:  Why does Kylo Ren's lightsaber look different from a normal lightsaber? Kylo Ren's lightsaber looks like stuff is coming out of it. It looks like it's fire. Why?


I'm having some difficulty with this homework problem:  If $A=K[x_1,...,x_n]$, $K$  a field and $a_1,a_2,...,a_n $ $\in K$. The ideal $m=<x_1-a_1,...,x_n-a_n>$ is maximal.

Let $K$ be a field, and $a_1,\dots,a_n \in K$. Prove that the ideal $$(X_1-a_1,\dots,X_n-a_n)$$ is maximal in $K[X_1,\dots,X_n]$.   I tried proving that the only elements outside the ideal are the invertibles of $K$ (I should still prove that this implies maximality, but it shouldn't be too difficult).  Is there a better strategy, or another stategy?


How to remove a specific latex command from the text AND closing bracket behind it, but to keep the text inside the brackets/  Please fill free to suggest SED, or AWK, or Perl or whatever will do the job  Input sensless example:   We \edit{Introduce a} model for analyzing \emph{data} from various experimental designs, \edit{such as 23 paired or longitudinal}.   Output:  We Introduce a model for analyzing \emph{data} from various  experimental designs, such as 23 paired or longitudinal.   PS. I am introducing a lot of small edits into my tex file. I want those edits to be highlighted, so my collaborator can see them. But afterwards I would like to remove all highlights with one or two commands.

How to remove a specific latex command from the text AND closing bracket behind it, but to keep the text inside the brackets? The command in the following example to remove is \edit{<some staff>}. \edit{ and } should be removed, whereas <some staff> should be left unchanged.      Please fill free to suggest SED, or AWK, or Perl or whatever will do the job  senseless example:   We \edit{Introduce a} model for analyzing \emph{data} from various experimental designs, \edit{such as paired or \url{http://www/} longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN \cite{mycitation2}}.   Note that there might be one or more latex commands in the form \command{smth} inside \edit{} statements. \command{smth}  should be left as it was  Output:  We Introduce a model for analyzing \emph{data} from various experimental designs, such as paired or \url{http://www/} longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN \cite{mycitation2}.   PS. I am introducing a lot of small edits into my tex file. I want those edits to be highlighted, so my collaborator can see them. But afterwards I would like to remove all highlights and to send the text to a reviewer.  The question was originally asked at . But example there was too soft


i created this question because i cant install phpmyadmin in Ubuntu 18.04 bionic LTS.  i use  sudo apt-get update sudo apt-get upgrade sudo apt-get install phpmyadmin   And get "unable to locate package"  I search the package in package.ubuntu.com  And add to sources.list this repository:  mirrors.kernel.org/ubuntu   Now appear a error from depencies.  php-mbstring php-common   later when try install these, appear:  php7.2-mbstring php7.2-common   And later:  0.7.2ubuntu-0 (something like this)   How can i install phpmyadmin?  I do this  sudo apt-get update   all packages are updated     sudo apt-get upgrade   0 updated, 0 new will by installed, 0 for delete and 0 not updated  sudo apt-get install phpmyadmin   reading package list... done creating three of dependencies reading state information... done E: cannot locate package phpmyadmin

How do I get to the Universe Repository in supported versions of Ubuntu?


I'm working on problem 16 in section 4.1 of Hatcher's Algebraic Topology book. I really have no ideas so far:  Show that a map $f: X \to Y$ between connected CW complexes factors as a composition $X \to Z_n \to Y$ where the first map induces isomorphisms on $\pi_n$ for $i\le n$ and the second map induces isomorphisms on $\pi_n$ for $i\ge n+1$.  Any help is appreciated.

I've been working on problem 4.1.16 of Hatcher's Algebraic Topology and am at a complete impasse. The problem is as follows:  Show that a map $f:X→Y$ between connected CW complexes factors as a composition $X→Z_n→Y$ where the first map induces isomorphisms on $π_n$ for $i≤n$ and the second map induces isomorphisms on $π_n$ for $i≥n+1.$  I applied Proposition 4.13 on the pair $(M_f,X)$ to get an $n$-connected CW model $(Z_n,X)$. Because $M_f$ deformation retracts to $Y$, this gives the desired isomorphisms for the second map. Moreover, because $(Z_n,X)$ is $n$-connected, the inclusion of $X$ in $Z_n$ gives the desired isomorphisms for the first map, with the exception of $π_n(X)→π_n(Z_n)$ (this map is, however, surjective). How do I prove injectivity? Any help would be appreciated.


Do you capitalize "counties" in the following sentence. Sebastian and Forrest counties are represented.

In the following context, it is obvious that County is a proper noun and deserves capitalization.  Currently, Albemarle County has four main reservoirs.  However, in these other contexts below, I am not sure whether county and city would be considered proper nouns. Is a reference to a specific geographic area considered a proper noun?  The James River lies south of the county and has a tremendous flow rate. The Ragged Mountain reservoir is located closest to the city of Charlottesville.  According to the , I should "not capitalize common nouns and various shortened forms of official names". In the first example, county is referring to a generic county, so I suspect it is a common noun (and can remain uncapitalized). In the second example, I am not sure whether city is proper (and consequently, whether to capitalize). On official documentation, this city is referred to as the "City of Charlottesville", but I have never heard anyone say it quite like that. I would appreciate any clarification!


I made a partition on my hard drive to install Ubuntu and thus have Windows 10 and Ubuntu 18.04. Now I want to allocate more space to Ubuntu and I find a difficulty that is to move the partition with swap, since between the partition in which Ubuntu is and the free space is swap. I tried to move it with GParted but there are still things that I do not understand well. How could I increase the main partition of Ubuntu?    This post has been translated from Spanish. Please see the  for the original

I wanted to resize (increase or decrease the partition size) the existing Ubuntu partition without affecting it and the other OS(es) installed in the machine.


I posted a question a few days ago which I assigned a bounty to. One of the answerers didn't seem to have basically any idea what he was talking about and the other misread the question, so neither of them was any help. But I have to award the bounty, even though I feel that neither of the answers posted by other people (I solved the problem myself) are useful.  Is there any way that I can choose to not award the bounty?

Shouldn't there be a way to prevent automatic awarding of a bounty? For example, if someone provides an answer that sounds good but is totally wrong, it may happen that it gets a score of +2, but doesn't deserve the bounty. If no one else answers, half the bounty will automatically go to this person. Automatic awarding is good if an inactive user offers a bounty, but I think there should be a button that basically means "I know the bounty should now be awarded, but I have read the answers and none of them deserve the bounty".  The button should obviously not refund the bounty, just let it go to /dev/null instead of awarding it to someone who doesn't deserve it.


Please, if I say four-wheel-drive, can I say two-third share? Thank you

Is it two-third or two-thirds? If both are correct, how does their usage differ?


The effect of light from the sun had the affect of allowing john to see further.   True, not true? Effect is a verb, so light is an effect: affect alters something, so john seeing further was the affect of lights effects??????????

I've noticed that some people use effect and affect interchangeably. What are the differences between these two and when are the proper situations to use each of them?


Wasn't able to include this in the title, but it is given that if $x$ is odd and $y$ is even then $\gcd(x, y)= \gcd\left(x, \frac{y}{2}\right)$. I am struggling to get started with this problem. I would appreciate any help. What I have so far: Let $z = \gcd(x, y)$. We know $z\mid x$ and $z\mid y$. Truly not sure where to go from here.

Show that if $a$ is an odd en integer and $b$ is an even integer then $\gcd(a,b)=\gcd(a,b/2)$.  I understand that since $a$ is not divisible by $2$ but $b$ is, the gcd of $a$ and $b$ also can't be divisible by $2$ but I'm getting stuck using this to help me.


English is not my first language and often I (as a Portuguese speaker) find that my sentences get too awkward with the number of personal pronouns that I usually use.   Here is a generic example:      Thank you, #PERSONNAME for contacting me. I do appreciate that you did it.    I don't know anyone at the moment, but I will let my contacts know and if I find someone interested in the position I will let you know about it.   As you can see, I used the personal pronoun 5 times in a very simple paragraph, I wonder if this is "Okay" or how could I rephrase (in general, not just those sentences) to avoid such excessive usage?

When writing scientific research proposals I have been advised to try and stick to active voice because passive tends to sound indirect and to imply doubt.  However, when writing in active voice, I find it difficult to not use personal pronouns.  Does anyone have any tips for maintaining active voice without using personal pronouns?


I have to show that the sequrnce $\{a_n\}$ with $a_{n+1}=\sqrt{6+a_{n}}$ is bounded, i know : $a_{n-1}<a_{n}$ because i demonstrated this. I tied to use this relation: $ab\leq \frac{a^2}{2}+\frac{b^2}{2}$. I don't kow how to increase $\sqrt{6+a_{n}}$

(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12)  For $c \gt 0$, consider the quadratic equation $x^2 - x - c = 0, x > 0$.  Define the sequence $\{x_n\}$ recursively by fixing $|x_1| \lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining  $$x_{n+1} = \sqrt{c+x_n}$$  Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  Note: The answers below might assume $x_1 \gt 0$, but they still work, as we have $x_3 \gt 0$.    This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


I came across an issue when I tried to simplify an expression, like this: $$(-1)^{2x}=((-1)^2)^x=(1)^x=1$$ So now it looks like the expression I started with will always equal one. However, when I for example fill in $x=\frac{1}{2}$, I get this: $$(-1)^{2x}=(-1)^{2\cdot\frac{1}{2}}=(-1)^1=-1$$ It clearly does not equal one, so I made a mistake somewhere. Apparently the first step, $(-1)^{2x}=((-1)^2)^x$, is only true when $x$ is even. Why is this?  I thought maybe the rule does not apply if the base number is negative. But that would not explain why you get the same error when simplifying this: $$e^{2x\pi i}=(e^{2\pi i})^x=(1)^x=1$$ Again, if you fill in a half, the result should be -1 and not 1.

I've tried both calculations on Wolfram Alpha and it returns different results, but I can't get a grasp of why it is like that. From my point of view, both calculations should be the same, as $2.5=25/10,$ and $(-2)^{2.5}$ is equal to $(-2)^{25/10},$ relying on a general rule $(a^m)^n=a^{mn}$.  Links to sources:


Given the variables below, why does the elseif conditional get hit?  $i          = 0; $rating     = 11.11111111111; $scale_step = 11.11111111111;  if( $rating == $i * $scale_step ) {     return 'checked'; } elseif( $rating < (($i + 1) * $scale_step)       && $rating > $i * $scale_step ) {    return 'checked'; } else {     return ''; }   In the elseif above, $rating is equal to ($i + 1) * $scale_step - it is NOT less than. So why does it evaluate to true?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am provided the following details (see picture) about a sample whereby $x$ is logarithm of income. How do I calculate the sample variance from this information?

Suppose we have a sample of size n= 9, where the sum equals 27, and the sum of the squaredvalues equals 113. Sample mean is 27/9=3 and mean of squared values is 113/9 = 12.56 Can we then say that the sample variance $S^2 = E(\overline X^2) - E(\overline X)^2 = 12.55 - 9 = 3.56$ ?


In my Data Structures class I've been tasked with creating an ArrayList of generic objects of a given type. This is essentially a class that behaves like an array with some extra functionality attached. It looks something like this.     public class GenericArray<T>     {         // The array         private T[] array;         private int size;          // Constructor         public GenericArray(int arrsize)         {             size = arrsize;             array = new T[size + 1];         }         // Array methods         public T getItem(int index)         {             return array[index];         }         public int getCount()         {             int count = 0;              for(int i = 0; i < array.Length; ++i)             {                 if(array[i] != null)                     count++;             }             size = count;             return count;         }     }  We're required to create the various methods by which you interact with the array. I'm having a particular problem when it comes to deleting items from the array. I have a deleteLast method which I assumed would simply set the last item to null, like so:         public void deleteLast()         {             int i = this.getCount()-1;             array[i] = null;         }  However I am getting the error that I cannot convert the parameter to null, as T may not be a nullable value type, which makes sense. However, I don't know how to remove them otherwise. I can't find any useful information on this through Google, so I've come to Stack Overflow. Any help is appreciated. Thanks :)

I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...)  static T FindThing<T>(IList collection, int id) where T : IThing, new() {     foreach T thing in collecion     {         if (thing.Id == id)             return thing;     }     return null;  // ERROR: Cannot convert null to type parameter 'T' because it could be a value type. Consider using 'default(T)' instead. }   This gives me a build error      "Cannot convert null to type parameter   'T' because it could be a value type.   Consider using 'default(T)' instead."   Can I avoid this error?


I am starting to step into the field of Topological Quantum Information and Computation and am in search of tools which I can use to directly simulate or realize these transformations in a textual or graphical manner.

Does something like  exist for topological (eg. braided) circuits?   Alternatively, any ideas on how @ is getting  (or something similar)?


I found some questions that are not very well-worded, and I want to clarify them. So, I went, and edited one of the questions.  As I have poor short-term memory, after editing, I wondered what I have edited.  I cannot find any easy way to see the original version, or a diff.  Of course, I could just click "Back" button to see the question, but I risk losing my edit (in case I just happen to navigate away and lost the "Next" button.) It is inconvenient too. I wish I could make a comparison to ensure the original meaning remains unchanged.  Did I miss anything? I looked around and found , but I cannot just submit the (suggested) edit, which defeats the point that I want to review my edit before submitting/suggesting.  It shows the original question when editing answers, but not editing questions themselves.    In short, may the edit question page shows the original, or a link to it? (I don't find it, I do not have edit privilege if that matters.)  This is what I have, can anyone point out how to access the original question?

I edit people's posts occasionally on ServerFault when the grammar/punctuation/coherence goes below a threshold that my OCD can handle. However, on some of the thornier posts I would like to be able to compare my edits to the original text, especially when doing a final proof-reading of my edits.  At the moment, my only options are to either copy the original text into a text editor or copy a duplicate of the text into the editing field. From there I can compare my edits to the original text and make sure I'm preserving the original meaning as I attempt to untangle less than optimal communication.  This request is somewhat similar to this Meta post: ""


I booked a round-trip flight for me and my wife from Egypt to Los Angeles for a family visit. I had to stay longer in LA than previously planned. However my wife should get back PLUS my mother-in-law.  Is there any way my mother-in-law can replace me on the return flight?

I would like to know if my brother can fly by United Airlines from USA to El Salvador, and my father, from El Salvador to USA using the same round trip ticket, both of them have the same name.


This is the message I got:  Why is this happening? Before this my terminal and many other apps disappeared.

dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks   After I turn on my laptop this message appears. The system never boots, the message just stays there.


I already understand that StackExchange considers self-answered questions to be OK. I'm wondering about a specific class of self-answered questions, those that merely rephrase the author's posts from other sites.   Like, would it would be considered "double-dipping" for points/reputation?  Specifically, I recently created . I think the content of that pro tip would make a good StackOverflow question-&-answer, plus I believe a S.O. post would have more Google visibility.  Does anyone know if there's any precedence for this kind of duplication/adaptation being unwelcome? Or is it perfectly kosher?

I might want to answer my own question because:  I arrived at a solution before there were any other correct answers or I like mine better, can I still answer my own question?  I have a folder with lists of code snippets for things I always forget or get wrong, such as regular expressions for processing XML, common WinForms control idioms, etc. Is it considered poor etiquette for Stack Overflow to ask a question I already know the answer to, and then self answer, just so it gets recorded on the website?   Related:          For more information, see "" in the .


For reynolds number $R_e$ = $\frac{\rho vl}{\mu}$  Can anyone please explain what is l ? is it cross-sectional area of the fluid flow?   Im considering a simulation box with a cylinder inside it. So what will be my l in the equation ?

In many fluid-dynamics models and quantities (, ... generally various  descriptions) there is a parameter (usually $L$ or $\ell$) descripted as characteristic linear dimension or characteristic length. What is that in intuitive and physical meaning? I understand the typical examples ( etc.) but I can't see so far any systematic generalisation.  What is the definition? (Or, maybe: What is its role during the derivation?)


So i am trying to prove that a non-abelian group with 362 elements is isomorphic to the dihedral group 181 (D181)? So the dihedral group has 362 elements(181*2). Exactly the same as the non-abelian group. And the elements of D181 are all matrices. Dn is non-abelian for every n (except 1,2). How can i map the elements from the non-abelian group to the dihedral group?  I can't figure it out. Any tips?

I'm looking for a simple proof that up to isomorphism every group of order 2p (p prime) is either $\mathbb{Z}_{2p}$ or $D_{p}$ (The Dihedral group of order 2p).  I should note that by simple I mean short and elegant and not necessarily elementary. So feel free to use tools like Sylow Theorems, Cauchy Theorem and similar stuff.  Thanks a lot!


I have installed Ubuntu onto my old Windows Vista laptop but unfortunately it is running very slow. I also live in a region of Germany which has a very poor internet connection and I am unable to download any lightweight distribution as the Ubuntu download took me 6 hours.    I have tried many thing to get Ubuntu to run faster such as installing compizconfig-settings-manager and disabling the blur in Unity, I also decreased swappiness to ten, and installed the Preload Daemon. On my desktop performance was increased , however my laptop is still low after these changes. My idea is to remove Unity completely and change my desktop environment to LXDE but I don't know how to do that.  System Specifications:   Manufacturer : HP Model : Compaq 6720s Processor : Intel Celeron 550M (Single Core 2.00 GHZ) RAM : 2 Gig HDD : 160 Gig Graphics : Intel Graphics Media Accelerator x3100 (8-359 MB Shared)

In general what is the approach to switch the desktop environment or window manager on Ubuntu? The main difference between stock Ubuntu, Kubuntu and Lubuntu is supposedly the use of Unity vs. KDE vs. LXDE.  However, in order to try various desktop environments and window managers I don't want to have to reinstall the respective flavor from scratch just to get a particular desktop environments or window manager. There probably is an easier method than that.  The question: How can I easily test different desktop environments and respective compatible window managers (say KDE, LXDE, Unity, GNOME, XFCE and StumpWM)?


Good evening.  I would like to use the same fonts what are in MS Word in LaTeX. But I want to use them just as a command - I do not want to use them in all document. I mean something like shortcuts \textit, textbf, etc.. Fonts what I want to use in LaTeX: Arial, Times New Romans etc.  Thanks for help.

I have some text in my document in primary font what is in LaTeX but I would like to get some text in font Times New Roman but just some text between primary text, as a local command (something as \textit{}, \textbf{} etc.), an example below.  My cat has black skin. % in primary font My second cat has white skin. % I would like to get in Times New Roman  Thanks for help.


The Hawaiian earring is the space  $$X = \cup_{i=1}^{\infty}\{(x,y) : (x-1/i)^2+y^2=1/i^2\}.$$  It is different from wedge of infinite circles.   But why can't we apply van Kampen's directly by taking each open path connected set to be $$U_i = X\backslash\{(2/j,0)\}_{j\in\mathbb{N}}^{j\neq i}$$  and hence obtain that  $$ \pi_1(X,(0,0)) = *_{\infty}\mathbb{Z} $$ ? Am I missing some detail?

space has notoriously complicated fundamental group, and is essentially not as simple as the wedge sum of countably many circles whose fundamental group is straightforwardly given by Van Kampen Theorem. However, I'm still struggle to understand why Van Kampen fails in this case. I can, however, largely grasp the topological difference between the two. For instance, the wedge point of countably many unit circles is locally contractible while that of the Hawaiian earring is not. But, when checking the Van Kampen Theorem given by Allen Hatcher, I really can't find anything wrong with the earring:  Path-connectedness is trivial. It really suffices to check the red-boxed condition. Of course, for each circle, say $C_n:=\{(x-1/n)^2+y^2=1/n^2\}$, in the earring space, we can always find an open subarc $L_n$ that deformation retracts onto $(0,0)$, the wedge point. So why isn't the theorem applicable?


I found this thread:    It works great. But when I change to LuaLaTeX there is still just 1 cpu active.  So is there a way to achive this with LuaLaTeX aswell?

Are there any latex compilers which support parallel compilation for a book?  For example, the chapters in a multi-part latex document can potentially be compiled on separate cores to speed up compilation:   \begin{document} \pagestyle{plain} \onehalfspacing \frontmatter \include{title} \include{abstract}  \mainmatter   \include{chapter1} \include{chapter2} ... \include{chapterN}  \begin{appendices} \include{appendices} \end{appendices}  \backmatter \bibliographystyle{unsrt} \bibliography{references}  \end{document}


why these codes are showing different results :  for (int i = 0; i < 5; ++i)     {         static int n = 0;         n++;         cout<<n<<endl; // prints 1 2 3 4 5     }      for (int i = 0; i < 5; ++i)     {         int n = 0;         n++;         cout<<n<<endl; // prints 1 1 1 1 1     }   if static variable n is declared again then, why it is retaining its previous value. What exactly is happening with the scope of static variable inside "for" loop ? Why does not compiler showed error for declaring again an existing variable, during second iteration in the (first)loop ?  Also please tell why these codes are showing different result :  for(i=0;i<5;i++)     {         static int n;         n=0;         n++;         cout<<n<<endl; //Print 1 1 1 1 1     }      for(i=0;i<5;i++)     {         static int n=0;         n++;         cout<<n<<endl; //Print 1 2 3 4 5     }

If a variable is declared as static in a function's scope it is only initialized once and retains its value between function calls. What exactly is its lifetime? When do its constructor and destructor get called?  void foo()  {      static string plonk = "When will I die?"; }


I am trying to change the fade in a different background-color of my  tag through console. I am using the command $('body').animate({backgroundColor: "#fff"}, 'slow'); that I got  but all it does it returns the jQuery object which represents body. I do have jQuery included.  How can I transition to another background color through console?

I am trying to animate a change in backgroundColor using jQuery on mouseover.  I have checked some example and I seem to have it right, it works with other properties like fontSize, but with backgroundColor I get and "Invalid Property" js error. The element I am working with is a div.  $(".usercontent").mouseover(function() {     $(this).animate({ backgroundColor: "olive" }, "slow"); });   Any ideas?


I'm trying to connect to an ftp server and do numerous things from a batch file. However, on any new computer, even after allowing ports 20 and 21 in and out, it hangs when I run any command such as ls or cd with 200 PORT command successful. It logs in fine but once I try and do something it hangs. If I turn off the firewall it works fine, however this is not ideal. What other ports or settings must I change?

I am using Windows 7 and have multiple FTP client applications working without any problem. However, when I use command-line FTP, I can get connected, log in (after entering user name and password), but it always gets disconnected when the dir or ls command is used. The response is:     Connection closed by remote host.   How can I fix this problem?


I'm trying to inline a few snippets of diff patches, and manually formatting them is a droll - is there a way to do it automatically?  In general I want it to look like the following example, but obviously the finer details of font and colour are less important (as long as they're internally consistent)

In a text about Git I want to typeset diffs similar to this visualization: .    Is there any ready-made solution to that, especially the coloring of the diff lines? (In other commits there may be even an additional highlighting of the actual changed part of a line with a different background color.  Of course I could 'roll my own' but don't want to reinvent the wheel.  (Searching for LaTeX and diff only seems to mathematical symbols or how to diff LaTeX documents ...)


I have an object which I have parented to an empty object, and also changed the transformation orientation to local. I press R then Z key to make the desired keyframes, but when I animate it, its animating on the wrong axis/orientation.

I'm trying to rotate the blades of a windmill for an animation but the windmill is already at an angle. When I keyframe it on it's own axis (after pressing control + alt + space) and rotate it the blades spin inwards during the animation before coming back at the end. I've tried locking the other axis but that keeps the blades from rotating back to the right orientation. Also, whenever I rotate the object 360 degrees it turns the 360 into a really small number (0.0001) so it plays forward hallway then backwards (with a 180 degree keyframe halfway). Any help would be appreciated!.


My listings have the numbering 1.1, 1.2, 1.3 - 2.1, 2.2, ... I need them to be continuous regardless of the chapter or section, being 1, 2, 3, 4, 5, 6, ...  The commands i used on listings:  \usepackage{listings} \renewcommand{\lstlistingname}{Trecho de código} \renewcommand{\lstlistlistingname}{Lista de trechos de código}

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


I have created an Image collection in GEE, and I have computed NDVI index and mapped in each Imagen from Collection. Later, I create another collection with NDVI as a band, an finally Statacked in a Imagen each NDVI band. BUT the question is: how add the NDVI´s DATES in each band of the Stacked Image? function addNDVI(image) {   var ndvi = image.normalizedDifference(['B5', 'B4']).rename('ndvi')   return image.addBands([ndvi]) } var collection = ee.ImageCollection ("COPERNICUS/S2_SR")   .filterBounds(geometry)   .filterMetadata ("CLOUDY_PIXEL_PERCENTAGE", "Less_Than", 30)   .map(addNDVI)  print(collection)  var Coleccion_ndvi =  collection.select(["ndvi"]) print(Coleccion_ndvi)  var stackCollection = function(collection) {   var first = ee.Image(collection.first()).select([]);   var appendBands = function(image, previous) {     return ee.Image(previous).addBands(image);   };   return ee.Image(collection.iterate(appendBands, first)); }; var stacked = stackCollection(Coleccion_ndvi); print('stacked image', stacked);

I have created an Image collection in GEE and with the help of a function I have computed NDVI index and mapped it to create another collection with NDVI as a band.   Now I want the create a stacked image with NDVI bands of the entire image collection into one image. So it should be like NDVI_1, NDVI_2 and so on...  How can I do this? I am pasting the code that shows the NDVI collection that I have so far  // Collection of Images  var collection = ee.ImageCollection([feb1,feb2,Mar2,April1, April2, May1, May2, Jun1,Jun2, July2, Aug2, Sep1, Sep2,Oct1, Oct2, Nov1, Nov2, Dec1, Dec2 ]);    //Using the following function,NDVI of the entire collection is computed var indicesS2 = function(scene) { var ndvi = scene.normalizedDifference(['B8', 'B4']).rename('NDVI');   var image = ee.Image()                 .set('system:time_start', ee.Date(scene.get('system:time_start')));          return image.addBands([ndvi]).clip(Sheikhupura); }; var NDVIcollection = collection.map(indicesS2); print (NDVIcollection, 'NDVI');


I'm making a chess game, and I'm laying out the classes. It makes sense to have a base Piece class, and separate Rook, Bishop, Knight, Pawn, King, and Queen classes to inherit from it. The only parameter the constructor will need is a boolean "owner" value (which will be a member of the base class): true for player, false for AI. I think the objects should be instantiated like this:  //create a Rook owned by the player Rook exampleRook = new Rook(true); //create a Knight owned by the AI Knight exampleKnight = new Knight(false);   It seems like I would have to do something like this in each derived class:  Rook(bool owner) {     this->owner = owner; }   Which seems to violate the whole principle of inheritance: write code once in the base class, and then inherit. I might have to write a setOwner() function in the base class, but it seems to make more sense to set the owner in the constructor instead of in a separate function (which could be called again).

Why does this code:  class A {     public:          explicit A(int x) {} };  class B: public A { };  int main(void) {     B *b = new B(5);     delete b; }   Result in these errors:   main.cpp: In function ‘int main()’: main.cpp:13: error: no matching function for call to ‘B::B(int)’ main.cpp:8: note: candidates are: B::B() main.cpp:8: note:                 B::B(const B&)   Shouldn't B inherit A's constructor?  (this is using gcc)


I am new to this site. Please help me figure out this problem.  Is it possible to lift oneself like shown in schematic?  Waiting for good suggestions.  Chirag

I have a pretty basic pulley problem where I lack the right start.  A child sits on a seat which is held by a rope going to a cable roll (attached to a tree) and back into the kid's hands.    When it sits still, I believe that the force on either side of the rope must be equal to keep is static, therefore each rope holds $\frac{1}{2}mg$, the cable roll has to carry the full $mg$.  Now, the kid wants go up with $\frac{1}{5}g$. For the whole system to accelerate up, the cable roll has to support another $\frac{1}{5}mg$ resulting in $\frac{6}{5}mg$ of force.  The question that I cannot answer is:     How much force does the kid need to apply onto the rope in its hands?   As I said before, $F_k$ (kid) and $F_s$ (seat) have to be $\frac{6}{5}mg$. So I get this:  $$F_k + F_s = \frac{6}{5}mg $$  In order to solve for either one, I would need another equation. The forces cannot be equal, otherwise there would be no movement of the rope. So I just invented the condition, that the difference of the forces has to be the acceleration:  $$F_k - F_s = \frac{1}{5}mg $$  I can solve this giving me $F_s = \frac{5}{10}mg$ and $F_k = \frac{7}{10}mg$ which will sum up to the total force.  But is this the right approach at all?


I am trying to play a map on LAN. But every time I try to log on, I get:     java.net.ConnectException: Connection refused: no further information:   This used to work, but for some reason has stopped all of a sudden. I looked it up online, and everything I found said the firewall just wasn't allowing Java through. I followed tutorials to allow Java through the firewall, but even then it won't work. I know for a fact that I'm putting the IP in correctly, and everything seems to be correct, but yet I still get the same error message.  If it helps any, I'm using MC version 1.8.9 (the map requires it), and I don't have any mods.

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.


Noether theorem implies that there is a conserved current $j^\mu$ for every continuous symmetry of the action, i.e. $$\partial_\mu j^\mu=0 $$  to each conserved current we can associate a conserved charge  $$\partial_0j^0+\partial_ij^i=0 $$  integrating  $$ \partial_0\int d^3x\,j^0=-\int d^3x \,\partial_ij^i=0$$  by the divergence theorem and assuming that the current is $0$ at infinity  But wait, why do this only with the time component? Why can't I write (not using Einstein's convention)  $$ \partial_a j^a=-\sum_{k\neq a}\partial_kj^k\\ \partial_a\int dt \,dx_k\,dx_l \,j^a=-\int dt \,dx_k\,dx_l \,(\partial_tj^t +\partial_kj^k+\partial_lj^l)=0$$  with $k,l\neq a$ and where in the last equality I assumed the current is $0$ at infinity and sufficiently far in the future and past?   Is this something true but useless or is there something wrong in supposing the current is $0$ in the past and future (or in some other point of the derivation)? No field theory book or script I've come across mentions it.

Noether's theorem gives rise to quantities that are conserved over time. But does it also give rise to quantities that are conserved over space?


I only have cat6 wall insert but I'm not sure if the cat5e cable inside the wall will be compatible with it. I'd rather not have to replace the cable inside the wall.

I was wondering if I can use a CAT5e keystone jack with CAT6 cable. I am refering to the parts that terminate a cable where it comes out of the wall.  I want to run a 30 ft length of CAT6 but all I have is CAT5e jacks and I don't want to buy any news ones if I don't have to.  I had read somewhere that CAT5e is 100mhz and CAT6 is 200mhz (though I could have sworn CAT6 was 350mhz).  Anyhow any assistance would be appreciated.


Workflow is a sequence of steps through which a piece of work goes (from initiation to completion).  Let's say we are discussing some workflow:     Do we register the time spent on each step as/while/during a piece of work goes through the workflow?   Which of "as", "while", "during" (if any) is correct?

What does the word "as" describe in the following sentence?     As I was about to get out of bed, I heard a noise coming from the kitchen downstairs.    Does "as" imply simultaneous short actions? Is "as" just background information? Can "while" be used instead?


running python from terminal gives python 3.6, even though the sym link in usr/bin for python is set to 2.7. I also don't see an alias for python installed, when I type alias in the terminal. catkin_make seems to use python 3.6 instead of the 2.7 that it needs...   I only find posts how of how to set ubuntu to default to 3.6. ... what do I do the other way around, to default back to 2.7 after I installed Anaconda?  Edit:  this worked to get the default python command to call python 2.7 again., but catkin_make still calls the 3.6 python...

Recently, I installed  on my 15.04 and ended up with this!  :~$ python --version Python 3.5.1 :: Anaconda 2.5.0 (64-bit)  :~$ python2 --version Python 2.7.9  :~$ python3 --version Python 3.5.1 :: Anaconda 2.5.0 (64-bit)   During the last moments of installation, I did enter something as yes in hurry, and I suppose it had to do something with this. (Ok, my fault, I should have handled that carefully, but I need help now, not criticism).    AFAIK this is definitely going to break other programs. What do I do now?    What I think could work.  Can this be done using aliases?  alias python=python2   But I ain't sure.


I left 2 blocks of cheese from a deli sit in the car overnight, car was hot inside.  I put in fridge right away when found.  Sharp and Baby Swiss.  Is it ok to eat?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I am planning to install IBM websphere community edition in Ubuntu.  Could you please suggest how can I extract the wasce_ibm60sdk_setup-3.0.0.4-ppc64linux.tar.bz2 file?

I'm downloading an engine game file which is compressed as .tar.bz2.  I'm trying this command  tar -zxvf enginsxt.tar.bz2   And it throws an error. I know that command  tar -zxvf   is only for extracting .tar.gz files, but how can I decompress this one?


Why is it only the Achievements drop down that has the time?  They both use exact dates, but only one has the UTC time.

Right now the achievements has it, but the inbox does not.      Considering the two icons are like ten pixels apart its not so hard to open one then the other, but it would still be nice to have the reference in the inbox as well.  Im not sure if this is a dupe. I tried digging thourgh the 70 answers in  but couldn't find it.


transparent was checked in render tab but I unchecked now what to do. I am trying to render video within mesh a uv sphere so I can see only sphere not video in render time what to do.

I tried to add a 3D object to a clip by following a youtube video. But clip doesn't show up in the render or in the compositing tab. It show up even in the camera view. I didn't change any settings. please help. Thank you.    And the  rendered images has only the cube in it like in the picture above.


I saw that the lower right bar shows the distance but in what direction do you walk?

There is a list of the nearby Pokemon and some approximate idea of the distance. But after I choose one, how do I actually walk towards it? Is there a way to see the Pokemon on the map or some direction indicator to follow?


My question: Is it bad from a SEO perspective to index different html pages that have (nearly-) identical content?  I am hosting an AngularJS webapp that serves static html pages to search crawlers. I don't want any JS-managed content to be omitted from search engines, so I generated different html files for small variants of the same page.  Example:   A page that contains 3 tabs will generate 3 html files, one with each tab content  A page with a carousel will generate a html file for each instance of the carousel  A page with a content-rich modal will create an html page for that modal, with the content of the 'master page' grayed out in the background.  Different languages generate different html files. However, as english is the fallback language, the generated content for 2 different urls is identical when translations are not available.    The result is that there is a lot of "common" content which appears in many different html files served to crawlers.  Is this a recommended approach?

This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?


Is there a name for the concept that some words have different degrees of precision, and that misalignment or ambiguity over the intended precision easily leads to misunderstanding? Some examples, but please note that I'm not trying to be particularly accurate with these definitions, but instead offered for purpose of drawing the point that there are two senses with differing levels of precision, and this ambiguity of precision if not addressed could lead to confusion/argument.  In colloquial usage the word "chemical" generally refers to dangerous substances, more likely liquid, usually man-made, and differentiated from "natural"; while in scientific usage a "chemical" is pretty much anything made of atoms — arsenic is a naturally occuring chemical substance, as even is gold.   A scientific "theory" is more narrowly defined than the colloquial usage, and particularly so as with a conspiracy "theory".   Today, armour scholars define "mail" as it was defined in the Middle Ages — consisting of a "fabric" of interlocked metal rings that form a strong, flexible, mesh armour. (The word "mail" being derived through the Old English mayle, the French maille, and Italian maglia, from the Latin macula, which refers to the mesh of a net). This definition of mail was not the one used by Victorian scholars though. They used the word in a more general sense — to describe any sort of metallic body armour (i.e. "mail" is "armour", and thus a need to invent the term "chain mail"). [cribbed from ]  So, similar to how a synecdoche refers to parts/whole of a thing, but different in that here the differentiation is by precision. Also,  polysemy is too broad, as it encompasses any alternatives of definition and not specifically two senses which are similar in topic/direction but otherwise disagree in terms of precision. (Doesn't have to be a single word)  Update: it would appear the closest sense has to do with Semantic Broadening and Semantic Narrowing.

What word (or how do you phrase things) do you use when the ostensible word for the class is the same as the word for a subset of the class?  For example, in the United States, there are many brands of sugared, carbonated soft drink that one can buy: Coca-Cola (or Coke), Pepsi, RC Cola, Sprite, 7-Up, A&W or Mug Root Beer, etc). The first two are kinds of 'coke' or 'cola' (but no one says 'cola').  , one asks for any type of such drink as 'coke'. How does one then ask for the particular kind of 'coke' that is 'Coke' (pronounced the same)? Does one reduplicate and say a 'Coke coke', does one repeat with emphasis (or without), does one use a different word like 'coca-cola' (co-cola), or what?  The (perceived) difficulty (surely those in the South are able to get the drink they want somehow) isn't limited to there. Where the drink is called 'soda', if you ask for a 'coke', you'll still sometimes have the choice among Coca-Cola, Pepsi, etc. "Can I have a Coke?" the response might be "Is Pepsi OK?". "Sure, Pepsi, Coke, whatever." You don't use 'cola', you just ask for the particular kind and hope the listener will help differentiate.   Given these multiple strategies for disambiguating, what do you do say to get a 'Coke' in the southern US? are there any other examples of a hypernym being the same as the hyponym, and so creating a disambiguation problem?


I have been invited to review technical content in the past. However, if I want to be part of review process for specific conference/journal – how do I go about and suggest my availability?

Critical reading is a very useful skill for most PhD students (and postdocs and researchers in general).  Instead of assuming that everything you read in a scientific paper is right, it's useful to learn how to evaluate the paper critically: e.g., to question its content, to identify shortcomings and limitations and ways it could be improved.  Experience with reviewing papers is a powerful way to gain experience at critical reading of papers. Writing reviews for journals and/or conference helps a PhD student learn to get better at reading a paper with a critical perspective.  Unfortunately, review opportunities for PhD students are rare.  For instance, it is rare for PhD students to be invited to serve on program committees or asked to review papers. In addition, some may think that PhD students are not competent enough to write correct reviews of scientific papers.  How does one solve this problem?  How can a PhD student get opportunities to practice reviewing papers?  What would you suggest to a PhD student who wants to do some reviews?


@Override protected Void doInBackground(String... strings) {     String JSPN_Request = "";     String response = "";     URL url = null;     JSONObject jsonObject = null;     HttpURLConnection conn = null;     OutputStream outputStream = null;     OutputStreamWriter outputStreamWriter = null;     BufferedWriter bufferedWriter = null;     try     {         url = new URL(strings[0]);         jsonObject = new JSONObject();         jsonObject.put("userId",102);         jsonObject.put("id",102);         jsonObject.put("title","hello world");         jsonObject.put("body","hello world");          conn = (HttpURLConnection) url.openConnection();         conn.setDoOutput(true);         OutputStream os = conn.getOutputStream();         outputStreamWriter = new OutputStreamWriter(os);         bufferedWriter = new BufferedWriter(outputStreamWriter);         bufferedWriter.write(jsonObject.toString());         bufferedWriter.flush();         bufferedWriter.close();         outputStream.close();         conn.setDoInput(true);         BufferedReader reader = new BufferedReader(new             InputStreamReader(conn.getInputStream()));         StringBuilder sb = new StringBuilder();         String line = null;         while((line = reader.readLine()) != null) {             sb.append(line);             break;         }         reader.close();         response = sb.toString().toString();      }catch (Exception e)     {         Log.d(TAG, "----------------------------------json-error----------------------------------");         Log.d(TAG, "POSTING ERROR" + e);         Log.d(TAG, "----------------------------------json-error----------------------------------");     }}   when i trying to post to database i get this error and i searched alot but nothing. i'm using localhost to post this data using url (10.0.3.0:8000/post) as i'm using genymotion emulator thanks in advance.

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


I need to use content from a testimonials page of another site, but I don't want to be caught for duplicate content.  Is there something I can do to tell google that the div where the content is is using content from another external page?

I have an account on wordpress. I am writing blogs there. Now I have published my same blogs with same content over DZONE and geekswithblogs.net and few other . Now my question is whether the SEO ranking of wordpress blogs will be hit. If yes then may I know how can I prevent that to happen if I post the same content over the other blogs publishing sites. Can I cross-link (by giving the original link of wordpress) on other sites, will that help me to prevent the SEO hit ? Any other suggestions will be so helpful. Should I stop posting over other sites and remain stick to my original one?


I'm looking for a single word that means something like 'being a man/woman of your word', or 'follow through' as a noun. I tried using 'integrity' at first, but that has other implications, like honesty and other moral principles.

I'm looking for an appropriate word to describe someone who is a man of his word.   Trustworthy springs to mind but doesn't seem appropriate, as it doesn't imply an honorable connotation associated with a person who keeps their word.


I know that a GPS receiver requires at least 4 satellites to locate its position in 3D, and I have read elsewhere that having more than 4 satellites would increase its location accuracy. My question is is there a way to calculate how much of a reduction in error is gained due to the increased number of satellites?

I have a question on the GPS positioning algorithm. In all books I've read for 3D positioning we need four satellites, and I don't understand why.  We need to calculate three variables: x, y, z. We know when satellite send the signal to earth and when we receive it we can measure the time the signal travel to earth by checking the shift in PRN generator. For what purpose do we need four satellite?


I have a Tumblr blog on my "news" page on my website so if I keep this updated regularly will this improve my SEO and should I link it to my Facebook and Twitter?

A client of ours has a CMS driven Blog in his hotel site - he would like to use the blog to add depth top his site and add SEO benefits relating to the blogs content.  The current blog is a basic header / text field and doesn't contain any tagging / meta features.   Unfortunately we don't have a .net developer in our team to alter the existing blog and add meta / tagging and there isn't budget to hire one - so I considered using a Tumblr blog - setting it up externally - giving it a blog.hotelname.com address and feeding it into the existing page via Tumblrs JS - which basically does a document.write into the page - which we can style.  I understand from a previous post ( as a general rule most search engines ignore JS created content - but will the above approach act as an improvement on the existing system for now - as the blog will be setup externally with its own URL and also feed into the existing site?


I am self-studying group theory, and find it frustrating that problems on my books do not have solutions provided, here is one:     Show that the symmetry group $S_n$ can be generated by the set $\{(1 2),(1 2 \cdots n)\}$ of a transposition and a n-cycle   My thoughts:   To prove that elements in this set actually generate $S_n$, I shall show that every permutation $\sigma \in S_n$ can be written as a combination of $(1 \ 2)$ and $(1 \ 2 \ \cdots \ n)$. How shall I proceed to solve this problem?

Show that $S_n$ is generated by the set $ \{ (12),(123\dots n) \} $.  I think I can see why this is true. My general plan is (1) to show that by applying various combinations of these two cycles you can get each transposition, and then (2) to show that each cycle is a product of transpositions.  I'm just having trouble on the first step. Any ideas?


recently I have install  Ubuntu 13.04 removing windows 7 . before installing Ubuntu in win 7 there are 5 partition storing my  important data but after installing  Ubuntu all partition merged into single one and delete my all earlier data but I want to get back my those all data please give me useful information to help

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.