Changing text on a file using scripts
Find and replace text within a file using commands
Recently I bought a new laptop that came with Windows 10 installed but not activated. I use both Windows 10 and Ubuntu 18.04, so I tried making a dual boot with a USB flash drive. It was recognized by the BIOS, I tried Try Ubuntu without installing and Install Ubuntu. With both options the PC freezes, and I need to press the power button. It's shown very fast some errors that are listed below:  [ 0.064522] ACPI Error: Method parse/execution failed \_SB.PCID.RPOB.PXSX, AE_NOT_FOUND (20170831/parse-550)  [ 0.066316] ACPI Error: [_SB.PCID.RPOB.PXSX], Namespace lookup failure, AE_NOT_FOUND (20170831/download2-191)  [ 0.066325] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252)  [ 0.246232] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246248] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246260] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246272] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246285] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246297] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246310] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246322] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)   I'm using NVIDIA GTX 1050 Ti graphics card and Intel i7-8750H processor.  I talked to the customer support and they just said that my laptop might not be compatible with Ubuntu. I also tried Ubuntu 16.04, but there were no changes.  EDIT: Thanks a lot for all the answers, but unfortunatelly I returned the PC to the store, neither the technical support found a solution for the problem, they just said: "Our PCs are just able to work with Windows, anyother OS might work but without our warranty". I think it would be nice to display tags in alphabetical order. Currently, tags are displayed in order of creation.  As a workaround, I remove, and then add the tags, which is a bit dumb, but I like 'em in alphabetical order.  It's probably pretty trivial to implement, and nice to have! Is it possible to edit a layer in QGIS while there is an active query? I am new to Quantum and I am digitizing polygon layers using the editing features. I would like to apply simple queries ('date > 2012/08/01'), however while the query is active I cannot edit the layer. Is this possible? modifying napili community template lightning components Is there a way to view &amp; modify the code of standard lightning components that are visible when editing the Napili template in the community builder. I was wondering if I could modify some of the code and use it as lightning out. How to sum up values of each two rows across their line in linux I have a Sharepoint online page on which I would like to remove the blue navigation bar at the very top of the screen (the one with the seach bar in the middle and the button on the left with 9 dots to switch to different Microsoft apps). I have checked all of the header settings and also went into the site settings and modified the search settings. I was able to exclude the site from search results, however the blue bar still remains. Is this possible to remove in a default SharePoint online site without using custom CSS or anything like that? Construct a command by putting a string into a tty In a case of mine a very high (compared to the video stream) resolution graphical frame (saying "access denied" (when my IP changes)) can appear instead of a video stream, which makes VLC window to resize, getting bigger than my screen is. This annoys me. Can I set up VLC to never resize its window when I don't do it myself and resize content instead? How do I define solar irradiance in the context of a solar cell? This is homework. I've tried my best to find the best answer that I could understand and could be accepted by my lecturer.   I've searched my lecture notes, wiki and google to find some good explanation defining solar irradiance. But somehow I still don't understand how I should 'define solar irradiance'. Can someone give me a few good sentences explaining solar irradiance. What are the changes, if any, in a photovoltaic cell (in terms of short-circuit current and open-circuit voltage) if the irradiance is reduced by 50%? Responsive Breakpoints? Twitter Bootstrap uses these break points for responsive design:  Large Display: 1200px Default: 980px Tablet: 768px Mobile: 480px  A client said they are using 1280px for their Large Display breakpoint.  Is there an industry standard for these or are they just made up as we go right now? Extracting one band from three band raster in ArcMap? Evaluate the integral $\int_{-1}^1\frac{dx}{(e^x+1)(x^2+1)}$. Evaluate:      $$\int_{-1}^1\frac{dx}{(e^x+1)(x^2+1)}$$ Display Custom Fields in a SharePoint 2010 Content Query Web Part Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part $$  \lim_{n\to\infty} n^{1/2} \int_{0}^{1} \frac{1}{(1+x^2)^n}\mathrm{d}x=0 $$  Is my answer correct? But I am not sure of method by which I have done. Following , I would like to know what exactly it means for a tag to be marked as blocked (formerly blacklisted) on a Stack Exchange site.  Does it mean I can't use that tag on my question? What are the reasons for blocking a tag? Who can block tags? Why am I being prompted to remove a tag from a question I'm editing? How to prove that $P \rightarrow Q$ is equivalent with $\neg P \lor Q $? In my book about Logic, which is called 'Language, Proof and Logic', by the way, there is explained that the conditional $ P \rightarrow Q $ is equivalent with $\neg P \lor Q$.   that gives as answer: 'just compare the truth tables and you can see that they are equivalent'. However, I would like to know how to prove this using formal propositional logic. This should be possible, right? Edit:  Of course my real code doesn't look exactly like this. I tried to write semi-pseudo code to make it more clear of whay I wanted to do.  Looks like it just messed things up instead.  So, what I actually would like to do is this:  Method&lt;Interface1&gt;(); Method&lt;Interface2&gt;(); Method&lt;Interface3&gt;(); ...   Well ... I thought that maybe I could turn it into a loop using reflection. So the question is: How how do I do it. I have very shallow knowledge of reflection. So code examples would be great.  The scenario looks like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var i in interfaces)     {         Method&lt;i&gt;(); // Get compile error here!     }       Original post:  Hi!  I'm trying to loop through all interfaces in a namespace and send them as arguments to a generic method like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var interface in interfaces)     {         Method&lt;interface&gt;(); // Get compile error here!     } }   The error I get is "Type name expected, but local variable name found". If I try  ...     foreach(var interface in interfaces)     {         Method&lt;interface.MakeGenericType()&gt;(); // Still get compile error here!     } }   I get "Cannot apply operator '&lt;' to operands of type 'method group' and 'System.Type'" Any idea on how to get around this problem? As a non-native speaker of English, it can often be hard to spot some of the errors that a native speaker would find. For a long time, I've been thinking about getting a native speaker to help me with proof-reading my texts (articles, theses, application, etc), but I don't quite know where to look. What are some good ways to get proofreading for your texts?  For example, are there any websites on the Internet where one can exchange proofreading services between different languages? (Say, if you help me proofread my text in language x, I'll help you with yours in language y.) no Get More in Plugin Manager in qgis 2 + ubuntu 13.04 After upgrade of qgis 1.8 to qgis 2.0 I couldn't find the choice "Get more" in Plugin Manager and I can't install plugins. A known identity of binomial coefficients is that $$ \sum_i\binom{m}{i}\binom{n}{j-i}=\binom{m+n}{j}. $$ Is there a combinatorial proof/explanation of why it holds? Thanks.