For Fedora OS  I'm still learning here, but I need help to insert a command for example "XXX" to say that I have a file that contains 1000 lines of single product names. I need to write a command to basically print specific lines, such as:  print line 50-100 from MyProductList.sh  This is just an example to give you an idea. inside the file will simply be 1000 lines of 1 worded products. One word on each line.   The result I need might look like this:  50. tea 51. coffe 52. orange 53. banana 54. etc
If I use cat -n text.txt to automatically number the lines, how do I then use the command to show only certain numbered lines.
Using the quadratic formula, we have either 0, 1, or 2 solutions. I wonder if we could use it this formula for congruence? Or is there a formula to solve quadratic equation for congruence?  Edit Assume that $ax^2 + bx + c \equiv 0 \pmod{p}$, where $p$ is prime with $(a, p) = 1$, then is there a formula for this equation?    Thanks, Cycles Emit Light from area on Texture So I have a giant object that is completely uv unwrapped. I would like to make areas of the object with a specific area of texture emit light.   The problem is that this object (and it is only one object) only has one material. I would like the lava to emit light, but I cannot move it to a separate material without breaking something.  I'd like to find a method where I can select a part of the texture and tell blender that whatever has that part of the texture emits light.  Is this possible?  Thanks. When can I use a forward declaration? How do you set password-hash for OpenLDAP? What is the best way to find the users home directory in Java? The difficulty is that it should be cross platform. Windows 2000, XP, Vista, OSX, Linux, other unix variants. I am looking for a snippet of code that can accomplish this for all platforms, and a way to detect the platform.  Now, you should be aware of  that user.home does not work correctly, so please do not provide me of textbook answers, I can find these myself in the manuals. Today I've got 10 upvotes for an answer. Answer was a first answer in the question. I got an Nice Answer badge for this, but no Enlightened badge.  Shouldn't I get both?  is my answer :) How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar" How do I make a bootable Ubuntu USB? How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro? Doubt related to a theorem in congruences of Chapter 5 of Apostol Introduction to analytic number theory I am self studying number theory from Introduction to Analytic number theory by Apostol.   I have a doubt in one argument of proof of Theorem 5.14 and I am posting its image.      My doubt is in 2nd line of 2 nd paragraph how Apostol writes - If y is a solution of (5) then ay $\equiv $ at ( mod m) . How does y being a solution of (5) implies that?       Can someone please help How to prevent ENTER keypress to submit a web form? Prove that $T$ has an orbit of period 3 What is the best way to filter a Java Collection? I want to filter a java.util.Collection based on a predicate. Updated WiFi fix for Yoga 13 and Ubuntu 16.04? Uncommitted work pending in unit test with trigger and queueable callout I have an after insert trigger that invokes queueable Apex which makes a callout.  The trigger and callout work fine in the UI and I don't get any errors in normal operation.  However, my unit test keeps failing with the "uncommitted work pending" error despite all my attempts to separate the callout.  I've used a testVisible variable to disable the callout from the trigger so that I can invoke the queueable job explicitly in a startTest/stopTest block after the DML that fires the trigger.  I've pored over the callout class to make sure it's not doing any DML beforehand.  Anyway, if it was doing DML, I should get the uncommitted work pending errors in the UI, right?  I've tried API version 37 and version 41 but the unit test still fails.   I've had a case open with Salesforce premier support for 6 weeks now but haven't made any progress.  Any suggestions?  The unit test:  @isTest static void testCallout() {     // Disable the callout while setting up data.     CCx_EHR_CMCT_Services.isQueueSendEnabled = false;      // Set up the data and execute the DML.     / ...     insert act;      // Set up the http mock     // ...      // Now enable and execute the callout     Test.startTest();     CCx_EHR_CMCT_Services.isQueueSendEnabled = true;     Test.setMock(HttpCalloutMock.class, mock);     System.enqueueJob(new QueueSendToRedox(new List&lt;ActivityHL__c&gt;{act}, desk)));     Test.stopTest();  }   Trigger:  trigger HL_ActivityHL_c on ActivityHL__c (before insert, before update, after insert) {     if (Trigger.isAfter) {         if (Trigger.isInsert) {             CCx_ClientDataDomain.sendEHRClinicalComm(Trigger.new);         }     } }   Trigger handler class:  public without sharing class CCx_ClientDataDomain {     public static void sendEHRClinicalComm(List&lt;ActivityHL__c&gt; triggerNew) {     // do some processing here.     // ...     // then queue the callout job.     System.enqueueJob(new CCx_EHR_CMCT_Services.QueueSendToRedox(             deskActivities.get((Id) desk.getDeskId()), desk));     } }   Queueable job class with callout method:  public with sharing class CCx_EHR_CMCT_Services {     // isQueueSendEnabled is an attempted workaround for unit tests     @testVisible     private static Boolean isQueueSendEnabled = true;      public class QueueSendToRedox implements Queueable, Database.AllowsCallouts {         private List&lt;ActivityHL__c&gt; activities;         private CCx_DeskHierarchySelector.Desk desk;         private Boolean isEnabled;          public QueueSendToRedox(List&lt;ActivityHL__c&gt; activities, CCx_DeskHierarchySelector.Desk desk) {             this.activities = activities;             this.desk = desk;             this.isEnabled = isQueueSendEnabled;         }          public void execute (QueueableContext context) {             if(this.isEnabled) sendClinicalCommToRedox(activities, desk);         }     }      public static void sendClinicalCommToRedox(List&lt;ActivityHL__c&gt; activities, CCx_DeskHierarchySelector.Desk desk) {         // Set up data for the callout.  No DML actions are executed before the callout.         HttpRequest req = buildRequest();         // ...          // Callout         Http http = new Http();         HttpResponse resp = http.send(req);     } } I just installed Ubuntu 14.04 on a Dell laptop with 1.7Ghz Pentium M and 1Gbyte memory.  Graphics are Intel® 852GM/855GM x86/MMX/SSE2, OS type is 32bit.  The whole system is VERY slow. When I launch the applications manager, for example, I need to wait in order to see the letters I typed appear!  It is as if the CPU was overloaded and no memory available, but I only have Firefox running.  How can I make the system run smoother? It used to have Windows XP installed and it worked fine. Why do database guys go on about normalisation?    What is it? How does it help?    Does it apply to anything outside of databases? How to dynamically load directive into page Where do AirDrop files go when I transfer them between an iPad, iPhone and iPod? I AirDropped some Google Docs from my iPad to my iPhone but nothing happened; where did my files go? The file was a list of tools. is it possible to combine two fields in one and use that field to group by in reports? for example, i would like to combine ee id and ee name fields in 1 and show as 1 field in the "group by" section on reports. QGIS 3.0 and Qt 5.7 time schedule When will QGIS 3.0 with QT5.7 (possibly) be released as a stable and long term support version?