Calculate values from specific fields for each row in a featureclass

I have a large script in which I now need to sum the values of a specific list of fields. I have a list of fields:  ave_fields = arcpy.ListFields(dg, "*Ave_STG*")   This list of fields may vary, hence why im using a list, and not explicit field names.  Now, all I need to do is sum the values in these fields for each row and return this value into another field ("weekly_ave").  Ive tried using SearchCursor:  with arcpy.da.SearchCursor(dg, ave_fields) as ucursor:     total = 0     for urow in ucursor:         for i in range(0, len(ave_fields)):             total += urow[i]     print total   And ive also tried using NumpyArray to get this, but its not returning the right value:  tbl = [row[0] for row in arcpy.da.TableToNumPyArray(dg,ave_fields)]   This is my first attempt at using Numpy so I may not have got this right.  EDIT:  I have managed to get the numpy array to work properly, however i now need to return this value in the new field  tbl = arcpy.da.FeatureClassToNumPyArray(dg, ave_fields)  print sum(tbl[0]) # this allows me to sum a row within the array  #now i loop through each row and sum the values within the array, and return this value in the weekly_ave field for each row with arcpy.da.UpdateCursor(dg, "Weekly_Ave") as ucursor:     for urow in ucursor:         print sum(tbl[0]) # this successfully sums the row, but i need to do this for all rows   I get the following error:  TypeError: unsupported operand type(s) for +: 'int' and 'numpy.ndarray'


How do I know by taste, if ham is bad. I have had pre cooked ham cooking in a slow cooker on warm for 3 days

My boyfriend has been using this idea, for a long time. He makes bean soup, with just ham and beans.. maybe a onion, then it sits in the crockpot on warm until digested, by us. LOL. well today. I grabbed a bowl.. and noticed a faint sweet taste to the ham.. I have been digging for suggestions since, to know if I should throw it away or, continue eating it.. It still taste amazing. Just nervous is all. I am going to stick a thermometer in the soup to see what temperature, my crock pot is on, while on warm. Then, I will know if its cooking at at least above 140, safe area. We do this to chili too, and deer meat.. It actually, taste better the second day.  Sign.. a bit unsure.. lol Rose Dubois


Could the change from an edit be displayed in a side-by-side display

Being a foreign language speaker (or writer and reader to be more exact) I would prefer to see the changes in a side by side diff tool.  The current format with the two above each other doesn't make it easy to recognize the improvements.


estimation of standard errors after logistic regression

i have following data  Pass    Hours 0   0.5 0   0.75 0   1 0   1.25 0   1.5 0   1.75 1   1.75 0   2 1   2.25 0   2.5 1   2.75 0   3 1   3.25 0   3.5 1   4 1   4.25 1   4.5 1   4.75 1   5 1   5.5   and i want to test whether number of hours of studying can help me  to predict  passing in subject,  i have estimated everything in excel, here is my calculations   in wikipedia, there is also such kind of information about coefficients   i would like to know step by step how to calculate 1. standard errors  2.Z value 3. P value  for standard errors i found following formulas   i have calculated predicted values for estimated coefficients  predicted 0.034711145 0.049773969 0.070893216 0.100030106 0.139346146 0.190838272 0.190838272 0.255704879 0.33353166 0.421627469 0.515011185 0.607358348 0.692616526 0.766479707 0.87444625 0.910276501 0.936622684 0.955609901 0.969096422 0.985194054   and i have calculated errors  residual -0.034711145 -0.049773969 -0.070893216 -0.100030106 -0.139346146 -0.190838272 0.809161728 -0.255704879 0.66646834 -0.421627469 0.484988815 -0.607358348 0.307383474 -0.766479707 0.12555375 0.089723499 0.063377316 0.044390099 0.030903578 0.014805946   but now how to calculate? pleas  help me to continue, thanks in advance  EDITED : on the  based on this  tutorial   i have estimated  standard errors  and  z values in matlab   and excel, how let p values(Wald test), how can i do it?


I am trying to include a package to an ubuntu ISO. I have googled and found some solutions with kickstart. But, I dont want to automate the partitioning and all. I wish it to appear like a normal installation and it should list team viewer after OS is installed. Is it possible?   Update : I dont mean to edit a Live CD. I mean the installation disk. The package must  be installed along with the OS and not live CD


Compute the definite integral   $$ \int_{0}^{1}\tan^{-1}(1-x+x^2)\,dx $$   Failed Attempt:  Let $1-x+x^2=t$. Then  $$ \begin{align} (2x-1)\,dx &= dt\\ dx &= \frac{1}{(2x-1)}dt \end{align} $$  Changing the limits of integration, we get  $$\int_{1}^{1}\tan^{-1}(t)\cdot \frac{1}{(2x-1)}dt = \int_{1}^{1}\tan^{-1}(t)\cdot f(t)dt = 0 $$  where $f(t)=\frac{1}{(2x-1)}$.  Is it true that $\int_{a}^{a}f(x)dx = 0$? If not, then where have I made a mistake in my attempted solution?


What trusted file cleaning tools are available for Ubuntu?

I want to get a trusted file cleaning tool to remove unwanted files.   When I try to add the Ubuntu Tweak repository it says it is from an untrusted repository.  So, are there any trusted file cleaning tools available for Ubuntu?


Time of extracted frame from video using FFMPEG

I'm using the command   ffmpeg -i video.webm -vf fps=1 thumb%04d.jpg   to get one frame every second. However, I cannot figure out way to get the exact timestamp of an extracted frame. I need that timestamp for processing.  Can you please help?  Thanks so much, Vu


How to have the texture of a circle separated in bands each with a different factor (or color) in a shader?

I created a simple shader to subdivide a circle in a specified number of bands. Each bands has a number between 0 and 1 and the factor (color) for each band is (previous bands + 1/NumberOfBands); I would like to know if there is a way to obtain a random number for each band ( between 0 and 1 possibly ) i.e. a number not related to the previous (or the following) band. It would be perfect a node that output a random number with a seed option, and I can plug the color in the seed, any one know if there is an addon for that?


Change the pager and the number of elements per page of a specific view

I create a view (FO) that lists certain content type. By default, I put a pager (mini) and a number of items per page (content 10 per page).  This view, I integrated into a content type (CFTO) in addition to other parameters. If I agree, I want to use my other variables to redefine this view without saving it in a database (eg disable the pager / display 3 content page / ...)  I try different hooks as hook_views_pre_view, hook_views_pre_render, views_pre_build, but nothing works. I can not change the number of a content page. This is my different test :   I wish i could change my view different information as enable / disable pager and more then change the number of elements of the page.  I find a way of hook_views_pre_render(&$views) to change the pager and more. It works well.  function my_views_pre_render(&$view){ //For more $view->display['page']->handler->options['use_more'] = TRUE;  //For pager if(!$this_node_pager_value) {     $view->query->pager->set_items_per_page($view->total_rows);     $view->query->pager->update_page_info(); }}   Now i wish i could change the number of elements in my page to display, I tested this code in different hook sities previously.  function my_views_pre_render(&$view){ if($this_node_pager_value) { //TEST 1 $view->query->pager->set_items_per_page(3); $view->query->pager->update_page_info();  //TEST 2 $view->exposed_raw_input['items_per_page'] = 3; }}  function my_views_pre_view(&$view, &$display_id, &$args){ //TEST 1 $view->display_handler->display->display_options['pager']['options']['items_per_page'] = 3;  //TEST 2 $view->query->pager->set_items_per_page(3); $view->query->pager->update_page_info();  //TEST 3 $view->exposed_raw_input['items_per_page'] = 3;  }  function my_views_pre_execute(&$view){ //TEST 1 $view->display_handler->display->display_options['pager']['options']['items_per_page'] = 3; //TEST 2 $view->query->pager->set_items_per_page(3); $view->query->pager->update_page_info(); //TEST 3 $view->exposed_raw_input['items_per_page'] = 3; //TEST 4 $view->display_handler->set_option('items_per_page', 3); }   function cci_generic_views_pre_build(&$view){ //TEST 1 $view->pager["items_per_page"] = 3; //TEST 2 $view->display_handler->options['pager']['options']['items_per_page'] = 2; //TEST 3 $view->display_handler->options['pager']['options']['expose']['items_per_page'] = 2; }   None works. Would you know what should be done to make it work?  You would know what is the right hook to use? And how to change this value? thank you for your help   Djik


Transformation between a dynamical system to a Hamiltonian system

Consider a dynamical system characterized by these equations  $$\dot{x}=x-xy \\ \dot{y}=-y+xy$$  If we transform $\ln(y)=q$ and $\ln(x)=p$, the system can be changed into a Hamiltonian system with $q$ and $p$ which are defined as generalized coordinates and generalized momentum.  My question: Is it always possible to find a suitable transformation to change a dynamical system into a Hamiltonian system?


Is it bad practice to lexically scope Python import statements?

In Python it appears that imports are truly lexically scoped.  Is this true?  For example if you do this:  def some_function:     import sys  print sys.argv[0]   You will get an error:  Traceback (most recent call last):   File "example.py", line 4, in <module>     print sys.argv[0] NameError: name 'sys' is not defined        In Perl, use statements are not lexically scoped, but Perl does not give you a syntax error if you attempt to define them lexically (i.e. within a subroutine).  Doing this causes confusion and is considered very bad practice.     In Python this doesn't appear to be how things work.  I believe I've read somewhere that it is considered good practice to always put your import statements at the top of your code, but if they are truly lexically scoped as the example seems to show (meaning they can't be accessed outside of the scope in which they are defined), I don't see why it would be considered bad practice to just put them where you use them.  Is there any reason lexically scoping imports would be bad practice in Python? If so, please explain why?


I am taking a course in Real Analysis this semester and thought I would work ahead a little bit.  I am just reading for the moment, but came across an interesting exercise, and was wondering if I could see how one of you would solve it.  Assume that $A$ and $B$ are nonempty, bounded above, and satisfy $B⊆A$. Show $\sup B≤\sup A.$  Not so much that the question perplexes me, but rather I wanted to see an example of a rigorous proof for this question.


The likelihood function: Why is it no pdf?

I know that there have already been a lot of questions about why the likelihood is no probability density function and I ve read most of the answers. However, to me the point is still not clear yet why the likelihood is no pdf. There have been several arguments, mainly involving that    it does not integrate to 1 it is a distribution over the parameters with the data fixed   However, there has also been an accepted answer that says "it is the probability (density) of the data given the parameter value", which to me sounds like a probability then.  My general confusion and problem about the understanding of the likelihood contains the following items:  1.) The Likelihood is (often) defined as $L(\theta|X)=p(X|\theta)$. But that IS a (conditional) pdf. There is nothing I can do about it to interprete it otherwise (e.g. by assuming to hold any of $X$ or $\theta$ fixed). The above expression means that I have a pdf over the random variable $X$ conditioned on the parameter $\theta$ which in fact is a conditional pdf, no?  2.) One could argue (such as on wikipedia) that the likelihood function is defined as $L(\theta|X)=p(X;\theta)$, i.e., explicitely not as a conditional pdf. However in Bayes theorem the likelihood is always a conditional pdf, as Bayes theorem is in principle only a consequence of the definition of conditional probability (density). Therefore in Bayes theorem I have to inteprete the likelihood as a conditional probability density.  3.) I am also confused about the definition of the likelihood in frequentist and Bayesian framework. In the former one assumes the data to be random variables and the parameters to be fixed unknowns and in the latter one assumes the data to be fixed and the paramters to be random variables. So it seems that the interpretation of the likelihood also depends on the framework I am working in?  4.) The pdf of a given distribution is often written as a conditional probability, e.g., the gaussian is often written as $p(X=x|\mu, \sigma)$ and then treated as a likelihood when using e.g. Bayes theorem. In that case we explicitly assume the likelihood to be a (conditional) pdf then. However, how is this then justified (if the likelihood is not a conditional pdf)?  5.) Why are there many textbooks in applied statistics and machine learning, that just use the likelihood as a conditional pdf just like in point 4.) if this is not correct?  EDIT: The discussion I have looked at involve:


Why are photoelectrons emitted in the direction of incident photons?

In the experiments for photoelectric emission, the light is incident on one face of the emitting plate, for example the anode, when determining the stopping potential. The electrons are emitted by this face of the plate. Why are the electrons emitted in the direction of the incident light, and not opposite to it?  I have read a little about photons (the key words being, a little), and from what i gather, they have an intrinsic momentum $p=h/\lambda$, which is transferred entirely to the particle that absorbs it (along with the energy $h\nu$). This should imply that the electrons try to move further into the cathode, and not escape it! What is the fault in the reasoning?  Thanks!


Find $f(2015)$ if f is continuous and $f(2017)=2016$

If  $f:R\rightarrow R$ is a continuous function with the properties:   $f(2017)=2016$ and $f(x)\cdot f(f(x))=1$ find the value of $f(2015)$   I replaced $x$ with $2017$ and got $f(2017)\cdot f(f(2017))=1$  $2016\cdot f(2016)=1$ which means $f(2016)=\frac1{2016}$, but I don't know how to get to $f(2015)$


Getting this error: Error: Compile Error: unexpected token: 'List'   public String SupportTierValue {   get {       List tmpAcct = [SELECT Id, Name, Support_Tier__c     FROM Account     WHERE Id IN      (SELECT AccountId      FROM user      WHERE username=:UserInfo.getUsername()     )     LIMIT 1     ];     if (tmpAcct.size() > 0) {     String SupportTier = tmpAcct[0].Support_Tier__c;     }     else {     String SupportTier = 'SomeDefaultValue';     }    } return SupportTierValue;  } private set;  }


How can I completely transfer my Windows XP installation to a new hard drive?

I have a PC with Windows XP SP3. It has a 320GB hard drive. Disk Management shows 2 partitions:   C:\, Windows XP, 74.52GB D:\, Files, 223.56GB   I need to transfer just the C:\ to a new hard drive I bought, a 1TB Seagate Barracuda (I haven't looked at it but I'm sure it's not yet partitioned). I've been doing research about this and I've decided to use EaseUS Todo Backup.  However, I'm not sure of the whole process that I have to do. I have these questions:   How would I work this out with only 1 SATA cable? Will the MBR be fixed automatically with the new drive?   Additional notes:   I have an Ubuntu and a Parted Magic Live CD I have a 500GB external hard disk, with 100GB free space.   I'm pretty knowledgeable about these tech stuff, but it's my first time cloning a disk and I need some guidance. Please help. Thank you.  UPDATE:  I went on and read more about this and realized that doing a backup and a clone are two different things. Good thing I did that before I cloned my hard disk to my external drive.  Anyway, I found out that I could use the SATA cable and SATA power cable that my DVD drive was using. So I ended up plugging both my hard drives in (had to convert my new drive from Dynamic to Basic disk), doing the Disk Clone from EaseUS Todo Backup.  I unplugged my older drive and used the new one and voila! Everything worked okay and the transition was smooth. I appreciate all the help. :)


Hello i have a td in table with value i have changed this td to an input of type text when a click to a button.  And now i want to change the id of the new input with the id of the td element so i have an exception that is :     input.id is not a function    Here my code js :  $("tr.forc td.TdbeforeForcage").each(function () {     var html = $(this).html();     var input = $('<input class="numberforce" style="width:50%" type="text" />');     var IdTd = $(this).attr("id");     input.val(html);     input.id(IdTd); // Here trying to change id of input with id of td      $(this).html(input);      if (html.indexOf('&nbsp;') > -1) {       var newValue = html.replace('&nbsp;', ' ');       $(this).find('input.numberforce').val(newValue)     } });


I work for my company's ECM group and my manager is considering pushing to upgrade the server infrastructure due to an increasing user community. Currently it's a single VM that has 2 cores and 4 gigs of ram running Windows Server 2008 (May upgrade to 2012 next year)  There are 2 options that's he's considering; either increasing the core count or increasing the memory. In the end we would have either 2 vm's with 4 cores and 8 gigs each or 4 vm's with 4 cores and 4 gigs each. Either scenario will end up in an F5 load-balancer.  Is it better to have fewer vm's with more memory per vm or more vm's with less memory?  Additional Information: The software package that we are using is a 64-bit web server & app server on a single vm. I'm not sure if this is enough info. I can provide more if needed.  Thank you for any insight provided!


Reputation points decreased without downvotes / negative points

I'm using Stack Overflow. I got 35 points there yesterday. Today 2/1 points were subtracted from the total (i.e. 33/34 points), but downvotes / negative points are not visible in my reputation history. What's happening here?


I use emacs as an editor in the command line (aliased with alias em='emacs -nw') and would like to be able to make an alias for !em to open up the file most recently opened in emacs.  I've tried alias e='!em', alias e='${!}em', alias e='${!em}', but so far can't find anything that works.   I've found some related posts about aliasing !!:


My computer automatically opens Bing when it boots

Whenever I boot my Windows 8 computer, my default browser (Chrome, though this happened while IE was my default browser) opens up and automatically opens the  homepage. What's causing this and how can I prevent this from happening?


Make one Git branch exactly the same as another without merging

Consider the following Git graph  master:   A - B - C - D - E*                \         / feature:        X - Y - Z   I want to make a new commit in master, E, such that E precisely matches Z. In other words, any changes that may have been made in commits C and D are completely discarded. However, I would still like to retain the property that doing git checkout HEAD~1 in master would checkout D.   Doing git checkout master; git reset --hard feature gets the working directory in the proper state (i.e., all tracked content precisely matches that of Z). However, is does not leave the history in the way that I intend.  Doing something like git checkout feature -- . almost works, but retains any files created in B or C, so it won't always precisely match the state of Z.  Doing something suggested in other responses to similar questions seems quite inefficient, as it involves several different checkouts and merges and is something I need to specifically avoid, as this operation will be done frequently and on rather large repositories.  It seems like years ago someone asked a similar question and got this response:   Part two of this question is: Seriously? Unless I'm missing something major, why is this not obvious to do?  Thanks!


Problem Stack Overflow receives about 15,000 new questions a day - not counting those that are deleted within a few minutes of being posted. As described in  there are really too many for experts to get a good look at, a lot of bad questions aren't receiving the right type of exposure to janitorial effort, and a lot of good questions aren't receiving the right type of exposure to expertise. Past efforts to resolve the problem When this problem first reared its head the fix was to customize the home page (hot questions) and show questions the user had a likelihood of understanding and answering, based on previous site activity, in addition to those the user marked as interesting. When questions started falling off the front page before finding an answer, we got the community user to 'bump' unanswered questions occasionally in the hopes that someone who could and would answer would come along and happen to see it for the brief time it remained on the home page. Next step: splitting? I believe we've outstripped ourselves. Is there any merit to the idea that splitting the site up in some way to cater to different programming communities or to different programming experts would alleviate this problem? Specific implementations aren't the point of this discussion There are a million ways we could "split" Stack Overflow, and the discussion(s) surrounding that would be exceptional in length and thoughtfulness. Endless discussions on what loosely established communities exist in the programming world, and endless discussions on how to effect the split, whether simple (aggressive filtering of the hot page to only topics a user has successfully answered in the past) to moderately complex (subdomains with aggressively filtered tags, a subdomain for each language, or community, etc), to actually creating a new area51 proposal for each community, forcing them through the process, and building real "new" sites. This doesn't even approach the questions surrounding reputation issues and so forth. It is a very interesting set of questions that we could spend days and weeks yammering on about, but How Should It Be AccomplishedTM is a different issue from this discussion, so please try to limit answers and comments to what positive effects can be gained from a split of some sort, and what negative effects might be experienced due to a split. Is a split worthwhile? Keep in mind, however, that I'm using the term "split" very loosely. It might be a UI tweak, or it might be , and never the twain shall meet between the resulting sites. I don't know. If your thoughts on positive and negative effects depend on the type of split, assume the split that you believe provides the most positive and fewest negative effects, and describe it very briefly (two sentences at most...) so readers are on the same page as you. However, if you can, try to discuss this at a higher level where the implementation shouldn't matter. It wouldn't be a complete fix, or resolve the situation completely, but would it be helpful? Supporting information There are over five million questions on Stack Overflow. Of those, . That's after excluding closed, migrated, or duplicate questions. Of those that have answers, only 51% have more than one answer. I believe the premise, that Stack Overflow is overburdened and isn't doing as well as it could be at answering questions, isn't false. If it is working as well as it should be, and these 500,000 unanswered questions are outliers, then nothing needs to be done. If it isn't working as well as it could be, could splitting it be a solution, or not?


Was Air New Zealand flight NZ6 on April 16, 2020 from AKL to LAX cancelled, or did it depart? I need to determine this information in the hope of obtaining a full refund, rather than a credit. Thanks.


How to convert to Disjunctive Normal Form

The question gives the following: ¬(p ∨ ¬q) → (¬r ∧ (p → r))  With my own working, I have come to the answer of (p ∨ ¬q) ∧ (¬r ∧ ¬p) ∧ (¬r ∧ r). Can anyone tell me if this is correct?  Also, please tell me what Disjunctive Normal Form really means (without complicated terminology). The answer I got was from trying to break down what other similar questions have done. I still don't know what it really means.


If $f,g:X \to Y$ are continuous and $Y$ is $T_2$, then $\{x \in X\,|\,f(x)=g(x)\}$ is closed

I'd like to know if the following proof is valid.  The only thing I'm not sure about (though I can't see why it's invalid if it is) is if we can always use the Hausdorfness of $Y$ to separate an open set from $f(C)=g(C)$.  "Let $X$ be a space, $Y$ a $T_2$-space, and $f,g:X \to Y$ continuous functions.  Prove that $C:=\{x \in \,|\,f(x)=g(x)\}$ is a closed subset of $X$."  Let $x \in X$ be such that $f(x) \ne g(x)$.  Since $Y$ is $T_2$, there are open sets $U_\alpha \ni f(x)$ and $V_\alpha \ni g(x)$ such that $U_\alpha \cap O_\alpha=V_\alpha \cap O_\alpha=\varnothing$ for all $\alpha \in A$ where $A$ is the set indexing the points of $f(C)=g(C)$, and $O_\alpha$ is an open set containing $x_\alpha \in f(C)=g(C)$.  Let $U:=\displaystyle\bigcap_{\alpha \in A} U_\alpha$ and $V:=\displaystyle\bigcap_{\alpha \in A} V_\alpha$.  Then $U \cap f(C)=V \cap f(C)=\varnothing$.  Therefore, since $f,g$ are continuous, $f^{-1}(U)$ and $g^{-1}(V)$ are open sets in $X$ disjoint from $C$.  Since $X\setminus A$ is the union of such open sets, it is open itself and therefore $C$ is closed.  Thanks.


Consider the following sentences-  1- He is taller than me.  2- He is taller than i am.  Which one is grammatically correct and acceptable in various English language exams?  (I've read about it in some books.. Asked some teachers but still there is confusion)


Cycles through black screen on login after changing password

On my laptop, I forgot the password to my Ubuntu partition, so I logged into the root command shell on the recovery start up option in GRUB so that I could change the password.  On my first attempt to change my user password, I got this error:  root@username-PC:~# passwd username (*not my actual user name*) Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged   After doing some research, I discovered that I was stuck as read only on the file system, so I ran the following command to remount the file partition as read/write:   mount -rw -o remount /   Afterwards, I change my user password using passwd and it was changed successfully.  I restarted my laptop and tried to login using the new password but the only thing that happened was after entering my password it flashed to a black screen with some text that I couldn't make out except for "Ubuntu 12.04" then another black screen half a second later, and finally back to the login screen. Repeated attempts to login results in only this action.


Copenhagen interpretation and argument of boundary condition

Quote from    "...The wavefunction evolves smoothly in time while isolated from other systems."  However, by the studying, my feeling was that all we need was for the wavefunction to be piecewise continuous, where the function itself assure the probability density and momentum to be continuous.  I.e. Finite square well boundary condition: Suppose a particle in finite square well where the function was bounded(no Dirac Delta Condition).  The the function was cut into $\psi_1$ from $(-\infty,-a]$, $\psi_2$ from $[-a,a]$, and $\psi_3$ from $[a,\infty)$.  When looking at the boundary condition at point $a$, traditionally they write $\psi_2(a)=\psi_3(a)$ and $\psi_2^\prime (a)=\psi_3^\prime(a)$.   I felt like function $\psi_2(a)$ and $\psi_3(a)$ didn't actually carry the meaning at $a$. Instead, since they $\psi_2$ and $\psi_3$ was already the eigenfunciton, the true condition required here ought to be $(\psi_2(a))^*\psi_2(a)=(\psi_3(a))^*\psi_3(a)$ and $(\psi_2^\prime(a))^*\psi_2^\prime (a)=(\psi_3^\prime(a))^*\psi_3^\prime(a)$.  Another example of step well we given:     Thus quote from Billy, in that case:" ontinuity of probability density implies continuity of wavefunction."  My question were:   Do we still need function itself to be continuous once we obtain the probability density and momentum to be continuous? (Notice the latter case was a weaker condition and, once it was satisfied, all operators and operations could be implied onto the function.)  In the specific case of step well momentum and probability density to be continuous meant $\Psi$ and $\partial_x \Psi$ to be continuous (1D case). However, was that true in general? (ask for proof)


Live action TV show where High school Kids go into the virtual world and have to clear levels

I've been trying to remember this live action TV show for years now.  In it teenagers were able to enter this virtual world of sorts and they become these avatars. Their goal was to clear levels and move on to the next and I don't remember why. There were artifacts or items that help them on their way and they can return to the real world easily enough. I think they can re-enter the virtual world through someone's school.  To pinpoint a possible date I'm thinking maybe 2000s to 2004s, it is hard to remember because I was so young.


How to deactivate internet search result in unity panel Ubuntu 14.04 LTS

I mostly used my Ubnutu system for programming purpose and whenever I search something from unity panel it also display result from internet(I believe but not sure). I rarely used/clicked these search items, so Let me know if is their is any way to stop this.  Please follow the image for more clarity -


Show two full-screen applications on the same monitor

I've got Windows 7, two applications and one wide-screen monitor.   The applications can work only in full-screen mode. But I need to vertically split the monitor so I can watch both applications at the same time.  What is the best solution?  Edit:  It is not a duplicate because other users want to Maximize their windows, and the software in other answers can't organize full-screen mode applications.   Example: How to run to two instances of Internet Explorer (or other browser) in full-screen mode (F11) on the same monitor?


In an article I met this table.  How can one design such a table?


Can I ask other stack overflow members to consider removing their downvote after a post has been deleted?

I could have modifications ready for a specific question that was downvoted. I felt like the best thing to do was to delete the post first.  Is it possible to flag for moderator attention after you deleted the post ?


I can understand how this turned out to be a useful question. On the other hand, by what I understand to be guidelines of what makes a question worthwhile, OP    didn't seem to make any effort or do research of his own was rather vague this is in fact and title a "how to" question.   On the other hand, the question DID get 9 upvotes and NO down-votes. So I admit, I could be wrong.  Still, I feel this audit is at least misleading. Here again, Others may disagree.  But, I would like to have an option besides "I Understand".  Because I don't understand, and at present I don't agree.  I'd like to see a 2nd button like "I Disagree". While I may be wrong about this audit question being bad/misleading (good luck convincing me), but I feel that there should be a way to flag / challenge audit questions.    P.S., the audit question I'm pointing to is less important than the idea that I would like to be able to challenge them. I understand that making a good audit is hard and they're not perfect. That's why it benefits everyone to make the audits review-able.    P.P.S., please don't close this. Vote it up. The "original" that this is duplicate of is almost a year old. Time for this request to be made again. and again. and again.  For now, I'm going on close-review strike. AGAIN.


When I get around at park , I made up a question to hang out by myself.However , I stuck in it. Question: Let $75!$ be in base of $10$ , then what is the last two digits of it in the base of $3$? Where I stuck in : $1-)$ I know how to write $75$ in the base of $3$ , but I do not know writing $75!$ in the base of $3$. $2-)$ To find the last two digits, we utilize from $(\text{mod }100)$, then which modulus should I use to find its last two digits? Thanks for your helps..


Attempting to create a tag wiki when a user has hit the suggested edit limit should alert the user that no more edits can be suggested at this time

I ran into an issue on Gaming.SE where I attempted to create a tag wiki and wiki excerpt for a tag which did not have one already while I already have the maximum of five suggested edits in the queue.  Navigating to the tag page for the  provides a link to  for this tag. This link redirects to the  for this tag, without telling me that I can't submit an edit because I've reached the maximum number of suggested edits. Instead of silently redirecting, the page should alert me that I can't suggest any more edits until my suggestions are reviewed.


The formula for the number of monomials in variables $w,x,y,\ldots,z$ of degree $m$ (where e.g. $x^iy^jz^k$ degree $m=i+j+k$) is $$\binom{m+n-1}{n-1},$$ where $m$ is degree of monomial and $n$ is the number of distinct variables in that monomial(e.g. in $x^2y^3z^4~, m=9,n=3$).  My book describes that the formula is same as that of number of ways of placing identical objects into distinct boxes as these two situations are similar.  But I can't find how are they similar... Kindly help me with this...


Get last row from a query generated table

Hello everyone I have wrote a query which will give me employee in and out time for a range of time, as my tables have many in and out time I wanted to get only last in or out time based on timestamp here is query for this  select fullname,direction,to_char(((TO_DATE('19700101','yyyymmdd') + (tstamp/24/60/60) + 6/24)), 'dd-mm-yyyy  hh12:mi:ss PM') as Time, gate,lane,employment.employeeid,NATIONALID,departmentname,designation.designationname from eofficeuat.entrylog_cpa join eofficeuat.employee on entrylog_cpa.hrrecordid=employee.hrrecordid join eofficeuat.employment on employee.hrrecordid=employment.hrrecordid join eofficeuat.designation on employment.designationid=designation.designationid join eofficeuat.department on employment.departmentid=department.departmentid where department.departmentname = 'SECURITY' and tstamp >= 1568764800 and tstamp < (select (sysdate - date '1970-01-01') * 86400000 from dual) /*and tstamp in (select max(tstamp) from eofficeuat.entrylog_cpa)*/ /*and rownum >= (select count(tstamp) from eofficeuat.entrylog_cpa)*/ and fullname='A.K.M.TOWHID SARKER' order by fullname asc;   this query give this result    full name            direction   time  ---------            ---------   ----  A.K.M.TOWHID SARKER  out         18-09-2019  01:41:35 PM  A.K.M.TOWHID SARKER  out         18-09-2019  01:29:08 PM   but I only want last row from this result. can you please help how can i do this?


when I run it display this error  Exception in thread "main" java.lang.NullPointerException at Abstract2.main(Abstract2.java:70) pleae tell me how to resolve it  my code is given below  import java.util.*; abstract class plan { public double rate,bill; public abstract void getrate(); public void cbill(int unit) { double bill=rate*unit; System.out.println("bill is="+bill); } } class domestic extends plan { public void getrate() { rate=2.5; } } class commercial extends plan { public void getrate() { rate=5.5; } } class industrial extends plan { public void getrate() { rate=7.5; } } class bill { public plan getplan(String plantype) { if(plantype==("domestic")) { return new domestic(); } if(plantype==("commercial")) { return new commercial(); } if (plantype==("industrial")) { return new industrial(); } return null; } } class Abstract2 { public static void main(String aa[]) { plan p;//instance of class plan String plantype; int unit; double rate; bill b=new bill(); Scanner sc=new Scanner(System.in); System.out.println("enter the plan type="); System.out.println("     domestic"); System.out.println("     commercial"); System.out.println("     industrial"); plantype=sc.next(); System.out.println("enter the units"); unit=sc.nextInt(); p=b.getplan(plantype); p.getrate();//line 70 p.cbill(unit); }  }   please tell me how to resolve it


What is the difference between "I am from China" and " I come from China"?

I am from China. I come from China.  What is the nuance between them? likewise:  Where are you from? Where do you come from?  Are there any nuance between them?


How can I store the output of an awk command as a bash script variable?

When operating in the linux terminal I can enter the following: command   ''' awk 'FNR==1 {print$5}' SNextractedstats.txt '''  To display the value in the first row and fifth column of a text file.   I would like to be able to save this value as a variable in a bash script to be able to do sums and call using Echo, how would I go about doing this? Thank you


‘And what on earth’s a Squib?’ said Harry.   To his surprise, Ron stifled a snigger.   ‘Well – it’s not funny really – but as it’s Filch ...’ he said. ‘A Squib is someone who was born into a wizarding family but hasn’t got any magic powers. Kind of the opposite of Muggle-born wizards, but Squibs are quite unusual. If Filch’s trying to learn magic from a Kwikspell course, I reckon he must be a Squib. It would explain a lot. Like why he hates students so much.’ Ron gave a satisfied smile. ‘He’s bitter.’   Chamber of Secrets - pages 110-111 - British Hardcover   If a Squib is 'kind of the opposite of a Muggle-born wizards' wouldn't that make a Squib more Muggle than wizard? Does a Muggle strictly have to be born to Muggle parents to be considered a Muggle, or can the lack of magic render a person, even of wizarding parentage, a Muggle?  Hermione can say in all truthfulness that she is a 'Muggle-born witch.' The nickname (albeit derogatory) for a Muggle-born is 'Mudblood.' Filch can say in all truthfulness that he is a 'wizarding-born non-magic person,' which, according to Hagrid is a Muggle.  'Squib' may be derogatory in the same way as 'Mudblood' is. Neville laments his family thought he was a Squib when he showed no magical tendencies as a child; the Longbottoms were so rattled at the thought of Neville being a Squib that they, among other things, threw him out a second-story window to see if he would bounce. So could 'Squib' actually be a derogatory term meaning the opposite of 'Mudblood'? After all, the Ministry doesn't allow Squibs to register as magical beings, and many Squibs are schooled and trained in Muggle professions. Squibs don't get a Hogwarts letter.    Wizards can be born to Muggles. Can Muggles be born to wizards?  ETA 11.22.14: In regard to this question, I was glancing through Philosopher's Stone, and I came across this, that Neville said:     ‘Well, my gran brought me up and she’s a witch,’ said Neville, ‘but the family thought I was all Muggle for ages. My great-uncle Algie kept trying to catch me off my guard and force some magic out of me – he pushed me off the end of Blackpool pier once, I nearly drowned – but nothing happened until I was eight.’   Philosopher's Stone - page 93 - Bloomsbury - chapter seven, The Sorting Hat   Could what Neville says contribute to the theory and/or conclusion that Squibs are, or are not, Muggles? How do we apply what Neville said?


Download using wget to a different directory than current directory

I need to use wget to download a file to the directory /var/cache/foobar/ (so, as an example, if I download stackexchange-site-list.txt, it'd be downloaded to /var/cache/foobar/stackexchange-site-list.txt)  Is this possible? curl would also be an option, but I'd prefer to not use curl, since it's not installed by default.


Get coordinates from web mercator projection to Lan & Lot (JavaScript/ node.js)

I have the WKT coordinates like below.  LINESTRING (16139582.976129573 -4541142.959679384,16139974.715899538 -4540837.211566243)   How can I get the Longitude and Latitude from that.  I am using GISCloud.


Unwanted blank line in verse environment

I'm having a problem where lines which are almost long enough to cause the verse environment to break a line are creating an unwanted blank line. It seems as if the environment is breaking the line, but doesn't actually have anything to put on that line.  Here's a MWE which reproduces the problem:  \documentclass[ebook,10pt,twoside,openright,final]{memoir}  \usepackage{utopia}  \begin{document}  \begin{verse} Ponder, daughter, distant marshy banks\\ where first was born the cold divorce\\ 'twixt earthy bride and thundering, wrathful son.\\ The wedding broke, and strife poured out from wounds\\ unkindly torn. Already then I plotted\\ peace to make for fragile human hearts,\\ \end{verse}  \end{document}   Rendered as:    Upon simplifying the example, I see a warning message that I had missed before, namely the fact that the utopia package is now obsolete. Perhaps this is relevant?


Getting LNK2001 error while using template member functions

So im getting unresolved external and im confused why its not linking properly  memory.cpp:   memory.hpp:   main.cpp:   Output Window:  1>------ Build started: Project: NAME, Configuration: Release Win32 ------ 1>main.cpp 1>memory.cpp 1>main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Memory::Write<int>(unsigned __int64,int)" (??$Write@H@Memory@@QAE_N_KH@Z) 1>main.obj : error LNK2001: unresolved external symbol "public: int __thiscall Memory::Read<int>(unsigned __int64)" (??$Read@H@Memory@@QAEH_K@Z) 1>D:\Desktop\Workbench\NAME\bin\x86_Release\NAME.exe : fatal error LNK1120: 2 unresolved externals 1>Done building project "NAME.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========   Why its giving me these errors.. Im so confused, ive done properly the class templates i think?


How to access private data members outside the class without making "friend"s?

I have a class A as mentioned below:-  class A{      int iData; };   I neither want to create member function nor inherit the above class A nor change the specifier of iData.  My doubts:-   How to access iData of an object say obj1 which is an instance of class A? How to change or manipulate the iData of an object obj1?   Note: Don't use friend.


When we flag questions and answers as spam, abuse or requiring attention, how exactly do the moderators use the information? I'm guessing there's a shared queue somewhere that moderators can all see. Is there some method of knowing whether something that has been flagged has been addressed yet? How do you make sure that two moderators swooping down to fix an edit war don't get into an edit war with each other? How do you see and use the details we enter when we flag a post as requiring moderator attention? Do you see the name of the user who submitted the report, or just the report? Can we see a screenshot of the flag queue? I guess the whole flagging mechanism seems pretty opaque. I'm hoping a moderator can outline the details of what they do with the reports. I know we have the details of , but I'd find it easier to use if I knew what is done with it.


I do not understand the presence of the red arrow in the table  \documentclass{standalone} \usepackage{tikz} \begin{document}  \begin{tikzpicture} \foreach \x/\xtext/\ytext in{0/x/y,1/1/4,2/1.5/6,3/2/8,4/5/20} {\draw (\x,0.5) +(-0.5,-0.25) rectangle ++(0.5,0.25) ; \draw (\x,0) +(-0.5,-0.25) rectangle ++(0.5,0.25); \node[]  at (\x,0.5) {$\xtext$}; \node[]  at (\x,0)   {$\ytext$}; } \draw[color=red,->,thick,>=stealth,shorten >=2pt,shorten <=2pt] (4.5,.65) edge [distance=1.2cm,bend left=80 ] node [right]{$\times 4$} (4.5,-.15); \end{tikzpicture} \end{document}


Probability of getting heads on an even numbered flip

What's the probability of getting heads on an even-numbered flip? What I would think is that getting heads on the second, fourth, etc. flip remains $1/2$.


Let $$f_{X,Y}(x,y) = 8xy\mathbb{1}_D(x,y)$$ with $D=\{0<x<y<1\}$  I want to find $F_{X,Y}(x,y)$, I do this by integrating:   $$ F_{X,Y}(x,y) = \int_{-\infty}^x \int_{-\infty}^y 8 x y dxdy$$ However now I think I misunderstand because I set up the integral on $D$ in this way:  $$ F_{X,Y}(x,y) = \int_{x}^1 \int_{0}^y 8xydxdy$$  This is because x is between 0 and y and y is between x and 1, however I get the wrong result. Is there a mistake in the boundaries of the integral?


How can I install a complete Arabic font?

I have installed Arabic language support using the language tool, but I am still unable to get this page to render correctly:    Which fonts do I need to install to stop seeing squares instead of Arabic characters? I would prefer fonts that are available in the Ubuntu repositories.


I am making a slope raster in QGIS from DEM. My DEM was made using WGS84 coordinates system. Do I need to be using a z scale conversion factor ? If so what would that be?


Ubuntu doesn't start after I installed updates

When I install Ubuntu, I set it so. Then asks to restart, I restart the pc, it comes standard in Ubuntu.  After I install updates it asks to restart again, I restart the pc again, more so that he did not re-enter the Ubuntu, it gets a black screen... Why?


How to insert citation in Elsevier template Latex?

I am new to Latex and I am trying to write in an Elsevier template, following the instructions though placed on the template does not give me the desired outcome.  I am using a .bib (name of file is george.bib) library with my references which was produced by mendeley (give a BiBtex file), and placed the file in the folder i have the latex components.  %% If you have bibdatabase file and want bibtex to generate the %% bibitems, please use %% \bibliographystyle{elsarticle-harv}  %%  \bibliography{<your bibdatabase>}  \bibliographystyle{elsarticle-harv}  \bibliography{george}  %% else use the following coding to input the bibitems directly in the %% TeX file.  \begin{thebibliography}{00} %% \bibitem[Author(year)]{label} %% Text of bibliographic item  %\bibitem[ ()]{} \bibitem[ ()]{}  \end{thebibliography}   I also did a small test with the \bibitem command and it was giving me the in text citation although I would like to use my .bib saved library instead of having to insert all citation manually. So far when i use \citet{} and the citation's name i get a ? when i compile the document.  How can i insert the .bib and then use the key words with \citet to create citation within text and a bibliography at the end?  thank you


Save PSD (or TIFF) with passes as layers?

I wonder if there is any way in Blender for saving render results in PSD (from what I can see it is not supported) or TIFF file with layers from passes (for example refletion pass, object id, material id pass and so on)? I know that it can be done with compositor, but the problem is that I`m looking for a fast workflow for hundreds of files and in general I need to put all those passes into photoshop layers anyway. So struggling with compositor is not an option for me.


Can we measure "wavefunction" of quantum particles?

We know that there is uncertainty principle, so question: can we ever measure wavefunction of particles? I do not think this is possible, but I am not sure. I guess that everything is probabilistic. (that's why, I believe, we have sigma level when we say we discovered some particles...)


Why does python change every lists when indexing a list of empty list?

I created a list of 3 empty lists: >>> l = [[]]*3 >>> l [[], [], []]  then added an item in the second one: >>> l[1].append("j")  but it added it on every lists: >>> l [['j'], ['j'], ['j']]  why?


Is the following statement true: Gradient descent is guaranteed to always decrease a loss function.  I know that if the loss function is convex, then each iteration of gradient descent will result in a smaller loss, but does this statement hold for all loss functions? Could we design a loss function in such a way that performing gradient descent was not optimal?


Why is $A/\mathrm{ann}(M)$ necessarily Artinian?

Let $M$ be a finitely generated Artinian module over a commutative ring $A$.  Why is $A/\mathrm{ann}(M)$ Artinian?


Why does my identicon in the ranking differ from my profile's identicon?

I just realized that my identicon in the  page has a different color and pattern compared to that in my  page:   Looking at other users profiles didn't show any differences between their ranking and profile identicons. Is this a bug? Update It seems to be an issue with gravatar producing different icons depending on the size of the icon you demand. The hash is actually just the md5 sum of your registered email address.


Amoeba Interview Question: Is the P(N=0) 1 or 1/2?

Say we have the following problem ():      Bobo the amoeba has a 25%, 25%, and 50% chance of producing 0, 1, or 2   offspring, respectively. Each of Bobo’s descendants also have the same   probabilities. What is the probability that Bobo’s lineage dies out?   You can probably the probability of extinction $p$ as  $$p = \frac{1}{2}p^2 + \frac{1}{4}p + \frac{1}{4}$$   Which if you solve leads to solutions 1 and .5. That said, why is the "correct" answer 1/2?  There is a discussion of a similar problem on some of the comments on this thread (), but I don't really understand the reasoning, especially since in this problem we don't have a root above the value of 1.   Thoughts?


How to hitchhike on a cargo ship from India to say somewhere like Africa or Mediterranean? What will be the requirements and cost to travel alone? Is this possible at all?


I'm new to Python and I want to make it from KLM, United, and ANA. How do I do that? Thanks  airlines = ['klm', 'united', 'ana'] for airline in airlines:     if(airline == 'klm' and airline == 'ana'):         print(airline.upper())     else:         print(airline.title())   I want it to show: KLM, United, ANA


How to create a better (more userfriendly) admin interface for non-technical "admin user"?

I'm trying to make Drupal admin interface easier for non-technical users. Actually, I'm trying to "create" a new interface for these kind of users. I'm using , ,  etc. to make a better admin interface experience without scaring them with a complex structure. Easily;  edit, enable/disable blocks, edit-rearrange main menu, manage users, manage contents, manage files, images etc. uploaded via Drupal interface,  What should be done to increase user experience of this admin interface? Is there any must-use module you suggest?


What really was the Gray Jedi order?  Please tell me.  I want to know what they really where, there code, and some of the Gray jedi.


I am trying to make a domino movie, but i got stuck while using this dupliframe feature It keeps on deforming the object! I thought this is used when you just want the object aligned and oriented along the path, but not deformed...    I am using blender version 2.71 did the feature changed during the updates or something??    the highlighted mesh is domino shaped mesh an i am trying to duplicate it along the curve without any deformations as the screenshot shows.


I vigorously request that the reputation system be revised to let people with higher reputation in other Stack Exchange sites be able to comment on questions/answers.  A possibly reasonable approach would be to make your privilege based on an average: if the average is above the reputation needed to post comments, then users should be allowed to comment everywhere. To make the system maybe a tiny bit more "resistant" to problems, there could be a minimum reputation to hold in at least two accounts, and to have at least 3 accounts associated.  I don't know if this makes sense to you, but it would be greatly helpful because, well, it's not very nice to be deleted questions.  I am very willing to behave "well" but if I don't have enough points to comment, how am I supposed to?


Copy files from Column1 in CSV to target folder name in Column2 in CSV (Linux)

I have a CSV with two columns.  Column 1 are full file names.  Column two are folder names.  I need to copy the file in column 1 into the folder in column 2.  Both files and folders are in the same main directory.  I have the following script:  IFS=',' while read OS HS do     cp -av $OS $HS done < SlingManifest.csv   This says it's working, but when I check the folder I get a file with no name.  The contents of the file are correct, but the file has no name and only one file exists in each folder.  How can I prevent this?  Sample vim of CSV:  TinyHouseNation_600SqFtPowercouplesRetreat_190473_SLING.xml,./2_25_17/ BuyingTheView_RuralCasaNiagara_192555_SLING.xml,./2_26_17/ BuyingTheView_SexyHideAwayToronto_192546_SLING.xml,./2_26_17/ LifetimeOriginalMovie_LoveByThe10thDate_188563_SLING.xml,./2_27_17/ Special_10thDateGirlsNightIn_196744_SLING.xml,./2_27_17/ Special_SniperInsideTheCrosshairs_49112_SLING.xml,./2_27_17/


Is country domain extention important for local search in Google?

I own a domain name that uses the .co extension and I'm located in France. Someone just advise me to get a .fr domain because it would make my local searches in France better.   I personally thought that Google likes brandnames and would'nt care much about extension but do you have any advice on that? Does anyone has back up numbers to back that up?


Clarification of solution for Spivak Calculus on Manifolds Problem 2-35

The question in the title is the following:  If $f : \mathbb{R}^n \to \mathbb{R}$ is differentiable and $f(0) = 0$, prove that there exist $g_i : \mathbb{R}^n \to \mathbb{R}$ such that $$f(x) = \sum_{i = 1}^{n} x_i g_{i}(x).$$   And the hint provided is the following: If $h_x(t) = f(tx)$, then $f(x) = \int_{0}^{1} h_x^{'}(t)dt.$  I followed the hint and got the result below, $$f(x) = \int_{0}^{1} \sum_{i = 1}^{n}x_i D_if(tx)dt.$$  Now I'd like to bring the sum outside due to linearity of the integral, but for that I need to show that the functions $h_i : \mathbb{R} \to \mathbb{R}$ defined by $h_i(t) = D_i f(tx)$ are integrable. How do I show this?   I know that there are differentiable real valued functions whose derivatives are not integrable, so I don't know if this result is true at all (by this I mean I think it's possible to slightly tweak such a function with non integrable derivative to get a counterexample). Am I right in thinking so? All the solutions I can find to this problem (for example, here: ) just expand the integral without considering integrability of the $h_i$s so I might be missing something basic here.  Any help is appreciated.


Every basis of a subspace has the same cardinality

I'm stuck on proving the following theorem:  "Let $B = \{u_1,u_2, . . . ,u_m\}$ and $B' = \{v_1, v_2, . . . , v_k\}$ be bases for a non-zero subspace $S$ of $\mathbb R^n$. Then $m = k$. That is, any two bases for a subspace have the same cardinality."  I have thought about doing a proof by contradiction for the statement, doing cases where $m \gt k$ and $m \lt k$. Let us assume that B and B' are bases of S. Suppose that $m \gt k$ without loss of generality, then is it true that either $B$ is linearly dependent or $B'$ does not span S? If so, how would you prove it because I've tried so many different ways and I can't seem to find on that works.  It's not enough to prove by extending or reducing any of the sets since there is the possibility that $B \cap B' = \emptyset$  Any help would be much appreciated. Thank you in advance.


an object reference is required for the non-static field, method or property

I have a listBox1 in my MainForm that I want to fill with the results from a MySQL query (results are put into 'tmpPeers'). The listBox1 keeps giving me the error above. here's the code:  internal async Task<Account> FromSchool(string school)         {             var tmpCommand = Core.Instance.Database.Connection.CreateCommand();              tmpCommand.CommandText =                 $@"SELECT `name`, `grade`, `hobbies`, FROM `accounts` WHERE `school` = '{school}';";             var tmpPeers = await tmpCommand.ExecuteReaderAsync();              if (!tmpPeers.HasRows)                 return null;          tmpPeers.Close();           MainForm.listBox1.Items.Add(tmpPeers);           return null;         }   please help! I have pretty limited coding knowledge.  I want the results from the query to fill the listBox, but right now I run it and it is empty.   EDIT: THIS IS NOT THE SAME AS THE MARKED DUPLICATE. The method in my problem is already static, yet the error still comes up. Resharper prompts me to make the field listBox1 static, but when I do i get the error "Member 'MainForm.listBox1' cannot be accessed with an instance reference; qualify it with a type name instead.


Show that for any prime numbers $p,q,r$, one has $p^2+q^2 \ne r^2$.

Not sure how to start. Prove by induction? Please help!


Is Clonezilla the best backup system for Ubuntu 12.04.5? And if so, what do I need to do to download it...ie: Do I need to partition files? If so, how to do this. Thanks.


What is the difference between "Alphabet" and "Alphabets"?

I am just having a debate with one of my friend regarding the use of the word "Alphabet". when I use the word "last alphabet" instead of "last letter of Alphabet" she told me that I used the wrong word and I have to correct my self. can anyone explain to me the difference and if I am correct or not?


What is the relationship between the risk ratio and the weight of evidence?

I've been reading about risk ratios as typical measures in clinical settings. In the finance and credit literature, there is the weight of evidence (WoE) measure that is used to encode and study variables.   Is there a relationship between them? I read somewhere that the WoE is pretty much the log of the risk ratio, if you condition things properly, but I've been unable to prove that.


excluding an internal element while slicing

So I've got a list...  a = [1,2,3,4,5]   I can produce b without 5 by saying:  b = a[:-1]   How do I produce c without 3?  c = a[:2:]?


Web colors: how to compensate for differences in monitors

This question has to do with color in the context of web pages.  Computer monitors and mobile screens can vary a lot in their color rendering, meaning that a given color on one monitor can look much different on another monitor.  For example, some greens and teals may look pleasant on one monitor but look sickly yellowish on others.  Are there certain web colors that are "safer" than others (NOT to be confused with the outdated practice of using "web-safe color palette")?  Or do you just create the web design on a calibrated monitor and know that's all you can do?


Requirement of installation of the latest LTS version

Can I use the latest LTS version of ubuntu with a celeron processor and 512 MB ram? If the answer is positive then how? I'm now using 12.04 LTS version of ubuntu..


Short story about mutant children who all have names starting with "Em"?

I read this story as a kid, and I'd like to find it again! It was a story about a group of children with physical mutations like extra eyes, missing limbs, and so on, who lived in an group so isolated from other humans that they didn't even know 'normal' people existed, until one child became sick and non-mutants were forced to intervene. It was told from third person point of view of a preteen girl and her feelings about discovering she'd be considered a monster to the rest of humanity, when the community of mutant children were very supportive of each other and she was something of a leader. The one detail I remember well was the mutants all had names beginning with an "Em", something like Emellen, Emesszie, Emaarty (those aren't the actual ones), and when the non-mutants came one of them mentioned they were actually acronyms with the Em standing for mutant (MLN becoming Emellen, Emesszie = MSZ, Emaarty = MRT and so on).   I read this in the very early 80's, so it would had to have been older than that. It was collected in a large book of science fiction stories aimed at younger readers, and I think there were illustrations at the beginning of each story - I want to say they were painted, possibly in color, and they were small and above the title, but this may be my memory playing me false. I'm afraid I don't recall any of the other stories in the volume; one of them may have been about an underwater city. I'm pretty sure all the stories had children as protagonists.


(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant).  I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the 's length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and  answers say KOMA-Script adds improvements but do not delve into details.  I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there.


So im having problems with the Scanner class in java. The console output is always the same no matter what my input is. I wanted the program to display the sum (8) when the user types "yes" and end the program when the user types "end". Instead, the program ignores my input and continues to ask for it.  public static void main(String[] args) {      Scanner sc = new Scanner(System.in);     String choose = "sdjajkk";     System.out.print("type anything:");      for (int i=0; choose!="end"; i++)     {         System.out.println(i);         choose = sc.nextLine();         System.out.println("if u typed yes then u will get sum");         if (choose=="yes")         {         int c = 3+5;         System.out.println(c);         }     } sc.close();      }   ThaT was my code^  and here is my console:   Is there a problem with including the scanner in the for loop? Or does the sc.nextLine() scanner read the wrong line? Any help would be appreciated.


Let $G$ be a group and $g \in G$. Show that $o(g)=o(xgx^{-1})$, where $o(x)$ is the order.  I've managed to show that the order of $xgx^{-1}$ is at most $o(g)$ by the following way. Denote $o(g) = n$ and $o(xgx^{-1}) = m.$ Now $(xgx^{-1})^n=xgx^{-1} \cdots xgx^{-1} = xg^nx^{-1} = xx^{-1} = e.$ But I'm not sure how to show this the other way around? Any hints would be appreciated. This doesn't seem to yet imply that the orders would equal one another.


I anticipate a lot of scepticism about my question, but I've written a short paper which identifies and corrects what I believe to be a flaw in the way an age old Newtonian problem is taught in physics. I'm not a student nor an academic, so can't use the services of an established University. So how do lay people like me get a technical paper taken seriously and reviewed by my peers ?.


Easy proof of the existence of a primitive element in a finite field

Is there an "easy" proof of the existence of a primitive element in a finite field? My book uses three lemmas and a theorem to get there, and I can't shake the feeling that there's an easier way of doing it.  I've made some attempts using proof by smallest counter-example, looking at the set of all finite fields with a certain number of elements. E.g. it's trivially true for the set of all finite fields with 2 elements, and then moving from e.g. $A_k$ to $A_{k+1}$ (where $A_k$ is the set of all finite fields with $k$ elements) you pick a field $F\in A_{k+1}$ which does not have a primitive element, and look at a subfield of it where you exclude one element. This subfield then does have this property. After that I got stuck.  Anyone know of any relatively "clean" proofs?


Where can I find the "Trap the Soul" 8th-level wizard spell?

In the Wizard spell list, under level 8, there is a spell listed as "Trap the Soul". However the spell can not be found in the subsequent spell descriptions.  Some people online are saying that the spell was folded into the "Imprisonment" spell; however, that spell is level 9 not 8, and is listed as a Warlock Spell, but not a Wizard spell.  Furthermore, the spell "imprisonment" doesn't trap any souls; it only imprisons the body of the target into either beneath the earth, chains, a prison on a demi-plane, by putting the person to sleep, or by shrinking the person to 1 inch and trapping their body in a gem.  Where can I find the spell description for "Trap the Soul"?


Can (and should) duplicate questions be automatically deleted?

Yesterday a question of mine on EL&U, , which had been closed as a duplicate,  was deleted automatically by the system.      deleted by Community♦ 10 hours ago (RemoveDeadQuestions)   The weird thing is, the post had been edited because I wanted to reopen it. As no answers had been posted, no answers were at risk of invalidation. I decided to broaden the scope of the question and for the sake of clarity, the title was changed. I also clearly defined where the original post ended and where the new edit began. Unfortunately, the question wasn't reopened, and it earned a further downvote. The score currently stands at -1 (+3 and -4)  I was prepared to edit it further because I rather liked the question, and thought it deserved a second chance but now I have to wait for three users on EL&U to cast their votes to undelete it. Well that's never going to happen, mainly because no answers were posted and the (popularity) score is low.   The  about deleted posts, states        The system will automatically delete closed, unlocked questions with zero or negative score having no positively scored or accepted answers or pending reopen votes, that were closed for any reason other than duplicate nine or more days ago and haven't been edited in the past nine days.       EDIT      It's been brought to my attention that the relevant FAQ entry that concerns my case is #9. The system is also known as the         The system will automatically delete negatively-scored, unlocked, and unanswered questions that are older than 30 days. (RemoveDeadQuestions)      First and foremost, my question was 14 months old. Second, it was closed during the entire period, so it would have been impossible for anyone to have posted an answer. Third, there is no mention above that these include closed or duplicate questions. I had always been under the impression that duplicate questions were exempt from deletion. I now know they're not, unless one or more answers have been posted or if the question has a positive score.     UPDATE (June 2019) Just to make it clear I had read the FAQ quite carefully. It was not mentioned anywhere in the aforementioned FAQ that deletion also applied to duplicates. But soon after, #9 was revised    It now reads        The system will  negatively-scored, unlocked, and unanswered questions (both open and closed, including as duplicates) that are older than 30 days. (RemoveDeadQuestions)        To recap, about 14 months ago a post of mine was closed as a duplicate. Yesterday, I edited the question  and about 12 hours later the question was automatically deleted by the system  Why did the deletion happen? In the past, I have had other questions closed as duplicates but they were (as far as I know) never deleted by the system.   I think this is a bug, am I right?    2nd UPDATE (June 2019) For users who find themselves in the same predicament, members of EL&U kindly resurrected the , it then received three answers, and it now has a positive score of +5. The question remains open to this day.


How to get IOGEAR GBU521 bluetooth dongle to work?

How do I get it to work? Dongle is plugged into usb port. Headphones in search mode. Bluetooth manager not detecting anything. IOGEAR website only shows drivers for Windows. Running Lubuntu 16.10 on a Dell Inspiron E1505. I'm a newbie to Linux.  Here's lsusb -v partial output. The full output is quite lengthy. Can post if needed.  Bus 003 Device 005: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0   Couldn't open device, some information will be missing Device Descriptor:    bLength                18   bDescriptorType         1   bcdUSB               2.00   bDeviceClass          255 Vendor Specific Class   bDeviceSubClass         1   bDeviceProtocol         1    bMaxPacketSize0        64   idVendor           0x0a5c Broadcom Corp.   idProduct          0x21e8 BCM20702A0 Bluetooth 4.0   bcdDevice            1.12   iManufacturer           1    iProduct                2    iSerial                 3    bNumConfigurations      1�


What is the argument behind: 1/(1+x) can be approximated by 1-x if x<<1 ?  I couldn't find where this approximation comes from/derived.


my minecraft is unable to show coordinates and im using windows 8 dell computer

i press F3 and it brings up everything except coordinates.Ive tried to start mine craft 1.8 but doesn't work.


Quickly swap Apple Magic Keyboard between computers?

I have a Logitech MX 80 wireless mouse that allows me to swap between my two computers quickly by just changing the source on the bottom. I am wondering if the Apple Magic Keyboard has a similar functionality? Currently, my approach is to disconnect the keyboard from bluetooth on computer 1, then turn off the keyboard, then turn it back on, then connect it to the other computer. I swap between the 2 computers really frequently, so currently this process takes up a lot of time.


Should I play Borderlands The Presequel or Tales from the Borderlands first?

I'm currently about to play both games (are bought and installed). Played BL 1 and 2. Do either one have spoilers about the other (so I could play the unspoiled one first)


How can I ensure to I am accesing the Certificates from my SmartCard and not form my personal certificate store in c#? and How can I make my RSACryptoProvider to utilize my smart card certificate private key?  thanks  Wally


Can we have the ability to retract a close vote before it closes?

Sometimes you vote to close something and the OP then changes it to fix the issue or issues. You can't take a close vote back though. It would be nice if you could.    With the new Duplicate close changes and the review queues, it's even more important to be able to remove accidental or erroneous close votes: close votes now place a banner on the question (for dupes) or put the question into a queue for other users to look over.  An easy "undo" button could save a bunch of people some time and grief for these accidental/no longer desired close votes.


How to create 3D presentational mockup templates to showcase logo design to a client?

I would like to know how to create a 3D presentational mockup template that utilizes smart objects to change dynamically for example logo design. I would like to know also tricks on how to add shadows that dynamically adjust to the content of the smart object.   Example:  http://graphicriver.net/item/stationery-branding-mockup/9186667?WT.oss_phrase=&WT.oss_rank=2&WT.z_author=MassDream&WT.ac=search_thumb   I  can't find any tutorials on how to do such a things.


Look at this screenshot why this will happen i absolute beginner in blender and use this blueprints  i want mirror other side of object not down


Hitter does not step on home plate to end game in Baseball

What happens if a game ends on extra innings and a player coming home to end the game, doesn’t step on home plate?


What does return z < 0 ? z + y : z mean?

I came across a different way of returning values and got excited. What does it mean exactly?  If I had to guess, I would say it means something along the line of...  if  z < 0, then add z and y, else return z?  int ffunction(int x, int y) {     int z = x % y;     return z < 0 ? z + y : z; }


I'm new to the whole Linux thing. I bought the computer (HP envy M6) from a pawn shop under the impression it had Windows 8 installed, with a duel boot version of Linux.   Not the case at all. It is running Kubuntu KDE Desktop.   Can't figure out where the version is. And only kubuntu.   Here's the kicker. Every time I try to do a recovery mode boot, absolutely nothing happens. Besides the system freezing up. So, sorry for going off on a little tangent there.  The reason I need to boot into recovery mode, is so I can reset the admin password, then uninstall kubuntu.   How can I resolve ?


How can I change the list of resolutions for VirtualBox (host menu)?

I have a quite big monitor and using different VMs in window mode - not full screen. In VirtualBox (6.1) I often change the resolution of the guest via the Display > Virtual Monitor 1-Menu. There's a long list (12 items) of available resolutions from 640x480 to 1920x1200. These are all common resolutions with a ratio of 4:3, 16:9 and 16:10 but most of them are irrelevant for me. So I would like to  remove unnecessary resolutions add new ones (e.g. 3:2 ratio resolutions)  I did not find any helpful advice online. Can anybody help me? Thank you in advance. Knut P.S.: I'm not talking about adding new resolutions for the guest so that may be selected in the VM graphical controller, but the outside menu from the host. I.E. my question is not answered yet!  This is a screenshot from the menu (it's in german but it should be clear, what I mean)


I have been working on a Blender project for a couple of days and I want to import another image as plane. I got to File -> Import and only see options for importing "Collada" and "Alembic". How do I get back the other import options?    If I make a new project, then all import options are there.


Camera movement issue with pitch and yaw angles

I'm trying to implement a simple first person camera using pitch and yaw angles (no quaternions, I want a simple camera for debugging purposes). An Input class processes mouse input and translate the x and y position in the window into angles. Here's the code:  #define SENSITIVITY 0.01f  void Input::ProcessMouseInput(int x, int y, Camera &camera) {     /* pitch and yaw angles */     static float pitch = 0;     static float yaw = 0;      /* initialize initial mouse position */     static int prev_x = x;     static int prev_y = y;      int offset_x = x - prev_x;     int offset_y = y - prev_y;      pitch += offset_y * SENSITIVITY;     yaw += offset_x * SENSITIVITY;      /* compute transformation matrix */     XMMATRIX pitchTransform = XMMatrixRotationX(pitch);     XMMATRIX yawTransform = XMMatrixRotationY(yaw);     XMMATRIX transform = XMMatrixMultiply(pitchTransform, yawTransform);    // fps-like       //XMMATRIX transform = XMMatrixMultiply(yawTransform, pitchTransform);  // airplane-like      /* transform camera direction - rotate camera */     XMVECTOR oldDirection = XMVectorSet(0.0, 0.0, 1.0, 1.0);     XMVECTOR newCameraDirection_ = XMVector3Transform(oldDirection, transform);     XMMATRIX oldView = XMLoadFloat4x4(&camera.GetInitialViewMatrix());     XMVECTOR det = XMMatrixDeterminant(oldView);     XMMATRIX inverse = XMMatrixInverse(&det, oldView);     XMVECTOR v = XMVector3TransformNormal(newCameraDirection_, inverse);     XMFLOAT3 newCameraDirection;     XMStoreFloat3(&newCameraDirection, v);     camera.SetDirection(newCameraDirection);      /* store current mouse position */     prev_x = x;     prev_y = y; }   What I do is I calculate the direction vector in the view space and transform it with pitch/yaw rotations. Then I tranform the resulting vector in world space coordinates and update the camera direction. All works fine if the camera space x-z plane initial position  is parallel to the world space x-z plane. If the camera is initially tilted downwards or upwards the movement is off (moving along the yaw direction causes a wobbling and the movement is incorrect).  I can't find the problem as I think the calculations are correct (but they obviously aren't).  EDIT  what I mean with odd behaviour is that when I create a camera that has starting position with a pitch wich is not zero I get mixed movements (pitch when yawing and yawing when pitching)


Gcd number theory proof: $(a^n-1,a^m-1)= a^{(m,n)}-1$

Prove that if $a>1$ then $(a^n-1,a^m-1)= a^{(m,n)}-1$  where $(a,b) = \gcd(a,b)$  I've seen one proof using the Euclidean algorithm, but I didn't fully understand it because it wasn't very well written. I was thinking something along the lines of have $d= a^{(m,n)} - 1$ and then showing  $d|a^m-1$ and $d|a^n-1$ and then if $c|a^m-1$ and $c|a^n-1$, then $c\le d$.   I don't really know how to show this though...  I can't seem to be able to get $d* \mathbb{K} = a^m-1$.  Any help would be beautiful!


Show that if $a \neq b$ and a and b are positive then $\frac{a}{b}+\frac{b}{a}$ is never an integer

Some observations I made is for $\frac{a}{b}+\frac{b}{a}$, is either:   the denominator has to be one, the numerator has to be a multiple of the denominator or  the numerator and denominator have to be the same.    Obviously, with the given conditions case 3 is eliminated since  $a \neq b$.  For case 1, if $b=1$, then $a=1$ which is a contradiction to the given condition that says $a \neq b$.  For case 2, I would think of examples. For example if $b=2$ then a multiple is $4$, so $a=4$. Then we have:  $$\frac{a}{b}+\frac{b}{a}=\frac{4}{2}+\frac{2}{4}=\frac{10}{4}$$  which is not an integer, but how would i proceed to show this case for all integers.


ggmap: create circle symbol where radius represents distance (miles or km)

I am trying to add a circle around a given latitude and longitude point where the circle size (radius) reflects distance in miles or km.  I managed to come up with this example using ggmap, where I can add a circle. but what do I need to do to have it represent distance. I would ultimately like the bounds of the circle to represent 20 miles from the center.  Code below:  library(ggmap) library(ggplot2)  d <- data.frame(lat=c(33.79245),                 lon=c(-84.32130))  emory <- get_map("Atlanta,Georgia", zoom=12)  p <- ggmap(emory) p <- p + geom_point(data=d, aes(x=lon, y=lat),                     color="red", size=20, alpha=0.5) p


According to : "We like the little aliens."  This seems well targeted to appeal to the Stack Overflow / Server Fault / Super User audience, but way off the mark if the goal is to "make the Internet a better place to get expert answers to your questions."    There are experts who aren't interested in or focused on technology oriented topics.  Little aliens are unlikely to be something that someone interested in organizing a site on gardening would gravitate too.  No, I'm not suggesting that no one interested in gardening would be bother to look at a site with little aliens, but won't it be likely that the sort of mass appeal to to a very broad cross section of the internet will be lacking?


what's the meanning of a executable directory in linux?

I know, for a file, a executable permission means this file can be load and run as a process.  but what does mean a executable directory ? (set x for a directory in file permission)


I just got a new Yosemite HD. I am trying to get a page count on my pages documents. The directions say to go to the box in upper left corner, select 'word count' and select 'page count' on the pull down menu but all I ever see is '425 word count' on any document. No pull down menu and beyond changing to 'show' or 'hide' nothing else happens. Thanks for any help given.


Handwriting font that at random picks characters?

First, I don't know much about creating fonts.  I work with a childrens book author and want to create a font from her handwriting. This means that I have to have more then one character per letter and use them at random.  I've found ways of creating a font from your handwriting (googled) – but not that has this capability. Anyone with ideas??  Thanks!


Highlight/color a part of text in block in beamer

I am using beamer in Latex to make a presentation. I use a block for definition like:   \begin{block}{P1}  \justifying   Some text here  \end{block}   Let us say I wish to highlight a word "Some". By highlight, I mean something like which is performed by \hl{text}. However, hl does not work in a block in latex. So what should I do, if I want to highlight  text in block in beamer.   I don't want to change the color of text but I want to highlight it as shown in attached image. alert changes the text color. hl does not work in a block. So how should I do it?


My compiler says that this field is not writeable:     Field is not writeable: CAM_Members__c.Affiliate_State__c   I have this class  static testMethod void AffliateTest(){      SS_Data__c ns = new SS_Data__c();     SS.Name = 'test SS';     insert ss;      Account a = new Account();    a.name = 'Test Account Affliate';    a.BillingState = 'WA';    insert a;     contact c = new contact();    c.lastname = 'Test';    insert c;      Relationship__c rc  = new Relationship__c();    rc.Account__c = a.id;    rc.Contact__c = c.id;    rc.Start_Date__c = system.today();     insert rc;      CAM_Members__c mem = new CAM_Members__c();    mem.Name = 'test VM';    mem.SS_Data__c = ss.Id;    mem.Member_Name__c = '0034000001TTfQW';    mem.Member_ID__c = '9999';    mem.Relationship__c = rc.Id;    insert mem;      CAM_Members__c insertedRecord = [     SELECT Affiliate_State__c FROM CAM_Members__c WHERE Id = :mem.Id     ];    system.assertEquals(a.BillingState, insertedRecord.Affiliate_State__c, 'WA');   }   The field has this formula:  Relationship__r.Account__r.BillingState   What am I doing wrong? How can I fix it? My Problem now is it has no coverage  try the above Affliate State = WA wherein it should be covered but not working


How to find the coefficient of $x^2$ in the polynomial $$(1-x)(1+2x)(1-3x)....(1+14x)(1-15x)$$  Is there any particular way to look at such problems?


Is it possible to set a DNS record to redirect all example.com/* traffic to www.example.com/*?  I'm running a  app on Heroku's .  I set up , and the documentation discusses . I also read about how to do this with . However, I'm wondering if there's a way to do this via DNS, i.e., without hitting my app.


Find n such that $n^5 - n$ is divisible by $120$. (*Here $n$ belongs to the natural number set)  Seems a trivial problem, but the answer mentioned in the text book seemed incomplete to me so I'm here just to ensure whether approach to this problem is correct or not.  So my approach is as follows: We know that $n^5 - n$ can be written as $n^5-n = n(n-1)(n+1)(n^2 + 1)$  Now since it's product of three consecutive natural numbers so it's divisible by $3! = 6$. Now using Fermat's Little theorem we can prove that $n^5= n \mod5$ hence $n^5 - n$ is divisible by $5$ as well. So $n^5 - n$ is divisible by $30$. Now to ensure their is another factor of $4$ in the term we need to ensure that $n^5 - n$ is divisible by $8$. I found that all odd natural numbers and multiples of $8$ makes $n^5 - n$ divisible by $8$, hence $n^5 - n$ is divisible by $120$. But in the text book they have only mentioned odd natural numbers as answer, which seemed incomplete to me.  Thanking everyone in advance:P


Why are unregistered users not allowed to post questions on some sites?

I know this isn't a big deal for me but why do guests get to post answers but not post questions?


First post audit test using the answer of a 4 year old user with over 150k reputation

Well this isn't at all believable as a first post.   Going by the comments,  did in fact write that answer, but this was no way his first post.  I'm not sure if this is a bug on some pre-existing code to prevent users like duffymo being used in first post audit tests or if this is simply something which isn't in place at all.  If it is a bug: hey, this is a bug report!  If it isn't: maybe something should be put in place to prevent old users being used in first post reviews like this.


I need to export the colored face groups below as vectors so that I can import them into photoshop.  My first approach was to use different colored shadeless materials which I could then turn into selections inside photoshop but it is not an accurate method, I have to have the vectors rendered inside photoshop.


I want to create a table like the picture below, and i wish to itemize the lamba_1 > lamba_2 > 0 using 'item style', which is the cell of each categories. Can someone help me?


Image of the union is the union of the images

$$ f\left(\bigcup\limits_{\lambda \in \wedge} A_{\lambda}\right) = \bigcup\limits_{\lambda \in \wedge} f(A_\lambda)$$  Let $b \in f(\bigcup\limits_{\lambda \in \wedge} A_{\lambda})$ $\rightarrow b=f(a)$ for some $a \in (\bigcup\limits_{\lambda \in \wedge} A_{\lambda})$.  Since $a \in (\bigcup\limits_{\lambda \in \wedge} A_{\lambda}) \rightarrow a \in A_{\lambda}$ for some $\lambda \in \wedge$.  Since $b=f(a)$, then $b \in f(A_{\lambda})$ for some $\lambda \in \wedge$.  $\rightarrow b \in \bigcup\limits_{\lambda \in \wedge} f(A_\lambda)$ $\rightarrow f(\bigcup\limits_{\lambda \in \wedge} A_{\lambda}) \subset \bigcup\limits_{\lambda \in \wedge} f(A_\lambda)$.  I used a similar argument to prove $\bigcup\limits_{\lambda \in \wedge} f(A_\lambda) \subset f(\bigcup\limits_{\lambda \in \wedge} A_{\lambda})$.  Which shows $ f(\bigcup\limits_{\lambda \in \wedge} A_{\lambda}) = \bigcup\limits_{\lambda \in \wedge} f(A_\lambda)$.  Please let me know if this is valid.


So I have declared as PS1="\[\W \u\e[0;31m\] ❤ \e[0m\] " in my ~/.profile file. At the start my terminal look like this ~ mihkel ❤ - what is the desired output. But when I'm going back in historly with up arrow it collapses in : ~ mihll should show ~ mihkel ❤ ll I've tried few other versions - of PS1 without spaces etc - but still something like this happens.  Anyone know what's the issue?


This is the bicycle that I own:     My problem is that the handlebars have become loose right right where that red bolt is located. There is an identical bolt on the other side. I have tried adjusting them but they won't budge.   Does anybody know what these kind of handlebars are called and how they can be adjusted?


$z^4 + 1 =0$, looking at a relatively similar question I concluded that the next step is to factorise into $(z^2 + i) (z^2 - i) = 0$. However, I'm not sure what the next step should be? Do i continue to factorise?


Regarding proving a result in Banach space

I am solving tutorials of an institution which I am not a student as our faculty doesn't gives any.  Please give me some hint in solution of this problem.  Problem is - let X be a normed linear space.  Prove that X is a Banach space iff $\,\{ x: \|x\| = 1 \}\,$ is complete.


Counter part for snipping tool in Ubuntu 16.04

Can you please tell me the screenshot tool in Ubuntu 16.04 which could be as similar as Snipping tool in Windows.


How do I set up a driver to drive a node value with a node group input?

I'm having trouble figuring out how to link one value to another via a driver. Here's what I'm trying to do:    I'm making my own node group and I want to bypass having to tab into the group to change the value of XYZ rotation, but for reasons unknown to me I can't just connect the X rotation to my x_rotation value via a driver. This is the driver set up on the X rotation:    Is it just a matter of an incorrect path or am I doing something entirely wrong? Is there a different way to accomplish what I want?


Selected line's contents aren't readable in GEdit while using dark theme on Ubuntu 20.04

I am unable to see what I type in the Gedit editor using dark theme.  This is due to the default setting of highlighting the current line.


why the variable word having value = "RAINBOW" is not equal to "RAINBOW"

I don't know what is wrong in this code but 2 equal things are not equal I have taken inputs as character and then converted them to a string and then compared that string with "RAINBOW" but even if I put 'R', 'A', 'I', 'N', 'B', 'O', 'W' the two strings doesn't match and give false. import java.util.Scanner; public class Character {          public static void main(String[] args) {               // TODO Auto-generated method stub               Scanner sc=new Scanner(System.in);              char[] arr=new char[7];               System.out.println("Enter first no:");                 arr[0]=sc.nextLine().charAt(0);               System.out.println("Enter second no:");              arr[1]=sc.nextLine().charAt(0);               System.out.println("Enter third no:");               arr[2]=sc.nextLine().charAt(0);               System.out.println("Enter fourth no:");                 arr[3]=sc.nextLine().charAt(0);                System.out.println("Enter fifth no:");                 arr[4]=sc.nextLine().charAt(0);                System.out.println("Enter sixth no:");                 arr[5]=sc.nextLine().charAt(0);                  System.out.println("Enter seventh no:");                  arr[6]=sc.nextLine().charAt(0);                         String word=String.valueOf(arr);                   System.out.println(word=="RAINBOW");      }  }


error message when loading into minecraft java servers. "failed to login:authentification servers are currently down for maitanance."

I have logged in on a different computer and it works fine, however on my personal computer it shows the message above. My account is new, is it something to do with registering the device to the account? Also, I believe it could be my firewall? How should I open the correct ports? Also, do I need to allow edge traversal? ps I am running windows 10 and java edition


Suppose a and b are elements of group G and both a and b have finite order. How do I show if $ab = ba$, $gcd(|a|, |b|)= 1 \implies |ab| = |a||b|$


How to comment on a question on another Stack Exchange site I newly joined?

I'm new to the area this question was posted in, and I don't have a "correct" answer to hand, but I want to get them a clue as to why the question is not perhaps the right rabbithole, and namely that webdriver uses a different mechanism for handling browser "alerts" or as the OP seems to hint pop-ups. How do I leave a comment if I only have not enough rep in this link below? . I'd hate to give a partial answer like I am hinting at above, am I breaking the rules if I leave a half-answer? It just feels better than nothing, and I don't know when next I will pass this way again. Curiously I'm unable to even upvote these helpful comments below, which people have notably left as a comment not an answer, which I'm not allowed to leave on other people's posts confusingly.  is a 5 year old post, I know about it, and I am actually more interested in how does a person who is not an expert go about gaining 50 points when everyone is happy to give my -3 points just for asking. Yes, I know this is a duplicate question, but as I just pointed out, I'm unable to participate in that 5 year old question about this problem. I'm not a very fast typist, how do I gain 50 points? Or should I provide a half-answer and hope I get an upvote? Is that what people are telling me? Seems, the way to get points, is to answer a question quickly, and keep editing your answer and improving the answer so that you get in there first. Learn the markup language to make your answer easier to read. And then hope the poster comes back and give you a vote later on. Although I miss-trust systems with badges and ranks, this is the best way to help and be helped.


I just changed my storage plan for 50 GB for $0.99 per month. When i went on settings>General>Storage and icloud usage, where it said storage above it i didnt have more storage. But the second box, where it said icloud abov it had upgraded to 50 GB. But i dont have any more storage for me to be able to get more apps etc.


Area between $y = 5+x-x^2$ and $y = x+4$

I have the following 2 equations and I have drawn their graphs.  $$\begin{cases}y=5+x-x^2\\ y=x+4\end{cases}$$  I have found intercepts as well.   The question is asking to find area between these 2 curves. I am not sure if I should take as a whole triangle?


Can't apply jquery to html created with js

at the moment I try to apply some jquery to html elements I created before with js. But it doesn't work.  This code works, so the reason can't be that I forgot something to import:    $(document).ready(function(){     $(".test").click(function(){         $(this).css("border", "5px solid #000");     }); }); .test{   width:100px;   height:100px;   background-color:red; }

     But if I try the same on html I creat with js nothing happens:    document.getElementById('files').addEventListener('change', handleFileSelect, false);    function handleFileSelect(evt) {     var files = evt.target.files;      // Loop through the FileList and render image files as thumbnails.     for (var i = 0, f; f = files[i]; i++) {        // Only process image files.       if (!f.type.match('image.*')) {         continue;       }        var reader = new FileReader();        // Closure to capture the file information.       reader.onload = (function(theFile) {         return function(e) {           // Render thumbnail.           var span = document.createElement('span');           span.innerHTML =            [             ''           ].join('');                      document.getElementById('list').insertBefore(span, null);         };       })(f);        // Read in the image file as a data URL.       reader.readAsDataURL(f);     }   }  $(document).ready(function(){     $("img").on("click", function(){     $(this).css("border", "5px solid #000"); });}); //$(document).ready(function(){ //    $("img").click(function(){ //        $(this).css("border", "5px solid #000"); //    }); }); img{   height: 75px;   border: 1px solid #000;   margin: 5px; }  <form id='test-form'>   <input type="file" id="files" name='input1' multiple/>
   <output id="list"></output>
 </form>     I thought maybe the function .on() can help me but it doesn't work either.  But "Event handlers attached using the on() method will work for both current and FUTURE elements (like a new element created by a script)" is from , even if this is not the best reference.  So what do I wrong, and where is my mistake? I tried to apply classes and and did some other stuff to get it working, but nothing solved my problem.  Probalby its because the created new element in my opinion. Any hints and improvements are very welcome, thank you.


Why can't player characters in Resident Evil become infected with the T-Virus?

Is there an in-universe explanation as to why none of the playable characters in the Resident Evil games (except for those in Outbreak) become infected with the T-Virus?  Seems like a massive oversight by the developers.


Ring with maximal ideal not containing a specific expression

Main question : May there exist an integral domain $R$, with fraction field $K$, that fulfills the following condition: there exists $x\in K$, $x\not \in R$ and a maximal ideal $\frak m$ of $R[x]$, such that $\frak m$ does not contain $x-a$ for any $a\in R$,  [EDIT1 : and $R\cap \mathfrak m$ is maximal in $R$] ?  [EDIT4:] Such an example, if it exists, can not be found if $R$ is a  Dedekind ring, because the residue field of every place of $K={\rm quot}(R)$ is of the form $R/\mathfrak P$ for some maximal ideal $\mathfrak P$ of $R$ (this may be clearer after reading the next observations).   Motivation : I am trying to prove a difficult result (at least for me). A way to obtain it would be to show that if $\varphi$ is an epimorphism of an integral domain $R$ into a field $F$, and if $\tilde\varphi$ is a place of the fraction field of $R$, with residual field $\tilde F$ algebraic over $F$, then $\tilde F = F$. I have some doubts that such a miracle does occur; but this problem is not found in the literature. Now, if the answer of the asked question is negative, then we are done, taking the restriction of $\tilde\varphi$ to $R[x]$ in the (allegedly) absurd supposition that such an extension of $\varphi$ exist.  [EDIT2:] Conversely, if the answer of the question is positive, then every place $\varphi$ that extends the canonical epimorphism $R[x]\to F'=R[x]/\mathfrak m $ to $K$ extends the canonical epimorphism $R\to F = R/(R\cap \mathfrak m)$ to $K$; furthermore, $\varphi(x)$ is algebraic over $F$ (since $F[\varphi(x)]= F[x+\mathfrak m]$ is a field), but $\varphi(x) \not\in F$ (else $R[x]/{\mathfrak m} = F$, hence $x \in  a+\mathfrak m$ for some $a\in R$). So this is a counter example.      [EDIT3:] It is important to suppose that the residual field $\tilde F$ of $\varphi$ is algebraic over $F$, else it is not difficult to produce counter-examples. For example, take $R={\mathbb Q}[X,Y]$, and define the valuation $v$ of a polynomial $P(X,Y)$ to be the minimal "$\alpha$-degree" of the monomes in $P$, where the $\alpha$-degree of $X^iY^j$ is $i+\alpha j$, for some $\alpha > 0$. Then $v$ extends naturally to a valuation of $K={\mathbb Q}(X,Y)$, whose residual field can be shown to be ${\mathbb Q}(t)$ for some variable $t$. So, the place $\tilde \varphi$ corresponding to $v$ would be a counter example for the epimorphisme $\varphi: R\to \mathbb Q$ such that $\varphi(X)=\varphi(Y) = 0$.       N.B: This question is not a duplicate of a somewhat related (but very different) question posted in


Can I tell the difference between windows desktop and server in C#

I need to know if my program is running on a windows Server or a users desktop. I have tried Environment.OSVersion but the issue there is that Windows 8 and Windows Server 2012 share a version and build number.


Licensing multiple local Window guest VMs

I have a client who needs their users to run multiple local Windows virtual machines on their laptops. Some users have 3-5 VMs, while others have 10+. I'm aware of the following two routes for licensing guest (desktop) operating systems:   Purchase a retail/FPP license for each VM. Purchase Software Assurance for the host, and leverage the virtualization rights.   The second option works well for up to 4 (well, technically 3) VMs, but beyond that, are there any options aside from simply purchasing retail licenses for the remaining VMs?    I've considering working around this by purchasing a second Windows license for each host and then purchasing software assurance for that license, thus giving an additional 4 VMs via virtualization rights. From the Microsoft perspective, this is no different than if each employee simply had another laptop. Is this a valid strategy?  For context, VDI-like solutions are off the table here, as the users in question are frequently in remote locations with limited internet connectivity. They're also regularly remoting to other systems within those VMs, and I don't want to introduce another hop of latency into that equation.  Also for context, these VMs are, by Microsoft definition, production systems. Any solution involving MSDN or "developer" licenses isn't going to work here.