I am trying to poulate the database GroupNames in my dropdown using servlets. How to do it? Please help  In my jsp file am having  :    <% ArrayList<String> list1 = (ArrayList<String>)request.getAttribute("res1");  %> <select name="GName" > <%     for(String list:list1)   { %> <option><%=list%></option>  <% }  %>     In my servlet i fetched all the database names in an arraylist like this :      ArrayList<String> list = new ArrayList<String>();             out.println("HI GROUP MEMBER");             String query="Select GNAME from tbGroup";             ps = con.prepareStatement(query);             rs=ps.executeQuery();             while(rs.next()){                 list.add(rs.getString("GNAME"));               }             String[] arr1 = list.toArray(new String[list.size()]);             request.setAttribute("res1",arr1);              int i;             for(i=0;i<list.size();i++){                 out.println(arr1[i]);             }   Now am getting null pointer exception in it.Please help what can be the reason for it ?  Here is complete error :    Stacktrace:] with root cause java.lang.NullPointerException at org.apache.jsp.GroupLoginScreen_jsp._jspService(GroupLoginScreen_jsp.java:91) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


So I have an alias that I use for performing updates that cleans up old kernels and stuff. Problem is that it doesn't notify me immediately if a reboot is required afterwards. What can I use to figure this out so that I can at least print a message to the screen?  alias update='sudo apt-get update;sudo apt-get dist-upgrade;sudo apt autoremove;'

When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red).  How can I check, from the command line, whether an Ubuntu server requires a reboot?  I could grep for 'System restart required' in /etc/motd, but I'd like a solution that's more elegant.  Also, I want a solution that works in older releases, e.g. Hardy (8.04 LTS).


I'm just switched back to Ubuntu, from Windows. I had a program in Windows (Fiddler) which captured all outgoing traffic and could edit their header to use proxy.  Are there any way to force all of my outgoing traffic to use proxy?  If I have edited  /etc/apt/apt.conf    it does not work.  Someone proposed to use the system proxy settings. That panel edits this file, but not even capable to use the proxy authentication.  Most of my program uses the proxy, but not all.  I tried also to run it from terminal and before running it I set up this:  tpeti@TLabs-MSI:~$ export http_porxy="http://username:password@ip:port" tpeti@TLabs-MSI:~$ export https_porxy="https://username:password@ip:port"   But this didn't worked also.  Are there any way to force all programs to use proxy, or edit all the outgoing traffic headers to go through the proxy?  And can I do it, with just specific programs too?  Thanks for your help!

I cannot find the proxy settings anywhere. Do I have to set it through terminal, through gconftools or is there some GUI present for it?


I have an overstay with a VWP of 333 days, I had to leave the US in January 2018 but stayed until December 2018 to take care of an American citizen who has no family. I have a 3 year ban. So I had to apply for a B2 visa, I have already done this twice and both have been refused. The woman at the embassy told me that I cannot get a visa as long as the 3-year ban lasts, only after those 3 years  I can apply for a visa and a waiver. Is this true? Can I ask a waiver before I apply for a visa or do i have to wait until i have the B2? And which waiver should I ask?

I'm Italian and I wanted to return to the U.S. to meet some friends. The problem is that in 2011 I overstayed my visa by 4 months (so 90 days of regular visa waiver plus 4 months more for health problems). I read that this put me into a 3-year ban.  Now it's 2015 and in March I went to apply for a B2 visa (ESTA was denied), but they refused to give me a visa because I didn't have enough ties in my home country. I took all the proofs so I believe that the denial was actually for the overstay.  I want to reschedule another appointment this month, but I wanted to know if anyone has re-entered the U.S. after an overstay, or if anyone got a B2 visa after an overstay.


This seems a no-brainer: Remove voting buttons for logged-on user's posts.  If there were no buttons on my posts, there wouldn't be a need for the "You can't vote for your own post" message, because it would be impossible to vote for your own post.    The way it currently stands is actually nonsensical, because you can vote for your own post - there's a button right there and I can click it - but when I vote for my post I get an error message.  Put another way, there's an active control presented to the user that will always and can only produce an error. I'm not a UX design expert, but that doesn't sound like good design to me.    Notwithstanding a backend check to prevent malicious calls.

Currently, the system makes you think you can upvote/downvote your own question/answer but then you get notified that you can't. Why have the up/down vote buttons there then?   In general, if some operation is not allowed, then don't put UI for that up or make it disabled so it is apparently disabled - no post operation error panels please?  ps: hope this is not a dupe, but if so, just comment it and I will remove  (+a joke: a user notification panel message: I deleted this file. Is this a problem? Yes/No.)


class SoftDeleteMixin(object):     deleted_at = Column(DateTime)     deleted = Column(types.SoftDeleteInteger, default=0)      def soft_delete(self, session):         """Mark this object as deleted."""         self.deleted = self.id         self.deleted_at = timeutils.utcnow()         self.save(session=session)  In class SoftDeleteMixin method soft_delete, it references nonexistent self.id and self.save. Why can it do that in python? Note: the focus is the class can reference nonexistent variable and method, not that it is a Mixin class.

In "", Mark Lutz mentions "mixins". I'm from a C/C++/C# background and I have not heard the term before. What is a mixin?   Reading between the lines of  (which I've linked to because it's quite long), I'm presuming it's a case of using multiple inheritance to extend a class as opposed to 'proper' subclassing. Is this right?   Why would I want to do that rather than put the new functionality into a subclass? For that matter, why would a mixin/multiple inheritance approach be better than using composition?  What separates a mixin from multiple inheritance? Is it just a matter of semantics?


I have an Olympus E-PL2 and am taking photos in raw.  I have the codec downloaded from Olympus, so I can view the photo with Picasa in Windows, and it looks fine but a few seconds after loading the image, it goes and does something in which it looks like it desaturates the whole photo.  What is going on?  I know there are many posts asking 'what is a good raw viewer' but I'm looking more for a solution for Picasa if possible since I use it for all my photo management.

Everybody who is using Lightroom probably has seen this. After importing RAW files, Lightroom shows a preview, but contrast and color of the preview change after a few short seconds to a slightly different view.  For some users the change is small, for others the change is huge. Colors are different (read: wrong), contrast is off.  Rumor says this is happening only (more?) for Nikon users.  What is Lightroom doing here?  I'd guess that for the first preview, LR is showing the JPG preview file, which is embedded in the RAW file. Then after a moment, LR renders the RAW file itself to show it's own interpretation.  But why is this interpretation so different from the embedded JPG?


I have a ReadyNAS 104 with a two disks already installed. I have a third disk I want to add to it but the disk has been formatted for Windows. ReadyNAS has a process for re- (un-) formatting disks so that it can use them but it looks awkward. I would like to know if there is a simple way I can return the formatted disk to its original unformatted-straight-out-of-box state using an external usb enclosure connected to a Windows 10 PC?

I have an extra hard drive that I used to run Windows on before something technical went bad in the computer. The hard drive itself still works fine, however and I have attached it via SATA to my main computer and have gotten all of the files that I want off of it. I would like to clean it to just use for storage on my server. I am not really worried about safety, so I don't need anything like DBaN. What is the best way to clean all of the files off of it?


I can't think of a ring without unity that has a subring with unity. There must be some element in the parent ring that doesn't work with the subring's identity, but I'm struggling to see how that would be possible. Any suggestions?

I know it does not make sense that if a subring of a ring $R$ is commutative, then $R$ is also commutative. (For example, the set consisting of the matrices whose all entries except (1,1)-entry are zero, is a subring of ring of 2x2 real matrices.)  I also considered the case of a ring containing a subring with identity, but I had no ideas. Maybe it seems that it does not make sense, either.  Who give me some examples supporting my guess?


I'm trying to reset my password to my Google Account.   I do not have the same phone number to get the reset verification code.   What to do now?

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


I have tested followed by this : Created the jar file and "right click" it, one new window opened than click "properties " menu than click the"change" button  to choose the program you want to use to open this file as  java installed directory path and double click it,run correctly.  1.Any other than this way to convert Java source file as(.java) or a class file (.class),need to use any third party jar file?   how can I convert it to a .exe file?   Thanks in advance for your reply...!

If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?  I also need an installer for my program.


Let $X$ be a normal topological space. If $A \subset X$ is closed and $G_{\delta}$, then there exists a continuous function $f:X \to [0,1]$ such that $f(x) =0$ if $x \in A$ and $f(x) \neq 0$ if $x \notin A$.    I tried to use Urysohn's lemma and Tietze extension theorem, but I had no success.

Let $A$ be closed in $X$ , where $X$ is a normal space, and $A$ is also a countable intersection of open sets. Prove that there exist a continuous function such that $$ \eqalign{   & f\left( x \right) = 0\,\,\text{ if }\,x\, \in A  \cr    & f\left( x \right) > 0\,\,\text{ if }\,x \notin A \cr}  $$ EDITED: I mean intersection, sorry


I need to prove: $a$ is a square in $\mathbb{Z}$ iff $a\mod p$ is a square in $\mathbb{F_p}$ for every $p$ prime. First side ($\rightarrow$) is trivial and is derived directly from multiplicativity of modulo. Now I need to prove the other side ($\leftarrow$). I tried taking $p>a$ so $a\equiv a\mod p$, and I know that $a$ is a square so there exists $b<p$ s.t $\space$$b^2\mod p \equiv a$. But, $b$ is not necessarily the root of $a$ in $\mathbb{Z}$, so I'm stuck. I also know that for each $p$, $(\frac{a}{p})=1$ but this doesn't get me anywhere. Any hint would help.

I have not been able to solve this problem. Any insights would be appreciated!   Let $x, n > 1$ be integers. Suppose that for each $k > 1$ there exists an integer $a_{k}$ such that $x − a_k^n$ is divisible by $k$. Prove that $x = A^{n}$ for some integer $A$.


I am currently taking an engineering course in statics and my teacher is insisting that an off-center force will NOT cause a free object to rotate. This goes completely against my intuition. Here is the problem we are working on:    My intuition tells me that if there were no supports that the cylinder would rotate, and therefore the friction forces on the FBD would look like this:    However, my teacher says that it would not spin if there were no supports, and therefore the friction forces would look like this:    I'm not really concerned about this particular problem, but the possibility that I have totally misunderstood this physics concept is very concerning to me. I have already looked on this forum for similar questions, and they all seem to say that a free object will rotate if a force is applied off-center to it. However, my statics professor is an very intelligent PhD, and I hesitate to disagree with her. Any help is very appreciated!

Assume there is a rigid body in deep space with mass $m$ and moment of inertia $I$. A force that varies with time, $F(t)$, is applied to the body off-center at a distance $r$ from its center of mass. How do I calculate the instantaneous acceleration, rotational acceleration, and trajectory of this object, assuming it starts from rest?


I can buy a  from Walmart for less than $13, or I can buy a different brand from a photo store in the range of $60 to up over a $100. Instinct tells me that the Vivitar filter will not be as good, but why? Does it have to do with coating or is there another reason? Why should I avoid using the Vivitar brand filter? They seem like a reputable company, no?

It was suggested that I should get myself a polarizer filter to get over my reflection problem. (  )  I found out that a Nikon 52mm Circular Polarizing Filter CPL   while I can get another filter for less than half the price — . (Please note that I know nothing about these filters and googled them just for the example.)  What is the difference between polarizer filters?  I need to remove the glare and nothing else — would either of the two do the magic for me? What filter do you recommend for me?


This is may seem as a duplicate but I want to get this straight. I am sending some requests to the Stack Exchange API for a project I am running. But after testing it I get this response:  {'error_id': 502, 'error_message': 'too many requests from this IP, more  requests available in 80281 seconds', 'error_name': 'throttle_violation'}   So I have a couple of questions:   I signed up for a key and the Stack Exchange API gave me a key but I am not using it anywhere. If I am making queries that do not include my key, why am I getting one? Or I am supposed to use it and I don't? Is there a way I can override this? Or I just have to wait?

I am trying to fetch API data from:       But I am getting the error:     {error_id: 502, error_message: "too many requests from this IP, more   requests available in 24527 seconds", error_name:   "throttle_violation"}   I saw this answer:     But, I'm not able to understand how to set backoff to 10. Do we have to edit it?  Is there some way to resolve this issue?


I'm working with an imbalanced binary classifier data set (3% positive) in sklearn. The cost of a false negative is extremely high so recall is much more important than precision.  To baseline my model I tuned:   Random Forest depth, minsplitsize & numberFeatures using Average Precision (Area under Precision Recall curve) 5foldCV train on 70% of data, 30% are withheld for test.   Balanced class weights are used to help with class imbalance.   On my test data I get good overall performance but too many false negatives, as a result I lowered my decision threshold until I had near 0 false negatives.  The other approach I was considering was to tune using the FBeta Statistic (Beta = 4) to favor recall over precision upfront with less adjustment to decision threshold thereafter.  1) Of the 2 approaches is one more correct for dealing with False Negatives?  2) In general is it bad to tune a binary classifier on a given metric and then move the decision threshold materially away from 0.5?

This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure?


Is it possible to preview a vCard (placed online, as a file or QR code), the same way it's done for NFC?  How it works for NFC:   Firefox just saves vCard silently, without asking any questions. Trying to open it with contacts asks where to import it.

so someone tells me i need to call a few people.  they send me a vCard called contacts.vcf.  i import it.  i open my phone app and start to dial, but wait...i don't know their names.  How do i look up a recent vCard on my phone?  How do i know who's contact i've been sent?  when i navigate to a .vcf file, i can't open it.  all i can do is import it.  polaris office won't import/open it.  is there an android txt editor i can use to peruse a vCard?  yours truly, Confused by vCards Note 3, kit kat


How vacuum could have electromagnetism Permeability when there is no molecule in it.  (Permeability  of other medium get describe with effect of their polar or magnetic molecule)

I've been reading in Khan academy about the formula for calculating magnetic field lines (Ampere's law). Some materials have the ability to concentrate magnetic fields, which is described by those materials having higher permeability. The permeability of vacuum is $4\pi *10^-7$ , which means it can concentrate magnetic field lines. But how can nothing—no matter, energy, or force—influence or manipulate the waves passing through it (practically  through nothingness). I mean why is the permeability not 0? (This just comes out of the rigid intuition that vacuum does nothing to anything because it is nothing—ignoring the particle-antiparticle pairs or similar very distant stuff.)  As can be seen from the fuzziness of the question, I'm learning physics (not an expert) and any theoretical answer is okay but answers involving complex math like calculus or differentials are unwelcome but if it needs to be used let me be informed.


When I run the *.jar file my Ubuntu pops up an error message with      The file /... is not marked as executable.  If this was downloaded or copied from an untrusted source, it may be dangerous to run.   Though when I right clicked the *.jar file and got to its Properties > Open With, the Default Application to open this kind of file was already set to OpenJDK Java 7 Runtime.  What is wrong here?

I've downloaded the .jar file for Minecraft, and I installed OpenJDK 6 from the software center, and I tried with 7 as well, but it keeps throwing the message "The file '/home/hunter/Downloads/minecraft.jar' is not marked as executable.  If this was downloaded or copied from an untrusted source, it may be dangerous to run.  For more details, read about the executable bit." However, when I go into the properties to mark it as executable, as many people say to do, the box is not there.


I am building a tree traversal in vue.js. When I click on parent checkbox, it will check all child checkbox. This is work fine for in jquery, but is this possible to construct only with javascript ?  My jquery code is :   $(".clickevent").click(function() {     $(this).closest('ul').hide();     $(this).parent().children().toggle();     $(this).toggle(); });   This works fine for me, but I need to know whether is this possible in vue.js without jquery ? If this possible, how to do this ?  Update :   My HTML Code is here :

Parent1

child1

child2

child3

child4

I have an HTML page with multiple checkboxes.  I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?


I have installed Ubuntu just 3 hours ago and have alloted two other partitions that is swap area and ext 4. I am able to find the partitions but there has been created another partition named as Disk 0 partition 6 and alongside there is written Healthy(Recovery Partition) Can I delete that partition or if I do not delete it will occupy more space in the disk ? Here is a image of that partition the highlighted one is the partition please tell can I delete it or is there any harm if it is on my Disk ?

I have Windows 7 on my HP laptop and I want to install Ubuntu.  I tried to shrink my boot and system partition, it does not allow me to shrink the partition more than 97 MB. Is it necessary to delete the recovery partition?   I want to know how to put this recovery on a CD or DVD to keep it and not to lose it.


If I were to roll a die, what would be the probability of getting $2$? Certainly it would be $\dfrac 16$ (because there are $6$ numbers and sample space contains 6 numbers)  But I think we can look at it another way.  We need $2$ right? and from $1-6$ there is only one number which is $2$ i.e. $2$. If I were to roll there would essentially be two types of numbers ie. one which is $2$ and one which is not ie $1,3,4,5,6$. So there are two basic outcomes. P(E) = number $2$÷total outcomes ie $2$. P(E)= $\dfrac 12$ So why is the probability $\dfrac 16$(when it is clear that the outcome we desire, can either happen or not happen.) Shouldn't the probability be $\dfrac 12$ instead, why not?

Ok, I know this is wrong, but I want someone to tell me why.   Let's take a normal heads tails example of a fair coin. The probability of getting head = 1/2. And I write this is because, either it will be heads, or not. Hence two cases that makes it 1/2.  Now, I know I can't do this to all the cases. For example, the probability of getting a 2 when I roll a dice. I know the answer is 1/6 but why can't I do, either the outcome will be 2 or not. And in that case, my probability is 1/2.


This was an excercise in my exam and I was wondering whether my solution was correct or not.  I have said since $a_n\rightarrow a$ there exists a $N$ such that for every $n>N$ we have $|a_n-a|<\epsilon_0$. Therefore we have for $n>N$  $|\frac{1}{n}\cdot(a_1+...+a_N+...a_n)-a|=|\frac{1}{n}\cdot(a_1+...+a_N+...a_n)-\frac{na}{n}|=|\frac{a_1-a}{n}+...+\frac{a_{N+1}-a}{n}+...+\frac{a_n-a}{n}|\Longrightarrow -\frac{n\epsilon_0}{n}-|\frac{a_1-a}{n}+...+\frac{a_N-a}{n}|<|\frac{1}{n}\cdot(a_1+...+a_N+...a_n)-\frac{na}{n}|<\frac{n\epsilon_0}{n}+|\frac{a_1-a}{n}+...+\frac{a_N-a}{n}|$  We choose now $n$ so big such  that for $n>N'$ $|\frac{a_1-a}{n}+...+\frac{a_N-a}{n}|<\epsilon_1$   Because $\epsilon_1$ and $\epsilon_0$ were arbitrary the claim is proved.   If there are two points for this excercise how many would you give me?

I have this problem I'm working on. Hints are much appreciated (I don't want complete proof):  In a normed vector space, if $ x_n \longrightarrow x $ then  $ z_n = \frac{x_1 + \dots +x_n}{n} \longrightarrow x $   I've been trying adding and subtracting inside the norm... but I don't seem to get anywhere.  Thanks!


i really like Bleander 3d currently i use Autodesk Smoke to do my postwork but im thinking of going full blender. though the windows tend to get cluttered i would love to see the gui have a dual screen option if it already does could someone inform me on how to activate it. thanks

I know how to set up the default scene by pressing Ctrl+U, but whenever I startup Blender it always fills only one of my screens, even if I set it to fill both before setting the default scene. I end up having to resize it every time I start it up. Is there a way to set this to happen by default?


I was trying to run a study with 100 people per condition for 4 conditions. When I looked at the results, the group sizes were skewed - some had 80, some had 120. If I'm planning on running a series of two-way ANOVAs, would the uneven group sizes negatively affect the results?

I have data for three unequal groups: $N = 44$, $N = 354$ and $N = 347$. Is it possible to compare all three groups running a one-way ANOVA or is the first group too small?


Is it possible to make a style for the line, with arrows in the direction of digitized lines?   No coding after digitization. This is possible when I explode lines to a segments, and I made azimuth field, and then rotate the arrow simbol with azimuth, but I do not want to explode lines.    This screenshot is from another GIS program.

I'm working on QGIS on a street shp file which has Left From, Left To, Right From, Right To fields fields, building a geocoder.  I need to know which way these features are oriented, which I think is the same as knowing which of the two (or more) points that make the lines comes first.  Is there a way to automatically rotate a triangle marker on the marker line style so that it shows how the line is oriented?


I have been learning English for the some time now. I get confused between for and to sometimes. I was reading an article on Yahoo and found out that the writer used the preposition to. But I think the writer could also use the preposition for instead of to. Please check the article and let me know your feedback.     In the article      I usually wake up at 6:30 and go jogging. I eat basically the same   things for breakfast and lunch, keep regular office hours, and   typically go home to make dinner with my husband, before retiring at a   reasonable hour.      These routines are important to my success, but no matter how much I   enjoy my job and family, sometimes keeping things too routine can make   it feel like work.       As per my opinion      I usually wake up at 6:30 and go jogging. I eat basically the same   things for breakfast and lunch, keep regular office hours, and   typically go home to make dinner with my husband, before retiring at a   reasonable hour.      These routines are important for my success, but no matter how much I   enjoy my job and family, sometimes keeping things too routine can make   it feel like work.

I cannot easily figure out which one is more appropriate to use:     It's important to me.        It's important for me.   Are they the same? If not, what's the difference?


Currently learning about projective varieties in the classical setting (over algebraically closed fields). I've seen several sources mention that "quasi-projective varieties have the same geometric dimension as their closure", but without really explaining/proving why this is the case. Any references?

I am reading Joe Harris' book Algebraic Geometry: A first course. In the book he says:     The Grassmannian $G(k,n)$ contains, as a Zariski open subset, affine space $\mathbb{A}^{k(n-k)}$, and thus has dimension $k(n-k)$.   Is it true that a Zariski open subset of a variety has the same dimension as the variety? I am trying to find it in Harris' book, but  I do not get it. Is it an inmediate consequence of any other result?  I would appreciate if you could explain this fact to me, or if you could tell me a book where it is shown.


Here's a user who posted a question on Meta about deleting their account.    Can you guess the old username? It's the same user who deleted the question.  I believe this should be anonymized as well.

When an account is deleted, the username in the user's posts and comments is changed to a generic user<userID>. But the username stays the same on close and delete notifications on posts the user had voted to close / delete1. I think it shouldn't, especially for users who used their real name as their username, if they chose to distance themselves from the site and remove their accounts, it makes sense that they wouldn't really want their name plastered on close and delete notifications.   A perhaps easy way to avoid the actual username remaining visible would be to change it to the generic user<userID> (or anything generic enough, like "anonymous") prior to deletion, and wait a bit for the generic username to propagate all over the site. If I'm not horribly misreading , this was part of the process in the old days.   This could be automated or added as a suggestion to the .  Glaring example can be seen , where the deleted user also posted a comment where their name is properly anonymized:        1 I've seen it on close notifications and self deleted answers. I'm not sure it happens on deleted questions, or deleted answers that aren't self deletions, and I don't have a way to verify it - other than stumbling on them accidentally


I'm currently studying for a theory exam in Abstract Algebra. One question is about first defining the concepts of even and odd permutations and then explain why these concepts are well-defined. So, I find this a bit difficult and I'm wondering if you guys can help me out?  Why are Even and Odd permutations well-defined?  Thank You

How we can show every permutation is either even or odd,but not both......I can't arrive at a proof for this ..... Can anybody give me the proof...  Thanks in advance...


This is a question from Sheldon M Ross' Intro to Probability Models.      Suppose that each coupon obtained is, independent of what has been previously   obtained, equally likely to be any of $m$ different types. Find the expected number of coupons one needs to obtain in order to have at least one of each type.       Hint: Let $X$ be the number needed. It is useful to represent $X$ by   $X = \sum_{i=1}{X_i}$ where each $X_i$ is a geometric random variable.   I did it using this hint and I now get $m^2$ as $E[X]$. I'm not sure if this is right and more importantly, I'm not able to understand why/how it can be modeled as the sum of many geometric distributions.  My initial approach was to define the indicator random variable   $$X_i = \begin{cases}        1 & \textrm{if ith coupon is new}  \\          0 & \textrm{otherwise}     \end{cases} $$    and then take $X = \sum_{i=1}{X_i}$ but I'm not sure how to proceed with that.

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


Suppose someone makes you laugh so much that your stomach starts to hurt. In this case do the following sentences mean the same if you want to tell that person about what he has done:        You made me laugh so much that my stomach hurts.   You cracked me up so much that my stomach hurts.

Scenario 1)  Suppose someone is lying to you and you want to tell him / her sarcastically that his words sound too funny (because of the obvious lies he is making up);  Scenario 2)  Suppose someone is cracking very funny jokes for a long time and you've laughed your head off.  For me both of the following sentences make perfect sense and are usable in either former or latter scenarios.      1) Stop making me laugh so much.      2) Stop cracking me up so much.   What's your idea? What do you think of these sentences of mine? Would they sound idiomatic in both senses or they have some slight nuances?


How can I use and modify the s_member private static variable from the constructor or in general from an other member function?  This is what I tried.  a.h:  #ifndef A_H #define A_H  #include <set>  class A {     public:         A();         virtual ~A();      private:         static std::set<int> s_member; };  #endif   a.cpp:  #include "a.h"  A::A() {     A::s_member.insert(5); // It causes error. }   I get this error:  /tmp/ccBmNUGs.o: In function `A::A()': a.cpp:(.text+0x15): undefined  reference to `A::s_member' collect2: error: ld returned 1 exit status

Can anyone explain why following code won't compile? At least on g++ 4.2.4.  And more interesting, why it will compile when I cast MEMBER to int?  #include <vector>  class Foo {   public:       static const int MEMBER = 1;   };  int main(){       vector<int> v;       v.push_back( Foo::MEMBER );       // undefined reference to `Foo::MEMBER'     v.push_back( (int) Foo::MEMBER ); // OK       return 0; }


When I build a website I'd usually put the logo on the top left of the screen (or in the middle if applicable) and at the same time use it as the link to the home page. I think this became a common pattern today. But I'd instinctively would never put it on the top right.     In a new project I have a client who's CI exactly requires this: the logo has to sit top-right without excuses for online media.   Now I'm wondering if I can still use it as a home link.  From a gut feeling I'd say no and would put an extra home link in the main nav.  I would not expect a user to consider the logo on the right as the home button. As well, the page is not fully fluid, so that the logo might even disappear on smaller screens. (This as well should be an issue for CI but it obviously is not).   However, the navigation is perfect without the link and I'd rather love to focus the other items than having an extra "home".  What are other arguments for the one or the other approach?

I was wondering if the 'Home' button is still a must on a website menu, or are users already used to clicking on the Logo?  There is a qustion on ux.stackexchange.com about this topic -  but it is around 2 years old, and I'm curious if user expectations have changed? Because:   more and more sites do not have a 'Home' button even huge sites like Facebook, Apple, Microsoft, Android, HP do not use 'Home' button and there are some sites who use a  instead of a Home button    So I suppose most internet users learned that they have to click on the Logo to return to the Home site, but haven't seen any up-to-date study about this topic.


I have created view of views or you can say a page of teasers where the teasers are itself views(global views field) and the page is generated as view too. there is a custom field a/c no (in teaser)which I want to sort ascending but it sort like 1 10 11 12 ... 19 2 20... and so on. After using natural view sort it is sorting like 19 53 35 20 54 21 etc, why it is happening and why the natural sort is not working? It does not relate with taxonomy.. I am just wondering that if normal sort is working in view of views then why is not natural sort working to that?

I have a taxonomy that's comprised entirely of numeric term names, 1 through 1200 (with a few numbers missing in between). I created a new "Taxonomy terms" view to show all terms in this vocabulary. When I look at the view results, I'd like to see the terms sorted numerically, however the view is displaying the terms alphabetically. I understand the reason for this is because term names are strings, but I'm hoping someone has an answer of how to make the query treat the term names as integers.  Here's an example of the view results as they are displayed now:   1 10 100 1000 1001 1005 101 1014 1015 1016 1019 102 1020 1024 103 1034 104   Normally in MySQL, you could write SELECT name FROM {taxonomy_term_data} ORDER BY CAST(name AS UNSIGNED). Is there a way to get this same type of CAST() happening in views?


if(tempCard.getSuitValue() == PlayingCard.CLUBS || tempCard.getSuitValue() == PlayingCard.SPADES)   this is the line that is giving me a NullPointerException    PlayingCard redCard, blackCard, tempCard;    tempCard is declared as a varible of object PlayingCard  public PlayingCard(int newFace, int newSuit) {     faceValue = newFace;      suitValue = newSuit;  }   this is the constructor for object PlayingCard, as well as the parameters for it  public int getFaceValue() {     return faceValue; } public int getSuitValue() {     return suitValue;  }   these methods give values to the getSuitValue method used in the statement at the very top  public final static int CLUBS = 0; public final static int DIAMONDS = 1; public final static int HEARTS = 2;  public final static int SPADES = 3;   these are the constant values for the cards in the deck.    I have gone through every method and constructor that is used in the line that results in the NullPointerException.  If anyone wants to see all 4 classes, I can post them at their request.

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


I want to listen to click events on elements that are dynamically created and aren't appended. See this example:    document.addEventListener('click', function(e){   if(e.target.tagName == 'BUTTON'){     console.log('Click');   } }); document.createElement('button').click(); <button>Test</button>     The listener isn't called when creating an element and using the click method on  it.  Why is this and how can I listen to those events?  Thanks!

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


I've got a "corrupt places.sqlite" problem immediately after upgrading to Firefox v55; I've tried repairing this file by dumping it and importing data into a newly created file, but Firefox marks the new file as corrupt as well. Is this a problem in the version 55 of Firefox?

I had some problems with my RAM (bluescreen several times, Windows XP) and now are my Firefox databases damaged. Firefox is working, but my history is gone and it's reporting several inconsistencies and errors when executing pragma integrity_check on places.sqlite:     database disk image is malformed   Now the question, how do I repair SQLite-Databases?


I have the following data: group A: very bad 12, bad 20, quite good 11, good 29, very good 14 group B: very bad 20, bad 10, quite good 6, good 11, very good 34  which test is appropriate for this kind of data? I think the chi-square test is appropriate since it's nominal data.  could you apply the same test to these data in a different way? I built a 2x2 contingency table by grouping very bad and bad on the one hand, and  quite good, good and very good on the other hand.  if the chi square in 1. is significant an the chi square test in 2 is non significant, how would you intepret the results? I am not sure really.  Could you recode the data and apply a differnt test? I recoded the data as 5-point Likert scale and applied a Mann Whitney test.  If the Mann Whitney test is non significant how would you interpret this result compared to those of chi-square tests? I don't know.   I would be very grateful if anyone could help with this. I am not sure that the chi-square test is the right choice for 1 either. So if anyone had suggestions it would be helpful.

I have the following data:     Group very bad bad quite good good very good     A 12 20 11 29 14   B 20 10 6 11 34     Group A receives training, group B doesn't  which test is appropriate for this kind of data?  could you apply the same test to these data in a different way?  if the chi square in 1. is significant and the chi square test in 2 is non significant, how would you interpret the results?  Could you recode the data and apply a different test?  If the Mann Whitney test is non significant how would you interpret this result compared to those of chi-square tests?   I would be very grateful if anyone could help with this!


Why is it showing that my password is wrong even when it is the same as I type in? The password is pass and I wrote pass, but it shows me that it's wrong.  import java.util.Scanner; public class App {     public static void main(String[] args)     {         System.out.println("Guess the word: ");         Scanner test = new Scanner(System.in);          String guessThePassword = test.nextLine();         System.out.println("You wrote: " + guessThePassword);          String correctPasswordIs = "pass";         System.out.println("The correct password is: " + correctPasswordIs);          if  (guessThePassword == correctPasswordIs)             {             System.out.println("The password you wrote is right");             }         else              {             System.out.println("The password you wrote is wrong");             }         test.close();     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Sorry for my bad English. I know $\bar{\mathbb{Q}}/\mathbb{Q}$ is infinitely extension. Namely, $[\bar{\mathbb{Q}}:\mathbb{Q}]=\infty.$ Now I want to know is $\bar{\mathbb{Q}}/\mathbb{Q}$  finitely extension as field extension? Namely, are there $\alpha_1,\dots,\alpha_n\in \bar{\mathbb{Q}}$ such that $\bar{\mathbb{Q}}=\mathbb{Q}(\alpha_1,\dots,\alpha_n)$? Please tell me proof or hint or good book, thanks.

Show the algebraic closure $\bar{\mathbb{Q}}$  is not even finitely generated over the field $\mathbb{Q}$   I'm not sure how to go about this..


By virtue of the nature of the question, I can't give concrete evidence, since I don't record my screen, but over the past few days, I've tried to change a downvote or an upvote after an edit has appeared (I know that an edit appeared, because the content of the post obviously changed), but SO has no record of such an edit, so I can't change my vote.  Anyone know what's going on here/experienced similar issues?  The only thing I can think of is that there's some sort of threshold for what constitutes an edit that is significant enough to warrant a record, but that seems to be flawed.  Or perhaps, there's a significant amount of lag between an edit and its recording, but that doesn't appear to be true from my experience.    Apparently there's a five-minute grace period, in which edits are not logged, but it makes no sense to me that I can vote one way, you can change your answer, and if this occurs in a certain time period, then I cannot change my vote unless an additional edit has been made.    The other posts, while very similar to this one, seem to be more concerned with when you want to undo a down vote, but what if the opposite is true and there isn't an incentive for the OP to change their post (I'm concerned with both issues).  The quick fix is to edit the question and change your vote, which seems inappropriate.  There should be a non-hackish way to do this.

A little background:  I do not know what the specifics are, but I've noticed that a quick edit after a post will often times not result in an edit being posted. It's as if there was no edit. Edit: According to Bart this amount of time is five minutes.  The problem:  A user made a really bad post (said that ~ in C# wrt integers was used for deconstruction). I down-voted said post. Post quickly disappeared (I guess poster realized they screwed up and took back the post). Later, I come back and see my down vote but the answer is now correct (that ~ is the bitwise complement operator). I try to get rid of my down vote because it is no longer appropriate. However, it has been about half an hour and there is no edit posted (presumably the poster made an edit within the non-posting edit window) so I can't take my vote back.  Suggested solution:  If post gets edited (even within the non-post edit window) mark all the votes as changeable. I would guess that this would either involve an update on a table of votes or adding a column for last edit time which is not bypassed by the grace period. I realize that this may be an entirely non-trivial change, but unless the non-posting of edits is somehow changed to make sure the edit was trivial it seems this is necessary.


I am pretty new to Java and I cannot seem to figure out why I am getting this error message relating to this error message: File not found. Exception in thread "main" java.lang.NullPointerException at Project1.main(Project1.java:24). Any help would be appreciated. I have tried running through command prompt as well as an online java compiler and both tell me that there is not a file to be found. import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;  public class Project1 {     public static void main(String[] args)     {        // create file object        File file = new File("input.txt");         // create a scanner object        Scanner scan = null;         try          {            scan = new Scanner(file);         }         catch (FileNotFoundException e)         {            System.out.println("File not found.");        }         // take number of men or women from file - first line        int num = scan.nextInt();                // create string array of size number of men to save men preference        String[] menPreferenceArray = new String[num];              // create string array of size number of women to save women preference        String[] womenPreferenceArray = new String[num];         // point to next line                scan.nextLine();        // loop till 2*num lines        for (int i = 0; i < 2 * num; i++)         {            // take first 3 preference and save to men preference array            if (i < num)                menPreferenceArray[i] = scan.nextLine();            else                // take next 3 preference and save to women preference array                womenPreferenceArray[i - num] = scan.nextLine();        }         // variable to count prefectMatch        int perfectPairNum = 0;         // read till file has next line        while (scan.hasNext())         {            // take a marriage pair as string            String marriage = scan.nextLine();            // split by space            String[] pair = marriage.split(" ");            // reverse the pair            String marriageReverse = pair[1] + " " + pair[0];             // count variable to check if men and women has same preference            int count = 0;            // loop through the men and women preference array            for (int j = 0; j < 2 * num; j++)             {                if (j < num)                 {                    // take first preference string using substring and check if the marriage pair                    // is equal to preference string                    if (menPreferenceArray[j].substring(0, 3).equals(marriage))                        // increment count by 1                        count++;                } else                 {                    // take first preference string using substring                    if (womenPreferenceArray[j - num].substring(0, 3).equals(marriageReverse)) {                        // increment count by 1                        count++;                    }                }            }            // if count equal to 2 means, both men and women have same preference, so            // marriage is stable            if (count == 2)             {                // increment variable to check all marriages are stable                perfectPairNum++;            }             else             {                // if count not equal to 2 means, both men or women do not have same preference                // . so marriage is unstable                System.out.println("Unstable " + marriage);            }        }        // close scanner object        scan.close();         // if all marriages are stable, then output stable        if (perfectPairNum == num)         {            System.out.println("Stable");        }    }  }


So a couple weeks back, I accidentally installed Ubuntu over Windows. I've been reading about different programs that can recover data. I was wondering if it's possible to use one of those programs to recover the lost files? Would it be better to leave it on Ubuntu and use a program on Ubuntu or to switch it back to Windows and use a program on there? Also, what's the best program?  Thanks, RPT

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


When I click in  in  is displayed Privilege and Badge links form stackoverflow.com:        When I click in privileges link:        When I click in Badge link:         in meta.stackexchange:

I just noticed these very handy links on my achievements dropdown:  Yay! I thought. This looks really useful! It's always a pain to get to the privileges page by going via the help centre. Only problem is, this screenshot was taken in chat, the only part of SE where there aren't "privileges" and "badges" pages. (The links redirect to  and , both of which give me "Page Not Found".) And when I look at my achievements dropdown on any main site, i.e. a place where those links would actually take me somewhere useful, they don't appear. I checked this on one site where I'm a moderator; one where I'm not a mod but have all rep-based privileges; and two sites (one graduated, one beta) where I don't yet have all the privileges. Nix on all of them. Those links should either appear on the dropdown from main sites too (preferable) or not appear at all (since they're certainly useless in chat, the only place where they currently appear).


Lets say we have a two line function definition, for example, a translation  \begin{align}     t_{p,q}\text{ : }&\mathbb{R}^2 \longrightarrow \mathbb{R}^2 \\     &(x,y) \longmapsto (x+p, y+q) \notag \end{align}   What/how is the correct way of numbering this? I personally just number the first line, but is it possible to have this number vertically centred? Or is there a better way?

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have  \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \end{align}    and I want neither  \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \nonumber \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \end{align}    nor   \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \nonumber \end{align}     but having a single number in the middle. I know this can be achieved by nesting an array inside of an equation but then some symbols (sums, etc.) look differently and I thought there had to be a better way of doing this.


I have an ASP.NET web project, which was named "OldProject".  For whatever reasons, it was decided to rename the project and its namespaces to "NewProject".  Now when the site starts up, it complains about ambiguous controller names:  Multiple types were found that match the controller named 'Admin'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter. The request for 'Admin' has found the following matching controllers: OldProject.Controllers.AdminController NewProject.Controllers.AdminController  I have searched the entire solution, including the Web project's csproj file, and cannot find a single instance of the string "OldProject". How to resolve this false ambiguity?

I renamed my project from MyProjectName to MyNewProjectName.  I did a complete find/replace on the solution and changed the test project aswell.  In Default.aspx.cs I get an InvalidOpterationException with   "The controller name 'Home' is ambiguous between the following types: MyNewProjectName.Controllers.HomeController MyProjectName.Controllers.HomeController."  How do i fix that?  Thanks


'We have had no rain since January' ,said Ramu.   How do I write this in direct speech versus indirect speech.   Should it be had or had had.  I want to know how to write this in in indirect speech.

Do tenses in a time clause never back-shift in reported speech?  For example, does      "I went to Italy when I finished school."    become      She said she had gone to Spain when she finished school.   -or-   She said she had gone to Spain when she had finished school.   and does      "I will go to Italy when I finish school."    become     She said she would go to Italy when she finishes school.   -or-   She said she would go to Italy when she finished school.


Is tabbed content in product page bad for SEO? If so, how should I make it more SEO friendly?

My customers are eager to show news categorized in tabs.  I recently developed it for them.  In my experience in web designing, display:none is used widely in implementing tabs. I also know that it is not good for SEO.  Is there any way to have tabs but without hurting SEO factors?


I'm trying to plot a diagram with matplotlib and embed it in latex. I want the diagram to have the full textwidth so I printed the textwidth in points to my document with \the\textwidth. The value I've got is 418.25555pt. However when I convert this value to inches with google for instance I get: 5.80910486111. This, however, is based on the assumption that one inch equals 72 pt. This is different from the information given here:    It says 1 inch equals 72.27 pt. I wrote a helper function in python to convert points to inches:  import scipy.constants as sc  def figsize(scale, textwidthInPt):     textwidthInInch = textwidthInPt * sc.pt / sc.inch  #1     figWidthInInch = textwidthInInch * scale     figHeightInInch = figWidthInInch / sc.golden_ratio     return [figWidthInInch, figHeightInInch]   The line marked with #1 shows the conversion to inch. The constants from scipy are also based on the 1 in = 72 pt equality.  All my plots are slightly to wide and cause an overfull hbox warning.  Why is LaTeX different in this case?

From  to , I found out that PDF and TeX have different ideas about the size of the point (pt). A TeX point is 1/72.27 inch, where Desktop Publishing Point (DPP), or a Big Point (BP) is 1/72 of an inch.  What is the historical and/or technical reason for this difference?


Use a combinatoric proof to prove that:  $$ \sum_{k=0}^m {m \choose k} {n \choose r+k} = {m+n \choose m+r}. $$  I've had a couple of ideas on how to tackle this - first, I tried to see if I could divide m and n into two separate committee/groups of size m and n. But I wasn't able to figure out what the combination would represent. Then I tried to imagine whether it was equivalent to C(n,r) summed over m possibilities, but that doesn't seem correct either.  Any help?

Prove that $$\sum\limits_{k=0}^m\binom{m}k\binom{n}{r+k}=\binom{m+n}{m+r}$$ using combinatoric arguments.   I prefer you to answer using an analogy to a combinatoric problem or else I'll have trouble understanding.  I tried:  Let $m$ represent a group of boys and $n$ represent a group of girls. We want to form a committee with the condition that there must be $r$ more girls than boys on the committee. There's two ways of doing this. (I'm having trouble with the right-hand side.)  The left-hand side is one way of doing this. So we split the problem to different cases. One such case is where there are no boys on the committee, and so, there's $\binom{m}0\binom{n}{r+0}$ ways of forming a committee. Next, we can have 1 boy on the committee. There's $\binom{m}1\binom{n}{r+1}$ ways to do this. We repeat this process until we have $\binom{m}k\binom{n}{r+k}$ ways of forming a committee. Summing up the cases will result in the right-hand side. However, as stated before, I don't really know how to explain the right-hand side. Maybe I used the wrong analogy?


I just want to save my preferred domain as www.example.com in Webmaster Tools but it simply shows the following error message:     Part of the process of setting a preferred domain is to verify that   you own http://example.com/. Please verify http://example.com/.   I can't save the setting, any idea why this is happening?  Note: I already verified the www version, I have no idea to verify the no-www version.

I've got a domain that I apparently forgot to set a preferred domain for, so I just tried to do it. Webmaster Tools instead popped up a little box:     Part of the process of setting a preferred domain is to verify that you own http://www.example.com/. Please verify http://www.example.com/.   I'm running into some problems following these instructions:   As far as I can tell I already did verify sometime in the past. There's a TXT DNS record with the gibberish Google tells you to set for it that I couldn't have come up with myself. …and nothing is telling me this information is bad. So let's assume the site is somehow not actually verified. All  instructions start with "click the Manage Site button next to the site you want, and then click Verify this site." That button doesn't even exist on my screens. (It presumably goes away when you successfully verify?) Those instructions were all updated pretty recently, and the DNS one in particular just a couple weeks ago so it seems a bit unlikely they're inaccurate.   I am not using Apps, and won't be, so can't try out the verification .   Note that I also have another domain that I have not done any verification for which is showing the same behavior(no such button, being told to verify when it seems impossible etc.) so something appears to just be broken.  I already have a no-www process in place server-side, so we can skip that. I'm just trying to get the box checked off in GWT.  If I don't get any resolution, I'll eventually scrap the TXT record and see if the site gets un-verified(or whatever since it thinks it isn't), and see if I can just restart the process.  It's not urgent so I'm just trying to figure out if I've gone blind to something or what. Did the button move?


The Problem:  I'm unable to port forward port WAN port [25565] to server [IP: 192.168.8.100:25565]   Network Info:  IP| Dynamic Router WAN IP| 10.204.250.128 External IP| 115.164.xx.xx Server IP(LAN)| 192.168.8.100 Server Port(LAN)| 25565 Default Gateway| 192.168.8.1 Network Mask| 255.255.255.0 Broadcast IP(LAN)| 192.168.8.255 Network Interface| enp3s0 IPTABLES Default Policy| ACCEPT Additional Info: ISP| Digi Internet Plan| Mobile broadband Router| Huawei b310s-518   Port Forwarding:  My router is configured to forward [WAN Port:25565] to [SERVER IP(LAN):192.168.8.100:25565]:    IPTABLES configuration:  Only FILTER and NAT tables are uniquely configured others are left to default policy(accept):   FILTER table:  NAT table:    Solutions i've tried  Listening on port 25565:  Disabling IPTABLES entirely   Footnotes: I'm conflicted whether static ip is required for port forwarding and i've yet to try port forwarding using static ip.

I'm running a Samba server on my MacBook and I've also set up port forwarding to said server from my router.  My public IP is 106.51.x.x (according to google and a few other services) and my Mac's local IP is 192.168.x.x, but when I head to my router's configuration page, it says my external IP is 10.242.x.x.  This is what I don't understand, when connected to my home WiFi, using the 10.242.x.x address works just fine. But if I try to access the same over 4G, the connection times out.  As for the public address, neither WiFi nor 4G works.  Is there some setting on my Mac (I'm running MacOS Sierra) that I must alter to make it visible to the public?


Is there any way to export data from an Oracle SQLPlus console, without using the exp or expdp commands? I don't have sysdba privileges.  I'm not a real Oracle guru so I'm using Navicat to export but it just takes too long. I would prefer to do it locally from command line, but don't know how.  I have 1 day until they close down the server and I really need that data.

I need to retrieve certain data from an Oracle 11g release 1 database and provide it as one or more CSV files. The data resides in multiple tables and/or views. All this should work via the command line. What would be the best approach to this?


For a sequence ${f_n}$ of measurable functions with common domain E, show that each of the following functions is measurable: inf{$f_n$},sup{$f_n$},lim inf{$f_n$},lim sup{$f_n$}  At first, I want to know what inf{$f_n$} means.   If {$f_n$} is increasing  function, then I understand {$f_1$}  is the infimum of sequence of function {$f_n$}.   But what if it doesn't? If two candidates have a crossed point, then what is infimum of {$f_n$}?  Secondly proving the statement : Since {$f_n$} is measurable on E, for any real number $c$,   {$x\in E |f_n(x) >c$}(Or $\gt$ can be $\lt,\le,\ge$) is measurable.   Then {$x\in E$| inf{$f_n$} $\ge c$} , since for any $n$,$f_n$ $\ge$ inf{$f_n$}  so, done. Is it right?

I am reading through Folland's Real Analysis: Modern Techniques and Their Applications, and they have the following proposition and proof:     Proposition: If $\{f_{j}\}$ is a sequence of $\bar{\mathbb{R}}$- valued measurable functions on $(X, \mathcal{M})$, then the functions:      $$g_{1}(x)=\sup_{j} f_{j}(x)$$ $$g_{2}(x)=\inf_{j} f_{j}(x)$$ are   measurable.       Proof:      We have       $$g_{1}^{-1}((a,\infty])= \bigcup_{j=1}^{\infty}  f_{j}^{-1}((a,\infty])$$ $$g_{2}^{-1}([-\infty,a))=  \bigcup_{j=1}^{\infty} f_{j}^{-1}([-\infty,a))$$      Where the result follows from the fact that $g_{1}^{-1}((a,\infty])\in  \mathcal{M}$ for all $a \in \mathbb{R} \iff g$ is measurable, and   $g_{2}^{-1}([-\infty,a))\in \mathcal{M}$ for all $a \in \mathbb{R}  \iff g$ is measurable.   I understand the last part of the proof, but how do we know $g_{1}^{-1}((a,\infty])= \bigcup_{j=1}^{\infty}f_{j}^{-1}((a,\infty])$ and $g_{2}^{-1}([-\infty,a))=\bigcup_{j=1}^{\infty} f_{j}^{-1}([-\infty,a))$? I would appreciate any help with this.


I'm a beginner to Qgis and Python; i need a script (don't need it to be a plugin) to get maps of selected features from a layer satisfying certain conditions; Here is my code:  from qgis.gui import * from PyQt4.QtCore import * from PyQt4.QtGui import * import time fnam ='C:/Users/User/.qgis2/Test/Output/' canvas = qgis.utils.iface.mapCanvas() #print canvas.size() Nom =QInputDialog.getText(None,"Value", "Enter text",0) fnam2 = fnam + Nom[0] + '.txt' #print fnam2 outfile = open (fnam2, 'w') layer = iface.activeLayer() layer.setSelectedFeatures([]) #provider =layer.dataProvider() selection=[] for f in layer.getFeatures():     n1 = f['Comune_1']      n2 = f['Comune_2']      n3 = f['Comune_3']      n4 = f['Comune_4']      n5 = f['Comune_5']      if (n1 == Nom[0]) or (n2 == Nom[0]) or (n3 == Nom[0]) or (n4 == Nom[0]) or (n5 == Nom[0]) :         selection.append(f.id())         line = '%s\n' % (f['link'])         unicode_line = line.encode('utf-8')         outfile.write(unicode_line) layer.setSelectedFeatures(selection) #provider.select() outfile.close() mnam ='C:/Users/User/.qgis2/Test/Output/' + Nom[0] + '.tif' mnam2 ='C:/Users/User/.qgis2/Test/Output/' + Nom[0] + '.png' #print mnam canvas.zoomToSelected() canvas.refresh() canvas.update() canvas.saveAsImage(mnam,None,'tif') #time.sleep(3) canvas.saveAsImage(mnam2,None,"PNG") #print 'Finished'   My problem is that saved image(s) show the map at the moment i press "run" button in Python console, not the actual map based on the last selection; i tried to insert a time.sleep() call to delay saving, hoping it could help waiting rendering to complete before saving, but it doesn't work; i also tried recursing the whole process with a for loop, neither working; any tips on what am i doing wrong?    I'll try to explain in a better way: in this project i have two layers/shapefiles: one shows villages in my region with their boundaries; the second one shows the arrangment of orthophotos in a 1:5000 scale of the territory (img1)  now professionals or village administrators may ask for orthophotos of a specific village; running my script i wish: - have a list of orthophotos of that specific village (this works fine with txt file i create); - give a map showing the arrangement of requested orthophotos as a complementary aid. Now, if i run the script selecting, say, "Potenza", i eventually can see in Qgis the updated map with desired selection, but saved images show the whole region:(I mean "Potenza.png" is identical to above image while it should be like the one below); only now i noticed there are selections, so the problem seems to be in zoomToSelected command.  if i rerun the script and i select another village, say "Maratea", this is what i'll find as Maratea.png     (tif images are identical to png);    (When i'll have a working script selected "rectangles" will show image name, and i won't use inputdialog but i'll get village names from the first shapefile and run it only once for all villages).

I try to write a PyQGIS script similar to this: .  Basically there are two loops to pan the mapCanvas, refresh the mapCanvas and export the mapCanvas to *.png.  iface.mapCanvas().setExtent(QgsRectangle(xmin, ymin, xmax, ymax)) time.sleep(5) iface.mapCanvas().refresh() time.sleep(5) iface.mapCanvas().saveAsImage("D:/GE"+str(i)+"to"+str(j)+"img.png" )   If I execute this code line by line in the Python Console it is working fine. If I use it in a loop georeferenced png will be exported but they are either blank or contain all the same content. As you see above I tried to use time.sleep() to have a timeslot for the map to update. But was not successful. As  suggested I also tried:  for layer in qgis.utils.iface.mapCanvas().layers():     layer.triggerRepaint()   Same problem here: works line by line in the Python Console but not in a loop.  How to refresh mapCanvas while PyQGIS-script is running?  (QGIS Version 2.14.3)


I have a big problem in Skyrim. I have a quest from Riften to interrupt the Skooma trade, but I already cleared the cave before accepting quest. Now when I go inside to interrupt trade, everything is already dead and I can't complete the quest.  How can I complete this quest if I have already killed the NPCs prior to accepting the quest?

I understand that disrupting the skooma operation is an essential step to being able to buy a house in Riften. Unfortunately, in the course of wandering through Skyrim, I found  and killed all the bandits inside long before receiving the mission.  When I did receive the mission and returned to the cave, two bandits had respawned, but killing them was evidently insufficient slaughter to progress in the quest.  I don't have any further dialogue options with the Jarl, and can't buy a house or become thane in Riften.  Does anyone know if there is any way around this problem?


I am trying to prove following inequality:  $$\binom{n}{k}<(en/k)^k$$  I tried Stirling approximation but I could not get anything further. Then I get $$\binom{n}{k}\approx \frac{\sqrt{2\pi n}n^n}{2\pi \sqrt{k(n-k)}(n-k)^{n-k}k^k}$$

This is from page 3 of  ().  Copying the relevant segment:     Stirling’s approximation tells us $\sqrt{2\pi n} (n/e)^n \leq n! \leq e^{1/12n} \sqrt{2\pi n} (n/e)^n$. In particular we can use this to say that   $$ {n \choose k} \leq \left(\frac{en}{ k}\right)^k$$   I tried the tactic of combining bounds from $n!$, $k!$ and $(n-k)!$ and it didn't work. How does this bound follow from stirling's approximation?


can I write c++ main function without return integer value? I am using visual studio 2010.  #include <iostream> using namespace std;  int main() {     cout <<"In main function" << endl;       //return 0;  }    `

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


I am trying to write a program for a simple calculator that just adds two numbers and shows it in a JLabel. I have managed to design a working Window, Button, etc. But if I click the Button the Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException - Error happens and I don´t know how to solve it.  Here is the code :  import java.awt.EventQueue;  public class Rechnerwin {  private JFrame frame; private JTextField textFielda; private JTextField textFieldb; private JLabel label; int A; int B; int C; String a; String b; String c;   public static void main(String[] args) {     EventQueue.invokeLater(new Runnable() {         public void run() {             try {                 Rechnerwin window = new Rechnerwin();                 window.frame.setVisible(true);             } catch (Exception e) {                 e.printStackTrace();             }         }     });  }  public Rechnerwin() {      initialize(); }   private void initialize() {     frame = new JFrame();     frame.setBounds(100, 100, 450, 300);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.getContentPane().setLayout(null);      textFielda = new JTextField();     textFielda.setBounds(44, 41, 86, 20);     frame.getContentPane().add(textFielda);     textFielda.setColumns(10);      textFieldb = new JTextField();     textFieldb.setBounds(307, 41, 86, 20);     frame.getContentPane().add(textFieldb);     textFieldb.setColumns(10);      JButton btnAdd = new JButton("Add");     btnAdd.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {              String a = textFielda.getText();             String b = textFieldb.getText();             int A = Integer.parseInt(a);             int B = Integer.parseInt(b);             int C = A + B;             String c = Integer.toString(C);             label.setText(c);         }     });     btnAdd.setBounds(169, 85, 89, 23);     frame.getContentPane().add(btnAdd);      JLabel label = new JLabel("a");     label.setBounds(146, 184, 131, 20);     frame.getContentPane().add(label);   } }

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


How to solve this,   root@work:/# sudo apt-get update Hit:1 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:3 http://nyc2.mirrors.digitalocean.com/ubuntu xenial InRelease Hit:4 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease Hit:6 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease Get:5 http://ag-projects.com/ubuntu xenial InRelease [7,109 B] Err:5 http://ag-projects.com/ubuntu xenial InRelease The following signatures couldn't be verified because the public key  is not available: NO_PUBKEY F74046C316D8F9F5 Fetched 109 kB in 0s (181 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ag-projects.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F74046C316D8F9F5 W: Failed to fetch http://ag-projects.com/ubuntu/dists/xenial/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F74046C316D8F9F5 W: Some index files failed to download. They have been ignored, or old ones used instead. *****************************  root@work:/# sudo apt-key list /etc/apt/trusted.gpg -------------------- pub   1024D/437D05B5 2004-09-12 uid  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> sub   2048g/79164387 2004-09-12 pub   4096R/C0B21F32 2012-05-11 uid   Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com> pub   4096R/EFE21092 2012-05-11 uid   Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com> pub   1024D/FBB75451 2004-12-30 uid   Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com> pub   1024D/163A0DF5 2007-05-24 uid   AG Projects Debian Package Signing Key <support@ag-projects.com> sub   2048g/9565A2F3 2007-05-24 pub   2048R/9CA27E41 2018-02-02 uid   John ATEL (Newkey) <info@newconcepttechnologies.com> sub   2048R/36CFB265 2018-02-02 sub   2048R/9934ADF8 2018-02-02 /etc/apt/trusted.gpg.d/nilarimogard_ubuntu_webupd8.gpg ------------------------------------------------------ pub   1024R/4C9D234C 2010-01-20 uid   Launchpad webupd8

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


I've been browsing through a variety of sites on SE and noticed that questions with bounties do not seem to get more views, answers, or upvotes than those without bounties (except for a few examples that seem to get quite a few of all three).   Does pairing a bounty with a question actually cause users to view it more and give it more attention? I would've thought that getting +100 reputation for answering a question would cause many people to flock to said question, but I haven't observed such a phenomenon (perhaps I just haven't seen enough examples of questions with bounties?). Granted, I am still fairly new to SE and its websites, so excuse my lack of experience.

For years, people have been able to spend their hard-earned imaginary Internet points to add "bounties" to questions in order to attract more attention to them. (Because, really, "attention" is the only thing that you can be reasonably sure a bounty will give you.)  But does this extra attention translate into better results?  Granted, any individual question may not be really answerable or is still boring even with the extra carrot. And a question might be so interesting that it would have gotten a ton of (good) answers even without the bounty.  Do questions that have bounties get more/better answers—in aggregate—than questions that never had a bounty? Does this vary by site? If so, do bounties seem more effective at a certain site "size"?  Or is it really just a wash, and that all anyone ever gets for their bounty is extra attention?


i have heard that it should does/does not for he/she/it and do/don't for i/you/we/they  But I am confused when i always get to hear people talking do and don't for he/she  Even in a lecture i listened now it was said as, "That lady don't" instead of "that lady does not"  Which one is correct?

I'd like to know how the sentence "That don't impress me much" sounds to a native English speaker.  The phrase is the title of a song by Shania Twain, and to my eyes it contains a clear error. It is obviously intended, and I want to know what was the effect that the author wanted to obtain.  Other examples that come to mind:   “She's got a ticket to ride, but she don't care” — The Beatles “My love don't cost a thing” — Jennifer Lopez “It don't matter” — Akon “She don't care about me” — heard in the Lost series “It Don't Mean a Thing” — a jazz album title “The Sun Don't Lie” — another album title


No matter what I do it keeps saying I'm missing a closing bracket, "}". My command is:  /give @p stone_shovel 1 0 {"minecraft:can_destroy" : {"blocks" : ["grass"]}}

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


A couple minutes ago, the website turned into a old version of SO (Back to the future).     Even if I switch to the normal design (via button 'Time travel!'), the next post of SO will still have the '90s design.  How can I turn it off permanently?

Every time I open a question I get this oh so funny 90s feel with scrollers and whatnots. In every question I need to click it off. The button seems to only work for the specific page I load; loading a different page shows the theme again.  Is this an attempt to keep people from using the site for a few days or how do I tell you "please never ever do anything like this if you want me to keep contributing here"? Yes I have no sense of humor if this is an attempt at that.  How do I turn off "time travel" (also known as "back to the future") mode off permanently, on all questions, and preferably network-wide?


In the fight at the Weathertop, the Nazgul injured Frodo and left. They waited for him to pass to the shadow and become a wraith, but they did not kill the other hobbits on Weathertop, Sam, Merry, and Pippin. Moreover, Merry had an enchanted sword which he later used to harm the Witch King during the Battle of the Pelennor Fields. Apparently, the Nazgul did not recognize such a powerful sword.  This negligence allowed Pippin and Merry to get the Ents to march against Isengard and reduce the pressure on the Rohan. By not killing Samwise Gamgee, the Nazgul made it possible for Sam to carry Frodo to Mount Doom. As a result, the outcome of the War of the Ring is affected directly.  While book answers are preferred,  are also welcomed.

Even Aragorn and the Hobbits are surprised at Weathertop that the Nazgûl did not try a second attack to take the ring. The following possible reasons are offered or implied:   The Nazgûl were satisfied with stabbing Frodo with the Morgul-knife.    But why fall back on a second-best solution when they could have taken the ring directly?   The Nazgûl were terrified of Aragorn and his flaming torch.   But even assuming that in Tolkien's world a hero like Aragorn can direct his force-of-will with almost super-power-like effect on evil spirits, they are five against one, since the Hobbits are unable to fight. The Nazgûl could attack Aragorn from a distance with arrows or spears, or encircle him. At least they could have stayed close and waited till the effect of his will-power-attack vanished, or started a siege.   The Nazgûl were terrified of the name Elbereth.    But if that would work, they would be easy to defeat and pose no danger anymore.  Connected problems are other cases where the Nazgûl apparently act under sub-optimal strategy, like not having one of them waiting directly at the Brandywine ferry (he could even wait openly and tell suspicious Hobbits he is waiting for Mr. Baggins), not better observing Crickhollow (they must have reached it long before Frodo, to find it they could just ask where it is or where Mr. Baggins lives), and hesitating several days till attacking Crickhollow.  I'll try to give an answer myself, but I welcome better suggestions.


A friend asks me to find the number of digits of $2^{1000}$. I tried to look for a pattern by calculating the first powers of $2$ but I didn't find it. How should I proceed? Thanks.

I tried this way, I only need to know if this is correct or if there are better ways to solve this:  $2^{1000}$ does not have a factor of $5$ obviously therefore we can assume  $$ 10^{m} < 2^{1000} < 10^{m+1}$$ for some  $m$   Assume $ k = 2^{1000}$, then take log on both sides $\log k = 1000  \log 2 \approx 301.02999 > 301$  Therefore $2^{1000}$ has $302$ digits.


For those of us who are subscribed (and get the character builder online application as well as the monster creator, among other things), will they support a 5th edition builder?  If not, will they at least keep the 4th edition one in tact?

I know that Dungeon and Dragon magazines will be publishing with the same regularity they were for 4e and feature much of the same types of content, but has there been any statements from Mike Mearls or from WOTC regarding what types of digital tools there will be to support D&D 5e?   I know a lot of players from 4e appreciated and loved the online tools and the support they gave.


I sent an article and it was accepted minor revision required. After resubmitting the paper the status appeared editor invited and has not changed in more than a week. The first time I submitted it, they just assigned an editor. What does this mean?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


Lets say I have a sealed class Bank, and it has to properties string Name and int Code.  I have a custom attribute, AlertAttribute and I want to add it to each property in Bank class. How can I do that without modify the code of the Bank class? (no inheritance or partial class is allowed)  Is there any language mechanism to do it (compile-time)? Is it possible to add it by reflection (run-time)?  Thanks a lot.  eLopez  EDIT: I just want to know if it's possible at design time (compile-time) to add attributes with the constrains I exposed. If there none, I would consider to add at run-time, so given link to the answer would be implemented. Thanks

Is it possible to add attributes at runtime or to change the value of an attribute at runtime?


Given the sequence $\{x_n\}=(1+1/n)^n$, by using Bernoulli's inequality, $(1+a)^n>1+{na}$, and a little creative, clever algebra, it is a straightforward proof to show that $x_{n+1}/x_n>1$ and hence $\{x_n\}$ is a monotone increasing sequence. I thought that the same approach (the ratio of consecutive elements) and the same basic set of algebraic constructions might be used to show that $\{x_n\}=(1+x/n)^n$ for $x>0$ is also a monotone increasing sequence but it's escaping me, I'm afraid. I've seen other solutions that refer to the arithmetic-geometric mean inequality but I'd like to attempt a more basic solution that doesn't refer to that. Any hints to push me in the right direction?

Note: I don't want to get the full solution, but only a hint.  I have to show that for $x \in [0, \infty)$, the sequence $\left(1+\frac xk\right)^k$ is monotonically increasing. We were already given the hint that we could use the inequality of arithmetic and geometric means, but I don't see how to apply it yet.   I tried to do it by induction. While the case $k = 1$ works easily, I don't know how to start further from here. I already tried to use the definition of the binomial theorem, but it didn't lead me anywhere.


My friend has a 2011 iMac from his Dad, we play a computer game which has had an update which now means his old OS wouldn't run it, it needs at least Mountain Lion, so after lots of research he took the plunge and bought Mountain Lion from the Mac Store for £20... however once he received the email with the download link and pressed it, it asked for a password... however the login account does not have a password and his Dad does not know what the password could be...  Is there a way to download this new OS system which we have paid for without the password?

I recently received an old iMac secondhand.  I have no way to reach the original owner. I am trying to upgrade the OS software, but the prompts demand the administrator's name (which is auto-filled) and password (which I do not have).  I understand why these security features are in place, but is there any way in the world for me to access Admin. privileges without the password?


Please consider the following code  \documentclass[t]{beamer}  \usepackage{chemfig} \begin{document}  \begin{frame}   \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} \definesubmol{y}{-O-(=[2,.6]O)-!x!x!x!x!x!x!x!x} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}  \end{frame}  \begin{frame}   \frametitle{2nd frame} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)} \end{frame}  \end{document}   What I would like to achieve is to build submolecules first and then assemble them in successive frames. If I write the submolecules that I need within each frame, soon the whole code become complicate and cluttered.  The only solution I was able to find was to save the submolecules in an external .tex file, to be invoked each time from within frames when needed.  Something like the following  \documentclass[t]{beamer}      \usepackage{chemfig}     \begin{document}      \begin{frame}       \frametitle{1st frame}     \input{submoleculesChemfig.tex}     \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \begin{frame}       \frametitle{2nd frame}      \input{submoleculesChemfig.tex}          \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \end{document}   Is there a better solution, without using the external file ? Thanks

I want to utilize beamer's \uncover command within ChemFig's reaction scheme environment, i.e.:  \schemestart     \chemname[-1ex]{\chemfig[][scale=1]{*5(-=(-=[:-60]O)-O-=)}}{Furfural}     \uncover<2->{         \arrow(furfural--mf){->[*{0}HDO][]}         \chemname[-1ex]{\chemfig{*5(-=(-)-O-=)}}{2-Methylfuran}     } \schemestop   However, this results in numerous "undefined control sequence" errors.  Is there a way to use beamer's \uncover command within ChemFig?  Here is a full MWE:  \documentclass[10pt]{beamer} \usepackage{chemfig}  \begin{document}  \begin{frame} \frametitle{Stuff}  \schemestart     \chemname[0ex]{\chemfig[][scale=1]{*5(-=(-=[:-60]O)-O-=)}}{Furfural}     \uncover<2->{         \arrow(furfural--mf){->[*{0}\textbf{HDO}][]}         \chemname[0ex]{\chemfig{*5(-=(-)-O-=)}}{2-Methylfuran}     } \schemestop  \end{frame}  \end{document}


So I was messing around with permissions on a linux box and was trying to change permissions so a user couldnt access any folders other than what is in their home directory. I did sudo chmod 0750 /home/Guest and it stopped them from accessing the other folders in home, but not the root directory. So i then applied sudo chmod 0750 / and now I cant access any files or execute any commands. I came back to it and I cant even ssh to connect remotely anymore.  Am i screwed?

I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?


I've had this confusion for a long time: what is the difference between one to one and one on one? Which one is more appropriate:  We will have one to one meeting? We will have one on one meeting?

I have been confused about the difference between "one to one" and "one on one". Which one is more appropriate of the following?  We will have one to one meeting? We will have one on one meeting?


I have a remote front-end application under development and I would like to interface with Drupal as a backend service, using the RestWS module to create a RESTful service to my Drupal instance (using JSON as my data format).  I have a node content type of type "article", that has an image field on it called "field_image".  I'm currently trying to figure out the proper way to upload a file to Drupal through the API created by RestWS.  I can retrieve a node with a file attachment via GET to the URL , which retrieves the contents of node 1, including the information about the uploaded file:    I can also retrieve information specifically about the file attachment, using the FID returned when requesting information about the node, using the url :    Now, my question:  How specifically do you upload a file using RestWS, so that you create a file resource to then use when creating a node?

I need to add files to multiple value file field using drupal rest api (restws module). return format of restws is something like this :  "field_files": [      {         "file": {             "uri": "http://drupal/file/445",             "id": "445",             "resource": "file"         }     } ],   but when I send it to http//drupal/node/<node_id> restws returns not acceptable.  Can anyone suggest which format I must use to send data to?  and second question : How can I upload files using restws module ?


This question is yet another one about problems with blank screens when trying to install Ubuntu (12.04.2) on a machine which uses UEFI Secure Boot. In my case, installing off of a DVD in an external drive.  I have already tried modifying the boot config according to the suggestions made in assorted thread (see -- partial -- list below), so I'm here to ask what can I try next?!  I am still hoping that there's a straightforward solution, though one post I saw (about problems with the Intel 3000 graphics card) does appear to suggest that I might be forced to use the command line install. If that it the case, I'd like to be confident that the problem can be fixed readily post-install.  Please bear in mind that I'm new to Ubuntu and Linux in general.   Configurations tried so far, all starting off from:  set gfxpayload=keep linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash -- initrd /casper/initrd.lz   I tried:   adding nomodeset (to the linux ... line) adding nomodeset=1 replacing quiet splash with nomodeset=1 replacing quiet splash with nomodeset acpi=off replacing quiet splash with nomodeset apic=off acpi=off replacing quiet splash with nomodeset apic=off acpi=off drm_kms_helper.poll=0   I even tried adding set gfxmode=1366x768 just after set gfxpayload=keep with the final permutation, but no joy. (I'm not even sure that could work?) Installed Wubi  In an attempt to sanity check the DVD, I ran the Wubi install from Windows. It ran through fine and completed ok, as far as I could tell.  Of course, I couldn't boot into Wubi as I was blocked by the \ubuntu\winboot\wubildr.mbr + 0xC000007B problem. So I just uninstalled it. My machine is an ASUS X502C with an Intel i3-3217 processor and an "Integrated Intel® HD Graphics 4000" card.  The laptop was actually listed in the online catalog as an ASUS X501A, which appears to get the green light in ubuntu.com's certification list, and to be commented favourable on in the forums. (I assume that the stock of old machines ran out and they moved onto its successor. While the X502C is no doubt supposed to an improved version of the X401A, it isn't going to well for me so far...) I confirmed that it is using UEFI Secure Boot (Confirm-SecureBootUEFI returned True) The black, new style GNU Grub screen is the one that's displayed The main threads I've looked at so far:                Plus this, which is a bit dense for me:

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


the question i have is more if a request for clarification from another question,  "can my employer track my home network usage on another computer if i connect using vpn?".   I work on a company owned desktop that uses a vpn to connect to work from my home, using my private internet connection.   My wife is off one day a week while i work. she plays on her own private laptop through out the day (not on vpn)... facebook, email, netflix; girly stuff, right.   My concern is that my employer can see what she is doing when she's enjoying her day off. thus causing a topic of conversation for me and my employer.   What i gather from the other q&a topic above is that; in layman's terms, the desktop work computer opens a rabbit hole (vpn) and the only things that fall down the rabbit hole are direct actions performed by the desktop on the vpn (such as browsing history/keystrokes), thus my wife can enjoy her day off to her hearts content and my employer cannot see what she is doing. Thus releasing my concerns that my employer will be asking me why i am watching Netflix all day and not working.   Is my assessment of the nature of vpn's correct? Sorry for breaking this down so ridiculously, not everyone provides a layman's answer unless they know they are working with a layman. Thanks in advance.  Add on: I do know the vpn is Cisco AnyConnect VPN Client version 2.5.2018. i sign to the VPN via the desktop. Not really sure if that makes a difference. I would assume that a router VPN would either be a new specialized router provided by the company (didn't get one) or something that would have to be installed via firmware.   I did look at the router settings and there are no entries within the "NAT -- Virtual Servers". i am not jumping to conclusions but there doesn't seem to be any other settings in the router that would lead me to believe that it would have firmware to support a VPN.

My work PC computer(in my home office) is connected to my home router via ethernet cable and I'm connected to my company server through VPN (NetExtender). If I'm logged onto the remote terminal server on my work PC and I have my personal macbook connected wirelessly through the same router, can they track my internet usage on my personal macbook because they are using the same router?


I've noticed that on my Ubuntu Gnome 16.04 LTS all ubuntu shortcuts are triggered on-press instead of on-release. This makes using them with other programs pretty annoying e.g. I'm using two layouts for the keyboard, so I can switch between them with Alt + Shift. In Eclipse however I would like to use the Alt+Shift+X to open Run menu. With current configuration of Ubuntu, the moment I press Alt+Shift+X in Eclipse, I automatically switch keyboard layout.   Is it possible to switch this behavior somehow? Or do I need to remap the shortcuts so there would be no conflicts?

I have Ubuntu 16.04 with GNOME shell. I set ctrl+shift for the "Modifiers-only switch to next source" option.   This shortcut conflicts with apps hot-keys. I can't use ctrl+shift+i to open devtools in Chrome, it just switches the layout. In VS code IDE if I press shortcuts with ctrl+shift (for example ctrl+shift+f), shortcuts work but always switch a keyboard layout. When I used Windows this problem didn't exist.  Can I set the ctrl+shift shortcut in such a way that it causes a switch action only after the keys are released and only if this 2 keys were pressed (without additional keys)?


Is there any kind of documentation about how a Stack Exchange site that has left beta is being customized? Is this done by the people starting the new site, or by Stack Exchange itself?

Does Stack Exchange offer themes (just like in gmail) where the user can choose his best liked theme for each site?  If not, how about having it?