Let $n$ be a natural number. Prove that    $\displaystyle \sum_{k=1}^n\lfloor n/k\rfloor+\lfloor \sqrt{n} \rfloor$ is even.   I tried to introduce the fractional part, but it didnt help me. Next, I considered an inequality to create a bound, but that too was in vain. Next I found out that $\lfloor x \rfloor = \lfloor x/2 \rfloor +\lfloor x+1/2 \rfloor$. I applied this, but as all were as a sum, it became hard for me to cancel out and it made my work difficult. Now the next problem is about the square root in the box. I once saw in an example that   $$\lfloor \sqrt{n}+ \sqrt{n+1} \rfloor = \sqrt{4n+1}$$  Now even if this may seem useful, I cannot understand how to remove the $\lfloor \sqrt{n+1} \rfloor $ from the identity. Any help would be helpful!

Let $n$ is a natural number. Prove that $$\left\lfloor\frac{n}{1}\right\rfloor+\left\lfloor\frac{n}{2}\right\rfloor+....+\left\lfloor\frac{n}{n}\right\rfloor+\left\lfloor{\sqrt{n}}\right\rfloor$$   is even.   I used induction and the inequality $$x-1<\lfloor{x}\rfloor\le{x}$$ to prove it.  Is there any other, nicer way to do it?


I am reading  and I am somewhat puzzled by the use of global and local. Specifically, I understand that the generators of two-dimensional conformal transformations are not globally defined on the Riemann sphere $C \cup \infty$, and the only globally defined Virasoro generators are $\{l_0, l_1, l_{-1}\}$ (and the corresponding antiholomorphic versions).  But at later stage (page 9) he says      Strictly speaking the only true conformal group in two dimensions is the projective (global) conformal group, since the remaining conformal transformations of (1.5) do not have global inverses on $C \cup \infty$.   What does he mean by "projective (global) conformal group"?

in Blumenhagen Book on conformal field theory, It is mentioned that the algebra of infinitesimal conformal transformation is different from the conformal algebra and on page 11, conformal algebra is defined by a redefinition of generators of infinitesimal conformal transformation. I have three question about this :   How this is possible that by a redefinition of generators, one could obtain a sub-algebra of an algebra? in this case one obtain conformal algebra as a sub-algebra of algebra of generators of infinitesimal conformal transformations? Does this is related to «special conformal transformation» which is not globally defined? How are these related to topological properties of conformal group?   Any comment or reference would greatly be appreciated!


For $x \in \mathbb{R}$, solve for $x$: $$ 4^x=3^x+1 $$ By inspection, it's easy to see that $x=1$ is a solution. How would I go about showing that it is the only solution? If I look at the graph it's quite obvious, but I don't see how I can do it formally.

I have problem with equation: $4^x-3^x=1$.   So at once we can notice that $x=1$ is a solution to our equation. But is it the only solution to this problem? How to show that there aren't any other solutions?


I can't find a way to copy the contents of one folder to all sub-folders of another folder in linux: in one folder I have X files to copy to all subfolders of another folder (A1/dir, B2/dir, C3/dir, D4/dir, ...)

Is it possible to copy a single file to multiple directories using the cp command ?  I tried the following , which did not work:    cp file1 /foo/ /bar/ cp file1 {/foo/,/bar}   I know it's possible using a for loop, or find. But is it possible using the gnu cp command?


I need to trigger an action (a 30 frames animation) attached to a nurbs path, made by keyframing the "evaluation time" in the curve menu. But it's not listed in the objects of my scene, I checked :      logic.scene = logic.getCurrentScene()      # print all the objects in the scene     for obj in logic.scene.objects:             print(obj.name)   It's confusing because it IS listed in the outliner along with the other objets..?  So how can I access my curve so I can use playAction()? Is there another way to acces an action in the scene?

I animated a rollercoaster using a Bezier Curve and a Follow Path Constraint affecting the vehicle.  Then I tried to use the automatically created action in the game engine but the Action Actuator has no effect .    How can this action be used in the BGE? Can the Path Animation alternatively be converted into keyframes?


The multi-domain approach to a membership implemented at StackOverflow, through Stack Exchange's network seems well beyond just an Open ID.  How are the individual participant's sessions at multiple domains handled as one single session across many, enough to support such a solid inbox and achievements WebSocket?  Is this through many individual sessions which each store a centralized session ID, or is there one session sustained with a concurrent actor or some such means which keeps session(s) so current?

SO and SU just told me I've been logged in. I'm guessing because I'm already logged into my Google account... but how does SO know that?


We have a table (avl_vehiculo_data_estatica), which has a JSON column (data_vehdatesta) and, we need to update the contents of it by adding an element to actual JSON array that's stored in it:  Actual contents:  [{"iddata":"1","valor":"18"},{"iddata":"2","valor":"10"},{"iddata":"3","valor":"N/A"},{"iddata":"4","valor":"53"},{"iddata":"5","valor":"Agencia Vespucio Oeste"}]   Desired contents:  [{"iddata":"1","valor":"18"},{"iddata":"2","valor":"10"},{"iddata":"3","valor":"N/A"},{"iddata":"4","valor":"53"},{"iddata":"5","valor":"Agencia Vespucio Oeste"}, {"iddata":"6","valor":"ACTIVO"}]   So, what has to be done is to add a new JSON array element with the following values:  {"iddata":"6","valor":"ACTIVO"}   We've tried several PostgreSQL JSON related operators and functions, but haven't been able to find the correct mix to achieve such update, so any suggestions might be helpful.  DB Version:   PostgreSQL 9.4.9 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit   PS: There's a similar  but no exactly the same as our case.

I have table where one of the fields is JSON array. I need to append received JSON array into that field without overriding existing values.  Something like that:  CREATE OR REPLACE FUNCTION add_array(     array_received json[])   RETURNS void AS $BODY$      update table set _array_field = _array_field | array_received ...;  $BODY$   LANGUAGE plpgsql VOLATILE;


I want to send them via http to api for logging pupposes. I have found several js solutions but all of them do not work, giving 'undefined' or (for ip) '127.0.0.1'. Is there any working solution for React?

I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI.  However, I'm not against using a free 3rd party script/service.


An awakened cat with wizard levels has  active, and is melee attacked by a goblin within 5 feet of it. The goblin hits the cat but exceeds the cats AC by 4 or less.   Fire shield states:     In addition, whenever a creature within 5 feet of you hits you with a melee attack, the shield erupts in flame. The attacker takes 2d8 ... damage..   Hooray! That pesky goblin will get their comeuppance. However, the cat does not feel like taking any damage from this attack, so it casts  which has the following cast time and trigger:     1 reaction, which you take when you are hit by an attack or targeted by the magic missile spell   So the cat has clearly been hit by the attack, triggering fire shield and allowing it to take a reaction to cast shield as well. But shield has this effect:     ... Until the start of your next turn, you have a +5 bonus to AC, including against the triggering attack, ...   Which would cause the attack to miss! Now we have Schroedinger's fire shielded cat!  Does the damage from fire shield affect the attacking creature when you also cast shield to negate the attack? Or does negating the hit also negate the trigger which allowed shield to be cast at all?

I am contemplating a Oath of Conquest Paladin / Sorcerer multiclass character, with a 1 level dip in hexblade warlock. This character will have access to the Armor of Agathys and Shield spells, which potentially allows for a pretty nice combo. The Shield spell states (PHB 275):  Casting Time: 1 reaction, which you take when you are hit by an attack or targeted by the magic missile spell... Until the start of your next turn, you have a +5 bonus to AC, including against the triggering attack,  It looks like you are indeed hit by an attack, but since you have a bonus to AC, you can potentially force that attack to miss instead. Armor of Agathys states (PHB 215),  If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.  If I cast Shield and cause an attack that "hit" me to miss, does Armor of Agathys still deal damage? I am leaning toward yes, though this combo seems a little too strong--Shield is already a strong spell, and this character will eventually have 9 1st level spell slots and a 7th level spell slot. Not only can they freely block attacks with Shield, but they can also deal up to 35 (5d10) damage to the attacker without an attack roll or saving throw. While a Warlock would have to spend both of their spell slots to do this once, my character would be able to do this 4 times with spell slots to spare. Some notes:    ask about reducing the damage from a confirmed hit to zero. This question is asking about what happens when the Shield spell causes the attack to miss entirely. A number of online resources, such as the Roll20 5th edition compendium, seem to be missing the correct casting time for the Shield spell. Answerers should make sure they're looking at the correct version from the PHB.


Can  $k\mathbb{Z}$ and $m\mathbb{Z}$ , $k, m \in\mathbb{Z}$,ever be isomorphic as rings ?  This question came upon me when I'm doing/proving that   $2\mathbb{Z}$ and $3\mathbb{Z}$ are not isomorphic as rings, but the proof is rather ad-hoc. Hence this leads me to wonder does there exist a $m, k,m\neq k$ such that $k\mathbb{Z}$ and $m\mathbb{Z}$ is isomorphic rings?  Thank you in advance. :)

I came over a question in ring theory which I am not being able to proceed upon:     When is the ring $m\mathbb{Z}$ isomorphic to the ring $n\mathbb{Z}$, where $m, n \in \mathbb{N}$?   I know that to show isomorphism, I need to show that it is onto and the kernel consists of only $\{0\}_{m\mathbb{Z}}$ but I am not being able to write things down properly. Will someone help? What is the relation between $m$ and $n$?


I recall reading a Science Fiction tale as a child which had a profound effect on me.  In it the main character is told that we have to be able to tell certain lies.  No one should tell the truth under every circumstance.  What is the title of this work? I want to say it was by Heinlein but can't be certain.  I recall that the main character is told how he shouldn't really tell his Granny or Great Aunt what he really thinks of her hat and by extension how society couldn't function if we didn't tell certain lies.  I also have the suspicion that there was time travel involved.  I know I read the book in the 70's but figure it was published in the 50's-60's.

So this is a bit of a memory game of my behalf, but I'm trying to remember the name of a (presumably) Sci-Fi novel with only a recollection of the following:   A man owns a (yellow?) car parked outside his house along with a cat The car goes missing or is stolen The man decides to be cryogenically frozen for 75 (fairly sure, could be 50?) years along with his cat (I might be muddling up novels but I'm sure there was a cat...?) He takes a walk along the street X years in the future when he wakes up and the currency he has in his pocket is now worthless   I don't think I got that far into the book and all the above happened relatively early.  I read it about 10 years ago and at a guess, it's an 80's novel - all of the above details might be inaccurate, but I'm certain about the cryogenic freezing and the currency aspects.  I'd be surprised if this one gets anywhere!


I am analyzing data from 17 studies (25 data points) with mixed measures of association (OR, RR, HR). Most associations are less than 2.0, with four  from 2.0 to 3.1. Only one is less than 1.0 (not significant).  My options are fairly limited. Will consider doing stratified meta-analysis.  Are there some examples where the investigators did the meta-analysis using mixed-type measures of association?  Thanks for your help.

I'm doing a meta-analysis of some studies that report results variously as odds ratios, hazards ratios or rate ratios (all with confidence intervals). Is there any way to combine these together/convert between them so that I can do a meta-analysis of all the studies?


1. He was no sooner graduated than he was on his way to California.   2.  No sooner had the plane taken off than I regretted not taking the train.  Above are the examples of using the phrase "no sooner than" which I found in some textbook. Why is not used Past Perfect in the first sentence as it is so in the second one? Would it be a mistake to write: He had not been no sooner graduated then he was on his way to California.

I ask not about the meaning, but about its derivation:      {phrases} =   [Please check my additions of F and S   1. Used to convey that the second event S mentioned happens immediately after the first F:   Please explain how soon (on the same ODO page) effects/implies/induces the above meaning?     soon {adverb} = 2. Used to indicate one’s preference in a particular matter:   My guess: 3. 'I sooner breakfasted than lunched' => 4. I breakfasted before lunching. Does 4 already mean 1? So why must 'no' precede 'sooner'?  What would happen if I omitted no?


I am looking for a regular expression that will extract the first word containing the character "@" on a given string. Additionally, it must not return the character "+" that prefixes words (except the first).  1) If I have the following string:  test@example.com +555 +blabla +@gmail.com   It must return: test@example.com  2) And if I have this one:  555 +@gmail.com +test@example.com   I want to get: @gmail.com  What I tried was \b.*@.*\b

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?


What is the method for obtaining the polynomial equal to   \begin{equation*} \sum^{n}_{x=1}x^m \end{equation*}  for unknown $n$, and systematically for various values of $m$? I know it should be a polynomial in $n$ of degree $m+1$, but what are the coefficients?  Wolfram Alpha seems to implement this method, at least for $m$ up to , but it is not clear to me how to reproduce it. Thanks.

It is not hard to show, by induction on $m\in\mathbb N$, that there exist a sequence $(B_n)_{n\geq0}$ of rational numbers such that  $$\sum_{k=1}^nk^m=\frac1{m+1}\sum_{k=0}^m\binom{m+1}kB_k\,n^{m+1-k},\ \style{font-family:inherit;}{\text{for all}}\ n\geq1\,.$$  These are the Bernoulli numbers of the second kind, that is, $B_1=+1/2$. A corollary of the proof (by induction) of the fact above is a recurrence formula for such numbers $B_n$, which are known as Bernoulli numbers:  $$\sum_{k=0}^{n-1}\binom nkB_k=0\,.\tag{$\ast$}$$  On the other hand, there are a number of explicit formulae for $B_n$, which are obtained using the equality $\frac x{e^x-1}=\sum_{n=0}^\infty B_n\,\frac{x^n}{n!}$; see  and . For example:  $$B_n=\sum_{k=0}^n\frac1{k+1}\sum_{r=0}^k(-1)^r\binom krr^n\,.\tag{$\ast\ast$}$$  Is there some clever way to manipulate the recurrence $(\ast)$ in order to obtain $(\ast\ast)$?


I have a simple method to hide and show. I tried to use the live() function and even this method is not working. I want to append the
 and with every
 there should be a hide and show button. Also, the
 should hide when I click on hide.     $(document).ready(function() {   var max_fields = 20; //maximum input boxes allowed   var wrapper = $(".input_fields_wrap"); //Fields wrapper   var add_button = $(".add_field_button"); //Add button ID   var x = 1; //initlal text box count      $(add_button).click(function() { //on add input button click     if (x <= max_fields) { //max input box allowed       x++; //text box increment       $(wrapper).append('
<input type="text" name="mytext[]"/><button onclick class="hide_field">Hide</button><button onclick class="show_field">show</button>
');     }   }); });  $("#myclass").on("click", ".hide_field", function() {   $(this).hide(); });  $("#myclass").on("click", ".show_field", function() {   $(this).show(); });
   <button class="add_field_button">Add Comment</button>

<input type="text" name="mytext[]">

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


I'm working on a web site in which the encoding used is UTF-8. The server side is developed with Java and the database uses Windows-1252 encoding.  How do I encode the characters correctly so they can be displayed correctly both in the database viewer and on the client side?  EDIT  Here is the code:  Class.forName("com.pervasive.jdbc.v2.Driver");  Connection conn = DriverManager.getConnection("jdbc:pervasive://XXX.XXX.XXX.XXX/TEST","xxxx", "xxxxx");  Statement stmt = conn.createStatement();  String sql = "INSERT INTO MyTest (COL1, COL2) VALUES (99999, 'Ó 456789 ñÑ; ° - + ( _ . - / \\ & <' )"; stmt.executeUpdate(sql);   The database viewer shows: ? 456789 ??; ? - + ( _ . - / \\ & < instead of Ó 456789 ñÑ; ° - + ( _ . - / \\ & <   The String ? 456789 ??; ? - + ( _ . - / \\ & < is retrieved when SELECT is excecuted

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases.  My setup is the following:   Development environment: Windows XP Production environment: Debian   Database used: MySQL 5.x  Users mainly use Firefox2 but also Opera 9.x, FF3, IE7 and Google Chrome are used to access the site.  How to achieve this?


In book 2, we got to know about mandrakes and how they are used to create a restorative potion that is so powerful it could bring back people that are petrified.   How is a mandrake potion administered to a petrified person?  A petrified person is as good as dead. Stiff as board and not able to move a muscle let alone drink a potion. How it is done?

In Harry Potter and the Chamber of Secrets we see that Nearly Headless Nick is petrified (for lack of better description) at one point by the basilisk:     It was Nearly Headless Nick, no longer pearly-white and transparent,   but black and smokey, floating immobile and horizontal, six inches off   the floor.      -Harry Potter and the Chamber of Secrets, Chapter Eleven (The Dueling Club).   I don't recall any mention of Nick recovering in CoS but he does make many appearances in the later books in the series, therefore we know that he does recover.  Since he was a ghost he couldn't consume the mandrake potion directly.  Is there any indication of what is done to bring Nick back to his typical ghostly state?


Related to my other , I'm about to buy a new Mac Mini. I would like to reduce RAM to 8GB in order to see if 8GB is enough to my daily tasks in my MBP retina 15 early 2013 16GB RAM.  The idea is I’ll let this mac not make use of any more RAM than 8 GB for the running applications to see if they swap to disk or run well with 8 GB of RAM.  Can I do this sort of artificial restriction on a mac that has RAM soldered or when it’s inconvenient to go physically remove RAM for testing purposes?

I've got two 2009 Macbooks. One has 4 gigs of RAM and runs os 10.10; one has 2 gigs and runs os 10.5.  I'm considering upgrading the latter machine to Yosemite (10.10), but I'm worried that it will run slowly with so little RAM. In order to get a sense of what the performance would be like, I'm wondering if there's some way I could "turn off" half the RAM in the higher spec machine. If I did this, I could get a sense of how Yosemite would run on the 2 gig machine before actually doing the upgrade.  Is there some way to temporarily disable RAM without physically removing the chip?


At the end of the movie Star Wars: Episode IV — A New Hope (1977), during the Battle of Yavin, we are witnesses to how, while Darth Vader and his wingmen were on the tail of Luke's X-wing in the Death Star trench, two failed series of laser shoots, one behind and one in front of Vader's left-hand wingman, the Millennium Falcon succeeds with a third one in blasting the mentioned ship, whose explosion distracts Vader's right-hand wingman whom, in turn, collides and knocks Vader's TIE Advanced fighter out of the trench before he can shoot down Luke. Just after the shooting, we can see a closeup view of Han Solo, wearing a headset and shouting euphorically 'Yahoo!', which does not allow us to know if Chewbacca was sitting next to him or not, which made me thinking if Chewbacca could have been wearing the other headset and battling Vader's ship and TIE fighter companions with the ventral or dorsal quad laser cannon. Notice also that some time elapsed between the hit of Vader's wingmen and the shot in which appears Chewbacca and Han and, last but not least, after saying 'Great shot, kid! That was one in a million! Han stirs Chewie up as if Solo was telling the Wookiee: Your shot was great too, my friend! The aforementioned leads me to ask, who really shot Vader's ship during the Battle of Yavin, Han or Chewie?

In Stars Wars: Episode IV—A New Hope, did Han Solo shoot Darth Vader’s TIE Fighter wingman from his chair in the cockpit of the Millennium Falcon or from one of the Falcon’s two swiveling gun turrets?  If he was in one of the swiveling gun turrets, then Chewbacca was flying the Falcon at that moment and he did a great job of piloting because he likely had to dodge the laser fire coming from about 10 or more gun turrets on the Death Star in order to get close enough to the Death Star’s surface for Han to make that shot.  If this is what occurred, then Chewbacca was the real hero of the day in my opinion.


roberto@roberto-870-224:~$ cd ~/Downloads roberto@roberto-870-224:~/Downloads$ ./daedalus-2.2.0-mainnet-14276.bin bash: ./daedalus-2.2.0-mainnet-14276.bin: Permission denied roberto@roberto-870-224:~/Downloads$

I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?


The question is straightforward: How to implement White test (a test for heteroscedasticity) for a simple linear regression model (lm object) in R?   I have tried "whites.htest(var.model)", however, it requires an input of varest object.  I learned that it requires to regress the squared of residuals with all squared variables, as well as their interaction terms. However, there seems no functions in R to implement this.   Can anyone give an example of it?  for example: if i have 4 variables in a regression equation lm(y~A+B+C+D). How should I write the white test code?  Note: my question is more general than this question that has been asked before:  It only explains how to implement when there are only two variables. However, what if I have more than 3 variables? How could I express the regression equation to implement White test?

I am trying to estimate heteroskedasticity in R. I had Eviews available in my college's lab but not at home. I have been trying to use "het.test" package and whites.htest but the value that I get is different from what I get in Eviews. According to the author of the package, it is meant to do the same test as is done in Eviews.   My model looks like A~B+C. Kindly guide me what I am doing wrong.   I 1st run ols for equation A~B+C, after getting results, I clicked View>Residual diagnostics>Heteroscadicity tests>White's (with Include white cross terms) and then Press ok. The result i got was Prob. F(5,27) = 0.2948.   For R, i tried code at this link [this link][1], here is the edited code that i used.  library(vars)  library(het.test) dataset <- data.frame(A,B,C))  model1 <- VAR(dataset, p = 1)  whites.htest(model1)   This gave me value of 0.63.  I tried searching this forum but none question seemed related. I am not a programmer not statistician so please pardon my ignorance.


Although the question has been asked before, I hope that you do not mind if I am asking it again in our specific circumstances / context. I would appreciate having your advice on the following: in R, the wilcox.test() provides "a p-value < 2.2e-16", when we compare sets of 1,000 genes expression (in the genomics field). However, the journal asks us to provide the exact $p$-value. Would it be legitimate to write : "p-value = 0" ?

For some tests in R, there is a lower limit on the  calculations of $2.22 \cdot 10^{-16}$. I'm not sure why it's this number, if there is a good reason for it or if it's just arbitrary. A lot of other stats packages just go to 0.0001, so this is a much higher level of precision. But I haven't seen too many papers reporting $p < 2.22\cdot 10^{-16}$ or $p = 2.22\cdot 10^{-16}$.   Is it a common/best practice to report this computed value or is it more typical to report something else (like p < 0.000000000000001)?


I'm putting up a large GRP flat roof. The builder has been AWOL for a while, and so the roof has been left with just OSB3 with no waterproof covering. It's been rained on for months and swelled to twice its original thickness.   Is this board still OK to use for the roof if I can let it dry? I can still walk on it with no problems.

In the UK it rains, as you know. a lot.  Is it OK for OSB3 boarding to get wet now and then during the construction of a building? or will it be completely destroyed like chip board or MDF (which absorbs liquid, expands then falls apart)


I would like to know if the phrase "You did not lose weight because of this." is ambiguous or not. I think it could mean any of the following:   "This is the reason you did not lose weight." "This did not make you lose weight." (independently of the "you" in the phrase having lost weight or not—I think that the phrase does not give information about this; it could be either case)   Similarly, the phrase "The airplane did not fall because of the presence of the dog" could mean something like: "The dog is a hero! Its presence prevented the airplane from falling!", or "The airplane did fall, but it was not because of the presence of the dog.", or "The airplane did not fall, despite the presence of the dog." Am I missing something? I am very confused about all of this.  Sorry, my English is very bad, I hope my question is presented clearly despite of that... Thanks in advance!

You are not hired because you are qualified.   I think this means you are hired but it is not because you are qualified. But I think this can  also means you are not hired, and the reason for it is that you are qualified.   Does this ambiguity really exist or do I mistake anything?


Let $G$ be an abelian group such that $|G|=p^m$ for some $m\geq 1$ where $p$ is a prime. Assume that $G$ has only one subgroup of order $p^{m-1}$.  How to prove that $G$ is cyclic ?

Let $G$ be a finite abelian $p$-group with a unique subgroup $H$ of index $p$. It is a fact that $G$ is cyclic. This can be deduced from the classification theorem for finite abelian groups by writing $G$ as a product of cyclic groups and noting that $G$ does not have a unique subgroup of index $p$ unless there is only one such group. I am wondering if there is a nice proof of this result which does not use the classification theorem. Does anyone know of one?


Was looking up the meaning of few, couple, several and many and stumbled upon the follow:  :     a couple of, more than two, but not many, of; a small number of; a few: It will take a couple of days for the package to get there.   A dinner party, whether for a couple of old friends or eight new acquaintances, takes nearly the same amount of effort.   Also, Informal, a couple.   So thus we know a couple is more than two but not many. Then we look up several:  :     being more than two but fewer than many in number or kind:   several ways of doing it.   So that raises the question, what is few?  :     not many but more than one:   Few artists live luxuriously.   So if many is interpreted as the same in both couple and several. That would mean that couple is 2 or more but not many and several is 2 or more but not more than many - 1. Thus several is less than the idiom "a couple of".  My initial thought was that "a couple of" would mean a small number even possibly 2 or more, but several would maybe overlap and then be larger than "a couple of".  So is this correct, is the range of several actually smaller than couple?

Today I said some event was a couple of weeks away. A native speaker from Australia corrected me and said, no it's at least three weeks away. What followed was a discussion as to whether a couple always means two, or if it can mean more than two.  What does a couple, in particular a couple of weeks, mean to a native speaker?  According to :        Two partners in a romantic or sexual relationship.   Two of the same kind connected or considered together.   (informal) A small number.      According to :        two people or things of the same sort considered together:   'a couple of girls were playing marbles'   [treated as singular or plural] two people who are married or otherwise closely associated romantically or sexually:   'in three weeks the couple fell in love and became engaged'   'a honeymoon couple'   [informal] An indefinite small number      Yet my colleague — a native speaker — insists that a couple never means three, although there can be a small error bar on the two. We asked one other native speaker who agrees with him, yet three non-native speakers point at the above-mentioned sources to claim they're wrong. But it's a bit tricky for non-native speakers to claim native speakers are wrong. Note that both native-speakers are from Australia/New Zealand.


Let's say I want to search a file for a string that begins with a dash, say "-something":  grep "-something" filename.txt   This throws an error, however, because grep and other executables, as well as built-ins, all want to treat this as a command-line switch that they don't recognize. Is there a way to prevent this from happening?

I have seen -- used in the compgen command.  For example:  compgen -W "foo bar baz" -- b   What is the meaning of the -- in there?


I have ArcGis 10.3 (previously 10.2 version) running on Windows 10 (previously Windows 8). My GIS licence is provide by my company where I have an intership, so I can't just uninstall/install back the logiciel.   So, I have this script error which appears often when I want to use Spatial Analyst Tool or Geoprocessing Tool:      Line 51, Char 4, Error Invalid Pointer, Code 0, URL   file:///C:/Users/username/AppData/Roaming/ESRI/Desktop10.3/ArcToolbox/Dlg/MdDlgContent.htm   I look at tons of articles online and did all their proposed solutions (put Internet Explorer as default browser, enable Active X control in security, clear roaming and local history of ArcTool Box in my AppData, upload a 'new patch version' of MdDlgContent.htm in my ArcGIS file provide by technical support from ESRI) and NOTHING IS WORKING.

I am just learning ArcGIS 10.2 and it was working well until I tried to use the Export to a Geodatabase (single) option for a dbs table I made. Since then, it seems I now get the same Script Error for import/export functions. However, I just tried to export to Geodatabase (multiple) and error did not pop up. I spoke with tech support and they could not help me so far. I really do not know much about GIS so it is hard for me to fix this problem and cannot proceed with some things.


I have an Early 2015 MacBook Pro Retina, which I hard-restarted earlier (holding the power button) due to a software crash. It turned off just fine but refused to turn back on again (no backlight, no drive noise, nothing). I thought I remembered a fairly high battery percentage, but to be sure I connected it to power and tried again, unsuccessfully. I left it for a while, then tried an SMC reset with the adapter connected.   This seemed to work, since the power indicator light turned green for a few seconds (which makes sense). This somewhat fixed the issue in that the machine actually showed signs of life when I tried turning it back on, but it would just display a black screen with the red/white low battery symbol and the lightning bolt underneath it.   I left it charging for a while and then had to disconnect it for about an hour to take it with me. When I plugged it back in, it actually powered on and booted up successfully. However, the battery indicator is now perpetually at 0%, and the battery info is rather disturbing:  Battery Information:  Model Information:    Manufacturer: SMP   Pack Lot Code:    0   PCB Lot Code: 0   Firmware Version: 702   Hardware Revision:    1   Cell Revision:    3217  Charge Information:    Charge Remaining (mAh):   0   Fully Charged:    No   Charging: No   Full Charge Capacity (mAh):   1708   Health Information:   Cycle Count:  564   Condition:    Replace Now   Battery Installed:    Yes   Amperage (mA):    0   Voltage (mV): 8421   I've also tried an NVRAM reset, with no change. I read somewhere that doing an SMC reset while booted up and logged in solved similar problems in some cases, but that seems a bit risky as far as my data is concerned.  I'd really appreciate any ideas - thank you!  EDIT  I should also mention that the charger light isn't doing anything unusual (i.e. not turning on when the charger is connected). Also, the machine is noticeably slower than when everything was working normally.

I see that the question "why is my MacBook not charging?" gets asked a lot. The problem is, there are multiple reasons. Possible points of failure are: charger, cable, magsafe connector, DC input board, logic board, battery. (Have I missed any?). What is the best sequence for a user to follow, to diagnose the problem? By way of example, here are the first steps that I usually try:  Make sure the charger is working. Either use your charger on a different Mac, or test a spare charger with your Mac.  Check the connection. There might be gunk in your port that's stopping the connector from lying flat.  Try resetting the SMC and PRAM.  If the computer boots, run Coconut Battery to determine battery status.   This is where I get a bit stuck. For example, I have a machine here that boots fine when plugged in, but not from battery. Disconnecting the MagSafe causes the machine to switch off. Sounds like it's a dead battery, except that Coconut reports the battery as detected, in good condition, but not charging. What steps should I take next? Specifically, I'm asking for a generic algorithm to help determine the source of the fault (preferably without swapping out lots of components one by one)?


I am trying to refresh perhaps reload the whole file I imported on a script in which I used to changed some things within that file, and using that script to reload the file I imported within itself.  How do I refresh a file which is a script that has been imported as a module after making changes on it using the script which contains that imported file.  This is what I am trying to achieve  #lists_values.py Christine = [0,0,0] George = [900,123,1] #suppose Ralf = [ 0, 0, 0 ] is going at     this position soon.  #main.py from lists_values import * import lists_values  def insertRalf():     with open("lists_values.py", "a") as myfile:         myfile.write("Ralf = [0, 0, 0]\n")  insertRalf()  def resultView():     #Maybe some code to refresh the file I imported? Which is the lists_value since I added another list I want to print it.      #Print the NEW values of lists_values     fd = open("lists_values.py", "r")     print(fd.read())     fd.close()      #My goal is to see the new value 'Ralf', but since I imported the file when it was still unchanged, I wont see any Ralf if I print it now.  resultView()

I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this?  if foo.py has changed:     unimport foo  <-- How do I do this?     import foo     myfoo = foo.Foo()


For $p$ and $q$ distinct primes. Two conditions are given:  vertices of graph $G$ are integers in the set $\{0, 1, 2, \ldots, pq-2, pq-1\}$;   there is an edge of graph $G$ between $a$ and $b$ if $ab$ either $p∣a−b$ or $q∣a−b$. In this case, how many edges of $G$ are there?

$G$ has vertices $\{0, \ldots, pq - 1\}$, where $p, q$ are different primes. There is an edge between $x$ and $y$ if $p \mid x - y$ or $q \mid x - y$. How many edges does $G$ have?  I looked at the cases where $p=2$ and $q=3, 5, 7, 11, 13, 17, 23$ and the formula I got was $|E|=q^2$, but it doesn't apply to $p=3$. For $p = 3, q = 5$, there are $45$ edges.  How do I derive a closed form formula for this?


I have one login (using my goggle login) and use two or three stack exchange sites. On stackoverflow I have a 3000 rep but I don't seem to be getting an association bonus on any of the other accounts.  So how does the association bonus work? And/or how do I associate the various accounts?  I've looked at the other association related questions and can't immediately see anything that applies

I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit "" in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)


Proprietary snaps contributed by a particular entity were removed from the snap store as described in .  What cautions should users take before installing proprietary snaps?

So I was browsing the web the other day, and I came across a few places that wanted me to download .deb files - and since those are installed by root (and as such have the "powers" and capabilities of root), I wasn't sure about that.


I have a list that looks like this: ['abc', {'subcontent': ['apples', 'oranges']}, 'def']  I need to check if an element is a dictionary or not. How do I do that? I need to get indices of dictionary.

How do I see the type of a variable whether it is unsigned 32 bit, signed 16 bit, etc.?  How do I view it?


I have followed the steps in the website. I have burned the iso file into the usb drive. When i try to install from usb drive ( uefi boot) I am getting a blink, then stuck at black blank screen. My laptop is: hp envy notebook  Please help.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Note:  is now outdated, due to the new Minecraft Launcher  I have Windows 10 installed on an HDD, and I bought a small 60GB SSD to store games on, since I heard SSD loaded games faster. I want to move all of my Minecraft files onto the SSD, and have the launcher realize that it's there.  Yes, the drive is formatted as NTFS, and Windows can see the drive. How can I accomplish this?

I have recently gotten my hands on a new computer (MSI G Series GS70 STEALTH-037 - specs below if relevant) that has a Solid State Drive (SSD) that goes along with my hard drive (HDD). I would like to move Minecraft to the SSD is because it will be a lot smoother and faster than on the hard drive. How can I move/transfer/change Minecraft from using the typical root it goes to in the %appdata% folder to the SSD drive? PC Specs:  CPU: Intel Core i7-4700HQ 2.4 GHz (6 MB Cache) RAM: 12 GB DDR3L SDRAM Drives: 750 GB 7200 rpm Hard Drive, 128 GB Solid-State Drive Display/Graphics: 17.3-Inch Screen, NVIDIA GeForce GTX860M with 2GB GDDR5 VRAM OS: Windows 8.1


Can anyone tell me how to restore the feature that allows clicking and dragging in a message in the OS X Messages app to select only part of a message that has already been sent or received?  This capability seems to come and go. I just did it a few days ago, and now it doesn't work again.

I am pretty sure I used to be able to select and copy text in Messages.app like in any other app (click + drag, double-click, etc.)  Right now I don't seem to be able to do this.  I am not sure what updated last, I am on macOS 10.14.6, Messages.app 12.0  Use case:    How do I copy the code from the message?


I am new to programming and coding, and I choose Python to be my first. When I declare a variable, I notice that the variable = "x" and variable ='x' are the same. So can anyone told me the differences of "x" and 'x'

According to the documentation, they're pretty much interchangeable.  Is there a stylistic reason to use one over the other?


When I inspected my monitor I found a hole with a lock symbol (pictured below).  What is this? What is the function of this hole?    My monitor is a Samsung Syncmaster SA100.

My friend recently received a new digital drawing tablet (Wacom Intuos Pro). Among other features, there is a hole that resembles a charm hole found on mobile phones:    Other parts of the package (e.g. pen) do not have such holes, so it isn't possible to attach them using a band. What is the purpose of this hole? Is it just for attaching various charms and such?


I'm a technical artist at an indie game studio.  Actually, this is an issue that one of our artists is having, and he screenshared his process with me over Google Hangouts. This is what I observed:   He would set the beginning (A) and and end (B) keyframes for a 3-key idle cycle. When creating the middle keyframe (C), he would select a single channel in the dopesheet editor and a single object in 3D View. The transform values applied when setting keyframe C would also be expressed in keyframe B. This was confirmed both while posing and while playing the animation (Alt + A).   The strange part is that I couldn't reproduce this behavior when I tested the .blend file on my end. The artist also noted that this was the first time he had encountered the behavior, as he'd successfully produced 15 animations for our project earlier this year without issue.  We haven't found any similar issues when searching Google, which leads me to believe it is a setting somewhere which allows the user to overwrite keyframes which are already set later in the timeline. Feel free to comment with any suggestions of human error, as well.  A few final notes:    I am using Blender 2.67 while our artist is using 2.69. I am on a Mac while he's using Windows. We are testing a file which the artist created and shared with me via Dropbox.   Thanks in advance for your help. Any insight would be greatly appreciated.

So I have a problem were I add a new keyframe in between a loop the last keyframe takes the new keyframe's value.  Lets say I have :   keyframe 1: x=0 keyframe 2: x=16   and then I add    keyframe 3: x=6    in between. What happens then is that keyframe 2 value changes to 6? I have been searching to modify this behaviour everywhere, but don't seem to be able, any help?


Please help me ASAP on installing Likewise open gui packages for ubuntu 14.04.3 LTS desktop version.    Thanks and Regards, Raghava

we use a lot of Linux-Servers with active-directory membership for user-authentication. This are made with the likewise-open packet. We tested the beta-Version of ubuntu Server 14.04 LTS. Everything works fine after one minute (install, domain-join, import registry, edit sudoers, done). Now, from beta to production-release likewise-open is removed from repository.  Is there any equivalent easy way for AD-domain-join and (AD-)group-based login-management (without manually installing and editing config-files for samba, winbind, nsswitch, pam etc....?  thanks a lot Silvio


Short story read in the 1960s.  Story begins with the very large early tube and relay computers which occupied whole building and sometime city blocks. A couple of drunk computer engineers ask the computer to theorize on entropy or the death of all life, heat energy, and what could be done to halt entropy.  The story describes computer evolution into a future where the computer existed in another dimension.  Users contacted the computer via a ring on their fingers.  And, through history many people asked the same question. "Why does everything have to end?"  The final human dies.  The final star freezes.  Yet, the computer continues to think about the one question.  Finally the Computer comes of with the answer and says. "Let there be Light and there was Light."

I am looking to identify a story that I read around 2001 (it is probably much older).  Someone showed me the story on pages printed from the internet, and it was attributed to Isaac Asimov (although I cannot state that is the true author).    The story is told in glimpses at different points of time in the future.  In each glimpse, humans are asking a more and more "intelligent" computer how to prevent the universe from collapsing into a singularity in the future, and the computer states it needs more computational power and resources to solve this problem.  At some point, man becomes one with the computer, and the computer exists in hyperspace (or subspace?).    In the final glimpse, it is the end of time and the universe is collapsing into a singularity.  At the instant the universe reaches the singularity, the computer figures out how to prevent it and says "Let there be light" and the universe begins to expand again.  Is anyone familiar with this story?


stackoverflows.ga is ripping off Stack Overflow. I visited by mistake and I sure did pay for it. I think you should get it shut down. Phrased in the form of a question because I can't submit it otherwise?

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


So I have 2 sql tables current and previous.    I am looking to show 2 tables and enable users to drag and drop items from the previous table into the current table.    On top of that I am looking to allow the user to edit the rows of each table/ insert and delete these as well then save the changes back the the DB.    What I have done is found 2 separate projects and merged them together. github.com/drale/DBTableViewer  github.com/dbunic/REDIPS_drag  One allows for 2 tables to interact and the other pulls data from the database generates the tables and paginates them.    I have this working so I am now moving onto the next step of inserting rows and making them editable.  I have it working but whenever I insert a row I cannot move that new one I inserted.  If you guys could check it out I'd appreciate it.  Been looking at it and the code is the exact same...  What I am seeing  Row that I can move:

	 Something	 something else>
   Row I inserted and can't move:

	 Data	 Data
   The only reason the 2nd one that doesn't work has :style="border-style: solid; cursor: move; in it is because in the elements container I saw that come up on the other rows.  Even with it not there it doesn't work.  The function I am using to insert the rows is :  function myFunction() {     var table = document.getElementById("tbl1");     var row = table.insertRow(2);     row.className = "rd";     var cell1 = row.insertCell(0);     console.log(cell1);     cell1.className="redips-rowhandler";     var cell2 = row.insertCell(1);     var cell3 = row.insertCell(2);     cell1.innerHTML= "

";                     //

	      cell2.innerHTML = "Data";     cell3.innerHTML = "Data"; } </script>   I also created a public github for this project so if anyone ever wants to use something like this it will be available to them!  Feel free to help if you'd like.

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


In theory, hot questions are intended to be a buzz feed like list of "neat stuff from across the Stack Exchange network." Ok. Could we get them to age a little bit faster?  It gets rather boring seeing the same question for an extended period of time. As I'm typing this, I see on the side a box with a question that I've seen before.    This question, when going to the original site:    This is really getting old. Yes, it has 1000 views/day... but I've seen it for two weeks show up on the side. Surely across 152 sites, there has to be something that has only been around for a few days that would do better to provide a continuing interest in the other sites on the network rather than continuing the display of a post that was community protected (deleted posts? new user answers?) a week ago.    Make it something fresh to look at rather than something that makes me wonder about blocking them. (Related and apparently   ) From   I agree that two weeks was extreme for that question, but as you can see, it is no longer present. That is also a very, very rare event. Can you think of another time that has happened since we introduced the MultiCollider? I don't think we need to rearchitect the entire se.com cross-site hotness algorithm on the basis of a few hundred year floods.  Apparently, these aren't 100 year floods. They're about monthly occurrences.

Right now there are multiple questions that have been on the Hot Network Questions list for a large number of days:   8 days -  8 days -  7 days -  5 days -  5 days -    There are also seven that have been there for four days.  I do not see what value a question sitting on the HNQ has when it is there over a week. They clog the HNQ and make it harder for other questions to get there, lowering overall exposure to other sites. They also disproportionately give reputation to users on those sites who have answers there, which results in a dilution of the meaning of reputation.  It is also not uncommon for questions to stay there this long.  My recommendation is a simple change to add a hard cutoff that when a question is more than 72 hours (3 days) old, it no longer is present in the HNQ list.  This would be as simple as adding a date filter into the query generating the list - the hotness formula itself doesn't need to change in order to effect this result.  The goal of this suggestion is not any of the following:   Comprehensively fixing HNQ (there are other problems with it) Revamping the calculation  Imposing site limits/etc   It is purely to add a basic and simple filter to the query in order to more quickly cycle questions through the list.    Note:


I am making a spreadsheet with a bunch of variables I want to change and some formulas that use those variables. I want to use conditional formatting (probably?) to color any cells which are "standing alone" or not affecting any other cells or not referred to in any other cells. Basically, I know the variables I need to include to make the calculations I want to make for this particular spreadsheet, but I don't yet know how each of those variables factors into the calculations I want to make. And I want to tackle the problem of how to incorporate those variables one by one. So I want to color the cells that represent "unused" variables so I can work my way through each variable and figure out how it needs to be used in the calculation. Here's an overly simplistic and perhaps quite odd example:  Bunnies I have now: 4 Time horizon (in years): 5 Bunnies I want to have in time horizon: 20 Bunnies I need to acquire per year: X  Let's just say I have X as a formula properly set up to use the "Bunnies I have now" and "Bunnies I want to have" factored in, but I'm not sure how to factor in the time horizon just yet, so I want to color the time horizon cells in order to remember that I need to factor them in. This example has three variables and one calculation, but pretend I have 20 variables (which are consequently harder to track). Does anyone know how to do this? How do you color a cell if it is not referred to in any other cells? Thanks in advance. Here is the history of the searching I did before asking this question (per request from commenter):

I would like to find out which cells have formula dependencies in a large spreadsheet. I am looking for a way to do something like OpenOffice     Tools>Detective>Trace dependents   and     Edit>Find & Replace>Search in formulas   or a way to create a trigger in GAS that gets called when a given cell value is referenced and can identify the source of the reference.


I'm trying to use sed command in order to print the first column of the /etc/group file. If someone have an idea, please share.

What command(s) would you use to extract all of the usernames from a database called /etc/passwd and then sort this output alphabetically in reverse order?


Whenever a field in that particular row contains characters like á à é è ü etc it returns null.  Whenever I execute the query in phpmyadmin it works fine so I am guessing it has something to with mysqli?  $results = mysqli_query($mysqli, "SELECT ea_id, nationid, firstname, lastname, commonname, rating FROM players WHERE commonname LIKE '%test%' OR firstname LIKE '%test%' OR lastname LIKE '%test%'");  $record = mysqli_fetch_assoc($results); print_r($record);

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


Find all integer pairs $(x,y,z)$ that satisfy $$2x^4+2x^2y^2+y^4 = z^2.$$   We can rewrite the given equation as $(x^2+y^2)^2+(x^2)^2 = z^2$. Thus, $(x^2+y^2,x^2,z)$ must be a Pythagorean triple. How do we continue?  Also, for $x = 0$ we get $y^4 = z^2$ and so $z = \pm y^2$. Can we show that $x$ must be $0$?

Prove that any quadratic of the form $x^4+(2k^2)x^2+2k^4$ for any nonzero integer $k$ is never a perfect square for all integers $x$.   I thought about proving this by induction. We first prove that $x^4+2x^2+2$ is not a perfect square for all integers $x$ (which is true since $x^4+2x^2+2 = (x^2+1)^2+1$) and then proceed with the inductive hypothesis. Is there an easier way of solving this?


I am using Emacs 23. linum-mode works well if using with default settings.  But if I increase the font size, the numbers cannot be displayed. It seems the the frame to display the line numbers is not increased as the font size of the line number increases.  Anyone know how this can be fixed?

I've set up emacs to display line numbers (global-linum-mode 1), and it works until I start enlarging the text via text-scale-adjust    The line numbers column starts to shrink, and disappears entirely after a few increments. When it has fully disappeared, further increments have no more effect on the left edge.    Is this a know issue? Is there a workaround?    Using GNU Emacs 23.1.1 in Ubuntu 10.04.


Here's an instantition: Base * ptr = new Derived() ;  After working with ptr, I want to reset it.  Why derived class members are not reset when doing *ptr = Derived() ; while base class members are ?  See for yourself in a complete example:  #include <iostream> #include <vector>  void print_array(const std::vector<int> & vec, const std::string & name = "" ) {     std::cout << name << " => [ " ;     for (unsigned i = 0; i < vec.size(); ++i)     {         std::cout << vec[i] << " " ;     }     std::cout << "]" << std::endl ; }  void do_stuff(std::vector<int> & vec, unsigned size) {     vec.resize(size) ;     std::fill(vec.begin(), vec.end(), size) ; }  class Base { public:     std::vector<int> base ;      Base() {}     virtual ~Base() {} };  class Derived : public Base { public:     std::vector<int> derv ;      Derived() {}     virtual ~Derived() {} };   int main() {     // Working but without polymorphism     // Derived * ptr = new Derived() ;      //Non-working     Base * ptr = new Derived() ;      std::vector<int> & vecbase = static_cast<Derived*>(ptr)->base ;     std::vector<int> & vecderv = static_cast<Derived*>(ptr)->derv ;      print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;     do_stuff(vecbase, 3) ;     do_stuff(vecderv, 3) ;     print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;      // Non-working     *ptr = Derived() ;      // Working but non-optimal     // delete ptr ;     // ptr = new Derived() ;      print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;     do_stuff(vecbase, 5) ;     do_stuff(vecderv, 5) ;     print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;      return 0; }   Current output:   vecbase => [ ] vecderv => [ ] vecbase => [ 3 3 3 ] vecderv => [ 3 3 3 ] vecbase => [ ] vecderv => [ 3 3 3 ]  <= vecbase => [ 5 5 5 5 5 ] vecderv => [ 5 5 5 5 5 ]   Expected output:   vecbase => [ ] vecderv => [ ] vecbase => [ 3 3 3 ] vecderv => [ 3 3 3 ] vecbase => [ ] vecderv => [ ] <= vecbase => [ 5 5 5 5 5 ] vecderv => [ 5 5 5 5 5 ]   [Edit by Peter:] Note that this is not slicing because *p is a Derived, even if its static type is Base.]

Someone mentioned it in the IRC as the slicing problem.


My question is concerning the frequentist approach to probability. Assume that you tossed a coin but don't see the outcome. Does it make sense to say that it shows head with a probability of 0.5? Or doesn't it make sense to say that because it either is or is not heads?  I would argue that it does make sense because otherwise you would not be allowed to e.g. speak about the probability of your opponent in poker holding a certain combination of cards (he either has them or not...) which is clearly nonsensical. This would mean that at the end what counts is not whether something is or is not but your  about the fact. But perhaps this is an axiomatic issue?  This would also have profound consequences for the interpretation of confidence intervals. You are  that there is a 95% probability that e.g. the true mean is within the interval because it either is or is not - so no probability here.   But in case you are allowed to speak of probabilities of hidden outcomes you would also be allowed to say that the true mean is within the confidence interval with 95% probability. Or am I mistaken?

It seems that through various related questions here, there is consensus that the "95%" part of what we call a "95% confidence interval" refers to the fact that if we were to exactly replicate our sampling and CI-computation procedures  many times, 95% of thusly computed CIs would contain the population mean. It also seems to be the consensus that this definition does not permit one to conclude from a single 95%CI that there is a 95% chance that the mean falls somewhere within the CI. However, I don't understand how the former doesn't imply the latter insofar as, having imagined many CIs 95% of which contain the population mean, shouldn't our uncertainty (with regards to whether our actually-computed CI contains the population mean or not) force us to use the base-rate of the imagined cases (95%) as our estimate of the probability that our actual case contains the CI?   I've seen posts argue along the lines of "the actually-computed CI either contains the population mean or it doesn't, so its probability is either 1 or 0", but this seems to imply a strange definition of probability that is dependent on unknown states (i.e. a friend flips fair coin, hides the result, and I am disallowed from saying there is a 50% chance that it's heads).  Surely I'm wrong, but I don't see where my logic has gone awry...


My left knee will only bend 90 degrees. This makes it impossible to ride my bike as the knee needs to bend more than this on the upstroke. Is there a way to shorten the stroke circle so the knee will not have to bend so much? Will this make the motion too unbalanced?

My father, now in his 70's, had a left knee replacement several years ago. He has limited movement in that knee - probably about 85 degrees on a good day. His knee can extend fully, but cannot bend as much as it should. As a result, he cannot pedal a bike he cannot get his left leg over the top of the pedal stroke.   He is desperate to get back onto a bike, he knows he won't be ripping up the road and winning races like the old days, but wants the freedom to go for a slow easy rides.    Does anyone have suggestions as to a solution to the problem. We don't mind spending money if we know the solution will work, but he can't afford to throw big money at wild ideas that may or may not work. If we find a solution, a new bike is likely.   We have access several mountain bikes in a range of sizes to trail ideas, and we have all the tools and skills to build bikes up from parts and rearrange things as needed.    EDIT: Thanks everyone - all great suggestions. What am am going to do is got tto the LBS and get hold of a cheap set of short cranks for around $30- probably from a kids bike, in the 120-150 size range, and see if he can ride that. Depending how he goes, I'll try a standard right crank and a short left crank. If all else fails, we will go for the Power Cranks   UPDATE: In case anyone else has similar problems. Got some 152mm cranks for $30. Set an old  mountain bike up with the seat as far back as possible. The old man is able to ride reasonably comfortably, now has a smile from ear to ear - any suggestions how to remove it - doesn't fit with the grumpy old man image :)   Has got me wondering how many people with minor knee problems would benefit from short(er) cranks.......


I have a question, which one of these sentences would be grammatically correct, or can they both be?         There is two of us here.      Or,        There are two of us here.

How are the wife and kid?   How is the wife and kid?      Which is more correct?


I have a problem when I run  it kills my NetworkManager and i have to restart my laptop to reverse the problem does anyone have a code to enter to restart the NetworkManager?

I'm using Mobile Broadband using a nokia mobile to connect to Internet. All I did in my Ubuntu 12.10 is add 'new mobile broadband' (in terms of networking, no other tweaks). Problem: Yesterday i just test connected a micromax mobile (Not deteced by nm). After that i can't connect to internet using my nokia mobile. This is first in my experience (Connecting a phone make the network manager to not detect other one). lsusb and ifconfig -a show my phone without any problem. Then I connected the nokia to a live system, everything is OK until i connect the Micromax phone. (just phically. nm not even detected the micromax).After that no detection by nm. I think reseting network manager will fix the problem.


I'm currently trying to update an old machine at work, but the windows auto update seems to go nowhere.    Its just running like that, for days, and nothing happens. We are now in 2017, and it seems, with the 'Most recent check for updates' information, that my computer didn't have a ping back from Microsoft's servers since Dec. 2014.  If it can help, here is what is under Update History    Also, updating to Win10 would be the last resort option. We would like to keep the computer on Win8, not have to waste a day on setup.  So what can I do to force my computer to go get the updates?

I couldn't connect to Windows Update nor install .NET so I've done a clean install of Windows 8.1 from Microsoft's iso.  The same problem occurs : the loading bar is never beginning ! No error message.  I've compared what is happening on my Win 7 netbook with Wireshark. When searching for updates, it's sending http requests to Microsoft with a URL like /v11/2/microsoftupdate/. The fresh install of Win 8.1 basically doesn't try to connect anywhere.  I have no proxy, no firewall, no special configuration. Both laptops are on the same network.


this is a bit of an odd one.  Say I need to find all Accounts where the textarea field "Notes__c" contains the text 04/06/2020 twice, how would I go about that? Ideally using Apex or Reports.  Basically the Notes field looks like this:  "04/06/2020 RT - rob did something  04/06/2020 BD - bobby did this  03/06/2020 JD - john did that"  I need to find all records where the Notes contain "04/06/2020" twice, like in the example above. Could anyone help me with this?

I'm working on a custom search page, which will search through the fields of the Project object. I use dynamic SOQL query similar to that:  String query = 'SELECT Name, Status__c ...      FROM Project__c WHERE Name LIKE \'%' + String.escapeSingleQuotes(name)      +'%\' + ' OR Status__c = \'' + String.escapeSingleQuotes(status) +'\''; List<Project__c> projects = Database.query(query);   But when I try to add to filter criteria Description__c field, which is Long Text Area, get the following error:  System.QueryException: field 'Description__c' can not be filtered in query call  How can I use Long Text Area fields in filtering of results?


I need to find the sufficient statistic for the parameter $\theta$ for a uniform distribution $U(-\theta, \theta)$ for a sample of size $n$. The joint density of the sample can be written as: $f(x_1, x_2,..,x_n|\theta) = (\frac{1}{2\theta})^n,-\theta<x_i<\theta \text{ for all i = 1,2,3,..,n}$. I can express it as : $f(x|\theta) = (\frac{1}{2\theta})^n \prod_{i=1}^{n} I_{(-\theta, \theta)}(x_i) = (\frac{1}{2\theta})^n  I_{(X_{(n)}, \infty)}(\theta)  I_{(-X_{(1)}, \infty)}(\theta) \prod_{i=1}^{n}I_{(-\infty,\infty)}$ Now, to prove a statistic, $ T(x)$, as minimally sufficient, we  need to prove that the ratio $\frac{f(x|\theta)}{f(y|\theta)}$ to be constant as a function of $\theta$. The ratio is computed as follows: $\frac{f(x|\theta)}{f(y|\theta)} = \frac{(\frac{1}{2\theta})^n  I_{(X_{(n)}, \infty)}(\theta)  I_{(-X_{(1)}, \infty)}(\theta) \prod_{i=1}^{n}I_{(-\infty,\infty)}}{(\frac{1}{2\theta})^n  I_{(Y_{(n)}, \infty)}(\theta)  I_{(-Y_{(1)}, \infty)}(\theta) \prod_{i=1}^{n}I_{(-\infty,\infty)}}$ We can only get constant as a function of $\theta$ after substituting $X_{(n)} = Y_{(n)}$ and $X_{(1)} = Y_{(1)}$. Hence, $(X_{(1)}, X_{(1)})$ will be minimally sufficient. Please take a moment to review my steps and let me know where exactly I went wrong because the correct answer is shown as max of $|Xi|$.

So, I know that $\max(-X_{(1)},X_{(n)})$ is a sufficient statistic for the parameter $\theta$. But can I also say that $(X_{(1)},X_{(n)})$ are jointly sufficient for the parameter $\theta$ ?  In other words, can a single parameter have jointly sufficient statistics?


As you can probably tell I am relatively new to the electronics scene and I'm rather stuck on a project I'm doing for school.  I am on my second year of an Electrical engineering degree, tasked to do a project. I chose to make a calculator as it seemed like a fun and doable challenge, but I'm stuck at square one with not much of an idea of where to go from here.  A few questions I have are:   Which language should I use for such a project for someone with minimal experience?(mainly python) How would I go about coding such a program that could be implemented into a physical build? Where is a good place to purchase the necessary components for the build.   Any thing to help a gal out would be greatly appreciated <3

I'm a newbie in electronics. I'm trying to build a calculator from scratch as a simple project and side hobby to keep me busy.  My goal is to build a simple calculator, not a scientific or graphing calculator, although I don't mind receiving information about how to do that either, just for kicks.  Is there a good tutorial for this? How should I start?


I occasionally use the timeline on questions. However, it can be quite a bother to get to on my phone sometimes; I need to select and delete all the text on the right of the ID and also question, which can take a while and be kind of glitchy with long titles. I'd like it if going to /questions/{ID}/{name-of-questions}/timeline would redirect to /posts/{ID}/timeline.

I know that to view timeline of the post I need to manually change an URL in the browser, e.g.  has an URL:   https://meta.stackexchange.com/questions/289233/how-many-sites-are-there-on-stack-exchange    To access the timeline I need to replace questions with posts and how-many-sites-are-there-on-stack-exchange with timeline.   Since post's id is enough to uniquely refer to a post (no matter if it’s an answer or a question), my request would be to allow one to change only the last part of the URL to timeline to open the timeline page.  Long story short, I would like to use following URL to access the timeline of discussed question:   https://meta.stackexchange.com/questions/289233/timeline    For now such link opens a quesion as if timeline tail of the URL is not in action.  One problem case might be only if question title is "timeline", but since question title must be at least 15 characters long - this case doesn't make sense to consider.  P.S. If you will decline my request, please add a user friendly link to time line as suggested on . :)


I have a set of target macros for which I want to generate aliases based on a choosing macro, like so:  Choosing macro:  #define I2C_MODULE 1   Alias macros (conceptual form):  #define I2C_MODULE_BASE I2C<Value of I2C_MODULE>_BASE #define I2C_MODULE_NVIC INT_I2C<Value of I2C_MODULE>   Target macros (from an external file out of my control):  #define INT_I2C0   24  #define INT_I2C1   53 ... #define I2C0_BASE  0x40020000 #define I2C1_BASE  0x40021000 ...      I wanted to have the preprocessor generate the alias macros I2C_MODULE_BASE and I2C_MODULE_NVIC based on the  choosing macro I2C_MODULE, but after much reading ,  and many other references I lost track of, I ended up hard-coding their values. Below I show my current working definitions, and then my last failed attempts at generating the macros:  What works:  #define I2C_MODULE 1 #define I2C_MODULE_BASE I2C1_BASE #define I2C_MODULE_NVIC INT_I2C1   what did not work:  #define I2C_MODULE 1 #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x)  /* Attempt 1 */ #define I2C_MODULE_BASE "I2C" STR(I2C_MODULE) "_BASE" #define I2C_MODULE_NVIC "INT_I2C" STR(I2C_MODULE)  /* Attempt 2 */ #define _I2C_MODULE_BASE "I2C" STR(I2C_MODULE) "_BASE" #define _I2C_MODULE_NVIC "INT_I2C" STR(I2C_MODULE) #define I2C_MODULE_BASE _I2C_MODULE_BASE #define I2C_MODULE_NVIC _I2C_MODULE_NVIC   EDIT: I expanded upon the   to get to where I wanted, as follows:  #define PASTE2(a, b) a ## b #define PASTE3(a, b, c) a ## b ## c  #define _I2C_MODULE_BASE(x) PASTE3(I2C, x, _BASE) #define _I2C_MODULE_NVIC(x) PASTE2(INT_I2C, x)  #define I2C_MODULE_BASE _I2C_MODULE_BASE(I2C_MODULE) #define I2C_MODULE_NVIC _I2C_MODULE_NVIC(I2C_MODULE)

As mentioned in many of my previous questions, I'm working through K&R, and am currently into the preprocessor. One of the more interesting things — something I never knew before from any of my prior attempts to learn C — is the ## preprocessor operator. According to K&R:     The preprocessor operator ##   provides a way to concatenate actual   arguments during macro expansion. If a   parameter in the replacement text is   adjacent to a ##, the parameter is   replaced by the actual argument, the   ## and surrounding white space are   removed, and the result is re-scanned.   For example, the macro paste   concatenates its two arguments:      #define  paste(front, back)  front ## back      so paste(name, 1) creates the token   name1.   How and why would someone use this in the real world? What are practical examples of its use, and are there gotchas to consider?


If you have two square matrices with equal rows and columns A and B and AB = the identity matrix does that mean that BA also equals the identity matrix?

If $A$ and $B$ are square matrices such that $AB = I$, where $I$ is the identity matrix, show that $BA = I$.    I do not understand anything more than the following.   Elementary row operations. Linear dependence. Row reduced forms and their relations with the original matrix.   If the entries of the matrix are not from a mathematical structure which supports commutativity, what can we say about this problem?  P.S.: Please avoid using the transpose and/or inverse of a matrix.


When we talk of momentum , we can say that momentum is a measure of amount of motion contained in the body but I cannot get a similar intuition for energy energy is a measure of what? Or is it just a certain mathematical quantity that just remains conserved and is thus used for solving problems etc. And I don't seem to be satisfied with statements like 'energy is capacity to do work' because then again I ask what is work then...it's just not very clear I'm unable to get a hold of the concept..not even sure of what exactly I am confused about..maybe a historical significance of the concept of energy and the progresses made to define it might help,requesting suitable directions.

The simplistic undergrad explanation aside, I've never really understood what energy really is. I've been told that it's something when converted from one kind of something to another kind, or does some "work", as defined by us, but what is that something?  Moreover, if the total amount of energy in the universe is finite and we cannot create energy. Then, where did it come from? I've learned from thermodynamics where it goes, but where does it come from?  I know this sounds like something trivially simple, but there is so much going on in the physical universe and I just can't grasp what it is. Maybe it is because I lack the mathematical understanding that I can't grasp the subtle things the universe is doing. Still, I want to understand what it is doing.  How do I get to the point of understanding what it's doing?  (Note: What prompted me to ask this was . I'm afraid that it just puzzled me further and I sat there staring at the screen for a good 10 minutes.)


In Curse of Strahd, there is a magic item known as the , found on page 221. It says it requires attunement; however, two features of the staff seem more inherent. Both are in the main section of the magic item. One reads: "If the staff is broken or burned to ashes, its wood releases a terrible, inhuman scream that can be heard out to a range of 300 feet. All blights that can hear the scream immediately wither and die." And the other reads: "Its evil makes beasts visibly uncomfortable while within 30 feet of it." In the Dungeon Master's Guide, on page 138, about attuning: "This focus can take the form of weapon practice (for a weapon), meditation (for a wondrous item), or some other appropriate activity." It then reads, "Otherwise, at the end of the short rest, the creature gains an intuitive understanding of how to activate any magical properties of the item, including any necessary command words." Beasts being visibly uncomfortable while near the staff doesn't seem like the wielder is doing anything in particular. It looks like this is an inherent aspect of it. And as for if one destroys the staff, I wouldn't think this would fall under attunement either because it's not like the wielder needs to learn how to break the thing. The effect it causes appears to be inherent, sort of like someone destroying the One Ring from The Lord of the Rings. Do I understand correctly that these two aspects don't require attunement to function?

The description of the  (DMG, pg. 155) says the following:  Belt of Dwarvenkind Wondrous item, rare (requires attunement) While wearing this belt, you gain the following benefits:  Your Constitution score increases by 2, to a maximum of 20. You have advantage on Charisma (Persuasion) checks made to interact with dwarves.  In addition, while attuned to the belt, you have a 50 percent chance each day at dawn of growing a full beard if you're capable of growing one, or a visibly thicker beard if you already have one. If you aren't a dwarf, you gain the following additional benefits while wearing the belt:  You have advantage on saving throws against poison, and you have resistance against poison damage. You have darkvision out to a range of 60 feet. You can speak, read, and write Dwarvish.   The way I read this, only the stuff about your beard growing requires you to attune to it. Am I reading this right? Do you really gain everything else (excluding the stuff at the end if you're a dwarf, obviously) even if you're not attuned to it? Or is it the case that because the belt requires attunement, it's implicit that everything it does requires you to have attuned to it, and the way it's worded is just tripping me up?


I am working on a scene with some objects linked from other projects, but suddenly everything appeared unlinked, and I can't see my objects anymore. Is there a way to relink everything?

I have multiple characters linked to a blender file, but i moved the original character files and now blender is sating they're missing.  Is it possible to get blender to find the missing blender files like it finds missing image files so that i can preserve the previously made animation?  On a side note is there a way to also view a list of all the missing files?


I have a custom REST service which has a get and post methods. Both, get and post methods use the same wrapped object. In get case it returns this wrapped object, in post - I was hoping to have the same wrapped as input parameter for POST method, but I'm having this error     [       {           "errorCode": "JSON_PARSER_ERROR",           "message": "Unexpected parameter encountered during deserialization: name at [line:2, column:18]"       } ]   Input JSON   {                 "name": "XX 1142"     }   and wrapped is  global class BlahblahService {  ...     global class Wrapper {         global String id { get; set; }         global String name { get; set; }     global Wrapper() {}     } }   If I do this in Execute Anonymous everything deserializes fine.  What am I doing wrong?

Any thoughts on why the REST web service below does not properly deserialize the input argument?  Unit test passes. CURL request (below) returns error.   @RestResource(urlMapping='/test/*') global with sharing class TestService {      @HttpPost     global static string doPost(TestRequest req){         return req.testArg;     }      private static testMethod void tests(){         TestRequest req = new TestRequest();         req.testArg = 'hello';         String result = TestService.doPost(req);         System.assertEquals('hello', result);     }      global class TestRequest{         global string testArg;     } }   Test Request   curl -X POST -H 'Authorization: Bearer sessionID'  -H 'Content-Type: application/json'  -d '{"testArg": "testValue"}'  'https://power-site-5184.database.com/services/apexrest/test'   Response   [{"message":"Unexpected parameter encountered during deserialization: testArg  at [line:1, column:14]","errorCode":"JSON_PARSER_ERROR"}]   Update (resolved)  The correct JSON data structure should be   -d '{"req": {"testArg": "testValue"}}'


Prove: Product of any polynomial of $x$ with $\psi(x)$ or any of its derivatives goes to zero in the limit $x\to\pm\infty$.   This comes from a footnote written by the professor in his quantum mechanics problem set and I am curious to know why. I have unsuccessfully attempted L'Hôpital, Taylor expansion, and many other weird methods. Any help is appreciated.

I was recently reading Griffiths' Introduction to Quantum Mechanics, and I stuck upon a following sentence:     but $\Psi$ must go to zero as $x$ goes to $\pm\infty$ - otherwise the wave function would not be normalizable.   The author also added a footer: "A good mathematician can supply you with pathological counterexamples, but they do not arise in physics (...)".  Can anybody give such a counterexample?


Do I need a comma after "Go!" in the following sentence?     When I said, "Go!" all the children ran up to a card and picked it up.   Does the sentence look right (with a lowercase a) or should I reword it and use the following sentence instead?     All the children ran up to a card and picked it up when I said, "Go!"

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


I am having an issue.  I have a machine that has 2 users, the admin user and another user which seems to have basically no permissions to do anything.  I do not know the admin password and every time I try to do anything form the other user account it prompts me for that admin user password. I have tried a number of methods to reset the password from changing UAC, various 3rd party windows password reset tools, and several other suggestions I found but when I try to do anything including creating a bootable image I get prompted for the admin password.  There are files that are very important in the admin users documents that I need but I can't seem to find a way to get them.  Any help would be greatly appreciated.  This post is not a duplicate, the methods suggested in the "duplicate" post here "" do not solve my issue.  When I try to run those executable I am prompted for the admin user's credentials.

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


I am working for dynamic table from a jquery/ajax function that will display a list of files depending on the clicked category.  Once the list of file is displayed, the user can click on table row (checkbox will also be checked) to display/preview the file but the row can't have a jquery event.  I have tried it on a plain html table with the function below and it worked.  What could be the solution for this?    function directoryAction(obj){            var directory = obj.value            var editDer = directory.replace("./","");            $(".content-main").html("<button class='btn btn-default'></button>"+                 "<button class='btn btn-default' value='"+ directory +"' onclick='addDocument(this);'></button>");            $(".content-main").append("
"+editDer+"
");            $(".content-main").append("
"+            "
"+            "
"+            "<input type='checkbox' class='form-control '/>	"+            "File Name	"+            "Uploader	"+            "Date Modefied	"+              "
"+              "
"+              "

</table");             var dataString = "directory=" + directory + "&getFileInDirectory="              $.ajax({                 url: "main.php",                 type: "GET",                 data: dataString,                 dataType: "json",                 contentType: false,                 cache: false,                 processData: false,                 success:function(data){                     var id = 0;                     $.each(data,function(i,element){                         var fName = element.namef;                         var uploader = element.uploader;                         var datestamp = element.datestamp;                         var fileId = element.id;                         $(".fileTbody").append("
<input id='file"+ id +"' type='hidden' value='"+ fileId +"'>"+                         "<input type='checkbox' id='chk"+ id + "' class='form-control'/>	"+                         ""+ fName +"	"+uploader+"	"+datestamp+"
");                         id++;                     });                 }              });        }      $(function(){         $(document).ready(function() {             $('.record_table tr').click(function(event) {                 if (event.target.type !== 'checkbox') {                     $(':checkbox', this).trigger('click');                 }             });         });        });

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


It seems to me that recently there has been an upswing in commercials that appear to actually be meant to last for less than a tenth of a second. I first started seeing them on the Late Show with Stephen Colbert, the first one being an ad for Greenpeace which would pop up after a car ad or whatever. It was just the Greenpeace logo on a black background, and was clearly readable.  I have also seen the same length of "ad" that just said it was paid for by such-and-such family, showing that family playing a board game in their living room.   I have also seen ones that seemed to be cut off from the end of fund raising ads, notably one for Doctors Without Borders, which was much harder to latch onto in freeze frame mode on my DVR than the first two examples. Are these all just cut off bits of longer ads?

I see this from time to time during commercial breaks: all of a sudden, a commercial will play for a split second, no more than 2 or 3 seconds but then get cut off.  Why does this happen? Is this a time restraint issue?


I am trying to list multiple items, but with a specific area they are located in.      The perfume had top notes of black currant, luscious strawberry,   and sparkling cassis; mid-notes of ginger lily, bright peony,   and pink jasmine; and dry notes of amber wood, white patchouli,   and vanilla musk.   I don't know whether to use semicolons to separate the different areas or colons or even commas. Or, do I use the method used in the example with both?   (Note: Bold is the area location and italic is items in area.)

Inside the alley I found myself cornered by unpleasant sights: walls covered with cracks and peeling paint, storm drains clogged with moss, dumpsters overflowing with bags, cans, and rotten trash. Inside the alley I found myself cornered by unpleasant sights: walls covered with cracks and peeling paint; storm drains clogged with moss; dumpsters overflowing with bags, cans, and rotten trash. Inside the alley I found myself cornered by unpleasant sights. Walls covered with cracks and peeling paint. Storm drains clogged with moss. Dumpsters overflowing with bags, cans, and rotten trash.  Or maybe the three of them are orthographically correct in their respective contexts? EDIT (based on dockeryZ's answer): I think second example is right, regardless of the context. Explanation: .


I'm working on an application in Android Studio that, for some reason, constantly throws the error "Unfortunately, MyApp has stopped".  This only happens if I run the app, make a change to the code while it's running, and then try to run it again.  If I stop the "Run" task and start it again, I don't get this error.  Here's the log:  06-14 15:54:06.213 25752-25752/com.myapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.myapp, PID: 25752 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.activity_host}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.myapp.MB_item.getItemId()' on a null object reference   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)   at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)   at android.app.ActivityThread.-wrap15(ActivityThread.java)   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)   at android.os.Handler.dispatchMessage(Handler.java:102)   at android.os.Looper.loop(Looper.java:148)   at android.app.ActivityThread.main(ActivityThread.java:5417)   at java.lang.reflect.Method.invoke(Native Method)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.myapp.MB_item.getItemId()' on a null object reference   at com.myapp.BT_screen_menuButtons$override.onCreateView(MB_screen_menuButtons.java:119)   at com.myapp.BT_screen_menuButtons$override.access$dispatch(MB_screen_menuButtons.java)   at com.myapp.BT_screen_menuButtons.onCreateView(MB_screen_menuButtons.java:0)   at android.app.Fragment.performCreateView(Fragment.java:2220)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130)   at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1953)   at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:152)   at android.app.Activity.performCreateCommon(Activity.java:6232)   at android.app.Activity.performCreate(Activity.java:6239)   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)    at android.app.ActivityThread.-wrap15(ActivityThread.java)    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)    at android.os.Handler.dispatchMessage(Handler.java:102)    at android.os.Looper.loop(Looper.java:148)    at android.app.ActivityThread.main(ActivityThread.java:5417)    at java.lang.reflect.Method.invoke(Native Method)    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   Why would the code behave differently only on subsequent launches and not when I initially run the app?  Additional code:  This is the line (119 of MB_screen_menuButtons.java) that's throwing the error. screenData.getItemId() is clearly where the null value is being passed but I don't understand why it would only be null during an Instant Run update.  debugger.showIt(fragmentName + ":onCreateView JSON itemId: \"" + screenData.getItemId() + "\" itemType: \"" + screenData.getItemType() + "\" itemNickname: \"" + screenData.getItemNickname() + "\"");

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 have a continuous response and independent variable. Can I use a neural network? to give some detail: the response variable is spray drift and the dependent variables are spray distance, wind speed and tempreture.

I have dataset of 15 features and the goal is to estimate a best fitting curve (regression). Now I want to use a deep learning technique for this purpose. Now I see that there are many architectures that can be used such as CNN, DBM or auto-encoder, etc.. Which one to go for. And I could not find any examples for how to use the same. A sample code would be of great help. Thanks  P.S. Some of the features are categorical. How do we handle that as well?


Im playing a ranger in DnD 4e and I just wanted to know if you can still make opportunity attacks while prone?

If a creature is knocked prone, can it still make opportunity attacks?


In light of the Covid-19 crisis, my country's banks have seen their shares' prices drop. Last week, the banks announced that they will doing a share buyback, and this week, the prices of the shares have increased...  Is there any reason why the banks are buying their own shares at a crisis like this?

What is the reason that a company like AAPL is buying back its own shares? Does it have too much cash and it doesn't know what to do with it? So it is returning the cash back to investors?


The word "chutzpa" (pronounced "HOOTS-pah") took root in American English towards the end of the Nineteenth Century. Originally Aramaic (don't hold me to it: I don't know whether Jesus used it; I doubt it: it's a pretty tacky word, if you ask me), it somehow sneaked into Yiddish prior to landing in the States.  It means - well ... An extreme degree of impudence; gall; ballsy obnoxiousness; in-your-face impertinence; aplomb and confidence - all at the same time. A conversation involving chutzpa would go something like this:  "You owe me twenty bucks." "Excuse me?" "You heard me. Pay up." "But I don't even know you." "Before you married your wife, she and I went out on a date, and she borrowed a twenty from me, and never paid me back." "I've been married for twenty years." "So what? Come on, let's not drag this out. Make with the twenty."  You get the gist. Chutzpa is very useful in a con, long or short, and invaluable in big business, or so people who are more familiar with such matters than myself have assured me on numerous occasions.  Some years ago I read an article in a magazine that was back then regarded as reputable by people who subscribed to it (I didn't - I don't believe in reputable magazines). The author of the article compared American and British English, and mentioned, very much in passing, that the Brits said "blag" instead of "chutzpa."  I don't know. Do they? Do you?

Chutzpah is a term common to both Hebrew and Yiddish, and has been imported into English, at least for Jews. It means approximately audacity, nerve, insolence.  Is chutzpah also used by non-Jewish English speakers?  I think I have only seen it once outside of Jewish publications / communities.


In the field of measure theory, the outer measure is defined on the set of real numbers as:   $$m^{*}(A) = \inf\left\{ \sum_{n=1}^{\infty} l(E_n): \space A \subset \bigcup_{n=1}^{\infty} E_n \right\} $$  NOTE - $l(E_n)$ is the length of the interval $E_n$  I want to show that the real number outer measure is subadditive, so  $$m^{*}\left( \bigcup_{n=1}^{\infty} S_n \right) \le \sum_{n=1}^{\infty} m^{*}(S_n)$$  As a first step in the proof, all the measure theory textbooks I have consulted start by stating that we assume that $m^*(S_n)$ is finite for all $n$ (because the result is trivially true otherwise), which makes sense to me.  Next, they assert that for any $S_n$, we can find an open cover $\space S_n \subset \bigcup_{n=1}^{\infty} E_n$ such that $ \sum_{j=1}^{\infty} l(E_n) \le \mu^*(S_n)+\frac{\epsilon}{2^n}$  Why does such a cover necessarily exist? Isn't it possible that the only covers are countably infinite on the real numbers? Also, what explains the epsilon inequality - how do we know that a countable cover necessarily meets that criterion?

Working on the proof that outer measure is countably subadditive in Royden   For a set $A \subset X$ we define the outer measure:   $$\mu^{*}(A) = \inf\left\{ \sum_{n=1}^{\infty} \tau(T_n): \space T_n \in \mathcal{T}, \space A \subset \bigcup_{n=1}^{\infty} T_n \right\} $$  We want to prove that $\mu^{*}$ has the property of subadditivity: for a sequence $\{ A_n\}_{n=1}^{\infty}$ the following is true:  $$\mu^{*}\left( \bigcup_{n=1}^{\infty} A_n \right) \le \sum_{n=1}^{\infty} \mu^{*}(A_n)$$  $\mathbf{Proof}$: The first step is that there exists $(n,j)$ such that $A_n \subset \bigcup_{j=1}^{\infty} T_{(n,j)}$ and $ \sum_{j=1}^{\infty} \tau(T_{(n,j)}) \le \mu^*(A_n)+\frac{\epsilon}{2^n}$  ~~~~~~~~~~~~~~~~~~~~~~~~~~  I'm confused as to how we know that such an open cover $T_{(n,j)}$ exists, especially subject to the condition that $ \sum_{j=1}^{\infty} \tau(T_{(n,j)}) \le \mu^*(A_n)+\frac{\epsilon}{2^n}$ How would such an open cover be constructed? If anyone could help me develop some intuition for this step, that would be great