Meanings of percent sign(%)
What does % do to strings in Python?
Convert shapely polygon coordinates I am trying to work with a shapefile using shapely, fiona and python. The original coordinate system is in latitude and longitude that I am trying to convert to state plane system. So I want an updated shapefile with coordinates as statePlane. I converted the json object:  fc = fiona.open("sample.shp")    geoJsonObj = shapefile_record['geometry'] array_coordinates = np.array(geoJsonObj['coordinates']) array_newCoordinates = copy.deepcopy(array_coordinates) for counter in range(0,len(array_coordinates[0])):     long,lat = p1(array_coordinates[0][counter][0],array_coordinates[0][counter][1])     #where p1 is a function to do the conversion     array_newCoordinates[0][counter][0] = long     array_newCoordinates[0][counter][1] = lat  geoJsonObj['coordinates'] = array_newCoordinates.tolist()   when i check the coordinates, i get state plane coordinates according to the transformation.  n. However, when i open the individual shapes/polygons within the shapefile, the coordinates are still latitude and longitude. why does this happen?  ----EDIT 1-----  from pyproj import Proj, transform import fiona from fiona.crs import from_epsg  dest_crs = from_epsg(4269) shape = fiona.open("Sample.shp") original = Proj(shape.crs) # EPSG:4326 in your case destination = Proj('+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25      +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83  +no_defs') with fiona.open('new.shp', 'w', 'ESRI Shapefile',shape.schema.copy(),crs = dest_crs) as output:     for feat in shape:                print feat['geometry']['coordinates']         for counter in range(0,len(feat['geometry']['coordinates'][0])):             long,lat =  feat['geometry']['coordinates'][0][counter]             x,y = transform(original, destination,long,lat)             feat['geometry']['coordinates'][0][counter] = (x,y)         output.write(feat) How can I include a YAML file inside another? So I have two YAML files, "A" and "B" and I want the contents of A to be inserted inside B, either spliced into the existing data structure, like an array, or as a child of an element, like the value for a certain hash key.  Is this possible at all? How? If not, any pointers to a normative reference? I have installed Ubuntu on, but now I am trying to install NVIDIA CUDA Toolkit for the GPU. When I install it, it says that there is no driver found, so I have tried to install the driver, but I don't know why after installation, the system not coming up. Maybe it is because of the wrong version of the driver.   When I tried to detect the driver version using sudo lshw -C display , it showed this information:    But here it doesn't say that what is the product name of the driver, and also when I go Software &amp; Updates -> Additional Drivers, then it says NVIDIA Corporation: Unknown.    What should I do? When is the Laplace transform of a function continuous? Are there any general conditions on a function so that its Laplace transform is continuous? e.g. what conditions on $f:\mathbb {R} \rightarrow \mathbb {R}$ guarantee that its Laplace transform  $$F\left(s\right)=\int_{0}^{\infty}f\left(t\right)e^{-st}dt$$ is continuous? It seems to me that if $f$ has compact support and is bounded, then it ought to be. The idea I have is that we get  $$\left|F\left(s'\right)-F\left(s\right)\right|\leq\int_{0}^{y}\left|f\left(t\right)\right|\left|e^{-st}\right|dt$$ by making $s'$ and $s$ close enough, it seems we can make the RHS arbitrarily small. I haven't been able to complete a proof. Additionally, can we change the assumptions? Are there more natural assumptions to get continuity? I am using Ubuntu 16.04 with GTX 1080. On my first boot, the screen turn black after I selected Ubuntu in grub. After I added nomodeset, the black screen gone however it only shows the Ubuntu default background image. It can't reach the login screen. Is it okay to use my US visa after a name change? I had my US visa about 7 month age, and I had to renew my passport for certain circumstances, so there was a mismatch in the name between both the visa and the new passport, you see they had to put my grand grandfather's name which was not on the old passport nor the visa, the name on old passport and visa is: Abdelrahman Samy Ali Mohammed and the new passport is: Abdelrahman Samy Ali Ibrahim Mohammed. My grand grandfather's name is Ibrahim, so the question is that gonna cause me any troubles concerning my entry to the US? is there any document should I consider taking it while i'm traveling?  Thanks,, How to not have an equation in the first line using the align environment? Getting the class name of an instance? How do I find out a name of class that created an instance of an object in Python if the function I am doing this from is the base class of which the class of the instance has been derived?  Was thinking maybe  might have helped me out here, but it doesn't seem to give me what I want. And short of parsing the __class__ member, I'm not sure how to get at this information. Delaunay triangulation to generate abstract networks and nodes Is it possible to use Delaunay triangulation to generate an image like the below from a raster or vector of an object (in this case, a human heart)? What software and techniques would be required to make something like this? My intention is to make and use something like this in Inkscape without having to draw all the nodes/lines/effects manually. Existence of subgroup of order six in $A_4$ Show that  the  alternating  group  $A_4$  of all even permutations of $S_4$ does not contain a  subgroup of order $6$.   For me am thinking to write all elements of $A_4$ and trying to find every cyclic subgroup generated by each element of $A_4$, then I have to check whether there exist such a subgroup or not! This is a long procedure for me, I ask if there is a short way to do this. What is the correct possessive for nouns ending in "‑s"? Passing Account ID to my Visualforce Page As the user goes into an account, there is a custom button that they can click that will redirect them to my Visualforce page.  How can I capture that account id  in my controller?  Thanks  public myControllerCBR(){     breachRecord = new List&lt;wrapperClass&gt;();      AccountTeamMember uId = [SELECT UserId FROM AccountTeamMember WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id') and TeamMemberRole = 'Sales Engineer' limit 1];      List&lt;User&gt; uName = [SELECT Name, Manager__c, MANAGERID, Email, MOBILEPHONE FROM User WHERE Id =:uId.UserId limit 1];       for(User rept : uName){         breachRecord.add(new wrapperClass(rept));     }  }   See button setup: I’m writing a document in the latex and it contains some BNF grammar noations in several places of the documents. (I used verbatim package in order to write these BNF grammar notations)  Now I want to add a new section to the document that shows name of all grammar notation and their page numbers. This should be similar to “List of Figures” page.  I’m new to Latex and your help will be very helpful for me.  Thanks Is there a canonical way to typeset such quantities in equations and inline math?  \documentclass{article} \begin{document} $Re$, $Nu$ are clearly not an option. $\mathit{Re}$, $\mathit{Nu}$ appear ok to me. \end{document} Shimano Deore front derailleur occasionally sticking I have a question about my front derailleur sticking occasionally.  I've had this bike for a 1.7 years and have ridden it through 2 winters.  It has only been after this last winter that my front derailleur has been sticking on occasion where it's like grit has jammed in somewhere (which I'm sure it is the case).  When I'm on the fly I just knock it with my heel and it will downshift and I can push the shifter hard enough to go back up when I need to.  The first time I decided to overhaul both the front and back ones.  Took them apart, cleaned/degreased, regreased the two back cogs, and used WD-40 professional silicone on the rest of the parts as to not attract more dirt.  Then after about a month it got stuck again, and I couldn't see anything that could be jamming it (while it was still stiff as heck).  Didn't take it apart this time just used a tooth brush and silicone again and it's fine at the moment.  I'm assuming it may be that since that the roads have been grittier/dirtier from the winter with some recent rain and slush that it may just be normal.  I haven't been on the trails yet this year so I know it's not that.  Is this normal, has some kind of bur that I can't see come up and is catching grit?  EDIT:  I should also note that this is a hardtail mtb that I use for trails and winter commuting (a lot of salt and grit on the roads). How to ignore everything in the document environment? Studying for CISSP these choices seemed limited:     What is the advantage of digital signatures over message authentication codes?         Digital Signature provides integrity verification while message authentication code does not   Digital Signature provides confidentiality while message authentication code does not   Digital Signatures provide authenticity while message authentication code does not   Digital Signatures works faster than message authentication codes      Using the following chart as a reference, I'm leaning towards #2, but none of the choices really fit properly…  Cryptographic primitive | Hash |    MAC    | Digital Security Goal           |      |           | signature ------------------------+------+-----------+------------- Integrity               |  Yes |    Yes    |   Yes Authentication          |  No  |    Yes    |   Yes Non-repudiation         |  No  |    No     |   Yes ------------------------+------+-----------+------------- Kind of keys            | none | symmetric | asymmetric                         |      |    keys   |    keys   Hopefully an expert here can clarify. if recursively find ext, then, else on unix This is what I normally use. But I need to recursively find an extension with, then, and else. The problem with this one is that it is not recursive.  if ls $HOME/Downloads/*.ext &gt;/dev/null 2&gt;&amp;1 then     : else     : fi Show that a connected metric space is $\epsilon$-chainable for $\epsilon>0$ Show a connected metric space (X,d) is $\epsilon$-chainable for $\epsilon &gt;0$       $\epsilon$-chainable Definition      (X,d) is $\epsilon$-chainable if given any two points $a,b \in X$, $\exists$ a finite set $\{ x_0,x_1,...,x_n\}$ of points in X with $x_0 = a$, $x_n=b$ and $d(x_{n-1},x_n)&lt;\epsilon$, $\forall$ n      Clopen Definition      A set is clopen $iff$ its boundary is empty      Connected Metric Definition      Let $(X,d)$ be a metric space. It is connected $iff$ it has no proper subsets which are clopen      The following are equivalent:         $X$ is connected   The only subsets of $X$ that are clopen are $\emptyset$ and $X$   $\nexists$ non-empty, disjoint, open sets $A$ and $B$ such that $X=A\bigcup B$   $\nexists$ non-empty, disjoint, closed sets $A$ and $B$ such that $X=A\bigcup B$         Theorem      Let $(X,d)$ be a metric space, and let $S$ be any subset of $X$. Then $S$ is closed $iff$ $S^c$ is open.     So how would someone show this exactly?  Let the set $A$ be the set of all elements in $(X,d)$ that can be reached from $a\in X$ in a finite number of steps with length less than $\epsilon$.  Does this mean that there should be no isolated points? (an isolated point would be at distance infinity from any other point, or distance zero from itself, since $\epsilon &gt;0$ we don't want this?)  Knowing that $X$ is connected $\implies$the only subsets of X that are clopen are $\emptyset$ and $X$  Also, by construction of A;   A is the set of all $\epsilon$-chains between any element and $a$  And, so $A^c = \emptyset$ if $A$ was $\epsilon$-chainable (because A has to have a path from all elements to a, for this to be true, the complement wouldn't have anything in it)  Leaving only $A$ as the remaining clopen set  Does this make any sense? Or should an alternative be used, and how to formalize it.  Thanks. When do I use "I" instead of "me?"