How can I extract relevant information from the gobble of words I got from these gobble of html:  >
Inspect, diagnose, maintain, and operate test setups and equipment to detect malfunctions.\n

Record and interpret test data on parts, assemblies, and mechanisms.\n

Confer with engineering personnel regarding details and implications of test procedures and results.\n

Adjust, repair or replace faulty components of test setups and equipment.\n

Identify required data, data acquisition plans and test parameters, setting up equipment to conform to these specifications.\n

Key Skills:

Critical Thinking - Using logic and reasoning to identify the strengths and weaknesses of alternative solutions, conclusions or approaches to problems.

Active Listening - Giving full attention to what other people are saying, taking time to understand the points being made, asking questions as appropriate, and not interrupting at inappropriate times.

Speaking - Talking to others to convey information effectively.

Operation Monitoring - Watching gauges, dials, or other indicators to make sure a machine is working properly.

Reading Comprehension - Understanding written sentences and paragraphs in work related documents.

Quality Control Analysis - Conducting tests and inspections of products, services, or processes to evaluate quality or performance.

Complex Problem Solving - Identifying complex problems and reviewing related information to develop and evaluate options and implement solutions.

Monitoring - Monitoring/Assessing performance of yourself, other individuals, or organizations to make improvements or take corrective action.

Judgment and Decision Making - Considering the relative costs and benefits of potential actions to choose the most appropriate one.

Time Management - Managing one\'s own time and the time of others.

I'd like to extract the text from an HTML file using Python.  I want essentially the same output I would get if I copied the text from a browser and pasted it into notepad.    I'd like something more robust than using regular expressions that may fail on poorly formed HTML.  I've seen many people recommend Beautiful Soup, but I've had a few problems using it.  For one, it picked up unwanted text, such as JavaScript source.  Also, it did not interpret HTML entities.  For example, I would expect &#39; in HTML source to be converted to an apostrophe in text, just as if I'd pasted the browser content into notepad.  Update html2text looks promising. It handles HTML entities correctly and ignores JavaScript.  However, it does not exactly produce plain text; it produces markdown that would then have to be turned into plain text. It comes with no examples or documentation, but the code looks clean.    Related questions:


I'm not sure if I use spherical coordinates for this question

Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer)  I saw no example of this problem anywhere.. I saw an example how to solve it without calculus but I'm afraid that'll be deductions on my test.. I have the volume of a cylinder and the method of area between two curves but this is out of my reach.... I don't know what I can try...


Ahoy! I am writing a small json based database website as a school project. I am having the following problem with my code.  I want to make a link on the page that loads new content without refreshing the page. To serve this process i am using  tags with the jquery code to prevent the links from refreshing the page as shown below:  $("#sorter").click(function (e) {     e.preventDefault();     name = look_for_index($("#artist_input").val(), artist_lite_dict, "name");     global.load_artist(); });   In the case above this works, However in the case below this it just refuses to work at all and i have no idea why. i have tried getting everyone i know who knows Js to help me but people just leave confused. "code below":  $(".art").click(function(e){     console.log("CLICK");     e.preventDefault();     name = this.parent().sibling(".title").val()     title = this.children(span).val();     look_for_index(name, artist_full_dict, "name")     global.print_art(title); });   And the HTML that relates to this code is generated in javascript but here are the template objects if the bug is html related:  const art_list_template = ({     title,     date,     index }) => `
                          ${title}
             Date: ${date}, Index: ${index}

 `   link to the whole project on github:   -Thanks!, Stephan

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have been working for a while now and I realized that I have saved a moderated sum of money that I wish to invest and eventually make it grow.  But, it happens that I am new to investment. I currently have no debt what-so-ever, and I currently have got all my basic life needs satisfied.  How can I invest my money in a smart and responsible way?

I am young, just started my career, and looking to begin investing so I can make my money work for me. I'm still living like I did in college (occasional purchase on myself, but most of it goes into savings) and I would like to take the extra money and invest it.   What would you suggest are the best options for me to begin? I was considering getting a personal investor [a financial advisor] for perhaps a year or so, but I've heard that they really are not worth the money. I wanted to get the input of the great minds here.


says that an edition of Firstborn calls it the conclusion.  After reading Firstborn, I was looking forward to the next book, where I hoped we'd see       the humans take the fight to the Firstborn.   But I see that Arthur C. Clarke died since that book was written, so I don't know if they completed the story.  Has anyone heard if the next book is being worked on?

2007 book "Firstborn", the third and last book of "" trilogy by Stephen Baxter and Arthur C. Clarke - an "orthoquel" to "2001: A Space Odyssey" - ends with a cliffhanger which obviously implies continuation:      Myra said, “My God.Charlie? ”  Bisesa stared. “Who is ‘we’?”  “We call ourselves the Lastborn. We are at war. We are losing.” She held out her hands. “Please. Come with me now.”  Bisesa and Myra, still hugging each other, reached out their free hands. Their fingertips touched Charlie’s.  A clash of cymbals.   However, sadly, Sir Arthur died in 2008, with no further books forthcoming.  Did Stephen Baxter  or Arthur C. Clarke's estate ever comment on continuing "A Time Odyssey" after 2008?  Wikipedia has no info:     The 2008 Gollancz edition of the most recent book describes itself on the cover as the "Conclusion" of the series, but the plot is not concluded in the book. The immediate threat is averted but the enemy is not defeated, suggesting that further novels in the series were intended. With the death of Clarke, one of the two authors, it is not clear whether these will be written.


Assume the banach space $C([0,1], \mathbb R)$ with supremum norm. I guess that this banach space is not sigma compact, in the other word $C([0,1], \mathbb R)$ is not union of countable compact subsets of it.  My strategy : I assume it is sigma compact the because $C([0,1], \mathbb R)$ is a complete metric space then I want to use baire theorem to reach contradiction. but I am confused to complete it.

$C_0([a, b], \mathbb{R})$ is the space of real-valued continuous function on $[a, b]$. The hint says think Baire. So I assume that $C_0([a, b], \mathbb R)$ is $\sigma$-compact. Then it is the countable union of compact, and hence closed, subsets $M_i$. Since $C_0([a, b], \mathbb R)$ is a complete metric space, by Baire's theorem at least one of the $M_i$'s has a non-empty interior. But I got stuck here. I think I can derive a contradiction from this, but I'm not sure how. Any hints on how to solve this (using contradiction or not) would be much appreciated.


When I log in to my WordPress blog, there's a checkbox that says Remember me.  But whether or not I check this, if I come back in a day or two I have to log in again, so it doesn't appear that this checkbox does anything.  (My Google account, by contrast, hasn't ever once asked me to re-login on this computer, for more than a year now.)    How do I make WP actually remember me?

After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary.  Is there an API-driven way of disabling the auto-logout indefinitely? Ideally I'd like something I can add to wp-config.php along with other dev-setup-related settings.  A plugin would be overkill for me so I won't consider it an answer, but you might as well post it as an option.


Barking dogs seldom bite.  Barking is  a gerund or present participle?  His rising early in the morning, helped him score well.  His rising early in the morning   -- is this a participle clause? Can someone explain how to identify an participle clause in any sentence

I've been studying the Huddleston and Pullum book for four months now. So far only one thing confuses me: the identity of gerund. Is it a noun or a verb?        His constant smoking upset me.  smoking seems  noun because of adjective constant.   Him/His constantly smoking upset me. smoking seems to be verb because of adverb constantly.   Him/His smoking cigars upset me. smoking seems to be a verb because of object cigars.      "His smoking upset me." So is this smoking gerund a noun or verb? Because there is no differentiation, is it both verb and noun? Maybe it's new word category?  Also his seems to be both  sometimes a subject and at other times a possessive determiner. Is that correct?


after rendering why I'm getting fuzzy, unclear image, even though I kept 100% resolution and sample 128 , mipmaps is uncheck

I unwrapped a simple plane and applied the following 80x80 pixel picture:    Yes, it's quite small. The problem is, the result is all blurry, like so:    How do I make it accurate to the pixel?


Can Dirichlet's test be applied to establish the convergence of  $1 - \frac 1 2 - \frac 1 3 + \frac 1 4 + \frac 1 5 + \frac 1 6 - \dots$ where the number of signs increase by one in each block?  Can somebody give me some ideas or hints?

Exercise 11 from section 9.3 of Introduction to Real Analysis (Bartle):     Can Dirichlet’s Test be applied to establish the convergence of   $$ 1 - \dfrac12 - \dfrac13 + \dfrac14 + \dfrac15 + \dfrac16 - \cdots $$   $\qquad \qquad$    where the number of signs increases by one in each ‘‘block’’? If not, use another method to    establish the convergence of this series.   Dirichlet's test cannot be used because the partial sums generated by (1, -1, -1, 1, 1, 1, ...) are not bounded. But we can group the terms of the series in the following way:  $$ 1 - \left(\dfrac12 + \dfrac13\right) + \left(\dfrac14 + \dfrac15 + \dfrac16\right) - \left( \dfrac17 + \dfrac18 + \dfrac19 + \dfrac{1}{10} \right) + \cdots \\ = \sum _{n=1}^{\infty}(-1)^{n+1}a_n $$  where  $$ (a_n) = \left(1, \left(\dfrac12 + \dfrac13\right), \left(\dfrac14 + \dfrac15 + \dfrac16\right), ... \right) $$  So by Leibniz's test, if the sequence $(a_n)$ is decreasing and $\lim{a_n} = 0$ then the grouped series is convergent. I've shown that since we are grouping terms of the same sign it is sufficient to show the convergence of the grouped series. I've shown that $\lim{a_n} = 0$, but how do I show that $(a_n)$ is decreasing?


Could anyone recommend a good text on topology which would offer a higher level of abstraction than Munkres(and possibly cheaper)? I'd like to start with point set topology, but if the book could touch upon more subfields, that would be a plus. I'm an undergraduate who has taken courses in real analysis (on the level of rudin), combinatorics, complex analysis (Bak & newman), linear algebra and differential equations.

Firstly I apologize if this is a bit of a soft question, it's hard for me to ask this quite concretely so I do apologize if this post doesn't seem like I'm asking something immediately.    Let me explain a bit of my background, Topology is the area of mathematics that I enjoy doing the most by far, with regards to the books I've read, I've gone through most of the first 300 pages of Topology: A First Course by Munkres (I still have a few things after Seperation Axioms and stuff to go through). I've also read a bit of Willard's General Topology  I'm currently studying Algebraic Topology and Differential Topology (and Differential Geometry) on my own, and I'm thoroughly enjoying it, but currently it seems that Algebraic Topology and Differential Topology, don't use that much General Topology apart from Compactness, Connectedness and the basics. I've yet to see (in my limited knowledge of Alg and Diff Topology) any real use of things like Separation Axioms and deeper theory from General Topology.  E.g for Differential Topology if your topological space $M$ is second countable and Haursdoff, then you're good to go.   While I certainly have a lot more Differential Topology and Algebraic Topology to learn  (and I look forward to it), I also feel like I should learn a bit more of General Topology.  The reason I've given this long explanation (because I hope it will also help others studying Topology who have similarities), is because the path most Topology students follow is the following  $$\text{General Topology} \to \text{Algebraic Topology/Differential Topology}$$  in which one would usually read Topology A First Course by Munkres or a similar intro to general topology book, then follow that with something like Algebraic Topology by Hatcher and Differential Topology by Guillemin and Pollack and Milnors Topology from the Differentiable Viewpoint.    Now (finally) onto my two questions.    If I want to broaden my knowledge of General Topology, what book do I go to next after Munkres? Should I learn some Pointfree Topology (Frame Theory)?. Also I should mention that I don't want to specialize in General Topology. I hope to someday specialize in Algebraic Topology or Differential Topology/Differential Geometry, so would learning more about General Topology have any direct benefit to my studies of these subjects?


I have a Macbook pro 13" and I want to connect 2 monitors to it. Is it OK to connect one monitor via a USB-c cable directly and the other through a hub? My concern is that both the hub and the USB-c monitor will provide charging to the laptop and I'm afraid that might damage the laptop. Are my concerns valid or should it be OK?

I wanted to know if there is difference in terms of charging the battery when a MacBook Pro 16" is connected to two monitors via USB-C, both with Power Delivery capability.   In this specific case I am talking about the LG 27UK850-W monitors. The MacBook Pro 16" will be connected via USB-C to both of them and use them as external monitors. Since both can charge it as well, will the MacBook Pro  charge faster while being connected to both or will just one monitor be able to deliver the charge at a time?


- this wiki was totally empty. Neither the excerpt nor the body had a letter. So I devised both.       And was accused of plagiarism "just because". There obviously is no "prior art" that i supposedly just copypasted, as I typed it from my head.  I am not speaking of the overall quality of the edit and whether it is worse than nothing - that is for another question, this one is strictly about plagiarism  That is bad because:   That is an insult. It is not good when people may insult others just because they felt like it. Person being accused should have a way to ask accuser to at least substantiate his claim or revoke it.  "Plagiarism" here works as a cheap way to put veto without thinking of reasons and at the same time prohibiting other reviewers from doing more thoughtful evaluation. If the baseless insult is a community-approved way, then that would discourage any attempt to compose an genuine text or make edits at all. It just feels as being suddenly raided by trolls that can not be argued with (and there really is no way at Stack Exchange to argue). So next time why risk it?   I think that piracy and plagiarism are rather strong insults and must not go without the substantiation, just because it was a lazy way to press buttons.  If a person wants to reject some contribution for reasons like plagiarism or license violation, I think it should be mandatory that Stack Exchange site requests him to back his claim and explicitly name what the pirated/plagiarized source was.   It is not matter of taste or habit - it is a public accusation of crime or dishonesty on their part. Just because it felt easy lazy way to press "no" is not enough to commit insults.    If a person is sure about his claim that that act had taken place - it would be easy to him to show the original source and/or original license and key in few words.  If he does not bother to spend few seconds in Google, then he does not has standing to make accusations like plagiarism/piracy.   PS. There is an answer suggesting that the reason of rejections just does not matter and it is normal when it is selected at random. If so - then there should not be insulting reasons. Accusations of piracy/plagiarism should be just removed from the list of canned responses then, if it is okay to throw a dice when rejecting.

I submitted a  and one reviewer said the material was plagiarized.  I don't mind saying my contributions are minor, etc.  However, this is a particularly nasty form of rejection.  I have written this text from scratch. It is possible that my memory sub-consciously found something I read in the past.  Perhaps this was an incident of clicking on the wrong reason radio button or maybe the intent was references are needed?  I actually search around the web for references, but I didn't find anything.  Wouldn't some additional text showing the source of plagiary be very helpful?    The only source I may have quoted was  were they noted a difference between backtick and $() to allow nesting.  However, I thought the text was significantly different and it originated on stack overflow?         Plagiarism is not a crime per se but in academia and industry it is a serious moral offence, and cases of plagiarism can constitute copyright infringement.    Certainly when ever I am writing a tag wiki I look at all the question tagged on stack overflow.  Is this considered an infringement?  I thought we were sort of a collective and the tag wiki shouldn't have to attribute the question the tag is describing.  Some sort of additional text on what the plagiary was would be most helpful.  Edit: For reference, here is the reject reason list [as of Dec 2013].    The copied content is the first reason in the list; which causes the plagiary reason text.  This is unknown to some lower reputation users of stack overflow.


hi there I made i database in mysql with collation utf_unicode_ci ; my code is   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php $db=mysqli_connect("localhost","saeb","123456"); if (!$db) echo "not connected"; mysqli_select_db($db,'publisher'); $select_book="select * from books"; $result = mysqli_query($db,"$select_book"); $num=mysqli_num_rows($result); $i=1; while($i<=$num){ $row=mysqli_fetch_array($result);     // printf ("%s (%s)\n",$row[0],$row[1]);     echo "
"; echo $row['auther']; $i++; }  // for ($i=0; $i <$num ; $i++) { //   $row=mysqli_fetch_array($result); //   echo "
"; //   echo $row['isbn']; //   # code... // } // var_dump(mysqli_get_charset($db));   ?>    but what I see is (i dont know what i must to execute php code in english)     sepidnam ???????? Tanenbaum Abbasnejad   where is problem?why arabic texts converted to ???? ?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I can't download Apps from the Appstore to my iPod touch 5. If I want to download an App, I select "get" then "install", it asks for my password which I fill in. After that, it reads "get", but doesn't download anything.

I'm using iPhone 6s 16 GB. My storage isn't full but still I can't download anything. Every time I wanted to start a download it keeps telling:  app name* could not be download at this time


What happens to a wire if only it's one end is connected to a terminal and if your answer is nothing then why nothing ? A battery should also produce an electric field outward as it does inside and free electrons in wire should get affected by it ! Please help !

I actually have three related questions: An open circuit chemical cell separates charges creating a surplus of electrons on its negative terminus and a shortage of electrons on its positive terminus. The separation of charges is conducted by chemical reactions. As electrons accumulate on the negative electrode, they repulse each other, so it takes more work to put any additional electrons in the negative electrode, so eventually, after a certain potential difference is achieved, the chemical reactions are inhibited and stopped.  1) If we connect a long wire to the negative terminus, the accumulated electrons will evenly distribute themselves along the wire, because of their mutual repulsion. Thus, the charge density at the negative electrode will decrease. Will this cause the battery to relaunch the chemical reactions and put more electrons in the negative electrode?  Let's say we connected two long wires to a chemical cell, one to it's negative electrode, another to it's positive electrode (the wires do not connect to each other). The negative wire will thus acquire some extra electrons, the positive wire will have a shortage of electrons.  2) If now we disconnect the wires from the battery, will they remain charged? And how is this charge mathematically related to the emf of the battery?  If we connect the wires to the battery as described above, the potential difference between their termini will be about the same as the emf of the battery.  3) If we disconnect the wires from the battery and they remain charged, what will be the potential difference between the wires?  Thank you.


I've recently been awarded a bonus of 6500 EUR (Net), What would be the best approach for me?  Here is what my financial situation roughly looks like.   6200 EUR @ 4,95% (4291,63 still open) 29 months left. 7500 EUR @ 5,50% (6844,70 still open) 38 months left. NO credit card debt NO emergency funds Expecting 5k tax refund in februari. Stable income, can save 400 a month   My first obvious choice would have been to pay off the 5,50% loan completely, but that would leave nothing left for an emergency fund. Is that a smart thing to do? Since I am talking about loans here, paying them back early involves a penalty the interest for 2 months, which is not that much.

I have a debt of $15,000 at a yearly interest rate of 9%, which can be paid within 5 years.  Would it be better for me to:   Build first the emergency fund (e.g. liquidity for 6 months' expenses without income) and then start repaying faster my debt, or Would it be better to just have a "mini" emergency fund (limited shorter term liquidity for, e.g. 1/2/3 months' expenses without income), in order to be able to repay my debt faster?


Does this solve the question: There exist $c, n_0$, such that $(n+k)^j = n^j$ for all $n>=n_0$  I tired the above but couldn't find an answer..

Show that for any real constants a and b, where b > 0,  $(n + a)^b = Θ(n^b)$.  So taking a stab at this.. I let $a = 0$, and $b = 1$  So I got $f(n) = (n + a)^b \implies f(n) = (n+0)^1$ which we know $\implies n^1$ or $O(n) \implies \Theta(n^1)$ ? I just took a guess. I'm not sure if that's even close to being right.


Suppose $E/F$ is Galois extension. What is it known about structure of $F[Gal(E/F)]$?  I've learned only one fact in this direction - existence of normal basis in $E/F.$ But it's not truly about $F[Gal(E/F)].$

I am not very familiar with the theory of Galois representations, but I do know a bit about both Galois theory and representation theory. Recently I learned about the notion of a normal basis for a Galois extension which led me to consider following straight-forward Galois representation: Let $L/K$ be a Galois extension and choose a $K$-basis for $L$. Then each element of the Galois group is a $K$-linear map, hence may be represented as a matrix with respect to our chosen basis.     Question 1: What is known about the decomposition of this representation?   Since a $K$-basis for $L$ contains at most 1 element of $K$, it seems to me that there is at most 1 trivial subrepresentation. Can every irreducible representation occur? If we chose a normal basis for $L/K$, then the representation described above will be the permutation representation, no?  The problem of constructing a normal basis for a Galois extension made me wonder about the Galois invariant subspaces. For example, in $\mathbb{Q}(\sqrt{2})/\mathbb{Q}$, I can quickly spot two Galois invariant subspaces: $\mathbb{Q}$ and $\sqrt{2}\mathbb{Q}$, which I am fairly confident exhausts the supply.     Question 2: Can we use representation theory to classify/specify all the Galois invariant subspaces of an extension $L/K$?   Yesterday I read a proof of the existence of normal bases, which was not trivial. However, thinking about my example above for $\mathbb{Q}(\sqrt{2})/\mathbb{Q}$ geometrically, it seems very rare that a randomly chosen basis would not be normal: if we pick any element not on the two lines listed above, its Galois orbit will be a basis, no?     Question 3: Will this observation continue to hold in general, and can this intuition be made into a proof of the existence of normal bases?


I want to derive the formula for $1/(1^2)+1/(2^2)+...+1/(n^2)$ where $n$ is a positive integer and $n<\infty$. All I could find no the internet dealt with the case where $n$ goes to infinity, and based on those solutions, I'm not even sure that a formula exists for the finite case. I tried deriving it by induction, but failed. Any help will be appreciated.

I have the summation  $$\sum\limits_{i=1}^n \frac{1}{i^2}$$  And I don't know how to find a closed formula for it. Any ideas?


I have been trying to figure this one for about an hour now, yet I still can find out how to detect cocoa beans in a player inventory in 1.11.2. The command I used was:  /testfor awesomeianman {Inventory:[{id:"minecraft:dye",Damage:3}]}   Whenever I tried this, it didn't have an output! Could someone please help me, and tell me if the command is completely wrong?

I am trying to build a custom Adventure Island. At this moment I am trying to limit the allowed items on this island. I'm trying to do this by filtering on a certain enchantment which is not item-specific.  For example.   When you want to filter an wooden sword with a custom name, you use this command:  /testfor @p[r=5] {Inventory:[{tag:{display:{Name:"Custom Sword"}}}]} <   When you want to filter a wooden sword with a custom name and specific enchantement, you can use:  /testfor @p[r=5] {Inventory:[{tag:{display:{Name:"Custom Sword"},ench:[{id:16,lvl:1}]}}]} <   But how can I filter on items with a specific enchantment on ANY item? I tried:  /testfor @p[r=5] {Inventory:[{tag:{ench:[{id:16,lvl:1}]}}]} <   But this ain't work. Does anyone know how to solve this issue?


I recently bought  from a used equipment auction. I installed Xubuntu [Ubuntu 14.04 LTS (32 bit)] and decided to try if I can play CounterStrike:Source using Steam here. After installation, I got this message:    I tried a few remedies advised on-line, like  sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get dist-upgrade   and  sudo apt-get install xorg-x11-drv-catalyst-devel.i686 xorg-x11-drv-catalyst-libs.i686   but got no results.

I am not able to play "Half-Life-2" on Steam + Ubuntu 14.04 . Error shown in message box on screen:      Could not find required OpenGL entry pint 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.   I have a Dell Inspiron Laptop.  My OS is Ubuntu 14.04 and my graphics card is AMD Radeon HD 8600M.  I have installed AMD properietry Driver.    The partial output of "glxinfo" is as follows:      name of display: :0     libGL: screen 0 does not appear to be DRI3 capable     libGL: pci id for fd 4: 8086:0a16, driver i965     libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/i965_dri.so     libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/i965_dri.so     libGL: Can't open configuration file /home/arushi/.drirc: No such file or directory.     libGL error: failed to load driver: i965     libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so     libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so     libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/i386- linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast     libGL: Can't open configuration file /home/arushi/.drirc: No such file or directory.     libGL: Can't open configuration file /home/arushi/.drirc: No such file or directory.     libGL error: failed to load driver: swrast     display: :0  screen: 0     direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)


I'm trying to do computations on Javascript dates, and the following thing happens:  var date = new Date()   undefined date * 2   2815580408292  date - 10000   1407790194146 date / 6    234631700691 date + 10000   'Mon Aug 11 2014 13:50:04 GMT-0700 (PDT)10000'   It was going so well until I got to the +, where it turned from performing the operation on the milliseconds to concatenating strings. I need + to perform addition on milliseconds, not string concatenation. I'm doing this weird code-generation thing, so I can't do stuff like date.setTime(date.getTime() + 10000) without extraordinary effort and sullying the codebase. Is there some way of hacking Javascript so that + will add the milliseconds instead of concatenating as strings, or is there some date library that I can use + on its date objects and have it do addition rather than concatenation? I tried date.js but it concatenated too.

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


I googled for several hours and could not find a solution for the following issue (at least I did not find one I could understand and adapt).  My cwd is:  /home/ubuntu/data/modelling/Iamvariable/Var1/PRODUCTION/ANALYSIS/Var2/DIHEDRALS   and I need to extrakt the "text" behind Var1 and Var2.   I would like to scan the pwd output from right to left since the file path starting could change but the path starting after Iamvaribale will stay always the same. By means of number of elements in path and except Iamvaribale (and of course Var1 and Var2) also the folder names will stay the same.  How can I achieve this in a bash sricpt?  Var1 =  Var2 =   edit:  /home/ubuntu/data/modelling/Iamvariable/Var1/PRODUCTION/ANALYSIS/Var2/DIHEDRALS   basically everything in capital letters is fixed. If there is no easy solution where   /home/ubuntu/data/modelling    is not fixed this is OK to be set as fixed. But it would be better to have it not fixed, to have it more flexible.

Given a string file path such as /foo/fizzbuzz.bar, how would I use bash to extract just the fizzbuzz portion of said string?


In the movie Pulp Fiction, there is always talking like  Don’t do nothing stupid. I ain’t eatin’ nothin' ain’t got sense enough to disregard its own feces.  They all seem odd to me, like Don’t do nothing stupid, it is Do something stupid in my mind, which makes it pretty strange, so it must mean Don't do something stupid, but why is it ? For the second sentence, it is a man explaining why he doesn't eat pigs and pigs live in a dirty place. It must mean I am not eating something (which) has not got sense enough to disregard its own feces. Same problem as the first sentence. Why double negatives doesn't become a positive? (It's appreciated if someone could inform me any grammar faults in what I was typing as a English learner)

In my native language, double negations "cancel out". I have been trying to learn English using movies and such things, but double negation confuses me. I see instances when double negation cancels out, and some when they do not.  For example, "I haven't got no money" is interpreted as "I have no money." "There wasn't anyone who didn't enjoy the party" is interpreted as "Everyone enjoyed the party."  Is this context dependent? If so, how does one decide which interpretation is correct?


So I have been working with Wordpress for almost a year now, almost all of the times i get stuck with the same problem.  When you purchase a hosting you need to give it the domain of the website, now if the domain dont have A record to your host you won't be able to view your website, so you must edit your local hosts file to view it with this domain.  The other option is to work with a sub-domain, which here starts my problem. when you are working with Wordpress it's creating the pages with the Url on the database and than when you finish the website and want to connect to the main domain you need to edit the whole database. (Lets say the wanted domain is xxx.net, and the temp/subdomain is yyy.net)  What are the best ways of moving and connecting the website to the domain after using a sub/temp domain?

I'm planning to buy a domain and install a WordPress site on it at a web-hosting company.  But first I'll need to iron-out some bugs...  I got a working LAMP-stack at my home-computer, so I'm thinking about first installing my site locally - off the Internet.  I'll be mostly tweaking and making "test-posts" to check that everything works, but I'll probably also make some posts I'd like to keep when I move the site and take it online.  When I'm done chasing bugs; I guess I'll just package the public_html|www directory-tree and upload it to the web-hosting company, and also export the database from my home-computer to the web-hosting.    What I'm wondering if there are some "best practices", some do-s and don't-s, some major pits to take note of?    For example, how can ensure the smooth transition of domain-name in posts and links as such, from localhost to whatever-i-end-up-buying.com (I know from previous attempt of running WordPress at my home computer, that this didn't always work quite well...).


I would like to understand why the faster you spin, higher normal modes are excited   This is the tube i'm talking about, i think it's used as a kid's toy:   Thank you for reading

I have a simple recorder, like this:    When I cover all the holes and blow gently, it blows at about 550 Hz, but when I blow more forcefully, it jumps an octave and blows 1100 Hz.  What's the physical difference between blowing gently and blowing forcefully that the recorder suddenly jumps an octave and the fundamental mode is no longer audible?


When I try to ask a question, I see the below message:     Sorry, we are no longer accepting questions from this account. See the Help Center to learn more.   Is it possible to reverse this ban?

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


Given that $\gcd(a,b) = 1$ and $\gcd(c,d) = 1$, show that $\gcd(ac,bd) = \gcd(a,d) * \gcd(b,c)$.  The work that I have done so far goes as follows.  We write  $$\gcd(ac,bd) = acv + bdu$$ then  $$\gcd(a,d) = ax + dy\quad\text{and}\quad\gcd(b,c) = bs + ct$$ and so \begin{align} \gcd(a,d) * gcd(b,c) &= (ax + dy) * (bs + ct) \\ &= axbs + axct + dybs + dyct \end{align} I tried to factor out some terms, and get $ax(bs+ct) + dy(bs+ct)$  but then I am stuck here. I don't know what else to use to prove the answer.

I had an idea and was wondering if it works. I seem to have gotten away quite cheaply. The many multiplications on the right side made me consider the prime divisors:   $p\mid (ah,bk)\Rightarrow p\mid ah \land p\mid bk \Rightarrow \left(p\mid a\lor p\mid h\right)\land\left(p\mid b\lor p\mid k\right)\Rightarrow \left(p\mid a\land p\mid b\right)\lor\left(p\mid a\land p\mid k\right)\lor\left(p\mid h\land p\mid b\right)\lor\left(p\mid h\land p\mid k\right)$.   Which matches exactly the right side! I am almost tempted to replace the implications with equivalences, use the definition of the gcd and call it a day! What do you think?  Reference  Apostol, Introduction to Analytic Number Theory, exercise 1.24.


I'm using ArcMap 10.4.1.  I am trying to update a point layer symbology with a premade lyr file, then adjusting it's class break values in arcpy. It's working fine, only it changes the symbols back to default (while the colours stay correct). I don't want my points to have a stoke/outline and can't change that with arcpy, so thats a problem.  Here's my code:  updateLayer = arcpy.mapping.ListLayers(mxd, "FC", df)[0] FClyrpath = "FCsymology.lyr" sourceLayer = arcpy.mapping.Layer(FClyrpath) arcpy.mapping.UpdateLayer(df,updateLayer,sourceLayer, symbology_only = True)  lyr = arcpy.mapping.ListLayers(mxd, "FC", df)[0]  if lyr.symbologyType == "GRADUATED_COLORS":     lyr.symbology.valueField = "depth"     lyr.symbology.classBreakValues = [3, 5, 8, 11, 12, 15, 18, 21, 24, 72]  arcpy.RefreshTOC()   This is what my premade ".lyr" symbology looks like:    This is what happens when changing the classbreakValues: The classification is good, the strokes around the symbol not.    I also tried changing the default symbology in AdvancedArcMapSettings, but no avail.

I'm struggling with an issue which I think is a bug in arcpy.  I am using AddSymbologyFromLayer_management to apply the symbology from a reference layerfile (yes, an actual layerFILE, not a layer within the .mxd) to a newly created polygon shapefile which is displayed as a layer.  This works fine, even when I change what the field the symbology shall be based on. However, when I also change the class breaks (I use GRADUATED_COLORS here), the outlines, which are set to "No color" in the reference layerfile, are set back to default, which means some kind of grey with 0.4pt width.  This behaviour only occurs when I change the class breaks via code, if I keep them as they are, everything is fine.  This is what I basically do within the code:  # get reference layer ref_lyr_file = os.path.join(workspace, 'styles', 'graduated_colors_reference_style.lyr') # get newly created layer new_lyr = arcpy.mapping.ListLayers(mxd, lyr, mapDF)[0] # import symbology from reference layer-file arcpy.ApplySymbologyFromLayer_management(new_lyr, ref_lyr_file) # set value field new_lyr.symbology.valueField = draw_param_dict[draw_parameter] # reclassify values new_lyr.symbology.reclassify() breaks = new_lyr.symbology.classBreakValues # round values nicely as new class breaks lenMin = len(str(int(breaks[1]))) new_breaks = [int((round(b / (10 ** lenMin), 2)) * (10 ** lenMin)) for b in breaks] # update map document new_lyr.symbology.classBreakValues = new_breaks arcpy.RefreshTOC() arcpy.RefreshActiveView()   How I create the new breaks is not important, so you can skip this section. The thing is: the polygon outlines are set back to the default color ONLY AFTER applying new class break values.  Does anyone know how to get around this?


I am writing a program that reads a text file and counts either the number of characters (-c), words (-w), sentences (-s), and paragraphs (-p). The program works if I declare the two strings (option and filename) but if I have the user input the values, it doesn't work. I've tried using (String [] args) and a Scanner but neither works. Below is the code:  import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;  public class Unit7Lab1 {     public static void main(String[] args) {         // String option = args[0];         // String filename = args[1];         String option = "-c";         String filename = "C:\\DrJava\\Sample.txt";         // Scanner input = new Scanner( System.in );         // System.out.println("Please enter your option and filename");         // String option = input.next();         // String filename = input.next();          System.out.println(option);         System.out.println(filename);          File inFile = new File(filename);         Scanner sc;          try {             sc = new Scanner(inFile);              if (option == "-c") {                 int nc = CountCharacter(sc);                 System.out.println(nc);             } else if (option == "-w") {                 int nw = CountWord(sc);                 System.out.println(nw);             } else if (option == "-s") {                 int ns = CountSentence(sc);                 System.out.println(ns);             } else if (option == "-p") {                 int np = CountParagraph(sc);                 System.out.println(np);             }             sc.close();         } catch (FileNotFoundException e) {             System.out.println("Could not find file: " + inFile.getAbsolutePath());         }     }      public static int CountCharacter(Scanner scin) {         int count = 0;         while (scin.hasNext()) {             count += scin.next().length();         }          return count;      }      public static int CountWord(Scanner scin) {         int count = 0;         while (scin.hasNext()) {             scin.next();             count += 1;         }         return count;     }      public static int CountSentence(Scanner scin) {         String retScin = "";         while (scin.hasNext()) {             retScin += scin.next();         }          int count = retScin.length() - retScin.replace(".", "").length();         return count;     }      public static int CountParagraph(Scanner scin) {         int count = 0;         scin.useDelimiter("\n");         while (scin.hasNext()) {             scin.next();             count += 1;         }         return count;     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $a\in \mathbb Z$. Show that $\gcd(5a+8, 7a+3)=1\textrm{ or } 41$. Knowing that $\forall k \in\mathbb Z, \gcd(a,b)=\gcd(b, a-kb)$. I actually know how to solve this particular problem: $\gcd(5a+8, 7a+3)=\gcd(5a+8,2a-5)=\gcd(a+18,2a-5)=\gcd(a+18:-41)$. So $(a+8:-41)\in \{1, 41\}$. What I want to know is if there's an efficient way to solve any problem of this sort. The goal being to eliminate variables from either side of the gcd no matter the parity of the terms involved. Manually adding and substracting to each sum to have the variable $a$ cancelled. This is only the simplest example. Another one is: $\gcd(2a^2+3a-1, 5a+6)$. Any ideas?

The only solution that I have been able to come up with is $d=1$, but because $d>2$, I can't seem to figure out how to find a solution.


I want to remove all characters before the next pipe "|" symbol. I tried suggestions on previous questions however that did not work for me. As an example. I want to delete the sequencenum=123 however the sequence number is dynamic and doesn't always equal 123, it could equal 934294. I could remove it by using "s/|sequence=123//g" or "s/|sequence=...//g" however I want to be able to delete all characters until the next pipe, "|". Output: 2021-03-22T12:00:51.990368-04:00 8.8.8.8 time=1616428842|action=Detect|ifdir=inbound|origin=8.8.8.8|originsicname=CN\=Internet,O\=test|sequencenum=123|dst=1.1.1.1|proto=6|s_port=2231|service=80|src=9.9.9.9|src_machine_name=test@stackoverflow.com|src_user_name=user|user=testuser@stackoverflow.com|  Desired Output: 2021-03-22T12:00:51.990368-04:00 8.8.8.8 time=1616428842|action=Detect|ifdir=inbound|origin=8.8.8.8|originsicname=CN\=Internet,O\=test|dst=1.1.1.1|proto=6|s_port=2231|service=80|src=9.9.9.9|src_machine_name=test@stackoverflow.com|src_user_name=user|user=testuser@stackoverflow.com|

String 1: svn+ssh://test@svn-server.com/repo-2015/branches/DEV_BRANCH_21/main/code/main_input.c  Needs output: main/code/main_input.c  String 2: svn+ssh://test@svn-server.com/repo-2015/branches/TEST_BRANCH_56/main/code/main_output.c  Needs output: main/code/main_output.c  Tried like this  echo "svn+ssh://test@svn-server.com/repo 2015/branches/DEV_BRANCH_21/main/code/main_input.c" | sed -e 's/^.*\(branches\/\)//g'   Don't know how to proceed and remove upto next "/" after branches.


I know it might be a naive question but am not really an electrical or a mechanical engineer, but am in a situation here and I need some help.  I work in motorized rolling doors and I need to know how to chose the right motor for the door I have. Basically I want to calculate how much a motor can lift, maybe a general rule of thumb on how does it work.  So the information I have is Torque (Nm), hollow Shaft diameter (mm), voltage (V) output speed (RPM), and motor output (kW).  And as an example of this is that i have an industral motor with    Torque = 450 Nm,  Hollow Shaft = 40 mm,  Voltage = 230/400 V,  Output Speed = 14 RMP Motor output = 1,5 kW

I'm trying to determine how much torque, power, voltage, and size I need for my motor in order to lift between 50-100lbs given the gear configuration below. Assume that the motor and gears are securely held in place. Also, the speed at which the weight is lifted doesn't really matter as much as just being able to lift the weight. The Worm and Worm Gear are to prevent the weight from dropping if the motor is not running, and the bevel gears are necessary for the confined space it'll be held in. The motor also needs to be 2" in diameter or less.  Ideal dimensions for each of those is 2" diameter for the motor, ~1.5" diameter for the Worm Gear, 1/2" thick for the worm, and about 1/2" diameter for the bevel gears. Given that everything is quite small to lift such a large weight, does such a motor of that size even exist to lift that much? If nothing, I would really appreciate an equation or a way to calculate the torque needed to lift the weight using those gears.


Given a dictionary like so:  my_map = {'a': 1, 'b': 2}   How can one invert this map to get:  inv_map = {1: 'a', 2: 'b'}


Say I harvest crop as a hobby on my land, and it's less than an acre. What's the tax on the crop income? In California.


Why have I lower resolution in text mode than in math mode? Is it normal or some packages are missing?

I have the following LaTeX-document:  \documentclass[a4paper,11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[ngerman]{babel}  \usepackage[T1]{fontenc}  \title{Sample} \author{Litb}  \begin{document}  \maketitle  \begin{abstract}  This is a report about my praxis phase at the company foo bar which I enjoyed. \end{abstract}  \end{document}   Much to my frustration, compiling with pdflatex creates a document with Bitmap-fonts. The reader's font-list shows that it uses Type3 fonts.  If I remove the fontenc loading, then I get a PDF using vector-fonts, but I heard that I should keep it, for having native German Umlauts working.  Does anyone know how I can get vector fonts with T1, and why it keeps using bitmap fonts if I have that package-load line in it?


Let $ \pi(x) $ be the prime counting function: the number of numbers $\leq x$ with just one prime factor.  Let $ \pi_n(x) $ count the number of numbers $\leq x$ with exactly $n$ prime factors (counted with multiplicity).  When plotting the values for different $n$ up to large $x$, it seems that for every $n$ there will be a point from where on $ \pi_n(x) > \pi(x) $. I'm conflicted about my intuition on this. On one hand, it seem's to be plausible because numbers with more and more prime factors become more and more common. On the other hand, numbers with, say, 100 prime factors seem like they are so rare that they will be always less than $ \approx \frac{x}{\log x}$  My question is: Will there at some point be more numbers with $n$ factors than prime numbers for any $n$?  Bonus question for positive answer: Is there a way to find the point this happens for a given $n$ other than the naive approach?  Bonus question for negative answer: What is the largest $n$ which surpasses the prime counting function?   $\pi_n(x)$ for $x \lt 100$, at $\approx 25$ there are more numbers with $2$ factors than prime numbers.   $\pi_n(x)$ for $x \lt 100.000$, at $\approx 40000$ there are more numbers with $5$ factors than prime numbers.   $\pi_n(x)$ for $x \lt 10.000.000$, at $\approx 4.000.000$ there are more numbers with $6$ factors than prime numbers.  (Please ignore the 'Divisors' in the chart legend, it should read 'Factors')

This is my first question.   Let $a_1, a_2,\ldots, a_k$ be natural numbers $\leq n$ with $m$ prime factors.  Let $p_1, p_2, \ldots, p_r$ be the prime numbers $\leq n$.   Let $$C_{m,n} = \frac{\sum_{i=1}^{k}a_i}{\sum_{i=1}^{r}p_i}$$ Does the following limit exist when $m\geq 2$? Obviously, when $m=1$,  $C_{1,n}=1$.  $$\lim_{n\to \infty} C_{m,n}$$  I have some guesses but not defendable enough.  My best,  The FM.


I have the following enhanced for loop and I don't understand how it works. Can someone explain this particular example to me?  @Path("vm") public class VmResource {      @GET     @Produces("application/json")     public List<HostDetail> getVms() {         VirtualBoxManager manager = VirtualBoxManager.createInstance(null);          List<HostDetail> machineValues = new ArrayList<HostDetail>();          for (String hostUri : PropertiesBean.getInstance().getServices()) {             try {                 manager.connect(hostUri, PropertiesBean.getInstance().getUsername(), PropertiesBean.getInstance().getPassword());                 IVirtualBox vbox = manager.getVBox();                 IHost host = vbox.getHost();                  URL url = null;                 try {                     url = new URL(hostUri);                 } catch (MalformedURLException ex) {                     Logger.getLogger(VmResource.class.getName()).log(Level.SEVERE, null, ex);                 }                  HostDetail hostDetail = createHostDetail(host, url.toString(),                          vbox.getVersion(), url.getHost());                 for (IMachine machine : vbox.getMachines()) {                     hostDetail.getVirtualMachines().add(createMachineDetail(machine));                 }                 machineValues.add(hostDetail);             } catch (Exception ex) {              } finally {                 manager.disconnect();             }         }         return machineValues;     }

Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


When I do git status, I get this result:  # On branch master # Your branch is ahead of 'origin/master' by 1 commit. #   (use "git push" to publish your local commits) # # Changes not staged for commit: #   (use "git add/rm <file>..." to update what will be committed) #   (use "git checkout -- <file>..." to discard changes in working directory) # #   modified:   OnlineMarketing/OnlineMarketing-Info.plist #   deleted:    OnlineMarketing/icon-100.png #   deleted:    OnlineMarketing/icon-1024.png #   deleted:    OnlineMarketing/icon-144.png #   deleted:    OnlineMarketing/icon-152.png # # Untracked files: #   (use "git add <file>..." to include in what will be committed) # #   OnlineMarketing.xcodeproj/project.xcworkspace/xcshareddata/ #   OnlineMarketing.xcodeproj/project.xcworkspace/xcuserdata/alexgenadinik.xcuserdatad/ #   OnlineMarketing.xcodeproj/xcuserdata/alexgenadinik.xcuserdatad/ #   OnlineMarketing/.DS_Store #   OnlineMarketing/Default-568h@2x copy.png   My question is what I should do with these iOS untracked files from xcode? They seem to be project files. Should I commit them? Or should they remain local for me?   The reason I am trying to figure this out is that I tried to work with another branch and I got this error:  git checkout -b vidals-mods origin/vidals-mods error: The following untracked working tree files would be overwritten by checkout:     OnlineMarketing.xcodeproj/project.xcworkspace/xcshareddata/OnlineMarketing.xccheckout Please move or remove them before you can switch branches.   Thank you!

Which files should I include in .gitignore when using Git in conjunction with Xcode?


I am trying to install a software that came with my USB interface on PlayOnLinux. I am not getting very far. How do I install software that’s on a compact disk on Linux? Oh I am using Ubuntu 13.4 by the way.

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I am busy with a project to deploy 216 Thin client desktops for and education center. The client need the desktops to be loaded with the latest version of Ubuntu for their software to work.   Question 1  What is the best way to deploy Ubuntu to all of the desktops in the smartest way possible to cut down on setup costs?  Question 2  Does Ubuntu have centralized management software that can be loaded onto all of them to manage the updates and user restrictions?

I had promissed my 120 students that I will install ubuntu 10.10 on their laptops but failed to do it.The laptops were dell vostro 4014. All have same hardware. I took one laptop and installed ubuntu and  all the necessary packages, and also wine to run some windows software. I selected the default ext4 file system.   Then I tried to use clonezilla server to clone the installation. Clonezilla server shows boot menu splash screen, but later on it says that I might be having a latest NIC unsupported by the kernel. But the NIC of the laptop on which I had installed ubuntu works fine.  Later I tried to use the clonezilla live cd to boot the laptop which has ubuntu. But when I press 'Y' to start cloning, it says 'something went wrong'. Again I tried the 'dd' command to save as disk image. But it copies empty space. So it is not feasible for me as it takes really long time.   I have made my students to wait for many days, daily they are coming and asking whether my setup is ready. Today I realized I can't do it. I have in a way convinced them not to go for windows. So they are waiting for me to have ubuntu installed on their laptops. Today evening some of them will come to collect the laptops I took from them to install ubuntu. Don't know how and what to tell them.


I'm mapping an endpoint to fetch an object by it's ID from an array of Objects this is my request mapping: @RequestMapping(value ="/items/{Id}", method = RequestMethod.GET)  public Item getItemById(@PathVariable("Id") String Id) throws NoSuchItem { return ItemList.getItemById(Id); }  this is my getItemById function in my ItemList class,  private static ArrayList<Item> itemList;   public static Item getItemById(String id) throws NoSuchItem {     for(Item x:itemList){          if(x.getId()== id)           return x;      }      throw new NoSuchItem();  }  this is the JSON representation of my itemList array which has 3 Item objects, [ {     "name": "Mars",     "supplier": "Nestle",     "weight": "1",     "id": "mars",     "location": null }, {     "name": "Kit Kat",     "supplier": "Nestle",     "weight": "1",     "id": "kitkat",     "location": null }, {     "name": "Double Decker",     "supplier": "Nestle",     "weight": "1",     "id": "dd",     "location": null } ]  I want my /items/{id} endpoint to return only the desired Item, But it throws a 404 error, what am I doing wrong here? PS- I'm sending my requests through POSTMAN the cURl command for my postman request is as follows; curl --location --request GET 'localhost:8082/items/mars'

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I need to prove that $a^n - 1$ is a composite number when $a>2$ and $n\ge2$ ($a,n$ are integers). I have tried a few things, but couldn't make it.

I did some mathematical induction problems on divisibility   $9^n$ $-$ $2^n$ is divisible by 7. $4^n$ $-$ $1$ is divisible by 3. $9^n$ $-$ $4^n$ is divisible by 5.   Can these be generalized as $a^n$ $-$ $b^n$$ = (a-b)N$, where N is an integer? But why is $a^n$ $-$ $b^n$$ = (a-b)N$ ?  I also see that $6^n$ $- 5n + 4$ is divisible by $5$ which is $6-5+4$ and $7^n$$+3n + 8$ is divisible by $9$ which is $7+3+8=18=9\cdot2$.  Are they just a coincidence or is there a theory behind?  Is it about modular arithmetic?


I am trying to get any information from a picture.  I need the date, name of the person who took it or anything. I am trying to use some metadata checkers but they just show me the resolution and type of file jpg/jpeg. Any ideas? I have even tried tools like exiv2 and photoshop without any results.

I'm wondering what information is contained in an image file like JPEG or PNG.  I know that most of them contain a metadata file, but anything else other than that?  Anything relates to the license key or personal information in there?  Does software like Photoshop hide some user data in an image?


My Goal Prove $$\int_0^{\infty}\frac{\prod_{n=0}^k\sin(2^nx)}{x^{k+1}}dx = 2^{\frac{k^2-k-2}{2}}\pi.$$ My Speculations  I am strongly inclined to use the double angle identity for the sine, but I haven’t gotten anywhere after attempting to turn the product into something else by using $\sin(2^kx)=2^k\sin(x)\prod_{n=0}^{k-1}\cos(2^nx).$  I feel like it must involve a Dirichlet Integral kind of procedure, where $\int_0^{\infty}\frac{\sin(ax)}{x}dx$ is somehow used.  I do notice that there are as much $x$’s in the denominator as there are sine factors in the top. I feel like this would help somehow, perhaps with some repeated generalization in terms of $k$ using Leibniz Rule and Feynman Integration. I did try it though, and got nowhere.   Question I guess obviously how do you do this? But are any of these speculations meaningful to the solution of this problem? Any input is appreciated.

$$\int_{0}^{\infty}{\sin(x)\sin(2x)\sin(4x)\cdots\sin(2^kx)\over x^{k+1}}\mathrm dx=2^{0.5(k^2-k-2)}\pi\tag1$$  $k\ge0$  Experimental using wolfram integrator, let me to conclude the closed form for $(1)$ is as follow above.  But I don't know how shows it.  How can we prove $(1)$?  We have  $$\prod_{j=0}^{k-1}\cos(2^jx)={\sin(2^kx)\over 2^k\sin(x)}\tag2$$  I am sure how is this product will relate to $(1)$  Setting $k=0$ we have the   $$\int_{0}^{\infty}{\sin(x)\over x}\mathrm dx={\pi\over 2}$$


Usually whenever these functions pop up in the computation of a proper integral,  one is stucked finding their antiderivative.   Has it been proved that their antiderivative has no closed form in terms of a polynomial in $sin, cos, tan, exp, ln,... $?   EDIT: the question is indeed a duplicate.  For French speakers, this issue is completely assessed here

In the past, I've come across statements  along the lines of "function $f(x)$ has no closed form integral", which I assume means that there is no combination of the operations:  addition/subtraction multiplication/division raising to powers and roots trigonometric functions exponential functions logarithmic functions  which when differentiated gives the function $f(x)$. I've heard this said about the function $f(x) = x^x$, for example. What sort of techniques are used to prove statements like this? What is this branch of mathematics called?  Merged with "" by : Sometimes we are told that some functions like $\dfrac{\sin(x)}{x}$ don't have an indefinite integral, or that it can't be expressed in term of other simple functions. I wonder how we can prove that kind of assertion?


I want to create any new document templates in desktop area not only in folders. When we add our templates to Templates folder in Ubuntu 20.04 it adds automatically "New Document" option to folders context-menu? But not to desktop! Can't find solutions or extensions. How can I do this? With terminal or any extensions? Thank you.

In Ubuntu 20.04, on the desktop, there is a number of actions I wish I could do, such as, by order of importance :  use keyboard shortcuts such as select all, copy / paste. use drag & drop with icons deactivate the "mouse over" highlight, and restrict the clicking area to only the icon, not the surrounding square  To put it simply, I'd like to have the exact same features as offered by the desktop of Ubuntu 18.04 (probably related to a specific version of GNOME, and not Ubuntu itself). Am I missing something obvious here? I actually see no reason why those actions are removed or deactivated on the desktop, since they all work in any Nautilus window.


Today, my instructor was going over some of the misconceptions about confidence interval, e.g., how it's frequently incorrectly stated that "a 95% confidence interval that there is a 95% chance that the population parameter is in the confidence interval." He further said that "95% confidence intervals mean that if you were to create $n$ sets of samples drawn from this population, and construct a separate confidence interval for each of the $n$ sets, then we would expect 95% of these confidence intervals to contain the population parameter." This seems to be what's regurgitated on this website. So he concluded with (1) A 95% confidence interval does not mean that there is a 95% chance that the population parameter is in this confidence interval. It's either in it, or it's not in it, there's no probability associated with that. This makes sense to me. (2) A 95% confidence interval means that it has a 95% chance of containing the population parameter. ???? Someone brought up that (2) sounds the exact same as (1), but just worded differently (and I agree). Doesn't (1) = (2), or is (2) somehow different from (1)? I tried to apply a simplified analogy where we consider a set of numbers $S$ and some target number $x$. According to (1), it's saying that $x$ has a 95% chance of being in $S$. According to (2), it's saying that $S$ has a 95% chance of containing $x$. These two literally sound the same to me.

I know roughly and informally what a confidence interval is.  However, I can't seem to wrap my head around one rather important detail:  According to Wikipedia:     A confidence interval does not predict that the true value of the parameter has a particular probability of being in the confidence interval given the data actually obtained.     I've also seen similar points made in several places on this site.  A more correct definition, also from Wikipedia, is:     if confidence intervals are constructed across many separate data analyses of repeated (and possibly different) experiments, the proportion of such intervals that contain the true value of the parameter will approximately match the confidence level   Again, I've seen similar points made in several places on this site.  I don't get it.  If, under repeated experiments, the fraction of computed confidence intervals that contain the true parameter $\theta$ is $(1 - \alpha)$, then how can the probability that $\theta$ is in the confidence interval computed for the actual experiment be anything other than $(1 - \alpha)$?  I'm looking for the following in an answer:   Clarification of the distinction between the incorrect and correct definitions above. A formal, precise definition of a confidence interval that clearly shows why the first definition is wrong. A concrete example of a case where the first definition is spectacularly wrong, even if the underlying model is correct.


We went on vacation and while we were gone, the refrigerator in which I stored a GREAT DEAL of cheese (both hard and soft, although unopened) quit working and when we returned home, I found the cheese defrosted (I had put it in the freezer).  Is it safe to transfer to my other refrigerator?  The packages are unopened and there is no indication of spoilage.

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


Does $\lim_{x \to 4} \sqrt{x-4}$ exist?   The domain of the function is $[4,\infty)$ so does the left hand limit exist? And does the general limit exist?

I am taking a calculus course, and in one of the exercises in the book, I am asked to find the limits for both sides of $\sqrt{x}$ where $x \to 0$.  Graph for sqrt(x) from :   This is how I solved the exercise:     For simplicity, I choose to disregard the negative result of   $\pm\sqrt{x}$. Since we are looking at limits for $x \to 0$, both   results will converge at the same point, and will thus have the same   limits.      $\sqrt{x}$ = $0$ for $x = 0$.      $\sqrt{x}$ is a positive real number for all $x > 0$. $\displaystyle \lim_{x \to 0^+} \sqrt{x} = \sqrt{+0} = 0$      $\sqrt{x}$ is a complex number for all $x < 0$. $\displaystyle \lim_{x \to 0^-} \sqrt{x} = \sqrt{-0} = 0 \times \sqrt{-1} = 0i = 0$   The solution in the book, however, does not agree that there exists a limit for $x \to 0-$.  I guess there are three questions in this post, although some of them probably overlaps:   Does $\sqrt{x}$ have a limit for $x \to 0$? Are square root functions defined to have a range of only real numbers, unless specified otherwise? Is $\sqrt{x}$ continuous for $-\infty < x < \infty$?   WolframAlpha says the limit for x=0 is 0:   And also that both the positive and negative limits are 0:   If my logic is flawed, please correct me.


This was a  issue when raised previously through Chrome v30 Dev: , however now that Chrome v30 is no longer in dev/beta the issue is still present:    In the latest version of Chrome, if you click on this link the tag suggestions divider will close but nothing else will happen.  The link itself points to the tag wiki for the highlighted tag:  learn more   If you give the tag suggestion area focus, however, the link then works as it should.

Note: This is identical to , but that bug was declined because Chrome 30 was in dev. Chrome 30 has now been released, and still has this issue.   The "Learn More" link for tags is broken in the latest release of Google Chrome.    If I right-click and open in new tab, I get the tag's page, but just clicking doesn't work.  I'm using Chrome 30.0.15599.69, the latest stable release:


Identically distributed implies that each random variable has the same probability distribution as the others.  Independent means that all the random variables are mutually independent. The notion of dependent but identically distributed random variables is used in statistical literature (for example ).   However, if the variables are not independent, then the distribution of one variable is affected by other variables. If this is the case, then how can they be identically distributed? It seems like random variable cannot be dependent and identically distributed at the same time.   What am I getting wrong?  Edit: After looking at examples in the comments, I realized I did not ask the right question. I meant a sample, and not random variables. We known a sample can be drawn i.i.d from a distribution. What does it mean for a sample to be identically distributed but not independent.

Having read a little about exchangeability, I went back to thinking about the iid condition required for the central limit theorem. It struck me that if two random variables are drawn from an identical distribution, the occurrence of one event does not make it more or less probable for the occurrence of another event. I have no doubts that I am wrong and there is a reason why both independence and identical distribution are required. I just don't know why!


Let $L=K(\alpha,\beta)$ be an algebraic field extension, with $\alpha$ separable over K.      Show that $L/K$ is simple.   My attempt:  If we could show that $L/K$ is finite and separable then the claim would follow by the primitive element theorem.  Since $L/K$ is algebraic and finitely generated, it is a finite extension.  Since $\alpha$ is separable the minimal polynomial of $\alpha$ in $\overline{K}$ is of the form:  $m_{\alpha}(X)=(X-\alpha_1)(X-\alpha_2)\cdot....\cdot(X-\alpha_n)$ with pairwise distinct $\alpha_i$ and $\alpha=\alpha_i$ for one $i$.  Then $f_{\alpha,\beta}(X)=(X-\alpha_1)(X-\alpha_2)\cdot....\cdot(X-\alpha_n)\cdot(X-\beta)$ is a separable polynomial with $f_{\alpha,\beta}(\beta)=0$, hence $\beta$ is also separable. The conclusion follows because then $K(\alpha,\beta)$ is separable, since it's generated by separable elements.    Can someone go through it? I also have some questions about the proof:   Our definition of a separable element $\alpha$ is: the minimal polynomial of $\alpha$ is separable. In the proof above I used that $\alpha$ is separable because there exists a polynomial $f$ with $f(\alpha)=0$. Are these two characterizations equivalent?   $(\Leftarrow)$ If $f$ is separable with $f(\alpha)=0$ then $m_\alpha\cdot g=f$, hence $m_\alpha$ can't have a multiple zero, because of the degrees.  But how does the other direction work?   The polynomial $f$ in the proof: is it already the minimal polynomial of $\beta$? If yes, why?   Thanks a lot!

I have problems to prove the following statement.     Let $K$ be a field and let $K(u,v)$ be an algebraic extension of $K$. If $u$ is separable over $K$ then $K(u,v)$ is a simple extension.   (My incomplete) proof: We can suppose that $char K=p$, because in characteristic $0$ all finite  extensions are simple. Let's divide the problem in $3$ cases (the third is problematic):  1) $v$ is separable. In this case $K(u,v)$ is a separable extension of $K$ and so it is simple.    2) $v$ is purely inseparable. We prove that $K(u,v)=K(u+v)$; by definition exists $m\in\mathbb N$ such that $v^{p^m}\in K$, so $(u+v)^{p^m}=u^{p^m}+v^{p^m}\in K(u^{p^m})$. So $K(u^{p^m})\subseteq K(u+v)$, but $u$ is separable on $K$ and follows that $K(u^{p^m})=K(u)$. Moreover $v=(u+v)-u\in K(u+v)$ and we can conclude that $K(u+v)=K(u,v)$.  3) $v$ is neither separable nor purely inseparable. ???    I would appreciate any hint about the point 3), but also a more organic proof without any subdivision.  Thanks in advance.


Is there a way that we can find an optimum tree (highly accurate) from a random forest?   The purpose is to run some samples manually through the optimum tree and see how the tree classify the given sample.   I am using Scikit-learn for data analysis and my model has ~100 trees. Is it possible to find out an optimum tree and run some samples manually?  Thanks

I am using scikit learn  to build a Random Forest classifier.  I have heard that it might be possible to build a single decision tree from a Random  Forest. The suggestion  is that although the decision tree may not be as good a classifier as the Random Forest it may be better than the decision tree you would get by using the standard method.  However I haven't been able to find this method online. Does it exist?     My question is not about extracting one  of the decision trees from a Random Forest. It is asking about a method to construct a new decision tree from the whole Random Forest, perhaps by combining the trees in the Random Forest somehow.


(1) What argument <arg> do I supply to \ltx@ifpackageloaded{<arg>} to specifically catch french babel? (2) Would you mind compiling the MWE with \usepackage{siunitx} commented out. If it produces compiler error ! Undefined control sequence.<argument> \text{loaded} ...eLoaded[babel]+: \myIsPackageLoaded[babel] as it does for me, I would like to know why?!     \documentclass{minimal} %RN. 10Aug16. MWE_17_04 \usepackage{ltxcmds} \usepackage[frenchb,english]{babel} %\usepackage{siunitx} \usepackage{MyUtilities} \begin{document} \verb+\myIsPackageLoaded[babel]+: \myIsPackageLoaded[babel]  \verb+\myIsPackageLoaded[frenchb]+: \myIsPackageLoaded[frenchb]  \verb+\myIsPackageLoaded[french-babel]+: \myIsPackageLoaded[french-babel]      \end{document}  \ProvidesPackage{MyUtilities} %\usepackage{expl3} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand\myIsPackageLoaded{O{}}{\myIsPackageLoaded_Main:nn {#1}}  \cs_new:Npn \myIsPackageLoaded_Main:nn #1   {     \ltx@ifpackageloaded{#1}{\text{loaded}}{\text{not~loaded}}   } \ExplSyntaxOff

[french]{babel} (aka frenchb) is incompatible with some other packages, such as tikz, since it tries to insert \thinspace before semi-colons.  In order to make these two play nice, you have to call \shorthandoff{;} in the document.  Now I have a package that uses tikz and I would like to locally disable the semi-colon for babel, instead of disabling it for the whole document. I could hack the .sty of the package to do that, knowing that I'm using frenchb, but I would rather make something clean and portable.  Is there a way in my package that I can test if frenchb is loaded and disable semi-colon management with babel locally, so the package doesn't have to be hacked?  Edit:  Martin's solution gives me something like this in general:  \RequirePackage{ifthen} \newcommand{\@babel@loaded}{0} \AtBeginDocument{\@ifpackageloaded{babel}                                                    {\renewcommand{\@babel@loaded}{1}}                                                         {\renewcommand{\@babel@loaded}{0}}                                                       } \newcommand{\somecommandusingsemicolon}{   \ifthenelse{\@babel@loaded=1}{\shorthandoff{;}}{}     % code with semi-colon here }   and in the specific case of tikz:  \AtBeginDocument{\@ifpackageloaded{babel}   {%     \g@addto@macro\tikz@installcommands{%       \shorthandoff{;}%     }     \g@addto@macro\tikz@uninstallcommands{%       \shorthandon{;}%     }   }   {\relax} }


I would like to change the symbolic permission[lrwxrwxrwx] to 755. I've used the command to try and change the permissions and it's not working.  $ chmod -R 755 symbolic link folder

I have access to a remote Linux machine where every time I create a symbolic link, it is created by default with the following permissions: lrwxrwxrwx  If I try to change the permissions of the symbolic link (i.e. not the path that it points to) using for example:  chmod g-w my_symbolic_link   chmod runs correctly (no error message is printed) but when I check the permissions again, they are still the same (lrwxrwxrwx).  I am waiting to hear from the machine administrator, but I was wondering if this is normal behavior, or if it is something specific to the box.


In Geometry Dash Lite on mobile, I made alot of progress, but I am planning to buy the full version. Will my data stay?

I currently have the Geometry Dash lite version and I want to buy the full version. Can I login with my account of Geometry Dash lite and keep everything I already had? It would suck if I had to redo everything.


The problem is as follows:     How many ways are there to pick $6$ of the first $20$ positive integers such that no $2$ of them are consecutive?   At first glance, this seems like a fairly straightforward combinatorics problem, but after trying it (and failing) I decided it isn't as easy as it looks.   My method was to find the number of ways you can choose $6$ integers such that there does exist consecutive integers, then subtract that from the total number of possibilities (${20 \choose  6}$ )   The first thing I did was to take all the possibilities for pairs of consecutive integers (there are $19$ of them, starting $(1,2),(2,3),(3,4),\dots,(19,20)$). There are $\binom{18}{4}$ ways to pick the remaining $4$ integers, hence there are a total of   $$19\times \binom{18}{4}=58140$$ possibilites. However, this number is greater than the total number of possibilities (which is $38760$). What am I doing wrong?

During self-study, I ran across the question of how many ways six numbers can be chosen from the numbers 1 - 49 without replacement, stipulating that no two of the numbers be consecutive.  I can obtain a simple lower bound by saying that, in the worst-case scenario, when you choose a particular number, there are now three numbers that cannot be chosen next.  For example, if I first pick 17, then I can't choose 16, 17, or 18 for the remaining choices.  This gives me the lower bound  $$\frac{49*46*43*40*37*34}{6!} = 6,773,770 \frac{8}{9}$$  This is about 48% of ${}_{49}C_6 =  13,983,816$.  The real answer must be bigger (and an integer).  I haven't found a way to calculate it, though.  The original problem asked to show that the probability of having non-consecutive integers when you choose six is greater than 50%, so if the problem is complicated to count exactly, better approximations that show the answer is above 50% would also be appreciated.   Of course, I can use a computer to do the counting, but I'm interested in learning what methods I'm missing.


Find Largest Integer values of $a$  for which $\displaystyle \lim_{x\rightarrow 1}\Bigg(\frac{-ax+\sin (x-1)+a}{x+\sin (x-1)-1}\Bigg)^{\frac{1-x}{1-\sqrt{x}}} = \frac{1}{4}\;,$ is   $\bf{My\; Solution::}$ We can write the above Limit as $\displaystyle \lim_{x\rightarrow 1}\Bigg(\frac{-a(x-1)+\sin(x-1)}{(x-1)+\sin(x-1)}\Bigg)^{1+\sqrt{x}} = \frac{1}{4}$  So $\displaystyle \lim_{x\rightarrow 1}\Bigg(\frac{-a+\frac{\sin(x-1)}{x-1}}{1+\frac{\sin (x-1)}{x-1}}\Bigg)^2 = \frac{1}{4}\Rightarrow \bigg(\frac{-a+1}{2}\bigg)^2 = \bigg(\frac{1}{2}\bigg)^2$  So We get $\displaystyle (-a+1) = \pm 1\Rightarrow a = 0$ or $a=2$  But answer given as $a = 0$ and I did not understand why it can not be $a = 2$  Please explain the reasoning behind it, Thanks

The following is a JEE (A national level entrance test) question:  Find the largest value of the non-negative integer ( a ) for which:  $$ \displaystyle \lim_{x \to 1} \left( \dfrac{-ax + \sin(x-1) + a} { x + \sin(x-1) -1 } \right)^{\dfrac{1-x}{1-\sqrt x} } = \dfrac 1 4 $$  On solving this, we get $ a = 0 $ or $ a = 2 $. So we take the answer as $ 2 $. But the official answer key says that the answer is $ 0 $. The reason given (not in the official key - they simple contain the answer. I saw the reason in an "unofficial" solution to the question paper) is that if $ a = 2 $, then the term $\displaystyle \dfrac{-ax + \sin(x-1) + a} { x + \sin(x-1) -1 } $ tends to a negative value ( $-0.5$ ). So $ a = 0$.  BUT:  By putting $a = 2$ in the limit, and inputting that to wolframalpha (), the answer turns out to be $0.25$. So, by putting $ a = 2$ also, we get the same value of the limit - $0.25$.  How to solve this dispute? Also, could you please check with Mathematica? Unfortunately, I don't have access to it!  (This is very important as the change in the answer key will affect the rankings in a dramatic way)


Steam will not run. Every time I try to start it it immediately crashes. I tried to launch it from the terminal and I got this message. Can anyone help?  caden@Ubuntu-16-Machine:~$ steam Running Steam on ubuntu 16.10 64-bit STEAM_RUNTIME is enabled automatically /bin/bash: /home/caden/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash) grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc Installing breakpad exception handler for appid(steam)/version(1476379980) libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast

I'm using latest Ubuntu GNOME. When I download the steam-installer though software it works, after that nothing happens no update and it won't launch.  Here is the error message I get when I try to launch steam in a terminal:  $ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically  grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc Installing breakpad exception handler for appid(steam)/version(1461972496) libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast


Heres a picture. im making a body, and it seems to have flash in the middle.

So I was doing a fairly simple model of a Glock hand gun. I had already applied a mirror modifier to the model, that I had so far (which was the grip). Then I applied the subdivision surface modifier. At the point where the mirrored part of the model and the "real" part of the model met it collapsed inside of itself. Bellow will be a picture of the model. I would really appreciate it if someone could tell me how to fix this so I can get back to working on my model. Also the picture is the bottom part of the grip, it may looks like two smaller grips, they are supposed to form one. But like I said it collapsed in on itself.  Thanks, Nova


I'm looking for the person who has the key of the room, and I have a doubt how to ask it (with who or whom)     *"Who does have the key of the room"   or      "whom does have the key of the room?"

This is the boy who was asked by the teacher to stay back after school. This is the boy whom the teacher asked to stay back after school. This is the boy the teacher asked to stay back after school.   Are the sentences above correct ?


I have two programs foo.sh and bar.sh both of which contain infite loops, produce continuous Output and should run in parallel. I would like to pipe the output of both those programs to a third program consumer.    Initially I only had foo.sh running and the piping was easy via  ./foo.sh | ./consumer   But now I would like to add bar.sh to also send its output to consumer.  I have tried the things suggested in those answers (, ) but they only seem to work for programs where one ends and the next gets started after the first one ends. I need them both to run in parallel.  This does not work, as it only pipes the output of foo.sh and never starts bar.sh:  ( ./foo.sh ; ./bar.sh ) | ./consumer   This lucky guess gave me a syntax error:    ( ./foo.sh & ; ./bar.sh & ) | ./consumer

Is it possible to combine output from these two commands?  node ~/projects/trunk/index.js  python ~/projects/trunk/run.py run   Neither command exits so I'm not sure how to do this.


In the election nomination page, the image uploader section have the old UI. The close icon on the page is not responding, so unable to close the uploader page. Screenshot for reference:    Configuration: Operating System: Windows 10 Zoom: 100% Mozila Firefox : 80.0.1 (64-bit) Google Chrome : Version 85.0.4183.102 (Official Build) (64-bit)

When editing a profile’s “About me” section, or a tag wiki, and hitting CtrlG, or clicking the “Image” button from the formatting bar to insert an image, the Imgur upload modal dialog will appear. The same modal will also appear when uploading a profile picture. This is different from questions and answers where an uploader overlay bar (technically referred to as inline-dialog) appears. This modal dialog has an × button for closing, but it does nothing when clicked. I also can’t try tabbing to it and hit Enter, because it’s a regular <div> with no tabindex attribute, so it’s not tabbable and not an interactive element. (After manually inserting a tabindex and pressing Enter, it also did nothing, of course.)  There are no errors produced in the console of any browser. It doesn’t even seem to have any event listener bound to it. Pressing the Esc key or clicking outside of the modal dialog will dismiss the dialog, but the × button is currently useless. An obvious possible  would be to unify all Imgur upload dialogs to the way they appear on questions and answers, as an inline-dialog. But for the profile picture uploader, this dialog doesn’t have an obvious alternative, so in this instance, it’s necessary to redesign the close button so that it acts as a normal button (interactive element, tabbable) and closes the modal popup.  Related   and  — showing this modal in action; closing it used to work.  — for an older dialog design.


Is there a way to understand a behaviour whether it's undefined-unspecified-implementation defined?   If we can't know, how can I avoid using these statements?  Also, if there is a source that I can find these kind of common UB's can you share?

What are all the common undefined behaviours that a C++ programmer should know about?  Say, like:  a[i] = i++;


This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables,  Objective function and Constraints for this?  My Opinions: Decision variables:  $M_1$- # of  Model 1 to be produced  $M_2$ and $M_3$ (similar definition to $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subcontractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints:  $3M_1+1.5M_2+2M_3 \geq 0$  $1.25M_1+2.5M_2+0.75M_3 \geq 0$  $M_1,M_2,M_3 \geq 0$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track?

This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables, Objective function and Constraints for this?  My Opinions: Decision variables: $M_1$- # of Model $1$ to be produced $M_2$ and $M_3$(similar definition as $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subtractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints: $3M_1+1.5M_2+2M_3\ge0$  $1.25M_1+2.5M_2+0.75M_3\ge8500$  $M_1,M_2,M_3\ge 5500$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track?


Hello, I want to create something like this image does, in cycles. Does anyone know how to make procedural broken glass that can look like this ? I am looking for a way to not have the random voronoi cracks. Thanks!

I am looking for old looking cracked glass for a window in a shack scene. I have looked everywhere but can find a tutorial or material or model on this please can someone help me on this thanks


Ok so, I have money in my american bank account. I send it through  western union to my mexican bank account. Then I go buy dollars at an exchange house. I do this to make a couple hundred dollars every time I do this, just as an extra money. I travel to USA almost every week carrying no more than $4,000 dollars every time. Every time I go into USA I get asked how much money I have on me, I allways tell them with no problem whether I have 2, 3, or 4 thousand. Yesterday, they took me into revision, asked me a lot of questions and made me fill in a Fincen 105 form which I read that it’s designed to declare more than 10,000 usd. I filled it in for the ammount of $3592. So, the officers never answered my question: How often can I bring $10,000 or less without having to report it? Is it every week?, is it every month? Is if every time I get into the USA regardless if I go in every day? I felt that they made me fill that form that by law I was not required to do so. Can some one give me an answer? Thank you.

Suppose one has $1,000,000 in a suitcase and they are flying to the US. Suppose they check the box in their customs form that says they're bringing more than $10,000 with them. They show the form to the CBP agent. What happens next?


How to identify the tables needs to de-fragmented by doing a VACCUMM Full or ReIndex (for indexes) Is there any query to find the free space in between the tuples to find the right candidates to perform the VACCUUM FULL

Is there a way to determine in advance how much disk space a VACUUM FULL on a particular table would return to the OS? Therefore you can decide whether it's worth the cost in doing so. Bonus if there's a simple query to do this for every table in a database/server (rather than doing each one separately).


This is a classic problem, but I haven't seen it on the site before.     Suppose $x$ and $y$ are real numbers that both lie in the interval   $(0,1)$. Prove  $$x^y+y^x>1.$$   The following spoiler box contains a hint that indicates the solution I know. Does anyone know a more natural solution?       Use Bernoulli's inequality to show $$x^y\ge \frac{x}{x+y}.$$   Edit: I recently learned the source is the 1996 French math olympiad.

Prove that $x^y+y^x>1$ for all $(x, y)\in \mathbb{R_+^2}$.


I'm sorry if this questions was asked before! When i wanted to delete a folder it gave me the error "You'll need to provide admin permission to delete this folder" and i was pretty confused cause i am the only owner.   So i went to Control Panel>add or remove acconts and I saw that there was my account, and and admin account called administrator that i made it by mistake and i can't delete it! i can't change my account type. what should i do??

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.


In some games (Tekken 3 on emulator for example) I need to press multiple keys at the same time. But other that ctrl, alt and shift no other keys seem to work together.   For example Down arrow + num 1 + num 3 does not work.    Is there any software to solve that problem?

Whenever I play a PC game with the directional keys, I can only press two buttons at a time.  For instance if I am playing a shooter like R-Type, I cannot hold down the fire button while moving diagonally at the same time.  The computer simply ignores the extra button press.  How do I remove this limit so I can shoot while moving diagonally?  This limitation seems to apply for every game.  I am running Windows 7 if it makes any difference.  I noticed the same problem back when I used Windows XP.


If one do his assigned work always, and correctly. is there any single word for this habit?

It would be similar to trying to be extremely careful or precise.   In French it would be "application", For example: "Qui est fait avec application".   Example usage:      John worked with ________. or ...it was done with _______.


This might seem a bit weird, but why can only women produce milk? Wouldn't it be more beneficial to our species if all humans could produce it? I can't think of any reason only one gender would need it, unless it would somehow be harmful to men.  I know that men can secrete milk in some cases, but why not in general?

In course of evolution (possibly), mammary glands became vestigial in male mammals, but became fully developed in females. Is there any plausible explanation for this characteristic?


Every visualization of an electromagnetic wave is essentially some variation of this picture:    In every one of these graphs, both the electric and magnetic components are shown as being sine waves with the same phase angle. However, it is just as frequently stated that the amplitude of a magnetic field is related to the derivative of the electric field at any given point in space and/or time. Shouldn’t it follow, then, that the magnitude of any given point along the magnetic wave should peak when the corresponding point along the electric wave is at 0? In other words, if the electric component of an EM wave were a sine wave (with no phase angle), shouldn’t the magnetic component be a cosine wave (also with no phase angle)?

As I have read that "time varying electric field is source of changing magnetic field and time varying magnetic field is source of changing electric field "  Hence, I have the following doubt : If time varying nature of one field originates other changing field. Then, why are they in phase?  One is changing and producing the second thing hence second must depend upon first's derivative, I. e. If one is sine then second will be cosine Hence a phase difference of pi/2 and not in phase. Where am I wrong?


I am using a Broadband connection which provides me greater speed with Limited usage as 2.5 GB per Month.   I want some application which can help me by counting my data up/down volumes everyday , so that I can control my usage & stop getting extra bill for over usage.  is there any application like that ?

I was wondering if there are any good applications to monitor how much data I use on my laptop in a month. My net connection has a restriction of how much data I can use after which the speed goes down considerably. I saw ntop, but I just wanted to ask if there are any other good options or suggestions regarding this. Regards.


I want to install Ubuntu Mate on my laptop which already has Windows 7. I want to ask how do I install Ubuntu so that Data of my other Hard Drive partitions like D:\, E:\ remain safe? I really want to switch to Linux environment. Can anybody help?

I would like to see a full how-to guide on how to install Ubuntu.


I've just started recieving the following error on my WP site, when I publish a page update:  Missing argument 2 for wpdb::prepare(), called in /home/greenfin/public_html/wp-content/plugins/auto-image-field/auto-image-field.php on line 98 and defined in/home/greenfin/public_html/wp-includes/wp-db.php on line 992  The page still publishes correctly but I have to back/forward out of the error screen to see anything. I'm concerned it may cause ongoing issues. Any ideas on how to update?

I am receiving this warning when I try to run a database query:     Warning: Missing argument 2 for wpdb::prepare()   The offending query is:  $result = $wpdb->get_var(     $wpdb->prepare(         "SELECT DISTINCT meta_value FROM $metatable         WHERE meta_key LIKE '%matchme%'         AND meta_value IS NOT NULL         AND meta_value <> ''"      ) );   Is there a way to remove the error by modifying the above query?


I am a student working on a construction method for under sampled images. I am looking for a group of text books, papers, or web sites that would give me further understanding on how digital cameras apply gain before a raw image is output. More specifically is the Max and Min number of photons collected on the set of sensors used to define a Gain factor and how does this affect the dynamic range.  My current concerns are that these max and min values are used causing an issue with under sampled data as a max or min value might not have been sensed. Any references would be greatly appreciated in furthering my understanding of what current day recreational digital cameras are doing before outputting a lossless image format.  -Colin

If I change the ISO settings on my camera, obviously the gain of the system is increased, amplifying the signal from the sensor. What's not clear to me is where the amplification takes place. I see several possibilities:   In the sensor, by increasing voltage or some other mechanism Via an analog amplifier outside of the sensor Digitally, after the signal has been digitized, but before storing data in the RAW file As a parameter applied solely in creating an image from RAW   If #4 is true, then you could take a 4-stop overexposed RAW picture at ISO 1600, and then in post processing produce a JPEG at ISO 100 that would be the same as if the original photo had been shot at ISO 100.  If #1 or #2 is true, then a RAW file shot at ISO 1600 would actually contain more information about shadows, and an ISO 100 RAW would contain more information about highlights.