I want to open multiple terminal windows (20 to be specific) through a bash script. Can someone help ?
How do I execute a program X times in the terminal?  I read that I have to do a bin/bash txt, but I don't know how to execute this X times.
alternative to "netstat -s" prints out a lot of very detailed protocol statistics like number of TCP reset messages received or number of ICMP "echo request" messages sent or number of packets dropped because of a missing route.  When in Linux netstat is considered deprecated at nowadays, then is there an alternative?  Statistics provided by ss -s are superficial compared to the ones provided by netstat. Can I override the Javascript Function object to log all function calls? How can I check if my computer's powerful enough to run a certain game? Using custom tables in nft I have a Fedora 31 system on which I am using iptables-nft. I need this because there is still a bunch of software that expects the legacy iptables command line tools.  This means that my nftables configuration has the corresponding set of tables to match the legacy configuration:  table ip filter table ip nat table ip6 filter table ip mangle table ip6 nat table ip6 mangle   I use a containerized VPN service that, prior to nftables, would enable masquerading on my primary ethernet interface by running something like this when the vpn comes up:  iptables -t nat -A POSTROUTING -s 172.16.254.0/24 -o eth0 -j MASQUERADE   Since upgrading to Fedora 31 and iptables-nft, this no longer works. The container (running alpine) does not have the iptables-nft compatability wrapper, but it does have the nft command itself.  I can't use the nft cli to add rules to the existing tables, because this will break iptables-nft. But I can create new tables. I was hoping I could just apply a configuration like this:  table ip vpn {     chain postrouting {         type nat hook postrouting priority filter; policy accept;         ip saddr 172.16.254.0/24 oifname "eth0" counter masquerade     }      chain forward {         type filter hook forward priority filter; policy accept;         ip saddr 172.16.254.0/24 counter accept     } }   ...but this doesn't appear to have any impact. By setting the chains in this table to priority 0 I was hoping they would match before the legacy nat table, but that doesn't appear to be the case.  Is there a way to make this work? Steam Bollywood Achievement:     As Gandhi, win a cultural victory with   3 or fewer cities in your empire.   I wish to do this achievement on a Pangaea Standard map size or larger and on Prince difficulty or higher,  What tactics do people recommend to achieve this. Any tips on the use of, Social Policies, Wonders, Diplomacy, City States and Military. Showing arrowheads in line end using QGIS? I would like to show arrowheads in the endings of every drawn linestring.  Is it possible in QGIS?    I have been trying to use a marker line but repeats all de arroheads all over the line, it is not restricted to the ends: Callout Mock Responses & multiple HTTP Status Code values I'm trying to unit test the behavior of some code which performs callouts and its logic is dependent on the HTTP status code of the response - 200 vs 401.  The pattern being exercised is familiar:   Make callout Response is (unauthorized) HTTP 401 Logic checks Status value on the response if (status == 200) { /* yay! */ } if (status == 401) { /* make request for auth /* }   retry original callout with newly acquired authorization yay!    I am attempting to test the code's "try, auth, retry" behavior using the MultiStaticResourceCalloutMock but it appears that only a single status code can be set for all requests that the mock provider can respond to using the .setStatusCode(int) method. Is this accurate?  Is there a mechanism for using a single MultiStaticResourceCalloutMock and having it respond with different status codes per URL in the test context?  Is the only solution here to use a Dispatcher such as what Andrew Fawcett documents here in this answer?   Is there another method/mechanism that allows for different status codes to be returned by the mock provider on the HTTPResponse?    Some  showing the one-time usage pattern of the .setStatusCode(200) method and the multimock class.  @isTest private class CalloutMultiStaticClassTest {     @isTest static void testCalloutWithMultipleStaticResources() {         // Use MultiStaticResourceCalloutMock to         // specify fake response for a certain endpoint and          // include response body in a static resource.             MultiStaticResourceCalloutMock multimock = new MultiStaticResourceCalloutMock();         multimock.setStaticResource(             'http://api.salesforce.com/foo/bar', 'mockResponse');         multimock.setStaticResource(             'http://api.salesforce.com/foo/sfdc', 'mockResponse2');         multimock.setStatusCode(200);         multimock.setHeader('Content-Type', 'application/json');          // Set the mock callout mode         Test.setMock(HttpCalloutMock.class, multimock);          // Call the method for the first endpoint         HTTPResponse res = CalloutMultiStaticClass.getInfoFromExternalService(             'http://api.salesforce.com/foo/bar');         // Verify response received          System.assertEquals('{"hah":"fooled you"}', res.getBody());          // Call the method for the second endpoint         HTTPResponse res2 = CalloutMultiStaticClass.getInfoFromExternalService(             'http://api.salesforce.com/foo/sfdc');         // Verify response received          System.assertEquals('{"hah":"fooled you twice"}', res2.getBody());     } } Prove that if $n$ is not the square of a natural number, then $\sqrt{n}$ is irrational. To prove the convergence of the p-series   $$\sum_{n=1}^{\infty} \frac1{n^p}$$  for $p &gt; 1$, one typically appeals to either the Integral Test or the Cauchy Condensation Test.  I am wondering if there is a self-contained proof that this series converges which does not rely on either test.    I suspect that any proof would have to use the ideas behind one of these two tests. Why did the Star Trek writers decide Warp 10 would be infinite? From  onward,  has a basically cubic scale from warps 1 - 9. But then, close to warp 10, it suddenly develops its own puzzling scale, as can be seen in .  In this scale, , occupying all points in the universe simultaneously and therefore effectively teleporting instantaneously.  My question is why have this confusing scale? Why not have a uniform cubic scale? Was there ever any "official" explanation for this?  Clarification: I'm looking for why the writers decided on this, not the "in-universe" explanation. I'm looking for ways to speed up the combat in my D&amp;D 3.5 game. It seems that turns - both player and non-player - simply take too long. I have thought about giving everyone a 30 second timer, but I'm afraid that might inhibit their ability to come up with strategy and tactics. . It is a mathematical expression/sequence/set of numbers with the arrow exactly under any one of the numbers (with or without n= 0). How to do it in latex? Any of the up arrow types (single line or double line) shown in the figure is okay. Can't do reviews after failing 1 audit How to make traditional output for derivatives How can I ensure testNG test method does not abort if any assert fails I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this? What’s the point in having “www” in a URL? Other than for historical reasons, is there is reason to have “www” in a URL?  Should I create a permanent redirect from www.xyz.com to xyz.com, or from xyz.com to www.xyz.com? Which one would you suggest and why? Writing ISO 19139 compliant XML metadata from spreadsheet? I am looking at a way to migrate the metadata from a spreadsheet into ISO 19139 compliant XML metadata documents for a collection of shapefiles. I can parse the data out of the spreadsheet into strings without issue however I am getting lost on how to take those strings and use them to populate the elements.   This example:  covers most of what I want to do, however I would need to generate the tree beforehand based on the ISO 19139 schema. PyXB seems to have schema bundles for OpenGIS but I would like some insight on how to connect everything. Are there any examples of Humans and Aliens producing offspring in Star Wars? The title is pretty self explanatory, although to expand on the question further I am looking for any examples of inter-species breeding in the Star Wars universe, not just inter-species (ahem) "relations". -Bash command not found appearing every time I start terminal every time I start my terminal, it always says "-bash:  .: command not found" twice.  Does anyone know how I can get rid of that? My Windows 10 notebook died but fortunately I was able to rescue the hard drive and put it into another PC.   Unfortunately, the other PC can't open the C/Users/Joe folder. What do I have to do to open the folder?