Are PHP5 objects passed by reference?
Are objects in PHP passed by value or reference?
How do I share a private YouTube video with someone? I have uploaded a YouTube video and marked it as private.  Now I want to share it with someone. I have tried to share it a few times, but they have not received any email notification.  What is the proper way of sharing the video? Continuous v. per-chapter/section numbering of figures, tables, and other document elements 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? How can a path animation be used as an action in the game engine? I animated a rollercoaster using a Bezier Curve and a Follow Path Constraint affecting the vehicle.  Then I tried to use the automatically created action in the game engine but the Action Actuator has no effect .    How can this action be used in the BGE? Can the Path Animation alternatively be converted into keyframes? Rename profile folder on Windows 7/8 How can I stop iPhone prompting me to setup Apple Pay in Settings? I've checked in the home folder but this is all I see. List of CSS features not supported by IE6 Reading/Writing a MS Word file in PHP Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can:  $file = fopen('c:\file.doc', 'w+'); fwrite($file, $text); fclose();   but Word will read it as an HTML file not a native .doc file. Are the suggested edit audits too easy? Yes, this might be another post complaining about audits. But, in this case, I want the audits to be more difficult.  Specifically, I'm concerned that the suggested edits audits are just too darn easy to spot. They don't behave anything like actual edits, and so after a tiny bit of experience (and electric shocks from audit failures) I think they wouldn't slow down a roboreviewer at all.  Unlike the other queues, which use real data (and are legitimately, in my opinion, difficult), the suggested edits audits look like this:    In about 500ms I can tell that is a bogus edit (less time than it takes for the buttons to unfreeze). After just a few of these, I'm about 99% confident I could tell you which edits were audit edits and which ones were not, and I don't think I actually have to spend extra time on them. On the other queues, picking out the audits is very hard because they use real data, and so I wouldn't bother to do so.  Were I a roboreviewer, I could get on with my Accept-happy life, only pausing to reconsider when someone actually changes the text. (Seriously -- how many real edits have you see which change the text in such a drastic manner? 95% of edits are grammar, spelling, formatting or some combination of those).  Are the suggested edits audits too easy? Is the "Markov-chain random-edit-word-salad" too easily detectable? Or does it legitimately slow down and/or deter robo-reviewers? Should we (and can we) be using real data for the suggested audits queue too? What is the function of this circuit? Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it. Let $X$ be adapted integrand, for which we know that $E[\int_0^T X_s^2 \, ds]&lt; \infty $. Let $0≤s&lt;t≤T$ and we have some $W∈F_s$ ($F_s$ is $\sigma$-algebra) and we know $E[\int_s^t W^2X_u^2 \, du]&lt;\infty$. I have to show  that $\int_s^t W X_u \, dB_u=W \int_s^t X_u dBu$.  I know that for simple integrands this follows from definition. We also know that for $X$ there exists sequence of elementary integrands $X^n$ such that $E[ \int_0^t (X^n_u-X_u)^2 \, du]$ converges to $0$, when $n \to \infty$. From this one can see that it also holds $E[ (\int_0^t (X^n_u-X_u) \, dB_u)^2]$. I wonder if I can show that it  holds $E[ |(\int_s^t W (X^n_u-X_u) \, dB_u)|] \to 0$ as $n \to \infty$ . (I think I should use Cauchy- Schwarz inequality: $E(XY)^2 \leq E(X^2)E(Y^2)$, but not sure where. If I could show this convergence in $L^1$, it would be enough for my proof. If I rewrite it as $E[E[|(\int_s^t W(X^n_u-X_u) \, dB_u)|  \mid F_s]]$ I don't know if I can put $W$ out of integral. Would it be correct? Any help would be really very appreciated. Thanks. Time reversal symmetry and T^2 = -1 How to transit through Delhi without a visa? For $p,q$ prime and $p \neq q$ show that $C_p \times C_q \cong C_{pq}$ Here are my thoughts so far:    $C_p = \langle x \mid x^p =e\rangle$ $C_q = \langle y \mid y^q =e\rangle$ $C_p \times C_q$ has elements of the form $(x^a,y^b)$ There are $p$ possible values for $x^a$ and $q$ possible values for $y^b$. So there are $pq$ possible elements in $C_p \times C_q$. $C_{pq} = \langle z\mid z^{pq} = e\rangle$ and there are $pq$ elements in this group. For an isomorphism from $C_p \times C_q$ to $C_{pq}$ we send $(e,e)$ to $e$ to ensure that the identities are mapped to each other. However, I'm not sure how to define an isomorphism for the other elements. I dont know how to sort a list of SObject Case.  I have a List&lt;Case&gt; newCases which i iterate over in for cycle, where i save Cases to my new List&lt;Case&gt; casesList.  for (Case newCase : newCases) {             if(newCase.Case_Content__c == '111' &amp;&amp; newCase.Status == '24'){                 String cuid = newCase.CUID__c;                 cuidSet.add(cuid);                 casesList.add(newCase);                 casesList.sort(); //TODO sorting by CUID__c             }         }   What i need to do is, to sort this new list by field CUID__c. So the Cases with same CUID are together.  Thank you for any help :) Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time? I'm trying to make a script where I have to render several images of the same scene at the same frame, and write to disk with appropriate names. The problem is that although this works fine with a non-responsive UI, it doesn't work well when the render progress appears in the Blender UI.  I mean,  bpy.ops.render.render()   uses "EXEC_DEFAULT" when called from a script. This leaves a blocked User Interface until the render finishes, meaning that you can't cancel the process, except by killing Blender. The problem is that the render may be too big in resolution, and the user could want to stop the process when realizing that the render could take hours, so the idea is to cancel this process without losing the currently opened project.  If I call,  bpy.ops.render.render("INVOKE_DEFAULT")   I get a nice preview bar in the Info Window with a clickable "X" button. I want the user to be able to press that button to cancel the operation if needed, but for a series of renders (not animation).  The problem here seems to be when trying to loop this command with the INVOKE_DEFAULT context to write several renders. I made a lot of testing, and this way of calling the render operator seems to continue with whatever is next in the script, so it loops very fast and ends before the rendering actually finishes.  I think that I need some way to stop the script and make it wait until render finishes to continue looping with the next ones. I tried the "render_complete" and "render_cancel" handlers, but I can't use them to start a new render or even make the rest of the script wait until the loop of renders is complete. I tried threading and events without success either. Maybe I'm doing something wrong.  import bpy  render = bpy.context.scene.render path = render.filepath = "/tmp/" shots = ["one", "two", "three"]  for x in shots:     render.filepath = path + x     bpy.ops.render.render("INVOKE_DEFAULT", write_still=True) # this doesn't work      # but if I use:     # bpy.ops.render.render(write_still=True)     # without the INVOKE thing, images are written as expected,     # but losing the possibility to see the progress and cancel rendering How do you fix a bad merge, and replay your good commits onto a fixed merge? Is there a website with historical temperatures and weather data? I am interested in hiking this fall in France and camping along the way. In order to figure what gear I need to pack to camp (particularly for the sleeping bag), I would like to know what temperatures to expect.  I am interested in historical temperatures to figure the usual temperature and I might look at them for other seasons. If that matters, I am thinking about hiking in the Pays Basque (South West of France), the mountainous part.  Where (ideally online and for free) can I find such data? Are there resources that cover Europe, or even the whole world? Looking for a quick and dirty way to automate . I presume this could be done with an automation to press the mouse button from two separate pixel coordinates, with delay, so long as the browser window doesn't move -- unless there's a better way.  I tried building a Watch Me Do workflow, in Automator, but can't seem to get it to work.  I get the error "application Chrome is not running when it is expected to." It also never lists mouse clicks for some reason.  I do have accessibility set up, in system preferences > security &amp; privacy > privacy > accessibility.  Automator, Chrome and System Events are all checked within there (among other stuff of course).  I tried the markashworth workaround as detailed  -- which also doesn't seem to work. Using his method, I get this error:    UPDATE: I just downloaded "cliclick" and figured out how do both clicks as a terminal command, with the proper delays.  BUT -- I don't know code and need a way for this terminal command to repeat "x" amount of times.  Anyone know how I could do that in Script Editor?  The command line is:  cliclick c:132,286 w:100 c:132,286 w:5000 c:1100,238   I would need a few seconds of delay before the loop repeats, which I presume I could do with a final "w:" in that line.  Thanks for the help!! After the death of Lord Voldemort, Harry was taken to the Dursleys and became known as "The Boy Who Lived".  We know that the Wizarding World found out  that Voldemort was dead and undoubtedly it was Dumbledore that advised people that Harry had somehow survived the attack and caused Voldemort's death. According to Snape (in HP:HBP) there were even persistent rumours that Harry was a powerful Dark Wizard in the making until he turned up at Hogwarts a decade later.  My question is : Where did the Wizarding World think Harry was for the intervening 10 years?