Access property from outside a method
Objective-C Blocks and variable scope
Mrs Reed safe combination Mrs Reed forgets the number combination to her safe. The combination has $4$ numbers each is a $1$ digit number. The $4$ digits add up to $10$ and there are no zeros. How many times does Mrs Reed have to try to open her safe?  My attempt: ${9 \choose 3} = 84$ but the answer is $80$. How can I expand a partition into non adjacent free space using GParted? Film where aliens looking like humans are waiting in an airport closed due to snowstorm I saw the movie 6 - 7 years back on cable tv, from the looks of it it seemed to be made in the late 1990's or early 2000's. Unfortunately I could not see the complete movie. The story goes like--   Some people are waiting at a small airport because snowstorm activity has cancelled all flights in and out. There are two children in the group as well (one boy and a girl). Somehow they discover there are aliens looking like humans among them. They decide to check passengers through baggage scanners (checking the skeletal structure via x-ray). They find and kill 2 aliens.   and the big twist:      5. They then realize the two children are also aliens.   any ideas what the name of the movie is ??? Handling mouse events for tool called by button? I have a dockable window with a 2 buttons that call 2 different tools (Draw Marker and Select Features), What i want to happen is when the user clicks on the relevant button on the dockable window and then clicks on the map, a onMouseUp event is called and it runs code i need to run.   Where does the onMouseUp event need to be placed so this can be done? I have a file with the lines like below.  title1:A1 title2:A2 title3:A3 title4:A4 title5:A5  title1:B1 title2:B2 title3:B3 title4:B4 title5:B5  title1:C1 title2:C2 title3:C3 title4:C4 title5:C5  title1:D1 title2:D2 title3:D3 title4:D4 title5:D5  How can I achieve this?   title1    title2     title3    title4 A1         A2         A3         A4 B1         B2         B3         B4 C1         C2         C3         C4 D1         D2         D3         D4 Why is spawning threads in Java EE container discouraged? One of the first things I've learned about Java EE development is that I shouldn't spawn my own threads inside a Java EE container. But when I come to think about it, I don't know the reason.  Can you clearly explain why it is discouraged?   I am sure most enterprise applications need some kind of asynchronous jobs like mail daemons, idle sessions, cleanup jobs etc.  So, if indeed one shouldn't spawn threads, what is the correct way to do it when needed? Presentation $\langle x,y,z\mid xyx^{-1}y^{-2},yzy^{-1}z^{-2},zxz^{-1}x^{-2}\rangle$ of group equal to trivial group Problem: Show that the group given by the presentation $$\langle x,y,z  \mid xyx^{-1}y^{-2}\, , \, yzy^{-1}z^{-2}\, , \, zxz^{-1}x^{-2} \rangle $$ is equivalent to the trivial group.   I have tried all sorts of manners to try to show that the relations given by the presentation above imply that $x=y=z=e$. However, I am stuck and would appreciate any hints as to how I should move forward. How did the Tesseract come to Earth from Asgard? How do I URL encode a string Shapefile layer no longer editable (toggle edit option greyed out) in QGIS? Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time it has happened, but the last time was weeks ago; I deleted the files and nothing broke or complained. I haven't been able to think of what I was doing at the time reported by stat $filename. Is there any way I can find out where they came from?  Alternatively, is there a way to monitor the home directory (but not sub-directories) for the creation of files? How to extend my root (/) partition? Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with  Install Now . Soon I got the following window.    Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages.   Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window.       I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces.  Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed!   Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4  partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed!  I am out of choices now.  What shall I do? Help me to extend my / with Gparted. This is the achievements drop-down on Ask Ubuntu:    It doesn't look very good. The same happens on Meta SE - so it's a new and old top-bar issue.    Mac OS 10.12.6, Chrome 60.0.3112.113. Also happens in Safari 11.0 and Chrome incognito mode with no extensions, so is not a user-script issue. Zoom at 100%.  Does not happen with Chrome on Windows 10. Context: I want to store the TIFF data to use it for running a linear regression model later on. Ultimate goal: Create a carbon map using field data as a basis. Libraries: library(sp) library(raster) library(tidyverse) library(rgdal)  plotcoord &lt;- SpatialPointsDataFrame(AGCplot[,3:4], AGCplot[,1:2],proj4string=CRS('+proj=longlat'))  pspcoord&lt;-spTransform(plotcoord, CRS('+proj=utm +zone=21')) #Omzetten naar UTM21N (= S1) plot(pspcoord)  s1 &lt;- stack('Some.tif')  colnamen = c(&quot;plotid&quot;,&quot;AGC&quot;,&quot;B2&quot;,&quot;B3&quot;,&quot;B4&quot;,&quot;B5&quot;,&quot;B6&quot;,&quot;B7&quot;,&quot;B8&quot;,&quot;B8A&quot;,&quot;B11&quot;,&quot;B12&quot;,&quot;NDVI&quot;,&quot;NDWI&quot;,&quot;MMRI&quot;,&quot;IRECI&quot;,&quot;MASI&quot;,&quot;VV&quot;,&quot;VH&quot;)  s1_e &lt;- extract(s1,pspcoord,method='bilinear')  Upon extraction I get the following message: Warning message: In proj4string(x) : CRS object has comment, which is lost in output I'm practicing proofs and given the following statement:  Let $\Sigma$ be an alphabet, $\epsilon$ the empty word and $\sigma:\Sigma^{*}\rightarrow\Sigma^{*}$ an operation which for $a\in\Sigma$ and $w\in\Sigma^{*}$ is defined as $$\sigma(\epsilon)=\epsilon,\\\sigma(wa)=a\sigma(w).$$  I would like to prove through induction that $\sigma$ is equal to the word reversal operation $rev$ meaning that $\sigma(w)=rev(w)=w_{n}...w_{1}$ for every $w=w_{1}...w_{n}\in\Sigma^{*}$.  My suggestion is as follows:  For $w=\epsilon$ we have $$\sigma(w)=\sigma(\epsilon)=\epsilon=rev(\epsilon)=rev(w).$$  Let $w=xa$ with $x\in\Sigma^{*}$ and $a\in\Sigma$, then $$\sigma(x)=x_{n}...x_{1}=rev(x).$$  Thus we also have $$\sigma(w)=\sigma(xa)=\sigma(x_{1}...x_{n}a)=a\sigma(x_{1}...x_{n})=ax_{n}\sigma(x_{1}...x_{n-1})=...=ax_n...x_{1}=rev(x_{1}...x_{n}a)=rev(xa)=rev(w).$$  Does that constitute a correct and sufficient proof? If not, I would very much appreciate your feedback. Adding vertical space at the start of a page I'd like to, first thing before writing anything on a page, add some vertical space.  Minimal (non)working example:  \documentclass{article} \begin{document}  \vspace{250px} I want to be further down on the page :(  \vspace{250px} Haha! Sucker :D \end{document}     How can I get the first \vspace to work, just like the second one? General term of Taylor Series of $\sin x$ centered at $\pi/4$ Why won't my YN-568EXII work with a flash trigger? I have a Canon 5DMk2 and have just bought 2 Yongnuo YN568EXII speed lights. I have an existing Yongnuo RF-603CII trigger, but I cannot get them to work together! Does anyone have any suggestions, as the manual is no use :( Thanks Steve Stop suggesting Microsoft Edge browser in start menu when typing "internet" I use Chrome as my primary browser but must use Internet Explorer to be able to remote in to my work via Remote Desktop web client (since it uses ActiveX plugins). To start an app, I would often type out the name from the start menu unless I had a pinned link or shortcut handy. But if I type &quot;internet&quot; as if I were trying to start Internet Explorer, I will always be recommended Edge and have it highlighted by default.  I will never be able to use Edge here so stop recommending it... can this behavior be disabled somehow? Not even pinning the Internet Explorer link to the start menu prevents this. If I had any other shortcuts that started with the word &quot;internet,&quot; it still offers Edge and is preselected. At least if I type in &quot;chrome,&quot; Chrome is selected first. Windows 10 Pro 1909 (18363.900) Quick way to remove solidify thickness I have made the mesh and added solidify modifier and applied. But later i thought to increase the thickness. So now i want to remove thickness so that i can added the solidify modifier again. I want to know is there any quick remove thicknes. When i select the edge then ctrl+ the selection goes downward not to single face. So i want to know a quick way to decrease thickness. Any suggestion or help.