Caused by: java.lang.NullPointerException: null for HQL QUERY

Hibernate query to retrieve organisation getting null pointer exception Any suggetsions on how to solve?  StringBuilder queryString = new StringBuilder("SELECT abo.idAbonne ")             .append(" FROM RoleOrganisationsUtilisateurs rou ")             .append(" JOIN rou.user u ")             .append(" JOIN rou.abonnes abo ")             .append(" WHERE u.idUser = :idUser ");      Query query = getFilteredCurrentSession().createQuery(queryString.toString());     query.setParameter("idUser", idUser);      return query.list();   RoleOrganisationUtilisateur entity  @Entity @Table(name = "T_ROLE_ORGANISATIONS_UTILISATEURS") public class RoleOrganisationsUtilisateurs extends  { private static final long serialVersionUID = -2718251269880448406L;  private static final String COLUMN_ID_ROLE_ORGANISATIONS_UTILISATEURS = "ID_ROLE_ORGANISATIONS_UTILISATEURS";  @Id @Column(name = RoleOrganisationsUtilisateurs.COLUMN_ID_ROLE_ORGANISATIONS_UTILISATEURS, columnDefinition = "CHAR(32)") @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid") private String id;   @ManyToOne @Index(name = IndexNameUtil.T_ROLE_ORG_UTILISATEURS_ID_USER_IDX) @JoinColumn(name = "ID_USER") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private User user;  @ManyToOne @Index(name = IndexNameUtil.T_ROLE_ORG_UTILISATEURS_ID_ROLE_IDX) @JoinColumn(name = "ID_ROLE") @NotNull @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private Role role;  @ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST,         CascadeType.MERGE }) @JoinTable(name = "T_ROLE_ORGANISATIONS_UTILISATEURS_LNK_T_ORGANISATION", joinColumns = @JoinColumn(name = "ID_ROLE_ORGANISATIONS_UTILISATEURS", nullable = false), inverseJoinColumns = @JoinColumn(name = "ID_ORGANISATION", nullable = false)) @Filters({ @Filter(name = MarsConstants.SUPPRIME_FILTER), @Filter(name = MarsConstants.MIGRATION_FILTER) }) @OrderBy("nomOrganisation ASC") @NotAudited private Set<Organisation> organisations = new HashSet<>();  @ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST,         CascadeType.MERGE }) @JoinTable(name = "T_ROLE_ORGANISATIONS_UTILISATEURS_LNK_T_ABONNE", joinColumns = @JoinColumn(name = "ID_ROLE_ORGANISATIONS_UTILISATEURS", nullable = false), inverseJoinColumns = @JoinColumn(name = "ID_ABONNE", nullable = false)) @Filters({ @Filter(name = MarsConstants.SUPPRIME_FILTER), @Filter(name = MarsConstants.MIGRATION_FILTER) }) @OrderBy("nom ASC") @AuditJoinTable(name = "T_ROLE_ORGS_USERS_LNK_T_ABONNE_AUD") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private Set<Abonne> abonnes = new HashSet<>();  @Column(name = "BOO_ALL_ORGANISATION") private Boolean allOrganisations = Boolean.FALSE;  @Column(name = "BOO_ALL_ABONNES") private Boolean allAbonnes = Boolean.FALSE;   This is the Abonne Entity  @Entity @Table(name = "T_ABONNE") @Audited @Cache(usage=CacheConcurrencyStrategy.READ_ONLY, region="abonne_entity") public class Abonne  {       /**      *      */     private static final long serialVersionUID = -7500240243978256087L;      @Id     @Column(name = "ID_ABONNE", columnDefinition = "CHAR(32)")     @GeneratedValue(generator = "uuid")     @GenericGenerator(name = "uuid", strategy = "uuid")     private String idAbonne;      @Column(name = "LIB_NOM", length = 200, nullable = false)     private String nom;      @Column(name = "BOO_ACTIF", nullable = false)     private Boolean actif;      @Column(name = "DAT_DATE_EXPIRATION", length = 10)     @Type(type="utcType")     private Date dateExpiration;      @Column(name="NO_MAXIM_DE_UTILISATEURS", length = 5000)     private Integer noMaxUsers;   Getting null pointer for query     Caused by: java.lang.NullPointerException: null    My db tables contain all the required data Any suggetsions on how to solve?


What is the scope of this global / function variable?

In the following code, shouldn't x be considered a global variable?  Thus, when it gets to the console.log line x it should have the value of "World".  However, when I run this code it logs "Hello undefined".  `  let x = "World";  function sayHello(x) {     console.log("Hello ", x); }  sayHello();   But when I change the parameter to y, it then works as I expected, logging "Hello World.  let x = "World";  function sayHello(y) {     console.log("Hello ", x); }  sayHello();   Can someone explain what is going on here?  thanks


Finding a square root of a permutation or explaining why it doesn't exist

Let $\alpha,\beta\in S_6$ be given by:  $$\alpha = \begin{pmatrix}1&2&3&4&5&6\\3&5&1&2&6&4\end{pmatrix},\beta = \begin{pmatrix}1&2&3&4&5&6\\6&1&5&3&4&2\end{pmatrix}$$  (a)  Find $\alpha^{-1}$ and $\beta^{-1}$  (b)  Find permutations $\gamma,\delta\in S_6$ such that $\gamma\circ \alpha = \beta$ and $\alpha \circ \delta = \beta$  (c)  Find the least positive integer $m$ such that $\alpha^m = \iota$, where $\iota$ denotes the identity permutation of $X_6$.  (d)  Find a permutation $\pi\in S_6$ such that $\pi^2 = \beta$  (e)  Does there exist a permutation $\pi\in S_6$ such that $\pi^2 = \alpha$?  Either find $\pi$ or explain why such a permutation does not exist.    although I found a permutation (d)but it is not a good way to find a such permutation and  how to explain (e) it can't be found above my way


Why doesn't this invalid subquery raise a syntax error?

Is there any explanation so as to why SSMS did not raise any compilation error for the below delete query with a subquery that is invalid on its own?  Below is the sequence of steps to reproduce the behavior:  CREATE TABLE [dbo].[delete_test] (     [id] [int] IDENTITY(1,1) NOT NULL,     [name] [nchar](10) NOT NULL ) ON [PRIMARY];   Seed data:  insert dbo.delete_test(name) values(N'a'),(N'b'),(N'c'),(N'd'),(N'e');   Create a backup table:  select id, name   into dbo.delete_test_backup    from dbo.delete_test where id > 2;   Below statement should ideally not execute and, even if it executes, should only delete rows with id values that have been backed up :  delete dbo.delete_test where id in (     select id delete_test_backup  );   The message shows that 5 rows were deleted, but I expected only 3 rows to be deleted:  (5 row(s) affected)   Attempt to execute the sub-query as a standalone fails :  select id delete_test_backup ;      Invalid column name 'id'   Below one executes as expected :  select id from dbo.delete_test_backup ;      Output :   id -- 3 4 5


What does “leaning in” mean as basic qualifications of women in the pursuit of positions in the workplace?

New York Times’ article written by Scott Schieman,  et al under the headline, “When Leaning in doesn’t pay off” starts with the following sentence;      “Why do women not have as many leadership roles in the workplace as   men do? Some have pointed to internal barriers, suggesting that the   problem is partly attributable to something about women themselves,   they are not “ambitious enough” at work, or are deeply committed to   work but too hesitant to climb leadership ladders in organizations. -   - - Sheryl Sandberg, in her now famous phrase, would have women “lean in,” to be more assertive at work and not let biases keep   them from pushing forward. By leaning in, women would obtain more   authority.       To understand the claims embedded in the “lean in” hypothesis, we   need to know why, when or how women decide to pursue positions of   authority in the workplace."   As I haven’t read Sheryl Sandberg’s book, I don’t know what she means by “lean in.”   Unfortunately none of Cambridge, Oxford, and Merriam Webster Dictionary includes “lean in” as an idiom, though all of them carry “lean on sb. / stg.”  What does “lean in” means? Does it mean stronger devotion to the work? In what instances is 'lean in' used as an idiom? Is “lean in” a neologism with specific implications /purposes invented by Sheryl Sandberg?   By the way:  Sheryl Sandberg’s ‘Lean In” is translated into Japanese by Yuko Kawamoto et al, published by Nihon Keizai Press, one of Japan’s leading newspapers known by the financial term, 'Nikkei Index' and a publisher recently, and widely read by Japanese businesswomen and men. It's becoming a best-seller.   The title and the word, ‘Lean In’ of the Japanese version are translated as “Make a step forward.” However, I wonder if “Make a step forward” exactly fits what Sandberg intends to convey and what you perceive with this word.   To me "lean in" and "make a step forword"- there's the axiom in Zen, 'Make a stepfoward at the end of a cliff to get Satori (spiritual enlightment) - sound different as a physical action or posture, setting aside the state and level of mind.


mutual independence implies pairwise independence show that the converse is not true.

We know:   Mutual Independence :   For $n\geq3$, random variables $X_1,X_2,...,X_n$ are mutually independent if $$ p(x_1,x_2,...,x_n)=p(x_1)p(x_2)...p(x_n)$$ for all $x_1,x_2,...,x_n$.  Pairwise Independence :  For $n\geq3$, random variables $X_1,X_2,...,X_n$ are pairwise independent if $ X_i,X_j$ are independent for all $1\leq i<j\leq n$.  Note that mutual independence implies pairwise independence.() show that the converse is not true.  Personally, I think the answer is cleared with the definition of 'Conditional Independence', but any help is appreciated.


How do I make the panko bread stick to my egg-coated chicken?

I am trying to do a pan-fried schnitzel with chicken breast coated in a mix of eggs, salt, pepper, some ketchup, a bit of olive-oil and sweet paprika. Once I coat the chicken in the egg mix, I try to cover it with panko bread, but for some reason it doesn't stick and leaves tiny holes once it's pan-fried. Somebody says I should coat the chicken with flour prior to the egg, but I'm not convinced that would do the trick.  Does anyone care to explain what to do?


My daughter logged in to her Gmail account and it seems to be the default; when I open Gmail, hers is first choice, then mine; she lives in another state and only used her account here once.  How do I remove her account as an option every time I log in?


Prove that for all non-negative integers $m,n$, $\frac{(2m)!(2n)!}{m!n!(m + n)!}$ is an integer.   I'm not familiar to factorial and I don't have much idea, can someone show me how to prove this? Thank you.


Dictionary has to download again every time I log out or restart

Every time I restart my macbook or I log out of my account, I have to open the Dictionary app and download my dictionaries again to have it working (the three-fingers-tap for word definitions.)  Why is it getting deleted every time after restart and how to make the dictionaries permanent?


Does it have a significance that some coffee beans are shiny and others are dull?

Some espresso beans have a deep "luxurious" luster while beans from other packages seem dull. Although I have only anecdotal evidence it seems that my usual brand, , often has the luster while some others don't (always). Is that from a difference in the beans, or the roasting, or is it just coincidence? For example, my last package of  seemed duller. I notice that the Lavazza is a mix of Arabica with Robusta while the Altomayo is pure Arabica but I think some pure Arabica also looked dull in the past. The packaging is very similar, and all samples come in kilogram airtight foil bags. The luster clearly makes the beans look classier; is it a sign of quality?


Java String Split: Curly brackets issues

I'm writing a code to check for balanced brackets but I'm having a problem, probably with Java syntax. In the following code:  String s0 = "{{[[(()[])]{()}]}}}"; String[] s1 = s0.split(""); if (s1[0] == "{")     System.out.println("Ok"); else     System.out.println("Nope");   Why the comparison   s1[0] == "{"   is not true?


The word wont - for example: 'I wont do it!'.  Should it be spelled wont or won't, is there an American/English difference?


Ortbit camera rotation multiplication order with quaternions?

So I switched my camera to use quaternions and the first thing I noticed is that things started to 'roll' even though I'm not using any roll values. I looked it up and I found that people suggest that using rotation = horizontal * rotation * vertical solves the issues instead of rotation = rotation * horizontal * vertical which I thought was the more intuitive thing from doing matrix multiplication. The explanations I read as to why one works and the other doesn't were pretty vague and unclear.  My question is: why does it work this way? what's wrong with 'rotation * h * v`?  Sample code:  float Horizontal = 0; float Vertical = 0;  if (Keys['W'] == Key_Held) {     Camera->Position += Camera->Forward() * CamMovSpeed * DeltaTime; } if (Keys['S'] == Key_Held) {     Camera->Position -= Camera->Forward() * CamMovSpeed * DeltaTime; } if (Keys['A'] == Key_Held) {     Camera->Position -= Camera->Right() * CamMovSpeed * DeltaTime; } if (Keys['D'] == Key_Held) {     Camera->Position += Camera->Right() * CamMovSpeed * DeltaTime; } if (Keys['E'] == Key_Held) {     Camera->Position += vec_Up * CamMovSpeed * DeltaTime; } if (Keys['F'] == Key_Held) {     Camera->Position -= vec_Up * CamMovSpeed * DeltaTime; }  // mouse int dx = Mouse->x - Mouse->LastX; Mouse->LastX = Mouse->x; int dy = Mouse->LastY - Mouse->y; Mouse->LastY = Mouse->y; if (Mouse->MMB == Key_Held) // pan {     Camera->Position -= (Camera->Up()*dy + Camera->Right()*dx) * SpeedMul/2 * DeltaTime; } if (Mouse->RMB == Key_Held) // orbit {     Horizontal += dx * SpeedMul*10 * DeltaTime;     Vertical += dy * SpeedMul*10 * DeltaTime; } if (Mouse->Wheel) // zoom {     Camera->Position += Camera->Forward() * Mouse->Wheel * SpeedMul*10 * DeltaTime; }  if (Horizontal != 0 || Vertical != 0) {     quat QVertical(vec_Right, -Vertical);     quat QHorizontal(vec_Up, Horizontal);     Camera->Rotation = QHorizontal * Camera->Rotation * QVertical; // this works     //Camera->Rotation = Camera->Rotation * QHorizontal * QVertical; // this doesn't     Camera->Rotation.Normalize(); }


error while installing windows 7 through virtual box

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


css: Set html height to 100% of container

I have an element that can be any size. I need to set the child element to fill the remaining space. I wrote a little demo of my problem.    .random-size{     height:200px;     width:100px;     padding:10px;     background-color:grey;   }    .container-fill{     background-color:red;     height:100%;   }

         hello world

  Outputs:  This is correct for the output for now but if I add another child element

uh oh

         hello world

  The output is now:  As you see there is out of bounds content. I can't use overflow:hidden due to content will be displayed at the bottom. I tried using grids/tables but I could not figure it out. I don't want to resort to using calc.


Call to member function on a non-object with instance variable

I have the below code which, when run, returns this error:  PHP Fatal error:  Call to a member function count() on a non-object in /classes/User.php on line 36  public function find($user = null) {     if($user) {         $field = (is_numeric($user)) ? 'id' : 'email';         $data = $this->_db->get('*', 'users', array($field, '=', $user));         if($data->count()) { // This is line 36, the $_db variable is an instance of the DB class             $this->_data = $data->first();             return true;         }     }     return false; }   What am I missing that is making $data not refer to an object?


Object.assign method will change the origin object property - JS

I am new to ReactJS and I found a curious thing about Object.assign():    const B = {     k1: 'b',     k2: 'bb',     treedata: [{         children: ['g']     }] }  var A = Object.assign({}, B); A.treedata[0].children = [1]; console.log(B)     As you can see, after Object.assign(), changing object A will also change object B. Why does this happen and how can you avoid this?


Transitioning between Lagrangian and Eulerian fluid variables

I'm having trouble understanding the motivation between wanting to transition between the two descriptions.  I figure that switching from  is useful if we want to recover a particle's trajectory maybe? Is there any other reason to do so? and then what are we measuring by switching from Lagrangian to Eulerian?


Why protons and electrons attract each other?

states that electrons and protons are bonded together by emitting electromagnetic waves and absorbing each other's electromagnetic waves. But isn't because it due to potential energy of each other?  Which is right?


Example text : "jhon's email address is jhon@gmail.com"  I got an error when identifying jhon's email address from regex.I'm new for this regex so like to have your valuable answers .Thanks in advance Expected result : jhon@gmail.com


GitKraken Gtk-Message: Failed to load module "canberra-gtk-module"

Hello is this someone has worries under Ubuntu 18.04.1 LTS with GitKraken to connect with GitHub?, Because on 2 PC freshly installed and updated can not authorize the connection.  I get this error by launching Gitkraken in a terminal    So I search on Google and enter his orders, but it does not solve my problem I always have the same error  sudo apt install libcanberra-gtk-module libcanberra-gtk3-module sudo apt-get install libcanberra-gtk-module:i386 sudo apt-get install --reinstall libcanberra-gtk-module


How can I find the mean and the standard deviation of X^2?

Given a random variable $X$, which is normally distributed with a mean value of $0$ and a standard deviation of $2$. How can I find the mean and the standard deviation of $X^2$?


Short story about cybercriminal sentenced not to use computers

Can anyone help me find a near-future sci fi short story I read many years ago about a hacker whose sentence was never to use computers again? I believe the sentence was enforced through an implant that made him suffer if he thought about doing so. As I recall he was on the verge of starvation because he couldn't do so much as pay for food without using a computer.  The story involved someone, maybe the narrator?, taking pity on him and buying him a meal at the diner where he'd been staring in the window or something.  It felt like perhaps Philip K. Dick or Gibson, maybe, but I could be misremembering.


Is it possible to put pi into terms of rationals

I don't know of that is the correct terminology but by this I mean in the way that $\phi$ can be put into the equation $(1+\sqrt 5)/2$. I have heard that it has never been achieved but I was wondering if there was anything to show that it was imposible. If so, would anyone mind providing links to studies, webpages, etc. Thanks!


Is there a way to make a block wrap from the column 1 to the column 2?

I am formatting a poster for my thesis presentation. It is in a beamer documentclass, and I am using blocks within a column environment to split up the information so that it looks nice. I have multiple blocks in a column, and some of the text in a block will go off the bottom of the page since it is too long. Is there a way to make a block wrap around, say from the first column to the second column so that all the info is displayed?  My other thought is to create a new block for the information that is clipped, but that would leave a fat header at the top of the block which would not be ideal. Is there another environment that I could put that info in?  Here is a link to my overleaf file if anyone wants to see the issue.


When I run base64 filename >> encodedfile the new content is appended to existing content. Is there any way I can replace entire old content with new content. Using any similar one line technique? I'd like to learn more such techniques, but I don't know what to search for?  EDIT: What if the new file is same file. Ex: base64 filename > filename. I tried this, the instead of the new content, I see the file gets blank...


In how many ways can the word "permutations" be arranged if there are 4 letters between p and s?  I simply can't get any hold on this problem


'Failed to login: Invalid ip' when connecting to servers

When I try to connect to a minecraft server, it says     Failed to login: Invalid ip 123.123.123.*   Giving me my IP address with the last octet asterisked out.    Now the Minecraft launcher forgets my logged-in accounts, which is unusual.    Now I can't log into the launcher nor the website, Mojang tells me I have an invalid email or password.


Formula for $\sum_{i=1}^n \lfloor i\sqrt{2} \rfloor $

I'm trying to find a faster way to compute this: $$\sum_{i=1}^n \lfloor i\sqrt{2} \rfloor $$ I doubt that there is a compact form, but there must be some way to calculate this faster than just iterating over i. If it wasn't for the floor, it would be easy, but I don't know and can't find anything on how to solve this.


Can Rabbits really only drop Rabbit's Foot when killed by the player in Minecraft?

Minecraft's Gamepedia  says this:      Each rabbit has a 10% chance to drop a rabbit's foot when killed by the player   And I've seen a bunch of videos on rabbit farms claiming the same, but I've just finished making one such rabbit farm, I bred a bunch of rabbits until the entity cramming limit was reached and some of them started dying off, so I pulled a lever which would drop the baby rabbits into a drainage system that would separate them from the big ones so more wouldn't die off, and after this I take a look at my loot chest, apparently a whole 15 rabbits died (cus 15 rabbit hide), but what's curious to me is that I also got 3 Rabbit's feet.  This doesn't line up with what the gamepedia entry says unless I missed something and entity cramming deaths count as player kills. Has the requirement for rabbits to be killed by players for their feet to drop been reverted? Or was this just some weird quirk?


How to prevent Python script from printing even though conditions to print are True?

I want my Python script to print a list only if one condition is true between two separate conditions. However, it is possible for both conditions to be true at the same time. Below is the portion of code I am referring to:  pricelist = [main(), main()] #these list values are added from an earlier function in my script i = 1 while i == 1:     pricelist.append(main())     pricelist.pop(0)     if pricelist[-1] == ("$0.00"):         pass #if the last append to pricelist is "$0.00" I don't want anything to print     if pricelist[-2] != pricelist[-1]:         print(pricelist)  # Print the contents of pricelist only if the 2 values are different but NOT print anything if the last append is "$0.00"   It is possible to have the list results be [‘some value’, ‘$0.00’]. In this case, even though both conditions I have listed in my script are true, I don’t want pricelist to print anything. What do I need to change in my script so pricelist won’t print if both conditions are true?


Which Google Account set up the Analytics?

i have a few different web sites w/ Analytics loaded on.    One site is not showing up in my analytics reports because i think it was set up by someone else working for me at the time.  I know the "UA-xxxx" code.   How do i find out which analytics account it is associated with so i can get in there to see the data and/or transfer elsewhere?


Determine whether or not I can install a 64-bit operating system (Linux) from the BIOS

My Windows XP installation has become unusable for some unknown reason. Since Microsoft is going to end support in a few days anyway, I decided to install Linux Mint.  For optimal hardware utilization, I want to use a 64-bit system if possible. However, since XP isn't working it's not possible to .  Therefore, I want to use the BIOS to find it out.  What information in the BIOS should I use to determine whether or not my I can install a 64-bit operating system?


Is $C^1([a,b])$ with sup norm a complete metric space?

Give $C^1([a,b])$ the sup metric induced from $(C^0([a,b]),||.||)$. I want to know if $C^1([a,b])$ is complete. My thinking is to show that $C^1([a,b])$ is a closed subset of $C^0([a,b])$.  Let $(f_n)$ be a sequence of $C^1([a,b])$ functions where $f_n\to f$ (sup-norm convergence). Since differentiability implies continuity, $(f_n)\in C^0([a,b])$, where sup convergence is the same as uniform convergence. The sequence $(f'_n)$ is also in $C^0([a,b])$.   I know that If $f_n$ is a sequence of differentiable functions with $f_n\to f$ uniformly and $f'_n\to g$ uniformly, then $f$ is differentiable and $f=g$.  So if $(f'_n)$ converges, it converges to $f'$. Since $(f'_n)\in C^0([a,b])$, $f'\in C^0([a,b])$, so $f\in C^1([a,b])$. So if I can show $f'_n$ converges in $C^0[a,b]$, then $C^1([a,b])$ is closed and the proof is done. But this only works if must $(f'_n)$ converge. Is this true, and if so why?


Am I in a sugar momma scam? What’s should I do in my situation?

I was approached through direct message by a female account on Instagram (which seemed to be catfished) saying that she is a “sugar mummy” willing to pay $300 weekly for a sugar baby. “She” basically said that since covid is so bad right now, all she needs for now is someone to give her a lot of attention (essentially an online relationship). I was pretty high to be quite honest and I felt like playing along cause it all seemed funny at the time. She asked me a few questions which I answered, and then she said “we can start your payment today”. I asked if she could do etransfer or PayPal but she said she could only send me money by emailing me photos of a cheque. I’m able to deposit cheques on my mobile bank app so I said okay sure. However, then she said she needed to send money to her friend who isn’t so tech savvy and can only receive online transactions through etransfer, but the sugar momma already mentioned she can’t do etransfer so she needs me to do it... She said her friend is someone who can buy her some video card thing for her computer which she mentioned earlier today, but the weird thing is, the cheque she sent me was for $600, which means that she was giving me and her friend the exact same amount, which is really weird. At the time I was like wait this wasn’t a scam this was real, and I impulsively deposited the cheque. My first guess is that she lied and the person I need to etransfer the $300 to for her is someone like me, “the sugar baby”. But just now, at 2am, she finally sent me the email to the person she wants me to send the $300 to, and i asked if I could send it the morning because it’s late and I’m gonna sleep now, but then she said: “ Yes i know it’s pretty late dear. But it’s just you could do within a minute. Once you do I’ll be heading to bed also dear😴.“ It’s pretty late right now and I’m half asleep so if my writing is weird, that’s why. I don’t know what to do about the situation I am in right now. If anyone has any suggestions about what to do (or what NOT to do) moving forward with my situation. Screenshot of account:


What's with the 10-char min for edit summaries?

This has always annoyed the hell out of me, because sometimes I'm just fixing a 1 or 2 character typo that made the title harder to read, and the best summary is "typo", and the edit is obvious if you look at it.  But then I have to go and write a summary like "typo in the title fixed by me" instead of just "typo".  I realize this isn't a big deal, but why is it there at all? It's kind of annoying and serves no immediately obvious purpose given how extensive and thorough the edit viewing system is in the first place-- it's very clear what edit was made.  I'd say a char-min of 4 is better, personally.  Incidentally, this only applies to those who do not have full edit privileges. Otherwise there is no min.


I'm at a loss on this one. My girlfriends microphone is not working in FaceTime on her iPhone 5s. The microphone itself works because we tested it with the Voice Memos app. When we have a FaceTime conversation I can occasionally hear some sort of clicking/crackling noise, but no voice. I don't know exactly what it's picking up. However with strictly FaceTime audio calls it does pick up sound. The sound also does not work with voice recording text messages.   The first thing I thought of was thinking that maybe the app doesn't have permission to access the microphone. I looked though settings and on FaceTime but couldn't find where the permission could be toggled. And I had no idea how to force it to ask the permission question again.  Prior to getting her iPhone 5s screen fixed, she was using an old iPhone 4 for a long time. On the iPhone 4 FaceTime worked just fine. When she got the 5s back I restored it from iCloud with a backup image of the iPhone 4 so she would have all of her apps and what not. Since then the microphone on FaceTime has not been working.  Any tips or ideas on what to try?


Defining 32-bit or 64-bit processor requirements

My knowledge of computer hardware is fairly extensive, however it is apparent that this is not the case when considering types of operating systems. I've gone by the rule of thumb for years that if a machine is over 4GB, install a 64bit version in order to use all that memory, and the opposite for choosing 32bit operating systems.  In my latest purchase of a processor, I've noticed explicit detail highlighting the processors' architecture; "32bit" or "64bit". I know this has relevance to how many bytes can be stored in registers for memory addressing, but does this play part in when considering an OS, too?   For example, if your CPU is 64bit but you have 2GB memory, shall you choose the 32bit version of an OS? According to , the answer is yes. Can someone please explain this to me, if you have the time?  I would like to know the affects of installing a 32bit system on a 64bit system with 2GB, and what role the capacity of memory really has when choosing 32/64bit hardware and software.  Edit I've correct a mistake in paragraph 3 of the question.  Edit v2 Whilst, indeed, this is a duplicate, I did search for similar questions and that question linked above was not in the results. I blame the searching algorithm, not my now perceived laziness.


How to concatinate string with multiple complex SELECT statements and place it in a column

I have a scenario where I'd like to get columns with information stored in a very specific way.  I'd like to select n number of columns from a table A, concatinate their values, and then add m number of more values which should be grabbed from other tables by joining one of their columns to the current statement's column.    Cars - (car_id, model_id, plate_id, brand_name, year_of_release, custom_column) Model - (model_id, model_name, description) Plates -  (plate_id, car_owner_name, registration_state)   Let's say we have these tables and what we want to do is place the following information in one column:  'car_id, brand_name, year_of_release, plate_id, model_name, car_owner_name, registration_state'   for each row of the Cars table as a 'custom_column' value  I'd like it to be a comma-separated string. Is there a way to do this with MySQL?


How to manually compute response variable using regression with poly

I believe I can manually compute response values from coefficients obtained using 'raw' polynomial predictor variables.  Example R code is  x <- seq(-2,2,length=100)  # true function y <- 1.2*x^2 + 2.3*x + 3.4  # add noise eps <- rnorm(100, 0, 1) y <- y + eps  df <- data.frame(x=x, y=y)  # fit quadratic to noisy data points qfit <- lm(y ~ x + I(x^2), data=df)  # manual predictions xmat <- cbind(1, x, x^2) yhat <- xmat %*% qfit$coeff   This yields the coefficients:  Coefficients: (Intercept)            x       I(x^2)         3.385        2.362        1.277     I could port that manual calculation to another programming language.  However, it appears using the function 'poly' is preferred on account of the correlation between x and x^2 in the above model, leading to the new fit  newfit <- lm( y ~ poly(x, degree=2), data=df)    and this yields different coefficients:       (Intercept) poly(x, degree = 2)1 poly(x, degree = 2)2          5.122729            27.549886            15.536953    Questions:  The first question is whether it is really better or even necessary that poly with its orthogonal polynomials is used instead of raw predictors?  The second question is how to manually compute responses using the coefficients from the regression using the poly function? I need to do this because the model will be implemented in another program in another language.


Commutative matrices - approximation by commutative simultaneously diagonalizable matrices.

It is well known that the set $\mathcal{D}_n(\mathbb{C})$ of all complex, diagonalizable, $n \times n$ matrices is dense in $\mathcal{M}_n(\mathbb{C})$, the set of all complex $n \times n$ matrices. And that two diagonalizable matrices which commute are simultaneously diagonalizable.   The exercise, which I am having difficulty to solve, is the following.   Let $A,B \in \mathcal{M}_n(\mathbb{C})$. Suppose $AB = BA$ and let $\varepsilon >0$. Show that there exists two simultaneously diagonalizable complex, $n \times n $ matrices, $C$ and $D$ such that $\| A - C \| \leq \varepsilon $ and $\| B - D \| \leq \varepsilon$.   I have managed to find a solution when $A$ (or $B$) is diagonalizable... But I really cannot find the answer in the general case.   Anyone able to help me out ?


System requirements for Ubuntu Desktop Edition   2 GHz dual core processor. 2 GiB RAM (system memory) 25 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach) VGA capable of 1024x768 screen resolution. . . . ..    My Laptop config:   processor: 1.9GHz RAM: 4GB System Type: 64bit   Now the question is can I use Ubuntu on my laptop with this configuration?  Another question: which version of Ubuntu should I use? Ubuntu Deskop? or Ubuntu Core? If yes then which version?  (Currently I am using win10 pro. I am a web developer)


How to change pop up speed of "Press and Hold"

When pressing and holding a keyboard button, i.e. an a, a character pops up.     I recall that I was somehow able to change how long I need to hold a key until the Picker pops up on Yosemite.  I cannot find a place to change the popup speed on Mavericks though.   defaults read -g | grep -i press does not return anything.


I want the container div (#a-container in this example) to fit the width of its children, that are inline-block divs. In this example, I want the #a-container div to be just the size of 2 .a div. Is it possible? (pure CSS please)    #a-container {   width: 250px;   background-color: gray; } .a {   background-color:blue;   width:100px;   height: 100px;   display:inline-block; }


How does SO's new auto-login feature work?

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?


Markov chain: join states in Transition Matrix

I need to merge two states in the Transition Matrix:  For example: I have the matrix below            A       B       C      D      E      F        A  0.5     0.4      0      0      0.1    0        B  0.5     0.1      0.2    0.1    0.1    0        C  0       0.1      0.9    0      0      0        D  0       0        0      0.7    0.3    0        E  0       0.2      0      0.7    0      0.1        F  0       0        0      0.5    0      0.5   And I want to join the states $D$ and $E$:            A      B        C    (D+E)    F        A  0.5     0.4      0      ?      0        B  0.5     0.1      0.2    ?      0        C  0       0.1      0.9    ?      0     (D+E) ?       ?        ?      ?      ?        F  0       0        0      ?      0.5   What are the formulas to obtain the row and column $(D+E)$?  Using the constraint: "the sum over column must be equal to $1$" is simple to calculate the elements: $$ (A,(D+E))=0.2 \\  (B,(D+E))=0.2\\ (C,(D+E))=0.1\\ (F,(D+E))=0.5\\ $$ How can I calculate the elements of row $((D+E),i)$?


Let $A$ be the matrix $$A = \left(\begin{array}{cc} 41 & 12\\ 12 & 34 \end{array}\right).$$  I want to decompose it into the form of $B^2$.  I tried diagonalization , but can not move one step further.  Any thought on this? Thanks a lot!  ONE STEP FURTHER:  How to find a upper triangular $U$ such that $A = U^T U$?


Was V'ger (the Voyager 6 space probe) the beginning of the Borg collective in Star Trek?

In Star Trek: The Motion Picture, an entity named V'ger shows up wreaking havoc in the Sol System.    Through some inquiry, investigation and risk taking, the Enterprise crew figures out that it is in fact NASA's Voyager space probe, which had met a machine race somewhere in deep space (possibly the Delta Quadrant).  This machine race repaired Voyager to the best of their ability, gave it a ship and sent it home to Earth.  Somewhere along the way, V'ger became self-aware and wanted to know its purpose.   In fact, it was willing and able to destroy anyone it met who couldn't tell it what its purpose was.   Captain Decker allows himself to be merged with V'ger (trying to get some of the Ilia probe chick at the same time), creating a new bio-mechanical entity, which satisfies V'ger's need for purpose.    They then vanish into what Spock assumes is another dimension (but could just as easily be transwarp back to the Delta Quadrant or elsewhere).  My question is this - does this mean that Captain Decker, by virtue of merging his biological distinctiveness with that of V'ger's technology and the technology added to V'ger by the machine race, become the very first Borg?  In essence, the first Borg King to the artificial "Ilia" as the Borg Queen?  And does Decker's ultimate morality cause the Borg Queen to then seek out Picard/Locutus and Data as replacement Borg Kings?  Clearly she was very motivated to find a companion in each mention instance.   If so, then in the prequel series Enterprise, when Archer and his crew are unable to destroy the shuttle modified by the Borg drones found in the arctic (the one presumably stranded in the ice during the events of Star Trek: First Contact)  before they could send their message to an unknown location deep in the Delta Quadrant - was that message ultimately the reason for V'gers return?   Or perhaps the reason for the machine race sending V'ger back?   In essence, did we create the Borg ourselves?


Prove the following equation by counting the non-empty subsets of $\{1,2,\ldots,n\}$ in $2$ different ways:  $1+2+2^2+2^3\ldots+2^{n-1}=2^n-1$.  Let $A=\{1,2\ldots,n\}$. I know from theory that it has $2^n-1$ non-empty subsets, which is the right-hand side of the equation but, how do count the left one?  I've proven it using induction but how can i get to the first part of the equation by counting subsets differently?


How do I dump the data of some SQLite3 tables?

How do I dump the data, and only the data, not the schema, of some SQLite3 tables of a database (not all the tables)? The dump should be in SQL format, as it should be easily re-entered into the database later and should be done from the command line. Something like  sqlite3 db .dump   but without dumping the schema and selecting which tables to dump.


Can you safely exceed the nominal voltage of a supercapacitor?

From what I found the data sheets usually only specify the nominal voltage, not Absolute Maximum Value or similar.  I need to use supercapacitors for a project where they will run for a total of ~20 2s discharges. Can I charge them to a higher voltage than the 2.7V recommended? What are the risks?


Why is a user not a member of their private group (UPG) according to the GUI? (although CLI proves the opposite...)

I downloaded the current iso file of Ubuntu MATE from . I did a completely fresh install of Ubuntu MATE 16.04 (specifically 16.04.5).   the same is true for Ubuntu MATE 18.04 (specifically 18.04.1) and   I created a default user while installing with its GUI called test (full name Test). The system thus created a UPG called test. after installation had finished, I restarted the system. Now on the completely fresh system I open System > Control Center > Users and Groups > Manage Groups. I look for the test group and press Properties, and here it is... user test is not member of group test!     it looks like /etc/group suggests the same: (2nd last line)  test@test ~ $ less /etc/group | grep test adm:x:4:syslog,test cdrom:x:24:test sudo:x:27:test dip:x:30:test plugdev:x:46:test lpadmin:x:113:test test:x:1000: sambashare:x:129:test   but according to  the primary group of a user is only listed in /etc/passwd and not additional in /etc/group to avoid redundancy.  id <username> seems to suggest a little bit different:  test@test ~ $ id test uid=1000(test) gid=1000(test) groups=1000(test),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),129(sambashare)   the best way to proof is groups <username>:  test@test ~ $ groups test test : test adm cdrom sudo dip plugdev lpadmin sambashare     So is this a bug by the GUIs? - Somehow i doubt it, because of how long time it is there and also present in two well known DEs...


I'm bike shopping for my first road bike, and I've asked for a lot of advice from my father who was a serious cyclist once upon a time.  After showing him one prospective bike, he dismissed it with a simple "you don't want a triple" with zero explanation on why.  What are the pros and cons in having a Triple, vs having a Double crankset?  Does it differ from road bikes, to mountain bikes?


I want to be able to test a count of obj below but not able to do so. when I mouse over obj it shows a count of 3      <IEnumerable<File> obj = await _mytester.cleanup(myitems)   why cant i do this?      if(obj.count > 0)   The liine above is giving me an error


Which compact camera to shoot stars, moon and hopefully planets and sun?

I need a new camera! My Canon IXUS is now very old. What I want to be able to do is take photos of the night sky (stars, moon, planets) and the sun. Well, ideally! I have been looking at a bridge camera that sounds okay in theory but don't really want to have anything quite so big...so, is there a compact camera that would suit my needs. I gather I will need a tripod as well. I appreciate any help, so thank you:-) Oh, and it'd be great if I could take good photos of little things, too! e.g. jewellery.


Every now and then, I edit another user's question or answer and encounter something along the lines of the following in the post source: Help, I need this question solved with these things:

Item1

Item2

Item3

  Can you guys help me with this? Oh and check here also Here

  Thanks!  Of course, it works, and it renders properly on the question's page... But... it's a real pain to edit and keep the HTML formatting clean and valid. Furthermore users that are not known with HTML and want to edit a post, might have difficulty to do so. For most SU/SO/SF users it probably won't be too big a problem but I can imagine users from ,  or any other SE site being like "What the hell is this?" If you just stick witk  and at least use its full potential, you'll be using a standard that every user should be able to understand. It will also make the post structure a lot more clear. For example: Help, I need this question solved with these things:   - Item1  - Item2  - Item3  Can you guys help me with this? Oh and check here also [Here][4].  Thanks!    [1]: http://vagueurl.com  Honestly, I don't know why . I understand that not every tag that is allowed has a MarkDown replacement, but tags like the
,
,
 and the
 should at least be discouraged. We could for example display a warning similar to the "This question seems subjective and will most likely be closed as off-topic" that is shown when certain tags are used. For example something like the following warning could be shown when the
 tag is detected:  You seem to be using the "
" HTML tag to create a new line. Stack overflow uses  to format posts, please use a blank line to create a new paragraph or a double space "  " to create a new line. For more help, please visit our .  So, for the TL;DR people: Why HTML in posts should be discouraged in my opinion:  Standardized formatting will make post editing easier and more clear in structure. Standardized formatting prevents weird and invalid HTML. The MarkDown editor used by SE does not "support"/use HTML formatting to insert images/links. I'm not saying HTML usage should be banned, but rather that HTML is discouraged as much as possible.  What do you guys think?


I am working through some problems on induction and I have been stuck on this one for a while. If anyone has any hints. I can show it is true for the $n=1$ and $n=2$ case but I am having difficulty on the induction step. This is what I have so far,  $ (1+\frac{1}{n} )^n      =  1+ \sum\limits_{k=1}^n[ \frac{1}{k!}    \prod\limits_{r=0}^{k-1}(1-\frac{r}{n})  ]$  $n =1 $ case  $ (1+\frac{1}{1} )^1      = 1+  \sum\limits_{k=1}^1[ \frac{1}{k!}    \prod\limits_{r=0}^{k-1}(1-\frac{r}{1})  ]$  $ 2    =  1+  \frac{1}{1!}    \prod\limits_{r=0}^{0}(1-\frac{r}{1})  ]= 1+(1-\frac{0}{1})=1+1=2$     So, 2=2. True  $n=2$ case  $ (1+\frac{1}{2} )^2      = 1+  \sum\limits_{k=1}^2[ \frac{1}{k!}    \prod\limits_{r=0}^{k-1}(1-\frac{r}{2})  ]$  $ (1+\frac{1}{2} )^2      = 1+ [ \frac{1}{1!}    \prod\limits_{r=0}^{0}(1-\frac{r}{2})  ]+\frac{1}{2!}    \prod\limits_{r=0}^{1}(1-\frac{r}{2})  ]$  $ (1+\frac{1}{2} )^2      = 1+ [ \frac{1}{1!}  (1-\frac{0}{2})  ]+[\frac{1}{2!}   (1-\frac{1}{2})  ]$  $ (1+\frac{1}{2} )^2      = 1+ [ \frac{1}{1!}  (1)  ]+[\frac{1}{2!}   (\frac{1}{2})  ]$  $ (1+\frac{1}{2} )^2      = 1+ 1+  \frac{1}{4}  ]$  And finally, $\frac{9}{4} = \frac{9}{4}$   So the n=2 step is also true.  Induction Step  Show that the $(n+1)^{th}$ case is true when the $n^{th}$ case is true.  Now, I assume the $n^{th}$ case is true. So,  $ (1+\frac{1}{n} )^n      =  1+ \sum\limits_{k=1}^n[ \frac{1}{k!}    \prod\limits_{r=0}^{k-1}(1-\frac{r}{n})  ]$  then I multiply both sides by $ (1+\frac{1}{n} )^{n+1} $, but I haven't gotten far from there. Any hints would be great!


I want to open an Excel file through an Apex dialog box, then browse the information in my file line and display it with visualforce. I show you my code  public class ImportExcel {       public String fileName{get; set;}     public Blob contentFile{get;set;}     public String[] csvFileLines{get;set;}     public List<String> acclist{get;set;}     public String[] data{get;set;}     public ImportExcel(){         csvFileLines = new String[]{};         acclist = New List<String>();      } public void readFile(){         try         {             fileName=contentFile.toString();         }catch(Exception e){         ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'Please upload a valid CSV document');         ApexPages.addMessage(myMsg);              return ;          }         csvFileLines=fileName.split('\n');          system.debug(csvFileLines);         for(Integer i=0;i<csvFileLines.size();i++){             data=csvFileLines[i].split(',');             acclist.add(data[i]);         }     } }   Once I execute my code, it puts me this error:     13:52:13:012 VARIABLE_ASSIGNMENT   [15]|e|"common.apex.runtime.impl.ExecutionException: BLOB is not a   valid UTF-8 string"|0x4e4728


While trying to install Netbeans 8.0 in my Ubuntu 14.04 I get the following error:   Can`t initialize UI Running in headless mode Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main"   I have previously installed openjdk 7 and yet it's not working for some reason.


How to retrieve radiogroup data from database in JAVA? M Using Java Swing & SQLite

Can anyone tell me how to retrieve radiogroup data from database? Values are inserting through radiobutton but isn't retrieving from database. coding is as follows:  while(rs.next()) {     String db_name = rs.getString("name");     String db_add = rs.getString("address");     String db_gender = rs.getString("gender");      Text_name.setText(db_name);     Text_address.setText(db_add);     if(db_gender=="Male")     {         RadioMale.isSelected();     }     else if(db_gender=="Female")     {         RadioFemale.isSelected();         // GenderGroup.equals(RadioFemale);     } }   NOTE: RadioMale & RadioFemale are Variable names of RadioButton.. db_name & db_add are working perfectly just getting issue on gender.. Help me out please!!


Is it right to use a singular form of the verb in this sentence?

I wanted to know if it is grammatically correct to say:  Either the teacher or the students WAS enjoying the picnic.  I'm talking about a grammatical principle and not a proximity or attraction one.  Thank you so much..


I would like to set up a dual screen display on my pc. Before buying another monitor, I'd like to try doing so with my laptop's screen. I've got a Lenovo IdeaPad S205, and was hoping to hook my PC to this monitor so as to use the laptop as a monitor. After reading numerous guides on the internet, I learned that a VGA cable is not the way to go since that will not accept input on the laptop. Are there other alternatives? I have read that it is not possible unless special networking software is used (i've tried it myself but my connection is not fast enough to work in this manner). However, I went to an office a few days ago and saw that most staff were using laptops as secondary monitors to the PCs. And they were all connected by a cable. Could anyone explain what is needed? Thanks


Rules of the game with two players.  First player puts any number of coins in the first pot. Then second player, knowing that number, puts any amount of coins in the second pot.  Then they in turns (beginning with the first player) do one of these things: take any amount of coins from one pot OR take equal amount from both pots. Whoever cannot take a coin loses. Players always know how many coins there are in the pots.  Who wins and what is the perfect strategy?  I managed to solve it, but the solution is very complicated and is based on fact which I just randomly guessed, but cannot deduct without the full solution. So I am looking for a nice approach to this problem.  The easy part is determining that player two wins: if there is a smallest winning initial donation by the first player, then the first move of player one cannot be taking just from the second pot, and this fact leads to infinite count of winning positions for player two for bounded number in the first pot, which is impossible (since there cannot be two winning positions for player two with the same amount of coins in the first pot).


Should I keep my emergency fund in a Roth IRA

I have been thinking about putting my emergency fund into a Roth IRA (in an FDIC insured High Yield Savings Account, so liquidity isn't an issue). My reasoning is as follows:   I can always withdraw my contributions without a penalty. The interest payments (which I can't withdraw) are not a major contribution to my emergency savings I cannot fully fund a retirement account and build up a large enough emergency fund at the same time right now, so by putting the money in a taxable account, I will lose the opportunity for the tax savings forever. On the other hand, if, in the future, I can afford to save above the Roth contribution limits, I can use the extra money to start a new emergency fund, and invest some of the old one.   Are there any reasons why I shouldn't go ahead with this?


I have recently learned of the Monty Hall problem, where given three doors, you choose one with a 1/3 probability of choosing the correct door, and then switching to the other door changing the probability of choosing the correct door to 1/2. I am confused because wouldn't staying at the same door have an equal probability at 1/2 because by staying at that door you are effectively choosing that door in the smaller sample space?  Thanks for the help!


What's $dy$ and $dx$, in differential equations?

I can't understand why we multiply by $dx$ in differential equations to integrate? People say so that we know what are we integrating with respect to, but this is obviously not true right?  What does $\;x\,dx = (y-y^2)\,dy\;$, for example, mean?  If $dx$ or $dy$ are very very small with a limit that goes to zero how can we multiply by zero?  What's a differential?  This is not an exact duplicate. I still don't know what a differential is.


I tried to install Nvidia driver in Ubuntu 16.04, I download the package from the official website and excute the command   sudo sh ./NVIDIA-Linux-x86_64-384.183.run –no-opengl-files   However, An error happened with   /nvidia-installer: invalid option: "–no-opengl-files"  ERROR: Invalid commandline, please run `./nvidia-installer --help` for usage information.   Could somebody give me a solution?


hi,i know these, my mean that the magnitude magnetic field B formule that i find here  my question is that we consider Coulomb force in  but don't consider the electromagnetic field? An accelerated charge has  magnetic field according Maxwell's theory.   Why don't we consider the electromagnetic field in the equations of Bohr's theory of atoms?


Why does the right leg's bone in my rig move when I move the left?

For some reason, when I moved the left leg's bone, the right leg has also moved and the bone of the right leg doesn't control anything at all.  I think this is because I used Mirror to make the model, but I'm not sure I'm a complete beginner.


How do I convert tabs to spaces in Notepad++?   I found  that suggests it's possible, but I couldn't find any information about how to do it.   I would like to be able to do that, because some web forms don't respect code with tabs in them.


Should Emergency Funds be Used for Infrequent, but Likely, Expenses?

Say we break down non-monthly costs into the following three categories.   High level of predictability: This would include oil changes that may be needed every 2 to 4 months depending on usage, car insurance (if paid every 6 month), car registration, etc. Medium level of predictability: There are some expense which one can reasonable assume will occur on an infrequent basis.  For example, car repairs, house repairs, or even doctor visits during flu season. Low level of predictability: For example, losing a job, significant medical expense, etc.   Which of these categories are emergency funds meant to cover?  I think it is pretty clear that a high level of predictability costs should not use emergency funds while a low level of predictability should.  But medium level of predictability costs seem different, and it left me wondering what is generally defined as an "emergency".  While you do not know when these costs will occur or how much they will be, you could devise some pretty good rules of thumb on frequency and cost. Say you know your 2007 Volvo should have a repair cost averaging out to $100 per month.  Conceptually you could save $100 each month and when your car breaks, not have to spend any emergency funds on the repair.  Is doing this "double-saving" and not suggested if you already have the 6 month emergency fund saved up?  Note: this is a question on how to save money for expenses.  It is not a question about if you should spend emergency fund money to fix a car when you have no other money set aside.


I logged into Area 51, and now I can't find any way to delete my account. Is it only me, or does this happen with everyone?


In the sentences like these:     I thought of my new watch as crippled.       The girls perceived the school as decisive.      I thought of this as damaged.   Word "as" is followed by adjectives. I knew that it is possible, but I am more familiar with the "as" followed by nouns like "I thought of my new watch as a crippled watch." What makes it possible? Is there a official rule that enables me to do this? Or is ellipsis used?


Is a Java program debuggable only when the VM is running in Debug Mode? Is there any way to change it at runtime?


How to write a template function where its parameter type is required to be inheriting certain class

Is it possible to declare a template function where a certain type is derived from let's say B?  My goal is to achieve something like this:  template<class T : std::ostream> void write(T os) {     os << "..."; }   template<class T : std::string> void write(T s) {    // ... }   Edit: I know it is not a solid example since it is not usual to derive from a string, but note that it's just a example.  So any solution like a workaround is welcome, however I would like to be able to explicit instantiate the template functions.


Make an examples $f:\Bbb{C}\to\Bbb{C}$ holomorph (If it exists) with the property:(Justify your answer)  $Re f(z)>0$ for all $z\in\Bbb{C}$ and $f$ is not constant.  My attemp: I find a question in Conway that is discussed in    But my question is difference. Because we have not the hypothesis   $Re f(z)\geq 0$ and the domain is $\Bbb{C}$ instead of $D$.  So we can not use the open mapping theorem and I think there is not such function!


How do I connect to another player's world in Minecraft Pocket Edition 11.1?

I updated my Minecraft to 11.1 and I want to join my cousin's world but it is just giving me the message 'invalid name'  What do I do?


texas holdem regarding a pair K8 vs K9 and A comes on the river

I have K8 the other player has K9 K on the board and A comes on the river, who wins the hand


Tic Tac Toe program not identifying the winner

I have this slight problem with my Tic Tac Toe program. I have a nested counter checking for vertical and horizontal wins with the X piece (I haven't done it for O yet). For some reason, it never ends, allowing me to place more and more pieces.  For some context, here are some snippets of code.   public static void game (String winner, Board pointer) {      boolean win = false;     int turnCount = 1;     winner = "Tie";     while (win == false || turnCount < 9)     {         int row = Integer.parseInt(JOptionPane.showInputDialog(pointer.getName1() + ", it is your turn. " + "\n" + "What row would you like your 'x' to be in?"));         int col = Integer.parseInt(JOptionPane.showInputDialog("What column would you like it to be in?"));         pointer.play[row] [col] = pointer.x;         SpotCheck1(winner, pointer, row, col);         System.out.println(BoardStat(pointer));         winCheck(win, pointer, winner);         int row2 = Integer.parseInt(JOptionPane.showInputDialog(pointer.getName2() + ", it is your turn. " + "\n" + "What row would you like your 'o' to be in?"));          int col2 = Integer.parseInt(JOptionPane.showInputDialog("What column would you like it to be in?"));         SpotCheck2(winner, pointer, row2, col2);         pointer.play[row2] [col2] = pointer.o;         System.out.println(BoardStat(pointer));         winCheck(win, pointer, winner);         turnCount++;     }     //return winner; }  public static void winCheck (boolean win, Board pointer, String winner) {     for (int counter = 1; counter <= 3; counter++)     {         if ( pointer.play [counter] [1].compareTo(pointer.x) > 0 && pointer.play [counter] [2].compareTo(pointer.x) > 0 && pointer.play [counter] [3].compareTo(pointer.x) > 0)         {             win = true;             winner = pointer.getName1();             win(winner, pointer);         }                   else if (pointer.play [1] [counter].compareTo(pointer.x) > 0 && pointer.play [2] [counter].compareTo(pointer.x) > 0 && pointer.play [3] [counter].compareTo(pointer.x) > 0)         {             win = true;             winner = pointer.getName1();             win(winner, pointer);         }     }     //return win;  }   SpotChecks 1 and 2 are the ways to check if a player has already placed a piece. The problem, I think, is in the WinCheck method. If anybody can help me out, that'd be great! First post, apologies if I did something wrong.


How significant are 14000 shutter actuations for Canon 6D?

I'm an amateur photographer. I am an APS-C camera owner and I'm willing to upgrade to a FF body. There is a shop in my neighborhood offering a second-hand Canon Eos 6d for €1150, with a four-year warranty. I recognise is is a good bargain, though the camera has got 14000 shots.  Is the number of shots taken too high for the camera to be reliable? Could it affect perhaps image quality or durability of the camera?


How to replace or newly install Ubuntu Desktop by removing already existing Ubuntu Server

I would like to know, how to remove already installed Ubuntu Server completely and install Ubuntu  Desktop through USB Stick. Here I do not have any other OS installed on my Machine. I only have Ubuntu Server. Please help.  I appreciate your time.  Thank you!


travel to Sweden for non EU / EEA citizen with UK visa

is it currently possible to enter sweden for a non EU / EEA citizen with a UK work permit visa? this is for a short holiday. edit: the type of visa is a work permit / residence visa, not a temporary visa as referenced in the linked question


Find the value of $\alpha-\beta$ if $g(x,y)=\alpha x+\beta y$ is a Hahn-Banach extension of $f$

Consider the normed linear space $\Bbb R^2$ with this norm $\|(x,y)\|=|x|+|y|$. Define $f$ to be a bounded linear functional on $X=\{(x,y):x=y\}$ by $f(x,y)=3x$. If $g$ is a Hahn-Banach extension of $f$ on $\Bbb R^2$ given by $g(x,y)=\alpha x+\beta y$ then find $\alpha-\beta$.  My try: Since $g$ is an extension of $f$ so $g|_X=f\implies g(x,x)=(\alpha+\beta)x=3x\implies \alpha+\beta =3$ Now $\|f\|=\sup \{f(x,x):\|(x,x)\|=1,(x,x)\in \Bbb R\}=3\implies \|g\|=3$ So $\sup \{g(x,y):\|(x,y)\|=1,(x,y)\in \Bbb R\}=3\implies \alpha x+\beta y\le 3$ where $|x|+|y|=1$. Take $x=0,y=1\implies \alpha x+\beta y\le 3\implies \beta\le 3$. How to find the value of $\alpha,\beta $  from above. Please give some hints.


Flash on Ubuntu 16.04 NEVER works on ANY browser

Flash on Ubuntu 16.04 never works on any browser; i.e.; chrome, chromium, and firefox. <<< updated, plugins enabled and updated, contents/privacy setting properly checked. dns pointing same as my windows pc, which plays flash on internet radios; i.e.; bbc.co.uk, tsf jazz, nhk online <<< none plays on ubuntu. What else to do? Now I can never listen to any internet radio.


Let $V$ be a finite-dimensional vector space over $F$ with $\dim(V) = n$. Let $ T:V \rightarrow V$ be a linear transformation.  Assuming that $T$ has $n$ different eigenvalues. prove that :$$ TS = ST \iff \textrm{each eigenvector of} \ T \ \textrm{is an  eigenvector for }S\textrm{ (maybe with a different eigenvalue)}$$   I managed to prove the right to left direction.   Thanks for helping.


Good day everyone,  today I struggled with my code for more than an hour, just to find out that Python did not give an out of bound error. This is my summarised code:  array = [] n = 0 while n < 5:     array.append(1)     n = n + 1 print array for i in range(0,1):     print i-2     print array[i-2]   Clearly array[i-2] is out of bound, but the code still runs. This is the output:  [1, 1, 1, 1, 1] -2 1   Am I missing something, is it my PC or is it something more in depth on how arrays in Python work?  Greetings


Is it true that the nth root of a rational number a/b, lowest terms, is rational iff a^(1/n) and b^(1/n) are integers?

I suppose it’s easy to prove. I mean a and b are such that gcd(a, b) = 1, where a and b are integers. I should clarify n is a positive integer.


Can I really pay 0% tax on unlimited long term capital gains if I'm in the 12% federal income tax bracket?

I'm afraid I'm missing something because the 0% tax bracket for capital gains seems too good to be true.  Everything I'm reading (e.g. "The zero percent tax rate on capital gains applies to people in the 15 percent marginal tax rate or below. In 2018, that applies to married tax filers with taxable income up to $78,750, and single tax filers with taxable income up to $39,375." at ) says that my capital gains tax rate is dependent only my income tax bracket.  In other words, say I have $2 Million worth of a mutual fund, which I bought more than a year ago for $1 Million (i.e. long-term capital gains of $1 Million).  If my income this year is $40,000 and I sell all holdings in this fund, I will pay $150k of capital gains tax.  However, if my income is $38,000 and I sell it all, I pay nothing.  Is this correct? If not, what am I missing?


Why wouldn't everyone encrypt with a One Time Pad?

A  (OTP) sounds perfectly secure if we are to believe Wikipedia. But on the surface it also sounds ridiculously impractical - how does one securely distribute the OTP?  Idea: why not have someone distribute it for you in plain sight of everyone?  Presuming I can keep the details secret (as I would with an encryption key), if I wanted to communicate securely, why wouldn't I harvest the images from some source of abundant images (Facebook, news site, dating site, porn site, etc), and make use of the noise in their lower bits to create a one-time-pad?  Even assuming someone hacks my PC and can narrow down the image(s) I may have used, an image is not in itself an OTP - you need to extract the OTP bits from the image pixels. That can be done in an enormous number of ways. The secrets to doing it are more or less equivalent to conventional encryption keys.  E.g. I could shuffle the pixels in the chosen image before using them in one of N! possible shuffles for N pixels, which is enormous after even 50 pixels. I could also extract the OTP bits from the image pixels starting from any pixel and in a bunch of scanning directions/modes. And which bits do I use, and in which order? Plenty more permutations there to be guessed at by anyone wanting to crack my code.  Which raises a different possibility: why don't I distribute the algorithm for permuting the pixels and extracting the bits to create the OTP from a single image?  I'm suggesting this because I noticed a while ago that the original image posted on Wikipedia of the  happened to have prime numbers for its width and height. That sounds like a useful property to someone wanting to generate an OTP. You don't suppose someone is already using it for that, or some other cryptographic purpose, do you? After all, this image size is the only one that Wikipedia has repeated, which seems... improbable as a coincidence.  Yet all of this completely contravenes the advice of "don't roll your own". Does that advice still apply to an OTP that is truly only ever used once, even if its random bits are pseudo-randomly selected each time in one of extraordinarily many ways from a single source of truly random bits?


Vertical line in footer problem with chapter (fancyhdr)

This is practically a follow-up to .  The solution there works great for an article, but does not work with chapters, i.e. with report or book classes. As you can see here on the first page of a chapter there is just a number in the middle without a vrule:    Here's the MWE:  \documentclass[twoside]{report} \usepackage[margin=1in]{geometry} \usepackage{xcolor} \usepackage{fancyhdr}   \fancyhf{}   \fancyfoot[RO]{\vfootline\hskip\linepagesep\thepage}   \fancyfoot[LE]{\thepage\hskip\linepagesep\vfootline}   \renewcommand\headrulewidth{0pt}   \newskip\linepagesep \linepagesep 5pt\relax   \def\vfootline{%     \begingroup\color{blue}\rule[-990pt]{1pt}{1000pt}\endgroup} \usepackage{lipsum}  \pagestyle{fancy}  \begin{document} \chapter{Test 1} \lipsum \section{Section 1} \lipsum \chapter{Test 2} \lipsum \section{Section 2} \lipsum \end{document}   As always: thanks so much for any advice in advance :-)


How do I disable Aero Shake in Windows 7?

I'm always accidentally minimizing most of my windows. This is really annoying. How do I disable Aero Shake?


I have the iframe:  <!DOCTYPE html>

        I want to obtain in my test.html the effective height of iframe (not auto but 300px)  I tried to do this:  parent.document.getElementsByTagName("iframe")[0].getAttribute("height");   But the results is auto and not 300  Somebody can help me?


I have seen some examples about using "in" with time expressions. They give some examples as shown below:     I will leave for vacation in a month. (Exactly one month from now I   will go on vacation.)      We’ll be there in an hour.  (Exactly one hour will go by and then we   will arrive.)   But these comments confused me. Then I looked the usage of "in" up in a dictionary and it says about usage of "in" with time expressions :"before or at the end of a particular period". I think the comments and the definition in the dictionary contradict each other?    I have examples of mine:     1- Dinner will be ready in ten minutes. (Maybe dinner will be   ready at the 5th minute? or 8th. Does it strictly mean dinner will be   ready at the end of the ten minutes?)      2- My letter arrived in two days. ( Does that mean it took   exactly two days to arrive? or Could it be just one day because he/she   doesnt remember the exact time?)      3- Imagine you are on the first day of a month and your friend says:   I will be going outside the country in this month. (Does that mean he/she could go tomorrow or ten days later or at the end of the   month?)      4- He can run a mile in 5 minutes. ( Does that mean he has to   spent entire 5 minutes to run a mile? Could it be 4 or 4.5 minutes?)


Usin bibtex in the beamer, with the plain style, I have  In the first line there is the author, the second line the title and in the third other information as can be seen. In addition, there is a small spacing between each reference. But I am switching to using biblatex, as I need some resources from it. But I would like to stick with the bibtex style. I researched a lot, but I didn't find any solution for that, the closest was the trad-plain , that distances each quote, but it does not leave the information on different lines.The result is,  The code is \documentclass{beamer} \usepackage[style=trad-plain]{biblatex} \addbibresource{example.bib} \setbeamertemplate{frametitle continuation}{}  \begin{document} \nocite{*} \begin{frame}[noframenumbering,allowframebreaks]{Reference}     \printbibliography \end{frame} \end{document}  EDIT Solution: Using the suggestions given in  and  and the solution of problem  given in , it was possible to build code that solves the problem. \documentclass{beamer} \usepackage[style=trad-plain,block=par]{biblatex} \addbibresource{example.bib} \settowidth\labelnumberwidth{\usebeamertemplate*{bibliography item}}  \begin{document}          \nocite{*} \begin{frame}{Reference}     \printbibliography \end{frame}  \end{document}  The code style=trad-plain generates a space between each reference. The code block=par separate each reference information on a new line. The code \settowidth\labelnumberwidth{\usebeamertemplate*{bibliography item}} removes the small space that occurs in the first line when using the plain style with biblatex.


NullPointerException; thrown while initializing Object

This is the error I'm getting in logcat:  01-12 09:41:43.885: W/dalvikvm(1474): Exception Ljava/lang/NullPointerException; thrown while initializing Lcom/app/Items;   This is my Home.java class which is the main activity:  protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.home);         homeTextViews = new TextView[Items.HomeItem.length]; }   And here is the Item.java class:  public class Items {     public static final String[] HomeItem = new String[] { "string1", "string2", "string3" };   }   Upon starting the app I get the error said above as soon as it starts, the homeTextViews = new TextView[Items.HomeItem.length]; is the cause but I have no clue why. Anyone have any ideas?  I've also tried this but it still fails:      Items items = new Items();     homeTextViews = new TextView[items.HomeItem.length];   Items.HomeItem clearly isn't null, it's a static final so it shouldn't be null.


$(0,1)$ is an open subset of $\Bbb R$ but not of $\Bbb R^2$ when we think of $\Bbb R$ as the $x$-axis in $\Bbb R^2$.

$(0,1)$ is an open subset of $R$ but not of $R^2$ when we think of $R$ as the x-axis in $R^2$.    How do I prove the above statement?


Where to store my website video or image file when someone upload content

i am creating a video uploading and downloading website but get trouble in where to store files like videos in images. I am using flask in backend and database mysql


Error in evaluation of $\displaystyle\lim_{x\to 0} \frac{x\cos x - \ln (1+x)}{x^2}$

Evaluate $$\displaystyle\lim_{x\to 0} \frac{x\cos x - \ln (1+x)}{x^2}$$  Here's my method but that results into an error.   \begin{align} \lim_{x\to 0} \frac{x\cos x - \ln (1+x)}{x^2} &=\lim_{x\to 0}\frac{\cos x}{x} - \lim_{x\to 0}\left(\frac{1}{x}\right)\lim_{x\to 0}\left(\frac{\ln(1+x)}{x}\right)\\ &= \frac{\cos x}{x} - \frac{1}{x} \\ &= \frac{\cos x -1}{x}\\ &= 0 \quad \text{(either by L'hôpital or some manipulations)} \end{align}  I have used the fact that   $$\lim_{x\to 0} \frac{\ln(1+x)}{x}=1$$  And the answer seems to be $\frac{1}{2}$.  I can do it in different ways (L'hôpital precisely) but please point out my error.


In what type of world is free will possible, if at all?

Why is free will a widely discussed, established concept? Does this concept emerge from religious / spiritual doctrine? Why is there so much interest in this topic?  If a neural-network based AI machine with a certain high degree of complexity scores a perfect 100 every run in a turing test, have we not already refuted the idea of free will? In fact, let me extend this reasoning, if ANY machine scores a single point in a turing test (and not 100), have we not already disproved (or alternatively put in great doubt the existence of) free will? If we already created a machine that can master a certain degree of human interaction, have we not then demonstrated that human interaction is programmable? (given enough time for the creation of a complex or more appropriately elaborative neural system).   From the perspective of an external observer, such a machine would be qualitatively human although intrinsically quantitative behind a stream of 1's and 0's. It would exhibit a type of decision making indistinguishable from that of a human. Does this not reduce the type of decision making we understand to be "free will" to something quantitative, deterministic, materialist?


Which way is correct for American usage?  He adopted the anglicized version "Edward C. Cordel." or He adopted the anglicized version "Edward C. Cordel".  He refused to "pick up a crown out of the gutter." or He refused to "pick up a crown out of the gutter".


Do exist an injective linear map from $\mathbb{R}^5\rightarrow\mathbb{R}^4$

I already asked If there exists an injective function $f:\mathbb{R}^5\rightarrow\mathbb{R}^4$ and I found that it exists a such function:   Now, I would like to know If there exist such an injective linear map. I was trying to find out but I am unable. In think it does not exists because of the difference between dimmnsions but I am really unsure.  Please help me. Thank you!!!!


Prove that $\int_Xf^p d\mu=\lim_{t\to \infty}\int_{0}^{t}p \alpha^{p-1}\lambda_f(\alpha)d\alpha$ where $\lambda_f(\alpha)=\mu({x:f(x) > \alpha})$

Let $(X, \mathcal{S}, \mu)$ be  measure space and let $f:X \to [0, \infty]$ be measurable. Let $\lambda_f(\alpha)=\mu({x:f(x) > \alpha})$. I want to prove that if $p \geq 1$, $\int_Xf^pd\mu < \infty$, then $$\int_Xf^p d\mu=\lim_{t\to \infty}\int_{0}^{t}p \alpha^{p-1}\lambda_f(\alpha)d\alpha$$ Any hints would be appreciated.


How to prevent long file name error copying from an external drive?

I have an external hard drive with many files (800 GB). I want to copy the entire contents of the external hard drive to my local drive. get many errors about long file name or long file path. Renaming is also not possible because of number of errors.  What can I do about this issue?


Seeking Open Source Alternatives for FME

Do you know any good open source alternatives for FME?   Searching for some free but powerfull alternatives for geodata management, workflows (Python APIs), etc.


How can I obtain a solution for the equation $a^2 + b^2 = c^2 + 1$?

For the equation $a^2 + b^2 = c^2$, the solution is:   $a = m^2 - n^2, b= 2mn, c = m^2 + n^2$ $m,n\in\mathbb{Z}$ and $m > n$, free to choose   How is a similar solution obtained for the equation $a^2 + b^2 = c^2 + 1$?  I'm familiar with it, but don't know how to obtain it.


Oracle Virtualbox does not open since upgrade

After upgrading to Ubuntu 12.10, I have been unable to restart my Oracle virtualbox.   jan@jan-System-Product-Name:~$ sudo /etc/init.d/vboxdrv setup sudo: /etc/init.d/vboxdrv: command not found   Where do I go from here? Can anyone help, please?  I tried to install virtualbox via these commands:   echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list wget -q http://download.virtualbox.org/virtu...racle_vbox.asc -O- | sudo apt-key add - sudo apt-get update  sudo apt-get install virtualbox-4.2   Attempts to install via package manager vbox would not start. These error reports are received:      Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started.To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).  Result Code:  NS_ERROR_FAILURE (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}    I installed the extension pack, no change in result.   I have added myself as user, but the error report says user must be added, when I redo add user, it says user is already added.   The following outputs were also received:         Failed to open a session for the virtual machine Nuwe skelm.   Implementation of the USB 2.0 controller not found!   I cannot access the USB 2.0 setting to disable it. Where do I go from here, please?


Making a significant improvement to an answer already accepted or upvoted, where to put update?

This would be a person making an edit to that's person's own prior answer that makes a significant improvement. Say it's an algorithm improvement that reduces time complexity (such as from O(log(n)) to O(1)), but that the answer was already accepted and/or upvoted.  I'm thinking that for significant improvement, for the benefit of others reading the asnwer, the improvement should be inserted at the front of the answer, noting the change and using a separator to retain the original answer after the inserted improvement.    I'm updating this question with a specific example, an answer about a Visual Studio 2015 change to std::list::sort. The improvement in this case was a switch from directly accessing nodes (std::list::splice does this), to using iterators. Rather than replace the prior answer, the updated answer has the improved version at the start of the answer, with the prior answer at the end. I left the prior answer there because of comments. However, the prior answer could be considered obsolete, and I'm wondering if I should just remove it, and leave a brief description of the prior answer so that the comments would still make sense.


If ice contained in a beaker starts melting, then why does temperature remains constant. Is there a way to understand this phenomenon using the concept of specific heat.


Is reinstalling apt-get safe to do [Ubuntu 14.04]

The original problem is that I can't install new apps because of problem of unmet dependecies. I have tried almost all the solutions in this , and non of them worked, so I am completely desperate!  Is there is a 100% guaranteed method to solve this problem?


How to sort characters in a string alphabetically using scanf() and saved character in buffer?

Hi I'm pretty new to using C. My teacher told me to code a function to sort characters in a string alphabetically by using array & the fact that when a scanf() a string, the first character is called and the rest are saved in the buffer. (I haven't learnt about pointers yet.)  For example, if I type in badf and space(signalling "an end", or the sentinel value for end of string), the function should return abdf.  I'm stuck here. It's my first ever stackoverflow question! Please help. Thanks.  #include <stdio.h> #include <string.h>  int main() {     char arr[100];     char front_char, first_char;     // set the variables     int i, j, k, l;      printf("Enter a string and press space to end\n");      // get the input using scanf, which will just get the first character and save the rest in buffer     scanf("%c", &first_char);     // assign the first_character in arr[0] for initialization     arr[0] = first_char;      // 32 is "space" in ascii code. Space is used as a sentinel value. User is supposed to press space at the end of the String     while(front_char != 32) {         // get the "second" character from buffer and ass. repeat this until the next character in buffer is 32, or "space"         scanf("%c" , &front_char);          // load character from buffer, and check if its assigned number in ascii code is smaller than characters in array         for(i = 1; front_char != 32; i++) {             for(j = 0; j < i; j++) {                 // go through the previously aligned array to compare the ascii number of the loaded character from buffer                 if(arr[j] <= front_char) {                     continue;                 } else {                     // run through the previously aligned array, and if a character with bigger ascii number comes up,                     for(k = i-1; k >= j; k--) {                         // assign/push the values in array to the next index(i don't know how to describe this, but I hope you see what I mean..)                         arr[k+1] = arr[k];                     }                 }                 // assign the loaded character according its ascii number size                 arr[j] = front_char;             }         }          // print the result         for(l = 0 ; l < i ; l++){             printf("%c", arr[l]);         }     }      return 0; }


Binary sequences with even places not less than immediate neighbors

How many $n$-length binary sequences, $(x_1,x_2,\ldots x_n)$, are there such that $x_1 ≤ x_2 ≥ x_3 ≤ x_4 ≥ x_5 \le \ldots$ ?  My attempt but I am not sure it is correct (finding pattern):  How to find out the solution to this problem? Any hint/reference would be also appreciated. Thanks in advance.


Why do Warlocks only have spells up to 5th level? What's the correct progression for their slots?

Instead of a “Spell Slots for Spell Level” table, the warlock just has two columns: one for number of slots and one for slot level, because all of their slots are the same level.   However, the table on PHB p. 106 only goes up to the 5th slot level. It looks like the higher levels are misprinted as they should go up to 9th level slots (as the warlock's spell list has spells of 6th, 7th, 8th, and 9th levels). What is the correct progression? Is a warlock’s slot level the same as the maximum slot level of a wizard of the same class level?


Non-significant factors after stepwise regression

I have run a stepwise regression on R. However, the summary of the final model includes some factors that are not significant. Why have these factors not been removed? Should I remove these from my model? The VIFs of these factors are all under 5.


Is deferred enrollment normal or acceptable to graduate programs? What are the acceptable reasons for it?

I am an undergraduate student majoring in computer science. I am currently doing graduate (Master's) program application for top US universities.   However, just now I get a pretty nice research assistant internship which requires me to work for them for one year.  I think I might take a gap year between my undergraduate and graduate study for the internship. But if I am accepted by the university I want to go, can I ask for a defer enrollment? I know I can reapply the next year, but despite the new research experience, my professor might refuse to write me reference letter again , the things might change (more applicants, less slots) and I might not be accepted the next year(I am also wondering will turning down an admission affect my application for the same program the next year). So I am thinking if I can use the defer enrollment to "hold" the admission.  Is taking a research gap year an acceptable reason for defer enrollment? Or generally, what are the acceptable reasons to take a defer enrollment?


Why the adjacency matrix can be used to determine whether or not the graph is connected.  I saw it from the wikipedia.


How can I resolve multiple python installs?

I recently installed python 3.8.2 on to my Ubuntu 18.04 laptop. However, I then found the built-in python 3.6 installation and I don't know how to remove 3.8. I've tried make uninstall because it was built from source, but this didn't work. Any advice would be appreciated.


let $x,y,z>0$ and such $xy+yz+zx=3$,show that $$\dfrac{x}{x^3+y^2+1}+\dfrac{y}{y^3+z^2+1}+\dfrac{z}{z^3+x^2+1}\le 1$$  To prove this inequality,I want use following Cauchy-Schwarz inequality $$(x^3+y^2+1)(\frac{1}{x}+1+z^2)\ge (x+y+z)^2$$ $$\dfrac{x}{x^3+y^2+1}\le \dfrac{1+x+xz^2}{(x+y+z)^2}$$ we have $$\sum\dfrac{x}{x^3+y^2+1}\le\dfrac{3+x+y+z+xz^2+yx^2+zy^2}{(x+y+z)^2}$$ it suffices to prove that  $$x+y+z+xz^2+yx^2+zy^2\le x^2+y^2+z^2+3$$


How to setup phpmyadmin without prompts in one line?

i'd like to setup phpmyadmin in Ubuntu without asking for parameters in prompts, i don't know if there's a way to pass these parameters in the command: sudo apt-get install phpmyadmin and give the options like the server type "apache2" and mysql admin password.  Thanks a lot.


Simulate a uniform distribution on a disc

I was attempting to simulate injection of random points within a circle, such that any part of the circle has the same probability of having a defect.  I expected the count per area of the resulting distribution to follow a Poisson distribution if I break up the circle into equal area rectangles.    Since it requires only placing points within a circular area, I injected two uniform random distributions in polar coordinates: $R$ (radius) and $\theta$ (polar angle).  But after doing this injection, I clearly get more points in the center of the circle compared to the edge.     What would be the correct way to perform this injection across the circle such that the points are randomly distributed across the cirlce?


I can not download any app from App Store on my Mac Pro (Mid 2012) Mojave

I have a Mac Pro running a fresh install of macOS Mojave 10.14.6 (18G4032)  I have no issues login into any service in iCloud, iTunes, App Store, all good but when I try to update (the apple office-package) or download any other app it simply does not work  I did try to logout-login, flush the DNS, Delete the app-store cache, restart the router, different recommendations from the internet, nothing works  It shows, I have 3 updates    it used to show the apps that need to be updated, but it does not   Nothing happens when I click on download   the loading animation just animates, there is no download happening


How do I install Xcode if I'm getting this message "Xcode can’t be installed on “Mac HD” because macOS version 10.14.4"?

So I'm programming on a MacBook from mid-2010, and I have the most recent update (10.13.6) but when I try to install Xcode it says I need to update again, but it's not listed as an update in the AppStore.


Let $S\subset \mathbb{R}$ which is bounded below. Let $x\in S$ such   that $-x\in -S$. Prove $\inf(S)=-\sup(-S).$   By definition a lower bound on $S\subset \mathbb{R}$ is a number $a\in \mathbb{R}$ such that $s\ge a$ for each $s\in S$. Since $S$ is non-empty and is bounded below then there exists an infimum. How can I continue this proof?


I'm an undergraduate statistics student looking for a good treatment of clinical trials analysis. The text should cover the fundamentals of experimental design, blocking, power analysis, latin squares design, and cluster randomization designs, among other topics.   I have an undergraduate knowledge of mathematical statistics and real analysis, but if there's a fantastic text that requires a bit higher level of statistics or analysis, I can work up to it.


I am designing a Pulse Oximeter. The SpO2 probe has an IR LED and a photodiode.    I need assistance with the algorithm for calculation of SpO2.  I'm aware of  and similar sites and I have referred to many papers for the SpO2 calculation, understood till calculation of modulation ratio. But different equations were used in different papers, which they say that they obtained by calibration results. That's the problem. How to calibrate the Sp02 level?


Show comments in Suggested Edits review queue

It would be nice to see comments in the Suggested Edit review queue. It seems fairly frequent that people edit the question to add information that the OP provides only via comments, so being able to verify that without having to open the question in a new window would be nice.  Or maybe it's just me, not trusting those helpful editors...  Behold:


Using Python to convert string values with Calculate Field in ArcGIS ModelBuilder?

In ArcGIS 10.5, I am building a model that should convert a field of coded values to another code. This seems like it should be a simple if/then statement but I am not getting it. To simplify the process, I populated the target field with the source field's values and then intend on using python to transpose the values. It should be considered a string, but the values are numerical.   In the "Calculate Field" code block:  def reclass: if TP_Condi = 3:      return 1 elif TP_Condi = 2:      return 8 elif TP_Condi = 1:      return 3 else:      return "error"


Is Captain Phasma the highest ranking female in the First Order?

Thinking back to the original Star Wars trilogy, the Empire did not seem to have any high ranking female officers that I can recall, or who were intrinsic to the story line.  The Rebels had Mon Mothma and Leia Organa to name at least two, not counting pilots or other lower ranked officers or civilians.  I don't recall any female Star Destroyer captains or admirals.  In The Force Awakens, Captain Phasma is clearly fairly highly ranked within the First Order, which is a departure from the overwhelmingly male senior officers within the Empire.  I'm aware that in the extended universe, there are a number of Dark Jedi, and even the Emperor's Hands (such as Mara Jade in Timothy Zahn's Thrawn series), but they aren't necessarily within the direct chain of command.  So my question is, Is Captain Phasma the highest ranking military female officer in the First Order?


Ubuntu 21.04 the repository «http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute Release» does not have a realease file

I just installed Ubuntu Budgie 21.04 and i tried to do a sudo apt-get update but it gave me the next error: sudo apt-get update Obj:1 http://ppa.launchpad.net/numix/ppa/ubuntu hirsute InRelease Ign:2 http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute InRelease Obj:3 http://ppa.launchpad.net/ubuntubudgie/backports/ubuntu hirsute InRelease Err:4 http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute Release   404  Not Found [IP: 91.189.95.85 80] Leyendo lista de paquetes... Hecho                 E: El repositorio «http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute Release» no tiene un fichero de Publicación. N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión. N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.  The error in english says: The repository «http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute Release» does not have a realease file I tried lots of tutorials but nothing, other types of software downloads work fine, either from the terminal and software app, i really don't know what is wrong here. These are my installed PPA. apt policy $ ls /etc/apt/sources.list.d Archivos de paquetes:  100 /var/lib/dpkg/status      release a=now  500 http://ppa.launchpad.net/ubuntubudgie/backports/ubuntu hirsute/main i386 Packages      release v=21.04,o=LP-PPA-ubuntubudgie-backports,a=hirsute,n=hirsute,l=backports,c=main,b=i386      origin ppa.launchpad.net  500 http://ppa.launchpad.net/ubuntubudgie/backports/ubuntu hirsute/main amd64 Packages      release v=21.04,o=LP-PPA-ubuntubudgie-backports,a=hirsute,n=hirsute,l=backports,c=main,b=amd64      origin ppa.launchpad.net  500 http://ppa.launchpad.net/numix/ppa/ubuntu hirsute/main i386 Packages      release v=21.04,o=LP-PPA-numix,a=hirsute,n=hirsute,l=PPA for the Numix Project Ltd.,c=main,b=i386      origin ppa.launchpad.net  500 http://ppa.launchpad.net/numix/ppa/ubuntu hirsute/main amd64 Packages      release v=21.04,o=LP-PPA-numix,a=hirsute,n=hirsute,l=PPA for the Numix Project Ltd.,c=main,b=amd64      origin ppa.launchpad.net Paquetes con pin: $: orden no encontrada


Python : if any(x in y), case and accent insensitive?

I have the following list of strings :  exclude = ['eee', 'iii']   I have a word to be tested :  word = 'Iîïe'   I want the following test to be true :  if any(x in word for x in exclude):     #I want to be here !   In order to be true, my condition needs to be case-insensitive and accent-insensitive... How?


Customize Error/Success Messages in Drupal 7

I need to customize the success/error message after submitting details. It needs to cover areas like contact form, forum create etc.,  Especially below message,    Drupal Version : 7.57  Theme : Bootstrap  Also, Is there is any possibility defining a new style for above messages?


I have this very often that I quickly want to test something (html, css or javascript), so I create a small test file like this:  <doctype html>  <html>     <head>         <style>         </style>         <script>         </script>     <head>      <body>     </body> <html>   I'm using VIM, and I was wondering if it is possible to add something somewhere, with the result that VIM can generate this template for me?


How do I redirect command completion output?

On the command line, I can redirect or pipe output of a command to a file or another command using the > or | operator after the command. I have come across a less standard situation that I would like to redirect the output to a file, but I don't seem to have the oppurtunity to redirect it:  When at a new terminal,  [chiliNUT ~]$   if I press Tab without typing anything first, I get asked   display all 1725 possibilities? (y or n)   and if I then type y, I get a nice long list of different commands. How can I redirect or pipe this output to a file? I don't seem to get the chance to type > myfile.txt anywhere.  Using CentOS release 6.4 (Final).


Why do we feel weightless on zero G planes?

I've heard of zero G flights, but why exactly do we feel weightless when we are in them?


Comparing two strings gives false as an output

I want to know why the result of this program gives false when both of the strings are exactly the same, also why is the text "WHY" not appearing in the console.  public class prac {     public static void main (String args []){ String a = "wtf"; String b = "wtf"; System.out.println("WHY" + a==b);      }  }   Thanks!


"mammal exhibit" vs. " mammals exhibit" vs. "mammals' exhibit"

Ok, I'm writing a story where the character visits a museum. Does she visit:   the mammal exhibit the mammals exhibit the mammals' exhibit


Simplest way to instruct an end user to discover if Windows is 32 or 64 bit?

I am looking for the simplest method I could provide to a non-tech saavy end user to find out if their Windows PC is 32 or 64 bit.  This has to be something they could do manually - i.e., I don't have the ability to run anything on their PC.  The "ideal" solution would be a single step such as pressing a hotkey (i.e., ⊞+something) or directing them to a website which would detect this information (just as examples, I'm not sure if either is possible / available.)    I really am looking for the bitness of Windows, not the hardware, because we almost certainly have some users with 32-bit Windows running on 64-bit hardware. As a fallback though, detecting the hardware would be better than nothing.  So although I've read  and , neither is the ideal solution.


How I can look from that script runs sendmail?

my problem is that some script in php or some other script or program is sending spam.  I am not able to trace where this program runs.  do the following:  ps aux | grep sendmail nginx    28286  0.0  0.0  39316  3328 ?        Ss   07:27   0:00 sendmail -S -t -i -fsamantha_perkins@mydomain.org nginx    28287  0.0  0.0  39316  3352 ?        Ss   07:27   0:00 sendmail -S -t -i -fmuriel_maldonado@mydomain.org nginx    28288  0.0  0.0  39316  3248 ?        Ss   07:27   0:00 sendmail -S -t -i -fann_owens@mydomain.org   I use Debian 8 and OpenSMTPD