For some background: I'm very new to graduate school, in fact I just started unofficially doing research a few months ago, my official PhD program starts in the Fall (I moved out there early). Currently, I'm at a big R01 institution, coming from a pretty low ranking obscure undergraduate school, and there is an intimidation factor when I'm surrounded by accomplished postdocs (they pushed out more papers than my professors with tenure in my undergraduate). It's slightly amplified when I consider that, so far, I effectively only have a Bachelor's degree.   Anyway, I was given some code to modify for a specific device. I'm not really pestered or swarmed for deadlines, and I'm trying to figure it out. I honestly think there is an error in the syntax that prevents me from being able to carry out a colleague's request. I have prior coding experience. I'm a traditional "I want the challenge of figuring it out so I can develop and learn" kind of guy, but where do you draw the line between the latter mentality and requesting help? I don't want to come off as stupid or needy, and I want my lab to be able to depend on me. So far I have been pretty reliable (and that's saying a lot considering I'm a big critic of myself), and I don't want to kill the momentum.

It's always worthwhile to take some time to try to figure it out by yourself. But eventually there's a point where you're unsure how much more time it would take to figure it out by yourself (which could take far longer than you originally think), and when asking for help could be more helpful.  So for analytical or computational research, what are some guidelines for when you should ask for help (from either your adviser, other grad students, or other researchers) when you get stuck?


I have an object and I want to test the name of the property, not the content but the name. I can't achieve it:    theCtns = {   "services": {     "a": {       "image": "a"     },     "b": {       "image": "b"     }   }  alreadyExistSrv = false; regex = new RegExp('(^|\\s)' + "b" + '(?=\\s|$)', 'g'); for (var service in theCtns.services) {   if (regex.test(theCtns.services[service])){     alreadyExistSrv = true;   } }  if(alreadyExistSrv){   console.log("the name is free"); }else{   console.log("the name already exists"); }  alreadyExistSrv = false; regex = new RegExp('(^|\\s)' + "bb" + '(?=\\s|$)', 'g'); for (var service in theCtns.services) {   if (regex.test(theCtns.services[service])){     alreadyExistSrv = true;   } }  if(alreadyExistSrv){   console.log("the name is free"); }else{   console.log("the name already exists"); }     so when I use "b" in regex it should say the name already exists and when I use "bb" it should say the name is free

How do I check if an object has a specific property in JavaScript?  Consider:  x = {'key': 1}; if ( x.hasOwnProperty('key') ) {     //Do this }   Is that the best way to do it?


Is it safe to read loop variable after loop (using Python 2)? My purpose is to check how many iterations in the loop are done.  Here is code to show the idea:  a=[1,2,3,4,5]  for i in range(len(a)):     if a[i] == 2:         break  print i # output is 1, is it safe to read i here?

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


I have an callback function :  ARCONTROLLER_Device_SetVideoStreamCallbacks (deviceController, decoderConfigCallback, didReceiveFrameCallback, NULL , NULL);   Which decoderConfigCallback and didReceiveFrameCallback are function.  When myproject have only a main.h and a main.cpp and define (without any class declaration)      eARCONTROLLER_ERROR didReceiveFrameCallback (ARCONTROLLER_Frame_t *frame, void *customData);   eARCONTROLLER_ERROR decoderConfigCallback (ARCONTROLLER_Stream_Codec_t codec, void *customData);   In .h file . when I call the ARCONTROLLER_Device_SetVideoStreamCallbacks evry thing is ok . but when I'll use a cpp class and do these, I get this error:      invalid use of non-static member function

I'm using an API that requires me to pass a function pointer as a callback. I'm trying to use this API from my class but I'm getting compilation errors.   Here is what I did from my constructor:  m_cRedundencyManager->Init(this->RedundencyManagerCallBack);   This doesn't compile - I get the following error:      Error  8 error C3867: 'CLoggersInfra::RedundencyManagerCallBack': function call missing argument list; use '&CLoggersInfra::RedundencyManagerCallBack' to create a pointer to member   I tried the suggestion to use &CLoggersInfra::RedundencyManagerCallBack - didn't work for me.   Any suggestions/explanation for this??  I'm using VS2008.  Thanks!!


How do I uninstall  ? I don't remember having installed it and it doesn't even work:   There is no entry under Programs and Features in the Control Panel:    I also checked the my Microsoft Office Professional Plus 2013 installer and under Add/Remove features I could find Word, Excel etc, but no Skype.    So how do I get rid of it? oO

I would like to keep "normal" Skype installed.  I have seen many options for "disabling" it such that it doesn't start online, but is there any way to simply uninstall it completely?   edit: thanks to The_IT_Guy_You_Don't_Like I have stopped it from auto-starting, but I will keep this question open as I would still like to be notified if anyone does come up with a solution for a full uninstall


I want to deploy an openstack cloud that is highly available, can I use Ubuntu software for free or do I have to pay an license fee for the software.  My understanding is that that I can use the software but I buy an support contract separately is this correct?  If I use the autopilot for openstack - maas,juju and landscape - is there a node restriction?

I'd like to deploy cloud/install-ubuntu-openstack on a cluster of 15 8-core blades. Will the packaged offered for free at:  allow me to expand to 13 worker nodes?


I have a question in regards to Ransomware type viruses. I know that a number of these viruses use the AES-256 algorithm to encrypt user's files using a randomly generated key. I work in IT support and I had one client the other week who had lost a large number of important files this way but one thing which struck me was that we were able to recover a large number of files via DropBox - about 500 files (~2gb worth of data) and because the virus only changed the extension it was clear which unencrypted file corresponded to which encrypted file.  What I was wondering is; with a large dataset like this where you have both the encrypted and unencrypted data would it be possible to calculate the encryption key for an AES-256 algorithm in a reasonable time? I don't know how these algorithms work but presumably you would have so much data available to compare that it should at least make the task considerably easier should it not?  I'm not intending to rid the world of ransomware but it just interested me!  Cheers,  Olly

At least it's my understanding that AES isn't affected by known-plaintext. Is it immune to such an attack, or just resistant? Does this vary for chosen-plaintext?


I'm having problem with my delete command of my array list while I'm iterating it.  How can I resolve the ConcurrentModificationException?  protected void deleteModeOfPayment(List<List<String>> AllModeOfPayment) {     int ctr=0;     List<String> thePayments =new ArrayList<String>();     Iterator<List<String>> ia=allModeOfPayment.iterator();     while(ia.hasNext()){         thePayments=ia.next();         String refOne= thePayments.get(1).toString().trim();         if(refOne.equals(referenceIdentity)){             log.d("ALVIN","ITEM TO BE DELETE FOUND");             allModeOfPayment.remove(ctr);         }         else{             ctr++;             log.d("ALVIN","ITEM TO BE DELETE NOT FOUND");}         }     } }

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


Gradient descent uses the first order derivative information of the objective function as a function of the parameters. Gradient descent therefore uses only “local” information about the objective function to adapt the neural network parameters.   However, we know that Taylor expansions can be used to give a precise equation between a function and a power series of its $n$-order derivatives at a single point.   So shouldn’t it be theoretically possible to use the local information in a single batch of datapoints point to make a global estimate of the form of the objective function as a function of the parameters?   I am not saying of course that this inference somehow give us certainty about the optimal parameters, but shouldn’t we be able to at least use the information of second, third, ...., $n$’th order derivatives to more efficiently descend to a good parameter vector?

This is something that has been bugging me for a while, and I couldn't find any satisfactory answers online, so here goes:  After reviewing a set of lectures on convex optimization, Newton's method seems to be a far superior algorithm than gradient descent to find globally optimal solutions, because Newton's method can provide a guarantee for its solution, it's affine invariant, and most of all it converges in far fewer steps. Why is second-order optimization algorithms, such as Newton's method not as widely used as stochastic gradient descent in machine learning problems?


I have an htc desire 816 that I just recently bought and it was fine at first but it stared giving me the error message that there was "insufficient space on the device" when I tried to download any app. I went and bought myself an SD card but even with the SD card in it, the phone is still giving me this error message. Any ideas why or how to fix it?

I keep getting the "Low on Space: Application data space is low. To free up" [the rest is cut off] message.  I've moved every app I can over to the SD card, cleared the cache, compacted my K9 mail cache.  Advanced Task Killer (ouch!) says I have 98M Available Memory  File Manager says I have 223M/748M (29%) free.  That's not so bad -- but I'm stuck in the no-updates scenario. The market downloads won't really start, gmail won't update, etc. I've rebooted several times, and nothing changes. Aaaargh.  What can be done, other than uninstalling everything ?


I have downloaded a game called redeclipse from their own website. It's an open source project and hopefully supports Linux too, so I have downloaded it but it came in a .tar.bz2 format.  I extracted it and it consist of several folders. I don't know how to install them from here. I am using Ubuntu 15.04

I was wondering about generic installations of all applications in linux. And what that means? Well, when I was using windows I knew that if I want to install an application I am double-clicking the .exe file and then next,next,next.  In linux, I have understood that maybe there is a common (not generic) way to install any application. Installing from source maybe? Well is there any step by step method that can be used to install  application like in windows or not?  I am asking because I do not want to keep asking the google, how to? So, I have managed to install recently from source freecad from  and I think that it would be a very nice start as common method, right?  But the thing then is where to find the right source and when an application has a very unique method of installation!


Please share if you have a faster approach, but I’ll share what I have so far. I think it reduces to some combinatorial problem, I’d like to see a combinatorial argument if possible.   From computing for small $n$ in wolfram alpha, I think the answer is \begin{align*} \ln(x^2-x+1)&=\sum_{n=1}^\infty (-1)^n \frac{a_n}{n} x^n \\ &= -\frac{1}{1}x^1+\frac{1}{2}x^2-\frac{2}{3}x^3+\frac{1}{4}x^4-\frac{1}{5}x^5+\dots \end{align*} where $a_n=2$ if $n=3,9,27,81,\dots$ and $a_n=1$ otherwise.  We know $$ \ln(1+x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\dots $$  So $$ \ln(1+(x^2-x))=\frac{x}{1}(x-1)-\frac{x^2}{2}(x -1)^2+\frac{x^3}{3}(x-1)^3-\dots$$  Now we compute the coefficient of $x^n$. \begin{align*} x^8 \to -\frac{1}{4}\binom{4}{4}+\frac{1}{5}\binom{5}{3}-\frac{1}{6}\binom{6}{2}+\frac{1}{7}\binom{7}{1}-\frac{1}{8}\binom{8}{8}=\frac{1}{8}\cdot8! \\ x^9 \to \frac{1}{5}\binom{5}{4}-\frac{1}{6}+\frac{1}{7}\binom{7}{2}-\frac{1}{8}\binom{8}{1}+\frac{1}{9}\binom{9}{0}=-\frac{2}{9}\cdot 9! \\ x^{10} \to \frac{1}{5}\binom{5}{5}-\frac{1}{6}\binom{6}{4}+\frac{1}{7}\binom{7}{3}-\frac{1}{8}\binom{8}{2}+\frac{1}{9}\binom{9}{1}-\frac{1}{10}\binom{10}{0}=\frac{1}{10} \cdot 10! \end{align*} In other words, I want this identity: $$ \sum_{r+k=n} (-1)^{r+1} \frac{1}{r} \binom{r}{k} = (-1)^n \frac{a_n}{n} n! $$  with $a_n$ defined as above. Any help to prove the identity would be appreciated. Any other faster approaches would also be appreciated. Thanks!  Also, this LaTeX was a pain to type. Is there a way to reduce it? (Like \frac to \f, \binom to \b)

Is there a closed form expression for $\text{n}^{\text{th}}$ coefficient of Maclaurin series of  $$\ln(1-x+x^2)$$


Through the course of the seven books, we learn more about Snape’s life. We learn that he was a Death Eater, and that he was in love with Harry’s mother, Lily.  Before James and Lily's death, he came to Dumbledore to beg him to protect them.  Dumbledore wanted something from Snape in return.  Was Dumbledore asking to spy on the Death Eaters (meaning he was already a Death Eater)? Or was he asking Snape to become a Death Eater?

Based on discussion in comments on , was Severus Snape a Death Eater (real one, with Dark Mark) before he overheard Sybil give the Prophecy to Dumbledore and relayed it to Voldemort? Or was he made a DE after that?  Canon sources only please (books/interviews/Pottermore)


I'm attempting to upload a profile picture using the uploader tool on Stack Overflow, but the tool appears to be broken. The file is not too large, it's only about 336 kB, which is well under the 2 MB limit, so I know that's not the issue, and even if it was, I'm not getting any error message.  What happens is when I drag the image file I want to upload into the "upload area" instead of uploading the image to the servers, it just opens the local file in my browser, which strikes me as the wrong action. I also don't get any option to browse my hard drive using a normal OS dialogue box to try and upload my profile pic that way either. The drag option is the only way I'm seeing.  Here are some screenshots:  can't insert, image tool completely broken  *Update: This issue seems to be with more than just the profile picture updates, but a general issue with the image upload/insert tool. I can't upload images or link to external images at all. It also loads way too big to fit on the screen, and I have to adjust the zoom feature to see the full popup.  This appears to be a bug with the image uploader tool. I'm using Chrome 58.0.3029.110 on Windows 8.1.  EDIT: I don't see any other questions that are as specifically about this exact issue. There are some similar ones but they're about some other specific issue that's different from what I'm reporting here. I'm reporting a general bug with the image upload tool, and doing a search, I see no other posts reporting this bug. Also, doing a quick check, this issue seems not to have been resolved yet, the tool is still broken in the exact same way as I reported almost a month ago.

When I try to upload an image, I'm presented with the following dialog box,    The dialog box does not allow uploading either from my computer or by posting a link.  This happens only on Chrome browser (running on Windows). Clearing cache and cookies, and restarting computer do not resolve.  Is this just my computer? Or is this a site-wide bug?  Additional info:  Clicking on 'click' to upload does nothing. Dragging an image onto dialog redirects me to the file location on my computer. Clicking 'Add picture' redirects me to http://[SE-domain].com/upload/image?https=true.  UPDATE: A Norton extension for Chrome was the source of the problem.


I am an graduate student. I want to take on an academic name for publishing papers in journals and would likewise be known by that name in the academic circuit. My surname is bit embarrassing and I fear that it can divert people's attention from my work. Therefore, is it possible that I keep my first name and use initials of my last name while publishing papers. I can mention my full name in websites, Google scholar and university profile. I had considered a legal name change but it is bit too much of a hassle from where I come from. Moreover, I am aware that a name change after getting married to husband's surname will not lead to uniformity in papers and can be hassle for people searching my work or for citation purposes. What can be done in this case? Can I take initials of my surname?

I would like to start publishing scientific papers soon. This issue pertains to the name I will use when publishing.   Basically, I would like to keep my personal and academic life separate and my question is "how can I do this?".   To make it clearer why I want to do this, I'll mention that my current legal name is associated with a certain subculture which is quite unconventional. I want people searching/Googling my professional name to only be exposed to my "academic identity", and people searching for my legal name to only be exposed to my "social identity". There is nothing illegal going on. I'll give an example which is close to reality but I'll refrain from giving exact information. The example is that my "social identity" is an author of erotic novels while my "academic identity" writes papers in mathematics. That's not too far from the reality. I would assume I am not the first one to have unconventional interests outside academia, the issue I guess is that my legal name is already tied to such an interest, which is a problem. And yes, this is quite amusing; feel free to laugh  I would be thankful for any ideas which would allow me to fulfill both my passions, despite their disharmony.  Basically, I don't want the names to mix together when someone searches for one of them, but I still want to be able to prove that I wrote the papers (in case I want to use them when applying for a job or for grad school). Hopefully there is some way to achieve this.  Other creative ideas to solve this issue are always welcome; maybe I am focusing too much on the name thing and there are other solutions.    I'll wrap this up with some ideas that I had:   I could just use a pen name for my academic papers I guess. I have finished my BSc lately. Problem here is that if I later want to apply to grad school, and I want to show that I have published papers, it could be hard to prove that I have written them (will it? maybe I'll have a pen-name on the papers but prove ownership by other means? like the email address on the paper?). I could use a different spelling of my legal name on the papers (my legal name is not in English anyway, though I graduated from an English speaking university so my BSc has my name in English). That seems like they could still be linked relatively easily though and one could potentially show up when someone Googles the other name. I could take on a new middle name (e.g. I could use a variation of my late grandfather's name, which I would gladly do) and use that as the first name in published papers (that seems like it could potentially work).   Some more comments   My last name is very common; my first name is very uncommon I am aware of course that if I go to grad school they'll probably Google my legal name as well, and of course people who know me personally would be aware of what I do. It would be nice to limit it to those scenarios though.  Yes, I know I should have thought of this before linking my legal name to unconventional topics. I did not tell the whole story though and there was a reason for that.


If quantum of radation concept is used to define particle nature of radiation, then why it has a frequency?(E=hv)

If you emit a single photon, wait an interval, emit a second photon, wait the same interval, and keep repeating, is the resultant stream of photons describable by the frequency at which you emitted each one? Or does each photon have its own "frequency", independent of the rate of emission? I thought the former description explained the Doppler effect.


I have a number of time series which are derived of same underlying data. However, the data in each comes from a different source, so they may be slightly lagged or differently enriched but essentially representing the same underlying data.  Is it possible to find out if there is one of these series that is odd and severely delayed or out of line?  As an example, imagine you subscribing to market data for the same stock from 5 different providers and trying to find out which is running slow in a dynamic way. However, stock prices are very deterministic so that makes the problem slightly simplified. In my case I am working on data that doesn't have a single source to check.

I am trying to prove/disprove that one time series is leading trend for the other ones. Two time series are (probably) independent and the movements are caused by some (let's assume unknown) common factors. What method would be most appropriate? I also want to find the leading period? Data is quarterly.


I searched a bit but could not find it anywhere. Where do I make it so I don't have to press that Activities button on the top left in order to see my list of apps? either auto hide/show or always visible would be acceptable, but pressing a button is a pain.

I just installed Gnome, and when I click on "Activities" a convenient bar shows up from the left, allowing me to switch to other applications. Unfortunately, the bar hides as soon as I choose an application.  How to make this bar always visible?


I am displaying the date and time in Android with this format: 2015-11-25 23:25:00  How can I change it to the following format? 2015-11-25  I wrote some code ,but not working correctly.      public static Date toDate(boolean isCurrentDate, String dateString) {     Date date=null;     DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");     try {         if (isCurrentDate)             date = new Date();         else             date = formatter.parse(dateString);         System.err.println("Printresult" + formatter.parse(formatter.format(date)));      } catch (ParseException e1) {         e1.printStackTrace();     }      System.err.println("Printresult2" + date.toString());     return date; }   I log and result is like this  Wed Nov 25 00:00:00 GMT+00:00 2015   How i can change date format  like this : ? (2015-11-25)

How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?


I note in the "questions that may already have your answer" section that 22 others have asked similar questions i.e. why can't new members comment.  I read many of them.  I understand your justification for requiring reps.  However, you seem to be overlooking a couple of considerations in making this pronouncement.   Sometimes the reply marked as the answer is just plainly wrong.  This may be because the discussed software has changed or the OP may have implemented the answer in conjunction with other changes and thought it was the answer that fixed the issue.  I have implemented several dozen answers found here that did not fix the issue. I have also seen answers referring to the use of classes and properties that no longer exist. But I am not allowed to inform others of this, or to ask for clarification on everything that was done.  This just happened today and there is nothing I can do about it. Sometime the answers are not clear.  Perhaps it was clear to to people with extensive experience in the tools causing the problem but to a newby you might as well be speaking gibberish.  It would help to be able to ask for some clarification on just what was meant.   Perhaps if you want to prevent extraneous comments you could provide a means just to request clarification.  Maybe a checkbox or something?    One of the explanations you provided is that it is not hard for a user to gain 50 rep points.  Actually it is very hard to do so when your job is not at the cutting edge of technology.  My customer is working with versions of software that are two or three versions out of date.  By the time I become proficient in them, no one else is using it any more.  In addition, cruising the internet to answer questions on StackOverflow, social.microsoft.com, or Experts-Exchange during working hours is a sure fire guarenteed way to get fired.

Users with less than 50 reputation points cannot write comments on questions and answers that they don't own.  Why does this limit exist? But I want to contribute now. What should I do instead? But I can't write a good answer without more information! Shouldn't I be allowed to post comments if I have reputation on a different site? But I saw a new user posting a comment! How did they do it? Why do I need 50 reputation to comment on my own post?   See also:    in the Help Center


I am going to install Xubuntu 12.04 LTS as it has a non-pae kernel that I need to get it to run on my old PC. Is there any way I can update everything other than the kernel once I get it installed?

I am running Ubuntu 12.04.1 LTS i686 on VirtulBox. Every time I check the updates, there's a new Linux kernel. If I install the new kernel, I have to install the Virtulbox Guest Additions again and reboot the server. I don't want to do this every week. I know I can manually uncheck the kernel packages from update manager, but is there a way to skip the kernel update automatically? I found an answer here, but it's for Ubuntu 10. Thanks.


I am trying to understand Object-Oriented JavaScript and stuck with some examples. They seems kind of different conventional OOP.  First of all, are there any difference with those:  function Foo() {     this.bar = function ()     {         // ...     }; }   vs.  function Foo() {}  Foo.prototype.bar = function() {     // ... }   Also, should I use which one? Which one is proper way?    In another example for Factory Pattern.  function Circle() {     this.say = function() { console.log('I am circle.'); }; }  function Square() {     this.say = function() { console.log('I am square.'); }; }  function chooseShape(decision) {     var shape = null;      if (decision === "Circle")     {         shape = Circle; // or Circle.prototype.constructor;     } else if (decision === "Square")     {         shape = Square; // or Square.prototype.constructor;     }      return new shape(); }   If I change those lines with these:  if (decision === "Circle") {     shape = Circle.prototype.constructor; } else if (decision === "Square") {     shape = Square.prototype.constructor; }   They are works as expected but I wonder what is going on under the hood.

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


How can I show that $\mathbb R [x]/(x^5+x-3)$ is not an Integral domain?   To prove that it is not an Integral domain at first I have show that $(x^5+x-3)$ this ideal is not a prime ideal as $\mathbb R [x]$ is a commutative ring with unity. For this I have to show $a(x)b(x)$ product of two polynomials belongs to the ideal $(x^5+x-3)$ but $a(x)\ \&\ b(x) \notin (x^5+x-3)$.  I can't find such $a(x)\ \&\ b(x)$?  Is there any other method to do this?  Please suggest some edit.

I want to prove that every real polynomial of odd degree has at least one real root, using  the intermediate value theorem.  Let $P(x) = x^{2n+1} + a_n x^{2n} + . . . + a_0$ for each $a_i \in \mathbb{R}$ and $n \in \mathbb{N}$.  By the fundamental theorem of algebra I know that $P(x)$ has exactly $2n+1$ complex roots, so  $P(x) = (x+r_1)(x+r_2) . . . (x+r_{2n+1})$ for each $r_i \in \mathbb{C}$  I do not know how to complete this but I do know that, at some point, I probably have to show that each root with imaginary part non zero has to come in conjugate pairs, and since $2n+1$ is odd there is at least $1$ root that is imaginary part $0$ and thus real.


I want to cut out some text out of a rectangle made up of different objects with different patterns as fillings so that I end up with the text in negative space, but whatever I try, it doesn't work. I tried clipping mask, pathfinder, making a mask and inverting it. Nothing seems to work. In the picture, you can see the artboard with the shapes filled with patterns. In black the text that I want to cut out. I already changed the text into outlines. All help and tips are welcome!

I am working on the latest version of Adobe Illustrator CC with all the latest updates installed.  I have the following:    I would like the dome shape in front to act as a mask for the complex shapes behind. How can I do this? The shapes behind are 100s of small shapes and even though I grouped them all as one, I still can't get it to mask when I try various things in the Pathfinder panel.  Any help would be appreciated.


Please how can I delete duplicates in list. Example     dup_list = ['he', 'he', 'sh', 'sh', ' jk', 'jk', 'gf', 'gf'] I want the new list to look like this.  new_list = ['he',  'sh', ' jk', 'gf']   Please can some help me with this.

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


I would like to install kernel 3-11.2 on Ubuntu 13.04 (I found this link git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.11.y ). How do I manage to do it ?Also, is it safe to just install a kernel ?Do I have to backup any important files before proceeding ?What does "Kernel Header Files" stand for ?

Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at . Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?  NOTE:  The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see:


What's the correct form? Example:     Our house floor was sparkling clean.      Our house's floor was sparkling clean.   I always get confused about this. And when I search on Google I always get the two versions.

I am firmly convinced he is innocent and his accusation is the result of the police conspiracy.     I am firmly convinced he is innocent and his accusation is the result of the police's conspiracy.    Which sentence do you think is a better choice?


I am new in development. I need to protect my application constant file from decompilation. How can I do this? Is there anyway, please help me out.

How do I lock compiled Java classes to prevent decompilation?  I know this must be very well discussed topic on the Internet, but I could not come to any conclusion after referring them.  Many people do suggest obfuscator, but they just do renaming of classes, methods, and fields with tough-to-remember character sequences but what about sensitive constant values?  For example, you have developed the encryption and decryption component based on a password based encryption technique. Now in this case, any average Java person can use  to decompile the class file and easily retrieve the password value (defined as constant) as well as  and in turn can decrypt the data by writing small independent program!  Or should such sensitive components be built in native code (for example, VC++) and call them via ?


Ubuntu 20.04 I just installed Ubuntu, dual boot with Windows 10 on a desktop. Due to circumstances, I cannot use Ethernet cables and so I bought a WiFi adapter: Linksys AC1200, WUSB6300, 1030.38.712.2019. On Windows, the adapter worked without even having to use the CD setup .exe it came with. However, Ubuntu can't seem to detect the the device. I read another post  on how to download the driver file on Windows and then transfer it to Linux. The problem : I can't seem to find a driver file of the appropriate version on the official website nor do I know what to download or install. According to some posts, one can install or download from GitHub but, it seems like there aren't any installation methods other than with internet.

I've been using the Linksys USB6300 Adapter but when I switched to Ubuntu it stopped working since its only compatible with Windows. I've tried using ndiswrapper and although it says my windows driver is installed, my device isn't showing up. Anyone know how I could get this wireless network adapter working? Thanks.  lsusb  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 012: ID 05c6:6766 Qualcomm, Inc.  Bus 001 Device 006: ID 0bda:0153 Realtek Semiconductor Corp. Mass Storage Device Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 004: ID 04ca:007d Lite-On Technology Corp.  Bus 001 Device 003: ID 04ca:008a Lite-On Technology Corp.  Bus 001 Device 010: ID 13b1:003f Linksys  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


It is a behaviour that is very difficult to control. We can't sneeze with eyes open. Is it a reflex of brain to protect the eye from possible injury in sneezing motion or the neural pathway for sneezing is programmed to do so?

Google says germs  may fall on eyes from our sneeze but it happens all the time . Also it says it a part of contraction. What may happen if we sneezing wirh our eyes open ?


is doesn’t say if it’s best before or expiring date  It smelled okay.I saw a blog saying that it’s okay to use it,but I’m a bit skeptical about it.

This box of tea has an expiration date which has passed but I would like to know if I can still use it. What do you think?


I have a jtable and it is returning a NullPointerException.  My code looks like this:       for( int i=0 ;i<rows;++i){         if(Stats.getValueAt(i,2)!=null){           observed[i]=Double.parseDouble(Stats.getValueAt(i,2));        }       if(Stats.getValueAt(i,2).equals("  "))         break;      }   It still returns NullPointerException if not filled up. How can I stop this?

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 am very confused about whether to post these types of question on Stack Overflow or Computer Science.SE.     I am aware Computer Science is in beta and would like to support it (constructively), I am also studying computer science. However, my questions are usually about coding specifics, but when it is about a programming principle, which site to I go to?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


It looks like deleted questions are just marked as deleted, but they aren't deleted from DB.  Is there some timefrime when they will be removed or do they stay permanently? If they are permament, is there any of deleting a question completely?

I want my question to be deleted permanently from Stack Overflow for some reasons. I have deleted the question, but when searching in Google, it is still showing up. I don't have a reputation over 10,000 to delete. But I want it to be deleted from my account. Can anybody help me on this?


I currently use an old wireless router to connect two wifi devices.  The two devices connect to the SSID of the router, then the router allows traffic between them.  No internet connection/uplink is present.  Can I do the same with an android phone instead of the router?  I can't enable mobile hotspot since I'm not paying my carrier for this feature.  Paying the carrier might work but I shouldn't have to if I'm not using internet.  Also, mobile hotspot might block traffic between two devices on the mobile hotspot LAN, since the typical use case is to allow devices to contact internet but not necessarily each other.  Anyone figured how to do this?  HTC One M7, T-mobile 5.0 firmware, no root.

I want to use my Android device as a network server. In the same kind of way you would make it a Wi-Fi hotspot, but I don't want to allow connected computers to access the internet, I would like them to be able to communicate together.  Possible uses:   Playing games via LAN (e.g., Quake) Allow computers to share files Bonjour (Macs) etc...   Is there any way to achieve this? Any apps out there that will set up a wireless network server?


How do I use finite induction to prove that $$a^n-b^n=(a-b) (\sum_{i=0}^{n-1}a^ib^{n-1-i}), \forall a,b\in \Bbb{R}\space \text{and} \space \forall n \in \Bbb{N}?$$ Ok, for $n=2$ it's fine. $a^2-b^2=(a-b)(b+a)=(a-b)(\sum_{i=0}^1a^ib^{n-1-i})$. Right, then suppose the equality valid for n. But, how to handle with $a^{n+1}-b^{n+1}$? How to use the induction hypothesis here?    Need some help!    If this question has already been answered, please, give me the link... Sorry about that.

I'm trying to prove by induction that for all $a,b \in \mathbb{Z}$ and $n \in \mathbb{N}$, that $(a-b) \mid (a^n-b^n)$. The base case was trivial, so I started by assuming that $(a-b) \mid (a^n-b^n)$. But I found that: \begin{align*} (a-b)(a^{n-1}+a^{n-2}b + a^{n-3}b^2+...+b^{n-1}) &= a^n-b^n. \end{align*}  Doesn't this imply that $(a-b) \mid (a^n-b^n)$ as $a^{n-1}+a^{n-2}b+\dots+b^{n-1}$ is clearly an integer? This obviously isn't a proof by induction, but is there anything wrong with taking this approach to prove this result, other than the fact that it isn't what is being asked?   Aside, I'm having trouble getting started with the proof by induction. I've tried making the above equivalence useful during the induction step, but it doesn't seem to be helpful, so any hints would be greatly appreciated!


If $3 \sin B + 5 \cos B =5$ then prove that $3\cos B-5\sin B=\pm 3$.  My Attempt  Given: $$3\sin B+5\cos B=5$$ Dividing both sides by $\cos B$: $$3\tan B+5=5\sec B$$ Squaring on both sides: $$9\tan^2 B+30\tan B+ 25=25 \sec^2 B$$  Now, what should I do next?

Another problem that I already wasted hours on. Given $$4\sinθ +3\cosθ  = 5$$  Find   $$4\cosθ -3\sinθ$$  Help me guys (PS:I'm not that good in maths)


Sometimes I get an excellent throw when catching a Pokemon. What did I do? Did I hit the Pokemon on the head or is because of the catching circle?

I found , earlier, and found out that I can throw a curveball at pokémon to earn an increased experience bonus.  I have since noticed two more bonuses: "Great" and "Nice". I had assumed the bonuses were for throwing a pokéball with the 'catch circle' closer to the center, which according to the FAQ, increases the chances of actually catching the pokémon.  However, I have since noticed that the 'catch circle' is actually bigger in cases where I have earned a "Great" bonus. Despite appearing to be a less powerful throw, I earn more experience than when I earn a "Nice" bonus. "Great" nets me 50 experience, while "Nice" only nets 10 experience.  What are the possible catch bonuses, and how much experience do they reward?  For bonus points, every so often I am awarded an additional 10 experience points that are not accounted for on the experience screen. The screen lists my bonuses, and tells me how much experience I have earned, but I am clearly rewarded additional experience when it is added to my player. Assuming this is another catch bonus, what could this be?


I am working on Kaggle's house pricing exercise and I cannot understand something. I watch and read articles on normality tests, and more specifically JB test, but I cannot understand why according to my understanding of that test I need to reject the null hypothesis (which is the normal distribution) and conclude it is a non-normal distribution when the distribution graph shows a very close result to a normal distribution?  Jarque-Bera test = 171.236, with p-value 6.55459e-038   So from that result, if I am correct, I reject null and conclude the data are not normally distributed. But then this is the distribution graph (n=1460):      PS. The Y var is log of price and the x is year. Could the problem be that year is not a continuous variable?

I created a histogram for Respondent Age and managed to get a very nice bell-shaped curve, from which I concluded that the distribution is normal.  Then I ran the normality test in SPSS, with n = 169. The p-value (Sig.) of the Kolmogorov-Smirnov test is less than 0.05 and so the data have    violated the assumption of normality.   Why does the test indicate that the age distribution is not normal, but the histogram showed bell-shaped curve, which from my understanding is normal? Which result should I follow?


In a book on Fourier Analysis:    Question: This assertion follows without proof. Why is it so? I see that if $n = 0$, then $e^{-i 0 \theta} = 1$, so that  $$ {1 \over 2 \pi} \int_{- \pi}^\pi \theta e^{-in\theta} d\theta = {1 \over 2 \pi} 0 = 0 $$  But what about when $n \ne 0$?

In Stein's Fourier Analysis i'm having trouble Justifying the following calculations for the Fourier Coefficients in $(1.)$  $(1.)$  Let $f(\theta) = \theta$ for $ -\pi \leq \theta \leq \pi$ in the case when $n \neq 0$:  $$f(n)=\frac{1}{2 \pi}\int_{-\pi}^{\pi}\theta e^{-in \theta} d \theta = \frac{1}{2 \pi}[-\frac{\theta}{in}e^{-in \theta}]_{-\pi}^{\pi} + \frac{1}{2 \pi in} \int_{-\pi}^{\pi}e^{-in\theta}d \theta = \frac{(-1)^{n+1}}{in} $$  Then the Fourier Series of $f$ is given by:  $$ f(n) = \sum_{n \neq 0}  \frac{(-1)^{n+1}}{in}$$


My VPS is under a DDoS attack.  I cannot access RDP, and I cannot take it offline, or access it in any way at all.  What can I do?  They are not trying to bruteforce, just trying to stop access to the VPS.  I don't know if maybe the datacenter messed up or something, but the VPS is online and denying all requests as is normal when under DDoS.  Is there anything that I or my dedicated hosting provider can look at in the logs?  How should I approach forensics after the fact?  I don't know much about DDoS attacks, do they usually stop after a few days?  Is there an existing anti-ddos program or something?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


I have read that Dark energy composes roughly 68% of the Universe and that Dark matter composes about27% and everything else is less than 5%.  Where and how did they come up with these figures?

I can understand how the percentage of dark matter compared to ordinary matter is calculated, because the amount of dark matter has a clear gravitational effect on the ordinary matter in a Galaxy.  However, calculating the percentage of  in the universe seems less obvious. Is it something to do with the rate of expansion of space-time?  Please explain in lay-mans terms, I've never learnt any undergraduate level cosmology.


Read-only file system error occurs while I am working on Ubuntu 18.04. Then I restarted my system, ran fsck /dev/sda2, and after that my system isn't working. Error is Failed to mount early API filesystem.

Problem on a Mac Mini Mid 2011. I have looked through other articles and couldn't get help. Any help?


I am having a sudden problem with my vectors after being rasterized within Illustrator. The rasterized image becomes pixelated. If anyone might have an idea as to what might have happened all of a sudden, I would greatly appreciate the help.   Thank you and here are some reference screenshots of what I mean.

This has been puzzling me for a few days now, and I asked a graphic designer I knew before trying here and haven't been able to solve it yet. It's quite weird so please bear with me for a bit.  I am using Adobe Illustrator to create a logo, and I have something that can potentially work. I have used only the pen tool with strokes (no fill), but the issue is, when I view the logo at 100%, it looks pixellated! I know vectors should not even be able to appear pixellated, but they are. Here is the screenshot from AI, without exporting to anything:     That was just done using the snipping tool within Windows, and it's at 100% zoom.  I have anti-aliasing turned on from Edit > Preferences > General, and the document resolution is at 300 ppi (I get the same result with 72 ppi).   Could anyone help me with this?   If relevant: Using CS6, and have a 24 inch Dell U2412M at 1920x1200 resolution. I do have a 21.6" Samsung at 1680x1050 and I get the same result there as well. Let me know if you need any other settings, or if you would like the file, I'd be happy to provide it to be able to solve this problem.


I have a typical clone() pattern like:  class Base {     virtual Base *clone() const; };  class Derived : public Base {     Derived *clone() override;     // ^-- note the contravariant type! };   Now I would like to do away with dumb pointers, so I'd like to replace the return type with std::unique_ptr:  class Base {     virtual std::unique_ptr<Base> clone() const; };  class Derived {     virtual std::unique_ptr</* Can't be Derived here */> clone() const; };   But std::unique_ptr<Base> is not a base of std::unique_ptr<Derived>, so the method can't return it. But there are other methods in Derived that need to call clone() and need to treat the result as Derived (which they can be certain there is).  Now std::shared_ptr at least has the std::static_pointer_cast. But that does not apply to unique_ptr. What is the cleanest way to do this?

I have code like this:  class RetInterface {...}  class Ret1: public RetInterface {...}  class AInterface {   public:      virtual boost::shared_ptr<RetInterface> get_r() const = 0;      ... };  class A1: public AInterface {   public:      boost::shared_ptr<Ret1> get_r() const {...}      ... };   This code does not compile.  In visual studio it raises     C2555: overriding virtual function return type differs and is not   covariant   If I do not use boost::shared_ptr but return raw pointers, the code compiles (I understand this is due to  in C++). I can see the problem is because boost::shared_ptr of Ret1 is not derived from boost::shared_ptr of RetInterface. But I want to return boost::shared_ptr of Ret1 for use in other classes, else I must cast the returned value after the return.      Am I doing something wrong?  If not, why is the language like this - it should be extensible to handle conversion between smart pointers in this scenario? Is there a desirable workaround?


I want to have a question mark over the arrow "\to". I cannot use "\limits^{?}" command because "\to" is not a mathematical operator.  How can you have a question mark over the arrow?

I would like to put something at the top of the \longrightarrow, something like \longrightarrow^{k\rightarrow\infty}. However, instead of putting k\rightarrow\infty on the top right corner, I would like to put it in the middle on the top of \longrightarrow. Could someone help me?


Some times I notice I have a new badge by the number in the header, but there is no notification 'You've earned X badge, see it in your profile'. Over time I got the impression, that this happens only for badges I already have on SO (for example I've earned Citizen Patrol, but there was no notification for this; but when I earned Nice answer there was clear notification for it, since I didn't earn this at SO). Is it the case, or something wrong with me? If it's the case, why?

Yesterday, I have received two : Revival, and Self-Learner. However I was only notified of the Revival badge, because apparently the Self-Learner badge is not considered "".  What badges have their notification suppressed if the user has a 200-rep account somewhere on the Stack Exchange network, i.e. they won't trigger a new item in our achievements dialog?


I am a beginner and have not been able to find a solution on Google for days. That is why I have come to Stack Overflow today and ask for support. Once again, please excuse if the code or my question isn't on a high level yet, I'm trying to get there. The following code tells me that the variable playerSelection cannot be found. To see whether this value is generated at all, I built in console.log(playerSelection) and see that it is generated within this function. I suspect that the variable playerSelection is only available within this function and cannot be found outside of this function. That's how I came up with this question: How can I make this variable accessible to the other function playRound?   var buttons = document.getElementsByClassName("button");  for (i of buttons) {   i.addEventListener("click", function(e) {     let playerSelection = e.srcElement.value;     console.log(playerSelection);     playRound();   }) };  function computerPlay() {   const shapes = ['rock', 'paper', 'scissors'];   const random = Math.floor(Math.random() * shapes.length);   console.log(shapes[random]); };  let computerSelection = computerPlay();  function playRound() {   if (playerSelection === computerSelection) {     console.log("Tie! Repeat to break the tie");   } else if (playerSelection === 'rock' && computerSelection === 'paper') {     console.log("You Lose! Paper beats Rock");   } else if (playerSelection === 'rock' && computerSelection === 'scissors') {     console.log("You Win! Rock beats Scissors");   } else if (playerSelection === 'paper' && computerSelection === 'rock') {     console.log("You Win! Paper beats Rock");   } else if (playerSelection === 'paper' && computerSelection === 'scissors') {     console.log("You Lose! Scissors beats Paper");   } else if (playerSelection === 'scissors' && computerSelection === 'rock') {     console.log("You Lose! Rock beats Scissors");   } else if (playerSelection === 'scissors' && computerSelection === 'paper') {     console.log("You Win! Scissors beats Paper");   } else {     console.log("Invalid input! Please try again");   } }; <div class="buttons">   <button class="button" value="rock">Rock</button>   <button class="button" value="paper">Paper</button>   <button class="button" value="scissors">Scissor</button> </div>

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


The following expression is often found in a derivation of the Lagrangian equations: $$ \dfrac{\partial  \bf{v}}{\partial \dot{q_j}} = \dfrac{\partial \bf{r}}{\partial q_j},$$  where $\bf{v}=\bf{\dot{r}}$. Since $$\textbf{v} = \sum_{j = 1}^{n} \dfrac{\partial \bf{r} }{\partial q_j} \dot{q_j},$$  with $n$ the number of degrees of freedom, the partial derivative of $\bf v$ with respect to $\dot q_j$ is simply the coefficient of $\dot q_j$ of the $j$-th term in the sum. Which is $$\dfrac{\partial \bf{r}}{\partial q_j}.$$ This is possible because all the $q_j$'s for all $ 1 \leq j \leq n$ are independent, and so are their time-derivatives. $\blacksquare$  I ask this here because I recently saw a video on Youtube where a guy proved this, but he did it differently and his method seemed longer and more complicated than what I'm doing here. So I wonder if I was too blunt somewhere in the proof.

Why is the following equation true? $$\frac{\partial \mathbf{v}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$ where $\mathbf{v}_i$ is velocity, $\mathbf{r}_i$ is the displacement, and $q_j$ is the generalized coordinate into which $\mathbf{r}_i$ is transformed. In reading further, I find that it's related to $$ \mathbf{v}_i \equiv \frac{\mathrm{d}\mathbf{r}_i}{\mathrm{d}t} = \sum_k \frac{\partial \mathbf{r}_i}{\partial q_k}\dot{q}_k + \frac{\partial \mathbf{r}_i}{\partial t} $$ I know that in transforming the virtual displacement $\delta\mathbf{r}_i$ into generalized coordinates, I can use $$ \delta\mathbf{r}_i = \sum_k \frac{\partial\mathbf{r}_i}{\partial q_k}\dot{q}_k $$ The first equation above is of course equivalent to $$\frac{\partial \dot{\mathbf{r}}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$ I'm not sure why the dots vanish just like that. How do these all connect? In a non-mathematical explanation, I can understand that as $q_j$ changes, $\mathbf{r}_i$ changes as well. In the same way, as $\dot{q}_j$ changes, $\mathbf{v}_i$ changes, too. I'd like to know, mathematically, how these changes (for $\mathbf{r}_i$ and $\mathbf{v}_i$) turn out to be equal.


I'm updating my CV and I want to list some software tools along with what have I used each tool for. However, I'm having some trouble with the following choices:   "Video games creation" vs "Creation of video games" vs "Creating video games". "Vector graphics edition" vs "Edition of vector graphics" vs "Editing vector graphics". "Audio recording and edition" vs "Recording and edition of audio" vs "Recording and editing audio" .   Which one sounds better or is more correct? Any rules or hints on when to use each option (specially between the first and second option of each case; the use of "of" is always complicated)?

I would be very grateful for some advice on how to decide whether to use an attributive noun or the "of genitive" (periphrastic genitive).  It seems to me that an attributive noun is generally preferable, except when it leads to ambiguity, often due to the combination of several modifiers with mixed dependent relationships.  Additionally, the of-genitive, when used stand-alone, seems to impart a more formal tone, a higher register.  Simple examples (preferred first, less-preferred second):  The department secretary vs. the secretary of the department.  But:  The excellent secretary of the department vs. the excellent department secretary.  Any additional guidelines would be most welcome.


I would like to use the package geometry since it's a convenient tool to change margin locally in my book document. The problem is that the simple fact to call it in the preamble modifies the default margins everywhere.  Is it possible to load the package without modifying LaTeX default margins?  Thank you for your help.

Is it possible, using the geometry package, to store (and restore) the original layout specified by the document class (in my case, the class is report)?    Here is some context.  I have been editing a long document in the default page layout for the report document class.  Now I found out that I need a title page.  There is a particular title page layout, and in fact, it works perfectly if I just load the geometry package with its default and change just two settings.  But then I want the rest of the document back in the original page layout!  I can't do something like \restoregeometry, since I think geometry just overrides the class options... i.e. there doesn't seem to be anything to restore.  Similarly, it seems I can't use \savegeometry or \loadgeometry.  So how can I get back to my original layout for the rest of the document without painstakingly hard-coding in all of the specific page layout variables?    Here is a minimum working example:   \documentclass[a4paper,10pt]{report}  \RequirePackage[a4paper,dvips]{geometry} % g1 \geometry{top=2.5cm,bottom=2.3cm}        % g2  \begin{document}  \input{the_title_page}  \SomeGeometryCommandsHere  % g3  \input{the_rest}  \end{document}   If I run the above code with the lines labeled "g" commented out, then the title page does not have the correct page layout, but the rest of the document is formatted perfectly.    If I leave lines g1 and g2 uncommented, then the title page has exactly the correct layout, but no matter what I put for g3 (e.g. \loadgeometry, \restoregeometry, etc.) I can't recover the original layout that I had when g1 and g2 were commented.  Of course, I could completely specify the original layout exhaustively in line g3, and this should in principle work.  However, I spent almost one hour on this last night and when I still couldn't get it formated correctly I decided I really needed a smarter solution.


I am trying to create a template class library in C++. The include file as follows foo.h #pragma once #include <iostream>  template<class T> class Foo {     Foo{}     ~Foo{}      template<typename B>      void bar1(B var);      void bar2(); }  Class functions are implemented in this file, foo.hpp #ifndef _FOO_H_ #define _FOO_H_  #include "foo.h"  template<class T> template<typename B>  void Foo<T>::bar1(B var) {     // code }  template<class T> void Foo<T>::bar2() {     // code }  #define  INSTANTIATE(T) template class foo<T> #endif  To link the template class foo.cpp #include "foo.hpp"  INSTANTIATE(int)  and in the CMakeLists.txt I have added the add_library(foo foo.cpp) and installed the library with all the dependency and it is building fine. Now in the implementation implementation.cpp #include "foo.h"  int main(int argc, char** argv) {     Foo<int> foo;     foo.bar2();     return 0; }  This executable file is building fine with no error. However, alternatively when I use the other function as follows, implementation.cpp #include "foo.h"  int main(int argc, char** argv) {     Foo<int> foo;     std::string a = "hello";     foo.bar2(a.c_str());      return 0; }  I am getting the undefined reference to bar2 function error during the build. Can someone please help with this problem. Thank you in advance. Best Regards, Vishnu

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


I have a code snippet  String sql = "SELECT * FROM merchantlist ORDER BY TransactionCount DESC LIMIT 10";     Connection conn = null;      try {         List<String> merchantList = null;         conn = dataSource.getConnection();         PreparedStatement ps = conn.prepareStatement(sql);         ResultSet rs = ps.executeQuery();         if (rs.next()) {             merchantList.add(new String(rs.getString("MerchantName")));         }         rs.close();         ps.close();         return new TopMerchants(merchantList);     } catch (SQLException e) {         throw new RuntimeException(e);     } finally {         if (conn != null) {             try {             conn.close();             } catch (SQLException e) {}         }     } }   I get an exception while running this on Tomcat -   java.lang.NullPointerException com.cybs.impactanalysis.dao.impl.TopMerchantsDAOImpl.retrieveMerchantList(TopMerchantsDAOImpl.java:35) com.cybs.impactanalysis.controller.MerchantMonitoring.MerchantMonitoring(MerchantMonitoring.java:22) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   When I run the stored proc , I get 2 rows as output. The datatypes are configured properly (MerchantName column is VARCHAR(20))  How do I fix this issue? I tried to put it in debug mode but I cannot see the values in ResultSet

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?


Do adventure cards have summoning sickness?

Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site)


How to fix the java.lang.NullPointerException in this code using Eclipse 2019-12, java 8, spring boot and mysql?  In the repository:  public List<User> findByFirstNameAndName(String fname, String name) {          String sql = "SELECT Prenom Nom FROM electeur WHERE Prenom = ? AND Nom = ?";          List<User> users = jdbcTemplate.query(                 sql,                 new UserRowMapper());          return users;      }   In the controller:  BindingResult result; JDBCTemplate userJDBC;     List<User> exist = userJDBC.findByFirstNameAndName(user.getFirstName(), user.getName());                           if (exist != null) {                  result.reject("User exists already");              }               else                 return createUser(user);         }   The code is for finding in the database if the first name and name exist already before creating a new user, and the line that causes the exception is:   List<User> exist = userJDBC.findByFirstNameAndName(user.getFirstName(), user.getName());


I have been using commands like  gedit some_script.pl & for many years.  However, I would like to force the program to automatically run in the background, so that I would get the command line back, and I don't type &.  How can I alter some setting somewhere so that when I type  gedit somescript.pl   will instead get the behavior of   gedit somescript.pl &?

For some processes I use, I almost always run them as background processes by indicating that with "&" at the end. Is there a way to make this standard? Would it be possible to use the alias command in the .bashrc file to do this?


I have to free some space in my small SSD with Windows 10, can I move SoftwareDistribution  folder of windows updates to another volume using link? If yes, may I use symbolic, hard or junction?

On my personal home PC I want to change where windows downloads it updates to: C:\ProgramData\Package Cache(in folders with long ID numbers).  When installing Python I found that it needs an update (). The Python installer goes ahead and tries to run the update but can fail with security errors unless run as admin - I don't want to have to run as admin, especially since I am installing to a non-system access area on D:\  So my question is, can I get windows to use a different folder so that I don't need to run with full admin rights?   for example: D:\myWindowsUpdates


Rather than subsubsection is there a sectionlevel{2}? I am writing a rather large monograph and I need levels as deep as 10 such as: 1.2.3.4.5.6.7.8.9.1: This is a very deep section.  I have set \secnumdepth{10} but how do I use it? Must I write a package of my own? How can I use the \label and \ref capabilities or must I re-implement these in my own package too?

I am a novice in LaTeX and I have one question.  Can someone tell me what if you want more heading's in LaTeX. Like 5 or 10 or even 15. Is there a package for that?


When working on my character model, I wish to mirror half of the character. When I mirror the half of the character, the mirror does not go over symmetrically.     What are the settings to have the mesh mirror symmetrically?

I have 2 objects a face and an ear. Mirror modifier works fine for the face. But when I use mirror modifier to duplicate the ear on X axis, it duplicates on Z axis. And when I use mirror modifier on Z axis it mirrors on X axis. How to correct the axis orientation?


Our organisation currently relies on setting up forwarders with our web host to direct emails sent to (e.g.) @organisation.com to and from gmail accounts. While our current web host allows the option to set up forwarders, we have frequent issues with all our emails bouncing, and the host has warned us that their forwarders are not designed to send outside their servers.  Does anybody know of any alternatives that would allow us to continue forwarding to and from gmail without having to use a client like Google Snatch, which would be problematic for us? Thank you.

This is a "catch-all" question designed to serve as an answer for all questions about choosing web hosting.  Pro Webmasters no longer accepts new questions about how to choose hosting.  All future questions pertaining to finding web hosting should be closed as a duplicate of this question. For more information about this policy please see .    How to find web hosting that meets my requirements?  What we're looking for in answers to this question are the basics about web hosting:   What is web hosting? What is the difference between shared, VPS, and dedicated hosting? How does a content delivery network relate to web hosting? Anything else you feel is helpful in finding a web host.   What we do not want is:   Endorsements or recommendations for specific web hosts We do not want your experience or other subjective information (just the facts please)


I'm really wanting to make use of LaTeX3's regular expressions package (l3regex) but am struggling to use LaTeX3 commands in general. Code that works on its own in the preamble fails when embedded in a macro. For example, why does this fail?  \documentclass[a4paper,10pt]{article}  \usepackage{expl3}  \newcommand* \blahblah[0] {%   \ExplSyntaxOn   \tl_set:Nn \l_my_one_tl { That~cat. }   \ExplSyntaxOff }  \begin{document} \blahblah \end{document}   By contrast, if you take the contents of the \blahblah macro and put them outside of the \newcommand*, then everything works fine. There's something about being inside of the macro definition that's causing problems.  What am I missing?

After hours of banging my brain against my skull, I narrowed down an issue I'm having to the fact that \makeatletter doesn't work inside \newcommand. Commands that I call after \makeatletter are registered as undefined, as if \makeatletter didn't do anything.  Why is this the case?  In the example below, I define two commands. Calling one of them from the document body causes the undefined error, while the other doesn't.  \documentclass[11pt]{book} \usepackage{kvsetkeys}  \newcommand{\commandThatFails}{     \makeatletter \comma@parse{}{} \makeatother }  \makeatletter     \newcommand{\commandThatWorks}{         \comma@parse{}{}     } \makeatother  \begin{document}  Hi there.  \commandThatFails \commandThatWorks  \end{document}


When I'm browsing the mathematics SE, all the titles have horrendous looking latex code that looks beautiful when compiled, except it's not compiled in titles (only in body).

TeX support works fine in question and answer bodies, and comments can be rendered manually by tapping and selecting Render MathJax. See related question .  However, the titles are not rendered which makes the browsing experience less than perfect. See screenshot below.   Are there any plans to implement MathJax support in titles?  (I'm running Stack Exhange iOS App Version 1.0.0 on an iPhone 4S with iOS 7.1.1)    EDIT: I was just informed about  asking for the same functionality for the Android app. I guess I shouldn't hope too much then...


Please i want to understand this code, according to my understanding of super in class base programming i know its being used on the base class to access methods and attributes of the base class but here like in this code below   class Base:    def __init__(self,name, age):        self.name = name         self.age = age  class Sub(Base):         def __init__(self,name, age, first_name):         super().__init__(name, age)         self.first_name = first_name   But i cannot understand this code below seeing the super being called on the same class with the init function, what does this mean and how does it affect the program   class MyClass(object): def __init__(self):     super(MyClass, self).__init__()     self.numeric_var = 1

What's the difference between:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   and:  class Child(SomeBaseClass):     def __init__(self):         SomeBaseClass.__init__(self)   I've seen super being used quite a lot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation.


I want to retrieve the raw markdown/source of a rejected suggested edit, which is the code in the text box above 'Post Your Question', i.e. the raw markdown/source, not the rendered output:

Is there any way to view rejected edit source?  I have recently suggested an edit which was rejected. All three reviewers decided it better be a comment or an answer. So, how does one find rejected edit source in order to not type everything from scratch especially formatting, citations and links?  Fortunately after seeing first reject I navigated to mine-edited answer, which still displayed my edits, allowing me via edit link obtain source code of my edit.  Now that my edit was rejected it is impossible to obtain its source from any UI. "Suggested Edits" view has only "rendered output" and "markdown" selectors. Although I must admit, markdown diff is good as last resort, it is not good enough. To be more specific, it does not allow easy copying as selection originally started at suggested edit tends to eventually grab original paragraphs if diff is complex.    Searching the Meta similar question was found:  Alas the answer there does not provide any hint on obtaining the source of suggested edit. Thus the answer there could be satisfactory for the problem raised there, but cannot address the issue in this question, so it is not a duplicate.  In the end, if this is not implemented yet, I'm asking to implement a view to see the raw source of suggested edits.


Suppose $|f(z)|\leq 1$ for $|z|<1$ and $f$ is analytic. By considering the function $g:D\to D$ defined by $g(z)=\frac{f(z)-a}{1-\overline{a}f(z)}$ where $f(0)=0$, prove that $\frac{|f(0)|-|z|}{1+|f(0)||z|}\leq |f(z)|\leq \frac{|f(0)|+|z|}{1-|f(0)||z|}$ for $|z|<1$. $g(0)=0$ obvius but I can't prove that $|g(z)|\leq 1$ to be able to use  Lemma's Schwartz and conclude. Why is it fulfilled? I can't prove this part.

If $f:\mathbb{D}\rightarrow\mathbb{D}$ is holomorphic then prove that   $$\frac{|f(0)|-|z|}{1 + |f(0)||z|} \leq|f(z)| \leq\frac{|f(0)| + |z|}{1 - |f(0)||z|} $$   I have been wracking my brain for hours and am out of ideas.  The hypothesis seems to suggest an application of the Schwarz lemma but I cannot find a suitable function - I've tried functions of the form $$\frac{f(z) - f(0)}{\mbox{scale factor}}$$ and none have worked.  I also tried working backwards to obtain an inequality and got $$-|z|\leq|f(z)||1\pm f(0)z| - |f(0)|\leq |z|\;\;\;\mbox{(*) }$$ If I could prove $$|f(z)[1\pm f(0)z] - f(0)|\leq 1$$ then I could obtain (*), but with so few conditions on $f$ I have no idea how to proceed.


Running SQL Server 2012 standard, using both replication data and log shipping. Transaction log backups are created every few minutes.  This question is NOT about the amount of space reported by the file system.  We have a log table with four VARCHAR(max) columns. The table currently holds roughly 180 GB of data.  The table grows at a rate of roughly 10 GB per month.    In an attempt to free up space for future growth, I recently deleted (in chunks over a 36 hour period) close to 30% of the data.  Based on the size of the table and the number of rows being removed, I expected the size of the table to be reduced by roughly 55-60 GB.  I verified this by taking a sample and calculating the average row size, and then multiplying that by the number of rows to be removed.  However, after finishing the delete, the table size has not changed.  While I am not looking to shrink the size of the .mdf file, I did check to see if the database had any free space that could be shrunk, but there is 0% free space.  So - I am confused.  I've verified the data that I deleted from the table is no longer there. I even compared it against a backup to get a before & after.  The number of rows in the database has changed, but the data space for the table has not decreased.    My questions then are:  1) Why did deleting data from the table not reduce the size of the table? 2) What can I do to actually reduce the size of the table?  EDIT:   I am determining the space used by the table by calling sp_spaceused 'tablename'. I have used dbcc updateusage (0, tablename) prior to calling sp_spaceused. I am NOT trying to free up disk space - although an analysis indicates that there is 0% space available to be reclaimed. I have run an index reorganize with ( LOB_COMPACTION = ON ). Fragmentation is below 1%. The table is not a heap. Table definition below.     CREATE TABLE [dbo].[LARGE_LOG_TABLE](   [ID] [varchar](36) NOT NULL,   [DOC_ID] [varchar](36) NOT NULL,   [REQUEST_DATA] [varchar](max) NULL,   [REQUEST_DATA_XSLT] [varchar](max) NULL,   [RESPONSE_DATA] [varchar](max) NULL,   [RESPONSE_DATA_XSLT] [varchar](max) NULL,   [ACTIVE_FLAG] [varchar](1) NULL,   [CREATED_BY] [varchar](100) NULL,   [DATE_CREATED] [datetime] NULL CONSTRAINT [DF_LARGE_LOG_TABLE_CREATE_DT]  DEFAULT (getdate()),   [USER_LAST_UPDATED] [varchar](100) NULL,   [DATE_LAST_UPDATED] [datetime] NULL CONSTRAINT [DF_LARGE_LOG_TABLE_LAST_DT]  DEFAULT (getdate()),  CONSTRAINT [PK_LARGE_LOG_TABLE] PRIMARY KEY CLUSTERED   ( [ID] ASC ) ON [PRIMARY] )   ON [PRIMARY]   TEXTIMAGE_ON [PRIMARY]    EDIT 2:  SELECT * FROM sys.dm_db_index_physical_stats (db_id(), OBJECT_ID('database..LARGE_LOG_TABLE'), default, default, default)    EDIT 3:  The answers provided to the question at  refer to freeing up space on disk / shrinking the physical size of the database. This question refers to removing rows containing LOB data and yet the database (internally) shows the LOB data has not been removed.  We removed 600000 rows of data, but the space used on the table level (not the file system level) was only reduced by a few bytes - not the expected 60 GB. This question is about removing the LOB data.

Our SQL Server (version 2012) is housed on a cloud server, for which we pay whenever we need additional space. We determined that we could delete some of the data to prevent the need for continually buying more storage.    The delete queries did not appear to open space - the size of the drive and available space doesn't change.    It is my understanding that even though available space has not changed, available space is created by the delete query. So new records imported can populate places where data was deleted. Is this correct?  I understand the Shrink Database is not a good choice.  Should I run -  sp_clean_db_file_free_space based on the following advice?


Every time I go to render my image it comes out looking like the image provided. I even tried to copy the model from one scene to another to see if it was my scene that was bugged. I only have one camera in the scene. I'm rendering with Eevee.

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


I would like to move my player from one position to another position using key detection. I would like to know how I can make the player movement smooth.  Code:  if (Input.GetKeyDown(KeyCode.A))     {         xSpeed = -1f;         ySpeed = 0f;         X = X + xSpeed;         Y = Y + ySpeed;         Vector3 NewPos = new Vector3(X, Y, 0);         gameObject.transform.position = NewPos;     }     else if (Input.GetKeyDown(KeyCode.D))     {         xSpeed = 1f;         ySpeed = 0f;         X = X + xSpeed;         Y = Y + ySpeed;         Vector3 NewPos = new Vector3(X, Y, 0);         gameObject.transform.position = NewPos;     }     else if (Input.GetKeyDown(KeyCode.W))     {         xSpeed = 0f;         ySpeed = 1f;         X = X + xSpeed;         Y = Y + ySpeed;         Vector3 NewPos = new Vector3(X, Y, 0);         gameObject.transform.position = NewPos;     }      else if (Input.GetKeyDown(KeyCode.S))     {         xSpeed = 0f;         ySpeed = -1f;         X = X + xSpeed;         Y = Y + ySpeed;         Vector3 NewPos = new Vector3(X, Y, 0);         gameObject.transform.position = NewPos;     }

I'm using this code in my script to move a gameobject:  void Update () {      // Move the object forward along its z axis 1 unit/second.     transform.position = new Vector2(transform.position.x , transform.position.y - 0.2f);  }   On screen the movement is a bit jaggy and not fluent.  Is there a different approach?  Hint: Please do not suggestion to use rigidbody functions since adding rigidbody would disrupt everything I did.  Can I use FxedUpdate?  Mirza


My father-in-law was hospitalized for a heart attack. He doesn't have money to pay all the outstanding bills and did not reply to any bills. He wants to return to the US but without travel insurance. Because of the medical bills, this will he be prevented from re-entering the US?

While on vacation in the US last year, my wife and I was in a traffic accident. My wife had to spend more than a week in hospital before we could fly home. Our insurance is covering everything, but we keep receiving more bills in the mail. We are forwarding the bills to our insurance company, who tells us that they are taking care of them, but they are probably not paying them immediately (I expect there are a lot of paperwork involved). We can see that some of the invoices have strange addresses on them and have taken a long time to reach us, so we are a bit worried that there might be others that haven't reached us yet.  Also, since the accident was partly my fault, I received a ticket for careless driving, which I have paid.  We are going back to the US in a few weeks on vacation. Can any of this give us problems in immigration or elsewhere? Is there anything we should do or special papers we should bring?


I have a project wherein I need to extract quotations from a huge set of articles . Here ,  by quotations I mean things said by people , for eg: Alen said " text to be extracted ." I'm using NLTK for my other NLP related tasks so any solution using NLTK or any kind of Python library would be quite useful.  Thanks

I have a value like this:  "Foo Bar" "Another Value" something else   What regex will return the values enclosed in the quotation marks (e.g. Foo Bar and Another Value)?


A newbie here :)  I am currently a PhD student in a computer science program. My research interest is about quantum information science. Back then, I also got accepted into a Physics PhD program, but I decided to join my current department because the project is much more interesting.  Here is my problem: when people ask me, "Hey, so what are you doing in grad school?" , I feel quite uncomfortable to mention that I am doing a degree in "Computer Science". Don't get me wrong. I love computer science. But I prefer to be regarded as a Physics person rather than a CS person (actually, I am doing a lot of theoretical quantum physics for my thesis). My feeling is that, the name of the department/degree ALONE doesn't do me justice in telling other about my research interests and experiences.  Funny enough, my boyfriend is also suffering from the same problem. He is in the same CS department with me, but focusing on computational biology. His plan is to attend medical school after his PhD, so he usually shows a tremendous amount of angst when being asked the same question. People often joke about his decision, like "So why an IT guy like you suddenly wants to go to med school?". The poor guy has spent quite a lot of time to do wet labs, and is drafting a thesis with 50% bio and 50% CS components, so I can tell that he really hates when people calling him an "IT guy". While I understand that doing a bio-related doctoral research is a very logical transition for him to med schools, the name of the department alone is causing the confusion that he has abruptly changed his interests into medicine, rather than planned for it ahead.  My question is, what is the best way in our cases to "market" our research focus and experiences to other people? Should it be:   Ms.Catwoman, PhD in Computer Science  Ms.Catwoman, PhD in Quantum Information, or Ms.Catwoman, PhD in Computer Science with special focus on Quantum Information?   Thanks for the answers!

Due to various department sortings and organizations, I have a degree that is, functionally, a computer science degree but because it belonged to the College of Mathematics, the degree is formally "Mathematics".  Unfortunately this leads to many employers thinking that I have a mathematics background when the reality is far from this: I don't think like a mathematician or particularly enjoy its work.  Is there something I can do with my CV to reduce this bias? Is it as simple as changing "Mathematics" to "Computer science" even if it isn't the official title of the degree? Are there other options?


Can I enter to France to visit Paris when just two days remains from my tourist visa?   I want to know the immigration officer or the border police will stop me at the airport.    Is there any risk of deportation?    If I have a luggage with 30kg weight will it be a problem?    Won't they ask why I bring this much weight for these few days?    If I have return tickets and hotel reservation can I persuading them that I will just visit Paris for two nights during Christmas and not over stay?

I have an Afghan passport.    If I remain in Europe during the last two days of a Schengen tourist visa, can I enter France?


In which situation can a using block be used and what are the benefits?  using (some code statement here)  {     //code here }

What is the purpose of the Using block in C#? How is it different from a local variable?


Is there any way to open cmd.exe in Windows 7 if explorer.exe has been disabled (which means you can't use the Start Menu)

I've recently had trouble with explorer.exe not working.  I found a possible solution , using .  The problem is that I cannot "right-click Command Prompt, and then click Run as administrator", since explorer.exe does not work for even a second without crashing.  I tried to use the  to open cmd as administrator, but I get an error 1327 because I have a blank password.    My question is, is there any other way to run cmd.exe with admin privileges?  If not, is there any way to run sfc.exe without admin privileges?  If not, does anyone have solution to my original problem of explorer.exe stopping and restarting ad nauseam?


I installed Ubuntu on Windows 7 now neither OS boots up.  How can I recover Windows OS and uninstall Ubuntu?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


How to show There is no continuous bijection between $[0,1]$ and $[0,1] \times [0,1]$ ?  My Try: I think, between $[0,1]$ and $[0,1] \times [0,1]$, continuous onto function exist. But the one to one continuous map does not exist. Is my guess correct?

Is there a continuous bijection from $[0,1]$ onto $[0,1] \times [0,1]$? That is with $I=[0,1]$ and $S=[0,1] \times [0,1]$, is there a continuous bijection $$ f: I \to S? $$  I know there is a continuous bijection $g:C \to I$ from the Cantor set $C$ to $[0,1]$. The square $S$ is compact so there is a continuous function  $$ h: C \to S. $$ But this leads nowhere. Is there a way to construct such an $f$?  I ask because I have a continuous functional $F:S \to \mathbb R$. For numerical reason, I would like to convert it into the functional $$ G: I \to \mathbb R, \\ G = F \circ f , $$ so that $G$ is continuous.


I am trying to use Ubuntu 20.04 in Oracle Virtualbox. I am unable to use pip or pip3 as it raises an error: Error:pip3 command not found  I tried installing, but failed. $ sudo easy_install pip3 Error: easy_install command not found.  When I tried using: ` $ sudo apt-get install python3-pip Error: Package 'python3-pip' has no installation candidate.  Then I ran this command : sudo apt-get update  Then when I ran the following command I got an error: $ sudo apt-get upgrade ERROR: You don't have enough free space in /var/cache/apt/archives/  The output of df -H command is:  Please help, I want to install pip on my virtual machine (ubuntu)

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.    The suggestion below gives this error  wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp     Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:    By the way, it says FATAL: Could not read from the boot medium!  System halted.    The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:    I was able to resize the partition easily using a bit of freeware called .


I recently came across a post that basically asked "How do I do X?".  No research effort, code, or any other details provided.  Myself and a few others commented for more information.  A few minutes later someone answered the question with code.    I down voted the answer and commented because I feel like answering a question like this only encourages people to ask these types of poorly written, undetailed questions.  Am I wrong for down voting the answer?

On , a user decided it was a bad question and downvoted all answers with the comment "-1 closevote, not answer!".  I realize that , but is this the appropriate response?


Is it true that questions in English cannot end on a preposition?  Somebody told me that, but the more I continue on my English tour the more I run into suspicions here.  Are such questions like:     Where did she run to?      What did he look at?   really wrong?!

When I learned English at school, I was taught that I should not end a sentence with a preposition.  Is it correct to end a sentence with a preposition?     To avoid starting a sentence with a conjunction, I don't write sentences similar to "I miss you. And your kisses." Is there a similar way to avoid ending a sentence with a preposition?


My HDD is starting to go bad.  So I'm cloning it to a new drive using HDDRawCopy. In the process, there are several read errors (from bad sectors?).  The question is, how do I go about to finding out which files/dir those sectors are mapped to, so I can restore those selected files from backup?  7/21/2016 12:17:07 AM   Copying...  7/21/2016 12:17:33 AM   Read Error occurred at offset 721,354,752;  LBA 1,408,896   (Data error (cyclic redundancy check)) 7/21/2016 12:20:19 AM   Read Error occurred at offset 6,383,665,152;  LBA 12,468,096   (Data error (cyclic redundancy check))

I have a hard drive with 3 bad sectors. I know the sector numbers and the computer can still boot into Windows. I want to run sector repair from an HDD diagnostics tool from the manufacturer, but before I do that, I'd like to know what files are affected. Is there a way to figure out what file or files are occupying those sectors?


I want to create an internet shortcut within a specified folder in Ubuntu 12.04. How do I do this?

How can I create a shortcut for URL in my desktop? I want to use them in Firefox or Chrome.   If a copy and paste didn't work.   What script I have to use?


Yes, this is a basic point of confusion that has been discussed before, but there's a lot of convoluted information and I'm hoping that someone can pinpoint my exact misunderstanding here.  public class Test {   public static void change(int i) {     i = 2;   }   public static void change(int[] i) {     i[0] = 6;   }   public static void change(String i) {     i = "Bye";   }   public static void main(String[] args) {     int a = 1;     int[] b = {3,4,5};     String c = "Hello";     change(a);     change(b);     change(c);     System.out.println(a);    // 1 - value unchanged     System.out.println(b[0]); // 6 - value changed     System.out.println(c);    // Hello - value unchanged   } }    The variable a actually contains the value 1. When we pass this to the change() method, a new variable is created, which also contains the value 1. Thus when we change i, a is unaffected. This makes sense. The variable c contains a reference to an array object in memory. When we pass this to the change() method, a new variable is created, which contains the same reference. Thus, they both represent the same object. So when we change i[0], c[0] is also changed. This also makes sense. What I'm having trouble with is if Strings are just object references in Java, why do they behave like primitives in this regard?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I'd like to remove the need for the user to type a password multiple times for a bash script that runs sudo commands. How can I loop for password until something like sudo echo returns 0, and then store the password in a variable to use script-wide?

To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.


I am running Ubuntu 18.10 on a new Lenovo IdeaPad 320-15IKB laptop, but the Wi-Fi is not supported.  03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.