How can I copy  tag code into clipboard in HTML?

I'm trying to copy the code written inside a
 tag into the clipboard. How can I do that? I have tried to solve this problem using the code below:   function myFunction() {   var copyText = document.getElementById("myInput");   copyText.select();   document.execCommand("Copy");   alert("Copied the text: " + copyText.value); }
   class first     {         public static  void  main(String args[]) // here S is capital of String word         {             System.out.println("Hello World!!"); // here S is capital of System word         }     }
    Give me the proper solution to copy code from pre tag into clipboard without including span tags.


Please explain how Richardson Extrapolation is used in this example

I am having a hard time understanding what on earth Richardson Extrapolation is trying to do.    Consider the example of approximating $\pi$ by inscribing regular polygons in a unit circle.  The perimeter of a regular $n$-gon is $2n\sin \bigl(\dfrac{\pi}{n} \bigl)$, whereas the circumference of a unit circle is $2\pi$, so that $2n\sin \bigl(\dfrac{\pi}{n} \bigl) \approx 2\pi \implies n\sin \bigl(\dfrac{\pi}{n} \bigl) \approx \pi$. So let $c_n = n\sin \bigl(\dfrac{\pi}{n} \bigl)$.  If we put $n=\dfrac 1h$, then  $$c_n=\frac 1h \sin (\pi h)=\pi - \frac{\pi^3h^2}{6}+\frac{\pi^5h^4}{120}+\cdots$$  With a bit of trigonometric manipulations, we get the recurrence relation  $$c_{2n} = 2n\sin \biggl (\frac{\pi}{2n} \biggl)=2n\sqrt{\frac 12 \biggl(1-\sqrt{1-\Bigl(\frac {c_n}{n}\Bigl)^2}\biggl)}$$  so $c_2=2$, $c_4=2.8284$, $c_8 = 3.0615$, $c_{16} = 3.1214$ and so on.  I still understand what is happening up to here, but then it suddenly says, without any explanation,     Extrapolating between $c_4$ and $c_8$, we get $c_4^{(2)}=3.1391$; and between $c_8$ and $c_{16}$, we get $c_8^{(2)}=3.1214$.   Can anyone explain to me why we get these numbers?    Apparently, there is the formula  $$T_h^ {(2)} = \frac{4T_{h/2}-T_h}{3}$$  where $T_h$ is an approximation to $T$, and $T_h^{(2)}$ is a "more accurate formula".  But plugging in the numbers doesn't seem to work:  $$c_4^{(2)}=\frac{4c_2-c_4}{3}=\frac{4(2)-(2.8284)}{3}=1.7239 \neq 3.1391$$


Word, elegant phrase or slang to describe doing something merely to pass the criteria?

For example: He's been punished to clean the floor but he just quickly skimmed it with a broom, with no actual care to how much cleaner the floor would become, and said he's done.  What did he do? - He _______ed it / he was ______ing it or: How did he perform this task? - ______ly or: "Clean the floor but don't just ________ it, make me proud!"  I have a few words in my mind but I don't think they fit what I mean or my style of expression: half-ass, skim, slacking...  Much obliged!


Random mobile app icon generation algorithms

What is a suitable algorithm that can be used to generate random, but likely humanly distinguishable, graphic square icons?  Icons, from 57x57 up to 1024 square, such as used for mobile apps, preferably using something like Core Graphics commands/operations? (or an equivalent)  I tried filling square bitmaps with rand(), but they all look like mud, very hard to distinguish between by sight.


All references to the FAQ in close reasons should be changed to Help Center links

Close reasons still have links to the FAQ in them - these should be referred to as the Help Center, since that's what it is now.   Not Constructive (emphasis obviously mine)     We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.  Off Topic (ditto)     Questions on Stack Overflow are expected to relate to programming or software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope.  Too Localized (...)     This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.  Not A Real Question (...)     It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.    All of these should be changed to "see this Help Center topic" (or similar). Since, y'know, it's the Help Center, now, not the FAQ.


How can i load a level in my gameengine wich is larger than 2GB? C#

i were asking myself how could i load a large Level? My gameengine is written in C# and is rendering with Direct3D11. I just have my class called "Scenery" and the class is able to store all objects in a level (sceneryObject) with their components and features. My engine loads the serialized scenery, but i know that the maximal size of a .net object is 2gb. So how could my Scenery class load bigger levels? The .Scenery class contains a List with all the objects, and the Assets are included within the sceneryClass. Do you thinkthe Scenery class should not include the Assets, and they should be stored extern?  Maybe somebody have a suggestion :)  Best Regards and thanks in advance!


Upgrade to 18.04 from 16.04 still not available?

It's my understanding that upgrades from Ubuntu 16 to Ubuntu 18 should be enabled after the 18.04.1 release. According to , this release came out on July 26.  I am running Ubuntu 16.04.5. I've run  sudo apt update sudo apt upgrade sudo apt dist-upgrade   Then, I try to run  sudo do-release-upgrade   However, this fails. The output is:  Checking for a new Ubuntu release No new release found.   Can anyone explain next steps? I've been browsing recent questions, and it seems that others have managed the upgrade. I'll be happy to post other relevant system info if needed.  This is not a duplicate of the , because the upgrade is actually available now. Anyway, I have written my own answer to the question already.


GeoTIFF created using ArcGIS for Desktop not displaying in Google Earth or Photoshop?

I originally had an IMAGINE Land Cover raster file that I opened in ArcMap.   I used the Extract Feature from Raster to extract only the Developed class and saved it (still IMAGINE).   Then I used the Copy Raster to convert the IMAGINE to GeoTIFF, but when I try to view the GeoTiff in Google Earth or Photoshop, it doesn't display anything.   However, in ENVI, it displayed successfully.   What am I doing wrong?


Does a 35mm DX lens, mounted on a crop body, have the same field of view as a 35mm FX lens mounted on a full frame camera?

I know that when you use lenses made for full frame cameras on a APS-C camera, you should calculate the crop factor. E.g., a 35mm lens designed for a full frame camera mounted on a APS-C body should give a field of view as if you used a 50mm lens on a full frame camera.  But there are lenses designed for APS-C cameras. For example, the AF-S DX Nikkor 35mm f/1.8G. When I was reading reviews, everywhere they mentioned that this lens is equivalent to a 50mm lens used on a full frame camera.  I am confused here, because this lens is made for a crop camera. And I think that when I am shooting a 35mm lens, I will actually get a 35mm field of view.  Let's say it otherwise: Does a 35mm DX lens mounted on a APS-C camera have the same field of view as a 35mm lens (made for full frame) mounted on a full frame camera?  Edit: Sorry for my grammar but my English is not native, and I am not so fluent with it. Basicaly my question is the following:  If I am shooting with my crop camera with a lens build for crop camera on it at 35 mm focal lenght, should I have same picture result as if Someone is shooting with Full-frame camera packed with full frame lens at same focal lenght of 35mm  This confusion became to me, as I was reading a lot of reviews for a lenses build for crop camera, where they keep saying that if I use lens for crop camera on a crop camera, I have to keep on mind that it is equivalent of shooting with 50mm lens (full frame lens) on a full frame body.


use of forcefully calling Garbage collection method

As i read, the GC method will be called automatically during run time and all the unused object's memory will be deallocated. If everything is done by automatically then what is the use of forcefully calling GC() method.


In LyX, how to have itemize inside a proof?

LyX is great. I use it to write everyday documents. But it seems that its environment can only have one type; different types of environments can't be mixed. For example, you can't have itemize inside a proof. If you try, either you lose the itemize, or the itemize part become outside of the proof. Can I have itemize inside proofs? You need this when making case distinctions.


What do we mean by derivative of a function? What does it tell?

Taking the derivative of any kind of function is easy but I don't know why we take the derivative? Like     $f(x)=x^2$   has the derivative   $2x$,   so what does it mean? I don't know how to define dy/dx? Understanding derivative and Integral in terms of physics becomes hard. Like [here]: () edit: I don't think it's a duplicate of other question. I've studied Derivative and Integral in maths but when it comes to physics it needs to have concept in our mind. Like this


How to get all user manager hirarchy in user SOQL ? or any other way?

I have more than 50000 users in org. This is hitting limit now.   I want to get all the user managers   Ex:    A user    B is manager for A    C is manager for B    and so on..    There are more than 5 levels Now I want to get A,B,C,D.. user IDs  I checked with Manager.ID,Manager.Manager.ID but i can;t go more than 5.  Is that possible ? any other workaround. ?


How to fix Bluetooth "Connection" switch greyed out?

I am not able to connect to any Bluetooth device.   The below "Connection" switch is greyed out for any kind of Bluetooth device. All of them work in connection with my Android device (i.e. the devices are not broken).    Output of lspci -knn | grep Net -A2; lsusb:  00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)     Subsystem: Lenovo Device [17aa:21f3]     Kernel driver in use: e1000e -- 03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)     Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN [8086:1311]     Kernel driver in use: iwlwifi Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 005: ID 04f2:b2ea Chicony Electronics Co., Ltd Integrated Camera [ThinkPad] Bus 003 Device 007: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad] Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   I can search for new bluetooth devices. Therefore, I don't think that it's a firmware-related issue.


Given $x$, $\sin(x) \in \mathbb{Q}$, where $x$ is in degrees, we want to find all $x$ in the range $(0,90)$.  One trivial solution is $x=30$.


I decided to make Dual-Boot. I have 120Gb SSD and 500Gb HDD. Windows 10 is in SSD and I allocated HHD in two 250Gb partitions. So I installed Linux in that 250Gb partition.   EasyBCD: EasyBDC tells me that it can't add new entry of boot option because of UEFI system.  BIOS boot option: If i want to go to linux I have manually change boot-able drive, in my case HDD. In GRUB 2 menu there is no Windows option.  So my question is how can I add Windows 10 to grub2 menu or how can I add Linux to Windows 10 efi boot?


I fixed a bug in code and 3 people marked my edit as rejected

With the code prior to my edit, "new Date("xx").toISOString()" produces "NaN-NaN-NaNTNaN:NaN:NaN.NZ"  That's clearly never the desire behavior. The behavior of a shim should be to mimic the native functions behavior.  Does anyone know why this edit was rejected?  edit: While I'm asking,  clearly fixed syntax errors in the code but was also rejected...


Why are my books not exported when I save my Careers profile as PDF?


Consider the following problem: Two people $M$ and $T$ walk over a straight line. The steps they take depend on flipping a coin: They move to the left if the result is head and they move to the right if the result is tail. Person $M$ stops after two consecutive steps to the left. Person $T$ stops after one steps to the left and inmediatly after one step to the right. Find the expected value of steps each person takes before stoping. I honestly have know idea how to begin solving the exercise. Any help is more than welcome.


Honey changing into unusable, hardened clump

I buy raw, unfiltered honey from the grocery store in jars sold/packed directly by the farmer. When I had used the last jar to about half, I noticed the honey beginning to dry(crystalize?) to the point where I couldn't use the honey around these spots.  Not too long after this, the entire jar had crystallized into a block of unusable hard stuff.   I didn't do anything differently with this jar than the last jar, but only now am I having the issue. My question(s):   Why is the honey crystallizing, and why so rapidly?   1) Is the honey unusable at this point?  2) Should I store the honey differently after purchasing it(move from jar to other container)?  3) I've never seen this happen to the filtered, strained(fake) honey from the store, so what causes this to happen in the raw and unfiltered form?


Does provide need the preposition with, or is it truly ditransitive?        Kindly provide us with your best quotation   Kindly provide us your best quotation.   He provided directions.   He provided us directions.   He provided us with directions.


I invested in the stock NYSE:CC but it has been dropping for no reason. I am thinking it may be because of Trump's ban on foreign investment but doesn't that only apply to tech companies? This is a chemical company. The price dropped by 4% yesterday and hasn't rebounded. Should I be concerned?


Going to Pakistan in 3 weeks time but my NICOP is expired and my son's hasn't arrived yet

My NICOP is expired and I have already booked a flight to Pakistan via Qatar Airways. My wife has a valid NICOP card but my 5 years old child  has never had a NICOP or any other Pakistani ID card other than the British passport. I have made an appointment for next Monday to renew my NICOP and apply for my child's new NICOP card. My question is, what if the cards of my child and mine don't arrive in time, can we still travel to Pakistan, given that we have the receipts as a proof of application?


How frequently can you ask for a personal reference without being disrespectful?

When applying for post-doctoral and faculty positions you are typically asked for three (sometimes more) reference letters to support your application.    Given that it is competitive out there, it also makes sense to apply for all positions that are good matches to your qualifications and career development goals (in the case of post-docs).  Sometimes this may mean asking for several reference letters (or pre-application "can you support me if required?" requests) in a short space of time.  Also, there may only be a small pool of people (i.e. 3 or 4) who know your work sufficiently well to give an excellent reference.  I have also been told that referees want to help you out, and that there is no reason to fear asking them.  And, that in many cases once a letter is written it can typically be quickly repurposed.  But there must be a breaking point.  How do I manage this without being disrespectful?  How many requests in a given unit of time is too many, or harms my credibility?   I am asking this question in this forum, as I am interested in the norms in the academic world, which are often somewhat different than the rest of the working world.


Should I respond to editors about unprofessional review?

I think I am in a very similar situation to  question, with the exception that my submission has been refused.  I do not want to start a flame, but to me, one of the two reviewers didn't took the necessary time to do a proper review.  The first reviewer made a thorough summary of the paper, and explained in an extremely clear way what were his/her doubts and which parts were not strong enough. The second one looked like a baby plugging his hears and screaming "".  He only attempted to make a point that resulted to be wrong since he was substantially criticizing how an algorithm works (Random Forests), even though it's empirically demonstrated to be effective.  Now, based on the constructive critiques of the first reviewer I refined the manuscript and attempting to submit to another journal. What I can't stand is the behaviour of the second reviewer.  Generally speaking, is the idea to respond to the editor about the bad (where bad is like in the linked question) review(er) a viable action, or should I just ignore all of this and go on?


Purpose of this IRepository class signature

I am attempting to follow the repository pattern described .   Can someone please shed some light on what this really means, and what the benefits of it are? The      <TEntity> where TEntity : class, IEntity   part of the classes signature  public interface IRepository<TEntity> where TEntity : class, IEntity {     TEntity Get(int id);      int Save(TEntity entity);      void Delete(TEntity entity);         }   I do not see any noticeable effect in my implementation of IRepository:   public class AppUserRepository : Repository, IRepository<AppUser> {     public void Delete(AppUser entity)     {         using ( var context = new SourceEntities())         {             context.AppUsers.Attach(entity);             context.AppUsers.Remove(entity);             context.SaveChanges();         }     }      public AppUser Get(int id)     {         using (var context = new SourceEntities())         {             return context.AppUsers.Where(x => x.Id == id).SingleOrDefault();         }     }      public int Save(AppUser entity)     {         using (var context = new SourceEntities())         {             if ( entity.Id == 0 )             {                 // this is a new record                 context.AppUsers.Add(entity);             }             else             {                 // existing record                 context.AppUsers.Attach(entity);                 context.Entry(entity).State = EntityState.Modified;             }              // save the record             context.SaveChanges();              return entity.Id;         }     } }


Subtracting even and odd binomial coefficients?

What number do I get if I subtract the binomial coefficients $n\choose k$ with an even $k$ from those with an odd $k$, where $n$ is fixed? Am I supposed to subtract a binomial coefficient with an even $k$ from one with an odd $k$ and say what the number you would get or how exactly does this work?


For a startup company I thought of going with Ubuntu operating system for 200 desktops. To reduce cost to the company I don't want to rely on Microsoft.  Can I go ahead and install Ubuntu 18.04.3 LTS for all my employees and run my office? I don't want to encounter any legal issues.


What is the difference between URI, URL and URN?

What's the difference between an URI, URL and URN? I have read a lot of sites (even Wikipedia) but I don't understand it.  URI:  URL:  URN: bar.html  Is this correct?


Why does Ubuntu not ship with a way to fill in PDF forms?  I am not asking how to fill the forms.  I am asking why there is not a way to do this in the default installation.  It's basically the only thing that Ubuntu cannot do that I need my OS to do.


Java Reading From An Internal Properties file

I am trying to read a properties file from a package within my program without having to copy it to the plugin directory. I can read from a properties file which is in the plugin directory:  private String displayProperties() {     Properties props = new Properties();     InputStream is = null;      try      {         File f = new File(getDataFolder()+"/test.properties");         is = new FileInputStream(f);         props.load(is);         return props.getProperty("Test1");     }      catch (IOException e)      {         e.printStackTrace();     }      return null; }   This is all good and works BUT the user is able to edit the properties file. I have done some 'googling' and what i have found is people saying its not possible to write to a properties file in the .jar file. I am not trying to write to it, I just want to read from it.  Is this possible? and if so how can I change my code to accomplish this?  (If you know of a tutorial that would be great too)  Edit: I have now solved the problem, all I had to do was to change the input stream from file to this:  is = getClass().getResourceAsStream("test.properties");   Now it works perfectly.


In tables should date/time/year in table be left or right aligned?

I would like to know whether the date/time/year should be right or left aligned in data tables/table?   Some articles mention right align, while some left align.   Is there any standard followed similar to text and numeric data alignment?  Reference articles:


Sometime, I have the plug-and-play noise popping up randomly, but I can't find why it does that.  I was wondering if there was a way to get a log file or an event file to see everything that happened related to plug-and-play (or maybe something else, why not).  Thanks


Refusing a user permission to click a URL

I've been asked to work on a system message on an intranet where by there are various URLs (linking to lists of content) that have permission rights attached to them, so only certain users have access to the content.  Currently it's spec'ed so that if a user without permission clicks on one of these URLs a message appears which says 'You do not have Permission to view this content'.  I'm wondering is there a better way to handle this?  I was thinking of maybe disabling the links (the user has no permission for) altogether.  There are pro's/cons here.  Pro:  It will stop users clicking on said link and receiving a message which may leave them feeling stupid and maybe annoyed they don't have permission.  Con:  Maybe the user needs to/would like to be aware that this content exists (so needs to be recognizable as a URL) even if he/she cannot view it.  Anyone any ideas on this/seen any similar patterns in use?


Requires installation of untrusted packages in every installation

I am very new to Ubuntu and am pretty much using it as a refuge from Windows 10.   This being said I really have no prior knowledge in Ubuntu or anything computer related. I've had this problem for a while now, and it's almost definitely user error, I know, where I can't download anything from software center because it says the packages are untrusted (I have looked into some of the other threads that answer this question, none of them seem to work), and when I hit okay when the popup appears, the installation stops completely, so when I hit repair the popup re-opens repeatedly and it seems to install a whole lot of packages that I guess just decide to not exist.  You've probably guessed by now that I... am bad with computers. Please help


Suppose I have a function $f$ that is analytic on the unit disk $D = \{ z \in \mathbb{C} : |z| < 1 \}$ that is also continuous up to $\bar{D}$. If $f$ is identically zero on some segment of of the boundary (e.g. $\{ e^{it}, 0 \leq t \leq \pi/2 \}$ ), is it then true that $f$ is identically zero on the entire boundary?   I know that analytic functions that are zero at an accumulation point inside the domain of analyticity are identically zero throughout the entire domain, but I don't know what (if anything) can be said if something similar occurs on the boundary of the domain.


Trying to identify a 1980s sci-fi short story about a robotic spaceship that returns to Earth after being sent to fight aliens

Like the title says, I'm trying to find the name of a story I read in an anthology in the early 1980s.  It was about an AI-controlled spaceship that returns to Earth after fighting aliens in the constellation Sagittarius.  The ship is very irreverent for an AT, which I loved as a teenage reader.    I remember a slew of details  - The ship was robotic because of the distances involved.  - The ship was the only survivor of a fleet that was built and sent off to fight the aliens.  - The ship gets back to Earth and discovers that the fighting knocked it into an parallel universe where mankind stopped exploring space at the end of the Apollo program.    There's a scene where two old rockets are launched at the spaceship and the AI is appalled by how primitive they are.  And the attack causes the ship to realize that it is orbiting an alternate Earth because that is the only way to explain why it looks the same but they don't know what the ship is: their own creation.  The spaceship also determines that the alien threat exists in this universe as well and that the Earth is unaware of the danger headed its way.    Realizing that it must do something to provoke humanity to prepare for the alien onslaught the AI transmits a threat to all nations and crashes into the Earth but in a way calculated to preserve enough of itself that humanity can salvage the technology from ships remains.    It was a great yarn to me and I really liked how the jaded and snide AI ends up nobly sacrificing itself to get humanity to prepare for a looming threat.  I know it was the first story in an anthology but have long-since lost the book.  I'd love to find it and re-read to see if it's even half as good as I thought it was. Thanks.


When does priority actually matter in magic?  I have been playing Magic since Time Spiral and have never once seen the rules for priority matter.  I've never heard a question from a player about a game situation to which the answer was, "Oh, well it's right here in the rules for priority."  Let me elaborate.  Most other games handle questions of precedence (I want to do this but my opponent wants to do something conflicting) with a system of priority.  Magic handles questions of this type with the stack.  Here are some examples:    I have a 2/2 and I want to play  on it while my opponent wants to kill it with ?  Resolved by the stack.  Priority doesn't actually matter here.  It's not a question of who has the option to act first, it's about who does act first, and because the person that acts first in this situation loses, the solution (given both players run ) is for both players to pass and the game to move on to the next step or phase.  But this isn't a quirk of priority, this is that the Nash Equilibrium given perfect information and how the stack works is for neither player to cast his/her spell. I want to cast  on my opponent during his/her upkeep but he/she wants to cast  on me first.  Sure, a player get's priority on his/her turn before other players, so he/she has the option to cast a spell before I can cast Silence, but it doesn't matter!  Since this all happens during the upkeep, the spell I want to cast has to be instant speed anyways, so it can be cast in response to Silence while Silence is on the stack.  Since Silence only takes effect on resolution, what order it and another spell are cast in won't change either spell's resolution (unless the other spell is a counterspell).  In almost all situations, Silence only changes the ability for the player to cast things post-upkeep.   In all of the above situations, the stack is what determines what happens.  Players priority in putting things on the stack doesn't matter since in the above cases (and the overwhelming majority of cases I've seen), as it is the ability to react that matters, not the ability to act first.  So, given how the stack works, does priority actually matter in Magic?  If so, what types of situations are the rules for priority needed to actually determine what happens?    For reference, here are the rules for priority:        116.3. Which player has priority is determined by the following rules:         116.3a The active player receives priority at the beginning of most steps and phases, after any turn-based actions (such as drawing a card   during the draw step; see rule 703) have been dealt with and abilities   that trigger at the beginning of that phase or step have been put on   the stack. No player receives priority during the untap step. Players   usually don't get priority during the cleanup step (see rule 514.3).   116.3b The active player receives priority after a spell or ability (other than a mana ability) resolves.   116.3c If a player has priority when he or she casts a spell, activates an ability, or takes a special action, that player receives   priority afterward.   116.3d If a player has priority and chooses not to take any actions, that player passes. If any mana is in that player's mana pool, he or   she announces what mana is there. Then the next player in turn order   receives priority.      116.4. If all players pass in succession (that is, if all players pass without taking any actions in between passing), the spell or ability   on top of the stack resolves or, if the stack is empty, the phase or   step ends.


I have set some aliases in my .bashrc file and for some reason one of them does not behave as expected.  Since I don't remember the exact command assigned to that alias, I would like to see the command to find out what's wrong.  Except the obvious opening the .bashrc file to see it, is there a command that just echos the command assigned to that alias?


Entire $f$ and $g$ satisfying $f^n+g^n=1$ for $n>3$ must be constant.

Studying for a qualifying exam and came across . This one has stumped me for some time. This question is related to :  $\begin{align*}\text{If $f$ and $g$ are entire and } [f(z)]^n+[g(z)]^n=1\text{ for $n>3$ then $f,g$ are constant}. \end{align*}$  The most I could deduce is that if $f$ were not constant then $[f(z)]^n$ is necessarily surjective as missing one value for $[f(z)]^n$ would force $n$ missed values for $f$. That's about as far as I could get.


I find it much easier to use find and then grep -v in the pipe to filter files instead of developing complex regex patterns. However, when I pipe something to zmv like this:  find | grep -v TFLM | zmv "(*)" "TFLM \$1"   It just ignores the input and proceeds applying the transformation to all files. Is there a way to tell it to use pipe input? I guess I could move away the filtered out files and then use zmv, but that isn't really a solution.


Force Windows 8 to ignore EDID and output 5.1 over HDMI

I have a Windows 8 system with an nVidia 660 video card connected over HDMI to my Vizio television, which is connected via optical output to a 5.1 system.  I cannot get my computer to output 5.1 in this configuration, and I believe it's because my Vizio is reporting itself as a 2 channel device, so Windows will only output 2 channel to it.  I know if I force 5.1 on a PS3 or 360 connected to the TV, my 5.1 system receives all 5.1 channels.  How can I force Windows or my nVidia card to output 5.1? For reference, here's my sound properties pane:     My 5.1 system is actually a soundbar, and my TV has all the HDMI inputs - to save swapping cables I have to go through the TV This may look like a duplicate, but that's because I asked the question already  where it was falsely marked as a duplicate - I can't install ATI drivers for my nVidia card.


How to input accents in PlainTeX with UTF-8 encoding?

I'm using TeX with the plain format.  On my keyboard there is the 'è' character (as well as é, ò, à, ù, ì).  I'd like to make it work so that, when put è in the input file, TeX transforms it into \`e, i.e. the letter e with an accent.  I think I have to change the character code of è and do something like that, but I don't know what to do exactly.  Can you help me?


How do I take a screenshot of a specific screen area from the command line?

I do not want to have to interactively select the area I want to take a screenshot of. I would rather do something like --area=x,y,height,width. Is there any screenshot utility that can do this?


How to verify a number encrypted with an unknown key

Alice and Bob are going to follow the protocol below.  Are there any crypto-constructions to help Bob verify the correctness of the answer he gets?:   Alice encrypts a set of numbers using some cryptosystem and a secret key (e.g. Paillier crypto-system). Bob multiplies the ciphertexts to obtain an encryption of the sum of numbers. Bob sends to Alice the ciphertext for the sum. Alice decrypts the sum with her secret key and then encrypts the sum with a key known by Bob. Bob receives the sum encrypted with his key and decrypts it successfully.   Question: how can Bob verify that Alice didn't change the sum to a different number before re-encrypting?  Is some sort of zero-knowledge proof helpful?


a little new to MySQL but, if I create a Page using HTML, CSS & JS do i need to use prepeard statements to prevent SQL Injections?  Or only if i use text iput?  Maybe me using text-input doesn't matter as user can edit files during use with browser-inspection tools to add one anyway.   If I use PHP instead of HTML for includes is it more easy to inject Code?  Lets say I set up a site using Siteground, where do i find the files I need to edit to prevent this, PHP or MySQL?  Or do I only need to worry about this if I write some custom PHP/MySQL code which handles incoming data to the database?  Or am I asking the wrong question?  Thanks!  -A


Using macro to get the array length inside the struct

I have some C code to practice the quick sort. I want to use macro the get the length of the array. The macro works fine in the main() function. But when I use the macro inside the sort function, it does not return the length of array. Please see the comments inside the code I left.  Also, I want to use struct to create the member function pointer called "sort" and "quick_sort". Any people who are good at c programming gives me some advise if there are some points that I can improve, not matter the syntax, the code format. I feel kind of weird about the sort and quick_sort functions format inside the struct. My purpose is use Array struct to call the functions.  #include <stdio.h> #include <stdlib.h> #include <string.h>  #define NELEMS(a) (sizeof(a) / sizeof(a[0]))  typedef struct _Array Array; struct _Array {     void (*sort)(int* arr);      void (*quick_sort)(int* arr, int l, int r); };  void sort(int* arr); void sort(int* arr) {     // Issues here.     // The len is 2 not 5.     // the macro returns the sizeof arr here is 8, not 20.     int len = NELEMS(arr);     if(len == 0){         return;     }     void quick_sort(int* arr, int l, int r);     quick_sort(arr, 0, len-1); }  void quick_sort(int* arr, int l, int r) {     int j;     if(l < r)     {         j = partition(arr, l, r);         quick_sort(arr, l, j - 1);         quick_sort(arr, j+1, r);     } }  int partition( int* a, int l, int r) {     int pivot, i, j, t;     pivot = a[l];     i = l; j = r+1;      while( 1)     {         do ++i; while( a[i] <= pivot && i <= r );         do --j; while( a[j] > pivot );         if( i >= j ) break;         t = a[i]; a[i] = a[j]; a[j] = t;     }     t = a[l]; a[l] = a[j]; a[j] = t;     return j; }  void print_array(int* array, int len){     int i;     for(i = 0; i < len; i++)         printf("%d, \n", array[i]); }  int main(int argc, char const *argv[]) {     int nums[5] = {5, 1, 3, 2, 4};     // len is 20 / 4 = 5. It works fine.     int len = NELEMS(nums);      Array *array = malloc(sizeof(Array));     array->sort = sort;     array->quick_sort = quick_sort;     sort(nums);     print_array(nums, NELEMS(nums));     return 0; }


In python do you generally use  as your coding standards/guidelines?  Are there any other formalized standards that you prefer?


Using an environ environment with \newenvironment

I want to use an environment defined with NewEnviron from  in another environment definition:  \documentclass{article}  \usepackage{environ}  \NewEnviron{inner}[1]{%   \textbf{#1:} \BODY }  \newenvironment{out}{%   \begin{inner}{Using outer}% }{%   \end{inner}% }  \begin{document}   \begin{inner}{Using inner}     Lorem ipsum\ldots   \end{inner}    \begin{out}     Lorem ipsum\ldots   \end{out} \end{document}   The resulting PDF looks as desired:    But the log shows some erros:  ./test.tex:22: LaTeX Error: \begin{inner} on input line 20 ended by \end{out}.  ...                                               l.22 \end{out}  ./test.tex:23: LaTeX Error: \begin{out} on input line 20 ended by \end{document }.  ...                                                   l.23 \end{document}  ... (\end occurred inside a group at level 1)  ### semi simple group (level 1) entered at line 20 (\begingroup) ### bottom level   If I define out using NewEnviron, that is  \NewEnviron{out}{%   \begin{inner}{Using outer}%     \BODY   \end{inner}% }   then pdflatex does not terminate.  Apparently, something is mixed up (presented to the parser in the wrong order). What is going wrong?


First post and late answer review queues always empty?

I think it's since the "No action needed" buttons were introduced, that there are no posts to review in the queues mentioned in the title.  I'm just wondering, why is that? Before that there was plenty to do.


Why does my command: "rm -rf *" not delete all the files in a directory?

Most of the files are gone, but I'm still left with these two files:  ".RData" and ".Rhistory"  Why is this the case? I'm working with R, but I don't know what those files are.  Afterwards, I can individually remove them without needing to use sudo.


I have the following bash command in which I'm taking a tcpdump and then saving the file using the date command. I want to embed this command directly in my Python script instead of having to call the bash script separately.  #!/bin/bash timeout 2 tcpdump -i eth1 -s 96 -w /usr/src/pcapFiles/dump$(date +%y%m%d-%H%M%S).pcap   I get the following kind of file names when I run the above script, which is just what I need(i.e. the date and time is rendered in the name):  dump131104-191834.pcap  However, I'm having difficulty in replicating the above command from within Python. I have gotten this far with embedding the command in Python. I'm unsure about how to break the date command so that it can render the file name just like the way I need it. The following is my Python command:  tcpd = subprocess.Popen(["timeout", "2", "tcpdump", "-i", "eth1", "-s", "96", "-w", "/usr/src/pcapFiles/dump$(date +%y%m%d-%H%M%S).pcap"], stdout=subprocess.PIPE) output, err = tcpd.communicate()   With this command I get the following output file names from tcpdump  dump$(date +%y%m%d-%H%M%S).pcap


Link 1   I realize that the above method of using javascript:void(0) is a bad practice and a better way of handling undefined would be  Link 1   My question is:  Is there ever a situation where we should be using javascript:void(0) as against


[i] He hadn’t better tell them. (CGEL, p.113)   [ii] He had better not tell her. (CGEL, p.196)   According to CGEL, negation can be marked after or before better. But I can’t find any examples of [i] in COCA or BNC. So it seems to be not grammatical issue but others in there. Why aren’t there any examples of [i] in those corpuses?


Show that $\gcd(3n,3n+ 2) = 1$ when $n$ is odd

I would like to know why $\gcd(3n,3n+ 2) = 1$ when $n$ is odd.  I tried to use the Euclidean Algorithm, but I got confused: $$ 3n+2 = 3n + 2$$ $$3n = \ ? $$ Thanks!


I was wondering what the difference is between these pairs of examples:   Okay, so if we are going to work where do we begin? Okay, so if we are going to work where do we start?   And   We are going to have a party tomorrow. We should start making preparations today. We are going to have a party tomorrow. We should begin making preparations today.


When we start writing some LaTeX command, a pop shows the complete command. Is there some way to add a command e.g. \bibitem to this list so that we will not have to write complete command frequently.


moving a graph in another slide to fit in one page

I need to move the graph in the third page slide in the second page and make everything fit.     \documentclass{beamer}  %\setbeamercolor{titlelike}{parent=structure,bg=cyan} %background color %\setbeamercolor{titlelike}{parent=structure,fg=blue} %colore titoli %\setbeamercolor{titlelike}{parent=structure,fg=yellow,bg=cyan} %colore e background in un comando  \usepackage{tikz} \usepgflibrary{arrows.meta} \usetikzlibrary{calc,quotes,angles}  \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \usepgfplotslibrary{groupplots}  \usetikzlibrary{calc}    \usepackage{xcolor}  \definecolor{cobalt}{rgb}{0.0, 0.28, 0.67}  \setbeamercolor{titlelike}{parent=structure,fg=cobalt}    \usepackage{tikz} \usepackage{subcaption} \usepgflibrary{arrows.meta} \usetikzlibrary{calc,quotes,angles}  \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \usepgfplotslibrary{groupplots}  \usetikzlibrary{calc} %rido  \setbeamercolor{itemize item}{fg=cobalt} % all frames will have cobalt bullets  \setbeamersize{text margin left=5mm,text margin right=5mm} %margini  %\usebackgroundtemplate{\includegraphics[width=\paperwidth]{logo.jpeg}} \title{\textbf{title }} \author{name}  \institute[VFU] % (optional) {   \inst{1}%   thesis\\   uni   \and   \inst{2}%   prof1\\   pro2 }  \date[VLC 2013] % (optional) {Lmarch}  \titlegraphic{\includegraphics[height=1.5cm]{logo.jpeg}}  \begin{document}  \maketitle    \begin{frame} \frametitle{Title}  \begin{figure}[h]     \centering     \begin{tikzpicture}     \begin{axis}[name=plot,      xmin=-0.2,      xmax=0.8,      ymin=0,     ymax=3,     yticklabels={,,},      xticklabels={,,},       ytick=\empty,      xtick=\empty,      axis line style={draw=none},     tick style={draw=none}     ]          \addplot[black,mark=.] table{capitoli/capitolo_02/data/dati_polinomio_Greitzer_esempio.txt};     \coordinate (A) at (0,1.862);     \coordinate (B) at (0,0);     \coordinate (C) at (0.212,2.275);     \coordinate (D) at (0.212,1.862);          \draw[<->] (-0.05,1.862) -- (-0.05,0);     \draw[dashed] (B) -- (-0.01,0);     \draw[<->] (C) -- (D);     \draw[<->] (A) -- (D);     \draw[->] (0,0) -- (0,3);     \draw[->] (0,0) -- (0.7,0);          \node[text width=2cm] at (0.37,2.1) {2H};     \node[text width=2cm] at (0.212,1.7) {2W};     \node[text width=2cm] at (-0.05,0.9) {$\psi_{c0}$};     \node[text width=2cm] at (0.55,1) {$\Psi_c$};          \end{axis}          \end{tikzpicture}     %\caption{\textit{Definizione dei parametri del polinomio cubico}}   \label{fig:polinomio cubico} \end{figure}  \begin{equation} \Psi_c(m,N)=\psi_{c0}+H(N)\left[+\frac{1}{3}\left(\frac{\phi}{W(N)}-1\right)-\left(\frac{1}{2}\frac{\phi}{W(N)}\right)^3\right] \label{eq:polinomio cubico} \nonumber \end{equation}  \end{frame}  \begin{frame} \frametitle{Title}  \begin{figure}[h]     \centering     \begin{tikzpicture}     \begin{axis}[name=plot,     xmin=-0.1,      xmax=0.4,      ymin=1,     ymax=2.8,      xlabel={$[kg/s]$},      ylabel={Rapporto di compressione},     width = \textwidth,     height = 0.57\textwidth,     %yticklabel style={/pgf/number format/.cd,fixed zerofill,precision=5},     xticklabel style={rotate=-90,/pgf/number format/.cd,fixed zerofill,precision=2},     legend style={at={(0.5,-0.25)},anchor=north,legend cell align=left},     legend columns=-1     ]          \addplot[blue,mark=.,very thick] table{capitoli/capitolo_02/data/dati_polinomio_Greitzer_esempio.txt};     \addplot[red,mark=.,very thick] table{capitoli/capitolo_02/data/fisico.txt};          %\legend{$40000 rpm$,$45000 rpm$,$50000 rpm$,$55000 rpm$}             \end{axis}          \end{tikzpicture}     %\caption{\textit{Scostamento del polinomio cubico}}   \label{fig:spostamento_surge} \end{figure} \end{frame}  \end{document}


I'm at a client doing some quick fixes to their access application. It was a while I had a go with access, but I'm recovering quickly. However, I've discovered an interesting problem:  For some reports, I get a "Record is deleted" error. I've checked the reports, and it seems like there's a problem with one table. When opening that table, I find a record where all columns are marked "#deleted". So obviously, this row seems to be the culprit. However, when I try to delete that row, nothing really happens. If I re-open the table, the row still exists.   Is there a corruption in the db? How can I remove this record for good?  Edit: It's a MS2000-version  Solution: Simply compress/repair did not work. I converted the database to the 2003 file format instead, which did the trick. I've marked the first answer suggesting compress/repair, since it pointed me in the right direction. Thanks!


Work visa expiring, can I stay as a tourist?

I'm a citizen of Argentina residing in France with a long-stay visa for an internship, valid from September 5th 2018 until January 5th 2019. As an argentinian, I'm allowed to visit Europe as a tourist for up to 3 months without any kind of visa.  Can I stay after my visa expires, by "using" those days, or must I leave on that date? What if I exit the Schengen area and then reenter as a tourist?  I'd only stay for a a few days, about 3, but I guess it doesn't make a difference.


Algebraic Identity $a^{n}-b^{n} = (a-b) \sum\limits_{k=0}^{n-1} a^{k}b^{n-1-k}$

Prove the following: $\displaystyle a^{n}-b^{n} = (a-b) \sum\limits_{k=0}^{n-1} a^{k}b^{n-1-k}$.   So one could use induction on $n$? Could one also use trichotomy or some type of combinatorial argument?


Prove that if $n$ is a composite, then $2^n-1$ is composite.

Not sure if I'm doing this correctly but this is what I've done:  Assume that $n$ is composite and suppose $2^n-1$ is a prime for $n \gt 2$. Then, $2^n-1 = 2k$ for some $k \in \Bbb Z $, $\forall n$.  But this would be a contradiction since $n \gt 2$.  I'm not sure if this a correct proof.  EDIT: I realized that it's to prove $2^n - 1$ NOT $2^{n-1}$ so my attempt above is completely wrong.


how do you create an apostrophe, but with letters? I'm having trouble on the web finding how to do it with letters instead of quotation, any help here?


Did the Two Trees illuminate the whole of Arda or just Valinor?

After the destruction of the Two Lamps (Ormal and Illuin), the Valar created two massive Trees (Laurelin and Telperion) in Valinor and gave them light that was left over from the Lamps that gave Elves who arrived in Valinor a more enhanced power until they were destroyed by Morgoth and Ungoliant some time after.  Did the light of the Two Trees pass beyond Valinor and light up the whole of Arda, or just illuminate Valinor?


Does a newly created list in a function go away when the function returns?

Coming from a C/C++ background, I'm very unfamiliar with these rules in Python. If I create a new list in a python function, assign it as the member variable of some class, when the function ends, does the list go away? (In C/C++, the answer is yes unless there is some sort of dynamic allocation involved, but as I understand it, Python does it...automagically?)  Example:  class C:     def __init__(self, x):         self.val = x         self.l = []  class A:     def caller(self):         c_inst = someFunc()         print c_inst.l      def someFunc(self):         blah = C('name')         blah_l = [1,2,3,4,5]         blah.l = blah_l         return blah   What would be printed out inside the caller() function? Would it be [1,2,3,4,5]?


On a two dimensional grid is there a formula I can use to spiral coordinates in an outward pattern?

I don't know exactly how to describe it, but in a programmatic way I want to spiral outward from coordinates 0,0 to infinity (for practical purposes, though really I only need to go to about +/-100,000:+/-100,000)  So if this is my grid:  [-1, 1][ 0, 1][ 1, 1][ 2, 1] [-1, 0][ 0, 0][ 1, 0][ 2, 0] [-1,-1][ 0,-1][ 1,-1][ 2,-1]   I want to spiral in an order sort of like:  [7][8][9][10] [6][1][2][11] [5][4][3][12] etc...   Is there a formula or method of doing this?


How to explain interference of light by Huygens' principle?

there was an almost the same question , but there was no appropriate answer(the answer there was incomplete and not to the point). now there is an updated answer to the question.


Why don't all bugs and feature-requests have moderator status tags?

I'm not too familiar with status-tracking in general, but it seems tags exist to cover all states of these questions: -deferred, -bydesign, -planned, -declined, -completed, -review; -norepro, -reproduced.  Yet not every feature-request or bug question has one of these collectively inclusive tags.    So... why not?  Is it just a matter of convenience?  What does the default state of having no status tag mean?  That it is just a bad question?  Or that there's no consensus yet?


How to get the Connected App used from an Apex trigger

I have an Apex Job that is being triggered from an 'afterInsert' trigger, but I don't want that Job to be executed if the insert is being performed by a specific external application. I just need to know the Connected App Id that triggered the action, so I can skip the execution of the Job in case the Insert is coming from this specific app, but the only thing I can see is some information about the authSession (LoginType and SessionType) and the UserInfo, but nothing regarding the Connect App used.  Any idea how can I get this information?  Thanks in advance.


I am new to Latex, but I am determined to learn it. I am writing my M.Sc thesis. I have found an introductory document on how to do so. My understanding is that:  1) The book class is more appropriate.  2) Apparently, it is good to break the thesis into chucks and "assemble it" with a "master file." I am a bit confused by this. I would greatly appreciate if someone could please refer me to additional info on how to write/assemble a thesis. So far, I have learned how to write small papers with math/text. Btw, my university no longer has a Latex format: they simply told me to follow the guidelines.  Thank you! :)


Resize image to a higher resolution with PHP

I want to resize images to a fixed resolution (540x540 or 640x640). my source image sizes vary from 320x320 to 720x720. Can someone give a solution for resizing these images? I'm using PHP with GD  Thank you.


Send a personalized information through a Cloud Page using an Inbox PUSH

I would like to send personalized fields from a Data Extension  through a Cloud Page using an Inbox PUSH. When a client open the message in the Inbox section from the APP , I would like to show for example the name from each client. The idea is to show personalized data from the client and be able to keep for a period this info in their inbox . This is the simple code I am using , but the name is not showing up . Is something missing? Is it possible right now in Marketing Cloud ? Any help is appreciated. %%[ var @sk, @Name set @sk = RequestParameter("data_extension") set @Name = Lookup("data_extension","Nombre","Id_Cliente", @sk) ]%% Your name is : %%=v(@Name)=%%


one of the web site (in Drupal 7.43) I am looking after (apparently not that well, although updates have always been applied) has been hacked. There's now extra text in the footer pointing to an Italian escort web site.  The following code is the culprit:

incontri escort milano - ...

   (Note that I removed some of the code - that's the 3 dots. And I added dashes to the URL to avoid to point to it).  I don't know what to do to remove it ! :-( Any help would be appreciated.  Cheers, L@u


I have someone that wants to bless me with a large amount of money. I am working on a project. But I see some red flags they want to send me cash in a package. They have been trying to send it for 3 weeks.   But they said I had to pay for it when it comes. So much is going on I do not know what to think or feel. It's coming out of Africa. I ask them did I have to pay the money back they said no its a gift. But I am feeling something my family says its a scam I do not know what to do.   I ask them to put the money on my pay pal account but for the amount, they can not do it. I do not know what to do. And I need it for the project I am working on


Question closed as duplicate with  and also shown as "Possible duplicate"

When Community marks a question as "Possible Duplicate" and at the same time the Question is closed as exact duplicate, the link is missing from the 1st notice.    Examples:       Can we fix this?  References


What is the quickest way to get from terminal 2 to terminal 4 at JFK?

I know this question has been answered before, but that was 5 years ago and most airports have changed a lot since then. On 3/6/2019 I will be travelling from Boston to Punta Cana on Delta with a layover at JFK. I only have a layover of 90 minutes and need to get from Terminal 2 to Terminal 4. What is the best way to accomplish that, and do I still not need to go through TSA screening again? I would really appreciate any suggestions.


How to *actually* make a multi USB bootable disk in a reliable way. Without ruining its USB mass storage capability

I have tried countless bootable USB makers. When they work, they work pretty well.   Here's a list of tools I've tried.    YUMI Unetbootin Rufus   The problem is that they don't always work. The mode of failure isn't necessarily obvious. Perhaps the drive itself isn't compatible with the method used. Sometimes the drive isn't prepared properly for the tool ahead of time, and the tool doesn't even provide documentation that specifies what you need to do with the drive in order for it to work properly.   At any rate, I will attempt to describe the ideal situation, in increasing levels of system administrator user experience.  Mandatory: The USB drive shall be bootable in systems which support booting from USB. This should be the majority of computers. The USB drive shall NOT require a working operating system to exist on a working hard disk which is detected by the system, indeed the USB drive shall boot on a machine with no storage attached other than the USB drive in question.  Very much desired: The USB drive, after preparation, shall be mountable and writable and readable under Linux, OS X, and Windows, for use as an emergency mass storage device for storing < 2GB files as free space allows. Some directory in the root of the filesystem may be specified such that any files placed in there are LEFT ALONE by the preparator program as necessary.  Important: The USB drive, after preparation, can reliably be extended with a GRUB or similar menu to pick and load more ISO images. I want it to be EASY, not next to impossible, to make a 128GB bootable USB drive with a bunch of linux liveCDs, a bunch of Windows install ISOs, a bunch of diagnostic tool ISOs.   Extra credit: The USB drive is prepared once initially. It will be capable of dynamically scanning itself for ISOs loaded onto it via mass storage, and provide the GRUB picker or equivalent, dynamically, in which ISOs which were loaded onto the drive can be picked and booted. This means I can prepare the drive, then take it to other computers which have ISOs, load them on, and then take them to yet other computers to boot these new ISOs...  Is this too much to ask? Is this even possible, theoretically? Yes FAT32 won't let you put large ISO files onto the drive. That's not a good enough reason, though. This is goddamn 2016... the drive could just load something that can read exFAT to get at the ISOs stored on it...   These days I find that I am reformatting and rewriting images onto USB drives over and over and there is no reasonable way to maintain these things. Most of the tools that let you load multiple disks will unpack the image and drop files into directories, and eventually when booting files won't be in the right place or something and things fall apart. once this happens, the content on the disk is basically a lost cause.  So an alternative approach is to e.g. on a Mac hdutil convert -format UDRW and then dd to basically raw copy the iso to the USB drive. This has a very good chance of creating a solid USB drive, but now this USB drive is unreadable inside an OS and cannot be used as an emergency mass storage device. Neither can you ever have more than one image to boot this way, rendering the majority of the capacity of the drive useless.  For inspiration see . I actually have one of these. I haven't been using it much because it's freaking slow, and is USB 2.0 only. I have some USB 3 sticks I've been using but I'm really being fed up with loading images back onto my sticks over and over. At this point if I can have a solution that I can count on to work, I'll be happy waiting the few extra minutes eating my sandwich, rather than babysitting these AWFUL image loader tools. It's really not an ideal solution though, because 128GB USB3 drives with 130MB/s read speed are had for under 50 USD. Our software is really behind the curve at this point. Please just give me the speed and the flexibility.   I really hope someone who knows how this syslinux/grub stuff works can explain like I'm five why the hell I can't have this all done in software.


On my Asus Zenfone 5, how can I recover/playback the audio of a previous call that I did not record?


What is "Best Practice" For Comparing Two Instances of a Reference Type?

I came across this recently, up until now I have been happily overriding the equality operator (==) and/or Equals method in order to see if two references types actually contained the same data (i.e. two different instances that look the same). I have been using this even more since I have been getting more in to automated testing (comparing reference/expected data against that returned). While looking over some of the  I came across an  that advises against it. Now I understand why the article is saying this (because they are not the same instance) but it does not answer the question:  What is the best way to compare two reference types? Should we implement ? (I have also seen mention that this should be reserved for value types only). Is there some interface I don't know about? Should we just roll our own?!  Many Thanks ^_^ Update Looks like I had mis-read some of the documentation (it's been a long day) and overriding  may be the way to go..  If you are implementing reference types, you should consider overriding the Equals method on a reference type if your type looks like a base type such as a Point, String, BigNumber, and so on. Most reference types should not overload the equality operator, even if they override Equals. However, if you are implementing a reference type that is intended to have value semantics, such as a complex number type, you should override the equality operator.


Warning: "Using fall-back BibTeX(8) backend:(biblatex) functionality may be reduced/unavailable."

How can I resolve the warning in the title? I have tried using different backends (biber and bibtex8): it will either not fix the problem, or make worse problems.  MWE:  \documentclass{article} \usepackage[backend=bibtex,style=numeric,natbib=true,citestyle=numeric-comp,sorting=none]{biblatex} \addbibresource{thesis.bib}  \begin{document}      The Pearl Street Station and subsequent plants provided power at 110V dc \cite{hirsh_emergence_2002}.      \printbibliography  \end{document}   And bibliography:  @misc{hirsh_emergence_2002,   title = {Emergence of {{Electrical Utilities}} in {{America}}},   timestamp = {2017-03-05T00:55:18Z},   howpublished = {\url{http://americanhistory.si.edu/powering/}},   journal = {Smithsonian Institution: Powering a Generation of Change},   author = {Hirsh, Richard F.},   month = sep,   year = {2002} }


Insert in mysql database Table using PHP

I want to insert a special character "like 1350-28-1¼" FVL" in MySQL using insert query in PHP. I tried with real_escape_string() but it inserts "1350-28-1Â¼" FVL" in table. I also tried with htmlentities() but it inserts "1350-28-1 & frac14; & quot; FVL" in table. How do I insert this type of special character in a MySQL database table using PHP?


What is the connection between Markov chain and Markov chain monte carlo

I am trying to understand Markov chains using SAS. I understand that a Markov process is one where the future state depends only on the current state and not on the past state and there is a transition matrix that captures the transition probability from one state to another.  But then I came across this term :Markov Chain Monte Carlo. What I want to know is if Markov Chain Monte Carlo is in anyway related to Markov process that I describe above?


What's the probablity that a random real number is > 0

What's the probability that a random real(or natural) number is > 0. Me and a friend has been thinking about this question. It's an interesting question as there are lots of infinities involved. We intuitively think that it should be 50%, but we can't grasp the problem formally.


Let $E$ be a field and $F \subseteq E$ a subfield of $E$ and let $p(x), q(x) \in  F[x]$ two polynomials with coefficients in $F$. Show that if $p(x)$ divides $q(x)$ on $E$ $(= \exists h(x) \in E[x]$ t.q. $q(x) = p(x) · h(x)$), then $p(x)$ divides $q(x)$ on $F$ $(= \exists h(x) \in F[x]$ t.q. $q(x) = p(x)·h(x)$). I tried to do the following : by an euclidian division on $F[x]$ $$q(x) =p(x) ·b(x) +r(x) $$ and by the given supposition : $$q(x) = p(x)·h(x)$$ Since, $p(x) ·b(x) +r(x) \in E[x]$, $$p(x)·h(x) = p(x) ·b(x) +r(x)$$ $$\iff p(x) [b(x)-h(x)]+r(x)=0$$ Then I don't know how to show $r(x) = 0$ to finish the proof. I thought of saying that since the remainder and the quotient are unique then $r(x)=0$ and $b(x)=h(x)$ but I feel there is something I am doing wrong... Maybe, I could say that $r(x) = p(x)[h(x)-b(x)]$. If $r\ne0$, then $h-b\ne0$, and so $\deg(p(h-b))\ge \deg(p) > \deg(r)$. Thus, $r(x)=0$.


Description item label overflows through block

\documentclass{beamer} \usetheme{Copenhagen} \begin{document} \begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease } \framesubtitle{Benjamin Lazarus et al, in JAMA Intern Med. 2016;176(2)  } \begin{block}{Result}     \begin{description}         \item [Hazard ratio {\textit{unadjusted analysis}}:]1.45 95\% CI: (1.11-1.90)         \item [Hazard ratio \textit{adjusted} analysis for demographic, socioeconomic, and clinical variables:]1.5 95\% CI : (1.14-1.96)         \item [Hazard ratio for PPI verses H2RA:] 1.35 95\% CI : 1.01-1.91       \end{description} \end{block} \end{frame} \end{document}   Item 2 overflows through the block. I tried to use \\ to break it into two lines, but it ends up in error. Please help.


Delete all files except specified files/folders using command line?

I have a folder containing a lot of folders and different files with the following structures :  NASA │ ├── a │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├── b │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├── c │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├─ x ├─ y └─ z          I want to delete the content of the folder (NASA/) except specified folders and files.   For example I want to keep a folder, b folder and x file.     I tried   :   rm !(a/) -r NASA/   And (as explained in the answer ):  find NASA/ -type f ! -iname "x" -delete   But this is not very straight forward and I have to use a bash script.    Am I missing a more easy way ? How can I do this in a single command?


I'm trying to figure out the best way to model the sphere-spiral here:    Is it possible to make this shape directly? Or do you have to make it as a cylinder and wrap it to a sphere?


In a school the odds of a student speaking spanish are $30\%$.

If we select $3$ random students, what are the chances of at least one of them speaking spanish?  So, I saw this question and tried to solve it, seemed like an easy question but I was wrong and still not sure why.  Apparently the correct answer is $65.7\%$ ($100\% - 70\% \cdot 70\% \cdot 70\%$).  My first attempt at solving I figured $90\% = 3 \cdot 30\%$ (I just need $1$ student to know spanish, and I have $3$ "chances").  What is the corrent approach for this?


Changing the formatting of subcaption for reference

\usepackage{subcaption}     \begin{figure}[t]     \begin{subfigure}{1\linewidth}     Figure1     \caption{Hello}~\label{fig:TBS}     \end{subfigure}     \begin{subfigure}{1\linewidth}     Figure2     \caption{Hello1}     \end{subfigure}~\label{fig:TBSCompensate}     \caption{BigHello}     \end{figure}   Following is the what appears:    When I use Figure~\ref{fig:TBS} to refer the figure It appears Figure 2a in the pdf, I wish that it could appear as Figure 2(a), is the a way to tweat the formatting of caption for subfigure?


Is it secure to store ID value from the DB into the input tag whose type is hidden?

From the Mozilla document , one of the uses of the input tag with type attribute value hidden is to store the id of a backend object, e.g. postId, in the input tag. How safe is it to store a database id value into the input tag? Will a malicious user not record the id and use it afterwards in unintended ways?


Binary operation $xy$, has identity, but not associativity. Is the inverse unique?

Let $S$ be a set with a binary operation $xy$ defined on it, with a neutral element, but not satisfying associativity. I want to prove that the inverse isn't necessarily unique.  My attempt to answer this is in the answer below.


Ordering by meta key with pre_get_posts leaves out posts without the metakey

I am able to display posts ordered by custom meta key using the pre_get_posts action. How ever, it is leaving out (not displaying) posts without this meta key. Is there any way to display the posts with out the meta key at the end?  $q->set( 'meta_key', '_1m_e_date' ); $q->set( 'orderby', 'meta_value' ); $q->set( 'order', 'ASC' );    Thank you


Proof that $ 3 > (1+\frac{1}{n})^n \geq 2$

I am studying computer science in first term,  and i got a task that i was not able to solve for a long time now.  I have to prove that   $ 3 > (1+\frac{1}{n})^n>=2$  for every $n \in \mathbb{N}$  $(1+\frac{1}{n})^n>=2$  Can be proved easily with Bernoullis Inequality:  $(1+x)^n>=1+x*n$ $(2= 1+\frac{1}{n}*n)$   Thats cool. But how do i prove that it is smaller than 3? I thought of the following. Using bionomical theorem we can write the above term as:  $$\sum_{k=0}^n\binom{n}{k}*\frac{1}{n^k}$$  If we write the first to sums for k= 0 and k= 1 seperately, we can see that they both equal 1.  $$\binom{n}{0}*\frac{1}{n^0}$$ And  $$\binom{n}{1}*\frac{1}{n^1}$$  Both equal one, am i correct.  So the sum $$\sum_{k=2}^N\binom{n}{k}*\frac{1}{n^k}$$ (Without the first two sums) has to be >1. But thats where my problem is. I mean i already proved that Each of the sums is smaller than 1 but that doesnt prove anything, right? $>1+>1\neq >1$ if you know what i mean. The whole thing has to be proofed to be smaller than 1. How can i see that.  P.S: The answer is NOT that the above term wont get bigger as Eulers Number, as by definition.  I mean this statement is correct, but it would not solve the question. I really have to, and want, to show it on my own.   Any help is much apprechiated, been thinking about this for so many hours now.


I have a function that is declared and defined in a header file. This is a problem all by itself. When that function is not inlined, every translation unit that uses that header gets a copy of the function, and when they are linked together there are duplicated. I "fixed" that by making the function inline, but I'm afraid that this is a fragile solution because as far as I know, the compiler doesn't guarantee inlining, even when you specify the "inline" keyword. If this is not true, please correct me.  Anyways, the real question is, what happens to static variables inside this function? How many copies do I end up with?


What is the difference between "wait" and "await"?

I'd like to know the difference between the two verbs since they seem to have the same meaning. When should I use await, and when wait?


I want to import a C file with Python and run it. Imagine my C code is :  #include <stdio.h>  void sum(int num1, int num2){      return num1 + num2;  int main(){      sum(1,2) }   How do I import the C code with Python :  import helloworld result = helloworld.sum(1,2) print(result)   This doesn't work how do I make it work.     In Google I found C++ but I DO NOT want C++ I need to do it in C.


How to login and get root desktop environment in ubuntu 14.10

how do i login with root account and get root desktop environment in ubuntu 14.10  Pls advise .  Reg, Sufi


How to include list of abbreviations in the table of contents

In fact I want to include my list of abbreviations in my table of contents. But when I write my latex code this list of abbreviations isn't showed in the table of contents. I have used  \nomenclature which will automatically print that nomenclature in the list of abbreviations which were displayed using \renewcommand{\nomname}{List of abbreviations}. Here is the code:  \documentclass[12pt]{report} \usepackage{lipsum} \usepackage[french]{babel} \usepackage{unnumberedtotoc} \usepackage[automark, plainheadsepline, headsepline, plainfootsepline, footsepline, markcase=ignoreupper]{scrlayer-scrpage} \clearpairofpagestyles \ihead*{\leftmark} \cfoot*{\pagemark} \setkomafont{pageheadfoot}{\scshape} \usepackage{titlesec} \usepackage[a4paper,right=20mm,left=25mm,top=25mm, bottom=26mm,% head=14.5pt,%<- new  ]{geometry} \titleformat{\chapter}[display]  {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge} \titlespacing*{\chapter}{0pt}{0pt}{20pt} \titleformat{\paragraph} {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex} \begin{document} \tableofcontents \addchap{Publications} \addchap{Acknowledgement} \renewcommand{\nomname}{List of abbreviations} \chapter{Introduction} \lipsum \lipsum \chapter{state of art} \lipsum \chapter{theory} \lipsum \end{document}


How to prove the uniqueness of a continuous extension of a densely defined function?

Let $X$ be a topological space and let $Y$ be a Hausdorff space. Let $D$ be dense in $X$. Prove that continuous functions $f, g : X \to Y$ which are equal in $D$ are equal in all $X$.  I'm a little stuck with this elementary proof. All help appreciated :)


"google-chrome " downloads the file instead of opening it

As the title says: google-chrome index.phpdownloads the file immediately instead of opening it. Is there a way to change this?


All letters in uppercase, but the first letter bigger than the other ones

I want to know how can I achieve this effect in LaTeX:    Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the letters are uppercase.  Any suggestions?


I am trying to create an alias for this docker command: docker ps -a --format="table {{ .Names }} \t {{ .Image }} \t {{ .Status }} \t {{ .Ports }}" I'm using zsh so I added this to my .zshrc file: alias dockerps = 'docker ps -a --format="table {{ .Names }} \\t {{ .Image }} \\t {{ .Status }} \\t {{ .Ports }}"' I' ve also tried escaping the double quotes \", but every time I try to finish with the compile . ~/.zshrc  it results in /home/USER/.zshrc:129: bad assignment  EDIT: removing the spaces around alias : alias dockerps = xx... --> alias dockerps=xx... fixed it


What's the purpose of having "env [shell]" as an interpreter?

I already stumbled over #!/usr/bin/env bash on numerous occasions and never questioned it. Now, I'm wondering what the purpose of wrapping the shell interpreter in an env command, i.e. why not just write #!/bin/bash, #!/bin/sh or whatever?


Javascript Number function changes original number

export function calculateDiff(first, second){    const firstNum = Number(first);   const secondNum = Number(second);    return isNaN(firstNum) || isNaN(secondNum) || firstNum === 0 ? '' : firstNum - secondNum }  // In spec test file  it('calculateDiff', () =>{     expect(calculateDiff('',1.2)).toBe('') //PASSES as expected     expect(calculateDiff(100.2399, 99.2455)).toBe(0.9944); //FAILS -result is 0.9943999999999988     expect(calculateDiff(100.2399, 99.2455)).toBe(0.9943999999999988); //PASSES  });      How can I prevent it from making this conversion? I like Number rather than parsefloat function because of the way it does Nan and handles others values.


Wrong layout with titlesec: it won't change page after new section

I tried the following layout  \documentclass{article} \usepackage[explicit]{titlesec}  \titleformat{\section}   {\vspace{1cm}\titlerule\vspace{.8ex}%    \bfseries\large}   {\Roman{section}\,|}   {.5em}   {#1}  \titlespacing{\section}{0.5ex}{*1}{*0}  \begin{document}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \section{Test}  \end{document}   But all the titles are put on the page 2, with a strong vertical overfull box: see the image below.    What is the issue and how to fix it?


How to prove ${n \choose p} \equiv\left\lfloor \frac{n}{p} \right\rfloor\pmod p$

Prove ${n \choose p} \equiv \left\lfloor \frac{n}{p} \right\rfloor \pmod p$   ($n$ is natural and $p$ is a prime number)  How can i prove this statement?


This is what I have so far. It is not lining up properly when I run the code.         \begin{adjustbox}{max totalsize={.9\textwidth}{.6\textheight},center}     \begin{tikzpicture}[ every edge/.append style = {-Straight Barb, thick,                             shorten >=1mm, shorten <=1mm},                         ] \matrix (tree) [matrix of nodes,                 nodes={circle, draw, minimum size=3mm, inner sep=0mm},                 column sep=2cm, row sep=1cm                 ] {                   & $C_{i+1,j+1}$    \\ $C_{i,j}$       &$C_{i+1,j}$  \\                  & $C_{i+1,j}$  \\     }; \draw[->] (tree-3-1) -- (tree-1-3) node{}; \draw[->] (tree-3-1) -- (tree-3-3) node{}; \draw[->] (tree-3-1) -- (tree-5-3) node{};     \end{tikzpicture}     \end{adjustbox}   \end{frame}


In which categories are epimorphisms equivalent to surjections?

For example, in the category of sets a morphism is an epimorphism iff it is surjective. This is true in the category of groups with homomorphisms, the category of topological spaces with continuous functions. However this is not true in the category of monoids, rings, etc. (For more examples see )  Is there a classification of categories where the two are equivalent? Or are there some properties of categories where they're equivalent? Obviously we must be working in a concrete category to talk about "surjective". But is there anything else we can say about the category?


ethernet connection makes the WiFi disable

A ethernet (Lan server) connection makes the WiFi disable automatically in windows 8.1. By switching on the WiFi manually let only WiFi to run for few moments and the WiFi goes off again. How can I fix this?


Why did the CP of my Pokémon change after upgrading my storage?

I recently upgraded my Pokémon storage to hold more Pokémon.  After doing so, I noticed the CP on my Pokémon changed - some are better, some are worse. What happened?


How do I find out which paths my (La)TeX installation checks looking for packages (on a Linux system)?

I know that I can check from where one particular package would be called, using  kpsewhich <packagename>.sty   and that if I want a custom package, I usually have to put it in the same folder as my document.   I assume that similar to a $PATH, LaTeX checks a list of paths in an attempt to find my package.   Which paths are those? In what order are they checked? If this is system-specific, how can I find out the configuration for my system?   Related questions:    , the answers to which contain some paths that  LaTeX apparently checks.  mentions    >    /usr/local/texlive/2009/texmf >    /usr/local/texlive/2009/texmf-dist >    /usr/local/texlive/texmf-local > > as well as other directories.   (Neither of those lists is complete).


I am trying to process only k (10) portions of a list of lists at a time. The problem is that there are remainders (quotient) from dividing by 10 so I want to also process the remaining. Is there an elegant solution to this?  so far here is my code:  for x10 in np.arange(0, len(candidates), 10):     indexed = enumerate([list(enumerate(entry)) for entry in candidates[[x10-10:x10]]])   Not a duplicate: I dont want to split the list into evenly sized chunks but into multiples of 10  Update: turns out x10:x10+10 did it... thought that would give me out of index error, strange


I seem to be having a little issue with connecting to a remote server, to rsync my backups  what i have done so far  run    ssh-keygen created public and private key   run    ssh-copy-id -i my.key.pub 100.0.0.01  it all connected ok, i even went to remote server and checked     .ssh/authorized_key and confirmed the key was there  but when i run ssh 100.0.0.01 it still asks for a password, plus when i run a cron job to rsync it fails with permission denied.  Does anybody have any ideas as to why it wont connect?


Accept an answer where the actual answer is located in the comments?

I got a rather unsatisfactory answer on Stack Overflow but the subsequent discussion with the answerer (in the comments below) was helpful. Should I accept his answer? Or is there a way to accept a specific comment?


Error in dynamoDB mapper scan() : java.lang.NullPointerException: null

I am getting below error while calling dynamoDBMapper.scan(Person.class, new DynamoDBScanExpression())  java.lang.NullPointerException: null     at com.amazonaws.services.dynamodbv2.model.ScanRequest.setScanFilter(ScanRequest.java)     at com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper.createScanRequestFromExpression(DynamoDBMapper.java:1692)     at com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper.scan(DynamoDBMapper.java:1569)     at com.amazonaws.services.dynamodbv2.datamodeling.AbstractDynamoDBMapper.scan(AbstractDynamoDBMapper.java:236)  With the same dynamoDBMapper, dynamoDBMapper.save(person1) is working fine. The NullPointerExecption is coming inside of ScanRequest.setScanFilter method of the AWS SDK. Although, the method setScanFilter has only one line of code, the stacktrace is not showing the line-number where the exception occurred. The method ScanRequest.setScanFilter looks like this. public void setScanFilter(java.util.Map<String, Condition> scanFilter) {     this.scanFilter = scanFilter; }  Not sure how this.scanFilter = scanFilter can cause a NullPointerException  Spring Boot - 2.2.6.RELEASE DynamoDB SDK - 1.11.555 Java - Corretto-8.242.08.1


How to create image of internal storage to attempt data recovery?

I accidentally deleted an entire folder of photos a few days ago on my Galaxy Note 4. My PC was also down because of a failed hard drive, so I was unable to back up my phone prior to this accident. At that time, I didn't even know what "adb" meant; now I have droid explorer and Android SDK on my PC, and have worked out how to get my PC to detect my phone. Now I want to make an image of the internal storage; there are lots and lots of other threads about this, but none of them explain the commands people are using. I have been very careful not to use my phone for much of anything (it has been set to airplane mode to reduce the chances of things writing to the drive), but I can't keep that up for long. Can somebody please explain what commands I need to use in order to get an image of the internal storage? I keep seeing information about "booting in recovery mode" and bootloaders but I have also seen people discussing dumps of internal storage without these things. I just need to check if my photos are still there. It's pretty frustrating to figure this stuff out with very little knowledge of coding and zero knowledge of Android software, so if somebody could help me figure out what to do next and be thorough with explanations, that would be excellent.


my son gave me a package of thighs that he had in his deep freezer for 5 years. will this be bad and what will it do to the taste.


What does it mean by a HASH of a message with zero length or rather why is it required?  What could be a possible scenario where this is used?  Also note that, for a given HASHing algorithm, the hash value of a zero length message is essentially pre-defined.


Looking for title and author: fantasy, shapeshifting thief, sorceress

Pretty sure this book was fantasy, rather than sci-fi. Probably late 70s early 80s. I remember:  The world is made up of separate chunks, islands floating in space, each following a specific path that is charted and regular (there are timetables written about the movement and paths of each island). A thief cases a house to steal an artifact, a crystal crescent. The crescent is resting on a cushion on a mantel, in a room where the floor is specially made so that if you step in the wrong place, the floor shrieks like a riven vampire. The thief returns at night, navigates the floor, discovers that the crescent is protected by a glow (spell), figures out that the spell doesn't affect the silk cushion the crescent is sitting on, so makes a loop out of a piece of silk from his own clothes, and leaves (something) behind on the cushion, to give the spell something to protect.  To leave the building, he goes to a pantry/closet with a window, and has to dislocate his shoulder to fit. I want to say that he can shapeshift into a bear, but I can't remember how that fits in anywhere. Further on, he meets a sorceress, who wears a ring made out of crystal on a particular finger to show her rank.  And that's what I remember. I want to say the author is female, but I can't remember the name of the author or the book, and the copy I read was missing its front cover so I have no idea of the cover art. Please help!


When starring a message from the star board, it's not reflected in the main chat window

If you click to star a post on the side (in the starred list), it changes color but not the star by the main chat area (it does add one to the number, but it doesn't change the color). Then when you click the star on the main chat area, it changes color to yellow but lowers the number by one  After clicking in sidebar:     After clicking in the main chat:


Removing new line characters around patterns

I have a fasta file of millions of paired sequences, that looks like this:  >7001289F:56:HKH3FBCXX:2:1101:1692:2074 1:N:0:CGATGT GAGCAGAGGCACCGCTGAGCAGACAGCGAGCGAGTGAAGGGGTCAGGGGCCAGTCAGCAATCTCGTGTAGAAAGAATCACGGTCGAGCGGTGCACGCATG >NNNNN GACACCTTCATTTCCACTTTATTGAGCAGCGGCGCATGCGTGCACCGCTCGACCGTGATTCTTTCTACACGAGATTGCTGACTGGCCCCTGACCCCTTCA >7001289F:56:HKH3FBCXX:2:1101:1522:2186 1:N:0:CGATGT GTAGATGATGAATACAGCTGTTGCTGCAGCAACTGGTGCTGAGTAAGCAACTGCGATCCATGGACGCATACCTAAACGGAAAGATAATTCCCAC >NNNNN GTGGGAATTATCTTTCCGTTTAGGTATGCGTCCATGGATCGCAGTTGCTTACTCAGCACCAGTTGCTGCAGCAACAGCTGTATTCATCATCTAC   I need to format it as below:  >7001289F:56:HKH3FBCXX:2:1101:1692:2074 1:N:0:CGATGT GAGCAGAGGCACCGCTGAGCAGACAGCGAGCGAGTGAAGGGGTCAGGGGCCAGTCAGCAATCTCGTGTAGAAAGAATCACGGTCGAGCGGTGCACGCATGNNNNNGACACCTTCATTTCCACTTTATTGAGCAGCGGCGCATGCGTGCACCGCTCGACCGTGATTCTTTCTACACGAGATTGCTGACTGGCCCCTGACCCCTTCA >7001289F:56:HKH3FBCXX:2:1101:1522:2186 1:N:0:CGATGT GTAGATGATGAATACAGCTGTTGCTGCAGCAACTGGTGCTGAGTAAGCAACTGCGATCCATGGACGCATACCTAAACGGAAAGATAATTCCCACNNNNNGTGGGAATTATCTTTCCGTTTAGGTATGCGTCCATGGATCGCAGTTGCTTACTCAGCACCAGTTGCTGCAGCAACAGCTGTATTCATCATCTAC   Basically the complex headers represent the forward reads of DNA sequence and the header immediately following represents the corresponding reverse read with the headers NNNNN. I need to append these reverse reads to the forward reads separated with only NNNNN but am struggling to remove the new line characters with sed. Can anybody shed light on this please?


How can I generate Javadoc comments in Eclipse?

Is there a way to generate Javadoc comments in Eclipse? If so, what is it?


Is the relation on integers, defined by $(a,b)\in R\iff a=5q+b$, a function?

Let $A=B=\mathbb N$. Relation $R$ is: $(a,b)\in R$ iff for some $q \in \mathbb Z$ we have $a=5q+b$  Given a relation, show that it's a function.  To Show:   $\forall a \in A \ \exists b \in B$ such that $(a,b)\in R$  $\forall a \in A $ there is a unique $b\in B$ such that $(a,b) \in R$.   Proof Outline: Let $a \in A$. Assume $(a,b)\in R$ and $(a,c) \in R$ where $b,c \in B$.  then some steps leading to.... $\therefore$ b=c. QED     What math should I do to complete  the   proof?


$$\sin(\theta)+ \sin (2\theta)+\ldots+\sin(n\theta).$$  Find the identity? Set $z=e^{i\theta}$.  Can someone point me in the right direction as to where to start/go from.  So far I have  $$\frac{1-e^{i\theta(n+1)}}{1-e^{i\theta}}.$$  And I am stuck as to where to go from here.


Adding Geometric Network Trace to Map Using ArcPy

I am able to run Geometric Network Trace by using following ArcPy script but I also need to add Trace result into the map. Can you please let me know how I can add the result(graphic/geometry) to the map.  import arcpy  arcpy.env.workspace = r"E:/Utility/Sample/Montgomery.gdb" # Local variables: G_N = "E:/Utility/Sample/Montgomery.gdb/Water/Water_Net" Flag = "E:/Utility/Sample/Flag.shp" traceOut = "traceOut_Net"  # Process: Trace Geometric Network arcpy.TraceGeometricNetwork_management(G_N, traceOut, Flag, "TRACE_UPSTREAM", "", "", "", "", "", "NO_TRACE_ENDS", "", "", "", "AS_IS", "", "", "", "AS_IS") print "Trace Done"


How to install the driver for TL-WN823N V3 on Ubuntu 18.04?

Recently, I bought the WiFi stick TL-WN823N (EU) V3. I am running ubuntu 18.04 and try to get the stick to work there. While it connects to the WiFi, after some minutes, the connection stops working.   So I went to the , downloaded the driver and tried to install it. Unfortunately, the guide is very technical. It says that before compiling I have to make sure the parameters in makefile.c are suitable for my environment.  ARCH ?= $(SUBARCH) CROSS_COMPILE ?= KVER :=$(shell uname -r)   Could anyone tell me what I have to do here? When I try to compile it without changing anything, I run into compilation errors.  I have read several questions related to the TL-WN823N WiFi stick but I could not find a solution.


i tried reseting all of my data on my ipod touch to unjailbreak now stuck black screen after apple logo

ok so today i wanted to reset my jailbroken ipod touch 2g because it was having some issues. i went into settings, general, something like reset, then something like reset all data and content. after i pushed that it did the regular loading bar thingy and when it restart, i got the apple logo then a black screen. no loading circle of death, just a sad lightish blue black screen. now, before that, my ipod just went to recovery mode, so i thought, why not rejailbreak it, so i did that and thats how i got it working again. then the whole reset stuff and now this. i have tried just about everything, dfu mode, recovery mode, ipsw restores on both itunes and redsn0w, and when i do that, in redsn0w, when you think things are going good, it brings up a loding bar and does nothing. itunes dows the same. please help. alll ideas are appreciated. thankyou daniel


How do I save Updates/Installed Packages?

So I've been messing with thing that probably shouldn't be messed with trying to learn my way around Linux, and I seem to have messed something up. I'm getting a lot of error messages, reduced speed, and crashes, so I'm going to do a clean install.   However, I an using mobile broadband and don't exactly want to use all of it up again re-downloading updates.  Is there any way I can save all the packages installed now with their updates to an external hard drive?


How to determine where biggest files/directories on my system are stored?

I was wondering how do you know where the largest files in my system are stored.  For example---  Disk Space Used: 1GB Java: 500MB Java Percentage: 50% maybe represented in a pie chart. Maybe?  I know this maybe a feature overkill. I sometimes forget having stored things and wonder why my disk is so full.   So basically a command that will allow me to run on the file system and provide me with information on disk space used.  Please and thank you.


I have multiple domain names, currently all of them are on a single SSL certificate through Lets Encrypt. However I would like to break them off and get individual certificates for each domain. The problem I'm running into, and what I'm hoping to accomplish is this: I have several subdomains that are being reverse proxied. IE sd1., sd2., sd3.*, etc. At the moment this works fine while having a single certificate for all domains. Regardless if someone accesses sd1.domain1.com or sd1.domain3.com it uses the single certificate and all is well. I'm trying to find out if it's possible / the proper way to have the certificate be handled by the domain requested without having to create server blocks for each subdomain / domain combination. I'd like to keep sd1.* as a server block for the reverse proxy but if sd1.domain1.com is accessed have it provide the domain1 certificate and if sd1.domain2.com is accessed have it provide the certificate for domain2. Is it possible to have NGINX provide the certificate based on the host/URI that is requested rather than only by server block?


strange effect with string comparisation with ==

I know that we shouldn't compare Strings with == and its better to use equals. For so far I learned this should all be false. So why does the first method return true?    private String ab = "AB"; private String ab2 = "A" + "B"; private String a = "A"; private String b = "B"; private String ab3 = a + b;  public void test () {     System.out.println("ab == ab2" + ab==ab2);     System.out.println("ab == ab3" + ab==ab3);     System.out.println("ab == a+b" + ab==(a+b)); }


Bug in displaying previous year's election results

Today I visited the  to find  who got selected as the moderators. But in the results of the year 2018, I found something strange. It displays the username Snow.  has been a member in The Workplace only for 4 months.  I suspect there was an old user with the same username and their account got deleted as it leads to a  page.  Can this be fixed?


How to disable log when start application in desktop from terminal

I need open new tab in chromium, in other display, from script terminal. When I open, my terminal receive logs from Xorg or GTK (I don't know who print it). I used the command: DISPLAY=:0 chromium-browser &  OK! This command open Chromium fine, but my script stay locked because log is sent to my terminal, like below:  --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= Fontconfig warning: "/etc/fonts/fonts.conf", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf [6423:6423:0426/131721.287597:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context. [6423:6464:0426/131721.607400:ERROR:data_store_impl.cc(130)] Failed to open Data Reduction Proxy DB: 3 [6423:6529:0426/131721.614429:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.Notifications.GetCapabilities: object_path= /org/freedesktop/Notifications: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files ATTENTION: default value of option force_s3tc_enable overridden by environment. [6541:6541:0426/131723.171003:ERROR:sandbox_linux.cc(375)] InitializeSandbox() called with multiple threads in process gpu-process. [6423:6423:0426/131723.532741:ERROR:CONSOLE(14)] "Uncaught TypeError: Cannot read property 'W' of null", source: https://www.google.com/_/chrome/newtab?ie=UTF-8 (14) [6423:6477:0426/131723.719742:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [6423:6477:0426/131723.775816:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [6423:6477:0426/131724.152088:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)  This behavior occurs with other application, like lxpanel. Please, how I disable this log or open any application in other display, without log.


How can I generate alphanumeric unique userId's of 5/6 digits reducing the chances of collision upto 10 lac values with Java? I don't want to make calls every time  to the DB so as to check whether that ID already exists there.


How to test for the number of players in a gamemode in minecraft?

It want to test for the number of players in a gamemode.  I tried /testfor @a[m=0,c=1] but it only tests for the number of players, not the number of players in a gamemode.


Friction cause a car to acceleration AND also to stop?

I understand how friction works in order to accelerate a car. The wheels pushes the road back and this causes a reaction force (friction) to push the wheel forward. My question is how does friction, which acted in the +x direction when accelerating, suddenly switch directions to the -x direction. The wheels are still turning in the same direction as before? How does this work?


Vandermonde-like determinant with first row $1,-a_1,-(a_1)^2 ,\dots$

the determinant is :  $$\left|\begin{matrix} 1&-a_1&\cdots&-a^{n-1}_1\\ 1&a_2&\cdots&a^{n-1}_2\\ 1&a_3&\cdots&a^{n-1}_3\\ \vdots&\vdots&\ddots&\vdots\\ 1&a_n&\cdots&a_n^{n-1} \end{matrix}\right|$$  so i tried and got this :  $$\left|\begin{matrix} 1&0&0&\cdots&0\\ 1&a_2+a_1&a_2(a_2-a_1)&\cdots&a^{n-2}_2(a_2-a_1)\\ 1&a_3+a_1&a_3(a_3-a_1)&\cdots&a^{n-2}_3(a_3-a_1)\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&a_n+a_1&a_n(a_n-a_1)&\cdots&a_n^{n-2}(a_n-a_1) \end{matrix}\right|$$  and i dont know how to deal with the $a_k+a_1$  since i need the common factor of $a_k-a_1$. i would very much need a hint .


How can I reinstall all packages that were shipped by default on Ubuntu 16.10?

I want to restore my installation back to default by reinstalling all packages that are shipped by default by Ubuntu 16.10.


Please help me to install winusb on Xenial Xerus

I tried to install winusb in my Ubuntu 16.04 LTS.  This is the message I get when I tried to install winusb:  kishoreuk@kishoreuk-HP-Notebook:~$ sudo dpkg -i winusb_1.0.11+saucy1* [sudo] password for kishoreuk:  Selecting previously unselected package winusb. (Reading database ... 172829 files and directories currently installed.) Preparing to unpack winusb_1.0.11+saucy1_amd64.deb ... Unpacking winusb (1.0.11+saucy1) ... Preparing to unpack winusb_1.0.11+saucy1_amd64.deb.1 ... Unpacking winusb (1.0.11+saucy1) over (1.0.11+saucy1) ... More than one copy of package winusb has been unpacked  in this run !  Only configuring it once. dpkg: dependency problems prevent configuration of winusb:  winusb depends on libwxbase2.8-0 (>= 2.8.12.1); however:   Package libwxbase2.8-0 is not installed.  winusb depends on libwxgtk2.8-0 (>= 2.8.12.1); however:   Package libwxgtk2.8-0 is not installed.  dpkg: error processing package winusb (--install):  dependency problems - leaving unconfigured Processing triggers for man-db (2.7.5-1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Errors were encountered while processing:  winusb   Please tell me how to install:   libwxbase2.8-0 libwxgtk2.8-0


Why doesn't frame option allowframebreaks work when using the label option?

When compiling with the parameter label as in the MWE, allowframebreaks doesn't work. Why not?  Is there any difference between setting a frame title as a frame argument and by using \frametitle?  \documentclass{beamer} \usetheme{Warsaw} \usepackage{blindtext} \begin{document}  \begin{frame}[allowframebreaks,label=frame1]{Title} %\frametitle{Title} \framesubtitle{Sub-title} \blindtext Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........  Text........ Text........ Text........ Text........ Text........  \end{frame}  \end{document}


Exclude CPP files from build, but preserve in project - VS2015 C++

Is there a way to preserve CPP files in project included (Include In Project) and exclude them from build process? The reason is, I want to go through the source (F12 - Go To Definition) of external libraries to see the implementation, however, the libraries are already built and I do not need to set-up the project to rebuilt them, I just need to include headers only.  Edit: OK, I am sorry for the discussion bellow, however, the correct answer to my question is there:  2.  As states there, you Right click the file, select 'Properties' --> select 'Configuration Properties' --> select 'General' --> choose 'Yes' from drop down menu for option 'Excluded From Build'    Unfortunately, there are some pitfalls. If you select all files of filter folder, the correct window sometimes is not opened (see bellow)! The same, when you select more files and others than .cpp, .c or .h are selected...


I want to intercept a given program before it runs and run my own program first

I'm going to work with Python 3, mainly interested in Windows for a start. If it makes a difference, then Windows 10 specifically.  Example of what I want to happen:   User starts my script. User decides to blacklist the game Dota 2. User tries to open Dota 2. Because Dota 2 is on the blacklist, my script runs instead of Dota 2. After my script is done, Dota 2 either runs or doesn't run, depending on what my script chooses. This will ultimately be controlled by User. User closes my script. User tries to open Dota 2. Dota 2 opens right away without interruptions.     The last three lines is to signify that there needs to be a way of turning it on and off, so not a permanent solution. My base assumption is that once I know how to do the first part, the second part will be easy. I still put it in there for clarification.  I really just want to know how to gain access to intercepting the programs.