Delete a partiular line and 17 lines after that
Remove line containing certain string and the following line
Purpose of @ Symbol Before Strings? What is the difference between "gerund" and "infinitive"? What is the difference between "gerund" and "infinitive"? I do not understand the differences.Can you explain them? Can an html element have multiple ids? How do I convert the coordinates of a click to a tilemap position? How do you turn a tilemap (produced by TileD) for cocos2d where I can click on individual items and get a callback?  Is it just a case of converting captured touch and finding out where it is on the tilemap and then converting that to pixels  -- but that doesn't say what item was clicked on.  I have a tilemap of a city with buildings on it, and I'd like to be able to click or press on a specific building, get a callback.  What would be the best way to accomplish this? Command run in terminal, not with shortcuts As explain in this , I want to add shortcuts to switch workspaces (in Mate).  I found a way to switch workspace for the terminal: wmctrl -s $(wmctrl -d | grep "*" | awk '{print $1+1}').  But this command line does not work when I add it in the shortcut manager. Does any one know why ? How can I edit two materials simultaneously? Whenever I open a new shading window, whatever I do in one is just mirrored on the other. If I click a node in one window, the same node and material get selected in the other. I can't edit two shaders at once. How can I edit two shaders simultaneously? Show that the rings $2\mathbb{Z}$ and $3\mathbb{Z}$ are not isomorphic. Julian day of the year in Java Prove Inverses not need be Unique if Associativity fails Let $M=\{x, y, z\}$ be a set and let $\circ$ be a binary operation on $M$ such that the identity element is $x$ and $y \circ y = x = y \circ z$. Prove that inverses need not be unique if associativity fails given the multiplication table below.  $x \circ x = x, x \circ y = y, x \circ z = z$  $y \circ x = y, y \circ y = x, y \circ z = x$  $z \circ x = z, z \circ y = x, z \circ z = x$ Filter bibliography by author? I would like to create a template for a publication list that can then be used by several people. The idea is that there is one bib-file which contains all of the publications. Peer-reviewed entries are marked with the keyword = pr. Then there is the master-file of the type scriptreport in which everyone can integrate their chapter-file in order to merge the publication lists of everybody into one file. The chapter file is the core of everything and should be reusable. It should filter out the entries for the respective author from the bib file and print them out in two lists (peer-reviewed and non-peer-reviewed). My problem is that I don't really know how to filter by author in this case. Here are the rough codes of the two files: Master: \documentclass[a4paper]{scrreprt}  \usepackage{biblatex}  \title{Publication list}  \addbibresource{sample.bib}  \begin{document}     \maketitle          \tableofcontents     \newpage          \include{Researcher}     \newpage \end{document}  chapter: \chapter*{Researcher} \addcontentsline{toc}{chapter}{Researcher}          \nocite{*}     \printbibliography[keyword={pr}, title={Peer-reviewed}]          \nocite{*}     \printbibliography[notkeyword={pr}, title={Non-peer-reviewed}] Cannot change lock screen background on Ubuntu 18.04 Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.    I changed the ubuntu.css and gdm3.css accordingly to   #lockDialogGroup {   background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);   background-repeat: no-repeat;   background-size: cover;   background-position: center; }   Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.   I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?  Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)  EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is  {     "parentMode": "user",     "stylesheetName": "ubuntu.css",     "enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"] } Forgotten the pattern and phone not showing the "forgot pattern" button. I upgraded my Moto G2 to Android Lollipop using over-the-air upgrade. It was awesome but I set a pattern lock which I forgot. Usually after 5 wrong attempts it shows the "forgot password" button but it is not showing that button even after 100 wrong attempts. How to unlock the phone? Calculate limiting distribution of $\frac{\sum_{i=1}^n X_i}{\sum_{i=1}^n Y_i}$ Convert NSDate to NSString $F$ is a finite field of order $q$. What is the size of $\operatorname{GL}_n(F)$ ?  I am reading Dummit and Foote "Abstract Algebra".  The following formula is given:  $(q^n - 1)(q^n - q)\cdots(q^n - q^{n-1})$.  The case for $n = 1$ is trivial.  I understand that for $n = 2$  the first row of the matrix can be any ordered pair of field elements except for $0,0$. and the second row can be any ordered pair of field elements that is not a multiple of the first row.  So for $n = 2$  there are $(q^n - 1)(q^n - q)$ invertible matrices.  For $n\geq 3$, I cannot seem to understand why  the formula works.  I have looked at Sloane's OEIS A002884.  I have also constructed and stared at a list of all $168$ $3\times 3$ invertible matrices over $GF(2)$.  I would most appreciate a concrete and detailed explanation of how say $(2^3 - 1)(2^3 - 2)(2^3 - 2^2)$ counts these $168$ matrices. Conditionally use 32/64 bit reference when building in Visual Studio I have a Python regular expression that contains a group which can occur zero or many times - but when I retrieve the list of groups afterwards, only the last one is present. Example:  re.search("(\w)*", "abcdefg").groups()  this returns the list ('g',)  I need it to return ('a','b','c','d','e','f','g',)  Is that possible? How can I do it? When working with radios, I've seen the term "dBm". What does this mean?  The  gives a table showing the equivalent power in Watts. Is the dBm output just the power level of a transmitter?  How does this differ from signal strength measured in dB? Best Algebraic Geometry text book? (other than Hartshorne) Transparency/Masking : See through an Outer Sphere and see Inner Sphere in true colours Summary  I want to be able to look through an outer sphere - BlueSphere, and see another sphere inside - RedSphere  This is the target goal I'm trying to get to:    Issues  Here is what I have tried, and the problems I'm having:  1)  If I set the spheres transparency alpha values to 0.75    - then the inner RedSphere does not take on its "true" colour and shows as blue instead of red.    2)  If I set the spheres transparency alpha to lower values of 0.5   the spheres lose their crispness which I don't want and the inner RedSphere still does not take on its "true" colour   { can't paste a 3rd sample - need more reputation points }   Background  I am animating two spheres, one inside the other, superimposed about a common origin.   At the start:   the outer BlueSphere is at full radius the inner RedSphere is at zero radius  As time progresses:   the outer BlueSphere shrinks the inner RedSphere expands    So what happens is the expanding inner RedSphere "bursts through" the contracting outer BlueSphere.  So the effect I am looking for is to see the RedSphere appearing as Red as it expands inside the BlueSphere.  Thinking/Logic  So I figure that transparency is not the way to go.  The transparency settings are behaving correctly - as one would expect, in a "real world" situation - the inner sphere (Red) takes on the colour of the outer sphere (Blue) seeing as we are looking through a (transparent) Blue material.  Any ideas on what approach to take ?  It's almost as if I should be "removing" the part of the BlueSphere that the RedSphere "occupies" so that we see the RedSphere directly without any BlueSphere between us and the RedSphere.  Some sort of masking ??  Advice, comments, suggestions welcome. Thanks.  [requested edit]  Using internal render.  [ My End Solution - Thanks for the guidance ]  Right, so here is the way I got to my final result:  1) I created python drivers for each sphere   I used the frame_current scene property for input Passed that to a scripted expression which used sin() as the scaling factor Used some if / elif conditionals against frame_current to make the spheres visible only when I needed them   2) I created 3 layers   On Layer-1 - background   I put RedSphere AND BlueSphere with drivers driver_Outer_RedSphere() &amp; driver_Outer_BlueSphere() limiting the display of each sphere to show only where each radius > halfway  On Layer-2 - foreground-1   I put RedSphere ONLY with driver driver_Inner_RedSphere() limiting the display of RedSphere to show only where its radius &lt;= halfway  On Layer-3 - foreground-2   I put BlueSphere ONLY with driver driver_Inner_BlueSphere() limiting the display of BlueSphere to show only where its radius &lt;= halfway    3) I rendered each layer to .PNG sequence [RGBA] (alpha channel for transparency)   Render Layer-1 - background   background : [sky]  Render Layer-2 - foreground-1   background : [transparent]  Render Layer-3 - foreground-2   background : [transparent]    4) I brought all 3 sequences into the Video Sequence Editor   Strip-1 - background   blend [cross] opacity [1.00]  Strip-2 - foreground-1   blend [alpha-over] opacity [0.50]  Strip-3 - foreground-2   blend [alpha-over] opacity [0.50]    5) Rendered the 3 layer final sequence to H.264  So the "aha moment" struck me right at the end when I was in the Video Sequence Editor:   "Don't try to make the Outer Spheres transparent, and see through to the Inner Spheres" "Instead overlay the Inner Spheres over the Outer Spheres, and limit the opacity of the Inner Sphere overlay"     So now I see my Inner Spheres in their true colours, but the colours are muted due to the .75 opacity - and hence it gives the visual impression that the Inner Spheres are in fact inside the Outer Spheres.  Thanks all for the input - it got me going in the right direction.