Pokemon Go opens perfectly and starts up just fine on my iPad Air which DOESN'T have cellular data. I read the App store page for it and it said it was compatible with iPad. But after it loads, it says "no GPS connection" because of my layered roof, so I go outside.   It then stops saying no GPS connection, but then says no internet connection. I can walk around with it saying no internet, but the game doesn't start without internet, and I've read online that Pokemon don't spawn without internet. So I really can't play the game on iPad. No, I can't get cellular data, or any kind of portable router. Is there something I don't know that I could do?

Long story short, I have an iPod 5, and I've been excited for this game for about a year now. I keep getting a GPS signal not found. Can I play under wifi or some sort of cellular data?


How many frames does a 'worn' camera have on its back? 10,000? More? Less?  When should you decide not to buy a used camera, frame-wise?  My girlfriend and I shoot something like 3000 frames a month.  Should we stop taking 'pointless' photos that we know won't be great? Any good tips to reduce wear and tear on your camera?

When looking at used camera bodies, a question that comes up a lot, is "how many shutter actuations, or clicks, does it have?"   What I am wondering is, how many is too many. In other words, is there a reference for knowing when a sensor is more likely to go? How should I judge a camera body with 20000 vs 5000? Is that a significant difference, or is that not even relevant.  Obviously this might something that is dependent on model, so if there is some information based on model that would be even more interesting.  One of the guys at Canon Tech Support said that this is completely irrelevant for the Rebel series cameras, but he is obviously slightly biased. :)


Safely meaning they wouldn't have to feel a G force over 2Gs. Assuming we had technology to reach any feasible speed under light speed. Also, how long would it be relative to Earth?

How much time would it take for a traveler (in traveler's perspective) to reach a star at distance $d$, if it accelerates at 9.8 m/s² (for a comfortable travel)?  I understand that $V = V_0 + a\times t$ and such related high-school physics, and I know there is something called Lorentz transformations that I can grab the formulae from the Internet, but I can't really put the numbers together to get what I want, so I would also like to know how to derive the answer to the question from the basic equations.  Also, it is not quite clear to me the role of the $E = mc^2$ in this travel, specifically: in travellers perspective, can it accelerates at 9.8 m/s² indefinitely, using always a constant energy output? In other words, would the ship's engine "feel" the ship heavier, or the mass increase effect would only be observable from another frame of reference?


Just out of curiosity, are there any superheroes or super-villains in the Marvel Universe who are excellent in sports?  By “excellent in sports”, I mean they must be playing a sport at a professional or recognized amateur level (i.e. as part of a national or international team, like an Olympic team).  For example, Ghostrider's alter ego is a professional stunt biker of national fame (I suppose).  All canons inclusive.

Some of the DC/Marvel costumed crime fighters biographies show them to be former Olympic athletes. Who was first of them with that credential?


I need to set time limit to edit comment, like Stack Overflow strategy that sets 5 minutes time limit. The  asked the same question and the  was proposed.   In admin/people/permissions I allow authenticated users to Edit own comments and also Installed Edit Limit module. This is the configuration    Despite of letting the contents to be editable in 3 minutes, Users are still unable to edit their own comment right after sending their comments. What is the problem? Is there any other solution?

Let's say a user is registered and posts a comment to a node but didn't like the comment so he/she wants to edit it. I would like to limit the amount of time the user has to edit the comment. After this time has elapsed they should not have the ability to edit the comment, only they will need to contact an admin to do that.  How would I implement this or is there a module to help me accomplish this.


Title says it all. Polish citizen, but I live in the US; my understanding is I have to use my US passport when I travel (I am a US citizen). But I want to stay more than 90 days. What is the procedure for this?

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


How can I cover these two lines in test class? I was able to cover first line but not the second. I need to create and assign the id to the child object. Id oppid = Apexpages.currentPage().getParameters().get('Id'); solist = [ select Order_Number__c from requested_item__c where quote_number__c=: oppid  and awarded__c=true order by Order_Number__c ASC];

How do you make a test class for custom controller? My search results involves this but trying to apply it in my test class only create too many error that I don't understand.  public static testMethod void testMyController() {     PageReference pageRef = Page.success;//Observe how we set the Page here     Test.setCurrentPage(pageRef);   . Does my test class need those line of codes when my controller class is only very simple.  public class ClientInfo_VFcontroller{     public Org_Info__c orgInfo {get; set;}     public ClientInfo_VFcontroller(){         orgInfo = new Org_Info__c();     }     public PageReference save(){         insert orgInfo;         orgInfo = null;         ScheduleRetrieve.ScheduleRetrieve();         return null;     } }


i have a transparent material for blush but the problem when i deselect it i get a black shadow around it i don't know what the reason so how to remove this shadow in material mode ??

For some reason objects don't show their transparency all the time.  In this image the circles in red are suposed to be transparent like the ones in green.    When I select the object in the back, all objects in front of it become opaque.    When I select the two objects that are opaque, then they become transparent as they sould be.    The display is in GLSL mode  These are the material and texture properties      I'm not worried about the final render, just the editing view. I would like to see the actual transparency at editing time only, because the scene is to be imported in a third party game engine.  Blender is v2.68   is the blend file


Environment: Postfix 3.3  In my main.cf file I see references to both smtp and smtpd.  For example:  smtpd security is set here.  smtpd_tls_security_level = may   And just a few lines below smtp security is set in an otherwise identical parameter.  smtp_tls_security_level = may   Other examples are these smtpd parameters:  smtpd_tls_cert_file smtpd_tls_key_file   Although these aren't exactly the same just a few lines below smtp is used.  smtp_tls_CApath smtp_tls_CAfile   Question:  As far as Postfix is concerned what is the difference between smtp and smtpd?

A bit confused when reading through the logs of my smtp/mail server, I'm turning this questions to you guys.   In the maillog files I'm seeing entries for postfix/smtp as well as postfix/smtpd. I can also see that there are possible settings for smtp as well as smtpd in the file main.cf  Trying to find some reasonable explanation through google search seemed to be impossible, so here is my question to you guys.  My server was kind of compromised and the spam mails where going through postfix/smtp and not smtpd. Please help me to understand. Thanks in advance!


How about starting a website for designers i.e questions relating photoshop and illustrator? Would really help people like me a lot

I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this?  Related:


I'm in the middle of developing a site () which features a single post on the home page, as determined by the "Blog pages show at most" option in Settings > Reading.  However, I've created a tag.php page where I'd like a complete list of posts (for the relevant tag) to be displayed. I've managed to find the code that can create that list:  <?php  if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<a href="<?php the_permalink() ?>"><?php the_title(); ?>

  <?php endwhile; endif; ?>   The list is only returning one result though -- presumably because of the aforementioned "Blog pages show at most" setting.  So my question is this: how do I override this setting? To be more specific, what exact code should I insert on tag.php?  I have a feeling that I may have already seen the answer here on Stack Exchange but am too ignorant of PHP coding to implement it successfully. Your help would be much appreciated!  Cheers,  Tom

I have my blog page limited to 5 posts on the main page, which I'm happy with.  However, I want my tag pages to list much more, maybe 15 or so.  How do I most easily make this change?  There's no option on the reading page.  thx!


Imagine you are doing the following inside a javascript function called Fetch.  function Fetch(context) {   var request = $.ajax({...});   request.done(function(response)   {     // it looks like context is visible here and in Scope.     //   });   }  Can you explain why context is visible inside the callback function.?

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


on the login screen of a CentOS 7, when changing password is enforced with an ssh terminal I have two different languages:  login as: user1 user1@192.168.0.20's password: You are required to change your password immediately (root enforced) Last login: Mon Aug 19 14:24:21 2019 from srvfw01.dummy.lan WARNING: Your password has expired. You must change your password now and login again! Ändern Passwort für Benutzer user1. Ändern des Passworts für user1. (aktuelles) UNIX-Passwort:   In the telnet session the login looks like this:  srverp01 login: user1 Password: You are required to change your password immediately (root enforced) Changing password for user1. (current) UNIX password:   Both environments show:  >env |grep LANG LANG=de_DE.UTF-8   How can I change the whole message block to German language for telnet and ssh login?  Thank you!

I use the following command line to set my system in English (installed in French) :  localectl set-locale LANG=en_US.utf8   However, when I boot into graphical mode, the desktop menu, directories names etc. are still in French.  The only way I can set everything in english is to use the graphical gnome menu "Applications > System tools > Settings > Region and Language".  Is there a way to change system language using command line as if I used the graphical menu?  EDIT :  In fact, my problem was coming from the fact that I was modifying through SSH with user root the system language but then loging through graphical console (workstation VM) under a standard user who has its language already defined. localectl works well but to define default language for a specific user, I must define $LANG in my .bashrc


I want to run my project on localhost and i gave permission to all directories including in my project.  But the problem is in Image directory. how can i give permission to each and every images. it is quit difficult for me because there is lots of images in my image folder.  I used sudo chmod 777 < directory>

I have set up a LAMP server and I have access via SSH and to the "it works" page from a web browser from inside my network (via ip address) and from outside using dyndns.  We have some Wordpress projects that sit in subdirectories in /var/www/wordpress1 /var/www/wordpress2, etc.  I cannot access these sub directories from a browser in order to set up WP--or (I assume) to see the content on a browser. I get a 403 Forbidden error on my browser.  I assume that this is a permissions problem.  Can you please tell me the proper settings for the permissions to:   Allow the developers and me to read/write. to allow WP set up and do its thing Allow visitors to access the site(s) via the web.   I should also mention that the subfolder are actually simlinks to folder on another internal hdd--I don't think this will make a difference, but I thought I should disclose.  total 12 drwxr-xr-x  2 root root 4096 2012-07-12 10:55 . drwxr-xr-x 13 root root 4096 2012-07-11 20:02 .. lrwxrwxrwx  1 root root   43 2012-07-11 20:45 admin_media ->     /root/django_src/django/contrib/admin/media -rw-r--r--  1 root root  177 2012-07-11 17:50 index.html lrwxrwxrwx  1 root root   14 2012-07-11 20:42 media -> /hdd/web/media lrwxrwxrwx  1 root root   18 2012-07-12 10:55 wordpress -> /hdd/web/wordpress   Here is the result of using chown -R www-data:www-data /var/www  total 12 drwxr-xr-x  2 www-data www-data 4096 2012-07-12 10:55 . drwxr-xr-x 13 root     root     4096 2012-07-11 20:02 .. lrwxrwxrwx  1 www-data www-data   43 2012-07-11 20:45 admin_media -> /root/django_src/django/contrib/admin/media -rw-r--r--  1 www-data www-data  177 2012-07-11 17:50 index.html lrwxrwxrwx  1 www-data www-data   14 2012-07-11 20:42 media -> /hdd/web/media lrwxrwxrwx  1 www-data www-data   18 2012-07-12 10:55 wordpress -> /hdd/web/wordpress   I am still unable to access via browser.


I work in a company that creates websites. Currently, they do not have any description for the roles for the different levels (entry/junior, mid/intermediate to senior level) of sqa/sqc staff but would like to have one.  Any ideas on what roles or duties are assigned to the entry, mid, and senior roles?

I would like to know if there's a standard Skill set for Skill Matrix for a Software Tester of different levels, like for example, what are the skills needed for an Entry level tester as well as what technologies and responsibilities he needs. And for the Mid Level tester and Senior Level as well.  Note that I am working in a company who designs and develops websites.


I've noticed that many circuits use 22pF capacitors. For instance, the Arduino uses them to ground the oscillator pins of its AtMega328. Many tutorials call for  for simple circuits.  Why is specifically 22 pF so common? Why not 20 or 25, which are arguably "rounder" numbers?

Very newbie question here...one to which I've been unable to find an answer in any of my books or online resources.   Whenever I see a capacitor/resistor assortment that features the most "common" ones (which, I understand can be quite subjective), they tend to come rated in powers of 1, 2.2 and 4.7. What's magical about those numbers?   Is that some mathematical relationship in Ohm's law of which I'm not aware? Is it some logarithmic progression for some OTHER electrical engineering formula that I've not yet encountered? Why is there such a huge gap between 4.7 and 10.0, why isn't there a 7.1 or some such? As someone who a scary uncanny knack for solving "find the pattern in this series of numbers" puzzles, it's killing me that I can't figure this one out. :)


I would like to have a brace in a tikz picture. However, when I process the file   \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{decorations} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[scale=8]   \def\C{(0.688191,0)}   \def\D{(0.688191, 0.1844)}   \def\E{(0.830424, 0.1844)}   \draw[decorate,decoration=brace] \C -- \D; \end{tikzpicture} \end{document}   I get   ! Package pgfkeys Error: I do not know the key '/pgf/decoration/\pgfkeyscurrent name ' and I am going to ignore it. Perhaps you misspelled it.  See the pgfkeys package documentation for explanation. Type  H <return>  for immediate help. ...                                      l.10 \draw[decorate,decoration=brace]                                         \C -- \D;  help. Pretend that you're Hercule Poirot: Examine all clues, and deduce the truth by order and method.   I saw similar questions  and  and , but the answers to them don't seem to help me. I would appreciate your help.

I have TeX Live 2013 installed via MacTeX on my Snow Leopard laptop.  I copied the following code from page 247 of version 2.10 of pgfmanual:  \documentclass[a4paper,12pt]{report} \usepackage{tikz} \usetikzlibrary{decorations}  \begin{document}  \begin{tikzpicture} \node (a) {A}; \node (b) at (2,1) {B}; \draw (a) -- (b); \draw[decorate,decoration=brace] (a) -- (b); \draw[decorate,decoration={brace,mirror},red] (a) -- (b); \draw[decorate,decoration={brace,mirror,raise=5pt},blue] (a) -- (b); \end{tikzpicture}  \end{document}   Yet somehow I get this error:  ./Untitled2.tex:11: Package pgfkeys Error: I do not know the key '/pgf/decorati on/brace' and I am going to ignore it. Perhaps you misspelled it.  See the pgfkeys package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.11 \draw[decorate,decoration=brace]                                       (a) -- (b); ?    Is this a bug?


I am trying to find a scifi short story I read as a kid, can't remember the name of story/author.  Humanity has contact with these kindly ( dragon headed? ) like aliens who give us space travel and all these other wonderful technologies. At one point some are being held captive by the humans - to extort additional knowledge or something.  It becomes critical for the aliens to escape - and they inexplicably kill one of their own - shortly after they are rescued.  The humans figure out that it was through reincarnation or some kind of rebirth, that the dead one was able to warn the others. There is a verbal confrontation, and one of the human asks:  "Why! Why would you keep this knowledge from us! You've given us so much, why wouldn't you tell us that we don't have just one shot through life? That we are reborn? That we have souls!"  And the Alien replies: "Because you don't".  Someone posted this pic on my FB feed, and it reminded me of that story.     Some random things I remember that may, or may not, be true:  -maybe Niven or Pournelle -think it was a "hard science" writer -read it in the mid 80s.  -Can't remember if it was in collection of short stories, or in OMNI  Any insight appreciated!

And thereby makes clear in 4 words what the whole story was about.  In a 60's or 70's era anthology I think.  I’ve always remembered it as being an example of good or clever writing.  I've never read another story with the same effect. If I gave any more clues it would spoil the story. I only read it once yet I can still remember it… but what was the story?  EDIT: The aliens were hiding some important information on the human race and the hero spent the whole story trying to find out what it was.


my great grandmother was Honduran and she married a Scottish man where they then moved to Jamaica to have my grandmother who married a Jamaican man. what would i say i mixed with?

My sister, cousins, and other relatives speculate that my mom's grandmother was Jewish (for various reasons). I've heard people say at times things like, for example, "I'm 50% German" or "I'm 25% Swedish." This has to do with their ancestry. But, how exactly is this calculated? Say for example that my mother's paternal grandmother was indeed 100% Jewish, what would that make me and my siblings, and how is it calculated?


How can I reply to a specific user If 2 users with indentical names post comments on my question?   ex : Look at the following comments posted by 2 diffrent users :  What have you tried so far - Mark B  Have you checked your error log? - mark B   In this situation How can I reply to the first comment with @username?

Suppose there are two users that have commented on an answer. Both have the same user name, and I want to reply to one of them. How can I do this?  It appears that, under the current system, there is no way for me to do this. Specifically, from , I see that:     4. Matching is performed in reverse chronological order, so if five people named John are participating, @john will match the most recent John   So, consider this a request to add this feature using an -n suffix or something similar; e.g. @john-2 could be used to reply to the second John from the top.  Update Thanks to  for nice answer of @name(userid) based auto-complete suggestion which has no loophole. It involves no counting from top & has no consequences when a comment is deleted. But, I think @name(userid) should be used directly in comment as all form inputs at SE are text (nothing embedded).  Now, I'm trying to finalize it based on it: The system should allow optional @name(userid) format for reply. Provided userid with this format, system should ignore name. And, in the situation of duplicate name based confusion, system should demand this format as mandatory to submit comment.  How to get userid? In case of duplicate name based confusion, system should append (userid) in hypertext to their profile. It'd work for mobile version too. On full version, for easy fill-up, a hover reply icon would be fine (like hover vote up icon). Upon clicking it, system should fill @name(userid) in comment text box.  From reply reader side: Multiple Johns could be confused even if they didn't come from notification (because nobody remembers his/her own userid). So, highlight the background of comments which are replied to them.


I have created installed K-Ubuntu with a seperate FAT32 partition with mountpoint as /windows. It shows up as /windows when I type ls in root directory. The issue is when I login as the primary user (while installing Ubuntu)  I am able to access it however I would like to allow other users to access the folder as well. Following are the steps that I tried and it did not work.  Tried chown to other user Tried added another user to the group using 'adduser' chmod 777  For all these I get error "Operation not permitted". Please help.

I am using Microsoft Visual C++ on Windows and Qt Creator on Ubuntu. I can't change permissions on my flash drive (FAT32), even as root.  How can I change permissions on a FAT32 flash-drive?


I have the following      EmployeeTable.prototype.xmlToArray = function(xml) {      // Parse the XML string into a XMLDocument     var xmlDoc = new DOMParser().parseFromString(xml, 'text/xml');      var nodes = xmlDoc.getElementsByTagName("employee");     var employees = [];      for (var i = 0; i < nodes.length; i++) {         employee = nodes[i];         var innerHTML = employee.innerHTML;         var name = innerHTML.filterEmployeesXML("name");         console.log(name);     }  };   which calls a function   String.prototype.filterEmployeesXML = function(valToFind) {     var regex = new RegExp(/<name>([^<]*)<\/name>/);     var match = employee.innerHTML.match(regex);     return match[1]; };   However, I want to be able to do this for more than just name, i.e. I want to be able to filterEmployeesXML("jobTitle"), etc. where valToFind is the value to be found in the XML collection.  I've tried to do this using basic string concatenation, though I haven't a clue when it comes to Regex, any pointers?

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have installed tomcat server to work with my dynamic web project on eclipse Luna. The server seems to be running fine when I dont load it with any project file but when I load my project it gives the error "Server Tomcat v7.0 Server at localhost failed to start." I have checked my project and there seems to be no error in it. These are the server startup messages that I get:  Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> WelcomeServlet in servlet mapping     at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3325)     at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3300)     at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1438)     at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1357)     at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5419)     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     ... 6 more

<servlet>     <servlet-name>myservlet</servlet-name>     <servlet-class>workflow.WDispatcher</servlet-class>     <load-on-startup>2</load-on-startup> </servlet>  <servlet-mapping>     <servlet-name>myservlet</servlet-name>     <url-pattern>*NEXTEVENT*</url-pattern> </servlet-mapping>   Above is the snippet from Tomcat's web.xml. The URL pattern *NEXTEVENT* on start up throws     java.lang.IllegalArgumentException: Invalid <url-pattern> in servlet mapping   It will be greatly appreciated if someone can hint at the error.


If someone is under stress, he or she may feel a strange feeling in the belly; it can be said that he or she feels that butterflies spread through the belly.  For other emotional reactions like being in love, similar, but different feelings can be caused.  What causes this symptoms? Is it because of the muscle tension varies, is it an electric current through the nerves?

I'm sure that everyone is familiar with the sensation commonly known as "butterflies in the stomach".  It is commonly experienced during periods of anxiety or stress (e.g. before high stakes job interviews or roller coaster rides) and apparently (after my web research) often felt in new romances without an obvious cause of tension.    However, whilst my googling did turn up an inordinate amount of rubbish regarding love-sicknesnes, I have been unable to find even a suggestion as to a mechanism as to the physiology behind this feeling.  Is it a sensation of physical change in the stomach (some sites vaguely mentioned the restriction of blood flow to critical organs but it was entirely unsupported) or is it neurological in nature?


I am doing experimental research for an assignment. My DV is agree coded 1 or disagree coded 0 with a statement my IV is group with treatment in scenario 1 and group without treatment 0. Does it still make sense to do a logistic regression on these variables?

Is it appropriate to do a logistic regression where both the dependent and independent variables are binary? for example the dependent variable is 0 and 1 and the predictors are contrast coded variables -1 and 1 ?


I'm try to change to my Desktop directory from the terminal.  Running  cd /home/desktop   gives an error in the terminal saying no directory found.  What am I doing wrong?

I have an issue with my home folder and this are giving me some permission problems.    I've installed an application that tells me that I have no permission to save in /home/username/Desktop, but in fact my home is in /home/username/Área de Trabalho (Área de Trabalho = Desktop, but in Portuguese).     Accessing as sudo my home is shown in the below image  (look at the folder icon). (Inside is the desktop folder.)        Accessing as regular user my home is shown in the below image. (Inside is the Área de Trabalho folder.)       Is this normal? Should I tell Ubuntu where my actual home folder is? What I have to do?    Thanx in advance!


I have a DEM and I want to apply some tools to it (fill and others). In my DEM I've zones (drawn as mask) that need to be exlcluded from that processing.  I don't want to apply the processing to the whole zone and then put a mask on it.  How do I get the zone where I can apply my tools? My masks are the zones I don't want to process.  I thought about Clip (data management) but it does not work, I also tried to substract this mask from the DEM, without success. Same with "Erase tool", it does not accept my DEM.  I'm using ArcMap 10.2.2.

Which tool do I use in ArcGIS 10.1 for Desktop to exclude areas covered by vector polygon layers from a raster layer?   I want to keep portions of the raster layers that exclude the portions covered by the vector layer.


In Newtonian mechanics, how come the net force on an object in free fall is zero, yet it is accelerating??   If F=(a)(m), and F=0, it follows that: a must equals 0 But in reality a falling object will accelerate with a = 9.8 m/s^2. Since a=/= 0, then either F =/= 0 or F =/= (a)(m). And because we know that for object in free fall F = 0, then F =/= a m  (i.e. newton second law does not apply)

Note: For the purposes of my question, when I refer to free fall assume it takes place in a vacuum.   From my (admittedly weak) understanding of the equivalence principle, falling in a gravitational field is physically indistinguishable from floating in interstellar space. This would make sense to me if gravity simply caused an object to move at a constant velocity. Moving at a constant speed, or floating in space, are just two different ways of describing an inertial frame, and are fundamentally no different. But free falling in a gravitational field means accelerating continuously, and doesn't an accelerating body experience a force? Then isn't free falling fundamentally different from floating in space?


I have a habit of looking back at suggested edits I've reviewed to see if my decisions tend to be in-keeping with the community and I've noticed an 18k user () apparently just clicking anything...   Approved:  Rejected:    (NB: I initially linked the wrong suggested edits. Apologies, corrected)  Looking at the users history, there's 3-4 seconds between each vote, which is probably about as fast as the buttons work.  Obviously the automated tests audits aren't blocking these reviews - so is there any other mechanism to mitigate/prevent this? Perhaps a reporting process?  Failing that, can I suggest that perhaps if the time between reviews (in a block) is consistently under (say) 7-10 seconds, we trigger a throttle of some sort?  I know some edits really can be reviewed one after another but not all of them and certainly not this consistently.

I went to a Late Answers review queue that had four items in it and started reviewing the first one by editing it into shape rather heavily.   By the time I was done, someone else had reviewed the same post simply by upvoting it, so I only got a "Next" button, not an "I'm done" button. My edit still counted as an edit; but no longer as a review.  Worse still, the other three items were gone from the review queue as well. Curious, I checked the review tab in the profile of the user who had snatched the first review out from under me. Sure enough, he also "reviewed" the other three items, all within a minute, without even fixing obvious typos, simply by upvoting. I had to go through his review list and review every single post again.   Except, of course, my reviews didn't count as reviews anymore. My review count went up by zero. His went up by four — for fixing exactly nothing in posts that absolutely could use fixing. To add insult to injury, this was on a site where collecting four review points is incredibly hard because the review queues there are pretty much empty 24/7. (Edit: and now that that is also true of SO, we are seeing the same behavior here.)   So what we get are:   Subpar answers that do not get fixed and get upvoted instead and disappear from the radar of the people who are actually capable of and willing to fix them.  Fastest-gun-in-the-West, single-click, faux reviews that count towards rare Gold badges, while elaborate, actual reviews don't.   This is severely broken.  And I can't think of an easy solution that wouldn't break other things.    Simply not letting upvotes count as reviews is not an option (it discourages upvotes not just on crap, but across the board; and some posts really are fine as is and deserve nothing but an upvote). Simply always counting a review as a review, even if someone else is faster to review the same post, introduces review-point inflation and only solves the problem for one faux review, but not for several in a row, as in the scenario above. Simply letting several people review the same item, like with suggested edits, is not really "simply" anymore, and introduces more review-point inflation still. Likewise, allowing people to reject or override other people's reviews as not substantial enough opens all kinds of cans of worms.   And so on and so forth. I really can't think of anything Solomonic. But perhaps someone else can.


I am getting a nullPointerException for when I try to change the text of a textView within a fragment I have tried suggestions of putting getView() and getActivity() before findByViewId but they both result in errors. Thank you.    public class MainFragment extends Fragment {   public MainFragment() {     // Required empty public constructor }   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     View rootview = inflater.inflate(R.layout.fragment_main, container, false);      //calls setdate function     setDate();      return rootview; }  public void setDate(){     String mydate = java.text.DateFormat.getDateTimeInstance().format(Calendar.getInstance().getTime());     //need to use calendar class as Date is deprecated (old)       TextView textView = (TextView) getActivity().findViewById(R.id.info_text);     textView.setText("updated"); }     <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical" android:layout_width="match_parent"     android:layout_height="match_parent">      <android.support.v7.widget.CardView         xmlns:card_view="http://schemas.android.com/apk/res-auto"         android:id="@+id/card_view"         android:layout_gravity="center"         android:layout_width="fill_parent"         android:layout_height="200dp"         card_view:cardCornerRadius="4dp"         android:layout_marginLeft="25dp"         android:layout_marginRight="25dp"         android:layout_marginTop="75dp">          <TextView             android:id="@+id/info_text"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:text="Test"             android:textSize="25dp"             android:textStyle="bold"             android:textColor="#252525" />     </android.support.v7.widget.CardView>      <android.support.v7.widget.CardView         xmlns:card_view="http://schemas.android.com/apk/res-auto"         android:id="@+id/card_view2"         android:layout_gravity="center"         android:layout_width="fill_parent"         android:layout_height="395dp"         card_view:cardCornerRadius="4dp"         android:layout_marginLeft="25dp"         android:layout_marginRight="25dp"         android:layout_marginTop="15dp">          <TextView             android:id="@+id/info_text2"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:text="placeholder_text"             android:textSize="25dp"             android:textStyle="bold"             android:textColor="#252525" />     </android.support.v7.widget.CardView>  </LinearLayout>     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference                                                                            at au.com.alexh.dayrater.MainFragment.setDate(MainFragment.java:43)                                                                            at au.com.alexh.dayrater.MainFragment.onCreateView(MainFragment.java:33)

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?


Use congruence's to prove the following result.  If $n \cong 3 $ mod 4, then n cannot be written as the sum of the squares of two integers.  Im not even really sure where to start this a hint would be great.

I'd appreciate your help showing that if $p\equiv3\,\left(\mbox{mod 4}\right)$   then p can't be written as a sum of two squares.  Thanks!


So, I recently found out about how you can send TCP packets through the /dev/tcp/hostname/port file, but my main problem here is how I receive them. I want to make a bash script that can host a TCP server, and another script as a TCP client. Some help would be great. I would also like to note that I am doing this as a learning experience, which is why I'm not using ssh or telnet as a way to preform the tasks I want.

With a netcat listener like:  nc -l <port> < ~/.bashrc   I can grab my .bashrc on a new machine (doesn't have nc or LDAP) with:  cat < /dev/tcp/<ip>/<port> > ~/.bashrc   My question is: Is there a way to mimic the capabilities of nc -l <port> in my first line with /dev/tcp instead of nc?  The machines I'm working on are extremely hardened lab/sandbox environment RHEL (no ssh, no nc, no LDAP, no yum, I can't install new software, and they are not connected to the internet)


I'm using this snippet to show a spinner once a link is clicked. Some times the link .ln-edit-task is loaded via Ajax, and the snippet breaks. How do I make it work on Ajax loaded content?  jQuery(document).on("ready page:change", function() {   return $(".ln-destroy-task").on("confirm:complete", function(e, response) {     if (response) {       return showSpinner($(this));     }   }); }); showSpinner = function(el) {   return el.find(".fa").removeClass().addClass("fa fa-spinner fa-spin"); };   Note that page:change is required by Turbolinks in Rails.

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


I'm a bit anal retentive about keeping my desktop completely clear of icons, but many installers insist on adding (or re-adding) shortcuts to my desktop.  What, if anything, can I do to prevent this?

I've been keeping my desktop totally free from shortcuts. I'd rather not have to take action to do so.


I am having some issues with virtual functions. I have the following two structures (simplified): struct Shape { public:    virtual std::vector<unsigned int> GetIndices()    {       // standard definition       return { 0, 1, 2 };    } };  struct Cube : public Shape { public:    std::vector<unsigned int> GetIndices()    {       return { 0, 1, 2, 2, 3, 0 };    } };  Then, there's a function that takes a Shape as the argument. It calls the GetIndices Function. It looks like this: void Add(Shape shape) {    // ...    std::vector<unsigned int> indices = shape.GetIndices(); }  When I call this function with a Cube as the Argument, somewhat like this: Cube cube1; Add(cube1);  shape.GetIndices(); in the Add() Function will return { 0, 1, 2 }, but I want it to return { 0, 1, 2, 2, 3, 0 }. What am I doing wrong?

Someone mentioned it in the IRC as the slicing problem.


Often Galactus fed on planets with lifeforms, but the lifeforms could leave and he would still feed. Also not every planet he eats needs to have life.  So what is he looking for in a planet?

Galactus is pretty big on the world eating. It's more or less his thing. It's well known that he has an insatiable hunger that he must obey, and when he gets peckish he just chows down on a world that is capable of sustaining intelligent life.  But when he does so, what is it he digests, or processes to sate his hunger? Is it the action of eating itself? The physical matter? Souls? Minds? Twinkies?  I have a hunch it's sentience (lit. minds) but I can't find any evidence of this anywhere.


Suppose that gcd($a,p$) = gcd($b,p$) = 1, and neither of the congruences $x^2 \equiv a$ mod $p$ or $x^2 \equiv b$ mod $p$ has a solution. Show that $x^2 \equiv ab$ mod $p$ does have a solution.    Having a tough time with this problem, went to my professor for some advice and he hinted at utilizing quadratic reciprocity and Lengendre symbol. I understand the formula for quadratic reciprocity but don't understand how this ties in with Legendre and helps solve this problem. Any help is greatly appreciated, thank you in advance.

Let $p$ be an odd prime and $a, b \in \Bbb Z$ with $p$ doesn't divide $a$ and $a$ doesn't divide $b$. Prove that among the congruence's $x^2 \equiv a \mod p$, $\ x^2 \equiv b \mod p$, and $x^2 \equiv ab \mod p$, either all three are solvable or exactly one.  Please help I'm trying to study for final in number theory and I can't figure out this proof.


I have ubuntu 14.04 in my laptop Dell inspiron 5558.It showed for updating and i clicked for update. During updating it showed some error. Now it is neither updating any more nor installing any apps. The error message on my laptop is:  error:BrokenCount>0   Please tell me what to do so that i can install any app like before.

I have the message:   Error Broken count >0 Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Details: The following packages have unmet dependencies: firefox-globalmenu: Depends: firefox (= 19.0+build1-0ubuntu0.12.04.2) but 19.0+build1-0ubuntu0.12.04.1 is installed   Any suggestions?


I'm trying to use regular expression to find a string of characters within a string.  I'm using  /TOMOGRAF.*..DE\g   and this is my string  TOMOGRAFIA AXUAL COMPUTADA DE ABDOMEN DE CUELLO TOMOGRAFIA AXUAL COMPUTADA DE TORAX   the problem is that the firts line have two "DE" and I only need until the firts "DE"

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


lblPt1.setIcon(bd.pt1.getImage());   works while  lblPt1.setIcon(bd.pts[0].getImage());   throws a NullPointerException   pts[] is an array containing "Point" objects pt1 through pt24.  I would like to handle it with this for loop where pointLbls[] is an array of JLabels:  for (int i = 0; i < 24; i++)         pointLbls[i].setIcon(bd.pts[i].getImage());   I have determined that it is the object that is null, not its associated image. What am I doing wrong? I am rather new to programming.

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?


Is it possible to create a single SSH tunnel to address a remote host like it was sitting on the local system, eg. type the following pseudo-examples locally and achieve the desired effect:   Copy databases: mysqldump remote | mysql local or mysqldump local | mysql remote Append text to remote files: echo blah >> remote:file.txt Change remote files: sed ... remote:file.txt Execute remote commands: apk add blah   If a single connection is not possible, what is the most convenient way to achieve these things?

I have an already established ssh connection between two machines.    Is there a way to send commands to the remote machine from a shell script that is run on the local machine, using the already open connection, and without starting another ssh session?


I installed Ubuntu 14.04 on my laptop Thinkpad L570 for trial, as i got to know i am no ubuntu person. now when I am trying to format and Install back windows 10 through USB, the screen goes black for a or 2 seconds and comes back to Boot menu option.  i want to completely remove ubuntu and install windows 10

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.


Recently, an article of mine got accepted in an Elsevier Journal. Since it was my first publication, I was not very much aware of the whole publication procedure. After acceptance of the paper, I got a link sent for gallery proof. At this stage, I found many grammatical mistakes in the paper, which I should have corrected during the revision stage. I have to agree that I was late regarding this matter. Yet, I incorporated all the extensive corrections and sent back the proof. The journal manager was helpful. He sent me a pdf file with all the corrections incorporated and asked me to approve the revised proof, which I did. Recently, I contacted Elsevier's customer support, whereby I got to know that the paper is in type-setting. It made me a bit confused because the pdf file I got from the journal manager was already corrected and type-setted.   So my question is how could be the paper in the typesetting stage if I have got a prepared pdf file of the revised proof for approval from the journal manager!! If anyone of you is familiar with this scenario, I would appreciate your feedback.

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


Hi Is there any option in includegraphics in a way that I can specify the maximum width of the figure. If the image is larger than the specified width, it should be resized to its maximum width. Otherwise, it should retain its original size (not stretching!)  All the options I have tried stretched the smaller image to its specified max size :(

With \includegraphics I can give the width of the resulting image (which would be scaled).   How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep the smaller image, if the image is larger than X, then the image width should be X.  Using pdflatex/graphicx.


I am not very good with probability theory and related stuff, so I would very much appreciate your help regarding a problem I have.   Imagine arbitrarily picking an integer $n\in [1,N]$ I want to guess $n$ by running a random number generator several times The random number generator spits out numbers $\in [1,N]$, with uniform distribution The random number generator does not keep track of previous guesses (i.e. can use the same guess more than once)   My question is: how can I estimate how many times do I have to run the random number generator, on average, before hitting the chosen number $n$?  I searched for an answer and found other posts, such as this one "", but there it was possible to get hints (higher/lower), so it's not really the same thing.  Thank you so much  EDIT: I wrote a python script to do some experiments and get some intuition.  Looks like on average it takes $N$ guesses, but I am not sure whether this holds in general, and why this is the case.  Here is the script:  import random import numpy  noTests = 100000 maxNumber = 100  noGuesses = [] targetNo = random.randint(0, maxNumber)  for i in range(1, noTests):      guessNo = 1      while True:         if random.randint(0, maxNumber) == targetNo:             break         guessNo = guessNo+1      noGuesses.append(guessNo)  avg = numpy.mean(noGuesses)  print "Average number of guesses to guess a number in [0,%d] is %d"%(maxNumber,avg) print "Estimated over %d tests"%(noTests)

When you download a file from a website, the file gets corrupted with probability 0.8. What is the expected number of downloads to get an uncorrupted file?  I have no idea how to do this. I only know the probability that a file isn't corrupted should be 0.2, but how do I get the expectation? Can anyone help me?


So I just stumbled across  account of a traveller which I can imagine to be pretty distressing because I myself have had a rather close call not too long ago. I was travelling from Singapore travelling to Switzerland (to which I can travel visa-free) and a recent relaxation of regulation allows me to apply for a residency permit only after landing in Switzerland, instead of having to apply at the Swiss embassy in Singapore. Thus I travelled to the airport without any visa and the airline did not want to let me board because I did not have a swiss residency permit on hand (yet) or a return ticket. However I insisted that based on my own research I shouldn't already need a residency permit to enter the country, but the airline was firm on their stance. I argued with the manager for a while and eventually they let me board after I provided enough evidence that I had sufficient reason to be living in Switzerland and as a result I almost missed my flight. My question is, to what extent do airlines have the right to reject people from boarding due to immigration issues at the destination country? My logic is that even if I landed in Switzerland without a residency permit and don't manage to acquire the necessary documents then, it should be the responsibility of the Swiss immigrations to kick me out of their country, and not the airline's (which isn't even swiss airlines)? Anyway, it turned out in the end that I acquired my residence documents successfully in the country, so the airline would have done me a great disservice had they successfully barred me from boarding the plane.

I read on this  by :     Sign indemnity form saying that you accept personal responsibility to pay the fine imposed to the airline, in case you are denied.   How can I know how much an airline would be fined if the immigration officers of the destination country deny me entry?


I've got this <ul> set up with pseudo-element icons before each item. Font Awesome's check mark icon is set as the default for every <li>, but I want to use specific icons for certain items based on their ID (or class. That doesn't seem to work either). But the specific icon content declaration doesn't appear to override the default one, even though the selector should be more specific. Here's a quick example:  .cvt-product-tags li:before {     content: '\f00c'; /* Default checkmark icon */     font-family: 'Font Awesome 5 Pro'; }       /* Custom per-li icons */       .cvt-product-tags li#1394:before {         content: '\f21a'!important; /* Custom boat icon */       }       .cvt-product-tags li#1384:before {         content: '\f207'!important; /* Custom bus icon */     }   I set up a more complete pen over here: .  The confounding thing is that I had something very similar working before some markup changes wherein the content declaration was being properly overridden. What am I doing wrong? Or, more importantly, how do I get it to work right?

What characters/symbols are allowed within the CSS class selectors? I know that the following characters are invalid, but what characters are valid?  ~ ! @ $ % ^ & * ( ) + = , . / ' ; : " ? > < [ ] \ { } | ` #


Is there any way to calculate how much anti-matter or dilithium I'll need to travel 5 light years at warp 4 (a general equation would be great, but if not the a ballpark estimate)?  If different engines from different generations have different fuel efficiency, I'd be open to whichever is most convenient to calculate, though it would also be nice to know how this has changed over the generations.

How fast is Impulse, Warp and Warp X speed?  As I have understood it, Warp (1) speed = 1x Speed of Light (SoL), i.e. ~300.000 km/s. However, in ST:VOY, they are hurled 70.000 LY  from Earth, which will take 70 years to travel at Warp 9, i.e. Warp 9 = 1000x SoL. That makes no sense to me.  If Warp doubles for each full number (binary numbers), then Warp 10 would be 1024x SoL ~ 68 years journey. That works fine, in approximation, given they need to make various stops on the way and/or take small detours to fly through star systems on the way. But no... Not only is Warp 10 impossible (why is that, anyway?), but anything over Warp 9,0 is reserved for burst only. Thus sustained travel is limited to Warp 9, which would (by my calculations) be 512x SoL ~ 135-140 years journey. But this doesn't match any known numbers..  Bonus question: How fast is Impulse drive? You can travel in a shuttle from Earth to Jupiter in a few hours. We only ever hear about quarter, half and full Impulse speed. But at the same scale, you can travel to Jupiter in a few hours, but you can also navigate a safe landing on a planet/moon, through the atmosphere.. Again, I see no consistancy in this..


I hear people say, I had/have went as in, ‘I had went to the movies the other night. Shouldn’t it be either I had gone or I went?

I heard a guy from Manchester, UK said —     It was the best restaurant I have ever went to.   And Google offers 23 million pages for the query "have ever went to", and only 3 millions for "I have ever gone to".  Is this form correct? Has the grammar changed?


Yesterday, when I was playing with numbers, I was surprised to know the following relation:  $$10!=6!\times 7!.$$  Then, I've been looking for the other solutions, but I'm facing difficulty. Then, here are my questions.  Question 1 : Does there exist the other non-trivial solution?  Question 2 : Can we get all solutions? In addition to this, can we prove that they are all solutions?  I don't know if these questions are famous. Also, I'm afraid that these questions might be very easy to solve. Anyway, I need your help.

I was playing around with hypergeometric probabilities when I wound myself calculating the binomial coefficient $\binom{10}{3}$. I used the definition, and calculating in my head, I simplified to this expression before actually calculating anything $$ \frac {8\cdot9\cdot10}{2\cdot3} = 120 $$ And then it hit me that $8\cdot9\cdot10 = 6!$ and I started thinking about something I feel like calling generalized factorials, which is just the product of a number of successive naturals, like this $$ a!b = \prod_{n=b}^an = \frac{a!}{(b-1)!},\quad a, b \in \mathbb{Z}^+, \quad a\ge b $$ so that $a! = a!1$ (the notation was invented just now, and inspired by the $nCr$-notation for binomial coefficients). Now, apart from the trivial examples $(n!)!(n!) = n!$ and $a!1 = a!2 = a!$, when is the generalized factorial a factorial number? When is it the product of two (non-trivial) factorial numbers? As seen above, $10!8$ is both.


In JavaScript it's possible to use lambda functions with the replace function, in Java string.replaceAll will not allow this. How can I do the same thing in as below in Java?:  replaceDotHandlesWithUnderscore(input) {   // e.g. {my.nested.value} to {my_nested_value}   // e.g. {my.nested.value, select, true {Yes} false {No}} to {my_nested_value, select, true {Yes} no {false}}   return input.replace(     /\{(\s*)(\w+(\.\w+)*)/g,     (matches, space, handle) => `{${space}${handle.replace(/\./g, '_')}`   ); }   It's fine to go with Java 1.8 or 1.9 solutions to this.

I'm in the process of moving an application from PHP to Java and there is heavy use of regular expressions in the code.  I've run across something in PHP that doesn't seem to have a java equivalent:  preg_replace_callback()   For every match in the regex, it calls a function that is passed the match text as a parameter.  As an example usage:  $articleText = preg_replace_callback("/\[thumb(\d+)\]/",'thumbReplace', $articleText); # ... function thumbReplace($matches) {    global $photos;    return "<img src=\"thumbs/" . $photos[$matches[1]] . "\">"; }   What would be the ideal way to do this in Java?


I'm running my own CA. My new cert's desired CSR has CN papaya. I'm looking to add some local domain structure with subjectAltName, but browsers are rejecting the added domains.  This is my openssl.cnf used for signing:  [req] default_md = sha256 req_extensions = v3_req  [v3_req] basicConstraints = CA:FALSE keyUsage = nonRepudiation, keyEncipherment, dataEncipherment extendedKeyUsage = serverAuth subjectAltName = @alt_names  [alt_names] DNS.1 = papaya DNS.2 = *.papaya DNS.3 = localhost   Connecting to  or  then makes Firefox 45 puke with  localhost uses an invalid security certificate. The certificate is only valid for the following names: papaya, *.papaya, localhost  Error code: SSL_ERROR_BAD_CERT_DOMAIN   I'd say this is some confusing stuff, since the error message seems to indicate everything is correct. Only  works though.  To add to the confusion, on Chrome 49,  also works. Unfortunately  still does not.  I've used this exact procedure to output multiple real-world FQDN certs, but never for local single word domains, hence the confusion.  What am I missing?

I'm trying to generate a certificate with the following subjectAltName:  hostname *.hostname hostname.mydomain.local *.hostname.mydomain.local   I generate the CSR via OpenSSL and then get the certificate from Microsoft Active Directory Certificate Services. Certificate works OK for the following alternative names:  hostname hostname.mydomain.local *.hostname.mydomain.local   But, *.hostname just doesn't work. Testing with Curl, I get the following output:  % curl https://m.example/ curl: (51) SSL: certificate subject name '*.example' does not match target host name 'm.example'   If, on the other hand, I add 'm.example' as a subjectAltName, then it works. So, wildcard with shortened hostname just refuses to work.


This is probably the easiest way to explain my problem:    I'm not sure how to say what this problem is - is it that the shapefiles and the raster are using different longitudinal origins? (probably obvious I have a fairly loose grasp of GIS)  Regardless, what operation would I use to globe-rotate the raster so that it was aligned with the shape files? To be clear, it seems like the two data sets agree on coordinates and projection (WGS 84), it's just that the shape files all put the americas on the left and for whatever reason the topo raster puts them (and part of europe/africa) on the right.  I'm using QGIS 2.16.3 on a mac, and I'm fairly capable at installing & compiling code if needed.

I have a geotiff raster image that has a coordinate system with longitudes from 0 to 360. The horizontal center of the image is 180 longitude. See image below:    I want to transform it to EPSG:4326 SRS with -180 180 longtitude range.  And I want the center of the image to be at Greenwich meridian (0). I guess this srs is very widely used. I expect the result look like this:    So I use a gdalwarp command to reproject:  gdalwarp -s_srs '+proj=latlong +datum=WGS84 +pm=180dW' -t_srs EPSG:4326 test_col.tif test_4326.tif   But I only get a tiff with bigger dimensions (more pixels) and EPSG:4326 metadata. The image itself looks the same, as the initial one. But I expect it to swap the hemispheres.  How do I gdalwarp an image to be strictly -180 180 EPSG:4326 with the center in 0 longitude?  This is gdalinfo of my initial file:  Origin = (-0.102272598067084,89.946211604095552) Pixel Size = (0.204545196134167,-0.204423208191126) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   INTERLEAVE=BAND Corner Coordinates: Upper Left  (  -0.1022726,  89.9462116) (  0d 6' 8.18"W, 89d56'46.36"N) Lower Left  (  -0.1022726, -89.9462116) (  0d 6' 8.18"W, 89d56'46.36"S) Upper Right (     359.897,      89.946) (359d53'50.18"E, 89d56'46.36"N) Lower Right (     359.897,     -89.946) (359d53'50.18"E, 89d56'46.36"S) Center      ( 179.8975000,  -0.0000000) (179d53'51.00"E,  0d 0' 0.00"S)   This is gdalinfo after gdalwarp     Origin = (-180.102727401932952,89.946211604095552) Pixel Size = (0.091397622896436,-0.091420837939082) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   INTERLEAVE=PIXEL Corner Coordinates: Upper Left  (-180.1027274,  89.9462116) (180d 6' 9.82"W, 89d56'46.36"N) Lower Left  (-180.1027274, -89.9699975) (180d 6' 9.82"W, 89d58'11.99"S) Upper Right ( 179.8211116,  89.9462116) (179d49'16.00"E, 89d56'46.36"N) Lower Right ( 179.8211116, -89.9699975) (179d49'16.00"E, 89d58'11.99"S) Center      (  -0.1408079,  -0.0118929) (  0d 8'26.91"W,  0d 0'42.81"S)


I have an upcoming trip to London from Washington DC via Iceland. I hold an Indian passport, H1B visa in US, and visitor visa for UK. I have booked WOW air and it has a stop in KEF airport in Iceland. I have researched the immigration websites and saw that I may not need a transit visa. I did not get any information from the embassies through email and phone calls. Can anyone who has done this in the past, please advise on this?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


When I try to reset my password from the root menu using the passwd command, it says "type new unix password", but I can't type.  Please help!

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


I'm trying to get the difference (in days) between today and a previous date here: from datetime import date  today = date.today() # get today's date print("Today's date:", today) new_today = today.strftime("%Y, %#m, %Y") # convert it so that delta.days understands print(new_today)  f_date = date(new_today) l_date = date(2014, 7, 11) delta = f_date - l_date print(delta.days)  But I get an error: TypeError: an integer is required (got type str) I've read   on this, but they don't address using today's date in the calculation. What's the best way to perform this calculation?

If I have two dates (ex. '8/18/2008' and '9/26/2008'), what is the best way to get the number of days between these two dates?


I  have a generic method to deal with importing various object types from Quickbooks.  public ActionConfirmation<int> Import<TEntity>(List<TEntity> lstEntityModifiedSinceLastSync, FinancialsSyncJobQueue currentJobQEntry, FinancialsSyncSession session,      FinancialsIntegrationContext financialsIntegrationContext)      where TEntity : class, IEntity, IAuditStamps, IFinancials, new()   Today I use a switch statement to invoke the above generic method with the correct type:  switch (enumDataElement) {     case DataElement.Account:         {             //Parse QB query response and convert to Stratus Chart of Accounts object list             var lstAccountsModifiedSinceLastSync = QuickbooksChartOfAccounts.ParseQueryResponse(response, session);              importResult = importService.Import<FinancialsChartOfAccount>(lstAccountsModifiedSinceLastSync,                  currentJobQEntry, session, financialsIntegrationContext);              break;         }     case DataElement.Item:         {             var lstItemsModifiedSinceLastSync = QuickbooksItem.ParseQueryResponse(response, session);              importResult = importService.Import<Item>(lstItemsModifiedSinceLastSync,                  currentJobQEntry, session, financialsIntegrationContext);              break;         }         etc... }   I'd like to clean this up a little, pull the importService.Import call out of the switch statement and put it at the end and do something like:  Type entityType = lstItemsModifiedSinceLastSync.FirstOrDefault().GetType(); importResult = importService.Import<entityType>(lstItemsModifiedSinceLastSync,      currentJobQEntry, session, financialsIntegrationContext);   But I can't seem to get that to work. Error is: The type or namespace could not be found...

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I am setting a function where the user can specify how to initialize a variable. Here is a minimal example  def setValue( typeOf ):     if typeOf == 'normal':         a = np.random.normal( parameters)     if typeOf == 'uniform':         a = np.random.uniform(parameters)   However, in my real case, there are dozens of initialization options. I am wondering if I can make the code more elegant my specifying directly how the user wants to initialize the variable   def setValue( something ):     something hapenng     a = np.random.whatever_user_specified

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


I want to sort a table by name. These should not be alphabetic but the largest id. I have this table.  id  name      ---|-----| 1  | abc |  2  | abc | 3  | def | 4  | def | 5  | def | 6  | abc | 7  | abc | 8  | def |   That's what i need  id  name      ---|-----| 8  | def | 5  | def | 4  | def | 3  | def | 7  | abc | 6  | abc | 2  | abc | 1  | abc |    Does anyone have an idea?

My table is:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   3 10 03/03/2009 john 300   4 11 03/03/2009 juliet 200   6 12 03/03/2009 borat 500   7 13 24/12/2008 borat 600   8 13 01/01/2009 borat 700     I need to select each distinct home holding the maximum value of datetime. Result would be:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   8 13 01/01/2009 borat 700     I have tried: -- 1 ..by the MySQL manual:   SELECT DISTINCT   home,   id,   datetime AS dt,   player,   resource FROM topten t1 WHERE datetime = (SELECT   MAX(t2.datetime) FROM topten t2 GROUP BY home) GROUP BY datetime ORDER BY datetime DESC  Doesn't work. Result-set has 130 rows although database holds 187. Result includes some duplicates of home. -- 2 ..join  SELECT   s1.id,   s1.home,   s1.datetime,   s1.player,   s1.resource FROM topten s1 JOIN (SELECT   id,   MAX(datetime) AS dt FROM topten GROUP BY id) AS s2   ON s1.id = s2.id ORDER BY datetime   Nope. Gives all the records. -- 3 ..something exotic:   With various results.


I frequently come across posts as old as 2016 or earlier that have big yellow migration notice boxes stuck at their bottom.  migrated from xyz.stackexchange.com Feb 4 '16 at 20:33 This question came from our P, Q, and R site for A, B and C.  These migration notices help out the people at the time the question was migrated, but I believe they lose their value after a few days (say one week). For example, I don't think that if I'm searching for the  in 2018, before showing me the answers, I first must be told that the post was migrated two years earlier... Of course, I can always ignore it and continue on reading the answers ... but that's not my point. My point is that the migration notice has served its purpose after a certain time threshold, and should be removed after that. I have seen "Bumped by Community Users" notices go away within a day or two after they've served their purpose. Then what is the rationale behind retaining post migration notices for years? Why not remove them after a certain time threshold? (obvious clarification: the associated migration event should still be retained within the post's timeline)

When a question is migrated from another site, a stub is temporarily left on the original site before being automatically deleted after 30 days. (See )  While questions stubs are automatically deleted from the origin site after 30 days, questions that are nearly a decade old will prominently display their migration status.   Migration notice for   I can't think of any reason a 7-8 year old migration notice would be helpful for the average user, or why it should displayed before protected notices.  If a user does want to see if a question was migrated, they can check a question's , or search .


I know it might be weird, but I'm trying to boot a Windows version on dual boot in Linux for gaming. I followed these steps:   Download a version of Windows; Copy the files inside the *.iso to the mounted USB stick with cp command; Restart the machine; Change BIOS to recognize either USB CD/DVD or USB Hardrive as first boot in priority.   The system does not recognize the stick. I suspect it might be due to permissions issues.  Thank you in advance.

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


From time to time, my Review Button will show a number of reviews to consider, yet when I click on the button fewer (always fewer, never more) reviews are shown?  Sometimes the number resets to 0, sometimes the number increases, but the reviews in the queue are less and are different to reviews done just previously.   Looking at the related questions, the examples were either there were no edits or there is a persistence in the number of edits in the queue. Neither seem to be the same as my case where the number changes, but there is nothing in the queue, or the number remains the same, but there are different reviews in the queue. Coincidence in the latter seems possible but highly unlikely.  This also seems to happen in the middle of the night EST.  Is this an update problem or am I missing something else I should be doing?  Thanks.

What is the actual source of the number displayed next to the review link in the top bar? I found  (via  and similar) but, and apologies if I'm being dense, the answer there didn't seem to have an explanation of where the specific number comes from.  I can't make any combination of task counts on /review (that are visible to me, at least) add up to the number in the top bar. I had thought that perhaps it was a count that just lagged a little behind the /review counts, but it changes often and quickly enough (and is so far off from the other numbers that I see on /review) that I can't imagine how this could be the case. Perhaps there are items or queues that I do not have the privileges to see, but I don't know what those are, and finding out what they are (if that's the case) is part of this question. I've also been told in chat that it is actually the


Can someone explain to me why the output is the same for this two? //S means non-whitespace. Thanks  public static void main(String[] args){      String test = "I am noob ";     String[] tokens = test.split("\\S");     System.out.println(tokens.length);      String test2 = "I am noob 132434";     String[] tokens2 = test2.split("\\S");     System.out.println(tokens2.length); }

Check out the below program.   try {     for (String data : Files.readAllLines(Paths.get("D:/sample.txt"))){         String[] de = data.split(";");         System.out.println("Length = " + de.length);     } } catch (IOException e) {     e.printStackTrace(); }   Sample.txt:   1;2;3;4 A;B;; a;b;c;   Output:   Length = 4 Length = 2 Length = 3   Why second and third output is giving 2 and 3 instead of 4. In sample.txt file, condition  for 2nd and 3rd line is should give newline(\n or enter) immediately after giving delimiter for the third field. Can anyone help me how to get length as 4 for 2nd and 3rd line without changing the condition of the sample.txt file and how to print the values of de[2] (throws  ArrayIndexOutOfBoundsException)?


I want to create a center line for a river (polygon). I thought about simply creating a new line manually, but it would be a long and imperfect process. If there is a way to automate this process, that would be much better.   Can anyone help?

Where is the track of a ship when it is shipping always in the center of the   between the coasts of Great Britain and France?   I started with 2 linestrings and I created a lot of points on the linestring with a . After that I created a distance matrix with Raster/Analysis/Proximity in QGIS. Finally I created an aspect raster from the output raster.     Is the red line really the "center line" between these two linestrings?  Is there a more efficient way to do this?


I have purchased iCloud space on my iPhone which currently have over 45GB storage left. I still get storage space warnings on the iPhone. I cannot download anymore apps, take photos or receive anymore WhatsApp messages due to lack of space. How to a fix this issue? thanks. The previous answer to this question does not answer the question. It states the problem but not how to fix it. Thanks

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


I ordered a new laptop and it came with a stuck pixel. It's a red one, so I think it can be fixed. Although, the methods don't seem to be permanently fixing it. I'm using a program, UDPixel, and it makes the pixel less apparent, but after the screen turns off for a while, it comes back.  I tried pressure, but that doesn't seem to work either. I contacted the company and according to their manufacturer's warranty, 5 or more pixels need to be present for them to fix it. Am I out of luck or should I be persistent?

I have an LCD screen with a pixel that is stuck ON (that is, bright). What do you suggest to fix it (it's not a dead pixel)?


Can you book a flight from, say... San Diego to Cancun that has a plane change in L.A. and not board the flight in San Diego but rather in L.A.?  Say you "missed" your San Diego flight and were able to drive to L.A. in time for the flight from L.A. to Cancun, could you just go from there?  Some times flights are a lot cheaper leaving from one city as compared to another.

I'm looking to book flights from) Philadelphia (PHL) to Detroit (DTW). Direct flights are quite expensive. I noticed, in expanding a search to surrounding airports, that I can book from Allentown (ABE) to Detroit for far less, and the connection is through Philadelphia.  Can I book this flight but board in Philadelphia? I'll be traveling with carry-on luggage only, so on the return, it's obviously no problem. But would I be allowed through security and on to the plane in PHL with out having flown from Allentown?


So, the situation involves :   QGIS 2.18 and georerencer plugin;  Downloaded TIF of an old canadian topographical map from Quebec National Library and Archives () and as you can see, this nice map included a grid with latitude and longitude. The project I'm working on includes vector data using NAD83 MTM7.   Now, the problem :   Right after selecting file in the georeferencer plugin, I have to enter what i think is the CRS of the original map, which I don't have a lot of info on (It says "polyconic projection" only). I was under the impression that "real" lat/long would be more than enough to georeference it precisely, but it appears that a entering a CRS is essential!   EDIT : Here's a screen capture of the menu prompted when adding the raster. It's in french, but in the first field, it translates to "select the CSR for the raster layer"   Now, the questions are :   Is there any way I can avoid specifying a CRS when using georeferencer and just enter the lat long of the grid corner? Something that would tell QGIS "Look, forget the CRS, I have latitude and longitude and that all you need!" If answer to question 1 is "No", what should I do?

I'm trying to georeference a picture using Latitude and longitude. The points are these:  top-left:  (116.30950927734372,39.970805680527725)   top-right:  (116.35620117187497,39.970805680527725)   bottom-left (116.35620117187497,39.93606595478707)   bottom-right (116.30950927734372,39.93606595478707)    When I tried to calculate the area of a polygon,the result is very small(something like e-7).I realized to my horror that the QGIS had treated the Unit as meter.What should I do?  (QGIS1.8)


Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?  It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames.


var array1 = ["AL", "CA", "IN "]; var array2 = ["AL", "AL", "CA", "CA", "IN", "IN", "WI", "WY"];  My desired o/p: ["AL", "CA", "IN"]     var array1 = ["AL", "CA", "I"]; var array2 = ["AL", "AL", "CA", "CA", "IN", "IN", "WI", "WY"];  My desired o/p: ["AL", "CA"]  I tried like this: const intersection = array1.filter(element => array2.includes(element));  console.log(intersection) But i am getting o/p : ["AL", "CA"]. Can some one help me on this. I want to compare 2 arrays and find the result with matched elements,I searched a lot but could not get a solution .please help me in advance.

How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript?


How can I batch create curved linear features i.e. using 3 points in ArcPY?   The real question is, whether we can create curved linear feature through arcpy or we have to use ArcObjects! Because, to me, it seems we can not do that in ArcPy.   to create linear (non-curved) features we can use:  arcpy.Polyline(Array([arcpy.Point(*coords) for coords in feature])))   This question is a duplicate of  New comers, note that curves are only supported on 10.3 and above. see

As background, this question arose from trying to answer a question on   Using the ArcMap 10.1 GUI it is very easy to digitize true curve polygons into a file geodatabase feature class using the Ellipse Construction Tool but ...  Is it possible to write true curve elliptical polygons while reading rows (arcpy.da.SearchCursor) from a table containing a centre point, a major axis, a minor axis and an azimuth for each?  I had hoped that there might be a token available with  to do this, but SHAPE@ seems to be limited by what the  object supports, and that does not appear to include true curves.


Should I use an article in such phrases, and if I should - which one? Examples:   In [?] real life you shouldn't do that. In [?] real life things aren't so simple. In [?] real life it's almost useless.

I am a learner of English. Sometimes I see an article (a and the) before the noun (life) but sometimes I also see the noun without any article. So I am confused when should I use an article before the noun and when I should not. Please check the examples and let me know are they correct?     Examples:      His life is an awesome life.      I want to get a beautiful life.      I like the life he lived.


I am trying to understand this proof, I think "$Q$ is lying above $P$" means $Q \cap P = R$, but I don't know why we can assume "$P=0$" or "$R$ is a field", can someone explain it to me?

I'm trying to work out the following past paper question and I've got stuck.  $R$ is an integral domain and $S = R[t]$, the polynomial ring in one variable over $R$. We have that $Q$ is a prime ideal strictly contained in another prime ideal $P$ with  $$ P \cap R = Q \cap R  = P_0. $$ We also have $Y = R\setminus P_0$.  I have shown that $P_0S$ is a prime ideal, and that after localisation we have $$ \frac{SY^{-1}}{P_0SY^{-1}} \simeq F[t]    $$ where  $$ F = \frac{RY^{-1}}{P_0Y^{-1}}. $$  This is a field since $P_0 = R\setminus Y$, so $P_0Y^{-1}$ is a maximal ideal of $RY^{-1}$.   What I now have to show is that $P_0S  =  Q$, and the question says that i should do this using the above isomorphism of polynomial rings, but I can't figure it out.  A hint or solution would be great, thanks!


Let $t$ be a real number such that $t^2 = at + b$ for some positive integral values of $a$ and $b$, then $t^3$ can never be equal to:  A. $4t+3$ B. $8t+5$ C. $10t+3$ D. $6t+5$

Let $t$ be a real number such that $t^2=at+b$ for some positive integers $a$ and $b$, then for any choice of positive integers $a$ and $b$,  $t^3$ never equals to a) $4t+3$  b) $8t+5$  c) $10t+3$  d) $6t+5$  I have recognized that if $t=0$ then all the answers are correct.  But can not proceed in case of $t\neq 0$. Please help to solve it. Thanks in advance.


I have recently started reading Quantum Mechanics from R. Shankar's book and I find the math introduced so far(first twenty to thirty pages) in the first chapter to be very engaging; the book makes me want to struggle till I understand and solve the exercises. I want to stick to this book. But before I take a decision, I would like to know if what I already know is enough to continue with the book.  The math I have dealt with so far is just high-school math and Calculus(up to Calculus 3). I am comfortable with complex numbers and matrix operations thanks to Mary L.Boas.   Coming to Physics; Classical Mechanics(up to Rigid Body Motion) as taught by the book Introduction to Mechanics by Kleppner and Kolenkow; Electricity and Magnetism (excluding Electromagnetic waves and optics) as taught by Walter Lewin. University Physics has given me a basic understanding of mechanical waves.   Concurrent with my current study are the following: Mathematical Methods( Mary L.Boas), Lagrangian and Hamiltonian formalisms(Shankar[the first few pages already have my undivided attention]), Electrodynamics(Griffiths); Waves, Thermodynamics, Modern Physics(University Physics); Harmonic Oscillators, Central Motion, Non-inertial systems and Special Relativity(Kleppner and Kolenkow).   Will my existing knowledge be enough for me to keep learning Quantum Mechanics?

I'm really interested in quantum physics and would like to learn more. However, I don't know where to start and in what order I should learn things. So, ideally I'm looking for some sort of roadmap of what to learn. What physics topics do I need to know to start learning about quantum mechanics? (In addition to the mathematical topics mentioned at )  My current knowledge is mostly popular science stuff, like tv shows on Discovery Science and National Geographic Channel. So I have a basic understanding of some basic principals. There's also a recent lecture from Brian Cox that I have watched which gave a bit more in-depth information.


it was known that can't use list.remove in foreach. there is a confuse for me that phase1 runs ok but phase2 was not. can someone explan this? phase1 List<String> list = new ArrayList<>(); list.add("1"); list.add("2"); for (String item : list) {     if ("1".equals(item)) {         list.remove(item);     } } System.out.println(list);  phase2 List<String> list = new ArrayList<>(); list.add("1"); list.add("2"); for (String item : list) {     if ("2".equals(item)) {         list.remove(item);     } } System.out.println(list);

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.


This is a pretty short YA novel I read circa 2010, although I don't think it was a new book at that time.  I think the author was female and may have authored several additional books about princesses. The story is about two princesses who were sisters. One was shy and the other was outgoing. I'm not sure if these are accurate memories, but I think the shy one had dark straight hair and the outgoing one had curly red hair. One sister gets abducted by a dragon and the other has to make a journey to rescue her from its lair. When she reaches the lair, she is forced to stay there for a few days (I don't remember why). She eventually kills the dragon with a sword and takes her sister home. The book contains the quote "Set your face toward danger, and your heart on victory".

I'm looking for a story that I read back when I was a child. Around 2005, maybe? I recall the book seeming pretty old, but it was from a public library, so it could be simply deteriorated by usage.  The world is being afflicted with a mysterious sickness that has no cure and no one knows where did it come from (it is called gray fever, gray plague or something like that).  The story narrates two young princesses, the elder one would be brave and adventurous, while the younger one would be shy and more delicate. They both fantasized with a future where the younger one would fall sick and the elder one would depart trying to find a cure to save her.  But in reality, the elder one falls sick and the young one is forced to depart. I recall some sort of mage/warlock that helps her giving her a pair of boots that would let her walk big distances almost instantaneously. I also recall the younger one being trapped by a dragon, and in the end the elder one dies from the sickness, but is saved being transformed in a fairy. I also think the sickness is eradicated in the end.


Is it possible to check if a column that is returned from database exist or not before getting ordinal of that column? Because if it doesn't exist then i dont want to call getordinal method ;      //Here the place that i want to check if username column have returned from database or not.     OrdUserName = reader.GetOrdinal("username");

How do I check to see if a column exists in a SqlDataReader object?  In my data access layer, I have create a method that builds the same object for multiple stored procedures calls.  One of the stored procedures has an additional column that is not used by the other stored procedures.  I want to modified the method to accommodate for every scenario.  My application is written in C#.


I am studying the book of  and stumbled upon  I can prove that $\bar{Y}=\frac{1}{n} \sum_{i=1}^{n} Y_{i}$ and $Var(\bar{Y})=\frac{\sigma ^{2}}{n}$ but how would I go to show that $\bar{Y}$ is normally distributed? Why normal? Should I use the Normal MGF?

In order to prove that the linear combination of two independent normal distributions(say Z=X+Y) is normal, i am using their MGFs to show that the linear combination also has a similar mgf. This works okay when Z = X+Y. But when Z=X-Y, i run into trouble :  E[$e^{tZ}$] = E[$e^{t(X-Y)}$] = E[$e^{tX}$]E[$e^{-tY}$]  Now i cannot put this as $M_{x}$(t) * $M_{y}$(t) because of the negative sign.


My understanding in univariate case is:  Suppose $f:\mathbb{R}\rightarrow\mathbb{R}$.  Then, $\frac{dy}{dx}|_{x=x_o}=f'(x)|_{x=x_o}$=$\lim_{\Delta x \to 0}\frac{\Delta f}{\Delta x}$, where $\Delta x=(x-x_o)$ and $\Delta f=f(x)-f(x_o)$.  Part of confusion is when I see something like:  $dy=f'(x)dx$.  What is happening here exactly? Why some books move around $dy$ and $dx$ as if they are discrete changes? Can somebody explain the difference between discrete changes and differential changes with clarity?  My understanding of $f'(x)$ at $x_o$ is the best affine approximation of $f$ at that point. Then, I use the term "sensitivity", because it is my understanding the derivative (or slope here) provides the information how sensitive function value at that point is to the very little change in $x$.  Then, what does $dy$ mean? Doesn't $dy$ also represent infinitesimal change? So I am confused difference between $dy$ and $\frac{dy}{dx}$ as well.   The terminologies that are used "instantaneous rate of change" or "slope" or "best affine approximation" or "how sensitive f is with respect to the argument at that point" amplifying the confusion.  Please help.

I ask because, as a first-year calculus student, I am running into the fact that I didn't quite get this down when understanding the derivative:  So, a derivative is the rate of change of a function with respect to changes in its variable, this much I get.  Thing is, definitions of 'differential' tend to be in the form of defining the derivative and calling the differential 'an infinitesimally small change in x', which is fine as far it goes, but then why bother even defining it formally outside of needing it for derivatives?  And THEN, the bloody differential starts showing up as a function in integrals, where it appears to be ignored part of the time, then functioning as a variable the rest.  Why do I say 'practical'? Because when I asked for an explanation from other mathematician parties, I got one involving the graph of the function and how, given a right-angle triangle, a derivative is one of the other angles, where the differential is the line opposite the angle.   I'm sure that explanation is correct as far it goes, but it doesn't tell me what the differential DOES, or why it's useful, which are the two facts I need in order to really understand it.  Any assistance?


With reference to this question   and    Can be bring a feature to search for protected questions ?  Why ??  Most of the protected questions are one of the best questions ever and highly knowledgeable ones.  Few Examples       If there can be a search for closed questions then why not a search for protected question ?

Please add a search operator that selects for (or against) the protected status flag.


I haven't been able to find a straight answer on this anywhere. I have dual US/German citizenship. I know that I have to enter and exit the US on the US passport and the EU on the German one. But where exactly do I "exit" the United States?  There is no passport control for departures in the United States. And based on what I've read, airlines send your check-in information to your destination. So when flying to Italy, I'd have to scan my German passport at airline check-in because I'd be using that one to enter Europe. Is that correct? How do other dual US/EU citizens deal with this? I want to be sure I do it the right way on an upcoming trip. It's been years since I've flown internationally, so there was always a person I could show both to at check-in, but I've heard from friends that now it's all just kiosks and that the people at the counters don't check you in - they just direct you back to the kiosks.   Edit: The thing that's confusing me about previous threads on the topic is that many, including the one someone said my question is a duplicate of, say to show both at check-in in the United States. Kiosks only allow you to show one, so which one?

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


The Story  I installed wine some time ago, and after trying out some versions of Cinema 4D that were "free", I looked in the comments of the videos, and saw some people complaining about viruses. I got worried, downloaded and installed MalwareBytes, and scanned my "system". Of course, since MalwareBytes was runnning through Wine, it only scanned ~/.wine/C:. It found many viruses/trojans and I opted to delete them. I did so.  Questions:   Assuming there is any malware left, can this malware spread into my OS? Tell me the entire truth on what can happen. I deleted my entire .wine directory and am planning to uninstall wine later. I am the only user out of the three on this system that runs wine programs, but wine is installed for all. Is that enough, or must I do more? Please be specific on what I should do because I want to be 100% sure that there are no viruses.   I am sure that many others have these questions too, so please answer this question to the point.   Additional information:  Wine was installed with sudo-apt get. The exact commands can be found here:   Commands:  sudo add-apt-repository ppa:ubuntu-wine/ppa -y sudo apt-get update sudo apt-get install wine1.6 -y   I did try to install a font that was a ttf font. I tried to convert it to otf with no success. Then, I placed it in the fonts directory directly. I then saw that some people said it was malicious, and I removed it.  This question was flagged as  a duplicate of this question:  It is not the same. This question is more precise, as it specifies two scenarios involving viruses, not risks of viruses. The other question talked about Internet Explorer; this one does not mention the installation of any programs.  Note: wine was installed with sudo privileges, so does that mean it runs with sudo privileges?

I heard Linux can get viruses through Wine,and I was curious if the viruses work only while Wine is running.  In other words, could I stop a virus from doing it's thing by just quitting Wine?


Would be nice with something like a #bottom anchor at the bottom of the  page.  (Scrolling to the bottom isn't much of a problem when I'm on a laptop, but it's really terrible when I'm on my iPad or on my cell phone.)

I regularly find myself having to scroll to the bottom of the reputation audit to find all the good stuff that appears last. On my computer this is a single key press, but on my mobile it takes 30 seconds of scrolling. Lord alone knows how long it would be for Jon Skeet!  Since the principles of good user experience suggest putting the most important information first, why not do the same here? I never look at my first 5 days of rep gathering. But I often look at the current day, the true rep, days with 200 rep (hunting legendary badge!), trigger recalc etc. Pretty please, can we have it up top?


I am looking to upgrade from 13.04 to the upcoming 13.10 but have a few questions about how to handle the upgrade whilst having the least impact on my current setup.   I have these partitions on my brand new SSD :   /boot - 512 MB / - 30 GB / - 30 GB (for alternate install, I like to try different distros on my laptop) /usr/local/bin - 20 GB (contains all my dev env binaries like java6, java7, ant, sbt, eclipse, sublime text etc., manually installed by me) /home - 65GB swap - 8 GB (same as RAM) data - remaining 70 GB   I have windows that came with the laptop installed on my slower 7200rpm spindle disk and am using its remainder 400GB as my primary data storage.   I am looking at the easiest way to upgrade with a clean install to the latest version of ubuntu while keeping the following intact :   (done) home folder (including ssh keys, wine, all user configurations, etc.) user defined env variables used for development (pointing to /usr/local/bin in ~/.zshrc for making commands like java, scala, ant etc available on CLI) programs installed like f.lux, shutter, guake, clipit, terminator, git etc. startup applications like skype, bitmessage, dropbox etc.  (done) custom ppa packages added installed and configured app indicators  Should I change my partition strategy? im not aware if there is a better way of partitioning the disk to install all the operating systems according to my requirements. What should my backup policy be? Should I create another partition on my spindle disk to save local backups? How big should it be? What folders should I backup?   To partially fill in the blanks for Q1. : I found  which helps in recovering the ppa list and installed packages. There is also  with a similar motive.  So my problem of ppa, installed packages, home directory is resolved. But im concerned about my /usr/local/bin, my startup applications and my installed app indicators. If my dev environment remains unaltered im happy.

If I want to make a backup of everything I have done since the fresh install of Ubuntu, what are the possible options? What all should I backup? I want to get all the settings that I changed, all the packages I installed, etc.