I have a question related to what I'm currently testing/working on/trying to understand.  I created a small text file with the following content  abc.txt  ABCDEF  Now when I view File Properties    I see the file's size is 6 Bytes (since there are 6 characters) & Size on disk is 4Kb.Fair enough. There must be some metadata associated with this file such as Type of File, Timestamps, Security Information etc.   Where is all this information stored ? Is it the MFT (I'm almost certain it is) ? If so, Can I in any possible way find out how much space is consumed by the metadata for this file ?

(I'm using Windows XP but I guess it's similar in all the recent versions of Windows.)  When you create for example a new empty text document, you'll find in its properties that it has size of 0 bytes. Zero bytes means no information. No data. But still, the file has some name, it can still carry the dates of last access, modification and creation. It carries the information whether it's hidden file or not, whether it's read-only or not...  So where are all the metadata stored?


I have Windows XP on my laptop and use Remote Desktop Connection to work on a computer with Windows Vista. On my laptop I use 3 languages: English, Russian, Chinese. I switch between them by Alt+Shift, changing to Chinese with Ctrl+Space is disabled. On the remote computer there is only one Language on the Installed services list - English. For some reason, when I press Ctrl+Sapce on that computer (e.g. for autocomplete in NetBeans) it switches to Chinese (language bar at the bottom shows 'CH') and I cannot input anything. This never happened until today (before I worked on that computer from my laptop without any problems).  Does anyone know how to solve this problem? Any help is greatly appreciated.  UPD: in Advanced Key Settings there is no action for Ctrl+Space on both computers.

I am running Windows 7 Ultimate (w/ SP1), and have multiple UI languages installed - mainly for screenshots etc. Among them are Chinese (traditional) and Chinese (Simplified), which insist on hooking the CTRL+Space key even though I have disabled / overridden these hotkey assignments under Language Bar settings / Advanced key settings.   (It conflicts with CTRL+Space in the Visual Studio IDE, and is pretty annoying beyond that.)  Any ideas?


java.net.URLEncoder will encode a single whitespace with +.  scala> val encodedSpace = URLEncoder.encode(" ", "UTF-8") encodedSpace: String = +   However, per this W-3 , shouldn't it be encoded with %20?

Is a URI (specifically an HTTP URL) allowed to contain one or more space characters? If a URL must be encoded, is + just a commonly followed convention, or a legitimate alternative?    In particular, can someone point to an RFC that indicates that a URL with a space must be encoded?  Motivation for question: While beta-testing a web site, I noted that some URLs were constructed with spaces in them. Firefox seemed to do the right thing, which surprised me! But I wanted to be able to point the developers to an RFC so that they would feel the need to fix those URLs.


Ive got this string  designer-brand-paradise-design-t-9999-123990-tshirt-print-18-preorder-november-delivery  I need to extract any instance of preorder-* from it as I have a bit of a situation with alot of data lingering around.  Im new to regular expressions, so Im hoping this is an easy one. any help greatly appreciated

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Show that for $|z|<1$, one have $$ \frac{z}{1-z^2}+\frac{z^2}{1-z^4}+\cdots+\frac{z^{2^n}}{1-z^{2^{n+1}}}+\cdots = \frac{z}{1-z} $$ and $$ \frac{z}{1+z}+\frac{2z^2}{1+z^2}+\cdots+\frac{2^k z^{2^k}}{1+z^{2^k}}+\cdots = \frac{z}{1-z} $$ Use the dyadic expansion of an integer and the fact that $2^{k+1}-1=1+2+2^2+\cdots+2^k$.


My old US passport expires in October 2018. I have applied for a new passport. The 10-year visa to India expires in January 2019.  Can I travel with this visa if I travel in October 2018 and return in November 2018?

I recently had to renew my passport.  The expired one has an Indian visa that will be valid until 2016.  Is it necessary for me to get the visa transferred to the renewed passport, or can I get through customs in India (likely Mumbai) if I have both the expired and the renewed passports with me?


Let $G = \mathbb{Q}\setminus\{1\}$ be the set of all rational numbers other than $1$ and suppose $*$ is defined as $a*b=a+b-ab$. Show that $*$ is a binary operation on $G$.

The group $\left(\Bbb{ Q}\setminus\{-1\},\star\right)$ has as its underlying set the rational numbers different from $-1$ and the operation $\star$ is defined as $a \star b=a \cdot b+a+b$ where multiplication/addition are the usual operations with rational numbers.Show that this is a binary operation.  What I did (Please help verify):  identity element has to be 0 since $a\star 0 = a+0+a(0)$ so for $a\star b=0$ we have  $ab+a+b=0$ $$ab+a=-b \\ a(b+1)=-b \\ a=\frac{-b}{b+1}$$ so $b$ cant be $-1$ since that solution is not in $\Bbb{Q}$. Similar question might have been answered here. Is this operation true for all groups? I think so.  Thanks for the tips and help.


I was using a 320GB magnetic drive and recently upgraded to a 500GB SSD.  The clone process worked but left me with an extra partition of 178GB unallocated space.    When I click on Move/Resize under /dev/sda6 this appears, showing no available space:     Is there a safe way to merge this available space into the existing partition /dev/sda2?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


My code doesnt work at line 64 i wanted that the compiler shows me the first index of the firstName n even of the lastName but it just says "java.lang.NullPointerException".  i dont know what i ve done wrong it would be nice if someone could help me to find the failure n explain me what i ve done wrong.  thx :)  import util.IO; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.Month; import java.time.Period; import java.time.chrono.ChronoLocalDateTime; import java.time.format.DateTimeFormatter; import java.util.*; import java.time.temporal.ChronoUnit; public class PersonUtils {                   public static void main(String[] args) {                 PersonUtils prg = new PersonUtils();                 prg.execute(); }     {         final int PERS_ANZ_MAX=100;         final int TAGE_MAX = 20;         final String KLINIK ="Lausitzer Gesundbrunnen.\nCottbus und Senftenberg"; }    void execute()         {             patientenAbruf();             dateCalc();             getNextKey(null, null, null);         }        public void patientenAbruf()      {     String name = IO.readString("Bitte den Nachnamen des Patienten eingeben:");     String vorname = IO.readString("Bitte geben Sie den Vornamen des Patienten an:");     }       public LocalDate dateCalc()     {      LocalDate today = LocalDate.now();     LocalDate termin=LocalDate.of(2020, 3, 1);     Period zeit = today.until(termin);     int yearsOftime= zeit.getYears();     int monthsOfTime= zeit.getMonths();     int daysOfTime= zeit.getDays();          System.out.println("es verbleiben noch "+daysOfTime+ " Tage und "+monthsOfTime + " Monate sowie "+yearsOftime +" Jahre bis zum nächsten Termin.");         return today;       }       public void getNextKey(String name, String vorname, LocalDate termin)     {          char firstName = vorname.charAt(1);         char lastName = name.charAt(1);         System.out.print(firstName + lastName);       } }>      Exception in thread "main" java.lang.NullPointerException         at praktikum7.PersonUtils.getNextKey(PersonUtils.java:64)         at praktikum7.PersonUtils.execute(PersonUtils.java:34)         at praktikum7.PersonUtils.main(PersonUtils.java:16)>

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I can't find any publication that proves this.

It is my understanding that while a practical solution to the factoring problem will definitely break RSA, it has never been proven that the security of RSA is equivalent to factoring.  In otherwords, theoretically, someone could mathematically break RSA without breaking the factoring problem.  Are there any problems for which breaking RSA would be equivalent to (besides the obvious )?


I created a file long back named test.sh. Now I want to know when the file was created, not the modification time.  Which command I can use?  If I try stat test.sh:    File: 'test.sh'   Size: 7               Blocks: 8          IO Block: 4096   regular file Device: xxxx/12345r    Inode: 1769677     Links: 1 Access: (0761/-rwxrw---x)  Uid: (52898/  xxxx)   Gid: ( 1202/ xxxxx) Access: 2017-11-17 01:11:20.000000000 -0500 Modify: 2017-11-01 00:45:18.000000000 -0400 Change: 2017-11-26 09:16:15.000000000 -0500  Birth: -   I am unable to see the created time in the output.

I need  to find the creation time of a file, when I read some articles about this issue, all mentioned that there is no solution (like , ).  When I tried the stat command, it states  Birth: -.  So how can I find the creation time of a file?


Now that , the "add comment" link on is too close to the bounty notice on posts with bounties and 0 comments.    The "add comment" link could do with a few more pixels of whitespace above it. You can see this behavior at . Note that the "add comment" link is adequately spaced for duplicate notices (and, I assume, other closure notices) - see :

The following you could have seen in  (sorry, I've commented there, so you won't see it anymore) in Chrome 35.0.1916.153 m (current version). Notice how the add comment link overlaps the bounty box:    The same you can observe with a comment box on other sites, e.g. at this time in :    Could you shift it a bit down ?  It seems that it happens on more than just Stack Overflow (maybe all sites ?).


I heard from some sources that some applications are discarded before the professors in the committee even looked at it, based on GPA. How true is this? How do they equalize GPAs from different colleges across the world? Isn't this practice flawed?

I am a senior undergraduate (electrical) engineering student, exceedingly interested in physics. 4 years ago when entering university, for some reasons (better: illusions) I chose engineering as my major, while I was interested (and also really knowledgeable) in physics . Soon after the first semester I realized that I've decided wrong, and I must have chosen physics.  Since our university is a technical institute and does not have a strong physics department I decided to study physics on my own, without changing my major.But I took and passed the basic graduate physics courses (advanced quantum mechanics, advanced statistical mechanics, electrodynamics I & II), have done a few research projects and had a paper published (maybe 1 more in the future). I have explored lots of research areas in physics and I think I have a good potential for doing research.  While concentrating on physics, I was inattentive to EE courses. Today, while searching for graduate programs, I saw that some schools require a minimum GPA, usually 3. I just calculated my GPA and found out that it is 2.95!   Do all universities have a GPA threshold?  Since I'm changing my major and also have a good GPA in graduate physics courses, is there any way I can compensate for my (very) low electrical engineering GPA? (like by taking subject GRE, etc.) If I first (somehow) get a masters degree in physics and then apply for a PhD, can I throw away this electrical engineering GPA in my PhD application ?   Any other suggestion is warmly appreciated.


How do I make triangular parenthesis in normal text, like this ?  If I enter it directly it results in spanish exclamation and questionmarks (¡Text¿).

I was looking for a way to beautifully display UML stereotype titles including angle brackets like you can see here:    What I came up with is $\mathtt{\ll metaclass\gg}$, however, as you can see here    the brackets are too pointy (I hope you know what I mean) and the spacing between brackets and expression is too big.  Short version: Does anyone know a command for according brackets?


Without being able to manipulate gravity. How do we know that gravity is restricted to the speed of light?  or gravitational effects from an exploding star would be felt (if we were near) before we see it?

Some threads here touching speed of gravity made me think about that. This lead to some questions.    The speed of gravity was not measured until today (at least there are no undebated papers to that effect). It seems common knowledge/belief among physicists that the speed of gravity is the same as the speed of light.    And this is my question: Is that speed of light = speed of gravity a result of GR or is that fed into the theory? Or is there some evidence from other sources than GR for this? Does the same speed imply some deep-lying relation between gravity and electromagnetism?


Let $G$ be an abelian group and let $a,b \in G$ with $a$ having finite order $n$ and $b$ having finite order $m$. Assume that $m,n$ are distinct prime numbers. Prove that if $ab \neq e$, then the order of $ab$ is $mn$.   I got $a^mb^n$ becoming $ab$ to the power of m+n since they both belong to the group G.

Let u and v be elements of a commutative group, and suppose that their   orders are r and s, respectively. Show that if r and s are distinct   primes then the order of uv is rs.   I will use the follwing theorem to proof this.  Theorem: Let x be an element of order m in a finite group G. Then $$x^s=1$$ in G if and only if s i a multiple of m.    My attempt  We can here see that $$(uv)^{rs}=[commutative]=u^{rs}v^{rs}=1^s1^r=1$$ By the theorem, this tells us that this is true only if only rs is a multiple of the order of $uv$. Let the order be $ord(uv)=k$. We know that every positive integer can be written as $$a=bm+l, 0<=l<b$$ and since $r$ and $s$ is primes (positive integers), $rs$ can be written as $$rs=km+l, 0<=l<k$$ This gives ut that $$1=(uv)^{rs}=(uv)^{km+l}=1^muv^l=(uv)^l$$ If l>0 then the equation $(uv)^l=1$ contradicts that the positive integer k is the least positive integer for which $(uv)^k=1$. Therefore l=0 and $rs=km$ . We can here see that $rs$ is a multiple of k (and this proof also the theorem).  $$rs=km => k | rs => k|r     ORk|s$$ But we know that $r$ and $s$ are distinct primes, so k must be equal to one of the primes.  $$k=r => (uv)^k=(uv)^r=1v^r=v^r=1$$ And since we know that $ord(v)=s$ the theorem tells us that $r$ must be a multiple of $s$. But since both of them is primes, we get that $r=s$ but this is a contradiction (r and s are distincts as the exercise tells us).   Now, we try with $k=s$. Same as above, we get that $s=r$ which is a contradiction. Neither k=r nor k=s is right since by the theorem we get that $k=r=s$ and we have that $r$ and $s$ are distincts. This tells us that k cannot be equal to r nor s, since this gives us that $r=s$. And since we know (and as i did proof)that  $$rs=km$$, this tells us, as i wrote before, that $$k|rs$$ Since k is neither equal to $r$ or $s$, this tells us that k must be equal to $rs$. Therefore $$ord(uv)=k=rs$$.  Edit: i know that this can be prooved by l.c.m(x,y) but we have not used it so far. That's why i did not proof it with l.c.m(x,y)


Looking for a short story where Happily Married woman discovers that she was a male astronaut on a Medical Ship and that her Husband is the Pilot. As I remember the Ship crashed during a war and She is drugged to feel that she has a happy life. One day the Drug (In the shape of an egg) is boiled, thus rendering it ineffective. Can't quite remember how the story ends except I recall her continuing to take the drug to remain happy whilst her "Husband" will live with the knowledge that they will never be rescued.

I'm trying to identify a short story that was probably written in the 1970s or 1980s—at least, well before today's more accepting attitude towards human sexuality and gender roles. It must have in part aimed for a shock value that has mostly dissipated today, leaving behind a sense of anger at the violation—at least in my memory.  Unfortunately, I don't recall if I read it in a magazine or an anthology. Here's what I do remember:  A woman is trying to get her domestic chores done, cooking, dishes, laundry, garden. There may be small children running around. But something is wrong. She is lonely and sad. Her husband pays no attention to her and she feels unloved. She is also very groggy, almost drugged.   Her husband tells her that she has emotional problems and that, other than her feelings, everything is fine. But as time goes on, it turns out that she is being drugged by her husband. Somehow, she finds a way to avoid the drugs without alerting him.  Spoilers below:      She realizes that she is actually a man and her "husband," perhaps a fellow crewman, has, without consent, surgically altered him with a uterus in order to bring to term frozen embryos.   As I remember it:      Their ship has crashed, with only the two of them left alive, and that their original mission had been the settlement of a habitable planet. I don't remember if they are on the same planet. Their ship had been stocked with the frozen embryos. The fellow crewman is trying to complete the mission the only way he knows how, but despises both of them as a result.     "She" realizes that her life has been changed forever and finds the only solution available to her. She drugs her fellow crewman into believing that the two of them are actually husband and wife, happily married. Thanks to WhatRoughBeast for suggesting: Her final act is to drug herself.   I'm not sure how much I got right and how much my memory has strayed, but I'm hoping there's enough here to help someone ID the story.


You can save a lot on air resistance by drafting a rider closely, i.e. riding close to their rear wheel.  What about the rider in front? Is there a benefit, a loss, or is there no difference?  Edit - is there any way or position ensuring front cannot feel any energy loss while you enjoy resting behind or speedup ?

I know that when riding close to another cyclist, I expend less energy to go the same speed. But does the Conservation of Energy "law" mean that the lead cyclist is going to expend more energy to allow me to expend less?  (i.e. Is there a physical reason to get angry at someone drafting behind you? Does riding in their slipstream cause drag for them?)


The question and its answer is given below:  Determine whether t the function $f(x) = e^x \cos (1/x)$ is uniformly continuous on $A = (0,1)$.        but I am wondering why the $n$ is chosen like this, and if it should be $N$? and why $1/n\pi$ is $\leq \delta?$ could anyone explain this for me please?

Determine whether the function $f(x) = e^x \cos (1/x)$ is uniformly continuous on $A = (0,1)$.   I see that the function $f(x) = e^x \cos (1/x)$ is uniformly continuous on $A = (0,1)$. Am I correct?  My answer: since the function $\cos (1/x)$ is continuous on $\mathbb{R} - \{0\}$ so it is continuous on any closed interval not containing $0$ say $[a,b]$, $a\neq 0$. Since $e^x$ is continuous for all  $x$ then we can say that $f(x) = e^x \cos (1/x)$ is continuous on any interval $[a,b]$ such that $a\neq 0$. So $f$ is continuous on any subset of $[a,b]$ so it is uniformly continuous using the theorem that: A continuous function on an interval $[a,b]$ is uniformly continuous .   Is my solution correct? If not could you please provide me with the correct solution?


I have a vernee Apollo Lite which runs Android 6.0.   There's a permanent notification called "App permission management is runn..." The App name seems to be Permission Control.  It's always there and clicking on it brings me to the permission management dialog.   I would prefer if it wouldn't always clog up space in the notifications. Is there a way to hide it without changing to automatically allowing all permissions?

Is there any option to get rid of those not useful, permament notifications on Android 5.1, in particular App permission management is running  They are just taking space and focus, are not helpful to the user at all.    Edit: please note that I'm asking about the notification messages, not the icons.


On a Surface 3 tablet, how do I determine, from the console, the product key for Windows 10?  Microsoft says:     Product keys for Windows      A product key is a 25-character code that's used to activate Windows   and helps verify that Windows hasn't been used on more PCs than the   Microsoft Software License Terms allow. Windows 10: In most cases,   Windows 10 activates automatically using a digital license and doesn’t   require you to enter a product key. However, if a product key is   required, it can usually be found in the confirmation email you   received after purchasing Windows, or in the box Windows came in.   Microsoft doesn't keep a record of purchased product keys—visit the   Microsoft Support site to learn more about activating Windows 10.   Some initial googling suggests:  ********************** Windows PowerShell transcript start Start time: 20200412065627 Username: DESKTOP-9AKB65V\thufir RunAs User: DESKTOP-9AKB65V\thufir Configuration Name:  Machine: DESKTOP-9AKB65V (Microsoft Windows NT 10.0.18362.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Process ID: 27096 PSVersion: 5.1.18362.628 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.628 BuildVersion: 10.0.18362.628 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Transcript started, output file is key PS C:\Users\thufir> winver PS C:\Users\thufir> wmic path softwarelicensingservice get OA3xOriginalProductKey OA3xOriginalProductKey XXXXXXXXXXXXXXXXXX PS C:\Users\thufir> cmd Microsoft Windows [Version 10.0.18362.720] (c) 2019 Microsoft Corporation. All rights reserved.  C:\Users\thufir> C:\Users\thufir>slui.exe  C:\Users\thufir> C:\Users\thufir>exit PS C:\Users\thufir> stop-transcript ********************** Windows PowerShell transcript end End time: 20200412065743 **********************   firstly, is that above key valid?  Or, rather, how would I determine its validity?  see also:

Where can one find the key of the installed windows 10 operating system on the surface book?  I tried to find it on the case and asked google but couldn't find an answer.


Some people say that you shouldn't keep your tomatoes on the fridge, while others say that this is the best way to make them last longer. I have tried both ways and I couldn't find the difference.  So, how to make tomatoes last longer?

Storing tomatoes in the fridge tends to make them last a bit longer, but I've heard that the flavor is negatively affected. What is the best way to store them?


yep, title sucks..   Q: The expansion of (1+px+qx2)8 = 1+8x+52x2+kx3.    Find the values of p, q and k.   I found the values of $p$ and $q$ and they are:   p = 1 q = 3   But I am unable to find the value of $k$.   ANS: k = 224.

$(1+px+qx^2)^8 \equiv  1+8x+52x^2+kx^3...$  Given that expression, calculate the values of p, q, and k.  I'm guessing this is a trinomial that needs to be turned into a binomial, but how would you do it? I have no idea.


What is the root word of Yahoo? Is there any truth to the claims by some that it was used by Hebrews as a safe word to use instead of Yahweh?

In my country, people use the word "Yahoo" as an expression of enthusiasm, joy, jubiliation and victory.   What is the origin and original meaning of the word yahoo? As for that matter, what is most commonly accepted meaning of the word today? Is it commonly used as an expressive word nowadays? Or, is it the case that it is just the popular website, and the word has otherwise become redundant?


Given a rectangle with a subdivided mesh, if I edge select around the rectangle and scale outward (on the X/Y in this case) it will not scale the edges evenly. The distance from the rectangle to the final landing space is uneven (see screenshot). How do I scale an asymmetrical object evenly, so that the sides are equidistant to the origin? Note, I extruded the selection first so you can see the uneven sides more easily post X/Y scale.

I recently figured out how to do it with faces, but with edges, I can't seem to get it to work. I have a complex flat plane and i need to extend an edge loop. I tried setting to individual origins in combination with all possibilities for x,y,z axes in global and local, but it is still not extruding along the normals.   actual problem   simplified


I'm writing an application that, unfortunately, still has IE9 support. my requirement has another application posting data and redirecting (via a form POST) into my application, along with query parameters. I'm using Node and express to parse the query params and render a page. I'm running into an issue where, if there are query parameters on a post request, IE9 is actually making three requests, one POST with data, one GET with query params, and one GET without anything attached at all. This seems to effect only IE9, any suggestions on how to make it happen like all other browsers, in one request?  EDIT: now with code  <form action="/testPath/?path=placetoGo&group-id=281740360804&ref-id=2817403600034&itineraryTypeCode=RT&type=edd&num-adults=1" method="POST"> <input type="hidden" name="data" value='something'> <input type="submit" value="Submit"> </form>   so that's the request to the node/express server.  on the server, IE9 comes in with three requests, first one is a POST with the object on the body. the second is a GET with the query params, and the third is a GET without the post data or query params.

Is there a well-supported, common behavior that I can expect if I do something like this in HTML:  <form method="get" action="/somePage.html?param1=foo&param2=foo">   <input name="param2"></input>   <input name="param3"></input> </form>   Seems like this sort of thing is inherently ridiculous, but I've seen it used here and there and I was wondering what on Earth the expected behavior should be.  Are browsers smart enough to tack on "&param2=whatever&param3=whatever" to the action, or do they just throw in a second question mark?  Or what?  Are there cases where this is actually the right way to do things?


I got this question in an exam recently. I haven't been able to solve it. The question goes like this :  Does there exist a continuous surjective map from $\mathbb{R}^3\setminus \mathbb{S}^2$ to $\mathbb{R }^2\setminus \{0\}$?  I was proceeding in kind of a naïve fashion by trying to construct a  suitable map from $\mathbb{R}^3$ to $\mathbb{R }^2$ which vanishes exactly on the unit sphere. But I doubt of that will help. Even though I am not quite sure I think the claim is false and will require some nontrivial use of tricky techniques on topology. Can someone help me with some hints?

Prove or disprove : There exists a continuous surjection from $\mathbb{R}^3- S^2$ to $\mathbb{R}^2-\{(0,0)\}$ (here $S^2\subset \mathbb{R}^3$ denotes the unit sphere defined by the equation   $x^2+y^2+z^2=1$),.     This question had appeared in TIFR GS-2018 exam for PhD admissions. How should I think about such a map?


Will a diode burn out gradually over time when exposed to high rated current surges frequently.  We use a fr607 diode for freewheeling. Which comes inside a relay box assembly for a inductive load which is completely closed. After some months we get reports of relay box failures. When we open we find the diodes burnt. We want to know whether diode burn out happens instantly or will it keep working and gradually burn out over time

In the below mentioned circuit which is used for automotive EMR braking. We are facing freewheeling diode burn out (FR607 is currently being used).     We are still clueless about the cause. But as per design this is a 6 A rated diode with surge value of 300 A which according to my design team is well enough. But we suspect that this ampere rated diode is not OK.  We need to find the maximum freeweeling current in this circuit. How to calculate this current value. The coil resistance is 0.8 amps. Load of the circuit is 30 amps and the supply is a 24 V DC battery source 200 Ah.


I said this to a friend of mine, but I am not sure whether it is correct or not, in terms of word order.  You might have already had dinner.  Or maybe the correct way is: You might already have had dinner?  Thank you.

I am bit confused when it comes to the positioning of adverbs determinations in a sentence.   I was told that you can place them almost everywhere like in:     To be a teacher not only means to teach a language...         To be a teacher means not only to teach a language   Placing adverbs at the beginning or the end of the sentence is not a big problem, as far as I know, but what about the rest.   Are there rules for all this or can you place them anywhere including normal adverbs like "passionately" etc.?


First of all, I'm sorry if im explaining it too bad, but I'm at least trying...  I have a table with checkboxes,  code is like that:    <td> <?php      $date = date('Y-m-d');     $k = $date;     for($k=8; $k<=31; $k++){ ?> </td> <td> <?php          for($k=1; $k<=31; $k++){ ?> <td>   How can I get change these numbers to calendar numbers, because I want it to begin not with 1, but with the day that is today.  I hope i did ask a question right, if not, please, feel free to comment for more details

I have a datetime column in MySQL.   How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?


Might not be anime (or just Japanese animation, I don't know the difference).  I don't remember much from this movie other than a brief glimpse of an aerial view of the caterpillars moving like a herd. And the hero (or heroine) who sacrifices him/herself by jumping, or throwing herself/himself in the way of gun/laser fire. There were quick-cut shots of the laser/bullets hitting the character. Then (I believe) the caterpillars somehow heals the hero/heroine.

I can not remember much but I have had this film in my head for years I searched everything I can remember on every website I can think of.  I don't remember the exact story but I'll list everything about it can   Apocalyptic future possibly Two main characters: a boy and a girl riding ostrich-like creatures through a valley An old blind lady that senses things Crashed spaceship looking like a submarine Giant creatures looks like yaks with blue eyes, whose eyes turn red when something is about to happen The old lady says "Some say they went to the stars" while looking at the spaceship The two main characters do something and their eyes turn blue in the distance and the village cheers   This film is at least ten years old and I would appreciate it so much if you knew anything about it, or could help me find the title.


Let $f=aX^2+bX+c \in \mathbb{Z}[X]$ be a quadratic polynomial and $p$ a prime number. I need to find all solutions $x \in \mathbb{Z}$, s.t. $p$ divides $f(x)\in \mathbb{Z}$. I'm sure there is an algorithm for it, but unfortunately I don't know it.

Use the modulo version of the quadratic formula and Euler's criterion to decide if the following has a solution or not.  $2x^2+5x+8 \equiv 0\pmod{37}$  I'm not sure how I would use what was being asked of me to decide if this has a solution or not, but I have came to the conclusion that it does not, because I plugged in every possible answer $0-36$, and none of them were congruent to zero.  The way people have answered the question, isn't exactly the way I need.  I have made some progress, but I'm not exactly sure how to finish:  $2x^2+5x+8 \equiv 0\pmod{37}$  $x^2+21x+4\equiv0\pmod{37}$  $x^2+58x+841\equiv837\pmod{37}$  $(x+29)^2\equiv23\pmod{37}$  I know that if $p$ is an odd prime and $p$ doesn't divide $a$, then $x^2\equiv a\pmod{p}$ has a solution or no solution depending on whether $a^\frac{p-1}{2}\equiv 1  \space\space \text{or}\space -1\pmod{p}$.  This is where I get stuck.  Can someone help me from here?  I have a feeling this problem has no solutions, so could someone also explain to me what to do if a problem like this did have solutions.


I found , but it made me confused. I received my MacBook Pro yesterday. After unboxing, I used it for some time and then I fully charged the battery. I will be using this laptop as my primary device.  So, my question is, if I use my MacBook about 7-8 hours a day with the charger plugged in, will it be harmful for the battery? What is the recommended way?

My friend told me that I need to disconnect the power cord when the battery is fully charged. Otherwise, I will shorten the life of the battery.  Other people say you should drain it once a month or point out that for long term storage, you should charge it to 50% and then periodically (3 to 6 months) bring it back to 50% and store it again.  I am going to use my laptop at home 90% of the time. So, I plan to have the power cord connected all the time.  I'd prefer to just plugging in my MacBook Pro and letting it be on charge long term and occasionally taking it away from the charger when I'm not at home or my desk.  Are these specific recommendations worth the inconvenience?


constructor of base class Business::Business(const string& nName,const string& nAddress) {    name = nName;    address = nAddress; }  constructor that i am trying to use from derived class Restaurant::Restaurant(const float& nRating,const string& nName,const string& nAddress)         {             Business();             Business::setBusinessName(nName);             Business::setBusinessAddress(nAddress);             rating = nRating;                      }  from main I am trying to set the fields of the class from main using the above method which uses the constructor from restaurant class. I keep on getting error invalid use of 'Restaurant::Restaurant' #include <iostream> #include <string> using namespace std;  #include "Restaurant.h"    int main() {     Restaurant m;          m.Restaurant(2.55 , "s" , "224");           cout << m.getRating() <<endl<< m.getBusinessAddress() <<endl<< m.getBusinessName();          return 0; }

What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - giving you a compile error if that's missing).


I just started with a fresh machine (W10 Pro), and I just ******* it up. I created a user for this computer and it got admin rights. Also, from the users and groups menu, I have seen that there is another "administrator" account there. What I need to do is to have any account with admin rights. I don't have access to a recovery DVD/USB.  So, I've decided to remove admin rights from the user account, but, after doing that, I've realised that the administrator account is blocked, so, I can't change anything, neither create or give admin rights to any account.  I've tried several things from google, like:  Net user administrator /active:yes  which says that I don't have admin rights (yes, windows, I know that). Also, I've tried to use lusrmgr.msc and, again, no admin rights.  I've found also, that I can use shift while rebooting to access some system options, the problem is, whatever I choose, the computer seems to hang and keeps there for a while, doing nothing (no leds blinking) and I need to kill the computer using the power button.  Tried to go to uefi settings using F5, F7, F10 and F11. No luck.  EDIT:  System get stuck while trying to boot from USB/DVD or into UEFI/BOOT options using F9 (as suggested per HP support).  EDIT2: I was able to fix this issue. First, I downloaded a recovery tool from the manufacturer, that boots before the OS and allowed me to disable fastboot "feature". By having the fastboot feature disabled, I was able to use manufactured recovery tool to restore the factory image from the recovery tool.  Thanks everyone for the help.

I accidentally disabled my admin account.  After I login to another account I found I can not get admin rights, because all admin accounts on my computer are disabled.  I clicked on 'run as administrator' but only see a smart card choice (all the admin accounts are disabled so no choice provided)    I don't want to re-install my OS, help!    Details:  I have account A on my computer.    I got a new computer so I want to give the old one to my mother.    Creating a new user account B for her and disable account A.    Logout and restart.    Successfully login B, now I found I could not get admin rights because no account choice is provided.    More informations about my machine:  OS is Windows 10 and my admin account is a Microsoft Account.  I have an arch-linux installed on my computer and dual-boot it using GRUB, so maybe I can not use safe mode.


On the image the highlighted 0.03 should be 0.04 but showing 0.03 and coin needed should be 10 but showing 9  My Code:   #include <stdio.h>  int main(){      double coins[6] = {0.01,0.05,0.10,0.25,1,2};     double ans[15];     double V = 5.64;     int j=0,i=5,Tcoin = 0;     while(V>coins[0])     {         if(coins[i]<=V)         {             j = V/coins[i];             //printf("%.2lf - %.2lf = %.2lf\n",V,j*coins[i],V-(j*coins[i]));//This is for testing purpose             V = V-(j*coins[i]);             Tcoin += j;         }         i--;     }     printf("Number of coin needed is: %d\n",Tcoin);      return 0; }

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have installed Windows along with Ubuntu 16.04. After installed Windows, I can't navigate to my Ubuntu installation.  I tried with live repair, booted Ubuntu 16.04 on my flash drive and tried to update grub according to  but I'm getting this error:

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


In preparation of an exam sheet, I would like the order of questions to change randomly each time I compile the tex file. This is useful for the multiple choice and True/False questions since this reduces the possibility of fraud. I am using   \documentclass{exam}   to prepare the exam sheet. More precisely, I would like the order of questions to change randomly in each section: a different order of questions in multiple choice questions section and similarly for the section for T/F questions.  The sample code:  \documentclass{exam} \usepackage{amsmath}  %\printanswers \newcommand{\tf}[1][{}]{%     \fillin[#1][0.25in]% }  \begin{document} \section{Multiple Choice Questions}  \begin{questions}     \question What is the name of the warmest season in the northern hemisphere?      \begin{checkboxes}         \choice Spring          \correctchoice Summer         \choice Autumn         \choice Winter     \end{checkboxes}      \question Which colour is not one of three main colours?      \begin{checkboxes}         \choice blue          \choice red         \choice yellow         \correctchoice brown     \end{checkboxes}  \section{True/False Questions}  \question \tf[T] Is it true that $2+3=5$?  \question \tf[F]Albert Einstein invented the steam engine in the 18th century. T/F   \end{questions} \end{document}

If I want to shuffle the question to prepare four different questions papers having same questions but with the different question numbers, what should I do?       \documentclass[12pt,a4paper]{exam}     \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont}     \setlength\parindent{0pt}         %usage \choice{ }{ }{ }{ }         %(A)(B)(C)(D)         \newcommand{\fourch}[4]{         \par                 \begin{tabular}{*{4}{@{}p{0.23\textwidth}}}                 (a)~#1 & (b)~#2 & (c)~#3 & (d)~#4                 \end{tabular}         }          %(A)(B)         %(C)(D)         \newcommand{\twoch}[4]{                  \begin{tabular}{*{2}{@{}p{0.46\textwidth}}}                 (a)~#1 & (b)~#2                 \end{tabular}         \par                 \begin{tabular}{*{2}{@{}p{0.46\textwidth}}}                 (c)~#3 & (d)~#4                 \end{tabular}         }          %(A)         %(B)         %(C)         %(D)         \newcommand{\onech}[4]{         \par               (a)~#1 \par (b)~#2 \par (c)~#3 \par (d)~#4         }          \newlength\widthcha         \newlength\widthchb         \newlength\widthchc         \newlength\widthchd         \newlength\widthch         \newlength\tabmaxwidth          \setlength\tabmaxwidth{0.96\textwidth}         \newlength\fourthtabwidth         \setlength\fourthtabwidth{0.25\textwidth}         \newlength\halftabwidth         \setlength\halftabwidth{0.5\textwidth}        \newcommand{\choice}[4]{%       \settowidth\widthcha{AM.#1}\setlength{\widthch}{\widthcha}%       \settowidth\widthchb{BM.#2}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \settowidth\widthchb{CM.#3}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \settowidth\widthchb{DM.#4}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \ifdim\widthch<\fourthtabwidth         \fourch{#1}{#2}{#3}{#4}       \else\ifdim\widthch<\halftabwidth         \ifdim\widthch>\fourthtabwidth           \twoch{#1}{#2}{#3}{#4}         \else           \onech{#1}{#2}{#3}{#4}         \fi       \fi\fi     }     \begin{document}      \begin{questions}     \question If $a = 3 + i$ and $z = 2 - 3i$ then the points on the Argand diagram     representing az, 3az and - az are     \choice{Vertices of a right angled triangle}{ Vertices of an equilateral      triangle}{Vertices of an isosceles triangle}{Collinear}     \question If z represents a complex number then $\arg (z) + \arg\left(\bar z\right)$ is      \choice{$\dfrac{\pi}{4}$}{$\dfrac{\pi}{2}$}{0}{$\dfrac{\pi}{6}$}     \question If the amplitude of a complex number is $\dfrac{\pi}{2}$ then the number is     \choice{ purely imaginary}{purely real}{0}{neither real nor imaginary}     \question The value of $i + i^{22} + i^{23} + i^{24} + i^{25}$ is     \choice{i}{-i}{1}{-1}     \question The volume generated by      rotating the triangle with vertices at     (0, 0), (3, 0) and (3, 3) about x-axis is     \choice{$18\pi$}{$2\pi$}{$36\pi$}{$9\pi$}\end{questions}     \end{document}      \end{document}   That is I need to mark the question paper given above as Code A. And I need to print another question paper which marked as Code B and in this question paper the first question Code A should be in question number 5 (say) and similarly others also should have different positions...


Rolling a seven forces you to move the robber from its current position, to another hex. Are you allowed to move the robber to a hex (other than the desert) from which no one is producing resources? Your blockage of production becomes "trivial," and you have no one to rob. Are there times where this might make sense? One might be from a "political" point of view, perhaps if you don't want to disturb the current balance of power? Or might it make sense to block a hex where you don't want someone to build a settlement, rather than actually having one already?

Is it allowed to move the robber, but not take a random resource from another player? Avoiding stealing a resource may sound odd. One reason you might want to: you need to play a soldier card to move the robber, both to block another player from getting resources and to remove the robber from a vital hex for yourself. However, you already have seven cards in hand, and gaining one would put you at risk of discarding if a seven is rolled afterwards.  There are a few more related special cases:   Can you move the robber to the hex with no adjacent settlements (no stealing)? What if the only player whose city is adjacent to hex of your choosing has no resources - can you move the robber there? What if there are two cities adjacent from two players, but only one of them has resources - do you have to steal one from him or can you choose to steal from the player with empty hand?


If there were a space ship moving close to the speed of light, that was large enough for a smaller ship inside of it to reach close to the speed of light and it opened its hanger doors and the smaller ship exited the larger ship at that speed, Theoretically, would it be crushed by its own mass at the door horizon, when it neared the door, after exiting the door, at all, or do we even know?  (I'm not asking about relativity inside, because I know that neither ship is moving faster than the speed of light relativity speaking until the smaller ship exited the larger one, unless relativity changes as the ship approaches the door from the prospective of the person in the smaller ship). Which brings up what would it look like to the person in the larger ship from an angle where they could see out the hanger door, perspective of the small ship as it approached the door and to an outside observer (or camera) watching through the windows into the larger ship seeing the smaller ship (from that point of view moving faster than the speed of light) would it disappear, or would they just see it after?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


Critical Role spoiler ahead:   In Critical Role, Campaign 1, Vax becomes a Revenant.  I have found the rules for this listed on Unearthed Arcana and homebrew sites but have the rules for Revenants been officially published as of yet? and . lists as below:  Revenant (UA: "Gothic Heroes"), actually a subrace that can be applied to human, dragonborn, or tiefling  Does this, therefore, mean that Revenants are not official (come under the unofficial/official that UA rules do until they are published officially in a paid for book)

There's not a lot of material published by WotC for 5e (relative to previous editions), nor is there planned to be. However, there are playable races for D&D scattered around in a few different locations in published products that people may not even know about. What are all the playable races, and where can one find each?  To be clear, we're talking about first party D&D 5e materials published by Wizards of the Coast.  Both "official" races (sanctioned for Adventurers League Play) and others, like races from Unearthed Arcana or from other WotC sources outside the D&D team that are less canonical, are of interest, but please designate whether they're considered official and sanctioned or not.     Topicality and utility of this question discussed in Meta . Inspired by .


I’m working on an application that has multiple tasks that need to be completed in sequence (e.g. think placing your order with amazon).  We have a progress bar at the top of the web page which shows which step of the process you are in.  My question is with a unique situation we’ve come across.  For the application in question; the number of steps in the process will vary.  At one point; the user is asked to select an option in a drop down.  Depending on their answer;  they may have 2, 3 or 4 remaining steps.  2 of these steps are always the same.  I was wondering if anyone would have a suggestion as to how to handle this.  I think it would look weird and confusing if the number of steps in the task progress bar starts changing based on the users selection.  Thanks!

We have an application that various other departments will use to create questionnaires. These questionnaires can hide or show extra questions based on responses to previous questions.  When creating the questionnaires, authors may decide to display completion as a percentage or with a progress bar, with the progress bar working off of author-defined milestones.  Because of the dynamic nature of the questionnaire, we can't reliably know how many questions the user must answer. We have agreed it is bad to show negative progress, so for percentages we assume all questions will be shown and if we pass a group of questions that we will not show, the percentage may jump a significant amount (e.g. progress may move from 5%, to 10%, to 15%, then we skip a group of questions and end up at 70%).  Our progress bar looks something like this:  (O)===(O)===(X)---()---()---() or  (O)===(O)===(O)===(O)===(X)---()  We aren't sure to handle the dynamic questions for this display. We have discussed a few options:  1) Only show the extra milestones once we know they are necessary. We don't like this, because we feel this is similar to reducing progress percentage -- suddenly the user is ambushed by extra work, or so it would seem.  2) Stop showing the milestones once we know they aren't necessary. This may result in, for example, a user going from step 3/8 to step 4/5. We are worried this may confuse users as it changes the number of apparent steps.  3) Show all the milestones, but simply skip ahead in the display. This may result in the user going from step 3/8 to 7/8. We are worried this ALSO may confuse users as they won't know why they have been moved forward or why they don't have access to those questions.  We are leaning towards option 3.  How should we best solve this problem? Are we on the right track with option 3, above? Is option 2 better and we just worry too much?  If we skip steps, as in option 3, should we differ how we display the skipped steps from how we display completed steps?  If it matters, the questionnaire authors will be typical office staff (not technically inclined) so we can't guarantee we can pass the problem off by training them to build questionnaires and choose milestones based on progress bar limitations. End users (people taking the questionnaires) must be assumed to be relatively uncomfortable with technology in general.


Good morning. !!!  We want to develop a platform for machine learning using data from sensors.  The language used in the project is C# winform.  I want to excuter python from c# winform.  With winforms as the UI I want to run the analysis with python and see the results.  numpy, pandas, etc...  Python code for running a machine.  I would like to advise you if you know someone who has been worried about me or how.   thanks!!

How do I start a process, such as launching a URL when the user clicks a button?


In northern hemisphere, the highest temperatures are usually in July — in the middle of calendar summer. See e.g. the climate chart on . But the solstices are on 20-21 of June, almost a month before the middle of July. If the sun is at its highest on solstice day, why isn't the temperature the highest at that time?

It is common knowledge that the transition from the Spring to the Summer season occurs in the Summer Solstice when the "Sun reaches its highest excursion relative to the celestial equator on the celestial sphere" (as stated in ).  It is also stated in Wikipedia'  page: "Days continue to lengthen from equinox to solstice and summer days progressively shorten after the solstice, so meteorological summer encompasses the build-up to the longest day and a diminishing thereafter, with summer having many more hours of daylight than spring."  My question is: why is the summer, in the temperate latitudes, in average, hotter that the spring?


I've been assuming since I started DM-ing a D&D 5e campaign that a PC can sleep in light armor, but not medium or heavy armor without gaining levels of fatigue. However, I am now playing a Fighter in a different campaign and I'm not seeing those rules anywhere. Does 5th ed. allow PCs to sleep in medium or heavy armor with no penalty? I'm thinking at this point that my memory of 3.5e flavored the rules that I was DM-ing by.

In our campaign we have several characters who never remove their armor. They wear it while adventuring, sleeping, swimming, bathing, etc.  Are there any penalties for:   Wearing armor while sleeping? Wearing armor while swimming?   If there are penalties, do they change based on the category of armor (light, medium, heavy)?  I am primarily looking for RAW penalties specified for armor, but I'm also open to applications of other rules (eg - higher DC for swimming in heavy armor, disadvantage during some situations).


Is it possible to revert the latest update of the Gmail app for Android?

I have an app installed on my phone, which I've installed from the Google Play Store.  If I update the app and don't like the upgraded version, is there a way to undo the update and downgrade back to the version of the app that I had previously installed?  I tried searching a bunch on this site, and I found lots of questions about downgrading the OS/ROM/firmware, but nothing about downgrading app versions or reverting an app update.


This bug was found on a couch in . The couch, and the two beds in the room show no signs of other bugs. Is this a bed bug that I should worry about or something harmless? It was slightly larger than a common tick.


I have a 16000mAh power bank that I use to charge my phone and iPad. I was concerned of it size being a problem for Canadian-USA border security.  Is this actually a problem or will they not even care? I know this may seem like a dumb question.

When flying, are you allowed to bring battery packs / power banks? I'd like to bring my ACC 10400mAh Power Bank on several flights.


An  with lots of views was just bumped by a spam user. The post was spam-flagged and removed, and the question was .   Does this mean this  is ? Is there any other criteria for auto-protecting or does this happen when an answer on an old, popular (metrics?) question gets spam-flag-removed?  For what it's worth, I thought I saw a similar behaviour yesterday, but I was not sure.

There are a few "automatically protect questions" requests out there, but I'd like to add another twist.  I'd like to request that questions that have three or more deleted answers by users with <50 rep be automatically protected.  The reasoning behind this is that we have lots and lots of "not an answer" flags in the mod queue.  But we cannot protect a question from the mod queue, so we have to open each answer, evaluate if the question needs protecting, then protect it.    This process takes a long time, and can definitely be automated, as the only thing you really need to check is how many new users are posting non-answers or are spamming their awful products.


I'd like to do this, on OSX:  alias rm="rm -I"   In GNU rm, this means that rm will prompt if it's recursive or if it's deleting three or more files, but not if it's just deleting one or two files. However, OSX (Mavericks) rm doesn't support this.  Is there a workaround so that rm will prompt, once, when deleting several files, but won't prompt for single files, or for every single file in mass deletes?

I want to create a script that whenever there are more than three files being removed, it invokes rm -i by default. I know it will go in initialization files but can't seem to get it working.  So far:  if [$file -ge 3]; then   rm -i    exit 0  else   rm exit 1


How to calculate the following limit  $$ \lim_{n\rightarrow \infty} \left[ \left(1+\frac{1}{n}\right)\left(1+\frac{2}{n}\right)\cdots \left(1+\frac{n}{n}\right) \right]^\frac{1}{n} .$$  I was trying this by taking the $\log $ of the product and then limit but I am not getting the answer could anybody please help me. And, also is there any general rule for calculating the limit for  $$ (a_1a_2.\dots a_n)^{\frac{1}{n}}.$$  Thanks.

I'd like a hint to show that:  $$\lim \frac{1}{n} \sqrt[n]{(n+1)(n+2) \cdots 2n} = \frac{4}{e} .$$  Thanks.


I have a two-year-old son who is extremely mild-mannered but hates having his teeth brushed. He cries, squirms, clamps his mouth shut, sticks out his tongue to block the toothbrush, etc. He's been getting better about this lately, but I still don't get a lot of time to brush his teeth before he starts making it very difficult.  My wife and I have noticed that he seems to have a significant amount of... something... built up on his bottom teeth around his gums. Even when he allows me to brush his teeth vigorously for a minute, I can't get the buildup off. What is this stuff? Is this dangerous to his oral health? How can I get it off?  At this point we still haven't brought him to a dentist. I can't imagine any possible way will allow a stranger to stick his hands in my son's mouth for any extended period of time to clean his teeth.

My toddler doesn't like to get his teeth brushed. How do I get him to be more cooperative?  He knows it's part of the bedtime routine and doesn't try to avoid it. He will happily grab and hold out his toothbrush for us to put toothpaste on it, and then he enjoys sucking and chewing it.   When he's done that for a short while, we decide it's necessary to do it properly, and that often ends in me holding him while my wife brushing his teeth, while we explain what we're doing and why. It only takes 20 seconds, but it's always accompanied by screaming and squirming. I'd like to find a way to avoid this. As soon as we're done, everything is fine again.  Clarification and update: At this age, we don't expect him to be able to brush his teeth on his own. What I meant was that he didn't allow us to do it for him either.    In the meantime, four months have passed since I asked this, and he's developed a lot. Now he gladly lets us brush his teeth carefully and cheerfully.   Update 2: Another 6 months have passed, and he's still not enjoying the experience. He understands that it has to be done, and he sees us do it too. Sometimes he'll happily let us brush his teeth, other times it's a struggle.   We are using several suggestions from the answers below -- we sing, we distract, we talk about "dirty teeth" and brushing the "dirty sugar" away, we let him brush on his own for a while and then take over, he can see himself in the mirror, etc. All of this helps, but one factor certainly is that he's tired, and that's natural because brushing teeth is part of the bedtime routine.


I am using this pattern to check   public static final Pattern VALID_FIRST_CHARACTERS = Pattern.compile("^[\\ \\'\\-]");  public boolean isValidFirstChar(String name) {     if (VALID_FIRST_CHARACTERS.matcher(name).matches()) {         return true;     }     return false; }   no luck, can somebody help me please ?

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


There is an error while i insert "3 + 1 room" or update description area with "3 + 1 room" in MySQL database.  I saw there is no addition sign "+" in MySQL log (data inserted in database)  UPDATE testtable set status='0',title='3   1 room', description='3 1 Daire. 1 Balkon kapalı.' WHERE id='60';  create table testtable ( id int(11), status tinyint(4), title varchar(20),  description text) ENGINE=InnoDB DEFAULT CHARSET=utf8    php file  $baglanti=new PDO("mysql:host="localhost";dbname="test";charset=utf8",$us ername,$passwd) or die("error"); $val=$baglanti->exec("UPDATE testtable set status='0',title='$title',     description='$dest' WHERE ad_no='$ad_no' "); return $val;   What should I do?  EDIT  update.php  <?php         include("database.php");          $fields = array();         $values=array();         $fvalue=$_POST['id'];          $table=$_POST['table'];         foreach ($_POST as $key => $value) {                  if( $key!='table' && $key!='id' && $key!='alan'){                         if( strpos($key,"date")){                                 $datet=new DateTime($value);                                 $value=$datet->format('Y-m-d');                         }                         array_push($fields,$key);                         array_push($values,$value);                 }         }         $alan=$_POST['alan'];  $ID=Updt($table,$fields,$values,$alan,$fvalue);          if($ID!=0){                  echo $ID;         } ?>   database.php  <?php       $baglanti=new PDO("mysql:host="localhost";dbname="test";charset=utf8",$us ername,$passwd) or die("error");  #UPDATE function Updt($table,$set,$value,$field,$fvalue){         $bag=$GLOBALS['baglanti'];         $sts='';         if(is_array($set)){                 for ($i=0; $i < count($set); $i++) {                         $sts.=$set[$i]."='".$value[$i]."',";                 }                 $sts=rtrim($sts,",");         }else{                 $sts=$set."='".$value."'";         }         $val=$bag->exec("UPDATE $table set $sts WHERE $field='$fvalue'");          return $val; }  ?>   this one, programmers wrote code. I try to take question parts from all code. There were lots of codes in file.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Problem  I am trying to typeset my code using package minted. However, when I chose the default setting (where showspaces and showtabs options are both false by default), some characters (i.e. ^^I)seem to be indicating spaces are shown.   Note the in the following minimal example, the printf("hello, world"); and return 0; are intentionally made to show the aforementioned effects.  \documentclass{article} \usepackage{minted}  \usepackage[margin=0.5in, nohead]{geometry}  \begin{document} \begin{minted}[linenos=true, showtabs=false]{cpp} int main() {     printf("hello, world"); return 0; } \end{minted}

I am producing LaTeX output with org mode.  My code snippets wind up being indented with tabs, because of my c-mode settings.  Changing these would be inconvenient.  Although the snippet I am posting could be compiled with latex, I need to be able to compile Unicode documents, so I am using xelatex -shell-escape to compile the automatically generated latex source. The generated source looks like this: Which produces LaTeX like the following (some irrelevant stuff removed, this reproduces the problem):  \documentclass[11pt]{article}  \tolerance=1000  \usepackage{fontspec}  \usepackage{minted}  \author{Glen Stark}  \date{\today}  \title{sample}  \begin{document}   \section{Foo}   \begin{minted}[]{c++}  void foo()  {      void bar = fb();      std::cout << "fbar" << "\n"  }  \end{minted}  \end{document}  Compiling this with xelatex -shell-escape results in output like:  void foo() ^^Ivoid bar = fb(); ^^Istd::cout //etc.  The whitespace in the minted block is a tab.  Obviously xelatex is inserting something funny in place of the tabs.  I have a workaround where I force generation of spaces instead of tabs, but this is inconvenient. Anyone know what the fix/problem is?


For this code row   bool rowsAffected = CustDAL.AddNewCust(ref newCustomer);   I get an error:     An object reference is required for the non-static field, method, or property    'CustDAL.AddNewCust(ref Customer)     And the code in the CustDAL looks like   public bool AddNewCust(ref Models.Customer newCustomer)     {         SqlCommand command = new SqlCommand         {             CommandText = string.Format("INSERT INTO CUSTOMER VALUES('{0}', '{1}', '{2}', '{3}','{4}')", newCustomer.Title, newCustomer.Forename, newCustomer.Surname, newCustomer.Address, newCustomer.PhoneNumber)         };          return ExecuteNonQuery(command);     }

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


i am new to ubuntu...  i recently install ubuntu 13.10. ,after installing ubuntu ,i got a notification that update are available.the notification come from software updater app,i got 2 updates,one is come yesterday and other one come today,i update the first update ,after i got another update today,i wait and post this question..  are this updates send by ubuntu ? are this updates are software(apps) updates ? is it safe to update ?

Why are some updates called Important security updates?  How are they different from other updates?  Is my system insecure, If I don't install them?  How can there be very frequent security updates?  Does it mean my Ubuntu is very unstable or insecure?


When I'm running the following command I got a error:  $ sudo apt-get update php7.1 The following packages have unmet dependencies:  php7.1 : Depends: libapache2-mod-php7.1 but it is not going to be installed or                    php7.1-fpm but it is not going to be installed or                    php7.1-cgi but it is not going to be installed           Depends: php7.1-common but it is not going to be installed

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I have this code in Activity.java:   public void scan(View view){     EditText text = (EditText) findViewById(R.id.editText3);     text.setText("asdas"); }   and this in Activity xml:  <Button     android:id="@+id/button"     android:layout_width="0dp"     android:layout_height="wrap_content"     android:background="@color/colorPrimary"     android:onClick="scan"     android:text="Scane"     android:textColor="#fff"     android:layout_marginStart="8dp"     android:layout_marginEnd="8dp"     tools:layout_editor_absoluteY="271dp"     tools:layout_editor_absoluteX="8dp" />  <EditText     android:id="@+id/editText3"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:ems="10"     android:inputType="textPersonName"     android:text="Name"     tools:layout_editor_absoluteX="89dp"     tools:layout_editor_absoluteY="165dp" />   When click on button the app crash with:  Attempt to invoke virtual method 'void  android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference   Why, im use Android Studio latest version??

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've searched around and haven't found this specific question asked.  I need to redirect all the 'subfolders' of a directory to the parent directory.  For example, the parent directory is example.tld/directory and all subdirectories such as example.tld/directory/subdirectory-1 and example.tld/directory/subdirectory-2 etc all need to redirect to example.tld/directory  For clarification, these aren't actual directories but Drupal sub-paths, but I believe it should work to do this via htaccess.  Just to make it crystal clear, the URLs  example.tld/directory/subdirectory-1  example.tld/directory/subdirectory-2  etc...  should all redirect to  example.tld/directory  The idea is to make these subdirectories inaccessible to anyone and be sure that the search engine crawlers do not index these subdirectories.  What would be the proper htaccess code to achieve this?

I need to 301 redirect all child pages of a specific parent directory on my website.   i.e. redirect www.example/com/parent/child and www.example.com/parent/another-child etc. to www.example.com/parent  Is this achievable using the .htaccess file?


Ran across a shell script that had '=~' in a contitional and I was wondering what it meant. Not much luck on Google or SO sites.  Example:  if [[ $VAR =~ 'this string' ]]

Given a string and a hash returned by openssl, why using == doesn't match them correctly but =~ does?  Background question:


i dont know even how this is name. If i add here new question then i title is disappearing hits. I can add default value in input, but this isnt this. Here is another. How can i make this? And how can i make this in input password? There is *, so how can i write in clean text? Generally what this is name?  Thanks for help!   <form> First name: <input type="text" name="firstname" value="First Name" />
 Last name: <input type="text" name="lastname" value="Last Name" />
 Password: <input type="password" name="pwd" value="password" /> </form>

I want the search box on my web page to display the word "Search" in gray italics. When the box receives focus, it should look just like an empty text box. If there is already text in it, it should display the text normally (black, non-italics). This will help me avoid clutter by removing the label.  BTW, this is an on-page  search, so it has no button.


I asked the following question:   I found several technical, perfect answers to my question after a long search of my own. Yet the question is closed for being "non-constructive".   Is there a way in which I can answer my own question?

Questions can be closed or marked as duplicates.  What does it mean for a question to be "closed"? What does it mean for a question to be marked as a "duplicate"? Who can close a question? What are the reasons for closing a question ? Is closure the end of the road for a question? When are closed questions eligible for deletion?   Related        For more information, see "" in the .


This a follow up on . Why doesn't intitle:1 show questions which have my search terms in the title only. Filter out questions which do not have all the words in the title.  Example: intitle:1 cookie static (or intitle:1 +cookie +static)  Why is it displaying questions which do not have both words in the title? Is there a boolean format I am not aware of?

I'm trying to search for questions that have specific words in their titles using the  search feature, but it seems that it does not return any search results.  Using this feature, I tried to search for questions on Stack Overflow with , but this search query returns no results.  Is it still possible to filter the search results based on words in question titles?


I want to generate unique 25 characters and numbers long string using the following code,   public static String generateString() {    String uuid = UUID.randomUUID().toString();    return uuid; }   How I can set the size of the generated String and remove the - symbols?

I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string.  In my situation it would be used as a unique session/key identifier that would "likely" be unique over 500K+ generation (my needs don't really require anything much more sophisticated).    Ideally, I would be able to specify a length depending on my uniqueness needs. For example, a generated string of length 12 might look something like "AEYGF7K0DM1X".


I'm working with 64 bits floating point arithmetic as defined by IEEE 754. The smallest subnormal number is: 2^-1074 = 5e-324 = 5 * 10^-16 * 10^-308     Adding the latter to realmin results in: 2^-1022 + 2^-1074 = 2.2250738585072014 * 10^-308 + 5 * 10^-16 * 10^-308 = (2.2250738585072014 + 0.0000000000000005) * 10^-308 = 2.2250738585072019 * 10^-308     When performing the addition in Python the result is slightly different. Here's the simple script:  import numpy as np  realmin = np.power(2.0, -1022) print( "realmin\t\t" + str(realmin) )  smallestSub = np.power(2.0, -1074) print( "smallest sub\t" + str(smallestSub) )  realminSucc = realmin + smallestSub print( "sum\t\t" + str(realminSucc) )   The output is:  realmin         2.2250738585072014e-308 smallest sub    5e-324 sum             2.225073858507202e-308   Why does it rounds the sum? There's space for one extra digit as shown by realmin output.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am a bit afraid that google will punish us as of duplicate content. Let's say there are three domains.    service_a.example service_b.example mycompany.example   All three domains shall share the same Colors/Styles/CI, so I want to have all sources in one place. If I change the button color, all three domains should update.  Idea: mycompany.example is the main domain which has a path /service_a and /service_b. I want to configure NGINX that way that if a user visits service_a.example the content of mycompany.example/service_a gets served. My idea is just to add a canonical link from https://service_a.example to https://mycompany.com/service_a.

Lets say I have a domain already, for example www.automobile4u.com (not mine), with a website fully running and all.  The title of my "Website" says:    <title>Used cars - buy and sell your used cars here</title>   Also, lets say I have fully SEO the website so when people searching for the term buy used cars, I end up on the second or first page.  Now, I want to end up higher, so I go to the google adwords page where you can check how many searches are made on specific terms.  Lets say the term "used cars" has 20 million searches each month.  Here comes the question, could I just go and buy that domain with the search terms adress, in this case www.usedcars.com and make a redirect to my original page, and this way when people search for "used cars", my newly bought domain name comes up redirecting people to my original website (www.automobile4u.com)?  The reason I believe this benefits me is because it seems search engines first of all check website adresses matching the search, so the query "used cars" would automatically bring www.usedcars.com to the first result right?  What are the downsides for this?  I already know about google spiders not liking redirects, but there are many methods of redirecting...  Is this a good idea generally?


I have a structure in which the operator template type. Want to make the correct announcement of this structure in header. Write the following code  header file  struct add_positive {     template<typename T>     T operator()(T value, const T& now); };   .cpp file  template<typename T> add_positive add_positive::operator()(T value, const T& now) {     if (now >= 0) {         return value + now;     }      return value; }   But when compiling get the following error:  error: prototype for ‘add_positive add_positive::operator()(T, const T&)’ does not match any in class ‘add_positive’  add_positive add_positive::operator()(T value, const T& now) { error: candidate is: template<class T> T add_positive::operator()(T, const T&)   T operator()(T value, const T& now);  Can't understand what I did wrong?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


i'm trying to install nordvpn on Ubuntu 20.04, but i get 'NOSPLIT'. I tried multiple solutions here in the stack but it seems I can't get an answer. here what I get after the apt update.     Get:1 http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [317 B]     Err:1 http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease               Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB] Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [107 kB] Reading package lists... Done                                                   E: Failed to fetch http://repo.nordvpn.com/deb/nordvpn/debian/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: The repository 'http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease' is not signed. N: Updating from such a repository can't be done securely and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  after sudo dpkg -i nordvpn-release_1.0.0_all.deb  seems it didn't add nord repo to sources.list so i add them manually to /sources.list.d/nordvpn.list deb [arch=amd64] http://repo.nordvpn.com/deb/nordvpn/debian stable main deb [arch=i386 ] http://repo.nordvpn.com/deb/nordvpn/debian stable main  and I tried to use different network wifi and provider but no light :(. thanks for any help. .

So I am on my college network which requires me to sign in to the browser before I start using the internet. I do so succesfully but on a clean install of Ubuntu, when I try to do sudo apt update, I get the following output:  $ sudo apt update Get:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease [2,847 B] Err:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [2,854 B]     Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              ... Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [2,855 B]    Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease ... Get:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [2,857 B] Err:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Fetched 11.4 kB in 0s (18.3 kB/s) Reading package lists... Done E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) ... E: Some index files failed to download. They have been ignored, or old ones used instead.   But when I do wget http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease, I get this output success:  2017-04-01 05:34:57  http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Resolving in.archive.ubuntu.com (in.archive.ubuntu.com)... 91.189.88.162, 91.189.88.149, 91.189.88.152, ... Connecting to in.archive.ubuntu.com (in.archive.ubuntu.com)|91.189.88.162|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 246846 (241K) Saving to: ‘InRelease.3’  InRelease.3         100%[===================>] 241.06K   110KB/s    in 2.2s      2017-04-01 05:35:00 (110 KB/s) - ‘InRelease.3’ saved [246846/246846]   Clearly I have internet access from my browser and on wget but when I do sudo apt (or apt-get) update I get this error.  PS: This question is not similar to other threads as their solutions do not seem to work on mine        As I have found out, this problem is happening only to me, not others on the college network. Despite setting up the network according to instructions, this still happens. Any more help would be appreciated  EDIT: So as it turns out, 50% of us in the college are facing this issue, while 50% aren't despite having no issues with the hardware and sudo apt update before the last week. Thanks to @David Foerster for helping me throughout all this time.  As it stands, the issue has been raised to our college's networking department :)


[I am stuck here]     I want to install Ubuntu alongside Windows Vista but all tutorials are too old, anyone knows what I have to do to keep all my files and keep Linux in the 20gb partition.  Can someone tells me how to do it or is there a new tutorial that you would suggest.  thanks

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


I have built a detached garage which will have a 125A subpanel. (125A panel because it will double as a work shop with A/C and heat and power equipment). Power will brought in from the house load meter panel which only has 12 spaces which are all taken. In fact, several spaces are occupied by tandem breakers to carrying 220V circuits requiring the second hot leg to be carried by another tandem breaker with a space in between in order to pick up the other side of the bus. (I think this is illegal or should be. This is the way the panel was wired when we purchased it).    With the second panel installed adjacent to the meter base, I plan to get rid of all tandem breakers (which I do not like anyway) and move several breakers to the new panel which has 24 spaces, freeing up spaces in the meter base panel where I will install the 125A breaker to power the subpanel in my detached garage.   Moving these circuits to the new panel will require splicing wires in order to reach the new panel breakers. My question is: Does NEC code allow for splices inside the circuit breaker panel? Are there special type splices needed for this situation or are wire nuts allowed? All splices will be done correctly and taped. A master electrician and electrical engineer have said it is legal but a NEC reference, page and paragraph, would be helpful incase my inspector objects.   Thanks in advance for your response.  Don

So I was working on breaking a tandem 15A single-pole breaker into two 15A single pole breakers, one being a Combination AFCI.  After getting the panel open and moving one circuit to a new, 15A single pole (non-CAFCI), I discovered that my second circuit, the one I want on the CAFCI, has too short of a neutral wire to reach the CAFCI breaker's neutral screw.  It looks to have been shortened to be just long enough to reach the neutral bus bar.  Is it against code to splice/pigtail a new, short piece of romex onto the existing neutral (w/ a wire cap) so I can connect it to the CAFCI's neutral screw?  Edit: Just for completeness, this relates to .  I was replacing the AFCI receptacle with a CAFCI breaker, on the advice of an electrician, when I encountered this short neutral wire inside the panel.  The electronics and sensing apparatus inside of an actual CAFCI breaker have been around long enough that most of the kinks have been worked out.  The Leviton AFCI Receptacle, OTOH, is still fairly new and might not be usable in all wiring configurations yet.


I am new to data science. I use Anaconda on windows 7. I plotted a sine curve by doing the following on iPython:  import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 1000) y = np.sin(x) plt.plot(x, y)   And I got this:    But when I got ready to name the axes, the curve disappeared. I wrote this code:  plt.xlabel("Time")   And I got this:    I also wrote this:  plt.ylabel("Speed")   And got this:    The lecture video I use as a guide does not display images until the tutor enters the code "plt.show()". That gives me the impression that iPython adds all the information together behind the scene and displays the final result on request. But as you can see, my iPython displays the image without the "plt.show()" code and does not add previous instructions.  So, what should I do? (i.e. how can I plot a curve with labelled axes?)

I am new to data science. I use Anaconda on windows 7. I plotted a sine curve by doing the following on iPython:  import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 1000) y = np.sin(x) plt.plot(x, y)   And I got this:  But when I got ready to name the axes, the curve disappeared. I wrote this code:  plt.xlabel("Time")   And I got this:  I also wrote this:  plt.ylabel("Speed")   And got this:   So my question is, how can I plot a curve with labelled axes? (In other words, I will like the x-axis to be Time, the y-axis to be Speed and the curve intact)


public class GenericMethods {     public <T> void f(T x) {         System.out.println(x.getClass().getName());     }     public static void main(String[] args) {         GenericMethods gm = new GenericMethods();         gm.f("");         gm.f(1);         gm.f(1.0);         gm.f(1.0F);         gm.f('c');         gm.f(gm);     } } /* Output:   java.lang.String   java.lang.Integer   java.lang.Double   java.lang.Float   java.lang.Character   GenericMethods  */   What does public <T> void f(T x)  mean? Is it a return type? But the function doesn't actually return anything. What does it refer to? I couldn't place it under any of the general function header categories : like acces-specifier, return-type,etc.

There's a good discussion of Generics and what they really do behind the scenes over at , so we all know that Vector<int[]> is a vector of integer arrays, and HashTable<String, Person> is a table of whose keys are strings and values Persons.  However, what stumps me is the usage of Class<>.  The java class Class is supposed to also take a template name, (or so I'm being told by the yellow underline in eclipse).  I don't understand what I should put in there.  The whole point of the Class object is when you don't fully have the information about an object, for reflection and such.  Why does it make me specify which class the Class object will hold?  I clearly don't know, or I wouldn't be using the Class object, I would use the specific one.


I'm currently trying to configure our exchange 2010 to be used as a external smtp relay. What I'm trying to do is allow certain websites that we manage to send email using our exchange server smtp relay. I was told that I needed to created a receiver connector under Server Configuration>Hub Transport. After I created the receiver connector I added the following confi in which I added the website IP address in the "Receiver mail from remote servers ect" then unders Authentication I selected Externally Secured,TLS and under permissions I selected exchange servers.  I went to one of our websites and configure it with this configuration and I'm still getting "SMTP connect failed."  Can someone help me? or what is the proper way to get this to work. Multiple websites are going to be using this exchanger server SMTP relay in a secure way.


Isn't it better to defend at the narrow door (choke point, like in Spartan 300), than to charge out and get surrounded?  The orcs could have easily pierced those horses with their spears which will throw them off to the ground and get them killed.

In the Battle of the Hornburg from The Two Towers, Aragorn and Theoden say "We must ride out." Why did they do this?  Was it just a matter of honor? Did they ride out on their horses in the middle of battle because they thought it was the end, as they were outnumbered? Was it because Aragorn knew Gandalf was coming so they were confident they were about to win?


I am very new to Linux and Ubuntu. I have an obsolete brand of computer with these specs: Compaq Presario-SR1500NX, 3000+AMD Processor, 256MB-PC2700 memory, 80GB-7200RPM hard drive.  I am stuck with the "Low Graphics Mode" box and have yet to find an answer that works for me. I wiped my hard drive and installed Ubuntu, thinking it would work fine. So, now, I just have Ubuntu OS that won't work. Is my system compatible and if not, what WILL work as an operating system? I'm not computer savvy so thorough explanation would be appreciated.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Consider the following MWE which uses pgfplotstable and longtable to output some csv file content. The table counter are incrementet twice for each table added. Why?  \begin{filecontents*}{mytable.csv} Chem.;Avg. Conc.;Avg. Conc. Norm.; Conc. Unit;Mass sum;Mass unit ammonium;159083,33;114450,21;\si{\micro\gram\per\liter};2839,463;\si{\kilo\gram} \end{filecontents*}   \documentclass{article}  \usepackage{booktabs, longtable, geometry}  \usepackage{siunitx} \usepackage{pgfplotstable} \pgfplotsset{compat=newest,} \pgfplotstableset{ begin table=\begin{longtable}, end table=\end{longtable}, %every head row/.append style={before row=\captionof{table{Caption}} } \usepackage{capt-of}  \begin{document}  {\centering \captionof{table}{First table} \pgfplotstabletypeset[     header=has colnames,     col sep=semicolon,     read comma as period=true,     display columns/0/.style={column type={l},string type},      display columns/1/.style={sci,sci zerofill,sci sep align,},     display columns/2/.style={sci,sci zerofill,sci sep align,},     display columns/3/.style={column type={l},string type},      display columns/4/.style={sci,sci zerofill,sci sep align,},     display columns/5/.style={column type={l},string type},  ]{mytable.csv}\par }  {\centering \captionof{table}{Second table} \pgfplotstabletypeset[     header=has colnames,     col sep=semicolon,     read comma as period=true,     display columns/0/.style={column type={l},string type},      display columns/1/.style={sci,sci zerofill,sci sep align,},     display columns/2/.style={sci,sci zerofill,sci sep align,},     display columns/3/.style={column type={l},string type},      display columns/4/.style={sci,sci zerofill,sci sep align,},     display columns/5/.style={column type={l},string type},  ]{mytable.csv}\par }  {\centering \captionof{table}{Third table} \pgfplotstabletypeset[     header=has colnames,     col sep=semicolon,     read comma as period=true,     display columns/0/.style={column type={l},string type},      display columns/1/.style={sci,sci zerofill,sci sep align,},     display columns/2/.style={sci,sci zerofill,sci sep align,},     display columns/3/.style={column type={l},string type},      display columns/4/.style={sci,sci zerofill,sci sep align,},     display columns/5/.style={column type={l},string type},  ]{mytable.csv}\par }  \end{document}

The 'longtable' documentation says to use   \caption{Your caption here}   for captions, but I can't see where to specify the 'longtable' options in the example where pgfplotstabletypeset and longtable is used together.  MWE: You'll see currently the Table 1 text is just included, but that would mean it would be excluded from ToC and index of tables.  \documentclass{article}   % MWE from http://tex.stackexchange.com/questions/40411/import-files-with-pgfplotstable-and-split-tables-across-multiple-pages \usepackage{pgfplotstable} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \usepackage[a4paper,top=4in,bottom=4in,right=1in,left=1in]{geometry} %%% change the margins in your file suitably. \usepackage{filecontents}  \usepackage{pgfplotstable}  \usepackage{booktabs}  \usepackage{filecontents} \usepackage{longtable}  \begin{document} \begin{filecontents}{testdata.dat} Idx  Nam Dim Grd 1   Ady 53  F 2   Bar 72  C 3   Cor 83  B 4   Dar 58  D 5   Esa 68  C 6   Foo 67  C 7   Gar 74  C 8   Hur 65  D 9   Jaz 85  B 10  Ker 91  A 1   Ady 53  F 2   Bar 72  C 3   Cor 83  B \end{filecontents}  {\large Table 1}  \pgfplotstableset{ begin table=\begin{longtable}, end table=\end{longtable}, }  \pgfplotstabletypeset[col sep=space, header=true,     columns={Idx,Nam,Dim,Grd},      % display specified columns columns/Idx/.style={fixed,fixed zerofill,precision=0,column type=r}, columns/Nam/.style={column type=l,string type}, columns/Dim/.style={fixed,fixed zerofill,precision=1,column type=r}, columns/Grd/.style={column type=l,string type}, % requires booktabs to place horiz rules every head row/.style={before row=\toprule, after row=\midrule\endhead},  every last row/.style={after row=\bottomrule} ]{testdata.dat}  \end{document}   Would I put it in the \pgfplotstableset or \pgfplotstabletypeset sections, and with what syntax?


I just became thane in Whiterun and was wondering, What crimes can you get away with as thane, and how many times can you use your rank as an excuse for crime?

I'm now a Thane in Whiterun - I was caught picking a simple lock in an inconsequential area and I was able to pull rank and tell the guards that they should remember who they're talking to, and they told me that they'd let it go but that I should be more careful.  Is that just talk, or can I get away with things repeatedly? I'm guessing that I can't murder people and then claim diplomatic immunity, but can I always get away with low level crimes like picking locks or pickpocketing? Is there a (daily?) limit after which I'm arrested? Does it matter which guard sees me?  Aspiring supervillains want to know.


For any real matrix $A$, write down a sufficient condition for a real matrix $E$ to exist such that $E^2 = A$, and prove that this condition is sufficient.   How would I go about answering this question? I need a starting point please

Under what conditions does a matrix $A$ have a square root? I saw somewhere that this is true for Hermitian positive definite matrices(whose definition I just looked up).  Moreover, is it possible that for some subspace $X \subset M_n(\mathbb R)$ of $n\times n$ matrices over $\mathbb R$, the map $A \mapsto \sqrt{A}$ is continuous? People who want to consider more generality can also look at matrices over $\mathbb C$.  Thank you.


i have installed the extention packs of virtualbox a few monent ago and and again i click the button to install it it shows an other error related to BIOS   currently i am using an integrated motherboard of gigabyte company is there any solution for this issue  i have vt-x amd amd-v enabled

So I am trying to run Ubuntu in a virtualbox but on installing 12.10 from the .iso I was greeted by a warning telling me that audio wouldn't work then I pressed next and this popped up:  Failed to open a session for the virtual machine Tux 3 VT-x features locked or unavailable in MSR (VERR_VMX_MSR_LOCKED_OR_DISABLED) Details  Result Code:  E_FAIL (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}   And then it doesn't work.  I assigned 4GB of my 8GB to Ubuntu, 100 dynamically allocated GB of space, and 12MB of graphics memory. I'm running an Asus p8z77 V LX mobo with an Intel i5 3550 processor.   Downloaded 12.04.2 on my PC and tried again. Still getting the same message.


I have got this calculation in my c++ code r=(float)736778906400/100 now obviously the answer should be 7367789064,but compiler returns 7367789056 what is the problem

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Last night, I was converting movies with handbrake. There was steam and ubuntu software centre running in background. When I woke up, I saw a message 'Ubuntu faced an internal error......' and handbrake is crashed. So, I think it was because of lack of swap memory (2GB swap file). Anyone knows how to increase swap file size? (My PC Have 4GB RAM)

Is there a way to increase my existing "swapfile" without having to destroy and re-create it? I would like to up my swap space from 1GB to 2GB.  Currently it is set up as such:  $ sudo swapon -s Filename                Type        Size    Used    Priority /swapfile               file        1048572 736640  -1 $ ls -lh /swapfile -rw------- 1 root root 1.0G Nov  9  2016 /swapfile   I'm using Ubuntu 14.04.