Find Git branch name in post-update hook
Writing a git post-receive hook to deal with a specific branch
Is there a name for this layout? How to escape a single quote? This works fine:  sed -i 's#    @driver.find_element(:xpath, "//a\[contains(@href,##' temp_spec.rb   against a source of  @driver.find_element(:xpath, "//a[contains(@href,'change_district')]").click   I am just left with:  'change_district')]").click`   but when I try to add a single quote at the end it fails:  sed -i 's#    @driver.find_element(:xpath, "//a\[contains(@href,\'##' temp_spec.rb  syntax error near unexpected token `('   I am using \' to escape the single quote.  Note that I am using a # as a delimiter instead of the normal / delimiter as there are /'s in the text. Number of elements of a finite field How big an RSA key is considered secure today? I think 1024 bit RSA keys were considered secure ~5 years ago, but I assume that's not true anymore. Can 2048 or 4096 keys still be relied upon, or have we gained too much computing power in the meanwhile?  Edit: Lets assume an appropriate padding strategy. Also, I'm asking both about security of signatures and security of data encryption. When is the Killing form null? I am animating a Rubik's cube, and as soon as I get to the second rotation the blocks that have previously been rotated start tripping out even though it should have been reset. I tried making the graph linear which fixed a lagging issue I had, but the blocks still start to spin instead of rotating around a single axis. Is it a scam if the person only wants to deposit into my account, not make a withdrawal? Tracking disk I/O by application in Windows? Combining all the address fields into one? Dealing with a whole bunch of two-line config files, I'd like a way to exclude any files that have a different number of lines.  So, something like:  mv * destdir only if file contains exactly two lines   Or:  wc -l * | grep '^ *2' | xargs mv {} destdir   Except that neither of those is actual working code.  While writing this I realized I do have a way to do this, which is ugly as heck, and I've included it below as an answer.  Is there an easy/clean way to do this? Design problem - Implement an approval process on case, which sends email to approver showing some additional info, which should not be visible to case owner/agent (who clicked on "Submit for approval" button).  Possible solution - All that additional info will not be stored on Case (otherwise agent will also be able to see it). I am creating a child object to case, where all that additional info be stored. We can make sure agent does not have access to that child object (lets call it ChildObj).   In the email template used, we can include info about that child object. From what i understand, standard email templates dont allow cross object reference. We probably need to use visualforce email templates.  Questions -  1) Can anyone see/point out any issues with that design? 2) I am very new to salesforce. Can anyone give me any example of how i will access child record's field? I mean there won't be any lookup or anything to child object, right? How do i access a field on the child object? Any clue would be helpful How to disable gedit side panel? How do i disable this stupid side panel of gedit, that somehow appeared? There is nothing in the settings or plugins. Tried rm -r -f ~/.config/gedit as well, with no success. I don't have big screen and i find it totally useless and eating up what little free space for editing documents i have. See Screenshot Center Gravity in Unity Why is the application of probability in QM fundamentally different from application of probability in other areas? Prove the Radical of an Ideal is an Ideal I am given that $R$ is a commutative ring, $A$ is an ideal of $R$, and $N(A)=\{x\in R\,|\,x^n\in A$ for some $n\}$.  I am studying with a group for our comprehensive exam and this problem has us stuck for two reasons.  FIRST - We decided to assume $n\in\mathbb{Z}^+$ even though this restriction was not given. We decided $n\ne 0$ because then $x^0=1$ and we are not guaranteed unity. We also decided $n\notin\mathbb{Z}^-$ because $x^{-1}$ has no meaning if there are no multiplicative inverses. Is this a valid argument?  SECOND - We want to assume $x,\,y\in N(A)$ which means $x^m,\,y^n\in A$ and use the binomial theorem to expand $(x-y)^n$ which we have already proved is valid in a commutative ring and show that each term is in A so $x-y$ is in $N(A)$. The biggest problem is how to approach the $-y$ if we are not guaranteed unity. Does anyone have any suggestions?  Thank you in advance for any insight. I ask this Question on behalf of my neighbor.   Their 12 year old son saw his parents having sex.  As there is only one room in their home we can't say its the parents' mistake... but now the question is how do they handle the situation? How does the CS:GO ranking system work? What is the meaning of colon (:) operator in "uint isWidget : 1;" in Qt? Installing an HP Laserjet 1000 I've already installed hplip, it printed a test page, but it won't print from any program. It shows the printer in the list of printers, and it's checked as the default printer. I've restarted a couple times.   When I plugged the USB cable for the printer into the computer after installing hplip, it said printer detected. Then after a couple seconds it said the printer was ready for use.   When I send something to the printer, a pop-up shows that a document was sent to the printer - but there's a triangle with an exclamation point in it next to the message. A few seconds another pop-up indicates that the printer has completed printing the job but it didn't print anything. How can I find out when Windows was last restarted? How can I know when my computer running Windows 7 was last restarted?   I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.