Passing an array of ints as an argument in C++?
How to find the 'sizeof' (a pointer pointing to an array)?
I was just wondering about that because it would influence how I deal with closed questions, e.g. whether they need to be improved (tagging, formatting, code samples) after closing, or if some should be deleted altogether.  However, I'm not asking for answers to these questions, I just want to know if Google (and/or other search engines) list closed questions in their search results. (I hope they don't.) Last night, I was using Chrome just nicely, but this morning, I can't even start Google Chrome as it immediately crashes. I have already tried a clean uninstall and reinstall of Google Chrome but still the same error pops up (it does not happen while I'm opening Google Chrome. I woke up and only then realized I can't open my Chrome and it keeps popping up saying that Google Chrome has stopped working.)  OS : Win 7 64-bit  Here is the detail of the crashes  Problem signature:  Problem Event Name:    APPCRASH   Application Name:    chrome.exe    Application Version:    35.0.1916.114 Application Timestamp:    53726019    Fault Module Name:    chrome.dll   Fault Module Version:    35.0.1916.114   Fault Module Timestamp:    53725d18    Exception Code:    c0000005    Exception Offset:    00728bc8      OS Version:    6.1.7600.2.0.0.768.3    Locale ID:    17417    Additional Information 1:    0a9e    Additional Information 2:    0a9e372d3b4ad19135b953a78882e789    Additional Information 3:    0a9e    Additional Information 4:    0a9e372d3b4ad19135b953a78882e789     Any help that will solve this problems is greatly appreciated. How to curve my mesh I'd like to curve my object, but I'm considering two options.  The first one is to make the object up with lots of vertices, like a sphere can be. The second is to apply some kind of modifier curve to a straight mesh, as I've understood there is such a possibility.  Here's an awesome pen drawing of what I'd like to achieve:    and here's my current even more awesome result:    Rather non-awesomely, they don't quite match. So if someone would kindly point me to the correct method to achieving a nice-looking solution with relatively low polygons, I'd be much enlightened Buffering GeoJSON file using Python? I'm trying to perform a simple buffer on GeoJSON file using Python script. I am able to do it on a shapefile using Python script and on GeoJSON using QGIS fix distance buffer tool but I can't figure out how to do it on GeoJSON using Python script. I read many posts on it but none of them include working solely on GeoJSON. I also know that it is possible to convert GeoJSON to .shp but I need to work only with GeoJSON files.  My code that works for .shp file:  from osgeo import ogr  ds = ogr.Open(r'C:\vector files\tryyy.shp', 1) in_lyr = ds.GetLayer() out_lyr = ds.CreateLayer('new_buff44',in_lyr.GetSpatialRef(),ogr.wkbPolygon) out_lyr.CreateFields(in_lyr.schema) out_defn = out_lyr.GetLayerDefn() out_feat = ogr.Feature(out_defn) bufferDist = -0.00015075  for in_feat in in_lyr:      geom = in_feat.geometry()     out_feat.SetGeometry(geom)     for in_feat in in_lyr:          geom = in_feat.geometry().Buffer(bufferDist)         out_feat.SetGeometry(geom)         for i in range(in_feat.GetFieldCount()):             value = in_feat.GetField(i)             out_feat.SetField(i, value)         out_lyr.CreateFeature(out_feat)  del ds print "finish"   When I change the file from shp to geojson in the org.Open line I get:      NoneType' object has no attribute 'CreateFields'   I thought that if I read vector file as OGR datasource object then it doesn't matter which format is the original vector file.   Can someone help me understand what I should change so that the code will work on GeoJSON files? This is a summary of the excerpt:  Given that we have:  *$10^9$ people  *each person has a chance of 0.01 of going to a hotel  *we have $10^5$ hotels, each hotel holds 100 people  *Thus, $P(2 \text{ persons meet on the same hotel in any given day}) = 0.01 \cdot 0.01 \cdot 10^{-5}$  *and $P(2\text{ persons on the same hotel in $2$ day}) = P(2 \text{ persons on the same hotel in any given days})^2 = 10^{-18}$  the book "Mining of Massive Dataset" said that the expected number of pairs who stay in the same hotel for 2 days is:  $P(2 \text{ persons on the same hotel in $2$ days}) \cdot ( \text{number of pairs of people} ) \cdot (\text{number of pairs of days})$  this is the part where I got stuck. Can't understand how it come to this derivation. Can anybody explain it in more elaborate detail.  You can find the content on page 6 of this link:  (it is freely available) What is the difference between an SLR and a DSLR? What are the differences between SLRs and DSLRs? (I know that DSLRs are Digital SLRs but are there any actual differences?)  Also, what are the advantages/disadvantages of both? How does Mathematica integrate? Question regarding use of low voltage high current outputs I see every day high voltage, high current; high voltage, low current. I rarely see low voltage, high current; why?  I know that I can take a high voltage, high current signal, send it through a step-down transformer and theoretically get a low voltage high current (with the same power output, of course), but I never see this done.  Can someone give me a reason as to why I wouldn't want a low-voltage high-current scenario? In preparation for the eventual deployment of full HTTPS support on Stack Exchange, and also to make the currently available "alpha" HTTPS support more usable, all links from Stack Exchange sites to other Stack Exchange sites should be .  Currently, at least the following places still feature links with explicit http: protocol prefixes:   the page footer, the "Hot Network Questions" and "Community Bulletin" modules in the sidebar,  (the site switcher menu is OK, though),   and, of course,   lots and lots of user-supplied links in post and comment content.   I've posted this feature request with the intent to provide a single central place for tracking these issues, rather than having them scattered across multiple meta threads.  If you find more places on SE where protocol-relative links should be used, please report them below.  I fully expect this request, in its full sense, to be treated as  for the time being; however, these issues do need to be fixed at some point before our HTTPS support is ready for "prime time".  Ps. Yes, the next release of  (v1.10) is going to include a general client-side fix for most of these issues.  In the mean time, the  plugin effectively provides the same functionality, and much more besides. Accused of cheating on online exams Why are POSIX Find Parameters Different from Other Program styles? Does the fact that matrices $A, B$ are similar imply that $A+cI$ is similar to $B+cI$? Let $A, B$ be similar $n \times n$ matrices over (say) $\mathbb{R}.$  Is it the case that $A+cI$ is similar to $B+cI$?    Here is an argument (which seems too good to be true...)  Since $A, B$ are similar, they have the same Jordan form. So we can write $PAP^{-1}=QBQ^{-1}=J$ for $P, Q$ invertible matrices.   Hence we have $P(A+cI)P^{-1}=PAP^{-1}+cI= J+cI.$ Similarly, we find $Q(B+cI)Q^{-1}=J+cI.$  Hence $A+cI$ and $B+cI$ are both similar to $J+cI$ and hence similar to each other.   Is this correct? "To be subject to" vs. "to be subjected to" Is drawing multiple cards an atomic action? Is drawing multiple cards an atomic action, or do effects triggered by drawing a card trigger for each card drawn instead?  Consider , which reads:     Whenever a player draws a card, Spiteful Visions deals 1 damage to that player.   If a player were to be compelled to draw more than one card, would that player be dealt the damage all at once, or one at a time? For example, how many times would  need to be activated to prevent all damage?  Furthermore, if there exist additional effects that are triggered by damage dealt in this way, are such effects resolved together atomically or is each resultant effect resolved individually?    How about tutors, or other cards not using the word 'draw', eg:      If you would draw a card, look at the top three cards of your library instead. Put one of those cards into your hand and the rest on the bottom of your library in any order. How did Montague Apparate into the Hogwarts bathroom? I play on the DivineJourney modpack with a friend, but he wants to constantly spawn things in. Is there any way to allow him to be able to use the teleport command, but not be able to spawn in items?  I've already locked the NEI mode to Recipe.  I've looked around for a mod for plug-ins for Forge (as thats what the server is on) but I couldn't find anything thats up to date. I found Sponge, but thats for 1.8+, and I need 1.7.10. This question, , seems to indicate $$\nabla_a \sqrt{g}=0.$$ Why is this the case? I've always learned that $$\nabla_a f= \partial_a f,$$ hence surely $$\nabla_a \sqrt{g}=  \partial_a\sqrt{g} \neq 0. $$  Where's the hole in my logic? is a light side power that many Jedi, including  are capable of. In Episode I, Qui-Gon uses it twice (once to outrun droids and once on Jar Jar's tongue), Obi-Wan uses it once and Anakin uses high speed reflexes for the entire duration of the pod race with no formal training.  According to  the power has a high drain and requires a longer recovery period than other powers. And then of course there are hilarious drawbacks such as .  But why wasn't this power used in the following scenarios (and many, many others):   The Redshirt Jedi who accompanied Windu to arrest Palpatine, before they were summarily dispatched to the Nether. Qui-Gonn, to avoid a lightsaber through his gut. Yoda, to avoid flying senate seats. By Windu, who is supposedly a notable practitioner. Subsetting a 2D numpy array Is there a difference between a LED Backlit and LED HD  Display on laptop monitor? or are they the same that is good for the eyes